@prismicio/types-internal 2.0.0-beta.0 → 2.0.0-beta.1

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 (165) 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 +14 -2
  73. package/lib/customtypes/CustomType.js +7 -2
  74. package/lib/customtypes/Section.d.ts +2 -2
  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 +671 -3
  78. package/lib/customtypes/diff/Variation.d.ts +657 -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 +2 -2
  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 +3 -3
  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/index.js +56 -0
  106. package/lib/customtypes/widgets/nestable/Link.d.ts +2 -2
  107. package/lib/customtypes/widgets/nestable/Link.js +1 -1
  108. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +2 -2
  109. package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
  110. package/lib/customtypes/widgets/nestable/Number.d.ts +2 -2
  111. package/lib/customtypes/widgets/nestable/Number.js +1 -1
  112. package/lib/customtypes/widgets/nestable/Range.d.ts +2 -2
  113. package/lib/customtypes/widgets/nestable/Range.js +1 -1
  114. package/lib/customtypes/widgets/nestable/RichText.d.ts +3 -3
  115. package/lib/customtypes/widgets/nestable/RichText.js +2 -2
  116. package/lib/customtypes/widgets/nestable/Select.d.ts +2 -2
  117. package/lib/customtypes/widgets/nestable/Select.js +1 -1
  118. package/lib/customtypes/widgets/nestable/Separator.d.ts +2 -2
  119. package/lib/customtypes/widgets/nestable/Separator.js +1 -1
  120. package/lib/customtypes/widgets/nestable/Text.d.ts +2 -2
  121. package/lib/customtypes/widgets/nestable/Text.js +1 -1
  122. package/lib/customtypes/widgets/nestable/Timestamp.d.ts +2 -2
  123. package/lib/customtypes/widgets/nestable/Timestamp.js +1 -1
  124. package/lib/customtypes/widgets/nestable/index.js +16 -16
  125. package/lib/customtypes/widgets/shared/ImageConstraint.d.ts +1 -1
  126. package/lib/customtypes/widgets/shared/ImageConstraint.js +1 -1
  127. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -2
  128. package/lib/customtypes/widgets/slices/CompositeSlice.js +1 -1
  129. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +1 -1
  130. package/lib/customtypes/widgets/slices/LegacySlice.js +1 -1
  131. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +2 -2
  132. package/lib/customtypes/widgets/slices/SharedSlice.js +1 -1
  133. package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +1 -1
  134. package/lib/customtypes/widgets/slices/SharedSliceRef.js +1 -1
  135. package/lib/customtypes/widgets/slices/Slice.d.ts +2 -2
  136. package/lib/customtypes/widgets/slices/Slices.d.ts +5 -5
  137. package/lib/customtypes/widgets/slices/Slices.js +1 -1
  138. package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +1 -1
  139. package/lib/customtypes/widgets/slices/SlicesTypes.js +1 -1
  140. package/lib/customtypes/widgets/slices/index.js +7 -7
  141. package/lib/utils/index.js +2 -2
  142. package/lib/validators/DateFromString.js +1 -1
  143. package/lib/validators/DateFromStringOrNumber.js +1 -1
  144. package/lib/validators/DateFromTsMs.js +1 -1
  145. package/lib/validators/IntFromNumber.d.ts +2 -2
  146. package/lib/validators/IntFromNumber.js +1 -1
  147. package/lib/validators/IntFromPixels.d.ts +2 -2
  148. package/lib/validators/IntFromPixels.js +1 -1
  149. package/lib/validators/NonEmptyString.js +1 -1
  150. package/lib/validators/NonEmptyStringOrNull.js +1 -1
  151. package/lib/validators/NumberOrNull.js +1 -1
  152. package/lib/validators/StringFromBoolean.d.ts +2 -2
  153. package/lib/validators/StringFromBoolean.js +1 -1
  154. package/lib/validators/StringFromNumber.d.ts +2 -2
  155. package/lib/validators/StringFromNumber.js +1 -1
  156. package/lib/validators/StringOrNull.js +1 -1
  157. package/lib/validators/TrimmedString.d.ts +2 -2
  158. package/lib/validators/TrimmedString.js +1 -1
  159. package/lib/validators/function.js +1 -1
  160. package/lib/validators/index.js +12 -12
  161. package/package.json +1 -1
  162. package/src/content/fields/nestable/RichTextContent/Blocks.ts +31 -23
  163. package/src/content/fields/nestable/RichTextContent/index.ts +1 -3
  164. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +4 -1
  165. package/src/customtypes/CustomType.ts +6 -0
