@nocobase/plugin-flow-engine 2.2.0-alpha.1 → 2.2.0-alpha.10
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/ai/ai-employees/nathan/prompt.md +2 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +1 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextApis.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextEnvs.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextVars.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/lintAndTestJS.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/patchJSCode.js +4 -4
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/readJSCode.js +2 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/writeJSCode.js +2 -2
- package/dist/ai/docs/runjs/context/ai.md +206 -0
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +9 -9
- package/dist/locale/en-US.json +3 -0
- package/dist/locale/index.d.ts +6 -0
- package/dist/locale/zh-CN.json +3 -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 +3 -1
- package/dist/server/flow-surfaces/authoring-validation.js +645 -59
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +7 -3
- package/dist/server/flow-surfaces/blueprint/compile-plan.js +23 -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 +18 -1
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +2 -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 +16 -2
- package/dist/server/flow-surfaces/constants.js +2 -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/errors.d.ts +2 -2
- package/dist/server/flow-surfaces/errors.js +4 -4
- 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/navigation-targets.d.ts +73 -0
- package/dist/server/flow-surfaces/navigation-targets.js +439 -0
- 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 +12 -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 +65 -0
- package/dist/server/flow-surfaces/service.js +1372 -148
- 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 +289 -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 +261 -11
- package/dist/swagger/index.d.ts +289 -0
- package/package.json +2 -2
- package/dist/server/flow-surfaces/runjs-authoring/blocked-global-stop/index.js +0 -40
|
@@ -45,7 +45,8 @@ export type FlowSurfaceConfigureOption = {
|
|
|
45
45
|
type: FlowSurfaceConfigureOptionValueType;
|
|
46
46
|
description?: string;
|
|
47
47
|
enum?: Array<string | number | boolean>;
|
|
48
|
-
example?:
|
|
48
|
+
example?: unknown;
|
|
49
|
+
default?: unknown;
|
|
49
50
|
supportsFlowContext?: boolean;
|
|
50
51
|
};
|
|
51
52
|
export type FlowSurfaceConfigureOptions = Record<string, FlowSurfaceConfigureOption>;
|
|
@@ -63,9 +63,14 @@ function mergeFieldsWithExtras(fields, extras = []) {
|
|
|
63
63
|
if (!Array.isArray(fields) || fields.length === 0 || extras.length === 0) return fields;
|
|
64
64
|
return uniqStrings([...fields, ...extras]);
|
|
65
65
|
}
|
|
66
|
+
function toJsonRecord(record) {
|
|
67
|
+
if (!record || typeof record !== "object") return record;
|
|
68
|
+
const toJSON = record.toJSON;
|
|
69
|
+
return typeof toJSON === "function" ? toJSON.call(record) : record;
|
|
70
|
+
}
|
|
66
71
|
function toJsonArray(rows) {
|
|
67
72
|
if (!Array.isArray(rows)) return [];
|
|
68
|
-
return rows.map(
|
|
73
|
+
return rows.map(toJsonRecord);
|
|
69
74
|
}
|
|
70
75
|
function reorderRecordsByFilterByTk(records, filterByTk, options) {
|
|
71
76
|
if (!Array.isArray(filterByTk) || filterByTk.length === 0) return records;
|
|
@@ -110,7 +115,7 @@ async function fetchRecordOrRecordsJson(repo, params) {
|
|
|
110
115
|
const rec = await repo.findOne(
|
|
111
116
|
preferFullRecord ? { filterByTk } : { filterByTk, fields, appends }
|
|
112
117
|
);
|
|
113
|
-
return rec ? rec
|
|
118
|
+
return rec ? toJsonRecord(rec) : void 0;
|
|
114
119
|
}
|
|
115
120
|
// Annotate the CommonJS export names for ESM import in node:
|
|
116
121
|
0 && (module.exports = {
|
|
@@ -89,6 +89,9 @@ class VariableRegistry {
|
|
|
89
89
|
}
|
|
90
90
|
const GLOBAL_KEY = "__ncbVarRegistry__";
|
|
91
91
|
const g = typeof globalThis !== "undefined" ? globalThis : global;
|
|
92
|
+
if (g[GLOBAL_KEY] && typeof g[GLOBAL_KEY] === "object") {
|
|
93
|
+
Object.setPrototypeOf(g[GLOBAL_KEY], VariableRegistry.prototype);
|
|
94
|
+
}
|
|
92
95
|
if (!g[GLOBAL_KEY]) {
|
|
93
96
|
g[GLOBAL_KEY] = new VariableRegistry();
|
|
94
97
|
}
|
|
@@ -2604,6 +2604,86 @@ declare const _default: {
|
|
|
2604
2604
|
};
|
|
2605
2605
|
additionalProperties: boolean;
|
|
2606
2606
|
};
|
|
2607
|
+
FlowSurfaceListNavigationTargetsRequest: {
|
|
2608
|
+
type: string;
|
|
2609
|
+
properties: {};
|
|
2610
|
+
additionalProperties: boolean;
|
|
2611
|
+
};
|
|
2612
|
+
FlowSurfaceNavigationTargetCapabilities: {
|
|
2613
|
+
type: string;
|
|
2614
|
+
required: string[];
|
|
2615
|
+
properties: {
|
|
2616
|
+
multiPortal: {
|
|
2617
|
+
type: string;
|
|
2618
|
+
description: string;
|
|
2619
|
+
};
|
|
2620
|
+
};
|
|
2621
|
+
additionalProperties: boolean;
|
|
2622
|
+
};
|
|
2623
|
+
FlowSurfaceNavigationTarget: {
|
|
2624
|
+
type: string;
|
|
2625
|
+
required: string[];
|
|
2626
|
+
properties: {
|
|
2627
|
+
kind: {
|
|
2628
|
+
type: string;
|
|
2629
|
+
enum: string[];
|
|
2630
|
+
};
|
|
2631
|
+
uid: {
|
|
2632
|
+
type: string;
|
|
2633
|
+
description: string;
|
|
2634
|
+
};
|
|
2635
|
+
title: {
|
|
2636
|
+
type: string;
|
|
2637
|
+
};
|
|
2638
|
+
icon: {
|
|
2639
|
+
type: string;
|
|
2640
|
+
nullable: boolean;
|
|
2641
|
+
};
|
|
2642
|
+
layoutUid: {
|
|
2643
|
+
type: string;
|
|
2644
|
+
};
|
|
2645
|
+
layoutType: {
|
|
2646
|
+
type: string;
|
|
2647
|
+
};
|
|
2648
|
+
routeName: {
|
|
2649
|
+
type: string;
|
|
2650
|
+
};
|
|
2651
|
+
routePath: {
|
|
2652
|
+
type: string;
|
|
2653
|
+
};
|
|
2654
|
+
authCheck: {
|
|
2655
|
+
type: string;
|
|
2656
|
+
};
|
|
2657
|
+
default: {
|
|
2658
|
+
type: string;
|
|
2659
|
+
};
|
|
2660
|
+
portalUid: {
|
|
2661
|
+
type: string;
|
|
2662
|
+
description: string;
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
additionalProperties: boolean;
|
|
2666
|
+
};
|
|
2667
|
+
FlowSurfaceListNavigationTargetsResult: {
|
|
2668
|
+
type: string;
|
|
2669
|
+
required: string[];
|
|
2670
|
+
properties: {
|
|
2671
|
+
version: {
|
|
2672
|
+
type: string;
|
|
2673
|
+
enum: string[];
|
|
2674
|
+
};
|
|
2675
|
+
capabilities: {
|
|
2676
|
+
$ref: string;
|
|
2677
|
+
};
|
|
2678
|
+
targets: {
|
|
2679
|
+
type: string;
|
|
2680
|
+
items: {
|
|
2681
|
+
$ref: string;
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2684
|
+
};
|
|
2685
|
+
additionalProperties: boolean;
|
|
2686
|
+
};
|
|
2607
2687
|
FlowSurfaceApplyBlueprintNavigationGroup: {
|
|
2608
2688
|
type: string;
|
|
2609
2689
|
properties: {
|
|
@@ -2635,6 +2715,14 @@ declare const _default: {
|
|
|
2635
2715
|
FlowSurfaceApplyBlueprintNavigation: {
|
|
2636
2716
|
type: string;
|
|
2637
2717
|
properties: {
|
|
2718
|
+
layoutUid: {
|
|
2719
|
+
type: string;
|
|
2720
|
+
description: string;
|
|
2721
|
+
};
|
|
2722
|
+
portalUid: {
|
|
2723
|
+
type: string;
|
|
2724
|
+
description: string;
|
|
2725
|
+
};
|
|
2638
2726
|
group: {
|
|
2639
2727
|
$ref: string;
|
|
2640
2728
|
};
|
|
@@ -3148,6 +3236,14 @@ declare const _default: {
|
|
|
3148
3236
|
type: string;
|
|
3149
3237
|
required: string[];
|
|
3150
3238
|
properties: {
|
|
3239
|
+
layoutUid: {
|
|
3240
|
+
type: string;
|
|
3241
|
+
description: string;
|
|
3242
|
+
};
|
|
3243
|
+
portalUid: {
|
|
3244
|
+
type: string;
|
|
3245
|
+
description: string;
|
|
3246
|
+
};
|
|
3151
3247
|
title: {
|
|
3152
3248
|
type: string;
|
|
3153
3249
|
};
|
|
@@ -3223,6 +3319,10 @@ declare const _default: {
|
|
|
3223
3319
|
type: string;
|
|
3224
3320
|
}[];
|
|
3225
3321
|
};
|
|
3322
|
+
portalUid: {
|
|
3323
|
+
type: string;
|
|
3324
|
+
description: string;
|
|
3325
|
+
};
|
|
3226
3326
|
title: {
|
|
3227
3327
|
type: string;
|
|
3228
3328
|
};
|
|
@@ -3270,6 +3370,14 @@ declare const _default: {
|
|
|
3270
3370
|
FlowSurfaceCreatePageRequest: {
|
|
3271
3371
|
type: string;
|
|
3272
3372
|
properties: {
|
|
3373
|
+
layoutUid: {
|
|
3374
|
+
type: string;
|
|
3375
|
+
description: string;
|
|
3376
|
+
};
|
|
3377
|
+
portalUid: {
|
|
3378
|
+
type: string;
|
|
3379
|
+
description: string;
|
|
3380
|
+
};
|
|
3273
3381
|
menuRouteId: {
|
|
3274
3382
|
oneOf: {
|
|
3275
3383
|
type: string;
|
|
@@ -5763,6 +5871,186 @@ declare const _default: {
|
|
|
5763
5871
|
};
|
|
5764
5872
|
additionalProperties: boolean;
|
|
5765
5873
|
};
|
|
5874
|
+
FlowSurfaceExportBlueprintUnsupportedPolicy: {
|
|
5875
|
+
type: string;
|
|
5876
|
+
enum: string[];
|
|
5877
|
+
description: string;
|
|
5878
|
+
};
|
|
5879
|
+
FlowSurfaceExportBlueprintUnsupportedItem: {
|
|
5880
|
+
type: string;
|
|
5881
|
+
required: string[];
|
|
5882
|
+
properties: {
|
|
5883
|
+
kind: {
|
|
5884
|
+
type: string;
|
|
5885
|
+
enum: string[];
|
|
5886
|
+
};
|
|
5887
|
+
use: {
|
|
5888
|
+
type: string;
|
|
5889
|
+
example: string;
|
|
5890
|
+
};
|
|
5891
|
+
type: {
|
|
5892
|
+
type: string;
|
|
5893
|
+
example: string;
|
|
5894
|
+
};
|
|
5895
|
+
path: {
|
|
5896
|
+
type: string;
|
|
5897
|
+
example: string;
|
|
5898
|
+
};
|
|
5899
|
+
reasonCode: {
|
|
5900
|
+
type: string;
|
|
5901
|
+
example: string;
|
|
5902
|
+
};
|
|
5903
|
+
manualAction: {
|
|
5904
|
+
type: string;
|
|
5905
|
+
example: string;
|
|
5906
|
+
};
|
|
5907
|
+
};
|
|
5908
|
+
additionalProperties: boolean;
|
|
5909
|
+
};
|
|
5910
|
+
FlowSurfaceExportBlueprintTarget: {
|
|
5911
|
+
oneOf: ({
|
|
5912
|
+
type: string;
|
|
5913
|
+
required: string[];
|
|
5914
|
+
properties: {
|
|
5915
|
+
uid: {
|
|
5916
|
+
type: string;
|
|
5917
|
+
};
|
|
5918
|
+
pageSchemaUid?: undefined;
|
|
5919
|
+
tabSchemaUid?: undefined;
|
|
5920
|
+
routeId?: undefined;
|
|
5921
|
+
};
|
|
5922
|
+
additionalProperties: boolean;
|
|
5923
|
+
} | {
|
|
5924
|
+
type: string;
|
|
5925
|
+
required: string[];
|
|
5926
|
+
properties: {
|
|
5927
|
+
pageSchemaUid: {
|
|
5928
|
+
type: string;
|
|
5929
|
+
};
|
|
5930
|
+
uid?: undefined;
|
|
5931
|
+
tabSchemaUid?: undefined;
|
|
5932
|
+
routeId?: undefined;
|
|
5933
|
+
};
|
|
5934
|
+
additionalProperties: boolean;
|
|
5935
|
+
} | {
|
|
5936
|
+
type: string;
|
|
5937
|
+
required: string[];
|
|
5938
|
+
properties: {
|
|
5939
|
+
tabSchemaUid: {
|
|
5940
|
+
type: string;
|
|
5941
|
+
};
|
|
5942
|
+
uid?: undefined;
|
|
5943
|
+
pageSchemaUid?: undefined;
|
|
5944
|
+
routeId?: undefined;
|
|
5945
|
+
};
|
|
5946
|
+
additionalProperties: boolean;
|
|
5947
|
+
} | {
|
|
5948
|
+
type: string;
|
|
5949
|
+
required: string[];
|
|
5950
|
+
properties: {
|
|
5951
|
+
routeId: {
|
|
5952
|
+
type: string;
|
|
5953
|
+
};
|
|
5954
|
+
uid?: undefined;
|
|
5955
|
+
pageSchemaUid?: undefined;
|
|
5956
|
+
tabSchemaUid?: undefined;
|
|
5957
|
+
};
|
|
5958
|
+
additionalProperties: boolean;
|
|
5959
|
+
})[];
|
|
5960
|
+
description: string;
|
|
5961
|
+
};
|
|
5962
|
+
FlowSurfaceExportBlueprintRequest: {
|
|
5963
|
+
type: string;
|
|
5964
|
+
required: string[];
|
|
5965
|
+
properties: {
|
|
5966
|
+
target: {
|
|
5967
|
+
$ref: string;
|
|
5968
|
+
};
|
|
5969
|
+
options: {
|
|
5970
|
+
type: string;
|
|
5971
|
+
properties: {
|
|
5972
|
+
unsupported: {
|
|
5973
|
+
$ref: string;
|
|
5974
|
+
};
|
|
5975
|
+
};
|
|
5976
|
+
additionalProperties: boolean;
|
|
5977
|
+
};
|
|
5978
|
+
};
|
|
5979
|
+
additionalProperties: boolean;
|
|
5980
|
+
};
|
|
5981
|
+
FlowSurfaceExportBlueprintSource: {
|
|
5982
|
+
type: string;
|
|
5983
|
+
required: string[];
|
|
5984
|
+
properties: {
|
|
5985
|
+
target: {
|
|
5986
|
+
$ref: string;
|
|
5987
|
+
};
|
|
5988
|
+
pageTitle: {
|
|
5989
|
+
type: string;
|
|
5990
|
+
};
|
|
5991
|
+
};
|
|
5992
|
+
additionalProperties: boolean;
|
|
5993
|
+
};
|
|
5994
|
+
FlowSurfaceExportBlueprintDocument: {
|
|
5995
|
+
type: string;
|
|
5996
|
+
required: string[];
|
|
5997
|
+
description: string;
|
|
5998
|
+
properties: {
|
|
5999
|
+
version: {
|
|
6000
|
+
type: string;
|
|
6001
|
+
enum: string[];
|
|
6002
|
+
};
|
|
6003
|
+
mode: {
|
|
6004
|
+
type: string;
|
|
6005
|
+
enum: string[];
|
|
6006
|
+
};
|
|
6007
|
+
target: {
|
|
6008
|
+
$ref: string;
|
|
6009
|
+
};
|
|
6010
|
+
page: {
|
|
6011
|
+
$ref: string;
|
|
6012
|
+
};
|
|
6013
|
+
tabs: {
|
|
6014
|
+
type: string;
|
|
6015
|
+
minItems: number;
|
|
6016
|
+
items: {
|
|
6017
|
+
$ref: string;
|
|
6018
|
+
};
|
|
6019
|
+
};
|
|
6020
|
+
assets: {
|
|
6021
|
+
$ref: string;
|
|
6022
|
+
};
|
|
6023
|
+
reaction: {
|
|
6024
|
+
$ref: string;
|
|
6025
|
+
};
|
|
6026
|
+
};
|
|
6027
|
+
additionalProperties: boolean;
|
|
6028
|
+
};
|
|
6029
|
+
FlowSurfaceExportBlueprintResponse: {
|
|
6030
|
+
type: string;
|
|
6031
|
+
required: string[];
|
|
6032
|
+
properties: {
|
|
6033
|
+
document: {
|
|
6034
|
+
$ref: string;
|
|
6035
|
+
};
|
|
6036
|
+
source: {
|
|
6037
|
+
$ref: string;
|
|
6038
|
+
};
|
|
6039
|
+
warnings: {
|
|
6040
|
+
type: string;
|
|
6041
|
+
items: {
|
|
6042
|
+
type: string;
|
|
6043
|
+
};
|
|
6044
|
+
};
|
|
6045
|
+
unsupported: {
|
|
6046
|
+
type: string;
|
|
6047
|
+
items: {
|
|
6048
|
+
$ref: string;
|
|
6049
|
+
};
|
|
6050
|
+
};
|
|
6051
|
+
};
|
|
6052
|
+
additionalProperties: boolean;
|
|
6053
|
+
};
|
|
5766
6054
|
FlowSurfaceMutateWriteTarget: {
|
|
5767
6055
|
type: string;
|
|
5768
6056
|
required: string[];
|
|
@@ -5922,6 +6210,7 @@ declare const _default: {
|
|
|
5922
6210
|
};
|
|
5923
6211
|
};
|
|
5924
6212
|
example: {};
|
|
6213
|
+
default: {};
|
|
5925
6214
|
supportsFlowContext: {
|
|
5926
6215
|
type: string;
|
|
5927
6216
|
};
|
|
@@ -28,6 +28,14 @@ export declare const flowSurfaceExamples: {
|
|
|
28
28
|
expectedKind: string;
|
|
29
29
|
}[];
|
|
30
30
|
};
|
|
31
|
+
exportBlueprint: {
|
|
32
|
+
target: {
|
|
33
|
+
pageSchemaUid: string;
|
|
34
|
+
};
|
|
35
|
+
options: {
|
|
36
|
+
unsupported: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
31
39
|
applyBlueprint: {
|
|
32
40
|
version: string;
|
|
33
41
|
mode: string;
|
|
@@ -660,6 +668,7 @@ export declare const flowSurfaceExamples: {
|
|
|
660
668
|
title: string;
|
|
661
669
|
description: string;
|
|
662
670
|
className: string;
|
|
671
|
+
showBlockCard: boolean;
|
|
663
672
|
version: string;
|
|
664
673
|
code: string;
|
|
665
674
|
};
|
|
@@ -756,6 +765,7 @@ export declare const flowSurfaceExamples: {
|
|
|
756
765
|
title: string;
|
|
757
766
|
description: string;
|
|
758
767
|
className: string;
|
|
768
|
+
showBlockCard: boolean;
|
|
759
769
|
version: string;
|
|
760
770
|
code: string;
|
|
761
771
|
};
|
|
@@ -1060,6 +1070,7 @@ export declare const flowSurfaceExamples: {
|
|
|
1060
1070
|
settings: {
|
|
1061
1071
|
title: string;
|
|
1062
1072
|
description: string;
|
|
1073
|
+
showBlockCard: boolean;
|
|
1063
1074
|
version: string;
|
|
1064
1075
|
code: string;
|
|
1065
1076
|
};
|
|
@@ -106,6 +106,14 @@ const flowSurfaceExamples = {
|
|
|
106
106
|
}
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
|
+
exportBlueprint: {
|
|
110
|
+
target: {
|
|
111
|
+
pageSchemaUid: "employees-page-schema"
|
|
112
|
+
},
|
|
113
|
+
options: {
|
|
114
|
+
unsupported: "error"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
109
117
|
applyBlueprint: {
|
|
110
118
|
version: "1",
|
|
111
119
|
mode: "create",
|
|
@@ -885,6 +893,7 @@ const flowSurfaceExamples = {
|
|
|
885
893
|
title: "Custom hero",
|
|
886
894
|
description: "Rendered by JS block runtime",
|
|
887
895
|
className: "hero-shell",
|
|
896
|
+
showBlockCard: true,
|
|
888
897
|
version: "1.0.0",
|
|
889
898
|
code: "ctx.render('<div>Hello from JS block</div>');"
|
|
890
899
|
}
|
|
@@ -988,6 +997,7 @@ const flowSurfaceExamples = {
|
|
|
988
997
|
title: "Users hero",
|
|
989
998
|
description: "Rendered from FlowSurfaces configure",
|
|
990
999
|
className: "users-hero",
|
|
1000
|
+
showBlockCard: true,
|
|
991
1001
|
version: "1.0.1",
|
|
992
1002
|
code: "ctx.render('<div>Users hero</div>');"
|
|
993
1003
|
}
|
|
@@ -1333,6 +1343,7 @@ const flowSurfaceExamples = {
|
|
|
1333
1343
|
settings: {
|
|
1334
1344
|
title: "Users banner",
|
|
1335
1345
|
description: "Custom JS rendered banner",
|
|
1346
|
+
showBlockCard: true,
|
|
1336
1347
|
version: "1.0.0",
|
|
1337
1348
|
code: "ctx.render('<div>Users banner</div>');"
|
|
1338
1349
|
}
|