@prismicio/types-internal 2.5.0 → 2.6.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.
@@ -1,2156 +1,12 @@
1
1
  import * as t from "io-ts";
2
- import type { ContentPath, TraverseWidgetContentFn } from "../../../../_internal/utils";
3
- import type { NestableWidget, NestedGroup } from "../../../../customtypes";
4
- import { LegacyContentCtx, WithTypes } from "../../../LegacyContentCtx";
5
- /**
6
- * This is essentially a copy of `GroupItemContent` that doesn't support
7
- * nested groups to keep accurate content types for legacy slice.
8
- */
9
- declare const RepeatableWidgetItemContent: t.ExactC<t.TypeC<{
10
- __TYPE__: t.LiteralC<"GroupItemContent">;
11
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
12
- type: t.StringC;
13
- __TYPE__: t.LiteralC<"EmptyContent">;
14
- }>>, t.ExactC<t.TypeC<{
15
- __TYPE__: t.LiteralC<"BooleanContent">;
16
- value: t.BooleanC;
17
- }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
18
- embed_url: t.StringC;
19
- type: t.StringC;
20
- }>, t.PartialC<{
21
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
22
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
23
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
24
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
25
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
26
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
27
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
28
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
29
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
30
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
31
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
32
- }>]>>, t.ExactC<t.TypeC<{
33
- __TYPE__: t.LiteralC<"EmbedContent">;
34
- all: t.UnknownC;
35
- }>>]>, t.ExactC<t.TypeC<{
36
- type: t.LiteralC<"Text">;
37
- value: t.Type<string, string, unknown>;
38
- __TYPE__: t.LiteralC<"FieldContent">;
39
- }>>, t.ExactC<t.TypeC<{
40
- type: t.LiteralC<"Timestamp">;
41
- value: t.Type<string, string, unknown>;
42
- __TYPE__: t.LiteralC<"FieldContent">;
43
- }>>, t.ExactC<t.TypeC<{
44
- type: t.LiteralC<"Select">;
45
- value: t.Type<string, string, unknown>;
46
- __TYPE__: t.LiteralC<"FieldContent">;
47
- }>>, t.ExactC<t.TypeC<{
48
- type: t.LiteralC<"Range">;
49
- /**
50
- * This is essentially a copy of `GroupItemLegacy` that doesn't support
51
- * nested groups to keep accurate content types for legacy slice.
52
- */
53
- value: t.Type<string, string, unknown>;
54
- __TYPE__: t.LiteralC<"FieldContent">;
55
- }>>, t.ExactC<t.TypeC<{
56
- type: t.LiteralC<"Number">;
57
- value: t.Type<string, string, unknown>;
58
- __TYPE__: t.LiteralC<"FieldContent">;
59
- }>>, t.ExactC<t.TypeC<{
60
- type: t.LiteralC<"Date">;
61
- value: t.Type<string, string, unknown>;
62
- __TYPE__: t.LiteralC<"FieldContent">;
63
- }>>, t.ExactC<t.TypeC<{
64
- type: t.LiteralC<"Color">;
65
- /**
66
- * This is essentially a copy of `GroupItemLegacy` that doesn't support
67
- * nested groups to keep accurate content types for legacy slice.
68
- */
69
- value: t.Type<string, string, unknown>;
70
- __TYPE__: t.LiteralC<"FieldContent">;
71
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
72
- position: t.ExactC<t.TypeC<{
73
- lat: t.NumberC;
74
- lng: t.NumberC;
75
- }>>;
76
- }>>, t.ExactC<t.TypeC<{
77
- __TYPE__: t.LiteralC<"GeoPointContent">;
78
- }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
79
- origin: t.ExactC<t.TypeC<{
80
- id: t.StringC;
81
- url: t.StringC;
82
- width: t.NumberC;
83
- height: t.NumberC;
84
- }>>;
85
- width: t.NumberC;
86
- height: t.NumberC;
87
- edit: t.TypeC<{
88
- zoom: t.NumberC;
89
- crop: t.TypeC<{
90
- x: t.NumberC;
91
- y: t.NumberC;
92
- }>;
93
- background: t.StringC;
94
- }>;
95
- }>, t.PartialC<{
96
- url: t.StringC;
97
- credits: t.Type<string | null, string | null, unknown>;
98
- alt: t.Type<string | null, string | null, unknown>;
99
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
100
- }>]>>, t.PartialC<{
101
- thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
102
- origin: t.ExactC<t.TypeC<{
103
- id: t.StringC;
104
- url: t.StringC;
105
- width: t.NumberC;
106
- height: t.NumberC;
107
- }>>;
108
- width: t.NumberC;
109
- height: t.NumberC;
110
- edit: t.TypeC<{
111
- zoom: t.NumberC;
112
- crop: t.TypeC<{
113
- x: t.NumberC;
114
- y: t.NumberC;
115
- }>;
116
- background: t.StringC;
117
- }>;
118
- }>, t.PartialC<{
119
- url: t.StringC;
120
- credits: t.Type<string | null, string | null, unknown>;
121
- alt: t.Type<string | null, string | null, unknown>;
122
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
123
- }>]>>>;
124
- }>]>, t.ExactC<t.TypeC<{
125
- __TYPE__: t.LiteralC<"ImageContent">;
126
- }>>]>, t.ExactC<t.TypeC<{
127
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
128
- value: t.StringC;
129
- }>>, t.ExactC<t.TypeC<{
130
- __TYPE__: t.LiteralC<"LinkContent">;
131
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
132
- __TYPE__: t.LiteralC<"ImageLink">;
133
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
134
- id: t.StringC;
135
- url: t.StringC;
136
- height: t.StringC;
137
- width: t.StringC;
138
- size: t.StringC;
139
- name: t.StringC;
140
- kind: t.StringC;
141
- }>, t.PartialC<{
142
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
143
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
144
- id: t.StringC;
145
- url: t.StringC;
146
- name: t.StringC;
147
- kind: t.StringC;
148
- size: t.StringC;
149
- }>, t.PartialC<{
150
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
151
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
152
- __TYPE__: t.LiteralC<"FileLink">;
153
- }>, t.PartialC<{
154
- size: t.StringC;
155
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
156
- __TYPE__: t.LiteralC<"DocumentLink">;
157
- }>>, t.ExactC<t.TypeC<{
158
- id: t.Type<string, string, unknown>;
159
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
160
- __TYPE__: t.LiteralC<"ExternalLink">;
161
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
162
- url: t.StringC;
163
- }>, t.PartialC<{
164
- kind: t.LiteralC<"web">;
165
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
166
- preview: t.UnionC<[t.Type<{
167
- title?: string;
168
- }, {
169
- title?: string;
170
- }, unknown>, t.NullC, t.UndefinedC]>;
171
- }>]>>]>]>;
172
- }>>, t.ExactC<t.TypeC<{
173
- __TYPE__: t.LiteralC<"StructuredTextContent">;
174
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
175
- type: t.LiteralC<"image">;
176
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
177
- origin: t.ExactC<t.TypeC<{
178
- id: t.StringC;
179
- url: t.StringC;
180
- width: t.NumberC;
181
- height: t.NumberC;
182
- }>>;
183
- width: t.NumberC;
184
- height: t.NumberC;
185
- edit: t.TypeC<{
186
- zoom: t.NumberC;
187
- crop: t.TypeC<{
188
- x: t.NumberC;
189
- y: t.NumberC;
190
- }>;
191
- background: t.StringC;
192
- }>;
193
- }>, t.PartialC<{
194
- url: t.StringC;
195
- credits: t.Type<string | null, string | null, unknown>;
196
- alt: t.Type<string | null, string | null, unknown>;
197
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
198
- }>]>>, t.PartialC<{
199
- linkTo: t.UnionC<[t.Type<({
200
- __TYPE__: "ImageLink";
201
- } & {
202
- id: string;
203
- url: string;
204
- height: string;
205
- width: string;
206
- size: string;
207
- name: string;
208
- kind: string;
209
- } & {
210
- date?: string | null | undefined;
211
- }) | ({
212
- id: string;
213
- url: string;
214
- name: string;
215
- kind: string;
216
- size: string;
217
- } & {
218
- date?: string | null | undefined;
219
- } & {
220
- __TYPE__: "FileLink";
221
- } & {
222
- size?: string;
223
- }) | ({
224
- __TYPE__: "DocumentLink";
225
- } & {
226
- id: string;
227
- }) | ({
228
- __TYPE__: "ExternalLink";
229
- } & {
230
- url: string;
231
- } & {
232
- kind?: "web";
233
- target?: string | null | undefined;
234
- preview?: {
235
- title?: string;
236
- } | null | undefined;
237
- }), ({
238
- __TYPE__: "ImageLink";
239
- } & {
240
- id: string;
241
- url: string;
242
- height: string;
243
- width: string;
244
- size: string;
245
- name: string;
246
- kind: string;
247
- } & {
248
- date?: string | null | undefined;
249
- }) | ({
250
- id: string;
251
- url: string;
252
- name: string;
253
- kind: string;
254
- size: string;
255
- } & {
256
- date?: string | null | undefined;
257
- } & {
258
- __TYPE__: "FileLink";
259
- } & {
260
- size?: string;
261
- }) | ({
262
- __TYPE__: "DocumentLink";
263
- } & {
264
- id: string;
265
- }) | ({
266
- __TYPE__: "ExternalLink";
267
- } & {
268
- url: string;
269
- } & {
270
- kind?: "web";
271
- target?: string | null | undefined;
272
- preview?: {
273
- title?: string;
274
- } | null | undefined;
275
- }), unknown>, t.NullC, t.UndefinedC]>;
276
- }>]>;
277
- }>, t.PartialC<{
278
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
279
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
280
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
281
- type: t.LiteralC<"embed">;
282
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
283
- embed_url: t.StringC;
284
- type: t.StringC;
285
- }>, t.PartialC<{
286
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
287
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
288
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
289
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
290
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
291
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
292
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
293
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
294
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
295
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
296
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
297
- }>]>>, t.ExactC<t.TypeC<{
298
- __TYPE__: t.LiteralC<"EmbedContent">;
299
- all: t.UnknownC;
300
- }>>]>;
301
- }>, t.PartialC<{
302
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
303
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
304
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
305
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
306
- content: t.IntersectionC<[t.TypeC<{
307
- text: t.StringC;
308
- }>, t.PartialC<{
309
- spans: t.Type<({
310
- data: ({
311
- __TYPE__: "ImageLink";
312
- } & {
313
- id: string;
314
- url: string;
315
- height: string;
316
- width: string;
317
- size: string;
318
- name: string;
319
- kind: string;
320
- } & {
321
- date?: string | null | undefined;
322
- }) | ({
323
- id: string;
324
- url: string;
325
- name: string;
326
- kind: string;
327
- size: string;
328
- } & {
329
- date?: string | null | undefined;
330
- } & {
331
- __TYPE__: "FileLink";
332
- } & {
333
- size?: string;
334
- }) | ({
335
- __TYPE__: "DocumentLink";
336
- } & {
337
- id: string;
338
- }) | ({
339
- __TYPE__: "ExternalLink";
340
- } & {
341
- url: string;
342
- } & {
343
- kind?: "web";
344
- target?: string | null | undefined;
345
- preview?: {
346
- title?: string;
347
- } | null | undefined;
348
- });
349
- start: number;
350
- end: number;
351
- type: "hyperlink";
352
- } | {
353
- data: string;
354
- start: number;
355
- end: number;
356
- type: "label";
357
- } | {
358
- start: number;
359
- end: number;
360
- type: "strong" | "em" | "list-item";
361
- })[], ({
362
- data: ({
363
- __TYPE__: "ImageLink";
364
- } & {
365
- id: string;
366
- url: string;
367
- height: string;
368
- width: string;
369
- size: string;
370
- name: string;
371
- kind: string;
372
- } & {
373
- date?: string | null | undefined;
374
- }) | ({
375
- id: string;
376
- url: string;
377
- name: string;
378
- kind: string;
379
- size: string;
380
- } & {
381
- date?: string | null | undefined;
382
- } & {
383
- __TYPE__: "FileLink";
384
- } & {
385
- size?: string;
386
- }) | ({
387
- __TYPE__: "DocumentLink";
388
- } & {
389
- id: string;
390
- }) | ({
391
- __TYPE__: "ExternalLink";
392
- } & {
393
- url: string;
394
- } & {
395
- kind?: "web";
396
- target?: string | null | undefined;
397
- preview?: {
398
- title?: string;
399
- } | null | undefined;
400
- });
401
- start: number;
402
- end: number;
403
- type: "hyperlink";
404
- } | {
405
- data: string;
406
- start: number;
407
- end: number;
408
- type: "label";
409
- } | {
410
- start: number;
411
- end: number;
412
- type: "strong" | "em" | "list-item";
413
- })[], unknown>;
414
- }>]>;
415
- }>, t.PartialC<{
416
- label: t.StringC;
417
- direction: t.StringC;
418
- }>]>>]>>;
419
- }>>, t.ExactC<t.TypeC<{
420
- __TYPE__: t.LiteralC<"SeparatorContent">;
421
- }>>]>]>>;
422
- }>>;
423
- export declare type RepeatableWidgetItemContent = t.TypeOf<typeof RepeatableWidgetItemContent>;
424
- declare const itemLegacyReader: t.RecordC<t.StringC, t.UnknownC>;
425
- declare type RepeatableWidgetItemLegacy = t.TypeOf<typeof itemLegacyReader>;
426
- /**
427
- * This is essentially a copy of `GroupItemLegacy` that doesn't support
428
- * nested groups to keep accurate content types for legacy slice.
429
- */
430
- declare const RepeatableWidgetItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
431
- __TYPE__: "GroupItemContent";
432
- value: [string, {
433
- type: string;
434
- __TYPE__: "EmptyContent";
435
- } | {
436
- __TYPE__: "BooleanContent";
437
- value: boolean;
438
- } | ({
439
- embed_url: string;
440
- type: string;
441
- } & {
442
- version?: string | number | null;
443
- title?: string | null | undefined;
444
- author_name?: string | null | undefined;
445
- author_url?: string | null | undefined;
446
- provider_name?: string | null | undefined;
447
- provider_url?: string | null | undefined;
448
- cache_age?: string | number | null;
449
- thumbnail_url?: string | null | undefined;
450
- thumbnail_width?: number | null | undefined;
451
- thumbnail_height?: number | null | undefined;
452
- html?: string | null | undefined;
453
- } & {
454
- __TYPE__: "EmbedContent";
455
- all: unknown;
456
- }) | {
457
- type: "Color";
458
- value: string;
459
- __TYPE__: "FieldContent";
460
- } | {
461
- type: "Date";
462
- value: string;
463
- __TYPE__: "FieldContent";
464
- } | {
465
- type: "Number";
466
- value: string;
467
- __TYPE__: "FieldContent";
468
- } | {
469
- type: "Range";
470
- value: string;
471
- __TYPE__: "FieldContent";
472
- } | {
473
- type: "Select";
474
- value: string;
475
- __TYPE__: "FieldContent";
476
- } | {
477
- type: "Text";
478
- value: string;
479
- __TYPE__: "FieldContent";
480
- } | {
481
- type: "Timestamp";
482
- value: string;
483
- __TYPE__: "FieldContent";
484
- } | ({
485
- position: {
486
- lat: number;
487
- lng: number;
488
- };
489
- } & {
490
- __TYPE__: "GeoPointContent";
491
- }) | ({
492
- origin: {
493
- id: string;
494
- url: string;
495
- width: number;
496
- height: number;
497
- };
498
- width: number;
499
- height: number;
500
- edit: {
501
- zoom: number;
502
- crop: {
503
- x: number;
504
- y: number;
505
- };
506
- background: string;
507
- };
508
- } & {
509
- url?: string;
510
- credits?: string | null;
511
- alt?: string | null;
512
- provider?: string | null | undefined;
513
- } & {
514
- thumbnails?: {
515
- [x: string]: {
516
- origin: {
517
- id: string;
518
- url: string;
519
- width: number;
520
- height: number;
521
- };
522
- width: number;
523
- height: number;
524
- edit: {
525
- zoom: number;
526
- crop: {
527
- x: number;
528
- y: number;
529
- };
530
- background: string;
531
- };
532
- } & {
533
- url?: string;
534
- credits?: string | null;
535
- alt?: string | null;
536
- provider?: string | null | undefined;
537
- };
538
- };
539
- } & {
540
- __TYPE__: "ImageContent";
541
- }) | {
542
- __TYPE__: "IntegrationFieldsContent";
543
- value: string;
544
- } | {
545
- __TYPE__: "LinkContent";
546
- value: ({
547
- __TYPE__: "ImageLink";
548
- } & {
549
- id: string;
550
- url: string;
551
- height: string;
552
- width: string;
553
- size: string;
554
- name: string;
555
- kind: string;
556
- } & {
557
- date?: string | null | undefined;
558
- }) | ({
559
- id: string;
560
- url: string;
561
- name: string;
562
- kind: string;
563
- size: string;
564
- } & {
565
- date?: string | null | undefined;
566
- } & {
567
- __TYPE__: "FileLink";
568
- } & {
569
- size?: string;
570
- }) | ({
571
- __TYPE__: "DocumentLink";
572
- } & {
573
- id: string;
574
- }) | ({
575
- __TYPE__: "ExternalLink";
576
- } & {
577
- url: string;
578
- } & {
579
- kind?: "web";
580
- target?: string | null | undefined;
581
- preview?: {
582
- title?: string;
583
- } | null | undefined;
584
- });
585
- } | {
586
- __TYPE__: "StructuredTextContent";
587
- value: (({
588
- type: "image";
589
- data: {
590
- origin: {
591
- id: string;
592
- url: string;
593
- width: number;
594
- height: number;
595
- };
596
- width: number;
597
- height: number;
598
- edit: {
599
- zoom: number;
600
- crop: {
601
- x: number;
602
- y: number;
603
- };
604
- background: string;
605
- };
606
- } & {
607
- url?: string;
608
- credits?: string | null;
609
- alt?: string | null;
610
- provider?: string | null | undefined;
611
- } & {
612
- linkTo?: ({
613
- __TYPE__: "ImageLink";
614
- } & {
615
- id: string;
616
- url: string;
617
- height: string;
618
- width: string;
619
- size: string;
620
- name: string;
621
- kind: string;
622
- } & {
623
- date?: string | null | undefined;
624
- }) | ({
625
- id: string;
626
- url: string;
627
- name: string;
628
- kind: string;
629
- size: string;
630
- } & {
631
- date?: string | null | undefined;
632
- } & {
633
- __TYPE__: "FileLink";
634
- } & {
635
- size?: string;
636
- }) | ({
637
- __TYPE__: "DocumentLink";
638
- } & {
639
- id: string;
640
- }) | ({
641
- __TYPE__: "ExternalLink";
642
- } & {
643
- url: string;
644
- } & {
645
- kind?: "web";
646
- target?: string | null | undefined;
647
- preview?: {
648
- title?: string;
649
- } | null | undefined;
650
- }) | null | undefined;
651
- };
652
- } & {
653
- label?: string | null | undefined;
654
- direction?: string | null | undefined;
655
- }) | ({
656
- type: "embed";
657
- data: {
658
- embed_url: string;
659
- type: string;
660
- } & {
661
- version?: string | number | null;
662
- title?: string | null | undefined;
663
- author_name?: string | null | undefined;
664
- author_url?: string | null | undefined;
665
- provider_name?: string | null | undefined;
666
- provider_url?: string | null | undefined;
667
- cache_age?: string | number | null;
668
- thumbnail_url?: string | null | undefined;
669
- thumbnail_width?: number | null | undefined;
670
- thumbnail_height?: number | null | undefined;
671
- html?: string | null | undefined;
672
- } & {
673
- __TYPE__: "EmbedContent";
674
- all: unknown;
675
- };
676
- } & {
677
- label?: string | null | undefined;
678
- direction?: string | null | undefined;
679
- }) | ({
680
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
681
- content: {
682
- text: string;
683
- } & {
684
- spans?: ({
685
- data: ({
686
- __TYPE__: "ImageLink";
687
- } & {
688
- id: string;
689
- url: string;
690
- height: string;
691
- width: string;
692
- size: string;
693
- name: string;
694
- kind: string;
695
- } & {
696
- date?: string | null | undefined;
697
- }) | ({
698
- id: string;
699
- url: string;
700
- name: string;
701
- kind: string;
702
- size: string;
703
- } & {
704
- date?: string | null | undefined;
705
- } & {
706
- __TYPE__: "FileLink";
707
- } & {
708
- size?: string;
709
- }) | ({
710
- __TYPE__: "DocumentLink";
711
- } & {
712
- id: string;
713
- }) | ({
714
- __TYPE__: "ExternalLink";
715
- } & {
716
- url: string;
717
- } & {
718
- kind?: "web";
719
- target?: string | null | undefined;
720
- preview?: {
721
- title?: string;
722
- } | null | undefined;
723
- });
724
- start: number;
725
- end: number;
726
- type: "hyperlink";
727
- } | {
728
- data: string;
729
- start: number;
730
- end: number;
731
- type: "label";
732
- } | {
733
- start: number;
734
- end: number;
735
- type: "strong" | "em" | "list-item";
736
- })[];
737
- };
738
- } & {
739
- label?: string;
740
- direction?: string;
741
- }))[];
742
- } | {
743
- __TYPE__: "SeparatorContent";
744
- }][];
745
- }, WithTypes<{
746
- [x: string]: unknown;
747
- }>, unknown>;
748
- /**
749
- * This is essentially a copy of `GroupLegacy` that doesn't support
750
- * nested groups to keep accurate content types for legacy slice.
751
- */
752
- declare type RepeatableWidgetLegacy = Array<RepeatableWidgetItemLegacy>;
753
- export declare const RepeatableWidgetLegacy: (ctx: LegacyContentCtx) => t.Type<{
754
- __TYPE__: "GroupContentType";
755
- value: {
756
- __TYPE__: "GroupItemContent";
757
- value: [string, {
758
- type: string;
759
- __TYPE__: "EmptyContent";
760
- } | {
761
- __TYPE__: "BooleanContent";
762
- value: boolean;
763
- } | ({
764
- embed_url: string;
765
- type: string;
766
- } & {
767
- version?: string | number | null;
768
- title?: string | null | undefined;
769
- author_name?: string | null | undefined;
770
- author_url?: string | null | undefined;
771
- provider_name?: string | null | undefined;
772
- provider_url?: string | null | undefined;
773
- cache_age?: string | number | null;
774
- thumbnail_url?: string | null | undefined;
775
- thumbnail_width?: number | null | undefined;
776
- thumbnail_height?: number | null | undefined;
777
- html?: string | null | undefined;
778
- } & {
779
- __TYPE__: "EmbedContent";
780
- all: unknown;
781
- }) | {
782
- type: "Color";
783
- value: string;
784
- __TYPE__: "FieldContent";
785
- } | {
786
- type: "Date";
787
- value: string;
788
- __TYPE__: "FieldContent";
789
- } | {
790
- type: "Number";
791
- value: string;
792
- __TYPE__: "FieldContent";
793
- } | {
794
- type: "Range";
795
- value: string;
796
- __TYPE__: "FieldContent";
797
- } | {
798
- type: "Select";
799
- value: string;
800
- __TYPE__: "FieldContent";
801
- } | {
802
- type: "Text";
803
- value: string;
804
- __TYPE__: "FieldContent";
805
- } | {
806
- type: "Timestamp";
807
- value: string;
808
- __TYPE__: "FieldContent";
809
- } | ({
810
- position: {
811
- lat: number;
812
- lng: number;
813
- };
814
- } & {
815
- __TYPE__: "GeoPointContent";
816
- }) | ({
817
- origin: {
818
- id: string;
819
- url: string;
820
- width: number;
821
- height: number;
822
- };
823
- width: number;
824
- height: number;
825
- edit: {
826
- zoom: number;
827
- crop: {
828
- x: number;
829
- y: number;
830
- };
831
- background: string;
832
- };
833
- } & {
834
- url?: string;
835
- credits?: string | null;
836
- alt?: string | null;
837
- provider?: string | null | undefined;
838
- } & {
839
- thumbnails?: {
840
- [x: string]: {
841
- origin: {
842
- id: string;
843
- url: string;
844
- width: number;
845
- height: number;
846
- };
847
- width: number;
848
- height: number;
849
- edit: {
850
- zoom: number;
851
- crop: {
852
- x: number;
853
- y: number;
854
- };
855
- background: string;
856
- };
857
- } & {
858
- url?: string;
859
- credits?: string | null;
860
- alt?: string | null;
861
- provider?: string | null | undefined;
862
- };
863
- };
864
- } & {
865
- __TYPE__: "ImageContent";
866
- }) | {
867
- __TYPE__: "IntegrationFieldsContent";
868
- value: string;
869
- } | {
870
- __TYPE__: "LinkContent";
871
- value: ({
872
- __TYPE__: "ImageLink";
873
- } & {
874
- id: string;
875
- url: string;
876
- height: string;
877
- width: string;
878
- size: string;
879
- name: string;
880
- kind: string;
881
- } & {
882
- date?: string | null | undefined;
883
- }) | ({
884
- id: string;
885
- url: string;
886
- name: string;
887
- kind: string;
888
- size: string;
889
- } & {
890
- date?: string | null | undefined;
891
- } & {
892
- __TYPE__: "FileLink";
893
- } & {
894
- size?: string;
895
- }) | ({
896
- __TYPE__: "DocumentLink";
897
- } & {
898
- id: string;
899
- }) | ({
900
- __TYPE__: "ExternalLink";
901
- } & {
902
- url: string;
903
- } & {
904
- kind?: "web";
905
- target?: string | null | undefined;
906
- preview?: {
907
- title?: string;
908
- } | null | undefined;
909
- });
910
- } | {
911
- __TYPE__: "StructuredTextContent";
912
- value: (({
913
- type: "image";
914
- data: {
915
- origin: {
916
- id: string;
917
- url: string;
918
- width: number;
919
- height: number;
920
- };
921
- width: number;
922
- height: number;
923
- edit: {
924
- zoom: number;
925
- crop: {
926
- x: number;
927
- y: number;
928
- };
929
- background: string;
930
- };
931
- } & {
932
- url?: string;
933
- credits?: string | null;
934
- alt?: string | null;
935
- provider?: string | null | undefined;
936
- } & {
937
- linkTo?: ({
938
- __TYPE__: "ImageLink";
939
- } & {
940
- id: string;
941
- url: string;
942
- height: string;
943
- width: string;
944
- size: string;
945
- name: string;
946
- kind: string;
947
- } & {
948
- date?: string | null | undefined;
949
- }) | ({
950
- id: string;
951
- url: string;
952
- name: string;
953
- kind: string;
954
- size: string;
955
- } & {
956
- date?: string | null | undefined;
957
- } & {
958
- __TYPE__: "FileLink";
959
- } & {
960
- size?: string;
961
- }) | ({
962
- __TYPE__: "DocumentLink";
963
- } & {
964
- id: string;
965
- }) | ({
966
- __TYPE__: "ExternalLink";
967
- } & {
968
- url: string;
969
- } & {
970
- kind?: "web";
971
- target?: string | null | undefined;
972
- preview?: {
973
- title?: string;
974
- } | null | undefined;
975
- }) | null | undefined;
976
- };
977
- } & {
978
- label?: string | null | undefined;
979
- direction?: string | null | undefined;
980
- }) | ({
981
- type: "embed";
982
- data: {
983
- embed_url: string;
984
- type: string;
985
- } & {
986
- version?: string | number | null;
987
- title?: string | null | undefined;
988
- author_name?: string | null | undefined;
989
- author_url?: string | null | undefined;
990
- provider_name?: string | null | undefined;
991
- provider_url?: string | null | undefined;
992
- cache_age?: string | number | null;
993
- thumbnail_url?: string | null | undefined;
994
- thumbnail_width?: number | null | undefined;
995
- thumbnail_height?: number | null | undefined;
996
- html?: string | null | undefined;
997
- } & {
998
- __TYPE__: "EmbedContent";
999
- all: unknown;
1000
- };
1001
- } & {
1002
- label?: string | null | undefined;
1003
- direction?: string | null | undefined;
1004
- }) | ({
1005
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1006
- content: {
1007
- text: string;
1008
- } & {
1009
- spans?: ({
1010
- data: ({
1011
- __TYPE__: "ImageLink";
1012
- } & {
1013
- id: string;
1014
- url: string;
1015
- height: string;
1016
- width: string;
1017
- size: string;
1018
- name: string;
1019
- kind: string;
1020
- } & {
1021
- date?: string | null | undefined;
1022
- }) | ({
1023
- id: string;
1024
- url: string;
1025
- name: string;
1026
- kind: string;
1027
- size: string;
1028
- } & {
1029
- date?: string | null | undefined;
1030
- } & {
1031
- __TYPE__: "FileLink";
1032
- } & {
1033
- size?: string;
1034
- }) | ({
1035
- __TYPE__: "DocumentLink";
1036
- } & {
1037
- id: string;
1038
- }) | ({
1039
- __TYPE__: "ExternalLink";
1040
- } & {
1041
- url: string;
1042
- } & {
1043
- kind?: "web";
1044
- target?: string | null | undefined;
1045
- preview?: {
1046
- title?: string;
1047
- } | null | undefined;
1048
- });
1049
- start: number;
1050
- end: number;
1051
- type: "hyperlink";
1052
- } | {
1053
- data: string;
1054
- start: number;
1055
- end: number;
1056
- type: "label";
1057
- } | {
1058
- start: number;
1059
- end: number;
1060
- type: "strong" | "em" | "list-item";
1061
- })[];
1062
- };
1063
- } & {
1064
- label?: string;
1065
- direction?: string;
1066
- }))[];
1067
- } | {
1068
- __TYPE__: "SeparatorContent";
1069
- }][];
1070
- }[];
1071
- }, WithTypes<RepeatableWidgetLegacy>, unknown>;
1072
- /**
1073
- * This is essentially a copy of `isGroupContent` that doesn't support
1074
- * nested groups to keep accurate content types for legacy slice.
1075
- */
1076
- export declare const isRepeatableWidgetContent: (u: unknown) => u is {
1077
- __TYPE__: "GroupContentType";
1078
- value: {
1079
- __TYPE__: "GroupItemContent";
1080
- value: [string, {
1081
- type: string;
1082
- __TYPE__: "EmptyContent";
1083
- } | {
1084
- __TYPE__: "BooleanContent";
1085
- value: boolean;
1086
- } | ({
1087
- embed_url: string;
1088
- type: string;
1089
- } & {
1090
- version?: string | number | null;
1091
- title?: string | null | undefined;
1092
- author_name?: string | null | undefined;
1093
- author_url?: string | null | undefined;
1094
- provider_name?: string | null | undefined;
1095
- provider_url?: string | null | undefined;
1096
- cache_age?: string | number | null;
1097
- thumbnail_url?: string | null | undefined;
1098
- thumbnail_width?: number | null | undefined;
1099
- thumbnail_height?: number | null | undefined;
1100
- html?: string | null | undefined;
1101
- } & {
1102
- __TYPE__: "EmbedContent";
1103
- all: unknown;
1104
- }) | {
1105
- type: "Color";
1106
- value: string;
1107
- __TYPE__: "FieldContent";
1108
- } | {
1109
- type: "Date";
1110
- value: string;
1111
- __TYPE__: "FieldContent";
1112
- } | {
1113
- type: "Number";
1114
- value: string;
1115
- __TYPE__: "FieldContent";
1116
- } | {
1117
- type: "Range";
1118
- value: string;
1119
- __TYPE__: "FieldContent";
1120
- } | {
1121
- type: "Select";
1122
- value: string;
1123
- __TYPE__: "FieldContent";
1124
- } | {
1125
- type: "Text";
1126
- value: string;
1127
- __TYPE__: "FieldContent";
1128
- } | {
1129
- type: "Timestamp";
1130
- value: string;
1131
- __TYPE__: "FieldContent";
1132
- } | ({
1133
- position: {
1134
- lat: number;
1135
- lng: number;
1136
- };
1137
- } & {
1138
- __TYPE__: "GeoPointContent";
1139
- }) | ({
1140
- origin: {
1141
- id: string;
1142
- url: string;
1143
- width: number;
1144
- height: number;
1145
- };
1146
- width: number;
1147
- height: number;
1148
- edit: {
1149
- zoom: number;
1150
- crop: {
1151
- x: number;
1152
- y: number;
1153
- };
1154
- background: string;
1155
- };
1156
- } & {
1157
- url?: string;
1158
- credits?: string | null;
1159
- alt?: string | null;
1160
- provider?: string | null | undefined;
1161
- } & {
1162
- thumbnails?: {
1163
- [x: string]: {
1164
- origin: {
1165
- id: string;
1166
- url: string;
1167
- width: number;
1168
- height: number;
1169
- };
1170
- width: number;
1171
- height: number;
1172
- edit: {
1173
- zoom: number;
1174
- crop: {
1175
- x: number;
1176
- y: number;
1177
- };
1178
- background: string;
1179
- };
1180
- } & {
1181
- url?: string;
1182
- credits?: string | null;
1183
- alt?: string | null;
1184
- provider?: string | null | undefined;
1185
- };
1186
- };
1187
- } & {
1188
- __TYPE__: "ImageContent";
1189
- }) | {
1190
- __TYPE__: "IntegrationFieldsContent";
1191
- value: string;
1192
- } | {
1193
- __TYPE__: "LinkContent";
1194
- value: ({
1195
- __TYPE__: "ImageLink";
1196
- } & {
1197
- id: string;
1198
- url: string;
1199
- height: string;
1200
- width: string;
1201
- size: string;
1202
- name: string;
1203
- kind: string;
1204
- } & {
1205
- date?: string | null | undefined;
1206
- }) | ({
1207
- id: string;
1208
- url: string;
1209
- name: string;
1210
- kind: string;
1211
- size: string;
1212
- } & {
1213
- date?: string | null | undefined;
1214
- } & {
1215
- __TYPE__: "FileLink";
1216
- } & {
1217
- size?: string;
1218
- }) | ({
1219
- __TYPE__: "DocumentLink";
1220
- } & {
1221
- id: string;
1222
- }) | ({
1223
- __TYPE__: "ExternalLink";
1224
- } & {
1225
- url: string;
1226
- } & {
1227
- kind?: "web";
1228
- target?: string | null | undefined;
1229
- preview?: {
1230
- title?: string;
1231
- } | null | undefined;
1232
- });
1233
- } | {
1234
- __TYPE__: "StructuredTextContent";
1235
- value: (({
1236
- type: "image";
1237
- data: {
1238
- origin: {
1239
- id: string;
1240
- url: string;
1241
- width: number;
1242
- height: number;
1243
- };
1244
- width: number;
1245
- height: number;
1246
- edit: {
1247
- zoom: number;
1248
- crop: {
1249
- x: number;
1250
- y: number;
1251
- };
1252
- background: string;
1253
- };
1254
- } & {
1255
- url?: string;
1256
- credits?: string | null;
1257
- alt?: string | null;
1258
- provider?: string | null | undefined;
1259
- } & {
1260
- linkTo?: ({
1261
- __TYPE__: "ImageLink";
1262
- } & {
1263
- id: string;
1264
- url: string;
1265
- height: string;
1266
- width: string;
1267
- size: string;
1268
- name: string;
1269
- kind: string;
1270
- } & {
1271
- date?: string | null | undefined;
1272
- }) | ({
1273
- id: string;
1274
- url: string;
1275
- name: string;
1276
- kind: string;
1277
- size: string;
1278
- } & {
1279
- date?: string | null | undefined;
1280
- } & {
1281
- __TYPE__: "FileLink";
1282
- } & {
1283
- size?: string;
1284
- }) | ({
1285
- __TYPE__: "DocumentLink";
1286
- } & {
1287
- id: string;
1288
- }) | ({
1289
- __TYPE__: "ExternalLink";
1290
- } & {
1291
- url: string;
1292
- } & {
1293
- kind?: "web";
1294
- target?: string | null | undefined;
1295
- preview?: {
1296
- title?: string;
1297
- } | null | undefined;
1298
- }) | null | undefined;
1299
- };
1300
- } & {
1301
- label?: string | null | undefined;
1302
- direction?: string | null | undefined;
1303
- }) | ({
1304
- type: "embed";
1305
- data: {
1306
- embed_url: string;
1307
- type: string;
1308
- } & {
1309
- version?: string | number | null;
1310
- title?: string | null | undefined;
1311
- author_name?: string | null | undefined;
1312
- author_url?: string | null | undefined;
1313
- provider_name?: string | null | undefined;
1314
- provider_url?: string | null | undefined;
1315
- cache_age?: string | number | null;
1316
- thumbnail_url?: string | null | undefined;
1317
- thumbnail_width?: number | null | undefined;
1318
- thumbnail_height?: number | null | undefined;
1319
- html?: string | null | undefined;
1320
- } & {
1321
- __TYPE__: "EmbedContent";
1322
- all: unknown;
1323
- };
1324
- } & {
1325
- label?: string | null | undefined;
1326
- direction?: string | null | undefined;
1327
- }) | ({
1328
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1329
- content: {
1330
- text: string;
1331
- } & {
1332
- spans?: ({
1333
- data: ({
1334
- __TYPE__: "ImageLink";
1335
- } & {
1336
- id: string;
1337
- url: string;
1338
- height: string;
1339
- width: string;
1340
- size: string;
1341
- name: string;
1342
- kind: string;
1343
- } & {
1344
- date?: string | null | undefined;
1345
- }) | ({
1346
- id: string;
1347
- url: string;
1348
- name: string;
1349
- kind: string;
1350
- size: string;
1351
- } & {
1352
- date?: string | null | undefined;
1353
- } & {
1354
- __TYPE__: "FileLink";
1355
- } & {
1356
- size?: string;
1357
- }) | ({
1358
- __TYPE__: "DocumentLink";
1359
- } & {
1360
- id: string;
1361
- }) | ({
1362
- __TYPE__: "ExternalLink";
1363
- } & {
1364
- url: string;
1365
- } & {
1366
- kind?: "web";
1367
- target?: string | null | undefined;
1368
- preview?: {
1369
- title?: string;
1370
- } | null | undefined;
1371
- });
1372
- start: number;
1373
- end: number;
1374
- type: "hyperlink";
1375
- } | {
1376
- data: string;
1377
- start: number;
1378
- end: number;
1379
- type: "label";
1380
- } | {
1381
- start: number;
1382
- end: number;
1383
- type: "strong" | "em" | "list-item";
1384
- })[];
1385
- };
1386
- } & {
1387
- label?: string;
1388
- direction?: string;
1389
- }))[];
1390
- } | {
1391
- __TYPE__: "SeparatorContent";
1392
- }][];
1393
- }[];
1394
- };
1395
- export declare const RepeatableWidgetContent: t.ExactC<t.TypeC<{
1396
- __TYPE__: t.LiteralC<"GroupContentType">;
1397
- value: t.ArrayC<t.ExactC<t.TypeC<{
1398
- __TYPE__: t.LiteralC<"GroupItemContent">;
1399
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1400
- type: t.StringC;
1401
- __TYPE__: t.LiteralC<"EmptyContent">;
1402
- }>>, t.ExactC<t.TypeC<{
1403
- __TYPE__: t.LiteralC<"BooleanContent">;
1404
- value: t.BooleanC;
1405
- }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1406
- embed_url: t.StringC;
1407
- type: t.StringC;
1408
- }>, t.PartialC<{
1409
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1410
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1411
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1412
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1413
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1414
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1415
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1416
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1417
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1418
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1419
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1420
- }>]>>, t.ExactC<t.TypeC<{
1421
- __TYPE__: t.LiteralC<"EmbedContent">;
1422
- all: t.UnknownC;
1423
- }>>]>, t.ExactC<t.TypeC<{
1424
- type: t.LiteralC<"Text">;
1425
- value: t.Type<string, string, unknown>;
1426
- __TYPE__: t.LiteralC<"FieldContent">;
1427
- }>>, t.ExactC<t.TypeC<{
1428
- type: t.LiteralC<"Timestamp">;
1429
- value: t.Type<string, string, unknown>;
1430
- __TYPE__: t.LiteralC<"FieldContent">;
1431
- }>>, t.ExactC<t.TypeC<{
1432
- type: t.LiteralC<"Select">;
1433
- value: t.Type<string, string, unknown>;
1434
- __TYPE__: t.LiteralC<"FieldContent">;
1435
- }>>, t.ExactC<t.TypeC<{
1436
- type: t.LiteralC<"Range">;
1437
- /**
1438
- * This is essentially a copy of `GroupItemLegacy` that doesn't support
1439
- * nested groups to keep accurate content types for legacy slice.
1440
- */
1441
- value: t.Type<string, string, unknown>;
1442
- __TYPE__: t.LiteralC<"FieldContent">;
1443
- }>>, t.ExactC<t.TypeC<{
1444
- type: t.LiteralC<"Number">;
1445
- value: t.Type<string, string, unknown>;
1446
- __TYPE__: t.LiteralC<"FieldContent">;
1447
- }>>, t.ExactC<t.TypeC<{
1448
- type: t.LiteralC<"Date">;
1449
- value: t.Type<string, string, unknown>;
1450
- __TYPE__: t.LiteralC<"FieldContent">;
1451
- }>>, t.ExactC<t.TypeC<{
1452
- type: t.LiteralC<"Color">;
1453
- /**
1454
- * This is essentially a copy of `GroupItemLegacy` that doesn't support
1455
- * nested groups to keep accurate content types for legacy slice.
1456
- */
1457
- value: t.Type<string, string, unknown>;
1458
- __TYPE__: t.LiteralC<"FieldContent">;
1459
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1460
- position: t.ExactC<t.TypeC<{
1461
- lat: t.NumberC;
1462
- lng: t.NumberC;
1463
- }>>;
1464
- }>>, t.ExactC<t.TypeC<{
1465
- __TYPE__: t.LiteralC<"GeoPointContent">;
1466
- }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1467
- origin: t.ExactC<t.TypeC<{
1468
- id: t.StringC;
1469
- url: t.StringC;
1470
- width: t.NumberC;
1471
- height: t.NumberC;
1472
- }>>;
1473
- width: t.NumberC;
1474
- height: t.NumberC;
1475
- edit: t.TypeC<{
1476
- zoom: t.NumberC;
1477
- crop: t.TypeC<{
1478
- x: t.NumberC;
1479
- y: t.NumberC;
1480
- }>;
1481
- background: t.StringC;
1482
- }>;
1483
- }>, t.PartialC<{
1484
- url: t.StringC;
1485
- credits: t.Type<string | null, string | null, unknown>;
1486
- alt: t.Type<string | null, string | null, unknown>;
1487
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1488
- }>]>>, t.PartialC<{
1489
- thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
1490
- origin: t.ExactC<t.TypeC<{
1491
- id: t.StringC;
1492
- url: t.StringC;
1493
- width: t.NumberC;
1494
- height: t.NumberC;
1495
- }>>;
1496
- width: t.NumberC;
1497
- height: t.NumberC;
1498
- edit: t.TypeC<{
1499
- zoom: t.NumberC;
1500
- crop: t.TypeC<{
1501
- x: t.NumberC;
1502
- y: t.NumberC;
1503
- }>;
1504
- background: t.StringC;
1505
- }>;
1506
- }>, t.PartialC<{
1507
- url: t.StringC;
1508
- credits: t.Type<string | null, string | null, unknown>;
1509
- alt: t.Type<string | null, string | null, unknown>;
1510
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1511
- }>]>>>;
1512
- }>]>, t.ExactC<t.TypeC<{
1513
- __TYPE__: t.LiteralC<"ImageContent">;
1514
- }>>]>, t.ExactC<t.TypeC<{
1515
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
1516
- value: t.StringC;
1517
- }>>, t.ExactC<t.TypeC<{
1518
- __TYPE__: t.LiteralC<"LinkContent">;
1519
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1520
- __TYPE__: t.LiteralC<"ImageLink">;
1521
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1522
- id: t.StringC;
1523
- url: t.StringC;
1524
- height: t.StringC;
1525
- width: t.StringC;
1526
- size: t.StringC;
1527
- name: t.StringC;
1528
- kind: t.StringC;
1529
- }>, t.PartialC<{
1530
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1531
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1532
- id: t.StringC;
1533
- url: t.StringC;
1534
- name: t.StringC;
1535
- kind: t.StringC;
1536
- size: t.StringC;
1537
- }>, t.PartialC<{
1538
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1539
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1540
- __TYPE__: t.LiteralC<"FileLink">;
1541
- }>, t.PartialC<{
1542
- size: t.StringC;
1543
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1544
- __TYPE__: t.LiteralC<"DocumentLink">;
1545
- }>>, t.ExactC<t.TypeC<{
1546
- id: t.Type<string, string, unknown>;
1547
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1548
- __TYPE__: t.LiteralC<"ExternalLink">;
1549
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1550
- url: t.StringC;
1551
- }>, t.PartialC<{
1552
- kind: t.LiteralC<"web">;
1553
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1554
- preview: t.UnionC<[t.Type<{
1555
- title?: string;
1556
- }, {
1557
- title?: string;
1558
- }, unknown>, t.NullC, t.UndefinedC]>;
1559
- }>]>>]>]>;
1560
- }>>, t.ExactC<t.TypeC<{
1561
- __TYPE__: t.LiteralC<"StructuredTextContent">;
1562
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1563
- type: t.LiteralC<"image">;
1564
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1565
- origin: t.ExactC<t.TypeC<{
1566
- id: t.StringC;
1567
- url: t.StringC;
1568
- width: t.NumberC;
1569
- height: t.NumberC;
1570
- }>>;
1571
- width: t.NumberC;
1572
- height: t.NumberC;
1573
- edit: t.TypeC<{
1574
- zoom: t.NumberC;
1575
- crop: t.TypeC<{
1576
- x: t.NumberC;
1577
- y: t.NumberC;
1578
- }>;
1579
- background: t.StringC;
1580
- }>;
1581
- }>, t.PartialC<{
1582
- url: t.StringC;
1583
- credits: t.Type<string | null, string | null, unknown>;
1584
- alt: t.Type<string | null, string | null, unknown>;
1585
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1586
- }>]>>, t.PartialC<{
1587
- linkTo: t.UnionC<[t.Type<({
1588
- __TYPE__: "ImageLink";
1589
- } & {
1590
- id: string;
1591
- url: string;
1592
- height: string;
1593
- width: string;
1594
- size: string;
1595
- name: string;
1596
- kind: string;
1597
- } & {
1598
- date?: string | null | undefined;
1599
- }) | ({
1600
- id: string;
1601
- url: string;
1602
- name: string;
1603
- kind: string;
1604
- size: string;
1605
- } & {
1606
- date?: string | null | undefined;
1607
- } & {
1608
- __TYPE__: "FileLink";
1609
- } & {
1610
- size?: string;
1611
- }) | ({
1612
- __TYPE__: "DocumentLink";
1613
- } & {
1614
- id: string;
1615
- }) | ({
1616
- __TYPE__: "ExternalLink";
1617
- } & {
1618
- url: string;
1619
- } & {
1620
- kind?: "web";
1621
- target?: string | null | undefined;
1622
- preview?: {
1623
- title?: string;
1624
- } | null | undefined;
1625
- }), ({
1626
- __TYPE__: "ImageLink";
1627
- } & {
1628
- id: string;
1629
- url: string;
1630
- height: string;
1631
- width: string;
1632
- size: string;
1633
- name: string;
1634
- kind: string;
1635
- } & {
1636
- date?: string | null | undefined;
1637
- }) | ({
1638
- id: string;
1639
- url: string;
1640
- name: string;
1641
- kind: string;
1642
- size: string;
1643
- } & {
1644
- date?: string | null | undefined;
1645
- } & {
1646
- __TYPE__: "FileLink";
1647
- } & {
1648
- size?: string;
1649
- }) | ({
1650
- __TYPE__: "DocumentLink";
1651
- } & {
1652
- id: string;
1653
- }) | ({
1654
- __TYPE__: "ExternalLink";
1655
- } & {
1656
- url: string;
1657
- } & {
1658
- kind?: "web";
1659
- target?: string | null | undefined;
1660
- preview?: {
1661
- title?: string;
1662
- } | null | undefined;
1663
- }), unknown>, t.NullC, t.UndefinedC]>;
1664
- }>]>;
1665
- }>, t.PartialC<{
1666
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1667
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1668
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1669
- type: t.LiteralC<"embed">;
1670
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1671
- embed_url: t.StringC;
1672
- type: t.StringC;
1673
- }>, t.PartialC<{
1674
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1675
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1676
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1677
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1678
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1679
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1680
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
1681
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1682
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1683
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
1684
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1685
- }>]>>, t.ExactC<t.TypeC<{
1686
- __TYPE__: t.LiteralC<"EmbedContent">;
1687
- all: t.UnknownC;
1688
- }>>]>;
1689
- }>, t.PartialC<{
1690
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1691
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1692
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1693
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
1694
- content: t.IntersectionC<[t.TypeC<{
1695
- text: t.StringC;
1696
- }>, t.PartialC<{
1697
- spans: t.Type<({
1698
- data: ({
1699
- __TYPE__: "ImageLink";
1700
- } & {
1701
- id: string;
1702
- url: string;
1703
- height: string;
1704
- width: string;
1705
- size: string;
1706
- name: string;
1707
- kind: string;
1708
- } & {
1709
- date?: string | null | undefined;
1710
- }) | ({
1711
- id: string;
1712
- url: string;
1713
- name: string;
1714
- kind: string;
1715
- size: string;
1716
- } & {
1717
- date?: string | null | undefined;
1718
- } & {
1719
- __TYPE__: "FileLink";
1720
- } & {
1721
- size?: string;
1722
- }) | ({
1723
- __TYPE__: "DocumentLink";
1724
- } & {
1725
- id: string;
1726
- }) | ({
1727
- __TYPE__: "ExternalLink";
1728
- } & {
1729
- url: string;
1730
- } & {
1731
- kind?: "web";
1732
- target?: string | null | undefined;
1733
- preview?: {
1734
- title?: string;
1735
- } | null | undefined;
1736
- });
1737
- start: number;
1738
- end: number;
1739
- type: "hyperlink";
1740
- } | {
1741
- data: string;
1742
- start: number;
1743
- end: number;
1744
- type: "label";
1745
- } | {
1746
- start: number;
1747
- end: number;
1748
- type: "strong" | "em" | "list-item";
1749
- })[], ({
1750
- data: ({
1751
- __TYPE__: "ImageLink";
1752
- } & {
1753
- id: string;
1754
- url: string;
1755
- height: string;
1756
- width: string;
1757
- size: string;
1758
- name: string;
1759
- kind: string;
1760
- } & {
1761
- date?: string | null | undefined;
1762
- }) | ({
1763
- id: string;
1764
- url: string;
1765
- name: string;
1766
- kind: string;
1767
- size: string;
1768
- } & {
1769
- date?: string | null | undefined;
1770
- } & {
1771
- __TYPE__: "FileLink";
1772
- } & {
1773
- size?: string;
1774
- }) | ({
1775
- __TYPE__: "DocumentLink";
1776
- } & {
1777
- id: string;
1778
- }) | ({
1779
- __TYPE__: "ExternalLink";
1780
- } & {
1781
- url: string;
1782
- } & {
1783
- kind?: "web";
1784
- target?: string | null | undefined;
1785
- preview?: {
1786
- title?: string;
1787
- } | null | undefined;
1788
- });
1789
- start: number;
1790
- end: number;
1791
- type: "hyperlink";
1792
- } | {
1793
- data: string;
1794
- start: number;
1795
- end: number;
1796
- type: "label";
1797
- } | {
1798
- start: number;
1799
- end: number;
1800
- type: "strong" | "em" | "list-item";
1801
- })[], unknown>;
1802
- }>]>;
1803
- }>, t.PartialC<{
1804
- label: t.StringC;
1805
- direction: t.StringC;
1806
- }>]>>]>>;
1807
- }>>, t.ExactC<t.TypeC<{
1808
- __TYPE__: t.LiteralC<"SeparatorContent">;
1809
- }>>]>]>>;
1810
- }>>>;
1811
- }>>;
1812
- export declare type RepeatableWidgetContent = t.TypeOf<typeof RepeatableWidgetContent>;
1813
- /**
1814
- * This is essentially a copy of `traverseGroupContent` that doesn't support
1815
- * nested groups to keep accurate content types for legacy slice.
1816
- */
1817
- export declare function traverseRepeatableWidgetContent({ path, key, apiId, model, content, }: {
1818
- path: ContentPath;
1819
- key: string;
1820
- apiId: string;
1821
- content: RepeatableWidgetContent;
1822
- model?: NestedGroup | undefined;
1823
- }): (transform: TraverseWidgetContentFn) => RepeatableWidgetContent | undefined;
1824
- /**
1825
- * This is essentially a copy of `traverseGroupItemContent` that doesn't support
1826
- * nested groups to keep accurate content types for legacy slice.
1827
- */
1828
- export declare function traverseRepeatableWidgetItemsContent({ path, model, content, }: {
1829
- path: ContentPath;
1830
- content: Array<RepeatableWidgetItemContent>;
1831
- model?: Record<string, NestableWidget> | undefined;
1832
- }): (transform: TraverseWidgetContentFn) => Array<RepeatableWidgetItemContent>;
1833
- export declare const RepeatableWidgetsLegacy: (ctx: LegacyContentCtx) => t.ArrayC<t.Type<{
1834
- __TYPE__: "GroupItemContent";
1835
- value: [string, {
1836
- type: string;
1837
- __TYPE__: "EmptyContent";
1838
- } | {
1839
- __TYPE__: "BooleanContent";
1840
- value: boolean;
1841
- } | ({
1842
- embed_url: string;
1843
- type: string;
1844
- } & {
1845
- version?: string | number | null;
1846
- title?: string | null | undefined;
1847
- author_name?: string | null | undefined;
1848
- author_url?: string | null | undefined;
1849
- provider_name?: string | null | undefined;
1850
- provider_url?: string | null | undefined;
1851
- cache_age?: string | number | null;
1852
- thumbnail_url?: string | null | undefined;
1853
- thumbnail_width?: number | null | undefined;
1854
- thumbnail_height?: number | null | undefined;
1855
- html?: string | null | undefined;
1856
- } & {
1857
- __TYPE__: "EmbedContent";
1858
- all: unknown;
1859
- }) | {
1860
- type: "Color";
1861
- value: string;
1862
- __TYPE__: "FieldContent";
1863
- } | {
1864
- type: "Date";
1865
- value: string;
1866
- __TYPE__: "FieldContent";
1867
- } | {
1868
- type: "Number";
1869
- value: string;
1870
- __TYPE__: "FieldContent";
1871
- } | {
1872
- type: "Range";
1873
- value: string;
1874
- __TYPE__: "FieldContent";
1875
- } | {
1876
- type: "Select";
1877
- value: string;
1878
- __TYPE__: "FieldContent";
1879
- } | {
1880
- type: "Text";
1881
- value: string;
1882
- __TYPE__: "FieldContent";
1883
- } | {
1884
- type: "Timestamp";
1885
- value: string;
1886
- __TYPE__: "FieldContent";
1887
- } | ({
1888
- position: {
1889
- lat: number;
1890
- lng: number;
1891
- };
1892
- } & {
1893
- __TYPE__: "GeoPointContent";
1894
- }) | ({
1895
- origin: {
1896
- id: string;
1897
- url: string;
1898
- width: number;
1899
- height: number;
1900
- };
1901
- width: number;
1902
- height: number;
1903
- edit: {
1904
- zoom: number;
1905
- crop: {
1906
- x: number;
1907
- y: number;
1908
- };
1909
- background: string;
1910
- };
1911
- } & {
1912
- url?: string;
1913
- credits?: string | null;
1914
- alt?: string | null;
1915
- provider?: string | null | undefined;
1916
- } & {
1917
- thumbnails?: {
1918
- [x: string]: {
1919
- origin: {
1920
- id: string;
1921
- url: string;
1922
- width: number;
1923
- height: number;
1924
- };
1925
- width: number;
1926
- height: number;
1927
- edit: {
1928
- zoom: number;
1929
- crop: {
1930
- x: number;
1931
- y: number;
1932
- };
1933
- background: string;
1934
- };
1935
- } & {
1936
- url?: string;
1937
- credits?: string | null;
1938
- alt?: string | null;
1939
- provider?: string | null | undefined;
1940
- };
1941
- };
1942
- } & {
1943
- __TYPE__: "ImageContent";
1944
- }) | {
1945
- __TYPE__: "IntegrationFieldsContent";
1946
- value: string;
1947
- } | {
1948
- __TYPE__: "LinkContent";
1949
- value: ({
1950
- __TYPE__: "ImageLink";
1951
- } & {
1952
- id: string;
1953
- url: string;
1954
- height: string;
1955
- width: string;
1956
- size: string;
1957
- name: string;
1958
- kind: string;
1959
- } & {
1960
- date?: string | null | undefined;
1961
- }) | ({
1962
- id: string;
1963
- url: string;
1964
- name: string;
1965
- kind: string;
1966
- size: string;
1967
- } & {
1968
- date?: string | null | undefined;
1969
- } & {
1970
- __TYPE__: "FileLink";
1971
- } & {
1972
- size?: string;
1973
- }) | ({
1974
- __TYPE__: "DocumentLink";
1975
- } & {
1976
- id: string;
1977
- }) | ({
1978
- __TYPE__: "ExternalLink";
1979
- } & {
1980
- url: string;
1981
- } & {
1982
- kind?: "web";
1983
- target?: string | null | undefined;
1984
- preview?: {
1985
- title?: string;
1986
- } | null | undefined;
1987
- });
1988
- } | {
1989
- __TYPE__: "StructuredTextContent";
1990
- value: (({
1991
- type: "image";
1992
- data: {
1993
- origin: {
1994
- id: string;
1995
- url: string;
1996
- width: number;
1997
- height: number;
1998
- };
1999
- width: number;
2000
- height: number;
2001
- edit: {
2002
- zoom: number;
2003
- crop: {
2004
- x: number;
2005
- y: number;
2006
- };
2007
- background: string;
2008
- };
2009
- } & {
2010
- url?: string;
2011
- credits?: string | null;
2012
- alt?: string | null;
2013
- provider?: string | null | undefined;
2014
- } & {
2015
- linkTo?: ({
2016
- __TYPE__: "ImageLink";
2017
- } & {
2018
- id: string;
2019
- url: string;
2020
- height: string;
2021
- width: string;
2022
- size: string;
2023
- name: string;
2024
- kind: string;
2025
- } & {
2026
- date?: string | null | undefined;
2027
- }) | ({
2028
- id: string;
2029
- url: string;
2030
- name: string;
2031
- kind: string;
2032
- size: string;
2033
- } & {
2034
- date?: string | null | undefined;
2035
- } & {
2036
- __TYPE__: "FileLink";
2037
- } & {
2038
- size?: string;
2039
- }) | ({
2040
- __TYPE__: "DocumentLink";
2041
- } & {
2042
- id: string;
2043
- }) | ({
2044
- __TYPE__: "ExternalLink";
2045
- } & {
2046
- url: string;
2047
- } & {
2048
- kind?: "web";
2049
- target?: string | null | undefined;
2050
- preview?: {
2051
- title?: string;
2052
- } | null | undefined;
2053
- }) | null | undefined;
2054
- };
2055
- } & {
2056
- label?: string | null | undefined;
2057
- direction?: string | null | undefined;
2058
- }) | ({
2059
- type: "embed";
2060
- data: {
2061
- embed_url: string;
2062
- type: string;
2063
- } & {
2064
- version?: string | number | null;
2065
- title?: string | null | undefined;
2066
- author_name?: string | null | undefined;
2067
- author_url?: string | null | undefined;
2068
- provider_name?: string | null | undefined;
2069
- provider_url?: string | null | undefined;
2070
- cache_age?: string | number | null;
2071
- thumbnail_url?: string | null | undefined;
2072
- thumbnail_width?: number | null | undefined;
2073
- thumbnail_height?: number | null | undefined;
2074
- html?: string | null | undefined;
2075
- } & {
2076
- __TYPE__: "EmbedContent";
2077
- all: unknown;
2078
- };
2079
- } & {
2080
- label?: string | null | undefined;
2081
- direction?: string | null | undefined;
2082
- }) | ({
2083
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2084
- content: {
2085
- text: string;
2086
- } & {
2087
- spans?: ({
2088
- data: ({
2089
- __TYPE__: "ImageLink";
2090
- } & {
2091
- id: string;
2092
- url: string;
2093
- height: string;
2094
- width: string;
2095
- size: string;
2096
- name: string;
2097
- kind: string;
2098
- } & {
2099
- date?: string | null | undefined;
2100
- }) | ({
2101
- id: string;
2102
- url: string;
2103
- name: string;
2104
- kind: string;
2105
- size: string;
2106
- } & {
2107
- date?: string | null | undefined;
2108
- } & {
2109
- __TYPE__: "FileLink";
2110
- } & {
2111
- size?: string;
2112
- }) | ({
2113
- __TYPE__: "DocumentLink";
2114
- } & {
2115
- id: string;
2116
- }) | ({
2117
- __TYPE__: "ExternalLink";
2118
- } & {
2119
- url: string;
2120
- } & {
2121
- kind?: "web";
2122
- target?: string | null | undefined;
2123
- preview?: {
2124
- title?: string;
2125
- } | null | undefined;
2126
- });
2127
- start: number;
2128
- end: number;
2129
- type: "hyperlink";
2130
- } | {
2131
- data: string;
2132
- start: number;
2133
- end: number;
2134
- type: "label";
2135
- } | {
2136
- start: number;
2137
- end: number;
2138
- type: "strong" | "em" | "list-item";
2139
- })[];
2140
- };
2141
- } & {
2142
- label?: string;
2143
- direction?: string;
2144
- }))[];
2145
- } | {
2146
- __TYPE__: "SeparatorContent";
2147
- }][];
2148
- }, WithTypes<{
2
+ import type { LegacyContentCtx } from "../../../LegacyContentCtx";
3
+ import { GroupContent } from "../../GroupContent";
4
+ export declare const RepeatableWidgetsLegacy: (ctx: LegacyContentCtx) => t.ArrayC<t.Type<import("../../GroupContent").GroupItemContent, import("../../../LegacyContentCtx").WithTypes<{
2149
5
  [x: string]: unknown;
2150
6
  }>, unknown>>;
2151
7
  export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
2152
8
  __TYPE__: t.LiteralC<"GroupItemContent">;
2153
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
9
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
2154
10
  type: t.StringC;
2155
11
  __TYPE__: t.LiteralC<"EmptyContent">;
2156
12
  }>>, t.ExactC<t.TypeC<{
@@ -2188,10 +44,6 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
2188
44
  __TYPE__: t.LiteralC<"FieldContent">;
2189
45
  }>>, t.ExactC<t.TypeC<{
2190
46
  type: t.LiteralC<"Range">;
2191
- /**
2192
- * This is essentially a copy of `GroupItemLegacy` that doesn't support
2193
- * nested groups to keep accurate content types for legacy slice.
2194
- */
2195
47
  value: t.Type<string, string, unknown>;
2196
48
  __TYPE__: t.LiteralC<"FieldContent">;
2197
49
  }>>, t.ExactC<t.TypeC<{
@@ -2204,10 +56,6 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
2204
56
  __TYPE__: t.LiteralC<"FieldContent">;
2205
57
  }>>, t.ExactC<t.TypeC<{
2206
58
  type: t.LiteralC<"Color">;
2207
- /**
2208
- * This is essentially a copy of `GroupItemLegacy` that doesn't support
2209
- * nested groups to keep accurate content types for legacy slice.
2210
- */
2211
59
  value: t.Type<string, string, unknown>;
2212
60
  __TYPE__: t.LiteralC<"FieldContent">;
2213
61
  }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -2560,6 +408,5 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
2560
408
  }>]>>]>>;
2561
409
  }>>, t.ExactC<t.TypeC<{
2562
410
  __TYPE__: t.LiteralC<"SeparatorContent">;
2563
- }>>]>]>>;
411
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
2564
412
  }>>>;
2565
- export {};