@nocobase/flow-engine 2.1.0-alpha.12 → 2.1.0-alpha.13
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/lib/FlowDefinition.d.ts +0 -4
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -3
- package/lib/models/DisplayItemModel.d.ts +1 -1
- package/lib/models/EditableItemModel.d.ts +1 -1
- package/lib/models/FilterableItemModel.d.ts +1 -1
- package/lib/runjs-context/snippets/index.js +13 -2
- package/lib/{server.d.ts → runjs-context/snippets/scene/detail/set-field-style.snippet.d.ts} +3 -2
- package/lib/{server.js → runjs-context/snippets/scene/detail/set-field-style.snippet.js} +27 -9
- package/{src/server.ts → lib/runjs-context/snippets/scene/table/set-cell-style.snippet.d.ts} +3 -3
- package/lib/runjs-context/snippets/scene/table/set-cell-style.snippet.js +54 -0
- package/lib/types.d.ts +0 -221
- package/package.json +4 -4
- package/src/__tests__/runjsSnippets.test.ts +21 -0
- package/src/index.ts +0 -1
- package/src/models/DisplayItemModel.tsx +1 -1
- package/src/models/EditableItemModel.tsx +1 -1
- package/src/models/FilterableItemModel.tsx +1 -1
- package/src/runjs-context/snippets/index.ts +12 -1
- package/src/runjs-context/snippets/scene/detail/set-field-style.snippet.ts +30 -0
- package/src/runjs-context/snippets/scene/table/set-cell-style.snippet.ts +34 -0
- package/src/types.ts +0 -262
- package/lib/FlowSchemaRegistry.d.ts +0 -154
- package/lib/FlowSchemaRegistry.js +0 -1427
- package/lib/flow-schema-registry/fieldBinding.d.ts +0 -32
- package/lib/flow-schema-registry/fieldBinding.js +0 -165
- package/lib/flow-schema-registry/modelPatches.d.ts +0 -16
- package/lib/flow-schema-registry/modelPatches.js +0 -235
- package/lib/flow-schema-registry/schemaInference.d.ts +0 -17
- package/lib/flow-schema-registry/schemaInference.js +0 -207
- package/lib/flow-schema-registry/utils.d.ts +0 -25
- package/lib/flow-schema-registry/utils.js +0 -293
- package/server.d.ts +0 -1
- package/server.js +0 -1
- package/src/FlowSchemaRegistry.ts +0 -1799
- package/src/__tests__/FlowSchemaRegistry.test.ts +0 -1951
- package/src/flow-schema-registry/fieldBinding.ts +0 -171
- package/src/flow-schema-registry/modelPatches.ts +0 -260
- package/src/flow-schema-registry/schemaInference.ts +0 -210
- package/src/flow-schema-registry/utils.ts +0 -268
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import type { FlowFieldBindingConditions, FlowFieldBindingContextContribution, FlowFieldBindingContribution, FlowFieldModelCompatibility, FlowSchemaCoverage } from '../types';
|
|
10
|
-
export type RegisteredFieldBindingContext = {
|
|
11
|
-
name: string;
|
|
12
|
-
inherits: string[];
|
|
13
|
-
};
|
|
14
|
-
export type RegisteredFieldBinding = {
|
|
15
|
-
context: string;
|
|
16
|
-
use: string;
|
|
17
|
-
interfaces: string[];
|
|
18
|
-
isDefault: boolean;
|
|
19
|
-
order?: number;
|
|
20
|
-
conditions?: FlowFieldBindingConditions;
|
|
21
|
-
defaultProps?: any;
|
|
22
|
-
source: FlowSchemaCoverage['source'];
|
|
23
|
-
};
|
|
24
|
-
export declare function normalizeFieldBindingContextContribution(contribution?: FlowFieldBindingContextContribution, fallbackName?: string): RegisteredFieldBindingContext | undefined;
|
|
25
|
-
export declare function normalizeFieldBindingContribution(contribution?: FlowFieldBindingContribution, source?: FlowSchemaCoverage['source']): RegisteredFieldBinding | undefined;
|
|
26
|
-
export declare function matchesFieldBinding(binding: RegisteredFieldBinding, options: {
|
|
27
|
-
interface?: string;
|
|
28
|
-
fieldType?: string;
|
|
29
|
-
association?: boolean;
|
|
30
|
-
targetCollectionTemplate?: string;
|
|
31
|
-
}): boolean;
|
|
32
|
-
export declare function buildFieldModelCompatibility(binding: RegisteredFieldBinding): FlowFieldModelCompatibility;
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
17
|
-
var __export = (target, all) => {
|
|
18
|
-
for (var name in all)
|
|
19
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
-
};
|
|
21
|
-
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
for (let key of __getOwnPropNames(from))
|
|
24
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
-
}
|
|
27
|
-
return to;
|
|
28
|
-
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
-
mod
|
|
36
|
-
));
|
|
37
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
-
var fieldBinding_exports = {};
|
|
39
|
-
__export(fieldBinding_exports, {
|
|
40
|
-
buildFieldModelCompatibility: () => buildFieldModelCompatibility,
|
|
41
|
-
matchesFieldBinding: () => matchesFieldBinding,
|
|
42
|
-
normalizeFieldBindingContextContribution: () => normalizeFieldBindingContextContribution,
|
|
43
|
-
normalizeFieldBindingContribution: () => normalizeFieldBindingContribution
|
|
44
|
-
});
|
|
45
|
-
module.exports = __toCommonJS(fieldBinding_exports);
|
|
46
|
-
var import_lodash = __toESM(require("lodash"));
|
|
47
|
-
var import_utils = require("./utils");
|
|
48
|
-
function normalizeFieldBindingConditions(conditions) {
|
|
49
|
-
if (!conditions || typeof conditions !== "object" || Array.isArray(conditions)) {
|
|
50
|
-
return void 0;
|
|
51
|
-
}
|
|
52
|
-
const normalized = import_lodash.default.pickBy(
|
|
53
|
-
{
|
|
54
|
-
association: typeof conditions.association === "boolean" ? conditions.association : void 0,
|
|
55
|
-
fieldTypes: (0, import_utils.normalizeStringArray)(conditions.fieldTypes),
|
|
56
|
-
targetCollectionTemplateIn: (0, import_utils.normalizeStringArray)(conditions.targetCollectionTemplateIn),
|
|
57
|
-
targetCollectionTemplateNotIn: (0, import_utils.normalizeStringArray)(conditions.targetCollectionTemplateNotIn)
|
|
58
|
-
},
|
|
59
|
-
(value) => {
|
|
60
|
-
if (Array.isArray(value)) {
|
|
61
|
-
return value.length > 0;
|
|
62
|
-
}
|
|
63
|
-
return value !== void 0;
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
return Object.keys(normalized).length > 0 ? normalized : void 0;
|
|
67
|
-
}
|
|
68
|
-
__name(normalizeFieldBindingConditions, "normalizeFieldBindingConditions");
|
|
69
|
-
function normalizeFieldBindingContextContribution(contribution, fallbackName) {
|
|
70
|
-
const name = String((contribution == null ? void 0 : contribution.name) || fallbackName || "").trim();
|
|
71
|
-
if (!name) {
|
|
72
|
-
return void 0;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
name,
|
|
76
|
-
inherits: (0, import_utils.normalizeStringArray)(contribution == null ? void 0 : contribution.inherits)
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
__name(normalizeFieldBindingContextContribution, "normalizeFieldBindingContextContribution");
|
|
80
|
-
function normalizeFieldBindingContribution(contribution, source = "official") {
|
|
81
|
-
const context = String((contribution == null ? void 0 : contribution.context) || "").trim();
|
|
82
|
-
const use = String((contribution == null ? void 0 : contribution.use) || "").trim();
|
|
83
|
-
const interfaces = (0, import_utils.normalizeStringArray)(contribution == null ? void 0 : contribution.interfaces);
|
|
84
|
-
if (!context || !use || interfaces.length === 0) {
|
|
85
|
-
return void 0;
|
|
86
|
-
}
|
|
87
|
-
return {
|
|
88
|
-
context,
|
|
89
|
-
use,
|
|
90
|
-
interfaces,
|
|
91
|
-
isDefault: (contribution == null ? void 0 : contribution.isDefault) === true,
|
|
92
|
-
order: typeof (contribution == null ? void 0 : contribution.order) === "number" ? contribution.order : void 0,
|
|
93
|
-
conditions: normalizeFieldBindingConditions(contribution == null ? void 0 : contribution.conditions),
|
|
94
|
-
defaultProps: (contribution == null ? void 0 : contribution.defaultProps) === void 0 ? void 0 : import_lodash.default.cloneDeep(contribution.defaultProps),
|
|
95
|
-
source
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
__name(normalizeFieldBindingContribution, "normalizeFieldBindingContribution");
|
|
99
|
-
function matchesFieldBinding(binding, options) {
|
|
100
|
-
var _a, _b, _c;
|
|
101
|
-
if (options.interface && !binding.interfaces.includes("*") && !binding.interfaces.includes(options.interface)) {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
const conditions = binding.conditions;
|
|
105
|
-
if (!conditions) {
|
|
106
|
-
return true;
|
|
107
|
-
}
|
|
108
|
-
if (typeof conditions.association === "boolean" && options.association !== void 0) {
|
|
109
|
-
if (conditions.association !== options.association) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if (((_a = conditions.fieldTypes) == null ? void 0 : _a.length) && options.fieldType) {
|
|
114
|
-
if (!conditions.fieldTypes.includes(options.fieldType)) {
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
if (((_b = conditions.targetCollectionTemplateIn) == null ? void 0 : _b.length) && options.targetCollectionTemplate) {
|
|
119
|
-
if (!conditions.targetCollectionTemplateIn.includes(options.targetCollectionTemplate)) {
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (((_c = conditions.targetCollectionTemplateNotIn) == null ? void 0 : _c.length) && options.targetCollectionTemplate) {
|
|
124
|
-
if (conditions.targetCollectionTemplateNotIn.includes(options.targetCollectionTemplate)) {
|
|
125
|
-
return false;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return true;
|
|
129
|
-
}
|
|
130
|
-
__name(matchesFieldBinding, "matchesFieldBinding");
|
|
131
|
-
function buildFieldModelCompatibility(binding) {
|
|
132
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
133
|
-
const compatibility = {
|
|
134
|
-
context: binding.context,
|
|
135
|
-
interfaces: import_lodash.default.cloneDeep(binding.interfaces),
|
|
136
|
-
inheritParentFieldBinding: true
|
|
137
|
-
};
|
|
138
|
-
if (binding.isDefault) {
|
|
139
|
-
compatibility.isDefault = true;
|
|
140
|
-
}
|
|
141
|
-
if (typeof binding.order === "number") {
|
|
142
|
-
compatibility.order = binding.order;
|
|
143
|
-
}
|
|
144
|
-
if (typeof ((_a = binding.conditions) == null ? void 0 : _a.association) === "boolean") {
|
|
145
|
-
compatibility.association = binding.conditions.association;
|
|
146
|
-
}
|
|
147
|
-
if ((_c = (_b = binding.conditions) == null ? void 0 : _b.fieldTypes) == null ? void 0 : _c.length) {
|
|
148
|
-
compatibility.fieldTypes = import_lodash.default.cloneDeep(binding.conditions.fieldTypes);
|
|
149
|
-
}
|
|
150
|
-
if ((_e = (_d = binding.conditions) == null ? void 0 : _d.targetCollectionTemplateIn) == null ? void 0 : _e.length) {
|
|
151
|
-
compatibility.targetCollectionTemplateIn = import_lodash.default.cloneDeep(binding.conditions.targetCollectionTemplateIn);
|
|
152
|
-
}
|
|
153
|
-
if ((_g = (_f = binding.conditions) == null ? void 0 : _f.targetCollectionTemplateNotIn) == null ? void 0 : _g.length) {
|
|
154
|
-
compatibility.targetCollectionTemplateNotIn = import_lodash.default.cloneDeep(binding.conditions.targetCollectionTemplateNotIn);
|
|
155
|
-
}
|
|
156
|
-
return compatibility;
|
|
157
|
-
}
|
|
158
|
-
__name(buildFieldModelCompatibility, "buildFieldModelCompatibility");
|
|
159
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
160
|
-
0 && (module.exports = {
|
|
161
|
-
buildFieldModelCompatibility,
|
|
162
|
-
matchesFieldBinding,
|
|
163
|
-
normalizeFieldBindingContextContribution,
|
|
164
|
-
normalizeFieldBindingContribution
|
|
165
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import type { FlowDescendantSchemaPatch, FlowModelSchemaPatch, FlowSchemaContextEdge, FlowSchemaCoverage, FlowSubModelContextPathStep, FlowSubModelSlotSchema } from '../types';
|
|
10
|
-
import type { RegisteredModelSchema } from '../FlowSchemaRegistry';
|
|
11
|
-
export declare function normalizeSubModelContextPath(path?: FlowSubModelContextPathStep[]): FlowSubModelContextPathStep[];
|
|
12
|
-
export declare function normalizeModelSchemaPatch(patch?: FlowModelSchemaPatch): FlowModelSchemaPatch | undefined;
|
|
13
|
-
export declare function normalizeSubModelSlots(slots?: Record<string, FlowSubModelSlotSchema>): Record<string, FlowSubModelSlotSchema> | undefined;
|
|
14
|
-
export declare function matchesDescendantSchemaPatch(patch: FlowDescendantSchemaPatch, remainingEdges: FlowSchemaContextEdge[]): boolean;
|
|
15
|
-
export declare function resolveChildSchemaPatch(slot: FlowSubModelSlotSchema, childUse: string): FlowModelSchemaPatch | undefined;
|
|
16
|
-
export declare function applyModelSchemaPatch(target: RegisteredModelSchema, patch: FlowModelSchemaPatch, source: FlowSchemaCoverage['source'], strict?: boolean): void;
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
17
|
-
var __export = (target, all) => {
|
|
18
|
-
for (var name in all)
|
|
19
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
-
};
|
|
21
|
-
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
for (let key of __getOwnPropNames(from))
|
|
24
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
-
}
|
|
27
|
-
return to;
|
|
28
|
-
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
-
mod
|
|
36
|
-
));
|
|
37
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
-
var modelPatches_exports = {};
|
|
39
|
-
__export(modelPatches_exports, {
|
|
40
|
-
applyModelSchemaPatch: () => applyModelSchemaPatch,
|
|
41
|
-
matchesDescendantSchemaPatch: () => matchesDescendantSchemaPatch,
|
|
42
|
-
normalizeModelSchemaPatch: () => normalizeModelSchemaPatch,
|
|
43
|
-
normalizeSubModelContextPath: () => normalizeSubModelContextPath,
|
|
44
|
-
normalizeSubModelSlots: () => normalizeSubModelSlots,
|
|
45
|
-
resolveChildSchemaPatch: () => resolveChildSchemaPatch
|
|
46
|
-
});
|
|
47
|
-
module.exports = __toCommonJS(modelPatches_exports);
|
|
48
|
-
var import_lodash = __toESM(require("lodash"));
|
|
49
|
-
var import_utils = require("./utils");
|
|
50
|
-
function normalizeSubModelContextPath(path) {
|
|
51
|
-
if (!Array.isArray(path)) {
|
|
52
|
-
return [];
|
|
53
|
-
}
|
|
54
|
-
return path.map((step) => ({
|
|
55
|
-
slotKey: String((step == null ? void 0 : step.slotKey) || "").trim(),
|
|
56
|
-
...typeof (step == null ? void 0 : step.use) === "string" ? { use: step.use.trim() } : Array.isArray(step == null ? void 0 : step.use) ? { use: step.use.map((item) => String(item || "").trim()).filter(Boolean) } : {}
|
|
57
|
-
})).filter((step) => !!step.slotKey);
|
|
58
|
-
}
|
|
59
|
-
__name(normalizeSubModelContextPath, "normalizeSubModelContextPath");
|
|
60
|
-
function normalizeModelSchemaPatch(patch) {
|
|
61
|
-
if (!patch || typeof patch !== "object" || Array.isArray(patch)) {
|
|
62
|
-
return void 0;
|
|
63
|
-
}
|
|
64
|
-
const normalized = import_lodash.default.pickBy(
|
|
65
|
-
{
|
|
66
|
-
stepParamsSchema: patch.stepParamsSchema ? import_lodash.default.cloneDeep(patch.stepParamsSchema) : void 0,
|
|
67
|
-
flowRegistrySchema: patch.flowRegistrySchema ? import_lodash.default.cloneDeep(patch.flowRegistrySchema) : void 0,
|
|
68
|
-
flowRegistrySchemaPatch: patch.flowRegistrySchemaPatch ? import_lodash.default.cloneDeep(patch.flowRegistrySchemaPatch) : void 0,
|
|
69
|
-
subModelSlots: normalizeSubModelSlots(patch.subModelSlots),
|
|
70
|
-
docs: patch.docs ? (0, import_utils.normalizeSchemaDocs)(patch.docs) : void 0,
|
|
71
|
-
examples: Array.isArray(patch.examples) ? import_lodash.default.cloneDeep(patch.examples) : void 0,
|
|
72
|
-
skeleton: patch.skeleton === void 0 ? void 0 : import_lodash.default.cloneDeep(patch.skeleton),
|
|
73
|
-
dynamicHints: Array.isArray(patch.dynamicHints) ? (0, import_utils.normalizeSchemaHints)(patch.dynamicHints) : void 0
|
|
74
|
-
},
|
|
75
|
-
(value) => value !== void 0 && (!Array.isArray(value) || value.length > 0)
|
|
76
|
-
);
|
|
77
|
-
return Object.keys(normalized).length > 0 ? normalized : void 0;
|
|
78
|
-
}
|
|
79
|
-
__name(normalizeModelSchemaPatch, "normalizeModelSchemaPatch");
|
|
80
|
-
function normalizeDescendantSchemaPatches(patches) {
|
|
81
|
-
if (!Array.isArray(patches)) {
|
|
82
|
-
return void 0;
|
|
83
|
-
}
|
|
84
|
-
const normalized = patches.map((item) => {
|
|
85
|
-
const path = normalizeSubModelContextPath(item == null ? void 0 : item.path);
|
|
86
|
-
const patch = normalizeModelSchemaPatch(item == null ? void 0 : item.patch);
|
|
87
|
-
if (!patch) {
|
|
88
|
-
return void 0;
|
|
89
|
-
}
|
|
90
|
-
return { path, patch };
|
|
91
|
-
}).filter(Boolean);
|
|
92
|
-
return normalized.length > 0 ? normalized : void 0;
|
|
93
|
-
}
|
|
94
|
-
__name(normalizeDescendantSchemaPatches, "normalizeDescendantSchemaPatches");
|
|
95
|
-
function normalizeChildSchemaPatch(patch) {
|
|
96
|
-
if (!patch || typeof patch !== "object" || Array.isArray(patch)) {
|
|
97
|
-
return void 0;
|
|
98
|
-
}
|
|
99
|
-
const directPatch = normalizeModelSchemaPatch(patch);
|
|
100
|
-
if (directPatch) {
|
|
101
|
-
return directPatch;
|
|
102
|
-
}
|
|
103
|
-
const entries = Object.entries(patch).map(([childUse, childPatch]) => [String(childUse || "").trim(), normalizeModelSchemaPatch(childPatch)]).filter(([childUse, childPatch]) => !!childUse && !!childPatch);
|
|
104
|
-
if (!entries.length) {
|
|
105
|
-
return void 0;
|
|
106
|
-
}
|
|
107
|
-
return Object.fromEntries(entries);
|
|
108
|
-
}
|
|
109
|
-
__name(normalizeChildSchemaPatch, "normalizeChildSchemaPatch");
|
|
110
|
-
function normalizeSubModelSlots(slots) {
|
|
111
|
-
if (!slots || typeof slots !== "object" || Array.isArray(slots)) {
|
|
112
|
-
return void 0;
|
|
113
|
-
}
|
|
114
|
-
const normalizedEntries = Object.entries(slots).map(([slotKey, slot]) => {
|
|
115
|
-
if (!(slot == null ? void 0 : slot.type)) {
|
|
116
|
-
return void 0;
|
|
117
|
-
}
|
|
118
|
-
const normalizedSlot = {
|
|
119
|
-
type: slot.type
|
|
120
|
-
};
|
|
121
|
-
const normalizedUse = typeof slot.use === "string" ? slot.use.trim() : void 0;
|
|
122
|
-
if (normalizedUse) {
|
|
123
|
-
normalizedSlot.use = normalizedUse;
|
|
124
|
-
}
|
|
125
|
-
const normalizedUses = Array.isArray(slot.uses) ? slot.uses.map((item) => String(item || "").trim()).filter(Boolean) : void 0;
|
|
126
|
-
if (normalizedUses == null ? void 0 : normalizedUses.length) {
|
|
127
|
-
normalizedSlot.uses = normalizedUses;
|
|
128
|
-
}
|
|
129
|
-
if (slot.required !== void 0) {
|
|
130
|
-
normalizedSlot.required = slot.required;
|
|
131
|
-
}
|
|
132
|
-
if (slot.type === "array" && typeof slot.minItems === "number" && Number.isFinite(slot.minItems)) {
|
|
133
|
-
normalizedSlot.minItems = Math.max(0, Math.trunc(slot.minItems));
|
|
134
|
-
}
|
|
135
|
-
if (slot.dynamic !== void 0) {
|
|
136
|
-
normalizedSlot.dynamic = slot.dynamic;
|
|
137
|
-
}
|
|
138
|
-
if (slot.schema) {
|
|
139
|
-
normalizedSlot.schema = import_lodash.default.cloneDeep(slot.schema);
|
|
140
|
-
}
|
|
141
|
-
if (typeof slot.fieldBindingContext === "string" && slot.fieldBindingContext.trim()) {
|
|
142
|
-
normalizedSlot.fieldBindingContext = slot.fieldBindingContext.trim();
|
|
143
|
-
}
|
|
144
|
-
const childSchemaPatch = normalizeChildSchemaPatch(slot.childSchemaPatch);
|
|
145
|
-
if (childSchemaPatch) {
|
|
146
|
-
normalizedSlot.childSchemaPatch = childSchemaPatch;
|
|
147
|
-
}
|
|
148
|
-
const descendantSchemaPatches = normalizeDescendantSchemaPatches(slot.descendantSchemaPatches);
|
|
149
|
-
if (descendantSchemaPatches == null ? void 0 : descendantSchemaPatches.length) {
|
|
150
|
-
normalizedSlot.descendantSchemaPatches = descendantSchemaPatches;
|
|
151
|
-
}
|
|
152
|
-
if (slot.description !== void 0) {
|
|
153
|
-
normalizedSlot.description = slot.description;
|
|
154
|
-
}
|
|
155
|
-
return [slotKey, normalizedSlot];
|
|
156
|
-
}).filter(Boolean);
|
|
157
|
-
return normalizedEntries.length > 0 ? Object.fromEntries(normalizedEntries) : void 0;
|
|
158
|
-
}
|
|
159
|
-
__name(normalizeSubModelSlots, "normalizeSubModelSlots");
|
|
160
|
-
function matchesDescendantSchemaPatch(patch, remainingEdges) {
|
|
161
|
-
const path = normalizeSubModelContextPath(patch.path);
|
|
162
|
-
if (path.length !== remainingEdges.length) {
|
|
163
|
-
return false;
|
|
164
|
-
}
|
|
165
|
-
return path.every((step, index) => {
|
|
166
|
-
const edge = remainingEdges[index];
|
|
167
|
-
if (step.slotKey !== edge.slotKey) {
|
|
168
|
-
return false;
|
|
169
|
-
}
|
|
170
|
-
if (typeof step.use === "undefined") {
|
|
171
|
-
return true;
|
|
172
|
-
}
|
|
173
|
-
if (typeof step.use === "string") {
|
|
174
|
-
return step.use === edge.childUse;
|
|
175
|
-
}
|
|
176
|
-
return step.use.includes(edge.childUse);
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
__name(matchesDescendantSchemaPatch, "matchesDescendantSchemaPatch");
|
|
180
|
-
function resolveChildSchemaPatch(slot, childUse) {
|
|
181
|
-
const childSchemaPatch = slot.childSchemaPatch;
|
|
182
|
-
if (!childSchemaPatch || typeof childSchemaPatch !== "object" || Array.isArray(childSchemaPatch)) {
|
|
183
|
-
return void 0;
|
|
184
|
-
}
|
|
185
|
-
const directPatch = normalizeModelSchemaPatch(childSchemaPatch);
|
|
186
|
-
if (directPatch) {
|
|
187
|
-
return directPatch;
|
|
188
|
-
}
|
|
189
|
-
return normalizeModelSchemaPatch(childSchemaPatch[childUse]);
|
|
190
|
-
}
|
|
191
|
-
__name(resolveChildSchemaPatch, "resolveChildSchemaPatch");
|
|
192
|
-
function applyModelSchemaPatch(target, patch, source, strict) {
|
|
193
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
194
|
-
target.stepParamsSchema = (0, import_utils.mergeSchemas)(target.stepParamsSchema, patch.stepParamsSchema);
|
|
195
|
-
target.flowRegistrySchema = (0, import_utils.mergeSchemas)(target.flowRegistrySchema, patch.flowRegistrySchema);
|
|
196
|
-
target.flowRegistrySchemaPatch = (0, import_utils.mergeSchemas)(target.flowRegistrySchemaPatch, patch.flowRegistrySchemaPatch);
|
|
197
|
-
target.subModelSlots = normalizeSubModelSlots(
|
|
198
|
-
patch.subModelSlots ? (0, import_utils.deepMergeReplaceArrays)(target.subModelSlots || {}, patch.subModelSlots) : target.subModelSlots
|
|
199
|
-
);
|
|
200
|
-
target.docs = (0, import_utils.normalizeSchemaDocs)({
|
|
201
|
-
...target.docs,
|
|
202
|
-
...patch.docs,
|
|
203
|
-
examples: ((_a = patch.docs) == null ? void 0 : _a.examples) || ((_b = target.docs) == null ? void 0 : _b.examples),
|
|
204
|
-
dynamicHints: [...((_c = target.docs) == null ? void 0 : _c.dynamicHints) || [], ...((_d = patch.docs) == null ? void 0 : _d.dynamicHints) || []],
|
|
205
|
-
commonPatterns: ((_e = patch.docs) == null ? void 0 : _e.commonPatterns) || ((_f = target.docs) == null ? void 0 : _f.commonPatterns),
|
|
206
|
-
antiPatterns: ((_g = patch.docs) == null ? void 0 : _g.antiPatterns) || ((_h = target.docs) == null ? void 0 : _h.antiPatterns),
|
|
207
|
-
minimalExample: ((_i = patch.docs) == null ? void 0 : _i.minimalExample) !== void 0 ? patch.docs.minimalExample : (_j = target.docs) == null ? void 0 : _j.minimalExample
|
|
208
|
-
});
|
|
209
|
-
target.examples = Array.isArray(patch.examples) ? import_lodash.default.cloneDeep(patch.examples) : target.examples;
|
|
210
|
-
target.skeleton = patch.skeleton !== void 0 ? (0, import_utils.deepMergeReplaceArrays)(target.skeleton, patch.skeleton) : target.skeleton;
|
|
211
|
-
target.dynamicHints = (0, import_utils.normalizeSchemaHints)([
|
|
212
|
-
...target.dynamicHints || [],
|
|
213
|
-
...patch.dynamicHints || [],
|
|
214
|
-
...((_k = patch.docs) == null ? void 0 : _k.dynamicHints) || []
|
|
215
|
-
]);
|
|
216
|
-
const hasSchemaPatch = !!patch.stepParamsSchema || !!patch.flowRegistrySchema || !!patch.flowRegistrySchemaPatch || !!patch.subModelSlots;
|
|
217
|
-
if (hasSchemaPatch) {
|
|
218
|
-
target.coverage = {
|
|
219
|
-
...target.coverage,
|
|
220
|
-
status: target.coverage.status === "unresolved" ? "manual" : target.coverage.status === "auto" ? "mixed" : target.coverage.status,
|
|
221
|
-
source: target.coverage.source === "third-party" ? source : target.coverage.source,
|
|
222
|
-
strict: target.coverage.strict ?? strict
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
__name(applyModelSchemaPatch, "applyModelSchemaPatch");
|
|
227
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
228
|
-
0 && (module.exports = {
|
|
229
|
-
applyModelSchemaPatch,
|
|
230
|
-
matchesDescendantSchemaPatch,
|
|
231
|
-
normalizeModelSchemaPatch,
|
|
232
|
-
normalizeSubModelContextPath,
|
|
233
|
-
normalizeSubModelSlots,
|
|
234
|
-
resolveChildSchemaPatch
|
|
235
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
import type { ISchema } from '@formily/json-schema';
|
|
10
|
-
import type { FlowDynamicHint, FlowJsonSchema, FlowSchemaCoverage } from '../types';
|
|
11
|
-
export type StepSchemaResolution = {
|
|
12
|
-
schema?: FlowJsonSchema;
|
|
13
|
-
hints: FlowDynamicHint[];
|
|
14
|
-
coverage: FlowSchemaCoverage['status'];
|
|
15
|
-
};
|
|
16
|
-
export type UiSchemaLike = Record<string, ISchema> | ((...args: any[]) => Record<string, ISchema> | Promise<Record<string, ISchema>>) | undefined;
|
|
17
|
-
export declare function inferParamsSchemaFromUiSchema(name: string, uiSchema: UiSchemaLike, path: string): StepSchemaResolution;
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is part of the NocoBase (R) project.
|
|
3
|
-
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
-
* Authors: NocoBase Team.
|
|
5
|
-
*
|
|
6
|
-
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
-
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
var __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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
17
|
-
var __export = (target, all) => {
|
|
18
|
-
for (var name in all)
|
|
19
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
-
};
|
|
21
|
-
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
-
for (let key of __getOwnPropNames(from))
|
|
24
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
-
}
|
|
27
|
-
return to;
|
|
28
|
-
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
-
mod
|
|
36
|
-
));
|
|
37
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
|
-
var schemaInference_exports = {};
|
|
39
|
-
__export(schemaInference_exports, {
|
|
40
|
-
inferParamsSchemaFromUiSchema: () => inferParamsSchemaFromUiSchema
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(schemaInference_exports);
|
|
43
|
-
var import_lodash = __toESM(require("lodash"));
|
|
44
|
-
var import_utils = require("./utils");
|
|
45
|
-
function inferSchemaFromUiSchemaValue(name, uiSchema, path, hints) {
|
|
46
|
-
if (!uiSchema || typeof uiSchema !== "object" || Array.isArray(uiSchema)) {
|
|
47
|
-
return { type: "object", additionalProperties: true };
|
|
48
|
-
}
|
|
49
|
-
const xComponent = uiSchema["x-component"];
|
|
50
|
-
if (typeof xComponent === "function") {
|
|
51
|
-
hints.push(
|
|
52
|
-
(0, import_utils.createFlowHint)(
|
|
53
|
-
{
|
|
54
|
-
kind: "custom-component",
|
|
55
|
-
path,
|
|
56
|
-
message: `${name} uses a custom component and needs manual schema review.`
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
unresolvedReason: "function-x-component",
|
|
60
|
-
recommendedFallback: { type: "object", additionalProperties: true }
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
const reactions = uiSchema["x-reactions"];
|
|
66
|
-
if (reactions && (Array.isArray(reactions) && reactions.some((item) => typeof item === "function") || typeof reactions === "function")) {
|
|
67
|
-
hints.push(
|
|
68
|
-
(0, import_utils.createFlowHint)(
|
|
69
|
-
{
|
|
70
|
-
kind: "x-reactions",
|
|
71
|
-
path,
|
|
72
|
-
message: `${name} contains function-based x-reactions and only static schema is generated.`
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
unresolvedReason: "function-x-reactions"
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
const schema = {};
|
|
81
|
-
const type = uiSchema.type;
|
|
82
|
-
if (type) {
|
|
83
|
-
schema.type = type;
|
|
84
|
-
}
|
|
85
|
-
if (uiSchema.description) {
|
|
86
|
-
schema.description = uiSchema.description;
|
|
87
|
-
}
|
|
88
|
-
if (uiSchema.default !== void 0) {
|
|
89
|
-
schema.default = import_lodash.default.cloneDeep(uiSchema.default);
|
|
90
|
-
}
|
|
91
|
-
if (uiSchema.enum) {
|
|
92
|
-
if (Array.isArray(uiSchema.enum) && uiSchema.enum.every((item) => import_lodash.default.isPlainObject(item) && "value" in item)) {
|
|
93
|
-
schema.enum = uiSchema.enum.map((item) => item.value);
|
|
94
|
-
} else {
|
|
95
|
-
schema.enum = import_lodash.default.cloneDeep(uiSchema.enum);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if (uiSchema.const !== void 0) {
|
|
99
|
-
schema.const = import_lodash.default.cloneDeep(uiSchema.const);
|
|
100
|
-
}
|
|
101
|
-
if (uiSchema.required === true) {
|
|
102
|
-
schema.__required = true;
|
|
103
|
-
}
|
|
104
|
-
const validator = uiSchema["x-validator"];
|
|
105
|
-
if (import_lodash.default.isPlainObject(validator)) {
|
|
106
|
-
if (validator.minimum !== void 0) schema.minimum = validator.minimum;
|
|
107
|
-
if (validator.maximum !== void 0) schema.maximum = validator.maximum;
|
|
108
|
-
if (validator.minLength !== void 0) schema.minLength = validator.minLength;
|
|
109
|
-
if (validator.maxLength !== void 0) schema.maxLength = validator.maxLength;
|
|
110
|
-
if (validator.pattern !== void 0) schema.pattern = validator.pattern;
|
|
111
|
-
} else if (Array.isArray(validator)) {
|
|
112
|
-
for (const item of validator) {
|
|
113
|
-
if (import_lodash.default.isPlainObject(item)) {
|
|
114
|
-
Object.assign(schema, import_lodash.default.pick(item, ["minimum", "maximum", "minLength", "maxLength", "pattern"]));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
} else if (typeof validator === "string") {
|
|
118
|
-
if (validator === "integer") schema.type = "integer";
|
|
119
|
-
if (validator === "email") schema.format = "email";
|
|
120
|
-
if (validator === "url") schema.format = "uri";
|
|
121
|
-
if (validator === "uid") schema.pattern = "^[A-Za-z0-9_-]+$";
|
|
122
|
-
}
|
|
123
|
-
if (uiSchema.properties && import_lodash.default.isPlainObject(uiSchema.properties)) {
|
|
124
|
-
schema.type = schema.type || "object";
|
|
125
|
-
schema.properties = {};
|
|
126
|
-
const required = [];
|
|
127
|
-
for (const [propName, propValue] of Object.entries(uiSchema.properties)) {
|
|
128
|
-
const childSchema = inferSchemaFromUiSchemaValue(propName, propValue, `${path}.${propName}`, hints);
|
|
129
|
-
if (childSchema.__required) {
|
|
130
|
-
required.push(propName);
|
|
131
|
-
delete childSchema.__required;
|
|
132
|
-
}
|
|
133
|
-
schema.properties[propName] = childSchema;
|
|
134
|
-
}
|
|
135
|
-
if (required.length) {
|
|
136
|
-
schema.required = required;
|
|
137
|
-
}
|
|
138
|
-
schema.additionalProperties = false;
|
|
139
|
-
}
|
|
140
|
-
if (uiSchema.items) {
|
|
141
|
-
schema.type = schema.type || "array";
|
|
142
|
-
if (import_lodash.default.isPlainObject(uiSchema.items)) {
|
|
143
|
-
schema.items = inferSchemaFromUiSchemaValue(`${name}.items`, uiSchema.items, `${path}.items`, hints);
|
|
144
|
-
} else if (Array.isArray(uiSchema.items)) {
|
|
145
|
-
schema.items = uiSchema.items.map(
|
|
146
|
-
(item, index) => inferSchemaFromUiSchemaValue(`${name}.items[${index}]`, item, `${path}.items[${index}]`, hints)
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
if (!schema.type) {
|
|
151
|
-
schema.type = "object";
|
|
152
|
-
schema.additionalProperties = true;
|
|
153
|
-
}
|
|
154
|
-
return schema;
|
|
155
|
-
}
|
|
156
|
-
__name(inferSchemaFromUiSchemaValue, "inferSchemaFromUiSchemaValue");
|
|
157
|
-
function inferParamsSchemaFromUiSchema(name, uiSchema, path) {
|
|
158
|
-
const hints = [];
|
|
159
|
-
if (!uiSchema) {
|
|
160
|
-
return { schema: void 0, hints, coverage: "unresolved" };
|
|
161
|
-
}
|
|
162
|
-
if (typeof uiSchema === "function") {
|
|
163
|
-
hints.push(
|
|
164
|
-
(0, import_utils.createFlowHint)(
|
|
165
|
-
{
|
|
166
|
-
kind: "dynamic-ui-schema",
|
|
167
|
-
path,
|
|
168
|
-
message: `${name} uses function-based uiSchema and requires manual schema patch.`
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
unresolvedReason: "function-ui-schema",
|
|
172
|
-
recommendedFallback: { type: "object", additionalProperties: true }
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
);
|
|
176
|
-
return {
|
|
177
|
-
schema: { type: "object", additionalProperties: true },
|
|
178
|
-
hints,
|
|
179
|
-
coverage: "unresolved"
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
const properties = {};
|
|
183
|
-
const required = [];
|
|
184
|
-
for (const [key, value] of Object.entries(uiSchema)) {
|
|
185
|
-
const childSchema = inferSchemaFromUiSchemaValue(key, value, `${path}.${key}`, hints);
|
|
186
|
-
if (childSchema.__required) {
|
|
187
|
-
required.push(key);
|
|
188
|
-
delete childSchema.__required;
|
|
189
|
-
}
|
|
190
|
-
properties[key] = childSchema;
|
|
191
|
-
}
|
|
192
|
-
return {
|
|
193
|
-
schema: {
|
|
194
|
-
type: "object",
|
|
195
|
-
properties,
|
|
196
|
-
...required.length ? { required } : {},
|
|
197
|
-
additionalProperties: false
|
|
198
|
-
},
|
|
199
|
-
hints,
|
|
200
|
-
coverage: hints.length ? "mixed" : "auto"
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
__name(inferParamsSchemaFromUiSchema, "inferParamsSchemaFromUiSchema");
|
|
204
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
205
|
-
0 && (module.exports = {
|
|
206
|
-
inferParamsSchemaFromUiSchema
|
|
207
|
-
});
|