@vue/shared 3.6.0-rc.6 → 3.6.0-rc.8
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 +33 -11
- package/dist/shared.cjs.prod.js +33 -11
- package/dist/shared.d.ts +23 -6
- package/dist/shared.esm-bundler.js +30 -12
- package/package.json +1 -1
package/dist/shared.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-rc.
|
|
2
|
+
* @vue/shared v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -696,7 +696,9 @@ const VaporVForFlags = {
|
|
|
696
696
|
"IS_FRAGMENT": 16,
|
|
697
697
|
"16": "IS_FRAGMENT",
|
|
698
698
|
"SLOT_ROOT": 32,
|
|
699
|
-
"32": "SLOT_ROOT"
|
|
699
|
+
"32": "SLOT_ROOT",
|
|
700
|
+
"WRAPPED_ROWS": 64,
|
|
701
|
+
"64": "WRAPPED_ROWS"
|
|
700
702
|
};
|
|
701
703
|
const VaporBlockShape = {
|
|
702
704
|
"EMPTY": 0,
|
|
@@ -754,14 +756,26 @@ const VaporSlotFlags = {
|
|
|
754
756
|
"1": "NO_SLOTTED",
|
|
755
757
|
"ONCE": 2,
|
|
756
758
|
"2": "ONCE",
|
|
757
|
-
"
|
|
758
|
-
"4": "
|
|
759
|
-
"
|
|
760
|
-
"8": "
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
759
|
+
"FORWARDED": 4,
|
|
760
|
+
"4": "FORWARDED",
|
|
761
|
+
"SHARED_FALLBACK": 8,
|
|
762
|
+
"8": "SHARED_FALLBACK"
|
|
763
|
+
};
|
|
764
|
+
function isForwardedSlot(flags) {
|
|
765
|
+
return !!(flags & 12);
|
|
766
|
+
}
|
|
767
|
+
function slotInheritsFallback(flags) {
|
|
768
|
+
return isForwardedSlot(flags) && !(flags & 8);
|
|
769
|
+
}
|
|
770
|
+
function slotNotifiesBoundary(flags) {
|
|
771
|
+
return isForwardedSlot(flags) && !(flags & 2);
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Per-slot-function metadata attached by the compiler as `fn._`.
|
|
775
|
+
*/
|
|
776
|
+
const VaporSlotStability = {
|
|
777
|
+
"NON_STABLE": 1,
|
|
778
|
+
"1": "NON_STABLE"
|
|
765
779
|
};
|
|
766
780
|
const VaporDynamicComponentFlags = {
|
|
767
781
|
"SINGLE_ROOT": 1,
|
|
@@ -769,7 +783,11 @@ const VaporDynamicComponentFlags = {
|
|
|
769
783
|
"ONCE": 2,
|
|
770
784
|
"2": "ONCE",
|
|
771
785
|
"SLOT_ROOT": 4,
|
|
772
|
-
"4": "SLOT_ROOT"
|
|
786
|
+
"4": "SLOT_ROOT",
|
|
787
|
+
"NS_SVG": 8,
|
|
788
|
+
"8": "NS_SVG",
|
|
789
|
+
"NS_MATHML": 16,
|
|
790
|
+
"16": "NS_MATHML"
|
|
773
791
|
};
|
|
774
792
|
//#endregion
|
|
775
793
|
exports.EMPTY_ARR = EMPTY_ARR;
|
|
@@ -786,6 +804,7 @@ exports.VaporBlockShape = VaporBlockShape;
|
|
|
786
804
|
exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
|
|
787
805
|
exports.VaporIfFlags = VaporIfFlags;
|
|
788
806
|
exports.VaporSlotFlags = VaporSlotFlags;
|
|
807
|
+
exports.VaporSlotStability = VaporSlotStability;
|
|
789
808
|
exports.VaporVForFlags = VaporVForFlags;
|
|
790
809
|
exports.YES = YES;
|
|
791
810
|
exports.camelize = camelize;
|
|
@@ -816,6 +835,7 @@ exports.isBuiltInDirective = isBuiltInDirective;
|
|
|
816
835
|
exports.isBuiltInTag = isBuiltInTag;
|
|
817
836
|
exports.isDate = isDate;
|
|
818
837
|
exports.isFormattingTag = isFormattingTag;
|
|
838
|
+
exports.isForwardedSlot = isForwardedSlot;
|
|
819
839
|
exports.isFunction = isFunction;
|
|
820
840
|
exports.isGloballyAllowed = isGloballyAllowed;
|
|
821
841
|
exports.isGloballyWhitelisted = isGloballyWhitelisted;
|
|
@@ -857,6 +877,8 @@ exports.propsToAttrMap = propsToAttrMap;
|
|
|
857
877
|
exports.remove = remove;
|
|
858
878
|
exports.shouldSetAsAttr = shouldSetAsAttr;
|
|
859
879
|
exports.slotFlagsText = slotFlagsText;
|
|
880
|
+
exports.slotInheritsFallback = slotInheritsFallback;
|
|
881
|
+
exports.slotNotifiesBoundary = slotNotifiesBoundary;
|
|
860
882
|
exports.stringifyStyle = stringifyStyle;
|
|
861
883
|
exports.toDisplayString = toDisplayString;
|
|
862
884
|
exports.toHandlerKey = toHandlerKey;
|
package/dist/shared.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-rc.
|
|
2
|
+
* @vue/shared v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -696,7 +696,9 @@ const VaporVForFlags = {
|
|
|
696
696
|
"IS_FRAGMENT": 16,
|
|
697
697
|
"16": "IS_FRAGMENT",
|
|
698
698
|
"SLOT_ROOT": 32,
|
|
699
|
-
"32": "SLOT_ROOT"
|
|
699
|
+
"32": "SLOT_ROOT",
|
|
700
|
+
"WRAPPED_ROWS": 64,
|
|
701
|
+
"64": "WRAPPED_ROWS"
|
|
700
702
|
};
|
|
701
703
|
const VaporBlockShape = {
|
|
702
704
|
"EMPTY": 0,
|
|
@@ -754,14 +756,26 @@ const VaporSlotFlags = {
|
|
|
754
756
|
"1": "NO_SLOTTED",
|
|
755
757
|
"ONCE": 2,
|
|
756
758
|
"2": "ONCE",
|
|
757
|
-
"
|
|
758
|
-
"4": "
|
|
759
|
-
"
|
|
760
|
-
"8": "
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
759
|
+
"FORWARDED": 4,
|
|
760
|
+
"4": "FORWARDED",
|
|
761
|
+
"SHARED_FALLBACK": 8,
|
|
762
|
+
"8": "SHARED_FALLBACK"
|
|
763
|
+
};
|
|
764
|
+
function isForwardedSlot(flags) {
|
|
765
|
+
return !!(flags & 12);
|
|
766
|
+
}
|
|
767
|
+
function slotInheritsFallback(flags) {
|
|
768
|
+
return isForwardedSlot(flags) && !(flags & 8);
|
|
769
|
+
}
|
|
770
|
+
function slotNotifiesBoundary(flags) {
|
|
771
|
+
return isForwardedSlot(flags) && !(flags & 2);
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Per-slot-function metadata attached by the compiler as `fn._`.
|
|
775
|
+
*/
|
|
776
|
+
const VaporSlotStability = {
|
|
777
|
+
"NON_STABLE": 1,
|
|
778
|
+
"1": "NON_STABLE"
|
|
765
779
|
};
|
|
766
780
|
const VaporDynamicComponentFlags = {
|
|
767
781
|
"SINGLE_ROOT": 1,
|
|
@@ -769,7 +783,11 @@ const VaporDynamicComponentFlags = {
|
|
|
769
783
|
"ONCE": 2,
|
|
770
784
|
"2": "ONCE",
|
|
771
785
|
"SLOT_ROOT": 4,
|
|
772
|
-
"4": "SLOT_ROOT"
|
|
786
|
+
"4": "SLOT_ROOT",
|
|
787
|
+
"NS_SVG": 8,
|
|
788
|
+
"8": "NS_SVG",
|
|
789
|
+
"NS_MATHML": 16,
|
|
790
|
+
"16": "NS_MATHML"
|
|
773
791
|
};
|
|
774
792
|
//#endregion
|
|
775
793
|
exports.EMPTY_ARR = EMPTY_ARR;
|
|
@@ -786,6 +804,7 @@ exports.VaporBlockShape = VaporBlockShape;
|
|
|
786
804
|
exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
|
|
787
805
|
exports.VaporIfFlags = VaporIfFlags;
|
|
788
806
|
exports.VaporSlotFlags = VaporSlotFlags;
|
|
807
|
+
exports.VaporSlotStability = VaporSlotStability;
|
|
789
808
|
exports.VaporVForFlags = VaporVForFlags;
|
|
790
809
|
exports.YES = YES;
|
|
791
810
|
exports.camelize = camelize;
|
|
@@ -816,6 +835,7 @@ exports.isBuiltInDirective = isBuiltInDirective;
|
|
|
816
835
|
exports.isBuiltInTag = isBuiltInTag;
|
|
817
836
|
exports.isDate = isDate;
|
|
818
837
|
exports.isFormattingTag = isFormattingTag;
|
|
838
|
+
exports.isForwardedSlot = isForwardedSlot;
|
|
819
839
|
exports.isFunction = isFunction;
|
|
820
840
|
exports.isGloballyAllowed = isGloballyAllowed;
|
|
821
841
|
exports.isGloballyWhitelisted = isGloballyWhitelisted;
|
|
@@ -857,6 +877,8 @@ exports.propsToAttrMap = propsToAttrMap;
|
|
|
857
877
|
exports.remove = remove;
|
|
858
878
|
exports.shouldSetAsAttr = shouldSetAsAttr;
|
|
859
879
|
exports.slotFlagsText = slotFlagsText;
|
|
880
|
+
exports.slotInheritsFallback = slotInheritsFallback;
|
|
881
|
+
exports.slotNotifiesBoundary = slotNotifiesBoundary;
|
|
860
882
|
exports.stringifyStyle = stringifyStyle;
|
|
861
883
|
exports.toDisplayString = toDisplayString;
|
|
862
884
|
exports.toHandlerKey = toHandlerKey;
|
package/dist/shared.d.ts
CHANGED
|
@@ -423,7 +423,15 @@ export declare enum VaporVForFlags {
|
|
|
423
423
|
* v-for sits on a slot content/fallback root chain and can change slot
|
|
424
424
|
* validity.
|
|
425
425
|
*/
|
|
426
|
-
SLOT_ROOT = 32
|
|
426
|
+
SLOT_ROOT = 32,
|
|
427
|
+
/**
|
|
428
|
+
* The server wraps every row in `<!--[-->...<!--]-->`: the row template is
|
|
429
|
+
* not a single element and the list is not a direct child of a Transition
|
|
430
|
+
* or TransitionGroup (compiler-ssr `needFragmentWrapper`). Hydration then
|
|
431
|
+
* treats a leading `<!--[-->` as the row wrapper rather than as the row
|
|
432
|
+
* content's own marker.
|
|
433
|
+
*/
|
|
434
|
+
WRAPPED_ROWS = 64
|
|
427
435
|
}
|
|
428
436
|
export declare enum VaporBlockShape {
|
|
429
437
|
EMPTY = 0,
|
|
@@ -491,14 +499,23 @@ export declare enum TemplateFlags {
|
|
|
491
499
|
export declare enum VaporSlotFlags {
|
|
492
500
|
NO_SLOTTED = 1,
|
|
493
501
|
ONCE = 2,
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
502
|
+
FORWARDED = 4,
|
|
503
|
+
SHARED_FALLBACK = 8
|
|
504
|
+
}
|
|
505
|
+
export declare function isForwardedSlot(flags: number): boolean;
|
|
506
|
+
export declare function slotInheritsFallback(flags: number): boolean;
|
|
507
|
+
export declare function slotNotifiesBoundary(flags: number): boolean;
|
|
508
|
+
/**
|
|
509
|
+
* Per-slot-function metadata attached by the compiler as `fn._`.
|
|
510
|
+
*/
|
|
511
|
+
export declare enum VaporSlotStability {
|
|
512
|
+
NON_STABLE = 1
|
|
498
513
|
}
|
|
499
514
|
export declare enum VaporDynamicComponentFlags {
|
|
500
515
|
SINGLE_ROOT = 1,
|
|
501
516
|
ONCE = 2,
|
|
502
|
-
SLOT_ROOT = 4
|
|
517
|
+
SLOT_ROOT = 4,
|
|
518
|
+
NS_SVG = 8,
|
|
519
|
+
NS_MATHML = 16
|
|
503
520
|
}
|
|
504
521
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-rc.
|
|
2
|
+
* @vue/shared v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -694,7 +694,9 @@ const VaporVForFlags = {
|
|
|
694
694
|
"IS_FRAGMENT": 16,
|
|
695
695
|
"16": "IS_FRAGMENT",
|
|
696
696
|
"SLOT_ROOT": 32,
|
|
697
|
-
"32": "SLOT_ROOT"
|
|
697
|
+
"32": "SLOT_ROOT",
|
|
698
|
+
"WRAPPED_ROWS": 64,
|
|
699
|
+
"64": "WRAPPED_ROWS"
|
|
698
700
|
};
|
|
699
701
|
const VaporBlockShape = {
|
|
700
702
|
"EMPTY": 0,
|
|
@@ -752,14 +754,26 @@ const VaporSlotFlags = {
|
|
|
752
754
|
"1": "NO_SLOTTED",
|
|
753
755
|
"ONCE": 2,
|
|
754
756
|
"2": "ONCE",
|
|
755
|
-
"
|
|
756
|
-
"4": "
|
|
757
|
-
"
|
|
758
|
-
"8": "
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
757
|
+
"FORWARDED": 4,
|
|
758
|
+
"4": "FORWARDED",
|
|
759
|
+
"SHARED_FALLBACK": 8,
|
|
760
|
+
"8": "SHARED_FALLBACK"
|
|
761
|
+
};
|
|
762
|
+
function isForwardedSlot(flags) {
|
|
763
|
+
return !!(flags & 12);
|
|
764
|
+
}
|
|
765
|
+
function slotInheritsFallback(flags) {
|
|
766
|
+
return isForwardedSlot(flags) && !(flags & 8);
|
|
767
|
+
}
|
|
768
|
+
function slotNotifiesBoundary(flags) {
|
|
769
|
+
return isForwardedSlot(flags) && !(flags & 2);
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Per-slot-function metadata attached by the compiler as `fn._`.
|
|
773
|
+
*/
|
|
774
|
+
const VaporSlotStability = {
|
|
775
|
+
"NON_STABLE": 1,
|
|
776
|
+
"1": "NON_STABLE"
|
|
763
777
|
};
|
|
764
778
|
const VaporDynamicComponentFlags = {
|
|
765
779
|
"SINGLE_ROOT": 1,
|
|
@@ -767,7 +781,11 @@ const VaporDynamicComponentFlags = {
|
|
|
767
781
|
"ONCE": 2,
|
|
768
782
|
"2": "ONCE",
|
|
769
783
|
"SLOT_ROOT": 4,
|
|
770
|
-
"4": "SLOT_ROOT"
|
|
784
|
+
"4": "SLOT_ROOT",
|
|
785
|
+
"NS_SVG": 8,
|
|
786
|
+
"8": "NS_SVG",
|
|
787
|
+
"NS_MATHML": 16,
|
|
788
|
+
"16": "NS_MATHML"
|
|
771
789
|
};
|
|
772
790
|
//#endregion
|
|
773
|
-
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 };
|
|
791
|
+
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, TemplateFlags, VaporBlockShape, VaporDynamicComponentFlags, VaporIfFlags, VaporSlotFlags, VaporSlotStability, 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, isForwardedSlot, 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, slotInheritsFallback, slotNotifiesBoundary, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
|