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