@nocobase/plugin-flow-engine 2.1.0-alpha.2 → 2.1.0-alpha.20
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/LICENSE +201 -661
- package/README.md +79 -9
- package/dist/ai/ai-employees/nathan/index.d.ts +10 -0
- package/dist/ai/ai-employees/nathan/index.js +41 -0
- package/dist/ai/ai-employees/nathan/prompt.md +132 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +69 -0
- package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.js +2 -2
- package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.js +2 -2
- package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.js +2 -2
- package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.js +2 -2
- package/dist/ai/docs/runjs/context/block-model.md +35 -35
- package/dist/ai/docs/runjs/context/collection-field.md +53 -51
- package/dist/ai/docs/runjs/context/collection.md +39 -39
- package/dist/ai/docs/runjs/context/data-source-manager.md +40 -30
- package/dist/ai/docs/runjs/context/data-source.md +52 -44
- package/dist/ai/docs/runjs/context/element.md +44 -38
- package/dist/ai/docs/runjs/context/exit-all.md +37 -35
- package/dist/ai/docs/runjs/context/exit.md +38 -35
- package/dist/ai/docs/runjs/context/filter-manager.md +36 -30
- package/dist/ai/docs/runjs/context/form.md +57 -57
- package/dist/ai/docs/runjs/context/get-model.md +22 -21
- package/dist/ai/docs/runjs/context/get-value.md +20 -19
- package/dist/ai/docs/runjs/context/get-var.md +61 -55
- package/dist/ai/docs/runjs/context/i18n.md +17 -14
- package/dist/ai/docs/runjs/context/import-async.md +333 -45
- package/dist/ai/docs/runjs/context/init-resource.md +20 -20
- package/dist/ai/docs/runjs/context/libs.md +31 -31
- package/dist/ai/docs/runjs/context/location.md +34 -31
- package/dist/ai/docs/runjs/context/logger.md +41 -40
- package/dist/ai/docs/runjs/context/make-resource.md +27 -26
- package/dist/ai/docs/runjs/context/message.md +42 -41
- package/dist/ai/docs/runjs/context/modal.md +44 -44
- package/dist/ai/docs/runjs/context/model.md +36 -33
- package/dist/ai/docs/runjs/context/notification.md +41 -40
- package/dist/ai/docs/runjs/context/off.md +14 -14
- package/dist/ai/docs/runjs/context/on.md +30 -29
- package/dist/ai/docs/runjs/context/open-view.md +40 -40
- package/dist/ai/docs/runjs/context/render.md +37 -32
- package/dist/ai/docs/runjs/context/request.md +46 -45
- package/dist/ai/docs/runjs/context/require-async.md +28 -25
- package/dist/ai/docs/runjs/context/resource.md +34 -34
- package/dist/ai/docs/runjs/context/route.md +36 -34
- package/dist/ai/docs/runjs/context/router.md +43 -31
- package/dist/ai/docs/runjs/context/set-value.md +18 -17
- package/dist/ai/docs/runjs/context/sql.md +7 -15
- package/dist/ai/docs/runjs/context/t.md +20 -17
- package/dist/ai/docs/runjs/context/view.md +49 -46
- package/dist/ai/docs/runjs/document.md +1 -0
- package/dist/ai/docs/runjs/import-modules.md +32 -32
- package/dist/ai/docs/runjs/index.md +13 -13
- package/dist/ai/docs/runjs/jsx.md +19 -19
- package/dist/ai/docs/runjs/model/form-block-model.md +1 -3
- package/dist/ai/docs/runjs/render.md +15 -15
- package/dist/ai/docs/runjs/resource/api-resource.md +53 -53
- package/dist/ai/docs/runjs/resource/multi-record-resource.md +64 -64
- package/dist/ai/docs/runjs/resource/single-record-resource.md +55 -55
- package/dist/ai/docs/runjs/resource/sql-resource.md +57 -57
- package/dist/ai/docs/runjs/window.md +5 -5
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +11 -11
- 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/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/collections/flowsql.js +1 -0
- package/dist/server/flow-surfaces/action-scope.d.ts +37 -0
- package/dist/server/flow-surfaces/action-scope.js +148 -0
- package/dist/server/flow-surfaces/apply/compiler.d.ts +13 -0
- package/dist/server/flow-surfaces/apply/compiler.js +969 -0
- package/dist/server/flow-surfaces/apply/layout.d.ts +34 -0
- package/dist/server/flow-surfaces/apply/layout.js +175 -0
- package/dist/server/flow-surfaces/apply/matching.d.ts +16 -0
- package/dist/server/flow-surfaces/apply/matching.js +181 -0
- package/dist/server/flow-surfaces/approval/blueprint-service.d.ts +84 -0
- package/dist/server/flow-surfaces/approval/blueprint-service.js +589 -0
- package/dist/server/flow-surfaces/approval/blueprint.d.ts +21 -0
- package/dist/server/flow-surfaces/approval/blueprint.js +187 -0
- package/dist/server/flow-surfaces/approval/builder.d.ts +225 -0
- package/dist/server/flow-surfaces/approval/builder.js +384 -0
- package/dist/server/flow-surfaces/approval/catalog-specs.d.ts +33 -0
- package/dist/server/flow-surfaces/approval/catalog-specs.js +156 -0
- package/dist/server/flow-surfaces/approval/index.d.ts +14 -0
- package/dist/server/flow-surfaces/approval/index.js +40 -0
- package/dist/server/flow-surfaces/approval/runtime-config.d.ts +44 -0
- package/dist/server/flow-surfaces/approval/runtime-config.js +299 -0
- package/dist/server/flow-surfaces/approval/semantic-use.d.ts +23 -0
- package/dist/server/flow-surfaces/approval/semantic-use.js +155 -0
- package/dist/server/flow-surfaces/association-title-field.d.ts +20 -0
- package/dist/server/flow-surfaces/association-title-field.js +158 -0
- package/dist/server/flow-surfaces/blueprint/compile-blocks.d.ts +14 -0
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +844 -0
- package/dist/server/flow-surfaces/blueprint/compile-plan.d.ts +13 -0
- package/dist/server/flow-surfaces/blueprint/compile-plan.js +308 -0
- package/dist/server/flow-surfaces/blueprint/compile-reaction.d.ts +11 -0
- package/dist/server/flow-surfaces/blueprint/compile-reaction.js +72 -0
- package/dist/server/flow-surfaces/blueprint/index.d.ts +12 -0
- package/dist/server/flow-surfaces/blueprint/index.js +44 -0
- package/dist/server/flow-surfaces/blueprint/normalize-document.d.ts +10 -0
- package/dist/server/flow-surfaces/blueprint/normalize-document.js +296 -0
- package/dist/server/flow-surfaces/blueprint/private-utils.d.ts +26 -0
- package/dist/server/flow-surfaces/blueprint/private-utils.js +182 -0
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +161 -0
- package/dist/server/flow-surfaces/blueprint/public-types.js +24 -0
- package/dist/server/flow-surfaces/builder.d.ts +211 -0
- package/dist/server/flow-surfaces/builder.js +931 -0
- package/dist/server/flow-surfaces/catalog-smart.d.ts +18 -0
- package/dist/server/flow-surfaces/catalog-smart.js +239 -0
- package/dist/server/flow-surfaces/catalog-smart.projector.d.ts +15 -0
- package/dist/server/flow-surfaces/catalog-smart.projector.js +157 -0
- package/dist/server/flow-surfaces/catalog-smart.types.d.ts +99 -0
- package/dist/server/flow-surfaces/catalog-smart.types.js +24 -0
- package/dist/server/flow-surfaces/catalog.d.ts +78 -0
- package/dist/server/flow-surfaces/catalog.js +3254 -0
- package/dist/server/flow-surfaces/chart-config.d.ts +121 -0
- package/dist/server/flow-surfaces/chart-config.js +1394 -0
- package/dist/server/flow-surfaces/compose-compiler.d.ts +106 -0
- package/dist/server/flow-surfaces/compose-compiler.js +163 -0
- package/dist/server/flow-surfaces/compose-runtime.d.ts +93 -0
- package/dist/server/flow-surfaces/compose-runtime.js +375 -0
- package/dist/server/flow-surfaces/configure-options.d.ts +23 -0
- package/dist/server/flow-surfaces/configure-options.js +751 -0
- package/dist/server/flow-surfaces/constants.d.ts +351 -0
- package/dist/server/flow-surfaces/constants.js +104 -0
- package/dist/server/flow-surfaces/context.d.ts +72 -0
- package/dist/server/flow-surfaces/context.js +556 -0
- package/dist/server/flow-surfaces/contract-guard.d.ts +19 -0
- package/dist/server/flow-surfaces/contract-guard.js +411 -0
- package/dist/server/flow-surfaces/default-action-popup.d.ts +53 -0
- package/dist/server/flow-surfaces/default-action-popup.js +262 -0
- package/dist/server/flow-surfaces/default-block-actions.d.ts +32 -0
- package/dist/server/flow-surfaces/default-block-actions.js +178 -0
- package/dist/server/flow-surfaces/errors.d.ts +47 -0
- package/dist/server/flow-surfaces/errors.js +145 -0
- package/dist/server/flow-surfaces/executor.d.ts +23 -0
- package/dist/server/flow-surfaces/executor.js +132 -0
- package/dist/server/flow-surfaces/field-binding-registry.d.ts +23 -0
- package/dist/server/flow-surfaces/field-binding-registry.js +391 -0
- package/dist/server/flow-surfaces/field-semantics.d.ts +15 -0
- package/dist/server/flow-surfaces/field-semantics.js +81 -0
- package/dist/server/flow-surfaces/index.d.ts +11 -0
- package/dist/server/flow-surfaces/index.js +175 -0
- package/dist/server/flow-surfaces/locator.d.ts +28 -0
- package/dist/server/flow-surfaces/locator.js +240 -0
- package/dist/server/flow-surfaces/node-use-sets.d.ts +15 -0
- package/dist/server/flow-surfaces/node-use-sets.js +126 -0
- package/dist/server/flow-surfaces/payload-shape.d.ts +9 -0
- package/dist/server/flow-surfaces/payload-shape.js +61 -0
- package/dist/server/flow-surfaces/placement.d.ts +33 -0
- package/dist/server/flow-surfaces/placement.js +192 -0
- package/dist/server/flow-surfaces/planning/action-specs.d.ts +179 -0
- package/dist/server/flow-surfaces/planning/action-specs.js +190 -0
- package/dist/server/flow-surfaces/planning/compiler.d.ts +37 -0
- package/dist/server/flow-surfaces/planning/compiler.js +376 -0
- package/dist/server/flow-surfaces/planning/context.d.ts +30 -0
- package/dist/server/flow-surfaces/planning/context.js +139 -0
- package/dist/server/flow-surfaces/planning/created-keys.d.ts +34 -0
- package/dist/server/flow-surfaces/planning/created-keys.js +375 -0
- package/dist/server/flow-surfaces/planning/key-kind.d.ts +11 -0
- package/dist/server/flow-surfaces/planning/key-kind.js +88 -0
- package/dist/server/flow-surfaces/planning/key-persistence.d.ts +34 -0
- package/dist/server/flow-surfaces/planning/key-persistence.js +148 -0
- package/dist/server/flow-surfaces/planning/key-registry.d.ts +40 -0
- package/dist/server/flow-surfaces/planning/key-registry.js +206 -0
- package/dist/server/flow-surfaces/planning/runtime.d.ts +37 -0
- package/dist/server/flow-surfaces/planning/runtime.js +259 -0
- package/dist/server/flow-surfaces/planning/step-link.d.ts +14 -0
- package/dist/server/flow-surfaces/planning/step-link.js +104 -0
- package/dist/server/flow-surfaces/planning/types.d.ts +55 -0
- package/dist/server/flow-surfaces/planning/types.js +24 -0
- package/dist/server/flow-surfaces/reaction/errors.d.ts +20 -0
- package/dist/server/flow-surfaces/reaction/errors.js +69 -0
- package/dist/server/flow-surfaces/reaction/field-value.d.ts +34 -0
- package/dist/server/flow-surfaces/reaction/field-value.js +181 -0
- package/dist/server/flow-surfaces/reaction/fingerprint.d.ts +16 -0
- package/dist/server/flow-surfaces/reaction/fingerprint.js +71 -0
- package/dist/server/flow-surfaces/reaction/linkage.d.ts +136 -0
- package/dist/server/flow-surfaces/reaction/linkage.js +882 -0
- package/dist/server/flow-surfaces/reaction/meta.d.ts +11 -0
- package/dist/server/flow-surfaces/reaction/meta.js +451 -0
- package/dist/server/flow-surfaces/reaction/registry.d.ts +149 -0
- package/dist/server/flow-surfaces/reaction/registry.js +199 -0
- package/dist/server/flow-surfaces/reaction/resolver.d.ts +22 -0
- package/dist/server/flow-surfaces/reaction/resolver.js +202 -0
- package/dist/server/flow-surfaces/reaction/types.d.ts +241 -0
- package/dist/server/flow-surfaces/reaction/types.js +24 -0
- package/dist/server/flow-surfaces/reaction/utils.d.ts +17 -0
- package/dist/server/flow-surfaces/reaction/utils.js +67 -0
- package/dist/server/flow-surfaces/reaction/value-expr.d.ts +15 -0
- package/dist/server/flow-surfaces/reaction/value-expr.js +209 -0
- package/dist/server/flow-surfaces/reference-guards.d.ts +19 -0
- package/dist/server/flow-surfaces/reference-guards.js +103 -0
- package/dist/server/flow-surfaces/route-sync.d.ts +47 -0
- package/dist/server/flow-surfaces/route-sync.js +392 -0
- package/dist/server/flow-surfaces/service-helpers.d.ts +42 -0
- package/dist/server/flow-surfaces/service-helpers.js +377 -0
- package/dist/server/flow-surfaces/service-utils.d.ts +101 -0
- package/dist/server/flow-surfaces/service-utils.js +762 -0
- package/dist/server/flow-surfaces/service.d.ts +703 -0
- package/dist/server/flow-surfaces/service.js +11376 -0
- package/dist/server/flow-surfaces/support-matrix.d.ts +28 -0
- package/dist/server/flow-surfaces/support-matrix.js +246 -0
- package/dist/server/flow-surfaces/surface-context.d.ts +52 -0
- package/dist/server/flow-surfaces/surface-context.js +436 -0
- package/dist/server/flow-surfaces/template-compatibility.d.ts +42 -0
- package/dist/server/flow-surfaces/template-compatibility.js +189 -0
- package/dist/server/flow-surfaces/template-service-utils.d.ts +62 -0
- package/dist/server/flow-surfaces/template-service-utils.js +281 -0
- package/dist/server/flow-surfaces/types.d.ts +287 -0
- package/dist/server/flow-surfaces/types.js +24 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +7 -2
- package/dist/server/plugin.d.ts +0 -1
- package/dist/server/plugin.js +9 -34
- package/dist/server/repository.js +0 -5
- package/dist/server/variables/resolve.d.ts +21 -0
- package/dist/server/variables/resolve.js +79 -0
- package/dist/swagger/flow-surfaces.d.ts +5804 -0
- package/dist/swagger/flow-surfaces.examples.d.ts +1427 -0
- package/dist/swagger/flow-surfaces.examples.js +1607 -0
- package/dist/swagger/flow-surfaces.js +5195 -0
- package/dist/swagger/flow-surfaces.template-action-docs.d.ts +62 -0
- package/dist/swagger/flow-surfaces.template-action-docs.js +121 -0
- package/dist/swagger/flow-surfaces.template-schemas.d.ts +239 -0
- package/dist/swagger/flow-surfaces.template-schemas.js +255 -0
- package/dist/swagger/index.d.ts +5809 -0
- package/dist/swagger/index.js +50 -0
- package/package.json +3 -3
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextApis.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextEnvs.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/getContextVars.d.ts +0 -0
- /package/dist/ai/{tools → ai-employees/nathan/skills/frontend-developer/tools}/lintAndTestJS.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
import type { FlowSurfaceApplyBlueprintDocument, FlowSurfaceApplyBlueprintProgram, FlowSurfaceApplyBlueprintReplaceTargetInfo } from './public-types';
|
|
10
|
+
export declare function compileFlowSurfaceApplyBlueprintRequest(document: FlowSurfaceApplyBlueprintDocument, options?: {
|
|
11
|
+
replaceTarget?: FlowSurfaceApplyBlueprintReplaceTargetInfo;
|
|
12
|
+
}): FlowSurfaceApplyBlueprintProgram;
|
|
13
|
+
export declare function resolveApplyBlueprintPageLocator(program: FlowSurfaceApplyBlueprintProgram, executeResult: Record<string, any> | undefined): import("../types").FlowSurfaceReadLocator;
|
|
@@ -0,0 +1,308 @@
|
|
|
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 __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var compile_plan_exports = {};
|
|
38
|
+
__export(compile_plan_exports, {
|
|
39
|
+
compileFlowSurfaceApplyBlueprintRequest: () => compileFlowSurfaceApplyBlueprintRequest,
|
|
40
|
+
resolveApplyBlueprintPageLocator: () => resolveApplyBlueprintPageLocator
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(compile_plan_exports);
|
|
43
|
+
var import_lodash = __toESM(require("lodash"));
|
|
44
|
+
var import_errors = require("../errors");
|
|
45
|
+
var import_service_utils = require("../service-utils");
|
|
46
|
+
var import_compile_blocks = require("./compile-blocks");
|
|
47
|
+
var import_compile_reaction = require("./compile-reaction");
|
|
48
|
+
const CREATE_MENU_ITEM_STEP_ID = "blueprintMenuItem";
|
|
49
|
+
const CREATE_MENU_GROUP_STEP_ID = "blueprintMenuGroup";
|
|
50
|
+
const CREATE_PAGE_STEP_ID = "blueprintPage";
|
|
51
|
+
const PAGE_CONFIGURE_STEP_ID = "blueprintPageConfigure";
|
|
52
|
+
function buildApplyBlueprintTabStepId(kind, tabIndex) {
|
|
53
|
+
const suffix = tabIndex + 1;
|
|
54
|
+
if (kind === "compose") {
|
|
55
|
+
return `blueprintComposeTab__${suffix}`;
|
|
56
|
+
}
|
|
57
|
+
if (kind === "add") {
|
|
58
|
+
return `blueprintAddTab__${suffix}`;
|
|
59
|
+
}
|
|
60
|
+
return `blueprintUpdateTab__${suffix}`;
|
|
61
|
+
}
|
|
62
|
+
function buildPageChrome(document) {
|
|
63
|
+
var _a, _b, _c, _d;
|
|
64
|
+
const firstTab = document.tabs[0];
|
|
65
|
+
const pageTitle = ((_a = document.page) == null ? void 0 : _a.title) || ((_c = (_b = document.navigation) == null ? void 0 : _b.item) == null ? void 0 : _c.title) || (firstTab == null ? void 0 : firstTab.title) || "Untitled page";
|
|
66
|
+
return {
|
|
67
|
+
pageTitle,
|
|
68
|
+
tabTitle: (firstTab == null ? void 0 : firstTab.title) || pageTitle,
|
|
69
|
+
tabIcon: firstTab == null ? void 0 : firstTab.icon,
|
|
70
|
+
tabDocumentTitle: firstTab == null ? void 0 : firstTab.documentTitle,
|
|
71
|
+
enableTabs: ((_d = document.page) == null ? void 0 : _d.enableTabs) ?? document.tabs.length > 1
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function buildTabSelectorFromStep(stepId, path = "tabSchemaUid") {
|
|
75
|
+
return {
|
|
76
|
+
step: stepId,
|
|
77
|
+
path
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function buildTabSelectorFromUid(uid) {
|
|
81
|
+
return {
|
|
82
|
+
locator: { uid }
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function compileCreatePlan(document) {
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
|
|
87
|
+
const steps = [];
|
|
88
|
+
const chrome = buildPageChrome(document);
|
|
89
|
+
if (import_lodash.default.isPlainObject((_a = document.navigation) == null ? void 0 : _a.group) && import_lodash.default.isUndefined(document.navigation.group.routeId)) {
|
|
90
|
+
steps.push({
|
|
91
|
+
id: CREATE_MENU_GROUP_STEP_ID,
|
|
92
|
+
action: "createMenu",
|
|
93
|
+
values: (0, import_service_utils.buildDefinedPayload)({
|
|
94
|
+
title: (_c = (_b = document.navigation) == null ? void 0 : _b.group) == null ? void 0 : _c.title,
|
|
95
|
+
type: "group",
|
|
96
|
+
icon: (_e = (_d = document.navigation) == null ? void 0 : _d.group) == null ? void 0 : _e.icon,
|
|
97
|
+
tooltip: (_g = (_f = document.navigation) == null ? void 0 : _f.group) == null ? void 0 : _g.tooltip,
|
|
98
|
+
hideInMenu: (_i = (_h = document.navigation) == null ? void 0 : _h.group) == null ? void 0 : _i.hideInMenu
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
steps.push({
|
|
103
|
+
id: CREATE_MENU_ITEM_STEP_ID,
|
|
104
|
+
action: "createMenu",
|
|
105
|
+
values: (0, import_service_utils.buildDefinedPayload)({
|
|
106
|
+
title: ((_k = (_j = document.navigation) == null ? void 0 : _j.item) == null ? void 0 : _k.title) || chrome.pageTitle,
|
|
107
|
+
type: "item",
|
|
108
|
+
icon: (_m = (_l = document.navigation) == null ? void 0 : _l.item) == null ? void 0 : _m.icon,
|
|
109
|
+
tooltip: (_o = (_n = document.navigation) == null ? void 0 : _n.item) == null ? void 0 : _o.tooltip,
|
|
110
|
+
hideInMenu: (_q = (_p = document.navigation) == null ? void 0 : _p.item) == null ? void 0 : _q.hideInMenu,
|
|
111
|
+
parentMenuRouteId: import_lodash.default.isUndefined((_s = (_r = document.navigation) == null ? void 0 : _r.group) == null ? void 0 : _s.routeId) ? ((_u = (_t = document.navigation) == null ? void 0 : _t.group) == null ? void 0 : _u.title) ? { step: CREATE_MENU_GROUP_STEP_ID, path: "routeId" } : void 0 : (_w = (_v = document.navigation) == null ? void 0 : _v.group) == null ? void 0 : _w.routeId
|
|
112
|
+
})
|
|
113
|
+
});
|
|
114
|
+
steps.push({
|
|
115
|
+
id: CREATE_PAGE_STEP_ID,
|
|
116
|
+
action: "createPage",
|
|
117
|
+
values: (0, import_service_utils.buildDefinedPayload)({
|
|
118
|
+
menuRouteId: { step: CREATE_MENU_ITEM_STEP_ID, path: "routeId" },
|
|
119
|
+
title: chrome.pageTitle,
|
|
120
|
+
icon: (_x = document.page) == null ? void 0 : _x.icon,
|
|
121
|
+
documentTitle: (_y = document.page) == null ? void 0 : _y.documentTitle,
|
|
122
|
+
enableHeader: (_z = document.page) == null ? void 0 : _z.enableHeader,
|
|
123
|
+
enableTabs: chrome.enableTabs,
|
|
124
|
+
displayTitle: (_A = document.page) == null ? void 0 : _A.displayTitle,
|
|
125
|
+
tabTitle: chrome.tabTitle,
|
|
126
|
+
tabIcon: chrome.tabIcon,
|
|
127
|
+
tabDocumentTitle: chrome.tabDocumentTitle,
|
|
128
|
+
tabSchemaName: document.tabs[0].key
|
|
129
|
+
})
|
|
130
|
+
});
|
|
131
|
+
steps.push({
|
|
132
|
+
id: buildApplyBlueprintTabStepId("compose", 0),
|
|
133
|
+
action: "compose",
|
|
134
|
+
selectors: {
|
|
135
|
+
target: buildTabSelectorFromStep(CREATE_PAGE_STEP_ID)
|
|
136
|
+
},
|
|
137
|
+
values: (0, import_compile_blocks.compileTabComposeValues)(document.tabs[0], document, 0, { mode: "append" })
|
|
138
|
+
});
|
|
139
|
+
document.tabs.slice(1).forEach((tab, offset) => {
|
|
140
|
+
const tabIndex = offset + 1;
|
|
141
|
+
const addTabStepId = buildApplyBlueprintTabStepId("add", tabIndex);
|
|
142
|
+
steps.push({
|
|
143
|
+
id: addTabStepId,
|
|
144
|
+
action: "addTab",
|
|
145
|
+
selectors: {
|
|
146
|
+
target: {
|
|
147
|
+
step: CREATE_PAGE_STEP_ID,
|
|
148
|
+
path: "pageUid"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
values: (0, import_service_utils.buildDefinedPayload)({
|
|
152
|
+
title: tab.title || tab.key,
|
|
153
|
+
icon: tab.icon,
|
|
154
|
+
documentTitle: tab.documentTitle,
|
|
155
|
+
tabSchemaName: tab.key
|
|
156
|
+
})
|
|
157
|
+
});
|
|
158
|
+
steps.push({
|
|
159
|
+
id: buildApplyBlueprintTabStepId("compose", tabIndex),
|
|
160
|
+
action: "compose",
|
|
161
|
+
selectors: {
|
|
162
|
+
target: buildTabSelectorFromStep(addTabStepId)
|
|
163
|
+
},
|
|
164
|
+
values: (0, import_compile_blocks.compileTabComposeValues)(tab, document, tabIndex, { mode: "append" })
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
steps.push(...(0, import_compile_reaction.compileReactionPlanSteps)(document.reaction));
|
|
168
|
+
return {
|
|
169
|
+
document,
|
|
170
|
+
steps,
|
|
171
|
+
pageLocator: {}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function buildPageConfigureChanges(document) {
|
|
175
|
+
var _a, _b, _c, _d, _e, _f;
|
|
176
|
+
return (0, import_service_utils.buildDefinedPayload)({
|
|
177
|
+
title: (_a = document.page) == null ? void 0 : _a.title,
|
|
178
|
+
icon: (_b = document.page) == null ? void 0 : _b.icon,
|
|
179
|
+
documentTitle: (_c = document.page) == null ? void 0 : _c.documentTitle,
|
|
180
|
+
enableHeader: (_d = document.page) == null ? void 0 : _d.enableHeader,
|
|
181
|
+
enableTabs: (_e = document.page) == null ? void 0 : _e.enableTabs,
|
|
182
|
+
displayTitle: (_f = document.page) == null ? void 0 : _f.displayTitle
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function compileReplacePlan(document, targetInfo) {
|
|
186
|
+
const steps = [];
|
|
187
|
+
const pageChanges = buildPageConfigureChanges(document);
|
|
188
|
+
if (Object.keys(pageChanges).length) {
|
|
189
|
+
steps.push({
|
|
190
|
+
id: PAGE_CONFIGURE_STEP_ID,
|
|
191
|
+
action: "configure",
|
|
192
|
+
selectors: {
|
|
193
|
+
target: {
|
|
194
|
+
locator: {
|
|
195
|
+
uid: targetInfo.pageUid
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
values: {
|
|
200
|
+
changes: pageChanges
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
document.tabs.forEach((tab, index) => {
|
|
205
|
+
const existingTab = targetInfo.tabs[index];
|
|
206
|
+
if (existingTab) {
|
|
207
|
+
const tabChanges = (0, import_service_utils.buildDefinedPayload)({
|
|
208
|
+
title: tab.title,
|
|
209
|
+
icon: tab.icon,
|
|
210
|
+
documentTitle: tab.documentTitle
|
|
211
|
+
});
|
|
212
|
+
if (Object.keys(tabChanges).length) {
|
|
213
|
+
steps.push({
|
|
214
|
+
id: buildApplyBlueprintTabStepId("update", index),
|
|
215
|
+
action: "updateTab",
|
|
216
|
+
selectors: {
|
|
217
|
+
target: buildTabSelectorFromUid(existingTab.uid)
|
|
218
|
+
},
|
|
219
|
+
values: tabChanges
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
steps.push({
|
|
223
|
+
id: buildApplyBlueprintTabStepId("compose", index),
|
|
224
|
+
action: "compose",
|
|
225
|
+
selectors: {
|
|
226
|
+
target: buildTabSelectorFromUid(existingTab.uid)
|
|
227
|
+
},
|
|
228
|
+
values: (0, import_compile_blocks.compileTabComposeValues)(tab, document, index, { mode: "replace" })
|
|
229
|
+
});
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
const addTabStepId = buildApplyBlueprintTabStepId("add", index);
|
|
233
|
+
steps.push({
|
|
234
|
+
id: addTabStepId,
|
|
235
|
+
action: "addTab",
|
|
236
|
+
selectors: {
|
|
237
|
+
target: {
|
|
238
|
+
locator: {
|
|
239
|
+
uid: targetInfo.pageUid
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
values: (0, import_service_utils.buildDefinedPayload)({
|
|
244
|
+
title: tab.title || tab.key,
|
|
245
|
+
icon: tab.icon,
|
|
246
|
+
documentTitle: tab.documentTitle,
|
|
247
|
+
tabSchemaName: tab.key
|
|
248
|
+
})
|
|
249
|
+
});
|
|
250
|
+
steps.push({
|
|
251
|
+
id: buildApplyBlueprintTabStepId("compose", index),
|
|
252
|
+
action: "compose",
|
|
253
|
+
selectors: {
|
|
254
|
+
target: buildTabSelectorFromStep(addTabStepId)
|
|
255
|
+
},
|
|
256
|
+
values: (0, import_compile_blocks.compileTabComposeValues)(tab, document, index, { mode: "append" })
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
targetInfo.tabs.slice(document.tabs.length).reverse().forEach((tab, index) => {
|
|
260
|
+
steps.push({
|
|
261
|
+
id: `blueprintRemoveTab__${index + 1}`,
|
|
262
|
+
action: "removeTab",
|
|
263
|
+
selectors: {
|
|
264
|
+
target: buildTabSelectorFromUid(tab.uid)
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
steps.push(...(0, import_compile_reaction.compileReactionPlanSteps)(document.reaction));
|
|
269
|
+
return {
|
|
270
|
+
document,
|
|
271
|
+
surface: {
|
|
272
|
+
locator: import_lodash.default.cloneDeep(targetInfo.locator)
|
|
273
|
+
},
|
|
274
|
+
steps,
|
|
275
|
+
pageLocator: import_lodash.default.cloneDeep(targetInfo.locator),
|
|
276
|
+
pageUid: targetInfo.pageUid
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
function compileFlowSurfaceApplyBlueprintRequest(document, options = {}) {
|
|
280
|
+
if (document.mode === "create") {
|
|
281
|
+
return compileCreatePlan(document);
|
|
282
|
+
}
|
|
283
|
+
if (!options.replaceTarget) {
|
|
284
|
+
(0, import_errors.throwBadRequest)(`flowSurfaces applyBlueprint replace target resolution is missing`);
|
|
285
|
+
}
|
|
286
|
+
return compileReplacePlan(document, options.replaceTarget);
|
|
287
|
+
}
|
|
288
|
+
function resolveApplyBlueprintPageLocator(program, executeResult) {
|
|
289
|
+
var _a, _b, _c;
|
|
290
|
+
if (program.document.mode === "replace") {
|
|
291
|
+
return import_lodash.default.cloneDeep(program.pageLocator);
|
|
292
|
+
}
|
|
293
|
+
const resultById = Object.fromEntries(
|
|
294
|
+
import_lodash.default.castArray((executeResult == null ? void 0 : executeResult.results) || []).map((item) => [String((item == null ? void 0 : item.id) || (item == null ? void 0 : item.index)), item == null ? void 0 : item.result])
|
|
295
|
+
);
|
|
296
|
+
const pageSchemaUid = ((_a = resultById[CREATE_PAGE_STEP_ID]) == null ? void 0 : _a.pageSchemaUid) || ((_c = (_b = executeResult == null ? void 0 : executeResult.target) == null ? void 0 : _b.locator) == null ? void 0 : _c.pageSchemaUid) || void 0;
|
|
297
|
+
if (!pageSchemaUid) {
|
|
298
|
+
(0, import_errors.throwBadRequest)(`flowSurfaces applyBlueprint failed to resolve created pageSchemaUid`);
|
|
299
|
+
}
|
|
300
|
+
return {
|
|
301
|
+
pageSchemaUid: String(pageSchemaUid)
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
305
|
+
0 && (module.exports = {
|
|
306
|
+
compileFlowSurfaceApplyBlueprintRequest,
|
|
307
|
+
resolveApplyBlueprintPageLocator
|
|
308
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import type { FlowSurfacePlanStep } from '../types';
|
|
10
|
+
import type { FlowSurfaceApplyBlueprintDocument } from './public-types';
|
|
11
|
+
export declare function compileReactionPlanSteps(reaction: FlowSurfaceApplyBlueprintDocument['reaction'] | undefined): FlowSurfacePlanStep[];
|
|
@@ -0,0 +1,72 @@
|
|
|
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 __create = Object.create;
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
|
+
var compile_reaction_exports = {};
|
|
38
|
+
__export(compile_reaction_exports, {
|
|
39
|
+
compileReactionPlanSteps: () => compileReactionPlanSteps
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(compile_reaction_exports);
|
|
42
|
+
var import_lodash = __toESM(require("lodash"));
|
|
43
|
+
var import_service_utils = require("../service-utils");
|
|
44
|
+
function buildReactionStepId(index) {
|
|
45
|
+
return `blueprintReaction__${index + 1}`;
|
|
46
|
+
}
|
|
47
|
+
function compileReactionItem(item, index) {
|
|
48
|
+
return {
|
|
49
|
+
id: buildReactionStepId(index),
|
|
50
|
+
action: item.type,
|
|
51
|
+
selectors: {
|
|
52
|
+
target: {
|
|
53
|
+
key: item.target
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
values: (0, import_service_utils.buildDefinedPayload)({
|
|
57
|
+
rules: import_lodash.default.cloneDeep(item.rules),
|
|
58
|
+
expectedFingerprint: item.expectedFingerprint
|
|
59
|
+
})
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function compileReactionPlanSteps(reaction) {
|
|
63
|
+
const reactionItems = import_lodash.default.castArray((reaction == null ? void 0 : reaction.items) || []);
|
|
64
|
+
if (!reactionItems.length) {
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
return reactionItems.map((item, index) => compileReactionItem(item, index));
|
|
68
|
+
}
|
|
69
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
70
|
+
0 && (module.exports = {
|
|
71
|
+
compileReactionPlanSteps
|
|
72
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export type { FlowSurfaceApplyBlueprintAssetMap, FlowSurfaceApplyBlueprintAssets, FlowSurfaceApplyBlueprintDocument, FlowSurfaceApplyBlueprintMode, FlowSurfaceApplyBlueprintNavigation, FlowSurfaceApplyBlueprintNavigationGroup, FlowSurfaceApplyBlueprintPage, FlowSurfaceApplyBlueprintProgram, FlowSurfaceApplyBlueprintReaction, FlowSurfaceApplyBlueprintReplaceTargetInfo, FlowSurfaceApplyBlueprintTabDocument, FlowSurfaceApplyBlueprintTarget, } from './public-types';
|
|
10
|
+
export { prepareFlowSurfaceApplyBlueprintDocument } from './normalize-document';
|
|
11
|
+
export { compileFlowSurfaceApplyBlueprintRequest, resolveApplyBlueprintPageLocator } from './compile-plan';
|
|
12
|
+
export { compileReactionPlanSteps } from './compile-reaction';
|
|
@@ -0,0 +1,44 @@
|
|
|
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 blueprint_exports = {};
|
|
28
|
+
__export(blueprint_exports, {
|
|
29
|
+
compileFlowSurfaceApplyBlueprintRequest: () => import_compile_plan.compileFlowSurfaceApplyBlueprintRequest,
|
|
30
|
+
compileReactionPlanSteps: () => import_compile_reaction.compileReactionPlanSteps,
|
|
31
|
+
prepareFlowSurfaceApplyBlueprintDocument: () => import_normalize_document.prepareFlowSurfaceApplyBlueprintDocument,
|
|
32
|
+
resolveApplyBlueprintPageLocator: () => import_compile_plan.resolveApplyBlueprintPageLocator
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(blueprint_exports);
|
|
35
|
+
var import_normalize_document = require("./normalize-document");
|
|
36
|
+
var import_compile_plan = require("./compile-plan");
|
|
37
|
+
var import_compile_reaction = require("./compile-reaction");
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
compileFlowSurfaceApplyBlueprintRequest,
|
|
41
|
+
compileReactionPlanSteps,
|
|
42
|
+
prepareFlowSurfaceApplyBlueprintDocument,
|
|
43
|
+
resolveApplyBlueprintPageLocator
|
|
44
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import type { FlowSurfaceApplyBlueprintDocument } from './public-types';
|
|
10
|
+
export declare function prepareFlowSurfaceApplyBlueprintDocument(input: Record<string, any>): FlowSurfaceApplyBlueprintDocument;
|