@nocobase/plugin-flow-engine 2.2.0-beta.9 → 3.0.0-alpha.1

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.
Files changed (42) hide show
  1. package/dist/ai/ai-employees/nathan/prompt.md +2 -0
  2. package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +1 -0
  3. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextApis.js +2 -2
  4. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextEnvs.js +2 -2
  5. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextVars.js +2 -2
  6. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/lintAndTestJS.js +2 -2
  7. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/patchJSCode.js +4 -4
  8. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/readJSCode.js +2 -2
  9. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/writeJSCode.js +2 -2
  10. package/dist/ai/docs/runjs/context/ai.md +396 -0
  11. package/dist/externalVersion.js +9 -9
  12. package/dist/locale/en-US.json +2 -0
  13. package/dist/locale/index.d.ts +4 -0
  14. package/dist/locale/zh-CN.json +2 -0
  15. package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
  16. package/dist/node_modules/acorn/package.json +1 -1
  17. package/dist/node_modules/acorn-jsx/package.json +1 -1
  18. package/dist/node_modules/acorn-walk/package.json +1 -1
  19. package/dist/node_modules/ses/package.json +1 -1
  20. package/dist/node_modules/zod/package.json +1 -1
  21. package/dist/server/flow-surfaces/authoring-validation.d.ts +2 -1
  22. package/dist/server/flow-surfaces/authoring-validation.js +167 -19
  23. package/dist/server/flow-surfaces/blueprint/compile-blocks.js +7 -3
  24. package/dist/server/flow-surfaces/blueprint/compile-plan.js +19 -15
  25. package/dist/server/flow-surfaces/blueprint/normalize-document.js +18 -2
  26. package/dist/server/flow-surfaces/blueprint/public-types.d.ts +1 -0
  27. package/dist/server/flow-surfaces/builder.js +3 -0
  28. package/dist/server/flow-surfaces/constants.d.ts +9 -2
  29. package/dist/server/flow-surfaces/constants.js +1 -0
  30. package/dist/server/flow-surfaces/contract-guard.js +20 -10
  31. package/dist/server/flow-surfaces/errors.d.ts +2 -2
  32. package/dist/server/flow-surfaces/errors.js +4 -4
  33. package/dist/server/flow-surfaces/navigation-targets.d.ts +80 -0
  34. package/dist/server/flow-surfaces/navigation-targets.js +546 -0
  35. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.js +1 -0
  36. package/dist/server/flow-surfaces/service.d.ts +21 -2
  37. package/dist/server/flow-surfaces/service.js +610 -121
  38. package/dist/server/variables/records.js +7 -2
  39. package/dist/swagger/flow-surfaces.d.ts +96 -0
  40. package/dist/swagger/flow-surfaces.js +88 -7
  41. package/dist/swagger/index.d.ts +96 -0
  42. package/package.json +2 -2
@@ -54,6 +54,7 @@ export declare class FlowSurfacesService {
54
54
  get repository(): FlowModelRepository;
55
55
  get locator(): SurfaceLocator;
56
56
  private get routeSync();
57
+ private get navigationTargets();
57
58
  private getFlowTemplateRepository;
58
59
  private getFlowTemplateRepositorySafe;
59
60
  private getFlowTemplateUsageRepository;
@@ -93,9 +94,19 @@ export declare class FlowSurfacesService {
93
94
  private normalizeExplicitDesktopRouteLayoutUid;
94
95
  private normalizeDesktopRouteLayoutUidFilter;
95
96
  private resolveDesktopRouteLayoutUidFilter;
97
+ private assertNavigationTargetIsExclusive;
98
+ private readDesktopRouteScope;
99
+ private buildDesktopRouteScopeForPortal;
100
+ private assertAdminLayoutCreateScope;
101
+ private getPortalRouteFilterUid;
102
+ private assertRouteBelongsToResolvedPortal;
103
+ private resolveDefaultDesktopRouteScope;
104
+ private resolveDesktopRouteMatchScope;
105
+ private resolveRequestedDesktopRouteScope;
106
+ private resolveExistingDesktopRouteScope;
107
+ private attachDesktopRouteScopeToRouteAndChildren;
96
108
  private assertEnabledDesktopRouteUiLayoutUid;
97
109
  private assertDesktopRouteBelongsToUiLayout;
98
- private resolveRequestedDesktopRouteUiLayoutUids;
99
110
  private setDesktopRouteUiLayouts;
100
111
  private attachDesktopRouteUiLayoutsToRouteAndChildren;
101
112
  private ensureDesktopRouteUiLayouts;
@@ -222,8 +233,9 @@ export declare class FlowSurfacesService {
222
233
  private dispatchPlanOnlyAction;
223
234
  private resolveApplyBlueprintReplaceTargetInfo;
224
235
  private resolveApplyBlueprintCreateNavigationGroup;
236
+ private resolveApplyBlueprintDefaultNavigationTarget;
225
237
  private normalizeApplyBlueprintCreateMobileNavigation;
226
- private assertApplyBlueprintCreateNavigationLayout;
238
+ private assertApplyBlueprintCreateNavigationTarget;
227
239
  private resolveApplyBlueprintCreatePageIdentity;
228
240
  private prepareApplyBlueprintRequest;
229
241
  private prevalidateApplyBlueprintChartAssets;
@@ -391,8 +403,13 @@ export declare class FlowSurfacesService {
391
403
  uid: any;
392
404
  updated: string[];
393
405
  }>;
406
+ listNavigationTargets(_values?: Record<string, any>, options?: {
407
+ transaction?: any;
408
+ currentRoles?: FlowSurfaceRequestRoles;
409
+ }): Promise<import("./navigation-targets").FlowSurfaceNavigationTargetsResult>;
394
410
  createMenu(values: Record<string, any>, options?: {
395
411
  transaction?: any;
412
+ currentRoles?: FlowSurfaceRequestRoles;
396
413
  }): Promise<{
397
414
  routeId: any;
398
415
  type: any;
@@ -400,6 +417,7 @@ export declare class FlowSurfacesService {
400
417
  }>;
401
418
  updateMenu(values: Record<string, any>, options?: {
402
419
  transaction?: any;
420
+ currentRoles?: FlowSurfaceRequestRoles;
403
421
  }): Promise<{
404
422
  routeId: any;
405
423
  type: any;
@@ -408,6 +426,7 @@ export declare class FlowSurfacesService {
408
426
  private initializeFlowPageForRoute;
409
427
  createPage(values: Record<string, any>, options?: {
410
428
  transaction?: any;
429
+ currentRoles?: FlowSurfaceRequestRoles;
411
430
  }): Promise<any>;
412
431
  destroyPage(values: Record<string, any>, options?: {
413
432
  transaction?: any;