@lacecms/content 0.1.0-rc1 → 0.1.0-rc3
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/blocks/built-ins.d.ts +627 -0
- package/dist/blocks/built-ins.d.ts.map +1 -0
- package/dist/blocks/built-ins.js +337 -0
- package/dist/blocks/built-ins.js.map +1 -0
- package/dist/blocks/definition.d.ts +21 -0
- package/dist/blocks/definition.d.ts.map +1 -0
- package/dist/blocks/definition.js +159 -0
- package/dist/blocks/definition.js.map +1 -0
- package/dist/blocks/errors.d.ts +7 -0
- package/dist/blocks/errors.d.ts.map +1 -0
- package/dist/blocks/errors.js +12 -0
- package/dist/blocks/errors.js.map +1 -0
- package/dist/blocks/fields.d.ts +3 -0
- package/dist/blocks/fields.d.ts.map +1 -0
- package/dist/blocks/fields.js +38 -0
- package/dist/blocks/fields.js.map +1 -0
- package/dist/blocks/gallery-migration.d.ts +8 -0
- package/dist/blocks/gallery-migration.d.ts.map +1 -0
- package/dist/blocks/gallery-migration.js +28 -0
- package/dist/blocks/gallery-migration.js.map +1 -0
- package/dist/blocks/grammar.d.ts +23 -0
- package/dist/blocks/grammar.d.ts.map +1 -0
- package/dist/blocks/grammar.js +38 -0
- package/dist/blocks/grammar.js.map +1 -0
- package/dist/blocks/list-layout.d.ts +121 -0
- package/dist/blocks/list-layout.d.ts.map +1 -0
- package/dist/blocks/list-layout.js +175 -0
- package/dist/blocks/list-layout.js.map +1 -0
- package/dist/blocks/migration.d.ts +26 -0
- package/dist/blocks/migration.d.ts.map +1 -0
- package/dist/blocks/migration.js +126 -0
- package/dist/blocks/migration.js.map +1 -0
- package/dist/blocks/registry.d.ts +6 -0
- package/dist/blocks/registry.d.ts.map +1 -0
- package/dist/blocks/registry.js +23 -0
- package/dist/blocks/registry.js.map +1 -0
- package/dist/blocks/settings.d.ts +9 -0
- package/dist/blocks/settings.d.ts.map +1 -0
- package/dist/blocks/settings.js +63 -0
- package/dist/blocks/settings.js.map +1 -0
- package/dist/blocks/types.d.ts +77 -0
- package/dist/blocks/types.d.ts.map +1 -0
- package/dist/blocks/types.js +2 -0
- package/dist/blocks/types.js.map +1 -0
- package/dist/entries/aggregate.d.ts +80 -0
- package/dist/entries/aggregate.d.ts.map +1 -0
- package/dist/entries/aggregate.js +166 -0
- package/dist/entries/aggregate.js.map +1 -0
- package/dist/entries/canonical-json.d.ts +14 -0
- package/dist/entries/canonical-json.d.ts.map +1 -0
- package/dist/entries/canonical-json.js +43 -0
- package/dist/entries/canonical-json.js.map +1 -0
- package/dist/{list-query-policy.d.ts → entries/list-query-policy.d.ts} +3 -0
- package/dist/entries/list-query-policy.d.ts.map +1 -0
- package/dist/{list-query-policy.js → entries/list-query-policy.js} +9 -0
- package/dist/entries/list-query-policy.js.map +1 -0
- package/dist/fields/builders.d.ts +35 -0
- package/dist/fields/builders.d.ts.map +1 -0
- package/dist/fields/builders.js +15 -0
- package/dist/fields/builders.js.map +1 -0
- package/dist/fields/capabilities.d.ts +157 -0
- package/dist/fields/capabilities.d.ts.map +1 -0
- package/dist/fields/capabilities.js +131 -0
- package/dist/fields/capabilities.js.map +1 -0
- package/dist/fields/definitions.d.ts +255 -0
- package/dist/fields/definitions.d.ts.map +1 -0
- package/dist/fields/definitions.js +42 -0
- package/dist/fields/definitions.js.map +1 -0
- package/dist/fields/descriptor-record.d.ts +3 -0
- package/dist/fields/descriptor-record.d.ts.map +1 -0
- package/dist/fields/descriptor-record.js +18 -0
- package/dist/fields/descriptor-record.js.map +1 -0
- package/dist/fields/filter-values.d.ts +34 -0
- package/dist/fields/filter-values.d.ts.map +1 -0
- package/dist/fields/filter-values.js +109 -0
- package/dist/fields/filter-values.js.map +1 -0
- package/dist/{internal-links.d.ts → fields/internal-link-tokens.d.ts} +1 -1
- package/dist/fields/internal-link-tokens.d.ts.map +1 -0
- package/dist/{internal-links.js → fields/internal-link-tokens.js} +8 -3
- package/dist/fields/internal-link-tokens.js.map +1 -0
- package/dist/fields/layout.d.ts +6 -0
- package/dist/fields/layout.d.ts.map +1 -0
- package/dist/fields/layout.js +45 -0
- package/dist/fields/layout.js.map +1 -0
- package/dist/fields/metadata.d.ts +4 -0
- package/dist/fields/metadata.d.ts.map +1 -0
- package/dist/fields/metadata.js +6 -0
- package/dist/fields/metadata.js.map +1 -0
- package/dist/fields/normalization.d.ts +5 -0
- package/dist/fields/normalization.d.ts.map +1 -0
- package/dist/fields/normalization.js +148 -0
- package/dist/fields/normalization.js.map +1 -0
- package/dist/fields/rich-text.d.ts +56 -0
- package/dist/fields/rich-text.d.ts.map +1 -0
- package/dist/fields/rich-text.js +169 -0
- package/dist/fields/rich-text.js.map +1 -0
- package/dist/fields/scalar-builders.d.ts +30 -0
- package/dist/fields/scalar-builders.d.ts.map +1 -0
- package/dist/fields/scalar-builders.js +310 -0
- package/dist/fields/scalar-builders.js.map +1 -0
- package/dist/{schema-path.d.ts → fields/schema-path.d.ts} +1 -1
- package/dist/fields/schema-path.d.ts.map +1 -0
- package/dist/{schema-path.js → fields/schema-path.js} +5 -5
- package/dist/fields/schema-path.js.map +1 -0
- package/dist/fields/validation.d.ts +40 -0
- package/dist/fields/validation.d.ts.map +1 -0
- package/dist/fields/validation.js +203 -0
- package/dist/fields/validation.js.map +1 -0
- package/dist/{video-embeds.d.ts → fields/video-embeds.d.ts} +2 -0
- package/dist/fields/video-embeds.d.ts.map +1 -0
- package/dist/{video-embeds.js → fields/video-embeds.js} +2 -0
- package/dist/fields/video-embeds.js.map +1 -0
- package/dist/fields/visibility.d.ts +12 -0
- package/dist/fields/visibility.d.ts.map +1 -0
- package/dist/fields/visibility.js +69 -0
- package/dist/fields/visibility.js.map +1 -0
- package/dist/index.d.ts +45 -1338
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -2330
- package/dist/index.js.map +1 -1
- package/dist/references/field-paths.d.ts +6 -0
- package/dist/references/field-paths.d.ts.map +1 -0
- package/dist/references/field-paths.js +19 -0
- package/dist/references/field-paths.js.map +1 -0
- package/dist/references/internal-links.d.ts +30 -0
- package/dist/references/internal-links.d.ts.map +1 -0
- package/dist/references/internal-links.js +54 -0
- package/dist/references/internal-links.js.map +1 -0
- package/dist/references/media.d.ts +23 -0
- package/dist/references/media.d.ts.map +1 -0
- package/dist/references/media.js +76 -0
- package/dist/references/media.js.map +1 -0
- package/dist/shared/errors.d.ts +34 -0
- package/dist/shared/errors.d.ts.map +1 -0
- package/dist/shared/errors.js +61 -0
- package/dist/shared/errors.js.map +1 -0
- package/dist/shared/identifiers.d.ts +38 -0
- package/dist/shared/identifiers.d.ts.map +1 -0
- package/dist/shared/identifiers.js +80 -0
- package/dist/shared/identifiers.js.map +1 -0
- package/dist/shared/json.d.ts +20 -0
- package/dist/shared/json.d.ts.map +1 -0
- package/dist/shared/json.js +155 -0
- package/dist/shared/json.js.map +1 -0
- package/dist/shared/objects.d.ts +7 -0
- package/dist/shared/objects.d.ts.map +1 -0
- package/dist/shared/objects.js +20 -0
- package/dist/shared/objects.js.map +1 -0
- package/package.json +1 -1
- package/dist/internal-links.d.ts.map +0 -1
- package/dist/internal-links.js.map +0 -1
- package/dist/list-query-policy.d.ts.map +0 -1
- package/dist/list-query-policy.js.map +0 -1
- package/dist/schema-path.d.ts.map +0 -1
- package/dist/schema-path.js.map +0 -1
- package/dist/video-embeds.d.ts.map +0 -1
- package/dist/video-embeds.js.map +0 -1
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
/** Starter blocks implemented exclusively through the public block and field DSL. */
|
|
2
|
+
export declare const builtInBlocks: {
|
|
3
|
+
cta: import("./types.js").BlockDefinition<{
|
|
4
|
+
readonly actionLabel: {
|
|
5
|
+
readonly required: true;
|
|
6
|
+
readonly type: "text";
|
|
7
|
+
};
|
|
8
|
+
readonly actionUrl: {
|
|
9
|
+
readonly required: true;
|
|
10
|
+
readonly type: "url";
|
|
11
|
+
};
|
|
12
|
+
readonly body: {
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly type: "richText";
|
|
15
|
+
};
|
|
16
|
+
readonly heading: {
|
|
17
|
+
readonly required: true;
|
|
18
|
+
readonly type: "text";
|
|
19
|
+
};
|
|
20
|
+
}, Readonly<Record<never, import("../index.js").FieldDefinition>>, undefined>;
|
|
21
|
+
gallery: import("./types.js").BlockDefinition<{
|
|
22
|
+
readonly images: {
|
|
23
|
+
readonly required: false;
|
|
24
|
+
readonly type: "list";
|
|
25
|
+
} & {
|
|
26
|
+
readonly defaultValue: readonly [];
|
|
27
|
+
} & {
|
|
28
|
+
readonly label: "Images and videos";
|
|
29
|
+
} & {
|
|
30
|
+
readonly item: {
|
|
31
|
+
readonly required: false;
|
|
32
|
+
readonly type: "group";
|
|
33
|
+
} & {
|
|
34
|
+
readonly visibility: {
|
|
35
|
+
readonly media: {
|
|
36
|
+
readonly field: "kind";
|
|
37
|
+
readonly values: readonly ["image"];
|
|
38
|
+
};
|
|
39
|
+
readonly alt: {
|
|
40
|
+
readonly field: "kind";
|
|
41
|
+
readonly values: readonly ["image"];
|
|
42
|
+
};
|
|
43
|
+
readonly link: {
|
|
44
|
+
readonly field: "kind";
|
|
45
|
+
readonly values: readonly ["image"];
|
|
46
|
+
};
|
|
47
|
+
readonly size: {
|
|
48
|
+
readonly field: "kind";
|
|
49
|
+
readonly values: readonly ["image"];
|
|
50
|
+
};
|
|
51
|
+
readonly videoUrl: {
|
|
52
|
+
readonly field: "kind";
|
|
53
|
+
readonly values: readonly ["video"];
|
|
54
|
+
};
|
|
55
|
+
readonly videoTitle: {
|
|
56
|
+
readonly field: "kind";
|
|
57
|
+
readonly values: readonly ["video"];
|
|
58
|
+
};
|
|
59
|
+
readonly playback: {
|
|
60
|
+
readonly field: "kind";
|
|
61
|
+
readonly values: readonly ["video"];
|
|
62
|
+
};
|
|
63
|
+
readonly aspectRatio: {
|
|
64
|
+
readonly field: "kind";
|
|
65
|
+
readonly values: readonly ["video"];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
} & {
|
|
69
|
+
readonly fields: {
|
|
70
|
+
readonly placement: import("../index.js").SelectFieldDefinition<readonly ["auto", "full", "start", "end"], {
|
|
71
|
+
readonly options: readonly ["auto", "full", "start", "end"];
|
|
72
|
+
readonly required: true;
|
|
73
|
+
readonly defaultValue: "auto";
|
|
74
|
+
readonly label: "Placement";
|
|
75
|
+
readonly description: "Applies to grid lists. Start, end and full choose the first column, the last column or the whole row.";
|
|
76
|
+
readonly presentation: {
|
|
77
|
+
readonly control: "cards";
|
|
78
|
+
readonly choices: readonly [{
|
|
79
|
+
readonly value: "auto";
|
|
80
|
+
readonly label: "Auto";
|
|
81
|
+
readonly description: "Takes the next free cell.";
|
|
82
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
83
|
+
}, {
|
|
84
|
+
readonly value: "full";
|
|
85
|
+
readonly label: "Full row";
|
|
86
|
+
readonly description: "Spans every column of its row.";
|
|
87
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
88
|
+
}, {
|
|
89
|
+
readonly value: "start";
|
|
90
|
+
readonly label: "First column";
|
|
91
|
+
readonly description: "Starts a row in the first column.";
|
|
92
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
93
|
+
}, {
|
|
94
|
+
readonly value: "end";
|
|
95
|
+
readonly label: "Last column";
|
|
96
|
+
readonly description: "Sits in the last column of its row.";
|
|
97
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
98
|
+
}];
|
|
99
|
+
};
|
|
100
|
+
} & import("../index.js").SelectFieldOptions<readonly ["auto", "full", "start", "end"]>>;
|
|
101
|
+
readonly kind: import("../index.js").SelectFieldDefinition<readonly ["image", "video"], {
|
|
102
|
+
readonly options: readonly ["image", "video"];
|
|
103
|
+
readonly required: true;
|
|
104
|
+
readonly defaultValue: "image";
|
|
105
|
+
readonly label: "Type";
|
|
106
|
+
readonly presentation: {
|
|
107
|
+
readonly control: "cards";
|
|
108
|
+
readonly choices: readonly [{
|
|
109
|
+
readonly value: "image";
|
|
110
|
+
readonly label: "Image";
|
|
111
|
+
readonly description: "A picture from the media library.";
|
|
112
|
+
}, {
|
|
113
|
+
readonly value: "video";
|
|
114
|
+
readonly label: "Video";
|
|
115
|
+
readonly description: "A YouTube or Vimeo video.";
|
|
116
|
+
}];
|
|
117
|
+
};
|
|
118
|
+
} & import("../index.js").SelectFieldOptions<readonly ["image", "video"]>>;
|
|
119
|
+
readonly media: import("../index.js").MediaFieldDefinition<{
|
|
120
|
+
readonly label: "Image";
|
|
121
|
+
readonly required: true;
|
|
122
|
+
}>;
|
|
123
|
+
readonly videoUrl: import("../index.js").UrlFieldDefinition<{
|
|
124
|
+
readonly required: true;
|
|
125
|
+
readonly embedProviders: readonly import("../fields/video-embeds.js").EmbedProvider[];
|
|
126
|
+
readonly label: "Video URL";
|
|
127
|
+
readonly description: "Paste a YouTube or Vimeo video link, not iframe code.";
|
|
128
|
+
}>;
|
|
129
|
+
readonly alt: import("../index.js").TextFieldDefinition<{
|
|
130
|
+
readonly description: "Leave empty to use the media item's alt text.";
|
|
131
|
+
readonly label: "Alt text";
|
|
132
|
+
}>;
|
|
133
|
+
readonly videoTitle: import("../index.js").TextFieldDefinition<{
|
|
134
|
+
readonly required: true;
|
|
135
|
+
readonly minLength: 1;
|
|
136
|
+
readonly label: "Video title";
|
|
137
|
+
readonly description: "Names the video for visitors using assistive technology.";
|
|
138
|
+
}>;
|
|
139
|
+
readonly caption: import("../index.js").TextFieldDefinition<{
|
|
140
|
+
readonly description: "An empty image caption uses the media item's caption.";
|
|
141
|
+
readonly label: "Caption";
|
|
142
|
+
}>;
|
|
143
|
+
readonly link: import("../index.js").UrlFieldDefinition<{
|
|
144
|
+
readonly description: "Selecting the image opens this link instead of the full-screen view.";
|
|
145
|
+
readonly label: "Link";
|
|
146
|
+
}>;
|
|
147
|
+
readonly size: import("../index.js").SelectFieldDefinition<readonly ["fill", "natural"], {
|
|
148
|
+
readonly options: readonly ["fill", "natural"];
|
|
149
|
+
readonly required: true;
|
|
150
|
+
readonly defaultValue: "fill";
|
|
151
|
+
readonly label: "Size";
|
|
152
|
+
readonly description: "A natural image keeps its own width, never wider than its cell.";
|
|
153
|
+
readonly presentation: {
|
|
154
|
+
readonly control: "cards";
|
|
155
|
+
readonly choices: readonly [{
|
|
156
|
+
readonly value: "fill";
|
|
157
|
+
readonly label: "Fill";
|
|
158
|
+
readonly description: "Fills the cell; your site sets its proportions.";
|
|
159
|
+
readonly diagram: {
|
|
160
|
+
readonly cells: readonly [{
|
|
161
|
+
readonly x: 0;
|
|
162
|
+
readonly y: 0;
|
|
163
|
+
readonly width: 12;
|
|
164
|
+
readonly height: 12;
|
|
165
|
+
}];
|
|
166
|
+
};
|
|
167
|
+
}, {
|
|
168
|
+
readonly value: "natural";
|
|
169
|
+
readonly label: "Natural";
|
|
170
|
+
readonly description: "Keeps the image's own width and proportions.";
|
|
171
|
+
readonly diagram: {
|
|
172
|
+
readonly cells: readonly [{
|
|
173
|
+
readonly x: 0;
|
|
174
|
+
readonly y: 2;
|
|
175
|
+
readonly width: 6;
|
|
176
|
+
readonly height: 8;
|
|
177
|
+
}];
|
|
178
|
+
};
|
|
179
|
+
}];
|
|
180
|
+
};
|
|
181
|
+
} & import("../index.js").SelectFieldOptions<readonly ["fill", "natural"]>>;
|
|
182
|
+
readonly playback: import("../index.js").SelectFieldDefinition<readonly ["player", "ambient"], {
|
|
183
|
+
readonly options: readonly ["player", "ambient"];
|
|
184
|
+
readonly required: true;
|
|
185
|
+
readonly label: "Playback";
|
|
186
|
+
readonly description: "Ambient videos play muted and loop without controls.";
|
|
187
|
+
readonly presentation: {
|
|
188
|
+
readonly control: "cards";
|
|
189
|
+
readonly choices: readonly [{
|
|
190
|
+
readonly value: "player";
|
|
191
|
+
readonly label: "Player";
|
|
192
|
+
readonly description: "Visitors start the video.";
|
|
193
|
+
}, {
|
|
194
|
+
readonly value: "ambient";
|
|
195
|
+
readonly label: "Ambient";
|
|
196
|
+
readonly description: "Muted, looping, no controls; respects reduced motion.";
|
|
197
|
+
}];
|
|
198
|
+
};
|
|
199
|
+
readonly defaultValue: "ambient";
|
|
200
|
+
} & import("../index.js").SelectFieldOptions<readonly ["player", "ambient"]>>;
|
|
201
|
+
readonly aspectRatio: import("../index.js").SelectFieldDefinition<readonly ["16:9", "4:3", "1:1", "4:5", "9:16"], {
|
|
202
|
+
readonly options: readonly ["16:9", "4:3", "1:1", "4:5", "9:16"];
|
|
203
|
+
readonly required: true;
|
|
204
|
+
readonly defaultValue: "16:9";
|
|
205
|
+
readonly label: "Aspect ratio";
|
|
206
|
+
readonly description: "Reserves the video area before the player loads.";
|
|
207
|
+
readonly presentation: {
|
|
208
|
+
readonly control: "cards";
|
|
209
|
+
readonly choices: readonly [{
|
|
210
|
+
readonly value: "16:9";
|
|
211
|
+
readonly label: "16:9";
|
|
212
|
+
readonly description: "Wide landscape.";
|
|
213
|
+
readonly diagram: {
|
|
214
|
+
readonly cells: readonly [{
|
|
215
|
+
readonly x: 0;
|
|
216
|
+
readonly y: 2;
|
|
217
|
+
readonly width: 12;
|
|
218
|
+
readonly height: 7;
|
|
219
|
+
}];
|
|
220
|
+
};
|
|
221
|
+
}, {
|
|
222
|
+
readonly value: "4:3";
|
|
223
|
+
readonly label: "4:3";
|
|
224
|
+
readonly description: "Classic landscape.";
|
|
225
|
+
readonly diagram: {
|
|
226
|
+
readonly cells: readonly [{
|
|
227
|
+
readonly x: 0;
|
|
228
|
+
readonly y: 1;
|
|
229
|
+
readonly width: 12;
|
|
230
|
+
readonly height: 9;
|
|
231
|
+
}];
|
|
232
|
+
};
|
|
233
|
+
}, {
|
|
234
|
+
readonly value: "1:1";
|
|
235
|
+
readonly label: "1:1";
|
|
236
|
+
readonly description: "Square.";
|
|
237
|
+
readonly diagram: {
|
|
238
|
+
readonly cells: readonly [{
|
|
239
|
+
readonly x: 1;
|
|
240
|
+
readonly y: 1;
|
|
241
|
+
readonly width: 9;
|
|
242
|
+
readonly height: 9;
|
|
243
|
+
}];
|
|
244
|
+
};
|
|
245
|
+
}, {
|
|
246
|
+
readonly value: "4:5";
|
|
247
|
+
readonly label: "4:5";
|
|
248
|
+
readonly description: "Portrait.";
|
|
249
|
+
readonly diagram: {
|
|
250
|
+
readonly cells: readonly [{
|
|
251
|
+
readonly x: 2;
|
|
252
|
+
readonly y: 1;
|
|
253
|
+
readonly width: 8;
|
|
254
|
+
readonly height: 10;
|
|
255
|
+
}];
|
|
256
|
+
};
|
|
257
|
+
}, {
|
|
258
|
+
readonly value: "9:16";
|
|
259
|
+
readonly label: "9:16";
|
|
260
|
+
readonly description: "Tall portrait.";
|
|
261
|
+
readonly diagram: {
|
|
262
|
+
readonly cells: readonly [{
|
|
263
|
+
readonly x: 3;
|
|
264
|
+
readonly y: 0;
|
|
265
|
+
readonly width: 6;
|
|
266
|
+
readonly height: 11;
|
|
267
|
+
}];
|
|
268
|
+
};
|
|
269
|
+
}];
|
|
270
|
+
};
|
|
271
|
+
} & import("../index.js").SelectFieldOptions<readonly ["16:9", "4:3", "1:1", "4:5", "9:16"]>>;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
} & {
|
|
275
|
+
readonly minItems: 1;
|
|
276
|
+
} & {
|
|
277
|
+
readonly maxItems: 50;
|
|
278
|
+
} & {
|
|
279
|
+
readonly itemLabel: "caption";
|
|
280
|
+
};
|
|
281
|
+
readonly title: import("../index.js").TextFieldDefinition<{
|
|
282
|
+
readonly label: "Title";
|
|
283
|
+
}>;
|
|
284
|
+
}, {
|
|
285
|
+
readonly layoutMode: import("../index.js").SelectFieldDefinition<readonly ["flex-row", "flex-column", "grid"], {
|
|
286
|
+
readonly options: readonly ["flex-row", "flex-column", "grid"];
|
|
287
|
+
readonly required: true;
|
|
288
|
+
readonly defaultValue: "grid";
|
|
289
|
+
readonly label: "Arrangement";
|
|
290
|
+
readonly presentation: {
|
|
291
|
+
readonly control: "cards";
|
|
292
|
+
readonly choices: readonly [{
|
|
293
|
+
readonly value: "flex-row";
|
|
294
|
+
readonly label: "Horizontal";
|
|
295
|
+
readonly description: "Items flow across rows.";
|
|
296
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
297
|
+
}, {
|
|
298
|
+
readonly value: "flex-column";
|
|
299
|
+
readonly label: "Vertical";
|
|
300
|
+
readonly description: "Items flow down columns. Wrapping needs a height set in site CSS.";
|
|
301
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
302
|
+
}, {
|
|
303
|
+
readonly value: "grid";
|
|
304
|
+
readonly label: "Grid";
|
|
305
|
+
readonly description: "Items use the selected grid preset.";
|
|
306
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
307
|
+
}];
|
|
308
|
+
};
|
|
309
|
+
} & import("../index.js").SelectFieldOptions<readonly ["flex-row", "flex-column", "grid"]>>;
|
|
310
|
+
readonly layoutWrap: import("../index.js").BooleanFieldDefinition<{
|
|
311
|
+
readonly defaultValue: true;
|
|
312
|
+
readonly label: "Wrap items";
|
|
313
|
+
readonly description: "Applies to horizontal and vertical flex lists. Vertical wrapping requires a height set in site CSS.";
|
|
314
|
+
}>;
|
|
315
|
+
readonly layoutPreset: import("../index.js").SelectFieldDefinition<readonly ["auto", "columns-2", "columns-3", "columns-4", "narrow-wide", "wide-narrow"], {
|
|
316
|
+
readonly options: readonly ["auto", "columns-2", "columns-3", "columns-4", "narrow-wide", "wide-narrow"];
|
|
317
|
+
readonly required: true;
|
|
318
|
+
readonly defaultValue: "auto";
|
|
319
|
+
readonly label: "Grid preset";
|
|
320
|
+
readonly description: "Applies when Grid is selected. Schematics show composition; your site controls styling.";
|
|
321
|
+
readonly presentation: {
|
|
322
|
+
readonly control: "cards";
|
|
323
|
+
readonly choices: readonly [{
|
|
324
|
+
readonly value: "auto";
|
|
325
|
+
readonly label: "Auto";
|
|
326
|
+
readonly description: "As many equal columns as fit.";
|
|
327
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
328
|
+
}, {
|
|
329
|
+
readonly value: "columns-2";
|
|
330
|
+
readonly label: "Two columns";
|
|
331
|
+
readonly description: "Two equal columns from 32rem.";
|
|
332
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
333
|
+
}, {
|
|
334
|
+
readonly value: "columns-3";
|
|
335
|
+
readonly label: "Three columns";
|
|
336
|
+
readonly description: "Two from 32rem, three from 48rem.";
|
|
337
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
338
|
+
}, {
|
|
339
|
+
readonly value: "columns-4";
|
|
340
|
+
readonly label: "Four columns";
|
|
341
|
+
readonly description: "Two from 32rem, three from 48rem, four from 64rem.";
|
|
342
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
343
|
+
}, {
|
|
344
|
+
readonly value: "narrow-wide";
|
|
345
|
+
readonly label: "Narrow + wide";
|
|
346
|
+
readonly description: "Alternating 1:2 columns from 32rem.";
|
|
347
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
348
|
+
}, {
|
|
349
|
+
readonly value: "wide-narrow";
|
|
350
|
+
readonly label: "Wide + narrow";
|
|
351
|
+
readonly description: "Alternating 2:1 columns from 32rem.";
|
|
352
|
+
readonly diagram: import("../index.js").ChoiceDiagram;
|
|
353
|
+
}];
|
|
354
|
+
};
|
|
355
|
+
} & import("../index.js").SelectFieldOptions<readonly ["auto", "columns-2", "columns-3", "columns-4", "narrow-wide", "wide-narrow"]>>;
|
|
356
|
+
readonly lightbox: import("../index.js").BooleanFieldDefinition<{
|
|
357
|
+
readonly defaultValue: false;
|
|
358
|
+
readonly description: "Opens the original image full screen when it is selected.";
|
|
359
|
+
readonly label: "Open full screen";
|
|
360
|
+
}>;
|
|
361
|
+
}, undefined>;
|
|
362
|
+
hero: import("./types.js").BlockDefinition<{
|
|
363
|
+
readonly body: {
|
|
364
|
+
readonly required: false;
|
|
365
|
+
readonly type: "richText";
|
|
366
|
+
};
|
|
367
|
+
readonly eyebrow: {
|
|
368
|
+
readonly required: false;
|
|
369
|
+
readonly type: "text";
|
|
370
|
+
};
|
|
371
|
+
readonly heading: {
|
|
372
|
+
readonly required: true;
|
|
373
|
+
readonly type: "text";
|
|
374
|
+
};
|
|
375
|
+
readonly image: {
|
|
376
|
+
readonly required: false;
|
|
377
|
+
readonly type: "media";
|
|
378
|
+
};
|
|
379
|
+
readonly primaryActionLabel: {
|
|
380
|
+
readonly required: false;
|
|
381
|
+
readonly type: "text";
|
|
382
|
+
};
|
|
383
|
+
readonly primaryActionUrl: {
|
|
384
|
+
readonly required: false;
|
|
385
|
+
readonly type: "url";
|
|
386
|
+
};
|
|
387
|
+
}, Readonly<Record<never, import("../index.js").FieldDefinition>>, undefined>;
|
|
388
|
+
image: import("./types.js").BlockDefinition<{
|
|
389
|
+
readonly media: {
|
|
390
|
+
readonly required: true;
|
|
391
|
+
readonly type: "media";
|
|
392
|
+
};
|
|
393
|
+
readonly alt: {
|
|
394
|
+
readonly required: false;
|
|
395
|
+
readonly type: "text";
|
|
396
|
+
};
|
|
397
|
+
readonly caption: {
|
|
398
|
+
readonly required: false;
|
|
399
|
+
readonly type: "text";
|
|
400
|
+
};
|
|
401
|
+
readonly link: import("../index.js").UrlFieldDefinition<{
|
|
402
|
+
readonly description: "Selecting the image opens this link instead of the full-screen view.";
|
|
403
|
+
readonly label: "Link";
|
|
404
|
+
}>;
|
|
405
|
+
}, {
|
|
406
|
+
readonly lightbox: import("../index.js").BooleanFieldDefinition<{
|
|
407
|
+
readonly defaultValue: false;
|
|
408
|
+
readonly description: "Opens the original image full screen when it is selected.";
|
|
409
|
+
readonly label: "Open full screen";
|
|
410
|
+
}>;
|
|
411
|
+
}, undefined>;
|
|
412
|
+
link: import("./types.js").BlockDefinition<{
|
|
413
|
+
readonly label: import("../index.js").TextFieldDefinition<{
|
|
414
|
+
readonly label: "Label";
|
|
415
|
+
readonly minLength: 1;
|
|
416
|
+
readonly maxLength: 200;
|
|
417
|
+
readonly required: true;
|
|
418
|
+
}>;
|
|
419
|
+
readonly url: import("../index.js").UrlFieldDefinition<{
|
|
420
|
+
readonly label: "Destination";
|
|
421
|
+
readonly required: true;
|
|
422
|
+
}>;
|
|
423
|
+
}, {
|
|
424
|
+
readonly appearance: import("../index.js").SelectFieldDefinition<readonly ["button", "text"], {
|
|
425
|
+
readonly label: "Appearance";
|
|
426
|
+
readonly options: readonly ["button", "text"];
|
|
427
|
+
readonly defaultValue: "button";
|
|
428
|
+
readonly required: true;
|
|
429
|
+
} & import("../index.js").SelectFieldOptions<readonly ["button", "text"]>>;
|
|
430
|
+
readonly newTab: import("../index.js").BooleanFieldDefinition<{
|
|
431
|
+
readonly label: "Open in new tab";
|
|
432
|
+
readonly defaultValue: false;
|
|
433
|
+
readonly required: true;
|
|
434
|
+
}>;
|
|
435
|
+
}, undefined>;
|
|
436
|
+
navigation: import("./types.js").BlockDefinition<{
|
|
437
|
+
readonly links: {
|
|
438
|
+
readonly required: false;
|
|
439
|
+
readonly type: "list";
|
|
440
|
+
} & {
|
|
441
|
+
readonly defaultValue: readonly [];
|
|
442
|
+
} & {
|
|
443
|
+
readonly label: "Links";
|
|
444
|
+
} & {
|
|
445
|
+
readonly item: {
|
|
446
|
+
readonly required: false;
|
|
447
|
+
readonly type: "group";
|
|
448
|
+
} & {
|
|
449
|
+
readonly fields: {
|
|
450
|
+
readonly children: {
|
|
451
|
+
readonly required: false;
|
|
452
|
+
readonly type: "list";
|
|
453
|
+
} & {
|
|
454
|
+
readonly label: "Submenu links";
|
|
455
|
+
} & {
|
|
456
|
+
readonly item: {
|
|
457
|
+
readonly required: false;
|
|
458
|
+
readonly type: "group";
|
|
459
|
+
} & {
|
|
460
|
+
readonly fields: {
|
|
461
|
+
readonly label: import("../index.js").TextFieldDefinition<{
|
|
462
|
+
readonly label: "Label";
|
|
463
|
+
readonly required: true;
|
|
464
|
+
}>;
|
|
465
|
+
readonly url: import("../index.js").UrlFieldDefinition<{
|
|
466
|
+
readonly label: "URL";
|
|
467
|
+
readonly required: true;
|
|
468
|
+
}>;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
} & {
|
|
472
|
+
readonly maxItems: 20;
|
|
473
|
+
} & {
|
|
474
|
+
readonly itemLabel: "label";
|
|
475
|
+
};
|
|
476
|
+
readonly label: import("../index.js").TextFieldDefinition<{
|
|
477
|
+
readonly label: "Label";
|
|
478
|
+
readonly required: true;
|
|
479
|
+
}>;
|
|
480
|
+
readonly url: import("../index.js").UrlFieldDefinition<{
|
|
481
|
+
readonly description: "Optional when the link has submenu links.";
|
|
482
|
+
readonly label: "URL";
|
|
483
|
+
}>;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
} & {
|
|
487
|
+
readonly minItems: 1;
|
|
488
|
+
} & {
|
|
489
|
+
readonly maxItems: 20;
|
|
490
|
+
} & {
|
|
491
|
+
readonly itemLabel: "label";
|
|
492
|
+
};
|
|
493
|
+
readonly name: import("../index.js").TextFieldDefinition<{
|
|
494
|
+
readonly description: "Read by screen readers, for example Main or On this page.";
|
|
495
|
+
readonly label: "Navigation name";
|
|
496
|
+
}>;
|
|
497
|
+
}, Readonly<Record<never, import("../index.js").FieldDefinition>>, undefined>;
|
|
498
|
+
quote: import("./types.js").BlockDefinition<{
|
|
499
|
+
readonly attribution: {
|
|
500
|
+
readonly required: false;
|
|
501
|
+
readonly type: "text";
|
|
502
|
+
};
|
|
503
|
+
readonly quote: {
|
|
504
|
+
readonly required: true;
|
|
505
|
+
readonly type: "text";
|
|
506
|
+
};
|
|
507
|
+
}, Readonly<Record<never, import("../index.js").FieldDefinition>>, undefined>;
|
|
508
|
+
richText: import("./types.js").BlockDefinition<{
|
|
509
|
+
readonly content: {
|
|
510
|
+
readonly required: true;
|
|
511
|
+
readonly type: "richText";
|
|
512
|
+
};
|
|
513
|
+
}, Readonly<Record<never, import("../index.js").FieldDefinition>>, undefined>;
|
|
514
|
+
videoEmbed: import("./types.js").BlockDefinition<{
|
|
515
|
+
readonly url: import("../index.js").UrlFieldDefinition<{
|
|
516
|
+
readonly required: true;
|
|
517
|
+
readonly embedProviders: readonly import("../fields/video-embeds.js").EmbedProvider[];
|
|
518
|
+
readonly label: "Video URL";
|
|
519
|
+
readonly description: "Paste a YouTube or Vimeo video link, not iframe code.";
|
|
520
|
+
}>;
|
|
521
|
+
readonly title: import("../index.js").TextFieldDefinition<{
|
|
522
|
+
readonly required: true;
|
|
523
|
+
readonly minLength: 1;
|
|
524
|
+
readonly label: "Title";
|
|
525
|
+
readonly description: "Names the video for visitors using assistive technology.";
|
|
526
|
+
}>;
|
|
527
|
+
readonly poster: import("../index.js").MediaFieldDefinition<{
|
|
528
|
+
readonly label: "Preview image";
|
|
529
|
+
readonly description: "Optional. Defers player loading until selected in Player mode; stays underneath Ambient playback.";
|
|
530
|
+
}>;
|
|
531
|
+
readonly caption: import("../index.js").TextFieldDefinition<{
|
|
532
|
+
readonly label: "Caption";
|
|
533
|
+
}>;
|
|
534
|
+
}, {
|
|
535
|
+
readonly aspectRatio: import("../index.js").SelectFieldDefinition<readonly ["16:9", "4:3", "1:1", "4:5", "9:16"], {
|
|
536
|
+
readonly options: readonly ["16:9", "4:3", "1:1", "4:5", "9:16"];
|
|
537
|
+
readonly required: true;
|
|
538
|
+
readonly defaultValue: "16:9";
|
|
539
|
+
readonly label: "Aspect ratio";
|
|
540
|
+
readonly description: "Reserves the video area before the player loads.";
|
|
541
|
+
readonly presentation: {
|
|
542
|
+
readonly control: "cards";
|
|
543
|
+
readonly choices: readonly [{
|
|
544
|
+
readonly value: "16:9";
|
|
545
|
+
readonly label: "16:9";
|
|
546
|
+
readonly description: "Wide landscape.";
|
|
547
|
+
readonly diagram: {
|
|
548
|
+
readonly cells: readonly [{
|
|
549
|
+
readonly x: 0;
|
|
550
|
+
readonly y: 2;
|
|
551
|
+
readonly width: 12;
|
|
552
|
+
readonly height: 7;
|
|
553
|
+
}];
|
|
554
|
+
};
|
|
555
|
+
}, {
|
|
556
|
+
readonly value: "4:3";
|
|
557
|
+
readonly label: "4:3";
|
|
558
|
+
readonly description: "Classic landscape.";
|
|
559
|
+
readonly diagram: {
|
|
560
|
+
readonly cells: readonly [{
|
|
561
|
+
readonly x: 0;
|
|
562
|
+
readonly y: 1;
|
|
563
|
+
readonly width: 12;
|
|
564
|
+
readonly height: 9;
|
|
565
|
+
}];
|
|
566
|
+
};
|
|
567
|
+
}, {
|
|
568
|
+
readonly value: "1:1";
|
|
569
|
+
readonly label: "1:1";
|
|
570
|
+
readonly description: "Square.";
|
|
571
|
+
readonly diagram: {
|
|
572
|
+
readonly cells: readonly [{
|
|
573
|
+
readonly x: 1;
|
|
574
|
+
readonly y: 1;
|
|
575
|
+
readonly width: 9;
|
|
576
|
+
readonly height: 9;
|
|
577
|
+
}];
|
|
578
|
+
};
|
|
579
|
+
}, {
|
|
580
|
+
readonly value: "4:5";
|
|
581
|
+
readonly label: "4:5";
|
|
582
|
+
readonly description: "Portrait.";
|
|
583
|
+
readonly diagram: {
|
|
584
|
+
readonly cells: readonly [{
|
|
585
|
+
readonly x: 2;
|
|
586
|
+
readonly y: 1;
|
|
587
|
+
readonly width: 8;
|
|
588
|
+
readonly height: 10;
|
|
589
|
+
}];
|
|
590
|
+
};
|
|
591
|
+
}, {
|
|
592
|
+
readonly value: "9:16";
|
|
593
|
+
readonly label: "9:16";
|
|
594
|
+
readonly description: "Tall portrait.";
|
|
595
|
+
readonly diagram: {
|
|
596
|
+
readonly cells: readonly [{
|
|
597
|
+
readonly x: 3;
|
|
598
|
+
readonly y: 0;
|
|
599
|
+
readonly width: 6;
|
|
600
|
+
readonly height: 11;
|
|
601
|
+
}];
|
|
602
|
+
};
|
|
603
|
+
}];
|
|
604
|
+
};
|
|
605
|
+
} & import("../index.js").SelectFieldOptions<readonly ["16:9", "4:3", "1:1", "4:5", "9:16"]>>;
|
|
606
|
+
readonly playback: import("../index.js").SelectFieldDefinition<readonly ["player", "ambient"], {
|
|
607
|
+
readonly options: readonly ["player", "ambient"];
|
|
608
|
+
readonly required: true;
|
|
609
|
+
readonly label: "Playback";
|
|
610
|
+
readonly description: "Ambient videos play muted and loop without controls.";
|
|
611
|
+
readonly presentation: {
|
|
612
|
+
readonly control: "cards";
|
|
613
|
+
readonly choices: readonly [{
|
|
614
|
+
readonly value: "player";
|
|
615
|
+
readonly label: "Player";
|
|
616
|
+
readonly description: "Visitors start the video.";
|
|
617
|
+
}, {
|
|
618
|
+
readonly value: "ambient";
|
|
619
|
+
readonly label: "Ambient";
|
|
620
|
+
readonly description: "Muted, looping, no controls; respects reduced motion.";
|
|
621
|
+
}];
|
|
622
|
+
};
|
|
623
|
+
readonly defaultValue: "player";
|
|
624
|
+
} & import("../index.js").SelectFieldOptions<readonly ["player", "ambient"]>>;
|
|
625
|
+
}, undefined>;
|
|
626
|
+
};
|
|
627
|
+
//# sourceMappingURL=built-ins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-ins.d.ts","sourceRoot":"","sources":["../../src/blocks/built-ins.ts"],"names":[],"mappings":"AAiHA,qFAAqF;AACrF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAlDd,QAAQ,EAAE,SAAS;;wCAEtB,UAAU;8CACJ,sDAAsD;;qCAEjE,OAAO,EAAE,OAAO;qCAChB,OAAO;yCACH,KAAK,EAAE,QAAQ;yCAAE,KAAK,EAAE,QAAQ;yCAAE,WAAW,EAAE,2BAA2B;;yCAE1E,KAAK,EAAE,SAAS;yCAChB,KAAK,EAAE,SAAS;yCAChB,WAAW,EAAE,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAXhE,QAAQ,EAAE,SAAS;;4BAEtB,UAAU;kCACJ,sDAAsD;;yBAEjE,OAAO,EAAE,OAAO;yBAChB,OAAO;6BACH,KAAK,EAAE,QAAQ;6BAAE,KAAK,EAAE,QAAQ;6BAAE,WAAW,EAAE,2BAA2B;;6BAE1E,KAAK,EAAE,SAAS;6BAChB,KAAK,EAAE,SAAS;6BAChB,WAAW,EAAE,uDAAuD;;;;;;CAgR1E,CAAC"}
|