storybook 9.0.0-alpha.1 → 9.0.0-alpha.10
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 +31 -29
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/docs/addon-controls-args-annotated.png +0 -0
- package/assets/docs/addon-controls-args-background-color.png +0 -0
- package/assets/docs/addon-controls-args-background-string.png +0 -0
- package/assets/docs/addon-controls-args-docs.png +0 -0
- package/assets/docs/addon-controls-args-logging.png +0 -0
- package/assets/docs/addon-controls-args-no-annotation.png +0 -0
- package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
- package/assets/docs/addon-controls-args-reflow.png +0 -0
- package/assets/docs/addon-controls-args-template.png +0 -0
- package/assets/docs/addon-controls-expanded.png +0 -0
- package/assets/docs/addon-controls-hero.gif +0 -0
- package/assets/docs/addon-controls-install.png +0 -0
- package/assets/docs/hero.gif +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +119 -0
- package/assets/server/base-preview-head.html +451 -0
- package/assets/server/template.ejs +87 -0
- package/bin/index.cjs +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/babel/index.cjs +54034 -0
- package/dist/babel/index.d.ts +7488 -0
- package/dist/babel/index.js +54044 -0
- package/dist/bin/index.cjs +119 -0
- package/dist/bin/index.js +113 -0
- package/dist/builder-manager/index.cjs +2140 -0
- package/dist/builder-manager/index.d.ts +19 -0
- package/dist/builder-manager/index.js +2162 -0
- package/dist/channels/index.cjs +1913 -0
- package/dist/channels/index.d.ts +108 -0
- package/dist/channels/index.js +1881 -0
- package/dist/cli/bin/index.cjs +2687 -0
- package/dist/cli/bin/index.d.ts +2 -0
- package/dist/cli/bin/index.js +2707 -0
- package/dist/cli/index.cjs +17327 -0
- package/dist/cli/index.d.ts +209 -0
- package/dist/cli/index.js +17349 -0
- package/dist/client-logger/index.cjs +80 -0
- package/dist/client-logger/index.d.ts +29 -0
- package/dist/client-logger/index.js +64 -0
- package/dist/common/index.cjs +20569 -0
- package/dist/common/index.d.ts +949 -0
- package/dist/common/index.js +20654 -0
- package/dist/components/index.cjs +27924 -0
- package/dist/components/index.d.ts +1423 -0
- package/dist/components/index.js +24673 -0
- package/dist/controls/decorator.d.ts +5 -0
- package/dist/controls/decorator.js +8 -0
- package/dist/controls/index.cjs +26 -0
- package/dist/controls/index.d.ts +39 -0
- package/dist/controls/index.js +6 -0
- package/dist/controls/manager.js +5545 -0
- package/dist/controls/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +55 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +167 -0
- package/dist/core-events/index.d.ts +426 -0
- package/dist/core-events/index.js +149 -0
- package/dist/core-server/index.cjs +38183 -0
- package/dist/core-server/index.d.ts +720 -0
- package/dist/core-server/index.js +38272 -0
- package/dist/core-server/presets/common-manager.js +20 -0
- package/dist/core-server/presets/common-override-preset.cjs +4824 -0
- package/dist/core-server/presets/common-override-preset.js +4829 -0
- package/dist/core-server/presets/common-preset.cjs +10231 -0
- package/dist/core-server/presets/common-preset.js +10309 -0
- package/dist/csf/index.cjs +179 -0
- package/dist/csf/index.d.ts +750 -0
- package/dist/csf/index.js +172 -0
- package/dist/csf-tools/index.cjs +1422 -0
- package/dist/csf-tools/index.d.ts +250 -0
- package/dist/csf-tools/index.js +1439 -0
- package/dist/docs-tools/index.cjs +2891 -0
- package/dist/docs-tools/index.d.ts +162 -0
- package/dist/docs-tools/index.js +2876 -0
- package/dist/index.cjs +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -7
- package/dist/instrumenter/index.cjs +3485 -0
- package/dist/instrumenter/index.d.ts +104 -0
- package/dist/instrumenter/index.js +4965 -0
- package/dist/manager/globals-module-info.cjs +817 -0
- package/dist/manager/globals-module-info.d.ts +36 -0
- package/dist/manager/globals-module-info.js +804 -0
- package/dist/manager/globals-runtime.js +77536 -0
- package/dist/manager/globals.cjs +47 -0
- package/dist/manager/globals.d.ts +24 -0
- package/dist/manager/globals.js +34 -0
- package/dist/manager/runtime.js +12323 -0
- package/dist/manager-api/index.cjs +11074 -0
- package/dist/manager-api/index.d.ts +1512 -0
- package/dist/manager-api/index.js +4835 -0
- package/dist/manager-errors.d.ts +89 -0
- package/dist/manager-errors.js +99 -0
- package/dist/node-logger/index.cjs +1642 -0
- package/dist/node-logger/index.d.ts +117 -0
- package/dist/node-logger/index.js +1652 -0
- package/dist/preview/globals.cjs +38 -0
- package/dist/preview/globals.d.ts +15 -0
- package/dist/preview/globals.js +25 -0
- package/dist/preview/runtime.js +43629 -0
- package/dist/preview-api/index.cjs +5224 -0
- package/dist/preview-api/index.d.ts +1093 -0
- package/dist/preview-api/index.js +5292 -0
- package/dist/preview-errors.cjs +503 -0
- package/dist/preview-errors.d.ts +212 -0
- package/dist/preview-errors.js +449 -0
- package/dist/router/index.cjs +3296 -0
- package/dist/router/index.d.ts +385 -0
- package/dist/router/index.js +1843 -0
- package/dist/server-errors.cjs +727 -0
- package/dist/server-errors.d.ts +296 -0
- package/dist/server-errors.js +728 -0
- package/dist/telemetry/index.cjs +2756 -0
- package/dist/telemetry/index.d.ts +133 -0
- package/dist/telemetry/index.js +2797 -0
- package/dist/test/index.cjs +35685 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +33751 -0
- package/dist/test/preview.cjs +15869 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14440 -0
- package/dist/test/spy.cjs +257 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +239 -0
- package/dist/theming/create.cjs +232 -0
- package/dist/theming/create.d.ts +50 -0
- package/dist/theming/create.js +216 -0
- package/dist/theming/index.cjs +2665 -0
- package/dist/theming/index.d.ts +11939 -0
- package/dist/theming/index.js +2485 -0
- package/dist/types/index.cjs +27 -0
- package/dist/types/index.d.ts +2795 -0
- package/dist/types/index.js +7 -0
- package/dist/viewport/index.cjs +310 -0
- package/dist/viewport/index.d.ts +320 -0
- package/dist/viewport/index.js +290 -0
- package/dist/viewport/manager.js +400 -0
- package/dist/viewport/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +69 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +518 -209
- package/.eslintrc.cjs +0 -31
- package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
- package/core/babel/index.cjs +0 -1
- package/core/babel/index.d.ts +0 -2
- package/core/babel/index.js +0 -1
- package/core/builder-manager/index.cjs +0 -1
- package/core/builder-manager/index.d.ts +0 -2
- package/core/builder-manager/index.js +0 -1
- package/core/channels/index.cjs +0 -1
- package/core/channels/index.d.ts +0 -2
- package/core/channels/index.js +0 -1
- package/core/cli/bin/index.cjs +0 -1
- package/core/cli/bin/index.d.ts +0 -2
- package/core/cli/bin/index.js +0 -1
- package/core/cli/index.cjs +0 -1
- package/core/cli/index.d.ts +0 -2
- package/core/cli/index.js +0 -1
- package/core/client-logger/index.cjs +0 -1
- package/core/client-logger/index.d.ts +0 -2
- package/core/client-logger/index.js +0 -1
- package/core/common/index.cjs +0 -1
- package/core/common/index.d.ts +0 -2
- package/core/common/index.js +0 -1
- package/core/components/index.cjs +0 -1
- package/core/components/index.d.ts +0 -2
- package/core/components/index.js +0 -1
- package/core/core-events/index.cjs +0 -1
- package/core/core-events/index.d.ts +0 -2
- package/core/core-events/index.js +0 -1
- package/core/core-server/index.cjs +0 -1
- package/core/core-server/index.d.ts +0 -2
- package/core/core-server/index.js +0 -1
- package/core/core-server/presets/common-manager.js +0 -1
- package/core/core-server/presets/common-override-preset.cjs +0 -1
- package/core/core-server/presets/common-override-preset.js +0 -1
- package/core/core-server/presets/common-preset.cjs +0 -1
- package/core/core-server/presets/common-preset.js +0 -1
- package/core/csf/index.cjs +0 -1
- package/core/csf/index.d.ts +0 -2
- package/core/csf/index.js +0 -1
- package/core/csf-tools/index.cjs +0 -1
- package/core/csf-tools/index.d.ts +0 -2
- package/core/csf-tools/index.js +0 -1
- package/core/docs-tools/index.cjs +0 -1
- package/core/docs-tools/index.d.ts +0 -2
- package/core/docs-tools/index.js +0 -1
- package/core/index.cjs +0 -1
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -1
- package/core/manager/globals-module-info.cjs +0 -1
- package/core/manager/globals-module-info.d.ts +0 -2
- package/core/manager/globals-module-info.js +0 -1
- package/core/manager/globals-runtime.js +0 -1
- package/core/manager/globals.cjs +0 -1
- package/core/manager/globals.d.ts +0 -2
- package/core/manager/globals.js +0 -1
- package/core/manager-api/index.cjs +0 -1
- package/core/manager-api/index.d.ts +0 -2
- package/core/manager-api/index.js +0 -1
- package/core/manager-errors.d.ts +0 -2
- package/core/manager-errors.js +0 -1
- package/core/node-logger/index.cjs +0 -1
- package/core/node-logger/index.d.ts +0 -2
- package/core/node-logger/index.js +0 -1
- package/core/preview/globals.cjs +0 -1
- package/core/preview/globals.d.ts +0 -2
- package/core/preview/globals.js +0 -1
- package/core/preview/runtime.js +0 -1
- package/core/preview-api/index.cjs +0 -1
- package/core/preview-api/index.d.ts +0 -2
- package/core/preview-api/index.js +0 -1
- package/core/preview-errors.cjs +0 -1
- package/core/preview-errors.d.ts +0 -2
- package/core/preview-errors.js +0 -1
- package/core/router/index.cjs +0 -1
- package/core/router/index.d.ts +0 -2
- package/core/router/index.js +0 -1
- package/core/server-errors.cjs +0 -1
- package/core/server-errors.d.ts +0 -2
- package/core/server-errors.js +0 -1
- package/core/telemetry/index.cjs +0 -1
- package/core/telemetry/index.d.ts +0 -2
- package/core/telemetry/index.js +0 -1
- package/core/theming/create.cjs +0 -1
- package/core/theming/create.d.ts +0 -2
- package/core/theming/create.js +0 -1
- package/core/theming/index.cjs +0 -1
- package/core/theming/index.d.ts +0 -2
- package/core/theming/index.js +0 -1
- package/core/types/index.cjs +0 -1
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -1
- package/core.cjs +0 -0
- package/core.d.ts +0 -0
- package/core.js +0 -1
- package/dist/chunk-OWLSIX54.js +0 -8
- package/dist/core-path.cjs +0 -1
- package/dist/core-path.d.ts +0 -3
- package/dist/core-path.js +0 -9
- package/dist/proxy.cjs +0 -1
- package/dist/proxy.d.ts +0 -2
- package/dist/proxy.js +0 -9
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var o = Object.defineProperty;
|
|
3
|
+
var m = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var p = Object.getOwnPropertyNames;
|
|
5
|
+
var a = Object.prototype.hasOwnProperty;
|
|
6
|
+
var l = (r, e) => {
|
|
7
|
+
for (var i in e)
|
|
8
|
+
o(r, i, { get: e[i], enumerable: !0 });
|
|
9
|
+
}, n = (r, e, i, t) => {
|
|
10
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
11
|
+
for (let f of p(e))
|
|
12
|
+
!a.call(r, f) && f !== i && o(r, f, { get: () => e[f], enumerable: !(t = m(e, f)) || t.enumerable });
|
|
13
|
+
return r;
|
|
14
|
+
};
|
|
15
|
+
var u = (r) => n(o({}, "__esModule", { value: !0 }), r);
|
|
16
|
+
|
|
17
|
+
// src/controls/preview.ts
|
|
18
|
+
var w = {};
|
|
19
|
+
l(w, {
|
|
20
|
+
default: () => v
|
|
21
|
+
});
|
|
22
|
+
module.exports = u(w);
|
|
23
|
+
var d = require("storybook/preview-api"), v = (0, d.definePreview)({
|
|
24
|
+
// Controls addon doesn't need any preview-side configuration
|
|
25
|
+
// It operates entirely through the manager UI
|
|
26
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Renderer as Renderer$1, ProjectAnnotations as ProjectAnnotations$1, StoryIdentifier, StoryContext, PartialStoryFn, LegacyStoryFn } from 'storybook/internal/csf';
|
|
2
|
+
import { NormalizedProjectAnnotations, ProjectAnnotations as ProjectAnnotations$2, ComposedStoryFn } from 'storybook/internal/types';
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
interface SymbolConstructor {
|
|
6
|
+
readonly observable: symbol;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface Renderer extends Renderer$1 {
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type MaybePromise<T> = Promise<T> | T;
|
|
14
|
+
type TeardownRenderToCanvas = () => MaybePromise<void>;
|
|
15
|
+
type RenderToCanvas<TRenderer extends Renderer> = (context: RenderContext<TRenderer>, element: TRenderer['canvasElement']) => MaybePromise<void | TeardownRenderToCanvas>;
|
|
16
|
+
interface ProjectAnnotations<TRenderer extends Renderer> extends ProjectAnnotations$1<TRenderer> {
|
|
17
|
+
addons?: ProjectAnnotations<TRenderer>[];
|
|
18
|
+
testingLibraryRender?: (...args: never[]) => {
|
|
19
|
+
unmount: () => void;
|
|
20
|
+
};
|
|
21
|
+
renderToCanvas?: RenderToCanvas<TRenderer>;
|
|
22
|
+
renderToDOM?: RenderToCanvas<TRenderer>;
|
|
23
|
+
}
|
|
24
|
+
declare type RenderContext<TRenderer extends Renderer = Renderer> = StoryIdentifier & {
|
|
25
|
+
showMain: () => void;
|
|
26
|
+
showError: (error: {
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
showException: (err: Error) => void;
|
|
31
|
+
forceRemount: boolean;
|
|
32
|
+
storyContext: StoryContext<TRenderer>;
|
|
33
|
+
storyFn: PartialStoryFn<TRenderer>;
|
|
34
|
+
unboundStoryFn: LegacyStoryFn<TRenderer>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
declare global {
|
|
38
|
+
var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
|
|
39
|
+
var defaultProjectAnnotations: ProjectAnnotations$2<any>;
|
|
40
|
+
}
|
|
41
|
+
type WrappedStoryRef = {
|
|
42
|
+
__pw_type: 'jsx' | 'importRef';
|
|
43
|
+
};
|
|
44
|
+
type UnwrappedJSXStoryRef = {
|
|
45
|
+
__pw_type: 'jsx';
|
|
46
|
+
type: UnwrappedImportStoryRef;
|
|
47
|
+
};
|
|
48
|
+
type UnwrappedImportStoryRef = ComposedStoryFn;
|
|
49
|
+
declare global {
|
|
50
|
+
function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare const _default: ProjectAnnotations<Renderer>;
|
|
54
|
+
|
|
55
|
+
export { _default as default };
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var N = Object.defineProperty;
|
|
3
|
+
var r = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var D = Object.getOwnPropertyNames;
|
|
5
|
+
var I = Object.prototype.hasOwnProperty;
|
|
6
|
+
var o = (_, R) => {
|
|
7
|
+
for (var T in R)
|
|
8
|
+
N(_, T, { get: R[T], enumerable: !0 });
|
|
9
|
+
}, C = (_, R, T, A) => {
|
|
10
|
+
if (R && typeof R == "object" || typeof R == "function")
|
|
11
|
+
for (let S of D(R))
|
|
12
|
+
!I.call(_, S) && S !== T && N(_, S, { get: () => R[S], enumerable: !(A = r(R, S)) || A.enumerable });
|
|
13
|
+
return _;
|
|
14
|
+
};
|
|
15
|
+
var L = (_) => C(N({}, "__esModule", { value: !0 }), _);
|
|
16
|
+
|
|
17
|
+
// src/core-events/index.ts
|
|
18
|
+
var WE = {};
|
|
19
|
+
o(WE, {
|
|
20
|
+
ARGTYPES_INFO_REQUEST: () => UE,
|
|
21
|
+
ARGTYPES_INFO_RESPONSE: () => GE,
|
|
22
|
+
CHANNEL_CREATED: () => G,
|
|
23
|
+
CHANNEL_WS_DISCONNECT: () => U,
|
|
24
|
+
CONFIG_ERROR: () => a,
|
|
25
|
+
CREATE_NEW_STORYFILE_REQUEST: () => Y,
|
|
26
|
+
CREATE_NEW_STORYFILE_RESPONSE: () => t,
|
|
27
|
+
CURRENT_STORY_WAS_SET: () => d,
|
|
28
|
+
DOCS_PREPARED: () => e,
|
|
29
|
+
DOCS_RENDERED: () => H,
|
|
30
|
+
FILE_COMPONENT_SEARCH_REQUEST: () => W,
|
|
31
|
+
FILE_COMPONENT_SEARCH_RESPONSE: () => l,
|
|
32
|
+
FORCE_REMOUNT: () => p,
|
|
33
|
+
FORCE_RE_RENDER: () => i,
|
|
34
|
+
GLOBALS_UPDATED: () => F,
|
|
35
|
+
NAVIGATE_URL: () => u,
|
|
36
|
+
PLAY_FUNCTION_THREW_EXCEPTION: () => M,
|
|
37
|
+
PRELOAD_ENTRIES: () => y,
|
|
38
|
+
PREVIEW_BUILDER_PROGRESS: () => c,
|
|
39
|
+
PREVIEW_KEYDOWN: () => g,
|
|
40
|
+
REGISTER_SUBSCRIPTION: () => h,
|
|
41
|
+
REQUEST_WHATS_NEW_DATA: () => rE,
|
|
42
|
+
RESET_STORY_ARGS: () => f,
|
|
43
|
+
RESULT_WHATS_NEW_DATA: () => DE,
|
|
44
|
+
SAVE_STORY_REQUEST: () => LE,
|
|
45
|
+
SAVE_STORY_RESPONSE: () => PE,
|
|
46
|
+
SELECT_STORY: () => Q,
|
|
47
|
+
SET_CONFIG: () => x,
|
|
48
|
+
SET_CURRENT_STORY: () => m,
|
|
49
|
+
SET_FILTER: () => V,
|
|
50
|
+
SET_GLOBALS: () => w,
|
|
51
|
+
SET_INDEX: () => B,
|
|
52
|
+
SET_STORIES: () => X,
|
|
53
|
+
SET_WHATS_NEW_CACHE: () => IE,
|
|
54
|
+
SHARED_STATE_CHANGED: () => q,
|
|
55
|
+
SHARED_STATE_SET: () => b,
|
|
56
|
+
STORIES_COLLAPSE_ALL: () => K,
|
|
57
|
+
STORIES_EXPAND_ALL: () => j,
|
|
58
|
+
STORY_ARGS_UPDATED: () => k,
|
|
59
|
+
STORY_CHANGED: () => n,
|
|
60
|
+
STORY_ERRORED: () => z,
|
|
61
|
+
STORY_FINISHED: () => RE,
|
|
62
|
+
STORY_INDEX_INVALIDATED: () => J,
|
|
63
|
+
STORY_MISSING: () => Z,
|
|
64
|
+
STORY_PREPARED: () => $,
|
|
65
|
+
STORY_RENDERED: () => EE,
|
|
66
|
+
STORY_RENDER_PHASE_CHANGED: () => v,
|
|
67
|
+
STORY_SPECIFIED: () => _E,
|
|
68
|
+
STORY_THREW_EXCEPTION: () => SE,
|
|
69
|
+
STORY_UNCHANGED: () => TE,
|
|
70
|
+
TELEMETRY_ERROR: () => CE,
|
|
71
|
+
TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: () => eE,
|
|
72
|
+
TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: () => HE,
|
|
73
|
+
TESTING_MODULE_CRASH_REPORT: () => aE,
|
|
74
|
+
TESTING_MODULE_PROGRESS_REPORT: () => YE,
|
|
75
|
+
TESTING_MODULE_RUN_ALL_REQUEST: () => dE,
|
|
76
|
+
TESTING_MODULE_RUN_REQUEST: () => tE,
|
|
77
|
+
TOGGLE_WHATS_NEW_NOTIFICATIONS: () => oE,
|
|
78
|
+
UNHANDLED_ERRORS_WHILE_PLAYING: () => s,
|
|
79
|
+
UPDATE_GLOBALS: () => NE,
|
|
80
|
+
UPDATE_QUERY_PARAMS: () => OE,
|
|
81
|
+
UPDATE_STORY_ARGS: () => AE,
|
|
82
|
+
default: () => P
|
|
83
|
+
});
|
|
84
|
+
module.exports = L(WE);
|
|
85
|
+
var O = /* @__PURE__ */ ((E) => (E.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", E.CHANNEL_CREATED = "channelCreated", E.CONFIG_ERROR = "co\
|
|
86
|
+
nfigError", E.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", E.STORY_SPECIFIED = "storySpecified", E.SET_CONFIG = "setConfig", E.SET_STORIES =
|
|
87
|
+
"setStories", E.SET_INDEX = "setIndex", E.SET_CURRENT_STORY = "setCurrentStory", E.CURRENT_STORY_WAS_SET = "currentStoryWasSet", E.FORCE_RE_RENDER =
|
|
88
|
+
"forceReRender", E.FORCE_REMOUNT = "forceRemount", E.PRELOAD_ENTRIES = "preloadStories", E.STORY_PREPARED = "storyPrepared", E.DOCS_PREPARED =
|
|
89
|
+
"docsPrepared", E.STORY_CHANGED = "storyChanged", E.STORY_UNCHANGED = "storyUnchanged", E.STORY_RENDERED = "storyRendered", E.STORY_FINISHED =
|
|
90
|
+
"storyFinished", E.STORY_MISSING = "storyMissing", E.STORY_ERRORED = "storyErrored", E.STORY_THREW_EXCEPTION = "storyThrewException", E.STORY_RENDER_PHASE_CHANGED =
|
|
91
|
+
"storyRenderPhaseChanged", E.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", E.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErro\
|
|
92
|
+
rsWhilePlaying", E.UPDATE_STORY_ARGS = "updateStoryArgs", E.STORY_ARGS_UPDATED = "storyArgsUpdated", E.RESET_STORY_ARGS = "resetStoryArgs", E.
|
|
93
|
+
SET_FILTER = "setFilter", E.SET_GLOBALS = "setGlobals", E.UPDATE_GLOBALS = "updateGlobals", E.GLOBALS_UPDATED = "globalsUpdated", E.REGISTER_SUBSCRIPTION =
|
|
94
|
+
"registerSubscription", E.PREVIEW_KEYDOWN = "previewKeydown", E.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", E.SELECT_STORY = "sel\
|
|
95
|
+
ectStory", E.STORIES_COLLAPSE_ALL = "storiesCollapseAll", E.STORIES_EXPAND_ALL = "storiesExpandAll", E.DOCS_RENDERED = "docsRendered", E.SHARED_STATE_CHANGED =
|
|
96
|
+
"sharedStateChanged", E.SHARED_STATE_SET = "sharedStateSet", E.NAVIGATE_URL = "navigateUrl", E.UPDATE_QUERY_PARAMS = "updateQueryParams", E.
|
|
97
|
+
REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", E.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", E.SET_WHATS_NEW_CACHE = "setWhatsNewCache", E.
|
|
98
|
+
TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", E.TELEMETRY_ERROR = "telemetryError", E.FILE_COMPONENT_SEARCH_REQUEST = "fil\
|
|
99
|
+
eComponentSearchRequest", E.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", E.SAVE_STORY_REQUEST = "saveStoryRequest", E.SAVE_STORY_RESPONSE =
|
|
100
|
+
"saveStoryResponse", E.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", E.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", E.CREATE_NEW_STORYFILE_REQUEST =
|
|
101
|
+
"createNewStoryfileRequest", E.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", E.TESTING_MODULE_CRASH_REPORT = "testingModuleC\
|
|
102
|
+
rashReport", E.TESTING_MODULE_PROGRESS_REPORT = "testingModuleProgressReport", E.TESTING_MODULE_RUN_REQUEST = "testingModuleRunRequest", E.TESTING_MODULE_RUN_ALL_REQUEST =
|
|
103
|
+
"testingModuleRunAllRequest", E.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST = "testingModuleCancelTestRunRequest", E.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE =
|
|
104
|
+
"testingModuleCancelTestRunResponse", E))(O || {}), P = O, {
|
|
105
|
+
CHANNEL_WS_DISCONNECT: U,
|
|
106
|
+
CHANNEL_CREATED: G,
|
|
107
|
+
CONFIG_ERROR: a,
|
|
108
|
+
CREATE_NEW_STORYFILE_REQUEST: Y,
|
|
109
|
+
CREATE_NEW_STORYFILE_RESPONSE: t,
|
|
110
|
+
CURRENT_STORY_WAS_SET: d,
|
|
111
|
+
DOCS_PREPARED: e,
|
|
112
|
+
DOCS_RENDERED: H,
|
|
113
|
+
FILE_COMPONENT_SEARCH_REQUEST: W,
|
|
114
|
+
FILE_COMPONENT_SEARCH_RESPONSE: l,
|
|
115
|
+
FORCE_RE_RENDER: i,
|
|
116
|
+
FORCE_REMOUNT: p,
|
|
117
|
+
GLOBALS_UPDATED: F,
|
|
118
|
+
NAVIGATE_URL: u,
|
|
119
|
+
PLAY_FUNCTION_THREW_EXCEPTION: M,
|
|
120
|
+
UNHANDLED_ERRORS_WHILE_PLAYING: s,
|
|
121
|
+
PRELOAD_ENTRIES: y,
|
|
122
|
+
PREVIEW_BUILDER_PROGRESS: c,
|
|
123
|
+
PREVIEW_KEYDOWN: g,
|
|
124
|
+
REGISTER_SUBSCRIPTION: h,
|
|
125
|
+
RESET_STORY_ARGS: f,
|
|
126
|
+
SELECT_STORY: Q,
|
|
127
|
+
SET_CONFIG: x,
|
|
128
|
+
SET_CURRENT_STORY: m,
|
|
129
|
+
SET_FILTER: V,
|
|
130
|
+
SET_GLOBALS: w,
|
|
131
|
+
SET_INDEX: B,
|
|
132
|
+
SET_STORIES: X,
|
|
133
|
+
SHARED_STATE_CHANGED: q,
|
|
134
|
+
SHARED_STATE_SET: b,
|
|
135
|
+
STORIES_COLLAPSE_ALL: K,
|
|
136
|
+
STORIES_EXPAND_ALL: j,
|
|
137
|
+
STORY_ARGS_UPDATED: k,
|
|
138
|
+
STORY_CHANGED: n,
|
|
139
|
+
STORY_ERRORED: z,
|
|
140
|
+
STORY_INDEX_INVALIDATED: J,
|
|
141
|
+
STORY_MISSING: Z,
|
|
142
|
+
STORY_PREPARED: $,
|
|
143
|
+
STORY_RENDER_PHASE_CHANGED: v,
|
|
144
|
+
STORY_RENDERED: EE,
|
|
145
|
+
STORY_FINISHED: RE,
|
|
146
|
+
STORY_SPECIFIED: _E,
|
|
147
|
+
STORY_THREW_EXCEPTION: SE,
|
|
148
|
+
STORY_UNCHANGED: TE,
|
|
149
|
+
UPDATE_GLOBALS: NE,
|
|
150
|
+
UPDATE_QUERY_PARAMS: OE,
|
|
151
|
+
UPDATE_STORY_ARGS: AE,
|
|
152
|
+
REQUEST_WHATS_NEW_DATA: rE,
|
|
153
|
+
RESULT_WHATS_NEW_DATA: DE,
|
|
154
|
+
SET_WHATS_NEW_CACHE: IE,
|
|
155
|
+
TOGGLE_WHATS_NEW_NOTIFICATIONS: oE,
|
|
156
|
+
TELEMETRY_ERROR: CE,
|
|
157
|
+
SAVE_STORY_REQUEST: LE,
|
|
158
|
+
SAVE_STORY_RESPONSE: PE,
|
|
159
|
+
ARGTYPES_INFO_REQUEST: UE,
|
|
160
|
+
ARGTYPES_INFO_RESPONSE: GE,
|
|
161
|
+
TESTING_MODULE_CRASH_REPORT: aE,
|
|
162
|
+
TESTING_MODULE_PROGRESS_REPORT: YE,
|
|
163
|
+
TESTING_MODULE_RUN_REQUEST: tE,
|
|
164
|
+
TESTING_MODULE_RUN_ALL_REQUEST: dE,
|
|
165
|
+
TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: eE,
|
|
166
|
+
TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: HE
|
|
167
|
+
} = O;
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import { Addon_TestProviderType, Addon_TestProviderState } from 'storybook/internal/types';
|
|
2
|
+
import { Report } from 'storybook/preview-api';
|
|
3
|
+
|
|
4
|
+
interface CreateNewStoryRequestPayload {
|
|
5
|
+
componentFilePath: string;
|
|
6
|
+
componentExportName: string;
|
|
7
|
+
componentIsDefaultExport: boolean;
|
|
8
|
+
componentExportCount: number;
|
|
9
|
+
}
|
|
10
|
+
interface CreateNewStoryResponsePayload {
|
|
11
|
+
storyId: string;
|
|
12
|
+
storyFilePath: string;
|
|
13
|
+
exportedStoryName: string;
|
|
14
|
+
}
|
|
15
|
+
type CreateNewStoryErrorPayload = {
|
|
16
|
+
type: 'STORY_FILE_EXISTS';
|
|
17
|
+
kind: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
interface FileComponentSearchRequestPayload {
|
|
21
|
+
}
|
|
22
|
+
interface FileComponentSearchResponsePayload {
|
|
23
|
+
files: Array<{
|
|
24
|
+
filepath: string;
|
|
25
|
+
storyFileExists: boolean;
|
|
26
|
+
exportedComponents: Array<{
|
|
27
|
+
name: string;
|
|
28
|
+
default: boolean;
|
|
29
|
+
}> | null;
|
|
30
|
+
}> | null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare global {
|
|
34
|
+
interface SymbolConstructor {
|
|
35
|
+
readonly observable: symbol;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface SBBaseType {
|
|
40
|
+
required?: boolean;
|
|
41
|
+
raw?: string;
|
|
42
|
+
}
|
|
43
|
+
type SBScalarType = SBBaseType & {
|
|
44
|
+
name: 'boolean' | 'string' | 'number' | 'function' | 'symbol';
|
|
45
|
+
};
|
|
46
|
+
type SBArrayType = SBBaseType & {
|
|
47
|
+
name: 'array';
|
|
48
|
+
value: SBType;
|
|
49
|
+
};
|
|
50
|
+
type SBObjectType = SBBaseType & {
|
|
51
|
+
name: 'object';
|
|
52
|
+
value: Record<string, SBType>;
|
|
53
|
+
};
|
|
54
|
+
type SBEnumType = SBBaseType & {
|
|
55
|
+
name: 'enum';
|
|
56
|
+
value: (string | number)[];
|
|
57
|
+
};
|
|
58
|
+
type SBIntersectionType = SBBaseType & {
|
|
59
|
+
name: 'intersection';
|
|
60
|
+
value: SBType[];
|
|
61
|
+
};
|
|
62
|
+
type SBUnionType = SBBaseType & {
|
|
63
|
+
name: 'union';
|
|
64
|
+
value: SBType[];
|
|
65
|
+
};
|
|
66
|
+
type SBOtherType = SBBaseType & {
|
|
67
|
+
name: 'other';
|
|
68
|
+
value: string;
|
|
69
|
+
};
|
|
70
|
+
type SBType = SBScalarType | SBEnumType | SBArrayType | SBObjectType | SBIntersectionType | SBUnionType | SBOtherType;
|
|
71
|
+
|
|
72
|
+
type ControlType = 'object' | 'boolean' | 'check' | 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select' | 'number' | 'range' | 'file' | 'color' | 'date' | 'text';
|
|
73
|
+
type ConditionalTest = {
|
|
74
|
+
truthy?: boolean;
|
|
75
|
+
} | {
|
|
76
|
+
exists: boolean;
|
|
77
|
+
} | {
|
|
78
|
+
eq: any;
|
|
79
|
+
} | {
|
|
80
|
+
neq: any;
|
|
81
|
+
};
|
|
82
|
+
type ConditionalValue = {
|
|
83
|
+
arg: string;
|
|
84
|
+
} | {
|
|
85
|
+
global: string;
|
|
86
|
+
};
|
|
87
|
+
type Conditional = ConditionalValue & ConditionalTest;
|
|
88
|
+
interface ControlBase {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controltype */
|
|
91
|
+
type?: ControlType;
|
|
92
|
+
disable?: boolean;
|
|
93
|
+
}
|
|
94
|
+
type Control = ControlType | false | (ControlBase & (ControlBase | {
|
|
95
|
+
type: 'color';
|
|
96
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors */
|
|
97
|
+
presetColors?: string[];
|
|
98
|
+
} | {
|
|
99
|
+
type: 'file';
|
|
100
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlaccept */
|
|
101
|
+
accept?: string;
|
|
102
|
+
} | {
|
|
103
|
+
type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select';
|
|
104
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controllabels */
|
|
105
|
+
labels?: {
|
|
106
|
+
[options: string]: string;
|
|
107
|
+
};
|
|
108
|
+
} | {
|
|
109
|
+
type: 'number' | 'range';
|
|
110
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlmax */
|
|
111
|
+
max?: number;
|
|
112
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlmin */
|
|
113
|
+
min?: number;
|
|
114
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlstep */
|
|
115
|
+
step?: number;
|
|
116
|
+
}));
|
|
117
|
+
interface InputType {
|
|
118
|
+
/** @see https://storybook.js.org/docs/api/arg-types#control */
|
|
119
|
+
control?: Control;
|
|
120
|
+
/** @see https://storybook.js.org/docs/api/arg-types#description */
|
|
121
|
+
description?: string;
|
|
122
|
+
/** @see https://storybook.js.org/docs/api/arg-types#if */
|
|
123
|
+
if?: Conditional;
|
|
124
|
+
/** @see https://storybook.js.org/docs/api/arg-types#mapping */
|
|
125
|
+
mapping?: {
|
|
126
|
+
[key: string]: any;
|
|
127
|
+
};
|
|
128
|
+
/** @see https://storybook.js.org/docs/api/arg-types#name */
|
|
129
|
+
name?: string;
|
|
130
|
+
/** @see https://storybook.js.org/docs/api/arg-types#options */
|
|
131
|
+
options?: readonly any[];
|
|
132
|
+
/** @see https://storybook.js.org/docs/api/arg-types#table */
|
|
133
|
+
table?: {
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tablecategory */
|
|
136
|
+
category?: string;
|
|
137
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tabledefaultvalue */
|
|
138
|
+
defaultValue?: {
|
|
139
|
+
summary?: string;
|
|
140
|
+
detail?: string;
|
|
141
|
+
};
|
|
142
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tabledisable */
|
|
143
|
+
disable?: boolean;
|
|
144
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tablesubcategory */
|
|
145
|
+
subcategory?: string;
|
|
146
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tabletype */
|
|
147
|
+
type?: {
|
|
148
|
+
summary?: string;
|
|
149
|
+
detail?: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/** @see https://storybook.js.org/docs/api/arg-types#type */
|
|
153
|
+
type?: SBType | SBScalarType['name'];
|
|
154
|
+
/**
|
|
155
|
+
* @deprecated Use `table.defaultValue.summary` instead.
|
|
156
|
+
* @see https://storybook.js.org/docs/api/arg-types#defaultvalue
|
|
157
|
+
*/
|
|
158
|
+
defaultValue?: any;
|
|
159
|
+
[key: string]: any;
|
|
160
|
+
}
|
|
161
|
+
interface Args {
|
|
162
|
+
[name: string]: any;
|
|
163
|
+
}
|
|
164
|
+
/** @see https://storybook.js.org/docs/api/arg-types#argtypes */
|
|
165
|
+
type ArgTypes<TArgs = Args> = {
|
|
166
|
+
[name in keyof TArgs]: InputType;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
interface ArgTypesRequestPayload {
|
|
170
|
+
storyId: string;
|
|
171
|
+
}
|
|
172
|
+
interface ArgTypesResponsePayload {
|
|
173
|
+
argTypes: ArgTypes;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
type RequestData<Payload = void> = {
|
|
177
|
+
id: string;
|
|
178
|
+
payload: Payload;
|
|
179
|
+
};
|
|
180
|
+
type ResponseData<Payload = void, ErrorPayload extends Record<string, any> | void = void> = {
|
|
181
|
+
id: string;
|
|
182
|
+
success: true;
|
|
183
|
+
error: null;
|
|
184
|
+
payload: Payload;
|
|
185
|
+
} | {
|
|
186
|
+
id: string;
|
|
187
|
+
success: false;
|
|
188
|
+
error: string;
|
|
189
|
+
payload?: ErrorPayload;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
interface SaveStoryRequestPayload {
|
|
193
|
+
args: string | undefined;
|
|
194
|
+
csfId: string;
|
|
195
|
+
importPath: string;
|
|
196
|
+
name?: string;
|
|
197
|
+
}
|
|
198
|
+
interface SaveStoryResponsePayload {
|
|
199
|
+
csfId: string;
|
|
200
|
+
newStoryId?: string;
|
|
201
|
+
newStoryName?: string;
|
|
202
|
+
newStoryExportName?: string;
|
|
203
|
+
sourceFileContent?: string;
|
|
204
|
+
sourceFileName?: string;
|
|
205
|
+
sourceStoryName?: string;
|
|
206
|
+
sourceStoryExportName?: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
interface WhatsNewCache {
|
|
210
|
+
lastDismissedPost?: string;
|
|
211
|
+
lastReadPost?: string;
|
|
212
|
+
}
|
|
213
|
+
type WhatsNewData = {
|
|
214
|
+
status: 'SUCCESS';
|
|
215
|
+
title: string;
|
|
216
|
+
url: string;
|
|
217
|
+
blogUrl?: string;
|
|
218
|
+
publishedAt: string;
|
|
219
|
+
excerpt: string;
|
|
220
|
+
postIsRead: boolean;
|
|
221
|
+
showNotification: boolean;
|
|
222
|
+
disableWhatsNewNotifications: boolean;
|
|
223
|
+
} | {
|
|
224
|
+
status: 'ERROR';
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
type DateNow = number;
|
|
228
|
+
type TestProviderId = Addon_TestProviderType['id'];
|
|
229
|
+
type TestProviderConfig = Addon_TestProviderType;
|
|
230
|
+
type TestProviderState<Details extends {
|
|
231
|
+
[key: string]: any;
|
|
232
|
+
} = NonNullable<unknown>> = Addon_TestProviderState<Details>;
|
|
233
|
+
type TestProviders = Record<TestProviderId, TestProviderConfig & TestProviderState>;
|
|
234
|
+
type TestingModuleRunRequestPayload = {
|
|
235
|
+
providerId: TestProviderId;
|
|
236
|
+
indexUrl: string;
|
|
237
|
+
storyIds?: string[];
|
|
238
|
+
};
|
|
239
|
+
type TestingModuleProgressReportPayload = {
|
|
240
|
+
providerId: TestProviderId;
|
|
241
|
+
status: 'success' | 'pending' | 'cancelled';
|
|
242
|
+
cancellable?: boolean;
|
|
243
|
+
progress?: TestingModuleProgressReportProgress;
|
|
244
|
+
details?: {
|
|
245
|
+
[key: string]: any;
|
|
246
|
+
};
|
|
247
|
+
} | {
|
|
248
|
+
providerId: TestProviderId;
|
|
249
|
+
status: 'failed';
|
|
250
|
+
progress?: TestingModuleProgressReportProgress;
|
|
251
|
+
details?: {
|
|
252
|
+
[key: string]: any;
|
|
253
|
+
};
|
|
254
|
+
error: {
|
|
255
|
+
name: string;
|
|
256
|
+
message: string;
|
|
257
|
+
stack?: string;
|
|
258
|
+
};
|
|
259
|
+
} | {
|
|
260
|
+
providerId: TestProviderId;
|
|
261
|
+
details: {
|
|
262
|
+
[key: string]: any;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
type TestingModuleCrashReportPayload = {
|
|
266
|
+
providerId: TestProviderId;
|
|
267
|
+
error: {
|
|
268
|
+
message: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
type TestingModuleProgressReportProgress = {
|
|
272
|
+
startedAt: DateNow;
|
|
273
|
+
finishedAt?: DateNow;
|
|
274
|
+
numTotalTests?: number;
|
|
275
|
+
numPassedTests?: number;
|
|
276
|
+
numFailedTests?: number;
|
|
277
|
+
numPendingTests?: number;
|
|
278
|
+
percentageCompleted?: number;
|
|
279
|
+
};
|
|
280
|
+
type Status = 'success' | 'failed' | 'pending';
|
|
281
|
+
type TestingModuleCancelTestRunRequestPayload = {
|
|
282
|
+
providerId: TestProviderId;
|
|
283
|
+
};
|
|
284
|
+
type TestingModuleCancelTestRunResponsePayload = {
|
|
285
|
+
status: 'success';
|
|
286
|
+
} | {
|
|
287
|
+
status: 'failed';
|
|
288
|
+
message: string;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
interface StoryFinishedPayload {
|
|
292
|
+
storyId: string;
|
|
293
|
+
status: 'error' | 'success';
|
|
294
|
+
reporters: Report[];
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare enum events {
|
|
298
|
+
CHANNEL_WS_DISCONNECT = "channelWSDisconnect",
|
|
299
|
+
CHANNEL_CREATED = "channelCreated",
|
|
300
|
+
CONFIG_ERROR = "configError",
|
|
301
|
+
STORY_INDEX_INVALIDATED = "storyIndexInvalidated",
|
|
302
|
+
STORY_SPECIFIED = "storySpecified",
|
|
303
|
+
SET_CONFIG = "setConfig",
|
|
304
|
+
SET_STORIES = "setStories",
|
|
305
|
+
SET_INDEX = "setIndex",
|
|
306
|
+
SET_CURRENT_STORY = "setCurrentStory",
|
|
307
|
+
CURRENT_STORY_WAS_SET = "currentStoryWasSet",
|
|
308
|
+
FORCE_RE_RENDER = "forceReRender",
|
|
309
|
+
FORCE_REMOUNT = "forceRemount",
|
|
310
|
+
PRELOAD_ENTRIES = "preloadStories",
|
|
311
|
+
STORY_PREPARED = "storyPrepared",
|
|
312
|
+
DOCS_PREPARED = "docsPrepared",
|
|
313
|
+
STORY_CHANGED = "storyChanged",
|
|
314
|
+
STORY_UNCHANGED = "storyUnchanged",
|
|
315
|
+
STORY_RENDERED = "storyRendered",
|
|
316
|
+
STORY_FINISHED = "storyFinished",
|
|
317
|
+
STORY_MISSING = "storyMissing",
|
|
318
|
+
STORY_ERRORED = "storyErrored",
|
|
319
|
+
STORY_THREW_EXCEPTION = "storyThrewException",
|
|
320
|
+
STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged",
|
|
321
|
+
PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException",
|
|
322
|
+
UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying",
|
|
323
|
+
UPDATE_STORY_ARGS = "updateStoryArgs",
|
|
324
|
+
STORY_ARGS_UPDATED = "storyArgsUpdated",
|
|
325
|
+
RESET_STORY_ARGS = "resetStoryArgs",
|
|
326
|
+
SET_FILTER = "setFilter",
|
|
327
|
+
SET_GLOBALS = "setGlobals",
|
|
328
|
+
UPDATE_GLOBALS = "updateGlobals",
|
|
329
|
+
GLOBALS_UPDATED = "globalsUpdated",
|
|
330
|
+
REGISTER_SUBSCRIPTION = "registerSubscription",
|
|
331
|
+
PREVIEW_KEYDOWN = "previewKeydown",
|
|
332
|
+
PREVIEW_BUILDER_PROGRESS = "preview_builder_progress",
|
|
333
|
+
SELECT_STORY = "selectStory",
|
|
334
|
+
STORIES_COLLAPSE_ALL = "storiesCollapseAll",
|
|
335
|
+
STORIES_EXPAND_ALL = "storiesExpandAll",
|
|
336
|
+
DOCS_RENDERED = "docsRendered",
|
|
337
|
+
SHARED_STATE_CHANGED = "sharedStateChanged",
|
|
338
|
+
SHARED_STATE_SET = "sharedStateSet",
|
|
339
|
+
NAVIGATE_URL = "navigateUrl",
|
|
340
|
+
UPDATE_QUERY_PARAMS = "updateQueryParams",
|
|
341
|
+
REQUEST_WHATS_NEW_DATA = "requestWhatsNewData",
|
|
342
|
+
RESULT_WHATS_NEW_DATA = "resultWhatsNewData",
|
|
343
|
+
SET_WHATS_NEW_CACHE = "setWhatsNewCache",
|
|
344
|
+
TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications",
|
|
345
|
+
TELEMETRY_ERROR = "telemetryError",
|
|
346
|
+
FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest",
|
|
347
|
+
FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse",
|
|
348
|
+
SAVE_STORY_REQUEST = "saveStoryRequest",
|
|
349
|
+
SAVE_STORY_RESPONSE = "saveStoryResponse",
|
|
350
|
+
ARGTYPES_INFO_REQUEST = "argtypesInfoRequest",
|
|
351
|
+
ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse",
|
|
352
|
+
CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest",
|
|
353
|
+
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse",
|
|
354
|
+
TESTING_MODULE_CRASH_REPORT = "testingModuleCrashReport",
|
|
355
|
+
TESTING_MODULE_PROGRESS_REPORT = "testingModuleProgressReport",
|
|
356
|
+
TESTING_MODULE_RUN_REQUEST = "testingModuleRunRequest",
|
|
357
|
+
/** @deprecated Use TESTING_MODULE_RUN_REQUEST instead */
|
|
358
|
+
TESTING_MODULE_RUN_ALL_REQUEST = "testingModuleRunAllRequest",
|
|
359
|
+
TESTING_MODULE_CANCEL_TEST_RUN_REQUEST = "testingModuleCancelTestRunRequest",
|
|
360
|
+
TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE = "testingModuleCancelTestRunResponse"
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
declare const CHANNEL_WS_DISCONNECT: events;
|
|
364
|
+
declare const CHANNEL_CREATED: events;
|
|
365
|
+
declare const CONFIG_ERROR: events;
|
|
366
|
+
declare const CREATE_NEW_STORYFILE_REQUEST: events;
|
|
367
|
+
declare const CREATE_NEW_STORYFILE_RESPONSE: events;
|
|
368
|
+
declare const CURRENT_STORY_WAS_SET: events;
|
|
369
|
+
declare const DOCS_PREPARED: events;
|
|
370
|
+
declare const DOCS_RENDERED: events;
|
|
371
|
+
declare const FILE_COMPONENT_SEARCH_REQUEST: events;
|
|
372
|
+
declare const FILE_COMPONENT_SEARCH_RESPONSE: events;
|
|
373
|
+
declare const FORCE_RE_RENDER: events;
|
|
374
|
+
declare const FORCE_REMOUNT: events;
|
|
375
|
+
declare const GLOBALS_UPDATED: events;
|
|
376
|
+
declare const NAVIGATE_URL: events;
|
|
377
|
+
declare const PLAY_FUNCTION_THREW_EXCEPTION: events;
|
|
378
|
+
declare const UNHANDLED_ERRORS_WHILE_PLAYING: events;
|
|
379
|
+
declare const PRELOAD_ENTRIES: events;
|
|
380
|
+
declare const PREVIEW_BUILDER_PROGRESS: events;
|
|
381
|
+
declare const PREVIEW_KEYDOWN: events;
|
|
382
|
+
declare const REGISTER_SUBSCRIPTION: events;
|
|
383
|
+
declare const RESET_STORY_ARGS: events;
|
|
384
|
+
declare const SELECT_STORY: events;
|
|
385
|
+
declare const SET_CONFIG: events;
|
|
386
|
+
declare const SET_CURRENT_STORY: events;
|
|
387
|
+
declare const SET_FILTER: events;
|
|
388
|
+
declare const SET_GLOBALS: events;
|
|
389
|
+
declare const SET_INDEX: events;
|
|
390
|
+
declare const SET_STORIES: events;
|
|
391
|
+
declare const SHARED_STATE_CHANGED: events;
|
|
392
|
+
declare const SHARED_STATE_SET: events;
|
|
393
|
+
declare const STORIES_COLLAPSE_ALL: events;
|
|
394
|
+
declare const STORIES_EXPAND_ALL: events;
|
|
395
|
+
declare const STORY_ARGS_UPDATED: events;
|
|
396
|
+
declare const STORY_CHANGED: events;
|
|
397
|
+
declare const STORY_ERRORED: events;
|
|
398
|
+
declare const STORY_INDEX_INVALIDATED: events;
|
|
399
|
+
declare const STORY_MISSING: events;
|
|
400
|
+
declare const STORY_PREPARED: events;
|
|
401
|
+
declare const STORY_RENDER_PHASE_CHANGED: events;
|
|
402
|
+
declare const STORY_RENDERED: events;
|
|
403
|
+
declare const STORY_FINISHED: events;
|
|
404
|
+
declare const STORY_SPECIFIED: events;
|
|
405
|
+
declare const STORY_THREW_EXCEPTION: events;
|
|
406
|
+
declare const STORY_UNCHANGED: events;
|
|
407
|
+
declare const UPDATE_GLOBALS: events;
|
|
408
|
+
declare const UPDATE_QUERY_PARAMS: events;
|
|
409
|
+
declare const UPDATE_STORY_ARGS: events;
|
|
410
|
+
declare const REQUEST_WHATS_NEW_DATA: events;
|
|
411
|
+
declare const RESULT_WHATS_NEW_DATA: events;
|
|
412
|
+
declare const SET_WHATS_NEW_CACHE: events;
|
|
413
|
+
declare const TOGGLE_WHATS_NEW_NOTIFICATIONS: events;
|
|
414
|
+
declare const TELEMETRY_ERROR: events;
|
|
415
|
+
declare const SAVE_STORY_REQUEST: events;
|
|
416
|
+
declare const SAVE_STORY_RESPONSE: events;
|
|
417
|
+
declare const ARGTYPES_INFO_REQUEST: events;
|
|
418
|
+
declare const ARGTYPES_INFO_RESPONSE: events;
|
|
419
|
+
declare const TESTING_MODULE_CRASH_REPORT: events;
|
|
420
|
+
declare const TESTING_MODULE_PROGRESS_REPORT: events;
|
|
421
|
+
declare const TESTING_MODULE_RUN_REQUEST: events;
|
|
422
|
+
declare const TESTING_MODULE_RUN_ALL_REQUEST: events;
|
|
423
|
+
declare const TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: events;
|
|
424
|
+
declare const TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: events;
|
|
425
|
+
|
|
426
|
+
export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type Status, type StoryFinishedPayload, TELEMETRY_ERROR, TESTING_MODULE_CANCEL_TEST_RUN_REQUEST, TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE, TESTING_MODULE_CRASH_REPORT, TESTING_MODULE_PROGRESS_REPORT, TESTING_MODULE_RUN_ALL_REQUEST, TESTING_MODULE_RUN_REQUEST, TOGGLE_WHATS_NEW_NOTIFICATIONS, type TestProviderConfig, type TestProviderId, type TestProviderState, type TestProviders, type TestingModuleCancelTestRunRequestPayload, type TestingModuleCancelTestRunResponsePayload, type TestingModuleCrashReportPayload, type TestingModuleProgressReportPayload, type TestingModuleProgressReportProgress, type TestingModuleRunRequestPayload, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default };
|