Tom Coleman
18a6e51136
HMR tests for start
2021-08-30 17:06:25 +10:00
Tom Coleman
86847d9126
Handle HMR in storiesOf
2021-08-30 15:37:57 +10:00
Tom Coleman
22db095cdc
Clean code up a little
2021-08-30 14:59:17 +10:00
Tom Coleman
b2a7949fcc
Added forceReRender
to start
2021-08-30 14:18:31 +10:00
Tom Coleman
6dfe70cac8
Fixed some problems and added some tests for start.ts
2021-08-29 22:57:25 +10:00
Tom Coleman
7137e772ab
Some improvements
2021-08-28 18:17:41 +10:00
Tom Coleman
5772eb6780
Got old-style working
2021-08-27 20:01:53 +10:00
Tom Coleman
a905b091fa
Got things bootstrappign
2021-08-27 16:56:50 +10:00
Tom Coleman
d05a6c1442
Close to bootstrapping again
2021-08-27 14:41:07 +10:00
Tom Coleman
93d1669208
Update CSF
2021-08-27 13:34:58 +10:00
Tom Coleman
5b974e9a15
Got first version of storiesOf shim in. Not yet running
2021-08-26 22:16:00 +10:00
Tom Coleman
56ac92fe04
Sorted out inferArgTypes
2021-08-25 21:56:43 +10:00
Tom Coleman
a1568c39bf
Types + tests working in store
2021-08-25 16:10:59 +10:00
Tom Coleman
18d3633ab4
A lot of type changes, not quite building yet
2021-08-24 23:17:07 +10:00
Tom Coleman
4064148962
Migrate a lot of types in the on-demand-store
2021-08-24 00:15:16 +10:00
Tom Coleman
a9e9a08410
Fix up inferControls
2021-08-20 19:12:32 +10:00
Tom Coleman
5e31fd903d
Semi fix/hack client-api/core-client types so they build
2021-08-19 17:13:25 +10:00
Tom Coleman
890623cb6e
Move new files from client-api
=> store
2021-08-19 14:25:35 +10:00
Tom Coleman
26abe9ae3f
Move tests around selection specifier + HMR over
2021-08-18 11:26:32 +10:00
Tom Coleman
ce7411e284
Remove tests that have been ported 👍
2021-08-18 10:58:46 +10:00
Tom Coleman
3aa4fc897a
Ensure we don't keep "spurious" changes on implementation updates
...
Also this ensures weird stuff doesn't happen when we change arg/global names.
2021-08-17 22:59:27 +10:00
Tom Coleman
f04c9cabec
Updated globals behaviour on HMR to mirror args
2021-08-17 22:04:36 +10:00
Tom Coleman
a036c23475
Retain a delta of arg changes on HMR
...
If you update an arg value, then change the underlying (initial) args, we look at what you've changed, then try and apply it over the new initial args.
2021-08-17 21:12:10 +10:00
Michael Shilman
004d93f108
Merge branch 'on-demand-store' of github.com:storybookjs/storybook into on-demand-store
2021-08-16 23:05:42 +08:00
Tom Coleman
969fbb6e44
Update validateOptions behaviour and add test
2021-08-16 21:41:31 +10:00
Tom Coleman
5c3063c6e1
More WebPreview tests
2021-08-15 08:07:21 +10:00
Michael Shilman
58338c9539
Fix undefined story parameters
2021-08-14 13:28:42 +08:00
Tom Coleman
0b0111d98b
Making progress through the tests
2021-08-13 22:05:44 +10:00
Tom Coleman
ed4076aebf
Remove logging
2021-08-13 21:45:05 +10:00
Tom Coleman
e2310474e7
Added many WebPreview tests
2021-08-13 21:45:00 +10:00
Tom Coleman
7c7624481f
Added StoryStore
tests
2021-08-13 12:20:27 +10:00
Tom Coleman
a316cdda76
Added tests for remaining client-api things
2021-08-13 11:45:59 +10:00
Tom Coleman
890aabc948
Add tests for prepareStory
2021-08-12 23:24:47 +10:00
Michael Shilman
d758c4e7dd
Make yarn bootstrap work
2021-08-10 11:06:50 +08:00
Tom Coleman
f716a4af9a
Switch forceRender
to !forceRemount
2021-08-09 22:45:32 +10:00
Tom Coleman
f6b13d5efb
Make renderStoryToElement
responsible for re-rendering
...
Instead of re-rendering at the top level when `args` or `globals` change, instead the call to `renderStoryToElement` (which may happen at the top level, or inside a docs page), sets up listeners which re-render when relevant things change.
2021-08-09 10:00:57 +10:00
Tom Coleman
34f3df447d
Ensure we pass component to enhancers
2021-08-09 06:49:46 +10:00
Tom Coleman
27d0c71057
Update ensureArgTypes
to also check that all arg types have a name.
...
Previously we did that at the *start*: 4ae9e4714a
but we decide there was no reason not to do this at the end.
2021-08-09 06:49:00 +10:00
Tom Coleman
951e8db97c
Change bindStoryFn
to getStoryContext
and bind in <Story>
2021-08-06 15:19:39 +10:00
Tom Coleman
f8f3dba01d
Add a modernInlineRender
that renders the story using the framework's renderToDOM
...
Replaces https://github.com/storybookjs/storybook/pull/14911
2021-08-06 15:03:11 +10:00
Tom Coleman
3b6902535e
Update globals/args persistence handling as per gert
2021-08-06 13:43:19 +10:00
Tom Coleman
ea19109305
Got parameter emission working
2021-08-06 13:08:34 +10:00
Tom Coleman
110b587aa1
Update StoryList to a simpler format as agreed
2021-08-04 17:07:18 +10:00
Tom Coleman
95d3fed76f
Ensure that ensureControls
runs in the second pass
2021-08-04 16:53:49 +10:00
Tom Coleman
ee341ec5d2
Add default argTypesEnhancers to presets
2021-08-04 16:50:44 +10:00
Tom Coleman
0775c4d312
Move hooks out of the Story type
2021-08-04 16:00:44 +10:00
Tom Coleman
bb9f36e9b4
Got docs working (first pass)
2021-08-03 21:43:32 +10:00
Tom Coleman
61b6189c66
Watch a websocket channel in StoriesList
2021-08-01 16:03:04 +10:00
Tom Coleman
6586738d1c
HMR working for story file changes
2021-08-01 14:25:07 +10:00
Tom Coleman
923c8ba334
Type fix
2021-08-01 12:49:53 +10:00