storybook 9.0.0-alpha.2 → 9.0.0-alpha.21
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 +1 -1
- package/assets/docs/addon-backgrounds.gif +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/highlight.png +0 -0
- package/assets/docs/viewport.png +0 -0
- package/assets/server/base-preview-head.html +1 -3
- package/bin/index.cjs +2 -2
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +134 -0
- package/dist/actions/index.cjs +123 -0
- package/dist/actions/index.d.ts +102 -0
- package/dist/actions/index.js +108 -0
- package/dist/actions/preview.cjs +161 -0
- package/dist/actions/preview.d.ts +54 -0
- package/dist/actions/preview.js +152 -0
- package/dist/babel/index.cjs +822 -816
- package/dist/babel/index.js +822 -816
- package/dist/backgrounds/index.cjs +148 -0
- package/dist/backgrounds/index.d.ts +91 -0
- package/dist/backgrounds/index.js +130 -0
- package/dist/backgrounds/preview.cjs +143 -0
- package/dist/backgrounds/preview.d.ts +54 -0
- package/dist/backgrounds/preview.js +127 -0
- package/dist/bin/index.cjs +49 -70
- package/dist/bin/index.js +49 -70
- package/dist/builder-manager/index.cjs +319 -326
- package/dist/builder-manager/index.js +576 -583
- package/dist/channels/index.cjs +1026 -981
- package/dist/channels/index.js +1258 -1207
- package/dist/cli/bin/index.cjs +483 -483
- package/dist/cli/bin/index.js +495 -495
- package/dist/cli/index.cjs +61735 -7590
- package/dist/cli/index.d.ts +25 -21
- package/dist/cli/index.js +61776 -7631
- package/dist/client-logger/index.cjs +56 -88
- package/dist/client-logger/index.js +41 -47
- package/dist/common/index.cjs +16137 -9085
- package/dist/common/index.d.ts +35 -30
- package/dist/common/index.js +16230 -9172
- package/dist/component-testing/index.cjs +23 -0
- package/dist/component-testing/index.d.ts +3 -0
- package/dist/component-testing/index.js +5 -0
- package/dist/component-testing/preview.cjs +40 -0
- package/dist/component-testing/preview.d.ts +5 -0
- package/dist/component-testing/preview.js +25 -0
- package/dist/components/index.cjs +16268 -24926
- package/dist/components/index.d.ts +98 -347
- package/dist/components/index.js +5905 -19177
- 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/preview.cjs +26 -0
- package/dist/controls/preview.d.ts +54 -0
- package/dist/controls/preview.js +9 -0
- package/dist/core-events/index.cjs +91 -106
- package/dist/core-events/index.d.ts +139 -104
- package/dist/core-events/index.js +79 -94
- package/dist/core-server/index.cjs +13898 -13409
- package/dist/core-server/index.d.ts +270 -3
- package/dist/core-server/index.js +13981 -13497
- package/dist/core-server/presets/common-manager.css +170 -0
- package/dist/core-server/presets/common-manager.js +12149 -17
- package/dist/core-server/presets/common-preset.cjs +3009 -3155
- package/dist/core-server/presets/common-preset.js +2862 -3009
- package/dist/csf/index.cjs +76 -120
- package/dist/csf/index.d.ts +2 -6
- package/dist/csf/index.js +69 -113
- package/dist/csf-tools/index.cjs +412 -403
- package/dist/csf-tools/index.d.ts +0 -4
- package/dist/csf-tools/index.js +410 -401
- package/dist/docs-tools/index.cjs +2569 -575
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +2565 -564
- package/dist/highlight/index.cjs +27 -0
- package/dist/highlight/index.d.ts +61 -0
- package/dist/highlight/index.js +7 -0
- package/dist/highlight/preview.cjs +535 -0
- package/dist/highlight/preview.d.ts +54 -0
- package/dist/highlight/preview.js +519 -0
- package/dist/instrumenter/index.cjs +2207 -2342
- package/dist/instrumenter/index.d.ts +8 -7
- package/dist/instrumenter/index.js +2430 -2603
- package/dist/manager/globals-module-info.cjs +291 -151
- package/dist/manager/globals-module-info.d.ts +1 -1
- package/dist/manager/globals-module-info.js +275 -135
- package/dist/manager/globals-runtime.js +60263 -28383
- package/dist/manager/globals.cjs +23 -19
- package/dist/manager/globals.d.ts +8 -5
- package/dist/manager/globals.js +10 -6
- package/dist/manager/runtime.js +4625 -3921
- package/dist/manager-api/index.cjs +4228 -3833
- package/dist/manager-api/index.d.ts +398 -102
- package/dist/manager-api/index.js +3500 -3084
- package/dist/manager-errors.d.ts +25 -1
- package/dist/manager-errors.js +50 -30
- package/dist/measure/index.cjs +476 -0
- package/dist/measure/index.d.ts +66 -0
- package/dist/measure/index.js +464 -0
- package/dist/measure/preview.cjs +466 -0
- package/dist/measure/preview.d.ts +59 -0
- package/dist/measure/preview.js +450 -0
- package/dist/outline/index.cjs +528 -0
- package/dist/outline/index.d.ts +66 -0
- package/dist/outline/index.js +500 -0
- package/dist/outline/preview.cjs +518 -0
- package/dist/outline/preview.d.ts +59 -0
- package/dist/outline/preview.js +486 -0
- package/dist/preview/globals.cjs +21 -17
- package/dist/preview/globals.d.ts +4 -1
- package/dist/preview/globals.js +6 -2
- package/dist/preview/runtime.js +46311 -6614
- package/dist/preview-api/index.cjs +1363 -1899
- package/dist/preview-api/index.d.ts +81 -395
- package/dist/preview-api/index.js +1711 -2169
- package/dist/preview-errors.cjs +119 -88
- package/dist/preview-errors.d.ts +30 -2
- package/dist/preview-errors.js +192 -142
- package/dist/router/index.cjs +847 -871
- package/dist/router/index.js +193 -199
- package/dist/server-errors.cjs +188 -124
- package/dist/server-errors.d.ts +36 -2
- package/dist/server-errors.js +188 -124
- package/dist/telemetry/index.cjs +1056 -1979
- package/dist/telemetry/index.d.ts +26 -5
- package/dist/telemetry/index.js +1091 -2010
- package/dist/test/index.cjs +35686 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +33840 -0
- package/dist/test/preview.cjs +15870 -0
- package/dist/test/preview.d.ts +48 -0
- package/dist/test/preview.js +14501 -0
- package/dist/test/spy.cjs +258 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +240 -0
- package/dist/theming/create.cjs +79 -2269
- package/dist/theming/create.js +67 -841
- package/dist/theming/index.cjs +1065 -3232
- package/dist/theming/index.js +951 -1719
- package/dist/types/index.cjs +11 -12
- package/dist/types/index.d.ts +684 -163
- package/dist/types/index.js +1 -2
- 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/preview.cjs +35 -0
- package/dist/viewport/preview.d.ts +68 -0
- package/dist/viewport/preview.js +19 -0
- package/package.json +359 -12
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Addon_TestProviderType, Addon_TestProviderState, NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
|
|
1
|
+
import { Report } from 'storybook/preview-api';
|
|
3
2
|
|
|
4
3
|
interface CreateNewStoryRequestPayload {
|
|
5
4
|
componentFilePath: string;
|
|
@@ -30,6 +29,142 @@ interface FileComponentSearchResponsePayload {
|
|
|
30
29
|
}> | null;
|
|
31
30
|
}
|
|
32
31
|
|
|
32
|
+
declare global {
|
|
33
|
+
interface SymbolConstructor {
|
|
34
|
+
readonly observable: symbol;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface SBBaseType {
|
|
39
|
+
required?: boolean;
|
|
40
|
+
raw?: string;
|
|
41
|
+
}
|
|
42
|
+
type SBScalarType = SBBaseType & {
|
|
43
|
+
name: 'boolean' | 'string' | 'number' | 'function' | 'symbol';
|
|
44
|
+
};
|
|
45
|
+
type SBArrayType = SBBaseType & {
|
|
46
|
+
name: 'array';
|
|
47
|
+
value: SBType;
|
|
48
|
+
};
|
|
49
|
+
type SBObjectType = SBBaseType & {
|
|
50
|
+
name: 'object';
|
|
51
|
+
value: Record<string, SBType>;
|
|
52
|
+
};
|
|
53
|
+
type SBEnumType = SBBaseType & {
|
|
54
|
+
name: 'enum';
|
|
55
|
+
value: (string | number)[];
|
|
56
|
+
};
|
|
57
|
+
type SBIntersectionType = SBBaseType & {
|
|
58
|
+
name: 'intersection';
|
|
59
|
+
value: SBType[];
|
|
60
|
+
};
|
|
61
|
+
type SBUnionType = SBBaseType & {
|
|
62
|
+
name: 'union';
|
|
63
|
+
value: SBType[];
|
|
64
|
+
};
|
|
65
|
+
type SBOtherType = SBBaseType & {
|
|
66
|
+
name: 'other';
|
|
67
|
+
value: string;
|
|
68
|
+
};
|
|
69
|
+
type SBType = SBScalarType | SBEnumType | SBArrayType | SBObjectType | SBIntersectionType | SBUnionType | SBOtherType;
|
|
70
|
+
|
|
71
|
+
type ControlType = 'object' | 'boolean' | 'check' | 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select' | 'number' | 'range' | 'file' | 'color' | 'date' | 'text';
|
|
72
|
+
type ConditionalTest = {
|
|
73
|
+
truthy?: boolean;
|
|
74
|
+
} | {
|
|
75
|
+
exists: boolean;
|
|
76
|
+
} | {
|
|
77
|
+
eq: any;
|
|
78
|
+
} | {
|
|
79
|
+
neq: any;
|
|
80
|
+
};
|
|
81
|
+
type ConditionalValue = {
|
|
82
|
+
arg: string;
|
|
83
|
+
} | {
|
|
84
|
+
global: string;
|
|
85
|
+
};
|
|
86
|
+
type Conditional = ConditionalValue & ConditionalTest;
|
|
87
|
+
interface ControlBase {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controltype */
|
|
90
|
+
type?: ControlType;
|
|
91
|
+
disable?: boolean;
|
|
92
|
+
}
|
|
93
|
+
type Control = ControlType | false | (ControlBase & (ControlBase | {
|
|
94
|
+
type: 'color';
|
|
95
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors */
|
|
96
|
+
presetColors?: string[];
|
|
97
|
+
} | {
|
|
98
|
+
type: 'file';
|
|
99
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlaccept */
|
|
100
|
+
accept?: string;
|
|
101
|
+
} | {
|
|
102
|
+
type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select';
|
|
103
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controllabels */
|
|
104
|
+
labels?: {
|
|
105
|
+
[options: string]: string;
|
|
106
|
+
};
|
|
107
|
+
} | {
|
|
108
|
+
type: 'number' | 'range';
|
|
109
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlmax */
|
|
110
|
+
max?: number;
|
|
111
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlmin */
|
|
112
|
+
min?: number;
|
|
113
|
+
/** @see https://storybook.js.org/docs/api/arg-types#controlstep */
|
|
114
|
+
step?: number;
|
|
115
|
+
}));
|
|
116
|
+
interface InputType {
|
|
117
|
+
/** @see https://storybook.js.org/docs/api/arg-types#control */
|
|
118
|
+
control?: Control;
|
|
119
|
+
/** @see https://storybook.js.org/docs/api/arg-types#description */
|
|
120
|
+
description?: string;
|
|
121
|
+
/** @see https://storybook.js.org/docs/api/arg-types#if */
|
|
122
|
+
if?: Conditional;
|
|
123
|
+
/** @see https://storybook.js.org/docs/api/arg-types#mapping */
|
|
124
|
+
mapping?: {
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
};
|
|
127
|
+
/** @see https://storybook.js.org/docs/api/arg-types#name */
|
|
128
|
+
name?: string;
|
|
129
|
+
/** @see https://storybook.js.org/docs/api/arg-types#options */
|
|
130
|
+
options?: readonly any[];
|
|
131
|
+
/** @see https://storybook.js.org/docs/api/arg-types#table */
|
|
132
|
+
table?: {
|
|
133
|
+
[key: string]: unknown;
|
|
134
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tablecategory */
|
|
135
|
+
category?: string;
|
|
136
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tabledefaultvalue */
|
|
137
|
+
defaultValue?: {
|
|
138
|
+
summary?: string;
|
|
139
|
+
detail?: string;
|
|
140
|
+
};
|
|
141
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tabledisable */
|
|
142
|
+
disable?: boolean;
|
|
143
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tablesubcategory */
|
|
144
|
+
subcategory?: string;
|
|
145
|
+
/** @see https://storybook.js.org/docs/api/arg-types#tabletype */
|
|
146
|
+
type?: {
|
|
147
|
+
summary?: string;
|
|
148
|
+
detail?: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/** @see https://storybook.js.org/docs/api/arg-types#type */
|
|
152
|
+
type?: SBType | SBScalarType['name'];
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated Use `table.defaultValue.summary` instead.
|
|
155
|
+
* @see https://storybook.js.org/docs/api/arg-types#defaultvalue
|
|
156
|
+
*/
|
|
157
|
+
defaultValue?: any;
|
|
158
|
+
[key: string]: any;
|
|
159
|
+
}
|
|
160
|
+
interface Args {
|
|
161
|
+
[name: string]: any;
|
|
162
|
+
}
|
|
163
|
+
/** @see https://storybook.js.org/docs/api/arg-types#argtypes */
|
|
164
|
+
type ArgTypes<TArgs = Args> = {
|
|
165
|
+
[name in keyof TArgs]: InputType;
|
|
166
|
+
};
|
|
167
|
+
|
|
33
168
|
interface ArgTypesRequestPayload {
|
|
34
169
|
storyId: string;
|
|
35
170
|
}
|
|
@@ -88,93 +223,6 @@ type WhatsNewData = {
|
|
|
88
223
|
status: 'ERROR';
|
|
89
224
|
};
|
|
90
225
|
|
|
91
|
-
type DateNow = number;
|
|
92
|
-
type TestProviderId = Addon_TestProviderType['id'];
|
|
93
|
-
type TestProviderConfig = Addon_TestProviderType;
|
|
94
|
-
type TestProviderState<Details extends {
|
|
95
|
-
[key: string]: any;
|
|
96
|
-
} = NonNullable<unknown>> = Addon_TestProviderState<Details>;
|
|
97
|
-
type TestProviders = Record<TestProviderId, TestProviderConfig & TestProviderState>;
|
|
98
|
-
type TestingModuleRunRequestPayload = {
|
|
99
|
-
providerId: TestProviderId;
|
|
100
|
-
indexUrl: string;
|
|
101
|
-
storyIds?: string[];
|
|
102
|
-
};
|
|
103
|
-
type TestingModuleProgressReportPayload = {
|
|
104
|
-
providerId: TestProviderId;
|
|
105
|
-
status: 'success' | 'pending' | 'cancelled';
|
|
106
|
-
cancellable?: boolean;
|
|
107
|
-
progress?: TestingModuleProgressReportProgress;
|
|
108
|
-
details?: {
|
|
109
|
-
[key: string]: any;
|
|
110
|
-
};
|
|
111
|
-
} | {
|
|
112
|
-
providerId: TestProviderId;
|
|
113
|
-
status: 'failed';
|
|
114
|
-
progress?: TestingModuleProgressReportProgress;
|
|
115
|
-
details?: {
|
|
116
|
-
[key: string]: any;
|
|
117
|
-
};
|
|
118
|
-
error: {
|
|
119
|
-
name: string;
|
|
120
|
-
message: string;
|
|
121
|
-
stack?: string;
|
|
122
|
-
};
|
|
123
|
-
} | {
|
|
124
|
-
providerId: TestProviderId;
|
|
125
|
-
details: {
|
|
126
|
-
[key: string]: any;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
type TestingModuleCrashReportPayload = {
|
|
130
|
-
providerId: TestProviderId;
|
|
131
|
-
error: {
|
|
132
|
-
message: string;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
type TestingModuleProgressReportProgress = {
|
|
136
|
-
startedAt: DateNow;
|
|
137
|
-
finishedAt?: DateNow;
|
|
138
|
-
numTotalTests?: number;
|
|
139
|
-
numPassedTests?: number;
|
|
140
|
-
numFailedTests?: number;
|
|
141
|
-
numPendingTests?: number;
|
|
142
|
-
percentageCompleted?: number;
|
|
143
|
-
};
|
|
144
|
-
type Status = 'success' | 'failed' | 'pending';
|
|
145
|
-
type TestingModuleCancelTestRunRequestPayload = {
|
|
146
|
-
providerId: TestProviderId;
|
|
147
|
-
};
|
|
148
|
-
type TestingModuleCancelTestRunResponsePayload = {
|
|
149
|
-
status: 'success';
|
|
150
|
-
} | {
|
|
151
|
-
status: 'failed';
|
|
152
|
-
message: string;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
declare global {
|
|
156
|
-
var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
|
|
157
|
-
var defaultProjectAnnotations: ProjectAnnotations<any>;
|
|
158
|
-
}
|
|
159
|
-
type WrappedStoryRef = {
|
|
160
|
-
__pw_type: 'jsx' | 'importRef';
|
|
161
|
-
};
|
|
162
|
-
type UnwrappedJSXStoryRef = {
|
|
163
|
-
__pw_type: 'jsx';
|
|
164
|
-
type: UnwrappedImportStoryRef;
|
|
165
|
-
};
|
|
166
|
-
type UnwrappedImportStoryRef = ComposedStoryFn;
|
|
167
|
-
declare global {
|
|
168
|
-
function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
interface Report<T = unknown> {
|
|
172
|
-
type: string;
|
|
173
|
-
version?: number;
|
|
174
|
-
result: T;
|
|
175
|
-
status: 'failed' | 'passed' | 'warning';
|
|
176
|
-
}
|
|
177
|
-
|
|
178
226
|
interface StoryFinishedPayload {
|
|
179
227
|
storyId: string;
|
|
180
228
|
status: 'error' | 'success';
|
|
@@ -237,14 +285,7 @@ declare enum events {
|
|
|
237
285
|
ARGTYPES_INFO_REQUEST = "argtypesInfoRequest",
|
|
238
286
|
ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse",
|
|
239
287
|
CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest",
|
|
240
|
-
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse"
|
|
241
|
-
TESTING_MODULE_CRASH_REPORT = "testingModuleCrashReport",
|
|
242
|
-
TESTING_MODULE_PROGRESS_REPORT = "testingModuleProgressReport",
|
|
243
|
-
TESTING_MODULE_RUN_REQUEST = "testingModuleRunRequest",
|
|
244
|
-
/** @deprecated Use TESTING_MODULE_RUN_REQUEST instead */
|
|
245
|
-
TESTING_MODULE_RUN_ALL_REQUEST = "testingModuleRunAllRequest",
|
|
246
|
-
TESTING_MODULE_CANCEL_TEST_RUN_REQUEST = "testingModuleCancelTestRunRequest",
|
|
247
|
-
TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE = "testingModuleCancelTestRunResponse"
|
|
288
|
+
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse"
|
|
248
289
|
}
|
|
249
290
|
|
|
250
291
|
declare const CHANNEL_WS_DISCONNECT: events;
|
|
@@ -303,11 +344,5 @@ declare const SAVE_STORY_REQUEST: events;
|
|
|
303
344
|
declare const SAVE_STORY_RESPONSE: events;
|
|
304
345
|
declare const ARGTYPES_INFO_REQUEST: events;
|
|
305
346
|
declare const ARGTYPES_INFO_RESPONSE: events;
|
|
306
|
-
declare const TESTING_MODULE_CRASH_REPORT: events;
|
|
307
|
-
declare const TESTING_MODULE_PROGRESS_REPORT: events;
|
|
308
|
-
declare const TESTING_MODULE_RUN_REQUEST: events;
|
|
309
|
-
declare const TESTING_MODULE_RUN_ALL_REQUEST: events;
|
|
310
|
-
declare const TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: events;
|
|
311
|
-
declare const TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: events;
|
|
312
347
|
|
|
313
|
-
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
|
|
348
|
+
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 StoryFinishedPayload, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default };
|
|
@@ -15,135 +15,120 @@ REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", E.RESULT_WHATS_NEW_DATA = "resul
|
|
|
15
15
|
TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", E.TELEMETRY_ERROR = "telemetryError", E.FILE_COMPONENT_SEARCH_REQUEST = "fil\
|
|
16
16
|
eComponentSearchRequest", E.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", E.SAVE_STORY_REQUEST = "saveStoryRequest", E.SAVE_STORY_RESPONSE =
|
|
17
17
|
"saveStoryResponse", E.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", E.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", E.CREATE_NEW_STORYFILE_REQUEST =
|
|
18
|
-
"createNewStoryfileRequest", E.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", E
|
|
19
|
-
|
|
20
|
-
"testingModuleRunAllRequest", E.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST = "testingModuleCancelTestRunRequest", E.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE =
|
|
21
|
-
"testingModuleCancelTestRunResponse", E))(R || {}), _ = R, {
|
|
22
|
-
CHANNEL_WS_DISCONNECT: S,
|
|
18
|
+
"createNewStoryfileRequest", E.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", E))(R || {}), S = R, {
|
|
19
|
+
CHANNEL_WS_DISCONNECT: _,
|
|
23
20
|
CHANNEL_CREATED: T,
|
|
24
|
-
CONFIG_ERROR:
|
|
21
|
+
CONFIG_ERROR: A,
|
|
25
22
|
CREATE_NEW_STORYFILE_REQUEST: O,
|
|
26
|
-
CREATE_NEW_STORYFILE_RESPONSE:
|
|
23
|
+
CREATE_NEW_STORYFILE_RESPONSE: N,
|
|
27
24
|
CURRENT_STORY_WAS_SET: r,
|
|
28
25
|
DOCS_PREPARED: D,
|
|
29
26
|
DOCS_RENDERED: I,
|
|
30
27
|
FILE_COMPONENT_SEARCH_REQUEST: o,
|
|
31
28
|
FILE_COMPONENT_SEARCH_RESPONSE: C,
|
|
32
|
-
FORCE_RE_RENDER:
|
|
33
|
-
FORCE_REMOUNT:
|
|
34
|
-
GLOBALS_UPDATED:
|
|
35
|
-
NAVIGATE_URL:
|
|
36
|
-
PLAY_FUNCTION_THREW_EXCEPTION:
|
|
37
|
-
UNHANDLED_ERRORS_WHILE_PLAYING:
|
|
38
|
-
PRELOAD_ENTRIES:
|
|
39
|
-
PREVIEW_BUILDER_PROGRESS:
|
|
40
|
-
PREVIEW_KEYDOWN:
|
|
41
|
-
REGISTER_SUBSCRIPTION:
|
|
42
|
-
RESET_STORY_ARGS:
|
|
43
|
-
SELECT_STORY:
|
|
44
|
-
SET_CONFIG:
|
|
45
|
-
SET_CURRENT_STORY:
|
|
46
|
-
SET_FILTER:
|
|
47
|
-
SET_GLOBALS:
|
|
48
|
-
SET_INDEX:
|
|
49
|
-
SET_STORIES:
|
|
50
|
-
SHARED_STATE_CHANGED:
|
|
51
|
-
SHARED_STATE_SET:
|
|
52
|
-
STORIES_COLLAPSE_ALL:
|
|
53
|
-
STORIES_EXPAND_ALL:
|
|
54
|
-
STORY_ARGS_UPDATED:
|
|
55
|
-
STORY_CHANGED:
|
|
56
|
-
STORY_ERRORED:
|
|
57
|
-
STORY_INDEX_INVALIDATED:
|
|
29
|
+
FORCE_RE_RENDER: P,
|
|
30
|
+
FORCE_REMOUNT: L,
|
|
31
|
+
GLOBALS_UPDATED: Y,
|
|
32
|
+
NAVIGATE_URL: a,
|
|
33
|
+
PLAY_FUNCTION_THREW_EXCEPTION: U,
|
|
34
|
+
UNHANDLED_ERRORS_WHILE_PLAYING: G,
|
|
35
|
+
PRELOAD_ENTRIES: W,
|
|
36
|
+
PREVIEW_BUILDER_PROGRESS: H,
|
|
37
|
+
PREVIEW_KEYDOWN: d,
|
|
38
|
+
REGISTER_SUBSCRIPTION: t,
|
|
39
|
+
RESET_STORY_ARGS: p,
|
|
40
|
+
SELECT_STORY: i,
|
|
41
|
+
SET_CONFIG: F,
|
|
42
|
+
SET_CURRENT_STORY: l,
|
|
43
|
+
SET_FILTER: e,
|
|
44
|
+
SET_GLOBALS: y,
|
|
45
|
+
SET_INDEX: c,
|
|
46
|
+
SET_STORIES: h,
|
|
47
|
+
SHARED_STATE_CHANGED: f,
|
|
48
|
+
SHARED_STATE_SET: g,
|
|
49
|
+
STORIES_COLLAPSE_ALL: u,
|
|
50
|
+
STORIES_EXPAND_ALL: s,
|
|
51
|
+
STORY_ARGS_UPDATED: x,
|
|
52
|
+
STORY_CHANGED: m,
|
|
53
|
+
STORY_ERRORED: M,
|
|
54
|
+
STORY_INDEX_INVALIDATED: Q,
|
|
58
55
|
STORY_MISSING: V,
|
|
59
56
|
STORY_PREPARED: w,
|
|
60
57
|
STORY_RENDER_PHASE_CHANGED: B,
|
|
61
58
|
STORY_RENDERED: X,
|
|
62
|
-
STORY_FINISHED:
|
|
63
|
-
STORY_SPECIFIED:
|
|
59
|
+
STORY_FINISHED: b,
|
|
60
|
+
STORY_SPECIFIED: q,
|
|
64
61
|
STORY_THREW_EXCEPTION: K,
|
|
65
62
|
STORY_UNCHANGED: j,
|
|
66
63
|
UPDATE_GLOBALS: k,
|
|
67
|
-
UPDATE_QUERY_PARAMS:
|
|
68
|
-
UPDATE_STORY_ARGS:
|
|
69
|
-
REQUEST_WHATS_NEW_DATA:
|
|
70
|
-
RESULT_WHATS_NEW_DATA:
|
|
71
|
-
SET_WHATS_NEW_CACHE:
|
|
64
|
+
UPDATE_QUERY_PARAMS: z,
|
|
65
|
+
UPDATE_STORY_ARGS: J,
|
|
66
|
+
REQUEST_WHATS_NEW_DATA: Z,
|
|
67
|
+
RESULT_WHATS_NEW_DATA: $,
|
|
68
|
+
SET_WHATS_NEW_CACHE: n,
|
|
72
69
|
TOGGLE_WHATS_NEW_NOTIFICATIONS: v,
|
|
73
70
|
TELEMETRY_ERROR: EE,
|
|
74
71
|
SAVE_STORY_REQUEST: RE,
|
|
75
|
-
SAVE_STORY_RESPONSE:
|
|
76
|
-
ARGTYPES_INFO_REQUEST:
|
|
77
|
-
ARGTYPES_INFO_RESPONSE: TE
|
|
78
|
-
TESTING_MODULE_CRASH_REPORT: NE,
|
|
79
|
-
TESTING_MODULE_PROGRESS_REPORT: OE,
|
|
80
|
-
TESTING_MODULE_RUN_REQUEST: AE,
|
|
81
|
-
TESTING_MODULE_RUN_ALL_REQUEST: rE,
|
|
82
|
-
TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: DE,
|
|
83
|
-
TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: IE
|
|
72
|
+
SAVE_STORY_RESPONSE: SE,
|
|
73
|
+
ARGTYPES_INFO_REQUEST: _E,
|
|
74
|
+
ARGTYPES_INFO_RESPONSE: TE
|
|
84
75
|
} = R;
|
|
85
76
|
export {
|
|
86
|
-
|
|
77
|
+
_E as ARGTYPES_INFO_REQUEST,
|
|
87
78
|
TE as ARGTYPES_INFO_RESPONSE,
|
|
88
79
|
T as CHANNEL_CREATED,
|
|
89
|
-
|
|
90
|
-
|
|
80
|
+
_ as CHANNEL_WS_DISCONNECT,
|
|
81
|
+
A as CONFIG_ERROR,
|
|
91
82
|
O as CREATE_NEW_STORYFILE_REQUEST,
|
|
92
|
-
|
|
83
|
+
N as CREATE_NEW_STORYFILE_RESPONSE,
|
|
93
84
|
r as CURRENT_STORY_WAS_SET,
|
|
94
85
|
D as DOCS_PREPARED,
|
|
95
86
|
I as DOCS_RENDERED,
|
|
96
87
|
o as FILE_COMPONENT_SEARCH_REQUEST,
|
|
97
88
|
C as FILE_COMPONENT_SEARCH_RESPONSE,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
89
|
+
L as FORCE_REMOUNT,
|
|
90
|
+
P as FORCE_RE_RENDER,
|
|
91
|
+
Y as GLOBALS_UPDATED,
|
|
92
|
+
a as NAVIGATE_URL,
|
|
93
|
+
U as PLAY_FUNCTION_THREW_EXCEPTION,
|
|
94
|
+
W as PRELOAD_ENTRIES,
|
|
95
|
+
H as PREVIEW_BUILDER_PROGRESS,
|
|
96
|
+
d as PREVIEW_KEYDOWN,
|
|
97
|
+
t as REGISTER_SUBSCRIPTION,
|
|
98
|
+
Z as REQUEST_WHATS_NEW_DATA,
|
|
99
|
+
p as RESET_STORY_ARGS,
|
|
100
|
+
$ as RESULT_WHATS_NEW_DATA,
|
|
110
101
|
RE as SAVE_STORY_REQUEST,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
102
|
+
SE as SAVE_STORY_RESPONSE,
|
|
103
|
+
i as SELECT_STORY,
|
|
104
|
+
F as SET_CONFIG,
|
|
105
|
+
l as SET_CURRENT_STORY,
|
|
106
|
+
e as SET_FILTER,
|
|
107
|
+
y as SET_GLOBALS,
|
|
108
|
+
c as SET_INDEX,
|
|
109
|
+
h as SET_STORIES,
|
|
110
|
+
n as SET_WHATS_NEW_CACHE,
|
|
111
|
+
f as SHARED_STATE_CHANGED,
|
|
112
|
+
g as SHARED_STATE_SET,
|
|
113
|
+
u as STORIES_COLLAPSE_ALL,
|
|
114
|
+
s as STORIES_EXPAND_ALL,
|
|
115
|
+
x as STORY_ARGS_UPDATED,
|
|
116
|
+
m as STORY_CHANGED,
|
|
117
|
+
M as STORY_ERRORED,
|
|
118
|
+
b as STORY_FINISHED,
|
|
119
|
+
Q as STORY_INDEX_INVALIDATED,
|
|
129
120
|
V as STORY_MISSING,
|
|
130
121
|
w as STORY_PREPARED,
|
|
131
122
|
X as STORY_RENDERED,
|
|
132
123
|
B as STORY_RENDER_PHASE_CHANGED,
|
|
133
|
-
|
|
124
|
+
q as STORY_SPECIFIED,
|
|
134
125
|
K as STORY_THREW_EXCEPTION,
|
|
135
126
|
j as STORY_UNCHANGED,
|
|
136
127
|
EE as TELEMETRY_ERROR,
|
|
137
|
-
DE as TESTING_MODULE_CANCEL_TEST_RUN_REQUEST,
|
|
138
|
-
IE as TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE,
|
|
139
|
-
NE as TESTING_MODULE_CRASH_REPORT,
|
|
140
|
-
OE as TESTING_MODULE_PROGRESS_REPORT,
|
|
141
|
-
rE as TESTING_MODULE_RUN_ALL_REQUEST,
|
|
142
|
-
AE as TESTING_MODULE_RUN_REQUEST,
|
|
143
128
|
v as TOGGLE_WHATS_NEW_NOTIFICATIONS,
|
|
144
|
-
|
|
129
|
+
G as UNHANDLED_ERRORS_WHILE_PLAYING,
|
|
145
130
|
k as UPDATE_GLOBALS,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
131
|
+
z as UPDATE_QUERY_PARAMS,
|
|
132
|
+
J as UPDATE_STORY_ARGS,
|
|
133
|
+
S as default
|
|
149
134
|
};
|