storybook 10.0.0-rc.1 → 10.0.0-rc.2
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-KPLIACXP.js → Color-7ZNS6F6B.js} +112 -5
- package/dist/_browser-chunks/chunk-AB7OOPUX.js +12 -0
- package/dist/_browser-chunks/{chunk-6E2SHJSL.js → chunk-B4A3ADP3.js} +2 -2
- package/dist/_browser-chunks/chunk-FSBVR7H5.js +106 -0
- package/dist/_browser-chunks/{chunk-2DK2T7MP.js → chunk-SYS437NN.js} +38 -1
- package/dist/_browser-chunks/chunk-U46RQHA4.js +12 -0
- package/dist/_browser-chunks/{chunk-QK3L5AXO.js → chunk-UTNZYD2N.js} +87 -148
- package/dist/_browser-chunks/{chunk-OTSQMN22.js → chunk-W4QKLQSC.js} +7 -7
- package/dist/_browser-chunks/{chunk-JJZMHC3A.js → chunk-ZNRFDIVA.js} +35 -203
- package/dist/_node-chunks/{builder-manager-UDVVFBHZ.js → builder-manager-ZNPRP22E.js} +12 -12
- package/dist/_node-chunks/camelcase-EY6MYFU4.js +18 -0
- package/dist/_node-chunks/{chunk-YIM5CHEY.js → chunk-2IEV7XG2.js} +9 -9
- package/dist/_node-chunks/{chunk-SV4BYPXK.js → chunk-54MOKOMZ.js} +8 -8
- package/dist/_node-chunks/{chunk-7MPLFWHG.js → chunk-62KDMWXX.js} +7 -7
- package/dist/_node-chunks/{chunk-ZCRAXS3E.js → chunk-6SGQF6CF.js} +8 -8
- package/dist/_node-chunks/{chunk-NWPHCXHG.js → chunk-6VEWXDI5.js} +6 -6
- package/dist/_node-chunks/{chunk-VUU6O7VI.js → chunk-AFW3U6QG.js} +7 -7
- package/dist/_node-chunks/{chunk-2BDCE3L3.js → chunk-BPYW7SFB.js} +7 -7
- package/dist/_node-chunks/{chunk-GHCHUCI6.js → chunk-D5WSRTEX.js} +7 -7
- package/dist/_node-chunks/{chunk-Y5P4UWNE.js → chunk-DOCRBDQH.js} +7 -7
- package/dist/_node-chunks/{chunk-UJWKT624.js → chunk-FWBLOTP7.js} +7 -7
- package/dist/_node-chunks/{chunk-N2JV6FZG.js → chunk-FXGD2HHQ.js} +7 -7
- package/dist/_node-chunks/{chunk-CRG33JWE.js → chunk-H6J6LJQQ.js} +6 -6
- package/dist/_node-chunks/{chunk-LU3G37SK.js → chunk-J34Y4L4Q.js} +9 -9
- package/dist/_node-chunks/chunk-JT5JXOKC.js +61 -0
- package/dist/_node-chunks/{chunk-O6V3EWUU.js → chunk-K5GJVTVF.js} +7 -7
- package/dist/_node-chunks/{chunk-6EIKR7ZS.js → chunk-LR47LSEQ.js} +8 -8
- package/dist/_node-chunks/{chunk-FJPST7C2.js → chunk-LUDM5RD2.js} +8 -8
- package/dist/_node-chunks/{chunk-ETMGL223.js → chunk-M2Y5JVSX.js} +8 -8
- package/dist/_node-chunks/{chunk-2WCW6WBN.js → chunk-MTIN3LKM.js} +7 -7
- package/dist/_node-chunks/chunk-N4S7XZKB.js +18 -0
- package/dist/_node-chunks/{chunk-WRNOJIKJ.js → chunk-OCPCEJ7D.js} +7 -7
- package/dist/_node-chunks/{chunk-SIW4GO4H.js → chunk-QD4TA2GK.js} +7 -7
- package/dist/_node-chunks/{chunk-HB37PYB7.js → chunk-SF4YWMS2.js} +21 -21
- package/dist/_node-chunks/{chunk-P2Y2WO7H.js → chunk-SSK6CTPD.js} +12 -12
- package/dist/_node-chunks/{chunk-UVZAIPBG.js → chunk-TR7IYGK4.js} +7 -7
- package/dist/_node-chunks/{chunk-S27PS53I.js → chunk-VDCU2LFF.js} +7 -7
- package/dist/_node-chunks/{chunk-BQLZIX2Q.js → chunk-VHPYGR5X.js} +7 -7
- package/dist/_node-chunks/{chunk-IPXSLDLA.js → chunk-VSPERFYF.js} +15 -15
- package/dist/_node-chunks/{chunk-VF6KHP6R.js → chunk-WD2QJDGV.js} +7 -7
- package/dist/_node-chunks/{chunk-3R5LD45Z.js → chunk-X35XJZ7G.js} +7 -7
- package/dist/_node-chunks/{chunk-WT75CKIP.js → chunk-XJRUDTSD.js} +7 -7
- package/dist/_node-chunks/{chunk-VFMZOJVS.js → chunk-ZZMPRSOL.js} +10 -10
- package/dist/_node-chunks/{dist-KKBN5NK7.js → dist-47EE2CMC.js} +9 -9
- package/dist/_node-chunks/{globby-DCTHVPS7.js → globby-ZEUQ6QPC.js} +9 -9
- package/dist/_node-chunks/{lib-AAIV2OLH.js → lib-LCU5VXJS.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-7FIB6GQ2.js → mdx-N42X6CFJ-7LUZM4HR.js} +8 -8
- package/dist/_node-chunks/{p-limit-Y5VDO334.js → p-limit-XJGTO6H5.js} +7 -7
- package/dist/_node-chunks/{plugin-ZUT5HESO.js → plugin-YZRPWYO5.js} +10 -10
- package/dist/_node-chunks/{plugin-AOOT7HFP.js → plugin-ZN5KCYM2.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-6H3PHE5K.js → webpack-inject-mocker-runtime-plugin-CRH6N7YZ.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-RSJCOU6H.js → webpack-mock-plugin-NQXGMVTF.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +846 -19510
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +713 -7719
- package/dist/core-server/presets/common-manager.js +11 -11
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +23 -23
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.js +6 -6
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +5 -5
- package/dist/manager/globals-runtime.js +98 -7182
- package/dist/manager/runtime.js +309 -7317
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +15 -45
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +99 -7183
- package/dist/preview-api/index.js +6 -6
- package/dist/router/index.js +5 -3
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +97 -7181
- package/package.json +3 -3
- package/dist/_browser-chunks/chunk-FA42P6MO.js +0 -107
- package/dist/_browser-chunks/chunk-G33S6YM3.js +0 -521
- package/dist/_browser-chunks/chunk-KSCAWCCE.js +0 -6093
- package/dist/_browser-chunks/chunk-WKCVJYVJ.js +0 -0
- package/dist/_node-chunks/camelcase-OLULABBT.js +0 -18
- package/dist/_node-chunks/chunk-V6MYZCMZ.js +0 -61
- package/dist/_node-chunks/chunk-XNSVOMTF.js +0 -18
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
debounce,
|
|
3
2
|
getControlId
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-QK3L5AXO.js";
|
|
7
|
-
import "./chunk-JJZMHC3A.js";
|
|
3
|
+
} from "./chunk-U46RQHA4.js";
|
|
4
|
+
import "./chunk-AB7OOPUX.js";
|
|
8
5
|
import {
|
|
9
6
|
__commonJS,
|
|
10
7
|
__name,
|
|
@@ -983,6 +980,116 @@ import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
|
983
980
|
import { Form, TooltipNote, WithTooltip } from "storybook/internal/components";
|
|
984
981
|
import { MarkupIcon } from "@storybook/icons";
|
|
985
982
|
|
|
983
|
+
// ../node_modules/es-toolkit/dist/function/debounce.mjs
|
|
984
|
+
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
985
|
+
let pendingThis = void 0;
|
|
986
|
+
let pendingArgs = null;
|
|
987
|
+
const leading = edges != null && edges.includes("leading");
|
|
988
|
+
const trailing = edges == null || edges.includes("trailing");
|
|
989
|
+
const invoke = /* @__PURE__ */ __name(() => {
|
|
990
|
+
if (pendingArgs !== null) {
|
|
991
|
+
func.apply(pendingThis, pendingArgs);
|
|
992
|
+
pendingThis = void 0;
|
|
993
|
+
pendingArgs = null;
|
|
994
|
+
}
|
|
995
|
+
}, "invoke");
|
|
996
|
+
const onTimerEnd = /* @__PURE__ */ __name(() => {
|
|
997
|
+
if (trailing) {
|
|
998
|
+
invoke();
|
|
999
|
+
}
|
|
1000
|
+
cancel();
|
|
1001
|
+
}, "onTimerEnd");
|
|
1002
|
+
let timeoutId = null;
|
|
1003
|
+
const schedule = /* @__PURE__ */ __name(() => {
|
|
1004
|
+
if (timeoutId != null) {
|
|
1005
|
+
clearTimeout(timeoutId);
|
|
1006
|
+
}
|
|
1007
|
+
timeoutId = setTimeout(() => {
|
|
1008
|
+
timeoutId = null;
|
|
1009
|
+
onTimerEnd();
|
|
1010
|
+
}, debounceMs);
|
|
1011
|
+
}, "schedule");
|
|
1012
|
+
const cancelTimer = /* @__PURE__ */ __name(() => {
|
|
1013
|
+
if (timeoutId !== null) {
|
|
1014
|
+
clearTimeout(timeoutId);
|
|
1015
|
+
timeoutId = null;
|
|
1016
|
+
}
|
|
1017
|
+
}, "cancelTimer");
|
|
1018
|
+
const cancel = /* @__PURE__ */ __name(() => {
|
|
1019
|
+
cancelTimer();
|
|
1020
|
+
pendingThis = void 0;
|
|
1021
|
+
pendingArgs = null;
|
|
1022
|
+
}, "cancel");
|
|
1023
|
+
const flush = /* @__PURE__ */ __name(() => {
|
|
1024
|
+
invoke();
|
|
1025
|
+
}, "flush");
|
|
1026
|
+
const debounced = /* @__PURE__ */ __name(function(...args) {
|
|
1027
|
+
if (signal?.aborted) {
|
|
1028
|
+
return;
|
|
1029
|
+
}
|
|
1030
|
+
pendingThis = this;
|
|
1031
|
+
pendingArgs = args;
|
|
1032
|
+
const isFirstCall = timeoutId == null;
|
|
1033
|
+
schedule();
|
|
1034
|
+
if (leading && isFirstCall) {
|
|
1035
|
+
invoke();
|
|
1036
|
+
}
|
|
1037
|
+
}, "debounced");
|
|
1038
|
+
debounced.schedule = schedule;
|
|
1039
|
+
debounced.cancel = cancel;
|
|
1040
|
+
debounced.flush = flush;
|
|
1041
|
+
signal?.addEventListener("abort", cancel, { once: true });
|
|
1042
|
+
return debounced;
|
|
1043
|
+
}
|
|
1044
|
+
__name(debounce, "debounce");
|
|
1045
|
+
|
|
1046
|
+
// ../node_modules/es-toolkit/dist/function/partial.mjs
|
|
1047
|
+
function partial(func, ...partialArgs) {
|
|
1048
|
+
return partialImpl(func, placeholderSymbol, ...partialArgs);
|
|
1049
|
+
}
|
|
1050
|
+
__name(partial, "partial");
|
|
1051
|
+
function partialImpl(func, placeholder, ...partialArgs) {
|
|
1052
|
+
const partialed = /* @__PURE__ */ __name(function(...providedArgs) {
|
|
1053
|
+
let providedArgsIndex = 0;
|
|
1054
|
+
const substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg);
|
|
1055
|
+
const remainingArgs = providedArgs.slice(providedArgsIndex);
|
|
1056
|
+
return func.apply(this, substitutedArgs.concat(remainingArgs));
|
|
1057
|
+
}, "partialed");
|
|
1058
|
+
if (func.prototype) {
|
|
1059
|
+
partialed.prototype = Object.create(func.prototype);
|
|
1060
|
+
}
|
|
1061
|
+
return partialed;
|
|
1062
|
+
}
|
|
1063
|
+
__name(partialImpl, "partialImpl");
|
|
1064
|
+
var placeholderSymbol = Symbol("partial.placeholder");
|
|
1065
|
+
partial.placeholder = placeholderSymbol;
|
|
1066
|
+
|
|
1067
|
+
// ../node_modules/es-toolkit/dist/function/partialRight.mjs
|
|
1068
|
+
function partialRight(func, ...partialArgs) {
|
|
1069
|
+
return partialRightImpl(func, placeholderSymbol2, ...partialArgs);
|
|
1070
|
+
}
|
|
1071
|
+
__name(partialRight, "partialRight");
|
|
1072
|
+
function partialRightImpl(func, placeholder, ...partialArgs) {
|
|
1073
|
+
const partialedRight = /* @__PURE__ */ __name(function(...providedArgs) {
|
|
1074
|
+
const placeholderLength = partialArgs.filter((arg) => arg === placeholder).length;
|
|
1075
|
+
const rangeLength = Math.max(providedArgs.length - placeholderLength, 0);
|
|
1076
|
+
const remainingArgs = providedArgs.slice(0, rangeLength);
|
|
1077
|
+
let providedArgsIndex = rangeLength;
|
|
1078
|
+
const substitutedArgs = partialArgs.slice().map((arg) => arg === placeholder ? providedArgs[providedArgsIndex++] : arg);
|
|
1079
|
+
return func.apply(this, remainingArgs.concat(substitutedArgs));
|
|
1080
|
+
}, "partialedRight");
|
|
1081
|
+
if (func.prototype) {
|
|
1082
|
+
partialedRight.prototype = Object.create(func.prototype);
|
|
1083
|
+
}
|
|
1084
|
+
return partialedRight;
|
|
1085
|
+
}
|
|
1086
|
+
__name(partialRightImpl, "partialRightImpl");
|
|
1087
|
+
var placeholderSymbol2 = Symbol("partialRight.placeholder");
|
|
1088
|
+
partialRight.placeholder = placeholderSymbol2;
|
|
1089
|
+
|
|
1090
|
+
// ../node_modules/es-toolkit/dist/function/retry.mjs
|
|
1091
|
+
var DEFAULT_RETRIES = Number.POSITIVE_INFINITY;
|
|
1092
|
+
|
|
986
1093
|
// ../node_modules/react-colorful/dist/index.mjs
|
|
987
1094
|
import e, { useRef as r, useMemo as t, useEffect as n, useState as o, useCallback as a, useLayoutEffect as l } from "react";
|
|
988
1095
|
function u() {
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-MM7DTO55.js";
|
|
4
|
+
|
|
5
|
+
// ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
6
|
+
function isPlainObject(value) {
|
|
7
|
+
if (!value || typeof value !== "object") {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
const proto = Object.getPrototypeOf(value);
|
|
11
|
+
const hasObjectPrototype = proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null;
|
|
12
|
+
if (!hasObjectPrototype) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
return Object.prototype.toString.call(value) === "[object Object]";
|
|
16
|
+
}
|
|
17
|
+
__name(isPlainObject, "isPlainObject");
|
|
18
|
+
|
|
19
|
+
// ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
20
|
+
function isPrimitive(value) {
|
|
21
|
+
return value == null || typeof value !== "object" && typeof value !== "function";
|
|
22
|
+
}
|
|
23
|
+
__name(isPrimitive, "isPrimitive");
|
|
24
|
+
|
|
25
|
+
// ../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
26
|
+
function isTypedArray(x) {
|
|
27
|
+
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
28
|
+
}
|
|
29
|
+
__name(isTypedArray, "isTypedArray");
|
|
30
|
+
|
|
31
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
32
|
+
function getSymbols(object) {
|
|
33
|
+
return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
|
|
34
|
+
}
|
|
35
|
+
__name(getSymbols, "getSymbols");
|
|
36
|
+
|
|
37
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
38
|
+
function getTag(value) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value === void 0 ? "[object Undefined]" : "[object Null]";
|
|
41
|
+
}
|
|
42
|
+
return Object.prototype.toString.call(value);
|
|
43
|
+
}
|
|
44
|
+
__name(getTag, "getTag");
|
|
45
|
+
|
|
46
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
47
|
+
var regexpTag = "[object RegExp]";
|
|
48
|
+
var stringTag = "[object String]";
|
|
49
|
+
var numberTag = "[object Number]";
|
|
50
|
+
var booleanTag = "[object Boolean]";
|
|
51
|
+
var argumentsTag = "[object Arguments]";
|
|
52
|
+
var symbolTag = "[object Symbol]";
|
|
53
|
+
var dateTag = "[object Date]";
|
|
54
|
+
var mapTag = "[object Map]";
|
|
55
|
+
var setTag = "[object Set]";
|
|
56
|
+
var arrayTag = "[object Array]";
|
|
57
|
+
var functionTag = "[object Function]";
|
|
58
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
59
|
+
var objectTag = "[object Object]";
|
|
60
|
+
var errorTag = "[object Error]";
|
|
61
|
+
var dataViewTag = "[object DataView]";
|
|
62
|
+
var uint8ArrayTag = "[object Uint8Array]";
|
|
63
|
+
var uint8ClampedArrayTag = "[object Uint8ClampedArray]";
|
|
64
|
+
var uint16ArrayTag = "[object Uint16Array]";
|
|
65
|
+
var uint32ArrayTag = "[object Uint32Array]";
|
|
66
|
+
var bigUint64ArrayTag = "[object BigUint64Array]";
|
|
67
|
+
var int8ArrayTag = "[object Int8Array]";
|
|
68
|
+
var int16ArrayTag = "[object Int16Array]";
|
|
69
|
+
var int32ArrayTag = "[object Int32Array]";
|
|
70
|
+
var bigInt64ArrayTag = "[object BigInt64Array]";
|
|
71
|
+
var float32ArrayTag = "[object Float32Array]";
|
|
72
|
+
var float64ArrayTag = "[object Float64Array]";
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
isPrimitive,
|
|
76
|
+
isTypedArray,
|
|
77
|
+
getSymbols,
|
|
78
|
+
getTag,
|
|
79
|
+
regexpTag,
|
|
80
|
+
stringTag,
|
|
81
|
+
numberTag,
|
|
82
|
+
booleanTag,
|
|
83
|
+
argumentsTag,
|
|
84
|
+
symbolTag,
|
|
85
|
+
dateTag,
|
|
86
|
+
mapTag,
|
|
87
|
+
setTag,
|
|
88
|
+
arrayTag,
|
|
89
|
+
functionTag,
|
|
90
|
+
arrayBufferTag,
|
|
91
|
+
objectTag,
|
|
92
|
+
errorTag,
|
|
93
|
+
dataViewTag,
|
|
94
|
+
uint8ArrayTag,
|
|
95
|
+
uint8ClampedArrayTag,
|
|
96
|
+
uint16ArrayTag,
|
|
97
|
+
uint32ArrayTag,
|
|
98
|
+
bigUint64ArrayTag,
|
|
99
|
+
int8ArrayTag,
|
|
100
|
+
int16ArrayTag,
|
|
101
|
+
int32ArrayTag,
|
|
102
|
+
bigInt64ArrayTag,
|
|
103
|
+
float32ArrayTag,
|
|
104
|
+
float64ArrayTag,
|
|
105
|
+
isPlainObject
|
|
106
|
+
};
|
|
@@ -80,6 +80,43 @@ function dequal(foo, bar) {
|
|
|
80
80
|
}
|
|
81
81
|
__name(dequal, "dequal");
|
|
82
82
|
|
|
83
|
+
// ../node_modules/es-toolkit/dist/array/partition.mjs
|
|
84
|
+
function partition(arr, isInTruthy) {
|
|
85
|
+
const truthy = [];
|
|
86
|
+
const falsy = [];
|
|
87
|
+
for (let i = 0; i < arr.length; i++) {
|
|
88
|
+
const item = arr[i];
|
|
89
|
+
if (isInTruthy(item)) {
|
|
90
|
+
truthy.push(item);
|
|
91
|
+
} else {
|
|
92
|
+
falsy.push(item);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return [truthy, falsy];
|
|
96
|
+
}
|
|
97
|
+
__name(partition, "partition");
|
|
98
|
+
|
|
99
|
+
// ../node_modules/es-toolkit/dist/array/countBy.mjs
|
|
100
|
+
function countBy(arr, mapper) {
|
|
101
|
+
const result = {};
|
|
102
|
+
for (let i = 0; i < arr.length; i++) {
|
|
103
|
+
const item = arr[i];
|
|
104
|
+
const key = mapper(item);
|
|
105
|
+
result[key] = (result[key] ?? 0) + 1;
|
|
106
|
+
}
|
|
107
|
+
return result;
|
|
108
|
+
}
|
|
109
|
+
__name(countBy, "countBy");
|
|
110
|
+
|
|
111
|
+
// ../node_modules/es-toolkit/dist/array/uniq.mjs
|
|
112
|
+
function uniq(arr) {
|
|
113
|
+
return Array.from(new Set(arr));
|
|
114
|
+
}
|
|
115
|
+
__name(uniq, "uniq");
|
|
116
|
+
|
|
83
117
|
export {
|
|
84
|
-
dequal
|
|
118
|
+
dequal,
|
|
119
|
+
countBy,
|
|
120
|
+
partition,
|
|
121
|
+
uniq
|
|
85
122
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-MM7DTO55.js";
|
|
4
|
+
|
|
5
|
+
// ../addons/docs/src/blocks/controls/helpers.ts
|
|
6
|
+
var getControlId = /* @__PURE__ */ __name((value) => `control-${value.replace(/\s+/g, "-")}`, "getControlId");
|
|
7
|
+
var getControlSetterButtonId = /* @__PURE__ */ __name((value) => `set-${value.replace(/\s+/g, "-")}`, "getControlSetterButtonId");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
getControlId,
|
|
11
|
+
getControlSetterButtonId
|
|
12
|
+
};
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
int16ArrayTag,
|
|
13
13
|
int32ArrayTag,
|
|
14
14
|
int8ArrayTag,
|
|
15
|
+
isPlainObject,
|
|
15
16
|
isPrimitive,
|
|
16
17
|
isTypedArray,
|
|
17
18
|
mapTag,
|
|
@@ -25,7 +26,7 @@ import {
|
|
|
25
26
|
uint32ArrayTag,
|
|
26
27
|
uint8ArrayTag,
|
|
27
28
|
uint8ClampedArrayTag
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FSBVR7H5.js";
|
|
29
30
|
import {
|
|
30
31
|
__name
|
|
31
32
|
} from "./chunk-MM7DTO55.js";
|
|
@@ -43,93 +44,72 @@ function mapValues(object, getNewValue) {
|
|
|
43
44
|
}
|
|
44
45
|
__name(mapValues, "mapValues");
|
|
45
46
|
|
|
47
|
+
// ../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
48
|
+
function isUnsafeProperty(key) {
|
|
49
|
+
return key === "__proto__";
|
|
50
|
+
}
|
|
51
|
+
__name(isUnsafeProperty, "isUnsafeProperty");
|
|
52
|
+
|
|
46
53
|
// ../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
|
|
47
54
|
function isObjectLike(value) {
|
|
48
55
|
return typeof value === "object" && value !== null;
|
|
49
56
|
}
|
|
50
57
|
__name(isObjectLike, "isObjectLike");
|
|
51
58
|
|
|
52
|
-
// ../node_modules/es-toolkit/dist/
|
|
53
|
-
function
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
function isPlainObject(object) {
|
|
60
|
-
if (typeof object !== "object") {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
if (object == null) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
if (Object.getPrototypeOf(object) === null) {
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
if (Object.prototype.toString.call(object) !== "[object Object]") {
|
|
70
|
-
const tag = object[Symbol.toStringTag];
|
|
71
|
-
if (tag == null) {
|
|
72
|
-
return false;
|
|
59
|
+
// ../node_modules/es-toolkit/dist/object/mergeWith.mjs
|
|
60
|
+
function mergeWith(target, source, merge2) {
|
|
61
|
+
const sourceKeys = Object.keys(source);
|
|
62
|
+
for (let i = 0; i < sourceKeys.length; i++) {
|
|
63
|
+
const key = sourceKeys[i];
|
|
64
|
+
if (isUnsafeProperty(key)) {
|
|
65
|
+
continue;
|
|
73
66
|
}
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
const sourceValue = source[key];
|
|
68
|
+
const targetValue = target[key];
|
|
69
|
+
const merged = merge2(targetValue, sourceValue, key, target, source);
|
|
70
|
+
if (merged !== void 0) {
|
|
71
|
+
target[key] = merged;
|
|
72
|
+
} else if (Array.isArray(sourceValue)) {
|
|
73
|
+
target[key] = mergeWith(targetValue ?? [], sourceValue, merge2);
|
|
74
|
+
} else if (isObjectLike(targetValue) && isObjectLike(sourceValue)) {
|
|
75
|
+
target[key] = mergeWith(targetValue ?? {}, sourceValue, merge2);
|
|
76
|
+
} else if (targetValue === void 0 || sourceValue !== void 0) {
|
|
77
|
+
target[key] = sourceValue;
|
|
77
78
|
}
|
|
78
|
-
return object.toString() === `[object ${tag}]`;
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
while (Object.getPrototypeOf(proto) !== null) {
|
|
82
|
-
proto = Object.getPrototypeOf(proto);
|
|
83
|
-
}
|
|
84
|
-
return Object.getPrototypeOf(object) === proto;
|
|
80
|
+
return target;
|
|
85
81
|
}
|
|
86
|
-
__name(
|
|
82
|
+
__name(mergeWith, "mergeWith");
|
|
87
83
|
|
|
88
|
-
// ../node_modules/es-toolkit/dist/object/
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const prototype = Object.getPrototypeOf(obj);
|
|
97
|
-
const Constructor = prototype.constructor;
|
|
98
|
-
if (obj instanceof Date || obj instanceof Map || obj instanceof Set) {
|
|
99
|
-
return new Constructor(obj);
|
|
100
|
-
}
|
|
101
|
-
if (obj instanceof RegExp) {
|
|
102
|
-
const newRegExp = new Constructor(obj);
|
|
103
|
-
newRegExp.lastIndex = obj.lastIndex;
|
|
104
|
-
return newRegExp;
|
|
105
|
-
}
|
|
106
|
-
if (obj instanceof DataView) {
|
|
107
|
-
return new Constructor(obj.buffer.slice(0));
|
|
108
|
-
}
|
|
109
|
-
if (obj instanceof Error) {
|
|
110
|
-
const newError = new Constructor(obj.message);
|
|
111
|
-
newError.stack = obj.stack;
|
|
112
|
-
newError.name = obj.name;
|
|
113
|
-
newError.cause = obj.cause;
|
|
114
|
-
return newError;
|
|
115
|
-
}
|
|
116
|
-
if (typeof File !== "undefined" && obj instanceof File) {
|
|
117
|
-
const newFile = new Constructor([obj], obj.name, { type: obj.type, lastModified: obj.lastModified });
|
|
118
|
-
return newFile;
|
|
84
|
+
// ../node_modules/es-toolkit/dist/object/pick.mjs
|
|
85
|
+
function pick(obj, keys) {
|
|
86
|
+
const result = {};
|
|
87
|
+
for (let i = 0; i < keys.length; i++) {
|
|
88
|
+
const key = keys[i];
|
|
89
|
+
if (Object.hasOwn(obj, key)) {
|
|
90
|
+
result[key] = obj[key];
|
|
91
|
+
}
|
|
119
92
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
__name(pick, "pick");
|
|
96
|
+
|
|
97
|
+
// ../node_modules/es-toolkit/dist/object/pickBy.mjs
|
|
98
|
+
function pickBy(obj, shouldPick) {
|
|
99
|
+
const result = {};
|
|
100
|
+
const keys = Object.keys(obj);
|
|
101
|
+
for (let i = 0; i < keys.length; i++) {
|
|
102
|
+
const key = keys[i];
|
|
103
|
+
const value = obj[key];
|
|
104
|
+
if (shouldPick(value, key)) {
|
|
105
|
+
result[key] = value;
|
|
106
|
+
}
|
|
123
107
|
}
|
|
124
|
-
return
|
|
108
|
+
return result;
|
|
125
109
|
}
|
|
126
|
-
__name(
|
|
110
|
+
__name(pickBy, "pickBy");
|
|
127
111
|
|
|
128
112
|
// ../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
129
|
-
function cloneDeepWith(obj, cloneValue) {
|
|
130
|
-
return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), cloneValue);
|
|
131
|
-
}
|
|
132
|
-
__name(cloneDeepWith, "cloneDeepWith");
|
|
133
113
|
function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {
|
|
134
114
|
const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);
|
|
135
115
|
if (cloned !== void 0) {
|
|
@@ -282,91 +262,50 @@ function cloneDeep(obj) {
|
|
|
282
262
|
}
|
|
283
263
|
__name(cloneDeep, "cloneDeep");
|
|
284
264
|
|
|
285
|
-
// ../node_modules/es-toolkit/dist/object/
|
|
286
|
-
function
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
const key = keys[i];
|
|
311
|
-
const value = object[key];
|
|
312
|
-
result[getNewKey(value, key, object)] = value;
|
|
265
|
+
// ../node_modules/es-toolkit/dist/object/merge.mjs
|
|
266
|
+
function merge(target, source) {
|
|
267
|
+
const sourceKeys = Object.keys(source);
|
|
268
|
+
for (let i = 0; i < sourceKeys.length; i++) {
|
|
269
|
+
const key = sourceKeys[i];
|
|
270
|
+
if (isUnsafeProperty(key)) {
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
const sourceValue = source[key];
|
|
274
|
+
const targetValue = target[key];
|
|
275
|
+
if (Array.isArray(sourceValue)) {
|
|
276
|
+
if (Array.isArray(targetValue)) {
|
|
277
|
+
target[key] = merge(targetValue, sourceValue);
|
|
278
|
+
} else {
|
|
279
|
+
target[key] = merge([], sourceValue);
|
|
280
|
+
}
|
|
281
|
+
} else if (isPlainObject(sourceValue)) {
|
|
282
|
+
if (isPlainObject(targetValue)) {
|
|
283
|
+
target[key] = merge(targetValue, sourceValue);
|
|
284
|
+
} else {
|
|
285
|
+
target[key] = merge({}, sourceValue);
|
|
286
|
+
}
|
|
287
|
+
} else if (targetValue === void 0 || sourceValue !== void 0) {
|
|
288
|
+
target[key] = sourceValue;
|
|
289
|
+
}
|
|
313
290
|
}
|
|
314
|
-
return
|
|
291
|
+
return target;
|
|
315
292
|
}
|
|
316
|
-
__name(
|
|
317
|
-
|
|
318
|
-
// ../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
319
|
-
function isUnsafeProperty(key) {
|
|
320
|
-
return key === "__proto__";
|
|
321
|
-
}
|
|
322
|
-
__name(isUnsafeProperty, "isUnsafeProperty");
|
|
323
|
-
|
|
324
|
-
// ../node_modules/es-toolkit/dist/string/capitalize.mjs
|
|
325
|
-
function capitalize(str) {
|
|
326
|
-
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
327
|
-
}
|
|
328
|
-
__name(capitalize, "capitalize");
|
|
293
|
+
__name(merge, "merge");
|
|
329
294
|
|
|
330
295
|
// ../node_modules/es-toolkit/dist/string/words.mjs
|
|
331
296
|
var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
|
|
332
|
-
function words(str) {
|
|
333
|
-
return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
|
|
334
|
-
}
|
|
335
|
-
__name(words, "words");
|
|
336
297
|
|
|
337
|
-
// ../node_modules/es-toolkit/dist/
|
|
338
|
-
function
|
|
339
|
-
|
|
340
|
-
if (words$1.length === 0) {
|
|
341
|
-
return "";
|
|
342
|
-
}
|
|
343
|
-
const [first, ...rest] = words$1;
|
|
344
|
-
return `${first.toLowerCase()}${rest.map((word) => capitalize(word)).join("")}`;
|
|
345
|
-
}
|
|
346
|
-
__name(camelCase, "camelCase");
|
|
347
|
-
|
|
348
|
-
// ../node_modules/es-toolkit/dist/string/snakeCase.mjs
|
|
349
|
-
function snakeCase(str) {
|
|
350
|
-
const words$1 = words(str);
|
|
351
|
-
return words$1.map((word) => word.toLowerCase()).join("_");
|
|
298
|
+
// ../node_modules/es-toolkit/dist/object/toMerged.mjs
|
|
299
|
+
function toMerged(target, source) {
|
|
300
|
+
return merge(cloneDeep(target), source);
|
|
352
301
|
}
|
|
353
|
-
__name(
|
|
302
|
+
__name(toMerged, "toMerged");
|
|
354
303
|
|
|
355
304
|
export {
|
|
356
|
-
clone,
|
|
357
|
-
cloneDeepWith,
|
|
358
|
-
copyProperties,
|
|
359
305
|
cloneDeep,
|
|
360
|
-
findKey,
|
|
361
|
-
invert,
|
|
362
|
-
mapKeys,
|
|
363
306
|
mapValues,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
words,
|
|
369
|
-
camelCase,
|
|
370
|
-
isPlainObject,
|
|
371
|
-
snakeCase
|
|
307
|
+
mergeWith,
|
|
308
|
+
pick,
|
|
309
|
+
pickBy,
|
|
310
|
+
toMerged
|
|
372
311
|
};
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
SNIPPET_RENDERED,
|
|
6
6
|
combineParameters
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-B4A3ADP3.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
isEqual
|
|
10
|
+
} from "./chunk-ZNRFDIVA.js";
|
|
11
11
|
import {
|
|
12
12
|
invariant
|
|
13
13
|
} from "./chunk-FUOHXXZT.js";
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
waitForAnimations
|
|
21
21
|
} from "./chunk-LYCSRYYR.js";
|
|
22
22
|
import {
|
|
23
|
-
mapValues
|
|
24
|
-
|
|
23
|
+
mapValues,
|
|
24
|
+
pickBy
|
|
25
|
+
} from "./chunk-UTNZYD2N.js";
|
|
25
26
|
import {
|
|
26
|
-
isEqual,
|
|
27
27
|
isPlainObject
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FSBVR7H5.js";
|
|
29
29
|
import {
|
|
30
30
|
require_memoizerific
|
|
31
31
|
} from "./chunk-NVV6MIOE.js";
|