@nocobase/plugin-flow-engine 2.2.0-beta.1 → 2.2.0-beta.11
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/client/index.js +1 -1
- package/dist/externalVersion.js +9 -9
- package/dist/locale/en-US.json +1 -0
- package/dist/locale/index.d.ts +2 -0
- package/dist/locale/zh-CN.json +1 -0
- package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
- package/dist/node_modules/acorn/package.json +1 -1
- package/dist/node_modules/acorn-jsx/package.json +1 -1
- package/dist/node_modules/acorn-walk/package.json +1 -1
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/{runjs-authoring/blocked-global-stop/index.d.ts → approval/authoring-validation.d.ts} +1 -2
- package/dist/server/flow-surfaces/approval/authoring-validation.js +1151 -0
- package/dist/server/flow-surfaces/approval/blueprint-service.js +2 -0
- package/dist/server/flow-surfaces/authoring-validation.d.ts +2 -1
- package/dist/server/flow-surfaces/authoring-validation.js +639 -59
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +7 -3
- package/dist/server/flow-surfaces/blueprint/compile-plan.js +19 -15
- package/dist/server/flow-surfaces/blueprint/export-document.d.ts +50 -0
- package/dist/server/flow-surfaces/blueprint/export-document.js +2510 -0
- package/dist/server/flow-surfaces/blueprint/normalize-document.js +2 -1
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +1 -0
- package/dist/server/flow-surfaces/builder.js +43 -5
- package/dist/server/flow-surfaces/catalog.js +13 -2
- package/dist/server/flow-surfaces/configure-options.js +5 -3
- package/dist/server/flow-surfaces/constants.d.ts +9 -2
- package/dist/server/flow-surfaces/constants.js +1 -0
- package/dist/server/flow-surfaces/contract-guard.js +37 -5
- package/dist/server/flow-surfaces/default-action-popup.d.ts +2 -0
- package/dist/server/flow-surfaces/default-action-popup.js +27 -13
- package/dist/server/flow-surfaces/filter-group.d.ts +19 -2
- package/dist/server/flow-surfaces/filter-group.js +232 -3
- package/dist/server/flow-surfaces/planning/compiler.d.ts +1 -0
- package/dist/server/flow-surfaces/planning/compiler.js +205 -82
- package/dist/server/flow-surfaces/planning/key-registry.d.ts +1 -1
- package/dist/server/flow-surfaces/planning/runtime.js +1 -0
- package/dist/server/flow-surfaces/planning/step-link.d.ts +1 -1
- package/dist/server/flow-surfaces/planning/step-link.js +22 -3
- package/dist/server/flow-surfaces/public-data-surface-default-filter.js +0 -9
- package/dist/server/flow-surfaces/reaction/field-value.d.ts +9 -0
- package/dist/server/flow-surfaces/reaction/field-value.js +51 -2
- package/dist/server/flow-surfaces/reaction/linkage.d.ts +6 -1
- package/dist/server/flow-surfaces/reaction/linkage.js +18 -3
- package/dist/server/flow-surfaces/reaction/meta.js +19 -1
- package/dist/server/flow-surfaces/reaction/types.d.ts +19 -0
- package/dist/server/flow-surfaces/relation-backing-foreign-key.d.ts +10 -0
- package/dist/server/flow-surfaces/relation-backing-foreign-key.js +79 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/source.d.ts +1 -0
- package/dist/server/flow-surfaces/runjs-authoring/ast/source.js +20 -0
- package/dist/server/flow-surfaces/runjs-authoring/rules.js +0 -2
- package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.d.ts +0 -1
- package/dist/server/flow-surfaces/runjs-authoring/runtime/constants.js +11 -19
- package/dist/server/flow-surfaces/runjs-authoring/runtime/types.d.ts +0 -12
- package/dist/server/flow-surfaces/runjs-authoring/scan/filter.js +12 -2
- package/dist/server/flow-surfaces/runjs-authoring/scan/index.d.ts +0 -14
- package/dist/server/flow-surfaces/runjs-authoring/scan/index.js +10 -8
- package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.d.ts +0 -14
- package/dist/server/flow-surfaces/runjs-authoring/scan/source-patterns.js +18 -73
- package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
- package/dist/server/flow-surfaces/runjs-authoring/validators/index.js +9 -53
- package/dist/server/flow-surfaces/service.d.ts +53 -0
- package/dist/server/flow-surfaces/service.js +997 -127
- package/dist/server/flow-surfaces/types.d.ts +2 -1
- package/dist/server/variables/records.js +7 -2
- package/dist/server/variables/registry.js +3 -0
- package/dist/swagger/flow-surfaces.d.ts +193 -0
- package/dist/swagger/flow-surfaces.examples.d.ts +11 -0
- package/dist/swagger/flow-surfaces.examples.js +11 -0
- package/dist/swagger/flow-surfaces.js +179 -10
- package/dist/swagger/index.d.ts +193 -0
- package/package.json +2 -2
- package/dist/server/flow-surfaces/runjs-authoring/blocked-global-stop/index.js +0 -40
package/dist/swagger/index.d.ts
CHANGED
|
@@ -2635,6 +2635,10 @@ declare const _default: {
|
|
|
2635
2635
|
FlowSurfaceApplyBlueprintNavigation: {
|
|
2636
2636
|
type: string;
|
|
2637
2637
|
properties: {
|
|
2638
|
+
layoutUid: {
|
|
2639
|
+
type: string;
|
|
2640
|
+
description: string;
|
|
2641
|
+
};
|
|
2638
2642
|
group: {
|
|
2639
2643
|
$ref: string;
|
|
2640
2644
|
};
|
|
@@ -3148,6 +3152,10 @@ declare const _default: {
|
|
|
3148
3152
|
type: string;
|
|
3149
3153
|
required: string[];
|
|
3150
3154
|
properties: {
|
|
3155
|
+
layoutUid: {
|
|
3156
|
+
type: string;
|
|
3157
|
+
description: string;
|
|
3158
|
+
};
|
|
3151
3159
|
title: {
|
|
3152
3160
|
type: string;
|
|
3153
3161
|
};
|
|
@@ -3270,6 +3278,10 @@ declare const _default: {
|
|
|
3270
3278
|
FlowSurfaceCreatePageRequest: {
|
|
3271
3279
|
type: string;
|
|
3272
3280
|
properties: {
|
|
3281
|
+
layoutUid: {
|
|
3282
|
+
type: string;
|
|
3283
|
+
description: string;
|
|
3284
|
+
};
|
|
3273
3285
|
menuRouteId: {
|
|
3274
3286
|
oneOf: {
|
|
3275
3287
|
type: string;
|
|
@@ -5763,6 +5775,186 @@ declare const _default: {
|
|
|
5763
5775
|
};
|
|
5764
5776
|
additionalProperties: boolean;
|
|
5765
5777
|
};
|
|
5778
|
+
FlowSurfaceExportBlueprintUnsupportedPolicy: {
|
|
5779
|
+
type: string;
|
|
5780
|
+
enum: string[];
|
|
5781
|
+
description: string;
|
|
5782
|
+
};
|
|
5783
|
+
FlowSurfaceExportBlueprintUnsupportedItem: {
|
|
5784
|
+
type: string;
|
|
5785
|
+
required: string[];
|
|
5786
|
+
properties: {
|
|
5787
|
+
kind: {
|
|
5788
|
+
type: string;
|
|
5789
|
+
enum: string[];
|
|
5790
|
+
};
|
|
5791
|
+
use: {
|
|
5792
|
+
type: string;
|
|
5793
|
+
example: string;
|
|
5794
|
+
};
|
|
5795
|
+
type: {
|
|
5796
|
+
type: string;
|
|
5797
|
+
example: string;
|
|
5798
|
+
};
|
|
5799
|
+
path: {
|
|
5800
|
+
type: string;
|
|
5801
|
+
example: string;
|
|
5802
|
+
};
|
|
5803
|
+
reasonCode: {
|
|
5804
|
+
type: string;
|
|
5805
|
+
example: string;
|
|
5806
|
+
};
|
|
5807
|
+
manualAction: {
|
|
5808
|
+
type: string;
|
|
5809
|
+
example: string;
|
|
5810
|
+
};
|
|
5811
|
+
};
|
|
5812
|
+
additionalProperties: boolean;
|
|
5813
|
+
};
|
|
5814
|
+
FlowSurfaceExportBlueprintTarget: {
|
|
5815
|
+
oneOf: ({
|
|
5816
|
+
type: string;
|
|
5817
|
+
required: string[];
|
|
5818
|
+
properties: {
|
|
5819
|
+
uid: {
|
|
5820
|
+
type: string;
|
|
5821
|
+
};
|
|
5822
|
+
pageSchemaUid?: undefined;
|
|
5823
|
+
tabSchemaUid?: undefined;
|
|
5824
|
+
routeId?: undefined;
|
|
5825
|
+
};
|
|
5826
|
+
additionalProperties: boolean;
|
|
5827
|
+
} | {
|
|
5828
|
+
type: string;
|
|
5829
|
+
required: string[];
|
|
5830
|
+
properties: {
|
|
5831
|
+
pageSchemaUid: {
|
|
5832
|
+
type: string;
|
|
5833
|
+
};
|
|
5834
|
+
uid?: undefined;
|
|
5835
|
+
tabSchemaUid?: undefined;
|
|
5836
|
+
routeId?: undefined;
|
|
5837
|
+
};
|
|
5838
|
+
additionalProperties: boolean;
|
|
5839
|
+
} | {
|
|
5840
|
+
type: string;
|
|
5841
|
+
required: string[];
|
|
5842
|
+
properties: {
|
|
5843
|
+
tabSchemaUid: {
|
|
5844
|
+
type: string;
|
|
5845
|
+
};
|
|
5846
|
+
uid?: undefined;
|
|
5847
|
+
pageSchemaUid?: undefined;
|
|
5848
|
+
routeId?: undefined;
|
|
5849
|
+
};
|
|
5850
|
+
additionalProperties: boolean;
|
|
5851
|
+
} | {
|
|
5852
|
+
type: string;
|
|
5853
|
+
required: string[];
|
|
5854
|
+
properties: {
|
|
5855
|
+
routeId: {
|
|
5856
|
+
type: string;
|
|
5857
|
+
};
|
|
5858
|
+
uid?: undefined;
|
|
5859
|
+
pageSchemaUid?: undefined;
|
|
5860
|
+
tabSchemaUid?: undefined;
|
|
5861
|
+
};
|
|
5862
|
+
additionalProperties: boolean;
|
|
5863
|
+
})[];
|
|
5864
|
+
description: string;
|
|
5865
|
+
};
|
|
5866
|
+
FlowSurfaceExportBlueprintRequest: {
|
|
5867
|
+
type: string;
|
|
5868
|
+
required: string[];
|
|
5869
|
+
properties: {
|
|
5870
|
+
target: {
|
|
5871
|
+
$ref: string;
|
|
5872
|
+
};
|
|
5873
|
+
options: {
|
|
5874
|
+
type: string;
|
|
5875
|
+
properties: {
|
|
5876
|
+
unsupported: {
|
|
5877
|
+
$ref: string;
|
|
5878
|
+
};
|
|
5879
|
+
};
|
|
5880
|
+
additionalProperties: boolean;
|
|
5881
|
+
};
|
|
5882
|
+
};
|
|
5883
|
+
additionalProperties: boolean;
|
|
5884
|
+
};
|
|
5885
|
+
FlowSurfaceExportBlueprintSource: {
|
|
5886
|
+
type: string;
|
|
5887
|
+
required: string[];
|
|
5888
|
+
properties: {
|
|
5889
|
+
target: {
|
|
5890
|
+
$ref: string;
|
|
5891
|
+
};
|
|
5892
|
+
pageTitle: {
|
|
5893
|
+
type: string;
|
|
5894
|
+
};
|
|
5895
|
+
};
|
|
5896
|
+
additionalProperties: boolean;
|
|
5897
|
+
};
|
|
5898
|
+
FlowSurfaceExportBlueprintDocument: {
|
|
5899
|
+
type: string;
|
|
5900
|
+
required: string[];
|
|
5901
|
+
description: string;
|
|
5902
|
+
properties: {
|
|
5903
|
+
version: {
|
|
5904
|
+
type: string;
|
|
5905
|
+
enum: string[];
|
|
5906
|
+
};
|
|
5907
|
+
mode: {
|
|
5908
|
+
type: string;
|
|
5909
|
+
enum: string[];
|
|
5910
|
+
};
|
|
5911
|
+
target: {
|
|
5912
|
+
$ref: string;
|
|
5913
|
+
};
|
|
5914
|
+
page: {
|
|
5915
|
+
$ref: string;
|
|
5916
|
+
};
|
|
5917
|
+
tabs: {
|
|
5918
|
+
type: string;
|
|
5919
|
+
minItems: number;
|
|
5920
|
+
items: {
|
|
5921
|
+
$ref: string;
|
|
5922
|
+
};
|
|
5923
|
+
};
|
|
5924
|
+
assets: {
|
|
5925
|
+
$ref: string;
|
|
5926
|
+
};
|
|
5927
|
+
reaction: {
|
|
5928
|
+
$ref: string;
|
|
5929
|
+
};
|
|
5930
|
+
};
|
|
5931
|
+
additionalProperties: boolean;
|
|
5932
|
+
};
|
|
5933
|
+
FlowSurfaceExportBlueprintResponse: {
|
|
5934
|
+
type: string;
|
|
5935
|
+
required: string[];
|
|
5936
|
+
properties: {
|
|
5937
|
+
document: {
|
|
5938
|
+
$ref: string;
|
|
5939
|
+
};
|
|
5940
|
+
source: {
|
|
5941
|
+
$ref: string;
|
|
5942
|
+
};
|
|
5943
|
+
warnings: {
|
|
5944
|
+
type: string;
|
|
5945
|
+
items: {
|
|
5946
|
+
type: string;
|
|
5947
|
+
};
|
|
5948
|
+
};
|
|
5949
|
+
unsupported: {
|
|
5950
|
+
type: string;
|
|
5951
|
+
items: {
|
|
5952
|
+
$ref: string;
|
|
5953
|
+
};
|
|
5954
|
+
};
|
|
5955
|
+
};
|
|
5956
|
+
additionalProperties: boolean;
|
|
5957
|
+
};
|
|
5766
5958
|
FlowSurfaceMutateWriteTarget: {
|
|
5767
5959
|
type: string;
|
|
5768
5960
|
required: string[];
|
|
@@ -5922,6 +6114,7 @@ declare const _default: {
|
|
|
5922
6114
|
};
|
|
5923
6115
|
};
|
|
5924
6116
|
example: {};
|
|
6117
|
+
default: {};
|
|
5925
6118
|
supportsFlowContext: {
|
|
5926
6119
|
type: string;
|
|
5927
6120
|
};
|
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-beta.
|
|
7
|
+
"version": "2.2.0-beta.11",
|
|
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": "
|
|
29
|
+
"gitHead": "8dab25af2bb83a81da68158d0dcf836f96103d61"
|
|
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
|
-
});
|