@@ -223,8 +223,6 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
223
223
  title?: string;
224
224
  } | null | undefined;
225
225
  }), ({
226
- __TYPE__: "ImageLink";
227
- } & {
228
226
  id: string;
229
227
  url: string;
230
228
  height: string;
@@ -242,17 +240,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
242
240
  size: string;
243
241
  } & {
244
242
  date?: string | null | undefined;
245
- } & {
246
- __TYPE__: "FileLink";
247
- } & {
248
- size?: string;
249
- }) | ({
250
- __TYPE__: "DocumentLink";
251
- } & {
243
+ }) | {
252
244
  id: string;
253
- }) | ({
254
- __TYPE__: "ExternalLink";
255
- } & {
245
+ } | ({
256
246
  url: string;
257
247
  } & {
258
248
  kind?: "web";
@@ -535,8 +525,6 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
535
525
  title?: string;
536
526
  } | null | undefined;
537
527
  }), ({
538
- __TYPE__: "ImageLink";
539
- } & {
540
528
  id: string;
541
529
  url: string;
542
530
  height: string;
@@ -554,17 +542,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
554
542
  size: string;
555
543
  } & {
556
544
  date?: string | null | undefined;
557
- } & {
558
- __TYPE__: "FileLink";
559
- } & {
560
- size?: string;
561
- }) | ({
562
- __TYPE__: "DocumentLink";
563
- } & {
545
+ }) | {
564
546
  id: string;
565
- }) | ({
566
- __TYPE__: "ExternalLink";
567
- } & {
547
+ } | ({
568
548
  url: string;
569
549
  } & {
570
550
  kind?: "web";
@@ -856,8 +836,6 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
856
836
  title?: string;
857
837
  } | null | undefined;
858
838
  }), ({
859
- __TYPE__: "ImageLink";
860
- } & {
861
839
  id: string;
862
840
  url: string;
863
841
  height: string;
@@ -875,17 +853,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
875
853
  size: string;
876
854
  } & {
877
855
  date?: string | null | undefined;
878
- } & {
879
- __TYPE__: "FileLink";
880
- } & {
881
- size?: string;
882
- }) | ({
883
- __TYPE__: "DocumentLink";
884
- } & {
856
+ }) | {
885
857
  id: string;
886
- }) | ({
887
- __TYPE__: "ExternalLink";
888
- } & {
858
+ } | ({
889
859
  url: string;
890
860
  } & {
891
861
  kind?: "web";
@@ -1169,8 +1139,6 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1169
1139
  title?: string;
1170
1140
  } | null | undefined;
1171
1141
  }), ({
1172
- __TYPE__: "ImageLink";
1173
- } & {
1174
1142
  id: string;
1175
1143
  url: string;
1176
1144
  height: string;
@@ -1188,17 +1156,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1188
1156
  size: string;
1189
1157
  } & {
1190
1158
  date?: string | null | undefined;
1191
- } & {
1192
- __TYPE__: "FileLink";
1193
- } & {
1194
- size?: string;
1195
- }) | ({
1196
- __TYPE__: "DocumentLink";
1197
- } & {
1159
+ }) | {
1198
1160
  id: string;
1199
- }) | ({
1200
- __TYPE__: "ExternalLink";
1201
- } & {
1161
+ } | ({
1202
1162
  url: string;
1203
1163
  } & {
1204
1164
  kind?: "web";
@@ -1484,8 +1444,6 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1484
1444
  title?: string;
1485
1445
  } | null | undefined;
1486
1446
  }), ({
1487
- __TYPE__: "ImageLink";
1488
- } & {
1489
1447
  id: string;
1490
1448
  url: string;
1491
1449
  height: string;
@@ -1503,17 +1461,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1503
1461
  size: string;
1504
1462
  } & {
1505
1463
  date?: string | null | undefined;
1506
- } & {
1507
- __TYPE__: "FileLink";
1508
- } & {
1509
- size?: string;
1510
- }) | ({
1511
- __TYPE__: "DocumentLink";
1512
- } & {
1464
+ }) | {
1513
1465
  id: string;
1514
- }) | ({
1515
- __TYPE__: "ExternalLink";
1516
- } & {
1466
+ } | ({
1517
1467
  url: string;
1518
1468
  } & {
1519
1469
  kind?: "web";
@@ -1797,8 +1747,6 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1797
1747
  title?: string;
1798
1748
  } | null | undefined;
1799
1749
  }), ({
1800
- __TYPE__: "ImageLink";
1801
- } & {
1802
1750
  id: string;
1803
1751
  url: string;
1804
1752
  height: string;
@@ -1816,17 +1764,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
1816
1764
  size: string;
1817
1765
  } & {
1818
1766
  date?: string | null | undefined;
1819
- } & {
1820
- __TYPE__: "FileLink";
1821
- } & {
1822
- size?: string;
1823
- }) | ({
1824
- __TYPE__: "DocumentLink";
1825
- } & {
1767
+ }) | {
1826
1768
  id: string;
1827
- }) | ({
1828
- __TYPE__: "ExternalLink";
1829
- } & {
1769
+ } | ({
1830
1770
  url: string;
1831
1771
  } & {
1832
1772
  kind?: "web";
@@ -2109,8 +2049,6 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2109
2049
  title?: string;
2110
2050
  } | null | undefined;
2111
2051
  }), ({
2112
- __TYPE__: "ImageLink";
2113
- } & {
2114
2052
  id: string;
2115
2053
  url: string;
2116
2054
  height: string;
@@ -2128,17 +2066,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2128
2066
  size: string;
2129
2067
  } & {
2130
2068
  date?: string | null | undefined;
2131
- } & {
2132
- __TYPE__: "FileLink";
2133
- } & {
2134
- size?: string;
2135
- }) | ({
2136
- __TYPE__: "DocumentLink";
2137
- } & {
2069
+ }) | {
2138
2070
  id: string;
2139
- }) | ({
2140
- __TYPE__: "ExternalLink";
2141
- } & {
2071
+ } | ({
2142
2072
  url: string;
2143
2073
  } & {
2144
2074
  kind?: "web";
@@ -2423,8 +2353,6 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2423
2353
  title?: string;
2424
2354
  } | null | undefined;
2425
2355
  }), ({
2426
- __TYPE__: "ImageLink";
2427
- } & {
2428
2356
  id: string;
2429
2357
  url: string;
2430
2358
  height: string;
@@ -2442,17 +2370,9 @@ export declare const WidgetContent: t.UnionC<[t.ExactC<t.TypeC<{
2442
2370
  size: string;
2443
2371
  } & {
2444
2372
  date?: string | null | undefined;
2445
- } & {
2446
- __TYPE__: "FileLink";
2447
- } & {
2448
- size?: string;
2449
- }) | ({
2450
- __TYPE__: "DocumentLink";
2451
- } & {
2373
+ }) | {
2452
2374
  id: string;
2453
- }) | ({
2454
- __TYPE__: "ExternalLink";
2455
- } & {
2375
+ } | ({
2456
2376
  url: string;
2457
2377
  } & {
2458
2378
  kind?: "web";
@@ -4690,8 +4610,8 @@ export declare const isWidgetContent: (u: unknown) => u is {
4690
4610
  __TYPE__: "UIDContent";
4691
4611
  value: string;
4692
4612
  };
4693
- export type WidgetContent = t.TypeOf<typeof WidgetContent>;
4694
- export type ContentType = WidgetContent["__TYPE__"];
4613
+ export declare type WidgetContent = t.TypeOf<typeof WidgetContent>;
4614
+ export declare type ContentType = WidgetContent["__TYPE__"];
4695
4615
  export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
4696
4616
  decode(value: unknown): import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
4697
4617
  type: string;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WidgetLegacy = exports.isWidgetContent = exports.WidgetContent = 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 GroupContent_1 = require("./GroupContent");
7
7
  const nestable_1 = require("./nestable");
8
8
  const slices_1 = require("./slices");
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./EmptyContent"), exports);
5
- tslib_1.__exportStar(require("./GroupContent"), exports);
6
- tslib_1.__exportStar(require("./nestable"), exports);
7
- tslib_1.__exportStar(require("./slices"), exports);
8
- tslib_1.__exportStar(require("./UIDContent"), exports);
9
- tslib_1.__exportStar(require("./WidgetContent"), exports);
4
+ (0, tslib_1.__exportStar)(require("./EmptyContent"), exports);
5
+ (0, tslib_1.__exportStar)(require("./GroupContent"), exports);
6
+ (0, tslib_1.__exportStar)(require("./nestable"), exports);
7
+ (0, tslib_1.__exportStar)(require("./slices"), exports);
8
+ (0, tslib_1.__exportStar)(require("./UIDContent"), exports);
9
+ (0, tslib_1.__exportStar)(require("./WidgetContent"), exports);
@@ -13,4 +13,4 @@ export declare const BooleanContent: t.ExactC<t.TypeC<{
13
13
  __TYPE__: t.LiteralC<"BooleanContent">;
14
14
  value: t.BooleanC;
15
15
  }>>;
16
- export type BooleanContent = t.TypeOf<typeof BooleanContent>;
16
+ export declare type BooleanContent = t.TypeOf<typeof BooleanContent>;
@@ -4,7 +4,7 @@ exports.BooleanContent = exports.BooleanLegacy = exports.isBooleanContent = expo
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const utils_1 = require("../../utils");
9
9
  exports.BooleanContentType = "BooleanContent";
10
10
  const isBooleanContent = (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.BooleanContentType;
@@ -36,7 +36,7 @@ export declare const EmbedContentLegacy: t.ExactC<t.IntersectionC<[t.TypeC<{
36
36
  thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
37
37
  html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
38
38
  }>]>>;
39
- export type EmbedLegacy = t.TypeOf<typeof EmbedContentLegacy>;
39
+ export declare type EmbedLegacy = t.TypeOf<typeof EmbedContentLegacy>;
40
40
  export declare const EmbedLegacy: (ctx: LegacyContentCtx) => t.Type<{
41
41
  embed_url: string;
42
42
  type: string;
@@ -75,4 +75,4 @@ export declare const EmbedContent: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.
75
75
  __TYPE__: t.LiteralC<"EmbedContent">;
76
76
  all: t.UnknownC;
77
77
  }>>]>;
78
- export type EmbedContent = t.TypeOf<typeof EmbedContent>;
78
+ export declare type EmbedContent = t.TypeOf<typeof EmbedContent>;
@@ -4,7 +4,7 @@ exports.EmbedContent = exports.EmbedLegacy = exports.EmbedContentLegacy = export
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const validators_1 = require("../../../validators");
9
9
  const utils_1 = require("../../utils");
10
10
  exports.EmbedContentType = "EmbedContent";
@@ -15,4 +15,4 @@ export declare const ColorContent: t.ExactC<t.TypeC<{
15
15
  value: t.Type<string, string, unknown>;
16
16
  __TYPE__: t.LiteralC<"FieldContent">;
17
17
  }>>;
18
- export type ColorContent = t.TypeOf<typeof ColorContent>;
18
+ export declare type ColorContent = t.TypeOf<typeof ColorContent>;
@@ -4,9 +4,9 @@ exports.ColorContent = exports.ColorLegacy = exports.isColorContent = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const widgets_1 = require("../../../../customtypes/widgets");
9
- const TrimmedString_1 = tslib_1.__importDefault(require("../../../../validators/TrimmedString"));
9
+ const TrimmedString_1 = (0, tslib_1.__importDefault)(require("../../../../validators/TrimmedString"));
10
10
  const utils_1 = require("../../../utils");
11
11
  const common_1 = require("./common");
12
12
  const isColorContent = (u) => (0, utils_1.hasContentType)(u) &&
@@ -15,4 +15,4 @@ export declare const DateContent: t.ExactC<t.TypeC<{
15
15
  value: t.Type<string, string, unknown>;
16
16
  __TYPE__: t.LiteralC<"FieldContent">;
17
17
  }>>;
18
- export type DateContent = t.TypeOf<typeof DateContent>;
18
+ export declare type DateContent = t.TypeOf<typeof DateContent>;
@@ -4,9 +4,9 @@ exports.DateContent = exports.DateLegacy = exports.isDateContent = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const widgets_1 = require("../../../../customtypes/widgets");
9
- const TrimmedString_1 = tslib_1.__importDefault(require("../../../../validators/TrimmedString"));
9
+ const TrimmedString_1 = (0, tslib_1.__importDefault)(require("../../../../validators/TrimmedString"));
10
10
  const utils_1 = require("../../../utils");
11
11
  const common_1 = require("./common");
12
12
  const isDateContent = (u) => (0, utils_1.hasContentType)(u) &&
@@ -15,4 +15,4 @@ export declare const NumberContent: t.ExactC<t.TypeC<{
15
15
  value: t.Type<string, string, unknown>;
16
16
  __TYPE__: t.LiteralC<"FieldContent">;
17
17
  }>>;
18
- export type NumberContent = t.TypeOf<typeof NumberContent>;
18
+ export declare type NumberContent = t.TypeOf<typeof NumberContent>;
@@ -4,9 +4,9 @@ exports.NumberContent = exports.NumberLegacy = exports.isNumberContent = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const widgets_1 = require("../../../../customtypes/widgets");
9
- const TrimmedString_1 = tslib_1.__importDefault(require("../../../../validators/TrimmedString"));
9
+ const TrimmedString_1 = (0, tslib_1.__importDefault)(require("../../../../validators/TrimmedString"));
10
10
  const utils_1 = require("../../../utils");
11
11
  const common_1 = require("./common");
12
12
  const isNumberContent = (u) => (0, utils_1.hasContentType)(u) &&
@@ -15,4 +15,4 @@ export declare const RangeContent: t.ExactC<t.TypeC<{
15
15
  value: t.Type<string, string, unknown>;
16
16
  __TYPE__: t.LiteralC<"FieldContent">;
17
17
  }>>;
18
- export type RangeContent = t.TypeOf<typeof RangeContent>;
18
+ export declare type RangeContent = t.TypeOf<typeof RangeContent>;
@@ -4,9 +4,9 @@ exports.RangeContent = exports.RangeLegacy = exports.isRangeContent = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const widgets_1 = require("../../../../customtypes/widgets");
9
- const TrimmedString_1 = tslib_1.__importDefault(require("../../../../validators/TrimmedString"));
9
+ const TrimmedString_1 = (0, tslib_1.__importDefault)(require("../../../../validators/TrimmedString"));
10
10
  const utils_1 = require("../../../utils");
11
11
  const common_1 = require("./common");
12
12
  const isRangeContent = (u) => (0, utils_1.hasContentType)(u) &&
@@ -15,4 +15,4 @@ export declare const SelectContent: t.ExactC<t.TypeC<{
15
15
  value: t.Type<string, string, unknown>;
16
16
  __TYPE__: t.LiteralC<"FieldContent">;
17
17
  }>>;
18
- export type SelectContent = t.TypeOf<typeof SelectContent>;
18
+ export declare type SelectContent = t.TypeOf<typeof SelectContent>;
@@ -4,9 +4,9 @@ exports.SelectContent = exports.SelectLegacy = exports.isSelectContent = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const widgets_1 = require("../../../../customtypes/widgets");
9
- const TrimmedString_1 = tslib_1.__importDefault(require("../../../../validators/TrimmedString"));
9
+ const TrimmedString_1 = (0, tslib_1.__importDefault)(require("../../../../validators/TrimmedString"));
10
10
  const utils_1 = require("../../../utils");
11
11
  const common_1 = require("./common");
12
12
  const isSelectContent = (u) => (0, utils_1.hasContentType)(u) &&
@@ -15,4 +15,4 @@ export declare const TextContent: t.ExactC<t.TypeC<{
15
15
  value: t.Type<string, string, unknown>;
16
16
  __TYPE__: t.LiteralC<"FieldContent">;
17
17
  }>>;
18
- export type TextContent = t.TypeOf<typeof TextContent>;
18
+ export declare type TextContent = t.TypeOf<typeof TextContent>;
@@ -4,9 +4,9 @@ exports.TextContent = exports.TextLegacy = exports.isTextContent = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const widgets_1 = require("../../../../customtypes/widgets");
9
- const TrimmedString_1 = tslib_1.__importDefault(require("../../../../validators/TrimmedString"));
9
+ const TrimmedString_1 = (0, tslib_1.__importDefault)(require("../../../../validators/TrimmedString"));
10
10
  const utils_1 = require("../../../utils");
11
11
  const common_1 = require("./common");
12
12
  const isTextContent = (u) => (0, utils_1.hasContentType)(u) &&
@@ -15,4 +15,4 @@ export declare const TimestampContent: t.ExactC<t.TypeC<{
15
15
  value: t.Type<string, string, unknown>;
16
16
  __TYPE__: t.LiteralC<"FieldContent">;
17
17
  }>>;
18
- export type TimestampContent = t.TypeOf<typeof TimestampContent>;
18
+ export declare type TimestampContent = t.TypeOf<typeof TimestampContent>;
@@ -4,9 +4,9 @@ exports.TimestampContent = exports.TimestampLegacy = exports.isTimestampContent
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const widgets_1 = require("../../../../customtypes/widgets");
9
- const TrimmedString_1 = tslib_1.__importDefault(require("../../../../validators/TrimmedString"));
9
+ const TrimmedString_1 = (0, tslib_1.__importDefault)(require("../../../../validators/TrimmedString"));
10
10
  const utils_1 = require("../../../utils");
11
11
  const common_1 = require("./common");
12
12
  const isTimestampContent = (u) => (0, utils_1.hasContentType)(u) &&
@@ -8,7 +8,7 @@ export declare const FieldType: t.KeyofC<{
8
8
  Range: null;
9
9
  Select: null;
10
10
  }>;
11
- export type FieldType = t.TypeOf<typeof FieldType>;
11
+ export declare type FieldType = t.TypeOf<typeof FieldType>;
12
12
  export declare const FieldContent: t.UnionC<[t.ExactC<t.TypeC<{
13
13
  type: t.LiteralC<"Date">;
14
14
  value: t.Type<string, string, unknown>;
@@ -38,7 +38,7 @@ export declare const FieldContent: t.UnionC<[t.ExactC<t.TypeC<{
38
38
  value: t.Type<string, string, unknown>;
39
39
  __TYPE__: t.LiteralC<"FieldContent">;
40
40
  }>>]>;
41
- export type FieldContent = t.TypeOf<typeof FieldContent>;
41
+ export declare type FieldContent = t.TypeOf<typeof FieldContent>;
42
42
  export * from "./ColorContent";
43
43
  export * from "./common";
44
44
  export * from "./DateContent";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FieldContent = exports.FieldType = 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 ColorContent_1 = require("./ColorContent");
7
7
  const DateContent_1 = require("./DateContent");
8
8
  const NumberContent_1 = require("./NumberContent");
@@ -28,11 +28,11 @@ exports.FieldContent = t.union([
28
28
  TextContent_1.TextContent,
29
29
  TimestampContent_1.TimestampContent,
30
30
  ]);
31
- tslib_1.__exportStar(require("./ColorContent"), exports);
32
- tslib_1.__exportStar(require("./common"), exports);
33
- tslib_1.__exportStar(require("./DateContent"), exports);
34
- tslib_1.__exportStar(require("./NumberContent"), exports);
35
- tslib_1.__exportStar(require("./RangeContent"), exports);
36
- tslib_1.__exportStar(require("./SelectContent"), exports);
37
- tslib_1.__exportStar(require("./TextContent"), exports);
38
- tslib_1.__exportStar(require("./TimestampContent"), exports);
31
+ (0, tslib_1.__exportStar)(require("./ColorContent"), exports);
32
+ (0, tslib_1.__exportStar)(require("./common"), exports);
33
+ (0, tslib_1.__exportStar)(require("./DateContent"), exports);
34
+ (0, tslib_1.__exportStar)(require("./NumberContent"), exports);
35
+ (0, tslib_1.__exportStar)(require("./RangeContent"), exports);
36
+ (0, tslib_1.__exportStar)(require("./SelectContent"), exports);
37
+ (0, tslib_1.__exportStar)(require("./TextContent"), exports);
38
+ (0, tslib_1.__exportStar)(require("./TimestampContent"), exports);
@@ -30,4 +30,4 @@ export declare const GeoPointContent: t.IntersectionC<[t.ExactC<t.TypeC<{
30
30
  }>>, t.ExactC<t.TypeC<{
31
31
  __TYPE__: t.LiteralC<"GeoPointContent">;
32
32
  }>>]>;
33
- export type GeoPointContent = t.TypeOf<typeof GeoPointContent>;
33
+ export declare type GeoPointContent = t.TypeOf<typeof GeoPointContent>;
@@ -4,7 +4,7 @@ exports.GeoPointContent = exports.GeoPointLegacy = exports.isGeoPointContent = e
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const utils_1 = require("../../utils");
9
9
  exports.GeoPointContentType = "GeoPointContent";
10
10
  const isGeoPointContent = (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.GeoPointContentType;
@@ -75,7 +75,7 @@ export declare const ImageContentView: t.ExactC<t.IntersectionC<[t.TypeC<{
75
75
  alt: t.Type<string | null, string | null, unknown>;
76
76
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
77
77
  }>]>>;
78
- export type ImageContentView = t.TypeOf<typeof ImageContentView>;
78
+ export declare type ImageContentView = t.TypeOf<typeof ImageContentView>;
79
79
  export declare const ImageLegacy: (ctx: LegacyContentCtx) => t.Type<{
80
80
  origin: {
81
81
  id: string;
@@ -224,4 +224,4 @@ export declare const ImageContent: t.IntersectionC<[t.IntersectionC<[t.ExactC<t.
224
224
  }>]>, t.ExactC<t.TypeC<{
225
225
  __TYPE__: t.LiteralC<"ImageContent">;
226
226
  }>>]>;
227
- export type ImageContent = t.TypeOf<typeof ImageContent>;
227
+ export declare type ImageContent = t.TypeOf<typeof ImageContent>;
@@ -4,7 +4,7 @@ exports.ImageContent = exports.ImageLegacy = exports.ImageContentView = exports.
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const Objects_1 = require("../../../utils/Objects");
9
9
  const validators_1 = require("../../../validators");
10
10
  const utils_1 = require("../../utils");
@@ -13,4 +13,4 @@ export declare const IntegrationFieldContent: t.ExactC<t.TypeC<{
13
13
  __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
14
14
  value: t.StringC;
15
15
  }>>;
16
- export type IntegrationFieldContent = t.TypeOf<typeof IntegrationFieldContent>;
16
+ export declare type IntegrationFieldContent = t.TypeOf<typeof IntegrationFieldContent>;
@@ -4,7 +4,7 @@ exports.IntegrationFieldContent = exports.IntegrationFieldLegacy = exports.isInt
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const utils_1 = require("../../utils");
9
9
  exports.IntegrationFieldContentType = "IntegrationFieldsContent";
10
10
  const isIntegrationFieldContent = (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.IntegrationFieldContentType;
@@ -14,7 +14,7 @@ export declare const ImageLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
14
14
  }>, t.PartialC<{
15
15
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
16
16
  }>]>>]>;
17
- export type ImageLinkContent = t.TypeOf<typeof ImageLinkContent>;
17
+ export declare type ImageLinkContent = t.TypeOf<typeof ImageLinkContent>;
18
18
  export declare const FileLinkType = "FileLink";
19
19
  export declare const FileLinkContent: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
20
20
  id: t.StringC;
@@ -29,14 +29,14 @@ export declare const FileLinkContent: t.IntersectionC<[t.ExactC<t.IntersectionC<
29
29
  }>, t.PartialC<{
30
30
  size: t.StringC;
31
31
  }>]>>]>;
32
- export type FileLinkContent = t.TypeOf<typeof FileLinkContent>;
32
+ export declare type FileLinkContent = t.TypeOf<typeof FileLinkContent>;
33
33
  export declare const DocumentLinkType = "DocumentLink";
34
34
  export declare const DocumentLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
35
35
  __TYPE__: t.LiteralC<"DocumentLink">;
36
36
  }>>, t.ExactC<t.TypeC<{
37
37
  id: t.Type<string, string, unknown>;
38
38
  }>>]>;
39
- export type DocumentLinkContent = t.TypeOf<typeof DocumentLinkContent>;
39
+ export declare type DocumentLinkContent = t.TypeOf<typeof DocumentLinkContent>;
40
40
  export declare const ExternalLinkType = "ExternalLink";
41
41
  export declare const ExternalLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
42
42
  __TYPE__: t.LiteralC<"ExternalLink">;
@@ -51,7 +51,7 @@ export declare const ExternalLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
51
51
  title?: string;
52
52
  }, unknown>, t.NullC, t.UndefinedC]>;
