Skip to content

Commit

Permalink
chore(deps): Upgrade Storybook and align jest-environment-jsdom dep…
Browse files Browse the repository at this point in the history
…endency (#1467)
  • Loading branch information
tassoevan authored Oct 22, 2024
1 parent 24843a2 commit 938c110
Show file tree
Hide file tree
Showing 16 changed files with 1,195 additions and 2,094 deletions.
725 changes: 367 additions & 358 deletions .yarn/releases/yarn-4.5.0.cjs → .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.0.cjs
yarnPath: .yarn/releases/yarn-4.5.1.cjs
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@
},
"volta": {
"node": "22.9.0",
"yarn": "4.5.0"
"yarn": "4.5.1"
},
"packageManager": "yarn@4.5.0",
"packageManager": "yarn@4.5.1",
"eslintConfig": {
"extends": "@rocket.chat/eslint-config-alt"
},
"resolutions": {
"jsdom": "25.0.1"
}
}
1 change: 1 addition & 0 deletions packages/fuselage-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@types/use-sync-external-store": "~0.0.3",
"eslint": "~8.45.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"lint-all": "workspace:~",
"npm-run-all": "^4.1.5",
"prettier": "~2.8.7",
Expand Down
14 changes: 10 additions & 4 deletions packages/fuselage-toastbar/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { dirname, join } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

