@storybook/preview-api 7.0.0-alpha.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/ClientApi-dce2f8f2.d.ts +65 -0
- package/dist/DocsContext-f03e0d93.d.ts +322 -0
- package/dist/StoryStore-8f9ab1c2.d.ts +103 -0
- package/dist/addons.d.ts +4 -0
- package/dist/addons.js +4 -0
- package/dist/addons.mjs +1 -0
- package/dist/chunk-CMHHF3W3.mjs +39 -0
- package/dist/chunk-GRRYLBAT.mjs +2 -0
- package/dist/chunk-OWLSKH4Q.mjs +13 -0
- package/dist/chunk-Q5H6OXOG.mjs +29 -0
- package/dist/chunk-QSH26RWA.mjs +3 -0
- package/dist/chunk-SVTQV5PN.mjs +2 -0
- package/dist/client-api.d.ts +10 -0
- package/dist/client-api.js +53 -0
- package/dist/client-api.mjs +1 -0
- package/dist/composeConfigs-62cfdf58.d.ts +9 -0
- package/dist/core-client.d.ts +6 -0
- package/dist/core-client.js +70 -0
- package/dist/core-client.mjs +1 -0
- package/dist/hooks-0d0b05c1.d.ts +60 -0
- package/dist/hooks-a99e1305.d.ts +16 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +83 -0
- package/dist/index.mjs +1 -0
- package/dist/preview-web.d.ts +7 -0
- package/dist/preview-web.js +55 -0
- package/dist/preview-web.mjs +1 -0
- package/dist/queryparams-2acc7490.d.ts +6 -0
- package/dist/sortStories-dc945850.d.ts +74 -0
- package/dist/start-3a1ec032.d.ts +19 -0
- package/dist/store.d.ts +7 -0
- package/dist/store.js +41 -0
- package/dist/store.mjs +1 -0
- package/dist/storybook-channel-mock-e42c60b1.d.ts +31 -0
- package/jest.config.js +7 -0
- package/package.json +107 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Channel } from '@storybook/channels';
|
|
2
|
+
import { Addon_StoryWrapper } from '@storybook/types';
|
|
3
|
+
|
|
4
|
+
declare class AddonStore {
|
|
5
|
+
constructor();
|
|
6
|
+
private channel;
|
|
7
|
+
private serverChannel;
|
|
8
|
+
private promise;
|
|
9
|
+
private resolve;
|
|
10
|
+
getChannel: () => Channel;
|
|
11
|
+
getServerChannel: () => Channel;
|
|
12
|
+
ready: () => Promise<Channel>;
|
|
13
|
+
hasChannel: () => boolean;
|
|
14
|
+
hasServerChannel: () => boolean;
|
|
15
|
+
setChannel: (channel: Channel) => void;
|
|
16
|
+
setServerChannel: (channel: Channel) => void;
|
|
17
|
+
}
|
|
18
|
+
declare const addons: AddonStore;
|
|
19
|
+
|
|
20
|
+
type MakeDecoratorResult = (...args: any) => any;
|
|
21
|
+
interface MakeDecoratorOptions {
|
|
22
|
+
name: string;
|
|
23
|
+
parameterName: string;
|
|
24
|
+
skipIfNoParametersOrOptions?: boolean;
|
|
25
|
+
wrapper: Addon_StoryWrapper;
|
|
26
|
+
}
|
|
27
|
+
declare const makeDecorator: ({ name, parameterName, wrapper, skipIfNoParametersOrOptions, }: MakeDecoratorOptions) => MakeDecoratorResult;
|
|
28
|
+
|
|
29
|
+
declare function mockChannel(): Channel;
|
|
30
|
+
|
|
31
|
+
export { AddonStore as A, MakeDecoratorResult as M, addons as a, mockChannel as b, MakeDecoratorOptions as c, makeDecorator as m };
|
package/jest.config.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@storybook/preview-api",
|
|
3
|
+
"version": "7.0.0-alpha.54",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"storybook"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/storybookjs/storybook/tree/main/code/lib/preview-api",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/storybookjs/storybook/issues"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/storybookjs/storybook.git",
|
|
15
|
+
"directory": "code/lib/preview-api"
|
|
16
|
+
},
|
|
17
|
+
"funding": {
|
|
18
|
+
"type": "opencollective",
|
|
19
|
+
"url": "https://opencollective.com/storybook"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": "./dist/index.mjs",
|
|
26
|
+
"require": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./dist/addons": {
|
|
30
|
+
"import": "./dist/addons.mjs",
|
|
31
|
+
"require": "./dist/addons.js",
|
|
32
|
+
"types": "./dist/addons.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./dist/store": {
|
|
35
|
+
"import": "./dist/store.mjs",
|
|
36
|
+
"require": "./dist/store.js",
|
|
37
|
+
"types": "./dist/store.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./dist/client-api": {
|
|
40
|
+
"import": "./dist/client-api.mjs",
|
|
41
|
+
"require": "./dist/client-api.js",
|
|
42
|
+
"types": "./dist/client-api.d.ts"
|
|
43
|
+
},
|
|
44
|
+
"./dist/core-client": {
|
|
45
|
+
"import": "./dist/core-client.mjs",
|
|
46
|
+
"require": "./dist/core-client.js",
|
|
47
|
+
"types": "./dist/core-client.d.ts"
|
|
48
|
+
},
|
|
49
|
+
"./dist/preview-web": {
|
|
50
|
+
"import": "./dist/preview-web.mjs",
|
|
51
|
+
"require": "./dist/preview-web.js",
|
|
52
|
+
"types": "./dist/preview-web.d.ts"
|
|
53
|
+
},
|
|
54
|
+
"./package.json": "./package.json"
|
|
55
|
+
},
|
|
56
|
+
"main": "dist/index.js",
|
|
57
|
+
"module": "dist/index.mjs",
|
|
58
|
+
"types": "dist/index.d.ts",
|
|
59
|
+
"files": [
|
|
60
|
+
"dist/**/*",
|
|
61
|
+
"README.md",
|
|
62
|
+
"*.js",
|
|
63
|
+
"*.d.ts"
|
|
64
|
+
],
|
|
65
|
+
"scripts": {
|
|
66
|
+
"check": "../../../scripts/node_modules/.bin/tsc --noEmit",
|
|
67
|
+
"prep": "../../../scripts/prepare/bundle.ts"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@storybook/channel-postmessage": "7.0.0-alpha.54",
|
|
71
|
+
"@storybook/channels": "7.0.0-alpha.54",
|
|
72
|
+
"@storybook/client-logger": "7.0.0-alpha.54",
|
|
73
|
+
"@storybook/core-events": "7.0.0-alpha.54",
|
|
74
|
+
"@storybook/csf": "next",
|
|
75
|
+
"@storybook/types": "7.0.0-alpha.54",
|
|
76
|
+
"@types/qs": "^6.9.5",
|
|
77
|
+
"dequal": "^2.0.2",
|
|
78
|
+
"global": "^4.4.0",
|
|
79
|
+
"lodash": "^4.17.21",
|
|
80
|
+
"memoizerific": "^1.11.3",
|
|
81
|
+
"qs": "^6.10.0",
|
|
82
|
+
"slash": "^3.0.0",
|
|
83
|
+
"synchronous-promise": "^2.0.15",
|
|
84
|
+
"ts-dedent": "^2.0.0",
|
|
85
|
+
"util-deprecate": "^1.0.2"
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@jest/globals": "^26.6.2",
|
|
89
|
+
"@storybook/core-common": "7.0.0-alpha.54",
|
|
90
|
+
"ansi-to-html": "^0.6.11",
|
|
91
|
+
"react": "^16.14.0"
|
|
92
|
+
},
|
|
93
|
+
"publishConfig": {
|
|
94
|
+
"access": "public"
|
|
95
|
+
},
|
|
96
|
+
"bundler": {
|
|
97
|
+
"entries": [
|
|
98
|
+
"./src/index.ts",
|
|
99
|
+
"./src/addons.ts",
|
|
100
|
+
"./src/client-api.ts",
|
|
101
|
+
"./src/core-client.ts",
|
|
102
|
+
"./src/preview-web.ts",
|
|
103
|
+
"./src/store.ts"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"gitHead": "91177d4e27daec556a24ae6223c3cbe17a998d9b"
|
|
107
|
+
}
|