41410 Commits

Author SHA1 Message Date
Saunved
96ed73a760 Build addons/a11y with ts-up
+ Ref issue: https://github.com/storybookjs/storybook/issues/18732
2022-07-23 00:05:19 +05:30
Michael Shilman
45a6c255bc
Merge pull request #18740 from storybookjs/yann/sb-414-sb18395-cannot-anchor-to-headings-in-mdx
Addon docs: Pass remarks plugins to mdx loader
2022-07-20 09:58:01 -07:00
Yann Braga
b6b6cf176b fix(addon-docs): pass remark plugins to mdx loader 2022-07-19 17:47:46 +02:00
Norbert de Langen
e9655dfb92
Merge pull request #18598 from storybookjs/drop-emotion-10-types
Future - Drop Emotion 10 types in lib/theming
2022-07-19 14:57:57 +02:00
Norbert de Langen
5571712925
fix 2022-07-19 13:47:35 +02:00
Norbert de Langen
f579da9574
fix 2022-07-19 10:13:37 +02:00
Norbert de Langen
78a5355aff
cleanup 2022-07-19 10:10:46 +02:00
Norbert de Langen
057c40124d
Merge branch 'future/base' into future/drop-emotion-10-types
# Conflicts:
#	lib/blocks/src/blocks/DocsContainer.tsx
#	lib/blocks/src/blocks/SourceContainer.tsx
#	lib/blocks/src/blocks/Subtitle.tsx
#	lib/blocks/src/blocks/Title.tsx
#	lib/blocks/src/components/ColorPalette.tsx
#	lib/blocks/src/components/IconGallery.tsx
#	lib/blocks/src/components/Source.tsx
#	lib/blocks/src/components/Story.tsx
#	lib/components/src/placeholder/placeholder.tsx
#	lib/ui/src/components/preview/toolbar.tsx
#	lib/ui/src/components/preview/utils/types.tsx
#	lib/ui/src/components/sidebar/Sidebar.tsx
#	lib/ui/src/components/sidebar/TreeNode.tsx
2022-07-19 09:58:12 +02:00
Tom Coleman
a800400661
Merge pull request #18736 from storybookjs/remove-react-18-docs
Don't run the docs spec in `react@18`
2022-07-19 15:46:58 +10:00
Tom Coleman
09ae922704 Skip on CRA too 2022-07-19 15:32:51 +10:00
Tom Coleman
e23eed9834 Skip addon-docs spec for react projects 2022-07-19 15:15:03 +10:00
Tom Coleman
59a4a06e8b Skip test on react 2022-07-19 14:41:57 +10:00
Tom Coleman
169fa8dc9a Make the docs spec more consistently fail (react) 2022-07-19 14:41:22 +10:00
Tom Coleman
5d56f4b948
Merge pull request #18730 from storybookjs/add-channel-to-docs-context
Addon-docs: Localize channel to docs context
2022-07-19 14:16:35 +10:00
Tom Coleman
e92522618f
Merge pull request #18708 from storybookjs/tom/sb-453-dependencies-ensure-react-dom-mdx
Addon-docs: Move DocsRenderer back to addon-docs
2022-07-19 14:16:15 +10:00
Tom Coleman
bbecd18dd4 Fix stories that need channel 2022-07-19 13:42:48 +10:00
Tom Coleman
80c2a5cb8e Fixes 2022-07-19 13:41:28 +10:00
Tom Coleman
f16f84a128 Fixes 2022-07-19 13:41:28 +10:00
Tom Coleman
775a947f8b Ensure each preview has its own channel 2022-07-19 13:41:28 +10:00
Tom Coleman
d22f95060a Simplify channel use in blocks 2022-07-19 13:41:28 +10:00
Tom Coleman
7eb2ee398b Don't clean in watch mode.
cc @ndelangen this fixes annoying errors like:

