@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
@@ -267,6 +267,278 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
267
267
  }))[];
268
268
  }> | import("fp-ts/lib/Either").Right<{
269
269
  __TYPE__: "SeparatorContent";
270
+ }> | import("fp-ts/lib/Either").Right<{
271
+ __TYPE__: "GroupContentType";
272
+ value: {
273
+ __TYPE__: "GroupItemContent";
274
+ value: [string, {
275
+ type: string;
276
+ __TYPE__: "EmptyContent";
277
+ } | {
278
+ __TYPE__: "BooleanContent";
279
+ value: boolean;
280
+ } | ({
281
+ embed_url: string;
282
+ type: string;
283
+ } & {
284
+ version?: string | number | null;
285
+ title?: string | null | undefined;
286
+ author_name?: string | null | undefined;
287
+ author_url?: string | null | undefined;
288
+ provider_name?: string | null | undefined;
289
+ provider_url?: string | null | undefined;
290
+ cache_age?: string | number | null;
291
+ thumbnail_url?: string | null | undefined;
292
+ thumbnail_width?: number | null | undefined;
293
+ thumbnail_height?: number | null | undefined;
294
+ html?: string | null | undefined;
295
+ } & {
296
+ __TYPE__: "EmbedContent";
297
+ all: unknown;
298
+ }) | {
299
+ type: "Color";
300
+ value: string;
301
+ __TYPE__: "FieldContent";
302
+ } | {
303
+ type: "Date";
304
+ value: string;
305
+ __TYPE__: "FieldContent";
306
+ } | {
307
+ type: "Number";
308
+ value: string;
309
+ __TYPE__: "FieldContent";
310
+ } | {
311
+ type: "Range";
312
+ value: string;
313
+ __TYPE__: "FieldContent";
314
+ } | {
315
+ type: "Select";
316
+ value: string;
317
+ __TYPE__: "FieldContent";
318
+ } | {
319
+ type: "Text";
320
+ value: string;
321
+ __TYPE__: "FieldContent";
322
+ } | {
323
+ type: "Timestamp";
324
+ value: string;
325
+ __TYPE__: "FieldContent";
326
+ } | ({
327
+ position: {
328
+ lat: number;
329
+ lng: number;
330
+ };
331
+ } & {
332
+ __TYPE__: "GeoPointContent";
333
+ }) | ({
334
+ origin: {
335
+ id: string;
336
+ url: string;
337
+ width: number;
338
+ height: number;
339
+ };
340
+ width: number;
341
+ height: number;
342
+ edit: {
343
+ zoom: number;
344
+ crop: {
345
+ x: number;
346
+ y: number;
347
+ };
348
+ background: string;
349
+ };
350
+ } & {
351
+ url?: string;
352
+ credits?: string | null;
353
+ alt?: string | null;
354
+ provider?: string | null | undefined;
355
+ } & {
356
+ thumbnails?: {
357
+ [x: string]: {
358
+ origin: {
359
+ id: string;
360
+ url: string;
361
+ width: number;
362
+ height: number;
363
+ };
364
+ width: number;
365
+ height: number;
366
+ edit: {
367
+ zoom: number;
368
+ crop: {
369
+ x: number;
370
+ y: number;
371
+ };
372
+ background: string;
373
+ };
374
+ } & {
375
+ url?: string;
376
+ credits?: string | null;
377
+ alt?: string | null;
378
+ provider?: string | null | undefined;
379
+ };
380
+ };
381
+ } & {
382
+ __TYPE__: "ImageContent";
383
+ }) | {
384
+ __TYPE__: "IntegrationFieldsContent";
385
+ value: string;
386
+ } | {
387
+ __TYPE__: "LinkContent";
388
+ value: ({
389
+ __TYPE__: "ImageLink";
390
+ } & {
391
+ id: string;
392
+ url: string;
393
+ height: string;
394
+ width: string;
395
+ size: string;
396
+ name: string;
397
+ kind: string;
398
+ } & {
399
+ date?: string | null | undefined;
400
+ }) | ({
401
+ id: string;
402
+ url: string;
403
+ name: string;
404
+ kind: string;
405
+ size: string;
406
+ } & {
407
+ date?: string | null | undefined;
408
+ } & {
409
+ __TYPE__: "FileLink";
410
+ } & {
411
+ size?: string;
412
+ }) | ({
413
+ __TYPE__: "DocumentLink";
414
+ } & {
415
+ id: string;
416
+ }) | ({
417
+ __TYPE__: "ExternalLink";
418
+ } & {
419
+ url: string;
420
+ } & {
421
+ kind?: "web";
422
+ target?: string | null | undefined;
423
+ preview?: {
424
+ title?: string;
425
+ } | null | undefined;
426
+ });
427
+ } | {
428
+ __TYPE__: "StructuredTextContent";
429
+ value: (({
430
+ type: "image";
431
+ data: {
432
+ origin: {
433
+ id: string;
434
+ url: string;
435
+ width: number;
436
+ height: number;
437
+ };
438
+ width: number;
439
+ height: number;
440
+ edit: {
441
+ zoom: number;
442
+ crop: {
443
+ x: number;
444
+ y: number;
445
+ };
446
+ background: string;
447
+ };
448
+ } & {
449
+ url?: string;
450
+ credits?: string | null;
451
+ alt?: string | null;
452
+ provider?: string | null | undefined;
453
+ } & {
454
+ linkTo?: ({
455
+ __TYPE__: "ImageLink";
456
+ } & {
457
+ id: string;
458
+ url: string;
459
+ height: string;
460
+ width: string;
461
+ size: string;
462
+ name: string;
463
+ kind: string;
464
+ } & {
465
+ date?: string | null | undefined;
466
+ }) | ({
467
+ id: string;
468
+ url: string;
469
+ name: string;
470
+ kind: string;
471
+ size: string;
472
+ } & {
473
+ date?: string | null | undefined;
474
+ } & {
475
+ __TYPE__: "FileLink";
476
+ } & {
477
+ size?: string;
478
+ }) | ({
479
+ __TYPE__: "DocumentLink";
480
+ } & {
481
+ id: string;
482
+ }) | ({
483
+ __TYPE__: "ExternalLink";
484
+ } & {
485
+ url: string;
486
+ } & {
487
+ kind?: "web";
488
+ target?: string | null | undefined;
489
+ preview?: {
490
+ title?: string;
491
+ } | null | undefined;
492
+ }) | null | undefined;
493
+ };
494
+ } & {
495
+ label?: string | null | undefined;
496
+ direction?: string | null | undefined;
497
+ }) | ({
498
+ type: "embed";
499
+ data: {
500
+ embed_url: string;
501
+ type: string;
502
+ } & {
503
+ version?: string | number | null;
504
+ title?: string | null | undefined;
505
+ author_name?: string | null | undefined;
506
+ author_url?: string | null | undefined;
507
+ provider_name?: string | null | undefined;
508
+ provider_url?: string | null | undefined;
509
+ cache_age?: string | number | null;
510
+ thumbnail_url?: string | null | undefined;
511
+ thumbnail_width?: number | null | undefined;
512
+ thumbnail_height?: number | null | undefined;
513
+ html?: string | null | undefined;
514
+ } & {
515
+ __TYPE__: "EmbedContent";
516
+ all: unknown;
517
+ };
518
+ } & {
519
+ label?: string | null | undefined;
520
+ direction?: string | null | undefined;
521
+ }) | ({
522
+ type: "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
523
+ content: {
524
+ text: string;
525
+ } & {
526
+ spans?: ({
527
+ data?: unknown;
528
+ } & {
529
+ start: number;
530
+ end: number;
531
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
532
+ })[];
533
+ };
534
+ } & {
535
+ label?: string;
536
+ direction?: string;
537
+ }))[];
538
+ } | {
539
+ __TYPE__: "SeparatorContent";
540
+ }][];
541
+ }[];
270
542
  }> | import("fp-ts/lib/Either").Right<{
271
543
  __TYPE__: "CompositeSliceContent";
272
544
  nonRepeat: {
@@ -1574,8 +1846,6 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
1574
1846
  title?: string;
1575
1847
  } | null | undefined;
1576
1848
  }), ({
1577
- __TYPE__: "ImageLink";
1578
- } & {
1579
1849
  id: string;
1580
1850
  url: string;
1581
1851
  height: string;
@@ -1593,17 +1863,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
1593
1863
  size: string;
1594
1864
  } & {
1595
1865
  date?: string | null | undefined;
1596
- } & {
1597
- __TYPE__: "FileLink";
1598
- } & {
1599
- size?: string;
1600
- }) | ({
1601
- __TYPE__: "DocumentLink";
1602
- } & {
1866
+ }) | {
1603
1867
  id: string;
1604
- }) | ({
1605
- __TYPE__: "ExternalLink";
1606
- } & {
1868
+ } | ({
1607
1869
  url: string;
1608
1870
  } & {
1609
1871
  kind?: "web";
@@ -1887,8 +2149,6 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
1887
2149
  title?: string;
1888
2150
  } | null | undefined;
1889
2151
  }), ({
1890
- __TYPE__: "ImageLink";
1891
- } & {
1892
2152
  id: string;
1893
2153
  url: string;
1894
2154
  height: string;
@@ -1906,17 +2166,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
1906
2166
  size: string;
1907
2167
  } & {
1908
2168
  date?: string | null | undefined;
1909
- } & {
1910
- __TYPE__: "FileLink";
1911
- } & {
1912
- size?: string;
1913
- }) | ({
1914
- __TYPE__: "DocumentLink";
1915
- } & {
2169
+ }) | {
1916
2170
  id: string;
1917
- }) | ({
1918
- __TYPE__: "ExternalLink";
1919
- } & {
2171
+ } | ({
1920
2172
  url: string;
1921
2173
  } & {
1922
2174
  kind?: "web";
@@ -2202,8 +2454,6 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
2202
2454
  title?: string;
2203
2455
  } | null | undefined;
2204
2456
  }), ({
2205
- __TYPE__: "ImageLink";
2206
- } & {
2207
2457
  id: string;
2208
2458
  url: string;
2209
2459
  height: string;
@@ -2221,17 +2471,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
2221
2471
  size: string;
2222
2472
  } & {
2223
2473
  date?: string | null | undefined;
2224
- } & {
2225
- __TYPE__: "FileLink";
2226
- } & {
2227
- size?: string;
2228
- }) | ({
2229
- __TYPE__: "DocumentLink";
2230
- } & {
2474
+ }) | {
2231
2475
  id: string;
2232
- }) | ({
2233
- __TYPE__: "ExternalLink";
2234
- } & {
2476
+ } | ({
2235
2477
  url: string;
2236
2478
  } & {
2237
2479
  kind?: "web";
@@ -2515,8 +2757,6 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
2515
2757
  title?: string;
2516
2758
  } | null | undefined;
2517
2759
  }), ({
2518
- __TYPE__: "ImageLink";
2519
- } & {
2520
2760
  id: string;
2521
2761
  url: string;
2522
2762
  height: string;
@@ -2534,17 +2774,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
2534
2774
  size: string;
2535
2775
  } & {
2536
2776
  date?: string | null | undefined;
2537
- } & {
2538
- __TYPE__: "FileLink";
2539
- } & {
2540
- size?: string;
2541
- }) | ({
2542
- __TYPE__: "DocumentLink";
2543
- } & {
2777
+ }) | {
2544
2778
  id: string;
2545
- }) | ({
2546
- __TYPE__: "ExternalLink";
2547
- } & {
2779
+ } | ({
2548
2780
  url: string;
2549
2781
  } & {
2550
2782
  kind?: "web";
@@ -2827,8 +3059,6 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
2827
3059
  title?: string;
2828
3060
  } | null | undefined;
2829
3061
  }), ({
2830
- __TYPE__: "ImageLink";
2831
- } & {
2832
3062
  id: string;
2833
3063
  url: string;
2834
3064
  height: string;
@@ -2846,17 +3076,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
2846
3076
  size: string;
2847
3077
  } & {
2848
3078
  date?: string | null | undefined;
2849
- } & {
2850
- __TYPE__: "FileLink";
2851
- } & {
2852
- size?: string;
2853
- }) | ({
2854
- __TYPE__: "DocumentLink";
2855
- } & {
3079
+ }) | {
2856
3080
  id: string;
2857
- }) | ({
2858
- __TYPE__: "ExternalLink";
2859
- } & {
3081
+ } | ({
2860
3082
  url: string;
2861
3083
  } & {
2862
3084
  kind?: "web";
@@ -3141,8 +3363,6 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
3141
3363
  title?: string;
3142
3364
  } | null | undefined;
3143
3365
  }), ({
3144
- __TYPE__: "ImageLink";
3145
- } & {
3146
3366
  id: string;
3147
3367
  url: string;
3148
3368
  height: string;
@@ -3160,17 +3380,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
3160
3380
  size: string;
3161
3381
  } & {
3162
3382
  date?: string | null | undefined;
3163
- } & {
3164
- __TYPE__: "FileLink";
3165
- } & {
3166
- size?: string;
3167
- }) | ({
3168
- __TYPE__: "DocumentLink";
3169
- } & {
3383
+ }) | {
3170
3384
  id: string;
3171
- }) | ({
3172
- __TYPE__: "ExternalLink";
3173
- } & {
3385
+ } | ({
3174
3386
  url: string;
3175
3387
  } & {
3176
3388
  kind?: "web";
@@ -3235,7 +3447,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
3235
3447
  }>>]>]>>;
