storybook 10.2.0-alpha.5 → 10.2.0-alpha.7
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/dist/_browser-chunks/{chunk-HX32VQZR.js → chunk-EUPBEOK3.js} +2 -2
- package/dist/_browser-chunks/{chunk-6QKNWBQB.js → chunk-LOTN4ZCW.js} +14 -10
- package/dist/_browser-chunks/{chunk-UXVP56J6.js → chunk-POMIZRJL.js} +1 -1
- package/dist/_node-chunks/{builder-manager-OWA7PM5D.js → builder-manager-CUNI3ZJ4.js} +12 -12
- package/dist/_node-chunks/{camelcase-2LEK4OOC.js → camelcase-4GVAWYWU.js} +7 -7
- package/dist/_node-chunks/{chunk-MJEVYN6O.js → chunk-2TPGTNH3.js} +7 -7
- package/dist/_node-chunks/{chunk-53QZPC5B.js → chunk-56LVYN72.js} +7 -7
- package/dist/_node-chunks/chunk-AT23E4EQ.js +61 -0
- package/dist/_node-chunks/{chunk-J7VMFLRZ.js → chunk-BUUY73HB.js} +6 -6
- package/dist/_node-chunks/{chunk-FUGUVTSE.js → chunk-BVT57OPU.js} +8 -8
- package/dist/_node-chunks/{chunk-Q4YMOGYF.js → chunk-DF3MHTVA.js} +8 -8
- package/dist/_node-chunks/{chunk-TM67IYGR.js → chunk-FVVGYCVC.js} +7 -7
- package/dist/_node-chunks/{chunk-5MG7AO5M.js → chunk-JVSFH4RF.js} +14 -14
- package/dist/_node-chunks/{chunk-VG22ND3P.js → chunk-LPSISNQS.js} +76 -19
- package/dist/_node-chunks/chunk-LZSDDOT4.js +23 -0
- package/dist/_node-chunks/{chunk-APNNQRRU.js → chunk-M5E3YC4T.js} +6 -6
- package/dist/_node-chunks/{chunk-UIW2C2AI.js → chunk-NYGO6SRI.js} +6 -6
- package/dist/_node-chunks/{chunk-HT3TF35B.js → chunk-P445LZJB.js} +6 -6
- package/dist/_node-chunks/{chunk-SKKDMIEL.js → chunk-PGJHGLNH.js} +9 -9
- package/dist/_node-chunks/{chunk-WAM2AUH6.js → chunk-PQM4RHC4.js} +7 -7
- package/dist/_node-chunks/{chunk-QUCPWX6N.js → chunk-PYUJOHPH.js} +15 -15
- package/dist/_node-chunks/{chunk-WMGB2RD3.js → chunk-QJ6C6Y4J.js} +7 -7
- package/dist/_node-chunks/{chunk-ZRAJ6YTG.js → chunk-R3N2GWVX.js} +32 -32
- package/dist/_node-chunks/{chunk-BPLKNOG7.js → chunk-RCTV2GMQ.js} +7 -7
- package/dist/_node-chunks/{chunk-LOJ6VLWV.js → chunk-TBPJCWU7.js} +6 -6
- package/dist/_node-chunks/chunk-TTG4OTIQ.js +18 -0
- package/dist/_node-chunks/{chunk-TX3LEYMY.js → chunk-VCZD6QSG.js} +9 -9
- package/dist/_node-chunks/{chunk-JRJT7Q2N.js → chunk-VRAZAZEV.js} +7 -7
- package/dist/_node-chunks/{chunk-3NPQ2Y77.js → chunk-Y53XRTM4.js} +18 -18
- package/dist/_node-chunks/{chunk-RJ6MVIQ7.js → chunk-Y6L7H22H.js} +6 -6
- package/dist/_node-chunks/{chunk-TUFR2XYI.js → chunk-YPUOZX6Y.js} +6 -6
- package/dist/_node-chunks/{chunk-Q2N5EUMK.js → chunk-ZNQQBZIL.js} +7 -7
- package/dist/_node-chunks/{dist-KMT22HT2.js → dist-5DA7I4HZ.js} +9 -9
- package/dist/_node-chunks/{globby-MSDE3LN6.js → globby-UXUG5UXW.js} +9 -9
- package/dist/_node-chunks/{lib-2BTWTGXL.js → lib-JGWMRG56.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-RO5JQN35.js → mdx-N42X6CFJ-SS3BBRSA.js} +8 -8
- package/dist/_node-chunks/{p-limit-6ZDUMRV5.js → p-limit-QEWD3I7K.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +1 -1
- package/dist/core-server/index.js +259 -633
- package/dist/core-server/presets/common-manager.js +48 -27
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +27 -29
- package/dist/csf/index.d.ts +41 -11
- package/dist/csf/index.js +2 -2
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +1 -1
- package/dist/manager/globals-runtime.js +7 -7
- package/dist/manager/runtime.js +4 -4
- package/dist/manager-api/index.js +7 -7
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +2 -2
- package/dist/preview-api/index.js +2 -2
- package/dist/preview-errors.js +1 -1
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +9 -2
- package/dist/telemetry/index.js +27 -25
- package/dist/viewport/index.d.ts +3 -3
- package/package.json +2 -2
- package/dist/_node-chunks/chunk-4P6JV5PD.js +0 -61
- package/dist/_node-chunks/chunk-IMOJACVP.js +0 -23
- package/dist/_node-chunks/chunk-IV4K2PSX.js +0 -18
- package/dist/_node-chunks/chunk-O72O5WMW.js +0 -72
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
once,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-BVT57OPU.js";
|
|
26
|
+
import "../_node-chunks/chunk-ZNQQBZIL.js";
|
|
27
|
+
import "../_node-chunks/chunk-YPUOZX6Y.js";
|
|
28
28
|
var export_instance = import_npmlog.default;
|
|
29
29
|
export {
|
|
30
30
|
CLI_COLORS,
|
package/dist/preview/runtime.js
CHANGED
|
@@ -15970,7 +15970,7 @@ This is deprecated and won't work in Storybook 8 anymore.
|
|
|
15970
15970
|
name: "NextJsSharpError",
|
|
15971
15971
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
15972
15972
|
code: 1,
|
|
15973
|
-
documentation: "https://storybook.js.org/docs/get-started/nextjs#
|
|
15973
|
+
documentation: "https://storybook.js.org/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs",
|
|
15974
15974
|
message: dedent`
|
|
15975
15975
|
You are importing avif images, but you don't have sharp installed.
|
|
15976
15976
|
|
|
@@ -41166,7 +41166,7 @@ var VALIDATION_REGEXP = /^[a-zA-Z0-9 _-]*$/, NUMBER_REGEXP = /^-?[0-9]+(\.[0-9]+
|
|
|
41166
41166
|
return Object.entries((0, import_picoquery.parse)(parts.join(";"), QUERY_OPTIONS)).reduce((acc, [key, value]) => validateArgs(key, value) ? Object.assign(acc, { [key]: value }) : (once.warn(dedent`
|
|
41167
41167
|
Omitted potentially unsafe URL args.
|
|
41168
41168
|
|
|
41169
|
-
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
|
|
41169
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
|
|
41170
41170
|
`), acc), {});
|
|
41171
41171
|
};
|
|
41172
41172
|
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
useStoryContext,
|
|
49
49
|
userOrAutoTitle,
|
|
50
50
|
userOrAutoTitleFromSpecifier
|
|
51
|
-
} from "../_browser-chunks/chunk-
|
|
51
|
+
} from "../_browser-chunks/chunk-EUPBEOK3.js";
|
|
52
52
|
import {
|
|
53
53
|
pauseAnimations,
|
|
54
54
|
waitForAnimations
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
import "../_browser-chunks/chunk-XLJZ7AOP.js";
|
|
57
57
|
import {
|
|
58
58
|
combineParameters
|
|
59
|
-
} from "../_browser-chunks/chunk-
|
|
59
|
+
} from "../_browser-chunks/chunk-LOTN4ZCW.js";
|
|
60
60
|
import "../_browser-chunks/chunk-XCZK5QUJ.js";
|
|
61
61
|
import "../_browser-chunks/chunk-IWQGIXJS.js";
|
|
62
62
|
import "../_browser-chunks/chunk-V2VKKSMQ.js";
|
package/dist/preview-errors.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
StoryStoreAccessedBeforeInitializationError,
|
|
21
21
|
UnknownArgTypesError,
|
|
22
22
|
UnsupportedViewportDimensionError
|
|
23
|
-
} from "./_browser-chunks/chunk-
|
|
23
|
+
} from "./_browser-chunks/chunk-POMIZRJL.js";
|
|
24
24
|
import "./_browser-chunks/chunk-JVRDBUUP.js";
|
|
25
25
|
import "./_browser-chunks/chunk-3LY4VQVK.js";
|
|
26
26
|
import "./_browser-chunks/chunk-A242L54C.js";
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -46,13 +46,13 @@ import {
|
|
|
46
46
|
WebpackCompilationError,
|
|
47
47
|
WebpackInvocationError,
|
|
48
48
|
WebpackMissingStatsError
|
|
49
|
-
} from "./_node-chunks/chunk-
|
|
49
|
+
} from "./_node-chunks/chunk-Y53XRTM4.js";
|
|
50
50
|
import {
|
|
51
51
|
StorybookError
|
|
52
|
-
} from "./_node-chunks/chunk-
|
|
53
|
-
import "./_node-chunks/chunk-
|
|
54
|
-
import "./_node-chunks/chunk-
|
|
55
|
-
import "./_node-chunks/chunk-
|
|
52
|
+
} from "./_node-chunks/chunk-BUUY73HB.js";
|
|
53
|
+
import "./_node-chunks/chunk-56LVYN72.js";
|
|
54
|
+
import "./_node-chunks/chunk-ZNQQBZIL.js";
|
|
55
|
+
import "./_node-chunks/chunk-YPUOZX6Y.js";
|
|
56
56
|
export {
|
|
57
57
|
AddonVitestPostinstallConfigUpdateError,
|
|
58
58
|
AddonVitestPostinstallError,
|
|
@@ -166,7 +166,14 @@ interface UpgradeSummary {
|
|
|
166
166
|
eventId?: string;
|
|
167
167
|
sessionId?: string;
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
interface CacheEntry {
|
|
170
|
+
timestamp: number;
|
|
171
|
+
body: TelemetryEvent;
|
|
172
|
+
}
|
|
173
|
+
declare const getLastEvents: () => Promise<Record<EventType, CacheEntry>>;
|
|
174
|
+
declare const getPrecedingUpgrade: (events?: Partial<Record<EventType, CacheEntry>> | undefined) => Promise<UpgradeSummary | undefined>;
|
|
175
|
+
|
|
176
|
+
declare const getSessionId: () => Promise<string>;
|
|
170
177
|
|
|
171
178
|
declare const addToGlobalContext: (key: string, value: any) => void;
|
|
172
179
|
|
|
@@ -174,4 +181,4 @@ declare const addToGlobalContext: (key: string, value: any) => void;
|
|
|
174
181
|
declare const isExampleStoryId: (storyId: string) => boolean;
|
|
175
182
|
declare const telemetry: (eventType: EventType, payload?: Payload, options?: Partial<Options>) => Promise<void>;
|
|
176
183
|
|
|
177
|
-
export { type Context, type Dependency, ErrorCollector, type EventType, type IErrorWithStdErrAndStdOut, type InitPayload, type Options, type Payload, type StorybookAddon, type StorybookMetadata, type TelemetryData, type TelemetryEvent, addToGlobalContext, cleanPaths, computeStorybookMetadata, getPrecedingUpgrade, getStorybookMetadata, isExampleStoryId, metaFrameworks, oneWayHash, removeAnsiEscapeCodes, sanitizeAddonName, sanitizeError, telemetry };
|
|
184
|
+
export { type CacheEntry, type Context, type Dependency, ErrorCollector, type EventType, type IErrorWithStdErrAndStdOut, type InitPayload, type Options, type Payload, type StorybookAddon, type StorybookMetadata, type TelemetryData, type TelemetryEvent, addToGlobalContext, cleanPaths, computeStorybookMetadata, getLastEvents, getPrecedingUpgrade, getSessionId, getStorybookMetadata, isExampleStoryId, metaFrameworks, oneWayHash, removeAnsiEscapeCodes, sanitizeAddonName, sanitizeError, telemetry };
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_99t5k5w5yp4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_99t5k5w5yp4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_99t5k5w5yp4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_99t5k5w5yp4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_99t5k5w5yp4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_99t5k5w5yp4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
addToGlobalContext,
|
|
15
15
|
cleanPaths,
|
|
16
16
|
computeStorybookMetadata,
|
|
17
|
+
getLastEvents,
|
|
18
|
+
getPrecedingUpgrade,
|
|
19
|
+
getSessionId,
|
|
17
20
|
getStorybookMetadata,
|
|
18
21
|
isExampleStoryId,
|
|
19
22
|
metaFrameworks,
|
|
@@ -22,31 +25,30 @@ import {
|
|
|
22
25
|
sanitizeAddonName,
|
|
23
26
|
sanitizeError,
|
|
24
27
|
telemetry
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
31
|
-
import
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-53QZPC5B.js";
|
|
42
|
-
import "../_node-chunks/chunk-Q2N5EUMK.js";
|
|
43
|
-
import "../_node-chunks/chunk-TUFR2XYI.js";
|
|
28
|
+
} from "../_node-chunks/chunk-LPSISNQS.js";
|
|
29
|
+
import "../_node-chunks/chunk-TTG4OTIQ.js";
|
|
30
|
+
import "../_node-chunks/chunk-R3N2GWVX.js";
|
|
31
|
+
import "../_node-chunks/chunk-AT23E4EQ.js";
|
|
32
|
+
import "../_node-chunks/chunk-FVVGYCVC.js";
|
|
33
|
+
import "../_node-chunks/chunk-BVT57OPU.js";
|
|
34
|
+
import "../_node-chunks/chunk-PGJHGLNH.js";
|
|
35
|
+
import "../_node-chunks/chunk-M5E3YC4T.js";
|
|
36
|
+
import "../_node-chunks/chunk-2TPGTNH3.js";
|
|
37
|
+
import "../_node-chunks/chunk-P445LZJB.js";
|
|
38
|
+
import "../_node-chunks/chunk-Y6L7H22H.js";
|
|
39
|
+
import "../_node-chunks/chunk-VRAZAZEV.js";
|
|
40
|
+
import "../_node-chunks/chunk-TBPJCWU7.js";
|
|
41
|
+
import "../_node-chunks/chunk-56LVYN72.js";
|
|
42
|
+
import "../_node-chunks/chunk-ZNQQBZIL.js";
|
|
43
|
+
import "../_node-chunks/chunk-YPUOZX6Y.js";
|
|
44
44
|
export {
|
|
45
45
|
ErrorCollector,
|
|
46
46
|
addToGlobalContext,
|
|
47
47
|
cleanPaths,
|
|
48
48
|
computeStorybookMetadata,
|
|
49
|
+
getLastEvents,
|
|
49
50
|
getPrecedingUpgrade,
|
|
51
|
+
getSessionId,
|
|
50
52
|
getStorybookMetadata,
|
|
51
53
|
isExampleStoryId,
|
|
52
54
|
metaFrameworks,
|
package/dist/viewport/index.d.ts
CHANGED
|
@@ -34,10 +34,10 @@ interface ViewportParameters {
|
|
|
34
34
|
*/
|
|
35
35
|
viewport?: {
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* for the entire Storybook, you
|
|
37
|
+
* Removes the tool and disables the feature's behavior. If you wish to turn off this feature
|
|
38
|
+
* for the entire Storybook, you can set the option in your `main.js|ts` configuration file.
|
|
39
39
|
*
|
|
40
|
-
* @see https://storybook.js.org/docs/essentials/
|
|
40
|
+
* @see https://storybook.js.org/docs/essentials/viewport#disable
|
|
41
41
|
*/
|
|
42
42
|
disable?: boolean;
|
|
43
43
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.7",
|
|
4
4
|
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -201,6 +201,7 @@
|
|
|
201
201
|
"@vitest/expect": "3.2.4",
|
|
202
202
|
"@vitest/spy": "3.2.4",
|
|
203
203
|
"esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0 || ^0.26.0 || ^0.27.0",
|
|
204
|
+
"open": "^10.2.0",
|
|
204
205
|
"recast": "^0.23.5",
|
|
205
206
|
"semver": "^7.6.2",
|
|
206
207
|
"use-sync-external-store": "^1.5.0",
|
|
@@ -294,7 +295,6 @@
|
|
|
294
295
|
"modern-tar": "^0.5.5",
|
|
295
296
|
"nanoid": "^4.0.2",
|
|
296
297
|
"npmlog": "^7.0.0",
|
|
297
|
-
"open": "^10.2.0",
|
|
298
298
|
"p-limit": "^6.2.0",
|
|
299
299
|
"package-manager-detector": "^1.1.0",
|
|
300
300
|
"picocolors": "^1.1.0",
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// src/common/versions.ts
|
|
14
|
-
var versions_default = {
|
|
15
|
-
"@storybook/addon-a11y": "10.2.0-alpha.5",
|
|
16
|
-
"@storybook/addon-docs": "10.2.0-alpha.5",
|
|
17
|
-
"@storybook/addon-links": "10.2.0-alpha.5",
|
|
18
|
-
"@storybook/addon-onboarding": "10.2.0-alpha.5",
|
|
19
|
-
"storybook-addon-pseudo-states": "10.2.0-alpha.5",
|
|
20
|
-
"@storybook/addon-themes": "10.2.0-alpha.5",
|
|
21
|
-
"@storybook/addon-vitest": "10.2.0-alpha.5",
|
|
22
|
-
"@storybook/builder-vite": "10.2.0-alpha.5",
|
|
23
|
-
"@storybook/builder-webpack5": "10.2.0-alpha.5",
|
|
24
|
-
storybook: "10.2.0-alpha.5",
|
|
25
|
-
"@storybook/angular": "10.2.0-alpha.5",
|
|
26
|
-
"@storybook/ember": "10.2.0-alpha.5",
|
|
27
|
-
"@storybook/html-vite": "10.2.0-alpha.5",
|
|
28
|
-
"@storybook/nextjs": "10.2.0-alpha.5",
|
|
29
|
-
"@storybook/nextjs-vite": "10.2.0-alpha.5",
|
|
30
|
-
"@storybook/preact-vite": "10.2.0-alpha.5",
|
|
31
|
-
"@storybook/react-native-web-vite": "10.2.0-alpha.5",
|
|
32
|
-
"@storybook/react-vite": "10.2.0-alpha.5",
|
|
33
|
-
"@storybook/react-webpack5": "10.2.0-alpha.5",
|
|
34
|
-
"@storybook/server-webpack5": "10.2.0-alpha.5",
|
|
35
|
-
"@storybook/svelte-vite": "10.2.0-alpha.5",
|
|
36
|
-
"@storybook/sveltekit": "10.2.0-alpha.5",
|
|
37
|
-
"@storybook/vue3-vite": "10.2.0-alpha.5",
|
|
38
|
-
"@storybook/web-components-vite": "10.2.0-alpha.5",
|
|
39
|
-
sb: "10.2.0-alpha.5",
|
|
40
|
-
"@storybook/cli": "10.2.0-alpha.5",
|
|
41
|
-
"@storybook/codemod": "10.2.0-alpha.5",
|
|
42
|
-
"@storybook/core-webpack": "10.2.0-alpha.5",
|
|
43
|
-
"create-storybook": "10.2.0-alpha.5",
|
|
44
|
-
"@storybook/csf-plugin": "10.2.0-alpha.5",
|
|
45
|
-
"eslint-plugin-storybook": "10.2.0-alpha.5",
|
|
46
|
-
"@storybook/react-dom-shim": "10.2.0-alpha.5",
|
|
47
|
-
"@storybook/preset-create-react-app": "10.2.0-alpha.5",
|
|
48
|
-
"@storybook/preset-react-webpack": "10.2.0-alpha.5",
|
|
49
|
-
"@storybook/preset-server-webpack": "10.2.0-alpha.5",
|
|
50
|
-
"@storybook/html": "10.2.0-alpha.5",
|
|
51
|
-
"@storybook/preact": "10.2.0-alpha.5",
|
|
52
|
-
"@storybook/react": "10.2.0-alpha.5",
|
|
53
|
-
"@storybook/server": "10.2.0-alpha.5",
|
|
54
|
-
"@storybook/svelte": "10.2.0-alpha.5",
|
|
55
|
-
"@storybook/vue3": "10.2.0-alpha.5",
|
|
56
|
-
"@storybook/web-components": "10.2.0-alpha.5"
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
versions_default
|
|
61
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import {
|
|
13
|
-
any
|
|
14
|
-
} from "./chunk-APNNQRRU.js";
|
|
15
|
-
|
|
16
|
-
// src/cli/detect.ts
|
|
17
|
-
async function detectPnp() {
|
|
18
|
-
return !!any([".pnp.js", ".pnp.cjs"]);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
detectPnp
|
|
23
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// package.json
|
|
14
|
-
var version = "10.2.0-alpha.5";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// src/telemetry/event-cache.ts
|
|
14
|
-
import { cache } from "storybook/internal/common";
|
|
15
|
-
var operation = Promise.resolve(), setHelper = async (eventType, body) => {
|
|
16
|
-
let lastEvents = await cache.get("lastEvents") || {};
|
|
17
|
-
lastEvents[eventType] = { body, timestamp: Date.now() }, await cache.set("lastEvents", lastEvents);
|
|
18
|
-
}, set = async (eventType, body) => (await operation, operation = setHelper(eventType, body), operation);
|
|
19
|
-
var getLastEvents = async () => (await operation, await cache.get("lastEvents") || {}), upgradeFields = (event) => {
|
|
20
|
-
let { body, timestamp } = event;
|
|
21
|
-
return {
|
|
22
|
-
timestamp,
|
|
23
|
-
eventType: body?.eventType,
|
|
24
|
-
eventId: body?.eventId,
|
|
25
|
-
sessionId: body?.sessionId
|
|
26
|
-
};
|
|
27
|
-
}, UPGRADE_EVENTS = ["init", "upgrade"], RUN_EVENTS = ["build", "dev", "error"], lastEvent = (lastEvents, eventTypes) => {
|
|
28
|
-
let descendingEvents = eventTypes.map((eventType) => lastEvents?.[eventType]).filter(Boolean).sort((a, b) => b.timestamp - a.timestamp);
|
|
29
|
-
return descendingEvents.length > 0 ? descendingEvents[0] : void 0;
|
|
30
|
-
}, getPrecedingUpgrade = async (events = void 0) => {
|
|
31
|
-
let lastEvents = events || await cache.get("lastEvents") || {}, lastUpgradeEvent = lastEvent(lastEvents, UPGRADE_EVENTS), lastRunEvent = lastEvent(lastEvents, RUN_EVENTS);
|
|
32
|
-
if (lastUpgradeEvent)
|
|
33
|
-
return !lastRunEvent?.timestamp || lastUpgradeEvent.timestamp > lastRunEvent.timestamp ? upgradeFields(lastUpgradeEvent) : void 0;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// ../../node_modules/nanoid/index.js
|
|
37
|
-
import { randomFillSync } from "crypto";
|
|
38
|
-
|
|
39
|
-
// ../../node_modules/nanoid/url-alphabet/index.js
|
|
40
|
-
var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
41
|
-
|
|
42
|
-
// ../../node_modules/nanoid/index.js
|
|
43
|
-
var POOL_SIZE_MULTIPLIER = 128, pool, poolOffset, fillPool = (bytes) => {
|
|
44
|
-
!pool || pool.length < bytes ? (pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER), randomFillSync(pool), poolOffset = 0) : poolOffset + bytes > pool.length && (randomFillSync(pool), poolOffset = 0), poolOffset += bytes;
|
|
45
|
-
};
|
|
46
|
-
var nanoid = (size = 21) => {
|
|
47
|
-
fillPool(size -= 0);
|
|
48
|
-
let id = "";
|
|
49
|
-
for (let i = poolOffset - size; i < poolOffset; i++)
|
|
50
|
-
id += urlAlphabet[pool[i] & 63];
|
|
51
|
-
return id;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
// src/telemetry/session-id.ts
|
|
55
|
-
import { cache as cache2 } from "storybook/internal/common";
|
|
56
|
-
var SESSION_TIMEOUT = 1e3 * 60 * 60 * 2, sessionId;
|
|
57
|
-
var getSessionId = async () => {
|
|
58
|
-
let now = Date.now();
|
|
59
|
-
if (!sessionId) {
|
|
60
|
-
let session = await cache2.get("session");
|
|
61
|
-
session && session.lastUsed >= now - SESSION_TIMEOUT ? sessionId = session.id : sessionId = nanoid();
|
|
62
|
-
}
|
|
63
|
-
return await cache2.set("session", { id: sessionId, lastUsed: now }), sessionId;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
nanoid,
|
|
68
|
-
set,
|
|
69
|
-
getLastEvents,
|
|
70
|
-
getPrecedingUpgrade,
|
|
71
|
-
getSessionId
|
|
72
|
-
};
|