@cmssy/types 0.16.0 → 0.17.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 +106 -124
- package/dist/block-fields.d.ts.map +1 -1
- package/dist/block-fields.js +47 -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.map +1 -1
- package/package.json +1 -1
package/dist/block-fields.d.ts
CHANGED
|
@@ -1,224 +1,206 @@
|
|
|
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
|
-
* Array of all field type values for Zod schemas.
|
|
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"];
|
|
33
31
|
export type ValidationPattern = "email" | "url" | "phone" | "slug";
|
|
34
|
-
/**
|
|
35
|
-
* Extended validation configuration for fields.
|
|
36
|
-
*/
|
|
37
32
|
export interface FieldValidation {
|
|
38
|
-
/** Minimum length for string fields */
|
|
39
33
|
minLength?: number;
|
|
40
|
-
/** Maximum length for string fields */
|
|
41
34
|
maxLength?: number;
|
|
42
|
-
/** Minimum value for numeric fields */
|
|
43
35
|
min?: number;
|
|
44
|
-
/** Maximum value for numeric fields */
|
|
45
36
|
max?: number;
|
|
46
|
-
/** Validation pattern - built-in name or custom regex string */
|
|
47
37
|
pattern?: ValidationPattern | string;
|
|
48
|
-
/** Custom error message shown when validation fails */
|
|
49
38
|
message?: string;
|
|
50
39
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Condition for showing/hiding a field based on another field's value.
|
|
53
|
-
*/
|
|
54
40
|
export interface ShowWhenCondition {
|
|
55
|
-
/** Field key to check */
|
|
56
41
|
field: string;
|
|
57
|
-
/** Show when field equals this value */
|
|
58
42
|
equals?: unknown;
|
|
59
|
-
/** Show when field does not equal this value */
|
|
60
43
|
notEquals?: unknown;
|
|
61
|
-
/** Show when field value is not empty */
|
|
62
44
|
notEmpty?: boolean;
|
|
63
|
-
/** Show when field value is empty */
|
|
64
45
|
isEmpty?: boolean;
|
|
65
46
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
47
|
+
export type LocalizedText = string | Record<string, string>;
|
|
48
|
+
export type RelationCardinality = "hasOne" | "hasMany" | "manyToMany";
|
|
49
|
+
export type FieldOption = {
|
|
50
|
+
label: LocalizedText;
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
69
53
|
export interface BaseFieldConfig {
|
|
70
54
|
type: FieldType;
|
|
71
|
-
label:
|
|
55
|
+
label: LocalizedText;
|
|
72
56
|
required?: boolean;
|
|
73
|
-
placeholder?:
|
|
57
|
+
placeholder?: LocalizedText;
|
|
74
58
|
defaultValue?: unknown;
|
|
75
|
-
|
|
76
|
-
helperText?: string;
|
|
77
|
-
/** @deprecated Use `helperText` instead */
|
|
78
|
-
helpText?: string;
|
|
59
|
+
helperText?: LocalizedText;
|
|
79
60
|
group?: string;
|
|
61
|
+
tab?: string;
|
|
80
62
|
showWhen?: ShowWhenCondition;
|
|
81
63
|
validation?: FieldValidation;
|
|
82
64
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Select field with predefined options.
|
|
85
|
-
*/
|
|
86
65
|
export interface SelectFieldConfig extends BaseFieldConfig {
|
|
87
66
|
type: "select";
|
|
88
|
-
options:
|
|
89
|
-
|
|
90
|
-
value: string;
|
|
91
|
-
}>;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Multi-select field with predefined options.
|
|
95
|
-
*/
|
|
67
|
+
options: FieldOption[];
|
|
68
|
+
}
|
|
96
69
|
export interface MultiselectFieldConfig extends BaseFieldConfig {
|
|
97
70
|
type: "multiselect";
|
|
98
|
-
options:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
* Repeater field for arrays of items.
|
|
105
|
-
*/
|
|
71
|
+
options: FieldOption[];
|
|
72
|
+
}
|
|
73
|
+
export interface RadioFieldConfig extends BaseFieldConfig {
|
|
74
|
+
type: "radio";
|
|
75
|
+
options: FieldOption[];
|
|
76
|
+
}
|
|
106
77
|
export interface RepeaterFieldConfig extends BaseFieldConfig {
|
|
107
78
|
type: "repeater";
|
|
108
79
|
minItems?: number;
|
|
109
80
|
maxItems?: number;
|
|
110
81
|
schema: Record<string, FieldConfig>;
|
|
111
82
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
83
|
+
export interface ObjectFieldConfig extends BaseFieldConfig {
|
|
84
|
+
type: "object";
|
|
85
|
+
schema: Record<string, FieldConfig>;
|
|
86
|
+
}
|
|
87
|
+
export interface ListFieldConfig extends BaseFieldConfig {
|
|
88
|
+
type: "list";
|
|
89
|
+
itemType: FieldType;
|
|
90
|
+
itemSchema?: Record<string, FieldConfig>;
|
|
91
|
+
}
|
|
115
92
|
export interface MediaFieldConfig extends Omit<BaseFieldConfig, "defaultValue"> {
|
|
116
93
|
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
|
-
*/
|
|
94
|
+
defaultValue?: string | string[];
|
|
123
95
|
acceptedTypes?: MediaType[];
|
|
124
96
|
accept?: string;
|
|
125
97
|
maxSize?: number;
|
|
98
|
+
multiple?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface RelationFieldConfig extends BaseFieldConfig {
|
|
101
|
+
type: "relation";
|
|
102
|
+
relationTo: string;
|
|
103
|
+
relationType?: RelationCardinality;
|
|
126
104
|
}
|
|
127
|
-
/**
|
|
128
|
-
* A reference to a selected page, storing slug and localized display name.
|
|
129
|
-
*/
|
|
130
105
|
export interface PageRef {
|
|
131
106
|
slug: string;
|
|
132
107
|
displayName: Record<string, string>;
|
|
133
108
|
}
|
|
134
|
-
/**
|
|
135
|
-
* Page selector field for selecting pages.
|
|
136
|
-
*/
|
|
137
109
|
export interface PageSelectorFieldConfig extends BaseFieldConfig {
|
|
138
110
|
type: "pageSelector";
|
|
139
111
|
multiple?: boolean;
|
|
140
112
|
}
|
|
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
|
-
*/
|
|
113
|
+
export type SimpleFieldType = "text" | "textarea" | "richText" | "number" | "date" | "datetime" | "boolean" | "color" | "link" | "url" | "email" | "form" | "password" | "phone" | "file" | "hidden";
|
|
114
|
+
export interface SimpleFieldConfig extends BaseFieldConfig {
|
|
115
|
+
type: SimpleFieldType;
|
|
116
|
+
}
|
|
117
|
+
export type FieldConfig = SimpleFieldConfig | SelectFieldConfig | MultiselectFieldConfig | RadioFieldConfig | RepeaterFieldConfig | ObjectFieldConfig | ListFieldConfig | MediaFieldConfig | RelationFieldConfig | PageSelectorFieldConfig;
|
|
118
|
+
export interface FieldValueObject {
|
|
119
|
+
[key: string]: FieldValue;
|
|
120
|
+
}
|
|
121
|
+
export type FieldValue = string | number | boolean | PageRef[] | FieldValueObject | FieldValue[];
|
|
154
122
|
export interface FieldTypeValueMap {
|
|
155
|
-
|
|
156
|
-
|
|
123
|
+
text: string;
|
|
124
|
+
textarea: string;
|
|
157
125
|
richText: string;
|
|
158
|
-
|
|
126
|
+
number: number;
|
|
159
127
|
date: string;
|
|
160
|
-
|
|
128
|
+
datetime: string;
|
|
129
|
+
boolean: boolean;
|
|
130
|
+
color: string;
|
|
131
|
+
media: string | string[];
|
|
161
132
|
link: string;
|
|
133
|
+
url: string;
|
|
134
|
+
email: string;
|
|
162
135
|
select: string;
|
|
163
136
|
multiselect: string[];
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
repeater:
|
|
137
|
+
radio: string;
|
|
138
|
+
relation: string | string[];
|
|
139
|
+
repeater: FieldValueObject[];
|
|
140
|
+
object: FieldValueObject;
|
|
141
|
+
list: FieldValue[];
|
|
167
142
|
form: string;
|
|
168
143
|
pageSelector: PageRef[];
|
|
144
|
+
password: string;
|
|
145
|
+
phone: string;
|
|
146
|
+
file: string;
|
|
147
|
+
hidden: string;
|
|
169
148
|
}
|
|
170
|
-
/**
|
|
171
|
-
* Default values for each field type.
|
|
172
|
-
* Frozen to prevent accidental mutation of shared array instances.
|
|
173
|
-
*/
|
|
174
149
|
export declare const FIELD_TYPE_DEFAULTS: Readonly<{
|
|
175
|
-
[K in FieldType]: FieldTypeValueMap[K]
|
|
150
|
+
[K in FieldType]: Readonly<FieldTypeValueMap[K]>;
|
|
176
151
|
}>;
|
|
177
|
-
/**
|
|
178
|
-
* Base typed field config - narrows defaultValue by field type discriminant.
|
|
179
|
-
*/
|
|
180
152
|
type TypedBaseField<T extends FieldType> = {
|
|
181
153
|
type: T;
|
|
182
|
-
label:
|
|
154
|
+
label: LocalizedText;
|
|
183
155
|
required?: boolean;
|
|
184
|
-
placeholder?:
|
|
156
|
+
placeholder?: LocalizedText;
|
|
185
157
|
defaultValue?: FieldTypeValueMap[T];
|
|
186
|
-
helperText?:
|
|
187
|
-
/** @deprecated Use `helperText` instead */
|
|
188
|
-
helpText?: string;
|
|
158
|
+
helperText?: LocalizedText;
|
|
189
159
|
group?: string;
|
|
160
|
+
tab?: string;
|
|
190
161
|
showWhen?: ShowWhenCondition;
|
|
191
162
|
validation?: FieldValidation;
|
|
192
163
|
};
|
|
193
164
|
type TypedSelectField = TypedBaseField<"select"> & {
|
|
194
|
-
options:
|
|
195
|
-
label: string;
|
|
196
|
-
value: string;
|
|
197
|
-
}>;
|
|
165
|
+
options: FieldOption[];
|
|
198
166
|
};
|
|
199
167
|
type TypedMultiselectField = TypedBaseField<"multiselect"> & {
|
|
200
|
-
options:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
168
|
+
options: FieldOption[];
|
|
169
|
+
};
|
|
170
|
+
type TypedRadioField = TypedBaseField<"radio"> & {
|
|
171
|
+
options: FieldOption[];
|
|
204
172
|
};
|
|
205
173
|
type TypedRepeaterField = TypedBaseField<"repeater"> & {
|
|
206
174
|
minItems?: number;
|
|
207
175
|
maxItems?: number;
|
|
208
176
|
schema: Record<string, TypedFieldConfig>;
|
|
209
177
|
};
|
|
210
|
-
type
|
|
178
|
+
type TypedObjectField = TypedBaseField<"object"> & {
|
|
179
|
+
schema: Record<string, TypedFieldConfig>;
|
|
180
|
+
};
|
|
181
|
+
type TypedListField = TypedBaseField<"list"> & {
|
|
182
|
+
itemType: FieldType;
|
|
183
|
+
itemSchema?: Record<string, TypedFieldConfig>;
|
|
184
|
+
};
|
|
185
|
+
type TypedMediaFieldBase = TypedBaseField<"media"> & {
|
|
211
186
|
acceptedTypes?: MediaType[];
|
|
212
187
|
accept?: string;
|
|
213
188
|
maxSize?: number;
|
|
214
189
|
};
|
|
190
|
+
type TypedMediaField = (TypedMediaFieldBase & {
|
|
191
|
+
multiple?: false;
|
|
192
|
+
defaultValue?: string;
|
|
193
|
+
}) | (TypedMediaFieldBase & {
|
|
194
|
+
multiple: true;
|
|
195
|
+
defaultValue?: string[];
|
|
196
|
+
});
|
|
197
|
+
type TypedRelationField = TypedBaseField<"relation"> & {
|
|
198
|
+
relationTo: string;
|
|
199
|
+
relationType?: RelationCardinality;
|
|
200
|
+
};
|
|
215
201
|
type TypedPageSelectorField = TypedBaseField<"pageSelector"> & {
|
|
216
202
|
multiple?: boolean;
|
|
217
203
|
};
|
|
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">;
|
|
204
|
+
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
205
|
export {};
|
|
224
206
|
//# 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;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAC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AqB,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,82 @@
|
|
|
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",
|
|
51
54
|
];
|
|
52
|
-
/**
|
|
53
|
-
* Default values for each field type.
|
|
54
|
-
* Frozen to prevent accidental mutation of shared array instances.
|
|
55
|
-
*/
|
|
56
55
|
export const FIELD_TYPE_DEFAULTS = Object.freeze({
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
text: "",
|
|
57
|
+
textarea: "",
|
|
59
58
|
richText: "",
|
|
60
|
-
|
|
59
|
+
number: 0,
|
|
61
60
|
date: "",
|
|
61
|
+
datetime: "",
|
|
62
|
+
boolean: false,
|
|
63
|
+
color: "#000000",
|
|
62
64
|
media: "",
|
|
63
65
|
link: "",
|
|
66
|
+
url: "",
|
|
67
|
+
email: "",
|
|
64
68
|
select: "",
|
|
65
|
-
multiselect: [],
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
repeater: [],
|
|
69
|
+
multiselect: Object.freeze([]),
|
|
70
|
+
radio: "",
|
|
71
|
+
relation: "",
|
|
72
|
+
repeater: Object.freeze([]),
|
|
73
|
+
object: Object.freeze({}),
|
|
74
|
+
list: Object.freeze([]),
|
|
69
75
|
form: "",
|
|
70
|
-
pageSelector: [],
|
|
76
|
+
pageSelector: Object.freeze([]),
|
|
77
|
+
password: "",
|
|
78
|
+
phone: "",
|
|
79
|
+
file: "",
|
|
80
|
+
hidden: "",
|
|
71
81
|
});
|
|
72
82
|
//# 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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;IACvC,IAAI,EAAE,EAAE;IACR,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAe,CAAC;IAC5C,QAAQ,EAAE,EAAE;IACZ,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,EAAE;CACX,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Single source of truth for types used by server, frontend, and CLI.
|
|
6
6
|
*/
|
|
7
7
|
export { BLOCK_FIELD_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, 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,uB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AW,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"}
|
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,EAwBf,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"}
|