@vue/runtime-dom 3.6.0-alpha.6 → 3.6.0-alpha.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/runtime-dom.cjs.js +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.d.ts +1 -1
- package/dist/runtime-dom.esm-browser.js +36 -14
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +36 -14
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-alpha.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-alpha.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2000,6 +2000,16 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2000
2000
|
return;
|
|
2001
2001
|
}
|
|
2002
2002
|
this.flags = 1024;
|
|
2003
|
+
this.reset();
|
|
2004
|
+
const sub = this.subs;
|
|
2005
|
+
if (sub !== void 0) {
|
|
2006
|
+
unlink(sub);
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* @internal
|
|
2011
|
+
*/
|
|
2012
|
+
reset() {
|
|
2003
2013
|
let dep = this.deps;
|
|
2004
2014
|
while (dep !== void 0) {
|
|
2005
2015
|
const node = dep.dep;
|
|
@@ -2010,10 +2020,6 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2010
2020
|
dep = unlink(dep, this);
|
|
2011
2021
|
}
|
|
2012
2022
|
}
|
|
2013
|
-
const sub = this.subs;
|
|
2014
|
-
if (sub !== void 0) {
|
|
2015
|
-
unlink(sub);
|
|
2016
|
-
}
|
|
2017
2023
|
cleanup(this);
|
|
2018
2024
|
}
|
|
2019
2025
|
}
|
|
@@ -2825,6 +2831,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2825
2831
|
|
|
2826
2832
|
let isHmrUpdating = false;
|
|
2827
2833
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2834
|
+
const hmrDirtyComponentsMode = /* @__PURE__ */ new Map();
|
|
2828
2835
|
{
|
|
2829
2836
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
2830
2837
|
createRecord: tryWrap(createRecord),
|
|
@@ -2888,9 +2895,10 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2888
2895
|
const record = map.get(id);
|
|
2889
2896
|
if (!record) return;
|
|
2890
2897
|
newComp = normalizeClassComponent(newComp);
|
|
2898
|
+
const isVapor = record.initialDef.__vapor;
|
|
2891
2899
|
updateComponentDef(record.initialDef, newComp);
|
|
2892
2900
|
const instances = [...record.instances];
|
|
2893
|
-
if (newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2901
|
+
if (isVapor && newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2894
2902
|
for (const instance of instances) {
|
|
2895
2903
|
if (instance.root && instance.root.ce && instance !== instance.root) {
|
|
2896
2904
|
instance.root.ce._removeChildStyle(instance.type);
|
|
@@ -2910,6 +2918,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2910
2918
|
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
2911
2919
|
}
|
|
2912
2920
|
dirtyInstances.add(instance);
|
|
2921
|
+
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
2913
2922
|
instance.appContext.propsCache.delete(instance.type);
|
|
2914
2923
|
instance.appContext.emitsCache.delete(instance.type);
|
|
2915
2924
|
instance.appContext.optionsCache.delete(instance.type);
|
|
@@ -2950,6 +2959,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
2950
2959
|
}
|
|
2951
2960
|
queuePostFlushCb(() => {
|
|
2952
2961
|
hmrDirtyComponents.clear();
|
|
2962
|
+
hmrDirtyComponentsMode.clear();
|
|
2953
2963
|
});
|
|
2954
2964
|
}
|
|
2955
2965
|
function updateComponentDef(oldComp, newComp) {
|
|
@@ -3580,7 +3590,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3580
3590
|
onAppearCancelled: TransitionHookValidator
|
|
3581
3591
|
};
|
|
3582
3592
|
const recursiveGetSubtree = (instance) => {
|
|
3583
|
-
const subTree = instance.type
|
|
3593
|
+
const subTree = isVaporComponent(instance.type) ? instance.block : instance.subTree;
|
|
3584
3594
|
return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;
|
|
3585
3595
|
};
|
|
3586
3596
|
const BaseTransitionImpl = {
|
|
@@ -3887,7 +3897,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
3887
3897
|
}
|
|
3888
3898
|
function setTransitionHooks(vnode, hooks) {
|
|
3889
3899
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
3890
|
-
if (vnode.type
|
|
3900
|
+
if (isVaporComponent(vnode.type)) {
|
|
3891
3901
|
getVaporInterface(vnode.component, vnode).setTransitionHooks(
|
|
3892
3902
|
vnode.component,
|
|
3893
3903
|
hooks
|
|
@@ -7939,7 +7949,13 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7939
7949
|
);
|
|
7940
7950
|
break;
|
|
7941
7951
|
case VaporSlot:
|
|
7942
|
-
getVaporInterface(parentComponent, n2).slot(
|
|
7952
|
+
getVaporInterface(parentComponent, n2).slot(
|
|
7953
|
+
n1,
|
|
7954
|
+
n2,
|
|
7955
|
+
container,
|
|
7956
|
+
anchor,
|
|
7957
|
+
parentComponent
|
|
7958
|
+
);
|
|
7943
7959
|
break;
|
|
7944
7960
|
default:
|
|
7945
7961
|
if (shapeFlag & 1) {
|
|
@@ -9120,7 +9136,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9120
9136
|
const move = (vnode, container, anchor, moveType, parentComponent, parentSuspense = null) => {
|
|
9121
9137
|
const { el, type, transition, children, shapeFlag } = vnode;
|
|
9122
9138
|
if (shapeFlag & 6) {
|
|
9123
|
-
if (type
|
|
9139
|
+
if (isVaporComponent(type)) {
|
|
9124
9140
|
getVaporInterface(parentComponent, vnode).move(vnode, container, anchor);
|
|
9125
9141
|
} else {
|
|
9126
9142
|
move(
|
|
@@ -9230,7 +9246,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9230
9246
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
9231
9247
|
}
|
|
9232
9248
|
if (shapeFlag & 256) {
|
|
9233
|
-
if (vnode.type
|
|
9249
|
+
if (isVaporComponent(vnode.type)) {
|
|
9234
9250
|
getVaporInterface(parentComponent, vnode).deactivate(
|
|
9235
9251
|
vnode,
|
|
9236
9252
|
parentComponent.ctx.getStorageContainer()
|
|
@@ -9247,7 +9263,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9247
9263
|
invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
9248
9264
|
}
|
|
9249
9265
|
if (shapeFlag & 6) {
|
|
9250
|
-
if (type
|
|
9266
|
+
if (isVaporComponent(type)) {
|
|
9251
9267
|
getVaporInterface(parentComponent, vnode).unmount(vnode, doRemove);
|
|
9252
9268
|
return;
|
|
9253
9269
|
} else {
|
|
@@ -9379,7 +9395,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9379
9395
|
};
|
|
9380
9396
|
const getNextHostNode = (vnode) => {
|
|
9381
9397
|
if (vnode.shapeFlag & 6) {
|
|
9382
|
-
if (vnode.type
|
|
9398
|
+
if (isVaporComponent(vnode.type)) {
|
|
9383
9399
|
return hostNextSibling(vnode.anchor);
|
|
9384
9400
|
}
|
|
9385
9401
|
return getNextHostNode(vnode.component.subTree);
|
|
@@ -9569,6 +9585,12 @@ app.use(vaporInteropPlugin)
|
|
|
9569
9585
|
}
|
|
9570
9586
|
return res;
|
|
9571
9587
|
}
|
|
9588
|
+
function isVaporComponent(type) {
|
|
9589
|
+
if (isHmrUpdating && hmrDirtyComponentsMode.has(type)) {
|
|
9590
|
+
return hmrDirtyComponentsMode.get(type);
|
|
9591
|
+
}
|
|
9592
|
+
return type.__vapor;
|
|
9593
|
+
}
|
|
9572
9594
|
function getInheritedScopeIds(vnode, parentComponent) {
|
|
9573
9595
|
const inheritedScopeIds = [];
|
|
9574
9596
|
let currentParent = parentComponent;
|
|
@@ -11223,7 +11245,7 @@ Component that was made reactive: `,
|
|
|
11223
11245
|
return true;
|
|
11224
11246
|
}
|
|
11225
11247
|
|
|
11226
|
-
const version = "3.6.0-alpha.
|
|
11248
|
+
const version = "3.6.0-alpha.7";
|
|
11227
11249
|
const warn = warn$1 ;
|
|
11228
11250
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11229
11251
|
const devtools = devtools$1 ;
|