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