@vue/runtime-dom 3.4.0-alpha.3 → 3.4.0-alpha.4
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/runtime-dom.cjs.js +12 -7
- package/dist/runtime-dom.cjs.prod.js +12 -7
- package/dist/runtime-dom.d.ts +6 -2
- package/dist/runtime-dom.esm-browser.js +72 -30
- package/dist/runtime-dom.esm-browser.prod.js +5 -5
- package/dist/runtime-dom.esm-bundler.js +12 -7
- package/dist/runtime-dom.global.js +75 -29
- package/dist/runtime-dom.global.prod.js +5 -5
- package/package.json +3 -3
|
@@ -11,8 +11,8 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
11
11
|
const NOOP = () => {
|
|
12
12
|
};
|
|
13
13
|
const NO = () => false;
|
|
14
|
-
const
|
|
15
|
-
|
|
14
|
+
const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
|
|
15
|
+
(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
|
|
16
16
|
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
17
17
|
const extend = Object.assign;
|
|
18
18
|
const remove = (arr, el) => {
|
|
@@ -97,7 +97,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
97
97
|
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
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";
|
|
100
|
+
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";
|
|
101
101
|
const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
|
|
102
102
|
|
|
103
103
|
function normalizeStyle(value) {
|
|
@@ -1436,6 +1436,18 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1436
1436
|
return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue);
|
|
1437
1437
|
}
|
|
1438
1438
|
|
|
1439
|
+
const TrackOpTypes = {
|
|
1440
|
+
"GET": "get",
|
|
1441
|
+
"HAS": "has",
|
|
1442
|
+
"ITERATE": "iterate"
|
|
1443
|
+
};
|
|
1444
|
+
const TriggerOpTypes = {
|
|
1445
|
+
"SET": "set",
|
|
1446
|
+
"ADD": "add",
|
|
1447
|
+
"DELETE": "delete",
|
|
1448
|
+
"CLEAR": "clear"
|
|
1449
|
+
};
|
|
1450
|
+
|
|
1439
1451
|
const stack = [];
|
|
1440
1452
|
function pushWarningContext(vnode) {
|
|
1441
1453
|
stack.push(vnode);
|
|
@@ -1550,6 +1562,38 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1550
1562
|
}
|
|
1551
1563
|
}
|
|
1552
1564
|
|
|
1565
|
+
const ErrorCodes = {
|
|
1566
|
+
"SETUP_FUNCTION": 0,
|
|
1567
|
+
"0": "SETUP_FUNCTION",
|
|
1568
|
+
"RENDER_FUNCTION": 1,
|
|
1569
|
+
"1": "RENDER_FUNCTION",
|
|
1570
|
+
"WATCH_GETTER": 2,
|
|
1571
|
+
"2": "WATCH_GETTER",
|
|
1572
|
+
"WATCH_CALLBACK": 3,
|
|
1573
|
+
"3": "WATCH_CALLBACK",
|
|
1574
|
+
"WATCH_CLEANUP": 4,
|
|
1575
|
+
"4": "WATCH_CLEANUP",
|
|
1576
|
+
"NATIVE_EVENT_HANDLER": 5,
|
|
1577
|
+
"5": "NATIVE_EVENT_HANDLER",
|
|
1578
|
+
"COMPONENT_EVENT_HANDLER": 6,
|
|
1579
|
+
"6": "COMPONENT_EVENT_HANDLER",
|
|
1580
|
+
"VNODE_HOOK": 7,
|
|
1581
|
+
"7": "VNODE_HOOK",
|
|
1582
|
+
"DIRECTIVE_HOOK": 8,
|
|
1583
|
+
"8": "DIRECTIVE_HOOK",
|
|
1584
|
+
"TRANSITION_HOOK": 9,
|
|
1585
|
+
"9": "TRANSITION_HOOK",
|
|
1586
|
+
"APP_ERROR_HANDLER": 10,
|
|
1587
|
+
"10": "APP_ERROR_HANDLER",
|
|
1588
|
+
"APP_WARN_HANDLER": 11,
|
|
1589
|
+
"11": "APP_WARN_HANDLER",
|
|
1590
|
+
"FUNCTION_REF": 12,
|
|
1591
|
+
"12": "FUNCTION_REF",
|
|
1592
|
+
"ASYNC_COMPONENT_LOADER": 13,
|
|
1593
|
+
"13": "ASYNC_COMPONENT_LOADER",
|
|
1594
|
+
"SCHEDULER": 14,
|
|
1595
|
+
"14": "SCHEDULER"
|
|
1596
|
+
};
|
|
1553
1597
|
const ErrorTypeStrings$1 = {
|
|
1554
1598
|
["sp"]: "serverPrefetch hook",
|
|
1555
1599
|
["bc"]: "beforeCreate hook",
|
|
@@ -2869,7 +2913,12 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
2869
2913
|
if (delayEnter) {
|
|
2870
2914
|
activeBranch.transition.afterLeave = () => {
|
|
2871
2915
|
if (pendingId === suspense.pendingId) {
|
|
2872
|
-
move(
|
|
2916
|
+
move(
|
|
2917
|
+
pendingBranch,
|
|
2918
|
+
container2,
|
|
2919
|
+
next(activeBranch),
|
|
2920
|
+
0
|
|
2921
|
+
);
|
|
2873
2922
|
queuePostFlushCb(effects);
|
|
2874
2923
|
}
|
|
2875
2924
|
};
|
|
@@ -2916,7 +2965,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
2916
2965
|
}
|
|
2917
2966
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
2918
2967
|
triggerEvent(vnode2, "onFallback");
|
|
2919
|
-
const anchor2 = next(activeBranch);
|
|
2920
2968
|
const mountFallback = () => {
|
|
2921
2969
|
if (!suspense.isInFallback) {
|
|
2922
2970
|
return;
|
|
@@ -2925,7 +2973,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
2925
2973
|
null,
|
|
2926
2974
|
fallbackVNode,
|
|
2927
2975
|
container2,
|
|
2928
|
-
|
|
2976
|
+
next(activeBranch),
|
|
2929
2977
|
parentComponent2,
|
|
2930
2978
|
null,
|
|
2931
2979
|
// fallback tree will not have suspense context
|
|
@@ -5153,18 +5201,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5153
5201
|
rootProps = null;
|
|
5154
5202
|
}
|
|
5155
5203
|
const context = createAppContext();
|
|
5156
|
-
{
|
|
5157
|
-
Object.defineProperty(context.config, "unwrapInjectedRef", {
|
|
5158
|
-
get() {
|
|
5159
|
-
return true;
|
|
5160
|
-
},
|
|
5161
|
-
set() {
|
|
5162
|
-
warn(
|
|
5163
|
-
`app.config.unwrapInjectedRef has been deprecated. 3.3 now always unwraps injected refs in Options API.`
|
|
5164
|
-
);
|
|
5165
|
-
}
|
|
5166
|
-
});
|
|
5167
|
-
}
|
|
5168
5204
|
const installedPlugins = /* @__PURE__ */ new WeakSet();
|
|
5169
5205
|
let isMounted = false;
|
|
5170
5206
|
const app = context.app = {
|
|
@@ -8965,9 +9001,9 @@ Component that was made reactive: `,
|
|
|
8965
9001
|
return;
|
|
8966
9002
|
}
|
|
8967
9003
|
const vueStyle = { style: "color:#3ba776" };
|
|
8968
|
-
const numberStyle = { style: "color:#
|
|
8969
|
-
const stringStyle = { style: "color:#
|
|
8970
|
-
const keywordStyle = { style: "color:#
|
|
9004
|
+
const numberStyle = { style: "color:#1677ff" };
|
|
9005
|
+
const stringStyle = { style: "color:#f5222d" };
|
|
9006
|
+
const keywordStyle = { style: "color:#eb2f96" };
|
|
8971
9007
|
const formatter = {
|
|
8972
9008
|
header(obj) {
|
|
8973
9009
|
if (!isObject(obj)) {
|
|
@@ -9161,11 +9197,12 @@ Component that was made reactive: `,
|
|
|
9161
9197
|
return true;
|
|
9162
9198
|
}
|
|
9163
9199
|
|
|
9164
|
-
const version = "3.4.0-alpha.
|
|
9200
|
+
const version = "3.4.0-alpha.4";
|
|
9165
9201
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9166
9202
|
const ssrUtils = null;
|
|
9167
9203
|
const resolveFilter = null;
|
|
9168
9204
|
const compatUtils = null;
|
|
9205
|
+
const DeprecationTypes = null;
|
|
9169
9206
|
|
|
9170
9207
|
const svgNS = "http://www.w3.org/2000/svg";
|
|
9171
9208
|
const doc = typeof document !== "undefined" ? document : null;
|
|
@@ -9774,7 +9811,8 @@ Component that was made reactive: `,
|
|
|
9774
9811
|
}
|
|
9775
9812
|
}
|
|
9776
9813
|
|
|
9777
|
-
const
|
|
9814
|
+
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
9815
|
+
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
9778
9816
|
const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
|
|
9779
9817
|
if (key === "class") {
|
|
9780
9818
|
patchClass(el, nextValue, isSVG);
|
|
@@ -9808,7 +9846,7 @@ Component that was made reactive: `,
|
|
|
9808
9846
|
if (key === "innerHTML" || key === "textContent") {
|
|
9809
9847
|
return true;
|
|
9810
9848
|
}
|
|
9811
|
-
if (key in el &&
|
|
9849
|
+
if (key in el && isNativeOn(key) && isFunction(value)) {
|
|
9812
9850
|
return true;
|
|
9813
9851
|
}
|
|
9814
9852
|
return false;
|
|
@@ -9825,7 +9863,11 @@ Component that was made reactive: `,
|
|
|
9825
9863
|
if (key === "type" && el.tagName === "TEXTAREA") {
|
|
9826
9864
|
return false;
|
|
9827
9865
|
}
|
|
9828
|
-
if (
|
|
9866
|
+
if (key === "width" || key === "height") {
|
|
9867
|
+
const tag = el.tagName;
|
|
9868
|
+
return !(tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE");
|
|
9869
|
+
}
|
|
9870
|
+
if (isNativeOn(key) && isString(value)) {
|
|
9829
9871
|
return false;
|
|
9830
9872
|
}
|
|
9831
9873
|
return key in el;
|
|
@@ -10494,14 +10536,14 @@ Component that was made reactive: `,
|
|
|
10494
10536
|
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
10495
10537
|
};
|
|
10496
10538
|
const withModifiers = (fn, modifiers) => {
|
|
10497
|
-
return (event, ...args) => {
|
|
10539
|
+
return fn._withMods || (fn._withMods = (event, ...args) => {
|
|
10498
10540
|
for (let i = 0; i < modifiers.length; i++) {
|
|
10499
10541
|
const guard = modifierGuards[modifiers[i]];
|
|
10500
10542
|
if (guard && guard(event, modifiers))
|
|
10501
10543
|
return;
|
|
10502
10544
|
}
|
|
10503
10545
|
return fn(event, ...args);
|
|
10504
|
-
};
|
|
10546
|
+
});
|
|
10505
10547
|
};
|
|
10506
10548
|
const keyNames = {
|
|
10507
10549
|
esc: "escape",
|
|
@@ -10513,7 +10555,7 @@ Component that was made reactive: `,
|
|
|
10513
10555
|
delete: "backspace"
|
|
10514
10556
|
};
|
|
10515
10557
|
const withKeys = (fn, modifiers) => {
|
|
10516
|
-
return (event) => {
|
|
10558
|
+
return fn._withKeys || (fn._withKeys = (event) => {
|
|
10517
10559
|
if (!("key" in event)) {
|
|
10518
10560
|
return;
|
|
10519
10561
|
}
|
|
@@ -10521,7 +10563,7 @@ Component that was made reactive: `,
|
|
|
10521
10563
|
if (modifiers.some((k) => k === eventKey || keyNames[k] === eventKey)) {
|
|
10522
10564
|
return fn(event);
|
|
10523
10565
|
}
|
|
10524
|
-
};
|
|
10566
|
+
});
|
|
10525
10567
|
};
|
|
10526
10568
|
|
|
10527
10569
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
@@ -10638,7 +10680,9 @@ Component that was made reactive: `,
|
|
|
10638
10680
|
exports.BaseTransition = BaseTransition;
|
|
10639
10681
|
exports.BaseTransitionPropsValidators = BaseTransitionPropsValidators;
|
|
10640
10682
|
exports.Comment = Comment;
|
|
10683
|
+
exports.DeprecationTypes = DeprecationTypes;
|
|
10641
10684
|
exports.EffectScope = EffectScope;
|
|
10685
|
+
exports.ErrorCodes = ErrorCodes;
|
|
10642
10686
|
exports.ErrorTypeStrings = ErrorTypeStrings;
|
|
10643
10687
|
exports.Fragment = Fragment;
|
|
10644
10688
|
exports.KeepAlive = KeepAlive;
|
|
@@ -10647,8 +10691,10 @@ Component that was made reactive: `,
|
|
|
10647
10691
|
exports.Suspense = Suspense;
|
|
10648
10692
|
exports.Teleport = Teleport;
|
|
10649
10693
|
exports.Text = Text;
|
|
10694
|
+
exports.TrackOpTypes = TrackOpTypes;
|
|
10650
10695
|
exports.Transition = Transition;
|
|
10651
10696
|
exports.TransitionGroup = TransitionGroup;
|
|
10697
|
+
exports.TriggerOpTypes = TriggerOpTypes;
|
|
10652
10698
|
exports.VueElement = VueElement;
|
|
10653
10699
|
exports.assertNumber = assertNumber;
|
|
10654
10700
|
exports.callWithAsyncErrorHandling = callWithAsyncErrorHandling;
|