@dcloudio/uni-cli-shared 3.0.0-5020320260806002 → 3.0.0-5020420260811002

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.
Files changed (46) hide show
  1. package/dist/resolve.d.ts +8 -0
  2. package/dist/resolve.js +78 -2
  3. package/lib/dom2/@intlify/core-base/LICENSE +20 -0
  4. package/lib/dom2/@intlify/core-base/dist/core-base.mjs +1903 -0
  5. package/lib/dom2/@intlify/core-base/package.json +11 -0
  6. package/lib/dom2/@intlify/message-compiler/LICENSE +20 -0
  7. package/lib/dom2/@intlify/message-compiler/dist/message-compiler.mjs +1550 -0
  8. package/lib/dom2/@intlify/message-compiler/package.json +11 -0
  9. package/lib/dom2/@intlify/shared/LICENSE +20 -0
  10. package/lib/dom2/@intlify/shared/dist/shared.mjs +333 -0
  11. package/lib/dom2/@intlify/shared/package.json +11 -0
  12. package/lib/dom2/@vue/devtools-api/LICENSE +21 -0
  13. package/lib/dom2/@vue/devtools-api/dist/index.js +26 -0
  14. package/lib/dom2/@vue/devtools-api/package.json +12 -0
  15. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +71 -68
  16. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +71 -68
  17. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +2 -20
  18. package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +53 -29
  19. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +23 -12
  20. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +22 -12
  21. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +80 -30
  22. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
  23. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +20 -3
  24. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +369 -317
  25. package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
  26. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +2032 -5522
  27. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +11114 -33
  28. package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +2825 -4668
  29. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +905 -2413
  30. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +378 -544
  31. package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +998 -2549
  32. package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
  33. package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +26 -92
  34. package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +26 -92
  35. package/lib/dom2/app/@vue/shared/dist/shared.d.ts +2 -94
  36. package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +24 -83
  37. package/lib/dom2/pinia/LICENSE +21 -0
  38. package/lib/dom2/pinia/dist/pinia.mjs +1941 -0
  39. package/lib/dom2/pinia/package.json +11 -0
  40. package/lib/dom2/vue-i18n/LICENSE +20 -0
  41. package/lib/dom2/vue-i18n/dist/vue-i18n.esm-bundler.js +1 -0
  42. package/lib/dom2/vue-i18n/dist/vue-i18n.mjs +2501 -0
  43. package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1 -0
  44. package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.mjs +2501 -0
  45. package/lib/dom2/vue-i18n/package.json +12 -0
  46. package/package.json +5 -5
@@ -1,12 +1,10 @@
1
1
  /**
2
- * @vue/shared v3.6.0-beta.17
2
+ * @vue/shared v3.6.0-beta.5
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
- Object.defineProperties(exports, {
7
- __esModule: { value: true },
8
- [Symbol.toStringTag]: { value: "Module" }
9
- });
6
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
7
+
10
8
  //#region packages/shared/src/makeMap.ts
11
9
  /**
12
10
  * Make a map and return a function for checking if a key
@@ -21,6 +19,7 @@ function makeMap(str) {
21
19
  for (const key of str.split(",")) map[key] = 1;
22
20
  return (val) => val in map;
23
21
  }
22
+
24
23
  //#endregion
25
24
  //#region packages/shared/src/general.ts
26
25
  const EMPTY_OBJ = Object.freeze({});
@@ -146,6 +145,7 @@ function genCacheKey(source, options) {
146
145
  function canSetValueDirectly(tagName) {
147
146
  return tagName !== "PROGRESS" && !tagName.includes("-");
148
147
  }
148
+
149
149
  //#endregion
150
150
  //#region packages/shared/src/patchFlags.ts
151
151
  /**
@@ -215,6 +215,7 @@ const PatchFlagNames = {
215
215
  [-1]: `CACHED`,
216
216
  [-2]: `BAIL`
217
217
  };
218
+
218
219
  //#endregion
219
220
  //#region packages/shared/src/shapeFlags.ts
220
221
  const ShapeFlags = {
@@ -241,6 +242,7 @@ const ShapeFlags = {
241
242
  "COMPONENT": 6,
242
243
  "6": "COMPONENT"
243
244
  };
245
+
244
246
  //#endregion
245
247
  //#region packages/shared/src/slotFlags.ts
246
248
  const SlotFlags = {
@@ -259,9 +261,14 @@ const slotFlagsText = {
259
261
  [2]: "DYNAMIC",
260
262
  [3]: "FORWARDED"
261
263
  };
262
- const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");
264
+
265
+ //#endregion
266
+ //#region packages/shared/src/globalsAllowList.ts
267
+ const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
268
+ const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
263
269
  /** @deprecated use `isGloballyAllowed` instead */
