66 Commits

Author SHA1 Message Date
Tom Coleman
d9679bbd59 Refactor to pass sync as an arg rather than using a separate method
Using TS overloads to deal with the type differences. It's a little awkward but probably avoids code duplication a little.
2021-09-09 13:47:19 +10:00
Tom Coleman
53e00b34ba Fix exported type from .raw() 2021-09-09 02:33:32 +10:00
Tom Coleman
db5cfabc2a Added a bunch of comments and some READMEs 2021-09-09 02:15:49 +10:00
Tom Coleman
01294ffb68 Ensure we send args with SET_STORIES 2021-09-09 01:43:47 +10:00
Tom Coleman
a6d05f4463 Don't allow setting args to undefined 2021-09-09 01:29:35 +10:00
Tom Coleman
b0dda030f3 Add a note 2021-09-08 23:40:45 +10:00
Tom Coleman
956e131556 Update CSF to allow symbol 2021-09-08 17:01:21 +10:00
Tom Coleman
abbd38f69c Fix globals 2021-09-08 15:10:00 +10:00
Tom Coleman
ec23d8c2f7 Ensure we run argTypes enhancers before pulling defaultValues 2021-09-08 14:43:58 +10:00
Tom Coleman
0536851a7d Switch order of args / argTypes enhancers 2021-09-08 08:47:13 +10:00
Tom Coleman
08301a37b0 Fix a bunch of types 2021-09-08 00:01:14 +10:00
Tom Coleman
c2bc484ce8 Update CSF 2021-09-07 23:21:21 +10:00
Tom Coleman
82763973b9 Get it bootstrapping again 2021-09-07 22:54:25 +10:00
Tom Coleman
5982475373 Deepscan cleanups 2021-09-07 17:21:06 +10:00
Tom Coleman
c2236dabf9 Update CSF version (projectAnnotations) 2021-09-07 17:00:30 +10:00
Tom Coleman
4e12e81e75 Rename StoriesList => StoryIndex 2021-09-07 14:54:29 +10:00
Tom Coleman
1ad369c0af Rename GlobalAnnotations => ProjectAnnotations 2021-09-07 14:30:46 +10:00
Tom Coleman
d2e713aa32 Fix old use of "Meta" (=> "Annotation") 2021-09-07 08:48:08 +10:00
Tom Coleman
d8349ef00f Use object freeze to ensure stories are not editable 2021-09-07 08:40:33 +10:00
Tom Coleman
0f8432378f Fix issue with args memory over HMR applying in the wrong place 2021-09-07 08:25:35 +10:00
Tom Coleman
474b6c5667 Add regenerator to store and web-preview 2021-09-06 19:31:00 +10:00
Tom Coleman
d9bb26e146 Various fixes 2021-09-06 16:37:19 +10:00
Tom Coleman
9006d0b6ee Don't put a StoryFn onto render
As it is supposed to be an `ArgsStoryFn`
2021-09-06 15:38:26 +10:00
Tom Coleman
eeb3708c16 Update CSF version to pass Args through to stories 2021-09-06 15:35:14 +10:00
Tom Coleman
9eb3afe533 Drop a couple FIXMEs that were fixed 2021-09-06 10:17:48 +10:00
Tom Coleman
1567164519 Remove a lot of TODOs, clean up 2021-09-06 08:26:48 +10:00
Tom Coleman
37e7c8f960 Add StoryStore.getStoriesJsonData() 2021-09-06 07:49:21 +10:00
Tom Coleman
63e2536486 Update prepareStory tests 2021-09-05 11:17:01 +10:00
Tom Coleman
3e3d2c050b Add a test that .extract() filters docs-only 2021-09-04 11:52:57 +10:00
Tom Coleman
d28587dc09 Add a note about backcompat 2021-09-04 11:46:34 +10:00
Tom Coleman
b9048d5b5c Use breaking changes in store/preview tests 2021-09-03 16:49:13 +10:00
Tom Coleman
088ea7631e Change Framework => TFramework 2021-09-03 14:18:30 +10:00
Tom Coleman
82d186b645 Fix addon-docs tests 2021-09-03 13:48:15 +10:00
Tom Coleman
c14d5efd04 Set legacy parameters in context for back-compat.
Also add a `breakingChangesV7` feature to turn of things like this to check future compatibility.
2021-09-03 13:39:15 +10:00
Tom Coleman
dbffe93983 Fix angular stories by moving component back into return value 2021-09-03 13:32:46 +10:00
Tom Coleman
a886599e0f Move inferArgTypes back into the store
So we don't need to do it in Storyshots anymore.
2021-09-03 13:12:50 +10:00
Tom Coleman
b8d5b1e7e3 Move inferControls from the controls addon back into the store
For backwards compatibility reasons, we will undo this commit in 7.0
2021-09-03 13:00:18 +10:00
Tom Coleman
e4236c1452 Repair globals/globalTypes in legacy 2021-09-02 20:57:18 +10:00
Tom Coleman
134d4ec71f Reverse Story/UnboundStory 2021-09-02 13:07:24 +10:00
Tom Coleman
6f584a212c Fixed up getStorybook/raw and made storyshots work 2021-09-02 12:34:24 +10:00
Tom Coleman
7168f33b72 Don't watch a channel just yet in SLS 2021-09-01 15:03:30 +10:00
Tom Coleman
8dfe9f9fde Added a "sync" init path to allow storyshots to be sycn 2021-09-01 15:01:41 +10:00
Tom Coleman
23ee4028a3 Update a bunch of types to get things to 'strap 2021-09-01 14:17:05 +10:00
Tom Coleman
82d2b57228 Upgrade CSF again 2021-08-31 19:00:41 +10:00
Tom Coleman
3ee15379a1 Update decorators to use a common sanitization 2021-08-31 16:45:44 +10:00
Tom Coleman
bee50c8149 Add errors for removed APIs 2021-08-31 16:21:18 +10:00
Tom Coleman
ecf335e66e Got getStorybook() going, refactor start + client-api 2021-08-31 16:07:29 +10:00
Tom Coleman
0df595a0e5 Small type fix 2021-08-30 22:51:17 +10:00
Tom Coleman
54d3cd06fc Implemented .extract() and better getSetStoriesPayload() on store 2021-08-30 22:50:05 +10:00
Tom Coleman
ac043f9011 We need to refetch the story list when the import fn changes 2021-08-30 21:42:13 +10:00