storybook 10.2.0-alpha.1 → 10.2.0-alpha.3
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/Color-E5XDEOX4.js +484 -0
- package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
- package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
- package/dist/_browser-chunks/chunk-2NDLAB5X.js +363 -0
- package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-54PNNATT.js} +3 -20
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-6QKNWBQB.js} +17 -17
- package/dist/_browser-chunks/chunk-CLSHX4VX.js +4140 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-DOSERVNW.js} +1 -1
- package/dist/_browser-chunks/chunk-HPYUT3WS.js +199 -0
- package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
- package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-Q5RYDXT3.js} +38 -30
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
- package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
- package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-Y6HZAT53.js} +10 -12
- package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
- package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
- package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
- package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
- package/dist/_node-chunks/{builder-manager-LXL5N6M5.js → builder-manager-U6SN6ZED.js} +22 -22
- package/dist/_node-chunks/{camelcase-64II7H4U.js → camelcase-GLXVGCEV.js} +8 -8
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-2IFACTU4.js} +19 -19
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-4VZME5CV.js} +6 -6
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-5SCVRD6U.js} +7 -7
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-5ZGZ22PV.js} +17 -17
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-6RXAFKLM.js} +15 -15
- package/dist/_node-chunks/chunk-6WHPDWFA.js +61 -0
- package/dist/_node-chunks/chunk-B6AJKALV.js +20 -0
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-C2G5ML5F.js} +8 -8
- package/dist/_node-chunks/chunk-CFCZ5PKC.js +18 -0
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-DO56XDMZ.js} +10 -10
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-E6CKDKNL.js} +8 -8
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-H4BZRGVO.js} +8 -8
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-HGYHQF7Z.js} +597 -593
- package/dist/_node-chunks/{chunk-4EZYJUAC.js → chunk-HKTRFCJD.js} +10 -10
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-HYH2IT7K.js} +31 -31
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-IKSK6CEY.js} +6 -6
- package/dist/_node-chunks/{chunk-VR5LMO3F.js → chunk-KP6H4S3L.js} +9 -9
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-LHBDNMEP.js} +66 -72
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-MUWHX7GN.js} +6 -6
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-N3O3HJMU.js} +9 -9
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-NKUDIVPF.js} +619 -148
- package/dist/_node-chunks/chunk-O5OIO47U.js +23 -0
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-Q27GKV7Y.js} +9 -9
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-Q47IIVLL.js} +165 -191
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-SM7QXYN4.js} +48 -32
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-VKFEIIOF.js} +249 -240
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-XYVZIRZC.js} +6 -6
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-YPCGEC3N.js} +165 -21
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-GGDI7EVD.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-DY2UCDKN.js} +154 -154
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-PFKECSVA.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-OPAAI5WZ.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-PMYE6ZFC.js} +8 -8
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +40 -34
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +14 -11
- package/dist/channels/index.js +3 -3
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +25 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +327 -311
- package/dist/core-server/index.js +127 -127
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +43 -38
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +4390 -173
- package/dist/csf/index.js +39 -35
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +6 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +21087 -14648
- package/dist/manager/runtime.js +148 -132
- package/dist/manager-api/index.js +31 -22
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +3 -3
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +22291 -15810
- package/dist/preview-api/index.js +12 -11
- package/dist/preview-errors.js +2 -2
- package/dist/router/index.js +12 -13
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +3237 -1653
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.js +38 -38
- package/dist/types/index.d.ts +3 -1
- package/package.json +2 -8
- package/dist/_browser-chunks/Color-TNPFN3FC.js +0 -1097
- package/dist/_browser-chunks/chunk-3IAH5M2U.js +0 -171
- package/dist/_browser-chunks/chunk-AIOS4NGK.js +0 -252
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-GFLS4VP3.js +0 -64
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- package/dist/_node-chunks/chunk-COQ27OZ3.js +0 -61
- package/dist/_node-chunks/chunk-MC2R4DSD.js +0 -20
- package/dist/_node-chunks/chunk-NEENMS4J.js +0 -18
- package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
|
@@ -5,33 +5,31 @@ import {
|
|
|
5
5
|
} from "./chunk-IPA5A322.js";
|
|
6
6
|
import {
|
|
7
7
|
require_main
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XLJZ7AOP.js";
|
|
9
9
|
import {
|
|
10
10
|
SNIPPET_RENDERED,
|
|
11
11
|
combineParameters
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
isEqual
|
|
15
|
-
} from "./chunk-3IAH5M2U.js";
|
|
12
|
+
} from "./chunk-6QKNWBQB.js";
|
|
16
13
|
import {
|
|
17
14
|
invariant
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IWQGIXJS.js";
|
|
19
16
|
import {
|
|
20
17
|
require_ansi_to_html
|
|
21
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V2VKKSMQ.js";
|
|
22
19
|
import {
|
|
23
20
|
mapValues,
|
|
24
21
|
pickBy
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CLSHX4VX.js";
|
|
26
23
|
import {
|
|
24
|
+
isEqual,
|
|
27
25
|
isPlainObject
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2NDLAB5X.js";
|
|
29
27
|
import {
|
|
30
28
|
require_memoizerific
|
|
31
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZCFV7BZB.js";
|
|
32
30
|
import {
|
|
33
31
|
dedent
|
|
34
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3LY4VQVK.js";
|
|
35
33
|
import {
|
|
36
34
|
__toESM
|
|
37
35
|
} from "./chunk-A242L54C.js";
|
|
@@ -1457,7 +1455,7 @@ var CSF_CACHE_SIZE = 1e3, STORY_CACHE_SIZE = 1e4, StoryStore = class {
|
|
|
1457
1455
|
// src/preview-api/modules/store/autoTitle.ts
|
|
1458
1456
|
import { once as once2 } from "storybook/internal/client-logger";
|
|
1459
1457
|
|
|
1460
|
-
//
|
|
1458
|
+
// ../../node_modules/slash/index.js
|
|
1461
1459
|
function slash(path) {
|
|
1462
1460
|
return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
|
|
1463
1461
|
}
|
|
@@ -51,17 +51,17 @@ var ActionBar = ({ actionItems, ...props }) => React.createElement(Container, {
|
|
|
51
51
|
// src/components/components/ScrollArea/ScrollArea.tsx
|
|
52
52
|
import React11, { forwardRef as forwardRef4 } from "react";
|
|
53
53
|
|
|
54
|
-
//
|
|
54
|
+
// ../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs
|
|
55
55
|
import * as React23 from "react";
|
|
56
56
|
|
|
57
|
-
//
|
|
57
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
58
58
|
import * as React4 from "react";
|
|
59
59
|
import * as ReactDOM from "react-dom";
|
|
60
60
|
|
|
61
|
-
//
|
|
61
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
62
62
|
import * as React3 from "react";
|
|
63
63
|
|
|
64
|
-
//
|
|
64
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
65
65
|
import * as React2 from "react";
|
|
66
66
|
function setRef(ref, value) {
|
|
67
67
|
typeof ref == "function" ? ref(value) : ref != null && (ref.current = value);
|
|
@@ -73,7 +73,7 @@ function useComposedRefs(...refs) {
|
|
|
73
73
|
return React2.useCallback(composeRefs(...refs), refs);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
//
|
|
76
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
77
77
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
78
78
|
var Slot = React3.forwardRef((props, forwardedRef) => {
|
|
79
79
|
let { children, ...slotProps } = props, childrenArray = React3.Children.toArray(children), slottable = childrenArray.find(isSlottable);
|
|
@@ -116,7 +116,7 @@ function getElementRef(element) {
|
|
|
116
116
|
return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
//
|
|
119
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
120
120
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
121
121
|
var NODES = [
|
|
122
122
|
"a",
|
|
@@ -143,16 +143,16 @@ var NODES = [
|
|
|
143
143
|
return Node.displayName = `Primitive.${node}`, { ...primitive, [node]: Node };
|
|
144
144
|
}, {});
|
|
145
145
|
|
|
146
|
-
//
|
|
146
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
147
147
|
import * as React22 from "react";
|
|
148
148
|
import * as ReactDOM2 from "react-dom";
|
|
149
149
|
|
|
150
|
-
//
|
|
150
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
151
151
|
import * as React5 from "react";
|
|
152
152
|
var useLayoutEffect2 = globalThis?.document ? React5.useLayoutEffect : () => {
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
//
|
|
155
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
156
156
|
import * as React6 from "react";
|
|
157
157
|
function useStateMachine(initialState, machine) {
|
|
158
158
|
return React6.useReducer((state, event) => machine[state][event] ?? state, initialState);
|
|
@@ -213,7 +213,7 @@ function getElementRef2(element) {
|
|
|
213
213
|
return mayWarn ? element.ref : (getter = Object.getOwnPropertyDescriptor(element, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning, mayWarn ? element.props.ref : element.props.ref || element.ref);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
//
|
|
216
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
217
217
|
import * as React7 from "react";
|
|
218
218
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
219
219
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
@@ -264,7 +264,7 @@ function composeContextScopes(...scopes) {
|
|
|
264
264
|
return createScope.scopeName = baseScope.scopeName, createScope;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
//
|
|
267
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
268
268
|
import * as React8 from "react";
|
|
269
269
|
function useCallbackRef(callback) {
|
|
270
270
|
let callbackRef = React8.useRef(callback);
|
|
@@ -273,7 +273,7 @@ function useCallbackRef(callback) {
|
|
|
273
273
|
}), React8.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
//
|
|
276
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
277
277
|
import * as React9 from "react";
|
|
278
278
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
279
279
|
var DirectionContext = React9.createContext(void 0);
|
|
@@ -282,12 +282,12 @@ function useDirection(localDir) {
|
|
|
282
282
|
return localDir || globalDir || "ltr";
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
//
|
|
285
|
+
// ../../node_modules/@radix-ui/number/dist/index.mjs
|
|
286
286
|
function clamp(value, [min, max]) {
|
|
287
287
|
return Math.min(max, Math.max(min, value));
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
//
|
|
290
|
+
// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
291
291
|
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = !0 } = {}) {
|
|
292
292
|
return function(event) {
|
|
293
293
|
if (originalEventHandler?.(event), checkForDefaultPrevented === !1 || !event.defaultPrevented)
|
|
@@ -295,7 +295,7 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
//
|
|
298
|
+
// ../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs
|
|
299
299
|
import * as React10 from "react";
|
|
300
300
|
import { Fragment as Fragment2, jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
301
301
|
function useStateMachine2(initialState, machine) {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
__require
|
|
4
4
|
} from "./chunk-A242L54C.js";
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// ../../node_modules/memoizerific/memoizerific.js
|
|
7
7
|
var require_memoizerific = __commonJS({
|
|
8
|
-
"
|
|
8
|
+
"../../node_modules/memoizerific/memoizerific.js"(exports, module) {
|
|
9
9
|
(function(f) {
|
|
10
10
|
if (typeof exports == "object" && typeof module < "u")
|
|
11
11
|
module.exports = f();
|