53
53
  }>]>>]>;
54
- export type ExternalLinkContent = t.TypeOf<typeof ExternalLinkContent>;
54
+ export declare type ExternalLinkContent = t.TypeOf<typeof ExternalLinkContent>;
55
55
  export declare const LinkContentType = "LinkContent";
56
56
  export declare const isLinkContent: (u: unknown) => u is {
57
57
  __TYPE__: "LinkContent";
@@ -317,5 +317,5 @@ export declare const LinkContent: t.ExactC<t.TypeC<{
317
317
  }, unknown>, t.NullC, t.UndefinedC]>;
318
318
  }>]>>]>]>;
319
319
  }>>;
320
- export type LinkContent = t.TypeOf<typeof LinkContent>;
321
- export type LinksTypes = LinkContent["__TYPE__"] | LinkContent["value"]["__TYPE__"];
320
+ export declare type LinkContent = t.TypeOf<typeof LinkContent>;
321
+ export declare type LinksTypes = LinkContent["__TYPE__"] | LinkContent["value"]["__TYPE__"];
@@ -4,7 +4,7 @@ exports.LinkContent = exports.Link = exports.LinkContentLegacy = exports.LinkLeg
4
4
  const tslib_1 = require("tslib");
5
5
  const fp_ts_1 = require("fp-ts");
6
6
  const function_1 = require("fp-ts/lib/function");
7
- const t = tslib_1.__importStar(require("io-ts"));
7
+ const t = (0, tslib_1.__importStar)(require("io-ts"));
8
8
  const io_ts_types_1 = require("io-ts-types");
9
9
  const validators_1 = require("../../../validators");
10
10
  const function_2 = require("../../../validators/function");