@nocobase/plugin-flow-engine 2.2.0-alpha.1 → 2.2.0-alpha.3

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 (66) hide show
  1. package/dist/client/index.js +1 -1
  2. package/dist/externalVersion.js +9 -9
  3. package/dist/locale/en-US.json +1 -0
  4. package/dist/locale/index.d.ts +2 -0
  5. package/dist/locale/zh-CN.json +1 -0
  6. package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
  7. package/dist/node_modules/acorn/package.json +1 -1
  8. package/dist/node_modules/acorn-jsx/package.json +1 -1
  9. package/dist/node_modules/acorn-walk/package.json +1 -1
  10. package/dist/node_modules/ses/package.json +1 -1
  11. package/dist/node_modules/zod/package.json +1 -1
  12. package/dist/server/flow-surfaces/{runjs-authoring/blocked-global-stop/index.d.ts → approval/authoring-validation.d.ts} +1 -2
  13. package/dist/server/flow-surfaces/approval/authoring-validation.js +1151 -0
  14. package/dist/server/flow-surfaces/approval/blueprint-service.js +2 -0
  15. package/dist/server/flow-surfaces/authoring-validation.js +471 -47
  16. package/dist/server/flow-surfaces/blueprint/export-document.d.ts +50 -0
  17. package/dist/server/flow-surfaces/blueprint/export-document.js +2510 -0
  18. package/dist/server/flow-surfaces/builder.js +16 -1
  19. package/dist/server/flow-surfaces/catalog.js +13 -2
  20. package/dist/server/flow-surfaces/configure-options.js +5 -3
  21. package/dist/server/flow-surfaces/constants.d.ts +9 -2
  22. package/dist/server/flow-surfaces/constants.js +1 -0
  23. package/dist/server/flow-surfaces/contract-guard.js +24 -2
  24. package/dist/server/flow-surfaces/default-action-popup.d.ts +2 -0
  25. package/dist/server/flow-surfaces/default-action-popup.js +27 -13
  26. package/dist/server/flow-surfaces/filter-group.d.ts +19 -2
  27. package/dist/server/flow-surfaces/filter-group.js +232 -3
  28. package/dist/server/flow-surfaces/planning/compiler.d.ts +1 -0
  29. package/dist/server/flow-surfaces/planning/compiler.js +205 -82
  30. package/dist/server/flow-surfaces/planning/key-registry.d.ts +1 -1
  31. package/dist/server/flow-surfaces/planning/runtime.js +1 -0
  32. package/dist/server/flow-surfaces/planning/step-link.d.ts +1 -1
  33. package/dist/server/flow-surfaces/planning/step-link.js +22 -3
  34. package/dist/server/flow-surfaces/public-data-surface-default-filter.js +0 -9
  35. package/dist/server/flow-surfaces/reaction/field-value.d.ts +9 -0
  36. package/dist/server/flow-surfaces/reaction/field-value.js +51 -2
  37. package/dist/server/flow-surfaces/reaction/linkage.d.ts +6 -1
  38. package/dist/server/flow-surfaces/reaction/linkage.js +18 -3
  39. package/dist/server/flow-surfaces/reaction/meta.js +19 -1
  40. package/dist/server/flow-surfaces/reaction/types.d.ts +19 -0
  41. package/dist/server/flow-surfaces/relation-backing-foreign-key.d.ts +10 -0
  42. package/dist/server/flow-surfaces/relation-backing-foreign-key.js +79 -0
  43. package/dist/server/flow-surfaces/runjs-authoring/ast/source.d.ts +1 -0
  44. package/dist/server/flow-surfaces/runjs-authoring/ast/source.js +20 -0
  45. package/dist/server/flow-surfaces/runjs-authoring/rules.js +0 -2
  46. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.d.ts +0 -1
  47. package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.js +11 -19
  48. package/dist/server/flow-surfaces/runjs-authoring/runtime/types.d.ts +0 -12
  49. package/dist/server/flow-surfaces/runjs-authoring/scan/filter.js +12 -2
  50. package/dist/server/flow-surfaces/runjs-authoring/scan/index.d.ts +0 -14
  51. package/dist/server/flow-surfaces/runjs-authoring/scan/index.js +10 -8
  52. package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.d.ts +0 -14
  53. package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.js +18 -73
  54. package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
  55. package/dist/server/flow-surfaces/runjs-authoring/validators/index.js +9 -53
  56. package/dist/server/flow-surfaces/service.d.ts +42 -0
  57. package/dist/server/flow-surfaces/service.js +741 -100
  58. package/dist/server/flow-surfaces/types.d.ts +2 -1
  59. package/dist/server/variables/registry.js +3 -0
  60. package/dist/swagger/flow-surfaces.d.ts +181 -0
  61. package/dist/swagger/flow-surfaces.examples.d.ts +11 -0
  62. package/dist/swagger/flow-surfaces.examples.js +11 -0
  63. package/dist/swagger/flow-surfaces.js +161 -4
  64. package/dist/swagger/index.d.ts +181 -0
  65. package/package.json +2 -2
  66. package/dist/server/flow-surfaces/runjs-authoring/blocked-global-stop/index.js +0 -40
