@prismicio/types-internal 2.2.1-alpha.0 → 2.2.1-remove-import.alpha-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 (250) hide show
  1. package/lib/common/UUID.d.ts +1 -2
  2. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +1 -2
  3. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +2 -4
  4. package/package.json +1 -1
  5. package/src/common/UUID.ts +1 -1
  6. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +1 -2
  7. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +2 -5
  8. package/lib/import/converters/Document.d.ts +0 -4
  9. package/lib/import/converters/Document.js +0 -21
  10. package/lib/import/converters/fields/Group.d.ts +0 -4
  11. package/lib/import/converters/fields/Group.js +0 -14
  12. package/lib/import/converters/fields/RepeatableZone.d.ts +0 -317
  13. package/lib/import/converters/fields/RepeatableZone.js +0 -15
  14. package/lib/import/converters/fields/RepeatableZoneItem.d.ts +0 -11
  15. package/lib/import/converters/fields/RepeatableZoneItem.js +0 -19
  16. package/lib/import/converters/fields/Slices/SharedSlice.d.ts +0 -4
  17. package/lib/import/converters/fields/Slices/SharedSlice.js +0 -19
  18. package/lib/import/converters/fields/Slices/SharedSliceContent.d.ts +0 -10
  19. package/lib/import/converters/fields/Slices/SharedSliceContent.js +0 -23
  20. package/lib/import/converters/fields/Slices/Slices.d.ts +0 -4
  21. package/lib/import/converters/fields/Slices/Slices.js +0 -16
  22. package/lib/import/converters/fields/Slices/index.d.ts +0 -1
  23. package/lib/import/converters/fields/Slices/index.js +0 -4
  24. package/lib/import/converters/fields/UID.d.ts +0 -3
  25. package/lib/import/converters/fields/UID.js +0 -10
  26. package/lib/import/converters/fields/index.d.ts +0 -4
  27. package/lib/import/converters/fields/index.js +0 -7
  28. package/lib/import/converters/fields/nestable/Boolean.d.ts +0 -3
  29. package/lib/import/converters/fields/nestable/Boolean.js +0 -12
  30. package/lib/import/converters/fields/nestable/Color.d.ts +0 -3
  31. package/lib/import/converters/fields/nestable/Color.js +0 -13
  32. package/lib/import/converters/fields/nestable/Date.d.ts +0 -3
  33. package/lib/import/converters/fields/nestable/Date.js +0 -15
  34. package/lib/import/converters/fields/nestable/Embed.d.ts +0 -4
  35. package/lib/import/converters/fields/nestable/Embed.js +0 -32
  36. package/lib/import/converters/fields/nestable/GeoPoint.d.ts +0 -3
  37. package/lib/import/converters/fields/nestable/GeoPoint.js +0 -15
  38. package/lib/import/converters/fields/nestable/Image.d.ts +0 -28
  39. package/lib/import/converters/fields/nestable/Image.js +0 -67
  40. package/lib/import/converters/fields/nestable/Link.d.ts +0 -4
  41. package/lib/import/converters/fields/nestable/Link.js +0 -70
  42. package/lib/import/converters/fields/nestable/Nestable.d.ts +0 -5
  43. package/lib/import/converters/fields/nestable/Nestable.js +0 -35
  44. package/lib/import/converters/fields/nestable/Number.d.ts +0 -3
  45. package/lib/import/converters/fields/nestable/Number.js +0 -13
  46. package/lib/import/converters/fields/nestable/RichText/embedBlock.d.ts +0 -4
  47. package/lib/import/converters/fields/nestable/RichText/embedBlock.js +0 -14
  48. package/lib/import/converters/fields/nestable/RichText/imageBlock.d.ts +0 -4
  49. package/lib/import/converters/fields/nestable/RichText/imageBlock.js +0 -12
  50. package/lib/import/converters/fields/nestable/RichText/index.d.ts +0 -4
  51. package/lib/import/converters/fields/nestable/RichText/index.js +0 -22
  52. package/lib/import/converters/fields/nestable/RichText/textBlock.d.ts +0 -4
  53. package/lib/import/converters/fields/nestable/RichText/textBlock.js +0 -54
  54. package/lib/import/converters/fields/nestable/Select.d.ts +0 -3
  55. package/lib/import/converters/fields/nestable/Select.js +0 -13
  56. package/lib/import/converters/fields/nestable/Text.d.ts +0 -3
  57. package/lib/import/converters/fields/nestable/Text.js +0 -13
  58. package/lib/import/converters/fields/nestable/Timestamp.d.ts +0 -3
  59. package/lib/import/converters/fields/nestable/Timestamp.js +0 -13
  60. package/lib/import/converters/fields/nestable/index.d.ts +0 -13
  61. package/lib/import/converters/fields/nestable/index.js +0 -16
  62. package/lib/import/converters/index.d.ts +0 -2
  63. package/lib/import/converters/index.js +0 -5
  64. package/lib/import/index.d.ts +0 -2
  65. package/lib/import/index.js +0 -5
  66. package/lib/import/validators/Document.d.ts +0 -6
  67. package/lib/import/validators/Document.js +0 -64
  68. package/lib/import/validators/fields/ImportContent.d.ts +0 -5
  69. package/lib/import/validators/fields/ImportContent.js +0 -21
  70. package/lib/import/validators/fields/ImportField.d.ts +0 -141
  71. package/lib/import/validators/fields/ImportField.js +0 -33
  72. package/lib/import/validators/fields/ImportGroup.d.ts +0 -345
  73. package/lib/import/validators/fields/ImportGroup.js +0 -27
  74. package/lib/import/validators/fields/ImportSlices/ImportSlices.d.ts +0 -8
  75. package/lib/import/validators/fields/ImportSlices/ImportSlices.js +0 -30
  76. package/lib/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.d.ts +0 -16
  77. package/lib/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.js +0 -61
  78. package/lib/import/validators/fields/ImportSlices/SharedSlice/errors.d.ts +0 -4
  79. package/lib/import/validators/fields/ImportSlices/SharedSlice/errors.js +0 -7
  80. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/OptionalSharedSliceId.d.ts +0 -2
  81. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/OptionalSharedSliceId.js +0 -15
  82. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceId.d.ts +0 -9
  83. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceId.js +0 -39
  84. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceType.d.ts +0 -11
  85. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceType.js +0 -24
  86. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceVariation.d.ts +0 -11
  87. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceVariation.js +0 -24
  88. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/index.d.ts +0 -4
  89. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/index.js +0 -7
  90. package/lib/import/validators/fields/ImportSlices/SharedSlice/index.d.ts +0 -3
  91. package/lib/import/validators/fields/ImportSlices/SharedSlice/index.js +0 -6
  92. package/lib/import/validators/fields/ImportSlices/SharedSlice/utils.d.ts +0 -342
  93. package/lib/import/validators/fields/ImportSlices/SharedSlice/utils.js +0 -11
  94. package/lib/import/validators/fields/ImportSlices/index.d.ts +0 -1
  95. package/lib/import/validators/fields/ImportSlices/index.js +0 -4
  96. package/lib/import/validators/fields/ImportSlices/utils.d.ts +0 -4
  97. package/lib/import/validators/fields/ImportSlices/utils.js +0 -35
  98. package/lib/import/validators/fields/RepeatableZone.d.ts +0 -11
  99. package/lib/import/validators/fields/RepeatableZone.js +0 -14
  100. package/lib/import/validators/fields/RepeatableZoneItem.d.ts +0 -11
  101. package/lib/import/validators/fields/RepeatableZoneItem.js +0 -39
  102. package/lib/import/validators/fields/UID.d.ts +0 -6
  103. package/lib/import/validators/fields/UID.js +0 -15
  104. package/lib/import/validators/fields/index.d.ts +0 -4
  105. package/lib/import/validators/fields/index.js +0 -7
  106. package/lib/import/validators/fields/nestable/Boolean.d.ts +0 -6
  107. package/lib/import/validators/fields/nestable/Boolean.js +0 -6
  108. package/lib/import/validators/fields/nestable/Color.d.ts +0 -6
  109. package/lib/import/validators/fields/nestable/Color.js +0 -15
  110. package/lib/import/validators/fields/nestable/Date.d.ts +0 -6
  111. package/lib/import/validators/fields/nestable/Date.js +0 -19
  112. package/lib/import/validators/fields/nestable/Embed.d.ts +0 -13
  113. package/lib/import/validators/fields/nestable/Embed.js +0 -31
  114. package/lib/import/validators/fields/nestable/GeoPoint.d.ts +0 -13
  115. package/lib/import/validators/fields/nestable/GeoPoint.js +0 -13
  116. package/lib/import/validators/fields/nestable/Image/default.d.ts +0 -22
  117. package/lib/import/validators/fields/nestable/Image/default.js +0 -19
  118. package/lib/import/validators/fields/nestable/Image/index.d.ts +0 -26
  119. package/lib/import/validators/fields/nestable/Image/index.js +0 -32
  120. package/lib/import/validators/fields/nestable/Image/merge.d.ts +0 -23
  121. package/lib/import/validators/fields/nestable/Image/merge.js +0 -44
  122. package/lib/import/validators/fields/nestable/Image/model.d.ts +0 -18
  123. package/lib/import/validators/fields/nestable/Image/model.js +0 -2
  124. package/lib/import/validators/fields/nestable/Image/validators.d.ts +0 -132
  125. package/lib/import/validators/fields/nestable/Image/validators.js +0 -43
  126. package/lib/import/validators/fields/nestable/ImportRichText/ImportBlock.d.ts +0 -6
  127. package/lib/import/validators/fields/nestable/ImportRichText/ImportBlock.js +0 -25
  128. package/lib/import/validators/fields/nestable/ImportRichText/ImportRichText.d.ts +0 -24
  129. package/lib/import/validators/fields/nestable/ImportRichText/ImportRichText.js +0 -32
  130. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportBlockType.d.ts +0 -6
  131. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportBlockType.js +0 -18
  132. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportEmbedBlock.d.ts +0 -10
  133. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportEmbedBlock.js +0 -11
  134. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportImageBlock.d.ts +0 -22
  135. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportImageBlock.js +0 -13
  136. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.d.ts +0 -78
  137. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.js +0 -43
  138. package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.d.ts +0 -79
  139. package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.js +0 -27
  140. package/lib/import/validators/fields/nestable/ImportRichText/blocks/index.d.ts +0 -4
  141. package/lib/import/validators/fields/nestable/ImportRichText/blocks/index.js +0 -7
  142. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/HyperlinkSpan.d.ts +0 -24
  143. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/HyperlinkSpan.js +0 -18
  144. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.d.ts +0 -12
  145. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.js +0 -16
  146. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/SpanLocation.d.ts +0 -5
  147. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/SpanLocation.js +0 -10
  148. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.d.ts +0 -15
  149. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.js +0 -20
  150. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/index.d.ts +0 -2
  151. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/index.js +0 -5
  152. package/lib/import/validators/fields/nestable/ImportRichText/index.d.ts +0 -2
  153. package/lib/import/validators/fields/nestable/ImportRichText/index.js +0 -7
  154. package/lib/import/validators/fields/nestable/Link.d.ts +0 -53
  155. package/lib/import/validators/fields/nestable/Link.js +0 -35
  156. package/lib/import/validators/fields/nestable/Nestable.d.ts +0 -192
  157. package/lib/import/validators/fields/nestable/Nestable.js +0 -71
  158. package/lib/import/validators/fields/nestable/Number.d.ts +0 -17
  159. package/lib/import/validators/fields/nestable/Number.js +0 -17
  160. package/lib/import/validators/fields/nestable/Select.d.ts +0 -16
  161. package/lib/import/validators/fields/nestable/Select.js +0 -19
  162. package/lib/import/validators/fields/nestable/Text.d.ts +0 -6
  163. package/lib/import/validators/fields/nestable/Text.js +0 -6
  164. package/lib/import/validators/fields/nestable/Timestamp.d.ts +0 -7
  165. package/lib/import/validators/fields/nestable/Timestamp.js +0 -19
  166. package/lib/import/validators/fields/nestable/index.d.ts +0 -14
  167. package/lib/import/validators/fields/nestable/index.js +0 -19
  168. package/lib/import/validators/index.d.ts +0 -2
  169. package/lib/import/validators/index.js +0 -5
  170. package/src/import/converters/Document.ts +0 -38
  171. package/src/import/converters/fields/Group.ts +0 -18
  172. package/src/import/converters/fields/RepeatableZone.ts +0 -19
  173. package/src/import/converters/fields/RepeatableZoneItem.ts +0 -32
  174. package/src/import/converters/fields/Slices/SharedSlice.ts +0 -24
  175. package/src/import/converters/fields/Slices/SharedSliceContent.ts +0 -27
  176. package/src/import/converters/fields/Slices/Slices.ts +0 -20
  177. package/src/import/converters/fields/Slices/index.ts +0 -1
  178. package/src/import/converters/fields/UID.ts +0 -9
  179. package/src/import/converters/fields/index.ts +0 -4
  180. package/src/import/converters/fields/nestable/Boolean.ts +0 -13
  181. package/src/import/converters/fields/nestable/Color.ts +0 -14
  182. package/src/import/converters/fields/nestable/Date.ts +0 -17
  183. package/src/import/converters/fields/nestable/Embed.ts +0 -37
  184. package/src/import/converters/fields/nestable/GeoPoint.ts +0 -16
  185. package/src/import/converters/fields/nestable/Image.ts +0 -91
  186. package/src/import/converters/fields/nestable/Link.ts +0 -77
  187. package/src/import/converters/fields/nestable/Nestable.ts +0 -55
  188. package/src/import/converters/fields/nestable/Number.ts +0 -14
  189. package/src/import/converters/fields/nestable/RichText/embedBlock.ts +0 -17
  190. package/src/import/converters/fields/nestable/RichText/imageBlock.ts +0 -17
  191. package/src/import/converters/fields/nestable/RichText/index.ts +0 -23
  192. package/src/import/converters/fields/nestable/RichText/textBlock.ts +0 -62
  193. package/src/import/converters/fields/nestable/Select.ts +0 -14
  194. package/src/import/converters/fields/nestable/Text.ts +0 -14
  195. package/src/import/converters/fields/nestable/Timestamp.ts +0 -14
  196. package/src/import/converters/fields/nestable/index.ts +0 -13
  197. package/src/import/converters/index.ts +0 -2
  198. package/src/import/index.ts +0 -2
  199. package/src/import/validators/Document.ts +0 -103
  200. package/src/import/validators/fields/ImportContent.ts +0 -30
  201. package/src/import/validators/fields/ImportField.ts +0 -36
  202. package/src/import/validators/fields/ImportGroup.ts +0 -45
  203. package/src/import/validators/fields/ImportSlices/ImportSlices.ts +0 -56
  204. package/src/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.ts +0 -104
  205. package/src/import/validators/fields/ImportSlices/SharedSlice/errors.ts +0 -6
  206. package/src/import/validators/fields/ImportSlices/SharedSlice/fields/OptionalSharedSliceId.ts +0 -20
  207. package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceId.ts +0 -65
  208. package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceType.ts +0 -45
  209. package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceVariation.ts +0 -45
  210. package/src/import/validators/fields/ImportSlices/SharedSlice/fields/index.ts +0 -4
  211. package/src/import/validators/fields/ImportSlices/SharedSlice/index.ts +0 -3
  212. package/src/import/validators/fields/ImportSlices/SharedSlice/utils.ts +0 -21
  213. package/src/import/validators/fields/ImportSlices/index.ts +0 -1
  214. package/src/import/validators/fields/ImportSlices/utils.ts +0 -43
  215. package/src/import/validators/fields/RepeatableZone.ts +0 -21
  216. package/src/import/validators/fields/RepeatableZoneItem.ts +0 -64
  217. package/src/import/validators/fields/UID.ts +0 -27
  218. package/src/import/validators/fields/index.ts +0 -4
  219. package/src/import/validators/fields/nestable/Boolean.ts +0 -7
  220. package/src/import/validators/fields/nestable/Color.ts +0 -28
  221. package/src/import/validators/fields/nestable/Date.ts +0 -34
  222. package/src/import/validators/fields/nestable/Embed.ts +0 -41
  223. package/src/import/validators/fields/nestable/GeoPoint.ts +0 -21
  224. package/src/import/validators/fields/nestable/Image/default.ts +0 -22
  225. package/src/import/validators/fields/nestable/Image/index.ts +0 -66
  226. package/src/import/validators/fields/nestable/Image/merge.ts +0 -64
  227. package/src/import/validators/fields/nestable/Image/model.ts +0 -18
  228. package/src/import/validators/fields/nestable/Image/validators.ts +0 -70
  229. package/src/import/validators/fields/nestable/ImportRichText/ImportBlock.ts +0 -39
  230. package/src/import/validators/fields/nestable/ImportRichText/ImportRichText.ts +0 -54
  231. package/src/import/validators/fields/nestable/ImportRichText/blocks/ImportBlockType.ts +0 -44
  232. package/src/import/validators/fields/nestable/ImportRichText/blocks/ImportEmbedBlock.ts +0 -13
  233. package/src/import/validators/fields/nestable/ImportRichText/blocks/ImportImageBlock.ts +0 -17
  234. package/src/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.ts +0 -56
  235. package/src/import/validators/fields/nestable/ImportRichText/blocks/Span.ts +0 -48
  236. package/src/import/validators/fields/nestable/ImportRichText/blocks/index.ts +0 -4
  237. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/HyperlinkSpan.ts +0 -24
  238. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.ts +0 -19
  239. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/SpanLocation.ts +0 -8
  240. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.ts +0 -24
  241. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/index.ts +0 -2
  242. package/src/import/validators/fields/nestable/ImportRichText/index.ts +0 -2
  243. package/src/import/validators/fields/nestable/Link.ts +0 -59
  244. package/src/import/validators/fields/nestable/Nestable.ts +0 -88
  245. package/src/import/validators/fields/nestable/Number.ts +0 -38
  246. package/src/import/validators/fields/nestable/Select.ts +0 -38
  247. package/src/import/validators/fields/nestable/Text.ts +0 -7
  248. package/src/import/validators/fields/nestable/Timestamp.ts +0 -39
  249. package/src/import/validators/fields/nestable/index.ts +0 -14
  250. package/src/import/validators/index.ts +0 -2
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportImageWithThumbnails = exports.ImportImageView = exports.ImportImageViewShape = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const BasicTypes_1 = require("../../../../../validators/BasicTypes");
7
- const function_1 = require("../../../../../validators/function");
8
- exports.ImportImageViewShape = t.intersection([
9
- t.type({
10
- // Image Id
11
- id: BasicTypes_1.String,
12
- }),
13
- t.partial({
14
- // Dimensions here will be used if they are not defined in the custom type
15
- dimensions: (0, function_1.withCustomError)(t.partial({
16
- width: BasicTypes_1.Number,
17
- height: BasicTypes_1.Number,
18
- }), () => "The value must be an object"),
19
- // Crop information
20
- edit: (0, function_1.withCustomError)(t.partial({
21
- x: BasicTypes_1.Number,
22
- y: BasicTypes_1.Number,
23
- zoom: BasicTypes_1.Number,
24
- background: BasicTypes_1.String,
25
- }), () => "The value must be an object"),
26
- // Copyrights and alt are set in the Asset by default but they can be overrided
27
- copyright: BasicTypes_1.StringOrNull,
28
- alt: BasicTypes_1.StringOrNull,
29
- }),
30
- ]);
31
- exports.ImportImageView = (0, function_1.withCustomError)(exports.ImportImageViewShape, () => "The value must be an object");
32
- const ImportThumbnails = (thumbnails) => t.partial(thumbnails.reduce((acc, thumbnail) => ({
33
- ...acc,
34
- [thumbnail.name]: exports.ImportImageView,
35
- }), {}));
36
- const ImportImageWithThumbnails = (def) => {
37
- var _a, _b;
38
- return (0, function_1.withCustomError)(t.intersection([
39
- exports.ImportImageViewShape,
40
- ImportThumbnails((_b = (_a = def === null || def === void 0 ? void 0 : def.config) === null || _a === void 0 ? void 0 : _a.thumbnails) !== null && _b !== void 0 ? _b : []),
41
- ]), () => "The value must be an object");
42
- };
43
- exports.ImportImageWithThumbnails = ImportImageWithThumbnails;
@@ -1,6 +0,0 @@
1
- import * as t from "io-ts";
2
- import { ImportBlockType, ImportEmbedBlock, ImportImageBlock, ImportTextBlock } from "./blocks";
3
- export declare type ImportBlock = ImportTextBlock | ImportImageBlock | ImportEmbedBlock;
4
- export declare const ImportBlock: (allowedBlockTypes: string[]) => t.Type<ImportBlock, {
5
- type: ImportBlockType;
6
- }, unknown>;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportBlock = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const function_1 = require("../../../../../validators/function");
7
- const blocks_1 = require("./blocks");
8
- const ImportBlock = (allowedBlockTypes) => (0, function_1.withCustomError)(t
9
- .type({
10
- type: (0, blocks_1.ImportBlockType)(allowedBlockTypes),
11
- })
12
- .pipe(new t.Type("ImportBlock", (u) => t
13
- .union([blocks_1.ImportTextBlock, blocks_1.ImportImageBlock, blocks_1.ImportEmbedBlock])
14
- .is(u), (u, c) => {
15
- if (u.type === "image") {
16
- return blocks_1.ImportImageBlock.validate(u, c);
17
- }
18
- else if (u.type === "embed") {
19
- return blocks_1.ImportEmbedBlock.validate(u, c);
20
- }
21
- else {
22
- return blocks_1.ImportTextBlock.validate(u, c);
23
- }
24
- }, t.identity)), () => "Rich text block must be an object");
25
- exports.ImportBlock = ImportBlock;
@@ -1,24 +0,0 @@
1
- import * as t from "io-ts";
2
- import { ImportBlock } from "./ImportBlock";
3
- export declare const ImportRichText: (customType?: ({
4
- type: "StructuredText";
5
- } & {
6
- fieldset?: string | null | undefined;
7
- config?: {
8
- label?: string | null | undefined;
9
- placeholder?: string;
10
- useAsTitle?: boolean;
11
- single?: string;
12
- multi?: string;
13
- imageConstraint?: {
14
- width?: number | null;
15
- height?: number | null;
16
- };
17
- labels?: readonly string[];
18
- allowTargetBlank?: boolean;
19
- };
20
- }) | undefined) => t.Type<{
21
- type: "StructuredText";
22
- value: ImportBlock[] | null;
23
- }, ImportBlock[] | undefined, unknown>;
24
- export declare type ImportRichText = t.TypeOf<ReturnType<typeof ImportRichText>>;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportRichText = void 0;
4
- const tslib_1 = require("tslib");
5
- const E = (0, tslib_1.__importStar)(require("fp-ts/Either"));
6
- const function_1 = require("fp-ts/function");
7
- const t = (0, tslib_1.__importStar)(require("io-ts"));
8
- const validators_1 = require("../../../../../validators");
9
- const function_2 = require("../../../../../validators/function");
10
- const ImportContent_1 = require("../../ImportContent");
11
- const ImportBlock_1 = require("./ImportBlock");
12
- const ImportRichText = (customType) => {
13
- var _a, _b, _c, _d;
14
- const single = (_b = (_a = customType === null || customType === void 0 ? void 0 : customType.config) === null || _a === void 0 ? void 0 : _a.single) === null || _b === void 0 ? void 0 : _b.split(",");
15
- const multi = (_d = (_c = customType === null || customType === void 0 ? void 0 : customType.config) === null || _c === void 0 ? void 0 : _c.multi) === null || _d === void 0 ? void 0 : _d.split(",");
16
- const allowedBlockTypes = multi || single;
17
- const isSingleBlockAllowed = multi === undefined && single !== undefined;
18
- const BlockCodec = (0, ImportBlock_1.ImportBlock)(allowedBlockTypes !== null && allowedBlockTypes !== void 0 ? allowedBlockTypes : []);
19
- const RichTextArrayCodec = (0, function_2.withCustomError)(t.array(BlockCodec), () => "Rich text field must be an array");
20
- return (0, ImportContent_1.ImportContent)("StructuredText", (0, validators_1.EmptyArrayOrElse)(new t.ArrayType(RichTextArrayCodec.name, (u) => RichTextArrayCodec.is(u), (u, c) => {
21
- if (allowedBlockTypes === undefined) {
22
- throw new Error("Invalid custom type for the rich text field: the model is missing a 'single' or 'multi' field defining a list of allowed block types");
23
- }
24
- return (0, function_1.pipe)(RichTextArrayCodec.validate(u, c), E.chain((blocks) => {
25
- if (isSingleBlockAllowed && blocks.length > 1) {
26
- return t.failure(blocks, c, "This field only allows one block");
27
- }
28
- return t.success(blocks);
29
- }));
30
- }, t.identity, BlockCodec)));
31
- };
32
- exports.ImportRichText = ImportRichText;
@@ -1,6 +0,0 @@
1
- import * as t from "io-ts";
2
- import { ImportEmbedBlockType } from "./ImportEmbedBlock";
3
- import { ImportImageBlockType } from "./ImportImageBlock";
4
- import { ImportTextBlockType } from "./ImportTextBlock";
5
- export declare type ImportBlockType = ImportTextBlockType | ImportImageBlockType | ImportEmbedBlockType;
6
- export declare const ImportBlockType: (allowedBlockTypes: string[]) => t.Type<ImportBlockType, ImportBlockType, unknown>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportBlockType = void 0;
4
- const tslib_1 = require("tslib");
5
- const E = (0, tslib_1.__importStar)(require("fp-ts/Either"));
6
- const function_1 = require("fp-ts/function");
7
- const t = (0, tslib_1.__importStar)(require("io-ts"));
8
- const function_2 = require("../../../../../../validators/function");
9
- const ImportEmbedBlock_1 = require("./ImportEmbedBlock");
10
- const ImportImageBlock_1 = require("./ImportImageBlock");
11
- const ImportTextBlock_1 = require("./ImportTextBlock");
12
- const ImportBlockTypeValidator = (0, function_2.withCustomError)(t.union([ImportTextBlock_1.ImportTextBlockType, ImportImageBlock_1.ImportImageBlockType, ImportEmbedBlock_1.ImportEmbedBlockType]), () => `Invalid block type. Supported block types are: ${Object.keys(ImportTextBlock_1.ImportTextBlockType.keys).join(", ")}, ${ImportImageBlock_1.ImportImageBlockType.value}, ${ImportEmbedBlock_1.ImportEmbedBlockType.value}`);
13
- const ImportBlockType = (allowedBlockTypes) => new t.Type("ImportBlockType", (u) => ImportBlockTypeValidator.is(u), (u, c) => {
14
- return (0, function_1.pipe)(ImportBlockTypeValidator.validate(u, c), E.chain((validBlockType) => allowedBlockTypes.includes(validBlockType)
15
- ? t.success(validBlockType)
16
- : t.failure(u, c, `The block type '${validBlockType}' is not allowed in your document type. Enable the type for this rich text field to create the document.`)));
17
- }, t.identity);
18
- exports.ImportBlockType = ImportBlockType;
@@ -1,10 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const ImportEmbedBlockType: t.LiteralC<"embed">;
3
- export declare type ImportEmbedBlockType = t.TypeOf<typeof ImportEmbedBlockType>;
4
- export declare const ImportEmbedBlock: t.ExactC<t.TypeC<{
5
- type: t.LiteralC<"embed">;
6
- oembed: t.ExactC<t.TypeC<{
7
- embed_url: t.Type<string, string, unknown>;
8
- }>>;
9
- }>>;
10
- export declare type ImportEmbedBlock = t.TypeOf<typeof ImportEmbedBlock>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportEmbedBlock = exports.ImportEmbedBlockType = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const Embed_1 = require("../../Embed");
7
- exports.ImportEmbedBlockType = t.literal("embed");
8
- exports.ImportEmbedBlock = t.strict({
9
- type: exports.ImportEmbedBlockType,
10
- oembed: Embed_1.ImportEmbedValue,
11
- });
@@ -1,22 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const ImportImageBlockType: t.LiteralC<"image">;
3
- export declare type ImportImageBlockType = t.TypeOf<typeof ImportImageBlockType>;
4
- export declare const ImportImageBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
5
- type: t.LiteralC<"image">;
6
- }>, t.IntersectionC<[t.TypeC<{
7
- id: t.StringC;
8
- }>, t.PartialC<{
9
- dimensions: t.PartialC<{
10
- width: t.NumberC;
11
- height: t.NumberC;
12
- }>;
13
- edit: t.PartialC<{
14
- x: t.NumberC;
15
- y: t.NumberC;
16
- zoom: t.NumberC;
17
- background: t.StringC;
18
- }>;
19
- copyright: t.UnionC<[t.StringC, t.NullC]>;
20
- alt: t.UnionC<[t.StringC, t.NullC]>;
21
- }>]>]>>;
22
- export declare type ImportImageBlock = t.TypeOf<typeof ImportImageBlock>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportImageBlock = exports.ImportImageBlockType = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const validators_1 = require("../../Image/validators");
7
- exports.ImportImageBlockType = t.literal("image");
8
- exports.ImportImageBlock = t.exact(t.intersection([
9
- t.type({
10
- type: exports.ImportImageBlockType,
11
- }),
12
- validators_1.ImportImageView,
13
- ]));
@@ -1,78 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const ImportTextBlockTypes: {
3
- readonly Paragraph: "paragraph";
4
- readonly OListItem: "o-list-item";
5
- readonly ListItem: "list-item";
6
- readonly Heading1: "heading1";
7
- readonly Heading2: "heading2";
8
- readonly Heading3: "heading3";
9
- readonly Heading4: "heading4";
10
- readonly Heading5: "heading5";
11
- readonly Heading6: "heading6";
12
- readonly Preformatted: "preformatted";
13
- };
14
- export declare const ImportTextBlockType: t.KeyofC<{
15
- paragraph: null;
16
- "o-list-item": null;
17
- "list-item": null;
18
- heading1: null;
19
- heading2: null;
20
- heading3: null;
21
- heading4: null;
22
- heading5: null;
23
- heading6: null;
24
- preformatted: null;
25
- }>;
26
- export declare type ImportTextBlockType = t.TypeOf<typeof ImportTextBlockType>;
27
- export declare const ImportTextBlock: t.ExactC<t.IntersectionC<[t.TypeC<{
28
- type: t.KeyofC<{
29
- paragraph: null;
30
- "o-list-item": null;
31
- "list-item": null;
32
- heading1: null;
33
- heading2: null;
34
- heading3: null;
35
- heading4: null;
36
- heading5: null;
37
- heading6: null;
38
- preformatted: null;
39
- }>;
40
- text: t.StringC;
41
- }>, t.PartialC<{
42
- spans: t.ArrayC<t.Type<({
43
- type: "hyperlink";
44
- } & {
45
- start: number;
46
- end: number;
47
- } & {
48
- data: ({
49
- link_type: "Web";
50
- url: string;
51
- } & {
52
- target?: string;
53
- }) | {
54
- link_type: "Document";
55
- id: string;
56
- } | {
57
- link_type: "Media";
58
- id: string;
59
- };
60
- }) | ({
61
- type: "strong" | "em";
62
- } & {
63
- start: number;
64
- end: number;
65
- }) | ({
66
- type: "label";
67
- data: {
68
- label: string;
69
- };
70
- } & {
71
- start: number;
72
- end: number;
73
- }), {
74
- type: "label" | "strong" | "em" | "hyperlink";
75
- }, unknown>>;
76
- direction: t.UnionC<[t.LiteralC<"ltr">, t.LiteralC<"rtl">]>;
77
- }>]>>;
78
- export declare type ImportTextBlock = t.TypeOf<typeof ImportTextBlock>;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportTextBlock = exports.ImportTextBlockType = exports.ImportTextBlockTypes = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const validators_1 = require("../../../../../../validators");
7
- const function_1 = require("../../../../../../validators/function");
8
- const Span_1 = require("./Span");
9
- exports.ImportTextBlockTypes = {
10
- Paragraph: "paragraph",
11
- OListItem: "o-list-item",
12
- ListItem: "list-item",
13
- Heading1: "heading1",
14
- Heading2: "heading2",
15
- Heading3: "heading3",
16
- Heading4: "heading4",
17
- Heading5: "heading5",
18
- Heading6: "heading6",
19
- Preformatted: "preformatted",
20
- };
21
- exports.ImportTextBlockType = t.keyof({
22
- [exports.ImportTextBlockTypes.Paragraph]: null,
23
- [exports.ImportTextBlockTypes.OListItem]: null,
24
- [exports.ImportTextBlockTypes.ListItem]: null,
25
- [exports.ImportTextBlockTypes.Heading1]: null,
26
- [exports.ImportTextBlockTypes.Heading2]: null,
27
- [exports.ImportTextBlockTypes.Heading3]: null,
28
- [exports.ImportTextBlockTypes.Heading4]: null,
29
- [exports.ImportTextBlockTypes.Heading5]: null,
30
- [exports.ImportTextBlockTypes.Heading6]: null,
31
- [exports.ImportTextBlockTypes.Preformatted]: null,
32
- });
33
- const TextDirection = (0, function_1.withCustomError)(t.union([t.literal("ltr"), t.literal("rtl")]), () => "The 'direction' property must be one of the following: ltr, rtl");
34
- exports.ImportTextBlock = t.exact(t.intersection([
35
- t.type({
36
- type: exports.ImportTextBlockType,
37
- text: validators_1.String,
38
- }),
39
- t.partial({
40
- spans: (0, function_1.withCustomError)(t.array(Span_1.Span), () => "The 'spans' field must be an array"),
41
- direction: TextDirection,
42
- }),
43
- ]));
@@ -1,79 +0,0 @@
1
- import * as t from "io-ts";
2
- declare const SpanType: t.UnionC<[t.LiteralC<"hyperlink">, t.KeyofC<{
3
- strong: null;
4
- em: null;
5
- }>, t.LiteralC<"label">]>;
6
- export declare type SpanType = t.TypeOf<typeof SpanType>;
7
- declare const SpanShape: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
8
- type: t.LiteralC<"hyperlink">;
9
- }>, t.TypeC<{
10
- start: t.NumberC;
11
- end: t.NumberC;
12
- }>, t.TypeC<{
13
- data: t.Type<({
14
- link_type: "Web";
15
- url: string;
16
- } & {
17
- target?: string;
18
- }) | {
19
- link_type: "Document";
20
- id: string;
21
- } | {
22
- link_type: "Media";
23
- id: string;
24
- }, {
25
- link_type: "Document" | "Web" | "Media";
26
- }, unknown>;
27
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
28
- type: t.KeyofC<{
29
- strong: null;
30
- em: null;
31
- }>;
32
- }>, t.TypeC<{
33
- start: t.NumberC;
34
- end: t.NumberC;
35
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
36
- type: t.LiteralC<"label">;
37
- data: t.ExactC<t.TypeC<{
38
- label: t.StringC;
39
- }>>;
40
- }>, t.TypeC<{
41
- start: t.NumberC;
42
- end: t.NumberC;
43
- }>]>>]>;
44
- export declare type Span = t.TypeOf<typeof SpanShape>;
45
- export declare const Span: t.Type<({
46
- type: "hyperlink";
47
- } & {
48
- start: number;
49
- end: number;
50
- } & {
51
- data: ({
52
- link_type: "Web";
53
- url: string;
54
- } & {
55
- target?: string;
56
- }) | {
57
- link_type: "Document";
58
- id: string;
59
- } | {
60
- link_type: "Media";
61
- id: string;
62
- };
63
- }) | ({
64
- type: "strong" | "em";
65
- } & {
66
- start: number;
67
- end: number;
68
- }) | ({
69
- type: "label";
70
- data: {
71
- label: string;
72
- };
73
- } & {
74
- start: number;
75
- end: number;
76
- }), {
77
- type: "label" | "strong" | "em" | "hyperlink";
78
- }, unknown>;
79
- export {};
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Span = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const function_1 = require("../../../../../../validators/function");
7
- const spans_1 = require("./spans");
8
- const LabelSpan_1 = require("./spans/LabelSpan");
9
- const SpanType = (0, function_1.withCustomError)(t.union([spans_1.HyperlinkSpanType, spans_1.TextSpanType, LabelSpan_1.LabelSpanType]), () => `Span 'type' field must be specified and have one of the following values: ${[
10
- ...Object.keys(spans_1.TextSpanType.keys),
11
- LabelSpan_1.LabelSpanType.value,
12
- ].join(", ")} or ${spans_1.HyperlinkSpanType.value}`);
13
- const SpanTypeValidator = (0, function_1.withCustomError)(t.type({
14
- type: SpanType,
15
- }), () => "Span must be an object");
16
- const SpanShape = t.union([spans_1.HyperlinkSpan, spans_1.TextSpan, LabelSpan_1.LabelSpan]);
17
- exports.Span = SpanTypeValidator.pipe(new t.Type("Span", (u) => SpanShape.is(u), (u, c) => {
18
- if (spans_1.HyperlinkSpanType.is(u.type)) {
19
- return spans_1.HyperlinkSpan.validate(u, c);
20
- }
21
- else if (LabelSpan_1.LabelSpanType.is(u.type)) {
22
- return LabelSpan_1.LabelSpan.validate(u, c);
23
- }
24
- else {
25
- return spans_1.TextSpan.validate(u, c);
26
- }
27
- }, t.identity));
@@ -1,4 +0,0 @@
1
- export * from "./ImportBlockType";
2
- export * from "./ImportEmbedBlock";
3
- export * from "./ImportImageBlock";
4
- export * from "./ImportTextBlock";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./ImportBlockType"), exports);
5
- (0, tslib_1.__exportStar)(require("./ImportEmbedBlock"), exports);
6
- (0, tslib_1.__exportStar)(require("./ImportImageBlock"), exports);
7
- (0, tslib_1.__exportStar)(require("./ImportTextBlock"), exports);
@@ -1,24 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const HyperlinkSpanType: t.LiteralC<"hyperlink">;
3
- export declare type HyperlinkSpanType = t.TypeOf<typeof HyperlinkSpanType>;
4
- export declare const HyperlinkSpan: t.ExactC<t.IntersectionC<[t.TypeC<{
5
- type: t.LiteralC<"hyperlink">;
6
- }>, t.TypeC<{
7
- start: t.NumberC;
8
- end: t.NumberC;
9
- }>, t.TypeC<{
10
- data: t.Type<({
11
- link_type: "Web";
12
- url: string;
13
- } & {
14
- target?: string;
15
- }) | {
16
- link_type: "Document";
17
- id: string;
18
- } | {
19
- link_type: "Media";
20
- id: string;
21
- }, {
22
- link_type: "Document" | "Web" | "Media";
23
- }, unknown>;
24
- }>]>>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HyperlinkSpan = exports.HyperlinkSpanType = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const function_1 = require("../../../../../../../validators/function");
7
- const Link_1 = require("../../../Link");
8
- const SpanLocation_1 = require("./SpanLocation");
9
- exports.HyperlinkSpanType = t.literal("hyperlink");
10
- exports.HyperlinkSpan = t.exact(t.intersection([
11
- t.type({
12
- type: exports.HyperlinkSpanType,
13
- }),
14
- SpanLocation_1.SpanLocation,
15
- (0, function_1.withCustomError)(t.type({
16
- data: Link_1.Link,
17
- }), () => "Hyperlink span must contain a 'data' field with link data"),
18
- ]));
@@ -1,12 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const LabelSpanType: t.LiteralC<"label">;
3
- export declare const LabelSpan: t.ExactC<t.IntersectionC<[t.TypeC<{
4
- type: t.LiteralC<"label">;
5
- data: t.ExactC<t.TypeC<{
6
- label: t.StringC;
7
- }>>;
8
- }>, t.TypeC<{
9
- start: t.NumberC;
10
- end: t.NumberC;
11
- }>]>>;
12
- export declare type LabelSpan = t.TypeOf<typeof LabelSpan>;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LabelSpan = exports.LabelSpanType = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const SpanLocation_1 = require("./SpanLocation");
7
- exports.LabelSpanType = t.literal("label");
8
- exports.LabelSpan = t.exact(t.intersection([
9
- t.type({
10
- type: exports.LabelSpanType,
11
- data: t.strict({
12
- label: t.string,
13
- }),
14
- }),
15
- SpanLocation_1.SpanLocation,
16
- ]));
@@ -1,5 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const SpanLocation: t.TypeC<{
3
- start: t.NumberC;
4
- end: t.NumberC;
5
- }>;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SpanLocation = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const validators_1 = require("../../../../../../../validators");
7
- exports.SpanLocation = t.type({
8
- start: validators_1.Number,
9
- end: validators_1.Number,
10
- });
@@ -1,15 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const TextSpanType: t.KeyofC<{
3
- strong: null;
4
- em: null;
5
- }>;
6
- export declare const TextSpan: t.ExactC<t.IntersectionC<[t.TypeC<{
7
- type: t.KeyofC<{
8
- strong: null;
9
- em: null;
10
- }>;
11
- }>, t.TypeC<{
12
- start: t.NumberC;
13
- end: t.NumberC;
14
- }>]>>;
15
- export declare type TextSpan = t.TypeOf<typeof TextSpan>;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextSpan = exports.TextSpanType = void 0;
4
- const tslib_1 = require("tslib");
5
- const t = (0, tslib_1.__importStar)(require("io-ts"));
6
- const SpanLocation_1 = require("./SpanLocation");
7
- const TextSpanTypes = {
8
- Strong: "strong",
9
- Em: "em",
10
- };
11
- exports.TextSpanType = t.keyof({
12
- [TextSpanTypes.Strong]: null,
13
- [TextSpanTypes.Em]: null,
14
- });
15
- exports.TextSpan = t.exact(t.intersection([
16
- t.type({
17
- type: exports.TextSpanType,
18
- }),
19
- SpanLocation_1.SpanLocation,
20
- ]));
@@ -1,2 +0,0 @@
1
- export * from "./HyperlinkSpan";
2
- export * from "./TextSpan";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./HyperlinkSpan"), exports);
5
- (0, tslib_1.__exportStar)(require("./TextSpan"), exports);
@@ -1,2 +0,0 @@
1
- export { ImportBlock } from "./ImportBlock";
2
- export { ImportRichText } from "./ImportRichText";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImportRichText = exports.ImportBlock = void 0;
4
- var ImportBlock_1 = require("./ImportBlock");
5
- Object.defineProperty(exports, "ImportBlock", { enumerable: true, get: function () { return ImportBlock_1.ImportBlock; } });
6
- var ImportRichText_1 = require("./ImportRichText");
7
- Object.defineProperty(exports, "ImportRichText", { enumerable: true, get: function () { return ImportRichText_1.ImportRichText; } });