storybook 10.2.0-alpha.1 → 10.2.0-alpha.11
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-TNPFN3FC.js → Color-XESOIGZP.js} +9 -568
- 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-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-G4M6MXF4.js} +31 -27
- 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-3IAH5M2U.js → chunk-IYCKG66Y.js} +5 -5
- package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-FQ7SLVLR.js → chunk-JVRDBUUP.js} +20 -1
- package/dist/_browser-chunks/{chunk-GFLS4VP3.js → chunk-LCHBOIHN.js} +6 -6
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-NQJGOFZV.js} +4 -4
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-POMIZRJL.js} +3 -3
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-Q5RYDXT3.js} +38 -30
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-RBABWY22.js} +18 -18
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- package/dist/_browser-chunks/{chunk-AIOS4NGK.js → chunk-SWJP5COI.js} +11 -11
- 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-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
- package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- 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-MNAUTRWW.js} +23 -22
- package/dist/_node-chunks/camelcase-6H4Z5R35.js +62 -0
- package/dist/_node-chunks/chunk-2CGMTALY.js +61 -0
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-2DZGIXSN.js} +26 -7
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-5L22ATN3.js} +165 -191
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-7FH4U6XC.js} +8 -9
- package/dist/_node-chunks/chunk-CMQYFTBQ.js +126 -0
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-F3OHO2BC.js} +34 -24
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-FWVZUHZX.js} +6 -6
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-GRH5JFTX.js} +31 -31
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-HXFHXVEW.js} +5434 -1625
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-KAIK7772.js} +17 -17
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-KU4SWNDM.js} +59 -147
- package/dist/_node-chunks/chunk-KX7OAVXY.js +18 -0
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-L22DGLKT.js} +6 -6
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-MAMDH2R3.js} +8 -8
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-MAQAZSXK.js} +7 -7
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-O7O53MP7.js} +62 -124
- package/dist/_node-chunks/chunk-P663SP7U.js +20 -0
- package/dist/_node-chunks/chunk-RI4IBKXZ.js +23 -0
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-RJY225Z5.js} +8 -8
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-TFY6QV57.js} +48 -26
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-TOMGRF4A.js} +77 -16
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-UNUWAUGG.js} +6 -6
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-UOHDPKIW.js} +15 -15
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-URWJMVZI.js} +9 -9
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-UYMZAYR4.js} +597 -593
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-WHIAK7AH.js} +111 -38
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-WQ4WQYSZ.js} +9 -9
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-ZOBQQCBA.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-WNZSV3ZO.js} +155 -164
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-YUWKNDR2.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-K5BCUPEA.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-ROJSQI7F.js} +19 -15
- 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 +1330 -250
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +1344 -289
- package/dist/common/index.js +22 -22
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +339 -317
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.d.ts +71 -2
- package/dist/core-server/index.js +3381 -3529
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +93 -65
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +86 -118
- package/dist/csf/index.d.ts +41 -11
- package/dist/csf/index.js +46 -39
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +5 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +9402 -7204
- package/dist/manager/runtime.js +195 -153
- package/dist/manager-api/index.js +34 -26
- package/dist/manager-errors.d.ts +24 -0
- package/dist/manager-errors.js +2 -2
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +1456 -111
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +4608 -2436
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/preview-api/index.js +12 -12
- package/dist/preview-errors.d.ts +24 -0
- package/dist/preview-errors.js +3 -3
- package/dist/router/index.js +11 -11
- package/dist/server-errors.d.ts +59 -3
- package/dist/server-errors.js +22 -11
- package/dist/telemetry/index.d.ts +10 -3
- package/dist/telemetry/index.js +27 -25
- package/dist/test/index.js +3237 -1653
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +38 -38
- package/dist/types/index.d.ts +12 -6
- package/dist/viewport/index.d.ts +3 -3
- package/package.json +27 -33
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- package/dist/_node-chunks/camelcase-64II7H4U.js +0 -37
- package/dist/_node-chunks/chunk-4EZYJUAC.js +0 -70
- 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-VR5LMO3F.js +0 -72
- package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
package/dist/theming/create.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
themes
|
|
4
|
-
} from "../_browser-chunks/chunk-
|
|
5
|
-
import "../_browser-chunks/chunk-
|
|
6
|
-
import "../_browser-chunks/chunk-
|
|
4
|
+
} from "../_browser-chunks/chunk-IH6QJILI.js";
|
|
5
|
+
import "../_browser-chunks/chunk-S6TK43XQ.js";
|
|
6
|
+
import "../_browser-chunks/chunk-LE2LTDW3.js";
|
|
7
7
|
import "../_browser-chunks/chunk-A242L54C.js";
|
|
8
8
|
export {
|
|
9
9
|
create,
|
package/dist/theming/index.d.ts
CHANGED
|
@@ -12764,9 +12764,9 @@ type InterpolationEnhanced<T = {}> = Interpolation<T & {
|
|
|
12764
12764
|
}>;
|
|
12765
12765
|
|
|
12766
12766
|
declare const ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
|
|
12767
|
+
declare module '.' {
|
|
12768
|
+
interface Theme extends StorybookTheme {
|
|
12769
|
+
}
|
|
12770
|
+
}
|
|
12767
12771
|
|
|
12768
|
-
export { type Animation, type Background, type Brand, type CSSObject, CacheProvider, ClassNames, type Color, type Easing, type FunctionInterpolationEnhanced as FunctionInterpolation, Global, type InterpolationEnhanced as Interpolation, type Keyframes$1 as Keyframes, type StorybookTheme, type StyledComponent, type TextSize, ThemeProvider, type ThemeVars, type ThemeVarsColors, type ThemeVarsPartial, type Typography, background, color, convert, create, createCache, createGlobal, createReset, css, darkenColor as darken, ensure, getPreferredColorScheme, ignoreSsrWarning, isPropValid, jsx, keyframes, lightenColor as lighten, styled, themes, tokens, typography, useTheme, withTheme };
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
interface Theme extends StorybookTheme {}
|
|
12772
|
-
export type { Theme };
|
|
12772
|
+
export { type Animation, type Background, type Brand, type CSSObject, CacheProvider, ClassNames, type Color, type Easing, type FunctionInterpolationEnhanced as FunctionInterpolation, Global, type InterpolationEnhanced as Interpolation, type Keyframes$1 as Keyframes, type StorybookTheme, type StyledComponent, type TextSize, type Theme, ThemeProvider, type ThemeVars, type ThemeVarsColors, type ThemeVarsPartial, type Typography, background, color, convert, create, createCache, createGlobal, createReset, css, darkenColor as darken, ensure, getPreferredColorScheme, ignoreSsrWarning, isPropValid, jsx, keyframes, lightenColor as lighten, styled, themes, tokens, typography, useTheme, withTheme };
|
package/dist/theming/index.js
CHANGED
|
@@ -10,27 +10,27 @@ import {
|
|
|
10
10
|
themes,
|
|
11
11
|
tokens,
|
|
12
12
|
typography
|
|
13
|
-
} from "../_browser-chunks/chunk-
|
|
13
|
+
} from "../_browser-chunks/chunk-IH6QJILI.js";
|
|
14
14
|
import {
|
|
15
15
|
curriedOpacify$1
|
|
16
|
-
} from "../_browser-chunks/chunk-
|
|
16
|
+
} from "../_browser-chunks/chunk-S6TK43XQ.js";
|
|
17
17
|
import {
|
|
18
18
|
_extends
|
|
19
|
-
} from "../_browser-chunks/chunk-
|
|
19
|
+
} from "../_browser-chunks/chunk-LE2LTDW3.js";
|
|
20
20
|
import {
|
|
21
21
|
require_memoizerific
|
|
22
|
-
} from "../_browser-chunks/chunk-
|
|
22
|
+
} from "../_browser-chunks/chunk-ZCFV7BZB.js";
|
|
23
23
|
import {
|
|
24
24
|
dedent
|
|
25
|
-
} from "../_browser-chunks/chunk-
|
|
25
|
+
} from "../_browser-chunks/chunk-3LY4VQVK.js";
|
|
26
26
|
import {
|
|
27
27
|
__commonJS,
|
|
28
28
|
__toESM
|
|
29
29
|
} from "../_browser-chunks/chunk-A242L54C.js";
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// ../../node_modules/react-is/cjs/react-is.production.min.js
|
|
32
32
|
var require_react_is_production_min = __commonJS({
|
|
33
|
-
"
|
|
33
|
+
"../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
34
34
|
"use strict";
|
|
35
35
|
var b = typeof Symbol == "function" && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
36
36
|
function z(a) {
|
|
@@ -123,9 +123,9 @@ var require_react_is_production_min = __commonJS({
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
//
|
|
126
|
+
// ../../node_modules/react-is/cjs/react-is.development.js
|
|
127
127
|
var require_react_is_development = __commonJS({
|
|
128
|
-
"
|
|
128
|
+
"../../node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
129
129
|
"use strict";
|
|
130
130
|
process.env.NODE_ENV !== "production" && (function() {
|
|
131
131
|
"use strict";
|
|
@@ -211,17 +211,17 @@ var require_react_is_development = __commonJS({
|
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
|
|
214
|
-
//
|
|
214
|
+
// ../../node_modules/react-is/index.js
|
|
215
215
|
var require_react_is = __commonJS({
|
|
216
|
-
"
|
|
216
|
+
"../../node_modules/react-is/index.js"(exports, module) {
|
|
217
217
|
"use strict";
|
|
218
218
|
process.env.NODE_ENV === "production" ? module.exports = require_react_is_production_min() : module.exports = require_react_is_development();
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
|
|
222
|
-
//
|
|
222
|
+
// ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
223
223
|
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
224
|
-
"
|
|
224
|
+
"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
225
225
|
"use strict";
|
|
226
226
|
var reactIs = require_react_is(), REACT_STATICS = {
|
|
227
227
|
childContextTypes: !0,
|
|
@@ -288,11 +288,11 @@ var require_hoist_non_react_statics_cjs = __commonJS({
|
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
290
|
|
|
291
|
-
//
|
|
291
|
+
// ../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
|
|
292
292
|
import * as React2 from "react";
|
|
293
293
|
import { useContext as useContext2, forwardRef as forwardRef2 } from "react";
|
|
294
294
|
|
|
295
|
-
//
|
|
295
|
+
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
296
296
|
var isDevelopment = !1;
|
|
297
297
|
function sheetForTag(tag) {
|
|
298
298
|
if (tag.sheet)
|
|
@@ -336,13 +336,13 @@ var StyleSheet = (function() {
|
|
|
336
336
|
}, StyleSheet2;
|
|
337
337
|
})();
|
|
338
338
|
|
|
339
|
-
//
|
|
339
|
+
// ../../node_modules/stylis/src/Enum.js
|
|
340
340
|
var MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl";
|
|
341
341
|
var IMPORT = "@import";
|
|
342
342
|
var KEYFRAMES = "@keyframes";
|
|
343
343
|
var LAYER = "@layer";
|
|
344
344
|
|
|
345
|
-
//
|
|
345
|
+
// ../../node_modules/stylis/src/Utility.js
|
|
346
346
|
var abs = Math.abs, from = String.fromCharCode, assign = Object.assign;
|
|
347
347
|
function hash(value, length2) {
|
|
348
348
|
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
@@ -378,7 +378,7 @@ function combine(array, callback) {
|
|
|
378
378
|
return array.map(callback).join("");
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
//
|
|
381
|
+
// ../../node_modules/stylis/src/Tokenizer.js
|
|
382
382
|
var line = 1, column = 1, length = 0, position = 0, character = 0, characters = "";
|
|
383
383
|
function node(value, root, parent, type, props, children, length2) {
|
|
384
384
|
return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
|
|
@@ -495,7 +495,7 @@ function identifier(index) {
|
|
|
495
495
|
return slice(index, position);
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
//
|
|
498
|
+
// ../../node_modules/stylis/src/Parser.js
|
|
499
499
|
function compile(value) {
|
|
500
500
|
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
501
501
|
}
|
|
@@ -618,7 +618,7 @@ function declaration(value, root, parent, length2) {
|
|
|
618
618
|
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
//
|
|
621
|
+
// ../../node_modules/stylis/src/Serializer.js
|
|
622
622
|
function serialize(children, callback) {
|
|
623
623
|
for (var output = "", length2 = sizeof(children), i = 0; i < length2; i++)
|
|
624
624
|
output += callback(children[i], i, children, callback) || "";
|
|
@@ -641,7 +641,7 @@ function stringify(element, index, children, callback) {
|
|
|
641
641
|
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
//
|
|
644
|
+
// ../../node_modules/stylis/src/Middleware.js
|
|
645
645
|
function middleware(collection) {
|
|
646
646
|
var length2 = sizeof(collection);
|
|
647
647
|
return function(element, index, children, callback) {
|
|
@@ -656,7 +656,7 @@ function rulesheet(callback) {
|
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
-
//
|
|
659
|
+
// ../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
|
|
660
660
|
var weakMemoize = function(func) {
|
|
661
661
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
662
662
|
return function(arg) {
|
|
@@ -667,7 +667,7 @@ var weakMemoize = function(func) {
|
|
|
667
667
|
};
|
|
668
668
|
};
|
|
669
669
|
|
|
670
|
-
//
|
|
670
|
+
// ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
671
671
|
function memoize(fn) {
|
|
672
672
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
673
673
|
return function(arg) {
|
|
@@ -675,7 +675,7 @@ function memoize(fn) {
|
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
677
|
|
|
678
|
-
//
|
|
678
|
+
// ../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
679
679
|
var identifierWithPointTracking = function(begin, points, index) {
|
|
680
680
|
for (var previous = 0, character2 = 0; previous = character2, character2 = peek(), previous === 38 && character2 === 12 && (points[index] = 1), !token(character2); )
|
|
681
681
|
next();
|
|
@@ -946,12 +946,12 @@ var prefixer = function(element, index, children, callback) {
|
|
|
946
946
|
return cache.sheet.hydrate(nodesToHydrate), cache;
|
|
947
947
|
};
|
|
948
948
|
|
|
949
|
-
//
|
|
949
|
+
// ../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js
|
|
950
950
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()), hoistNonReactStatics = (function(targetComponent, sourceComponent) {
|
|
951
951
|
return (0, import_hoist_non_react_statics.default)(targetComponent, sourceComponent);
|
|
952
952
|
});
|
|
953
953
|
|
|
954
|
-
//
|
|
954
|
+
// ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
|
|
955
955
|
var isBrowser = !0;
|
|
956
956
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
957
957
|
var rawClassName = "";
|
|
@@ -982,7 +982,7 @@ var registerStyles = function(cache, serialized, isStringTag) {
|
|
|
982
982
|
}
|
|
983
983
|
};
|
|
984
984
|
|
|
985
|
-
//
|
|
985
|
+
// ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
986
986
|
function murmur2(str) {
|
|
987
987
|
for (var h = 0, k, i = 0, len = str.length; len >= 4; ++i, len -= 4)
|
|
988
988
|
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24, k = /* Math.imul(k, m): */
|
|
@@ -1003,7 +1003,7 @@ function murmur2(str) {
|
|
|
1003
1003
|
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16), ((h ^ h >>> 15) >>> 0).toString(36);
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
|
-
//
|
|
1006
|
+
// ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
1007
1007
|
var unitlessKeys = {
|
|
1008
1008
|
animationIterationCount: 1,
|
|
1009
1009
|
aspectRatio: 1,
|
|
@@ -1055,7 +1055,7 @@ var unitlessKeys = {
|
|
|
1055
1055
|
strokeWidth: 1
|
|
1056
1056
|
};
|
|
1057
1057
|
|
|
1058
|
-
//
|
|
1058
|
+
// ../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
|
|
1059
1059
|
var isDevelopment2 = !1, hyphenateRegex = /[A-Z]|^ms/g, animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, isCustomProperty = function(property) {
|
|
1060
1060
|
return property.charCodeAt(1) === 45;
|
|
1061
1061
|
}, isProcessableValue = function(value) {
|
|
@@ -1185,13 +1185,13 @@ function serializeStyles(args, registered, mergedProps) {
|
|
|
1185
1185
|
};
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
|
-
//
|
|
1188
|
+
// ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
|
|
1189
1189
|
import * as React from "react";
|
|
1190
1190
|
var syncFallback = function(create3) {
|
|
1191
1191
|
return create3();
|
|
1192
1192
|
}, useInsertionEffect2 = React.useInsertionEffect ? React.useInsertionEffect : !1, useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback, useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect;
|
|
1193
1193
|
|
|
1194
|
-
//
|
|
1194
|
+
// ../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js
|
|
1195
1195
|
var isDevelopment3 = !1, EmotionCacheContext = React2.createContext(
|
|
1196
1196
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1197
1197
|
// because this module is primarily intended for the browser and node
|
|
@@ -1263,7 +1263,7 @@ var hasOwn = {}.hasOwnProperty, typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE
|
|
|
1263
1263
|
}), React2.createElement(WrappedComponent, newProps));
|
|
1264
1264
|
}), Emotion$1 = Emotion;
|
|
1265
1265
|
|
|
1266
|
-
//
|
|
1266
|
+
// ../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js
|
|
1267
1267
|
import * as React3 from "react";
|
|
1268
1268
|
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()), jsx = function(type, props) {
|
|
1269
1269
|
var args = arguments;
|
|
@@ -1381,10 +1381,10 @@ var Insertion3 = function(_ref) {
|
|
|
1381
1381
|
}), ele);
|
|
1382
1382
|
});
|
|
1383
1383
|
|
|
1384
|
-
//
|
|
1384
|
+
// ../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
|
|
1385
1385
|
import * as React4 from "react";
|
|
1386
1386
|
|
|
1387
|
-
//
|
|
1387
|
+
// ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
1388
1388
|
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, isPropValid = memoize(
|
|
1389
1389
|
function(prop) {
|
|
1390
1390
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
@@ -1392,7 +1392,7 @@ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|def
|
|
|
1392
1392
|
/* Z+1 */
|
|
1393
1393
|
);
|
|
1394
1394
|
|
|
1395
|
-
//
|
|
1395
|
+
// ../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
|
|
1396
1396
|
var isDevelopment4 = !1, testOmitPropsOnStringTag = isPropValid, testOmitPropsOnComponent = function(key) {
|
|
1397
1397
|
return key !== "theme";
|
|
1398
1398
|
}, getDefaultShouldForwardProp = function(tag) {
|
|
@@ -1461,7 +1461,7 @@ var isDevelopment4 = !1, testOmitPropsOnStringTag = isPropValid, testOmitPropsOn
|
|
|
1461
1461
|
};
|
|
1462
1462
|
};
|
|
1463
1463
|
|
|
1464
|
-
//
|
|
1464
|
+
// ../../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
|
|
1465
1465
|
import "react";
|
|
1466
1466
|
var tags = [
|
|
1467
1467
|
"a",
|
|
@@ -2066,11 +2066,11 @@ var lightSyntaxColors = {
|
|
|
2066
2066
|
// src/theming/ensure.ts
|
|
2067
2067
|
import { logger } from "storybook/internal/client-logger";
|
|
2068
2068
|
|
|
2069
|
-
//
|
|
2069
|
+
// ../../node_modules/deep-object-diff/mjs/utils.js
|
|
2070
2070
|
var isEmpty = (o) => Object.keys(o).length === 0, isObject = (o) => o != null && typeof o == "object", hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);
|
|
2071
2071
|
var makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
|
|
2072
2072
|
|
|
2073
|
-
//
|
|
2073
|
+
// ../../node_modules/deep-object-diff/mjs/deleted.js
|
|
2074
2074
|
var deletedDiff = (lhs, rhs) => lhs === rhs || !isObject(lhs) || !isObject(rhs) ? {} : Object.keys(lhs).reduce((acc, key) => {
|
|
2075
2075
|
if (hasOwnProperty(rhs, key)) {
|
|
2076
2076
|
let difference = deletedDiff(lhs[key], rhs[key]);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { WhatsNewData } from 'storybook/internal/core-events';
|
|
|
8
8
|
import { FileSystemCache } from 'storybook/internal/common';
|
|
9
9
|
import { StoryIndexGenerator } from 'storybook/internal/core-server';
|
|
10
10
|
import { CsfFile } from 'storybook/internal/csf-tools';
|
|
11
|
+
import { LogLevel } from 'storybook/internal/node-logger';
|
|
11
12
|
import { Server, IncomingMessage, ServerResponse } from 'http';
|
|
12
13
|
import { Server as Server$1 } from 'net';
|
|
13
14
|
import { Channel as Channel$1 } from 'storybook/internal/channels';
|
|
@@ -2123,8 +2124,8 @@ interface IndexInputStats {
|
|
|
2123
2124
|
}
|
|
2124
2125
|
/** The base input for indexing a story or docs entry. */
|
|
2125
2126
|
type BaseIndexInput = {
|
|
2126
|
-
/** The file to import from e.g. the story file. */
|
|
2127
|
-
importPath
|
|
2127
|
+
/** The file to import from e.g. the story file. Defaults to the fileName arg passed to createIndex */
|
|
2128
|
+
importPath?: Path;
|
|
2128
2129
|
/** The raw path/package of the file that provides meta.component, if one exists */
|
|
2129
2130
|
rawComponentPath?: Path;
|
|
2130
2131
|
/** The name of the export to import. */
|
|
@@ -2312,7 +2313,8 @@ interface CLIBaseOptions {
|
|
|
2312
2313
|
disableTelemetry?: boolean;
|
|
2313
2314
|
enableCrashReports?: boolean;
|
|
2314
2315
|
configDir?: string;
|
|
2315
|
-
loglevel?:
|
|
2316
|
+
loglevel?: LogLevel;
|
|
2317
|
+
logfile?: string | boolean;
|
|
2316
2318
|
quiet?: boolean;
|
|
2317
2319
|
}
|
|
2318
2320
|
interface CLIOptions extends CLIBaseOptions {
|
|
@@ -2488,7 +2490,10 @@ interface ComponentsManifest {
|
|
|
2488
2490
|
v: number;
|
|
2489
2491
|
components: Record<string, ComponentManifest>;
|
|
2490
2492
|
}
|
|
2491
|
-
type
|
|
2493
|
+
type ManifestName = string;
|
|
2494
|
+
type Manifests = {
|
|
2495
|
+
components?: ComponentsManifest;
|
|
2496
|
+
} & Record<ManifestName, unknown>;
|
|
2492
2497
|
type CsfEnricher = (csf: CsfFile, csfSource: CsfFile) => Promise<void>;
|
|
2493
2498
|
interface StorybookConfigRaw {
|
|
2494
2499
|
/**
|
|
@@ -2503,7 +2508,7 @@ interface StorybookConfigRaw {
|
|
|
2503
2508
|
*/
|
|
2504
2509
|
addons?: Preset[];
|
|
2505
2510
|
core?: CoreConfig;
|
|
2506
|
-
|
|
2511
|
+
experimental_manifests?: Manifests;
|
|
2507
2512
|
experimental_enrichCsf?: CsfEnricher;
|
|
2508
2513
|
staticDirs?: (DirectoryMapping | string)[];
|
|
2509
2514
|
logLevel?: string;
|
|
@@ -2615,6 +2620,7 @@ interface StorybookConfigRaw {
|
|
|
2615
2620
|
babelDefault?: any;
|
|
2616
2621
|
previewAnnotations?: Entry[];
|
|
2617
2622
|
experimental_indexers?: Indexer[];
|
|
2623
|
+
storyIndexGenerator?: StoryIndexGenerator;
|
|
2618
2624
|
experimental_devServer?: ServerApp;
|
|
2619
2625
|
docs?: DocsOptions;
|
|
2620
2626
|
previewHead?: string;
|
|
@@ -3722,4 +3728,4 @@ declare enum SupportedLanguage {
|
|
|
3722
3728
|
TYPESCRIPT = "typescript"
|
|
3723
3729
|
}
|
|
3724
3730
|
|
|
3725
|
-
export { type API_ActiveTabsType, type API_BaseEntry, type API_ComponentEntry, type API_ComposedRef, type API_ComposedRefUpdate, type API_DocsEntry, type API_FilterFunction, type API_GroupEntry, type API_HashEntry, type API_IframeRenderer, type API_IndexHash, type API_Layout, type API_LayoutCustomisations, type API_LeafEntry, type API_LoadedRefData, type API_MatchOptions, type API_Notification, type API_OptionsData, type API_PanelPositions, type API_PreparedIndexEntry, type API_PreparedStoryIndex, type API_Provider, type API_ProviderData, type API_RefId, type API_RefUrl, type API_Refs, type API_ReleaseNotes, type API_RenderOptions, type API_RootEntry, type API_RouteOptions, type API_SetRefData, type API_Settings, type API_SidebarOptions, type API_StateMerger, type API_StoryEntry, type API_StoryMapper, type API_TestEntry, type API_UI, type API_UIOptions, type API_UnknownEntries, type API_Version, type API_Versions$1 as API_Versions, type API_ViewMode, type Actor, type Addon_AddStoryArgs, type Addon_Annotations, type Addon_ArgType, type Addon_ArgsStoryFn, type Addon_BaseAnnotations, type Addon_BaseDecorators, type Addon_BaseMeta, type Addon_BaseStoryFn, type Addon_BaseStoryObject, type Addon_BaseType, type Addon_ClientApiAddon, type Addon_ClientApiAddons, type Addon_ClientApiReturnFn, type Addon_ClientStoryApi, type Addon_Collection, type Addon_Comparator, type Addon_Config, type Addon_DecoratorFunction, type Addon_Elements, type Addon_LegacyStoryFn, type Addon_LoadFn, type Addon_Loadable, type Addon_Loader, type Addon_LoaderFunction, type Addon_Loaders, type Addon_MakeDecoratorResult, type Addon_OptionsParameter, type Addon_OptionsParameterV7, type Addon_PageType, type Addon_PartialStoryFn, type Addon_RenderOptions, type Addon_RequireContext, type Addon_StoryApi, type Addon_StoryContext, type Addon_StoryContextUpdate, type Addon_StoryFn, type Addon_StorySortComparator, type Addon_StorySortComparatorV7, type Addon_StorySortMethod, type Addon_StorySortObjectParameter, type Addon_StorySortParameter, type Addon_StorySortParameterV7, type Addon_StoryWrapper, type Addon_TestProviderType, type Addon_ToolbarConfig, type Addon_Type, type Addon_Types, Addon_TypesEnum, type Addon_TypesMapping, type Addon_WrapperSettings, type Addon_WrapperType, type Addons_ArgTypes, type BaseIndexEntry, type BaseIndexInput, type BaseStory, type BoundStory, type Builder, type BuilderName, type BuilderOptions, type BuilderResult, type BuilderStats, type Builder_EnvsRaw, type Builder_Unpromise, type Builder_WithRequiredProperty, type CLIBaseOptions, type CLIOptions, type CSFFile, type CompatibleString, type ComponentManifest, type
|
|
3731
|
+
export { type API_ActiveTabsType, type API_BaseEntry, type API_ComponentEntry, type API_ComposedRef, type API_ComposedRefUpdate, type API_DocsEntry, type API_FilterFunction, type API_GroupEntry, type API_HashEntry, type API_IframeRenderer, type API_IndexHash, type API_Layout, type API_LayoutCustomisations, type API_LeafEntry, type API_LoadedRefData, type API_MatchOptions, type API_Notification, type API_OptionsData, type API_PanelPositions, type API_PreparedIndexEntry, type API_PreparedStoryIndex, type API_Provider, type API_ProviderData, type API_RefId, type API_RefUrl, type API_Refs, type API_ReleaseNotes, type API_RenderOptions, type API_RootEntry, type API_RouteOptions, type API_SetRefData, type API_Settings, type API_SidebarOptions, type API_StateMerger, type API_StoryEntry, type API_StoryMapper, type API_TestEntry, type API_UI, type API_UIOptions, type API_UnknownEntries, type API_Version, type API_Versions$1 as API_Versions, type API_ViewMode, type Actor, type Addon_AddStoryArgs, type Addon_Annotations, type Addon_ArgType, type Addon_ArgsStoryFn, type Addon_BaseAnnotations, type Addon_BaseDecorators, type Addon_BaseMeta, type Addon_BaseStoryFn, type Addon_BaseStoryObject, type Addon_BaseType, type Addon_ClientApiAddon, type Addon_ClientApiAddons, type Addon_ClientApiReturnFn, type Addon_ClientStoryApi, type Addon_Collection, type Addon_Comparator, type Addon_Config, type Addon_DecoratorFunction, type Addon_Elements, type Addon_LegacyStoryFn, type Addon_LoadFn, type Addon_Loadable, type Addon_Loader, type Addon_LoaderFunction, type Addon_Loaders, type Addon_MakeDecoratorResult, type Addon_OptionsParameter, type Addon_OptionsParameterV7, type Addon_PageType, type Addon_PartialStoryFn, type Addon_RenderOptions, type Addon_RequireContext, type Addon_StoryApi, type Addon_StoryContext, type Addon_StoryContextUpdate, type Addon_StoryFn, type Addon_StorySortComparator, type Addon_StorySortComparatorV7, type Addon_StorySortMethod, type Addon_StorySortObjectParameter, type Addon_StorySortParameter, type Addon_StorySortParameterV7, type Addon_StoryWrapper, type Addon_TestProviderType, type Addon_ToolbarConfig, type Addon_Type, type Addon_Types, Addon_TypesEnum, type Addon_TypesMapping, type Addon_WrapperSettings, type Addon_WrapperType, type Addons_ArgTypes, type BaseIndexEntry, type BaseIndexInput, type BaseStory, type BoundStory, type Builder, type BuilderName, type BuilderOptions, type BuilderResult, type BuilderStats, type Builder_EnvsRaw, type Builder_Unpromise, type Builder_WithRequiredProperty, type CLIBaseOptions, type CLIOptions, type CSFFile, type CompatibleString, type ComponentManifest, type ComponentsManifest, type ComposeStoryFn, type ComposedStoryFn, type CoreCommon_AddonEntry, type CoreCommon_AddonInfo, type CoreCommon_OptionsEntry, type CoreCommon_ResolvedAddonPreset, type CoreCommon_ResolvedAddonVirtual, type CoreCommon_StorybookInfo, type CoreConfig, CoreWebpackCompiler, type CsfEnricher, type DocsContextProps, type DocsIndexEntry, type DocsIndexInput, type DocsOptions, type DocsPreparedPayload, type DocsRenderFunction, type Entry, type Event, type EventInfo, Feature, type GlobalsUpdatedPayload, type IndexEntry, type IndexEntryLegacy, type IndexInput, type IndexInputStats, type IndexedCSFFile, type IndexedStory, type Indexer, type IndexerOptions, type LoadOptions, type LoadedPreset, type Manifests, type Middleware, MockUniversalStore, type ModuleExport, type ModuleExports, type ModuleImportFn, type NamedOrDefaultProjectAnnotations, type NormalizedComponentAnnotations, type NormalizedProjectAnnotations, type NormalizedStoriesSpecifier, type NormalizedStoryAnnotations, type Options, type PackageJson, type PartialArgsStoryFn, type Path, type PreparedMeta, type PreparedStory, type Preset, type PresetConfig, type PresetProperty, type PresetPropertyFn, type PresetValue, type Presets, type PreviewAnnotation, type ProjectAnnotations, type Ref, type RenderContext, type RenderContextCallbacks, type RenderToCanvas, type RendererName, type ResolvedModuleExport, type ResolvedModuleExportFromType, type ResolvedModuleExportType, type ServerApp, type SetGlobalsPayload, type SetStoriesPayload, type SetStoriesStory, type SetStoriesStoryData, type Stats, type Status, type StatusByTypeId, type StatusStore, type StatusStoreByTypeId, type StatusTypeId, type StatusValue, type StatusesByStoryIdAndTypeId, type StoreOptions, type Store_CSFExports, type StoriesEntry, type StoriesSpecifier, type StoriesWithPartialProps, type StoryIndex, type StoryIndexEntry, type StoryIndexInput, type StoryIndexV2, type StoryIndexV3, type StoryPreparedPayload, type StoryRenderOptions, type StorybookConfig, type StorybookConfigOptions, type StorybookConfigRaw, type StorybookInternalParameters, type StorybookParameters, type StorybookTypes, SupportedBuilder, SupportedFramework, SupportedLanguage, SupportedRenderer, type TagOptions, type TagsOptions, type TeardownRenderToCanvas, type TestBuildConfig, type TestBuildFlags, type TestProviderId, type TestProviderState, type TestProviderStateByProviderId, type TestProviderStoreById, type TypescriptOptions, UniversalStore, type UseStatusStore, type UseTestProviderStore, type V3CompatIndexEntry, type VersionCheck, type ViewMode, type WebRenderer };
|
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.11",
|
|
4
4
|
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -193,33 +193,27 @@
|
|
|
193
193
|
"README.md",
|
|
194
194
|
"!src/**/*"
|
|
195
195
|
],
|
|
196
|
-
"scripts": {
|
|
197
|
-
"check": "jiti ../../scripts/check/check-package.ts",
|
|
198
|
-
"prep": "jiti ../../scripts/build/build-package.ts"
|
|
199
|
-
},
|
|
200
|
-
"resolutions": {
|
|
201
|
-
"@testing-library/user-event": "patch:@testing-library/user-event@npm%3A14.6.1#~/../.yarn/patches/@testing-library-user-event-npm-14.6.1-5da7e1d4e2.patch"
|
|
202
|
-
},
|
|
203
196
|
"dependencies": {
|
|
204
197
|
"@storybook/global": "^5.0.0",
|
|
205
|
-
"@storybook/icons": "^2.0.
|
|
198
|
+
"@storybook/icons": "^2.0.1",
|
|
206
199
|
"@testing-library/jest-dom": "^6.6.3",
|
|
207
200
|
"@testing-library/user-event": "^14.6.1",
|
|
208
201
|
"@vitest/expect": "3.2.4",
|
|
209
202
|
"@vitest/spy": "3.2.4",
|
|
210
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",
|
|
211
205
|
"recast": "^0.23.5",
|
|
212
|
-
"semver": "^7.
|
|
206
|
+
"semver": "^7.7.3",
|
|
213
207
|
"use-sync-external-store": "^1.5.0",
|
|
214
208
|
"ws": "^8.18.0"
|
|
215
209
|
},
|
|
216
210
|
"devDependencies": {
|
|
217
211
|
"@aw-web-design/x-default-browser": "1.4.126",
|
|
218
|
-
"@babel/core": "^7.
|
|
219
|
-
"@babel/generator": "^7.
|
|
220
|
-
"@babel/parser": "^7.
|
|
221
|
-
"@babel/traverse": "^7.
|
|
222
|
-
"@babel/types": "^7.
|
|
212
|
+
"@babel/core": "^7.28.5",
|
|
213
|
+
"@babel/generator": "^7.28.5",
|
|
214
|
+
"@babel/parser": "^7.28.5",
|
|
215
|
+
"@babel/traverse": "^7.28.5",
|
|
216
|
+
"@babel/types": "^7.28.5",
|
|
223
217
|
"@clack/prompts": "1.0.0-alpha.7",
|
|
224
218
|
"@devtools-ds/object-inspector": "^1.1.2",
|
|
225
219
|
"@discoveryjs/json-ext": "^0.5.3",
|
|
@@ -228,7 +222,7 @@
|
|
|
228
222
|
"@emotion/react": "^11.14.0",
|
|
229
223
|
"@emotion/styled": "^11.14.0",
|
|
230
224
|
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
|
|
231
|
-
"@happy-dom/global-registrator": "^
|
|
225
|
+
"@happy-dom/global-registrator": "^20.0.11",
|
|
232
226
|
"@ngard/tiny-isequal": "^1.1.0",
|
|
233
227
|
"@polka/compression": "^1.0.0-next.28",
|
|
234
228
|
"@radix-ui/react-scroll-area": "1.2.0-rc.7",
|
|
@@ -251,14 +245,14 @@
|
|
|
251
245
|
"@types/diff": "^5.0.9",
|
|
252
246
|
"@types/ejs": "^3.1.1",
|
|
253
247
|
"@types/js-yaml": "^4.0.5",
|
|
254
|
-
"@types/node": "^22.
|
|
248
|
+
"@types/node": "^22.19.1",
|
|
255
249
|
"@types/npmlog": "^7.0.0",
|
|
256
250
|
"@types/picomatch": "^2.3.0",
|
|
257
251
|
"@types/prettier": "^3.0.0",
|
|
258
252
|
"@types/pretty-hrtime": "^1.0.0",
|
|
259
253
|
"@types/prompts": "^2.0.9",
|
|
260
254
|
"@types/react-syntax-highlighter": "11.0.5",
|
|
261
|
-
"@types/semver": "^7.
|
|
255
|
+
"@types/semver": "^7.7.1",
|
|
262
256
|
"@types/ws": "^8",
|
|
263
257
|
"@vitest/utils": "^3.2.4",
|
|
264
258
|
"@yarnpkg/fslib": "2.10.3",
|
|
@@ -266,31 +260,31 @@
|
|
|
266
260
|
"ansi-to-html": "^0.7.2",
|
|
267
261
|
"browser-dtector": "^3.4.0",
|
|
268
262
|
"bundle-require": "^5.1.0",
|
|
269
|
-
"camelcase": "^
|
|
263
|
+
"camelcase": "^9.0.0",
|
|
270
264
|
"chai": "^5.1.1",
|
|
271
|
-
"commander": "^14.0.
|
|
265
|
+
"commander": "^14.0.2",
|
|
272
266
|
"comment-parser": "^1.4.1",
|
|
273
267
|
"copy-to-clipboard": "^3.3.1",
|
|
274
268
|
"cross-spawn": "^7.0.6",
|
|
275
269
|
"deep-object-diff": "^1.1.0",
|
|
276
270
|
"dequal": "^2.0.2",
|
|
277
271
|
"detect-indent": "^7.0.1",
|
|
278
|
-
"detect-port": "^1.
|
|
279
|
-
"diff": "^
|
|
272
|
+
"detect-port": "^1.6.1",
|
|
273
|
+
"diff": "^8.0.2",
|
|
280
274
|
"downshift": "^9.0.4",
|
|
281
275
|
"ejs": "^3.1.10",
|
|
282
276
|
"empathic": "^2.0.0",
|
|
283
|
-
"es-toolkit": "^1.
|
|
277
|
+
"es-toolkit": "^1.43.0",
|
|
284
278
|
"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",
|
|
285
|
-
"execa": "^
|
|
279
|
+
"execa": "^9.6.1",
|
|
286
280
|
"exsolve": "^1.0.7",
|
|
287
281
|
"fetch-retry": "^6.0.0",
|
|
288
282
|
"flush-promises": "^1.0.2",
|
|
289
283
|
"fuse.js": "^3.6.1",
|
|
290
|
-
"get-npm-tarball-url": "^2.0
|
|
291
|
-
"glob": "^10.
|
|
292
|
-
"globby": "^14.0
|
|
293
|
-
"jiti": "^2.
|
|
284
|
+
"get-npm-tarball-url": "^2.1.0",
|
|
285
|
+
"glob": "^10.5.0",
|
|
286
|
+
"globby": "^14.1.0",
|
|
287
|
+
"jiti": "^2.6.1",
|
|
294
288
|
"js-yaml": "^4.1.0",
|
|
295
289
|
"jsdoc-type-pratt-parser": "^4.0.0",
|
|
296
290
|
"launch-editor": "^2.11.1",
|
|
@@ -301,15 +295,14 @@
|
|
|
301
295
|
"modern-tar": "^0.5.5",
|
|
302
296
|
"nanoid": "^4.0.2",
|
|
303
297
|
"npmlog": "^7.0.0",
|
|
304
|
-
"
|
|
305
|
-
"p-limit": "^6.2.0",
|
|
298
|
+
"p-limit": "^7.2.0",
|
|
306
299
|
"package-manager-detector": "^1.1.0",
|
|
307
300
|
"picocolors": "^1.1.0",
|
|
308
301
|
"picomatch": "^2.3.0",
|
|
309
302
|
"picoquery": "^1.4.0",
|
|
310
303
|
"polished": "^4.2.2",
|
|
311
304
|
"polka": "^1.0.0-next.28",
|
|
312
|
-
"prettier": "^3.
|
|
305
|
+
"prettier": "^3.7.1",
|
|
313
306
|
"pretty-hrtime": "^1.0.3",
|
|
314
307
|
"qrcode.react": "^4.2.0",
|
|
315
308
|
"react": "^18.2.0",
|
|
@@ -339,8 +332,9 @@
|
|
|
339
332
|
"typescript": "^5.8.3",
|
|
340
333
|
"unique-string": "^3.0.0",
|
|
341
334
|
"use-resize-observer": "^9.1.0",
|
|
342
|
-
"watchpack": "^2.
|
|
343
|
-
"
|
|
335
|
+
"watchpack": "^2.5.0",
|
|
336
|
+
"wrap-ansi": "^9.0.2",
|
|
337
|
+
"zod": "^3.25.76"
|
|
344
338
|
},
|
|
345
339
|
"peerDependencies": {
|
|
346
340
|
"prettier": "^2 || ^3"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
} from "./chunk-A242L54C.js";
|
|
4
|
-
|
|
5
|
-
// ../node_modules/picocolors/picocolors.browser.js
|
|
6
|
-
var require_picocolors_browser = __commonJS({
|
|
7
|
-
"../node_modules/picocolors/picocolors.browser.js"(exports, module) {
|
|
8
|
-
var x = String, create = function() {
|
|
9
|
-
return { isColorSupported: !1, reset: x, bold: x, dim: x, italic: x, underline: x, inverse: x, hidden: x, strikethrough: x, black: x, red: x, green: x, yellow: x, blue: x, magenta: x, cyan: x, white: x, gray: x, bgBlack: x, bgRed: x, bgGreen: x, bgYellow: x, bgBlue: x, bgMagenta: x, bgCyan: x, bgWhite: x, blackBright: x, redBright: x, greenBright: x, yellowBright: x, blueBright: x, magentaBright: x, cyanBright: x, whiteBright: x, bgBlackBright: x, bgRedBright: x, bgGreenBright: x, bgYellowBright: x, bgBlueBright: x, bgMagentaBright: x, bgCyanBright: x, bgWhiteBright: x };
|
|
10
|
-
};
|
|
11
|
-
module.exports = create();
|
|
12
|
-
module.exports.createColors = create;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
require_picocolors_browser
|
|
18
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_2297kyafub from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_2297kyafub from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_2297kyafub from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_2297kyafub.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_2297kyafub.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_2297kyafub.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-5NWCBUGD.js";
|
|
13
|
-
|
|
14
|
-
// ../node_modules/camelcase/index.js
|
|
15
|
-
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, SEPARATORS = /[_.\- ]+/, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
16
|
-
let isLastCharLower = !1, isLastCharUpper = !1, isLastLastCharUpper = !1, isLastLastCharPreserved = !1;
|
|
17
|
-
for (let index = 0; index < string.length; index++) {
|
|
18
|
-
let character = string[index];
|
|
19
|
-
isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : !0, isLastCharLower && UPPERCASE.test(character) ? (string = string.slice(0, index) + "-" + string.slice(index), isLastCharLower = !1, isLastLastCharUpper = isLastCharUpper, isLastCharUpper = !0, index++) : isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2) ? (string = string.slice(0, index - 1) + "-" + string.slice(index - 1), isLastLastCharUpper = isLastCharUpper, isLastCharUpper = !1, isLastCharLower = !0) : (isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character, isLastLastCharUpper = isLastCharUpper, isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character);
|
|
20
|
-
}
|
|
21
|
-
return string;
|
|
22
|
-
}, preserveConsecutiveUppercase = (input, toLowerCase) => (LEADING_CAPITAL.lastIndex = 0, input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match))), postProcess = (input, toUpperCase) => (SEPARATORS_AND_IDENTIFIER.lastIndex = 0, NUMBERS_AND_IDENTIFIER.lastIndex = 0, input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier)));
|
|
23
|
-
function camelCase(input, options) {
|
|
24
|
-
if (!(typeof input == "string" || Array.isArray(input)))
|
|
25
|
-
throw new TypeError("Expected the input to be `string | string[]`");
|
|
26
|
-
if (options = {
|
|
27
|
-
pascalCase: !1,
|
|
28
|
-
preserveConsecutiveUppercase: !1,
|
|
29
|
-
...options
|
|
30
|
-
}, Array.isArray(input) ? input = input.map((x) => x.trim()).filter((x) => x.length).join("-") : input = input.trim(), input.length === 0)
|
|
31
|
-
return "";
|
|
32
|
-
let toLowerCase = options.locale === !1 ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale), toUpperCase = options.locale === !1 ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
|
|
33
|
-
return input.length === 1 ? SEPARATORS.test(input) ? "" : options.pascalCase ? toUpperCase(input) : toLowerCase(input) : (input !== toLowerCase(input) && (input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase)), input = input.replace(LEADING_SEPARATORS, ""), input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input), options.pascalCase && (input = toUpperCase(input.charAt(0)) + input.slice(1)), postProcess(input, toUpperCase));
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
camelCase as default
|
|
37
|
-
};
|