storybook 10.1.6 → 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.
Files changed (58) hide show
  1. package/dist/_node-chunks/{builder-manager-IP6Y4NMN.js → builder-manager-EHXLCHEO.js} +12 -12
  2. package/dist/_node-chunks/{camelcase-GHUGWSTC.js → camelcase-HUGZEXJE.js} +7 -7
  3. package/dist/_node-chunks/{chunk-YKVDPPMP.js → chunk-53EBCYFK.js} +6 -6
  4. package/dist/_node-chunks/{chunk-OIIAKMWN.js → chunk-54YSFB4H.js} +7 -7
  5. package/dist/_node-chunks/{chunk-FZPYAEAL.js → chunk-73HUTZ5T.js} +7 -7
  6. package/dist/_node-chunks/{chunk-QAHNTAID.js → chunk-AHASM5XJ.js} +6 -6
  7. package/dist/_node-chunks/{chunk-LJZQUQY3.js → chunk-BISROKGA.js} +7 -7
  8. package/dist/_node-chunks/{chunk-6IODXQ5I.js → chunk-BW4TJAUQ.js} +6 -6
  9. package/dist/_node-chunks/{chunk-T4NL27CC.js → chunk-DEZK7IC2.js} +20 -20
  10. package/dist/_node-chunks/chunk-EMGZAS45.js +23 -0
  11. package/dist/_node-chunks/{chunk-KPTRKV7Y.js → chunk-ESCHL7QO.js} +8 -8
  12. package/dist/_node-chunks/{chunk-BV46V7UA.js → chunk-H5UMVQS5.js} +13 -13
  13. package/dist/_node-chunks/{chunk-MTQLLXLU.js → chunk-HKD3GHK3.js} +9 -9
  14. package/dist/_node-chunks/{chunk-NDRJR464.js → chunk-IFLLI53E.js} +10 -10
  15. package/dist/_node-chunks/{chunk-4E7PJV6F.js → chunk-JRNN3ATQ.js} +6 -6
  16. package/dist/_node-chunks/{chunk-IIIZ5MXT.js → chunk-JU44GIHO.js} +13 -13
  17. package/dist/_node-chunks/{chunk-7SZ6I5FR.js → chunk-M25PLVWJ.js} +76 -19
  18. package/dist/_node-chunks/{chunk-MBCK5AH4.js → chunk-PFZ3OEEN.js} +6 -6
  19. package/dist/_node-chunks/chunk-R2CXAJYG.js +18 -0
  20. package/dist/_node-chunks/{chunk-2LMXIXHU.js → chunk-SMIB2SPY.js} +6 -6
  21. package/dist/_node-chunks/{chunk-ZZGFJUT5.js → chunk-TPDTDPSP.js} +6 -6
  22. package/dist/_node-chunks/{chunk-M4UXZ375.js → chunk-U4FRSSGR.js} +7 -7
  23. package/dist/_node-chunks/{chunk-CQ7X72BT.js → chunk-VE2GP7PV.js} +7 -7
  24. package/dist/_node-chunks/chunk-W65P47D7.js +61 -0
  25. package/dist/_node-chunks/{chunk-MZPY44R3.js → chunk-XLHRIY7O.js} +7 -7
  26. package/dist/_node-chunks/{chunk-32COQDL3.js → chunk-XUGGNSQV.js} +7 -7
  27. package/dist/_node-chunks/{chunk-WIXJW6LA.js → chunk-ZER2HR4Q.js} +7 -7
  28. package/dist/_node-chunks/{chunk-6X7LVWWF.js → chunk-ZQ4AATPT.js} +9 -9
  29. package/dist/_node-chunks/{chunk-V4R3AYR4.js → chunk-ZRQQOUXA.js} +8 -8
  30. package/dist/_node-chunks/{dist-N6JBF72Y.js → dist-I5B62EXZ.js} +9 -9
  31. package/dist/_node-chunks/{globby-EBHKFBTA.js → globby-VVFDARVQ.js} +9 -9
  32. package/dist/_node-chunks/{lib-VKFW2NW5.js → lib-YVG6LAMI.js} +7 -7
  33. package/dist/_node-chunks/{mdx-N42X6CFJ-GUFWY7P5.js → mdx-N42X6CFJ-7PJHUHEH.js} +8 -8
  34. package/dist/_node-chunks/{p-limit-5QMUSCN6.js → p-limit-IZNWVCKJ.js} +7 -7
  35. package/dist/babel/index.js +10 -10
  36. package/dist/bin/core.js +12 -12
  37. package/dist/bin/dispatcher.js +11 -11
  38. package/dist/bin/loader.js +9 -9
  39. package/dist/cli/index.d.ts +0 -1
  40. package/dist/cli/index.js +18 -18
  41. package/dist/common/index.js +19 -19
  42. package/dist/core-server/index.js +257 -631
  43. package/dist/core-server/presets/common-override-preset.js +9 -9
  44. package/dist/core-server/presets/common-preset.js +26 -28
  45. package/dist/csf-tools/index.js +9 -9
  46. package/dist/manager/globals-runtime.js +1 -1
  47. package/dist/manager-api/index.js +1 -1
  48. package/dist/mocking-utils/index.js +8 -8
  49. package/dist/node-logger/index.js +9 -9
  50. package/dist/preview-api/index.d.ts +68 -67
  51. package/dist/server-errors.js +11 -11
  52. package/dist/telemetry/index.d.ts +9 -2
  53. package/dist/telemetry/index.js +27 -25
  54. package/package.json +2 -2
  55. package/dist/_node-chunks/chunk-5AYMJEEI.js +0 -23
  56. package/dist/_node-chunks/chunk-IMSWW5XU.js +0 -72
  57. package/dist/_node-chunks/chunk-PUOD3HAQ.js +0 -18
  58. 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.6",
3
+ "version": "10.1.7",
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
- };