@vue/runtime-dom 3.6.0-beta.6 → 3.6.0-beta.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 +3 -2
- package/dist/runtime-dom.esm-browser.js +12 -6
- 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 +12 -6
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
package/dist/runtime-dom.d.ts
CHANGED
|
@@ -414,9 +414,10 @@ export interface AriaAttributes {
|
|
|
414
414
|
"aria-valuetext"?: string | undefined;
|
|
415
415
|
}
|
|
416
416
|
export type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
|
|
417
|
+
export type ClassValue = false | null | undefined | string | Record<string, any> | Array<ClassValue>;
|
|
417
418
|
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
418
419
|
innerHTML?: string | undefined;
|
|
419
|
-
class?:
|
|
420
|
+
class?: ClassValue | undefined;
|
|
420
421
|
style?: StyleValue | undefined;
|
|
421
422
|
accesskey?: string | undefined;
|
|
422
423
|
contenteditable?: Booleanish | "inherit" | "plaintext-only" | undefined;
|
|
@@ -889,7 +890,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
|
|
889
890
|
* SVG Styling Attributes
|
|
890
891
|
* @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
|
|
891
892
|
*/
|
|
892
|
-
class?:
|
|
893
|
+
class?: ClassValue | undefined;
|
|
893
894
|
style?: StyleValue | undefined;
|
|
894
895
|
color?: string | undefined;
|
|
895
896
|
height?: Numberish | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-beta.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3395,6 +3395,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3395
3395
|
const key = String(vnode.key);
|
|
3396
3396
|
const leavingVNodesCache = getLeavingNodesForType(state, vnode);
|
|
3397
3397
|
return baseResolveTransitionHooks({
|
|
3398
|
+
isLeaving: () => leavingVNodesCache[key] === vnode,
|
|
3398
3399
|
setLeavingNodeCache: () => {
|
|
3399
3400
|
leavingVNodesCache[key] = vnode;
|
|
3400
3401
|
},
|
|
@@ -3413,7 +3414,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3413
3414
|
}, props, state, instance);
|
|
3414
3415
|
}
|
|
3415
3416
|
function baseResolveTransitionHooks(context, props, state, instance) {
|
|
3416
|
-
const { setLeavingNodeCache, unsetLeavingNodeCache, earlyRemove, cloneHooks } = context;
|
|
3417
|
+
const { isLeaving, setLeavingNodeCache, unsetLeavingNodeCache, earlyRemove, cloneHooks } = context;
|
|
3417
3418
|
const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
|
|
3418
3419
|
const callHook = (hook, args) => {
|
|
3419
3420
|
hook && callWithAsyncErrorHandling(hook, instance, 9, args);
|
|
@@ -3437,6 +3438,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
3437
3438
|
callHook(hook, [el]);
|
|
3438
3439
|
},
|
|
3439
3440
|
enter(el) {
|
|
3441
|
+
if (isLeaving()) return;
|
|
3440
3442
|
let hook = onEnter;
|
|
3441
3443
|
let afterHook = onAfterEnter;
|
|
3442
3444
|
let cancelHook = onEnterCancelled;
|
|
@@ -4538,7 +4540,6 @@ function deactivate(vnode, container, { m: move }, parentComponent, parentSuspen
|
|
|
4538
4540
|
instance.isDeactivated = true;
|
|
4539
4541
|
}, void 0, parentSuspense);
|
|
4540
4542
|
devtoolsComponentAdded(instance);
|
|
4541
|
-
instance.__keepAliveStorageContainer = container;
|
|
4542
4543
|
}
|
|
4543
4544
|
|
|
4544
4545
|
//#endregion
|
|
@@ -5082,11 +5083,16 @@ function withAsyncContext(getAwaitable) {
|
|
|
5082
5083
|
if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
|
|
5083
5084
|
let awaitable = getAwaitable();
|
|
5084
5085
|
setCurrentInstance(null, void 0);
|
|
5086
|
+
const cleanup = () => setCurrentInstance(null, void 0);
|
|
5085
5087
|
if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
|
|
5086
5088
|
setCurrentInstance(ctx);
|
|
5089
|
+
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
5087
5090
|
throw e;
|
|
5088
5091
|
});
|
|
5089
|
-
return [awaitable, () =>
|
|
5092
|
+
return [awaitable, () => {
|
|
5093
|
+
setCurrentInstance(ctx);
|
|
5094
|
+
Promise.resolve().then(cleanup);
|
|
5095
|
+
}];
|
|
5090
5096
|
}
|
|
5091
5097
|
|
|
5092
5098
|
//#endregion
|
|
@@ -6301,7 +6307,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6301
6307
|
processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
6302
6308
|
break;
|
|
6303
6309
|
case VaporSlot:
|
|
6304
|
-
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent);
|
|
6310
|
+
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense);
|
|
6305
6311
|
break;
|
|
6306
6312
|
default: if (shapeFlag & 1) processElement(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
6307
6313
|
else if (shapeFlag & 6) processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
@@ -8307,7 +8313,7 @@ function isMemoSame(cached, memo) {
|
|
|
8307
8313
|
|
|
8308
8314
|
//#endregion
|
|
8309
8315
|
//#region packages/runtime-core/src/index.ts
|
|
8310
|
-
const version = "3.6.0-beta.
|
|
8316
|
+
const version = "3.6.0-beta.7";
|
|
8311
8317
|
const warn = warn$1;
|
|
8312
8318
|
/**
|
|
8313
8319
|
* Runtime error messages. Only exposed in dev or esm builds.
|