@vue/shared 3.6.0-rc.6 → 3.6.0-rc.7
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 +28 -10
- package/dist/shared.cjs.prod.js +28 -10
- package/dist/shared.d.ts +20 -5
- package/dist/shared.esm-bundler.js +25 -11
- 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.7
|
|
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,
|
|
@@ -786,6 +800,7 @@ exports.VaporBlockShape = VaporBlockShape;
|
|
|
786
800
|
exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
|
|
787
801
|
exports.VaporIfFlags = VaporIfFlags;
|
|
788
802
|
exports.VaporSlotFlags = VaporSlotFlags;
|
|
803
|
+
exports.VaporSlotStability = VaporSlotStability;
|
|
789
804
|
exports.VaporVForFlags = VaporVForFlags;
|
|
790
805
|
exports.YES = YES;
|
|
791
806
|
exports.camelize = camelize;
|
|
@@ -816,6 +831,7 @@ exports.isBuiltInDirective = isBuiltInDirective;
|
|
|
816
831
|
exports.isBuiltInTag = isBuiltInTag;
|
|
817
832
|
exports.isDate = isDate;
|
|
818
833
|
exports.isFormattingTag = isFormattingTag;
|
|
834
|
+
exports.isForwardedSlot = isForwardedSlot;
|
|
819
835
|
exports.isFunction = isFunction;
|
|
820
836
|
exports.isGloballyAllowed = isGloballyAllowed;
|
|
821
837
|
exports.isGloballyWhitelisted = isGloballyWhitelisted;
|
|
@@ -857,6 +873,8 @@ exports.propsToAttrMap = propsToAttrMap;
|
|
|
857
873
|
exports.remove = remove;
|
|
858
874
|
exports.shouldSetAsAttr = shouldSetAsAttr;
|
|
859
875
|
exports.slotFlagsText = slotFlagsText;
|
|
876
|
+
exports.slotInheritsFallback = slotInheritsFallback;
|
|
877
|
+
exports.slotNotifiesBoundary = slotNotifiesBoundary;
|
|
860
878
|
exports.stringifyStyle = stringifyStyle;
|
|
861
879
|
exports.toDisplayString = toDisplayString;
|
|
862
880
|
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.7
|
|
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,
|
|
@@ -786,6 +800,7 @@ exports.VaporBlockShape = VaporBlockShape;
|
|
|
786
800
|
exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
|
|
787
801
|
exports.VaporIfFlags = VaporIfFlags;
|
|
788
802
|
exports.VaporSlotFlags = VaporSlotFlags;
|
|
803
|
+
exports.VaporSlotStability = VaporSlotStability;
|
|
789
804
|
exports.VaporVForFlags = VaporVForFlags;
|
|
790
805
|
exports.YES = YES;
|
|
791
806
|
exports.camelize = camelize;
|
|
@@ -816,6 +831,7 @@ exports.isBuiltInDirective = isBuiltInDirective;
|
|
|
816
831
|
exports.isBuiltInTag = isBuiltInTag;
|
|
817
832
|
exports.isDate = isDate;
|
|
818
833
|
exports.isFormattingTag = isFormattingTag;
|
|
834
|
+
exports.isForwardedSlot = isForwardedSlot;
|
|
819
835
|
exports.isFunction = isFunction;
|
|
820
836
|
exports.isGloballyAllowed = isGloballyAllowed;
|
|
821
837
|
exports.isGloballyWhitelisted = isGloballyWhitelisted;
|
|
@@ -857,6 +873,8 @@ exports.propsToAttrMap = propsToAttrMap;
|
|
|
857
873
|
exports.remove = remove;
|
|
858
874
|
exports.shouldSetAsAttr = shouldSetAsAttr;
|
|
859
875
|
exports.slotFlagsText = slotFlagsText;
|
|
876
|
+
exports.slotInheritsFallback = slotInheritsFallback;
|
|
877
|
+
exports.slotNotifiesBoundary = slotNotifiesBoundary;
|
|
860
878
|
exports.stringifyStyle = stringifyStyle;
|
|
861
879
|
exports.toDisplayString = toDisplayString;
|
|
862
880
|
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,10 +499,17 @@ 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,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-rc.
|
|
2
|
+
* @vue/shared v3.6.0-rc.7
|
|
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,
|
|
@@ -770,4 +784,4 @@ const VaporDynamicComponentFlags = {
|
|
|
770
784
|
"4": "SLOT_ROOT"
|
|
771
785
|
};
|
|
772
786
|
//#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 };
|
|
787
|
+
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 };
|