@nocobase/plugin-flow-engine 2.3.0-beta.2 → 2.3.0-beta.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/dist/externalVersion.js +9 -9
- 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/liquidjs/LICENSE +21 -0
- package/dist/node_modules/liquidjs/bin/liquid.js +139 -0
- package/dist/node_modules/liquidjs/dist/build/fs-impl-browser.d.ts +7 -0
- package/dist/node_modules/liquidjs/dist/build/fs-impl-browser.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/build/streamed-emitter-browser.d.ts +10 -0
- package/dist/node_modules/liquidjs/dist/build/streamed-emitter-browser.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/cache/cache.d.ts +7 -0
- package/dist/node_modules/liquidjs/dist/cache/index.d.ts +2 -0
- package/dist/node_modules/liquidjs/dist/cache/lru.d.ts +14 -0
- package/dist/node_modules/liquidjs/dist/cache/lru.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/context/block-mode.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/context/context.d.ts +64 -0
- package/dist/node_modules/liquidjs/dist/context/context.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/context/index.d.ts +3 -0
- package/dist/node_modules/liquidjs/dist/context/scope.d.ts +6 -0
- package/dist/node_modules/liquidjs/dist/drop/blank-drop.d.ts +5 -0
- package/dist/node_modules/liquidjs/dist/drop/block-drop.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/drop/comparable.d.ts +8 -0
- package/dist/node_modules/liquidjs/dist/drop/drop.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/drop/empty-drop.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/drop/forloop-drop.d.ts +15 -0
- package/dist/node_modules/liquidjs/dist/drop/index.d.ts +7 -0
- package/dist/node_modules/liquidjs/dist/drop/null-drop.d.ts +10 -0
- package/dist/node_modules/liquidjs/dist/drop/tablerowloop-drop.d.ts +10 -0
- package/dist/node_modules/liquidjs/dist/emitters/emitter.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/emitters/index.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/emitters/keeping-type-emitter.d.ts +5 -0
- package/dist/node_modules/liquidjs/dist/emitters/simple-emitter.d.ts +5 -0
- package/dist/node_modules/liquidjs/dist/emitters/streamed-emitter.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/filters/array.d.ts +32 -0
- package/dist/node_modules/liquidjs/dist/filters/date.d.ts +6 -0
- package/dist/node_modules/liquidjs/dist/filters/html.d.ts +6 -0
- package/dist/node_modules/liquidjs/dist/filters/index.d.ts +2 -0
- package/dist/node_modules/liquidjs/dist/filters/math.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/filters/misc.d.ts +18 -0
- package/dist/node_modules/liquidjs/dist/filters/string.d.ts +27 -0
- package/dist/node_modules/liquidjs/dist/filters/url.d.ts +14 -0
- package/dist/node_modules/liquidjs/dist/fs/fs-impl.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/fs/fs-impl.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/fs/fs.d.ts +20 -0
- package/dist/node_modules/liquidjs/dist/fs/index.d.ts +2 -0
- package/dist/node_modules/liquidjs/dist/fs/loader.d.ts +24 -0
- package/dist/node_modules/liquidjs/dist/fs/loader.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/fs/map-fs.d.ts +13 -0
- package/dist/node_modules/liquidjs/dist/fs/map-fs.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/fs/node-require.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/index.d.ts +16 -0
- package/dist/node_modules/liquidjs/dist/liquid-options.d.ts +159 -0
- package/dist/node_modules/liquidjs/dist/liquid-options.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/liquid.browser.min.js +2 -0
- package/dist/node_modules/liquidjs/dist/liquid.browser.umd.js +7265 -0
- package/dist/node_modules/liquidjs/dist/liquid.d.ts +70 -0
- package/dist/node_modules/liquidjs/dist/liquid.node.js +1 -0
- package/dist/node_modules/liquidjs/dist/parser/filter-arg.d.ts +5 -0
- package/dist/node_modules/liquidjs/dist/parser/index.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/parser/parse-stream.d.ts +15 -0
- package/dist/node_modules/liquidjs/dist/parser/parse-stream.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/parser/parser.d.ts +20 -0
- package/dist/node_modules/liquidjs/dist/parser/parser.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/parser/token-kind.d.ts +16 -0
- package/dist/node_modules/liquidjs/dist/parser/tokenizer.d.ts +63 -0
- package/dist/node_modules/liquidjs/dist/parser/tokenizer.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/parser/whitespace-ctrl.d.ts +3 -0
- package/dist/node_modules/liquidjs/dist/render/boolean.d.ts +3 -0
- package/dist/node_modules/liquidjs/dist/render/boolean.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/render/expression.d.ts +10 -0
- package/dist/node_modules/liquidjs/dist/render/expression.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/render/index.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/render/operator.d.ts +8 -0
- package/dist/node_modules/liquidjs/dist/render/render.d.ts +8 -0
- package/dist/node_modules/liquidjs/dist/render/render.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/render/string.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/render/string.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/tags/assign.d.ts +12 -0
- package/dist/node_modules/liquidjs/dist/tags/block.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/tags/break.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/tags/capture.d.ts +13 -0
- package/dist/node_modules/liquidjs/dist/tags/case.d.ts +15 -0
- package/dist/node_modules/liquidjs/dist/tags/comment.d.ts +5 -0
- package/dist/node_modules/liquidjs/dist/tags/continue.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/tags/cycle.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/tags/decrement.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/tags/echo.d.ts +8 -0
- package/dist/node_modules/liquidjs/dist/tags/for.d.ts +15 -0
- package/dist/node_modules/liquidjs/dist/tags/if.d.ts +14 -0
- package/dist/node_modules/liquidjs/dist/tags/include.d.ts +12 -0
- package/dist/node_modules/liquidjs/dist/tags/increment.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/tags/index.d.ts +24 -0
- package/dist/node_modules/liquidjs/dist/tags/inline-comment.d.ts +5 -0
- package/dist/node_modules/liquidjs/dist/tags/layout.d.ts +14 -0
- package/dist/node_modules/liquidjs/dist/tags/liquid.d.ts +8 -0
- package/dist/node_modules/liquidjs/dist/tags/raw.d.ts +6 -0
- package/dist/node_modules/liquidjs/dist/tags/render.d.ts +22 -0
- package/dist/node_modules/liquidjs/dist/tags/tablerow.d.ts +14 -0
- package/dist/node_modules/liquidjs/dist/tags/unless.d.ts +15 -0
- package/dist/node_modules/liquidjs/dist/template/analysis.d.ts +85 -0
- package/dist/node_modules/liquidjs/dist/template/analysis.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/template/filter-impl-options.d.ts +14 -0
- package/dist/node_modules/liquidjs/dist/template/filter.d.ts +15 -0
- package/dist/node_modules/liquidjs/dist/template/filter.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/template/hash.d.ts +18 -0
- package/dist/node_modules/liquidjs/dist/template/hash.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/template/html.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/template/index.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/template/output.d.ts +12 -0
- package/dist/node_modules/liquidjs/dist/template/output.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/template/tag-options-adapter.d.ts +10 -0
- package/dist/node_modules/liquidjs/dist/template/tag.d.ts +18 -0
- package/dist/node_modules/liquidjs/dist/template/template-impl.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/template/template.d.ts +36 -0
- package/dist/node_modules/liquidjs/dist/template/value.d.ts +15 -0
- package/dist/node_modules/liquidjs/dist/template/value.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/tokens/delimited-token.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/tokens/filter-token.d.ts +7 -0
- package/dist/node_modules/liquidjs/dist/tokens/filtered-value-token.d.ts +17 -0
- package/dist/node_modules/liquidjs/dist/tokens/hash-token.d.ts +12 -0
- package/dist/node_modules/liquidjs/dist/tokens/html-token.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/tokens/identifier-token.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/tokens/index.d.ts +18 -0
- package/dist/node_modules/liquidjs/dist/tokens/liquid-tag-token.d.ts +12 -0
- package/dist/node_modules/liquidjs/dist/tokens/literal-token.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/tokens/number-token.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/tokens/operator-token.d.ts +38 -0
- package/dist/node_modules/liquidjs/dist/tokens/output-token.d.ts +5 -0
- package/dist/node_modules/liquidjs/dist/tokens/property-access-token.d.ts +12 -0
- package/dist/node_modules/liquidjs/dist/tokens/quoted-token.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/tokens/range-token.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/tokens/tag-token.d.ts +9 -0
- package/dist/node_modules/liquidjs/dist/tokens/token.d.ts +12 -0
- package/dist/node_modules/liquidjs/dist/tokens/top-level-token.d.ts +4 -0
- package/dist/node_modules/liquidjs/dist/tokens/value-token.d.ts +6 -0
- package/dist/node_modules/liquidjs/dist/util/assert.d.ts +2 -0
- package/dist/node_modules/liquidjs/dist/util/assert.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/util/async.d.ts +2 -0
- package/dist/node_modules/liquidjs/dist/util/async.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/util/character.d.ts +10 -0
- package/dist/node_modules/liquidjs/dist/util/error.d.ts +35 -0
- package/dist/node_modules/liquidjs/dist/util/error.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/util/index.d.ts +12 -0
- package/dist/node_modules/liquidjs/dist/util/intl.d.ts +6 -0
- package/dist/node_modules/liquidjs/dist/util/limiter.d.ts +8 -0
- package/dist/node_modules/liquidjs/dist/util/liquid-date.d.ts +52 -0
- package/dist/node_modules/liquidjs/dist/util/liquid-date.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/util/literal.d.ts +11 -0
- package/dist/node_modules/liquidjs/dist/util/operator-trie.d.ts +14 -0
- package/dist/node_modules/liquidjs/dist/util/performance.d.ts +5 -0
- package/dist/node_modules/liquidjs/dist/util/performance.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/util/strftime.d.ts +2 -0
- package/dist/node_modules/liquidjs/dist/util/strftime.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/util/type-guards.d.ts +13 -0
- package/dist/node_modules/liquidjs/dist/util/type-guards.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/dist/util/underscore.d.ts +40 -0
- package/dist/node_modules/liquidjs/dist/util/underscore.spec.d.ts +1 -0
- package/dist/node_modules/liquidjs/node_modules/commander/index.js +27 -0
- package/dist/node_modules/liquidjs/node_modules/commander/lib/argument.js +147 -0
- package/dist/node_modules/liquidjs/node_modules/commander/lib/command.js +2179 -0
- package/dist/node_modules/liquidjs/node_modules/commander/lib/error.js +45 -0
- package/dist/node_modules/liquidjs/node_modules/commander/lib/help.js +464 -0
- package/dist/node_modules/liquidjs/node_modules/commander/lib/option.js +331 -0
- package/dist/node_modules/liquidjs/node_modules/commander/lib/suggestSimilar.js +100 -0
- package/dist/node_modules/liquidjs/node_modules/commander/package-support.json +16 -0
- package/dist/node_modules/liquidjs/node_modules/commander/package.json +80 -0
- package/dist/node_modules/liquidjs/node_modules/commander/typings/index.d.ts +889 -0
- package/dist/node_modules/liquidjs/package.json +1 -0
- 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/ast/parser.d.ts +10 -3
- package/dist/server/flow-surfaces/runjs-authoring/ast/parser.js +90 -8
- package/dist/server/flow-surfaces/runjs-authoring/ast/source.d.ts +2 -2
- package/dist/server/flow-surfaces/runjs-authoring/ast/source.js +7 -69
- package/dist/server/flow-surfaces/runjs-authoring/ast/static-bindings.d.ts +5 -5
- package/dist/server/flow-surfaces/runjs-authoring/ast/static-bindings.js +56 -23
- package/dist/server/flow-surfaces/runjs-authoring/ast/static-values.d.ts +1 -1
- package/dist/server/flow-surfaces/runjs-authoring/ast/static-values.js +4 -2
- package/dist/server/variables/allow-list.js +64 -10
- package/dist/server/variables/form-item-record-slot-resolvers.js +20 -3
- package/dist/server/variables/runjs-variable-dependencies.js +172 -17
- package/package.json +3 -2
|
@@ -200,6 +200,24 @@ async function resolveFormAssignRulesVariableSource(ctx, contractNode) {
|
|
|
200
200
|
const formNode = await getFlowModelNode(ctx, contractNode.parentId);
|
|
201
201
|
return formNode && isFormAssignRulesContractPair(formNode, contractNode) ? readFormAssignRulesVariableSource(formNode) : void 0;
|
|
202
202
|
}
|
|
203
|
+
function readFormLinkageRulesSource(node) {
|
|
204
|
+
const steps = isObject(node.options.stepParams) ? node.options.stepParams : null;
|
|
205
|
+
const events = steps && isObject(steps.eventSettings) ? steps.eventSettings : null;
|
|
206
|
+
return { stepParams: { eventSettings: { linkageRules: events == null ? void 0 : events.linkageRules } } };
|
|
207
|
+
}
|
|
208
|
+
async function collectFormLinkageRuleSources(ctx, form) {
|
|
209
|
+
const grid = await getFlowModelChildNode(ctx, form.uid, "grid");
|
|
210
|
+
if (!grid || !isFormAssignRulesContractPair(form, grid)) return [];
|
|
211
|
+
if (!isReferenceFormGridNode(grid)) return [readFormLinkageRulesSource(grid)];
|
|
212
|
+
const targetUid = getReferenceFormGridTargetUid(grid);
|
|
213
|
+
const target = targetUid ? await getFlowModelNode(ctx, targetUid) : null;
|
|
214
|
+
if (!target || !isFormAssignRulesOwnerNode(target)) return [];
|
|
215
|
+
const targetGrid = await getFlowModelChildNode(ctx, target.uid, "grid");
|
|
216
|
+
if (!targetGrid || !isFormAssignRulesContractPair(target, targetGrid) || isReferenceFormGridNode(targetGrid)) {
|
|
217
|
+
return [];
|
|
218
|
+
}
|
|
219
|
+
return [readFormLinkageRulesSource(target), readFormLinkageRulesSource(targetGrid)];
|
|
220
|
+
}
|
|
203
221
|
function createRecordSlotCompilerOptions(ctx, currentNode) {
|
|
204
222
|
let ancestors;
|
|
205
223
|
return {
|
|
@@ -230,14 +248,30 @@ async function getFlowModelVariableContract(ctx, contractNode, runtimeNode, sour
|
|
|
230
248
|
return contract;
|
|
231
249
|
}
|
|
232
250
|
async function createFlowModelVariableContractFromNode(ctx, contractNode, runtimeNode, source) {
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
251
|
+
const sources = [];
|
|
252
|
+
if (source === "formAssignRules") {
|
|
253
|
+
sources.push(await resolveFormAssignRulesVariableSource(ctx, contractNode) ?? {});
|
|
254
|
+
} else {
|
|
255
|
+
const nodes = contractNode.uid === runtimeNode.uid ? [contractNode] : [contractNode, runtimeNode];
|
|
256
|
+
for (const node of nodes) {
|
|
257
|
+
sources.push(node.options);
|
|
258
|
+
if (isFormAssignRulesOwnerNode(node)) {
|
|
259
|
+
sources.push(...await collectFormLinkageRuleSources(ctx, node));
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
const paths = [];
|
|
264
|
+
for (const variableSource of sources) {
|
|
265
|
+
const item = (0, import_runjs_variable_dependencies.prepareFlowModelVariableSource)(
|
|
266
|
+
variableSource,
|
|
267
|
+
source === "formAssignRules" ? { isRunJsValuePath: isFormAssignRulesRunJsValuePath } : void 0
|
|
268
|
+
);
|
|
269
|
+
if (!item.ok) continue;
|
|
270
|
+
const contractSource = item.runJsTemplates.length ? [item.templateSource, ...item.runJsTemplates] : item.templateSource;
|
|
271
|
+
const result = analyzeVariableTemplateSafely(contractSource, { mode: "flow-model" });
|
|
272
|
+
if (result.ok) paths.push(...result.analysis.paths);
|
|
273
|
+
}
|
|
274
|
+
const analysis = { ...(0, import_variable_expression.analyzeVariableTemplate)({}, { mode: "flow-model" }), paths };
|
|
241
275
|
return await (0, import_record_slot_policy.createFlowModelVariableContract)(analysis, createRecordSlotCompilerOptions(ctx, runtimeNode));
|
|
242
276
|
}
|
|
243
277
|
function getCurrentRoleNames(ctx) {
|
|
@@ -344,6 +378,25 @@ async function resolveFormAssignRulesContractNode(ctx, runtimeNode, contractMode
|
|
|
344
378
|
const ancestorUids = await loadFlowModelAncestorUids(ctx, runtimeNode);
|
|
345
379
|
return (ancestorUids == null ? void 0 : ancestorUids.has(contractNode.uid)) === true ? contractNode : null;
|
|
346
380
|
}
|
|
381
|
+
async function resolveReferenceBlockContractNode(ctx, runtimeNode, contractModelUid) {
|
|
382
|
+
const reference = await getFlowModelNode(ctx, contractModelUid);
|
|
383
|
+
if ((reference == null ? void 0 : reference.options.use) !== "ReferenceBlockModel") return null;
|
|
384
|
+
let current = reference;
|
|
385
|
+
const seen = /* @__PURE__ */ new Set([reference.uid]);
|
|
386
|
+
for (let depth = 0; depth < 20; depth++) {
|
|
387
|
+
const steps = isObject(current.options.stepParams) ? current.options.stepParams : null;
|
|
388
|
+
const settings = steps && isObject(steps.referenceSettings) ? steps.referenceSettings : null;
|
|
389
|
+
const target = settings && isObject(settings.target) ? settings.target : null;
|
|
390
|
+
const targetUid = typeof (target == null ? void 0 : target.targetUid) === "string" ? target.targetUid.trim() : "";
|
|
391
|
+
if (!targetUid || seen.has(targetUid)) return null;
|
|
392
|
+
seen.add(targetUid);
|
|
393
|
+
const node = await getFlowModelNode(ctx, targetUid);
|
|
394
|
+
if (!node) return null;
|
|
395
|
+
if (node.options.use !== "ReferenceBlockModel") return node.uid === runtimeNode.uid ? reference : null;
|
|
396
|
+
current = node;
|
|
397
|
+
}
|
|
398
|
+
return null;
|
|
399
|
+
}
|
|
347
400
|
function createPolicy(allowAll = false, allowedPaths = /* @__PURE__ */ new Set(), unrestrictedVariables = /* @__PURE__ */ new Set()) {
|
|
348
401
|
return { allowAll, allowedPaths, unrestrictedVariables };
|
|
349
402
|
}
|
|
@@ -438,8 +491,9 @@ async function authorizeVariablesResolve(ctx, options) {
|
|
|
438
491
|
let contractNode = currentNode;
|
|
439
492
|
let contractSource = "node";
|
|
440
493
|
if (hasContractRd) {
|
|
441
|
-
|
|
442
|
-
|
|
494
|
+
const reference = currentNode && contractModelUid ? await resolveReferenceBlockContractNode(ctx, currentNode, contractModelUid) : null;
|
|
495
|
+
contractNode = reference || (currentNode && contractModelUid ? await resolveFormAssignRulesContractNode(ctx, currentNode, contractModelUid) : null);
|
|
496
|
+
contractSource = reference ? "node" : "formAssignRules";
|
|
443
497
|
if (!contractNode) {
|
|
444
498
|
return denied(analysis, bindingPlan.contextParams, policy, recordSlotPolicies, flowModelUid || void 0);
|
|
445
499
|
}
|
|
@@ -29,6 +29,7 @@ __export(form_item_record_slot_resolvers_exports, {
|
|
|
29
29
|
createFormItemRecordSlotResolvers: () => createFormItemRecordSlotResolvers
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(form_item_record_slot_resolvers_exports);
|
|
32
|
+
const requestModelTrees = /* @__PURE__ */ new WeakMap();
|
|
32
33
|
function isObject(value) {
|
|
33
34
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
34
35
|
}
|
|
@@ -153,8 +154,17 @@ async function loadModelTree(input, node) {
|
|
|
153
154
|
if (options && getFormItems(options)) return options;
|
|
154
155
|
const uid = isObject(node) && typeof node.uid === "string" ? node.uid : void 0;
|
|
155
156
|
if (!uid || !input.ctx) return void 0;
|
|
157
|
+
let cache = requestModelTrees.get(input.ctx);
|
|
158
|
+
if (!cache) {
|
|
159
|
+
cache = /* @__PURE__ */ new Map();
|
|
160
|
+
requestModelTrees.set(input.ctx, cache);
|
|
161
|
+
}
|
|
162
|
+
const cached = cache.get(uid);
|
|
163
|
+
if (cached) return cached;
|
|
156
164
|
const repository = input.ctx.db.getCollection("flowModels").repository;
|
|
157
|
-
|
|
165
|
+
const load = repository.findModelById(uid, { includeAsyncNode: true }).then(getModelOptions);
|
|
166
|
+
cache.set(uid, load);
|
|
167
|
+
return load;
|
|
158
168
|
}
|
|
159
169
|
async function findFormProvider(input, lineage) {
|
|
160
170
|
for (const node of lineage) {
|
|
@@ -170,6 +180,7 @@ async function findFormProvider(input, lineage) {
|
|
|
170
180
|
}
|
|
171
181
|
function getConfiguredAssociationSlots(input, source, items) {
|
|
172
182
|
var _a;
|
|
183
|
+
const exactAnchors = /* @__PURE__ */ new Map();
|
|
173
184
|
const slots = /* @__PURE__ */ new Map();
|
|
174
185
|
const fieldPaths = [];
|
|
175
186
|
for (const item of items) {
|
|
@@ -184,8 +195,11 @@ function getConfiguredAssociationSlots(input, source, items) {
|
|
|
184
195
|
slots.set(prefix.join("."), [...prefix]);
|
|
185
196
|
current = edge.target;
|
|
186
197
|
}
|
|
198
|
+
if (item.use === "FormAssociationItemModel" && prefix.length > 1 && prefix.length === fieldPath.length) {
|
|
199
|
+
exactAnchors.set(prefix.join("."), prefix.slice(0, -1));
|
|
200
|
+
}
|
|
187
201
|
}
|
|
188
|
-
return { fieldPaths, slots: [...slots.values()] };
|
|
202
|
+
return { exactAnchors, fieldPaths, slots: [...slots.values()] };
|
|
189
203
|
}
|
|
190
204
|
async function resolveFormValues(input) {
|
|
191
205
|
const lineage = await getLineage(input);
|
|
@@ -198,7 +212,10 @@ async function resolveFormValues(input) {
|
|
|
198
212
|
for (const slot of configuredSlots.slots) {
|
|
199
213
|
if (pathStartsWith(runtimePath, slot) && (!configured || slot.length > configured.length)) configured = slot;
|
|
200
214
|
}
|
|
201
|
-
if (configured)
|
|
215
|
+
if (configured) {
|
|
216
|
+
const exactAnchor = configuredSlots.exactAnchors.get(runtimePath.join("."));
|
|
217
|
+
return resolved(exactAnchor || configured);
|
|
218
|
+
}
|
|
202
219
|
const top = runtimePath[0];
|
|
203
220
|
if (typeof top !== "string") return runtimePath.length ? { status: "deny" } : resolved([]);
|
|
204
221
|
const field = callMethod(provider.collection.collection, "getField", top);
|
|
@@ -34,6 +34,7 @@ __export(runjs_variable_dependencies_exports, {
|
|
|
34
34
|
prepareFlowModelVariableSource: () => prepareFlowModelVariableSource
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(runjs_variable_dependencies_exports);
|
|
37
|
+
var import_liquidjs = require("liquidjs");
|
|
37
38
|
var import_bindings = require("../flow-surfaces/runjs-authoring/ast/bindings");
|
|
38
39
|
var import_source = require("../flow-surfaces/runjs-authoring/ast/source");
|
|
39
40
|
var import_static_bindings = require("../flow-surfaces/runjs-authoring/ast/static-bindings");
|
|
@@ -51,6 +52,20 @@ const MAX_FLOW_MODEL_VARIABLE_SOURCE_DEPTH = 128;
|
|
|
51
52
|
const MAX_FLOW_MODEL_VARIABLE_SOURCE_NODES = 1e4;
|
|
52
53
|
const MAX_FLOW_MODEL_VARIABLE_STRING_LENGTH = 256 * 1024;
|
|
53
54
|
const MAX_FLOW_MODEL_VARIABLE_TOTAL_STRING_LENGTH = 1024 * 1024;
|
|
55
|
+
const MAX_RUNJS_STATIC_BINDING_WORK = 1e5;
|
|
56
|
+
const STATIC_BINDING_BUDGET_EXHAUSTED = Symbol("static binding budget exhausted");
|
|
57
|
+
const markdownLiquid = new import_liquidjs.Liquid();
|
|
58
|
+
function prepareMarkdownVariableSource(content) {
|
|
59
|
+
try {
|
|
60
|
+
const template = content.replace(
|
|
61
|
+
/\{\{\s*t\s*\(\s*(['"])([\s\S]*?)\1\s*(?:,\s*\{\s*ns\s*:\s*(['"])([\s\S]*?)\3\s*\}\s*)?\)\s*\}\}/g,
|
|
62
|
+
""
|
|
63
|
+
);
|
|
64
|
+
return markdownLiquid.globalFullVariablesSync(template, { partials: false }).filter((path) => path.startsWith("ctx.")).map((path) => `{{${path}}}`).join(" ");
|
|
65
|
+
} catch {
|
|
66
|
+
return "";
|
|
67
|
+
}
|
|
68
|
+
}
|
|
54
69
|
function getEnumerableDataEntries(value) {
|
|
55
70
|
const descriptors = Object.getOwnPropertyDescriptors(value);
|
|
56
71
|
const entries = [];
|
|
@@ -72,8 +87,23 @@ function readPersistedRunJsValue(entries) {
|
|
|
72
87
|
if (typeof code !== "string" || version != null && typeof version !== "string") return;
|
|
73
88
|
return { code, version };
|
|
74
89
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
90
|
+
function readDataProperty(value, key) {
|
|
91
|
+
var _a;
|
|
92
|
+
return value && typeof value === "object" ? (_a = Object.getOwnPropertyDescriptor(value, key)) == null ? void 0 : _a.value : void 0;
|
|
93
|
+
}
|
|
94
|
+
function isPersistedRunJsPath(pathTail, flowRegistry) {
|
|
95
|
+
const tail = pathTail.slice(-3);
|
|
96
|
+
if (RUNJS_PATH_SUFFIXES.has(tail.join("."))) return true;
|
|
97
|
+
if (tail[0] === "stepParams") {
|
|
98
|
+
const steps = readDataProperty(readDataProperty(flowRegistry, tail[1]), "steps");
|
|
99
|
+
if (readDataProperty(readDataProperty(steps, tail[2]), "use") === "runjs") return true;
|
|
100
|
+
}
|
|
101
|
+
const path = pathTail.join(".");
|
|
102
|
+
return /(?:^|\.)linkageRules\.value\.\d+\.actions\.\d+\.params\.value\.\d+\.value$/.test(path) || /(?:^|\.)formFilterBlockModelSettings\.defaultValues\.value\.\d+\.value$/.test(path);
|
|
103
|
+
}
|
|
104
|
+
function isPersistedRunJsStringPath(pathTail) {
|
|
105
|
+
const path = pathTail.join(".");
|
|
106
|
+
return /(?:^|\.)linkageRules\.value\.\d+\.actions\.\d+\.params\.value\.script$/.test(path) || /(?:^|\.)chartSettings\.configure\.chart\.(?:option|events)\.raw$/.test(path);
|
|
77
107
|
}
|
|
78
108
|
function createTraversalContainer(input, descriptors) {
|
|
79
109
|
var _a;
|
|
@@ -292,18 +322,48 @@ function collectValidatedResolveJsonTemplates(value) {
|
|
|
292
322
|
visit(value);
|
|
293
323
|
return Array.from(templates);
|
|
294
324
|
}
|
|
295
|
-
function
|
|
296
|
-
const
|
|
325
|
+
function collectBindingDependencies(ast, consumeWork) {
|
|
326
|
+
const dependencies = /* @__PURE__ */ new Map();
|
|
327
|
+
(0, import_walk.walkAstSimple)(ast, {
|
|
328
|
+
VariableDeclarator(node) {
|
|
329
|
+
if (!node.init) return;
|
|
330
|
+
const names = [];
|
|
331
|
+
(0, import_static_values.collectAstPatternBindingIdentifiers)(node.id, (name) => names.push(name));
|
|
332
|
+
(0, import_walk.walkAstSimple)(node.init, {
|
|
333
|
+
Identifier(reference) {
|
|
334
|
+
const dependency = reference.name;
|
|
335
|
+
if (!dependency) return;
|
|
336
|
+
for (const name of names) {
|
|
337
|
+
consumeWork(1);
|
|
338
|
+
for (const [from, to] of [
|
|
339
|
+
[name, dependency],
|
|
340
|
+
[dependency, name]
|
|
341
|
+
]) {
|
|
342
|
+
const related = dependencies.get(from) || /* @__PURE__ */ new Set();
|
|
343
|
+
related.add(to);
|
|
344
|
+
dependencies.set(from, related);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
return dependencies;
|
|
352
|
+
}
|
|
353
|
+
function extractStaticVariableTemplates(code, parsed, consumeBindingWork) {
|
|
297
354
|
if (!parsed.ast) return [];
|
|
298
355
|
const identifierBindings = (0, import_static_bindings.collectAstIdentifierBindingsFromAst)(parsed.ast, code);
|
|
299
356
|
if (hasUnsafeCtxUsage(parsed.ast, identifierBindings) || hasCtxMutation(parsed.ast, identifierBindings)) {
|
|
300
357
|
return [];
|
|
301
358
|
}
|
|
359
|
+
let bindingDependencies;
|
|
360
|
+
const bindingResults = /* @__PURE__ */ new Map();
|
|
361
|
+
let bindingBudgetExhausted = false;
|
|
302
362
|
const functionCtxParameterCache = /* @__PURE__ */ new WeakMap();
|
|
303
363
|
const templates = /* @__PURE__ */ new Set();
|
|
304
364
|
(0, import_walk.walkAstAncestor)(parsed.ast, {
|
|
305
365
|
CallExpression(node, ancestors) {
|
|
306
|
-
var _a, _b;
|
|
366
|
+
var _a, _b, _c, _d;
|
|
307
367
|
const methodName = getDirectCtxMethodName(node.callee, identifierBindings);
|
|
308
368
|
if (hasCtxParameterInFunctionAncestors(ancestors, functionCtxParameterCache)) return;
|
|
309
369
|
if (methodName === "getVar") {
|
|
@@ -311,8 +371,61 @@ function extractStaticVariableTemplates(code) {
|
|
|
311
371
|
if (template) templates.add(template);
|
|
312
372
|
return;
|
|
313
373
|
}
|
|
314
|
-
if (methodName !== "resolveJsonTemplate" || ((_b = node.arguments) == null ? void 0 : _b.length)
|
|
315
|
-
|
|
374
|
+
if (methodName !== "resolveJsonTemplate" || !((_b = node.arguments) == null ? void 0 : _b.length) || node.arguments.length > 2) return;
|
|
375
|
+
if (node.arguments.length === 2) {
|
|
376
|
+
const options = (0, import_bindings.unwrapAstChainExpression)(node.arguments[1]);
|
|
377
|
+
if ((options == null ? void 0 : options.type) !== "ObjectExpression" || ((_c = options.properties) == null ? void 0 : _c.length) !== 0) return;
|
|
378
|
+
}
|
|
379
|
+
const argument = (0, import_bindings.unwrapAstChainExpression)(node.arguments[0]);
|
|
380
|
+
let resolved = resolveStaticJsonValue(argument, code);
|
|
381
|
+
if ((argument == null ? void 0 : argument.type) === "Identifier" && !bindingBudgetExhausted) {
|
|
382
|
+
try {
|
|
383
|
+
const name = argument.name || "";
|
|
384
|
+
let bindings = bindingResults.get(name);
|
|
385
|
+
if (!bindings) {
|
|
386
|
+
bindingDependencies ??= collectBindingDependencies(parsed.ast, consumeBindingWork);
|
|
387
|
+
const names = /* @__PURE__ */ new Set([name]);
|
|
388
|
+
for (const current of names) {
|
|
389
|
+
for (const dependency of bindingDependencies.get(current) || []) {
|
|
390
|
+
consumeBindingWork(1);
|
|
391
|
+
names.add(dependency);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
bindings = {
|
|
395
|
+
names,
|
|
396
|
+
values: (0, import_static_bindings.collectStaticFilterValueBindingsFromAst)(
|
|
397
|
+
parsed.ast,
|
|
398
|
+
code,
|
|
399
|
+
identifierBindings,
|
|
400
|
+
consumeBindingWork,
|
|
401
|
+
names
|
|
402
|
+
)
|
|
403
|
+
};
|
|
404
|
+
bindingResults.set(name, bindings);
|
|
405
|
+
}
|
|
406
|
+
consumeBindingWork(bindings.values.length * (identifierBindings.length + 1));
|
|
407
|
+
resolved = resolveStaticJsonValue(
|
|
408
|
+
(_d = (0, import_static_values.resolveAstAliasBinding)(name, argument.start || 0, bindings.values, identifierBindings)) == null ? void 0 : _d.valueNode,
|
|
409
|
+
code
|
|
410
|
+
);
|
|
411
|
+
if (!resolved.ok) {
|
|
412
|
+
bindings.strings ??= (0, import_static_bindings.collectStaticStringBindingsFromAst)(
|
|
413
|
+
parsed.ast,
|
|
414
|
+
code,
|
|
415
|
+
[],
|
|
416
|
+
identifierBindings,
|
|
417
|
+
consumeBindingWork,
|
|
418
|
+
bindings.names
|
|
419
|
+
);
|
|
420
|
+
consumeBindingWork(bindings.strings.length * (identifierBindings.length + 1));
|
|
421
|
+
const staticString = (0, import_static_values.resolveRunJsStaticString)(argument, code, bindings.strings, identifierBindings);
|
|
422
|
+
if (typeof staticString === "string") resolved = { ok: true, value: staticString };
|
|
423
|
+
}
|
|
424
|
+
} catch (error) {
|
|
425
|
+
if (error !== STATIC_BINDING_BUDGET_EXHAUSTED) throw error;
|
|
426
|
+
bindingBudgetExhausted = true;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
316
429
|
if (!resolved.ok) return;
|
|
317
430
|
collectValidatedResolveJsonTemplates(resolved.value).forEach((template) => templates.add(template));
|
|
318
431
|
}
|
|
@@ -320,7 +433,7 @@ function extractStaticVariableTemplates(code) {
|
|
|
320
433
|
return Array.from(templates);
|
|
321
434
|
}
|
|
322
435
|
function prepareFlowModelVariableSource(value, options = {}) {
|
|
323
|
-
var _a;
|
|
436
|
+
var _a, _b, _c;
|
|
324
437
|
try {
|
|
325
438
|
const templates = /* @__PURE__ */ new Set();
|
|
326
439
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -330,6 +443,36 @@ function prepareFlowModelVariableSource(value, options = {}) {
|
|
|
330
443
|
let sourceCount = 0;
|
|
331
444
|
let totalStringLength = 0;
|
|
332
445
|
let totalSourceLength = 0;
|
|
446
|
+
let remainingBindingWork = MAX_RUNJS_STATIC_BINDING_WORK;
|
|
447
|
+
const consumeBindingWork = (work) => {
|
|
448
|
+
remainingBindingWork -= work;
|
|
449
|
+
if (remainingBindingWork < 0) throw STATIC_BINDING_BUDGET_EXHAUSTED;
|
|
450
|
+
};
|
|
451
|
+
const supplementalScripts = [];
|
|
452
|
+
const parsedSources = /* @__PURE__ */ new Map();
|
|
453
|
+
const getParsedSource = (code) => {
|
|
454
|
+
let parsed = parsedSources.get(code);
|
|
455
|
+
if (!parsed) {
|
|
456
|
+
parsed = (0, import_parser.parseRunJsAuthoringAst)(code, { allowLegacyTemplates: true });
|
|
457
|
+
parsedSources.set(code, parsed);
|
|
458
|
+
}
|
|
459
|
+
return parsed;
|
|
460
|
+
};
|
|
461
|
+
const extractRunJsDependencies = (code) => {
|
|
462
|
+
if (sourceCount < import_constants.MAX_RUNJS_SOURCES_PER_REQUEST && code.length <= import_constants.MAX_RUNJS_SOURCE_LENGTH && totalSourceLength + code.length <= import_constants.MAX_RUNJS_TOTAL_SOURCE_LENGTH) {
|
|
463
|
+
sourceCount += 1;
|
|
464
|
+
totalSourceLength += code.length;
|
|
465
|
+
extractStaticVariableTemplates(code, getParsedSource(code), consumeBindingWork).forEach(
|
|
466
|
+
(template) => templates.add(template)
|
|
467
|
+
);
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
const prepareRunJsCode = (code, version, preserveLegacyTemplates = false) => {
|
|
471
|
+
if (preserveLegacyTemplates) supplementalScripts.push(code);
|
|
472
|
+
else extractRunJsDependencies(code);
|
|
473
|
+
if (version === "v2" && !preserveLegacyTemplates || !code.includes("{{")) return "";
|
|
474
|
+
return (0, import_source.maskJavaScriptComments)(code, getParsedSource(code));
|
|
475
|
+
};
|
|
333
476
|
while (stack.length) {
|
|
334
477
|
const frame = stack.pop();
|
|
335
478
|
if (!frame) break;
|
|
@@ -341,7 +484,15 @@ function prepareFlowModelVariableSource(value, options = {}) {
|
|
|
341
484
|
return { ok: false };
|
|
342
485
|
}
|
|
343
486
|
}
|
|
344
|
-
|
|
487
|
+
let prepared = input;
|
|
488
|
+
if (typeof input === "string" && !options.isRunJsValuePath) {
|
|
489
|
+
if (pathTail.join(".") === "stepParams.markdownBlockSettings.editMarkdown.content") {
|
|
490
|
+
prepared = prepareMarkdownVariableSource(input);
|
|
491
|
+
} else if (isPersistedRunJsStringPath(pathTail)) {
|
|
492
|
+
prepared = prepareRunJsCode(input, void 0, true);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
defineTraversalValue(parent, key, prepared);
|
|
345
496
|
continue;
|
|
346
497
|
}
|
|
347
498
|
if (seen.has(input)) return { ok: false };
|
|
@@ -353,23 +504,24 @@ function prepareFlowModelVariableSource(value, options = {}) {
|
|
|
353
504
|
return { ok: false };
|
|
354
505
|
}
|
|
355
506
|
}
|
|
356
|
-
const runJsPath = options.isRunJsValuePath ? options.isRunJsValuePath(pathTail) : isPersistedRunJsPath(pathTail);
|
|
507
|
+
const runJsPath = options.isRunJsValuePath ? options.isRunJsValuePath(pathTail) : frame.runJsValue || isPersistedRunJsPath(pathTail, frame.flowRegistry);
|
|
357
508
|
const runJs = !Array.isArray(input) && runJsPath ? readPersistedRunJsValue(entries) : void 0;
|
|
358
509
|
const output = createTraversalContainer(input, descriptors);
|
|
359
510
|
defineTraversalValue(parent, key, output);
|
|
360
511
|
if (runJs) {
|
|
361
512
|
scheduledNodes += entries.length;
|
|
362
|
-
sourceCount += 1;
|
|
363
513
|
totalStringLength += runJs.code.length + (((_a = runJs.version) == null ? void 0 : _a.length) || 0);
|
|
364
|
-
|
|
365
|
-
if (scheduledNodes > MAX_FLOW_MODEL_VARIABLE_SOURCE_NODES || runJs.code.length > MAX_FLOW_MODEL_VARIABLE_STRING_LENGTH || runJs.version != null && runJs.version.length > MAX_FLOW_MODEL_VARIABLE_STRING_LENGTH || totalStringLength > MAX_FLOW_MODEL_VARIABLE_TOTAL_STRING_LENGTH || sourceCount > import_constants.MAX_RUNJS_SOURCES_PER_REQUEST || runJs.code.length > import_constants.MAX_RUNJS_SOURCE_LENGTH || totalSourceLength > import_constants.MAX_RUNJS_TOTAL_SOURCE_LENGTH) {
|
|
514
|
+
if (scheduledNodes > MAX_FLOW_MODEL_VARIABLE_SOURCE_NODES || runJs.code.length > MAX_FLOW_MODEL_VARIABLE_STRING_LENGTH || runJs.version != null && runJs.version.length > MAX_FLOW_MODEL_VARIABLE_STRING_LENGTH || totalStringLength > MAX_FLOW_MODEL_VARIABLE_TOTAL_STRING_LENGTH) {
|
|
366
515
|
return { ok: false };
|
|
367
516
|
}
|
|
517
|
+
const code = prepareRunJsCode(
|
|
518
|
+
runJs.code,
|
|
519
|
+
runJs.version,
|
|
520
|
+
!options.isRunJsValuePath && !RUNJS_PATH_SUFFIXES.has(pathTail.slice(-3).join("."))
|
|
521
|
+
);
|
|
368
522
|
for (const [entryKey, entryValue] of entries) {
|
|
369
|
-
|
|
370
|
-
defineTraversalValue(output, entryKey, preparedEntryValue);
|
|
523
|
+
defineTraversalValue(output, entryKey, entryKey === "code" ? code : entryValue);
|
|
371
524
|
}
|
|
372
|
-
extractStaticVariableTemplates(runJs.code).forEach((template) => templates.add(template));
|
|
373
525
|
continue;
|
|
374
526
|
}
|
|
375
527
|
if (entries.length && depth >= MAX_FLOW_MODEL_VARIABLE_SOURCE_DEPTH) return { ok: false };
|
|
@@ -383,10 +535,13 @@ function prepareFlowModelVariableSource(value, options = {}) {
|
|
|
383
535
|
input: entryValue,
|
|
384
536
|
key: entryKey,
|
|
385
537
|
parent: output,
|
|
386
|
-
pathTail: options.isRunJsValuePath ? nextPath : nextPath.slice(-
|
|
538
|
+
pathTail: options.isRunJsValuePath ? nextPath : nextPath.slice(-12),
|
|
539
|
+
flowRegistry: entryKey === "stepParams" ? (_b = descriptors.flowRegistry) == null ? void 0 : _b.value : frame.flowRegistry,
|
|
540
|
+
runJsValue: entryKey === "defaultParams" && ((_c = descriptors.use) == null ? void 0 : _c.value) === "runjs"
|
|
387
541
|
});
|
|
388
542
|
}
|
|
389
543
|
}
|
|
544
|
+
supplementalScripts.forEach(extractRunJsDependencies);
|
|
390
545
|
return { ok: true, runJsTemplates: Array.from(templates), templateSource: root.value };
|
|
391
546
|
} catch {
|
|
392
547
|
return { ok: false };
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "前端流引擎",
|
|
5
5
|
"description": "",
|
|
6
6
|
"description.zh-CN": "",
|
|
7
|
-
"version": "2.3.0-beta.
|
|
7
|
+
"version": "2.3.0-beta.20",
|
|
8
8
|
"main": "./dist/server/index.js",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"devDependencies": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"acorn": "^8.10.0",
|
|
18
18
|
"acorn-jsx": "^5.3.2",
|
|
19
19
|
"acorn-walk": "8.3.4",
|
|
20
|
+
"liquidjs": "^10.23.0",
|
|
20
21
|
"ses": "^1.14.0"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
@@ -26,5 +27,5 @@
|
|
|
26
27
|
"@nocobase/test": "2.x",
|
|
27
28
|
"@nocobase/utils": "2.x"
|
|
28
29
|
},
|
|
29
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "31adfe1b6bd3136bec29ff936fe1a0a7b5273d67"
|
|
30
31
|
}
|