@@ -5763,6 +5763,186 @@ declare const _default: {
5763
5763
  };
5764
5764
  additionalProperties: boolean;
5765
5765
  };
5766
+ FlowSurfaceExportBlueprintUnsupportedPolicy: {
5767
+ type: string;
5768
+ enum: string[];
5769
+ description: string;
5770
+ };
5771
+ FlowSurfaceExportBlueprintUnsupportedItem: {
5772
+ type: string;
5773
+ required: string[];
5774
+ properties: {
5775
+ kind: {
5776
+ type: string;
5777
+ enum: string[];
5778
+ };
5779
+ use: {
5780
+ type: string;
5781
+ example: string;
5782
+ };
5783
+ type: {
5784
+ type: string;
5785
+ example: string;
5786
+ };
5787
+ path: {
5788
+ type: string;
5789
+ example: string;
5790
+ };
5791
+ reasonCode: {
5792
+ type: string;
5793
+ example: string;
5794
+ };
5795
+ manualAction: {
5796
+ type: string;
5797
+ example: string;
5798
+ };
5799
+ };
5800
+ additionalProperties: boolean;
5801
+ };
5802
+ FlowSurfaceExportBlueprintTarget: {
5803
+ oneOf: ({
5804
+ type: string;
5805
+ required: string[];
5806
+ properties: {
5807
+ uid: {
5808
+ type: string;
5809
+ };
5810
+ pageSchemaUid?: undefined;
5811
+ tabSchemaUid?: undefined;
5812
+ routeId?: undefined;
5813
+ };
5814
+ additionalProperties: boolean;
5815
+ } | {
5816
+ type: string;
5817
+ required: string[];
5818
+ properties: {
5819
+ pageSchemaUid: {
5820
+ type: string;
5821
+ };
5822
+ uid?: undefined;
5823
+ tabSchemaUid?: undefined;
5824
+ routeId?: undefined;
5825
+ };
5826
+ additionalProperties: boolean;
5827
+ } | {
5828
+ type: string;
5829
+ required: string[];
5830
+ properties: {
5831
+ tabSchemaUid: {
5832
+ type: string;
5833
+ };
5834
+ uid?: undefined;
5835
+ pageSchemaUid?: undefined;
5836
+ routeId?: undefined;
5837
+ };
5838
+ additionalProperties: boolean;
5839
+ } | {
5840
+ type: string;
5841
+ required: string[];
5842
+ properties: {
5843
+ routeId: {
5844
+ type: string;
5845
+ };
5846
+ uid?: undefined;
5847
+ pageSchemaUid?: undefined;
5848
+ tabSchemaUid?: undefined;
5849
+ };
5850
+ additionalProperties: boolean;
5851
+ })[];
5852
+ description: string;
5853
+ };
5854
+ FlowSurfaceExportBlueprintRequest: {
5855
+ type: string;
5856
+ required: string[];
5857
+ properties: {
5858
+ target: {
5859
+ $ref: string;
5860
+ };
5861
+ options: {
5862
+ type: string;
5863
+ properties: {
5864
+ unsupported: {
5865
+ $ref: string;
5866
+ };
5867
+ };
5868
+ additionalProperties: boolean;
5869
+ };
5870
+ };
5871
+ additionalProperties: boolean;
5872
+ };
5873
+ FlowSurfaceExportBlueprintSource: {
5874
+ type: string;
5875
+ required: string[];
5876
+ properties: {
5877
+ target: {
5878
+ $ref: string;
5879
+ };
5880
+ pageTitle: {
5881
+ type: string;
5882
+ };
5883
+ };
5884
+ additionalProperties: boolean;
5885
+ };
5886
+ FlowSurfaceExportBlueprintDocument: {
5887
+ type: string;
5888
+ required: string[];
5889
+ description: string;
5890
+ properties: {
5891
+ version: {
5892
+ type: string;
5893
+ enum: string[];
5894
+ };
5895
+ mode: {
5896
+ type: string;
5897
+ enum: string[];
5898
+ };
5899
+ target: {
5900
+ $ref: string;
5901
+ };
5902
+ page: {
5903
+ $ref: string;
5904
+ };
5905
+ tabs: {
5906
+ type: string;
5907
+ minItems: number;
5908
+ items: {
5909
+ $ref: string;
5910
+ };
5911
+ };
5912
+ assets: {
5913
+ $ref: string;
5914
+ };
5915
+ reaction: {
5916
+ $ref: string;
5917
+ };
5918
+ };
5919
+ additionalProperties: boolean;
5920
+ };
5921
+ FlowSurfaceExportBlueprintResponse: {
5922
+ type: string;
5923
+ required: string[];
5924
+ properties: {
5925
+ document: {
5926
+ $ref: string;
5927
+ };
5928
+ source: {
5929
+ $ref: string;
5930
+ };
5931
+ warnings: {
5932
+ type: string;
5933
+ items: {
5934
+ type: string;
5935
+ };
5936
+ };
5937
+ unsupported: {
5938
+ type: string;
5939
+ items: {
5940
+ $ref: string;
5941
+ };
5942
+ };
5943
+ };
5944
+ additionalProperties: boolean;
5945
+ };
5766
5946
  FlowSurfaceMutateWriteTarget: {
5767
5947
  type: string;
5768
5948
  required: string[];
@@ -5922,6 +6102,7 @@ declare const _default: {
5922
6102
  };
5923
6103
  };
