@cmssy/types 0.16.0 → 0.18.0
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/block-fields.d.ts +108 -124
- package/dist/block-fields.d.ts.map +1 -1
- package/dist/block-fields.js +66 -37
- package/dist/block-fields.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/block-fields.d.ts
CHANGED
|
@@ -1,224 +1,208 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Block field type definitions.
|
|
3
|
-
* Single source of truth for all field types available in the block schema system.
|
|
4
|
-
*/
|
|
5
1
|
import type { MediaType } from "./shared-constants.js";
|
|
6
|
-
/**
|
|
7
|
-
* All available field types for block schemas.
|
|
8
|
-
*/
|
|
9
2
|
export declare const FieldType: {
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
3
|
+
readonly TEXT: "text";
|
|
4
|
+
readonly TEXTAREA: "textarea";
|
|
12
5
|
readonly RICH_TEXT: "richText";
|
|
13
|
-
readonly
|
|
6
|
+
readonly NUMBER: "number";
|
|
14
7
|
readonly DATE: "date";
|
|
8
|
+
readonly DATETIME: "datetime";
|
|
15
9
|
readonly BOOLEAN: "boolean";
|
|
16
10
|
readonly COLOR: "color";
|
|
17
11
|
readonly MEDIA: "media";
|
|
18
12
|
readonly LINK: "link";
|
|
13
|
+
readonly URL: "url";
|
|
14
|
+
readonly EMAIL: "email";
|
|
19
15
|
readonly SELECT: "select";
|
|
20
16
|
readonly MULTISELECT: "multiselect";
|
|
17
|
+
readonly RADIO: "radio";
|
|
18
|
+
readonly RELATION: "relation";
|
|
21
19
|
readonly REPEATER: "repeater";
|
|
20
|
+
readonly OBJECT: "object";
|
|
21
|
+
readonly LIST: "list";
|
|
22
22
|
readonly FORM: "form";
|
|
23
23
|
readonly PAGE_SELECTOR: "pageSelector";
|
|
24
|
+
readonly PASSWORD: "password";
|
|
25
|
+
readonly PHONE: "phone";
|
|
26
|
+
readonly FILE: "file";
|
|
27
|
+
readonly HIDDEN: "hidden";
|
|
24
28
|
};
|
|
25
29
|
export type FieldType = (typeof FieldType)[keyof typeof FieldType];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export declare const fieldTypeValues: readonly ["singleLine", "multiLine", "richText", "numeric", "date", "boolean", "color", "media", "link", "select", "multiselect", "repeater", "form", "pageSelector"];
|
|
30
|
-
/**
|
|
31
|
-
* Built-in validation patterns for common use cases.
|
|
32
|
-
*/
|
|
30
|
+
export declare const fieldTypeValues: readonly ["text", "textarea", "richText", "number", "date", "datetime", "boolean", "color", "media", "link", "url", "email", "select", "multiselect", "radio", "relation", "repeater", "object", "list", "form", "pageSelector", "password", "phone", "file", "hidden"];
|
|
31
|
+
export declare const formFieldTypeValues: readonly ["text", "email", "password", "textarea", "number", "phone", "url", "date", "datetime", "select", "multiselect", "boolean", "radio", "file", "hidden"];
|
|
32
|
+
export type FormFieldType = (typeof formFieldTypeValues)[number];
|
|
33
33
|
export type ValidationPattern = "email" | "url" | "phone" | "slug";
|
|
34
|
-
/**
|
|
35
|
-
* Extended validation configuration for fields.
|
|
36
|
-
*/
|
|
37
34
|
export interface FieldValidation {
|
|
38
|
-
/** Minimum length for string fields */
|
|
39
35
|
minLength?: number;
|
|
40
|
-
/** Maximum length for string fields */
|
|
41
36
|
maxLength?: number;
|
|
42
|
-
/** Minimum value for numeric fields */
|
|
43
37
|
min?: number;
|
|
44
|
-
/** Maximum value for numeric fields */
|
|
45
38
|
max?: number;
|
|
46
|
-
/** Validation pattern - built-in name or custom regex string */
|
|
47
39
|
pattern?: ValidationPattern | string;
|
|
48
|
-
/** Custom error message shown when validation fails */
|
|
49
40
|
message?: string;
|
|
50
41
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Condition for showing/hiding a field based on another field's value.
|
|
53
|
-
*/
|
|
54
42
|
export interface ShowWhenCondition {
|
|
55
|
-
/** Field key to check */
|
|
56
43
|
field: string;
|
|
57
|
-
/** Show when field equals this value */
|
|
58
44
|
equals?: unknown;
|
|
59
|
-
/** Show when field does not equal this value */
|
|
60
45
|
notEquals?: unknown;
|
|
61
|
-
/** Show when field value is not empty */
|
|
62
46
|
notEmpty?: boolean;
|
|
63
|
-
/** Show when field value is empty */
|
|
64
47
|
isEmpty?: boolean;
|
|
65
48
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
49
|
+
export type LocalizedText = string | Record<string, string>;
|
|
50
|
+
export type RelationCardinality = "hasOne" | "hasMany" | "manyToMany";
|
|
51
|
+
export type FieldOption = {
|
|
52
|
+
label: LocalizedText;
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
69
55
|
export interface BaseFieldConfig {
|
|
70
56
|
type: FieldType;
|
|
71
|
-
label:
|
|
57
|
+
label: LocalizedText;
|
|
72
58
|
required?: boolean;
|
|
73
|
-
placeholder?:
|
|
59
|
+
placeholder?: LocalizedText;
|
|
74
60
|
defaultValue?: unknown;
|
|
75
|
-
|
|
76
|
-
helperText?: string;
|
|
77
|
-
/** @deprecated Use `helperText` instead */
|
|
78
|
-
helpText?: string;
|
|
61
|
+
helperText?: LocalizedText;
|
|
79
62
|
group?: string;
|
|
63
|
+
tab?: string;
|
|
80
64
|
showWhen?: ShowWhenCondition;
|
|
81
65
|
validation?: FieldValidation;
|
|
82
66
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Select field with predefined options.
|
|
85
|
-
*/
|
|
86
67
|
export interface SelectFieldConfig extends BaseFieldConfig {
|
|
87
68
|
type: "select";
|
|
88
|
-
options:
|
|
89
|
-
|
|
90
|
-
value: string;
|
|
91
|
-
}>;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Multi-select field with predefined options.
|
|
95
|
-
*/
|
|
69
|
+
options: FieldOption[];
|
|
70
|
+
}
|
|
96
71
|
export interface MultiselectFieldConfig extends BaseFieldConfig {
|
|
97
72
|
type: "multiselect";
|
|
98
|
-
options:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
* Repeater field for arrays of items.
|
|
105
|
-
*/
|
|
73
|
+
options: FieldOption[];
|
|
74
|
+
}
|
|
75
|
+
export interface RadioFieldConfig extends BaseFieldConfig {
|
|
76
|
+
type: "radio";
|
|
77
|
+
options: FieldOption[];
|
|
78
|
+
}
|
|
106
79
|
export interface RepeaterFieldConfig extends BaseFieldConfig {
|
|
107
80
|
type: "repeater";
|
|
108
81
|
minItems?: number;
|
|
109
82
|
maxItems?: number;
|
|
110
83
|
schema: Record<string, FieldConfig>;
|
|
111
84
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
85
|
+
export interface ObjectFieldConfig extends BaseFieldConfig {
|
|
86
|
+
type: "object";
|
|
87
|
+
schema: Record<string, FieldConfig>;
|
|
88
|
+
}
|
|
89
|
+
export interface ListFieldConfig extends BaseFieldConfig {
|
|
90
|
+
type: "list";
|
|
91
|
+
itemType: FieldType;
|
|
92
|
+
itemSchema?: Record<string, FieldConfig>;
|
|
93
|
+
}
|
|
115
94
|
export interface MediaFieldConfig extends Omit<BaseFieldConfig, "defaultValue"> {
|
|
116
95
|
type: "media";
|
|
117
|
-
defaultValue?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Restrict which media categories the media picker accepts (image/video/audio/document).
|
|
120
|
-
* Empty/undefined = all allowed. Aligned with mediaTypeValues from ./shared-constants
|
|
121
|
-
* so the block media picker and asset types stay in sync.
|
|
122
|
-
*/
|
|
96
|
+
defaultValue?: string | string[];
|
|
123
97
|
acceptedTypes?: MediaType[];
|
|
124
98
|
accept?: string;
|
|
125
99
|
maxSize?: number;
|
|
100
|
+
multiple?: boolean;
|
|
101
|
+
}
|
|
102
|
+
export interface RelationFieldConfig extends BaseFieldConfig {
|
|
103
|
+
type: "relation";
|
|
104
|
+
relationTo: string;
|
|
105
|
+
relationType?: RelationCardinality;
|
|
126
106
|
}
|
|
127
|
-
/**
|
|
128
|
-
* A reference to a selected page, storing slug and localized display name.
|
|
129
|
-
*/
|
|
130
107
|
export interface PageRef {
|
|
131
108
|
slug: string;
|
|
132
109
|
displayName: Record<string, string>;
|
|
133
110
|
}
|
|
134
|
-
/**
|
|
135
|
-
* Page selector field for selecting pages.
|
|
136
|
-
*/
|
|
137
111
|
export interface PageSelectorFieldConfig extends BaseFieldConfig {
|
|
138
112
|
type: "pageSelector";
|
|
139
113
|
multiple?: boolean;
|
|
140
114
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
export type FieldValue = string | number | boolean |
|
|
150
|
-
/**
|
|
151
|
-
* Maps each field type string to its TypeScript value type.
|
|
152
|
-
* Single source of truth for field type -> value type mapping.
|
|
153
|
-
*/
|
|
115
|
+
export type SimpleFieldType = "text" | "textarea" | "richText" | "number" | "date" | "datetime" | "boolean" | "color" | "link" | "url" | "email" | "form" | "password" | "phone" | "file" | "hidden";
|
|
116
|
+
export interface SimpleFieldConfig extends BaseFieldConfig {
|
|
117
|
+
type: SimpleFieldType;
|
|
118
|
+
}
|
|
119
|
+
export type FieldConfig = SimpleFieldConfig | SelectFieldConfig | MultiselectFieldConfig | RadioFieldConfig | RepeaterFieldConfig | ObjectFieldConfig | ListFieldConfig | MediaFieldConfig | RelationFieldConfig | PageSelectorFieldConfig;
|
|
120
|
+
export interface FieldValueObject {
|
|
121
|
+
[key: string]: FieldValue;
|
|
122
|
+
}
|
|
123
|
+
export type FieldValue = string | number | boolean | PageRef[] | FieldValueObject | FieldValue[];
|
|
154
124
|
export interface FieldTypeValueMap {
|
|
155
|
-
|
|
156
|
-
|
|
125
|
+
text: string;
|
|
126
|
+
textarea: string;
|
|
157
127
|
richText: string;
|
|
158
|
-
|
|
128
|
+
number: number;
|
|
159
129
|
date: string;
|
|
160
|
-
|
|
130
|
+
datetime: string;
|
|
131
|
+
boolean: boolean;
|
|
132
|
+
color: string;
|
|
133
|
+
media: string | string[];
|
|
161
134
|
link: string;
|
|
135
|
+
url: string;
|
|
136
|
+
email: string;
|
|
162
137
|
select: string;
|
|
163
138
|
multiselect: string[];
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
repeater:
|
|
139
|
+
radio: string;
|
|
140
|
+
relation: string | string[];
|
|
141
|
+
repeater: FieldValueObject[];
|
|
142
|
+
object: FieldValueObject;
|
|
143
|
+
list: FieldValue[];
|
|
167
144
|
form: string;
|
|
168
145
|
pageSelector: PageRef[];
|
|
146
|
+
password: string;
|
|
147
|
+
phone: string;
|
|
148
|
+
file: string;
|
|
149
|
+
hidden: string;
|
|
169
150
|
}
|
|
170
|
-
/**
|
|
171
|
-
* Default values for each field type.
|
|
172
|
-
* Frozen to prevent accidental mutation of shared array instances.
|
|
173
|
-
*/
|
|
174
151
|
export declare const FIELD_TYPE_DEFAULTS: Readonly<{
|
|
175
|
-
[K in FieldType]: FieldTypeValueMap[K]
|
|
152
|
+
[K in FieldType]: Readonly<FieldTypeValueMap[K]>;
|
|
176
153
|
}>;
|
|
177
|
-
/**
|
|
178
|
-
* Base typed field config - narrows defaultValue by field type discriminant.
|
|
179
|
-
*/
|
|
180
154
|
type TypedBaseField<T extends FieldType> = {
|
|
181
155
|
type: T;
|
|
182
|
-
label:
|
|
156
|
+
label: LocalizedText;
|
|
183
157
|
required?: boolean;
|
|
184
|
-
placeholder?:
|
|
158
|
+
placeholder?: LocalizedText;
|
|
185
159
|
defaultValue?: FieldTypeValueMap[T];
|
|
186
|
-
helperText?:
|
|
187
|
-
/** @deprecated Use `helperText` instead */
|
|
188
|
-
helpText?: string;
|
|
160
|
+
helperText?: LocalizedText;
|
|
189
161
|
group?: string;
|
|
162
|
+
tab?: string;
|
|
190
163
|
showWhen?: ShowWhenCondition;
|
|
191
164
|
validation?: FieldValidation;
|
|
192
165
|
};
|
|
193
166
|
type TypedSelectField = TypedBaseField<"select"> & {
|
|
194
|
-
options:
|
|
195
|
-
label: string;
|
|
196
|
-
value: string;
|
|
197
|
-
}>;
|
|
167
|
+
options: FieldOption[];
|
|
198
168
|
};
|
|
199
169
|
type TypedMultiselectField = TypedBaseField<"multiselect"> & {
|
|
200
|
-
options:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
170
|
+
options: FieldOption[];
|
|
171
|
+
};
|
|
172
|
+
type TypedRadioField = TypedBaseField<"radio"> & {
|
|
173
|
+
options: FieldOption[];
|
|
204
174
|
};
|
|
205
175
|
type TypedRepeaterField = TypedBaseField<"repeater"> & {
|
|
206
176
|
minItems?: number;
|
|
207
177
|
maxItems?: number;
|
|
208
178
|
schema: Record<string, TypedFieldConfig>;
|
|
209
179
|
};
|
|
210
|
-
type
|
|
180
|
+
type TypedObjectField = TypedBaseField<"object"> & {
|
|
181
|
+
schema: Record<string, TypedFieldConfig>;
|
|
182
|
+
};
|
|
183
|
+
type TypedListField = TypedBaseField<"list"> & {
|
|
184
|
+
itemType: FieldType;
|
|
185
|
+
itemSchema?: Record<string, TypedFieldConfig>;
|
|
186
|
+
};
|
|
187
|
+
type TypedMediaFieldBase = TypedBaseField<"media"> & {
|
|
211
188
|
acceptedTypes?: MediaType[];
|
|
212
189
|
accept?: string;
|
|
213
190
|
maxSize?: number;
|
|
214
191
|
};
|
|
192
|
+
type TypedMediaField = (TypedMediaFieldBase & {
|
|
193
|
+
multiple?: false;
|
|
194
|
+
defaultValue?: string;
|
|
195
|
+
}) | (TypedMediaFieldBase & {
|
|
196
|
+
multiple: true;
|
|
197
|
+
defaultValue?: string[];
|
|
198
|
+
});
|
|
199
|
+
type TypedRelationField = TypedBaseField<"relation"> & {
|
|
200
|
+
relationTo: string;
|
|
201
|
+
relationType?: RelationCardinality;
|
|
202
|
+
};
|
|
215
203
|
type TypedPageSelectorField = TypedBaseField<"pageSelector"> & {
|
|
216
204
|
multiple?: boolean;
|
|
217
205
|
};
|
|
218
|
-
|
|
219
|
-
* Union of all typed field configurations.
|
|
220
|
-
* Like FieldConfig but with compile-time defaultValue type checking.
|
|
221
|
-
*/
|
|
222
|
-
export type TypedFieldConfig = TypedSelectField | TypedMultiselectField | TypedRepeaterField | TypedMediaField | TypedPageSelectorField | TypedBaseField<"singleLine"> | TypedBaseField<"multiLine"> | TypedBaseField<"richText"> | TypedBaseField<"numeric"> | TypedBaseField<"date"> | TypedBaseField<"boolean"> | TypedBaseField<"color"> | TypedBaseField<"link"> | TypedBaseField<"form">;
|
|
206
|
+
export type TypedFieldConfig = TypedSelectField | TypedMultiselectField | TypedRadioField | TypedRepeaterField | TypedObjectField | TypedListField | TypedMediaField | TypedRelationField | TypedPageSelectorField | TypedBaseField<"text"> | TypedBaseField<"textarea"> | TypedBaseField<"richText"> | TypedBaseField<"number"> | TypedBaseField<"date"> | TypedBaseField<"datetime"> | TypedBaseField<"boolean"> | TypedBaseField<"color"> | TypedBaseField<"link"> | TypedBaseField<"url"> | TypedBaseField<"email"> | TypedBaseField<"form"> | TypedBaseField<"password"> | TypedBaseField<"phone"> | TypedBaseField<"file"> | TypedBaseField<"hidden">;
|
|
223
207
|
export {};
|
|
224
208
|
//# sourceMappingURL=block-fields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-fields.d.ts","sourceRoot":"","sources":["../src/block-fields.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"block-fields.d.ts","sourceRoot":"","sources":["../src/block-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE,eAAO,MAAM,eAAe,yQA0BlB,CAAC;AAIX,eAAO,MAAM,mBAAmB,iKAgBS,CA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,cAAc,CAAC,UAAU,CAAC,GAAG;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC,CAAC;AACF,KAAK,sBAAsB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,kBAAkB,GAClB,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,kBAAkB,GAClB,sBAAsB,GACtB,cAAc,CAAC,MAAM,CAAC,GACtB,cAAc,CAAC,UAAU,CAAC,GAC1B,cAAc,CAAC,UAAU,CAAC,GAC1B,cAAc,CAAC,QAAQ,CAAC,GACxB,cAAc,CAAC,MAAM,CAAC,GACtB,cAAc,CAAC,UAAU,CAAC,GAC1B,cAAc,CAAC,SAAS,CAAC,GACzB,cAAc,CAAC,OAAO,CAAC,GACvB,cAAc,CAAC,MAAM,CAAC,GACtB,cAAc,CAAC,KAAK,CAAC,GACrB,cAAc,CAAC,OAAO,CAAC,GACvB,cAAc,CAAC,MAAM,CAAC,GACtB,cAAc,CAAC,UAAU,CAAC,GAC1B,cAAc,CAAC,OAAO,CAAC,GACvB,cAAc,CAAC,MAAM,CAAC,GACtB,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/block-fields.js
CHANGED
|
@@ -1,72 +1,101 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Block field type definitions.
|
|
3
|
-
* Single source of truth for all field types available in the block schema system.
|
|
4
|
-
*/
|
|
5
|
-
// =============================================================================
|
|
6
|
-
// FIELD TYPES
|
|
7
|
-
// =============================================================================
|
|
8
|
-
/**
|
|
9
|
-
* All available field types for block schemas.
|
|
10
|
-
*/
|
|
11
1
|
export const FieldType = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
MULTI_LINE: "multiLine",
|
|
2
|
+
TEXT: "text",
|
|
3
|
+
TEXTAREA: "textarea",
|
|
15
4
|
RICH_TEXT: "richText",
|
|
16
|
-
|
|
17
|
-
NUMERIC: "numeric",
|
|
5
|
+
NUMBER: "number",
|
|
18
6
|
DATE: "date",
|
|
7
|
+
DATETIME: "datetime",
|
|
19
8
|
BOOLEAN: "boolean",
|
|
20
9
|
COLOR: "color",
|
|
21
|
-
// Media & links
|
|
22
10
|
MEDIA: "media",
|
|
23
11
|
LINK: "link",
|
|
24
|
-
|
|
12
|
+
URL: "url",
|
|
13
|
+
EMAIL: "email",
|
|
25
14
|
SELECT: "select",
|
|
26
15
|
MULTISELECT: "multiselect",
|
|
27
|
-
|
|
16
|
+
RADIO: "radio",
|
|
17
|
+
RELATION: "relation",
|
|
28
18
|
REPEATER: "repeater",
|
|
29
|
-
|
|
19
|
+
OBJECT: "object",
|
|
20
|
+
LIST: "list",
|
|
30
21
|
FORM: "form",
|
|
31
22
|
PAGE_SELECTOR: "pageSelector",
|
|
23
|
+
PASSWORD: "password",
|
|
24
|
+
PHONE: "phone",
|
|
25
|
+
FILE: "file",
|
|
26
|
+
HIDDEN: "hidden",
|
|
32
27
|
};
|
|
33
|
-
/**
|
|
34
|
-
* Array of all field type values for Zod schemas.
|
|
35
|
-
*/
|
|
36
28
|
export const fieldTypeValues = [
|
|
37
|
-
"
|
|
38
|
-
"
|
|
29
|
+
"text",
|
|
30
|
+
"textarea",
|
|
39
31
|
"richText",
|
|
40
|
-
"
|
|
32
|
+
"number",
|
|
41
33
|
"date",
|
|
34
|
+
"datetime",
|
|
42
35
|
"boolean",
|
|
43
36
|
"color",
|
|
44
37
|
"media",
|
|
45
38
|
"link",
|
|
39
|
+
"url",
|
|
40
|
+
"email",
|
|
46
41
|
"select",
|
|
47
42
|
"multiselect",
|
|
43
|
+
"radio",
|
|
44
|
+
"relation",
|
|
48
45
|
"repeater",
|
|
46
|
+
"object",
|
|
47
|
+
"list",
|
|
49
48
|
"form",
|
|
50
49
|
"pageSelector",
|
|
50
|
+
"password",
|
|
51
|
+
"phone",
|
|
52
|
+
"file",
|
|
53
|
+
"hidden",
|
|
54
|
+
];
|
|
55
|
+
// Field types a flat form submission can structurally represent: no nested
|
|
56
|
+
// object/list/repeater, no relation, no media/color/pageSelector.
|
|
57
|
+
export const formFieldTypeValues = [
|
|
58
|
+
"text",
|
|
59
|
+
"email",
|
|
60
|
+
"password",
|
|
61
|
+
"textarea",
|
|
62
|
+
"number",
|
|
63
|
+
"phone",
|
|
64
|
+
"url",
|
|
65
|
+
"date",
|
|
66
|
+
"datetime",
|
|
67
|
+
"select",
|
|
68
|
+
"multiselect",
|
|
69
|
+
"boolean",
|
|
70
|
+
"radio",
|
|
71
|
+
"file",
|
|
72
|
+
"hidden",
|
|
51
73
|
];
|
|
52
|
-
/**
|
|
53
|
-
* Default values for each field type.
|
|
54
|
-
* Frozen to prevent accidental mutation of shared array instances.
|
|
55
|
-
*/
|
|
56
74
|
export const FIELD_TYPE_DEFAULTS = Object.freeze({
|
|
57
|
-
|
|
58
|
-
|
|
75
|
+
text: "",
|
|
76
|
+
textarea: "",
|
|
59
77
|
richText: "",
|
|
60
|
-
|
|
78
|
+
number: 0,
|
|
61
79
|
date: "",
|
|
80
|
+
datetime: "",
|
|
81
|
+
boolean: false,
|
|
82
|
+
color: "#000000",
|
|
62
83
|
media: "",
|
|
63
84
|
link: "",
|
|
85
|
+
url: "",
|
|
86
|
+
email: "",
|
|
64
87
|
select: "",
|
|
65
|
-
multiselect: [],
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
repeater: [],
|
|
88
|
+
multiselect: Object.freeze([]),
|
|
89
|
+
radio: "",
|
|
90
|
+
relation: "",
|
|
91
|
+
repeater: Object.freeze([]),
|
|
92
|
+
object: Object.freeze({}),
|
|
93
|
+
list: Object.freeze([]),
|
|
69
94
|
form: "",
|
|
70
|
-
pageSelector: [],
|
|
95
|
+
pageSelector: Object.freeze([]),
|
|
96
|
+
password: "",
|
|
97
|
+
phone: "",
|
|
98
|
+
file: "",
|
|
99
|
+
hidden: "",
|
|
71
100
|
});
|
|
72
101
|
//# sourceMappingURL=block-fields.js.map
|
package/dist/block-fields.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-fields.js","sourceRoot":"","sources":["../src/block-fields.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-fields.js","sourceRoot":"","sources":["../src/block-fields.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,UAAU;IAErB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IAEd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IAEd,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,OAAO;IAEd,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IAEZ,IAAI,EAAE,MAAM;IACZ,aAAa,EAAE,cAAc;IAE7B,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AAIX,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM;IACN,UAAU;IACV,UAAU;IACV,QAAQ;IACR,MAAM;IACN,UAAU;IACV,SAAS;IACT,OAAO;IACP,OAAO;IACP,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,aAAa;IACb,OAAO;IACP,UAAU;IACV,UAAU;IACV,QAAQ;IACR,MAAM;IACN,MAAM;IACN,cAAc;IACd,UAAU;IACV,OAAO;IACP,MAAM;IACN,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D_PROPERTIES, blockFieldPropertyNames, blockFieldGraphQLSelection, type FieldPropertyDef, type BlockFieldPropertyName, type BlockFieldSchema, } from "./block-field-registry.js";
|
|
8
|
-
export { FieldType, fieldTypeValues, type FieldValidation, type ValidationPattern, type ShowWhenCondition, type BaseFieldConfig, type SelectFieldConfig, type MultiselectFieldConfig, type RepeaterFieldConfig, type MediaFieldConfig, type PageRef, type PageSelectorFieldConfig, type FieldConfig, type FieldValue, type FieldTypeValueMap, FIELD_TYPE_DEFAULTS, type TypedFieldConfig, } from "./block-fields.js";
|
|
8
|
+
export { FieldType, fieldTypeValues, formFieldTypeValues, type FormFieldType, type FieldValidation, type ValidationPattern, type ShowWhenCondition, type LocalizedText, type RelationCardinality, type FieldOption, type BaseFieldConfig, type SimpleFieldType, type SimpleFieldConfig, type SelectFieldConfig, type MultiselectFieldConfig, type RadioFieldConfig, type RepeaterFieldConfig, type ObjectFieldConfig, type ListFieldConfig, type MediaFieldConfig, type RelationFieldConfig, type PageRef, type PageSelectorFieldConfig, type FieldConfig, type FieldValue, type FieldValueObject, type FieldTypeValueMap, FIELD_TYPE_DEFAULTS, type TypedFieldConfig, } from "./block-fields.js";
|
|
9
9
|
export { LayoutPosition, layoutPositionValues, LayoutOverrideAction, type LayoutOverride, } from "./layout.js";
|
|
10
10
|
export { WorkspaceModule, workspaceModuleValues, FeatureFlag, featureFlagValues, type BlockRequires, } from "./modules.js";
|
|
11
11
|
export { type BlockConfig, type TypedBlockConfig, BlockSource, PackageType, } from "./block.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,GACtB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EACL,SAAS,EACT,eAAe,EACf,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,KAAK,gBAAgB,GACtB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,WAAW,EACX,WAAW,GACZ,MAAM,YAAY,CAAC;AAGpB,YAAY,EACV,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,UAAU,GACX,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,eAAe,EACf,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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,gBAAgB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,eAAe,EACf,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// Block field registry (single source of truth)
|
|
8
8
|
export { BLOCK_FIELD_PROPERTIES, blockFieldPropertyNames, blockFieldGraphQLSelection, } from "./block-field-registry.js";
|
|
9
9
|
// Block fields
|
|
10
|
-
export { FieldType, fieldTypeValues, FIELD_TYPE_DEFAULTS, } from "./block-fields.js";
|
|
10
|
+
export { FieldType, fieldTypeValues, formFieldTypeValues, FIELD_TYPE_DEFAULTS, } from "./block-fields.js";
|
|
11
11
|
// Layout
|
|
12
12
|
export { LayoutPosition, layoutPositionValues, LayoutOverrideAction, } from "./layout.js";
|
|
13
13
|
// Modules & features
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gDAAgD;AAChD,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,GAI3B,MAAM,2BAA2B,CAAC;AAEnC,eAAe;AACf,OAAO,EACL,SAAS,EACT,eAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gDAAgD;AAChD,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,GAI3B,MAAM,2BAA2B,CAAC;AAEnC,eAAe;AACf,OAAO,EACL,SAAS,EACT,eAAe,EACf,mBAAmB,EAyBnB,mBAAmB,GAEpB,MAAM,mBAAmB,CAAC;AAE3B,SAAS;AACT,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,aAAa,CAAC;AAErB,qBAAqB;AACrB,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,iBAAiB,GAElB,MAAM,cAAc,CAAC;AAEtB,eAAe;AACf,OAAO,EAGL,WAAW,EACX,WAAW,GACZ,MAAM,YAAY,CAAC;AAgBpB,uEAAuE;AACvE,OAAO,EACL,mBAAmB,EAEnB,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,eAAe,EACf,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAE/B,kBAAkB;AAClB,OAAO,EASL,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
|