Skip to content

Commit 3b5fa6e

Browse files
chore: update storybook to 9 (#8634)
* Starting point * install state with parcel-bundler-storybook local * renders v3 and s2 * fix lint, multiple copies of storybook, paths * mostly fix the docs pages * fix tests * fix docs build * turn on verdaccio * preemptively fix verdaccio * fix lint - largely undoable when everything moves back to the other repo * Revert "fix docs build" This reverts commit 225c07b. * fix date range picker test locally * fix icon rendering with context * bump to latest release in effort to fix docs addon * partial revert to get icons in buttons working again * remove dead patch * fix sb docs * remove accidental story * fix tailwind starter * try fixing verdaccio * fix docs example build * fix version of plugin * undo webpack plugin for vite app * set a default path for storybook v3 * Revert "turn on verdaccio" This reverts commit a420e84. * chore: storybook 9 upgrade * try fixing docs * fix a11y addon * fix searchwithin stories * fix lint * fix darkmode * fix dark mode * fix tailwind starter * turn on verdaccio * fix install * fix starters some more * attempt to fix docs issue * fix new imports * fix starters typescript same as the tailwind example * fix types in chromatic * fix docs rendering * clarify some code * remove debugging * remove unneeded patches * turn off verdaccio --------- Co-authored-by: Daniel Lu <dl1644@gmail.com>
1 parent 6073f1c commit 3b5fa6e

File tree

167 files changed

+473
-960
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+473
-960
lines changed

.chromatic-fc/custom-addons/chromatic/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {expressThemes, locales, S2ColorThemes, scales, themes} from '../../constants';
2-
import {makeDecorator} from '@storybook/preview-api';
2+
import {makeDecorator} from 'storybook/preview-api';
33
import {Provider, View} from '@adobe/react-spectrum';
44
import {Provider as S2Provider} from '@react-spectrum/s2';
55
import React, {useEffect} from 'react';

.chromatic-fc/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
'../packages/@react-spectrum/s2/chromatic/*.stories.@(js|jsx|mjs|ts|tsx)'
1010
],
1111
addons: process.env.NODE_ENV === 'production' ? [] : [
12-
'@storybook/addon-actions',
12+
'storybook/actions',
1313
'@storybook/addon-a11y'
1414
],
1515
typescript: {

.chromatic-fc/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {addons} from '@storybook/manager-api';
1+
import {addons} from 'storybook/manager-api';
22

33
addons.setConfig({
44
enableShortcuts: false,

.chromatic-fc/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {configureActions} from '@storybook/addon-actions';
1+
import {configureActions} from 'storybook/actions';
22
import React from 'react';
33
import {VerticalCenter} from './layout';
44
import {withChromaticProvider} from './custom-addons/chromatic';

.chromatic/custom-addons/chromatic/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {expressThemes, locales, S2Backgrounds, S2ColorThemes, scales, themes} from '../../constants';
2-
import {makeDecorator} from '@storybook/preview-api';
2+
import {makeDecorator} from 'storybook/preview-api';
33
import {Provider, View} from '@adobe/react-spectrum';
44
import {Provider as S2Provider} from '@react-spectrum/s2';
55
import React, {useEffect} from 'react';

.chromatic/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
'../packages/@react-spectrum/s2/chromatic/*.stories.@(js|jsx|mjs|ts|tsx)'
1010
],
1111
addons: process.env.NODE_ENV === 'production' ? [] : [
12-
'@storybook/addon-actions',
12+
'storybook/actions',
1313
'@storybook/addon-a11y'
1414
],
1515
typescript: {

.chromatic/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {addons} from '@storybook/manager-api';
1+
import {addons} from 'storybook/manager-api';
22

33
addons.setConfig({
44
enableShortcuts: false,

.chromatic/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {configureActions} from '@storybook/addon-actions';
1+
import {configureActions} from 'storybook/actions';
22
import React from 'react';
33
import {VerticalCenter} from './layout';
44
import {withChromaticProvider} from './custom-addons/chromatic';

.circleci/comment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function run() {
4141
break;
4242
}
4343
}
44-
} else if (process.env.CIRCLE_BRANCH === 'main') {
44+
} else if (!process.env.CIRCLE_PULL_REQUEST) {
4545
// If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
4646
await octokit.repos.createCommitComment({
4747
owner: 'adobe',

.storybook-s2/custom-addons/provider/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, {useEffect, useState} from 'react';
2-
import {addons} from '@storybook/preview-api';
3-
import {makeDecorator} from '@storybook/preview-api';
2+
import {addons, makeDecorator} from 'storybook/preview-api';
43
// Importing from src so that HMR works.
54
// Without this, all HMR updates will bubble through the index.ts and up
65
// to the root instead of stopping at the story files.

0 commit comments

Comments
 (0)