const config: StorybookConfig = {
addons: [
'@storybook/addon-essentials',
'storybook-dark-mode',
'@storybook/addon-webpack5-compiler-swc',
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('storybook-dark-mode'),
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
],

stories: ['../src/**/*.stories.tsx', '../src/**/stories.tsx'],

framework: {
name: '@storybook/react-webpack5',
name: getAbsolutePath('@storybook/react-webpack5'),
options: {},
},
swc: () => ({
Expand All @@ -31,3 +33,7 @@ const config: StorybookConfig = {
};

export default config;

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')));
}
11 changes: 6 additions & 5 deletions packages/fuselage-toastbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@
"@rocket.chat/layout": "workspace:~",
"@rocket.chat/prettier-config": "workspace:~",
"@rocket.chat/styled": "workspace:~",
"@storybook/addon-essentials": "~8.2.7",
"@storybook/addon-essentials": "~8.3.6",
"@storybook/addon-webpack5-compiler-swc": "~1.0.5",
"@storybook/react": "~8.2.7",
"@storybook/react-webpack5": "~8.2.7",
"@storybook/theming": "~8.2.7",
"@storybook/preview-api": "~8.3.6",
"@storybook/react": "~8.3.6",
"@storybook/react-webpack5": "~8.3.6",
"@storybook/theming": "~8.3.6",
"@testing-library/jest-dom": "~6.4.8",
"@testing-library/react": "~16.0.0",
"@testing-library/user-event": "~14.5.2",
Expand All @@ -71,7 +72,7 @@
"prettier": "~2.8.7",
"react-dom": "~17.0.2",
"rimraf": "~3.0.2",
"storybook": "~8.2.7",
"storybook": "~8.3.6",
"storybook-dark-mode": "~4.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
Expand Down
20 changes: 13 additions & 7 deletions packages/fuselage/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { dirname, join } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
addons: [
'@storybook/addon-a11y',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-dark-mode',
'@storybook/addon-mdx-gfm',
'@storybook/addon-webpack5-compiler-swc',
getAbsolutePath('@storybook/addon-a11y'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-interactions'),
getAbsolutePath('storybook-dark-mode'),
getAbsolutePath('@storybook/addon-mdx-gfm'),
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
{
name: '@storybook/addon-styling-webpack',

Expand Down Expand Up @@ -69,7 +71,7 @@ export default {
stories: ['../src/**/*.stories.{mdx,js,tsx}', '../src/**/*.mdx'],

framework: {
name: '@storybook/react-webpack5',
name: getAbsolutePath('@storybook/react-webpack5'),
options: {},
},
swc: () => ({
Expand All @@ -88,3 +90,7 @@ export default {
reactDocgen: 'react-docgen-typescript',
},
} satisfies StorybookConfig;

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')));
}
2 changes: 1 addition & 1 deletion packages/fuselage/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ export default {
},
],
tags: ['autodocs'],
} as Preview;
} satisfies Preview;
24 changes: 13 additions & 11 deletions packages/fuselage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,19 @@
"@rocket.chat/fuselage-polyfills": "workspace:~",
"@rocket.chat/icons": "workspace:~",
"@rocket.chat/prettier-config": "workspace:~",
"@storybook/addon-a11y": "~8.2.7",
"@storybook/addon-essentials": "~8.2.7",
"@storybook/addon-interactions": "~8.2.7",
"@storybook/addon-links": "~8.2.7",
"@storybook/addon-mdx-gfm": "~8.2.7",
"@storybook/addon-a11y": "~8.3.6",
"@storybook/addon-essentials": "~8.3.6",
"@storybook/addon-interactions": "~8.3.6",
"@storybook/addon-links": "~8.3.6",
"@storybook/addon-mdx-gfm": "~8.3.6",
"@storybook/addon-styling-webpack": "~1.0.0",
"@storybook/addon-webpack5-compiler-swc": "~1.0.5",
"@storybook/blocks": "~8.2.7",
"@storybook/react": "~8.2.7",
"@storybook/react-webpack5": "~8.2.7",
"@storybook/test": "~8.2.7",
"@storybook/theming": "~8.2.7",
"@storybook/blocks": "~8.3.6",
"@storybook/preview-api": "~8.3.6",
"@storybook/react": "~8.3.6",
"@storybook/react-webpack5": "~8.3.6",
"@storybook/test": "~8.3.6",
"@storybook/theming": "~8.3.6",
"@testing-library/jest-dom": "~6.4.8",
"@testing-library/react": "~16.0.0",
"@testing-library/user-event": "~14.5.2",
Expand All @@ -103,6 +104,7 @@
"eslint-plugin-mdx": "~2.0.5",
"jest": "~29.7.0",
"jest-axe": "~8.0.0",
"jest-environment-jsdom": "~29.7.0",
"lint-all": "workspace:~",
"mini-css-extract-plugin": "~2.7.6",
"normalize.css": "^8.0.1",
Expand All @@ -123,7 +125,7 @@
"rimraf": "^3.0.2",
"sass": "~1.62.0",
"sass-loader": "~13.2.2",
"storybook": "~8.2.7",
"storybook": "~8.3.6",
"storybook-dark-mode": "~4.0.2",
"style-loader": "~3.3.2",
"stylelint": "~15.4.0",
Expand Down
14 changes: 10 additions & 4 deletions packages/layout/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import { dirname, join } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
addons: [
'@storybook/addon-essentials',
'storybook-dark-mode',
'@storybook/addon-webpack5-compiler-swc',
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('storybook-dark-mode'),
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
],
logLevel: 'silent',

stories: ['../src/**/*.stories.tsx', '../src/**/stories.tsx'],

framework: {
name: '@storybook/react-webpack5',
name: getAbsolutePath('@storybook/react-webpack5'),
options: {},
},
swc: () => ({
Expand All @@ -30,3 +32,7 @@ export default {
reactDocgen: 'react-docgen-typescript',
},
} satisfies StorybookConfig;

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')));
}
12 changes: 7 additions & 5 deletions packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,26 @@
"@rocket.chat/fuselage": "workspace:~",
"@rocket.chat/fuselage-tokens": "workspace:~",
"@rocket.chat/prettier-config": "workspace:~",
"@storybook/addon-essentials": "~8.2.7",
"@storybook/addon-essentials": "~8.3.6",
"@storybook/addon-webpack5-compiler-swc": "~1.0.5",
"@storybook/react": "~8.2.7",
"@storybook/react-webpack5": "~8.2.7",
"@storybook/theming": "~8.2.7",
"@storybook/preview-api": "~8.3.6",
"@storybook/react": "~8.3.6",
"@storybook/react-webpack5": "~8.3.6",
"@storybook/theming": "~8.3.6",
"@types/jest": "~29.5.12",
"@types/react": "~17.0.80",
"@types/react-dom": "~17.0.25",
"eslint": "~8.45.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"lint-all": "workspace:~",
"npm-run-all": "^4.1.5",
"prettier": "~2.8.7",
"react": "~17.0.2",
"react-dom": "~17.0.2",
"react-i18next": "~11.15.4",
"rimraf": "~3.0.2",
"storybook": "~8.2.7",
"storybook": "~8.3.6",
"storybook-dark-mode": "~4.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
Expand Down
1 change: 1 addition & 0 deletions packages/logo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"build-logo": "workspace:~",
"eslint": "~8.45.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"lint-all": "workspace:~",
"npm-run-all": "^4.1.5",
"prettier": "~2.8.7",
Expand Down
16 changes: 11 additions & 5 deletions packages/onboarding-ui/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import { dirname, join } from 'path';

import type { StorybookConfig } from '@storybook/react-webpack5';

export default {
addons: [
'@storybook/addon-a11y',
'@storybook/addon-essentials',
'storybook-dark-mode',
'@storybook/addon-webpack5-compiler-swc',
getAbsolutePath('@storybook/addon-a11y'),
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('storybook-dark-mode'),
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
],

stories: ['../src/**/*.stories.tsx', '../src/**/stories.tsx'],

framework: {
name: '@storybook/react-webpack5',
name: getAbsolutePath('@storybook/react-webpack5'),
options: {},
},
swc: () => ({
Expand All @@ -30,3 +32,7 @@ export default {
reactDocgen: 'react-docgen-typescript',
},
} satisfies StorybookConfig;

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, 'package.json')));
}
13 changes: 7 additions & 6 deletions packages/onboarding-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,27 @@
"@rocket.chat/logo": "workspace:~",
"@rocket.chat/prettier-config": "workspace:~",
"@rocket.chat/styled": "workspace:~",
"@storybook/addon-a11y": "~8.2.7",
"@storybook/addon-essentials": "~8.2.7",
"@storybook/addon-a11y": "~8.3.6",
"@storybook/addon-essentials": "~8.3.6",
"@storybook/addon-webpack5-compiler-swc": "~1.0.5",
"@storybook/react": "~8.2.7",
"@storybook/react-webpack5": "~8.2.7",
"@storybook/theming": "~8.2.7",
"@storybook/react": "~8.3.6",
"@storybook/react-webpack5": "~8.3.6",
"@storybook/theming": "~8.3.6",
"@types/jest": "~29.5.12",
"@types/react": "~17.0.80",
"@types/react-dom": "~17.0.25",
"countries-list": "^2.6.1",
"eslint": "~8.45.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"lint-all": "workspace:~",
"npm-run-all": "^4.1.5",
"prettier": "~2.8.7",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "~11.15.7",
"rimraf": "^3.0.2",
"storybook": "~8.2.7",
"storybook": "~8.3.6",
"storybook-dark-mode": "~4.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
Expand Down
1 change: 1 addition & 0 deletions packages/styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@types/jest": "~29.5.12",
"eslint": "~8.45.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"lint-all": "workspace:~",
"npm-run-all": "^4.1.5",
"prettier": "~2.8.7",
Expand Down
Loading

0 comments on commit 938c110

Please sign in to comment.