361 Commits

Author SHA1 Message Date
Norbert de Langen
455e9ef08d
wip 2022-11-11 14:57:01 +01:00
Norbert de Langen
90320c9ebb
Merge branch 'norbert/sb-798-figure-out-plan-for-package-structure-rework' into tech/introduce-preview-api 2022-11-11 13:58:28 +01:00
Ian VanSchooten
30358270d4 Get /lib tests passing 2022-11-10 13:50:43 -05:00
Ian VanSchooten
dfb9384de6 Create separate jest projects in /lib
This allows us to run some projects with node, and others with browser environment
2022-11-10 13:46:42 -05:00
Ian VanSchooten
217d461bc5 Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28
# Conflicts:
#	code/addons/storyshots/storyshots-core/package.json
#	code/lib/api/package.json
#	code/yarn.lock
2022-11-10 08:04:07 -05:00
Norbert de Langen
226f9a4c41
Merge pull request #19623 from storybookjs/tom/sb-850-allow-passing-webview-and-urlstore-to
Core: Allow overriding WebView and UrlStore
2022-11-08 17:18:20 +01:00
Michael Shilman
99fe5792f9 Update git head to 7.0.0-alpha.48, update yarn.lock [ci skip] 2022-11-07 16:00:44 +08:00
Michael Shilman
b58a29b785 v7.0.0-alpha.48 2022-11-07 15:56:24 +08:00
Tom Coleman
bfc21a8537 Actually export PreviewWithSelection 2022-11-04 14:42:55 +11:00
Tom Coleman
2becfed339 Merge remote-tracking branch 'origin/next' into tom/sb-850-allow-passing-webview-and-urlstore-to 2022-11-04 14:03:12 +11:00
Tom Coleman
8290a1678e Move away from abstract classes in favour of interfaces 2022-11-04 13:56:51 +11:00
Tom Coleman
4b481fb3f0 Split PreviewWeb into PreviewWithSelection 2022-11-04 13:54:49 +11:00
Tom Coleman
6d96f7b9a7 Update deprecate 2022-11-04 13:50:57 +11:00
Tom Coleman
a29323d722 Update to renderToCanvas + canvasElement
Update from https://github.com/ComponentDriven/csf/pull/53
2022-11-04 13:48:56 +11:00
Tom Coleman
aa5a2a10dd Fix Linting 2022-11-04 11:54:20 +11:00
Tom Coleman
40e298c14f Merge remote-tracking branch 'origin/next' into tom/sb-888-disable-play-functions-in-docs-if-not 2022-11-04 11:02:15 +11:00
Norbert de Langen
4201357936
wip 2022-11-03 22:12:43 +01:00
Norbert de Langen
e7e4395bc0
wip 2022-11-03 21:54:35 +01:00
Norbert de Langen
ed15e7cfcb
fixes 2022-11-03 19:38:24 +01:00
Norbert de Langen
3a801158ed
step 5 2022-11-03 15:29:51 +01:00
Michael Shilman
b00748bff3 Fix linting 2022-11-03 01:42:48 +08:00
Tom Coleman
95da68c93e Drop second parameter, and read root element type off framework 2022-11-02 12:57:34 +11:00
Tom Coleman
a7f29b71de Add rootElement to Framework and add Framework 2022-11-02 12:48:26 +11:00
Mark
2c509cb2f7 More Angular test fixes and others 2022-11-01 03:08:53 -05:00
Michael Shilman
93e154bc4d Update git head to 7.0.0-alpha.47, update yarn.lock [ci skip] 2022-11-01 12:18:02 +08:00
Michael Shilman
1c706a4a77 v7.0.0-alpha.47 2022-11-01 12:14:02 +08:00
Tom Coleman
816930c28a Fix various missed types 2022-11-01 14:03:55 +11:00
Tom Coleman
cce0e08c7a Rename runPlayFunction -> autoplay 2022-11-01 13:45:57 +11:00
Tom Coleman
16559308b1 Shadow CSF's ProjectAnnotations with our own.
Also clean up sub types
2022-11-01 13:37:05 +11:00
Tom Coleman
2c92e6e02b Rename renderToDOM -> renderToRoot 2022-10-31 12:52:10 +11:00
Tom Coleman
b976e0b398 Merge remote-tracking branch 'origin/next' into tom/sb-850-allow-passing-webview-and-urlstore-to 2022-10-31 12:40:34 +11:00
Tom Coleman
8bcf78db52
Merge pull request #19668 from storybookjs/tom/sb-889-disable-keyboard-shortcuts-during-the
Disable keyboard shortcuts during (docs) play functions and add tests
2022-10-31 12:39:11 +11:00
Michael Shilman
a2174e328c Update git head to 7.0.0-alpha.46, update yarn.lock [ci skip] 2022-10-28 21:32:45 +08:00
Michael Shilman
c64b5be851 v7.0.0-alpha.46 2022-10-28 21:28:37 +08:00
Tom Coleman
e50db9fc26
Update code/lib/preview-web/src/PreviewWeb.tsx 2022-10-28 23:50:22 +11:00
Tom Coleman
ebc28fc898 Add E2E test for keyboard shortcut behaviour 2022-10-28 23:30:52 +11:00
Tom Coleman
d4d7c53f2f
Update code/lib/preview-web/src/render/StoryRender.ts
Co-authored-by: Michael Shilman <shilman@users.noreply.github.com>
2022-10-28 23:29:45 +11:00
Norbert de Langen
4b63eec847
cleanup 2022-10-28 14:17:59 +02:00
Norbert de Langen
4bc93cef89
cleanup 2022-10-28 14:17:02 +02:00
Norbert de Langen
582f3bc477
fix the unit test
Co-authored-by: Tom Coleman <tom@chromatic.com>
2022-10-28 14:16:20 +02:00
Tom Coleman
6e2b837a88 Add stories to check shortcuts aren't called from play 2022-10-28 22:34:25 +11:00
Norbert de Langen
2a970630b6
Merge branch 'next' into tech/bundle-preview-web 2022-10-28 11:41:48 +02:00
Tom Coleman
0d1ce628e0 Don't emit key strokes if *any* play function is in progress 2022-10-28 16:52:37 +11:00
Tom Coleman
7648aefd6f Add unit test for StoryRender runPlayFunction option 2022-10-28 15:35:47 +11:00
Tom Coleman
e6c9cf3ed0 Don't run play functions in docs unless parameters.docs.autoplay is set. 2022-10-28 11:29:40 +11:00
Ian VanSchooten
393a12aac3 Use explicit type imports 2022-10-27 19:33:39 -04:00
Michael Shilman
b60bd552fe Update git head to 7.0.0-alpha.45, update yarn.lock [ci skip] 2022-10-28 05:58:51 +08:00
Michael Shilman
3ef1436611 v7.0.0-alpha.45 2022-10-28 05:55:09 +08:00
Norbert de Langen
e95559ca26
fixes 2022-10-27 23:45:10 +02:00
Norbert de Langen
ffb04a295f
migrate preview-web to tsup 2022-10-27 23:11:18 +02:00