@vue/runtime-core
Advanced tools
Comparing version 3.0.0-rc.10 to 3.0.0-rc.11
@@ -147,3 +147,3 @@ import { camelize } from '@vue/shared'; | ||
export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: Data & VNodeProps | null): VNode<T, U>; | ||
export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: Data & VNodeProps | null, mergeRef?: boolean): VNode<T, U>; | ||
@@ -162,3 +162,3 @@ declare const Comment_2: unique symbol; | ||
*/ | ||
export declare type Component = ConcreteComponent | ComponentPublicInstanceConstructor; | ||
export declare type Component<Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ConcreteComponent<Props, RawBindings, D, C, M> | ComponentPublicInstanceConstructor<Props>; | ||
@@ -219,3 +219,3 @@ /** | ||
declare type ComponentInjectOptions = string[] | Record<string | symbol, string | symbol | { | ||
from: string | symbol; | ||
from?: string | symbol; | ||
default?: unknown; | ||
@@ -256,3 +256,3 @@ }>; | ||
/* Excluded from this release type: emitsOptions */ | ||
/* Excluded from this release type: proxy */ | ||
proxy: ComponentPublicInstance | null; | ||
/* Excluded from this release type: withProxy */ | ||
@@ -271,2 +271,3 @@ /* Excluded from this release type: ctx */ | ||
/* Excluded from this release type: suspense */ | ||
/* Excluded from this release type: suspenseId */ | ||
/* Excluded from this release type: asyncDep */ | ||
@@ -308,6 +309,6 @@ /* Excluded from this release type: asyncResolved */ | ||
export declare type ComponentOptions = ComponentOptionsWithoutProps<any, any, any, any, any> | ComponentOptionsWithObjectProps<any, any, any, any, any> | ComponentOptionsWithArrayProps<any, any, any, any, any>; | ||
export declare type ComponentOptions<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = any, M extends MethodOptions = any, Mixin extends ComponentOptionsMixin = any, Extends extends ComponentOptionsMixin = any, E extends EmitsOptions = any> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E> & ThisType<CreateComponentPublicInstance<{}, RawBindings, D, C, M, Mixin, Extends, E, Readonly<Props>>>; | ||
export declare interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string> extends LegacyOptions<Props, D, C, M, Mixin, Extends>, ComponentInternalOptions, ComponentCustomOptions { | ||
setup?: (this: void, props: Props, ctx: SetupContext<E>) => RawBindings | RenderFunction | void; | ||
setup?: (this: void, props: Props, ctx: SetupContext<E>) => Promise<RawBindings> | RawBindings | RenderFunction | void; | ||
name?: string; | ||
@@ -368,3 +369,3 @@ template?: string | object; | ||
declare type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance = ComponentPublicInstance<any>> = { | ||
declare type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = { | ||
__isFragment?: never; | ||
@@ -393,3 +394,3 @@ __isTeleport?: never; | ||
*/ | ||
export declare type ConcreteComponent = ComponentOptions | FunctionalComponent<any, any>; | ||
export declare type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, any>; | ||
@@ -457,2 +458,4 @@ declare interface Constructor<P = any> { | ||
declare function createSuspenseBoundary(vnode: VNode, parent: SuspenseBoundary | null, parentComponent: ComponentInternalInstance | null, container: RendererElement, hiddenContainer: RendererElement, anchor: RendererNode | null, isSVG: boolean, optimized: boolean, rendererInternals: RendererInternals, isHydrating?: boolean): SuspenseBoundary; | ||
/** | ||
@@ -480,11 +483,13 @@ * @private | ||
export declare function defineComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Props, RawBindings, {}, {}, {}, {}, {}, {}, VNodeProps & Props & AllowedComponentProps & ComponentCustomProps>> & FunctionalComponent<Props>; | ||
export declare type DefineComponent<PropsOrPropOptions = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string, PP = PublicProps, RequiredProps = Readonly<ExtractPropTypes<PropsOrPropOptions>>, OptionalProps = Readonly<ExtractPropTypes<PropsOrPropOptions, false>>> = ComponentPublicInstanceConstructor<CreateComponentPublicInstance<OptionalProps, RawBindings, D, C, M, Mixin, Extends, E, PP & OptionalProps> & RequiredProps> & ComponentOptionsBase<RequiredProps, RawBindings, D, C, M, Mixin, Extends, E, EE> & PP; | ||
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>): ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, VNodeProps & Props & AllowedComponentProps & ComponentCustomProps>> & ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>; | ||
export declare function defineComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): DefineComponent<Props, RawBindings>; | ||
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>): ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Readonly<{ | ||
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>; | ||
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Readonly<{ | ||
[key in PropNames]?: any; | ||
}>, RawBindings, D, C, M, Mixin, Extends, E, AllowedComponentProps & ComponentCustomProps>> & ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>; | ||
}>, RawBindings, D, C, M, Mixin, Extends, E, EE>; | ||
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>): ComponentPublicInstanceConstructor<CreateComponentPublicInstance<ExtractPropTypes<PropsOptions, false>, RawBindings, D, C, M, Mixin, Extends, E, VNodeProps & AllowedComponentProps & ComponentCustomProps> & Readonly<ExtractPropTypes<PropsOptions>>> & ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>; | ||
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>; | ||
@@ -605,4 +610,6 @@ export declare let devtools: DevtoolsHook; | ||
export declare function h<T extends ComponentOptions | FunctionalComponent<{}>>(type: T, props?: RawProps | null, children?: RawChildren | RawSlots): VNode; | ||
export declare function h(type: Component, props: null, children?: RawChildren | RawSlots): VNode; | ||
export declare function h<P>(type: ComponentOptions<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode; | ||
export declare function h(type: Constructor, children?: RawChildren): VNode; | ||
@@ -612,2 +619,6 @@ | ||
export declare function h(type: DefineComponent, children?: RawChildren): VNode; | ||
export declare function h<P>(type: DefineComponent<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode; | ||
export declare function handleError(err: unknown, instance: ComponentInternalInstance | null, type: ErrorTypes): void; | ||
@@ -639,4 +650,6 @@ | ||
export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T): T; | ||
export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T, treatDefaultAsFactory?: false): T; | ||
export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T | (() => T), treatDefaultAsFactory: true): T; | ||
export declare interface InjectionKey<T> extends Symbol { | ||
@@ -694,3 +707,7 @@ } | ||
deactivated?(): void; | ||
/** @deprecated use `beforeUnmount` instead */ | ||
beforeDestroy?(): void; | ||
beforeUnmount?(): void; | ||
/** @deprecated use `unmounted` instead */ | ||
destroyed?(): void; | ||
unmounted?(): void; | ||
@@ -767,7 +784,2 @@ renderTracked?: DebuggerHook; | ||
declare function normalizeSuspenseChildren(vnode: VNode): { | ||
content: VNode; | ||
fallback: VNode; | ||
}; | ||
declare function normalizeVNode(child: VNodeChild): VNode; | ||
@@ -891,2 +903,4 @@ | ||
declare type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps; | ||
/** | ||
@@ -904,5 +918,3 @@ * @private | ||
[Symbol.iterator]?: never; | ||
} & { | ||
[key: string]: any; | ||
}; | ||
} & Record<string, any>; | ||
@@ -1036,3 +1048,3 @@ declare type RawSlots = { | ||
export declare function resolveTransitionHooks(vnode: VNode, { appear, persisted, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled }: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks; | ||
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks; | ||
@@ -1115,11 +1127,13 @@ export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: Element) => void; | ||
anchor: RendererNode | null; | ||
subTree: VNode; | ||
fallbackTree: VNode; | ||
activeBranch: VNode | null; | ||
pendingBranch: VNode | null; | ||
deps: number; | ||
pendingId: number; | ||
timeout: number; | ||
isInFallback: boolean; | ||
isHydrating: boolean; | ||
isResolved: boolean; | ||
isUnmounted: boolean; | ||
effects: Function[]; | ||
resolve(): void; | ||
recede(): void; | ||
resolve(force?: boolean): void; | ||
fallback(fallbackVNode: VNode): void; | ||
move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void; | ||
@@ -1135,2 +1149,3 @@ next(): RendererNode | null; | ||
hydrate: typeof hydrateSuspense; | ||
create: typeof createSuspenseBoundary; | ||
}; | ||
@@ -1140,3 +1155,5 @@ | ||
onResolve?: () => void; | ||
onRecede?: () => void; | ||
onPending?: () => void; | ||
onFallback?: () => void; | ||
timeout?: string | number; | ||
} | ||
@@ -1196,2 +1213,3 @@ | ||
export declare interface TransitionHooks<HostElement extends RendererElement = RendererElement> { | ||
mode: BaseTransitionProps['mode']; | ||
persisted: boolean; | ||
@@ -1201,2 +1219,3 @@ beforeEnter(el: HostElement): void; | ||
leave(el: HostElement, remove: () => void): void; | ||
clone(vnode: VNode): TransitionHooks<HostElement>; | ||
afterLeave?(): void; | ||
@@ -1244,3 +1263,2 @@ delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void; | ||
component: ComponentInternalInstance | null; | ||
suspense: SuspenseBoundary | null; | ||
dirs: DirectiveBinding[] | null; | ||
@@ -1253,2 +1271,5 @@ transition: TransitionHooks<HostElement> | null; | ||
staticCount: number; | ||
suspense: SuspenseBoundary | null; | ||
ssContent: VNode | null; | ||
ssFallback: VNode | null; | ||
shapeFlag: number; | ||
@@ -1273,4 +1294,9 @@ patchFlag: number; | ||
declare type VNodeNormalizedRef = [ComponentInternalInstance, VNodeRef]; | ||
declare type VNodeNormalizedRef = VNodeNormalizedRefAtom | (VNodeNormalizedRefAtom)[]; | ||
declare type VNodeNormalizedRefAtom = { | ||
i: ComponentInternalInstance; | ||
r: VNodeRef; | ||
}; | ||
export declare type VNodeProps = { | ||
@@ -1277,0 +1303,0 @@ key?: string | number; |
{ | ||
"name": "@vue/runtime-core", | ||
"version": "3.0.0-rc.10", | ||
"version": "3.0.0-rc.11", | ||
"description": "@vue/runtime-core", | ||
@@ -35,5 +35,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.0.0-rc.10", | ||
"@vue/reactivity": "3.0.0-rc.10" | ||
"@vue/shared": "3.0.0-rc.11", | ||
"@vue/reactivity": "3.0.0-rc.11" | ||
} | ||
} |
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
795016
19706
175
+ Added@vue/reactivity@3.0.0-rc.11(transitive)
+ Added@vue/shared@3.0.0-rc.11(transitive)
- Removed@vue/reactivity@3.0.0-rc.10(transitive)
- Removed@vue/shared@3.0.0-rc.10(transitive)
Updated@vue/reactivity@3.0.0-rc.11
Updated@vue/shared@3.0.0-rc.11