@vue/shared 3.6.0-beta.13 → 3.6.0-beta.14
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/shared.cjs.js +23 -7
- package/dist/shared.cjs.prod.js +23 -7
- package/dist/shared.d.ts +22 -5
- package/dist/shared.esm-bundler.js +23 -8
- package/package.json +1 -1
package/dist/shared.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-beta.
|
|
2
|
+
* @vue/shared v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -668,7 +668,9 @@ const VaporVForFlags = {
|
|
|
668
668
|
"IS_SINGLE_NODE": 8,
|
|
669
669
|
"8": "IS_SINGLE_NODE",
|
|
670
670
|
"IS_FRAGMENT": 16,
|
|
671
|
-
"16": "IS_FRAGMENT"
|
|
671
|
+
"16": "IS_FRAGMENT",
|
|
672
|
+
"SLOT_ROOT": 32,
|
|
673
|
+
"32": "SLOT_ROOT"
|
|
672
674
|
};
|
|
673
675
|
const VaporBlockShape = {
|
|
674
676
|
"EMPTY": 0,
|
|
@@ -686,11 +688,12 @@ const VaporBlockShape = {
|
|
|
686
688
|
* - bit 4: v-once
|
|
687
689
|
* - bit 5: true branch does not need EffectScope
|
|
688
690
|
* - bit 6: false branch does not need EffectScope
|
|
689
|
-
* -
|
|
691
|
+
* - bit 7: v-if sits on a slot content/fallback root chain
|
|
692
|
+
* - bits 8+: branch index + 1 for keyed dynamic fragments
|
|
690
693
|
*
|
|
691
694
|
* Examples:
|
|
692
695
|
* - v-once, true single-root, no false branch: 1 | ONCE = 17
|
|
693
|
-
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 <<
|
|
696
|
+
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
|
|
694
697
|
*/
|
|
695
698
|
const VaporIfFlags = {
|
|
696
699
|
"BLOCK_SHAPE": 15,
|
|
@@ -701,8 +704,10 @@ const VaporIfFlags = {
|
|
|
701
704
|
"32": "TRUE_NO_SCOPE",
|
|
702
705
|
"FALSE_NO_SCOPE": 64,
|
|
703
706
|
"64": "FALSE_NO_SCOPE",
|
|
704
|
-
"
|
|
705
|
-
"
|
|
707
|
+
"SLOT_ROOT": 128,
|
|
708
|
+
"128": "SLOT_ROOT",
|
|
709
|
+
"INDEX_SHIFT": 8,
|
|
710
|
+
"8": "INDEX_SHIFT"
|
|
706
711
|
};
|
|
707
712
|
/**
|
|
708
713
|
* Flags used by vapor template factories, shared between the compiler and the
|
|
@@ -722,7 +727,17 @@ const VaporSlotFlags = {
|
|
|
722
727
|
"NO_SLOTTED": 1,
|
|
723
728
|
"1": "NO_SLOTTED",
|
|
724
729
|
"ONCE": 2,
|
|
725
|
-
"2": "ONCE"
|
|
730
|
+
"2": "ONCE",
|
|
731
|
+
"SLOT_ROOT": 4,
|
|
732
|
+
"4": "SLOT_ROOT"
|
|
733
|
+
};
|
|
734
|
+
const VaporDynamicComponentFlags = {
|
|
735
|
+
"SINGLE_ROOT": 1,
|
|
736
|
+
"1": "SINGLE_ROOT",
|
|
737
|
+
"ONCE": 2,
|
|
738
|
+
"2": "ONCE",
|
|
739
|
+
"SLOT_ROOT": 4,
|
|
740
|
+
"4": "SLOT_ROOT"
|
|
726
741
|
};
|
|
727
742
|
//#endregion
|
|
728
743
|
exports.EMPTY_ARR = EMPTY_ARR;
|
|
@@ -736,6 +751,7 @@ exports.ShapeFlags = ShapeFlags;
|
|
|
736
751
|
exports.SlotFlags = SlotFlags;
|
|
737
752
|
exports.TemplateFlags = TemplateFlags;
|
|
738
753
|
exports.VaporBlockShape = VaporBlockShape;
|
|
754
|
+
exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
|
|
739
755
|
exports.VaporIfFlags = VaporIfFlags;
|
|
740
756
|
exports.VaporSlotFlags = VaporSlotFlags;
|
|
741
757
|
exports.VaporVForFlags = VaporVForFlags;
|
package/dist/shared.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-beta.
|
|
2
|
+
* @vue/shared v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -668,7 +668,9 @@ const VaporVForFlags = {
|
|
|
668
668
|
"IS_SINGLE_NODE": 8,
|
|
669
669
|
"8": "IS_SINGLE_NODE",
|
|
670
670
|
"IS_FRAGMENT": 16,
|
|
671
|
-
"16": "IS_FRAGMENT"
|
|
671
|
+
"16": "IS_FRAGMENT",
|
|
672
|
+
"SLOT_ROOT": 32,
|
|
673
|
+
"32": "SLOT_ROOT"
|
|
672
674
|
};
|
|
673
675
|
const VaporBlockShape = {
|
|
674
676
|
"EMPTY": 0,
|
|
@@ -686,11 +688,12 @@ const VaporBlockShape = {
|
|
|
686
688
|
* - bit 4: v-once
|
|
687
689
|
* - bit 5: true branch does not need EffectScope
|
|
688
690
|
* - bit 6: false branch does not need EffectScope
|
|
689
|
-
* -
|
|
691
|
+
* - bit 7: v-if sits on a slot content/fallback root chain
|
|
692
|
+
* - bits 8+: branch index + 1 for keyed dynamic fragments
|
|
690
693
|
*
|
|
691
694
|
* Examples:
|
|
692
695
|
* - v-once, true single-root, no false branch: 1 | ONCE = 17
|
|
693
|
-
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 <<
|
|
696
|
+
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
|
|
694
697
|
*/
|
|
695
698
|
const VaporIfFlags = {
|
|
696
699
|
"BLOCK_SHAPE": 15,
|
|
@@ -701,8 +704,10 @@ const VaporIfFlags = {
|
|
|
701
704
|
"32": "TRUE_NO_SCOPE",
|
|
702
705
|
"FALSE_NO_SCOPE": 64,
|
|
703
706
|
"64": "FALSE_NO_SCOPE",
|
|
704
|
-
"
|
|
705
|
-
"
|
|
707
|
+
"SLOT_ROOT": 128,
|
|
708
|
+
"128": "SLOT_ROOT",
|
|
709
|
+
"INDEX_SHIFT": 8,
|
|
710
|
+
"8": "INDEX_SHIFT"
|
|
706
711
|
};
|
|
707
712
|
/**
|
|
708
713
|
* Flags used by vapor template factories, shared between the compiler and the
|
|
@@ -722,7 +727,17 @@ const VaporSlotFlags = {
|
|
|
722
727
|
"NO_SLOTTED": 1,
|
|
723
728
|
"1": "NO_SLOTTED",
|
|
724
729
|
"ONCE": 2,
|
|
725
|
-
"2": "ONCE"
|
|
730
|
+
"2": "ONCE",
|
|
731
|
+
"SLOT_ROOT": 4,
|
|
732
|
+
"4": "SLOT_ROOT"
|
|
733
|
+
};
|
|
734
|
+
const VaporDynamicComponentFlags = {
|
|
735
|
+
"SINGLE_ROOT": 1,
|
|
736
|
+
"1": "SINGLE_ROOT",
|
|
737
|
+
"ONCE": 2,
|
|
738
|
+
"2": "ONCE",
|
|
739
|
+
"SLOT_ROOT": 4,
|
|
740
|
+
"4": "SLOT_ROOT"
|
|
726
741
|
};
|
|
727
742
|
//#endregion
|
|
728
743
|
exports.EMPTY_ARR = EMPTY_ARR;
|
|
@@ -736,6 +751,7 @@ exports.ShapeFlags = ShapeFlags;
|
|
|
736
751
|
exports.SlotFlags = SlotFlags;
|
|
737
752
|
exports.TemplateFlags = TemplateFlags;
|
|
738
753
|
exports.VaporBlockShape = VaporBlockShape;
|
|
754
|
+
exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
|
|
739
755
|
exports.VaporIfFlags = VaporIfFlags;
|
|
740
756
|
exports.VaporSlotFlags = VaporSlotFlags;
|
|
741
757
|
exports.VaporVForFlags = VaporVForFlags;
|
package/dist/shared.d.ts
CHANGED
|
@@ -418,7 +418,12 @@ export declare enum VaporVForFlags {
|
|
|
418
418
|
* v-for item block is known to be a VaporFragment, so runtime can use
|
|
419
419
|
* fragment-specific insert/remove helpers.
|
|
420
420
|
*/
|
|
421
|
-
IS_FRAGMENT = 16
|
|
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
|
|
422
427
|
}
|
|
423
428
|
export declare enum VaporBlockShape {
|
|
424
429
|
EMPTY = 0,
|
|
@@ -433,11 +438,12 @@ export declare enum VaporBlockShape {
|
|
|
433
438
|
* - bit 4: v-once
|
|
434
439
|
* - bit 5: true branch does not need EffectScope
|
|
435
440
|
* - bit 6: false branch does not need EffectScope
|
|
436
|
-
* -
|
|
441
|
+
* - bit 7: v-if sits on a slot content/fallback root chain
|
|
442
|
+
* - bits 8+: branch index + 1 for keyed dynamic fragments
|
|
437
443
|
*
|
|
438
444
|
* Examples:
|
|
439
445
|
* - v-once, true single-root, no false branch: 1 | ONCE = 17
|
|
440
|
-
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 <<
|
|
446
|
+
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
|
|
441
447
|
*/
|
|
442
448
|
export declare enum VaporIfFlags {
|
|
443
449
|
/**
|
|
@@ -460,10 +466,15 @@ export declare enum VaporIfFlags {
|
|
|
460
466
|
*/
|
|
461
467
|
FALSE_NO_SCOPE = 64,
|
|
462
468
|
/**
|
|
469
|
+
* v-if sits on a slot content/fallback root chain and can change slot
|
|
470
|
+
* validity.
|
|
471
|
+
*/
|
|
472
|
+
SLOT_ROOT = 128,
|
|
473
|
+
/**
|
|
463
474
|
* Shift for keyed branch index. The encoded value is index + 1, so decoded
|
|
464
475
|
* zero means "not keyed" and source index 0 still round-trips.
|
|
465
476
|
*/
|
|
466
|
-
INDEX_SHIFT =
|
|
477
|
+
INDEX_SHIFT = 8
|
|
467
478
|
}
|
|
468
479
|
/**
|
|
469
480
|
* Flags used by vapor template factories, shared between the compiler and the
|
|
@@ -479,6 +490,12 @@ export declare enum TemplateFlags {
|
|
|
479
490
|
*/
|
|
480
491
|
export declare enum VaporSlotFlags {
|
|
481
492
|
NO_SLOTTED = 1,
|
|
482
|
-
ONCE = 2
|
|
493
|
+
ONCE = 2,
|
|
494
|
+
SLOT_ROOT = 4
|
|
495
|
+
}
|
|
496
|
+
export declare enum VaporDynamicComponentFlags {
|
|
497
|
+
SINGLE_ROOT = 1,
|
|
498
|
+
ONCE = 2,
|
|
499
|
+
SLOT_ROOT = 4
|
|
483
500
|
}
|
|
484
501
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-beta.
|
|
2
|
+
* @vue/shared v3.6.0-beta.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -666,7 +666,9 @@ const VaporVForFlags = {
|
|
|
666
666
|
"IS_SINGLE_NODE": 8,
|
|
667
667
|
"8": "IS_SINGLE_NODE",
|
|
668
668
|
"IS_FRAGMENT": 16,
|
|
669
|
-
"16": "IS_FRAGMENT"
|
|
669
|
+
"16": "IS_FRAGMENT",
|
|
670
|
+
"SLOT_ROOT": 32,
|
|
671
|
+
"32": "SLOT_ROOT"
|
|
670
672
|
};
|
|
671
673
|
const VaporBlockShape = {
|
|
672
674
|
"EMPTY": 0,
|
|
@@ -684,11 +686,12 @@ const VaporBlockShape = {
|
|
|
684
686
|
* - bit 4: v-once
|
|
685
687
|
* - bit 5: true branch does not need EffectScope
|
|
686
688
|
* - bit 6: false branch does not need EffectScope
|
|
687
|
-
* -
|
|
689
|
+
* - bit 7: v-if sits on a slot content/fallback root chain
|
|
690
|
+
* - bits 8+: branch index + 1 for keyed dynamic fragments
|
|
688
691
|
*
|
|
689
692
|
* Examples:
|
|
690
693
|
* - v-once, true single-root, no false branch: 1 | ONCE = 17
|
|
691
|
-
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 <<
|
|
694
|
+
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 8) = 261
|
|
692
695
|
*/
|
|
693
696
|
const VaporIfFlags = {
|
|
694
697
|
"BLOCK_SHAPE": 15,
|
|
@@ -699,8 +702,10 @@ const VaporIfFlags = {
|
|
|
699
702
|
"32": "TRUE_NO_SCOPE",
|
|
700
703
|
"FALSE_NO_SCOPE": 64,
|
|
701
704
|
"64": "FALSE_NO_SCOPE",
|
|
702
|
-
"
|
|
703
|
-
"
|
|
705
|
+
"SLOT_ROOT": 128,
|
|
706
|
+
"128": "SLOT_ROOT",
|
|
707
|
+
"INDEX_SHIFT": 8,
|
|
708
|
+
"8": "INDEX_SHIFT"
|
|
704
709
|
};
|
|
705
710
|
/**
|
|
706
711
|
* Flags used by vapor template factories, shared between the compiler and the
|
|
@@ -720,7 +725,17 @@ const VaporSlotFlags = {
|
|
|
720
725
|
"NO_SLOTTED": 1,
|
|
721
726
|
"1": "NO_SLOTTED",
|
|
722
727
|
"ONCE": 2,
|
|
723
|
-
"2": "ONCE"
|
|
728
|
+
"2": "ONCE",
|
|
729
|
+
"SLOT_ROOT": 4,
|
|
730
|
+
"4": "SLOT_ROOT"
|
|
731
|
+
};
|
|
732
|
+
const VaporDynamicComponentFlags = {
|
|
733
|
+
"SINGLE_ROOT": 1,
|
|
734
|
+
"1": "SINGLE_ROOT",
|
|
735
|
+
"ONCE": 2,
|
|
736
|
+
"2": "ONCE",
|
|
737
|
+
"SLOT_ROOT": 4,
|
|
738
|
+
"4": "SLOT_ROOT"
|
|
724
739
|
};
|
|
725
740
|
//#endregion
|
|
726
|
-
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, TemplateFlags, VaporBlockShape, VaporIfFlags, VaporSlotFlags, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
|
|
741
|
+
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, TemplateFlags, VaporBlockShape, VaporDynamicComponentFlags, VaporIfFlags, VaporSlotFlags, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
|