3236
3448
  }>>>;
3237
3449
  }>>]>]>;
3238
- export type SliceContent = t.TypeOf<typeof SliceContent>;
3450
+ export declare type SliceContent = t.TypeOf<typeof SliceContent>;
3239
3451
  export * from "./CompositeSliceContent";
3240
3452
  export * from "./SharedSliceContent";
3241
3453
  export * from "./SimpleSliceContent";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SliceContent = exports.SliceLegacy = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const t = tslib_1.__importStar(require("io-ts"));
5
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
6
6
  const CompositeSliceContent_1 = require("./CompositeSliceContent");
7
7
  const SharedSliceContent_1 = require("./SharedSliceContent");
8
8
  const SimpleSliceContent_1 = require("./SimpleSliceContent");
@@ -39,6 +39,6 @@ exports.SliceContent = t.union([
39
39
  SharedSliceContent_1.SharedSliceContent,
40
40
  SimpleSliceContent_1.SimpleSliceContent,
41
41
  ]);
42
- tslib_1.__exportStar(require("./CompositeSliceContent"), exports);
43
- tslib_1.__exportStar(require("./SharedSliceContent"), exports);
44
- tslib_1.__exportStar(require("./SimpleSliceContent"), exports);
42
+ (0, tslib_1.__exportStar)(require("./CompositeSliceContent"), exports);
43
+ (0, tslib_1.__exportStar)(require("./SharedSliceContent"), exports);
44
+ (0, tslib_1.__exportStar)(require("./SimpleSliceContent"), exports);
@@ -225,8 +225,6 @@ export declare const SliceItemContent: t.TypeC<{
225
225
  title?: string;
226
226
  } | null | undefined;
