storybook 10.2.0-alpha.9 → 10.2.0-beta.1
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 → Color-XESOIGZP.js} +57 -3
- package/dist/_browser-chunks/chunk-AFVOZMXQ.js +23 -0
- package/dist/_browser-chunks/{chunk-3PJE6VLG.js → chunk-ASKQZAOS.js} +1 -12
- package/dist/_browser-chunks/chunk-IYCKG66Y.js +171 -0
- package/dist/_browser-chunks/chunk-LCHBOIHN.js +64 -0
- package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
- package/dist/_browser-chunks/{chunk-54PNNATT.js → chunk-NQJGOFZV.js} +18 -1
- package/dist/_browser-chunks/{chunk-VUZYLZ4B.js → chunk-QOXZ7W26.js} +31 -15
- package/dist/_browser-chunks/{chunk-LOTN4ZCW.js → chunk-SI6AKD4S.js} +2 -2
- package/dist/_browser-chunks/chunk-YK43Z22A.js +263 -0
- package/dist/_node-chunks/{builder-manager-FTCODGJP.js → builder-manager-IRBMORML.js} +15 -12
- package/dist/_node-chunks/camelcase-JM3BJBI7.js +62 -0
- package/dist/_node-chunks/{chunk-RF3L36MK.js → chunk-2SAOTVFT.js} +125 -73
- package/dist/_node-chunks/chunk-34APMFOU.js +23 -0
- package/dist/_node-chunks/chunk-5IZBWBDT.js +144 -0
- package/dist/_node-chunks/chunk-5M5YVBOE.js +18 -0
- package/dist/_node-chunks/{chunk-6ABJZZWS.js → chunk-6T5JWO53.js} +7 -7
- package/dist/_node-chunks/{chunk-D4TCQXIF.js → chunk-7WSC72DT.js} +7 -7
- package/dist/_node-chunks/{chunk-YN6FEZAF.js → chunk-AEAT43LP.js} +7 -7
- package/dist/_node-chunks/{chunk-3Y5VHKPI.js → chunk-B3ABITJT.js} +9 -9
- package/dist/_node-chunks/chunk-E4NS75V2.js +126 -0
- package/dist/_node-chunks/{chunk-LRBEW57O.js → chunk-EXJYKVMZ.js} +7 -7
- package/dist/_node-chunks/{chunk-NYUFS6LX.js → chunk-FK46E6BJ.js} +10 -10
- package/dist/_node-chunks/{chunk-CO7N5AG7.js → chunk-FLAGIDCN.js} +36 -14
- package/dist/_node-chunks/{chunk-FGI35IGB.js → chunk-FOSOWVVY.js} +15 -69
- package/dist/_node-chunks/{chunk-33XC4R6P.js → chunk-FWBRRVW6.js} +9 -9
- package/dist/_node-chunks/{chunk-73GYSTNZ.js → chunk-GKB6BXCD.js} +6 -6
- package/dist/_node-chunks/{chunk-SBPB3VWI.js → chunk-H444EFIP.js} +6 -6
- package/dist/_node-chunks/{chunk-6SH5SI6S.js → chunk-KRXWB32F.js} +7 -7
- package/dist/_node-chunks/{chunk-3DPKKQ6P.js → chunk-L5NAVTEK.js} +6 -6
- package/dist/_node-chunks/{chunk-MWWAQ5S4.js → chunk-M5BK3KV6.js} +5262 -1480
- package/dist/_node-chunks/{chunk-OUDQWDHY.js → chunk-MTJISVX7.js} +7 -7
- package/dist/_node-chunks/{chunk-IIBBQZLT.js → chunk-NFE2FV3C.js} +6 -6
- package/dist/_node-chunks/{chunk-PZCWRKQE.js → chunk-PZT42DUC.js} +6 -6
- package/dist/_node-chunks/{chunk-XZ6V3G6J.js → chunk-QO37JOCL.js} +533 -143
- package/dist/_node-chunks/{chunk-LB74XOLW.js → chunk-RP5L2ZGT.js} +6 -6
- package/dist/_node-chunks/chunk-RVYIMZDI.js +61 -0
- package/dist/_node-chunks/{chunk-BQX766MA.js → chunk-WLBZMVKZ.js} +260 -162
- package/dist/_node-chunks/{chunk-WTQGSYRO.js → chunk-WRGLNCF7.js} +12 -571
- package/dist/_node-chunks/{chunk-SPOUBCPJ.js → chunk-YR6V5CGX.js} +18 -14
- package/dist/_node-chunks/{globby-AXGFF6I5.js → globby-EHB62LWZ.js} +11 -20
- package/dist/_node-chunks/{lib-ESB7KQ6D.js → lib-F2QE2E3S.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-XXQ6YIDF.js → mdx-N42X6CFJ-SV23TYXC.js} +8 -8
- package/dist/_node-chunks/{p-limit-P6ND7SUA.js → p-limit-T7DGUJ4I.js} +18 -14
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +1504 -424
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +1319 -271
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.js +228 -227
- package/dist/core-events/index.d.ts +23 -7
- package/dist/core-events/index.js +5 -1
- package/dist/core-server/index.d.ts +105 -3
- package/dist/core-server/index.js +992 -613
- package/dist/core-server/presets/common-manager.js +208 -160
- package/dist/core-server/presets/common-override-preset.js +11 -11
- package/dist/core-server/presets/common-preset.js +558 -4534
- package/dist/csf/index.d.ts +147 -15
- package/dist/csf/index.js +52 -23
- package/dist/csf-tools/index.d.ts +19 -1
- package/dist/csf-tools/index.js +11 -9
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +4 -5
- package/dist/manager/globals-runtime.js +2749 -6907
- package/dist/manager/runtime.js +2939 -2295
- package/dist/manager-api/index.d.ts +89 -21
- package/dist/manager-api/index.js +82 -23
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +1453 -108
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +784 -5059
- package/dist/preview-api/index.d.ts +93 -69
- package/dist/preview-api/index.js +11 -8
- package/dist/router/index.js +5 -4
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +14 -2
- package/dist/telemetry/index.js +23 -22
- package/dist/theming/index.d.ts +5 -5
- package/dist/theming/index.js +21 -2
- package/dist/types/index.d.ts +21 -9
- package/dist/viewport/index.d.ts +5 -3
- package/dist/viewport/index.js +12 -3
- package/package.json +27 -26
- package/dist/_browser-chunks/chunk-2NDLAB5X.js +0 -363
- package/dist/_browser-chunks/chunk-CLSHX4VX.js +0 -4140
- package/dist/_browser-chunks/chunk-HPYUT3WS.js +0 -199
- package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
- package/dist/_node-chunks/camelcase-5XDKQT3J.js +0 -37
- package/dist/_node-chunks/chunk-GXQRT5M6.js +0 -61
- package/dist/_node-chunks/chunk-MOQRBTWA.js +0 -70
- package/dist/_node-chunks/chunk-PRNP2HO6.js +0 -23
- package/dist/_node-chunks/chunk-VKMYOVNS.js +0 -18
- package/dist/_node-chunks/dist-YRSVYE5A.js +0 -121
package/dist/viewport/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_VIEWPORT,
|
|
3
3
|
INITIAL_VIEWPORTS,
|
|
4
|
-
MINIMAL_VIEWPORTS
|
|
5
|
-
|
|
6
|
-
} from "../_browser-chunks/chunk-3PJE6VLG.js";
|
|
4
|
+
MINIMAL_VIEWPORTS
|
|
5
|
+
} from "../_browser-chunks/chunk-ASKQZAOS.js";
|
|
7
6
|
import {
|
|
8
7
|
ADDON_ID,
|
|
9
8
|
PANEL_ID,
|
|
@@ -11,6 +10,16 @@ import {
|
|
|
11
10
|
TOOL_ID
|
|
12
11
|
} from "../_browser-chunks/chunk-SL75JR6Y.js";
|
|
13
12
|
import "../_browser-chunks/chunk-A242L54C.js";
|
|
13
|
+
|
|
14
|
+
// src/viewport/responsiveViewport.tsx
|
|
15
|
+
var responsiveViewport = {
|
|
16
|
+
name: "Reset viewport",
|
|
17
|
+
styles: {
|
|
18
|
+
height: "100%",
|
|
19
|
+
width: "100%"
|
|
20
|
+
},
|
|
21
|
+
type: "desktop"
|
|
22
|
+
};
|
|
14
23
|
export {
|
|
15
24
|
ADDON_ID,
|
|
16
25
|
DEFAULT_VIEWPORT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "10.2.0-
|
|
3
|
+
"version": "10.2.0-beta.1",
|
|
4
4
|
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
],
|
|
196
196
|
"dependencies": {
|
|
197
197
|
"@storybook/global": "^5.0.0",
|
|
198
|
-
"@storybook/icons": "^2.0.
|
|
198
|
+
"@storybook/icons": "^2.0.1",
|
|
199
199
|
"@testing-library/jest-dom": "^6.6.3",
|
|
200
200
|
"@testing-library/user-event": "^14.6.1",
|
|
201
201
|
"@vitest/expect": "3.2.4",
|
|
@@ -203,17 +203,17 @@
|
|
|
203
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
204
|
"open": "^10.2.0",
|
|
205
205
|
"recast": "^0.23.5",
|
|
206
|
-
"semver": "^7.
|
|
206
|
+
"semver": "^7.7.3",
|
|
207
207
|
"use-sync-external-store": "^1.5.0",
|
|
208
208
|
"ws": "^8.18.0"
|
|
209
209
|
},
|
|
210
210
|
"devDependencies": {
|
|
211
211
|
"@aw-web-design/x-default-browser": "1.4.126",
|
|
212
|
-
"@babel/core": "^7.
|
|
213
|
-
"@babel/generator": "^7.
|
|
214
|
-
"@babel/parser": "^7.
|
|
215
|
-
"@babel/traverse": "^7.
|
|
216
|
-
"@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",
|
|
217
217
|
"@clack/prompts": "1.0.0-alpha.7",
|
|
218
218
|
"@devtools-ds/object-inspector": "^1.1.2",
|
|
219
219
|
"@discoveryjs/json-ext": "^0.5.3",
|
|
@@ -222,12 +222,13 @@
|
|
|
222
222
|
"@emotion/react": "^11.14.0",
|
|
223
223
|
"@emotion/styled": "^11.14.0",
|
|
224
224
|
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
|
|
225
|
-
"@happy-dom/global-registrator": "^
|
|
225
|
+
"@happy-dom/global-registrator": "^20.0.11",
|
|
226
226
|
"@ngard/tiny-isequal": "^1.1.0",
|
|
227
227
|
"@polka/compression": "^1.0.0-next.28",
|
|
228
228
|
"@radix-ui/react-scroll-area": "1.2.0-rc.7",
|
|
229
229
|
"@radix-ui/react-slot": "^1.0.2",
|
|
230
230
|
"@react-aria/interactions": "^3.25.5",
|
|
231
|
+
"@react-aria/landmark": "^3.0.8",
|
|
231
232
|
"@react-aria/overlays": "^3.29.1",
|
|
232
233
|
"@react-aria/tabs": "^3.10.7",
|
|
233
234
|
"@react-aria/toolbar": "3.0.0-beta.20",
|
|
@@ -236,7 +237,7 @@
|
|
|
236
237
|
"@react-stately/tabs": "^3.8.5",
|
|
237
238
|
"@react-types/shared": "^3.32.0",
|
|
238
239
|
"@rolldown/pluginutils": "1.0.0-beta.18",
|
|
239
|
-
"@storybook/docs-mdx": "4.0.0-next.
|
|
240
|
+
"@storybook/docs-mdx": "4.0.0-next.3",
|
|
240
241
|
"@tanstack/react-virtual": "^3.3.0",
|
|
241
242
|
"@testing-library/dom": "^10.4.1",
|
|
242
243
|
"@testing-library/react": "^14.0.0",
|
|
@@ -245,14 +246,14 @@
|
|
|
245
246
|
"@types/diff": "^5.0.9",
|
|
246
247
|
"@types/ejs": "^3.1.1",
|
|
247
248
|
"@types/js-yaml": "^4.0.5",
|
|
248
|
-
"@types/node": "^22.
|
|
249
|
+
"@types/node": "^22.19.1",
|
|
249
250
|
"@types/npmlog": "^7.0.0",
|
|
250
251
|
"@types/picomatch": "^2.3.0",
|
|
251
252
|
"@types/prettier": "^3.0.0",
|
|
252
253
|
"@types/pretty-hrtime": "^1.0.0",
|
|
253
254
|
"@types/prompts": "^2.0.9",
|
|
254
255
|
"@types/react-syntax-highlighter": "11.0.5",
|
|
255
|
-
"@types/semver": "^7.
|
|
256
|
+
"@types/semver": "^7.7.1",
|
|
256
257
|
"@types/ws": "^8",
|
|
257
258
|
"@vitest/utils": "^3.2.4",
|
|
258
259
|
"@yarnpkg/fslib": "2.10.3",
|
|
@@ -260,31 +261,31 @@
|
|
|
260
261
|
"ansi-to-html": "^0.7.2",
|
|
261
262
|
"browser-dtector": "^3.4.0",
|
|
262
263
|
"bundle-require": "^5.1.0",
|
|
263
|
-
"camelcase": "^
|
|
264
|
+
"camelcase": "^9.0.0",
|
|
264
265
|
"chai": "^5.1.1",
|
|
265
|
-
"commander": "^14.0.
|
|
266
|
+
"commander": "^14.0.2",
|
|
266
267
|
"comment-parser": "^1.4.1",
|
|
267
268
|
"copy-to-clipboard": "^3.3.1",
|
|
268
269
|
"cross-spawn": "^7.0.6",
|
|
269
270
|
"deep-object-diff": "^1.1.0",
|
|
270
271
|
"dequal": "^2.0.2",
|
|
271
272
|
"detect-indent": "^7.0.1",
|
|
272
|
-
"detect-port": "^1.
|
|
273
|
-
"diff": "^
|
|
273
|
+
"detect-port": "^1.6.1",
|
|
274
|
+
"diff": "^8.0.2",
|
|
274
275
|
"downshift": "^9.0.4",
|
|
275
276
|
"ejs": "^3.1.10",
|
|
276
277
|
"empathic": "^2.0.0",
|
|
277
|
-
"es-toolkit": "^1.
|
|
278
|
+
"es-toolkit": "^1.43.0",
|
|
278
279
|
"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",
|
|
279
|
-
"execa": "^
|
|
280
|
+
"execa": "^9.6.1",
|
|
280
281
|
"exsolve": "^1.0.7",
|
|
281
282
|
"fetch-retry": "^6.0.0",
|
|
282
283
|
"flush-promises": "^1.0.2",
|
|
283
284
|
"fuse.js": "^3.6.1",
|
|
284
|
-
"get-npm-tarball-url": "^2.0
|
|
285
|
-
"glob": "^10.
|
|
286
|
-
"globby": "^14.0
|
|
287
|
-
"jiti": "^2.
|
|
285
|
+
"get-npm-tarball-url": "^2.1.0",
|
|
286
|
+
"glob": "^10.5.0",
|
|
287
|
+
"globby": "^14.1.0",
|
|
288
|
+
"jiti": "^2.6.1",
|
|
288
289
|
"js-yaml": "^4.1.0",
|
|
289
290
|
"jsdoc-type-pratt-parser": "^4.0.0",
|
|
290
291
|
"launch-editor": "^2.11.1",
|
|
@@ -295,14 +296,14 @@
|
|
|
295
296
|
"modern-tar": "^0.5.5",
|
|
296
297
|
"nanoid": "^4.0.2",
|
|
297
298
|
"npmlog": "^7.0.0",
|
|
298
|
-
"p-limit": "^
|
|
299
|
+
"p-limit": "^7.2.0",
|
|
299
300
|
"package-manager-detector": "^1.1.0",
|
|
300
301
|
"picocolors": "^1.1.0",
|
|
301
302
|
"picomatch": "^2.3.0",
|
|
302
303
|
"picoquery": "^1.4.0",
|
|
303
304
|
"polished": "^4.2.2",
|
|
304
305
|
"polka": "^1.0.0-next.28",
|
|
305
|
-
"prettier": "^3.
|
|
306
|
+
"prettier": "^3.7.1",
|
|
306
307
|
"pretty-hrtime": "^1.0.3",
|
|
307
308
|
"qrcode.react": "^4.2.0",
|
|
308
309
|
"react": "^18.2.0",
|
|
@@ -332,9 +333,9 @@
|
|
|
332
333
|
"typescript": "^5.8.3",
|
|
333
334
|
"unique-string": "^3.0.0",
|
|
334
335
|
"use-resize-observer": "^9.1.0",
|
|
335
|
-
"watchpack": "^2.
|
|
336
|
+
"watchpack": "^2.5.0",
|
|
336
337
|
"wrap-ansi": "^9.0.2",
|
|
337
|
-
"zod": "^3.
|
|
338
|
+
"zod": "^3.25.76"
|
|
338
339
|
},
|
|
339
340
|
"peerDependencies": {
|
|
340
341
|
"prettier": "^2 || ^3"
|
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
noop
|
|
3
|
-
} from "./chunk-NZMVUW5T.js";
|
|
4
|
-
|
|
5
|
-
// ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
6
|
-
function isPlainObject(value) {
|
|
7
|
-
if (!value || typeof value != "object")
|
|
8
|
-
return !1;
|
|
9
|
-
let proto = Object.getPrototypeOf(value);
|
|
10
|
-
return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
14
|
-
function getSymbols(object) {
|
|
15
|
-
return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
19
|
-
function getTag(value) {
|
|
20
|
-
return value == null ? value === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(value);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
24
|
-
var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", functionTag = "[object Function]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", errorTag = "[object Error]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", bigUint64ArrayTag = "[object BigUint64Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", bigInt64ArrayTag = "[object BigInt64Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
|
|
25
|
-
|
|
26
|
-
// ../../node_modules/es-toolkit/dist/compat/util/eq.mjs
|
|
27
|
-
function eq(value, other) {
|
|
28
|
-
return value === other || Number.isNaN(value) && Number.isNaN(other);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
|
|
32
|
-
function isEqualWith(a, b, areValuesEqual) {
|
|
33
|
-
return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
|
|
34
|
-
}
|
|
35
|
-
function isEqualWithImpl(a, b, property, aParent, bParent, stack, areValuesEqual) {
|
|
36
|
-
let result = areValuesEqual(a, b, property, aParent, bParent, stack);
|
|
37
|
-
if (result !== void 0)
|
|
38
|
-
return result;
|
|
39
|
-
if (typeof a == typeof b)
|
|
40
|
-
switch (typeof a) {
|
|
41
|
-
case "bigint":
|
|
42
|
-
case "string":
|
|
43
|
-
case "boolean":
|
|
44
|
-
case "symbol":
|
|
45
|
-
case "undefined":
|
|
46
|
-
return a === b;
|
|
47
|
-
case "number":
|
|
48
|
-
return a === b || Object.is(a, b);
|
|
49
|
-
case "function":
|
|
50
|
-
return a === b;
|
|
51
|
-
case "object":
|
|
52
|
-
return areObjectsEqual(a, b, stack, areValuesEqual);
|
|
53
|
-
}
|
|
54
|
-
return areObjectsEqual(a, b, stack, areValuesEqual);
|
|
55
|
-
}
|
|
56
|
-
function areObjectsEqual(a, b, stack, areValuesEqual) {
|
|
57
|
-
if (Object.is(a, b))
|
|
58
|
-
return !0;
|
|
59
|
-
let aTag = getTag(a), bTag = getTag(b);
|
|
60
|
-
if (aTag === argumentsTag && (aTag = objectTag), bTag === argumentsTag && (bTag = objectTag), aTag !== bTag)
|
|
61
|
-
return !1;
|
|
62
|
-
switch (aTag) {
|
|
63
|
-
case stringTag:
|
|
64
|
-
return a.toString() === b.toString();
|
|
65
|
-
case numberTag: {
|
|
66
|
-
let x = a.valueOf(), y = b.valueOf();
|
|
67
|
-
return eq(x, y);
|
|
68
|
-
}
|
|
69
|
-
case booleanTag:
|
|
70
|
-
case dateTag:
|
|
71
|
-
case symbolTag:
|
|
72
|
-
return Object.is(a.valueOf(), b.valueOf());
|
|
73
|
-
case regexpTag:
|
|
74
|
-
return a.source === b.source && a.flags === b.flags;
|
|
75
|
-
case functionTag:
|
|
76
|
-
return a === b;
|
|
77
|
-
}
|
|
78
|
-
stack = stack ?? /* @__PURE__ */ new Map();
|
|
79
|
-
let aStack = stack.get(a), bStack = stack.get(b);
|
|
80
|
-
if (aStack != null && bStack != null)
|
|
81
|
-
return aStack === b;
|
|
82
|
-
stack.set(a, b), stack.set(b, a);
|
|
83
|
-
try {
|
|
84
|
-
switch (aTag) {
|
|
85
|
-
case mapTag: {
|
|
86
|
-
if (a.size !== b.size)
|
|
87
|
-
return !1;
|
|
88
|
-
for (let [key, value] of a.entries())
|
|
89
|
-
if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a, b, stack, areValuesEqual))
|
|
90
|
-
return !1;
|
|
91
|
-
return !0;
|
|
92
|
-
}
|
|
93
|
-
case setTag: {
|
|
94
|
-
if (a.size !== b.size)
|
|
95
|
-
return !1;
|
|
96
|
-
let aValues = Array.from(a.values()), bValues = Array.from(b.values());
|
|
97
|
-
for (let i = 0; i < aValues.length; i++) {
|
|
98
|
-
let aValue = aValues[i], index = bValues.findIndex((bValue) => isEqualWithImpl(aValue, bValue, void 0, a, b, stack, areValuesEqual));
|
|
99
|
-
if (index === -1)
|
|
100
|
-
return !1;
|
|
101
|
-
bValues.splice(index, 1);
|
|
102
|
-
}
|
|
103
|
-
return !0;
|
|
104
|
-
}
|
|
105
|
-
case arrayTag:
|
|
106
|
-
case uint8ArrayTag:
|
|
107
|
-
case uint8ClampedArrayTag:
|
|
108
|
-
case uint16ArrayTag:
|
|
109
|
-
case uint32ArrayTag:
|
|
110
|
-
case bigUint64ArrayTag:
|
|
111
|
-
case int8ArrayTag:
|
|
112
|
-
case int16ArrayTag:
|
|
113
|
-
case int32ArrayTag:
|
|
114
|
-
case bigInt64ArrayTag:
|
|
115
|
-
case float32ArrayTag:
|
|
116
|
-
case float64ArrayTag: {
|
|
117
|
-
if (typeof Buffer < "u" && Buffer.isBuffer(a) !== Buffer.isBuffer(b) || a.length !== b.length)
|
|
118
|
-
return !1;
|
|
119
|
-
for (let i = 0; i < a.length; i++)
|
|
120
|
-
if (!isEqualWithImpl(a[i], b[i], i, a, b, stack, areValuesEqual))
|
|
121
|
-
return !1;
|
|
122
|
-
return !0;
|
|
123
|
-
}
|
|
124
|
-
case arrayBufferTag:
|
|
125
|
-
return a.byteLength !== b.byteLength ? !1 : areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
|
|
126
|
-
case dataViewTag:
|
|
127
|
-
return a.byteLength !== b.byteLength || a.byteOffset !== b.byteOffset ? !1 : areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
|
|
128
|
-
case errorTag:
|
|
129
|
-
return a.name === b.name && a.message === b.message;
|
|
130
|
-
case objectTag: {
|
|
131
|
-
if (!(areObjectsEqual(a.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a) && isPlainObject(b)))
|
|
132
|
-
return !1;
|
|
133
|
-
let aKeys = [...Object.keys(a), ...getSymbols(a)], bKeys = [...Object.keys(b), ...getSymbols(b)];
|
|
134
|
-
if (aKeys.length !== bKeys.length)
|
|
135
|
-
return !1;
|
|
136
|
-
for (let i = 0; i < aKeys.length; i++) {
|
|
137
|
-
let propKey = aKeys[i], aProp = a[propKey];
|
|
138
|
-
if (!Object.hasOwn(b, propKey))
|
|
139
|
-
return !1;
|
|
140
|
-
let bProp = b[propKey];
|
|
141
|
-
if (!isEqualWithImpl(aProp, bProp, propKey, a, b, stack, areValuesEqual))
|
|
142
|
-
return !1;
|
|
143
|
-
}
|
|
144
|
-
return !0;
|
|
145
|
-
}
|
|
146
|
-
default:
|
|
147
|
-
return !1;
|
|
148
|
-
}
|
|
149
|
-
} finally {
|
|
150
|
-
stack.delete(a), stack.delete(b);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
155
|
-
function isEqual(a, b) {
|
|
156
|
-
return isEqualWith(a, b, noop);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// ../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
160
|
-
function isPrimitive(value) {
|
|
161
|
-
return value == null || typeof value != "object" && typeof value != "function";
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// ../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
165
|
-
function isTypedArray(x) {
|
|
166
|
-
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// ../../node_modules/es-toolkit/dist/predicate/isBlob.mjs
|
|
170
|
-
function isBlob(x) {
|
|
171
|
-
return typeof Blob > "u" ? !1 : x instanceof Blob;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// ../../node_modules/es-toolkit/dist/predicate/isBrowser.mjs
|
|
175
|
-
function isBrowser() {
|
|
176
|
-
return typeof window < "u" && window?.document != null;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// ../../node_modules/es-toolkit/dist/predicate/isFile.mjs
|
|
180
|
-
function isFile(x) {
|
|
181
|
-
return typeof File > "u" ? !1 : isBlob(x) && x instanceof File;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// ../../node_modules/es-toolkit/dist/predicate/isFunction.mjs
|
|
185
|
-
function isFunction(value) {
|
|
186
|
-
return typeof value == "function";
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// ../../node_modules/es-toolkit/dist/predicate/isJSON.mjs
|
|
190
|
-
function isJSON(value) {
|
|
191
|
-
if (typeof value != "string")
|
|
192
|
-
return !1;
|
|
193
|
-
try {
|
|
194
|
-
return JSON.parse(value), !0;
|
|
195
|
-
} catch {
|
|
196
|
-
return !1;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// ../../node_modules/es-toolkit/dist/predicate/isJSONValue.mjs
|
|
201
|
-
function isJSONValue(value) {
|
|
202
|
-
switch (typeof value) {
|
|
203
|
-
case "object":
|
|
204
|
-
return value === null || isJSONArray(value) || isJSONObject(value);
|
|
205
|
-
case "string":
|
|
206
|
-
case "number":
|
|
207
|
-
case "boolean":
|
|
208
|
-
return !0;
|
|
209
|
-
default:
|
|
210
|
-
return !1;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
function isJSONArray(value) {
|
|
214
|
-
return Array.isArray(value) ? value.every((item) => isJSONValue(item)) : !1;
|
|
215
|
-
}
|
|
216
|
-
function isJSONObject(obj) {
|
|
217
|
-
if (!isPlainObject(obj))
|
|
218
|
-
return !1;
|
|
219
|
-
let keys = Reflect.ownKeys(obj);
|
|
220
|
-
for (let i = 0; i < keys.length; i++) {
|
|
221
|
-
let key = keys[i], value = obj[key];
|
|
222
|
-
if (typeof key != "string" || !isJSONValue(value))
|
|
223
|
-
return !1;
|
|
224
|
-
}
|
|
225
|
-
return !0;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// ../../node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
229
|
-
function isLength(value) {
|
|
230
|
-
return Number.isSafeInteger(value) && value >= 0;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
// ../../node_modules/es-toolkit/dist/predicate/isNode.mjs
|
|
234
|
-
function isNode() {
|
|
235
|
-
return typeof process < "u" && process?.versions?.node != null;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
// ../../node_modules/es-toolkit/dist/predicate/isNotNil.mjs
|
|
239
|
-
function isNotNil(x) {
|
|
240
|
-
return x != null;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
// ../../node_modules/es-toolkit/dist/predicate/isNull.mjs
|
|
244
|
-
function isNull(x) {
|
|
245
|
-
return x === null;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// ../../node_modules/es-toolkit/dist/predicate/isPromise.mjs
|
|
249
|
-
function isPromise(value) {
|
|
250
|
-
return value instanceof Promise;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
// ../../node_modules/es-toolkit/dist/predicate/isUndefined.mjs
|
|
254
|
-
function isUndefined(x) {
|
|
255
|
-
return x === void 0;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// ../../node_modules/es-toolkit/dist/predicate/isNil.mjs
|
|
259
|
-
function isNil(x) {
|
|
260
|
-
return x == null;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// ../../node_modules/es-toolkit/dist/predicate/isSymbol.mjs
|
|
264
|
-
function isSymbol(value) {
|
|
265
|
-
return typeof value == "symbol";
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
// ../../node_modules/es-toolkit/dist/predicate/isBuffer.mjs
|
|
269
|
-
function isBuffer(x) {
|
|
270
|
-
return typeof Buffer < "u" && Buffer.isBuffer(x);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
// ../../node_modules/es-toolkit/dist/predicate/isArrayBuffer.mjs
|
|
274
|
-
function isArrayBuffer(value) {
|
|
275
|
-
return value instanceof ArrayBuffer;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// ../../node_modules/es-toolkit/dist/predicate/isDate.mjs
|
|
279
|
-
function isDate(value) {
|
|
280
|
-
return value instanceof Date;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// ../../node_modules/es-toolkit/dist/predicate/isMap.mjs
|
|
284
|
-
function isMap(value) {
|
|
285
|
-
return value instanceof Map;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// ../../node_modules/es-toolkit/dist/predicate/isRegExp.mjs
|
|
289
|
-
function isRegExp(value) {
|
|
290
|
-
return value instanceof RegExp;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
// ../../node_modules/es-toolkit/dist/predicate/isSet.mjs
|
|
294
|
-
function isSet(value) {
|
|
295
|
-
return value instanceof Set;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
// ../../node_modules/es-toolkit/dist/predicate/isWeakMap.mjs
|
|
299
|
-
function isWeakMap(value) {
|
|
300
|
-
return value instanceof WeakMap;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
// ../../node_modules/es-toolkit/dist/predicate/isWeakSet.mjs
|
|
304
|
-
function isWeakSet(value) {
|
|
305
|
-
return value instanceof WeakSet;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export {
|
|
309
|
-
isPrimitive,
|
|
310
|
-
isTypedArray,
|
|
311
|
-
getSymbols,
|
|
312
|
-
getTag,
|
|
313
|
-
regexpTag,
|
|
314
|
-
stringTag,
|
|
315
|
-
numberTag,
|
|
316
|
-
booleanTag,
|
|
317
|
-
argumentsTag,
|
|
318
|
-
symbolTag,
|
|
319
|
-
dateTag,
|
|
320
|
-
mapTag,
|
|
321
|
-
setTag,
|
|
322
|
-
arrayTag,
|
|
323
|
-
arrayBufferTag,
|
|
324
|
-
objectTag,
|
|
325
|
-
dataViewTag,
|
|
326
|
-
uint8ArrayTag,
|
|
327
|
-
uint8ClampedArrayTag,
|
|
328
|
-
uint16ArrayTag,
|
|
329
|
-
uint32ArrayTag,
|
|
330
|
-
int8ArrayTag,
|
|
331
|
-
int16ArrayTag,
|
|
332
|
-
int32ArrayTag,
|
|
333
|
-
float32ArrayTag,
|
|
334
|
-
float64ArrayTag,
|
|
335
|
-
isPlainObject,
|
|
336
|
-
isBlob,
|
|
337
|
-
isBrowser,
|
|
338
|
-
eq,
|
|
339
|
-
isEqualWith,
|
|
340
|
-
isEqual,
|
|
341
|
-
isFile,
|
|
342
|
-
isFunction,
|
|
343
|
-
isJSON,
|
|
344
|
-
isJSONValue,
|
|
345
|
-
isJSONArray,
|
|
346
|
-
isJSONObject,
|
|
347
|
-
isLength,
|
|
348
|
-
isNode,
|
|
349
|
-
isNotNil,
|
|
350
|
-
isNull,
|
|
351
|
-
isPromise,
|
|
352
|
-
isUndefined,
|
|
353
|
-
isNil,
|
|
354
|
-
isSymbol,
|
|
355
|
-
isBuffer,
|
|
356
|
-
isArrayBuffer,
|
|
357
|
-
isDate,
|
|
358
|
-
isMap,
|
|
359
|
-
isRegExp,
|
|
360
|
-
isSet,
|
|
361
|
-
isWeakMap,
|
|
362
|
-
isWeakSet
|
|
363
|
-
};
|