From b03e3e747ba6400f50991bebe8017e007102cc65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?= <12294151+imagoiq@users.noreply.github.com> Date: Tue, 24 Oct 2023 15:31:51 +0200 Subject: [PATCH] fix(documentation): Remove unused a11y addon (#2100) As far as I know, the axe a11y addon for storybook is not used. This one of the biggest chunks so we should remove it. ![idea64_QyiwWpHgP2](https://github.com/swisspost/design-system/assets/12294151/62e43404-7c57-4760-bea0-ed479a1ca5ea) --- packages/documentation/.storybook/main.ts | 1 - packages/documentation/package.json | 1 - pnpm-lock.yaml | 50 ----------------------- 3 files changed, 52 deletions(-) diff --git a/packages/documentation/.storybook/main.ts b/packages/documentation/.storybook/main.ts index d87450c157..3b0f954037 100644 --- a/packages/documentation/.storybook/main.ts +++ b/packages/documentation/.storybook/main.ts @@ -24,7 +24,6 @@ const config: StorybookConfig = { }, '@storybook/addon-links', '@storybook/addon-designs', - '@storybook/addon-a11y', '@geometricpanda/storybook-addon-badges', '@pxtrn/storybook-addon-docs-stencil', ], diff --git a/packages/documentation/package.json b/packages/documentation/package.json index 9d6e784251..994e1482e3 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -38,7 +38,6 @@ "@percy/cli": "1.27.2", "@percy/cypress": "3.1.2", "@pxtrn/storybook-addon-docs-stencil": "6.4.1", - "@storybook/addon-a11y": "7.4.5", "@storybook/addon-designs": "7.0.5", "@storybook/addon-essentials": "7.4.5", "@storybook/addon-links": "7.4.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 33d0ea49ac..66cbf85f0f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -518,9 +518,6 @@ importers: '@pxtrn/storybook-addon-docs-stencil': specifier: 6.4.1 version: 6.4.1(react-dom@18.2.0)(react@18.2.0) - '@storybook/addon-a11y': - specifier: 7.4.5 - version: 7.4.5(@types/react@18.2.22)(react-dom@18.2.0)(react@18.2.0) '@storybook/addon-designs': specifier: 7.0.5 version: 7.0.5(@storybook/addon-docs@7.4.5)(@storybook/addons@7.4.5)(@storybook/components@7.4.5)(@storybook/manager-api@7.4.5)(@storybook/preview-api@7.4.5)(@storybook/theming@7.4.5)(react-dom@18.2.0)(react@18.2.0) @@ -6733,37 +6730,6 @@ packages: '@stencil/core': 3.4.2 dev: false - /@storybook/addon-a11y@7.4.5(@types/react@18.2.22)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-7W8fjCdmwX4zlDM4jpzVKNgelWSqbYr3cH834pqOFAkyiyNVIsNRPQBgSwkkljgz0uAsz8nFCRFK3Oo1btl6Yg==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=18 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=18 - peerDependenciesMeta: - react: - optional: true - react-dom: - optional: true - dependencies: - '@storybook/addon-highlight': 7.4.5 - '@storybook/channels': 7.4.5 - '@storybook/client-logger': 7.4.5 - '@storybook/components': 7.4.5(@types/react@18.2.22)(react-dom@18.2.0)(react@18.2.0) - '@storybook/core-events': 7.4.5 - '@storybook/global': 5.0.0 - '@storybook/manager-api': 7.4.5(react-dom@18.2.0)(react@18.2.0) - '@storybook/preview-api': 7.4.5 - '@storybook/theming': 7.4.5(react-dom@18.2.0)(react@18.2.0) - '@storybook/types': 7.4.5 - axe-core: 4.7.1 - lodash: 4.17.21 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - react-resize-detector: 7.1.2(react-dom@18.2.0)(react@18.2.0) - transitivePeerDependencies: - - '@types/react' - - '@types/react-dom' - dev: true - /@storybook/addon-actions@7.4.5(@types/react@18.2.22)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-FkjJWmPN/+duLSkRwfa2bwlwjKfY6yCXYn7CRzn3rb64B8f50NB79zAgVLHjkJh9l6T3DIlWtol6vqPHj1aRpw==} peerDependencies: @@ -9405,11 +9371,6 @@ packages: resolution: {integrity: sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==} dev: true - /axe-core@4.7.1: - resolution: {integrity: sha512-sCXXUhA+cljomZ3ZAwb8i1p3oOlkABzPy08ZDAoGcYuvtBPlQ1Ytde129ArXyHWDhfeewq7rlx9F+cUx2SSlkg==} - engines: {node: '>=4'} - dev: true - /axios@0.27.2(debug@4.3.4): resolution: {integrity: sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==} dependencies: @@ -19299,17 +19260,6 @@ packages: use-sidecar: 1.1.2(@types/react@18.2.22)(react@18.2.0) dev: true - /react-resize-detector@7.1.2(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-zXnPJ2m8+6oq9Nn8zsep/orts9vQv3elrpA+R8XTcW7DVVUJ9vwDwMXaBtykAYjMnkCIaOoK9vObyR7ZgFNlOw==} - peerDependencies: - react: ^16.0.0 || ^17.0.0 || ^18.0.0 || >=18 - react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || >=18 - dependencies: - lodash: 4.17.21 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - dev: true - /react-style-singleton@2.2.1(@types/react@18.2.22)(react@18.2.0): resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==} engines: {node: '>=10'}