526 Commits

Author SHA1 Message Date
Tom Coleman
5407c0c6e2
Merge pull request #19071 from storybookjs/tom/sb-699-sb19015-70-vite-storybook-crashes-when
Ensure if a docs render is torndown during preparation, it throws
2022-09-02 14:26:29 +10:00
Michael Shilman
e1646400e4
Revert "chore: rename prepare script to prep" 2022-09-02 11:26:42 +08:00
Tom Coleman
f84161b14b Fix jest issues 2022-09-02 13:08:10 +10:00
Norbert de Langen
9d198e55fa
Merge pull request #19077 from storybookjs/chore/rename-prepare
chore: rename prepare script to prep
2022-09-01 21:16:33 +02:00
Michael Shilman
bb24ba7d94 Update git head to 7.0.0-alpha.28, update yarn.lock [ci skip] 2022-09-02 00:56:18 +08:00
Michael Shilman
941b85ce04 v7.0.0-alpha.28 2022-09-02 00:52:03 +08:00
Michael Shilman
ae6940800f Update root, peer deps, version.ts/json to 7.0.0-alpha.28 [ci skip] 2022-09-02 00:37:58 +08:00
Michael Shilman
3296bad121
Merge pull request #19026 from storybookjs/vite-autoconfig
Vite: Automatically use vite.config.js
2022-09-02 00:34:59 +08:00
Michael Shilman
b1e3b16e35 CLI: Fix race condition in sb init 2022-09-02 00:07:15 +08:00
Katerina Skroumpelou
5c5367b33c chore: rename prepare script to prep 2022-09-01 15:56:01 +03:00
Ian VanSchooten
b110c93cf5 Merge remote-tracking branch 'origin/tom/sb-721-ul-flashes-when-editing-a-csf-file' into vite-autoconfig 2022-09-01 08:33:26 -04:00
Michael Shilman
251144f797 Examples: Turn of type checking in doc-blocks 2022-09-01 19:35:02 +08:00
Norbert de Langen
cddd1957bd
disable the flaky smoke test for now 2022-09-01 11:51:12 +02:00
Tom Coleman
e000926425 Merge remote-tracking branch 'origin/next' into tom/sb-721-ul-flashes-when-editing-a-csf-file 2022-09-01 17:34:57 +10:00
Tom Coleman
40036eb8a8 Merge remote-tracking branch 'origin/next' into tom/sb-699-sb19015-70-vite-storybook-crashes-when 2022-09-01 17:34:28 +10:00
Tom Coleman
787c394ab7 Update to new TS reference format (?) 2022-09-01 17:32:22 +10:00
Tom Coleman
8c9458c530 Add some basic unit tests for renders 2022-09-01 17:17:21 +10:00
Tom Coleman
05e51a1ade Ensure if a docs render is torndown during preparation, it throws.
Implementing https://github.com/storybookjs/storybook/pull/17599 for DocsRenderrs
2022-09-01 16:56:28 +10:00
Tom Coleman
57457d6079 Ensure we retained prepared-ness when the index HMRs 2022-09-01 14:01:07 +10:00
Ian VanSchooten
c90f9b4f6b Merge remote-tracking branch 'origin/next' into vite-autoconfig
# Conflicts:
#	code/lib/builder-vite/src/vite-config.ts
2022-08-31 23:05:28 -04:00
Ian VanSchooten
715b22b0b0 Remove unused import 2022-08-31 10:59:59 -04:00
Ian VanSchooten
0aca22eb32 Extract getFrameworkName to core-common 2022-08-31 08:24:45 -04:00
Ian VanSchooten
9e017a48cd Remove unused types 2022-08-31 08:24:45 -04:00
Ian VanSchooten
872b1dfc05 Fix framework option checks 2022-08-31 08:24:45 -04:00
Michael Shilman
e9e10ee1f1
Merge pull request #19048 from clintandrewhall/preview-web-dep-6.5
Core: Fix WebProjectAnnotations export in preview-web for back-compat
2022-08-31 13:32:36 +08:00
Ian VanSchooten
e225946377 Add excludes for non-react framework react plugin
We just need it for processing mdx, it doesn't need to hmr anything.
2022-08-30 23:24:52 -04:00
Ian VanSchooten
46fe3ea3fb Remove duplicate vue and svelte plugins
It's expected that the original vite.config.js should have one, and we're using that now.
2022-08-30 23:24:52 -04:00
Ian VanSchooten
5e1b062efb Do not add vite-plugin-svelte 2022-08-30 23:24:52 -04:00
Ian VanSchooten
139bfdc901 Remove unused variable 2022-08-30 23:24:52 -04:00
Ian VanSchooten
b2f61d7826 Remove hmr accept calls from story files 2022-08-30 23:24:52 -04:00
Ian VanSchooten
9647bf2d23 Vite: use vite.config.js as config base 2022-08-30 23:24:52 -04:00
Michael Shilman
ac2182761a Update git head to 7.0.0-alpha.27, update yarn.lock [ci skip] 2022-08-31 11:03:14 +08:00
Michael Shilman
3e33f0709d v7.0.0-alpha.27 2022-08-31 10:58:47 +08:00
Michael Shilman
06bcf80248 Update root, peer deps, version.ts/json to 7.0.0-alpha.27 [ci skip] 2022-08-31 10:22:09 +08:00
Michael Shilman
541f40db03
Merge pull request #19045 from storybookjs/tom/sb-697-investigate-chromatic-issues-on-next
Core: Restore `/preview` etc package exports; return unresolved path from presets.
2022-08-31 10:19:21 +08:00
Ian VanSchooten
fed59c8aec Merge remote-tracking branch 'origin/next' into preview-web-dep-6.5 2022-08-30 20:36:59 -04:00
Michael Shilman
b63d349aa8
Merge pull request #19047 from mandarini/fix/update-storybook-config-type
Core: Add previewHead and previewBody to StorybookConfig interface
2022-08-30 23:29:45 +08:00
Ian VanSchooten
691bfa17fb Merge remote-tracking branch 'origin/next' into preview-web-dep-6.5 2022-08-30 09:51:22 -04:00
Tom Coleman
2e50d6346a Merge remote-tracking branch 'origin/next' into tom/sb-697-investigate-chromatic-issues-on-next 2022-08-30 23:30:56 +10:00
Tom Coleman
9d689a86b6 Restore svelte exports properly 2022-08-30 23:00:10 +10:00
Tom Coleman
5aadc0fd61 Update comments 2022-08-30 22:29:58 +10:00
Tom Coleman
bb294e9b84 Fix typo 2022-08-30 22:28:48 +10:00
Tom Coleman
c29a9129ef Remove spurious log 2022-08-30 22:26:24 +10:00
Tom Coleman
e3f0e26b3b Use pseudo absolute exports for preview/manager entries 2022-08-30 22:25:21 +10:00
Michael Shilman
8a8d8fac93
Apply suggestions from code review 2022-08-30 20:11:06 +08:00
Norbert de Langen
530d297b0e
Merge branch 'next' into tech/fix-bench
# Conflicts:
#	code/yarn.lock
2022-08-30 11:00:59 +02:00
Katerina Skroumpelou
3b0a999df9 fix: add previewHead and previewBody to StorybookConfig interface 2022-08-30 11:34:29 +03:00
Tom Coleman
7eae837fcc Revert changes to exports fields of addons/renderers
All of Node, Webpack and Vite can `import('<pkg>/preview')` etc, as long as the `exports` map is there and setup like so. If the `exports` map is not there, then they can import `node_modules/<pkg>/preview.js` instead.

The issue occurred when an export map existed but Vite tried to import a path that wasn't defined in there.
2022-08-30 14:46:23 +10:00
Tom Coleman
57d5b1ae3b Don't return resolved path from browser preset entries
Instead, just return the import path unresolved
2022-08-30 14:44:19 +10:00
Clint Andrew Hall
64a729c82d Add type export for storybookjs/testing-react#106 2022-08-29 12:14:12 -05:00