storybook 10.1.5 → 10.1.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/_node-chunks/{builder-manager-ZXJBDRXR.js → builder-manager-EHXLCHEO.js} +13 -12
- package/dist/_node-chunks/{camelcase-WRTIKEO6.js → camelcase-HUGZEXJE.js} +7 -7
- package/dist/_node-chunks/{chunk-WYREEMWZ.js → chunk-53EBCYFK.js} +6 -6
- package/dist/_node-chunks/{chunk-5H7WLGZC.js → chunk-54YSFB4H.js} +7 -7
- package/dist/_node-chunks/{chunk-56BVIMJO.js → chunk-73HUTZ5T.js} +7 -7
- package/dist/_node-chunks/{chunk-GJ5FSAL5.js → chunk-AHASM5XJ.js} +6 -6
- package/dist/_node-chunks/{chunk-HNDTWAF5.js → chunk-BISROKGA.js} +7 -7
- package/dist/_node-chunks/{chunk-KYHFIXVV.js → chunk-BW4TJAUQ.js} +6 -6
- package/dist/_node-chunks/{chunk-RZ3SV46Y.js → chunk-DEZK7IC2.js} +20 -20
- package/dist/_node-chunks/chunk-EMGZAS45.js +23 -0
- package/dist/_node-chunks/{chunk-ZIG3SZMN.js → chunk-ESCHL7QO.js} +8 -8
- package/dist/_node-chunks/{chunk-VGBOM5PD.js → chunk-H5UMVQS5.js} +13 -13
- package/dist/_node-chunks/{chunk-3N5PBWO5.js → chunk-HKD3GHK3.js} +9 -9
- package/dist/_node-chunks/{chunk-FCQVKOY4.js → chunk-IFLLI53E.js} +10 -10
- package/dist/_node-chunks/{chunk-B2EXFXPG.js → chunk-JRNN3ATQ.js} +6 -6
- package/dist/_node-chunks/{chunk-PL7KUITS.js → chunk-JU44GIHO.js} +13 -13
- package/dist/_node-chunks/{chunk-AJ7QOTOZ.js → chunk-M25PLVWJ.js} +76 -19
- package/dist/_node-chunks/{chunk-CUUCEXYW.js → chunk-PFZ3OEEN.js} +6 -6
- package/dist/_node-chunks/chunk-R2CXAJYG.js +18 -0
- package/dist/_node-chunks/{chunk-WUVM2V22.js → chunk-SMIB2SPY.js} +6 -6
- package/dist/_node-chunks/{chunk-255LKCUD.js → chunk-TPDTDPSP.js} +6 -6
- package/dist/_node-chunks/{chunk-52EAUB7R.js → chunk-U4FRSSGR.js} +7 -7
- package/dist/_node-chunks/{chunk-QCZPELNP.js → chunk-VE2GP7PV.js} +7 -7
- package/dist/_node-chunks/chunk-W65P47D7.js +61 -0
- package/dist/_node-chunks/{chunk-SNGQFKE7.js → chunk-XLHRIY7O.js} +7 -7
- package/dist/_node-chunks/{chunk-C3CWELCD.js → chunk-XUGGNSQV.js} +7 -7
- package/dist/_node-chunks/{chunk-XPWMJEXT.js → chunk-ZER2HR4Q.js} +7 -7
- package/dist/_node-chunks/{chunk-ITMM32VP.js → chunk-ZQ4AATPT.js} +9 -9
- package/dist/_node-chunks/{chunk-FD76ZM2X.js → chunk-ZRQQOUXA.js} +8 -8
- package/dist/_node-chunks/{dist-XHCP6OFU.js → dist-I5B62EXZ.js} +9 -9
- package/dist/_node-chunks/{globby-YHL6UTMA.js → globby-VVFDARVQ.js} +9 -9
- package/dist/_node-chunks/{lib-RWWG7TOS.js → lib-YVG6LAMI.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-ZALEYAPJ.js → mdx-N42X6CFJ-7PJHUHEH.js} +8 -8
- package/dist/_node-chunks/{p-limit-LLBQLQ7I.js → p-limit-IZNWVCKJ.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 +10 -4
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.js +257 -631
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +26 -28
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +15 -7
- package/dist/manager/runtime.js +20 -5
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +9 -3
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +9 -2
- package/dist/telemetry/index.js +27 -25
- package/package.json +2 -2
- package/dist/_node-chunks/chunk-3GJDB3VJ.js +0 -18
- package/dist/_node-chunks/chunk-EBMWZDZG.js +0 -23
- package/dist/_node-chunks/chunk-GUCJOBT7.js +0 -72
- package/dist/_node-chunks/chunk-VRODUWUT.js +0 -61
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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.1.5";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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-255LKCUD.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,72 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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 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
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_16w7d0j2rs7 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_16w7d0j2rs7 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_16w7d0j2rs7 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_16w7d0j2rs7.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_16w7d0j2rs7.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_16w7d0j2rs7.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.1.5",
|
|
16
|
-
"@storybook/addon-docs": "10.1.5",
|
|
17
|
-
"@storybook/addon-links": "10.1.5",
|
|
18
|
-
"@storybook/addon-onboarding": "10.1.5",
|
|
19
|
-
"storybook-addon-pseudo-states": "10.1.5",
|
|
20
|
-
"@storybook/addon-themes": "10.1.5",
|
|
21
|
-
"@storybook/addon-vitest": "10.1.5",
|
|
22
|
-
"@storybook/builder-vite": "10.1.5",
|
|
23
|
-
"@storybook/builder-webpack5": "10.1.5",
|
|
24
|
-
storybook: "10.1.5",
|
|
25
|
-
"@storybook/angular": "10.1.5",
|
|
26
|
-
"@storybook/ember": "10.1.5",
|
|
27
|
-
"@storybook/html-vite": "10.1.5",
|
|
28
|
-
"@storybook/nextjs": "10.1.5",
|
|
29
|
-
"@storybook/nextjs-vite": "10.1.5",
|
|
30
|
-
"@storybook/preact-vite": "10.1.5",
|
|
31
|
-
"@storybook/react-native-web-vite": "10.1.5",
|
|
32
|
-
"@storybook/react-vite": "10.1.5",
|
|
33
|
-
"@storybook/react-webpack5": "10.1.5",
|
|
34
|
-
"@storybook/server-webpack5": "10.1.5",
|
|
35
|
-
"@storybook/svelte-vite": "10.1.5",
|
|
36
|
-
"@storybook/sveltekit": "10.1.5",
|
|
37
|
-
"@storybook/vue3-vite": "10.1.5",
|
|
38
|
-
"@storybook/web-components-vite": "10.1.5",
|
|
39
|
-
sb: "10.1.5",
|
|
40
|
-
"@storybook/cli": "10.1.5",
|
|
41
|
-
"@storybook/codemod": "10.1.5",
|
|
42
|
-
"@storybook/core-webpack": "10.1.5",
|
|
43
|
-
"create-storybook": "10.1.5",
|
|
44
|
-
"@storybook/csf-plugin": "10.1.5",
|
|
45
|
-
"eslint-plugin-storybook": "10.1.5",
|
|
46
|
-
"@storybook/react-dom-shim": "10.1.5",
|
|
47
|
-
"@storybook/preset-create-react-app": "10.1.5",
|
|
48
|
-
"@storybook/preset-react-webpack": "10.1.5",
|
|
49
|
-
"@storybook/preset-server-webpack": "10.1.5",
|
|
50
|
-
"@storybook/html": "10.1.5",
|
|
51
|
-
"@storybook/preact": "10.1.5",
|
|
52
|
-
"@storybook/react": "10.1.5",
|
|
53
|
-
"@storybook/server": "10.1.5",
|
|
54
|
-
"@storybook/svelte": "10.1.5",
|
|
55
|
-
"@storybook/vue3": "10.1.5",
|
|
56
|
-
"@storybook/web-components": "10.1.5"
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
versions_default
|
|
61
|
-
};
|