@vue/runtime-dom 3.3.0-alpha.1 → 3.3.0-alpha.3
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 +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.esm-browser.js +50 -50
- package/dist/runtime-dom.esm-browser.prod.js +1 -1
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +50 -50
- package/dist/runtime-dom.global.prod.js +1 -1
- package/package.json +3 -3
|
@@ -1403,7 +1403,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1403
1403
|
callWithErrorHandling(
|
|
1404
1404
|
appWarnHandler,
|
|
1405
1405
|
instance,
|
|
1406
|
-
11,
|
|
1406
|
+
"11",
|
|
1407
1407
|
[
|
|
1408
1408
|
msg + args.join(""),
|
|
1409
1409
|
instance && instance.proxy,
|
|
@@ -1516,21 +1516,21 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1516
1516
|
["ec"]: "errorCaptured hook",
|
|
1517
1517
|
["rtc"]: "renderTracked hook",
|
|
1518
1518
|
["rtg"]: "renderTriggered hook",
|
|
1519
|
-
[0]: "setup function",
|
|
1520
|
-
[1]: "render function",
|
|
1521
|
-
[2]: "watcher getter",
|
|
1522
|
-
[3]: "watcher callback",
|
|
1523
|
-
[4]: "watcher cleanup function",
|
|
1524
|
-
[5]: "native event handler",
|
|
1525
|
-
[6]: "component event handler",
|
|
1526
|
-
[7]: "vnode hook",
|
|
1527
|
-
[8]: "directive hook",
|
|
1528
|
-
[9]: "transition hook",
|
|
1529
|
-
[10]: "app errorHandler",
|
|
1530
|
-
[11]: "app warnHandler",
|
|
1531
|
-
[12]: "ref function",
|
|
1532
|
-
[13]: "async component loader",
|
|
1533
|
-
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
|
|
1519
|
+
["0"]: "setup function",
|
|
1520
|
+
["1"]: "render function",
|
|
1521
|
+
["2"]: "watcher getter",
|
|
1522
|
+
["3"]: "watcher callback",
|
|
1523
|
+
["4"]: "watcher cleanup function",
|
|
1524
|
+
["5"]: "native event handler",
|
|
1525
|
+
["6"]: "component event handler",
|
|
1526
|
+
["7"]: "vnode hook",
|
|
1527
|
+
["8"]: "directive hook",
|
|
1528
|
+
["9"]: "transition hook",
|
|
1529
|
+
["10"]: "app errorHandler",
|
|
1530
|
+
["11"]: "app warnHandler",
|
|
1531
|
+
["12"]: "ref function",
|
|
1532
|
+
["13"]: "async component loader",
|
|
1533
|
+
["14"]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
|
|
1534
1534
|
};
|
|
1535
1535
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
1536
1536
|
let res;
|
|
@@ -1579,7 +1579,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1579
1579
|
callWithErrorHandling(
|
|
1580
1580
|
appErrorHandler,
|
|
1581
1581
|
null,
|
|
1582
|
-
10,
|
|
1582
|
+
"10",
|
|
1583
1583
|
[err, exposedInstance, errorInfo]
|
|
1584
1584
|
);
|
|
1585
1585
|
return;
|
|
@@ -1732,7 +1732,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1732
1732
|
if (check(job)) {
|
|
1733
1733
|
continue;
|
|
1734
1734
|
}
|
|
1735
|
-
callWithErrorHandling(job, null, 14);
|
|
1735
|
+
callWithErrorHandling(job, null, "14");
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
} finally {
|
|
@@ -2040,7 +2040,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2040
2040
|
callWithAsyncErrorHandling(
|
|
2041
2041
|
handler,
|
|
2042
2042
|
instance,
|
|
2043
|
-
6,
|
|
2043
|
+
"6",
|
|
2044
2044
|
args
|
|
2045
2045
|
);
|
|
2046
2046
|
}
|
|
@@ -2055,7 +2055,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2055
2055
|
callWithAsyncErrorHandling(
|
|
2056
2056
|
onceHandler,
|
|
2057
2057
|
instance,
|
|
2058
|
-
6,
|
|
2058
|
+
"6",
|
|
2059
2059
|
args
|
|
2060
2060
|
);
|
|
2061
2061
|
}
|
|
@@ -2226,7 +2226,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
} catch (err) {
|
|
2228
2228
|
blockStack.length = 0;
|
|
2229
|
-
handleError(err, instance, 1);
|
|
2229
|
+
handleError(err, instance, "1");
|
|
2230
2230
|
result = createVNode(Comment);
|
|
2231
2231
|
}
|
|
2232
2232
|
let root = result;
|
|
@@ -2737,7 +2737,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2737
2737
|
if (delayEnter) {
|
|
2738
2738
|
activeBranch.transition.afterLeave = () => {
|
|
2739
2739
|
if (pendingId === suspense.pendingId) {
|
|
2740
|
-
move(pendingBranch, container2, anchor2, 0);
|
|
2740
|
+
move(pendingBranch, container2, anchor2, "0");
|
|
2741
2741
|
}
|
|
2742
2742
|
};
|
|
2743
2743
|
}
|
|
@@ -2747,7 +2747,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2747
2747
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
2748
2748
|
}
|
|
2749
2749
|
if (!delayEnter) {
|
|
2750
|
-
move(pendingBranch, container2, anchor2, 0);
|
|
2750
|
+
move(pendingBranch, container2, anchor2, "0");
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
2753
2753
|
setActiveBranch(suspense, pendingBranch);
|
|
@@ -2825,7 +2825,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2825
2825
|
}
|
|
2826
2826
|
const hydratedEl = instance.vnode.el;
|
|
2827
2827
|
instance.asyncDep.catch((err) => {
|
|
2828
|
-
handleError(err, instance, 0);
|
|
2828
|
+
handleError(err, instance, "0");
|
|
2829
2829
|
}).then((asyncSetupResult) => {
|
|
2830
2830
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
2831
2831
|
return;
|
|
@@ -3069,14 +3069,14 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3069
3069
|
} else if (isReactive(s)) {
|
|
3070
3070
|
return traverse(s);
|
|
3071
3071
|
} else if (isFunction(s)) {
|
|
3072
|
-
return callWithErrorHandling(s, instance, 2);
|
|
3072
|
+
return callWithErrorHandling(s, instance, "2");
|
|
3073
3073
|
} else {
|
|
3074
3074
|
warnInvalidSource(s);
|
|
3075
3075
|
}
|
|
3076
3076
|
});
|
|
3077
3077
|
} else if (isFunction(source)) {
|
|
3078
3078
|
if (cb) {
|
|
3079
|
-
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3079
|
+
getter = () => callWithErrorHandling(source, instance, "2");
|
|
3080
3080
|
} else {
|
|
3081
3081
|
getter = () => {
|
|
3082
3082
|
if (instance && instance.isUnmounted) {
|
|
@@ -3088,7 +3088,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3088
3088
|
return callWithAsyncErrorHandling(
|
|
3089
3089
|
source,
|
|
3090
3090
|
instance,
|
|
3091
|
-
3,
|
|
3091
|
+
"3",
|
|
3092
3092
|
[onCleanup]
|
|
3093
3093
|
);
|
|
3094
3094
|
};
|
|
@@ -3104,7 +3104,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3104
3104
|
let cleanup;
|
|
3105
3105
|
let onCleanup = (fn) => {
|
|
3106
3106
|
cleanup = effect.onStop = () => {
|
|
3107
|
-
callWithErrorHandling(fn, instance, 4);
|
|
3107
|
+
callWithErrorHandling(fn, instance, "4");
|
|
3108
3108
|
};
|
|
3109
3109
|
};
|
|
3110
3110
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
@@ -3120,7 +3120,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3120
3120
|
if (cleanup) {
|
|
3121
3121
|
cleanup();
|
|
3122
3122
|
}
|
|
3123
|
-
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
3123
|
+
callWithAsyncErrorHandling(cb, instance, "3", [
|
|
3124
3124
|
newValue,
|
|
3125
3125
|
// pass undefined as the old value when it's changed for the first time
|
|
3126
3126
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
@@ -3395,7 +3395,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3395
3395
|
hook && callWithAsyncErrorHandling(
|
|
3396
3396
|
hook,
|
|
3397
3397
|
instance,
|
|
3398
|
-
9,
|
|
3398
|
+
"9",
|
|
3399
3399
|
args
|
|
3400
3400
|
);
|
|
3401
3401
|
};
|
|
@@ -3627,7 +3627,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3627
3627
|
handleError(
|
|
3628
3628
|
err,
|
|
3629
3629
|
instance,
|
|
3630
|
-
13,
|
|
3630
|
+
"13",
|
|
3631
3631
|
!errorComponent
|
|
3632
3632
|
/* do not throw in dev if user provided error component */
|
|
3633
3633
|
);
|
|
@@ -3726,7 +3726,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3726
3726
|
const storageContainer = createElement("div");
|
|
3727
3727
|
sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
|
|
3728
3728
|
const instance2 = vnode.component;
|
|
3729
|
-
move(vnode, container, anchor, 0, parentSuspense);
|
|
3729
|
+
move(vnode, container, anchor, "0", parentSuspense);
|
|
3730
3730
|
patch(
|
|
3731
3731
|
instance2.vnode,
|
|
3732
3732
|
vnode,
|
|
@@ -3754,7 +3754,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3754
3754
|
};
|
|
3755
3755
|
sharedContext.deactivate = (vnode) => {
|
|
3756
3756
|
const instance2 = vnode.component;
|
|
3757
|
-
move(vnode, storageContainer, null, 1, parentSuspense);
|
|
3757
|
+
move(vnode, storageContainer, null, "1", parentSuspense);
|
|
3758
3758
|
queuePostRenderEffect(() => {
|
|
3759
3759
|
if (instance2.da) {
|
|
3760
3760
|
invokeArrayFns(instance2.da);
|
|
@@ -4033,7 +4033,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
4033
4033
|
let hook = binding.dir[name];
|
|
4034
4034
|
if (hook) {
|
|
4035
4035
|
pauseTracking();
|
|
4036
|
-
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
4036
|
+
callWithAsyncErrorHandling(hook, instance, "8", [
|
|
4037
4037
|
vnode.el,
|
|
4038
4038
|
binding,
|
|
4039
4039
|
vnode,
|
|
@@ -5578,7 +5578,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
5578
5578
|
}
|
|
5579
5579
|
}
|
|
5580
5580
|
if (isFunction(ref)) {
|
|
5581
|
-
callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
5581
|
+
callWithErrorHandling(ref, owner, "12", [value, refs]);
|
|
5582
5582
|
} else {
|
|
5583
5583
|
const _isString = isString(ref);
|
|
5584
5584
|
const _isRef = isRef(ref);
|
|
@@ -7226,7 +7226,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7226
7226
|
);
|
|
7227
7227
|
} else if (moved) {
|
|
7228
7228
|
if (j < 0 || i !== increasingNewIndexSequence[j]) {
|
|
7229
|
-
move(nextChild, container, anchor, 2);
|
|
7229
|
+
move(nextChild, container, anchor, "2");
|
|
7230
7230
|
} else {
|
|
7231
7231
|
j--;
|
|
7232
7232
|
}
|
|
@@ -7260,9 +7260,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7260
7260
|
moveStaticNode(vnode, container, anchor);
|
|
7261
7261
|
return;
|
|
7262
7262
|
}
|
|
7263
|
-
const needTransition = moveType !== 2 && shapeFlag & 1 && transition;
|
|
7263
|
+
const needTransition = moveType !== "2" && shapeFlag & 1 && transition;
|
|
7264
7264
|
if (needTransition) {
|
|
7265
|
-
if (moveType === 0) {
|
|
7265
|
+
if (moveType === "0") {
|
|
7266
7266
|
transition.beforeEnter(el);
|
|
7267
7267
|
hostInsert(el, container, anchor);
|
|
7268
7268
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
@@ -7660,7 +7660,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7660
7660
|
container,
|
|
7661
7661
|
mainAnchor,
|
|
7662
7662
|
internals,
|
|
7663
|
-
1
|
|
7663
|
+
"1"
|
|
7664
7664
|
);
|
|
7665
7665
|
}
|
|
7666
7666
|
} else {
|
|
@@ -7675,7 +7675,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7675
7675
|
nextTarget,
|
|
7676
7676
|
null,
|
|
7677
7677
|
internals,
|
|
7678
|
-
0
|
|
7678
|
+
"0"
|
|
7679
7679
|
);
|
|
7680
7680
|
} else {
|
|
7681
7681
|
warn(
|
|
@@ -7690,7 +7690,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7690
7690
|
target,
|
|
7691
7691
|
targetAnchor,
|
|
7692
7692
|
internals,
|
|
7693
|
-
1
|
|
7693
|
+
"1"
|
|
7694
7694
|
);
|
|
7695
7695
|
}
|
|
7696
7696
|
}
|
|
@@ -7721,12 +7721,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7721
7721
|
move: moveTeleport,
|
|
7722
7722
|
hydrate: hydrateTeleport
|
|
7723
7723
|
};
|
|
7724
|
-
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {
|
|
7725
|
-
if (moveType === 0) {
|
|
7724
|
+
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = "2") {
|
|
7725
|
+
if (moveType === "0") {
|
|
7726
7726
|
insert(vnode.targetAnchor, container, parentAnchor);
|
|
7727
7727
|
}
|
|
7728
7728
|
const { el, anchor, shapeFlag, children, props } = vnode;
|
|
7729
|
-
const isReorder = moveType === 2;
|
|
7729
|
+
const isReorder = moveType === "2";
|
|
7730
7730
|
if (isReorder) {
|
|
7731
7731
|
insert(el, container, parentAnchor);
|
|
7732
7732
|
}
|
|
@@ -7737,7 +7737,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7737
7737
|
children[i],
|
|
7738
7738
|
container,
|
|
7739
7739
|
parentAnchor,
|
|
7740
|
-
2
|
|
7740
|
+
"2"
|
|
7741
7741
|
);
|
|
7742
7742
|
}
|
|
7743
7743
|
}
|
|
@@ -8165,7 +8165,7 @@ Component that was made reactive: `,
|
|
|
8165
8165
|
return ret;
|
|
8166
8166
|
}
|
|
8167
8167
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
8168
|
-
callWithAsyncErrorHandling(hook, instance, 7, [
|
|
8168
|
+
callWithAsyncErrorHandling(hook, instance, "7", [
|
|
8169
8169
|
vnode,
|
|
8170
8170
|
prevVNode
|
|
8171
8171
|
]);
|
|
@@ -8331,7 +8331,7 @@ Component that was made reactive: `,
|
|
|
8331
8331
|
const setupResult = callWithErrorHandling(
|
|
8332
8332
|
setup,
|
|
8333
8333
|
instance,
|
|
8334
|
-
0,
|
|
8334
|
+
"0",
|
|
8335
8335
|
[shallowReadonly(instance.props) , setupContext]
|
|
8336
8336
|
);
|
|
8337
8337
|
resetTracking();
|
|
@@ -8342,7 +8342,7 @@ Component that was made reactive: `,
|
|
|
8342
8342
|
return setupResult.then((resolvedResult) => {
|
|
8343
8343
|
handleSetupResult(instance, resolvedResult, isSSR);
|
|
8344
8344
|
}).catch((e) => {
|
|
8345
|
-
handleError(e, instance, 0);
|
|
8345
|
+
handleError(e, instance, "0");
|
|
8346
8346
|
});
|
|
8347
8347
|
} else {
|
|
8348
8348
|
instance.asyncDep = setupResult;
|
|
@@ -8876,7 +8876,7 @@ Component that was made reactive: `,
|
|
|
8876
8876
|
return true;
|
|
8877
8877
|
}
|
|
8878
8878
|
|
|
8879
|
-
const version = "3.3.0-alpha.
|
|
8879
|
+
const version = "3.3.0-alpha.3";
|
|
8880
8880
|
const ssrUtils = null;
|
|
8881
8881
|
const resolveFilter = null;
|
|
8882
8882
|
const compatUtils = null;
|
|
@@ -9158,7 +9158,7 @@ Component that was made reactive: `,
|
|
|
9158
9158
|
callWithAsyncErrorHandling(
|
|
9159
9159
|
patchStopImmediatePropagation(e, invoker.value),
|
|
9160
9160
|
instance,
|
|
9161
|
-
5,
|
|
9161
|
+
"5",
|
|
9162
9162
|
[e]
|
|
9163
9163
|
);
|
|
9164
9164
|
};
|