@vue/runtime-core 3.2.36 → 3.2.39
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 +330 -299
- package/dist/runtime-core.cjs.prod.js +269 -244
- package/dist/runtime-core.d.ts +15 -7
- package/dist/runtime-core.esm-bundler.js +334 -305
- package/package.json +3 -3
package/dist/runtime-core.d.ts
CHANGED
|
@@ -262,6 +262,7 @@ export declare type CompatVue = Pick<App, 'version' | 'component' | 'directive'>
|
|
|
262
262
|
declare interface CompiledSlotDescriptor {
|
|
263
263
|
name: string;
|
|
264
264
|
fn: Slot;
|
|
265
|
+
key?: string;
|
|
265
266
|
}
|
|
266
267
|
|
|
267
268
|
/**
|
|
@@ -431,6 +432,10 @@ declare interface ComponentInternalOptions {
|
|
|
431
432
|
* This one should be exposed so that devtools can make use of it
|
|
432
433
|
*/
|
|
433
434
|
__file?: string;
|
|
435
|
+
/**
|
|
436
|
+
* name inferred from filename
|
|
437
|
+
*/
|
|
438
|
+
__name?: string;
|
|
434
439
|
}
|
|
435
440
|
|
|
436
441
|
export declare type ComponentObjectPropsOptions<P = Data> = {
|
|
@@ -657,13 +662,13 @@ export declare type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D
|
|
|
657
662
|
|
|
658
663
|
export declare function defineComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): DefineComponent<Props, RawBindings>;
|
|
659
664
|
|
|
660
|
-
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions =
|
|
665
|
+
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends 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>;
|
|
661
666
|
|
|
662
|
-
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 =
|
|
667
|
+
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 = {}, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Readonly<{
|
|
663
668
|
[key in PropNames]?: any;
|
|
664
669
|
}>, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
665
670
|
|
|
666
|
-
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 =
|
|
671
|
+
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 = {}, 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>;
|
|
667
672
|
|
|
668
673
|
/**
|
|
669
674
|
* Vue `<script setup>` compiler macro for declaring a component's emitted
|
|
@@ -1544,7 +1549,9 @@ export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
|
|
|
1544
1549
|
|
|
1545
1550
|
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
1546
1551
|
|
|
1547
|
-
export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: Element | ShadowRoot)
|
|
1552
|
+
export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: (Element | ShadowRoot) & {
|
|
1553
|
+
_vnode?: VNode;
|
|
1554
|
+
}) => void;
|
|
1548
1555
|
|
|
1549
1556
|
export declare type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement, isSVG?: boolean) => void;
|
|
1550
1557
|
|
|
@@ -1560,6 +1567,7 @@ export declare interface RuntimeCompilerOptions {
|
|
|
1560
1567
|
|
|
1561
1568
|
declare interface SchedulerJob extends Function {
|
|
1562
1569
|
id?: number;
|
|
1570
|
+
pre?: boolean;
|
|
1563
1571
|
active?: boolean;
|
|
1564
1572
|
computed?: boolean;
|
|
1565
1573
|
/**
|
|
@@ -1723,7 +1731,7 @@ export declare const Teleport: {
|
|
|
1723
1731
|
declare const TeleportImpl: {
|
|
1724
1732
|
__isTeleport: boolean;
|
|
1725
1733
|
process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
|
|
1726
|
-
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um
|
|
1734
|
+
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um, o: { remove } }: RendererInternals, doRemove: Boolean): void;
|
|
1727
1735
|
move: typeof moveTeleport;
|
|
1728
1736
|
hydrate: typeof hydrateTeleport;
|
|
1729
1737
|
};
|
|
@@ -1752,7 +1760,7 @@ export { toHandlerKey }
|
|
|
1752
1760
|
* For prefixing keys in v-on="obj" with "on"
|
|
1753
1761
|
* @private
|
|
1754
1762
|
*/
|
|
1755
|
-
export declare function toHandlers(obj: Record<string, any
|
|
1763
|
+
export declare function toHandlers(obj: Record<string, any>, preserveCaseIfNecessary?: boolean): Record<string, any>;
|
|
1756
1764
|
|
|
1757
1765
|
export { toRaw }
|
|
1758
1766
|
|
|
@@ -1774,7 +1782,7 @@ export { TrackOpTypes }
|
|
|
1774
1782
|
*/
|
|
1775
1783
|
export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
|
|
1776
1784
|
|
|
1777
|
-
export declare interface TransitionHooks<HostElement
|
|
1785
|
+
export declare interface TransitionHooks<HostElement = RendererElement> {
|
|
1778
1786
|
mode: BaseTransitionProps['mode'];
|
|
1779
1787
|
persisted: boolean;
|
|
1780
1788
|
beforeEnter(el: HostElement): void;
|