@vue/runtime-dom
Advanced tools
Comparing version 3.5.12 to 3.5.13
/** | ||
* @vue/runtime-dom v3.5.12 | ||
* @vue/runtime-dom v3.5.13 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -175,3 +175,4 @@ * @license MIT | ||
} = baseProps; | ||
const finishEnter = (el, isAppear, done) => { | ||
const finishEnter = (el, isAppear, done, isCancelled) => { | ||
el._enterCancelled = isCancelled; | ||
removeTransitionClass(el, isAppear ? appearToClass : enterToClass); | ||
@@ -219,4 +220,9 @@ removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass); | ||
addTransitionClass(el, leaveFromClass); | ||
addTransitionClass(el, leaveActiveClass); | ||
forceReflow(); | ||
if (!el._enterCancelled) { | ||
forceReflow(); | ||
addTransitionClass(el, leaveActiveClass); | ||
} else { | ||
addTransitionClass(el, leaveActiveClass); | ||
forceReflow(); | ||
} | ||
nextFrame(() => { | ||
@@ -235,7 +241,7 @@ if (!el._isLeaving) { | ||
onEnterCancelled(el) { | ||
finishEnter(el, false); | ||
finishEnter(el, false, void 0, true); | ||
callHook(onEnterCancelled, [el]); | ||
}, | ||
onAppearCancelled(el) { | ||
finishEnter(el, true); | ||
finishEnter(el, true, void 0, true); | ||
callHook(onAppearCancelled, [el]); | ||
@@ -1004,2 +1010,4 @@ }, | ||
if (shouldReflect) { | ||
const ob = this._ob; | ||
ob && ob.disconnect(); | ||
if (val === true) { | ||
@@ -1012,2 +1020,3 @@ this.setAttribute(shared.hyphenate(key), ""); | ||
} | ||
ob && ob.observe(this, { attributes: true }); | ||
} | ||
@@ -1014,0 +1023,0 @@ } |
/** | ||
* @vue/runtime-dom v3.5.12 | ||
* @vue/runtime-dom v3.5.13 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -174,3 +174,4 @@ * @license MIT | ||
} = baseProps; | ||
const finishEnter = (el, isAppear, done) => { | ||
const finishEnter = (el, isAppear, done, isCancelled) => { | ||
el._enterCancelled = isCancelled; | ||
removeTransitionClass(el, isAppear ? appearToClass : enterToClass); | ||
@@ -218,4 +219,9 @@ removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass); | ||
addTransitionClass(el, leaveFromClass); | ||
addTransitionClass(el, leaveActiveClass); | ||
forceReflow(); | ||
if (!el._enterCancelled) { | ||
forceReflow(); | ||
addTransitionClass(el, leaveActiveClass); | ||
} else { | ||
addTransitionClass(el, leaveActiveClass); | ||
forceReflow(); | ||
} | ||
nextFrame(() => { | ||
@@ -234,7 +240,7 @@ if (!el._isLeaving) { | ||
onEnterCancelled(el) { | ||
finishEnter(el, false); | ||
finishEnter(el, false, void 0, true); | ||
callHook(onEnterCancelled, [el]); | ||
}, | ||
onAppearCancelled(el) { | ||
finishEnter(el, true); | ||
finishEnter(el, true, void 0, true); | ||
callHook(onAppearCancelled, [el]); | ||
@@ -959,2 +965,4 @@ }, | ||
if (shouldReflect) { | ||
const ob = this._ob; | ||
ob && ob.disconnect(); | ||
if (val === true) { | ||
@@ -967,2 +975,3 @@ this.setAttribute(shared.hyphenate(key), ""); | ||
} | ||
ob && ob.observe(this, { attributes: true }); | ||
} | ||
@@ -969,0 +978,0 @@ } |
/** | ||
* @vue/runtime-dom v3.5.12 | ||
* @vue/runtime-dom v3.5.13 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
* @license MIT | ||
**/ | ||
import { warn, h, BaseTransition, assertNumber, BaseTransitionPropsValidators, getCurrentInstance, onBeforeMount, watchPostEffect, onMounted, onUnmounted, Fragment, Static, camelize, callWithAsyncErrorHandling, defineComponent, nextTick, unref, createVNode, useTransitionState, onUpdated, toRaw, getTransitionRawChildren, setTransitionHooks, resolveTransitionHooks, Text, isRuntimeOnly, createRenderer, createHydrationRenderer } from '@vue/runtime-core'; | ||
import { warn, h, BaseTransition, assertNumber, BaseTransitionPropsValidators, getCurrentInstance, onBeforeUpdate, queuePostFlushCb, onMounted, watch, onUnmounted, Fragment, Static, camelize, callWithAsyncErrorHandling, defineComponent, nextTick, unref, createVNode, useTransitionState, onUpdated, toRaw, getTransitionRawChildren, setTransitionHooks, resolveTransitionHooks, Text, isRuntimeOnly, createRenderer, createHydrationRenderer } from '@vue/runtime-core'; | ||
export * from '@vue/runtime-core'; | ||
import { extend, isObject, toNumber, isArray, isString, hyphenate, capitalize, includeBooleanAttr, isSymbol, isSpecialBooleanAttr, isFunction, NOOP, isOn, isModelListener, camelize as camelize$1, isPlainObject, hasOwn, EMPTY_OBJ, looseToNumber, looseIndexOf, isSet, looseEqual, invokeArrayFns, isHTMLTag, isSVGTag, isMathMLTag } from '@vue/shared'; | ||
import { extend, isObject, toNumber, isArray, NOOP, isString, hyphenate, capitalize, includeBooleanAttr, isSymbol, isSpecialBooleanAttr, isFunction, isOn, isModelListener, camelize as camelize$1, isPlainObject, hasOwn, EMPTY_OBJ, looseToNumber, looseIndexOf, isSet, looseEqual, invokeArrayFns, isHTMLTag, isSVGTag, isMathMLTag } from '@vue/shared'; | ||
@@ -172,3 +172,4 @@ let policy = void 0; | ||
} = baseProps; | ||
const finishEnter = (el, isAppear, done) => { | ||
const finishEnter = (el, isAppear, done, isCancelled) => { | ||
el._enterCancelled = isCancelled; | ||
removeTransitionClass(el, isAppear ? appearToClass : enterToClass); | ||
@@ -216,4 +217,9 @@ removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass); | ||
addTransitionClass(el, leaveFromClass); | ||
addTransitionClass(el, leaveActiveClass); | ||
forceReflow(); | ||
if (!el._enterCancelled) { | ||
forceReflow(); | ||
addTransitionClass(el, leaveActiveClass); | ||
} else { | ||
addTransitionClass(el, leaveActiveClass); | ||
forceReflow(); | ||
} | ||
nextFrame(() => { | ||
@@ -232,7 +238,7 @@ if (!el._isLeaving) { | ||
onEnterCancelled(el) { | ||
finishEnter(el, false); | ||
finishEnter(el, false, void 0, true); | ||
callHook(onEnterCancelled, [el]); | ||
}, | ||
onAppearCancelled(el) { | ||
finishEnter(el, true); | ||
finishEnter(el, true, void 0, true); | ||
callHook(onAppearCancelled, [el]); | ||
@@ -457,6 +463,7 @@ }, | ||
}; | ||
onBeforeMount(() => { | ||
watchPostEffect(setVars); | ||
onBeforeUpdate(() => { | ||
queuePostFlushCb(setVars); | ||
}); | ||
onMounted(() => { | ||
watch(setVars, NOOP, { flush: "post" }); | ||
const ob = new MutationObserver(setVars); | ||
@@ -1068,2 +1075,4 @@ ob.observe(instance.subTree.el.parentNode, { childList: true }); | ||
if (shouldReflect) { | ||
const ob = this._ob; | ||
ob && ob.disconnect(); | ||
if (val === true) { | ||
@@ -1076,2 +1085,3 @@ this.setAttribute(hyphenate(key), ""); | ||
} | ||
ob && ob.observe(this, { attributes: true }); | ||
} | ||
@@ -1078,0 +1088,0 @@ } |
{ | ||
"name": "@vue/runtime-dom", | ||
"version": "3.5.12", | ||
"version": "3.5.13", | ||
"description": "@vue/runtime-dom", | ||
@@ -53,5 +53,5 @@ "main": "index.js", | ||
"csstype": "^3.1.3", | ||
"@vue/shared": "3.5.12", | ||
"@vue/runtime-core": "3.5.12", | ||
"@vue/reactivity": "3.5.12" | ||
"@vue/shared": "3.5.13", | ||
"@vue/runtime-core": "3.5.13", | ||
"@vue/reactivity": "3.5.13" | ||
}, | ||
@@ -58,0 +58,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1168623
32066
+ Added@vue/reactivity@3.5.13(transitive)
+ Added@vue/runtime-core@3.5.13(transitive)
+ Added@vue/shared@3.5.13(transitive)
- Removed@vue/reactivity@3.5.12(transitive)
- Removed@vue/runtime-core@3.5.12(transitive)
- Removed@vue/shared@3.5.12(transitive)
Updated@vue/reactivity@3.5.13
Updated@vue/runtime-core@3.5.13
Updated@vue/shared@3.5.13