264
270
  const isGloballyWhitelisted = isGloballyAllowed;
271
+
265
272
  //#endregion
266
273
  //#region packages/shared/src/codeframe.ts
267
274
  const range = 2;
@@ -300,6 +307,7 @@ function generateCodeFrame(source, start = 0, end = source.length) {
300
307
  }
301
308
  return res.join("\n");
302
309
  }
310
+
303
311
  //#endregion
304
312
  //#region packages/shared/src/normalizeProp.ts
305
313
  function normalizeStyle(value) {
@@ -358,6 +366,7 @@ function normalizeProps(props) {
358
366
  if (style) props.style = normalizeStyle(style);
359
367
  return props;
360
368
  }
369
+
361
370
  //#endregion
362
371
  //#region packages/shared/src/domTagConfig.ts
363
372
  const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
@@ -408,6 +417,7 @@ const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
408
417
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
409
418
  */
410
419
  const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
420
+
411
421
  //#endregion
412
422
  //#region packages/shared/src/domAttrConfig.ts
413
423
  /**
@@ -480,6 +490,7 @@ function shouldSetAsAttr(tagName, key) {
480
490
  if (key === "sandbox" && tagName === "IFRAME") return true;
481
491
  return false;
482
492
  }
493
+
483
494
  //#endregion
484
495
  //#region packages/shared/src/domNamespace.ts
485
496
  const Namespaces = {
@@ -490,6 +501,7 @@ const Namespaces = {
490
501
  "MATH_ML": 2,
491
502
  "2": "MATH_ML"
492
503
  };
504
+
493
505
  //#endregion
494
506
  //#region packages/shared/src/escapeHtml.ts
495
507
  const escapeRE = /["'&<>]/;
@@ -534,6 +546,7 @@ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
534
546
  function getEscapedCssVarName(key, doubleEscape) {
535
547
  return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
536
548
  }
549
+
537
550
  //#endregion
538
551
  //#region packages/shared/src/looseEqual.ts
539
552
  function looseCompareArrays(a, b) {
@@ -569,6 +582,7 @@ function looseEqual(a, b) {
569
582
  function looseIndexOf(arr, val) {
570
583
  return arr.findIndex((item) => looseEqual(item, val));
571
584
  }
585
+
572
586
  //#endregion
573
587
  //#region packages/shared/src/toDisplayString.ts
574
588
  const isRef = (val) => {
@@ -603,6 +617,7 @@ const stringifySymbol = (v, i = "") => {
603
617
  var _description;
604
618
  return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
605
619
  };
620
+
606
621
  //#endregion
607
622
  //#region packages/shared/src/subSequence.ts
608
623
  function getSequence(arr) {
@@ -640,6 +655,7 @@ function getSequence(arr) {
640
655
  }
641
656
  return result;
642
657
  }
658
+
643
659
  //#endregion
644
660
  //#region packages/shared/src/cssVars.ts
645
661
  /**
@@ -652,6 +668,7 @@ function normalizeCssVarValue(value) {
652
668
  if (typeof value !== "number" || !Number.isFinite(value)) console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:", value);
653
669
  return String(value);
654
670
  }
671
+
655
672
  //#endregion
656
673
  //#region packages/shared/src/vaporFlags.ts
657
674
  /**
@@ -664,87 +681,9 @@ const VaporVForFlags = {
664
681
  "IS_COMPONENT": 2,
665
682
  "2": "IS_COMPONENT",
666
683
  "ONCE": 4,
667
- "4": "ONCE",
668
- "IS_SINGLE_NODE": 8,
669
- "8": "IS_SINGLE_NODE",
670
- "IS_FRAGMENT": 16,
671
- "16": "IS_FRAGMENT",
672
- "SLOT_ROOT": 32,
673
- "32": "SLOT_ROOT"
674
- };
675
- const VaporBlockShape = {
676
- "EMPTY": 0,
677
- "0": "EMPTY",
678
- "SINGLE_ROOT": 1,
679
- "1": "SINGLE_ROOT",
680
- "MULTI_ROOT": 2,
681
- "2": "MULTI_ROOT"
682
- };
683
- /**
684
- * Bit layout for vapor `createIf` flags.
685
- *
686
- * - bits 0-1: true branch VaporBlockShape
687
- * - bits 2-3: false branch VaporBlockShape
688
- * - bit 4: v-once
689
- * - bit 5: true branch is static and can skip branch-owned EffectScope
690
- * - bit 6: false branch is static and can skip branch-owned EffectScope
691
- * - bit 7: v-if sits on a slot content/fallback root chain
692
- * - bits 8+: branch index + 1 for keyed dynamic fragments
693
- *
694
- * Examples:
695
- * - v-once, true single-root, no false branch: 1 | ONCE = 17
696
- * - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
697
- */
698
- const VaporIfFlags = {
699
- "BLOCK_SHAPE": 15,
700
- "15": "BLOCK_SHAPE",
701
- "ONCE": 16,
702
- "16": "ONCE",
703
- "TRUE_NO_SCOPE": 32,
704
- "32": "TRUE_NO_SCOPE",
705
- "FALSE_NO_SCOPE": 64,
706
- "64": "FALSE_NO_SCOPE",
707
- "SLOT_ROOT": 128,
708
- "128": "SLOT_ROOT",
709
- "INDEX_SHIFT": 8,
710
- "8": "INDEX_SHIFT"
711
- };
712
- /**
713
- * Flags used by vapor template factories, shared between the compiler and the
714
- * runtime.
715
- */
716
- const TemplateFlags = {
717
- "ROOT": 1,
718
- "1": "ROOT",
719
- "STATIC": 2,
720
- "2": "STATIC"
721
- };
722
- /**
723
- * Flags used by vapor slot outlets, shared between the compiler and the
724
- * runtime.
725
- */
726
- const VaporSlotFlags = {
727
- "NO_SLOTTED": 1,
728
- "1": "NO_SLOTTED",
729
- "ONCE": 2,
730
- "2": "ONCE",
731
- "SLOT_ROOT": 4,
732
- "4": "SLOT_ROOT",
733
- "NON_STABLE": 8,
734
- "8": "NON_STABLE"
735
- };
736
- const VaporDynamicComponentFlags = {
737
- "SINGLE_ROOT": 1,
738
- "1": "SINGLE_ROOT",
739
- "ONCE": 2,
740
- "2": "ONCE",
741
- "SLOT_ROOT": 4,
742
- "4": "SLOT_ROOT",
743
- "DOM2_FLATTEN_TRUE": 65536,
744
- "65536": "DOM2_FLATTEN_TRUE",
745
- "DOM2_FLATTEN_FALSE": 131072,
746
- "131072": "DOM2_FLATTEN_FALSE"
684
+ "4": "ONCE"
747
685
  };
686
+
748
687
  //#endregion
749
688
  exports.EMPTY_ARR = EMPTY_ARR;
750
689
  exports.EMPTY_OBJ = EMPTY_OBJ;
@@ -755,11 +694,6 @@ exports.PatchFlagNames = PatchFlagNames;
755
694
  exports.PatchFlags = PatchFlags;
756
695
  exports.ShapeFlags = ShapeFlags;
757
696
  exports.SlotFlags = SlotFlags;
758
- exports.TemplateFlags = TemplateFlags;
759
- exports.VaporBlockShape = VaporBlockShape;
760
- exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
761
- exports.VaporIfFlags = VaporIfFlags;
762
- exports.VaporSlotFlags = VaporSlotFlags;
763
697
  exports.VaporVForFlags = VaporVForFlags;
764
698
  exports.YES = YES;
765
699
  exports.camelize = camelize;
@@ -836,4 +770,4 @@ exports.toDisplayString = toDisplayString;
836
770
  exports.toHandlerKey = toHandlerKey;
837
771
  exports.toNumber = toNumber;
838
772
  exports.toRawType = toRawType;
839
- exports.toTypeString = toTypeString;
773
+ exports.toTypeString = toTypeString;
@@ -1,12 +1,10 @@
1
1
  /**
2
- * @vue/shared v3.6.0-beta.17
2
+ * @vue/shared v3.6.0-beta.5
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
- Object.defineProperties(exports, {
7
- __esModule: { value: true },
8
- [Symbol.toStringTag]: { value: "Module" }
9
- });
6
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
7
+
10
8
  //#region packages/shared/src/makeMap.ts
11
9
  /**
12
10
  * Make a map and return a function for checking if a key
@@ -21,6 +19,7 @@ function makeMap(str) {
21
19
  for (const key of str.split(",")) map[key] = 1;
22
20
  return (val) => val in map;
23
21
  }
22
+
24
23
  //#endregion
25
24
  //#region packages/shared/src/general.ts
26
25
  const EMPTY_OBJ = {};
@@ -146,6 +145,7 @@ function genCacheKey(source, options) {
146
145
  function canSetValueDirectly(tagName) {
147
146
  return tagName !== "PROGRESS" && !tagName.includes("-");
148
147
  }
148
+
149
149
  //#endregion
150
150
  //#region packages/shared/src/patchFlags.ts
151
151
  /**
@@ -215,6 +215,7 @@ const PatchFlagNames = {
215
215
  [-1]: `CACHED`,
216
216
  [-2]: `BAIL`
217
217
  };
218
+
218
219
  //#endregion
219
220
  //#region packages/shared/src/shapeFlags.ts
220
221
  const ShapeFlags = {
@@ -241,6 +242,7 @@ const ShapeFlags = {
241
242
  "COMPONENT": 6,
242
243
  "6": "COMPONENT"
243
244
  };
245
+
244
246
  //#endregion
245
247
  //#region packages/shared/src/slotFlags.ts
246
248
  const SlotFlags = {
@@ -259,9 +261,14 @@ const slotFlagsText = {
259
261
  [2]: "DYNAMIC",
260
262
  [3]: "FORWARDED"
261
263
  };
262
- const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");
264
+
265
+ //#endregion
266
+ //#region packages/shared/src/globalsAllowList.ts
267
+ const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
268
+ const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
263
269
  /** @deprecated use `isGloballyAllowed` instead */
264
270
  const isGloballyWhitelisted = isGloballyAllowed;
271
+
265
272
  //#endregion
266
273
  //#region packages/shared/src/codeframe.ts
267
274
  const range = 2;
@@ -300,6 +307,7 @@ function generateCodeFrame(source, start = 0, end = source.length) {
300
307
  }
301
308
  return res.join("\n");
302
309
  }
