@highstate/designer 0.9.18 → 0.9.20
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/.output/nitro.json +3 -3
- package/.output/public/_nuxt/20zRBBOT.js +276 -0
- package/.output/public/_nuxt/3cWt8vz3.js +1 -0
- package/.output/public/_nuxt/{xVLoeQ-B.js → 4-z0BBBK.js} +1 -1
- package/.output/public/_nuxt/B6Kaf1Zv.js +1 -0
- package/.output/public/_nuxt/B7eyK5kF.js +1 -0
- package/.output/public/_nuxt/{CPSgaaQ0.js → BBm9Ui4P.js} +1 -1
- package/.output/public/_nuxt/BCeRv53V.js +1 -0
- package/.output/public/_nuxt/BFHRoLmv.js +1 -0
- package/.output/public/_nuxt/BKG_vmA6.js +1 -0
- package/.output/public/_nuxt/BMQs3vM5.js +2 -0
- package/.output/public/_nuxt/BTT16DZE.js +1 -0
- package/.output/public/_nuxt/{B7grBCAR.js → BUBm2gu0.js} +1 -1
- package/.output/public/_nuxt/BUVU2BiV.js +1 -0
- package/.output/public/_nuxt/BZsnSVZa.js +1 -0
- package/.output/public/_nuxt/BZxTtwKO.js +1 -0
- package/.output/public/_nuxt/Bc22Y1oD.js +1 -0
- package/.output/public/_nuxt/BdJnfSuv.js +1 -0
- package/.output/public/_nuxt/BfUh6PEC.js +1 -0
- package/.output/public/_nuxt/BhJD15Lv.js +1 -0
- package/.output/public/_nuxt/BvXvCmL7.js +1 -0
- package/.output/public/_nuxt/C1NBlWY6.js +1 -0
- package/.output/public/_nuxt/C3tTPg4E.js +1 -0
- package/.output/public/_nuxt/CHdpI9cE.js +1 -0
- package/.output/public/_nuxt/CJbwedTO.js +1 -0
- package/.output/public/_nuxt/CXMRj2GR.js +1 -0
- package/.output/public/_nuxt/CgH_TWd3.js +1 -0
- package/.output/public/_nuxt/CjzOrk9n.js +1 -0
- package/.output/public/_nuxt/CnSrlJ1t.js +1 -0
- package/.output/public/_nuxt/CpdUDRp-.js +1 -0
- package/.output/public/_nuxt/CucSXtnI.js +16 -0
- package/.output/public/_nuxt/{CNBtkm4J.js → D0GxoeXH.js} +2 -2
- package/.output/public/_nuxt/D2AD0cA7.js +1 -0
- package/.output/public/_nuxt/D2QRMlri.js +1 -0
- package/.output/public/_nuxt/D5OlmvkM.js +1 -0
- package/.output/public/_nuxt/D6E-gKom.js +12 -0
- package/.output/public/_nuxt/DBdpdpK3.js +1 -0
- package/.output/public/_nuxt/DEnsbvQE.js +1 -0
- package/.output/public/_nuxt/DFH86FKQ.js +1 -0
- package/.output/public/_nuxt/DKZb-7H-.js +2 -0
- package/.output/public/_nuxt/DMvBTgJm.js +1 -0
- package/.output/public/_nuxt/DOgaXG8Y.js +1 -0
- package/.output/public/_nuxt/{ClbN2oa7.js → DRIP7i-G.js} +2 -2
- package/.output/public/_nuxt/DUARq8BM.js +1 -0
- package/.output/public/_nuxt/DVV-1Xgo.js +1 -0
- package/.output/public/_nuxt/DW9frVpz.js +1 -0
- package/.output/public/_nuxt/DWDpKQJN.js +1 -0
- package/.output/public/_nuxt/Dbgx9Kfk.js +1 -0
- package/.output/public/_nuxt/DbomWJMC.js +1 -0
- package/.output/public/_nuxt/Df5-uBpS.js +1 -0
- package/.output/public/_nuxt/DgxepGqe.js +1 -0
- package/.output/public/_nuxt/DjN4qVUp.js +1 -0
- package/.output/public/_nuxt/DmQuAe0a.js +1 -0
- package/.output/public/_nuxt/DnkIt1sE.js +1 -0
- package/.output/public/_nuxt/DpdC86Cg.js +1 -0
- package/.output/public/_nuxt/DrMaf3PA.js +5 -0
- package/.output/public/_nuxt/Dsv_PvmI.js +1 -0
- package/.output/public/_nuxt/DuztTtWK.js +1 -0
- package/.output/public/_nuxt/DxhSsuVH.js +1 -0
- package/.output/public/_nuxt/G46Y9AKK.js +1 -0
- package/.output/public/_nuxt/SecretValueField.SMGlmIfE.css +1 -0
- package/.output/public/_nuxt/TqsILp0j.js +2 -0
- package/.output/public/_nuxt/XVH4GPVs.js +1 -0
- package/.output/public/_nuxt/_pageId_.Be9XJqQA.css +1 -0
- package/.output/public/_nuxt/apt5CXWJ.js +2 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/4aa61a2b-8c04-489d-bc5e-b3c10756c7d5.json +1 -0
- package/.output/public/_nuxt/{entry.YsT17dxl.css → entry.B__IA1SB.css} +1 -1
- package/.output/public/_nuxt/error-404.Ctkhr_Pq.css +1 -0
- package/.output/public/_nuxt/error-500.BsWzRwYo.css +1 -0
- package/.output/public/_nuxt/{graph-resolver-ClVztv7P.js → graph-resolver-r_0JlXH_.js} +100 -100
- package/.output/public/_nuxt/gt3opOQe.js +1 -0
- package/.output/public/_nuxt/index.CdaM9XKS.css +1 -0
- package/.output/public/_nuxt/j6gS8Wqd.js +1 -0
- package/.output/public/_nuxt/jhVMpA5V.js +1 -0
- package/.output/public/_nuxt/koatKMQr.js +26 -0
- package/.output/public/_nuxt/oZs8U75K.js +1 -0
- package/.output/public/_nuxt/operations.3bVU1gWl.css +1 -0
- package/.output/public/_nuxt/rwNeRj8A.js +1 -0
- package/.output/public/_nuxt/settings.DE1a_g5Y.css +1 -0
- package/.output/public/_nuxt/{vuetify.C_sYHwU6.css → vuetify.uXRHzFBB.css} +1 -1
- package/.output/public/_nuxt/whD7B6hi.js +1 -0
- package/.output/public/_nuxt/yJRFOr9c.js +1 -0
- package/.output/public/_nuxt/yb5mHxB5.js +1 -0
- package/.output/server/index.mjs +3686 -2213
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@babel/parser/lib/index.js +7 -2
- package/.output/server/node_modules/@babel/parser/package.json +2 -2
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +24 -25
- package/.output/server/node_modules/@vue/compiler-core/package.json +4 -4
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1 -1
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +4 -4
- package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +51 -47
- package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +18 -16
- package/.output/server/node_modules/@vue/runtime-dom/package.json +4 -4
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +26 -4
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +14 -3
- package/.output/server/node_modules/@vue/shared/package.json +1 -1
- package/.output/server/node_modules/copy-anything/dist/index.js +36 -0
- package/.output/server/node_modules/copy-anything/package.json +108 -0
- package/.output/server/node_modules/is-what/dist/index.js +171 -0
- package/.output/server/node_modules/is-what/package.json +128 -0
- package/.output/server/node_modules/superjson/dist/accessDeep.js +123 -0
- package/.output/server/node_modules/superjson/dist/class-registry.js +22 -0
- package/.output/server/node_modules/superjson/dist/custom-transformer-registry.js +16 -0
- package/.output/server/node_modules/superjson/dist/double-indexed-kv.js +21 -0
- package/.output/server/node_modules/superjson/dist/index.js +89 -0
- package/.output/server/node_modules/superjson/dist/is.js +35 -0
- package/.output/server/node_modules/superjson/dist/pathstringifier.js +29 -0
- package/.output/server/node_modules/superjson/dist/plainer.js +173 -0
- package/.output/server/node_modules/superjson/dist/registry.js +26 -0
- package/.output/server/node_modules/superjson/dist/transformer.js +197 -0
- package/.output/server/node_modules/superjson/dist/util.js +45 -0
- package/.output/server/node_modules/superjson/package.json +79 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +14 -8
- package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.C13swrCa.mjs → unhead.BYvz9V1x.mjs} +1 -6
- package/.output/server/node_modules/unhead/dist/shared/{unhead.Di5OD67x.mjs → unhead.BpRRHAhY.mjs} +4 -0
- package/.output/server/node_modules/unhead/dist/shared/{unhead.CAk5S5m6.mjs → unhead.DH45uomy.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DeCxexjU.mjs → unhead.Djo8ep_Y.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
- package/.output/server/node_modules/unhead/package.json +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/vue/package.json +6 -6
- package/.output/server/node_modules/vue-bundle-renderer/package.json +13 -13
- package/.output/server/package.json +16 -13
- package/package.json +16 -12
- package/.output/public/_nuxt/84XNjSIe.js +0 -1
- package/.output/public/_nuxt/BKmAPqal.js +0 -1
- package/.output/public/_nuxt/BLOpwnqT.js +0 -1
- package/.output/public/_nuxt/BTEhxafZ.js +0 -1
- package/.output/public/_nuxt/B_wu9Dqv.js +0 -1
- package/.output/public/_nuxt/BebE75YV.js +0 -1
- package/.output/public/_nuxt/Bm_zuxCd.js +0 -1
- package/.output/public/_nuxt/BvYfgXkl.js +0 -1
- package/.output/public/_nuxt/C-_oQ9hf.js +0 -1
- package/.output/public/_nuxt/COWjEZnb.js +0 -1
- package/.output/public/_nuxt/CYRjgJw9.js +0 -26
- package/.output/public/_nuxt/Cj-b45ZR.js +0 -1
- package/.output/public/_nuxt/CtMxL075.js +0 -21
- package/.output/public/_nuxt/D-pF80u_.js +0 -1
- package/.output/public/_nuxt/D0Gq3ULd.js +0 -1
- package/.output/public/_nuxt/DCWrMWBD.js +0 -1
- package/.output/public/_nuxt/DEsY2yuF.js +0 -1
- package/.output/public/_nuxt/DPvdOr2J.js +0 -1
- package/.output/public/_nuxt/DbtIzDGy.js +0 -1
- package/.output/public/_nuxt/DwheRqRn.js +0 -1
- package/.output/public/_nuxt/SVGiTNnK.js +0 -1
- package/.output/public/_nuxt/SettingsDataTable.BLJqwlEK.css +0 -1
- package/.output/public/_nuxt/UQxqNY8s.js +0 -273
- package/.output/public/_nuxt/about.fWlW3EhQ.css +0 -1
- package/.output/public/_nuxt/builds/meta/b0e10f5e-bdc5-4007-9281-161aa323adf1.json +0 -1
- package/.output/public/_nuxt/error-404.CH3riSrg.css +0 -1
- package/.output/public/_nuxt/error-500.C8Qk6cR7.css +0 -1
- package/.output/public/_nuxt/index.smtD6lYF.css +0 -1
- package/.output/public/_nuxt/instances.CGwVkdDM.css +0 -1
- package/.output/public/_nuxt/oVh4WQ21.js +0 -1
- package/.output/public/_nuxt/operations.BfCOaoAx.css +0 -1
- package/.output/public/_nuxt/operations.DvUkbQbt.css +0 -1
- package/.output/public/_nuxt/p5ZwBirz.js +0 -1
- package/.output/public/_nuxt/secrets._PitGGJK.css +0 -1
- package/.output/public/_nuxt/settings.BCRf8MgD.css +0 -1
- package/.output/public/_nuxt/terminals.B07MGsh3.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/uncrypto/dist/crypto.node.mjs","../../../../../node_modules/crossws/dist/shared/crossws.DfCzGthR.mjs","../../../../../node_modules/crossws/dist/shared/crossws.D9ehKjSh.mjs","../../../../../node_modules/crossws/dist/shared/crossws.By9qWDAI.mjs","../../../../../node_modules/crossws/dist/shared/crossws.CipVM6lf.mjs","../../../../../node_modules/crossws/dist/adapters/node.mjs","../../../../../node_modules/destr/dist/index.mjs","../../../../../node_modules/ufo/dist/index.mjs","../../../../../node_modules/radix3/dist/index.mjs","../../../../../node_modules/defu/dist/defu.mjs","../../../../../node_modules/node-mock-http/dist/index.mjs","../../../../../node_modules/h3/dist/index.mjs","../../../../../node_modules/hookable/dist/index.mjs","../../../../../node_modules/node-fetch-native/dist/native.mjs","../../../../../node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs","../../../../../node_modules/ofetch/dist/node.mjs","../../../../../node_modules/unstorage/dist/shared/unstorage.CoCt7NXC.mjs","../../../../../node_modules/unstorage/dist/index.mjs","../../../../../node_modules/unstorage/drivers/utils/index.mjs","../../../../../node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../node_modules/unstorage/drivers/fs-lite.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../node_modules/ohash/dist/crypto/node/index.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../node_modules/klona/dist/index.mjs","../../../../../node_modules/scule/dist/index.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../node_modules/unctx/dist/index.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../node_modules/nuxt/node_modules/h3/dist/index.mjs","../../../../../node_modules/nuxt/dist/core/runtime/nitro/utils/error.js","../../../../../node_modules/nuxt/dist/core/runtime/nitro/handlers/error.js","../../../../../node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../server/plugins/api.ts","../../server/trpc.ts","../../server/routers/state.ts","../../server/routers/project.ts","../../server/routers/library.ts","../../server/routers/workspace.ts","../../server/routers/terminal.ts","../../server/routers/operation.ts","../../server/routers/logs.ts","../../server/routers/settings.ts","../../server/router.ts","../../server/plugins/events.ts","../../../../../node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/static.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/renderer.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../node_modules/nitropack/dist/presets/node/runtime/node-server.mjs","../../../../../node_modules/nuxt/dist/core/runtime/nitro/templates/error-500.js","../../../../../node_modules/trpc-nuxt/dist/shared-C-gde89n.js","../../../../../node_modules/trpc-nuxt/dist/server-DLVWwryg.js","../../server/api/[trpc].ts","../../server/api/projects/[projectId]/artifacts/[hash].ts","../../server/api/projects/[projectId]/terminal-sessions/[id].ts","../../../../../node_modules/nuxt/node_modules/@unhead/vue/dist/shared/vue.N9zWjxoK.mjs","../../../../../node_modules/nuxt/node_modules/@unhead/vue/dist/shared/vue.BYLJNEcq.mjs","../../../../../node_modules/nuxt/node_modules/@unhead/vue/dist/server.mjs","../../../../../node_modules/nuxt/dist/core/runtime/nitro/utils/paths.js","../../../../../node_modules/nuxt/dist/core/runtime/nitro/utils/renderer/build-files.js","../../../../../node_modules/nuxt/dist/core/runtime/nitro/utils/renderer/payload.js","../../../../../node_modules/nuxt/dist/core/runtime/nitro/utils/renderer/app.js","../../../../../node_modules/nuxt/dist/core/runtime/nitro/handlers/renderer.js","../../.nuxt/dist/server/client.manifest.mjs"],"sourcesContent":null,"names":["isPlainObject","getQuery","createRouter","f","h","i","l","hasProp","sanitizeStatusCode","sanitizeStatusMessage","createError","H3Error","isError","setResponseStatus","getRequestHeaders","getRequestHeader","DISALLOWED_STATUS_CHARS","defer","send","getResponseStatus","setResponseHeaders","setResponseHeader","appendResponseHeader","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController","AbortController$1","normalizeKey","defineDriver","DRIVER_NAME","dirname","fsPromises","resolve","fsp","_inlineAppConfig","createRadixRouter","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer","wsAdapter","template","stringify"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,51,52,53,54,55,56,57,58,59,60,64,65,66,67,68,69,70,71]}
|
|
@@ -781,11 +781,14 @@ var estree = superClass => class ESTreeParserMixin extends superClass {
|
|
|
781
781
|
finishCallExpression(unfinished, optional) {
|
|
782
782
|
const node = super.finishCallExpression(unfinished, optional);
|
|
783
783
|
if (node.callee.type === "Import") {
|
|
784
|
-
var _ref
|
|
784
|
+
var _ref;
|
|
785
785
|
this.castNodeTo(node, "ImportExpression");
|
|
786
786
|
node.source = node.arguments[0];
|
|
787
787
|
node.options = (_ref = node.arguments[1]) != null ? _ref : null;
|
|
788
|
-
|
|
788
|
+
{
|
|
789
|
+
var _ref2;
|
|
790
|
+
node.attributes = (_ref2 = node.arguments[1]) != null ? _ref2 : null;
|
|
791
|
+
}
|
|
789
792
|
delete node.arguments;
|
|
790
793
|
delete node.callee;
|
|
791
794
|
} else if (node.type === "OptionalCallExpression") {
|
|
@@ -7996,6 +7999,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
|
|
|
7996
7999
|
this.expect(14);
|
|
7997
8000
|
withProperty.value = this.tsParseImportTypeWithPropertyValue();
|
|
7998
8001
|
node.properties = [this.finishObjectProperty(withProperty)];
|
|
8002
|
+
this.eat(12);
|
|
7999
8003
|
this.expect(8);
|
|
8000
8004
|
return this.finishNode(node, "ObjectExpression");
|
|
8001
8005
|
}
|
|
@@ -9295,6 +9299,7 @@ var typescript = superClass => class TypeScriptParserMixin extends superClass {
|
|
|
9295
9299
|
if (!noCalls && this.atPossibleAsyncArrow(base)) {
|
|
9296
9300
|
const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc);
|
|
9297
9301
|
if (asyncArrowFn) {
|
|
9302
|
+
state.stop = true;
|
|
9298
9303
|
return asyncArrowFn;
|
|
9299
9304
|
}
|
|
9300
9305
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babel/parser",
|
|
3
|
-
"version": "7.28.
|
|
3
|
+
"version": "7.28.3",
|
|
4
4
|
"description": "A JavaScript parser",
|
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-parser",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"# dependencies": "This package doesn't actually have runtime dependencies. @babel/types is only needed for type definitions.",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/types": "^7.28.
|
|
38
|
+
"@babel/types": "^7.28.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/code-frame": "^7.27.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.
|
|
2
|
+
* @vue/compiler-core v3.5.20
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1602,14 +1602,15 @@ function isReferencedIdentifier(id, parent, parentStack) {
|
|
|
1602
1602
|
if (id.name === "arguments") {
|
|
1603
1603
|
return false;
|
|
1604
1604
|
}
|
|
1605
|
-
if (isReferenced(id, parent)) {
|
|
1605
|
+
if (isReferenced(id, parent, parentStack[parentStack.length - 2])) {
|
|
1606
1606
|
return true;
|
|
1607
1607
|
}
|
|
1608
1608
|
switch (parent.type) {
|
|
1609
1609
|
case "AssignmentExpression":
|
|
1610
1610
|
case "AssignmentPattern":
|
|
1611
1611
|
return true;
|
|
1612
|
-
case "
|
|
1612
|
+
case "ObjectProperty":
|
|
1613
|
+
return parent.key !== id && isInDestructureAssignment(parent, parentStack);
|
|
1613
1614
|
case "ArrayPattern":
|
|
1614
1615
|
return isInDestructureAssignment(parent, parentStack);
|
|
1615
1616
|
}
|
|
@@ -1778,7 +1779,7 @@ function isReferenced(node, parent, grandparent) {
|
|
|
1778
1779
|
if (parent.key === node) {
|
|
1779
1780
|
return !!parent.computed;
|
|
1780
1781
|
}
|
|
1781
|
-
return
|
|
1782
|
+
return !grandparent || grandparent.type !== "ObjectPattern";
|
|
1782
1783
|
// no: class { NODE = value; }
|
|
1783
1784
|
// yes: class { [NODE] = value; }
|
|
1784
1785
|
// yes: class { key = NODE; }
|
|
@@ -1828,6 +1829,9 @@ function isReferenced(node, parent, grandparent) {
|
|
|
1828
1829
|
// yes: export { NODE as foo };
|
|
1829
1830
|
// no: export { NODE as foo } from "foo";
|
|
1830
1831
|
case "ExportSpecifier":
|
|
1832
|
+
if (grandparent == null ? void 0 : grandparent.source) {
|
|
1833
|
+
return false;
|
|
1834
|
+
}
|
|
1831
1835
|
return parent.local === node;
|
|
1832
1836
|
// no: import NODE from "foo";
|
|
1833
1837
|
// no: import * as NODE from "foo";
|
|
@@ -1908,7 +1912,7 @@ function isCoreComponent(tag) {
|
|
|
1908
1912
|
return BASE_TRANSITION;
|
|
1909
1913
|
}
|
|
1910
1914
|
}
|
|
1911
|
-
const nonIdentifierRE =
|
|
1915
|
+
const nonIdentifierRE = /^$|^\d|[^\$\w\xA0-\uFFFF]/;
|
|
1912
1916
|
const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
1913
1917
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
|
1914
1918
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
|
@@ -2073,6 +2077,9 @@ function hasDynamicKeyVBind(node) {
|
|
|
2073
2077
|
function isText$1(node) {
|
|
2074
2078
|
return node.type === 5 || node.type === 2;
|
|
2075
2079
|
}
|
|
2080
|
+
function isVPre(p) {
|
|
2081
|
+
return p.type === 7 && p.name === "pre";
|
|
2082
|
+
}
|
|
2076
2083
|
function isVSlot(p) {
|
|
2077
2084
|
return p.type === 7 && p.name === "slot";
|
|
2078
2085
|
}
|
|
@@ -2371,7 +2378,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
2371
2378
|
ondirarg(start, end) {
|
|
2372
2379
|
if (start === end) return;
|
|
2373
2380
|
const arg = getSlice(start, end);
|
|
2374
|
-
if (inVPre) {
|
|
2381
|
+
if (inVPre && !isVPre(currentProp)) {
|
|
2375
2382
|
currentProp.name += arg;
|
|
2376
2383
|
setLocEnd(currentProp.nameLoc, end);
|
|
2377
2384
|
} else {
|
|
@@ -2386,7 +2393,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
2386
2393
|
},
|
|
2387
2394
|
ondirmodifier(start, end) {
|
|
2388
2395
|
const mod = getSlice(start, end);
|
|
2389
|
-
if (inVPre) {
|
|
2396
|
+
if (inVPre && !isVPre(currentProp)) {
|
|
2390
2397
|
currentProp.name += "." + mod;
|
|
2391
2398
|
setLocEnd(currentProp.nameLoc, end);
|
|
2392
2399
|
} else if (currentProp.name === "slot") {
|
|
@@ -2996,6 +3003,11 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
|
2996
3003
|
} else if (child.type === 12) {
|
|
2997
3004
|
const constantType = doNotHoistNode ? 0 : getConstantType(child, context);
|
|
2998
3005
|
if (constantType >= 2) {
|
|
3006
|
+
if (child.codegenNode.type === 14 && child.codegenNode.arguments.length > 0) {
|
|
3007
|
+
child.codegenNode.arguments.push(
|
|
3008
|
+
-1 + (``)
|
|
3009
|
+
);
|
|
3010
|
+
}
|
|
2999
3011
|
toCache.push(child);
|
|
3000
3012
|
continue;
|
|
3001
3013
|
}
|
|
@@ -3024,7 +3036,6 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
|
3024
3036
|
}
|
|
3025
3037
|
}
|
|
3026
3038
|
let cachedAsArray = false;
|
|
3027
|
-
const slotCacheKeys = [];
|
|
3028
3039
|
if (toCache.length === children.length && node.type === 1) {
|
|
3029
3040
|
if (node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && shared.isArray(node.codegenNode.children)) {
|
|
3030
3041
|
node.codegenNode.children = getCacheExpression(
|
|
@@ -3034,7 +3045,6 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
|
3034
3045
|
} else if (node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !shared.isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
|
|
3035
3046
|
const slot = getSlotNode(node.codegenNode, "default");
|
|
3036
3047
|
if (slot) {
|
|
3037
|
-
slotCacheKeys.push(context.cached.length);
|
|
3038
3048
|
slot.returns = getCacheExpression(
|
|
3039
3049
|
createArrayExpression(slot.returns)
|
|
3040
3050
|
);
|
|
@@ -3044,7 +3054,6 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
|
3044
3054
|
const slotName = findDir(node, "slot", true);
|
|
3045
3055
|
const slot = slotName && slotName.arg && getSlotNode(parent.codegenNode, slotName.arg);
|
|
3046
3056
|
if (slot) {
|
|
3047
|
-
slotCacheKeys.push(context.cached.length);
|
|
3048
3057
|
slot.returns = getCacheExpression(
|
|
3049
3058
|
createArrayExpression(slot.returns)
|
|
3050
3059
|
);
|
|
@@ -3054,23 +3063,12 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
|
3054
3063
|
}
|
|
3055
3064
|
if (!cachedAsArray) {
|
|
3056
3065
|
for (const child of toCache) {
|
|
3057
|
-
slotCacheKeys.push(context.cached.length);
|
|
3058
3066
|
child.codegenNode = context.cache(child.codegenNode);
|
|
3059
3067
|
}
|
|
3060
3068
|
}
|
|
3061
|
-
if (slotCacheKeys.length && node.type === 1 && node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !shared.isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
|
|
3062
|
-
node.codegenNode.children.properties.push(
|
|
3063
|
-
createObjectProperty(
|
|
3064
|
-
`__`,
|
|
3065
|
-
createSimpleExpression(JSON.stringify(slotCacheKeys), false)
|
|
3066
|
-
)
|
|
3067
|
-
);
|
|
3068
|
-
}
|
|
3069
3069
|
function getCacheExpression(value) {
|
|
3070
3070
|
const exp = context.cache(value);
|
|
3071
|
-
|
|
3072
|
-
exp.needArraySpread = true;
|
|
3073
|
-
}
|
|
3071
|
+
exp.needArraySpread = true;
|
|
3074
3072
|
return exp;
|
|
3075
3073
|
}
|
|
3076
3074
|
function getSlotNode(node2, name) {
|
|
@@ -4613,7 +4611,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
4613
4611
|
continue;
|
|
4614
4612
|
}
|
|
4615
4613
|
if (sibling && sibling.type === 9) {
|
|
4616
|
-
if (dir.name === "else-if" && sibling.branches[sibling.branches.length - 1].condition === void 0) {
|
|
4614
|
+
if ((dir.name === "else-if" || dir.name === "else") && sibling.branches[sibling.branches.length - 1].condition === void 0) {
|
|
4617
4615
|
context.onError(
|
|
4618
4616
|
createCompilerError(30, node.loc)
|
|
4619
4617
|
);
|
|
@@ -4792,7 +4790,7 @@ const transformBind = (dir, _node, context) => {
|
|
|
4792
4790
|
arg.children.unshift(`(`);
|
|
4793
4791
|
arg.children.push(`) || ""`);
|
|
4794
4792
|
} else if (!arg.isStatic) {
|
|
4795
|
-
arg.content = `${arg.content} || ""`;
|
|
4793
|
+
arg.content = arg.content ? `${arg.content} || ""` : `""`;
|
|
4796
4794
|
}
|
|
4797
4795
|
if (modifiers.some((mod) => mod.content === "camel")) {
|
|
4798
4796
|
if (arg.type === 4) {
|
|
@@ -6462,7 +6460,7 @@ const seen = /* @__PURE__ */ new WeakSet();
|
|
|
6462
6460
|
const transformMemo = (node, context) => {
|
|
6463
6461
|
if (node.type === 1) {
|
|
6464
6462
|
const dir = findDir(node, "memo");
|
|
6465
|
-
if (!dir || seen.has(node)) {
|
|
6463
|
+
if (!dir || seen.has(node) || context.inSSR) {
|
|
6466
6464
|
return;
|
|
6467
6465
|
}
|
|
6468
6466
|
seen.add(node);
|
|
@@ -6678,6 +6676,7 @@ exports.isStaticProperty = isStaticProperty;
|
|
|
6678
6676
|
exports.isStaticPropertyKey = isStaticPropertyKey;
|
|
6679
6677
|
exports.isTemplateNode = isTemplateNode;
|
|
6680
6678
|
exports.isText = isText$1;
|
|
6679
|
+
exports.isVPre = isVPre;
|
|
6681
6680
|
exports.isVSlot = isVSlot;
|
|
6682
6681
|
exports.locStub = locStub;
|
|
6683
6682
|
exports.noopDirectiveTransform = noopDirectiveTransform;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.20",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@babel/parser": "^7.
|
|
49
|
+
"@babel/parser": "^7.28.3",
|
|
50
50
|
"entities": "^4.5.0",
|
|
51
51
|
"estree-walker": "^2.0.2",
|
|
52
52
|
"source-map-js": "^1.2.1",
|
|
53
|
-
"@vue/shared": "3.5.
|
|
53
|
+
"@vue/shared": "3.5.20"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/types": "^7.
|
|
56
|
+
"@babel/types": "^7.28.2"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-dom",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.20",
|
|
4
4
|
"description": "@vue/compiler-dom",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-dom.esm-bundler.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-dom#readme",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@vue/shared": "3.5.
|
|
55
|
-
"@vue/compiler-core": "3.5.
|
|
54
|
+
"@vue/shared": "3.5.20",
|
|
55
|
+
"@vue/compiler-core": "3.5.20"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.20",
|
|
4
4
|
"description": "@vue/compiler-ssr",
|
|
5
5
|
"main": "dist/compiler-ssr.cjs.js",
|
|
6
6
|
"types": "dist/compiler-ssr.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "3.5.
|
|
32
|
-
"@vue/compiler-dom": "3.5.
|
|
31
|
+
"@vue/shared": "3.5.20",
|
|
32
|
+
"@vue/compiler-dom": "3.5.20"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/reactivity v3.5.
|
|
2
|
+
* @vue/reactivity v3.5.20
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -740,7 +740,7 @@ const arrayInstrumentations = {
|
|
|
740
740
|
join(separator) {
|
|
741
741
|
return reactiveReadArray(this).join(separator);
|
|
742
742
|
},
|
|
743
|
-
// keys() iterator only reads `length`, no
|
|
743
|
+
// keys() iterator only reads `length`, no optimization required
|
|
744
744
|
lastIndexOf(...args) {
|
|
745
745
|
return searchProxy(this, "lastIndexOf", args);
|
|
746
746
|
},
|
|
@@ -941,7 +941,7 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
941
941
|
}
|
|
942
942
|
if (!shared.isArray(target) && isRef(oldValue) && !isRef(value)) {
|
|
943
943
|
if (isOldValueReadonly) {
|
|
944
|
-
return
|
|
944
|
+
return true;
|
|
945
945
|
} else {
|
|
946
946
|
oldValue.value = value;
|
|
947
947
|
return true;
|
|
@@ -1067,7 +1067,7 @@ function createInstrumentations(readonly, shallow) {
|
|
|
1067
1067
|
get size() {
|
|
1068
1068
|
const target = this["__v_raw"];
|
|
1069
1069
|
!readonly && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1070
|
-
return
|
|
1070
|
+
return target.size;
|
|
1071
1071
|
},
|
|
1072
1072
|
has(key) {
|
|
1073
1073
|
const target = this["__v_raw"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/reactivity",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.20",
|
|
4
4
|
"description": "@vue/reactivity",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/reactivity.esm-bundler.js",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@vue/shared": "3.5.
|
|
53
|
+
"@vue/shared": "3.5.20"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.20
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1109,7 +1109,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1109
1109
|
const refs = owner.refs === shared.EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
1110
1110
|
const setupState = owner.setupState;
|
|
1111
1111
|
const rawSetupState = reactivity.toRaw(setupState);
|
|
1112
|
-
const canSetSetupRef = setupState === shared.EMPTY_OBJ ?
|
|
1112
|
+
const canSetSetupRef = setupState === shared.EMPTY_OBJ ? shared.NO : (key) => {
|
|
1113
1113
|
return shared.hasOwn(rawSetupState, key);
|
|
1114
1114
|
};
|
|
1115
1115
|
if (oldRef != null && oldRef !== ref) {
|
|
@@ -1119,7 +1119,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1119
1119
|
setupState[oldRef] = null;
|
|
1120
1120
|
}
|
|
1121
1121
|
} else if (reactivity.isRef(oldRef)) {
|
|
1122
|
-
|
|
1122
|
+
{
|
|
1123
|
+
oldRef.value = null;
|
|
1124
|
+
}
|
|
1125
|
+
const oldRawRefAtom = oldRawRef;
|
|
1126
|
+
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
|
1123
1127
|
}
|
|
1124
1128
|
}
|
|
1125
1129
|
if (shared.isFunction(ref)) {
|
|
@@ -1130,7 +1134,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1130
1134
|
if (_isString || _isRef) {
|
|
1131
1135
|
const doSet = () => {
|
|
1132
1136
|
if (rawRef.f) {
|
|
1133
|
-
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
1137
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value ;
|
|
1134
1138
|
if (isUnmount) {
|
|
1135
1139
|
shared.isArray(existing) && shared.remove(existing, refValue);
|
|
1136
1140
|
} else {
|
|
@@ -1141,8 +1145,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1141
1145
|
setupState[ref] = refs[ref];
|
|
1142
1146
|
}
|
|
1143
1147
|
} else {
|
|
1144
|
-
|
|
1145
|
-
|
|
1148
|
+
const newVal = [refValue];
|
|
1149
|
+
{
|
|
1150
|
+
ref.value = newVal;
|
|
1151
|
+
}
|
|
1152
|
+
if (rawRef.k) refs[rawRef.k] = newVal;
|
|
1146
1153
|
}
|
|
1147
1154
|
} else if (!existing.includes(refValue)) {
|
|
1148
1155
|
existing.push(refValue);
|
|
@@ -1154,7 +1161,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
1154
1161
|
setupState[ref] = value;
|
|
1155
1162
|
}
|
|
1156
1163
|
} else if (_isRef) {
|
|
1157
|
-
|
|
1164
|
+
{
|
|
1165
|
+
ref.value = value;
|
|
1166
|
+
}
|
|
1158
1167
|
if (rawRef.k) refs[rawRef.k] = value;
|
|
1159
1168
|
} else ;
|
|
1160
1169
|
};
|
|
@@ -1781,10 +1790,15 @@ function defineAsyncComponent(source) {
|
|
|
1781
1790
|
name: "AsyncComponentWrapper",
|
|
1782
1791
|
__asyncLoader: load,
|
|
1783
1792
|
__asyncHydrate(el, instance, hydrate) {
|
|
1793
|
+
let patched = false;
|
|
1794
|
+
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
1795
|
+
const performHydrate = () => {
|
|
1796
|
+
if (patched) {
|
|
1797
|
+
return;
|
|
1798
|
+
}
|
|
1799
|
+
hydrate();
|
|
1800
|
+
};
|
|
1784
1801
|
const doHydrate = hydrateStrategy ? () => {
|
|
1785
|
-
const performHydrate = () => {
|
|
1786
|
-
hydrate();
|
|
1787
|
-
};
|
|
1788
1802
|
const teardown = hydrateStrategy(
|
|
1789
1803
|
performHydrate,
|
|
1790
1804
|
(cb) => forEachElement(el, cb)
|
|
@@ -1792,8 +1806,7 @@ function defineAsyncComponent(source) {
|
|
|
1792
1806
|
if (teardown) {
|
|
1793
1807
|
(instance.bum || (instance.bum = [])).push(teardown);
|
|
1794
1808
|
}
|
|
1795
|
-
|
|
1796
|
-
} : hydrate;
|
|
1809
|
+
} : performHydrate;
|
|
1797
1810
|
if (resolvedComp) {
|
|
1798
1811
|
doHydrate();
|
|
1799
1812
|
} else {
|
|
@@ -2455,10 +2468,10 @@ const PublicInstanceProxyHandlers = {
|
|
|
2455
2468
|
return true;
|
|
2456
2469
|
},
|
|
2457
2470
|
has({
|
|
2458
|
-
_: { data, setupState, accessCache, ctx, appContext, propsOptions }
|
|
2471
|
+
_: { data, setupState, accessCache, ctx, appContext, propsOptions, type }
|
|
2459
2472
|
}, key) {
|
|
2460
|
-
let normalizedProps;
|
|
2461
|
-
return !!accessCache[key] || data !== shared.EMPTY_OBJ && shared.hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && shared.hasOwn(normalizedProps, key) || shared.hasOwn(ctx, key) || shared.hasOwn(publicPropertiesMap, key) || shared.hasOwn(appContext.config.globalProperties, key);
|
|
2473
|
+
let normalizedProps, cssModules;
|
|
2474
|
+
return !!(accessCache[key] || data !== shared.EMPTY_OBJ && key[0] !== "$" && shared.hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && shared.hasOwn(normalizedProps, key) || shared.hasOwn(ctx, key) || shared.hasOwn(publicPropertiesMap, key) || shared.hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
|
|
2462
2475
|
},
|
|
2463
2476
|
defineProperty(target, key, descriptor) {
|
|
2464
2477
|
if (descriptor.get != null) {
|
|
@@ -2506,7 +2519,7 @@ function useSlots() {
|
|
|
2506
2519
|
function useAttrs() {
|
|
2507
2520
|
return getContext().attrs;
|
|
2508
2521
|
}
|
|
2509
|
-
function getContext() {
|
|
2522
|
+
function getContext(calledFunctionName) {
|
|
2510
2523
|
const i = getCurrentInstance();
|
|
2511
2524
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
2512
2525
|
}
|
|
@@ -2685,7 +2698,8 @@ function applyOptions(instance) {
|
|
|
2685
2698
|
expose.forEach((key) => {
|
|
2686
2699
|
Object.defineProperty(exposed, key, {
|
|
2687
2700
|
get: () => publicThis[key],
|
|
2688
|
-
set: (val) => publicThis[key] = val
|
|
2701
|
+
set: (val) => publicThis[key] = val,
|
|
2702
|
+
enumerable: true
|
|
2689
2703
|
});
|
|
2690
2704
|
});
|
|
2691
2705
|
} else if (!instance.exposed) {
|
|
@@ -3046,7 +3060,7 @@ function provide(key, value) {
|
|
|
3046
3060
|
}
|
|
3047
3061
|
}
|
|
3048
3062
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3049
|
-
const instance =
|
|
3063
|
+
const instance = getCurrentInstance();
|
|
3050
3064
|
if (instance || currentApp) {
|
|
3051
3065
|
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
3052
3066
|
if (provides && key in provides) {
|
|
@@ -3057,7 +3071,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
3057
3071
|
}
|
|
3058
3072
|
}
|
|
3059
3073
|
function hasInjectionContext() {
|
|
3060
|
-
return !!(
|
|
3074
|
+
return !!(getCurrentInstance() || currentApp);
|
|
3061
3075
|
}
|
|
3062
3076
|
|
|
3063
3077
|
const internalObjectProto = {};
|
|
@@ -3336,7 +3350,7 @@ function validatePropName(key) {
|
|
|
3336
3350
|
return false;
|
|
3337
3351
|
}
|
|
3338
3352
|
|
|
3339
|
-
const isInternalKey = (key) => key
|
|
3353
|
+
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
3340
3354
|
const normalizeSlotValue = (value) => shared.isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
|
3341
3355
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
|
3342
3356
|
if (rawSlot._n) {
|
|
@@ -3376,8 +3390,6 @@ const assignSlots = (slots, children, optimized) => {
|
|
|
3376
3390
|
const initSlots = (instance, children, optimized) => {
|
|
3377
3391
|
const slots = instance.slots = createInternalObject();
|
|
3378
3392
|
if (instance.vnode.shapeFlag & 32) {
|
|
3379
|
-
const cacheIndexes = children.__;
|
|
3380
|
-
if (cacheIndexes) shared.def(slots, "__", cacheIndexes, true);
|
|
3381
3393
|
const type = children._;
|
|
3382
3394
|
if (type) {
|
|
3383
3395
|
assignSlots(slots, children, optimized);
|
|
@@ -3970,6 +3982,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3970
3982
|
if (!initialVNode.el) {
|
|
3971
3983
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
3972
3984
|
processCommentNode(null, placeholder, container, anchor);
|
|
3985
|
+
initialVNode.placeholder = placeholder.el;
|
|
3973
3986
|
}
|
|
3974
3987
|
} else {
|
|
3975
3988
|
setupRenderEffect(
|
|
@@ -4402,7 +4415,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4402
4415
|
for (i = toBePatched - 1; i >= 0; i--) {
|
|
4403
4416
|
const nextIndex = s2 + i;
|
|
4404
4417
|
const nextChild = c2[nextIndex];
|
|
4405
|
-
const
|
|
4418
|
+
const anchorVNode = c2[nextIndex + 1];
|
|
4419
|
+
const anchor = nextIndex + 1 < l2 ? (
|
|
4420
|
+
// #13559, fallback to el placeholder for unresolved async component
|
|
4421
|
+
anchorVNode.el || anchorVNode.placeholder
|
|
4422
|
+
) : parentAnchor;
|
|
4406
4423
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
4407
4424
|
patch(
|
|
4408
4425
|
null,
|
|
@@ -4467,6 +4484,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4467
4484
|
}
|
|
4468
4485
|
};
|
|
4469
4486
|
const performLeave = () => {
|
|
4487
|
+
if (el._isLeaving) {
|
|
4488
|
+
el[leaveCbKey](
|
|
4489
|
+
true
|
|
4490
|
+
/* cancelled */
|
|
4491
|
+
);
|
|
4492
|
+
}
|
|
4470
4493
|
leave(el, () => {
|
|
4471
4494
|
remove2();
|
|
4472
4495
|
afterLeave && afterLeave();
|
|
@@ -4601,27 +4624,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4601
4624
|
hostRemove(end);
|
|
4602
4625
|
};
|
|
4603
4626
|
const unmountComponent = (instance, parentSuspense, doRemove) => {
|
|
4604
|
-
const {
|
|
4605
|
-
bum,
|
|
4606
|
-
scope,
|
|
4607
|
-
job,
|
|
4608
|
-
subTree,
|
|
4609
|
-
um,
|
|
4610
|
-
m,
|
|
4611
|
-
a,
|
|
4612
|
-
parent,
|
|
4613
|
-
slots: { __: slotCacheKeys }
|
|
4614
|
-
} = instance;
|
|
4627
|
+
const { bum, scope, job, subTree, um, m, a } = instance;
|
|
4615
4628
|
invalidateMount(m);
|
|
4616
4629
|
invalidateMount(a);
|
|
4617
4630
|
if (bum) {
|
|
4618
4631
|
shared.invokeArrayFns(bum);
|
|
4619
4632
|
}
|
|
4620
|
-
if (parent && shared.isArray(slotCacheKeys)) {
|
|
4621
|
-
slotCacheKeys.forEach((v) => {
|
|
4622
|
-
parent.renderCache[v] = void 0;
|
|
4623
|
-
});
|
|
4624
|
-
}
|
|
4625
4633
|
scope.stop();
|
|
4626
4634
|
if (job) {
|
|
4627
4635
|
job.flags |= 8;
|
|
@@ -4633,12 +4641,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4633
4641
|
queuePostRenderEffect(() => {
|
|
4634
4642
|
instance.isUnmounted = true;
|
|
4635
4643
|
}, parentSuspense);
|
|
4636
|
-
if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) {
|
|
4637
|
-
parentSuspense.deps--;
|
|
4638
|
-
if (parentSuspense.deps === 0) {
|
|
4639
|
-
parentSuspense.resolve();
|
|
4640
|
-
}
|
|
4641
|
-
}
|
|
4642
4644
|
};
|
|
4643
4645
|
const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => {
|
|
4644
4646
|
for (let i = start; i < children.length; i++) {
|
|
@@ -4736,7 +4738,8 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
4736
4738
|
if (!shallow && c2.patchFlag !== -2)
|
|
4737
4739
|
traverseStaticChildren(c1, c2);
|
|
4738
4740
|
}
|
|
4739
|
-
if (c2.type === Text
|
|
4741
|
+
if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
|
|
4742
|
+
c2.patchFlag !== -1) {
|
|
4740
4743
|
c2.el = c1.el;
|
|
4741
4744
|
}
|
|
4742
4745
|
if (c2.type === Comment && !c2.el) {
|
|
@@ -6061,6 +6064,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
6061
6064
|
suspense: vnode.suspense,
|
|
6062
6065
|
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
|
6063
6066
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
|
6067
|
+
placeholder: vnode.placeholder,
|
|
6064
6068
|
el: vnode.el,
|
|
6065
6069
|
anchor: vnode.anchor,
|
|
6066
6070
|
ctx: vnode.ctx,
|
|
@@ -6526,7 +6530,7 @@ function isMemoSame(cached, memo) {
|
|
|
6526
6530
|
return true;
|
|
6527
6531
|
}
|
|
6528
6532
|
|
|
6529
|
-
const version = "3.5.
|
|
6533
|
+
const version = "3.5.20";
|
|
6530
6534
|
const warn$1 = shared.NOOP;
|
|
6531
6535
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6532
6536
|
const devtools = void 0;
|