```
error - ../../lib/blocks/dist/index.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/tom/GitHub/storybookjs/storybook/lib/blocks/dist/index.js'
```
2022-07-19 13:41:28 +10:00
Tom Coleman
3ff9b31ce9 Rename parameters to docsParameter as per suggestion 2022-07-19 13:41:08 +10:00
Michael Shilman
2a7778749c
Merge pull request #18709 from storybookjs/tom/sb-465-remove-call-to-addtemplate-from-mdx
Remove `AddContext` from mdx packages
2022-07-18 11:17:28 -07:00
Michael Shilman
514d0256a1
Merge pull request #18729 from storybookjs/tom/sb-327-ui-sort-out-docs_mode
Preview: Simplify docsMode
2022-07-18 11:10:03 -07:00
Norbert de Langen
58acdd0b5b
Merge pull request #18728 from storybookjs/export-other-constants-for-manager
Set other manager-side constants in build
2022-07-18 14:03:44 +02:00
Tom Coleman
107afab05f Fix TS type error 2022-07-18 19:27:27 +10:00
Tom Coleman
950ded8404 Update MDX stories to use MDXProvider 2022-07-18 16:25:41 +10:00
Tom Coleman
efea215526 Pass docsMode from refs too 2022-07-18 12:43:36 +10:00
Tom Coleman
a1fd7e24fa Unused import 2022-07-18 12:41:36 +10:00
Tom Coleman
f630174073 Remove last use of DOCS_MODE 2022-07-18 12:14:49 +10:00
Tom Coleman
285214671d Remove (almost all) references to DOCS_MODE directly 2022-07-18 12:01:23 +10:00
Tom Coleman
b9432bbc31 No need for collapse any more! 2022-07-18 11:19:12 +10:00
Tom Coleman
19adfd52bc Only load docs entries into the hash in docsMode 2022-07-18 11:16:12 +10:00
Tom Coleman
c57358f212 Set other manager-side constants in build 2022-07-18 10:02:30 +10:00
Michael Shilman
3cacf9f1a7
Merge pull request #18723 from storybookjs/future/update-from-next-7-15
Update future/base from next
2022-07-15 11:38:03 -07:00
Michael Shilman
40ccd92403 Merge branch 'next' into future/base 2022-07-15 11:09:15 -07:00
Ian VanSchooten
d1673e197f
Merge pull request #18714 from storybookjs/fix-commonjs-detection
CLI: Fix detection of type: module when initializing storybook
2022-07-15 08:47:31 -04:00
Norbert de Langen
7cad10bc20
Merge pull request #17498 from soso-15315/feature/15509
UI: Include full URL in the "Copy Canvas Link" button
2022-07-15 09:47:08 +02:00
Norbert de Langen
c26e897bf3
Merge pull request #18582 from storybookjs/chore/upgrade-testing-lib-examples
chore: upgrade @storybook/jest in examples
2022-07-15 09:46:33 +02:00
Tom Coleman
a90ca081c1 Fix unsued imports 2022-07-15 17:31:17 +10:00
Tom Coleman
59a2892b19 Export DocsRenderer from addon-docs 2022-07-15 10:31:26 +10:00
Tom Coleman
22ffd7d641 No longer reset components in Story block
It shouldn't be necessary as a different `React` instance renders the user's component.
2022-07-15 10:31:26 +10:00
Tom Coleman
756f74cec0 Fixes 2022-07-15 10:31:25 +10:00
Tom Coleman
d98b616979 Move MDX dependency from blocks and cleanup theme 2022-07-15 10:30:57 +10:00
Tom Coleman
e21f96e445 Move DocsRenderer back to addon-docs 2022-07-15 10:30:02 +10:00
Ian VanSchooten
653a9ffe65 Fix detection of type: module when initializing storybook 2022-07-14 09:43:01 -04:00
Tom Coleman
ae12b62c9b Update mdx1 2022-07-14 21:48:08 +10:00
Michael Shilman
64ede83903
Merge pull request #17430 from huyenltnguyen/fix/toolbars
Toolbars: Fall back to name if both title and icon are not specified
2022-07-14 04:15:55 -07:00
Michael Shilman
c803300443
Merge pull request #18693 from jsflor/patch-2
CLI: Fix addons register in RN template
2022-07-14 04:13:59 -07:00
Tom Coleman
e6d1493be8 Update to mdx-csf canaries 2022-07-14 16:02:07 +10:00