310
+
303
311
  //#endregion
304
312
  //#region packages/shared/src/normalizeProp.ts
305
313
  function normalizeStyle(value) {
@@ -358,6 +366,7 @@ function normalizeProps(props) {
358
366
  if (style) props.style = normalizeStyle(style);
359
367
  return props;
360
368
  }
369
+
361
370
  //#endregion
362
371
  //#region packages/shared/src/domTagConfig.ts
363
372
  const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
@@ -408,6 +417,7 @@ const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
408
417
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
409
418
  */
410
419
  const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
420
+
411
421
  //#endregion
412
422
  //#region packages/shared/src/domAttrConfig.ts
413
423
  /**
@@ -480,6 +490,7 @@ function shouldSetAsAttr(tagName, key) {
480
490
  if (key === "sandbox" && tagName === "IFRAME") return true;
481
491
  return false;
482
492
  }
493
+
483
494
  //#endregion
484
495
  //#region packages/shared/src/domNamespace.ts
485
496
  const Namespaces = {
@@ -490,6 +501,7 @@ const Namespaces = {
490
501
  "MATH_ML": 2,
491
502
  "2": "MATH_ML"
492
503
  };
504
+
493
505
  //#endregion
494
506
  //#region packages/shared/src/escapeHtml.ts
495
507
  const escapeRE = /["'&<>]/;
@@ -534,6 +546,7 @@ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
534
546
  function getEscapedCssVarName(key, doubleEscape) {
535
547
  return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
536
548
  }
549
+
537
550
  //#endregion
538
551
  //#region packages/shared/src/looseEqual.ts
539
552
  function looseCompareArrays(a, b) {
@@ -569,6 +582,7 @@ function looseEqual(a, b) {
569
582
  function looseIndexOf(arr, val) {
570
583
  return arr.findIndex((item) => looseEqual(item, val));
571
584
  }
585
+
572
586
  //#endregion
573
587
  //#region packages/shared/src/toDisplayString.ts
574
588
  const isRef = (val) => {
@@ -603,6 +617,7 @@ const stringifySymbol = (v, i = "") => {
603
617
  var _description;
604
618
  return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
605
619
  };
620
+
606
621
  //#endregion
607
622
  //#region packages/shared/src/subSequence.ts
608
623
  function getSequence(arr) {
@@ -640,6 +655,7 @@ function getSequence(arr) {
640
655
  }
641
656
  return result;
642
657
  }
658
+
643
659
  //#endregion
644
660
  //#region packages/shared/src/cssVars.ts
645
661
  /**
@@ -652,6 +668,7 @@ function normalizeCssVarValue(value) {
652
668
  if (typeof value !== "number" || !Number.isFinite(value)) {}
653
669
  return String(value);
654
670
  }
671
+
655
672
  //#endregion
656
673
  //#region packages/shared/src/vaporFlags.ts
657
674
  /**
@@ -664,87 +681,9 @@ const VaporVForFlags = {
664
681
  "IS_COMPONENT": 2,
665
682
  "2": "IS_COMPONENT",
666
683
  "ONCE": 4,
667
- "4": "ONCE",
668
- "IS_SINGLE_NODE": 8,
669
- "8": "IS_SINGLE_NODE",
670
- "IS_FRAGMENT": 16,
671
- "16": "IS_FRAGMENT",
672
- "SLOT_ROOT": 32,
673
- "32": "SLOT_ROOT"
674
- };
675
- const VaporBlockShape = {
676
- "EMPTY": 0,
677
- "0": "EMPTY",
678
- "SINGLE_ROOT": 1,
679
- "1": "SINGLE_ROOT",
680
- "MULTI_ROOT": 2,
681
- "2": "MULTI_ROOT"
682
- };
683
- /**
684
- * Bit layout for vapor `createIf` flags.
685
- *
686
- * - bits 0-1: true branch VaporBlockShape
687
- * - bits 2-3: false branch VaporBlockShape
688
- * - bit 4: v-once
689
- * - bit 5: true branch is static and can skip branch-owned EffectScope
690
- * - bit 6: false branch is static and can skip branch-owned EffectScope
691
- * - bit 7: v-if sits on a slot content/fallback root chain
692
- * - bits 8+: branch index + 1 for keyed dynamic fragments
693
- *
694
- * Examples:
695
- * - v-once, true single-root, no false branch: 1 | ONCE = 17
696
- * - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
697
- */
698
- const VaporIfFlags = {
699
- "BLOCK_SHAPE": 15,
700
- "15": "BLOCK_SHAPE",
701
- "ONCE": 16,
702
- "16": "ONCE",
703
- "TRUE_NO_SCOPE": 32,
704
- "32": "TRUE_NO_SCOPE",
705
- "FALSE_NO_SCOPE": 64,
706
- "64": "FALSE_NO_SCOPE",
707
- "SLOT_ROOT": 128,
708
- "128": "SLOT_ROOT",
709
- "INDEX_SHIFT": 8,
710
- "8": "INDEX_SHIFT"
711
- };
712
- /**
713
- * Flags used by vapor template factories, shared between the compiler and the
714
- * runtime.
715
- */
716
- const TemplateFlags = {
717
- "ROOT": 1,
718
- "1": "ROOT",
719
- "STATIC": 2,
720
- "2": "STATIC"
721
- };
722
- /**
723
- * Flags used by vapor slot outlets, shared between the compiler and the
724
- * runtime.
725
- */
726
- const VaporSlotFlags = {
727
- "NO_SLOTTED": 1,
728
- "1": "NO_SLOTTED",
729
- "ONCE": 2,
730
- "2": "ONCE",
731
- "SLOT_ROOT": 4,
732
- "4": "SLOT_ROOT",
733
- "NON_STABLE": 8,
734
- "8": "NON_STABLE"
735
- };
736
- const VaporDynamicComponentFlags = {
737
- "SINGLE_ROOT": 1,
738
- "1": "SINGLE_ROOT",
739
- "ONCE": 2,
740
- "2": "ONCE",
741
- "SLOT_ROOT": 4,
742
- "4": "SLOT_ROOT",
743
- "DOM2_FLATTEN_TRUE": 65536,
744
- "65536": "DOM2_FLATTEN_TRUE",
745
- "DOM2_FLATTEN_FALSE": 131072,
746
- "131072": "DOM2_FLATTEN_FALSE"
684
+ "4": "ONCE"
747
685
  };
686
+
748
687
  //#endregion
749
688
  exports.EMPTY_ARR = EMPTY_ARR;
750
689
  exports.EMPTY_OBJ = EMPTY_OBJ;
@@ -755,11 +694,6 @@ exports.PatchFlagNames = PatchFlagNames;
755
694
  exports.PatchFlags = PatchFlags;
756
695
  exports.ShapeFlags = ShapeFlags;
757
696
  exports.SlotFlags = SlotFlags;
758
- exports.TemplateFlags = TemplateFlags;
759
- exports.VaporBlockShape = VaporBlockShape;
760
- exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
761
- exports.VaporIfFlags = VaporIfFlags;
762
- exports.VaporSlotFlags = VaporSlotFlags;
763
697
  exports.VaporVForFlags = VaporVForFlags;
764
698
  exports.YES = YES;
765
699
  exports.camelize = camelize;
@@ -836,4 +770,4 @@ exports.toDisplayString = toDisplayString;
836
770
  exports.toHandlerKey = toHandlerKey;
837
771
  exports.toNumber = toNumber;
838
772
  exports.toRawType = toRawType;
839
- exports.toTypeString = toTypeString;
773
+ exports.toTypeString = toTypeString;
@@ -401,104 +401,12 @@ export declare enum VaporVForFlags {
401
401
  FAST_REMOVE = 1,
402
402
  /**
403
403
  * v-for used on component - we can skip creating child scopes for each block
404
- * because the component itself already has a scope. This does not guarantee
405
- * the item block is a VaporComponentInstance: component fallback paths may
406
- * still return a DOM Node.
404
+ * because the component itself already has a scope.
407
405
  */
408
406
  IS_COMPONENT = 2,
409
407
  /**
410
408
  * v-for inside v-once
411
409
  */
412
- ONCE = 4,
413
- /**
414
- * v-for item block is a single DOM Node.
415
- */
416
- IS_SINGLE_NODE = 8,
417
- /**
418
- * v-for item block is known to be a VaporFragment, so runtime can use
419
- * fragment-specific insert/remove helpers.
420
- */
421
- IS_FRAGMENT = 16,
422
- /**
423
- * v-for sits on a slot content/fallback root chain and can change slot
424
- * validity.
425
- */
426
- SLOT_ROOT = 32
427
- }
428
- export declare enum VaporBlockShape {
429
- EMPTY = 0,
430
- SINGLE_ROOT = 1,
431
- MULTI_ROOT = 2
432
- }
433
- /**
434
- * Bit layout for vapor `createIf` flags.
435
- *
436
- * - bits 0-1: true branch VaporBlockShape
437
- * - bits 2-3: false branch VaporBlockShape
438
- * - bit 4: v-once
439
- * - bit 5: true branch is static and can skip branch-owned EffectScope
440
- * - bit 6: false branch is static and can skip branch-owned EffectScope
441
- * - bit 7: v-if sits on a slot content/fallback root chain
442
- * - bits 8+: branch index + 1 for keyed dynamic fragments
443
- *
444
- * Examples:
445
- * - v-once, true single-root, no false branch: 1 | ONCE = 17
446
- * - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
447
- */
448
- export declare enum VaporIfFlags {
449
- /**
450
- * Documents the packed true/false branch shape bits. Runtime decode shifts
451
- * to the selected branch first, then masks with 0b11 for one VaporBlockShape.
452
- */
453
- BLOCK_SHAPE = 15,
454
- /**
455
- * Marks a branch that is created once and never updated.
456
- */
457
- ONCE = 16,
458
- /**
459
- * The compiler proved that the true branch only returns static template nodes,
460
- * so runtime can skip creating a branch-owned EffectScope.
461
- */
462
- TRUE_NO_SCOPE = 32,
463
- /**
464
- * The compiler proved that the false branch only returns static template
465
- * nodes, so runtime can skip creating a branch-owned EffectScope.
466
- */
467
- FALSE_NO_SCOPE = 64,
468
- /**
469
- * v-if sits on a slot content/fallback root chain and can change slot
470
- * validity.
471
- */
472
- SLOT_ROOT = 128,
473
- /**
474
- * Shift for keyed branch index. The encoded value is index + 1, so decoded
475
- * zero means "not keyed" and source index 0 still round-trips.
476
- */
477
- INDEX_SHIFT = 8
478
- }
479
- /**
480
- * Flags used by vapor template factories, shared between the compiler and the
481
- * runtime.
482
- */
483
- export declare enum TemplateFlags {
484
- ROOT = 1,
485
- STATIC = 2
486
- }
487
- /**
488
- * Flags used by vapor slot outlets, shared between the compiler and the
489
- * runtime.
490
- */
491
- export declare enum VaporSlotFlags {
492
- NO_SLOTTED = 1,
493
- ONCE = 2,
494
- SLOT_ROOT = 4,
495
- NON_STABLE = 8
496
- }
497
- export declare enum VaporDynamicComponentFlags {
498
- SINGLE_ROOT = 1,
499
- ONCE = 2,
500
- SLOT_ROOT = 4,
501
- DOM2_FLATTEN_TRUE = 65536,
502
- DOM2_FLATTEN_FALSE = 131072
410
+ ONCE = 4
503
411
  }
504
412
  //#endregion