@prismicio/types-internal 2.0.0-beta.0 → 2.1.0-alpha.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.
Files changed (166) hide show
  1. package/lib/common/WidgetKey.d.ts +1 -1
  2. package/lib/common/WidgetKey.js +1 -1
  3. package/lib/common/index.js +1 -1
  4. package/lib/content/Document.d.ts +20 -100
  5. package/lib/content/Document.js +1 -1
  6. package/lib/content/LegacyContentCtx.d.ts +2 -2
  7. package/lib/content/LegacyContentCtx.js +1 -1
  8. package/lib/content/fields/EmptyContent.d.ts +1 -1
  9. package/lib/content/fields/EmptyContent.js +1 -1
  10. package/lib/content/fields/GroupContent.d.ts +8 -28
  11. package/lib/content/fields/GroupContent.js +1 -1
  12. package/lib/content/fields/UIDContent.d.ts +1 -1
  13. package/lib/content/fields/UIDContent.js +1 -1
  14. package/lib/content/fields/WidgetContent.d.ts +18 -98
  15. package/lib/content/fields/WidgetContent.js +1 -1
  16. package/lib/content/fields/index.js +6 -6
  17. package/lib/content/fields/nestable/BooleanContent.d.ts +1 -1
  18. package/lib/content/fields/nestable/BooleanContent.js +1 -1
  19. package/lib/content/fields/nestable/EmbedContent.d.ts +2 -2
  20. package/lib/content/fields/nestable/EmbedContent.js +1 -1
  21. package/lib/content/fields/nestable/FieldContent/ColorContent.d.ts +1 -1
  22. package/lib/content/fields/nestable/FieldContent/ColorContent.js +2 -2
  23. package/lib/content/fields/nestable/FieldContent/DateContent.d.ts +1 -1
  24. package/lib/content/fields/nestable/FieldContent/DateContent.js +2 -2
  25. package/lib/content/fields/nestable/FieldContent/NumberContent.d.ts +1 -1
  26. package/lib/content/fields/nestable/FieldContent/NumberContent.js +2 -2
  27. package/lib/content/fields/nestable/FieldContent/RangeContent.d.ts +1 -1
  28. package/lib/content/fields/nestable/FieldContent/RangeContent.js +2 -2
  29. package/lib/content/fields/nestable/FieldContent/SelectContent.d.ts +1 -1
  30. package/lib/content/fields/nestable/FieldContent/SelectContent.js +2 -2
  31. package/lib/content/fields/nestable/FieldContent/TextContent.d.ts +1 -1
  32. package/lib/content/fields/nestable/FieldContent/TextContent.js +2 -2
  33. package/lib/content/fields/nestable/FieldContent/TimestampContent.d.ts +1 -1
  34. package/lib/content/fields/nestable/FieldContent/TimestampContent.js +2 -2
  35. package/lib/content/fields/nestable/FieldContent/index.d.ts +2 -2
  36. package/lib/content/fields/nestable/FieldContent/index.js +9 -9
  37. package/lib/content/fields/nestable/GeoPointContent.d.ts +1 -1
  38. package/lib/content/fields/nestable/GeoPointContent.js +1 -1
  39. package/lib/content/fields/nestable/ImageContent.d.ts +2 -2
  40. package/lib/content/fields/nestable/ImageContent.js +1 -1
  41. package/lib/content/fields/nestable/IntegrationFieldContent.d.ts +1 -1
  42. package/lib/content/fields/nestable/IntegrationFieldContent.js +1 -1
  43. package/lib/content/fields/nestable/LinkContent.d.ts +6 -6
  44. package/lib/content/fields/nestable/LinkContent.js +1 -1
  45. package/lib/content/fields/nestable/NestableContent.d.ts +4 -14
  46. package/lib/content/fields/nestable/NestableContent.js +1 -1
  47. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +11 -31
  48. package/lib/content/fields/nestable/RichTextContent/Blocks.js +15 -11
  49. package/lib/content/fields/nestable/RichTextContent/index.d.ts +3 -13
  50. package/lib/content/fields/nestable/RichTextContent/index.js +3 -3
  51. package/lib/content/fields/nestable/SeparatorContent.d.ts +1 -1
  52. package/lib/content/fields/nestable/SeparatorContent.js +1 -1
  53. package/lib/content/fields/nestable/index.js +10 -10
  54. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +5 -25
  55. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +1 -1
  56. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -12
  57. package/lib/content/fields/slices/Slice/RepeatableContent.js +1 -1
  58. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +5 -25
  59. package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
  60. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +279 -27
  61. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +6 -2
  62. package/lib/content/fields/slices/Slice/index.d.ts +285 -73
  63. package/lib/content/fields/slices/Slice/index.js +4 -4
  64. package/lib/content/fields/slices/SliceItem.d.ts +13 -73
  65. package/lib/content/fields/slices/SliceItem.js +1 -1
  66. package/lib/content/fields/slices/SlicesContent.d.ts +14 -74
  67. package/lib/content/fields/slices/SlicesContent.js +1 -1
  68. package/lib/content/fields/slices/index.js +3 -3
  69. package/lib/content/index.js +3 -3
  70. package/lib/content/utils.d.ts +2 -2
  71. package/lib/content/utils.js +2 -1
  72. package/lib/customtypes/CustomType.d.ts +210 -16
  73. package/lib/customtypes/CustomType.js +7 -2
  74. package/lib/customtypes/Section.d.ts +198 -16
  75. package/lib/customtypes/Section.js +1 -1
  76. package/lib/customtypes/diff/Changes.d.ts +4 -4
  77. package/lib/customtypes/diff/SharedSlice.d.ts +723 -3
  78. package/lib/customtypes/diff/Variation.d.ts +709 -3
  79. package/lib/customtypes/diff/index.js +3 -3
  80. package/lib/customtypes/index.js +4 -4
  81. package/lib/customtypes/widgets/Group.d.ts +56 -4
  82. package/lib/customtypes/widgets/Group.js +1 -1
  83. package/lib/customtypes/widgets/UID.d.ts +2 -2
  84. package/lib/customtypes/widgets/UID.js +1 -1
  85. package/lib/customtypes/widgets/Widget.d.ts +305 -19
  86. package/lib/customtypes/widgets/Widget.js +1 -1
  87. package/lib/customtypes/widgets/index.js +6 -6
  88. package/lib/customtypes/widgets/nestable/BooleanField.d.ts +2 -2
  89. package/lib/customtypes/widgets/nestable/BooleanField.js +1 -1
  90. package/lib/customtypes/widgets/nestable/Color.d.ts +2 -2
  91. package/lib/customtypes/widgets/nestable/Color.js +1 -1
  92. package/lib/customtypes/widgets/nestable/Date.d.ts +2 -2
  93. package/lib/customtypes/widgets/nestable/Date.js +1 -1
  94. package/lib/customtypes/widgets/nestable/Embed.d.ts +2 -2
  95. package/lib/customtypes/widgets/nestable/Embed.js +1 -1
  96. package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +2 -2
  97. package/lib/customtypes/widgets/nestable/GeoPoint.js +1 -1
  98. package/lib/customtypes/widgets/nestable/Image.d.ts +3 -3
  99. package/lib/customtypes/widgets/nestable/Image.js +2 -2
  100. package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +2 -2
  101. package/lib/customtypes/widgets/nestable/IntegrationField.js +1 -1
  102. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.d.ts +29 -0
  103. package/lib/customtypes/widgets/nestable/Link/ContentRelationshipResolver.js +44 -0
  104. package/lib/customtypes/widgets/nestable/Link/index.d.ts +82 -0
  105. package/lib/customtypes/widgets/nestable/{Link.js → Link/index.js} +5 -3
  106. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +29 -3
  107. package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
  108. package/lib/customtypes/widgets/nestable/Number.d.ts +2 -2
  109. package/lib/customtypes/widgets/nestable/Number.js +1 -1
  110. package/lib/customtypes/widgets/nestable/Range.d.ts +2 -2
  111. package/lib/customtypes/widgets/nestable/Range.js +1 -1
  112. package/lib/customtypes/widgets/nestable/RichText.d.ts +3 -3
  113. package/lib/customtypes/widgets/nestable/RichText.js +2 -2
  114. package/lib/customtypes/widgets/nestable/Select.d.ts +2 -2
  115. package/lib/customtypes/widgets/nestable/Select.js +1 -1
  116. package/lib/customtypes/widgets/nestable/Separator.d.ts +2 -2
  117. package/lib/customtypes/widgets/nestable/Separator.js +1 -1
  118. package/lib/customtypes/widgets/nestable/Text.d.ts +2 -2
  119. package/lib/customtypes/widgets/nestable/Text.js +1 -1
  120. package/lib/customtypes/widgets/nestable/Timestamp.d.ts +2 -2
  121. package/lib/customtypes/widgets/nestable/Timestamp.js +1 -1
  122. package/lib/customtypes/widgets/nestable/index.js +16 -16
  123. package/lib/customtypes/widgets/shared/ImageConstraint.d.ts +1 -1
  124. package/lib/customtypes/widgets/shared/ImageConstraint.js +1 -1
  125. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +56 -4
  126. package/lib/customtypes/widgets/slices/CompositeSlice.js +1 -1
  127. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +55 -3
  128. package/lib/customtypes/widgets/slices/LegacySlice.js +1 -1
  129. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +110 -6
  130. package/lib/customtypes/widgets/slices/SharedSlice.js +1 -1
  131. package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +1 -1
  132. package/lib/customtypes/widgets/slices/SharedSliceRef.js +1 -1
  133. package/lib/customtypes/widgets/slices/Slice.d.ts +2 -2
  134. package/lib/customtypes/widgets/slices/Slices.d.ts +497 -29
  135. package/lib/customtypes/widgets/slices/Slices.js +1 -1
  136. package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +1 -1
  137. package/lib/customtypes/widgets/slices/SlicesTypes.js +1 -1
  138. package/lib/customtypes/widgets/slices/index.js +7 -7
  139. package/lib/utils/index.js +2 -2
  140. package/lib/validators/DateFromString.js +1 -1
  141. package/lib/validators/DateFromStringOrNumber.js +1 -1
  142. package/lib/validators/DateFromTsMs.js +1 -1
  143. package/lib/validators/IntFromNumber.d.ts +2 -2
  144. package/lib/validators/IntFromNumber.js +1 -1
  145. package/lib/validators/IntFromPixels.d.ts +2 -2
  146. package/lib/validators/IntFromPixels.js +1 -1
  147. package/lib/validators/NonEmptyString.js +1 -1
  148. package/lib/validators/NonEmptyStringOrNull.js +1 -1
  149. package/lib/validators/NumberOrNull.js +1 -1
  150. package/lib/validators/StringFromBoolean.d.ts +2 -2
  151. package/lib/validators/StringFromBoolean.js +1 -1
  152. package/lib/validators/StringFromNumber.d.ts +2 -2
  153. package/lib/validators/StringFromNumber.js +1 -1
  154. package/lib/validators/StringOrNull.js +1 -1
  155. package/lib/validators/TrimmedString.d.ts +2 -2
  156. package/lib/validators/TrimmedString.js +1 -1
  157. package/lib/validators/function.js +1 -1
  158. package/lib/validators/index.js +12 -12
  159. package/package.json +1 -1
  160. package/src/content/fields/nestable/RichTextContent/Blocks.ts +31 -23
  161. package/src/content/fields/nestable/RichTextContent/index.ts +1 -3
  162. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +4 -1
  163. package/src/customtypes/CustomType.ts +6 -0
  164. package/src/customtypes/widgets/nestable/Link/ContentRelationshipResolver.ts +69 -0
  165. package/src/customtypes/widgets/nestable/{Link.ts → Link/index.ts} +5 -2
  166. package/lib/customtypes/widgets/nestable/Link.d.ts +0 -29
