Tom Coleman
200d4fe552
Clean up tests for changing preparing state
2021-11-11 21:51:18 +11:00
Tom Coleman
2f1a732da0
Ensure we clear loading state if story is unchanged
2021-11-11 17:35:41 +11:00
Tom Coleman
3f27619676
Hooked up preparing story/docs views
2021-11-09 17:36:11 +11:00
Tom Coleman
b09fa6eec6
Show "Loading..." while switching between async stories
2021-11-09 17:36:11 +11:00
Tom Coleman
f1ae090a8d
Add stories + special handling for story/docs loading
2021-11-09 17:13:29 +11:00
Michael Shilman
103256a5b4
Update git head to 6.4.0-beta.28, update yarn.lock
2021-11-05 01:43:20 +08:00
Michael Shilman
72316abb83
v6.4.0-beta.28
2021-11-05 01:40:01 +08:00
Michael Shilman
5943282e2a
Update git head to 6.4.0-beta.27, update yarn.lock
2021-11-04 18:37:32 +08:00
Michael Shilman
b73d9e79cf
v6.4.0-beta.27
2021-11-04 18:34:30 +08:00
Michael Shilman
1d1a59d2e6
Merge pull request #16574 from storybookjs/16431-handle-exceptions
...
Core: Continue running `play` function on rerender (e.g. on args/globals change)
2021-11-04 15:53:13 +08:00
Michael Shilman
06bf39e29b
Merge pull request #16537 from storybookjs/16449-initial-story-index-error
...
Ensure we always initialize the story store, even when the index errors.
2021-11-04 15:06:53 +08:00
Tom Coleman
129f498b31
Fix args change during loaders test
2021-11-04 16:14:06 +11:00
Gert Hengeveld
e342633ba7
Fix stable reference to abortSignal
2021-11-03 15:44:01 +01:00
Gert Hengeveld
ebae32b990
Don't abort on rerender, only on remount or switch story
2021-11-03 14:47:08 +01:00
Gert Hengeveld
2d697d61ea
Disable keyboard event listeners while play function is running
2021-11-03 13:26:42 +01:00
Gert Hengeveld
13512c68c6
Do not stop playing/debugging when rerendering rather than remounting
2021-11-03 13:25:43 +01:00
Tom Coleman
b823bd936f
Update preview web to display and recover from errors better
2021-11-03 15:04:07 +11:00
Gert Hengeveld
258ff1dfc8
Forcefully terminate the play function by throwing IGNORED_EXCEPTION when abortSignal is aborted
2021-11-02 22:48:57 +01:00
Michael Shilman
9d46395e10
Update git head to 6.4.0-beta.26, update yarn.lock
2021-11-02 22:01:52 +08:00
Michael Shilman
ddc43c3b4c
v6.4.0-beta.26
2021-11-02 21:51:54 +08:00
Michael Shilman
45a4f7e2d1
Merge branch 'next' into 16489-switch-sse-for-websocket
2021-11-02 15:56:37 +08:00
Tom Coleman
d4661fa343
Ensure we always initialize the story store, even when the index errors.
2021-11-02 18:13:05 +11:00
Michael Shilman
6a03db1779
Update git head to 6.4.0-beta.25, update yarn.lock
2021-11-02 14:25:14 +08:00
Michael Shilman
5bf101067e
v6.4.0-beta.25
2021-11-02 14:22:13 +08:00
Tom Coleman
e436f7cf93
Merge remote-tracking branch 'origin/next' into 16489-switch-sse-for-websocket
2021-11-02 17:20:08 +11:00
Michael Shilman
88f8191462
Update git head to 6.4.0-beta.24, update yarn.lock
2021-11-02 11:57:45 +08:00
Michael Shilman
f53ba4d721
v6.4.0-beta.24
2021-11-02 11:54:45 +08:00
Tom Coleman
9752b14eeb
Merge remote-tracking branch 'origin/next' into 16489-switch-sse-for-websocket
2021-11-01 12:49:16 +11:00
Michael Shilman
a3498c2e01
Update git head to 6.4.0-beta.23, update yarn.lock
2021-10-29 22:58:48 +08:00
Michael Shilman
34dd760d27
v6.4.0-beta.23
2021-10-29 22:55:52 +08:00
Tom Coleman
90d7ef83c3
Fix renderToDOM warning
2021-10-29 17:56:59 +11:00
Michael Shilman
e9ba7b4dae
Merge branch 'next' into 16449-fix-getProjectAnnotations-errors
2021-10-29 13:16:10 +08:00
Michael Shilman
1825cc00bc
Merge pull request #16517 from storybookjs/16048-sync-promise
...
Core: Use synchronous promises to "fake" promises for sync code
2021-10-29 13:13:59 +08:00
Tom Coleman
5df3e142d7
Add support for an async getProjectAnnotations
function
...
In vite (and elsewhere) it may be necessary to call `import()` inside `getProjectAnnotations()`.
2021-10-29 15:02:02 +11:00
Tom Coleman
133ff93f5e
Got Storyshots working
2021-10-29 14:10:25 +11:00
Tom Coleman
b985baf299
Use synchronous promises to "fake" promises for sync code
...
This means we can get rid of the duplicated sync/non-sync code paths!
2021-10-29 13:46:22 +11:00
Michael Shilman
4e1f5c250b
Update git head to 6.4.0-beta.22, update yarn.lock
2021-10-29 00:11:03 +08:00
Michael Shilman
680a207c0b
v6.4.0-beta.22
2021-10-29 00:07:46 +08:00
Tom Coleman
731beae4a1
Fix up tests
2021-10-28 16:38:36 +11:00
Tom Coleman
b773401a64
Remove StoryIndexClient
2021-10-28 15:44:30 +11:00
Tom Coleman
bdc0fb122b
Switch preview+server to use a websocket
2021-10-28 15:19:17 +11:00
Michael Shilman
ca55a29feb
Merge pull request #16488 from storybookjs/16174-fix-docs-args-hmr
...
Addon-docs: Track code-level args changes in `ArgsTable`
2021-10-28 10:02:40 +08:00
Michael Shilman
ad2a17bbdf
Update git head to 6.4.0-beta.21, update yarn.lock
2021-10-28 01:22:17 +08:00
Michael Shilman
eb83ef6aef
v6.4.0-beta.21
2021-10-28 01:19:13 +08:00
Michael Shilman
9814f81911
Merge pull request #16487 from storybookjs/16486-fix-non-selected-hmr
...
Core: Always update initial args when loading a story
2021-10-28 01:03:12 +08:00
Michael Shilman
32c477659d
Merge branch 'next' into 16260-rerun-loaders-on-rerender
2021-10-27 23:25:46 +08:00
Michael Shilman
1564b2c819
Merge branch 'next' into 16486-fix-non-selected-hmr
2021-10-27 23:24:21 +08:00
Tom Coleman
2504e5a3d2
Emit a STORY_ARGS_UPDATED
event whenever the current story's implementation changes.
...
This means things like the `ArgsTable` can keep up to date.
NOTE: this does not work if a different story to the the "selected" story is updated in docs mode, which can be visible on the screen. This is a symptom of a larger problem in the way that docs mode works.
2021-10-27 16:17:10 +11:00
Tom Coleman
0a5466a32c
Always update initial args when loading a story
...
And also update the current args with the delta. This means both when we change story (to an HMR-ed story) and when we HMR the current story.
2021-10-27 15:48:39 +11:00
Tom Coleman
69eddcb03c
Rerun loaders when args/globals change
2021-10-26 16:48:31 +11:00