@vue/compat 3.6.0-rc.1 → 3.6.0-rc.3
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 +30 -7
- package/dist/vue.cjs.js +241 -95
- package/dist/vue.cjs.prod.js +207 -85
- package/dist/vue.esm-browser.js +239 -94
- package/dist/vue.esm-browser.prod.js +7 -6
- package/dist/vue.esm-bundler.js +261 -96
- package/dist/vue.global.js +239 -94
- package/dist/vue.global.prod.js +7 -6
- package/dist/vue.runtime.esm-browser.js +239 -94
- package/dist/vue.runtime.esm-browser.prod.js +7 -6
- package/dist/vue.runtime.esm-bundler.js +261 -96
- package/dist/vue.runtime.global.js +239 -94
- package/dist/vue.runtime.global.prod.js +7 -6
- package/package.json +3 -3
package/dist/vue-compat.d.ts
CHANGED
|
@@ -327,7 +327,12 @@ declare enum SchedulerJobFlags {
|
|
|
327
327
|
* stabilizes (#1727).
|
|
328
328
|
*/
|
|
329
329
|
ALLOW_RECURSE = 2,
|
|
330
|
-
DISPOSED = 4
|
|
330
|
+
DISPOSED = 4,
|
|
331
|
+
/**
|
|
332
|
+
* Requeue a Suspense effect if its pending branch is discarded.
|
|
333
|
+
* @internal
|
|
334
|
+
*/
|
|
335
|
+
REQUEUE_ON_SUSPENSE_DISCARD = 8
|
|
331
336
|
}
|
|
332
337
|
interface SchedulerJob extends Function {
|
|
333
338
|
order?: number;
|
|
@@ -785,7 +790,23 @@ declare function configureCompat(config: CompatConfig): void;
|
|
|
785
790
|
* ```
|
|
786
791
|
*/
|
|
787
792
|
interface ComponentCustomOptions {}
|
|
788
|
-
|
|
793
|
+
/**
|
|
794
|
+
* Registry for additional render result types.
|
|
795
|
+
*
|
|
796
|
+
* @example
|
|
797
|
+
* ```ts
|
|
798
|
+
* import type { VaporRenderResult } from 'vue'
|
|
799
|
+
*
|
|
800
|
+
* declare module 'vue' {
|
|
801
|
+
* interface RenderResultExtensions {
|
|
802
|
+
* vapor: VaporRenderResult
|
|
803
|
+
* }
|
|
804
|
+
* }
|
|
805
|
+
* ```
|
|
806
|
+
*/
|
|
807
|
+
interface RenderResultExtensions {}
|
|
808
|
+
type RenderResult = VNodeChild | RenderResultExtensions[keyof RenderResultExtensions] | RenderResult[];
|
|
809
|
+
type RenderFunction = () => RenderResult;
|
|
789
810
|
interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II, Provide>, ComponentInternalOptions, AsyncComponentInternalOptions, ComponentCustomOptions {
|
|
790
811
|
setup?: (this: void, props: LooseRequired<Props & Prettify<UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P">>>, ctx: SetupContext<E, S>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
|
|
791
812
|
name?: string;
|
|
@@ -1017,17 +1038,17 @@ interface AppConfig extends GenericAppConfig {
|
|
|
1017
1038
|
interface VaporInteropInterface {
|
|
1018
1039
|
mount(vnode: VNode, container: any, anchor: any, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, onBeforeMount?: () => void, onVnodeBeforeMount?: () => void): GenericComponentInstance;
|
|
1019
1040
|
update(n1: VNode, n2: VNode, shouldUpdate: boolean, onBeforeUpdate?: () => void, onVnodeBeforeUpdate?: () => void): void;
|
|
1020
|
-
unmount(vnode: VNode, doRemove
|
|
1021
|
-
move(vnode: VNode, container: any, anchor: any, moveType: MoveType): void;
|
|
1041
|
+
unmount(vnode: VNode, doRemove: boolean | undefined, parentSuspense: SuspenseBoundary | null): void;
|
|
1042
|
+
move(vnode: VNode, container: any, anchor: any, moveType: MoveType, parentSuspense: SuspenseBoundary | null): void;
|
|
1022
1043
|
slot(n1: VNode | null, n2: VNode, container: any, anchor: any, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null): void;
|
|
1023
1044
|
hydrate(vnode: VNode, node: any, container: any, anchor: any, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, onBeforeMount?: () => void, onVnodeBeforeMount?: () => void): Node;
|
|
1024
1045
|
hydrateSlot(vnode: VNode, node: any, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null): Node;
|
|
1025
|
-
activate(vnode: VNode, container: any, anchor: any, parentComponent: ComponentInternalInstance): void;
|
|
1026
|
-
deactivate(vnode: VNode, container: any): void;
|
|
1046
|
+
activate(vnode: VNode, container: any, anchor: any, parentComponent: ComponentInternalInstance, parentSuspense: SuspenseBoundary | null): void;
|
|
1047
|
+
deactivate(vnode: VNode, container: any, parentSuspense: SuspenseBoundary | null): void;
|
|
1027
1048
|
setTransitionHooks(component: ComponentInternalInstance, transition: TransitionHooks): void;
|
|
1028
1049
|
vdomMount: (component: ConcreteComponent, parentComponent: any, props?: any, slots?: any, once?: boolean) => any;
|
|
1029
1050
|
vdomUnmount: UnmountComponentFn;
|
|
1030
|
-
vdomSlot: (slots: any, name: string | (() => string), props: Record<string, any>, parentComponent: any, fallback?: any, once?: boolean, slotRoot?: boolean) => any;
|
|
1051
|
+
vdomSlot: (slots: any, name: string | (() => string), props: Record<string, any>, parentComponent: any, fallback?: any, once?: boolean, slotRoot?: boolean, sharedFallback?: boolean, inheritFallback?: boolean, adoptAnchor?: Node) => any;
|
|
1031
1052
|
vdomMountVNode: (vnode: VNode, parentComponent: any) => any;
|
|
1032
1053
|
}
|
|
1033
1054
|
/**
|
|
@@ -2001,8 +2022,10 @@ type VOnDirective = Directive<any, any, VOnModifiers>;
|
|
|
2001
2022
|
//#region packages/runtime-dom/src/directives/vModel.d.ts
|
|
2002
2023
|
type AssignerFn = (value: any) => void;
|
|
2003
2024
|
declare const assignKey: unique symbol;
|
|
2025
|
+
declare const initialValueKey: unique symbol;
|
|
2004
2026
|
type ModelDirective<T, Modifiers extends string = string> = ObjectDirective<T & {
|
|
2005
2027
|
[assignKey]: AssignerFn;
|
|
2028
|
+
[initialValueKey]?: string;
|
|
2006
2029
|
_assigning?: boolean;
|
|
2007
2030
|
}, any, Modifiers>;
|
|
2008
2031
|
declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement, "trim" | "number" | "lazy">;
|