@@ -1,11 +1,717 @@
1
1
  import type { NestableWidget } from "../widgets/nestable";
2
2
  import type { Variation } from "../widgets/slices";
3
3
  import { type DiffChange } from "./Changes";
4
- export type VariationMetadata = Omit<Variation, "primary" | "items">;
5
- export type VariationDiff = DiffChange<Variation, Partial<VariationMetadata> & {
4
+ export declare type VariationMetadata = Omit<Variation, "primary" | "items">;
5
+ export declare type VariationDiff = DiffChange<Variation, Partial<VariationMetadata> & {
6
6
  primary?: Record<string, DiffChange<NestableWidget, NestableWidget>>;
7
7
  items?: Record<string, DiffChange<NestableWidget, NestableWidget>>;
8
8
  }>;
9
9
  export declare const VariationComparator: {
10
- compare(variationA?: Variation, variationB?: Variation): VariationDiff | undefined;
10
+ compare(variationA?: ({
11
+ id: string;
12
+ name: string;
13
+ description: string;
14
+ imageUrl: string;
15
+ docURL: string;
16
+ version: string;
17
+ } & {
18
+ display?: string;
19
+ primary?: {
20
+ [x: string]: ({
21
+ type: "Boolean";
22
+ } & {
23
+ config?: {
24
+ label?: string | null | undefined;
25
+ default_value?: boolean;
26
+ placeholder_true?: string;
27
+ placeholder_false?: string;
28
+ };
29
+ }) | ({
30
+ type: "Color";
31
+ } & {
32
+ fieldset?: string | null | undefined;
33
+ config?: {
34
+ label?: string | null | undefined;
35
+ placeholder?: string;
36
+ };
37
+ }) | ({
38
+ type: "Date";
39
+ } & {
40
+ fieldset?: string | null | undefined;
41
+ config?: {
42
+ label?: string | null | undefined;
43
+ placeholder?: string;
44
+ default?: string;
45
+ };
46
+ }) | ({
47
+ type: "Embed";
48
+ } & {
49
+ fieldset?: string | null | undefined;
50
+ config?: {
51
+ label?: string | null | undefined;
52
+ placeholder?: string;
53
+ useAsTitle?: boolean;
54
+ };
55
+ }) | ({
56
+ type: "GeoPoint";
57
+ } & {
58
+ fieldset?: string | null | undefined;
59
+ config?: {
60
+ label?: string | null | undefined;
61
+ };
62
+ }) | ({
63
+ type: "Image";
64
+ } & {
65
+ fieldset?: string | null | undefined;
66
+ config?: {
67
+ label?: string | null | undefined;
68
+ placeholder?: string;
69
+ constraint?: {
70
+ width?: number | null;
71
+ height?: number | null;
72
+ };
73
+ thumbnails?: readonly ({
74
+ name: string;
75
+ } & {
76
+ width?: number | null;
77
+ height?: number | null;
78
+ })[];
79
+ };
80
+ }) | ({
81
+ type: "IntegrationFields";
82
+ } & {
83
+ fieldset?: string | null | undefined;
84
+ config?: {
85
+ label?: string | null | undefined;
86
+ placeholder?: string;
87
+ catalog?: string;
88
+ };
89
+ }) | ({
90
+ type: "Link";
91
+ } & {
92
+ fieldset?: string | null | undefined;
93
+ config?: {
94
+ label?: string | null | undefined;
95
+ useAsTitle?: boolean;
96
+ placeholder?: string;
97
+ select?: "media" | "document" | "web" | null;
98
+ customtypes?: readonly ({
99
+ customTypeId: string;
100
+ } & {
101
+ fields?: readonly ({
102
+ fieldId: string;
103
+ } & {
104
+ customTypes?: readonly {
105
+ customTypeId: string;
106
+ fields: readonly {
107
+ fieldId: string;
108
+ }[];
109
+ }[];
110
+ })[];
111
+ })[];
112
+ masks?: readonly string[];
113
+ tags?: readonly string[];
114
+ allowTargetBlank?: boolean;
115
+ };
116
+ }) | ({
117
+ type: "Number";
118
+ } & {
119
+ fieldset?: string | null | undefined;
120
+ config?: {
121
+ label?: string | null | undefined;
122
+ placeholder?: string;
123
+ min?: number;
124
+ max?: number;
125
+ step?: number;
126
+ };
127
+ }) | ({
128
+ type: "Range";
129
+ } & {
130
+ fieldset?: string | null | undefined;
131
+ config?: {
132
+ label?: string | null | undefined;
133
+ placeholder?: string;
134
+ min?: number;
135
+ max?: number;
136
+ step?: number;
137
+ };
138
+ }) | ({
139
+ type: "StructuredText";
140
+ } & {
141
+ fieldset?: string | null | undefined;
142
+ config?: {
143
+ label?: string | null | undefined;
144
+ placeholder?: string;
145
+ useAsTitle?: boolean;
146
+ single?: string;
147
+ multi?: string;
148
+ imageConstraint?: {
149
+ width?: number | null;
150
+ height?: number | null;
151
+ };
152
+ labels?: readonly string[];
153
+ allowTargetBlank?: boolean;
154
+ };
155
+ }) | ({
156
+ type: "Select";
157
+ } & {
158
+ fieldset?: string | null | undefined;
159
+ config?: {
160
+ label?: string | null | undefined;
161
+ placeholder?: string;
162
+ default_value?: string;
163
+ options?: readonly string[];
164
+ };
165
+ }) | ({
166
+ type: "Separator";
167
+ } & {
168
+ config?: {
169
+ label?: string | null | undefined;
170
+ };
171
+ }) | ({
172
+ type: "Text";
173
+ } & {
174
+ fieldset?: string | null | undefined;
175
+ config?: {
176
+ label?: string | null | undefined;
177
+ useAsTitle?: boolean;
178
+ placeholder?: string;
179
+ };
180
+ }) | ({
181
+ type: "Timestamp";
182
+ } & {
183
+ fieldset?: string | null | undefined;
184
+ config?: {
185
+ label?: string | null | undefined;
186
+ placeholder?: string;
187
+ default?: string;
188
+ };
189
+ });
190
+ };
191
+ items?: {
192
+ [x: string]: ({
193
+ type: "Boolean";
194
+ } & {
195
+ config?: {
196
+ label?: string | null | undefined;
197
+ default_value?: boolean;
198
+ placeholder_true?: string;
199
+ placeholder_false?: string;
200
+ };
201
+ }) | ({
202
+ type: "Color";
203
+ } & {
204
+ fieldset?: string | null | undefined;
205
+ config?: {
206
+ label?: string | null | undefined;
207
+ placeholder?: string;
208
+ };
209
+ }) | ({
210
+ type: "Date";
211
+ } & {
212
+ fieldset?: string | null | undefined;
213
+ config?: {
214
+ label?: string | null | undefined;
215
+ placeholder?: string;
216
+ default?: string;
217
+ };
218
+ }) | ({
219
+ type: "Embed";
220
+ } & {
221
+ fieldset?: string | null | undefined;
222
+ config?: {
223
+ label?: string | null | undefined;
224
+ placeholder?: string;
225
+ useAsTitle?: boolean;
226
+ };
227
+ }) | ({
228
+ type: "GeoPoint";
229
+ } & {
230
+ fieldset?: string | null | undefined;
231
+ config?: {
232
+ label?: string | null | undefined;
233
+ };
234
+ }) | ({
235
+ type: "Image";
236
+ } & {
237
+ fieldset?: string | null | undefined;
238
+ config?: {
239
+ label?: string | null | undefined;
240
+ placeholder?: string;
241
+ constraint?: {
242
+ width?: number | null;
243
+ height?: number | null;
244
+ };
245
+ thumbnails?: readonly ({
246
+ name: string;
247
+ } & {
248
+ width?: number | null;
249
+ height?: number | null;
250
+ })[];
251
+ };
252
+ }) | ({
253
+ type: "IntegrationFields";
254
+ } & {
255
+ fieldset?: string | null | undefined;
256
+ config?: {
257
+ label?: string | null | undefined;
258
+ placeholder?: string;
259
+ catalog?: string;
260
+ };
261
+ }) | ({
262
+ type: "Link";
263
+ } & {
264
+ fieldset?: string | null | undefined;
265
+ config?: {
266
+ label?: string | null | undefined;
267
+ useAsTitle?: boolean;
268
+ placeholder?: string;
269
+ select?: "media" | "document" | "web" | null;
270
+ customtypes?: readonly ({
271
+ customTypeId: string;
272
+ } & {
273
+ fields?: readonly ({
274
+ fieldId: string;
275
+ } & {
276
+ customTypes?: readonly {
277
+ customTypeId: string;
278
+ fields: readonly {
279
+ fieldId: string;
280
+ }[];
281
+ }[];
282
+ })[];
283
+ })[];
284
+ masks?: readonly string[];
285
+ tags?: readonly string[];
286
+ allowTargetBlank?: boolean;
287
+ };
288
+ }) | ({
289
+ type: "Number";
290
+ } & {
291
+ fieldset?: string | null | undefined;
292
+ config?: {
293
+ label?: string | null | undefined;
294
+ placeholder?: string;
295
+ min?: number;
296
+ max?: number;
297
+ step?: number;
298
+ };
299
+ }) | ({
300
+ type: "Range";
301
+ } & {
302
+ fieldset?: string | null | undefined;
303
+ config?: {
304
+ label?: string | null | undefined;
305
+ placeholder?: string;
306
+ min?: number;
307
+ max?: number;
308
+ step?: number;
309
+ };
310
+ }) | ({
311
+ type: "StructuredText";
312
+ } & {
313
+ fieldset?: string | null | undefined;
314
+ config?: {
315
+ label?: string | null | undefined;
316
+ placeholder?: string;
317
+ useAsTitle?: boolean;
318
+ single?: string;
319
+ multi?: string;
320
+ imageConstraint?: {
321
+ width?: number | null;
322
+ height?: number | null;
323
+ };
324
+ labels?: readonly string[];
325
+ allowTargetBlank?: boolean;
326
+ };
327
+ }) | ({
328
+ type: "Select";
329
+ } & {
330
+ fieldset?: string | null | undefined;
331
+ config?: {
332
+ label?: string | null | undefined;
333
+ placeholder?: string;
334
+ default_value?: string;
335
+ options?: readonly string[];
336
+ };
337
+ }) | ({
338
+ type: "Separator";
339
+ } & {
340
+ config?: {
341
+ label?: string | null | undefined;
342
+ };
343
+ }) | ({
344
+ type: "Text";
345
+ } & {
346
+ fieldset?: string | null | undefined;
347
+ config?: {
348
+ label?: string | null | undefined;
349
+ useAsTitle?: boolean;
350
+ placeholder?: string;
351
+ };
352
+ }) | ({
353
+ type: "Timestamp";
354
+ } & {
355
+ fieldset?: string | null | undefined;
356
+ config?: {
357
+ label?: string | null | undefined;
358
+ placeholder?: string;
359
+ default?: string;
360
+ };
361
+ });
362
+ };
363
+ }) | undefined, variationB?: ({
364
+ id: string;
365
+ name: string;
366
+ description: string;
367
+ imageUrl: string;
368
+ docURL: string;
369
+ version: string;
370
+ } & {
371
+ display?: string;
372
+ primary?: {
373
+ [x: string]: ({
374
+ type: "Boolean";
375
+ } & {
376
+ config?: {
377
+ label?: string | null | undefined;
378
+ default_value?: boolean;
379
+ placeholder_true?: string;
380
+ placeholder_false?: string;
381
+ };
382
+ }) | ({
383
+ type: "Color";
384
+ } & {
385
+ fieldset?: string | null | undefined;
386
+ config?: {
387
+ label?: string | null | undefined;
388
+ placeholder?: string;
389
+ };
390
+ }) | ({
391
+ type: "Date";
392
+ } & {
393
+ fieldset?: string | null | undefined;
394
+ config?: {
395
+ label?: string | null | undefined;
396
+ placeholder?: string;
397
+ default?: string;
398
+ };
399
+ }) | ({
400
+ type: "Embed";
401
+ } & {
402
+ fieldset?: string | null | undefined;
403
+ config?: {
404
+ label?: string | null | undefined;
405
+ placeholder?: string;
406
+ useAsTitle?: boolean;
407
+ };
408
+ }) | ({
409
+ type: "GeoPoint";
410
+ } & {
411
+ fieldset?: string | null | undefined;
412
+ config?: {
413
+ label?: string | null | undefined;
414
+ };
415
+ }) | ({
416
+ type: "Image";
417
+ } & {
418
+ fieldset?: string | null | undefined;
419
+ config?: {
420
+ label?: string | null | undefined;
421
+ placeholder?: string;
422
+ constraint?: {
423
+ width?: number | null;
424
+ height?: number | null;
425
+ };
426
+ thumbnails?: readonly ({
427
+ name: string;
428
+ } & {
429
+ width?: number | null;
430
+ height?: number | null;
431
+ })[];
432
+ };
433
+ }) | ({
434
+ type: "IntegrationFields";
435
+ } & {
436
+ fieldset?: string | null | undefined;
437
+ config?: {
438
+ label?: string | null | undefined;
439
+ placeholder?: string;
440
+ catalog?: string;
441
+ };
442
+ }) | ({
443
+ type: "Link";
444
+ } & {
445
+ fieldset?: string | null | undefined;
446
+ config?: {
447
+ label?: string | null | undefined;
448
+ useAsTitle?: boolean;
449
+ placeholder?: string;
450
+ select?: "media" | "document" | "web" | null;
451
+ customtypes?: readonly ({
452
+ customTypeId: string;
453
+ } & {
454
+ fields?: readonly ({
455
+ fieldId: string;
456
+ } & {
457
+ customTypes?: readonly {
458
+ customTypeId: string;
459
+ fields: readonly {
460
+ fieldId: string;
461
+ }[];
462
+ }[];
463
+ })[];
464
+ })[];
465
+ masks?: readonly string[];
466
+ tags?: readonly string[];
467
+ allowTargetBlank?: boolean;
468
+ };
469
+ }) | ({
470
+ type: "Number";
471
+ } & {
472
+ fieldset?: string | null | undefined;
473
+ config?: {
474
+ label?: string | null | undefined;
475
+ placeholder?: string;
476
+ min?: number;
477
+ max?: number;
478
+ step?: number;
479
+ };
480
+ }) | ({
481
+ type: "Range";
482
+ } & {
483
+ fieldset?: string | null | undefined;
484
+ config?: {
485
+ label?: string | null | undefined;
486
+ placeholder?: string;
487
+ min?: number;
488
+ max?: number;
489
+ step?: number;
490
+ };
491
+ }) | ({
492
+ type: "StructuredText";
493
+ } & {
494
+ fieldset?: string | null | undefined;
495
+ config?: {
496
+ label?: string | null | undefined;
497
+ placeholder?: string;
498
+ useAsTitle?: boolean;
499
+ single?: string;
500
+ multi?: string;
501
+ imageConstraint?: {
502
+ width?: number | null;
503
+ height?: number | null;
504
+ };
505
+ labels?: readonly string[];
506
+ allowTargetBlank?: boolean;
507
+ };
508
+ }) | ({
509
+ type: "Select";
510
+ } & {
511
+ fieldset?: string | null | undefined;
512
+ config?: {
513
+ label?: string | null | undefined;
514
+ placeholder?: string;
515
+ default_value?: string;
516
+ options?: readonly string[];
517
+ };
518
+ }) | ({
519
+ type: "Separator";
520
+ } & {
521
+ config?: {
522
+ label?: string | null | undefined;
523
+ };
524
+ }) | ({
525
+ type: "Text";
526
+ } & {
527
+ fieldset?: string | null | undefined;
528
+ config?: {
529
+ label?: string | null | undefined;
530
+ useAsTitle?: boolean;
531
+ placeholder?: string;
532
+ };
533
+ }) | ({
534
+ type: "Timestamp";
535
+ } & {
536
+ fieldset?: string | null | undefined;
537
+ config?: {
538
+ label?: string | null | undefined;
539
+ placeholder?: string;
540
+ default?: string;
541
+ };
542
+ });
543
+ };
544
+ items?: {
545
+ [x: string]: ({
546
+ type: "Boolean";
547
+ } & {
548
+ config?: {
549
+ label?: string | null | undefined;
550
+ default_value?: boolean;
551
+ placeholder_true?: string;
552
+ placeholder_false?: string;
553
+ };
554
+ }) | ({
555
+ type: "Color";
556
+ } & {
557
+ fieldset?: string | null | undefined;
558
+ config?: {
559
+ label?: string | null | undefined;
560
+ placeholder?: string;
561
+ };
562
+ }) | ({
563
+ type: "Date";
564
+ } & {
565
+ fieldset?: string | null | undefined;
566
+ config?: {
567
+ label?: string | null | undefined;
568
+ placeholder?: string;
569
+ default?: string;
570
+ };
571
+ }) | ({
572
+ type: "Embed";
573
+ } & {
574
+ fieldset?: string | null | undefined;
575
+ config?: {
576
+ label?: string | null | undefined;
577
+ placeholder?: string;
578
+ useAsTitle?: boolean;
579
+ };
580
+ }) | ({
581
+ type: "GeoPoint";
582
+ } & {
583
+ fieldset?: string | null | undefined;
584
+ config?: {
585
+ label?: string | null | undefined;
586
+ };
587
+ }) | ({
588
+ type: "Image";
589
+ } & {
590
+ fieldset?: string | null | undefined;
591
+ config?: {
592
+ label?: string | null | undefined;
593
+ placeholder?: string;
594
+ constraint?: {
595
+ width?: number | null;
596
+ height?: number | null;
597
+ };
598
+ thumbnails?: readonly ({
599
+ name: string;
600
+ } & {
601
+ width?: number | null;
602
+ height?: number | null;
603
+ })[];
604
+ };
605
+ }) | ({
606
+ type: "IntegrationFields";
607
+ } & {
608
+ fieldset?: string | null | undefined;
609
+ config?: {
610
+ label?: string | null | undefined;
611
+ placeholder?: string;
612
+ catalog?: string;
613
+ };
614
+ }) | ({
615
+ type: "Link";
616
+ } & {
617
+ fieldset?: string | null | undefined;
618
+ config?: {
619
+ label?: string | null | undefined;
620
+ useAsTitle?: boolean;
621
+ placeholder?: string;
622
+ select?: "media" | "document" | "web" | null;
623
+ customtypes?: readonly ({
624
+ customTypeId: string;
625
+ } & {
626
+ fields?: readonly ({
627
+ fieldId: string;
628
+ } & {
629
+ customTypes?: readonly {
630
+ customTypeId: string;
631
+ fields: readonly {
632
+ fieldId: string;
633
+ }[];
634
+ }[];
635
+ })[];
636
+ })[];
637
+ masks?: readonly string[];
638
+ tags?: readonly string[];
639
+ allowTargetBlank?: boolean;
640
+ };
641
+ }) | ({
642
+ type: "Number";
643
+ } & {
644
+ fieldset?: string | null | undefined;
645
+ config?: {
646
+ label?: string | null | undefined;
647
+ placeholder?: string;
648
+ min?: number;
649
+ max?: number;
650
+ step?: number;
651
+ };
652
+ }) | ({
653
+ type: "Range";
654
+ } & {
655
+ fieldset?: string | null | undefined;
656
+ config?: {
657
+ label?: string | null | undefined;
658
+ placeholder?: string;
659
+ min?: number;
660
+ max?: number;
661
+ step?: number;
662
+ };
663
+ }) | ({
664
+ type: "StructuredText";
665
+ } & {
666
+ fieldset?: string | null | undefined;
667
+ config?: {
668
+ label?: string | null | undefined;
669
+ placeholder?: string;
670
+ useAsTitle?: boolean;
671
+ single?: string;
672
+ multi?: string;
673
+ imageConstraint?: {
674
+ width?: number | null;
675
+ height?: number | null;
676
+ };
677
+ labels?: readonly string[];
678
+ allowTargetBlank?: boolean;
679
+ };
680
+ }) | ({
681
+ type: "Select";
682
+ } & {
683
+ fieldset?: string | null | undefined;
684
+ config?: {
685
+ label?: string | null | undefined;
686
+ placeholder?: string;
687
+ default_value?: string;
688
+ options?: readonly string[];
689
+ };
690
+ }) | ({
691
+ type: "Separator";
692
+ } & {
693
+ config?: {
694
+ label?: string | null | undefined;
695
+ };
696
+ }) | ({
697
+ type: "Text";
698
+ } & {
699
+ fieldset?: string | null | undefined;
700
+ config?: {
701
+ label?: string | null | undefined;
702
+ useAsTitle?: boolean;
703
+ placeholder?: string;
704
+ };
705
+ }) | ({
706
+ type: "Timestamp";
707
+ } & {
708
+ fieldset?: string | null | undefined;
709
+ config?: {
710
+ label?: string | null | undefined;
711
+ placeholder?: string;
712
+ default?: string;
713
+ };
714
+ });
715
+ };
716
+ }) | undefined): VariationDiff | undefined;
11
717
  };