@vue/runtime-core 3.5.21 → 3.5.22
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-core.cjs.js +30 -35
- package/dist/runtime-core.cjs.prod.js +25 -27
- package/dist/runtime-core.d.ts +10 -10
- package/dist/runtime-core.esm-bundler.js +30 -35
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -447,14 +447,11 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
447
447
|
let isHmrUpdating = false;
|
|
448
448
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
449
449
|
{
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
reload: tryWrap(reload)
|
|
456
|
-
};
|
|
457
|
-
}
|
|
450
|
+
shared.getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
451
|
+
createRecord: tryWrap(createRecord),
|
|
452
|
+
rerender: tryWrap(rerender),
|
|
453
|
+
reload: tryWrap(reload)
|
|
454
|
+
};
|
|
458
455
|
}
|
|
459
456
|
const map = /* @__PURE__ */ new Map();
|
|
460
457
|
function registerHMR(instance) {
|
|
@@ -821,9 +818,6 @@ const TeleportImpl = {
|
|
|
821
818
|
insert(mainAnchor, container, anchor);
|
|
822
819
|
const mount = (container2, anchor2) => {
|
|
823
820
|
if (shapeFlag & 16) {
|
|
824
|
-
if (parentComponent && parentComponent.isCE) {
|
|
825
|
-
parentComponent.ce._teleportTarget = container2;
|
|
826
|
-
}
|
|
827
821
|
mountChildren(
|
|
828
822
|
children,
|
|
829
823
|
container2,
|
|
@@ -845,6 +839,9 @@ const TeleportImpl = {
|
|
|
845
839
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
846
840
|
namespace = "mathml";
|
|
847
841
|
}
|
|
842
|
+
if (parentComponent && parentComponent.isCE) {
|
|
843
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
844
|
+
}
|
|
848
845
|
if (!disabled) {
|
|
849
846
|
mount(target, targetAnchor);
|
|
850
847
|
updateCssVars(n2, false);
|
|
@@ -3007,12 +3004,13 @@ function createSlots(slots, dynamicSlots) {
|
|
|
3007
3004
|
|
|
3008
3005
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
3009
3006
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
3007
|
+
const hasProps = Object.keys(props).length > 0;
|
|
3010
3008
|
if (name !== "default") props.name = name;
|
|
3011
3009
|
return openBlock(), createBlock(
|
|
3012
3010
|
Fragment,
|
|
3013
3011
|
null,
|
|
3014
3012
|
[createVNode("slot", props, fallback && fallback())],
|
|
3015
|
-
64
|
|
3013
|
+
hasProps ? -2 : 64
|
|
3016
3014
|
);
|
|
3017
3015
|
}
|
|
3018
3016
|
let slot = slots[name];
|
|
@@ -8187,31 +8185,28 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
8187
8185
|
};
|
|
8188
8186
|
|
|
8189
8187
|
function h(type, propsOrChildren, children) {
|
|
8190
|
-
|
|
8188
|
+
try {
|
|
8191
8189
|
setBlockTracking(-1);
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
if (isVNode(propsOrChildren)) {
|
|
8202
|
-
return doCreateVNode(type, null, [propsOrChildren]);
|
|
8190
|
+
const l = arguments.length;
|
|
8191
|
+
if (l === 2) {
|
|
8192
|
+
if (shared.isObject(propsOrChildren) && !shared.isArray(propsOrChildren)) {
|
|
8193
|
+
if (isVNode(propsOrChildren)) {
|
|
8194
|
+
return createVNode(type, null, [propsOrChildren]);
|
|
8195
|
+
}
|
|
8196
|
+
return createVNode(type, propsOrChildren);
|
|
8197
|
+
} else {
|
|
8198
|
+
return createVNode(type, null, propsOrChildren);
|
|
8203
8199
|
}
|
|
8204
|
-
return doCreateVNode(type, propsOrChildren);
|
|
8205
8200
|
} else {
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
children = [children];
|
|
8201
|
+
if (l > 3) {
|
|
8202
|
+
children = Array.prototype.slice.call(arguments, 2);
|
|
8203
|
+
} else if (l === 3 && isVNode(children)) {
|
|
8204
|
+
children = [children];
|
|
8205
|
+
}
|
|
8206
|
+
return createVNode(type, propsOrChildren, children);
|
|
8213
8207
|
}
|
|
8214
|
-
|
|
8208
|
+
} finally {
|
|
8209
|
+
setBlockTracking(1);
|
|
8215
8210
|
}
|
|
8216
8211
|
}
|
|
8217
8212
|
|
|
@@ -8421,7 +8416,7 @@ function isMemoSame(cached, memo) {
|
|
|
8421
8416
|
return true;
|
|
8422
8417
|
}
|
|
8423
8418
|
|
|
8424
|
-
const version = "3.5.
|
|
8419
|
+
const version = "3.5.22";
|
|
8425
8420
|
const warn = warn$1 ;
|
|
8426
8421
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8427
8422
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -414,9 +414,6 @@ const TeleportImpl = {
|
|
|
414
414
|
insert(mainAnchor, container, anchor);
|
|
415
415
|
const mount = (container2, anchor2) => {
|
|
416
416
|
if (shapeFlag & 16) {
|
|
417
|
-
if (parentComponent && parentComponent.isCE) {
|
|
418
|
-
parentComponent.ce._teleportTarget = container2;
|
|
419
|
-
}
|
|
420
417
|
mountChildren(
|
|
421
418
|
children,
|
|
422
419
|
container2,
|
|
@@ -438,6 +435,9 @@ const TeleportImpl = {
|
|
|
438
435
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
439
436
|
namespace = "mathml";
|
|
440
437
|
}
|
|
438
|
+
if (parentComponent && parentComponent.isCE) {
|
|
439
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
440
|
+
}
|
|
441
441
|
if (!disabled) {
|
|
442
442
|
mount(target, targetAnchor);
|
|
443
443
|
updateCssVars(n2, false);
|
|
@@ -2327,12 +2327,13 @@ function createSlots(slots, dynamicSlots) {
|
|
|
2327
2327
|
|
|
2328
2328
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
2329
2329
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
2330
|
+
const hasProps = Object.keys(props).length > 0;
|
|
2330
2331
|
if (name !== "default") props.name = name;
|
|
2331
2332
|
return openBlock(), createBlock(
|
|
2332
2333
|
Fragment,
|
|
2333
2334
|
null,
|
|
2334
2335
|
[createVNode("slot", props, fallback && fallback())],
|
|
2335
|
-
64
|
|
2336
|
+
hasProps ? -2 : 64
|
|
2336
2337
|
);
|
|
2337
2338
|
}
|
|
2338
2339
|
let slot = slots[name];
|
|
@@ -6504,31 +6505,28 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
6504
6505
|
};
|
|
6505
6506
|
|
|
6506
6507
|
function h(type, propsOrChildren, children) {
|
|
6507
|
-
|
|
6508
|
+
try {
|
|
6508
6509
|
setBlockTracking(-1);
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
if (isVNode(propsOrChildren)) {
|
|
6519
|
-
return doCreateVNode(type, null, [propsOrChildren]);
|
|
6510
|
+
const l = arguments.length;
|
|
6511
|
+
if (l === 2) {
|
|
6512
|
+
if (shared.isObject(propsOrChildren) && !shared.isArray(propsOrChildren)) {
|
|
6513
|
+
if (isVNode(propsOrChildren)) {
|
|
6514
|
+
return createVNode(type, null, [propsOrChildren]);
|
|
6515
|
+
}
|
|
6516
|
+
return createVNode(type, propsOrChildren);
|
|
6517
|
+
} else {
|
|
6518
|
+
return createVNode(type, null, propsOrChildren);
|
|
6520
6519
|
}
|
|
6521
|
-
return doCreateVNode(type, propsOrChildren);
|
|
6522
6520
|
} else {
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
children = [children];
|
|
6521
|
+
if (l > 3) {
|
|
6522
|
+
children = Array.prototype.slice.call(arguments, 2);
|
|
6523
|
+
} else if (l === 3 && isVNode(children)) {
|
|
6524
|
+
children = [children];
|
|
6525
|
+
}
|
|
6526
|
+
return createVNode(type, propsOrChildren, children);
|
|
6530
6527
|
}
|
|
6531
|
-
|
|
6528
|
+
} finally {
|
|
6529
|
+
setBlockTracking(1);
|
|
6532
6530
|
}
|
|
6533
6531
|
}
|
|
6534
6532
|
|
|
@@ -6564,7 +6562,7 @@ function isMemoSame(cached, memo) {
|
|
|
6564
6562
|
return true;
|
|
6565
6563
|
}
|
|
6566
6564
|
|
|
6567
|
-
const version = "3.5.
|
|
6565
|
+
const version = "3.5.22";
|
|
6568
6566
|
const warn$1 = shared.NOOP;
|
|
6569
6567
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6570
6568
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -397,17 +397,17 @@ return withDirectives(h(comp), [
|
|
|
397
397
|
])
|
|
398
398
|
*/
|
|
399
399
|
|
|
400
|
-
export interface DirectiveBinding<Value = any, Modifiers extends string = string, Arg
|
|
400
|
+
export interface DirectiveBinding<Value = any, Modifiers extends string = string, Arg = any> {
|
|
401
401
|
instance: ComponentPublicInstance | Record<string, any> | null;
|
|
402
402
|
value: Value;
|
|
403
403
|
oldValue: Value | null;
|
|
404
404
|
arg?: Arg;
|
|
405
405
|
modifiers: DirectiveModifiers<Modifiers>;
|
|
406
|
-
dir: ObjectDirective<any, Value>;
|
|
406
|
+
dir: ObjectDirective<any, Value, Modifiers, Arg>;
|
|
407
407
|
}
|
|
408
|
-
export type DirectiveHook<HostElement = any, Prev = VNode<any, HostElement> | null, Value = any, Modifiers extends string = string, Arg
|
|
409
|
-
type SSRDirectiveHook<Value = any, Modifiers extends string = string, Arg
|
|
410
|
-
export interface ObjectDirective<HostElement = any, Value = any, Modifiers extends string = string, Arg
|
|
408
|
+
export type DirectiveHook<HostElement = any, Prev = VNode<any, HostElement> | null, Value = any, Modifiers extends string = string, Arg = any> = (el: HostElement, binding: DirectiveBinding<Value, Modifiers, Arg>, vnode: VNode<any, HostElement>, prevVNode: Prev) => void;
|
|
409
|
+
type SSRDirectiveHook<Value = any, Modifiers extends string = string, Arg = any> = (binding: DirectiveBinding<Value, Modifiers, Arg>, vnode: VNode) => Data | undefined;
|
|
410
|
+
export interface ObjectDirective<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> {
|
|
411
411
|
created?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
|
|
412
412
|
beforeMount?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
|
|
413
413
|
mounted?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
|
|
@@ -418,10 +418,10 @@ export interface ObjectDirective<HostElement = any, Value = any, Modifiers exten
|
|
|
418
418
|
getSSRProps?: SSRDirectiveHook<Value, Modifiers, Arg>;
|
|
419
419
|
deep?: boolean;
|
|
420
420
|
}
|
|
421
|
-
export type FunctionDirective<HostElement = any, V = any, Modifiers extends string = string, Arg
|
|
422
|
-
export type Directive<HostElement = any, Value = any, Modifiers extends string = string, Arg
|
|
421
|
+
export type FunctionDirective<HostElement = any, V = any, Modifiers extends string = string, Arg = any> = DirectiveHook<HostElement, any, V, Modifiers, Arg>;
|
|
422
|
+
export type Directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> = ObjectDirective<HostElement, Value, Modifiers, Arg> | FunctionDirective<HostElement, Value, Modifiers, Arg>;
|
|
423
423
|
type DirectiveModifiers<K extends string = string> = Partial<Record<K, boolean>>;
|
|
424
|
-
export type DirectiveArguments = Array<[Directive | undefined] | [Directive | undefined, any] | [Directive | undefined, any,
|
|
424
|
+
export type DirectiveArguments = Array<[Directive | undefined] | [Directive | undefined, any] | [Directive | undefined, any, any] | [Directive | undefined, any, any, DirectiveModifiers]>;
|
|
425
425
|
/**
|
|
426
426
|
* Adds directives to a VNode.
|
|
427
427
|
*/
|
|
@@ -1025,8 +1025,8 @@ export interface App<HostElement = any> {
|
|
|
1025
1025
|
mixin(mixin: ComponentOptions): this;
|
|
1026
1026
|
component(name: string): Component | undefined;
|
|
1027
1027
|
component<T extends Component | DefineComponent>(name: string, component: T): this;
|
|
1028
|
-
directive<HostElement = any, Value = any, Modifiers extends string = string, Arg
|
|
1029
|
-
directive<HostElement = any, Value = any, Modifiers extends string = string, Arg
|
|
1028
|
+
directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any>(name: string): Directive<HostElement, Value, Modifiers, Arg> | undefined;
|
|
1029
|
+
directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any>(name: string, directive: Directive<HostElement, Value, Modifiers, Arg>): this;
|
|
1030
1030
|
mount(rootContainer: HostElement | string,
|
|
1031
1031
|
/**
|
|
1032
1032
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -450,14 +450,11 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
450
450
|
let isHmrUpdating = false;
|
|
451
451
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
452
452
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
reload: tryWrap(reload)
|
|
459
|
-
};
|
|
460
|
-
}
|
|
453
|
+
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
454
|
+
createRecord: tryWrap(createRecord),
|
|
455
|
+
rerender: tryWrap(rerender),
|
|
456
|
+
reload: tryWrap(reload)
|
|
457
|
+
};
|
|
461
458
|
}
|
|
462
459
|
const map = /* @__PURE__ */ new Map();
|
|
463
460
|
function registerHMR(instance) {
|
|
@@ -824,9 +821,6 @@ const TeleportImpl = {
|
|
|
824
821
|
insert(mainAnchor, container, anchor);
|
|
825
822
|
const mount = (container2, anchor2) => {
|
|
826
823
|
if (shapeFlag & 16) {
|
|
827
|
-
if (parentComponent && parentComponent.isCE) {
|
|
828
|
-
parentComponent.ce._teleportTarget = container2;
|
|
829
|
-
}
|
|
830
824
|
mountChildren(
|
|
831
825
|
children,
|
|
832
826
|
container2,
|
|
@@ -848,6 +842,9 @@ const TeleportImpl = {
|
|
|
848
842
|
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
849
843
|
namespace = "mathml";
|
|
850
844
|
}
|
|
845
|
+
if (parentComponent && parentComponent.isCE) {
|
|
846
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
847
|
+
}
|
|
851
848
|
if (!disabled) {
|
|
852
849
|
mount(target, targetAnchor);
|
|
853
850
|
updateCssVars(n2, false);
|
|
@@ -3025,12 +3022,13 @@ function createSlots(slots, dynamicSlots) {
|
|
|
3025
3022
|
|
|
3026
3023
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
3027
3024
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
3025
|
+
const hasProps = Object.keys(props).length > 0;
|
|
3028
3026
|
if (name !== "default") props.name = name;
|
|
3029
3027
|
return openBlock(), createBlock(
|
|
3030
3028
|
Fragment,
|
|
3031
3029
|
null,
|
|
3032
3030
|
[createVNode("slot", props, fallback && fallback())],
|
|
3033
|
-
64
|
|
3031
|
+
hasProps ? -2 : 64
|
|
3034
3032
|
);
|
|
3035
3033
|
}
|
|
3036
3034
|
let slot = slots[name];
|
|
@@ -8261,31 +8259,28 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
8261
8259
|
};
|
|
8262
8260
|
|
|
8263
8261
|
function h(type, propsOrChildren, children) {
|
|
8264
|
-
|
|
8262
|
+
try {
|
|
8265
8263
|
setBlockTracking(-1);
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
if (isVNode(propsOrChildren)) {
|
|
8276
|
-
return doCreateVNode(type, null, [propsOrChildren]);
|
|
8264
|
+
const l = arguments.length;
|
|
8265
|
+
if (l === 2) {
|
|
8266
|
+
if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
|
|
8267
|
+
if (isVNode(propsOrChildren)) {
|
|
8268
|
+
return createVNode(type, null, [propsOrChildren]);
|
|
8269
|
+
}
|
|
8270
|
+
return createVNode(type, propsOrChildren);
|
|
8271
|
+
} else {
|
|
8272
|
+
return createVNode(type, null, propsOrChildren);
|
|
8277
8273
|
}
|
|
8278
|
-
return doCreateVNode(type, propsOrChildren);
|
|
8279
8274
|
} else {
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
children = [children];
|
|
8275
|
+
if (l > 3) {
|
|
8276
|
+
children = Array.prototype.slice.call(arguments, 2);
|
|
8277
|
+
} else if (l === 3 && isVNode(children)) {
|
|
8278
|
+
children = [children];
|
|
8279
|
+
}
|
|
8280
|
+
return createVNode(type, propsOrChildren, children);
|
|
8287
8281
|
}
|
|
8288
|
-
|
|
8282
|
+
} finally {
|
|
8283
|
+
setBlockTracking(1);
|
|
8289
8284
|
}
|
|
8290
8285
|
}
|
|
8291
8286
|
|
|
@@ -8495,7 +8490,7 @@ function isMemoSame(cached, memo) {
|
|
|
8495
8490
|
return true;
|
|
8496
8491
|
}
|
|
8497
8492
|
|
|
8498
|
-
const version = "3.5.
|
|
8493
|
+
const version = "3.5.22";
|
|
8499
8494
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8500
8495
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8501
8496
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.22",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.5.
|
|
50
|
-
"@vue/reactivity": "3.5.
|
|
49
|
+
"@vue/shared": "3.5.22",
|
|
50
|
+
"@vue/reactivity": "3.5.22"
|
|
51
51
|
}
|
|
52
52
|
}
|