From f2675b7a1cce690bb77f10f3ac7e19bba9c5cab9 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 20 Nov 2023 09:01:33 +0100
Subject: [PATCH 1/8] chore(deps): update dependency
eslint-config-standard-with-typescript to v40 (#2283)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[eslint-config-standard-with-typescript](https://togithub.com/standard/eslint-config-standard-with-typescript)
| [`39.1.1` ->
`40.0.0`](https://renovatebot.com/diffs/npm/eslint-config-standard-with-typescript/39.1.1/40.0.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-config-standard-with-typescript/40.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-config-standard-with-typescript/40.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-config-standard-with-typescript/39.1.1/40.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-config-standard-with-typescript/39.1.1/40.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
standard/eslint-config-standard-with-typescript
(eslint-config-standard-with-typescript)
###
[`v40.0.0`](https://togithub.com/standard/eslint-config-standard-with-typescript/blob/HEAD/CHANGELOG.md#4000-2023-11-18)
[Compare
Source](https://togithub.com/standard/eslint-config-standard-with-typescript/compare/v39.1.1...v40.0.0)
##### ⚠ BREAKING CHANGES
- add rule
[@typescript-eslint/unbound-method](https://togithub.com/typescript-eslint/unbound-method)
##### Features
-
[@typescript-eslint/unbound-method](https://togithub.com/typescript-eslint/unbound-method)
([2ec6d24](https://togithub.com/standard/eslint-config-standard-with-typescript/commit/2ec6d24caae47a42b7b5be5eb1b0e541faca1ae1)),
closes
[#1327](https://togithub.com/standard/eslint-config-standard-with-typescript/issues/1327)
---
### Configuration
📅 **Schedule**: Branch creation - "every weekend" in timezone
Europe/Zurich, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/swisspost/design-system).
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
packages/components-react/package.json | 2 +-
pnpm-lock.yaml | 69 +++++++++-----------------
2 files changed, 25 insertions(+), 46 deletions(-)
diff --git a/packages/components-react/package.json b/packages/components-react/package.json
index d555785f72..8659977208 100644
--- a/packages/components-react/package.json
+++ b/packages/components-react/package.json
@@ -28,7 +28,7 @@
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"eslint": "8.53.0",
- "eslint-config-standard-with-typescript": "39.1.1",
+ "eslint-config-standard-with-typescript": "40.0.0",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-n": "16.3.1",
"eslint-plugin-promise": "6.1.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 037cc86357..95068f18f2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -159,8 +159,8 @@ importers:
specifier: 8.53.0
version: 8.53.0
eslint-config-standard-with-typescript:
- specifier: 39.1.1
- version: 39.1.1(@typescript-eslint/eslint-plugin@5.62.0)(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.53.0)(typescript@4.9.5)
+ specifier: 40.0.0
+ version: 40.0.0(@typescript-eslint/eslint-plugin@5.62.0)(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.53.0)(typescript@4.9.5)
eslint-plugin-import:
specifier: 2.29.0
version: 2.29.0(@typescript-eslint/parser@5.62.0)(eslint@8.53.0)
@@ -8266,7 +8266,7 @@ packages:
- supports-color
dev: true
- /@typescript-eslint/parser@6.11.0(eslint@8.53.0)(typescript@5.1.6):
+ /@typescript-eslint/parser@6.11.0(eslint@8.53.0)(typescript@4.9.5):
resolution: {integrity: sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@@ -8280,17 +8280,17 @@ packages:
dependencies:
'@typescript-eslint/scope-manager': 6.11.0
'@typescript-eslint/types': 6.11.0
- '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.1.6)
+ '@typescript-eslint/typescript-estree': 6.11.0(typescript@4.9.5)
'@typescript-eslint/visitor-keys': 6.11.0
debug: 4.3.4(supports-color@8.1.1)
eslint: 8.53.0
- typescript: 5.1.6
+ typescript: 4.9.5
transitivePeerDependencies:
- supports-color
dev: true
- /@typescript-eslint/parser@6.9.1(eslint@8.53.0)(typescript@4.9.5):
- resolution: {integrity: sha512-C7AK2wn43GSaCUZ9do6Ksgi2g3mwFkMO3Cis96kzmgudoVaKyt62yNzJOktP0HDLb/iO2O0n2lBOzJgr6Q/cyg==}
+ /@typescript-eslint/parser@6.11.0(eslint@8.53.0)(typescript@5.1.6):
+ resolution: {integrity: sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
@@ -8301,13 +8301,13 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/scope-manager': 6.9.1
- '@typescript-eslint/types': 6.9.1
- '@typescript-eslint/typescript-estree': 6.9.1(typescript@4.9.5)
- '@typescript-eslint/visitor-keys': 6.9.1
+ '@typescript-eslint/scope-manager': 6.11.0
+ '@typescript-eslint/types': 6.11.0
+ '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.1.6)
+ '@typescript-eslint/visitor-keys': 6.11.0
debug: 4.3.4(supports-color@8.1.1)
eslint: 8.53.0
- typescript: 4.9.5
+ typescript: 5.1.6
transitivePeerDependencies:
- supports-color
dev: true
@@ -8328,14 +8328,6 @@ packages:
'@typescript-eslint/visitor-keys': 6.11.0
dev: true
- /@typescript-eslint/scope-manager@6.9.1:
- resolution: {integrity: sha512-38IxvKB6NAne3g/+MyXMs2Cda/Sz+CEpmm+KLGEM8hx/CvnSRuw51i8ukfwB/B/sESdeTGet1NH1Wj7I0YXswg==}
- engines: {node: ^16.0.0 || >=18.0.0}
- dependencies:
- '@typescript-eslint/types': 6.9.1
- '@typescript-eslint/visitor-keys': 6.9.1
- dev: true
-
/@typescript-eslint/type-utils@5.62.0(eslint@8.53.0)(typescript@4.9.5):
resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -8412,11 +8404,6 @@ packages:
engines: {node: ^16.0.0 || >=18.0.0}
dev: true
- /@typescript-eslint/types@6.9.1:
- resolution: {integrity: sha512-BUGslGOb14zUHOUmDB2FfT6SI1CcZEJYfF3qFwBeUrU6srJfzANonwRYHDpLBuzbq3HaoF2XL2hcr01c8f8OaQ==}
- engines: {node: ^16.0.0 || >=18.0.0}
- dev: true
-
/@typescript-eslint/typescript-estree@5.62.0(typescript@4.9.5):
resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -8459,7 +8446,7 @@ packages:
- supports-color
dev: true
- /@typescript-eslint/typescript-estree@6.11.0(typescript@5.1.6):
+ /@typescript-eslint/typescript-estree@6.11.0(typescript@4.9.5):
resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@@ -8474,14 +8461,14 @@ packages:
globby: 11.1.0
is-glob: 4.0.3
semver: 7.5.4
- ts-api-utils: 1.0.2(typescript@5.1.6)
- typescript: 5.1.6
+ ts-api-utils: 1.0.2(typescript@4.9.5)
+ typescript: 4.9.5
transitivePeerDependencies:
- supports-color
dev: true
- /@typescript-eslint/typescript-estree@6.9.1(typescript@4.9.5):
- resolution: {integrity: sha512-U+mUylTHfcqeO7mLWVQ5W/tMLXqVpRv61wm9ZtfE5egz7gtnmqVIw9ryh0mgIlkKk9rZLY3UHygsBSdB9/ftyw==}
+ /@typescript-eslint/typescript-estree@6.11.0(typescript@5.1.6):
+ resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
typescript: '*'
@@ -8489,14 +8476,14 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/types': 6.9.1
- '@typescript-eslint/visitor-keys': 6.9.1
+ '@typescript-eslint/types': 6.11.0
+ '@typescript-eslint/visitor-keys': 6.11.0
debug: 4.3.4(supports-color@8.1.1)
globby: 11.1.0
is-glob: 4.0.3
semver: 7.5.4
- ts-api-utils: 1.0.2(typescript@4.9.5)
- typescript: 4.9.5
+ ts-api-utils: 1.0.2(typescript@5.1.6)
+ typescript: 5.1.6
transitivePeerDependencies:
- supports-color
dev: true
@@ -8585,14 +8572,6 @@ packages:
eslint-visitor-keys: 3.4.3
dev: true
- /@typescript-eslint/visitor-keys@6.9.1:
- resolution: {integrity: sha512-MUaPUe/QRLEffARsmNfmpghuQkW436DvESW+h+M52w0coICHRfD6Np9/K6PdACwnrq1HmuLl+cSPZaJmeVPkSw==}
- engines: {node: ^16.0.0 || >=18.0.0}
- dependencies:
- '@typescript-eslint/types': 6.9.1
- eslint-visitor-keys: 3.4.3
- dev: true
-
/@ungap/structured-clone@1.2.0:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
dev: true
@@ -11878,8 +11857,8 @@ packages:
source-map: 0.6.1
dev: true
- /eslint-config-standard-with-typescript@39.1.1(@typescript-eslint/eslint-plugin@5.62.0)(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.53.0)(typescript@4.9.5):
- resolution: {integrity: sha512-t6B5Ep8E4I18uuoYeYxINyqcXb2UbC0SOOTxRtBSt2JUs+EzeXbfe2oaiPs71AIdnoWhXDO2fYOHz8df3kV84A==}
+ /eslint-config-standard-with-typescript@40.0.0(@typescript-eslint/eslint-plugin@5.62.0)(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.53.0)(typescript@4.9.5):
+ resolution: {integrity: sha512-GXUJcwIXiTQaS3H4etv8a1lejVVdZYaxZNz3g7vt6GoJosQqMTurbmSC4FVGyHiGT/d1TjFr3+47A3xsHhsG+Q==}
peerDependencies:
'@typescript-eslint/eslint-plugin': ^6.4.0
eslint: ^8.0.1
@@ -11894,7 +11873,7 @@ packages:
optional: true
dependencies:
'@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.53.0)(typescript@4.9.5)
- '@typescript-eslint/parser': 6.9.1(eslint@8.53.0)(typescript@4.9.5)
+ '@typescript-eslint/parser': 6.11.0(eslint@8.53.0)(typescript@4.9.5)
eslint: 8.53.0
eslint-config-standard: 17.1.0(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.53.0)
eslint-plugin-import: 2.29.0(@typescript-eslint/parser@5.62.0)(eslint@8.53.0)
From 82b07cfdd7739ec6aba7661e36cf79a33b1bf9d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?=
<12294151+imagoiq@users.noreply.github.com>
Date: Mon, 20 Nov 2023 09:26:39 +0100
Subject: [PATCH 2/8] fix(documentation): edit on Github breaks page without
stories attached (#2267)
Fix Changelog and search for icons page after
https://github.com/swisspost/design-system/pull/2132. If
`storyIdToCSFFile` is not defined for example on docs page without
stories attached, it breaks the whole page.
![image](https://github.com/swisspost/design-system/assets/12294151/0fea4b6e-ee95-4300-8c5c-17c0af0600ae)
---
.changeset/clean-files-wonder.md | 5 +++++
packages/documentation/.storybook/blocks/footer.tsx | 10 ++++++----
packages/documentation/.storybook/blocks/layout.tsx | 6 ++++--
.../src/stories/components/input/input.docs.mdx | 2 ++
.../icons/search-icons/search-icons.blocks.tsx | 1 +
.../stories/icons/search-icons/search-icons.docs.mdx | 3 ++-
.../icons/search-icons/search-icons.stories.ts | 11 +++++++++++
.../src/stories/misc/changelog/changelog.docs.mdx | 5 ++---
.../src/stories/misc/changelog/changelog.stories.ts | 11 +++++++++++
9 files changed, 44 insertions(+), 10 deletions(-)
create mode 100644 .changeset/clean-files-wonder.md
create mode 100644 packages/documentation/src/stories/icons/search-icons/search-icons.stories.ts
create mode 100644 packages/documentation/src/stories/misc/changelog/changelog.stories.ts
diff --git a/.changeset/clean-files-wonder.md b/.changeset/clean-files-wonder.md
new file mode 100644
index 0000000000..a973c09117
--- /dev/null
+++ b/.changeset/clean-files-wonder.md
@@ -0,0 +1,5 @@
+---
+'@swisspost/design-system-documentation': patch
+---
+
+Added attached stories to changelog and search-icons pages to fix "Edit this page on Github" feature.
diff --git a/packages/documentation/.storybook/blocks/footer.tsx b/packages/documentation/.storybook/blocks/footer.tsx
index 4475b58911..75d20668eb 100644
--- a/packages/documentation/.storybook/blocks/footer.tsx
+++ b/packages/documentation/.storybook/blocks/footer.tsx
@@ -35,12 +35,14 @@ function getGitHubUrl(path: String) {
return `${BASEURL}${path.replace(/^\./, '').replace(/\.stories\.ts$/, '.docs.mdx')}`;
}
-export default (params: { pathToStoryFile: String }) => (
+export default (params: { pathToStoryFile?: String }) => (
<>