5924
6104
  example: {};
6105
+ default: {};
5925
6106
  supportsFlowContext: {
5926
6107
  type: string;
5927
6108
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "前端流引擎",
5
5
  "description": "",
6
6
  "description.zh-CN": "",
7
- "version": "2.2.0-alpha.1",
7
+ "version": "2.2.0-alpha.3",
8
8
  "main": "./dist/server/index.js",
9
9
  "license": "Apache-2.0",
10
10
  "devDependencies": {
@@ -26,5 +26,5 @@
26
26
  "@nocobase/test": "2.x",
27
27
  "@nocobase/utils": "2.x"
28
28
  },
29
- "gitHead": "303663aba6c6eefa27e6a6435b4c0352074ec40f"
29
+ "gitHead": "e3ec19361fd7981af9fe2a7f24ad335025cbefcd"
30
30
  }
@@ -1,40 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var blocked_global_stop_exports = {};
28
- __export(blocked_global_stop_exports, {
29
- blockedGlobalStopRule: () => blockedGlobalStopRule
30
- });
31
- module.exports = __toCommonJS(blocked_global_stop_exports);
32
- const blockedGlobalStopRule = {
33
- repairClass: "blocked-global-stop",
34
- defaultRuleId: "runjs-global-blocked",
35
- suggestedAction: "Replace forbidden browser/runtime globals with supported ctx APIs."
36
- };
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
39
- blockedGlobalStopRule
40
- });