227
227
  }), ({
228
- __TYPE__: "ImageLink";
229
- } & {
230
228
  id: string;
231
229
  url: string;
232
230
  height: string;
@@ -244,17 +242,9 @@ export declare const SliceItemContent: t.TypeC<{
244
242
  size: string;
245
243
  } & {
246
244
  date?: string | null | undefined;
247
- } & {
248
- __TYPE__: "FileLink";
249
- } & {
250
- size?: string;
251
- }) | ({
252
- __TYPE__: "DocumentLink";
253
- } & {
245
+ }) | {
254
246
  id: string;
255
- }) | ({
256
- __TYPE__: "ExternalLink";
257
- } & {
247
+ } | ({
258
248
  url: string;
259
249
  } & {
260
250
  kind?: "web";
@@ -538,8 +528,6 @@ export declare const SliceItemContent: t.TypeC<{
538
528
  title?: string;
539
529
  } | null | undefined;
540
530
  }), ({
541
- __TYPE__: "ImageLink";
542
- } & {
543
531
  id: string;
544
532
  url: string;
545
533
  height: string;
@@ -557,17 +545,9 @@ export declare const SliceItemContent: t.TypeC<{
557
545
  size: string;
558
546
  } & {
559
547
  date?: string | null | undefined;
560
- } & {
561
- __TYPE__: "FileLink";
562
- } & {
563
- size?: string;
564
- }) | ({
565
- __TYPE__: "DocumentLink";
566
- } & {
548
+ }) | {
567
549
  id: string;
568
- }) | ({
569
- __TYPE__: "ExternalLink";
570
- } & {
550
+ } | ({
571
551
  url: string;
572
552
  } & {
573
553
  kind?: "web";
@@ -853,8 +833,6 @@ export declare const SliceItemContent: t.TypeC<{
853
833
  title?: string;
854
834
  } | null | undefined;
855
835
  }), ({
856
- __TYPE__: "ImageLink";
857
- } & {
858
836
  id: string;
859
837
  url: string;
860
838
  height: string;
@@ -872,17 +850,9 @@ export declare const SliceItemContent: t.TypeC<{
872
850
  size: string;
873
851
  } & {
874
852
  date?: string | null | undefined;
875
- } & {
876
- __TYPE__: "FileLink";
877
- } & {
878
- size?: string;
879
- }) | ({
880
- __TYPE__: "DocumentLink";
881
- } & {
853
+ }) | {
882
854
  id: string;
883
- }) | ({
884
- __TYPE__: "ExternalLink";
885
- } & {
855
+ } | ({
886
856
  url: string;
887
857
  } & {
888
858
  kind?: "web";
@@ -1166,8 +1136,6 @@ export declare const SliceItemContent: t.TypeC<{
1166
1136
  title?: string;
1167
1137
  } | null | undefined;
1168
1138
  }), ({
1169
- __TYPE__: "ImageLink";
1170
- } & {
1171
1139
  id: string;
1172
1140
  url: string;
1173
1141
  height: string;
@@ -1185,17 +1153,9 @@ export declare const SliceItemContent: t.TypeC<{
1185
1153
  size: string;
1186
1154
  } & {
1187
1155
  date?: string | null | undefined;
1188
- } & {
1189
- __TYPE__: "FileLink";
1190
- } & {
1191
- size?: string;
1192
- }) | ({
1193
- __TYPE__: "DocumentLink";
1194
- } & {
1156
+ }) | {
1195
1157
  id: string;
1196
- }) | ({
1197
- __TYPE__: "ExternalLink";
1198
- } & {
1158
+ } | ({
1199
1159
  url: string;
1200
1160
  } & {
1201
1161
  kind?: "web";
@@ -1478,8 +1438,6 @@ export declare const SliceItemContent: t.TypeC<{
1478
1438
  title?: string;
1479
1439
  } | null | undefined;
1480
1440
  }), ({
1481
- __TYPE__: "ImageLink";
1482
- } & {
1483
1441
  id: string;
1484
1442
  url: string;
1485
1443
  height: string;
@@ -1497,17 +1455,9 @@ export declare const SliceItemContent: t.TypeC<{
1497
1455
  size: string;
1498
1456
  } & {
1499
1457
  date?: string | null | undefined;
1500
- } & {
1501
- __TYPE__: "FileLink";
1502
- } & {
1503
- size?: string;
1504
- }) | ({
1505
- __TYPE__: "DocumentLink";
1506
- } & {
1458
+ }) | {
1507
1459
  id: string;
1508
- }) | ({
1509
- __TYPE__: "ExternalLink";
1510
- } & {
1460
+ } | ({
1511
1461
  url: string;
1512
1462
  } & {
1513
1463
  kind?: "web";
@@ -1792,8 +1742,6 @@ export declare const SliceItemContent: t.TypeC<{
1792
1742
  title?: string;
1793
1743
  } | null | undefined;
1794
1744
  }), ({
1795
- __TYPE__: "ImageLink";
1796
- } & {
1797
1745
  id: string;
1798
1746
  url: string;
1799
1747
  height: string;
@@ -1811,17 +1759,9 @@ export declare const SliceItemContent: t.TypeC<{
1811
1759
  size: string;
1812
1760
  } & {
1813
1761
  date?: string | null | undefined;
1814
- } & {
1815
- __TYPE__: "FileLink";
1816
- } & {
1817
- size?: string;
1818
- }) | ({
1819
- __TYPE__: "DocumentLink";
1820
- } & {
1762
+ }) | {
1821
1763
  id: string;
1822
- }) | ({
1823
- __TYPE__: "ExternalLink";
1824
- } & {
1764
+ } | ({
1825
1765
  url: string;
1826
1766
  } & {
1827
1767
  kind?: "web";
@@ -1887,7 +1827,7 @@ export declare const SliceItemContent: t.TypeC<{
1887
1827
  }>>>;
1888
1828
  }>>]>]>;
1889
1829
  }>;
1890
- export type SliceItemContent = t.TypeOf<typeof SliceItemContent>;
1830
+ export declare type SliceItemContent = t.TypeOf<typeof SliceItemContent>;
1891
1831
  export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
1892
1832
  key: string;
1893
1833
  name: string;
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const Either_1 = require("fp-ts/lib/Either");
7
7
  const function_1 = require("fp-ts/lib/function");
8
- const t = tslib_1.__importStar(require("io-ts"));
8
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
9
9
  const function_2 = require("../../../validators/function");
10
10
  const LegacyContentCtx_1 = require("../../LegacyContentCtx");
11
11
  const Slice_1 = require("./Slice");