@vue/compat 3.6.0-rc.11 → 3.6.0-rc.13
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/vue-compat.d.ts +33 -2
- package/dist/vue.cjs.js +345 -118
- package/dist/vue.cjs.prod.js +379 -117
- package/dist/vue.esm-browser.js +342 -117
- package/dist/vue.esm-browser.prod.js +7 -7
- package/dist/vue.esm-bundler.js +369 -130
- package/dist/vue.global.js +341 -116
- package/dist/vue.global.prod.js +7 -7
- package/dist/vue.runtime.esm-browser.js +342 -117
- package/dist/vue.runtime.esm-browser.prod.js +7 -7
- package/dist/vue.runtime.esm-bundler.js +369 -130
- package/dist/vue.runtime.global.js +341 -116
- package/dist/vue.runtime.global.prod.js +7 -7
- package/package.json +4 -4
package/dist/vue-compat.d.ts
CHANGED
|
@@ -27,6 +27,16 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
|
|
|
27
27
|
type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P]; };
|
|
28
28
|
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
29
29
|
//#endregion
|
|
30
|
+
//#region packages/shared/src/vaporFlags.d.ts
|
|
31
|
+
/**
|
|
32
|
+
* `isSingleRoot` of a component creation call for the single root of a slot
|
|
33
|
+
* body (`true` marks the single root of a component template). See
|
|
34
|
+
* resolveFallthroughOwner in runtime-vapor.
|
|
35
|
+
*/
|
|
36
|
+
declare enum VaporSingleRoot {
|
|
37
|
+
SLOT = 2
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
30
40
|
//#region packages/reactivity/src/constants.d.ts
|
|
31
41
|
declare enum TrackOpTypes {
|
|
32
42
|
GET = "get",
|
|
@@ -344,8 +354,9 @@ interface SchedulerJob extends Function {
|
|
|
344
354
|
/**
|
|
345
355
|
* Attached by renderer.ts when setting up a component's render effect
|
|
346
356
|
* Used to obtain component information when reporting max recursive updates.
|
|
357
|
+
* Also set on watcher jobs: null marks a watcher without an owner component.
|
|
347
358
|
*/
|
|
348
|
-
i?: GenericComponentInstance;
|
|
359
|
+
i?: GenericComponentInstance | null;
|
|
349
360
|
}
|
|
350
361
|
declare function nextTick(): Promise<void>;
|
|
351
362
|
declare function nextTick<T, R>(this: T, fn: (this: T) => R | Promise<R>): Promise<R>;
|
|
@@ -656,6 +667,12 @@ interface TransitionHooks<HostElement = RendererElement> {
|
|
|
656
667
|
delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void;
|
|
657
668
|
delayedLeave?(): void;
|
|
658
669
|
}
|
|
670
|
+
interface TransitionState {
|
|
671
|
+
isMounted: boolean;
|
|
672
|
+
isLeaving: boolean;
|
|
673
|
+
isUnmounting: boolean;
|
|
674
|
+
leavingNodes: Map<any, Record<string, any>>;
|
|
675
|
+
}
|
|
659
676
|
//#endregion
|
|
660
677
|
//#region packages/runtime-core/src/renderer.d.ts
|
|
661
678
|
type ElementNamespace = "svg" | "mathml" | undefined;
|
|
@@ -1053,6 +1070,12 @@ interface VaporInVdomInterface {
|
|
|
1053
1070
|
* Transition can leave.
|
|
1054
1071
|
*/
|
|
1055
1072
|
hasTransitionChild(vnode: VNode): boolean;
|
|
1073
|
+
getTransitionElement(vnode: VNode): RendererElement | undefined;
|
|
1074
|
+
/**
|
|
1075
|
+
* Re-resolves the hooks of the rows a mounted vapor slot renders under a
|
|
1076
|
+
* TransitionGroup (`vnode.vs.group`) and hands over their elements.
|
|
1077
|
+
*/
|
|
1078
|
+
forEachGroupChild(vnode: VNode, cb: (el: RendererElement) => void): void;
|
|
1056
1079
|
applyCssVars(vnode: VNode, vars: Record<string, string>): void;
|
|
1057
1080
|
/**
|
|
1058
1081
|
* Hands the fallback of a vdom outlet over to the vapor slot its content
|
|
@@ -1081,7 +1104,7 @@ interface VdomSlotOptions {
|
|
|
1081
1104
|
interface VdomInVaporInterface {
|
|
1082
1105
|
mount: (component: ConcreteComponent, parentComponent: any, props?: any, slots?: any, once?: boolean, inputScope?: EffectScope) => any;
|
|
1083
1106
|
slot: (slots: any, name: string | (() => string), props: Record<string, any>, parentComponent: any, options?: VdomSlotOptions) => any;
|
|
1084
|
-
mountVNode: (vnode: VNode, parentComponent: any, isSingleRoot?: boolean, rawProps?: any, once?: boolean) => any;
|
|
1107
|
+
mountVNode: (vnode: VNode, parentComponent: any, isSingleRoot?: boolean | VaporSingleRoot, rawProps?: any, once?: boolean) => any;
|
|
1085
1108
|
}
|
|
1086
1109
|
/**
|
|
1087
1110
|
* Minimal app context shared between vdom and vapor
|
|
@@ -1335,7 +1358,15 @@ interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraPro
|
|
|
1335
1358
|
*/
|
|
1336
1359
|
vs?: {
|
|
1337
1360
|
slot: (props: any) => any;
|
|
1361
|
+
name: string;
|
|
1338
1362
|
outlets?: readonly VdomSlotOutlet[];
|
|
1363
|
+
props?: Data;
|
|
1364
|
+
attrs?: Data;
|
|
1365
|
+
group?: {
|
|
1366
|
+
props: BaseTransitionProps<any>;
|
|
1367
|
+
state: TransitionState;
|
|
1368
|
+
instance: GenericComponentInstance;
|
|
1369
|
+
};
|
|
1339
1370
|
state?: unknown;
|
|
1340
1371
|
ref?: ShallowRef<any>;
|
|
1341
1372
|
scope?: EffectScope;
|