Commit 83ceac1
authored
chore: update storybook and stories (#2007)
* chore(deps): update storybook/x
* chore: migrate addons to .storybook/main.js
* chore: migrate storybook config to .storybook/main.js
* chore(deps): fix storybook postCSS
* chore(deps): migrate static-dir flag to main.js
@see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated---static-dir-cli-flag
* chore: ignore storybook-static/
* chore(deps): use storybook-CRA dep
This addresses the following warning when running `npm run storybook`:
WARN Storybook support for Create React App is now a separate preset.
WARN To use the new preset, install `@storybook/preset-create-react-app` and add it to the list of `addons` in your `.storybook/main.js` config file.
WARN The built-in preset has been disabled in Storybook 6.0.
* chore(deps): use webpack5 with storybook
@see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#webpack-5
* fix: storybook webpack errors
Resolves the following error:
Error: NormalModuleFactory.beforeResolve (IgnorePlugin) is no longer a
waterfall hook, but a bailing hook instead. Do not return the passed
object, but modify it instead. Returning false will ignore the request
and results in no module created.
* fix: npm run storybook succeeds
but displays error in built website
* fix: Support CSFv3 storybook components
@see https://storybook.js.org/docs/react/api/csf
* chore: update Cid.stories.js
* fix: default storybook argTypes
* chore: update JsonEditor.stories.js
* chore: update AddFilesInfo.stories.js
* fix: Cid.stories.js
* chore: update info-boxes/**/*.stories.js
* update: breadcrumbs.stories.js
* chore: run storiesOf migration script
* Ran `git ls-files | grep 'stories.js' | xargs -n1 -- npx --yes sb migrate storiesof-to-csf --glob`
* Normalized default stories exports
* Added jsdoc comment for default exports
* export default as object literal
* chore: add jsdoc for story exports
* chore: update eslint rules
* disable default export rule for stories
* enable react/prop-types validation warning
* feat: Migrate FilesList.stories
* chore: update .storybook/main.js
* fix: mark PinningModal file prop as required
* feat: Finish migrating PinningModal story
* fix: remove countly.init error for storybook
* feat: Migrate remaining storybook stories
* fix: npm install and build
* fix: eslint should pass CI
* chore: fix typecheck failures
* fix: run @storybook/cli migrate storiesof-to-csf
Migrated leftover storiesOf stories with:
`npx @storybook/cli migrate storiesof-to-csf -g '**/(Radio|PublishModal).stories.js'`
* fix: run eslint --fix
* fix: build-storybook warnings & errors
* fix: PublishModal.stories.js renders properly
* feat: add test-storybook to CI
* chore: add test-storybook.yml1 parent 3d04988 commit 83ceac1
File tree
53 files changed
+82741
-65050
lines changed- .github/workflows
- .storybook
- src
- bundles
- files
- components
- button
- checkbox
- cid
- identicon
- language-selector
- notify
- pinning-manager
- progress-bar
- radio
- files
- breadcrumbs
- explore-form
- file-import-status
- files-list
- info-boxes
- add-files-info
- companion-info
- modals
- add-by-path-modal
- new-folder-modal
- pinning-modal
- publish-modal
- remove-modal
- rename-modal
- selected-actions
- icons
- loader
- settings
- editor
- status
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
53 files changed
+82741
-65050
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
13 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| |||
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
174 | | - | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments