@nocobase/plugin-flow-engine 2.1.0-alpha.25 → 2.1.0-alpha.27
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/index.js +1 -0
- package/dist/ai/ai-employees/nathan/prompt.md +46 -10
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/SKILLS.md +20 -3
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/lintAndTestJS.js +4 -2
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/patchJSCode.d.ts +10 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/patchJSCode.js +65 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/readJSCode.d.ts +10 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/readJSCode.js +61 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/writeJSCode.d.ts +10 -0
- package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/writeJSCode.js +65 -0
- package/dist/externalVersion.js +10 -10
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +66 -9
- package/dist/server/flow-surfaces/blueprint/normalize-document.js +5 -14
- package/dist/server/flow-surfaces/blueprint/private-utils.d.ts +0 -1
- package/dist/server/flow-surfaces/blueprint/private-utils.js +0 -3
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +0 -1
- package/dist/server/flow-surfaces/builder.js +18 -0
- package/dist/server/flow-surfaces/catalog.js +19 -24
- package/dist/server/flow-surfaces/compose-compiler.d.ts +1 -2
- package/dist/server/flow-surfaces/compose-compiler.js +0 -1
- package/dist/server/flow-surfaces/compose-runtime.d.ts +1 -0
- package/dist/server/flow-surfaces/compose-runtime.js +2 -1
- package/dist/server/flow-surfaces/configure-options.js +12 -5
- package/dist/server/flow-surfaces/contract-guard.js +11 -3
- package/dist/server/flow-surfaces/field-binding-registry.js +1 -1
- package/dist/server/flow-surfaces/field-type-resolver.d.ts +0 -1
- package/dist/server/flow-surfaces/field-type-resolver.js +3 -13
- package/dist/server/flow-surfaces/public-compatibility.d.ts +16 -0
- package/dist/server/flow-surfaces/public-compatibility.js +139 -0
- package/dist/server/flow-surfaces/service-helpers.js +2 -2
- package/dist/server/flow-surfaces/service-utils.d.ts +1 -1
- package/dist/server/flow-surfaces/service-utils.js +21 -6
- package/dist/server/flow-surfaces/service.d.ts +23 -3
- package/dist/server/flow-surfaces/service.js +720 -167
- package/dist/swagger/flow-surfaces.d.ts +0 -29
- package/dist/swagger/flow-surfaces.js +8 -17
- package/dist/swagger/index.d.ts +0 -29
- package/package.json +2 -2
|
@@ -38,6 +38,7 @@ var service_utils_exports = {};
|
|
|
38
38
|
__export(service_utils_exports, {
|
|
39
39
|
assertFlowSurfaceComposeUniqueKeys: () => assertFlowSurfaceComposeUniqueKeys,
|
|
40
40
|
assertSupportedSimpleChanges: () => assertSupportedSimpleChanges,
|
|
41
|
+
buildBlockCardSettingsFromSemanticChanges: () => buildBlockCardSettingsFromSemanticChanges,
|
|
41
42
|
buildBlockTitleDescriptionFromSemanticChanges: () => buildBlockTitleDescriptionFromSemanticChanges,
|
|
42
43
|
buildChartCardSettingsFromSemanticChanges: () => buildChartCardSettingsFromSemanticChanges,
|
|
43
44
|
buildDefaultFieldState: () => buildDefaultFieldState,
|
|
@@ -180,6 +181,25 @@ function buildBlockTitleDescriptionFromSemanticChanges(changes) {
|
|
|
180
181
|
})
|
|
181
182
|
};
|
|
182
183
|
}
|
|
184
|
+
function buildBlockCardSettingsFromSemanticChanges(changes) {
|
|
185
|
+
const nextCardSettings = buildBlockTitleDescriptionFromSemanticChanges(changes) || {};
|
|
186
|
+
const hasHeightPatch = hasOwnDefined(changes, "height") || hasOwnDefined(changes, "heightMode");
|
|
187
|
+
if (hasHeightPatch) {
|
|
188
|
+
const nextHeightMode = hasOwnDefined(changes, "heightMode") ? normalizePublicBlockHeightMode(changes.heightMode) : hasOwnDefined(changes, "height") ? "specifyValue" : void 0;
|
|
189
|
+
if (nextHeightMode) {
|
|
190
|
+
import_lodash.default.set(nextCardSettings, ["blockHeight", "heightMode"], nextHeightMode);
|
|
191
|
+
if (nextHeightMode === "specifyValue" && hasOwnDefined(changes, "height")) {
|
|
192
|
+
import_lodash.default.set(nextCardSettings, ["blockHeight", "height"], changes.height);
|
|
193
|
+
} else {
|
|
194
|
+
import_lodash.default.unset(nextCardSettings, ["blockHeight", "height"]);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (import_lodash.default.isEmpty(import_lodash.default.get(nextCardSettings, ["blockHeight"]))) {
|
|
199
|
+
import_lodash.default.unset(nextCardSettings, ["blockHeight"]);
|
|
200
|
+
}
|
|
201
|
+
return Object.keys(nextCardSettings).length ? nextCardSettings : void 0;
|
|
202
|
+
}
|
|
183
203
|
function buildChartCardSettingsFromSemanticChanges(currentCardSettings, changes) {
|
|
184
204
|
const nextCardSettings = import_lodash.default.cloneDeep(currentCardSettings || {});
|
|
185
205
|
const currentTitleDescription = import_lodash.default.get(currentCardSettings, ["titleDescription"]);
|
|
@@ -368,10 +388,6 @@ function normalizeComposeFieldSpec(input, index) {
|
|
|
368
388
|
const renderer = typeof input.renderer === "undefined" ? void 0 : String(input.renderer || "").trim();
|
|
369
389
|
const fieldType = (0, import_field_type_resolver.normalizePublicFieldType)(input.fieldType, `compose field #${index + 1}`);
|
|
370
390
|
const fields = (0, import_field_type_resolver.normalizePublicFieldNameList)(input.fields, `compose field #${index + 1}.fields`);
|
|
371
|
-
const selectorFields = (0, import_field_type_resolver.normalizePublicFieldNameList)(
|
|
372
|
-
input.selectorFields,
|
|
373
|
-
`compose field #${index + 1}.selectorFields`
|
|
374
|
-
);
|
|
375
391
|
const titleField = typeof input.titleField === "undefined" ? void 0 : String(input.titleField || "").trim();
|
|
376
392
|
const openMode = typeof input.openMode === "undefined" ? void 0 : String(input.openMode || "").trim();
|
|
377
393
|
const popupSize = typeof input.popupSize === "undefined" ? void 0 : String(input.popupSize || "").trim();
|
|
@@ -403,7 +419,6 @@ function normalizeComposeFieldSpec(input, index) {
|
|
|
403
419
|
...semanticType ? { type: semanticType } : {},
|
|
404
420
|
...fieldType ? { fieldType } : {},
|
|
405
421
|
...!import_lodash.default.isUndefined(fields) ? { fields } : {},
|
|
406
|
-
...!import_lodash.default.isUndefined(selectorFields) ? { selectorFields } : {},
|
|
407
422
|
...titleField ? { titleField } : {},
|
|
408
423
|
...openMode ? { openMode } : {},
|
|
409
424
|
...popupSize ? { popupSize } : {},
|
|
@@ -645,7 +660,6 @@ function splitComposeFieldChanges(changes, wrapperUse) {
|
|
|
645
660
|
"name",
|
|
646
661
|
"fieldType",
|
|
647
662
|
"fields",
|
|
648
|
-
"selectorFields",
|
|
649
663
|
"titleField",
|
|
650
664
|
"openMode",
|
|
651
665
|
"popupSize",
|
|
@@ -820,6 +834,7 @@ function getFieldBindingDefaultProps(containerUse, fieldUse, field) {
|
|
|
820
834
|
0 && (module.exports = {
|
|
821
835
|
assertFlowSurfaceComposeUniqueKeys,
|
|
822
836
|
assertSupportedSimpleChanges,
|
|
837
|
+
buildBlockCardSettingsFromSemanticChanges,
|
|
823
838
|
buildBlockTitleDescriptionFromSemanticChanges,
|
|
824
839
|
buildChartCardSettingsFromSemanticChanges,
|
|
825
840
|
buildDefaultFieldState,
|
|
@@ -77,6 +77,7 @@ export declare class FlowSurfacesService {
|
|
|
77
77
|
private patchResolvedNodeConfigureOptions;
|
|
78
78
|
private buildRelationFieldTypeCandidates;
|
|
79
79
|
private collectRelationNestedFieldPaths;
|
|
80
|
+
private collectRelationFieldPaths;
|
|
80
81
|
private collectRelationSelectorFieldPaths;
|
|
81
82
|
private projectCatalogItem;
|
|
82
83
|
private buildCatalogBlockItem;
|
|
@@ -86,6 +87,7 @@ export declare class FlowSurfacesService {
|
|
|
86
87
|
private isCatalogBlockVisibleForPopupProfile;
|
|
87
88
|
private getPopupCollectionBlockScenes;
|
|
88
89
|
private isPopupCollectionBlockSceneUnsupported;
|
|
90
|
+
private supportsPopupAssociatedRecordsBinding;
|
|
89
91
|
private isPopupCollectionBlockVisibleForScene;
|
|
90
92
|
private resolveFieldAssociationContextFromBinding;
|
|
91
93
|
private resolvePopupHostFieldAssociationContext;
|
|
@@ -104,6 +106,8 @@ export declare class FlowSurfacesService {
|
|
|
104
106
|
private assertRequiredBlockResourceInit;
|
|
105
107
|
private describeComposeBlock;
|
|
106
108
|
private resolvePopupCollectionBlockResourceInit;
|
|
109
|
+
private shouldUseLegacyAssociationPopupCurrentRecordBinding;
|
|
110
|
+
private shouldNormalizeLegacyAssociationPopupRecordBlockResource;
|
|
107
111
|
private compilePopupSemanticResourceInit;
|
|
108
112
|
private assertPopupRawResourceInit;
|
|
109
113
|
private validatePopupRawResourceInit;
|
|
@@ -484,6 +488,7 @@ export declare class FlowSurfacesService {
|
|
|
484
488
|
private buildDefaultFieldOpenView;
|
|
485
489
|
private ensureLocalFieldPopupSurface;
|
|
486
490
|
private applyInlineNodeSettings;
|
|
491
|
+
private resolveComposeBlockSettings;
|
|
487
492
|
private applyInlineFieldPopup;
|
|
488
493
|
private applyInlineFieldSettings;
|
|
489
494
|
private applyInlineStandaloneFieldSettings;
|
|
@@ -540,10 +545,15 @@ export declare class FlowSurfacesService {
|
|
|
540
545
|
}>;
|
|
541
546
|
private syncFilterActionSettingsForUpdateSettings;
|
|
542
547
|
private syncMirroredStepParamsForUpdateSettings;
|
|
548
|
+
private syncUpdateActionAssignedValuesForUpdateSettings;
|
|
549
|
+
private syncUpdateActionAssignFormItems;
|
|
550
|
+
private ensureUpdateActionAssignForm;
|
|
551
|
+
private ensureUpdateActionAssignFormGrid;
|
|
552
|
+
private buildUpdateActionAssignFormItemTree;
|
|
553
|
+
private resolveUpdateActionAssignFormFieldUse;
|
|
543
554
|
private normalizeCanonicalBlockHeaderWriteForUpdateSettings;
|
|
544
555
|
private syncCanonicalBlockHeaderForUpdateSettings;
|
|
545
556
|
private stripLegacyBlockHeaderChromeForUpdateSettings;
|
|
546
|
-
private syncMapHeightChromeForUpdateSettings;
|
|
547
557
|
private normalizeOpenViewForUpdateSettings;
|
|
548
558
|
private syncChartConfigureForUpdateSettings;
|
|
549
559
|
private validateChartConfigureForUpdateSettings;
|
|
@@ -690,6 +700,7 @@ export declare class FlowSurfacesService {
|
|
|
690
700
|
private configureFieldWrapper;
|
|
691
701
|
private configureFieldNode;
|
|
692
702
|
private normalizeFilterActionDefaultFilterValue;
|
|
703
|
+
private normalizeActionAssignValues;
|
|
693
704
|
private configureActionNode;
|
|
694
705
|
private normalizeActionPanelActionChanges;
|
|
695
706
|
private buildFieldCatalog;
|
|
@@ -704,10 +715,18 @@ export declare class FlowSurfacesService {
|
|
|
704
715
|
private buildFieldCatalogEntriesForResource;
|
|
705
716
|
private buildLegacyFieldCatalogEntriesForResource;
|
|
706
717
|
private findOwningBlockGrid;
|
|
718
|
+
private assertNoTreeConnectFieldsFlowRegistry;
|
|
719
|
+
private normalizeTreeConnectFields;
|
|
720
|
+
private getDataBlockResourceInit;
|
|
721
|
+
private getTreeSelectedKeyFieldPath;
|
|
722
|
+
private normalizeTreeConnectFilterPaths;
|
|
723
|
+
private resolveTreeConnectComparableField;
|
|
724
|
+
private normalizeTreeConnectValueKind;
|
|
725
|
+
private persistTreeConnectFields;
|
|
707
726
|
private isFilterFormFieldPathAvailableForResource;
|
|
708
727
|
private persistFilterFormConnectConfig;
|
|
709
|
-
private
|
|
710
|
-
private
|
|
728
|
+
private removeFilterSourceBindings;
|
|
729
|
+
private removeFilterTargetBindings;
|
|
711
730
|
private collectChartBlockUidsFromTree;
|
|
712
731
|
private removeFlowSqlBindingsForChartUids;
|
|
713
732
|
private removeFlowSqlBindingsForNodeTree;
|
|
@@ -816,6 +835,7 @@ export declare class FlowSurfacesService {
|
|
|
816
835
|
private ensureFieldGridSubModel;
|
|
817
836
|
private applyResolvedRelationFieldType;
|
|
818
837
|
private applyRecordPickerFieldTypeSettings;
|
|
838
|
+
private ensureRelationSelectorGridTable;
|
|
819
839
|
private buildExactFieldSettingsInitPayload;
|
|
820
840
|
private patchFieldSettingsInitExact;
|
|
821
841
|
private inferFieldComponentFlowDomain;
|