52 Commits

Author SHA1 Message Date
Norbert de Langen
2dcdfec2c8
ADD test cases 2020-06-19 13:43:25 +02:00
Norbert de Langen
b285f20176
SIMPLIFY code && ADD test for mixed responses 2020-06-19 12:18:56 +02:00
Norbert de Langen
11ce221f0b
FIX review comments && ADD tests 2020-06-18 15:17:12 +02:00
Norbert de Langen
9a7f598a4d FIX 2020-06-17 13:06:14 +02:00
Norbert de Langen
1032c2975b
RENAME authUrl to loginUrl 2020-06-17 09:37:51 +02:00
Norbert de Langen
a1ffae27a0
REMOVE the manual redirects 2020-06-16 14:38:06 +02:00
Norbert de Langen
299d9bdd12
Allow iframe.html without cors 2020-05-25 09:37:46 +02:00
Norbert de Langen
38a9e80e47
ADD redirect: manual && only load metadata when stories.json was found 2020-05-25 09:29:32 +02:00
Norbert de Langen
07331c9b0f
CLEANUP 2020-05-20 17:06:53 +02:00
Norbert de Langen
bba76027c7
so I fetch stories.json WITH credentials, WITHOUT credentials, and I try to get iframe.html
if all 3 fail, I know the ref is just not going to work.
2020-05-20 16:47:01 +02:00
Norbert de Langen
736e3ec70c
CHANGE ref startInjected to a enum type to fix loading state of a lazy ref && FIX loading of refs that 404
CHANGE the checkRef fn so it tries to load iframe.html first, checking for CORS & auth failures.
2020-05-20 11:05:52 +02:00
Norbert de Langen
6dc9595b22
do not load refs that report an error && test refs if they have an iframe.html && FIX render bug for ErrorDisplay 2020-05-19 17:30:23 +02:00
Norbert de Langen
7eed2e7396
CHANGE to correct header 2020-05-19 12:24:54 +02:00
Norbert de Langen
6e82e21084
FIX refs not authenticating because they omit credentials & do not pass content-type 2020-05-18 10:43:59 +02:00
Norbert de Langen
4a53383e35
CHANGE mapper to storyMapper && fix loading states of refs 2020-05-14 11:54:14 +02:00
Norbert de Langen
e39424c12a
CLEANUP 2020-05-06 11:54:09 +02:00
Norbert de Langen
b96c3cbb5b
Update lib/api/src/modules/refs.ts
Co-authored-by: Tom Coleman <tom@thesnail.org>
2020-05-06 11:20:03 +02:00
Norbert de Langen
b85c6ad0ed
FIX loading state of sidebar when no setStories is emitted (because of an error for example) 2020-05-05 20:57:37 +02:00
Norbert de Langen
23211835ed
FIX linting 2020-04-22 13:42:59 +02:00
Norbert de Langen
a4b071a17e
FIX regex & test 2020-04-22 13:07:11 +02:00
Norbert de Langen
d8725da3f4
FIX matching of refUrl & localUrl 2020-04-22 13:00:31 +02:00
Norbert de Langen
182244f13d
FIX bugs with event source & removing the fileName & error handling & loading of refs 2020-04-21 16:38:28 +02:00
Will Farley
544572d40a FIX ref getSourceType for paths with */index.html
* Fixes #10324
* Visiting <storybook-path>/index.html?path=/story/* will return "local" in getSourceType and will not throw an exception by going to 'external' switch case block.
2020-04-14 01:54:18 -07:00
Norbert de Langen
341fc2d90d
FIX linting 2020-03-27 20:04:50 +01:00
Norbert de Langen
0a4d447a67
CHANGE checkRef api to merge stories data & meta data 2020-03-18 21:31:29 +01:00
Norbert de Langen
27fea9a3e5
ADD support for stories.json & metadata.json 2020-03-18 12:15:49 +01:00
Norbert de Langen
584cc30e99
CLEANUP 2020-03-13 12:01:34 +01:00
Norbert de Langen
5cc9470ede
CLEANUP 2020-03-12 17:31:19 +01:00
Norbert de Langen
76e11f759e
REMOVE unneeded code for ensuring a title exists on a ref 2020-03-12 17:25:14 +01:00
Norbert de Langen
fa4039a505
REFACTOR so loading refs from config & loading refs from state are separate operations 2020-03-12 17:17:18 +01:00
Norbert de Langen
9523263cca
IMPROVE typings of lib/api 2020-03-12 16:42:46 +01:00
Norbert de Langen
caf1e01928
REFACTOR lib/api entrypoint & modules to not use default export 2020-03-12 14:50:09 +01:00
Norbert de Langen
76e31c220f
RENAME InceptionRef to ComposedRef 2020-03-12 14:48:00 +01:00
Norbert de Langen
dadc161c17
REFACTOR to simplify mapping & adding refIds 2020-03-12 12:25:03 +01:00
Norbert de Langen
cb02c3e0d9
REFACTOR to take current refId from router && REMOVE id mapping on ref stories 2020-03-12 12:02:48 +01:00
Norbert de Langen
9ca86fa60e
REMOVE need for knownAs, since it can be deduced from refId + storyid 2020-03-11 14:57:48 +01:00
Norbert de Langen
ba6de13b01
FIX state between switching versions && FIX wrong storyId being passed 2020-03-09 17:34:42 +01:00
Norbert de Langen
f3d789e41b
ADD changeRefVersion API 2020-03-09 14:23:02 +01:00
Norbert de Langen
b464211c87
ADD authUrl to ref 2020-03-06 02:02:10 +01:00
Norbert de Langen
e1425c9066
IMPROVE theming of sidebar && ADD stories for refs && IMPROVE how sidebar layout is done 2020-03-05 15:17:17 +01:00
Norbert de Langen
05a89f2876
CLEANUP 2020-03-04 23:37:59 +01:00
Norbert de Langen
111588f54a
Merge branch 'next' into core/ingestion
# Conflicts:
#	lib/api/src/lib/stories.ts
#	lib/api/src/modules/stories.ts
2020-03-03 00:21:03 +01:00
Norbert de Langen
22a5ae327d
IMPROVE tooltips 2020-02-27 10:21:12 +01:00
Norbert de Langen
acf8dac4b8
FIX ts error 2020-02-26 17:40:12 +01:00
Norbert de Langen
2e1c885315
FIX loading 2020-02-26 16:32:35 +01:00
Norbert de Langen
331c08a27d
REMOVE loading of refs in node, load them in the browser always && ADD indicators to Sidebar 2020-02-26 16:19:24 +01:00
Norbert de Langen
2054690a7b
ADD title to InceptionRef interface 2020-02-20 20:30:23 +01:00
Norbert de Langen
cec068d375
CHANGE to useState to keep track of which frames have been injected && ADD ready prop to ref so spinner goes away && transform when loading stories from data.json 2020-02-18 10:01:23 +01:00
Norbert de Langen
c30051f6b1
CLEANUP types of refs && RENAME ref.data to ref.stories && CHANGE a runtime ref config to be object instead of string 2020-02-17 15:45:42 +01:00
Norbert de Langen
845c1db058
RENAME isInjected to initialState startInjected, state is preserved in preview itself 2020-02-14 13:42:57 +01:00