@vue/runtime-dom 3.5.0 → 3.5.1
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 +16 -8
- package/dist/runtime-dom.cjs.prod.js +16 -8
- package/dist/runtime-dom.d.ts +4 -0
- package/dist/runtime-dom.esm-browser.js +26 -15
- package/dist/runtime-dom.esm-browser.prod.js +2 -2
- package/dist/runtime-dom.esm-bundler.js +17 -9
- package/dist/runtime-dom.global.js +26 -15
- package/dist/runtime-dom.global.prod.js +2 -2
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -94,8 +94,6 @@ const nodeOps = {
|
|
|
94
94
|
const TRANSITION = "transition";
|
|
95
95
|
const ANIMATION = "animation";
|
|
96
96
|
const vtcKey = Symbol("_vtc");
|
|
97
|
-
const Transition = (props, { slots }) => runtimeCore.h(runtimeCore.BaseTransition, resolveTransitionProps(props), slots);
|
|
98
|
-
Transition.displayName = "Transition";
|
|
99
97
|
const DOMTransitionPropsValidators = {
|
|
100
98
|
name: String,
|
|
101
99
|
type: String,
|
|
@@ -114,11 +112,19 @@ const DOMTransitionPropsValidators = {
|
|
|
114
112
|
leaveActiveClass: String,
|
|
115
113
|
leaveToClass: String
|
|
116
114
|
};
|
|
117
|
-
const TransitionPropsValidators =
|
|
115
|
+
const TransitionPropsValidators = /* @__PURE__ */ shared.extend(
|
|
118
116
|
{},
|
|
119
117
|
runtimeCore.BaseTransitionPropsValidators,
|
|
120
118
|
DOMTransitionPropsValidators
|
|
121
119
|
);
|
|
120
|
+
const decorate$1 = (t) => {
|
|
121
|
+
t.displayName = "Transition";
|
|
122
|
+
t.props = TransitionPropsValidators;
|
|
123
|
+
return t;
|
|
124
|
+
};
|
|
125
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
126
|
+
(props, { slots }) => runtimeCore.h(runtimeCore.BaseTransition, resolveTransitionProps(props), slots)
|
|
127
|
+
);
|
|
122
128
|
const callHook = (hook, args = []) => {
|
|
123
129
|
if (shared.isArray(hook)) {
|
|
124
130
|
hook.forEach((h2) => h2(...args));
|
|
@@ -1188,7 +1194,11 @@ const positionMap = /* @__PURE__ */ new WeakMap();
|
|
|
1188
1194
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
1189
1195
|
const moveCbKey = Symbol("_moveCb");
|
|
1190
1196
|
const enterCbKey = Symbol("_enterCb");
|
|
1191
|
-
const
|
|
1197
|
+
const decorate = (t) => {
|
|
1198
|
+
delete t.props.mode;
|
|
1199
|
+
return t;
|
|
1200
|
+
};
|
|
1201
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
1192
1202
|
name: "TransitionGroup",
|
|
1193
1203
|
props: /* @__PURE__ */ shared.extend({}, TransitionPropsValidators, {
|
|
1194
1204
|
tag: String,
|
|
@@ -1274,9 +1284,7 @@ const TransitionGroupImpl = {
|
|
|
1274
1284
|
return runtimeCore.createVNode(tag, null, children);
|
|
1275
1285
|
};
|
|
1276
1286
|
}
|
|
1277
|
-
};
|
|
1278
|
-
const removeMode = (props) => delete props.mode;
|
|
1279
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
1287
|
+
});
|
|
1280
1288
|
const TransitionGroup = TransitionGroupImpl;
|
|
1281
1289
|
function callPendingCbs(c) {
|
|
1282
1290
|
const el = c.el;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -93,8 +93,6 @@ const nodeOps = {
|
|
|
93
93
|
const TRANSITION = "transition";
|
|
94
94
|
const ANIMATION = "animation";
|
|
95
95
|
const vtcKey = Symbol("_vtc");
|
|
96
|
-
const Transition = (props, { slots }) => runtimeCore.h(runtimeCore.BaseTransition, resolveTransitionProps(props), slots);
|
|
97
|
-
Transition.displayName = "Transition";
|
|
98
96
|
const DOMTransitionPropsValidators = {
|
|
99
97
|
name: String,
|
|
100
98
|
type: String,
|
|
@@ -113,11 +111,19 @@ const DOMTransitionPropsValidators = {
|
|
|
113
111
|
leaveActiveClass: String,
|
|
114
112
|
leaveToClass: String
|
|
115
113
|
};
|
|
116
|
-
const TransitionPropsValidators =
|
|
114
|
+
const TransitionPropsValidators = /* @__PURE__ */ shared.extend(
|
|
117
115
|
{},
|
|
118
116
|
runtimeCore.BaseTransitionPropsValidators,
|
|
119
117
|
DOMTransitionPropsValidators
|
|
120
118
|
);
|
|
119
|
+
const decorate$1 = (t) => {
|
|
120
|
+
t.displayName = "Transition";
|
|
121
|
+
t.props = TransitionPropsValidators;
|
|
122
|
+
return t;
|
|
123
|
+
};
|
|
124
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
125
|
+
(props, { slots }) => runtimeCore.h(runtimeCore.BaseTransition, resolveTransitionProps(props), slots)
|
|
126
|
+
);
|
|
121
127
|
const callHook = (hook, args = []) => {
|
|
122
128
|
if (shared.isArray(hook)) {
|
|
123
129
|
hook.forEach((h2) => h2(...args));
|
|
@@ -1095,7 +1101,11 @@ const positionMap = /* @__PURE__ */ new WeakMap();
|
|
|
1095
1101
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
1096
1102
|
const moveCbKey = Symbol("_moveCb");
|
|
1097
1103
|
const enterCbKey = Symbol("_enterCb");
|
|
1098
|
-
const
|
|
1104
|
+
const decorate = (t) => {
|
|
1105
|
+
delete t.props.mode;
|
|
1106
|
+
return t;
|
|
1107
|
+
};
|
|
1108
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
1099
1109
|
name: "TransitionGroup",
|
|
1100
1110
|
props: /* @__PURE__ */ shared.extend({}, TransitionPropsValidators, {
|
|
1101
1111
|
tag: String,
|
|
@@ -1179,9 +1189,7 @@ const TransitionGroupImpl = {
|
|
|
1179
1189
|
return runtimeCore.createVNode(tag, null, children);
|
|
1180
1190
|
};
|
|
1181
1191
|
}
|
|
1182
|
-
};
|
|
1183
|
-
const removeMode = (props) => delete props.mode;
|
|
1184
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
1192
|
+
});
|
|
1185
1193
|
const TransitionGroup = TransitionGroupImpl;
|
|
1186
1194
|
function callPendingCbs(c) {
|
|
1187
1195
|
const el = c.el;
|
package/dist/runtime-dom.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export interface TransitionProps extends BaseTransitionProps<Element> {
|
|
|
23
23
|
leaveActiveClass?: string;
|
|
24
24
|
leaveToClass?: string;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* DOM Transition is a higher-order-component based on the platform-agnostic
|
|
28
|
+
* base Transition component, with DOM-specific logic.
|
|
29
|
+
*/
|
|
26
30
|
export declare const Transition: FunctionalComponent<TransitionProps>;
|
|
27
31
|
|
|
28
32
|
export type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -975,7 +975,7 @@ const arrayInstrumentations = {
|
|
|
975
975
|
},
|
|
976
976
|
concat(...args) {
|
|
977
977
|
return reactiveReadArray(this).concat(
|
|
978
|
-
...args.map((x) => reactiveReadArray(x))
|
|
978
|
+
...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
|
|
979
979
|
);
|
|
980
980
|
},
|
|
981
981
|
entries() {
|
|
@@ -3301,7 +3301,9 @@ const BaseTransitionImpl = {
|
|
|
3301
3301
|
// #11061, ensure enterHooks is fresh after clone
|
|
3302
3302
|
(hooks) => enterHooks = hooks
|
|
3303
3303
|
);
|
|
3304
|
-
|
|
3304
|
+
if (innerChild.type !== Comment) {
|
|
3305
|
+
setTransitionHooks(innerChild, enterHooks);
|
|
3306
|
+
}
|
|
3305
3307
|
const oldChild = instance.subTree;
|
|
3306
3308
|
const oldInnerChild = oldChild && getInnerChild$1(oldChild);
|
|
3307
3309
|
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
|
|
@@ -3624,10 +3626,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3624
3626
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
3625
3627
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
3626
3628
|
const setupState = owner.setupState;
|
|
3629
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
|
|
3627
3630
|
if (oldRef != null && oldRef !== ref) {
|
|
3628
3631
|
if (isString(oldRef)) {
|
|
3629
3632
|
refs[oldRef] = null;
|
|
3630
|
-
if (
|
|
3633
|
+
if (canSetSetupRef(oldRef)) {
|
|
3631
3634
|
setupState[oldRef] = null;
|
|
3632
3635
|
}
|
|
3633
3636
|
} else if (isRef(oldRef)) {
|
|
@@ -3642,14 +3645,14 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3642
3645
|
if (_isString || _isRef) {
|
|
3643
3646
|
const doSet = () => {
|
|
3644
3647
|
if (rawRef.f) {
|
|
3645
|
-
const existing = _isString ?
|
|
3648
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
3646
3649
|
if (isUnmount) {
|
|
3647
3650
|
isArray(existing) && remove(existing, refValue);
|
|
3648
3651
|
} else {
|
|
3649
3652
|
if (!isArray(existing)) {
|
|
3650
3653
|
if (_isString) {
|
|
3651
3654
|
refs[ref] = [refValue];
|
|
3652
|
-
if (
|
|
3655
|
+
if (canSetSetupRef(ref)) {
|
|
3653
3656
|
setupState[ref] = refs[ref];
|
|
3654
3657
|
}
|
|
3655
3658
|
} else {
|
|
@@ -3662,7 +3665,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3662
3665
|
}
|
|
3663
3666
|
} else if (_isString) {
|
|
3664
3667
|
refs[ref] = value;
|
|
3665
|
-
if (
|
|
3668
|
+
if (canSetSetupRef(ref)) {
|
|
3666
3669
|
setupState[ref] = value;
|
|
3667
3670
|
}
|
|
3668
3671
|
} else if (_isRef) {
|
|
@@ -10360,7 +10363,7 @@ function isMemoSame(cached, memo) {
|
|
|
10360
10363
|
return true;
|
|
10361
10364
|
}
|
|
10362
10365
|
|
|
10363
|
-
const version = "3.5.
|
|
10366
|
+
const version = "3.5.1";
|
|
10364
10367
|
const warn = warn$1 ;
|
|
10365
10368
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10366
10369
|
const devtools = devtools$1 ;
|
|
@@ -10464,8 +10467,6 @@ const nodeOps = {
|
|
|
10464
10467
|
const TRANSITION = "transition";
|
|
10465
10468
|
const ANIMATION = "animation";
|
|
10466
10469
|
const vtcKey = Symbol("_vtc");
|
|
10467
|
-
const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
|
|
10468
|
-
Transition.displayName = "Transition";
|
|
10469
10470
|
const DOMTransitionPropsValidators = {
|
|
10470
10471
|
name: String,
|
|
10471
10472
|
type: String,
|
|
@@ -10484,11 +10485,19 @@ const DOMTransitionPropsValidators = {
|
|
|
10484
10485
|
leaveActiveClass: String,
|
|
10485
10486
|
leaveToClass: String
|
|
10486
10487
|
};
|
|
10487
|
-
const TransitionPropsValidators =
|
|
10488
|
+
const TransitionPropsValidators = /* @__PURE__ */ extend(
|
|
10488
10489
|
{},
|
|
10489
10490
|
BaseTransitionPropsValidators,
|
|
10490
10491
|
DOMTransitionPropsValidators
|
|
10491
10492
|
);
|
|
10493
|
+
const decorate$1 = (t) => {
|
|
10494
|
+
t.displayName = "Transition";
|
|
10495
|
+
t.props = TransitionPropsValidators;
|
|
10496
|
+
return t;
|
|
10497
|
+
};
|
|
10498
|
+
const Transition = /* @__PURE__ */ decorate$1(
|
|
10499
|
+
(props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)
|
|
10500
|
+
);
|
|
10492
10501
|
const callHook = (hook, args = []) => {
|
|
10493
10502
|
if (isArray(hook)) {
|
|
10494
10503
|
hook.forEach((h2) => h2(...args));
|
|
@@ -11624,7 +11633,11 @@ const positionMap = /* @__PURE__ */ new WeakMap();
|
|
|
11624
11633
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
11625
11634
|
const moveCbKey = Symbol("_moveCb");
|
|
11626
11635
|
const enterCbKey = Symbol("_enterCb");
|
|
11627
|
-
const
|
|
11636
|
+
const decorate = (t) => {
|
|
11637
|
+
delete t.props.mode;
|
|
11638
|
+
return t;
|
|
11639
|
+
};
|
|
11640
|
+
const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
11628
11641
|
name: "TransitionGroup",
|
|
11629
11642
|
props: /* @__PURE__ */ extend({}, TransitionPropsValidators, {
|
|
11630
11643
|
tag: String,
|
|
@@ -11710,9 +11723,7 @@ const TransitionGroupImpl = {
|
|
|
11710
11723
|
return createVNode(tag, null, children);
|
|
11711
11724
|
};
|
|
11712
11725
|
}
|
|
11713
|
-
};
|
|
11714
|
-
const removeMode = (props) => delete props.mode;
|
|
11715
|
-
/* @__PURE__ */ removeMode(TransitionGroupImpl.props);
|
|
11726
|
+
});
|
|
11716
11727
|
const TransitionGroup = TransitionGroupImpl;
|
|
11717
11728
|
function callPendingCbs(c) {
|
|
11718
11729
|
const el = c.el;
|