@uigraph/sdk 1.1.34

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.
Files changed (48) hide show
  1. package/README.md +7 -0
  2. package/dist/__animated-nodes.CUxruu-b.cjs +1 -0
  3. package/dist/__animated-nodes.C_COfaOh.mjs +94 -0
  4. package/dist/__animated-nodes.CrIWsAOl.cjs +99 -0
  5. package/dist/__animated-nodes.DI0XYTuw.mjs +2 -0
  6. package/dist/__aws-icons.BEeU8uCn.cjs +1 -0
  7. package/dist/__aws-icons.Vs3L4Tqu.cjs +5920 -0
  8. package/dist/__aws-icons.agWBtDk7.mjs +2 -0
  9. package/dist/__aws-icons.d3E71nM8.mjs +5915 -0
  10. package/dist/__azure-icons.BpVFW8Gy.cjs +5552 -0
  11. package/dist/__azure-icons.CHjqkspj.mjs +5547 -0
  12. package/dist/__azure-icons.DJJasII-.cjs +1 -0
  13. package/dist/__azure-icons.DgR1F6C6.mjs +2 -0
  14. package/dist/__component-type.69UkUMKl.cjs +54 -0
  15. package/dist/__component-type.CO8FgnQE.d.mts +24 -0
  16. package/dist/__component-type.CYmD-KIu.mjs +23 -0
  17. package/dist/__component-type.tW2Xh7Xk.d.cts +24 -0
  18. package/dist/__headless.AhKww75N.cjs +110 -0
  19. package/dist/__headless.B7jwmaZK.d.cts +127 -0
  20. package/dist/__headless.CP3up7Jj.mjs +104 -0
  21. package/dist/__headless.DiJZCsKx.d.mts +127 -0
  22. package/dist/__index.BC7AYPW7.d.cts +116 -0
  23. package/dist/__index.Banqjcwy.d.mts +116 -0
  24. package/dist/animated-nodes.cjs +3 -0
  25. package/dist/animated-nodes.d.cts +16 -0
  26. package/dist/animated-nodes.d.mts +16 -0
  27. package/dist/animated-nodes.mjs +3 -0
  28. package/dist/aws-icons.cjs +3 -0
  29. package/dist/aws-icons.d.cts +11 -0
  30. package/dist/aws-icons.d.mts +11 -0
  31. package/dist/aws-icons.mjs +3 -0
  32. package/dist/azure-icons.cjs +3 -0
  33. package/dist/azure-icons.d.cts +11 -0
  34. package/dist/azure-icons.d.mts +11 -0
  35. package/dist/azure-icons.mjs +3 -0
  36. package/dist/browser.cjs +81 -0
  37. package/dist/browser.d.cts +10 -0
  38. package/dist/browser.d.mts +10 -0
  39. package/dist/browser.mjs +79 -0
  40. package/dist/headless.cjs +3 -0
  41. package/dist/headless.d.cts +3 -0
  42. package/dist/headless.d.mts +3 -0
  43. package/dist/headless.mjs +3 -0
  44. package/dist/index.cjs +4629 -0
  45. package/dist/index.d.cts +767 -0
  46. package/dist/index.d.mts +767 -0
  47. package/dist/index.mjs +4589 -0
  48. package/package.json +109 -0
