@vue/runtime-core 3.6.0-rc.13 → 3.6.0-rc.15
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 +297 -98
- package/dist/runtime-core.cjs.prod.js +266 -94
- package/dist/runtime-core.d.ts +11 -9
- package/dist/runtime-core.esm-bundler.js +304 -103
- package/package.json +3 -3
package/dist/runtime-core.d.ts
CHANGED
|
@@ -44,7 +44,12 @@ declare enum SchedulerJobFlags {
|
|
|
44
44
|
* Requeue a Suspense effect if its pending branch is discarded.
|
|
45
45
|
* @internal
|
|
46
46
|
*/
|
|
47
|
-
REQUEUE_ON_SUSPENSE_DISCARD = 8
|
|
47
|
+
REQUEUE_ON_SUSPENSE_DISCARD = 8,
|
|
48
|
+
/**
|
|
49
|
+
* A post job buffered by a suspense boundary is queued as soon as that
|
|
50
|
+
* boundary resolves.
|
|
51
|
+
*/
|
|
52
|
+
FLUSH_ON_SUSPENSE_RESOLVE = 16
|
|
48
53
|
}
|
|
49
54
|
export interface SchedulerJob extends Function {
|
|
50
55
|
order?: number;
|
|
@@ -548,6 +553,7 @@ export interface SuspenseBoundary {
|
|
|
548
553
|
deps: number;
|
|
549
554
|
pendingId: number;
|
|
550
555
|
timeout: number;
|
|
556
|
+
timeoutTimer: ReturnType<typeof setTimeout> | undefined;
|
|
551
557
|
isInFallback: boolean;
|
|
552
558
|
isHydrating: boolean;
|
|
553
559
|
isUnmounted: boolean;
|
|
@@ -625,13 +631,13 @@ export declare const BaseTransition: {
|
|
|
625
631
|
};
|
|
626
632
|
};
|
|
627
633
|
export interface TransitionHooksContext {
|
|
628
|
-
isLeaving: () => boolean;
|
|
634
|
+
isLeaving: (node: any) => boolean;
|
|
629
635
|
setLeavingNodeCache: (node: any) => void;
|
|
630
636
|
unsetLeavingNodeCache: (node: any) => void;
|
|
631
637
|
earlyRemove: () => void;
|
|
632
638
|
cloneHooks?: (node: any) => TransitionHooks;
|
|
633
639
|
}
|
|
634
|
-
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: GenericComponentInstance
|
|
640
|
+
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: GenericComponentInstance): TransitionHooks;
|
|
635
641
|
export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): TransitionHooks;
|
|
636
642
|
export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode["key"]): VNode[];
|
|
637
643
|
//#endregion
|
|
@@ -725,7 +731,7 @@ export interface KeepAliveProps {
|
|
|
725
731
|
export interface KeepAliveContext extends ComponentRenderContext {
|
|
726
732
|
renderer: RendererInternals;
|
|
727
733
|
activate: (vnode: VNode, container: RendererElement, anchor: RendererNode | null, namespace: ElementNamespace, optimized: boolean) => void;
|
|
728
|
-
deactivate: (vnode: VNode) =>
|
|
734
|
+
deactivate: (vnode: VNode) => boolean;
|
|
729
735
|
getCachedComponent: (vnode: VNode) => VNode;
|
|
730
736
|
getStorageContainer: () => RendererElement;
|
|
731
737
|
}
|
|
@@ -1414,10 +1420,6 @@ export interface ComponentInternalOptions {
|
|
|
1414
1420
|
* indicates vapor component
|
|
1415
1421
|
*/
|
|
1416
1422
|
__vapor?: boolean;
|
|
1417
|
-
/**
|
|
1418
|
-
* whether this vapor component has multiple root nodes
|
|
1419
|
-
*/
|
|
1420
|
-
__multiRoot?: boolean;
|
|
1421
1423
|
/**
|
|
1422
1424
|
* indicates keep-alive component
|
|
1423
1425
|
*/
|
|
@@ -1685,7 +1687,7 @@ export declare enum ErrorCodes {
|
|
|
1685
1687
|
type ErrorTypes = LifecycleHooks | ErrorCodes | WatchErrorCodes;
|
|
1686
1688
|
export declare function callWithErrorHandling(fn: Function, instance: GenericComponentInstance | null | undefined, type: ErrorTypes, args?: unknown[]): any;
|
|
1687
1689
|
export declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: GenericComponentInstance | null, type: ErrorTypes, args?: unknown[]): any;
|
|
1688
|
-
export declare function handleError(err: unknown, instance: GenericComponentInstance | null | undefined, type: ErrorTypes, throwInDev?: boolean): void;
|
|
1690
|
+
export declare function handleError(err: unknown, instance: GenericComponentInstance | null | undefined, type: ErrorTypes, throwInDev?: boolean, isAsyncError?: boolean): void;
|
|
1689
1691
|
//#endregion
|
|
1690
1692
|
//#region temp/packages/runtime-core/src/customFormatter.d.ts
|
|
1691
1693
|
export declare function initCustomFormatter(): void;
|