storybook 10.1.6 → 10.1.8
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-IP6Y4NMN.js → builder-manager-QJJLSNC4.js} +12 -12
- package/dist/_node-chunks/{camelcase-GHUGWSTC.js → camelcase-YJQXB5WB.js} +7 -7
- package/dist/_node-chunks/{chunk-KPTRKV7Y.js → chunk-2DF5RJYR.js} +8 -8
- package/dist/_node-chunks/chunk-4LIJ2BYF.js +18 -0
- package/dist/_node-chunks/{chunk-BV46V7UA.js → chunk-6CJUCYYK.js} +13 -13
- package/dist/_node-chunks/{chunk-T4NL27CC.js → chunk-76UP3JOL.js} +20 -20
- package/dist/_node-chunks/{chunk-MTQLLXLU.js → chunk-7KFFHHXS.js} +9 -9
- package/dist/_node-chunks/{chunk-WIXJW6LA.js → chunk-7TYMC3SN.js} +7 -7
- package/dist/_node-chunks/chunk-DHJ2SXFM.js +23 -0
- package/dist/_node-chunks/{chunk-V4R3AYR4.js → chunk-FJQQMSDV.js} +8 -8
- package/dist/_node-chunks/{chunk-6IODXQ5I.js → chunk-FN5YDSIY.js} +6 -6
- package/dist/_node-chunks/{chunk-ZZGFJUT5.js → chunk-FVL4M75A.js} +6 -6
- package/dist/_node-chunks/{chunk-32COQDL3.js → chunk-JQ5R6LYX.js} +7 -7
- package/dist/_node-chunks/{chunk-2LMXIXHU.js → chunk-KTAWX4JB.js} +6 -6
- package/dist/_node-chunks/{chunk-6X7LVWWF.js → chunk-LEBLRZQT.js} +9 -9
- package/dist/_node-chunks/{chunk-IIIZ5MXT.js → chunk-MEYK6XSZ.js} +13 -13
- package/dist/_node-chunks/{chunk-MZPY44R3.js → chunk-MOOIRZDT.js} +7 -7
- package/dist/_node-chunks/{chunk-CQ7X72BT.js → chunk-NAECEIWD.js} +7 -7
- package/dist/_node-chunks/{chunk-QAHNTAID.js → chunk-NJLYVJCQ.js} +6 -6
- package/dist/_node-chunks/{chunk-MBCK5AH4.js → chunk-PYGKKZH3.js} +6 -6
- package/dist/_node-chunks/chunk-RO3KQDIV.js +61 -0
- package/dist/_node-chunks/{chunk-NDRJR464.js → chunk-RT5FJYW7.js} +10 -10
- package/dist/_node-chunks/{chunk-7SZ6I5FR.js → chunk-SBF3YNCA.js} +76 -19
- package/dist/_node-chunks/{chunk-M4UXZ375.js → chunk-SJJPROJL.js} +7 -7
- package/dist/_node-chunks/{chunk-OIIAKMWN.js → chunk-UXT4OBPZ.js} +7 -7
- package/dist/_node-chunks/{chunk-4E7PJV6F.js → chunk-VBB23ERX.js} +6 -6
- package/dist/_node-chunks/{chunk-FZPYAEAL.js → chunk-W37U36K2.js} +7 -7
- package/dist/_node-chunks/{chunk-LJZQUQY3.js → chunk-WIQW2CT3.js} +7 -7
- package/dist/_node-chunks/{chunk-YKVDPPMP.js → chunk-ZXZ7KANY.js} +6 -6
- package/dist/_node-chunks/{dist-N6JBF72Y.js → dist-HAESIONL.js} +9 -9
- package/dist/_node-chunks/{globby-EBHKFBTA.js → globby-RQ3LJKAJ.js} +9 -9
- package/dist/_node-chunks/{lib-VKFW2NW5.js → lib-U5JWXJIB.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-GUFWY7P5.js → mdx-N42X6CFJ-BR3Z5OQB.js} +8 -8
- package/dist/_node-chunks/{p-limit-5QMUSCN6.js → p-limit-T3CVWBSB.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/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 +1 -1
- 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-api/index.d.ts +68 -67
- 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-5AYMJEEI.js +0 -23
- package/dist/_node-chunks/chunk-IMSWW5XU.js +0 -72
- package/dist/_node-chunks/chunk-PUOD3HAQ.js +0 -18
- package/dist/_node-chunks/chunk-ZQTC4IMW.js +0 -61
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.8",
|
|
4
4
|
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
"@vitest/expect": "3.2.4",
|
|
209
209
|
"@vitest/spy": "3.2.4",
|
|
210
210
|
"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",
|
|
211
|
+
"open": "^10.2.0",
|
|
211
212
|
"recast": "^0.23.5",
|
|
212
213
|
"semver": "^7.6.2",
|
|
213
214
|
"use-sync-external-store": "^1.5.0",
|
|
@@ -301,7 +302,6 @@
|
|
|
301
302
|
"modern-tar": "^0.5.5",
|
|
302
303
|
"nanoid": "^4.0.2",
|
|
303
304
|
"npmlog": "^7.0.0",
|
|
304
|
-
"open": "^10.2.0",
|
|
305
305
|
"p-limit": "^6.2.0",
|
|
306
306
|
"package-manager-detector": "^1.1.0",
|
|
307
307
|
"picocolors": "^1.1.0",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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-ZZGFJUT5.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_u12tm8drdom from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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.6";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_u12tm8drdom from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_u12tm8drdom from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_u12tm8drdom from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_u12tm8drdom.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_u12tm8drdom.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_u12tm8drdom.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.6",
|
|
16
|
-
"@storybook/addon-docs": "10.1.6",
|
|
17
|
-
"@storybook/addon-links": "10.1.6",
|
|
18
|
-
"@storybook/addon-onboarding": "10.1.6",
|
|
19
|
-
"storybook-addon-pseudo-states": "10.1.6",
|
|
20
|
-
"@storybook/addon-themes": "10.1.6",
|
|
21
|
-
"@storybook/addon-vitest": "10.1.6",
|
|
22
|
-
"@storybook/builder-vite": "10.1.6",
|
|
23
|
-
"@storybook/builder-webpack5": "10.1.6",
|
|
24
|
-
storybook: "10.1.6",
|
|
25
|
-
"@storybook/angular": "10.1.6",
|
|
26
|
-
"@storybook/ember": "10.1.6",
|
|
27
|
-
"@storybook/html-vite": "10.1.6",
|
|
28
|
-
"@storybook/nextjs": "10.1.6",
|
|
29
|
-
"@storybook/nextjs-vite": "10.1.6",
|
|
30
|
-
"@storybook/preact-vite": "10.1.6",
|
|
31
|
-
"@storybook/react-native-web-vite": "10.1.6",
|
|
32
|
-
"@storybook/react-vite": "10.1.6",
|
|
33
|
-
"@storybook/react-webpack5": "10.1.6",
|
|
34
|
-
"@storybook/server-webpack5": "10.1.6",
|
|
35
|
-
"@storybook/svelte-vite": "10.1.6",
|
|
36
|
-
"@storybook/sveltekit": "10.1.6",
|
|
37
|
-
"@storybook/vue3-vite": "10.1.6",
|
|
38
|
-
"@storybook/web-components-vite": "10.1.6",
|
|
39
|
-
sb: "10.1.6",
|
|
40
|
-
"@storybook/cli": "10.1.6",
|
|
41
|
-
"@storybook/codemod": "10.1.6",
|
|
42
|
-
"@storybook/core-webpack": "10.1.6",
|
|
43
|
-
"create-storybook": "10.1.6",
|
|
44
|
-
"@storybook/csf-plugin": "10.1.6",
|
|
45
|
-
"eslint-plugin-storybook": "10.1.6",
|
|
46
|
-
"@storybook/react-dom-shim": "10.1.6",
|
|
47
|
-
"@storybook/preset-create-react-app": "10.1.6",
|
|
48
|
-
"@storybook/preset-react-webpack": "10.1.6",
|
|
49
|
-
"@storybook/preset-server-webpack": "10.1.6",
|
|
50
|
-
"@storybook/html": "10.1.6",
|
|
51
|
-
"@storybook/preact": "10.1.6",
|
|
52
|
-
"@storybook/react": "10.1.6",
|
|
53
|
-
"@storybook/server": "10.1.6",
|
|
54
|
-
"@storybook/svelte": "10.1.6",
|
|
55
|
-
"@storybook/vue3": "10.1.6",
|
|
56
|
-
"@storybook/web-components": "10.1.6"
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
versions_default
|
|
61
|
-
};
|