@@ -0,0 +1,116 @@
1
+ import { t as ComponentInputType } from "./__component-type.tW2Xh7Xk.cjs";
2
+ import { Edge, Node } from "@xyflow/react";
3
+
4
+ //#region src/types/component.d.ts
5
+ type ServerComponentField = {
6
+ componentFieldId?: string | null;
7
+ isReadonly?: boolean | null;
8
+ label?: string | null;
9
+ options?: (string | null)[] | null;
10
+ order?: number | null;
11
+ required?: boolean | null;
12
+ type?: string | null;
13
+ data?: any | null;
14
+ };
15
+ type ServerComponentFieldInput = {
16
+ componentFieldId: string;
17
+ type: string;
18
+ label: string;
19
+ order: number;
20
+ required: boolean;
21
+ isReadonly?: boolean | null;
22
+ options?: (string | null)[] | null;
23
+ data?: any | null;
24
+ };
25
+ //#endregion
26
+ //#region src/types/mermaid.d.ts
27
+ interface MermaidNode {
28
+ id: string;
29
+ label: string;
30
+ shape: string;
31
+ subgraph?: string;
32
+ parentSubgraph?: string;
33
+ }
34
+ interface MermaidEdge {
35
+ source: string;
36
+ target: string;
37
+ label?: string;
38
+ type: string;
39
+ isSourceSubgraph?: boolean;
40
+ isTargetSubgraph?: boolean;
41
+ }
42
+ interface SubgraphInfo {
43
+ id: string;
44
+ title: string;
45
+ nodes: string[];
46
+ parentId?: string;
47
+ childrenIds: string[];
48
+ direction?: string;
49
+ }
50
+ interface SubgraphLayout {
51
+ id: string;
52
+ title: string;
53
+ nodes: Map<string, {
54
+ x: number;
55
+ y: number;
56
+ width: number;
57
+ height: number;
58
+ }>;
59
+ width: number;
60
+ height: number;
61
+ position?: {
62
+ x: number;
63
+ y: number;
64
+ };
65
+ parentId?: string;
66
+ }
67
+ interface SequenceParticipant {
68
+ id: string;
69
+ name: string;
70
+ alias?: string;
71
+ index: number;
72
+ }
73
+ interface SequenceMessage {
74
+ from: string;
75
+ to: string;
76
+ label: string;
77
+ lineStyle: 'solid' | 'dashed';
78
+ arrowType: 'filled' | 'open' | 'none';
79
+ rowIndex: number;
80
+ }
81
+ interface SequenceDiagramData {
82
+ participants: SequenceParticipant[];
83
+ messages: SequenceMessage[];
84
+ }
85
+ //#endregion
86
+ //#region src/types/rf.d.ts
87
+ type CustomData = {
88
+ source?: 'mermaid';
89
+ componentId?: string;
90
+ src?: string;
91
+ iconSrc?: string;
92
+ childNodes?: string[];
93
+ componentFields?: RFComponentField[];
94
+ shape?: string;
95
+ serviceTable?: {
96
+ serviceId: string;
97
+ serviceDbId: string;
98
+ tableName: string;
99
+ };
100
+ title?: string;
101
+ columns?: string[];
102
+ rows?: string[][];
103
+ strokeAnimation?: 'dash';
104
+ };
105
+ interface ReactFlowData {
106
+ nodes: Node<CustomData>[];
107
+ edges: Edge<CustomData>[];
108
+ }
109
+ interface RFComponentField {
110
+ componentFieldId: string;
111
+ type: ComponentInputType;
112
+ label: string;
113
+ data: unknown;
114
+ }
115
+ //#endregion
116
+ export { MermaidNode as a, SequenceParticipant as c, ServerComponentField as d, ServerComponentFieldInput as f, MermaidEdge as i, SubgraphInfo as l, RFComponentField as n, SequenceDiagramData as o, ReactFlowData as r, SequenceMessage as s, CustomData as t, SubgraphLayout as u };
@@ -0,0 +1,116 @@
1
+ import { t as ComponentInputType } from "./__component-type.CO8FgnQE.mjs";
2
+ import { Edge, Node } from "@xyflow/react";
3
+
4
+ //#region src/types/component.d.ts
5
+ type ServerComponentField = {
6
+ componentFieldId?: string | null;
7
+ isReadonly?: boolean | null;
8
+ label?: string | null;
9
+ options?: (string | null)[] | null;
10
+ order?: number | null;
11
+ required?: boolean | null;
12
+ type?: string | null;
13
+ data?: any | null;
14
+ };
15
+ type ServerComponentFieldInput = {
16
+ componentFieldId: string;
17
+ type: string;
18
+ label: string;
19
+ order: number;
20
+ required: boolean;
21
+ isReadonly?: boolean | null;
22
+ options?: (string | null)[] | null;
23
+ data?: any | null;
24
+ };
25
+ //#endregion
26
+ //#region src/types/mermaid.d.ts
27
+ interface MermaidNode {
28
+ id: string;
29
+ label: string;
30
+ shape: string;
31
+ subgraph?: string;
32
+ parentSubgraph?: string;
33
+ }
34
+ interface MermaidEdge {
35
+ source: string;
36
+ target: string;
37
+ label?: string;
38
+ type: string;
39
+ isSourceSubgraph?: boolean;
40
+ isTargetSubgraph?: boolean;
41
+ }
42
+ interface SubgraphInfo {
43
+ id: string;
44
+ title: string;
45
+ nodes: string[];
46
+ parentId?: string;
47
+ childrenIds: string[];
48
+ direction?: string;
49
+ }
50
+ interface SubgraphLayout {
51
+ id: string;
52
+ title: string;
53
+ nodes: Map<string, {
54
+ x: number;
55
+ y: number;
56
+ width: number;
57
+ height: number;
58
+ }>;
59
+ width: number;
60
+ height: number;
61
+ position?: {
62
+ x: number;
63
+ y: number;
64
+ };
65
+ parentId?: string;
66
+ }
67
+ interface SequenceParticipant {
68
+ id: string;
69
+ name: string;
70
+ alias?: string;
71
+ index: number;
72
+ }
73
+ interface SequenceMessage {
74
+ from: string;
75
+ to: string;
76
+ label: string;
77
+ lineStyle: 'solid' | 'dashed';
78
+ arrowType: 'filled' | 'open' | 'none';
79
+ rowIndex: number;
80
+ }
81
+ interface SequenceDiagramData {
82
+ participants: SequenceParticipant[];
83
+ messages: SequenceMessage[];
84
+ }
85
+ //#endregion
86
+ //#region src/types/rf.d.ts
87
+ type CustomData = {
88
+ source?: 'mermaid';
89
+ componentId?: string;
90
+ src?: string;
91
+ iconSrc?: string;
92
+ childNodes?: string[];
93
+ componentFields?: RFComponentField[];
94
+ shape?: string;
95
+ serviceTable?: {
96
+ serviceId: string;
97
+ serviceDbId: string;
98
+ tableName: string;
99
+ };
100
+ title?: string;
101
+ columns?: string[];
102
+ rows?: string[][];
103
+ strokeAnimation?: 'dash';
104
+ };
105
+ interface ReactFlowData {
106
+ nodes: Node<CustomData>[];
107
+ edges: Edge<CustomData>[];
108
+ }
109
+ interface RFComponentField {
110
+ componentFieldId: string;
111
+ type: ComponentInputType;
112
+ label: string;
113
+ data: unknown;
114
+ }
115
+ //#endregion
116
+ export { MermaidNode as a, SequenceParticipant as c, ServerComponentField as d, ServerComponentFieldInput as f, MermaidEdge as i, SubgraphInfo as l, RFComponentField as n, SequenceDiagramData as o, ReactFlowData as r, SequenceMessage as s, CustomData as t, SubgraphLayout as u };
@@ -0,0 +1,3 @@
1
+ const require_animated_nodes = require("./__animated-nodes.CrIWsAOl.cjs");
2
+ const animatedNodes = [...require_animated_nodes.animated_nodes_default];
3
+ exports.animatedNodes = animatedNodes;
@@ -0,0 +1,16 @@
1
+ //#region src/icons/animated-nodes.d.ts
2
+ declare const animatedNodes: ({
3
+ category: string;
4
+ subcategory: null;
5
+ name: string;
6
+ fileName: string;
7
+ relativePath: string;
8
+ } | {
9
+ category: string;
10
+ subcategory: string;
11
+ name: string;
12
+ fileName: string;
13
+ relativePath: string;
14
+ })[];
15
+ //#endregion
16
+ export { animatedNodes };
@@ -0,0 +1,16 @@
1
+ //#region src/icons/animated-nodes.d.ts
2
+ declare const animatedNodes: ({
3
+ category: string;
4
+ subcategory: null;
5
+ name: string;
6
+ fileName: string;
7
+ relativePath: string;
8
+ } | {
9
+ category: string;
10
+ subcategory: string;
11
+ name: string;
12
+ fileName: string;
13
+ relativePath: string;
14
+ })[];
15
+ //#endregion
16
+ export { animatedNodes };
@@ -0,0 +1,3 @@
1
+ import { t as animated_nodes_default } from "./__animated-nodes.C_COfaOh.mjs";
2
+ const animatedNodes = [...animated_nodes_default];
3
+ export { animatedNodes };
@@ -0,0 +1,3 @@
1
+ const require_aws_icons = require("./__aws-icons.Vs3L4Tqu.cjs");
2
+ const awsIcons = [...require_aws_icons.aws_icons_default];
3
+ exports.awsIcons = awsIcons;
@@ -0,0 +1,11 @@
1
+ //#region src/icons/aws-icons.d.ts
2
+ declare const awsIcons: {
3
+ cloud: string;
4
+ category: string;
5
+ subcategory: null;
6
+ name: string;
7
+ fileName: string;
8
+ relativePath: string;
9
+ }[];
10
+ //#endregion
11
+ export { awsIcons };
@@ -0,0 +1,11 @@
1
+ //#region src/icons/aws-icons.d.ts
2
+ declare const awsIcons: {
3
+ cloud: string;
4
+ category: string;
5
+ subcategory: null;
6
+ name: string;
7
+ fileName: string;
8
+ relativePath: string;
9
+ }[];
10
+ //#endregion
11
+ export { awsIcons };
@@ -0,0 +1,3 @@
1
+ import { t as aws_icons_default } from "./__aws-icons.d3E71nM8.mjs";
2
+ const awsIcons = [...aws_icons_default];
3
+ export { awsIcons };
@@ -0,0 +1,3 @@
1
+ const require_azure_icons = require("./__azure-icons.BpVFW8Gy.cjs");
2
+ const azureIcons = [...require_azure_icons.azure_icons_default];
3
+ exports.azureIcons = azureIcons;
@@ -0,0 +1,11 @@
1
+ //#region src/icons/azure-icons.d.ts
2
+ declare const azureIcons: {
3
+ cloud: string;
4
+ category: string;
5
+ subcategory: null;
6
+ name: string;
7
+ fileName: string;
8
+ relativePath: string;
9
+ }[];
10
+ //#endregion
11
+ export { azureIcons };
@@ -0,0 +1,11 @@
1
+ //#region src/icons/azure-icons.d.ts
2
+ declare const azureIcons: {
3
+ cloud: string;
4
+ category: string;
5
+ subcategory: null;
6
+ name: string;
7
+ fileName: string;
8
+ relativePath: string;
9
+ }[];
10
+ //#endregion
11
+ export { azureIcons };
@@ -0,0 +1,3 @@
1
+ import { t as azure_icons_default } from "./__azure-icons.CHjqkspj.mjs";
2
+ const azureIcons = [...azure_icons_default];
3
+ export { azureIcons };
@@ -0,0 +1,81 @@
1
+ const require_component_type = require("./__component-type.69UkUMKl.cjs");
2
+ let zod = require("zod");
3
+ zod = require_component_type.__toESM(zod);
4
+ let quill = require("quill");
5
+ quill = require_component_type.__toESM(quill);
6
+ function buildDynamicZodSchema(fields) {
7
+ const shape = {};
8
+ fields.forEach((field) => {
9
+ let zodType;
10
+ const id = field.componentFieldId;
11
+ if (!id) return;
12
+ switch (field.type) {
13
+ case require_component_type.ComponentInputType.TextInput:
14
+ case require_component_type.ComponentInputType.TextBox:
15
+ case require_component_type.ComponentInputType.DropdownSelect:
16
+ case require_component_type.ComponentInputType.DatePicker: {
17
+ var _field$label;
18
+ const stringSchema$1 = zod.z.string();
19
+ zodType = field.required ? stringSchema$1.min(1, { message: `${(_field$label = field.label) !== null && _field$label !== void 0 ? _field$label : "Field"} is required` }) : stringSchema$1.optional();
20
+ break;
21
+ }
22
+ case require_component_type.ComponentInputType.FileUpload:
23
+ case require_component_type.ComponentInputType.LinkOrFileUpload:
24
+ var _field$label2;
25
+ const stringSchema = zod.z.string();
26
+ const fileSchema = zod.z.instanceof(File);
27
+ const unionSchema = zod.z.union([field.required ? fileSchema : fileSchema.optional(), field.required ? stringSchema.min(1, { message: `${(_field$label2 = field.label) !== null && _field$label2 !== void 0 ? _field$label2 : "Field"} is required` }) : stringSchema.optional()]);
28
+ zodType = field.required ? unionSchema : unionSchema.optional();
29
+ break;
30
+ case require_component_type.ComponentInputType.URLInput: {
31
+ var _field$label3;
32
+ const urlSchema = zod.z.string({ message: "Invalid URL" });
33
+ zodType = field.required ? urlSchema.min(1, { message: `${(_field$label3 = field.label) !== null && _field$label3 !== void 0 ? _field$label3 : "Field"} is required` }) : urlSchema.optional().or(zod.z.literal(""));
34
+ break;
35
+ }
36
+ case require_component_type.ComponentInputType.NumberInput: {
37
+ var _field$label4;
38
+ let numberSchema = zod.z.number();
39
+ const min = field.min;
40
+ const max = field.max;
41
+ if (typeof min === "number") numberSchema = numberSchema.min(min, { message: `Must be ≥ ${min}` });
42
+ if (typeof max === "number") numberSchema = numberSchema.max(max, { message: `Must be ≤ ${max}` });
43
+ zodType = field.required ? numberSchema.nullable().refine((value) => value !== null, { message: `${(_field$label4 = field.label) !== null && _field$label4 !== void 0 ? _field$label4 : "Field"} is required` }) : numberSchema.nullable().optional();
44
+ break;
45
+ }
46
+ case require_component_type.ComponentInputType.CheckboxGroup:
47
+ case require_component_type.ComponentInputType.MultiSelect:
48
+ case require_component_type.ComponentInputType.TagInput: {
49
+ var _field$label5;
50
+ const arraySchema = zod.z.array(zod.z.string());
51
+ zodType = field.required ? arraySchema.min(1, { message: `${(_field$label5 = field.label) !== null && _field$label5 !== void 0 ? _field$label5 : "Field"} is required` }) : arraySchema.optional();
52
+ break;
53
+ }
54
+ case require_component_type.ComponentInputType.BooleanToggle: {
55
+ const boolSchema = zod.z.boolean();
56
+ zodType = field.required ? boolSchema : boolSchema.optional();
57
+ break;
58
+ }
59
+ default:
60
+ if (field.required) {
61
+ var _field$label6;
62
+ zodType = zod.z.any().refine((value) => {
63
+ if (field.type === require_component_type.ComponentInputType.RichTextEditor && value instanceof quill.Delta) {
64
+ var _quill$setContents, _quill$getText, _text$length;
65
+ if (!value.ops.length) return false;
66
+ const quill$1 = new quill.default(document.createElement("div"));
67
+ quill$1 === null || quill$1 === void 0 || (_quill$setContents = quill$1.setContents) === null || _quill$setContents === void 0 || _quill$setContents.call(quill$1, value);
68
+ const text = quill$1 === null || quill$1 === void 0 || (_quill$getText = quill$1.getText) === null || _quill$getText === void 0 ? void 0 : _quill$getText.call(quill$1).trim();
69
+ return ((_text$length = text === null || text === void 0 ? void 0 : text.length) !== null && _text$length !== void 0 ? _text$length : 0) > 0;
70
+ }
71
+ if (Array.isArray(value)) return value.length > 0;
72
+ return value !== null && value !== void 0 && value !== "";
73
+ }, { message: `${(_field$label6 = field.label) !== null && _field$label6 !== void 0 ? _field$label6 : "Field"} is required` });
74
+ } else zodType = zod.z.any().optional();
75
+ break;
76
+ }
77
+ shape[id] = zodType;
78
+ });
79
+ return zod.z.object(shape);
80
+ }
81
+ exports.buildDynamicZodSchema = buildDynamicZodSchema;
@@ -0,0 +1,10 @@
1
+ import { d as ServerComponentField } from "./__index.BC7AYPW7.cjs";
2
+ import "./__component-type.tW2Xh7Xk.cjs";
3
+ import { z } from "zod";
4
+
5
+ //#region src/components/dynamic-schema.d.ts
6
+ declare function buildDynamicZodSchema(fields: ServerComponentField[]): z.ZodObject<{
7
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
8
+ }, z.core.$strip>;
9
+ //#endregion
10
+ export { buildDynamicZodSchema };
@@ -0,0 +1,10 @@
1
+ import { d as ServerComponentField } from "./__index.Banqjcwy.mjs";
2
+ import "./__component-type.CO8FgnQE.mjs";
3
+ import { z } from "zod";
4
+
5
+ //#region src/components/dynamic-schema.d.ts
6
+ declare function buildDynamicZodSchema(fields: ServerComponentField[]): z.ZodObject<{
7
+ [x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
8
+ }, z.core.$strip>;
9
+ //#endregion
10
+ export { buildDynamicZodSchema };
@@ -0,0 +1,79 @@
1
+ import { t as ComponentInputType } from "./__component-type.CYmD-KIu.mjs";
2
+ import { z } from "zod";
3
+ import Quill, { Delta } from "quill";
4
+ function buildDynamicZodSchema(fields) {
5
+ const shape = {};
6
+ fields.forEach((field) => {
7
+ let zodType;
8
+ const id = field.componentFieldId;
9
+ if (!id) return;
10
+ switch (field.type) {
11
+ case ComponentInputType.TextInput:
12
+ case ComponentInputType.TextBox:
13
+ case ComponentInputType.DropdownSelect:
14
+ case ComponentInputType.DatePicker: {
15
+ var _field$label;
16
+ const stringSchema$1 = z.string();
17
+ zodType = field.required ? stringSchema$1.min(1, { message: `${(_field$label = field.label) !== null && _field$label !== void 0 ? _field$label : "Field"} is required` }) : stringSchema$1.optional();
18
+ break;
19
+ }
20
+ case ComponentInputType.FileUpload:
21
+ case ComponentInputType.LinkOrFileUpload:
22
+ var _field$label2;
23
+ const stringSchema = z.string();
24
+ const fileSchema = z.instanceof(File);
25
+ const unionSchema = z.union([field.required ? fileSchema : fileSchema.optional(), field.required ? stringSchema.min(1, { message: `${(_field$label2 = field.label) !== null && _field$label2 !== void 0 ? _field$label2 : "Field"} is required` }) : stringSchema.optional()]);
26
+ zodType = field.required ? unionSchema : unionSchema.optional();
27
+ break;
28
+ case ComponentInputType.URLInput: {
29
+ var _field$label3;
30
+ const urlSchema = z.string({ message: "Invalid URL" });
31
+ zodType = field.required ? urlSchema.min(1, { message: `${(_field$label3 = field.label) !== null && _field$label3 !== void 0 ? _field$label3 : "Field"} is required` }) : urlSchema.optional().or(z.literal(""));
32
+ break;
33
+ }
34
+ case ComponentInputType.NumberInput: {
35
+ var _field$label4;
36
+ let numberSchema = z.number();
37
+ const min = field.min;
38
+ const max = field.max;
39
+ if (typeof min === "number") numberSchema = numberSchema.min(min, { message: `Must be ≥ ${min}` });
40
+ if (typeof max === "number") numberSchema = numberSchema.max(max, { message: `Must be ≤ ${max}` });
41
+ zodType = field.required ? numberSchema.nullable().refine((value) => value !== null, { message: `${(_field$label4 = field.label) !== null && _field$label4 !== void 0 ? _field$label4 : "Field"} is required` }) : numberSchema.nullable().optional();
42
+ break;
43
+ }
44
+ case ComponentInputType.CheckboxGroup:
45
+ case ComponentInputType.MultiSelect:
46
+ case ComponentInputType.TagInput: {
47
+ var _field$label5;
48
+ const arraySchema = z.array(z.string());
49
+ zodType = field.required ? arraySchema.min(1, { message: `${(_field$label5 = field.label) !== null && _field$label5 !== void 0 ? _field$label5 : "Field"} is required` }) : arraySchema.optional();
50
+ break;
51
+ }
52
+ case ComponentInputType.BooleanToggle: {
53
+ const boolSchema = z.boolean();
54
+ zodType = field.required ? boolSchema : boolSchema.optional();
55
+ break;
56
+ }
57
+ default:
58
+ if (field.required) {
59
+ var _field$label6;
60
+ zodType = z.any().refine((value) => {
61
+ if (field.type === ComponentInputType.RichTextEditor && value instanceof Delta) {
62
+ var _quill$setContents, _quill$getText, _text$length;
63
+ if (!value.ops.length) return false;
64
+ const quill = new Quill(document.createElement("div"));
65
+ quill === null || quill === void 0 || (_quill$setContents = quill.setContents) === null || _quill$setContents === void 0 || _quill$setContents.call(quill, value);
66
+ const text = quill === null || quill === void 0 || (_quill$getText = quill.getText) === null || _quill$getText === void 0 ? void 0 : _quill$getText.call(quill).trim();
67
+ return ((_text$length = text === null || text === void 0 ? void 0 : text.length) !== null && _text$length !== void 0 ? _text$length : 0) > 0;
68
+ }
69
+ if (Array.isArray(value)) return value.length > 0;
70
+ return value !== null && value !== void 0 && value !== "";
71
+ }, { message: `${(_field$label6 = field.label) !== null && _field$label6 !== void 0 ? _field$label6 : "Field"} is required` });
72
+ } else zodType = z.any().optional();
73
+ break;
74
+ }
75
+ shape[id] = zodType;
76
+ });
77
+ return z.object(shape);
78
+ }
79
+ export { buildDynamicZodSchema };
@@ -0,0 +1,3 @@
1
+ require("./__component-type.69UkUMKl.cjs");
2
+ const require_headless = require("./__headless.AhKww75N.cjs");
3
+ exports.contextSchema = require_headless.contextSchema;
@@ -0,0 +1,3 @@
1
+ import "./__component-type.tW2Xh7Xk.cjs";
2
+ import { t as contextSchema } from "./__headless.B7jwmaZK.cjs";
3
+ export { contextSchema };
@@ -0,0 +1,3 @@
1
+ import "./__component-type.CO8FgnQE.mjs";
2
+ import { t as contextSchema } from "./__headless.DiJZCsKx.mjs";
3
+ export { contextSchema };
@@ -0,0 +1,3 @@
1
+ import "./__component-type.CYmD-KIu.mjs";
2
+ import { t as contextSchema } from "./__headless.CP3up7Jj.mjs";
3
+ export { contextSchema };