@nocobase/client-v2 2.1.15 → 2.1.18
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/es/flow/admin-shell/BaseLayoutModel.d.ts +4 -0
- package/es/flow/admin-shell/BaseLayoutRouteCoordinator.d.ts +6 -0
- package/es/index.mjs +91 -91
- package/lib/index.js +118 -118
- package/package.json +7 -7
- package/src/flow/FlowPage.tsx +29 -2
- package/src/flow/__tests__/FlowPage.test.tsx +152 -25
- package/src/flow/admin-shell/BaseLayoutModel.tsx +106 -0
- package/src/flow/admin-shell/BaseLayoutRouteCoordinator.ts +160 -34
- package/src/flow/admin-shell/__tests__/AdminLayoutRouteCoordinator.test.ts +896 -119
- package/src/flow/admin-shell/admin-layout/AdminLayoutComponent.tsx +29 -2
- package/src/flow/admin-shell/admin-layout/__tests__/AdminLayoutModel.test.tsx +311 -2
|
@@ -82,6 +82,10 @@ export declare class BaseLayoutModel<TStructure extends BaseLayoutStructure = Ba
|
|
|
82
82
|
private teardownRuntime;
|
|
83
83
|
private getCurrentRouteByActivePage;
|
|
84
84
|
private getCurrentCoordinatorRouteLike;
|
|
85
|
+
private restoreCurrentLayoutRouteFromRouterContext;
|
|
86
|
+
private shouldIgnoreStaleLayoutRouteCleanup;
|
|
87
|
+
private getRouterContextRouteLike;
|
|
88
|
+
private isRouteLikeOwnedByCurrentLayout;
|
|
85
89
|
}
|
|
86
90
|
/**
|
|
87
91
|
* 按固定 UID 获取或创建 Layout host model。
|
|
@@ -46,6 +46,7 @@ export declare class BaseLayoutRouteCoordinator {
|
|
|
46
46
|
private basePathname;
|
|
47
47
|
private readonly runtimes;
|
|
48
48
|
private layoutContentElement;
|
|
49
|
+
private lastNonNullLayoutContentElement;
|
|
49
50
|
constructor(flowEngine: FlowEngine, options?: BaseLayoutRouteCoordinatorOptions);
|
|
50
51
|
setLayoutContentElement(element: HTMLElement | null): void;
|
|
51
52
|
registerPage(pageUid: string, meta: RoutePageMeta): RouteModel<import("@nocobase/flow-engine").DefaultStructure>;
|
|
@@ -62,6 +63,11 @@ export declare class BaseLayoutRouteCoordinator {
|
|
|
62
63
|
private shouldStepNavigate;
|
|
63
64
|
private scheduleInitialDeepLinkReplay;
|
|
64
65
|
private stepNavigate;
|
|
66
|
+
private replayActiveRuntimeViewsAfterLayoutContentElementChange;
|
|
67
|
+
private invalidatePendingRuntimeViewOpens;
|
|
68
|
+
private resetRuntimeViewStateForLayoutContentElementChange;
|
|
69
|
+
private markPendingOpenViews;
|
|
70
|
+
private clearPendingOpenViews;
|
|
65
71
|
private handleOpenViews;
|
|
66
72
|
private openViews;
|
|
67
73
|
private ensureRouteModelContext;
|