Skip to content

Commit

Permalink
chore(deps): update storybook monorepo to v8 (major) (#2472)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeremias Peier <[email protected]>
  • Loading branch information
renovate[bot] and jeripeierSBB authored Mar 14, 2024
1 parent 7237433 commit dec7232
Show file tree
Hide file tree
Showing 20 changed files with 796 additions and 1,346 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StorybookConfig } from '@storybook/web-components-vite';
import { BuildOptions, UserConfig, mergeConfig } from 'vite';
import { type BuildOptions, type UserConfig, mergeConfig } from 'vite';
import turbosnap from 'vite-plugin-turbosnap';

const config: StorybookConfig = {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addons } from '@storybook/addons';
import { addons } from '@storybook/manager-api';
import theme from './theme';

addons.setConfig({
Expand Down
2 changes: 1 addition & 1 deletion docs/DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ You can find a list of all branches along with their Netlify deployment URL here
| @storybook/addon-links | link stories together to build demos and prototypes with your UI components | https://github.com/storybookjs/storybook/tree/master/addons/actions |
| @storybook/blocks | storybook doc blocks | https://github.com/storybookjs/storybook/tree/next/code/addons/links |
| @storybook/builder-vite | plugin to run and build storybooks with vite | https://github.com/storybookjs/storybook/tree/next/code/builders/builder-vite/#readme |
| @storybook/testing-library | instrumented version of testing library for storybook interactions | https://github.com/storybookjs/testing-library#readme |
| @storybook/test | instrumented version of testing library for storybook interactions | https://github.com/storybookjs/testing-library#readme |
| @storybook/web-components | storybook web-components renderer | https://github.com/storybookjs/storybook/tree/next/code/renderers/web-components |
| @storybook/web-components-vite | storybook for web-components and vite: develop web components in isolation with hot reloading | https://github.com/storybookjs/storybook/tree/next/code/frameworks/web-components-vite |
| @types/glob | TypeScript definitions for glob | https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/glob |
Expand Down
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,15 @@
"@open-wc/lit-helpers": "0.7.0",
"@open-wc/testing": "4.0.0",
"@sbb-esta/lyne-design-tokens": "0.4.1",
"@storybook/addon-a11y": "7.6.17",
"@storybook/addon-actions": "7.6.17",
"@storybook/addon-essentials": "7.6.17",
"@storybook/addon-interactions": "7.6.17",
"@storybook/addon-links": "7.6.17",
"@storybook/blocks": "7.6.17",
"@storybook/builder-vite": "7.6.17",
"@storybook/testing-library": "0.2.2",
"@storybook/web-components": "7.6.17",
"@storybook/web-components-vite": "7.6.17",
"@storybook/addon-a11y": "8.0.0",
"@storybook/addon-actions": "8.0.0",
"@storybook/addon-essentials": "8.0.0",
"@storybook/addon-interactions": "8.0.0",
"@storybook/addon-links": "8.0.0",
"@storybook/blocks": "8.0.0",
"@storybook/test": "8.0.0",
"@storybook/web-components": "8.0.0",
"@storybook/web-components-vite": "8.0.0",
"@types/glob": "8.1.0",
"@types/mocha": "^10.0.4",
"@types/node": "20.11.27",
Expand Down Expand Up @@ -111,7 +110,7 @@
"sass": "1.72.0",
"sinon": "17.0.1",
"standard-version": "^9.5.0",
"storybook": "7.6.17",
"storybook": "8.0.0",
"stylelint": "16.2.1",
"stylelint-config-prettier-scss": "1.0.0",
"stylelint-config-standard-scss": "12.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/autocomplete/autocomplete.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Meta,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Meta,
Expand Down
2 changes: 1 addition & 1 deletion src/components/datepicker/datepicker/datepicker.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Args,
Expand Down
2 changes: 1 addition & 1 deletion src/components/dialog/dialog.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Meta,
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/header/header.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Meta,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type { Meta, StoryObj, ArgTypes, Args, StoryContext } from '@storybook/web-components';
import isChromatic from 'chromatic';
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/menu/menu.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Meta,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userEvent, waitFor, within } from '@storybook/testing-library';
import { userEvent, waitFor, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type { Meta, StoryObj, ArgTypes, Args } from '@storybook/web-components';
import isChromatic from 'chromatic';
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/navigation/navigation.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, waitFor, within } from '@storybook/testing-library';
import { userEvent, waitFor, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Meta,
Expand Down
2 changes: 1 addition & 1 deletion src/components/popover/popover/popover.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Args,
Expand Down
2 changes: 1 addition & 1 deletion src/components/select/select.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Meta,
Expand Down
2 changes: 1 addition & 1 deletion src/components/skiplink-list/skiplink-list.stories.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { userEvent, within } from '@storybook/testing-library';
import { userEvent, within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type { Meta, StoryObj, ArgTypes, Args, StoryContext } from '@storybook/web-components';
import isChromatic from 'chromatic';
Expand Down
2 changes: 1 addition & 1 deletion src/components/toast/toast.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { withActions } from '@storybook/addon-actions/decorator';
import { within } from '@storybook/testing-library';
import { within } from '@storybook/test';
import type { InputType } from '@storybook/types';
import type {
Meta,
Expand Down
2 changes: 1 addition & 1 deletion src/storybook/testing/wait-for-components-ready.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { waitFor } from '@storybook/testing-library';
import { waitFor } from '@storybook/test';

export async function waitForComponentsReady(checkFirstRenderingDone: () => any): Promise<void> {
await new Promise<void>((resolve: () => void) => {
Expand Down
2 changes: 1 addition & 1 deletion src/storybook/testing/wait-for-stable-position.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { waitFor } from '@storybook/testing-library';
import { waitFor } from '@storybook/test';

export async function waitForStablePosition(
elementCallback: () => HTMLElement | Promise<HTMLElement>,
Expand Down
Loading

0 comments on commit dec7232

Please sign in to comment.