@prismicio/types-internal 3.17.0 → 4.0.0-canary.4689e2d

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 (769) hide show
  1. package/README.md +36 -20
  2. package/dist/_virtual/_rolldown/runtime.js +13 -0
  3. package/dist/common/asset.d.ts +22 -0
  4. package/dist/common/asset.d.ts.map +1 -0
  5. package/dist/common/asset.js +21 -0
  6. package/dist/common/asset.js.map +1 -0
  7. package/dist/common/embed.d.ts +21 -0
  8. package/dist/common/embed.d.ts.map +1 -0
  9. package/dist/common/embed.js +20 -0
  10. package/dist/common/embed.js.map +1 -0
  11. package/dist/common/hexaColorCode.d.ts +8 -0
  12. package/dist/common/hexaColorCode.d.ts.map +1 -0
  13. package/dist/common/hexaColorCode.js +8 -0
  14. package/dist/common/hexaColorCode.js.map +1 -0
  15. package/dist/common/nonEmptyString.d.ts +8 -0
  16. package/dist/common/nonEmptyString.d.ts.map +1 -0
  17. package/dist/common/nonEmptyString.js +7 -0
  18. package/dist/common/nonEmptyString.js.map +1 -0
  19. package/dist/common/widgetKey.d.ts +8 -0
  20. package/dist/common/widgetKey.d.ts.map +1 -0
  21. package/dist/common/widgetKey.js +8 -0
  22. package/dist/common/widgetKey.js.map +1 -0
  23. package/dist/content/boolean.d.ts +11 -0
  24. package/dist/content/boolean.d.ts.map +1 -0
  25. package/dist/content/boolean.js +11 -0
  26. package/dist/content/boolean.js.map +1 -0
  27. package/dist/content/codec/boolean.js +31 -0
  28. package/dist/content/codec/boolean.js.map +1 -0
  29. package/dist/content/codec/document.js +49 -0
  30. package/dist/content/codec/document.js.map +1 -0
  31. package/dist/content/codec/embed.js +42 -0
  32. package/dist/content/codec/embed.js.map +1 -0
  33. package/dist/content/codec/empty.js +35 -0
  34. package/dist/content/codec/empty.js.map +1 -0
  35. package/dist/content/codec/field.js +41 -0
  36. package/dist/content/codec/field.js.map +1 -0
  37. package/dist/content/codec/geopoint.js +32 -0
  38. package/dist/content/codec/geopoint.js.map +1 -0
  39. package/dist/content/codec/group.js +127 -0
  40. package/dist/content/codec/group.js.map +1 -0
  41. package/dist/content/codec/image.js +44 -0
  42. package/dist/content/codec/image.js.map +1 -0
  43. package/dist/content/codec/integrationField.js +31 -0
  44. package/dist/content/codec/integrationField.js.map +1 -0
  45. package/dist/content/codec/legacyContentCtx.d.ts +50 -0
  46. package/dist/content/codec/legacyContentCtx.d.ts.map +1 -0
  47. package/dist/content/codec/legacyContentCtx.js +68 -0
  48. package/dist/content/codec/legacyContentCtx.js.map +1 -0
  49. package/dist/content/codec/link.js +93 -0
  50. package/dist/content/codec/link.js.map +1 -0
  51. package/dist/content/codec/nestable.js +91 -0
  52. package/dist/content/codec/nestable.js.map +1 -0
  53. package/dist/content/codec/repeatable.js +56 -0
  54. package/dist/content/codec/repeatable.js.map +1 -0
  55. package/dist/content/codec/richText.js +87 -0
  56. package/dist/content/codec/richText.js.map +1 -0
  57. package/dist/content/codec/separator.js +26 -0
  58. package/dist/content/codec/separator.js.map +1 -0
  59. package/dist/content/codec/slice.js +220 -0
  60. package/dist/content/codec/slice.js.map +1 -0
  61. package/dist/content/codec/slices.js +106 -0
  62. package/dist/content/codec/slices.js.map +1 -0
  63. package/dist/content/codec/table.js +56 -0
  64. package/dist/content/codec/table.js.map +1 -0
  65. package/dist/content/codec/uid.js +31 -0
  66. package/dist/content/codec/uid.js.map +1 -0
  67. package/dist/content/codec/widget.js +39 -0
  68. package/dist/content/codec/widget.js.map +1 -0
  69. package/dist/content/document.d.ts +9 -0
  70. package/dist/content/document.d.ts.map +1 -0
  71. package/dist/content/document.js +9 -0
  72. package/dist/content/document.js.map +1 -0
  73. package/dist/content/embed.d.ts +24 -0
  74. package/dist/content/embed.d.ts.map +1 -0
  75. package/dist/content/embed.js +12 -0
  76. package/dist/content/embed.js.map +1 -0
  77. package/dist/content/empty.d.ts +11 -0
  78. package/dist/content/empty.d.ts.map +1 -0
  79. package/dist/content/empty.js +11 -0
  80. package/dist/content/empty.js.map +1 -0
  81. package/dist/content/field.d.ts +49 -0
  82. package/dist/content/field.d.ts.map +1 -0
  83. package/dist/content/field.js +52 -0
  84. package/dist/content/field.js.map +1 -0
  85. package/dist/content/geopoint.d.ts +14 -0
  86. package/dist/content/geopoint.d.ts.map +1 -0
  87. package/dist/content/geopoint.js +9 -0
  88. package/dist/content/geopoint.js.map +1 -0
  89. package/dist/content/group.d.ts +19 -0
  90. package/dist/content/group.d.ts.map +1 -0
  91. package/dist/content/group.js +19 -0
  92. package/dist/content/group.js.map +1 -0
  93. package/dist/content/image.d.ts +54 -0
  94. package/dist/content/image.d.ts.map +1 -0
  95. package/dist/content/image.js +10 -0
  96. package/dist/content/image.js.map +1 -0
  97. package/dist/content/integrationField.d.ts +11 -0
  98. package/dist/content/integrationField.d.ts.map +1 -0
  99. package/dist/content/integrationField.js +11 -0
  100. package/dist/content/integrationField.js.map +1 -0
  101. package/dist/content/legacy/boolean.d.ts +1 -0
  102. package/dist/content/legacy/boolean.js +7 -0
  103. package/dist/content/legacy/boolean.js.map +1 -0
  104. package/dist/content/legacy/document.d.ts +8 -0
  105. package/dist/content/legacy/document.d.ts.map +1 -0
  106. package/dist/content/legacy/document.js +15 -0
  107. package/dist/content/legacy/document.js.map +1 -0
  108. package/dist/content/legacy/embed.d.ts +1 -0
  109. package/dist/content/legacy/embed.js +23 -0
  110. package/dist/content/legacy/embed.js.map +1 -0
  111. package/dist/content/legacy/empty.d.ts +1 -0
  112. package/dist/content/legacy/empty.js +7 -0
  113. package/dist/content/legacy/empty.js.map +1 -0
  114. package/dist/content/legacy/field.d.ts +1 -0
  115. package/dist/content/legacy/field.js +7 -0
  116. package/dist/content/legacy/field.js.map +1 -0
  117. package/dist/content/legacy/geopoint.d.ts +1 -0
  118. package/dist/content/legacy/geopoint.js +10 -0
  119. package/dist/content/legacy/geopoint.js.map +1 -0
  120. package/dist/content/legacy/group.d.ts +9 -0
  121. package/dist/content/legacy/group.d.ts.map +1 -0
  122. package/dist/content/legacy/group.js +10 -0
  123. package/dist/content/legacy/group.js.map +1 -0
  124. package/dist/content/legacy/image.d.ts +28 -0
  125. package/dist/content/legacy/image.d.ts.map +1 -0
  126. package/dist/content/legacy/image.js +33 -0
  127. package/dist/content/legacy/image.js.map +1 -0
  128. package/dist/content/legacy/integrationField.d.ts +1 -0
  129. package/dist/content/legacy/integrationField.js +7 -0
  130. package/dist/content/legacy/integrationField.js.map +1 -0
  131. package/dist/content/legacy/link.d.ts +41 -0
  132. package/dist/content/legacy/link.d.ts.map +1 -0
  133. package/dist/content/legacy/link.js +88 -0
  134. package/dist/content/legacy/link.js.map +1 -0
  135. package/dist/content/legacy/nestable.d.ts +1 -0
  136. package/dist/content/legacy/nestable.js +32 -0
  137. package/dist/content/legacy/nestable.js.map +1 -0
  138. package/dist/content/legacy/repeatable.d.ts +1 -0
  139. package/dist/content/legacy/repeatable.js +7 -0
  140. package/dist/content/legacy/repeatable.js.map +1 -0
  141. package/dist/content/legacy/richText.d.ts +110 -0
  142. package/dist/content/legacy/richText.d.ts.map +1 -0
  143. package/dist/content/legacy/richText.js +100 -0
  144. package/dist/content/legacy/richText.js.map +1 -0
  145. package/dist/content/legacy/separator.d.ts +1 -0
  146. package/dist/content/legacy/separator.js +7 -0
  147. package/dist/content/legacy/separator.js.map +1 -0
  148. package/dist/content/legacy/slice.js +22 -0
  149. package/dist/content/legacy/slice.js.map +1 -0
  150. package/dist/content/legacy/slices.js +13 -0
  151. package/dist/content/legacy/slices.js.map +1 -0
  152. package/dist/content/legacy/table.d.ts +1 -0
  153. package/dist/content/legacy/table.js +19 -0
  154. package/dist/content/legacy/table.js.map +1 -0
  155. package/dist/content/legacy/uid.js +7 -0
  156. package/dist/content/legacy/uid.js.map +1 -0
  157. package/dist/content/link.d.ts +140 -0
  158. package/dist/content/link.d.ts.map +1 -0
  159. package/dist/content/link.js +53 -0
  160. package/dist/content/link.js.map +1 -0
  161. package/dist/content/nestable.d.ts +19 -0
  162. package/dist/content/nestable.d.ts.map +1 -0
  163. package/dist/content/nestable.js +56 -0
  164. package/dist/content/nestable.js.map +1 -0
  165. package/dist/content/repeatable.d.ts +32 -0
  166. package/dist/content/repeatable.d.ts.map +1 -0
  167. package/dist/content/repeatable.js +17 -0
  168. package/dist/content/repeatable.js.map +1 -0
  169. package/dist/content/richText.d.ts +91 -0
  170. package/dist/content/richText.d.ts.map +1 -0
  171. package/dist/content/richText.js +24 -0
  172. package/dist/content/richText.js.map +1 -0
  173. package/dist/content/separator.d.ts +10 -0
  174. package/dist/content/separator.d.ts.map +1 -0
  175. package/dist/content/separator.js +8 -0
  176. package/dist/content/separator.js.map +1 -0
  177. package/dist/content/slice.d.ts +24 -0
  178. package/dist/content/slice.d.ts.map +1 -0
  179. package/dist/content/slice.js +27 -0
  180. package/dist/content/slice.js.map +1 -0
  181. package/dist/content/slices.d.ts +56 -0
  182. package/dist/content/slices.d.ts.map +1 -0
  183. package/dist/content/slices.js +24 -0
  184. package/dist/content/slices.js.map +1 -0
  185. package/dist/content/table.d.ts +21 -0
  186. package/dist/content/table.d.ts.map +1 -0
  187. package/dist/content/table.js +13 -0
  188. package/dist/content/table.js.map +1 -0
  189. package/dist/content/uid.d.ts +11 -0
  190. package/dist/content/uid.d.ts.map +1 -0
  191. package/dist/content/uid.js +11 -0
  192. package/dist/content/uid.js.map +1 -0
  193. package/dist/content/widget.d.ts +11 -0
  194. package/dist/content/widget.d.ts.map +1 -0
  195. package/dist/content/widget.js +16 -0
  196. package/dist/content/widget.js.map +1 -0
  197. package/dist/helpers/contentPath.d.ts +15 -0
  198. package/dist/helpers/contentPath.d.ts.map +1 -0
  199. package/dist/helpers/contentPath.js +30 -0
  200. package/dist/helpers/contentPath.js.map +1 -0
  201. package/dist/helpers/customTypeModel.d.ts +15 -0
  202. package/dist/helpers/customTypeModel.d.ts.map +1 -0
  203. package/dist/helpers/customTypeModel.js +85 -0
  204. package/dist/helpers/customTypeModel.js.map +1 -0
  205. package/dist/helpers/documentContent.d.ts +20 -0
  206. package/dist/helpers/documentContent.d.ts.map +1 -0
  207. package/dist/helpers/documentContent.js +64 -0
  208. package/dist/helpers/documentContent.js.map +1 -0
  209. package/dist/helpers/imageContent.d.ts +33 -0
  210. package/dist/helpers/imageContent.d.ts.map +1 -0
  211. package/dist/helpers/imageContent.js +55 -0
  212. package/dist/helpers/imageContent.js.map +1 -0
  213. package/dist/helpers/sliceContent.d.ts +12 -0
  214. package/dist/helpers/sliceContent.d.ts.map +1 -0
  215. package/dist/helpers/sliceContent.js +60 -0
  216. package/dist/helpers/sliceContent.js.map +1 -0
  217. package/dist/helpers/traverseContent.d.ts +84 -0
  218. package/dist/helpers/traverseContent.d.ts.map +1 -0
  219. package/dist/helpers/traverseContent.js +376 -0
  220. package/dist/helpers/traverseContent.js.map +1 -0
  221. package/dist/helpers/traverseContentWithModel.d.ts +84 -0
  222. package/dist/helpers/traverseContentWithModel.d.ts.map +1 -0
  223. package/dist/helpers/traverseContentWithModel.js +388 -0
  224. package/dist/helpers/traverseContentWithModel.js.map +1 -0
  225. package/dist/helpers/withDefaultContent.d.ts +21 -0
  226. package/dist/helpers/withDefaultContent.d.ts.map +1 -0
  227. package/dist/helpers/withDefaultContent.js +120 -0
  228. package/dist/helpers/withDefaultContent.js.map +1 -0
  229. package/dist/index.d.ts +59 -0
  230. package/dist/index.js +14 -0
  231. package/dist/io-ts.d.ts +4792 -0
  232. package/dist/io-ts.d.ts.map +1 -0
  233. package/dist/io-ts.js +224 -0
  234. package/dist/io-ts.js.map +1 -0
  235. package/dist/model/boolean.d.ts +16 -0
  236. package/dist/model/boolean.d.ts.map +1 -0
  237. package/dist/model/boolean.js +16 -0
  238. package/dist/model/boolean.js.map +1 -0
  239. package/dist/model/color.d.ts +15 -0
  240. package/dist/model/color.d.ts.map +1 -0
  241. package/dist/model/color.js +15 -0
  242. package/dist/model/color.js.map +1 -0
  243. package/dist/model/customType.d.ts +31 -0
  244. package/dist/model/customType.d.ts.map +1 -0
  245. package/dist/model/customType.js +18 -0
  246. package/dist/model/customType.js.map +1 -0
  247. package/dist/model/date.d.ts +16 -0
  248. package/dist/model/date.d.ts.map +1 -0
  249. package/dist/model/date.js +16 -0
  250. package/dist/model/date.js.map +1 -0
  251. package/dist/model/embed.d.ts +16 -0
  252. package/dist/model/embed.d.ts.map +1 -0
  253. package/dist/model/embed.js +16 -0
  254. package/dist/model/embed.js.map +1 -0
  255. package/dist/model/geopoint.d.ts +14 -0
  256. package/dist/model/geopoint.d.ts.map +1 -0
  257. package/dist/model/geopoint.js +12 -0
  258. package/dist/model/geopoint.js.map +1 -0
  259. package/dist/model/group.d.ts +567 -0
  260. package/dist/model/group.d.ts.map +1 -0
  261. package/dist/model/group.js +23 -0
  262. package/dist/model/group.js.map +1 -0
  263. package/dist/model/image.d.ts +24 -0
  264. package/dist/model/image.d.ts.map +1 -0
  265. package/dist/model/image.js +41 -0
  266. package/dist/model/image.js.map +1 -0
  267. package/dist/model/integrationField.d.ts +16 -0
  268. package/dist/model/integrationField.d.ts.map +1 -0
  269. package/dist/model/integrationField.js +16 -0
  270. package/dist/model/integrationField.js.map +1 -0
  271. package/dist/model/link.d.ts +48 -0
  272. package/dist/model/link.d.ts.map +1 -0
  273. package/dist/model/link.js +94 -0
  274. package/dist/model/link.js.map +1 -0
  275. package/dist/model/nestable.d.ts +23 -0
  276. package/dist/model/nestable.d.ts.map +1 -0
  277. package/dist/model/nestable.js +40 -0
  278. package/dist/model/nestable.js.map +1 -0
  279. package/dist/model/number.d.ts +18 -0
  280. package/dist/model/number.d.ts.map +1 -0
  281. package/dist/model/number.js +19 -0
  282. package/dist/model/number.js.map +1 -0
  283. package/dist/model/range.d.ts +18 -0
  284. package/dist/model/range.d.ts.map +1 -0
  285. package/dist/model/range.js +19 -0
  286. package/dist/model/range.js.map +1 -0
  287. package/dist/model/richText.d.ts +43 -0
  288. package/dist/model/richText.d.ts.map +1 -0
  289. package/dist/model/richText.js +73 -0
  290. package/dist/model/richText.js.map +1 -0
  291. package/dist/model/section.d.ts +11 -0
  292. package/dist/model/section.d.ts.map +1 -0
  293. package/dist/model/section.js +10 -0
  294. package/dist/model/section.js.map +1 -0
  295. package/dist/model/select.d.ts +17 -0
  296. package/dist/model/select.d.ts.map +1 -0
  297. package/dist/model/select.js +22 -0
  298. package/dist/model/select.js.map +1 -0
  299. package/dist/model/separator.d.ts +13 -0
  300. package/dist/model/separator.d.ts.map +1 -0
  301. package/dist/model/separator.js +11 -0
  302. package/dist/model/separator.js.map +1 -0
  303. package/dist/model/slice.d.ts +2084 -0
  304. package/dist/model/slice.d.ts.map +1 -0
  305. package/dist/model/slice.js +68 -0
  306. package/dist/model/slice.js.map +1 -0
  307. package/dist/model/slices.d.ts +33 -0
  308. package/dist/model/slices.d.ts.map +1 -0
  309. package/dist/model/slices.js +29 -0
  310. package/dist/model/slices.js.map +1 -0
  311. package/dist/model/table.d.ts +14 -0
  312. package/dist/model/table.d.ts.map +1 -0
  313. package/dist/model/table.js +22 -0
  314. package/dist/model/table.js.map +1 -0
  315. package/dist/model/text.d.ts +16 -0
  316. package/dist/model/text.d.ts.map +1 -0
  317. package/dist/model/text.js +16 -0
  318. package/dist/model/text.js.map +1 -0
  319. package/dist/model/timestamp.d.ts +16 -0
  320. package/dist/model/timestamp.d.ts.map +1 -0
  321. package/dist/model/timestamp.js +16 -0
  322. package/dist/model/timestamp.js.map +1 -0
  323. package/dist/model/uid.d.ts +16 -0
  324. package/dist/model/uid.d.ts.map +1 -0
  325. package/dist/model/uid.js +16 -0
  326. package/dist/model/uid.js.map +1 -0
  327. package/dist/model/widget.d.ts +58 -0
  328. package/dist/model/widget.d.ts.map +1 -0
  329. package/dist/model/widget.js +50 -0
  330. package/dist/model/widget.js.map +1 -0
  331. package/dist/zod4.d.ts +2840 -0
  332. package/dist/zod4.d.ts.map +1 -0
  333. package/dist/zod4.js +136 -0
  334. package/dist/zod4.js.map +1 -0
  335. package/package.json +62 -58
  336. package/src/common/asset.ts +29 -0
  337. package/src/common/embed.ts +27 -0
  338. package/src/common/hexaColorCode.ts +11 -0
  339. package/src/common/nonEmptyString.ts +9 -0
  340. package/src/common/widgetKey.ts +11 -0
  341. package/src/content/boolean.ts +10 -0
  342. package/src/content/codec/boolean.ts +38 -0
  343. package/src/content/codec/document.ts +60 -0
  344. package/src/content/codec/embed.ts +55 -0
  345. package/src/content/codec/empty.ts +49 -0
  346. package/src/content/codec/field.ts +96 -0
  347. package/src/content/codec/geopoint.ts +40 -0
  348. package/src/content/codec/group.ts +163 -0
  349. package/src/content/codec/image.ts +50 -0
  350. package/src/content/codec/integrationField.ts +38 -0
  351. package/src/content/{LegacyContentCtx.ts → codec/legacyContentCtx.ts} +17 -17
  352. package/src/content/codec/link.ts +103 -0
  353. package/src/content/codec/nestable.ts +146 -0
  354. package/src/content/codec/repeatable.ts +68 -0
  355. package/src/content/codec/richText.ts +117 -0
  356. package/src/content/codec/separator.ts +33 -0
  357. package/src/content/codec/slice.ts +276 -0
  358. package/src/content/codec/slices.ts +130 -0
  359. package/src/content/codec/table.ts +65 -0
  360. package/src/content/codec/uid.ts +36 -0
  361. package/src/content/codec/widget.ts +58 -0
  362. package/src/content/document.ts +8 -0
  363. package/src/content/embed.ts +12 -0
  364. package/src/content/empty.ts +10 -0
  365. package/src/content/field.ts +80 -0
  366. package/src/content/geopoint.ts +11 -0
  367. package/src/content/group.ts +46 -0
  368. package/src/content/image.ts +15 -0
  369. package/src/content/integrationField.ts +10 -0
  370. package/src/content/legacy/boolean.ts +5 -0
  371. package/src/content/legacy/document.ts +25 -0
  372. package/src/content/legacy/embed.ts +23 -0
  373. package/src/content/legacy/empty.ts +10 -0
  374. package/src/content/legacy/field.ts +8 -0
  375. package/src/content/legacy/geopoint.ts +10 -0
  376. package/src/content/legacy/group.ts +23 -0
  377. package/src/content/legacy/image.ts +43 -0
  378. package/src/content/legacy/integrationField.ts +5 -0
  379. package/src/content/legacy/link.ts +194 -0
  380. package/src/content/legacy/nestable.ts +55 -0
  381. package/src/content/legacy/repeatable.ts +7 -0
  382. package/src/content/legacy/richText.ts +200 -0
  383. package/src/content/legacy/separator.ts +6 -0
  384. package/src/content/legacy/slice.ts +38 -0
  385. package/src/content/legacy/slices.ts +17 -0
  386. package/src/content/legacy/table.ts +39 -0
  387. package/src/content/legacy/uid.ts +6 -0
  388. package/src/content/legacy/widget.ts +19 -0
  389. package/src/content/link.ts +165 -0
  390. package/src/content/nestable.ts +107 -0
  391. package/src/content/repeatable.ts +21 -0
  392. package/src/content/richText.ts +60 -0
  393. package/src/content/separator.ts +9 -0
  394. package/src/content/slice.ts +41 -0
  395. package/src/content/slices.ts +57 -0
  396. package/src/content/table.ts +14 -0
  397. package/src/content/uid.ts +10 -0
  398. package/src/content/widget.ts +21 -0
  399. package/src/helpers/contentPath.ts +35 -0
  400. package/src/helpers/customTypeModel.ts +113 -0
  401. package/src/helpers/documentContent.ts +108 -0
  402. package/src/helpers/imageContent.ts +84 -0
  403. package/src/helpers/sliceContent.ts +86 -0
  404. package/src/helpers/traverseContent.ts +597 -0
  405. package/src/helpers/traverseContentWithModel.ts +616 -0
  406. package/src/helpers/withDefaultContent.ts +180 -0
  407. package/src/index.ts +136 -0
  408. package/src/io-ts.ts +363 -0
  409. package/src/model/boolean.ts +15 -0
  410. package/src/model/color.ts +14 -0
  411. package/src/model/customType.ts +26 -0
  412. package/src/model/date.ts +15 -0
  413. package/src/model/diff/index.ts +4 -0
  414. package/src/{customtypes/diff/SharedSlice.ts → model/diff/sharedSlice.ts} +16 -18
  415. package/src/model/diff/utils.ts +45 -0
  416. package/src/model/diff/variation.ts +155 -0
  417. package/src/model/diff/widgets.ts +15 -0
  418. package/src/model/embed.ts +15 -0
  419. package/src/model/geopoint.ts +13 -0
  420. package/src/model/group.ts +39 -0
  421. package/src/model/image.ts +54 -0
  422. package/src/model/integrationField.ts +15 -0
  423. package/src/model/link.ts +141 -0
  424. package/src/model/nestable.ts +71 -0
  425. package/src/model/number.ts +26 -0
  426. package/src/model/range.ts +26 -0
  427. package/src/model/richText.ts +109 -0
  428. package/src/model/section.ts +12 -0
  429. package/src/model/select.ts +30 -0
  430. package/src/model/separator.ts +12 -0
  431. package/src/model/slice.ts +131 -0
  432. package/src/model/slices.ts +54 -0
  433. package/src/model/table.ts +29 -0
  434. package/src/model/text.ts +15 -0
  435. package/src/model/timestamp.ts +15 -0
  436. package/src/model/uid.ts +15 -0
  437. package/src/model/widget.ts +67 -0
  438. package/src/zod4.ts +199 -0
  439. package/lib/common/Asset.d.ts +0 -16
  440. package/lib/common/Asset.js +0 -11
  441. package/lib/common/Embed.d.ts +0 -15
  442. package/lib/common/Embed.js +0 -10
  443. package/lib/common/HexaColorCode.d.ts +0 -4
  444. package/lib/common/HexaColorCode.js +0 -7
  445. package/lib/common/UUID.d.ts +0 -6
  446. package/lib/common/UUID.js +0 -8
  447. package/lib/common/WidgetKey.d.ts +0 -3
  448. package/lib/common/WidgetKey.js +0 -8
  449. package/lib/common/index.d.ts +0 -3
  450. package/lib/common/index.js +0 -6
  451. package/lib/content/Document.d.ts +0 -11813
  452. package/lib/content/Document.js +0 -364
  453. package/lib/content/LegacyContentCtx.d.ts +0 -64
  454. package/lib/content/LegacyContentCtx.js +0 -130
  455. package/lib/content/fields/EmptyContent.d.ts +0 -16
  456. package/lib/content/fields/EmptyContent.js +0 -30
  457. package/lib/content/fields/GroupContent.d.ts +0 -53
  458. package/lib/content/fields/GroupContent.js +0 -307
  459. package/lib/content/fields/UIDContent.d.ts +0 -16
  460. package/lib/content/fields/UIDContent.js +0 -25
  461. package/lib/content/fields/WidgetContent.d.ts +0 -11749
  462. package/lib/content/fields/WidgetContent.js +0 -57
  463. package/lib/content/fields/index.d.ts +0 -6
  464. package/lib/content/fields/index.js +0 -9
  465. package/lib/content/fields/nestable/BooleanContent.d.ts +0 -18
  466. package/lib/content/fields/nestable/BooleanContent.js +0 -35
  467. package/lib/content/fields/nestable/EmbedContent.d.ts +0 -78
  468. package/lib/content/fields/nestable/EmbedContent.js +0 -56
  469. package/lib/content/fields/nestable/FieldContent/ColorContent.d.ts +0 -18
  470. package/lib/content/fields/nestable/FieldContent/ColorContent.js +0 -35
  471. package/lib/content/fields/nestable/FieldContent/DateContent.d.ts +0 -18
  472. package/lib/content/fields/nestable/FieldContent/DateContent.js +0 -35
  473. package/lib/content/fields/nestable/FieldContent/NumberContent.d.ts +0 -18
  474. package/lib/content/fields/nestable/FieldContent/NumberContent.js +0 -35
  475. package/lib/content/fields/nestable/FieldContent/RangeContent.d.ts +0 -18
  476. package/lib/content/fields/nestable/FieldContent/RangeContent.js +0 -35
  477. package/lib/content/fields/nestable/FieldContent/SelectContent.d.ts +0 -20
  478. package/lib/content/fields/nestable/FieldContent/SelectContent.js +0 -46
  479. package/lib/content/fields/nestable/FieldContent/TextContent.d.ts +0 -18
  480. package/lib/content/fields/nestable/FieldContent/TextContent.js +0 -35
  481. package/lib/content/fields/nestable/FieldContent/TimestampContent.d.ts +0 -18
  482. package/lib/content/fields/nestable/FieldContent/TimestampContent.js +0 -35
  483. package/lib/content/fields/nestable/FieldContent/common.d.ts +0 -1
  484. package/lib/content/fields/nestable/FieldContent/common.js +0 -4
  485. package/lib/content/fields/nestable/FieldContent/index.d.ts +0 -49
  486. package/lib/content/fields/nestable/FieldContent/index.js +0 -38
  487. package/lib/content/fields/nestable/GeoPointContent.d.ts +0 -33
  488. package/lib/content/fields/nestable/GeoPointContent.js +0 -31
  489. package/lib/content/fields/nestable/ImageContent.d.ts +0 -252
  490. package/lib/content/fields/nestable/ImageContent.js +0 -122
  491. package/lib/content/fields/nestable/IntegrationFieldContent.d.ts +0 -16
  492. package/lib/content/fields/nestable/IntegrationFieldContent.js +0 -28
  493. package/lib/content/fields/nestable/LinkContent.d.ts +0 -919
  494. package/lib/content/fields/nestable/LinkContent.js +0 -399
  495. package/lib/content/fields/nestable/NestableContent.d.ts +0 -1953
  496. package/lib/content/fields/nestable/NestableContent.js +0 -167
  497. package/lib/content/fields/nestable/RepeatableContent.d.ts +0 -182
  498. package/lib/content/fields/nestable/RepeatableContent.js +0 -146
  499. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +0 -1261
  500. package/lib/content/fields/nestable/RichTextContent/Blocks.js +0 -170
  501. package/lib/content/fields/nestable/RichTextContent/index.d.ts +0 -1004
  502. package/lib/content/fields/nestable/RichTextContent/index.js +0 -28
  503. package/lib/content/fields/nestable/SeparatorContent.d.ts +0 -13
  504. package/lib/content/fields/nestable/SeparatorContent.js +0 -22
  505. package/lib/content/fields/nestable/TableContent.d.ts +0 -776
  506. package/lib/content/fields/nestable/TableContent.js +0 -167
  507. package/lib/content/fields/nestable/index.d.ts +0 -12
  508. package/lib/content/fields/nestable/index.js +0 -15
  509. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +0 -3934
  510. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +0 -195
  511. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +0 -774
  512. package/lib/content/fields/slices/Slice/RepeatableContent.js +0 -21
  513. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +0 -3937
  514. package/lib/content/fields/slices/Slice/SharedSliceContent.js +0 -215
  515. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +0 -1962
  516. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +0 -130
  517. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +0 -1952
  518. package/lib/content/fields/slices/Slice/SlicePrimaryContent.js +0 -30
  519. package/lib/content/fields/slices/Slice/index.d.ts +0 -6810
  520. package/lib/content/fields/slices/Slice/index.js +0 -45
  521. package/lib/content/fields/slices/SliceItem.d.ts +0 -6846
  522. package/lib/content/fields/slices/SliceItem.js +0 -116
  523. package/lib/content/fields/slices/SlicesContent.d.ts +0 -9827
  524. package/lib/content/fields/slices/SlicesContent.js +0 -465
  525. package/lib/content/fields/slices/index.d.ts +0 -3
  526. package/lib/content/fields/slices/index.js +0 -6
  527. package/lib/content/fields/withDefaultValues.d.ts +0 -9
  528. package/lib/content/fields/withDefaultValues.js +0 -79
  529. package/lib/content/helpers.d.ts +0 -9
  530. package/lib/content/helpers.js +0 -22
  531. package/lib/content/index.d.ts +0 -4
  532. package/lib/content/index.js +0 -7
  533. package/lib/content/utils.d.ts +0 -50
  534. package/lib/content/utils.js +0 -35
  535. package/lib/customtypes/CustomType.d.ts +0 -3680
  536. package/lib/customtypes/CustomType.js +0 -184
  537. package/lib/customtypes/Section.d.ts +0 -3635
  538. package/lib/customtypes/Section.js +0 -66
  539. package/lib/customtypes/diff/Changes.d.ts +0 -17
  540. package/lib/customtypes/diff/Changes.js +0 -9
  541. package/lib/customtypes/diff/SharedSlice.d.ts +0 -1624
  542. package/lib/customtypes/diff/SharedSlice.js +0 -55
  543. package/lib/customtypes/diff/Variation.d.ts +0 -1605
  544. package/lib/customtypes/diff/Variation.js +0 -113
  545. package/lib/customtypes/diff/Widgets.d.ts +0 -11
  546. package/lib/customtypes/diff/Widgets.js +0 -2
  547. package/lib/customtypes/diff/index.d.ts +0 -4
  548. package/lib/customtypes/diff/index.js +0 -7
  549. package/lib/customtypes/index.d.ts +0 -4
  550. package/lib/customtypes/index.js +0 -7
  551. package/lib/customtypes/widgets/Group.d.ts +0 -1352
  552. package/lib/customtypes/widgets/Group.js +0 -92
  553. package/lib/customtypes/widgets/UID.d.ts +0 -19
  554. package/lib/customtypes/widgets/UID.js +0 -21
  555. package/lib/customtypes/widgets/Widget.d.ts +0 -4457
  556. package/lib/customtypes/widgets/Widget.js +0 -49
  557. package/lib/customtypes/widgets/index.d.ts +0 -6
  558. package/lib/customtypes/widgets/index.js +0 -9
  559. package/lib/customtypes/widgets/nestable/BooleanField.d.ts +0 -20
  560. package/lib/customtypes/widgets/nestable/BooleanField.js +0 -21
  561. package/lib/customtypes/widgets/nestable/Color.d.ts +0 -17
  562. package/lib/customtypes/widgets/nestable/Color.js +0 -20
  563. package/lib/customtypes/widgets/nestable/Date.d.ts +0 -19
  564. package/lib/customtypes/widgets/nestable/Date.js +0 -21
  565. package/lib/customtypes/widgets/nestable/Embed.d.ts +0 -19
  566. package/lib/customtypes/widgets/nestable/Embed.js +0 -21
  567. package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +0 -15
  568. package/lib/customtypes/widgets/nestable/GeoPoint.js +0 -19
  569. package/lib/customtypes/widgets/nestable/Image.d.ts +0 -44
  570. package/lib/customtypes/widgets/nestable/Image.js +0 -29
  571. package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +0 -19
  572. package/lib/customtypes/widgets/nestable/IntegrationField.js +0 -21
  573. package/lib/customtypes/widgets/nestable/Link.d.ts +0 -196
  574. package/lib/customtypes/widgets/nestable/Link.js +0 -167
  575. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -217
  576. package/lib/customtypes/widgets/nestable/NestableWidget.js +0 -39
  577. package/lib/customtypes/widgets/nestable/Number.d.ts +0 -23
  578. package/lib/customtypes/widgets/nestable/Number.js +0 -24
  579. package/lib/customtypes/widgets/nestable/Range.d.ts +0 -23
  580. package/lib/customtypes/widgets/nestable/Range.js +0 -24
  581. package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -73
  582. package/lib/customtypes/widgets/nestable/RichText.js +0 -131
  583. package/lib/customtypes/widgets/nestable/Select.d.ts +0 -21
  584. package/lib/customtypes/widgets/nestable/Select.js +0 -22
  585. package/lib/customtypes/widgets/nestable/Separator.d.ts +0 -14
  586. package/lib/customtypes/widgets/nestable/Separator.js +0 -18
  587. package/lib/customtypes/widgets/nestable/Table.d.ts +0 -21
  588. package/lib/customtypes/widgets/nestable/Table.js +0 -30
  589. package/lib/customtypes/widgets/nestable/Text.d.ts +0 -19
  590. package/lib/customtypes/widgets/nestable/Text.js +0 -21
  591. package/lib/customtypes/widgets/nestable/Timestamp.d.ts +0 -19
  592. package/lib/customtypes/widgets/nestable/Timestamp.js +0 -21
  593. package/lib/customtypes/widgets/nestable/index.d.ts +0 -17
  594. package/lib/customtypes/widgets/nestable/index.js +0 -20
  595. package/lib/customtypes/widgets/shared/ImageConstraint.d.ts +0 -7
  596. package/lib/customtypes/widgets/shared/ImageConstraint.js +0 -31
  597. package/lib/customtypes/widgets/shared/index.d.ts +0 -1
  598. package/lib/customtypes/widgets/shared/index.js +0 -8
  599. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -455
  600. package/lib/customtypes/widgets/slices/CompositeSlice.js +0 -63
  601. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -442
  602. package/lib/customtypes/widgets/slices/LegacySlice.js +0 -12
  603. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +0 -1807
  604. package/lib/customtypes/widgets/slices/SharedSlice.js +0 -118
  605. package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +0 -5
  606. package/lib/customtypes/widgets/slices/SharedSliceRef.js +0 -9
  607. package/lib/customtypes/widgets/slices/Slice.d.ts +0 -6
  608. package/lib/customtypes/widgets/slices/Slice.js +0 -2
  609. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +0 -1259
  610. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.js +0 -10
  611. package/lib/customtypes/widgets/slices/Slices.d.ts +0 -5917
  612. package/lib/customtypes/widgets/slices/Slices.js +0 -146
  613. package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +0 -6
  614. package/lib/customtypes/widgets/slices/SlicesTypes.js +0 -11
  615. package/lib/customtypes/widgets/slices/index.d.ts +0 -8
  616. package/lib/customtypes/widgets/slices/index.js +0 -11
  617. package/lib/utils/Arrays.d.ts +0 -1
  618. package/lib/utils/Arrays.js +0 -13
  619. package/lib/utils/DocumentId.d.ts +0 -2
  620. package/lib/utils/DocumentId.js +0 -7
  621. package/lib/utils/Fields.d.ts +0 -6
  622. package/lib/utils/Fields.js +0 -2
  623. package/lib/utils/Objects.d.ts +0 -8
  624. package/lib/utils/Objects.js +0 -42
  625. package/lib/utils/index.d.ts +0 -4
  626. package/lib/utils/index.js +0 -8
  627. package/lib/validators/BasicTypes.d.ts +0 -10
  628. package/lib/validators/BasicTypes.js +0 -25
  629. package/lib/validators/DateFromString.d.ts +0 -3
  630. package/lib/validators/DateFromString.js +0 -11
  631. package/lib/validators/DateFromStringOrNumber.d.ts +0 -3
  632. package/lib/validators/DateFromStringOrNumber.js +0 -10
  633. package/lib/validators/DateFromTsMs.d.ts +0 -3
  634. package/lib/validators/DateFromTsMs.js +0 -10
  635. package/lib/validators/DefaultOrElse.d.ts +0 -5
  636. package/lib/validators/DefaultOrElse.js +0 -21
  637. package/lib/validators/IntFromNumber.d.ts +0 -5
  638. package/lib/validators/IntFromNumber.js +0 -14
  639. package/lib/validators/IntFromPixels.d.ts +0 -8
  640. package/lib/validators/IntFromPixels.js +0 -24
  641. package/lib/validators/NonEmptyString.d.ts +0 -3
  642. package/lib/validators/NonEmptyString.js +0 -6
  643. package/lib/validators/NonEmptyStringOrNull.d.ts +0 -3
  644. package/lib/validators/NonEmptyStringOrNull.js +0 -15
  645. package/lib/validators/NumberOrNull.d.ts +0 -3
  646. package/lib/validators/NumberOrNull.js +0 -6
  647. package/lib/validators/NumberRange.d.ts +0 -32
  648. package/lib/validators/NumberRange.js +0 -40
  649. package/lib/validators/StringFromBoolean.d.ts +0 -5
  650. package/lib/validators/StringFromBoolean.js +0 -10
  651. package/lib/validators/StringFromNumber.d.ts +0 -5
  652. package/lib/validators/StringFromNumber.js +0 -10
  653. package/lib/validators/StringOrNull.d.ts +0 -3
  654. package/lib/validators/StringOrNull.js +0 -6
  655. package/lib/validators/TrimmedString.d.ts +0 -5
  656. package/lib/validators/TrimmedString.js +0 -23
  657. package/lib/validators/function.d.ts +0 -34
  658. package/lib/validators/function.js +0 -100
  659. package/lib/validators/index.d.ts +0 -15
  660. package/lib/validators/index.js +0 -31
  661. package/src/common/Asset.ts +0 -25
  662. package/src/common/Embed.ts +0 -22
  663. package/src/common/HexaColorCode.ts +0 -11
  664. package/src/common/UUID.ts +0 -19
  665. package/src/common/WidgetKey.ts +0 -13
  666. package/src/common/index.ts +0 -3
  667. package/src/content/Document.ts +0 -539
  668. package/src/content/fields/EmptyContent.ts +0 -45
  669. package/src/content/fields/GroupContent.ts +0 -466
  670. package/src/content/fields/UIDContent.ts +0 -42
  671. package/src/content/fields/WidgetContent.ts +0 -76
  672. package/src/content/fields/index.ts +0 -6
  673. package/src/content/fields/nestable/BooleanContent.ts +0 -52
  674. package/src/content/fields/nestable/EmbedContent.ts +0 -74
  675. package/src/content/fields/nestable/FieldContent/ColorContent.ts +0 -49
  676. package/src/content/fields/nestable/FieldContent/DateContent.ts +0 -49
  677. package/src/content/fields/nestable/FieldContent/NumberContent.ts +0 -49
  678. package/src/content/fields/nestable/FieldContent/RangeContent.ts +0 -49
  679. package/src/content/fields/nestable/FieldContent/SelectContent.ts +0 -60
  680. package/src/content/fields/nestable/FieldContent/TextContent.ts +0 -49
  681. package/src/content/fields/nestable/FieldContent/TimestampContent.ts +0 -49
  682. package/src/content/fields/nestable/FieldContent/common.ts +0 -1
  683. package/src/content/fields/nestable/FieldContent/index.ts +0 -40
  684. package/src/content/fields/nestable/GeoPointContent.ts +0 -48
  685. package/src/content/fields/nestable/ImageContent.ts +0 -196
  686. package/src/content/fields/nestable/IntegrationFieldContent.ts +0 -51
  687. package/src/content/fields/nestable/LinkContent.ts +0 -651
  688. package/src/content/fields/nestable/NestableContent.ts +0 -241
  689. package/src/content/fields/nestable/RepeatableContent.ts +0 -224
  690. package/src/content/fields/nestable/RichTextContent/Blocks.ts +0 -238
  691. package/src/content/fields/nestable/RichTextContent/index.ts +0 -42
  692. package/src/content/fields/nestable/SeparatorContent.ts +0 -34
  693. package/src/content/fields/nestable/TableContent.ts +0 -234
  694. package/src/content/fields/nestable/index.ts +0 -12
  695. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +0 -293
  696. package/src/content/fields/slices/Slice/RepeatableContent.ts +0 -29
  697. package/src/content/fields/slices/Slice/SharedSliceContent.ts +0 -305
  698. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +0 -180
  699. package/src/content/fields/slices/Slice/SlicePrimaryContent.ts +0 -40
  700. package/src/content/fields/slices/Slice/index.ts +0 -52
  701. package/src/content/fields/slices/SliceItem.ts +0 -184
  702. package/src/content/fields/slices/SlicesContent.ts +0 -677
  703. package/src/content/fields/slices/index.ts +0 -3
  704. package/src/content/fields/withDefaultValues.ts +0 -119
  705. package/src/content/helpers.ts +0 -25
  706. package/src/content/index.ts +0 -4
  707. package/src/content/utils.ts +0 -145
  708. package/src/customtypes/CustomType.ts +0 -280
  709. package/src/customtypes/Section.ts +0 -98
  710. package/src/customtypes/diff/Variation.ts +0 -167
  711. package/src/customtypes/diff/Widgets.ts +0 -17
  712. package/src/customtypes/diff/index.ts +0 -4
  713. package/src/customtypes/index.ts +0 -4
  714. package/src/customtypes/widgets/Group.ts +0 -120
  715. package/src/customtypes/widgets/UID.ts +0 -27
  716. package/src/customtypes/widgets/Widget.ts +0 -83
  717. package/src/customtypes/widgets/index.ts +0 -6
  718. package/src/customtypes/widgets/nestable/BooleanField.ts +0 -29
  719. package/src/customtypes/widgets/nestable/Color.ts +0 -25
  720. package/src/customtypes/widgets/nestable/Date.ts +0 -27
  721. package/src/customtypes/widgets/nestable/Embed.ts +0 -27
  722. package/src/customtypes/widgets/nestable/GeoPoint.ts +0 -25
  723. package/src/customtypes/widgets/nestable/Image.ts +0 -39
  724. package/src/customtypes/widgets/nestable/IntegrationField.ts +0 -26
  725. package/src/customtypes/widgets/nestable/Link.ts +0 -313
  726. package/src/customtypes/widgets/nestable/NestableWidget.ts +0 -40
  727. package/src/customtypes/widgets/nestable/Number.ts +0 -30
  728. package/src/customtypes/widgets/nestable/Range.ts +0 -30
  729. package/src/customtypes/widgets/nestable/RichText.ts +0 -215
  730. package/src/customtypes/widgets/nestable/Select.ts +0 -34
  731. package/src/customtypes/widgets/nestable/Separator.ts +0 -24
  732. package/src/customtypes/widgets/nestable/Table.ts +0 -38
  733. package/src/customtypes/widgets/nestable/Text.ts +0 -27
  734. package/src/customtypes/widgets/nestable/Timestamp.ts +0 -27
  735. package/src/customtypes/widgets/nestable/index.ts +0 -17
  736. package/src/customtypes/widgets/shared/ImageConstraint.ts +0 -41
  737. package/src/customtypes/widgets/shared/index.ts +0 -1
  738. package/src/customtypes/widgets/slices/CompositeSlice.ts +0 -79
  739. package/src/customtypes/widgets/slices/LegacySlice.ts +0 -15
  740. package/src/customtypes/widgets/slices/SharedSlice.ts +0 -152
  741. package/src/customtypes/widgets/slices/SharedSliceRef.ts +0 -10
  742. package/src/customtypes/widgets/slices/Slice.ts +0 -7
  743. package/src/customtypes/widgets/slices/SlicePrimaryWidget.ts +0 -12
  744. package/src/customtypes/widgets/slices/Slices.ts +0 -184
  745. package/src/customtypes/widgets/slices/SlicesTypes.ts +0 -11
  746. package/src/customtypes/widgets/slices/index.ts +0 -8
  747. package/src/utils/Arrays.ts +0 -12
  748. package/src/utils/DocumentId.ts +0 -8
  749. package/src/utils/Fields.ts +0 -4
  750. package/src/utils/Objects.ts +0 -53
  751. package/src/utils/index.ts +0 -4
  752. package/src/validators/BasicTypes.ts +0 -55
  753. package/src/validators/DateFromString.ts +0 -19
  754. package/src/validators/DateFromStringOrNumber.ts +0 -17
  755. package/src/validators/DateFromTsMs.ts +0 -17
  756. package/src/validators/DefaultOrElse.ts +0 -24
  757. package/src/validators/IntFromNumber.ts +0 -22
  758. package/src/validators/IntFromPixels.ts +0 -32
  759. package/src/validators/NonEmptyString.ts +0 -8
  760. package/src/validators/NonEmptyStringOrNull.ts +0 -22
  761. package/src/validators/NumberOrNull.ts +0 -5
  762. package/src/validators/NumberRange.ts +0 -51
  763. package/src/validators/StringFromBoolean.ts +0 -19
  764. package/src/validators/StringFromNumber.ts +0 -19
  765. package/src/validators/StringOrNull.ts +0 -5
  766. package/src/validators/TrimmedString.ts +0 -33
  767. package/src/validators/function.ts +0 -115
  768. package/src/validators/index.ts +0 -15
  769. /package/src/{customtypes/diff/Changes.ts → model/diff/changes.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod4.d.ts","names":[],"sources":["../src/zod4.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,WAAA,CAAA,WAAA,CAAqC,iBAAA,WAArC,cAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACvB,sBAAA,EAAsB,WAAA,CAAA,WAAA,CAAoC,gBAAA,WAApC,cAAA,CAAA,iBAAA,CAAA,gBAAA;AAAA,cACtB,uBAAA,EAAuB,WAAA,CAAA,WAAA,CAAqC,iBAAA,WAArC,cAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACvB,wBAAA,cAAwB,aAAA;2CAAsC,WAAA,CAAA,cAAA;;;;;;;;;;;cAC9D,uBAAA,cAAuB,aAAA;2CAAqC,WAAA,CAAA,cAAA;;;;;;;;;;;cAC5D,uBAAA,EAAuB,WAAA,CAAA,WAAA,CAAqC,iBAAA,WAArC,cAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACvB,wBAAA,EAAwB,WAAA,CAAA,WAAA,CAAsC,kBAAA,WAAtC,cAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,cACxB,wBAAA,EAAwB,WAAA,CAAA,aAAA,CAAsC,WAAA,CAAtC,aAAA,UAAA,WAAA,CAAA,WAAA,CAAA,iBAAA,WAAA,cAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACxB,yBAAA,EAAyB,WAAA,CAAA,aAAA,CAAuC,WAAA,CAAvC,aAAA,UAAA,WAAA,CAAA,WAAA,CAAA,kBAAA,WAAA,cAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,cACzB,2BAAA,cAA2B,aAAA;MAAyC,WAAA,CAAA,aAAA;;;;;;;;;;cACpE,qBAAA,cAAqB,aAAA;MAAmC,WAAA,CAAA,aAAA"}
package/dist/zod4.js ADDED
@@ -0,0 +1,136 @@
1
+ import { EmbedContentSchema as EmbedContentSchema$1 } from "./content/embed.js";
2
+ import { ImageContentSchema as ImageContentSchema$1, ImageContentViewSchema as ImageContentViewSchema$1 } from "./content/image.js";
3
+ import { NonEmptyStringSchema as NonEmptyStringSchema$1 } from "./common/nonEmptyString.js";
4
+ import { EmptyLinkContentSchema as EmptyLinkContentSchema$1, FilledLinkContentSchema as FilledLinkContentSchema$1, LinkContentSchema as LinkContentSchema$1 } from "./content/link.js";
5
+ import { RichTextContentBlockSchema as RichTextContentBlockSchema$1, RichTextContentSchema as RichTextContentSchema$1, RichTextContentSpanSchema as RichTextContentSpanSchema$1 } from "./content/richText.js";
6
+ import { ImageModelSchema as ImageModelSchema$1 } from "./model/image.js";
7
+ import { RichTextModelSchema as RichTextModelSchema$1 } from "./model/richText.js";
8
+ import { TableModelSchema as TableModelSchema$1 } from "./model/table.js";
9
+ import { WidgetKeySchema as WidgetKeySchema$1 } from "./common/widgetKey.js";
10
+ import { BooleanContentSchema as BooleanContentSchema$1 } from "./content/boolean.js";
11
+ import { EmptyContentSchema as EmptyContentSchema$1 } from "./content/empty.js";
12
+ import { ColorContentSchema as ColorContentSchema$1, DateContentSchema as DateContentSchema$1, FieldContentSchema as FieldContentSchema$1, NumberContentSchema as NumberContentSchema$1, RangeContentSchema as RangeContentSchema$1, SelectContentSchema as SelectContentSchema$1, TextContentSchema as TextContentSchema$1, TimestampContentSchema as TimestampContentSchema$1 } from "./content/field.js";
13
+ import { GeoPointContentSchema as GeoPointContentSchema$1 } from "./content/geopoint.js";
14
+ import { IntegrationFieldContentSchema as IntegrationFieldContentSchema$1 } from "./content/integrationField.js";
15
+ import { RepeatableContentSchema as RepeatableContentSchema$1 } from "./content/repeatable.js";
16
+ import { SeparatorContentSchema as SeparatorContentSchema$1 } from "./content/separator.js";
17
+ import { TableContentSchema as TableContentSchema$1 } from "./content/table.js";
18
+ import { NestableContentSchema as NestableContentSchema$1 } from "./content/nestable.js";
19
+ import { GroupContentSchema as GroupContentSchema$1, GroupItemContentSchema as GroupItemContentSchema$1 } from "./content/group.js";
20
+ import { CompositeSliceContentSchema as CompositeSliceContentSchema$1, LegacySliceContentSchema as LegacySliceContentSchema$1, SharedSliceContentSchema as SharedSliceContentSchema$1, SliceContentSchema as SliceContentSchema$1 } from "./content/slice.js";
21
+ import { CompositeSliceItemContentSchema as CompositeSliceItemContentSchema$1, LegacySliceItemContentSchema as LegacySliceItemContentSchema$1, SharedSliceItemContentSchema as SharedSliceItemContentSchema$1, SliceItemContentSchema as SliceItemContentSchema$1, SlicesContentSchema as SlicesContentSchema$1 } from "./content/slices.js";
22
+ import { UIDContentSchema as UIDContentSchema$1 } from "./content/uid.js";
23
+ import { WidgetContentSchema as WidgetContentSchema$1 } from "./content/widget.js";
24
+ import { DocumentContentSchema as DocumentContentSchema$1 } from "./content/document.js";
25
+ import { BooleanModelSchema as BooleanModelSchema$1 } from "./model/boolean.js";
26
+ import { ColorModelSchema as ColorModelSchema$1 } from "./model/color.js";
27
+ import { DateModelSchema as DateModelSchema$1 } from "./model/date.js";
28
+ import { EmbedModelSchema as EmbedModelSchema$1 } from "./model/embed.js";
29
+ import { GeoPointModelSchema as GeoPointModelSchema$1 } from "./model/geopoint.js";
30
+ import { IntegrationFieldModelSchema as IntegrationFieldModelSchema$1 } from "./model/integrationField.js";
31
+ import { LinkModelSchema as LinkModelSchema$1 } from "./model/link.js";
32
+ import { NumberModelSchema as NumberModelSchema$1 } from "./model/number.js";
33
+ import { RangeModelSchema as RangeModelSchema$1 } from "./model/range.js";
34
+ import { SelectModelSchema as SelectModelSchema$1 } from "./model/select.js";
35
+ import { SeparatorModelSchema as SeparatorModelSchema$1 } from "./model/separator.js";
36
+ import { TextModelSchema as TextModelSchema$1 } from "./model/text.js";
37
+ import { TimestampModelSchema as TimestampModelSchema$1 } from "./model/timestamp.js";
38
+ import { NestableModelSchema as NestableModelSchema$1 } from "./model/nestable.js";
39
+ import { GroupModelSchema as GroupModelSchema$1, NestedGroupModelSchema as NestedGroupModelSchema$1 } from "./model/group.js";
40
+ import { CompositeSliceModelSchema as CompositeSliceModelSchema$1, DynamicSliceModelSchema as DynamicSliceModelSchema$1, LegacySliceModelSchema as LegacySliceModelSchema$1, SharedSliceModelSchema as SharedSliceModelSchema$1, SharedSliceModelVariationSchema as SharedSliceModelVariationSchema$1, SharedSliceRefModelSchema as SharedSliceRefModelSchema$1, SliceContentModelSchema as SliceContentModelSchema$1, StaticSliceModelSchema as StaticSliceModelSchema$1 } from "./model/slice.js";
41
+ import { DynamicSlicesModelSchema as DynamicSlicesModelSchema$1, StaticSlicesModelSchema as StaticSlicesModelSchema$1 } from "./model/slices.js";
42
+ import { UIDModelSchema as UIDModelSchema$1 } from "./model/uid.js";
43
+ import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
44
+ import { AssetSchema as AssetSchema$1 } from "./common/asset.js";
45
+ import { EmbedSchema as EmbedSchema$1 } from "./common/embed.js";
46
+ import { HexaColorCodeSchema as HexaColorCodeSchema$1 } from "./common/hexaColorCode.js";
47
+ import { DynamicSectionModelSchema as DynamicSectionModelSchema$1, StaticSectionModelSchema as StaticSectionModelSchema$1 } from "./model/section.js";
48
+ import { CustomTypeModelSchema as CustomTypeModelSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1 } from "./model/customType.js";
49
+ //#region src/zod4.ts
50
+ const AssetSchema = toZod4(AssetSchema$1);
51
+ const EmbedSchema = toZod4(EmbedSchema$1);
52
+ const HexaColorCodeSchema = toZod4(HexaColorCodeSchema$1);
53
+ const NonEmptyStringSchema = toZod4(NonEmptyStringSchema$1);
54
+ const WidgetKeySchema = toZod4(WidgetKeySchema$1);
55
+ const BooleanContentSchema = toZod4(BooleanContentSchema$1);
56
+ const ColorContentSchema = toZod4(ColorContentSchema$1);
57
+ const DateContentSchema = toZod4(DateContentSchema$1);
58
+ const EmptyContentSchema = toZod4(EmptyContentSchema$1);
59
+ const GeoPointContentSchema = toZod4(GeoPointContentSchema$1);
60
+ const FilledLinkContentSchema = toZod4(FilledLinkContentSchema$1);
61
+ const EmptyLinkContentSchema = toZod4(EmptyLinkContentSchema$1);
62
+ const LinkContentSchema = toZod4(LinkContentSchema$1);
63
+ const NumberContentSchema = toZod4(NumberContentSchema$1);
64
+ const RangeContentSchema = toZod4(RangeContentSchema$1);
65
+ const SelectContentSchema = toZod4(SelectContentSchema$1);
66
+ const SeparatorContentSchema = toZod4(SeparatorContentSchema$1);
67
+ const SharedSliceContentSchema = toZod4(SharedSliceContentSchema$1);
68
+ const TextContentSchema = toZod4(TextContentSchema$1);
69
+ const TimestampContentSchema = toZod4(TimestampContentSchema$1);
70
+ const FieldContentSchema = toZod4(FieldContentSchema$1);
71
+ const UIDContentSchema = toZod4(UIDContentSchema$1);
72
+ const IntegrationFieldContentSchema = toZod4(IntegrationFieldContentSchema$1);
73
+ const EmbedContentSchema = toZod4(EmbedContentSchema$1);
74
+ const ImageContentViewSchema = toZod4(ImageContentViewSchema$1);
75
+ const ImageContentSchema = toZod4(ImageContentSchema$1);
76
+ const RichTextContentSchema = toZod4(RichTextContentSchema$1);
77
+ const RichTextContentBlockSchema = toZod4(RichTextContentBlockSchema$1);
78
+ const RichTextContentSpanSchema = toZod4(RichTextContentSpanSchema$1);
79
+ const TableContentSchema = toZod4(TableContentSchema$1);
80
+ const RepeatableContentSchema = toZod4(RepeatableContentSchema$1);
81
+ const NestableContentSchema = toZod4(NestableContentSchema$1);
82
+ const GroupContentSchema = toZod4(GroupContentSchema$1);
83
+ const GroupItemContentSchema = toZod4(GroupItemContentSchema$1);
84
+ const CompositeSliceContentSchema = toZod4(CompositeSliceContentSchema$1);
85
+ const LegacySliceContentSchema = toZod4(LegacySliceContentSchema$1);
86
+ const SliceContentSchema = toZod4(SliceContentSchema$1);
87
+ const LegacySliceItemContentSchema = toZod4(LegacySliceItemContentSchema$1);
88
+ const CompositeSliceItemContentSchema = toZod4(CompositeSliceItemContentSchema$1);
89
+ const SharedSliceItemContentSchema = toZod4(SharedSliceItemContentSchema$1);
90
+ const SliceItemContentSchema = toZod4(SliceItemContentSchema$1);
91
+ const SlicesContentSchema = toZod4(SlicesContentSchema$1);
92
+ const WidgetContentSchema = toZod4(WidgetContentSchema$1);
93
+ const DocumentContentSchema = toZod4(DocumentContentSchema$1);
94
+ const BooleanModelSchema = toZod4(BooleanModelSchema$1);
95
+ const ColorModelSchema = toZod4(ColorModelSchema$1);
96
+ const DateModelSchema = toZod4(DateModelSchema$1);
97
+ const EmbedModelSchema = toZod4(EmbedModelSchema$1);
98
+ const GeoPointModelSchema = toZod4(GeoPointModelSchema$1);
99
+ const ImageModelSchema = toZod4(ImageModelSchema$1);
100
+ const IntegrationFieldModelSchema = toZod4(IntegrationFieldModelSchema$1);
101
+ const LinkModelSchema = toZod4(LinkModelSchema$1);
102
+ const NestableModelSchema = toZod4(NestableModelSchema$1);
103
+ const NumberModelSchema = toZod4(NumberModelSchema$1);
104
+ const RangeModelSchema = toZod4(RangeModelSchema$1);
105
+ const RichTextModelSchema = toZod4(RichTextModelSchema$1);
106
+ const SelectModelSchema = toZod4(SelectModelSchema$1);
107
+ const SeparatorModelSchema = toZod4(SeparatorModelSchema$1);
108
+ const SharedSliceModelSchema = toZod4(SharedSliceModelSchema$1);
109
+ const TableModelSchema = toZod4(TableModelSchema$1);
110
+ const TextModelSchema = toZod4(TextModelSchema$1);
111
+ const TimestampModelSchema = toZod4(TimestampModelSchema$1);
112
+ const UIDModelSchema = toZod4(UIDModelSchema$1);
113
+ const GroupModelSchema = toZod4(GroupModelSchema$1);
114
+ const NestedGroupModelSchema = toZod4(NestedGroupModelSchema$1);
115
+ const SharedSliceModelVariationSchema = toZod4(SharedSliceModelVariationSchema$1);
116
+ const SharedSliceRefModelSchema = toZod4(SharedSliceRefModelSchema$1);
117
+ const CompositeSliceModelSchema = toZod4(CompositeSliceModelSchema$1);
118
+ const LegacySliceModelSchema = toZod4(LegacySliceModelSchema$1);
119
+ const DynamicSliceModelSchema = toZod4(DynamicSliceModelSchema$1);
120
+ const StaticSliceModelSchema = toZod4(StaticSliceModelSchema$1);
121
+ const SliceContentModelSchema = toZod4(SliceContentModelSchema$1);
122
+ const DynamicSlicesModelSchema = toZod4(DynamicSlicesModelSchema$1);
123
+ const StaticSlicesModelSchema = toZod4(StaticSlicesModelSchema$1);
124
+ const StaticWidgetModelSchema = toZod4(StaticWidgetModelSchema$1);
125
+ const DynamicWidgetModelSchema = toZod4(DynamicWidgetModelSchema$1);
126
+ const StaticSectionModelSchema = toZod4(StaticSectionModelSchema$1);
127
+ const DynamicSectionModelSchema = toZod4(DynamicSectionModelSchema$1);
128
+ const StaticCustomTypeModelSchema = toZod4(StaticCustomTypeModelSchema$1);
129
+ const CustomTypeModelSchema = toZod4(CustomTypeModelSchema$1);
130
+ function toZod4(type) {
131
+ return type;
132
+ }
133
+ //#endregion
134
+ export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicSectionModelSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticSectionModelSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
135
+
136
+ //# sourceMappingURL=zod4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod4.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticSectionModelSchema","rawDynamicSectionModelSchema","rawStaticCustomTypeModelSchema","rawCustomTypeModelSchema"],"sources":["../src/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tCustomTypeModelSchema as rawCustomTypeModelSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport {\n\tStaticSectionModelSchema as rawStaticSectionModelSchema,\n\tDynamicSectionModelSchema as rawDynamicSectionModelSchema,\n} from \"./model/section\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toZod4(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toZod4(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toZod4(rawImageContentViewSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toZod4(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const StaticSectionModelSchema = toZod4(rawStaticSectionModelSchema)\nexport const DynamicSectionModelSchema = toZod4(rawDynamicSectionModelSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const CustomTypeModelSchema = toZod4(rawCustomTypeModelSchema)\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+GA,MAAa,cAAc,OAAOA,cAAe;AACjD,MAAa,cAAc,OAAOC,cAAe;AACjD,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,kBAAkB,OAAOC,kBAAmB;AAGzD,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,qBAAqB,OAAOC,qB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,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,8BAA8B,OAAOC,8BAA+B;AACjF,MAAa,wBAAwB,OAAOC,wBAAyB;AAErE,SAAS,OAAU,MAAY;AAC9B,QAAO"}
package/package.json CHANGED
@@ -1,77 +1,81 @@
1
1
  {
2
2
  "name": "@prismicio/types-internal",
3
- "version": "3.17.0",
4
- "description": "Prismic types for Custom Types and Prismic Data",
3
+ "version": "4.0.0-canary.4689e2d",
4
+ "description": "TypeScript types and runtime parsers for Prismic data",
5
5
  "keywords": [
6
- "typescript",
7
- "prismic"
6
+ "prismic",
7
+ "typescript"
8
8
  ],
9
+ "license": "Apache-2.0",
10
+ "author": "Prismic <contact@prismic.io> (https://prismic.io)",
9
11
  "repository": {
10
12
  "type": "git",
11
- "url": "ssh://git@github.com/prismicio/prismic-types-internal.git"
13
+ "url": "ssh://git@github.com/prismicio/prismic-types-internal-next.git"
12
14
  },
13
- "license": "Apache-2.0",
14
- "author": "Prismic <contact@prismic.io> (https://prismic.io)",
15
- "main": "lib/index.js",
16
- "types": "lib/index.d.ts",
17
15
  "files": [
18
- "lib",
19
- "src"
16
+ "./dist",
17
+ "./src"
20
18
  ],
19
+ "type": "module",
20
+ "types": "./dist/index.d.ts",
21
+ "typesVersions": {
22
+ "*": {
23
+ "*": [
24
+ "./dist/index.d.ts"
25
+ ],
26
+ "io-ts": [
27
+ "./dist/io-ts.d.ts"
28
+ ],
29
+ "zod4": [
30
+ "./dist/zod4.d.ts"
31
+ ]
32
+ }
33
+ },
34
+ "exports": {
35
+ ".": "./dist/index.js",
36
+ "./io-ts": "./dist/io-ts.js",
37
+ "./zod4": "./dist/zod4.js",
38
+ "./package.json": "./package.json"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
21
43
  "scripts": {
22
- "build": "tsc",
23
- "dev": "tsc --watch",
24
- "format": "prettier --write .",
44
+ "build": "tsdown",
45
+ "dev": "tsdown --watch",
46
+ "format": "oxfmt",
25
47
  "prepare": "npm run build",
26
- "test": "jest --no-cache --silent=false --verbose=false --coverage",
27
- "test:watch": "npm run test -- --watch",
28
- "test:clear": "jest --clearCache",
29
- "eslint": "eslint . --cache --cache-location .caches/eslint --cache-strategy content --ext js,ts,tsx --max-warnings 0",
30
- "eslint-fix": "npm run eslint -- --fix",
31
- "preflight": "npm run prettier && npm run build && npm run eslint && npm run test",
32
- "prettier": "prettier --check .",
33
- "prettier-write": "prettier --write ."
34
- },
35
- "dependencies": {
36
- "monocle-ts": "^2.3.11",
37
- "newtype-ts": "^0.3.5",
38
- "tslib": "^2.3.1",
39
- "uuid": "^9.0.0"
48
+ "lint": "oxlint --deny-warnings",
49
+ "portability": "npm run build && tsc -p test/portability/tsconfig.json --pretty false",
50
+ "types": "tsc --noEmit",
51
+ "unit": "vitest run --coverage",
52
+ "unit:watch": "vitest watch",
53
+ "test": "npm run lint && npm run types && npm run unit && npm run portability"
40
54
  },
41
55
  "devDependencies": {
42
- "@fast-check/jest": "^1.4.0",
43
- "@relmify/jest-fp-ts": "^1.1.1",
44
- "@types/jest": "^27.4.0",
45
- "@types/uuid": "^9.0.2",
46
- "@typescript-eslint/eslint-plugin": "^5.8.1",
47
- "@typescript-eslint/parser": "^5.8.1",
48
- "ava": "^3.15.0",
49
- "eslint": "8.6.0",
50
- "eslint-config-prettier": "8.3.0",
51
- "eslint-plugin-only-warn": "1.0.3",
52
- "eslint-plugin-simple-import-sort": "7.0.0",
53
- "eslint-plugin-storybook": "0.5.5",
54
- "fp-ts": "^2.11.8",
55
- "io-ts": "^2.2.16",
56
- "io-ts-types": "^0.5.16",
57
- "jest": "^27.5.1",
58
- "nyc": "^15.1.0",
59
- "prettier": "^2.7.1",
60
- "prettier-plugin-jsdoc": "^0.3.30",
61
- "standard-version": "^9.3.2",
62
- "ts-eager": "^2.0.2",
63
- "ts-jest": "^27.1.3",
64
- "typescript": "^4.5.5"
56
+ "@prismicio/e2e-tests-utils": "^1.16.0",
57
+ "@prismicio/types-internal-v3": "npm:@prismicio/types-internal@^3.17.0",
58
+ "@types/node": "^25.5.0",
59
+ "@types/uuid": "^11.0.0",
60
+ "@vitest/coverage-v8": "^4.1.2",
61
+ "io-ts": "^2.2.22",
62
+ "oxfmt": "^0.43.0",
63
+ "oxlint": "^1.58.0",
64
+ "tsdown": "^0.21.7",
65
+ "typescript": "^6.0.2",
66
+ "vitest": "^4.1.2",
67
+ "zod": "^4.3.6"
65
68
  },
66
69
  "peerDependencies": {
67
- "fp-ts": "^2.11.8",
68
- "io-ts": "^2.2.16",
69
- "io-ts-types": "^0.5.16"
70
+ "io-ts": "^2.2.22",
71
+ "zod": "^4.3.6"
70
72
  },
71
- "engines": {
72
- "node": ">=12.7.0"
73
+ "peerDependenciesMeta": {
74
+ "io-ts": {
75
+ "optional": true
76
+ }
73
77
  },
74
- "publishConfig": {
75
- "access": "public"
78
+ "engines": {
79
+ "node": ">=20"
76
80
  }
77
81
  }
@@ -0,0 +1,29 @@
1
+ import { z } from "zod/mini"
2
+
3
+ export const AssetSchema = z.strictObject({
4
+ id: z.string(),
5
+ last_modified: z.string(),
6
+ kind: z.union([z.literal("image"), z.literal("all")]),
7
+ filename: z.optional(z.string()),
8
+ extension: z.optional(z.string()),
9
+ size: z.optional(z.number()),
10
+ origin_url: z.string(),
11
+ url: z.string(),
12
+ width: z.optional(z.number()),
13
+ height: z.optional(z.number()),
14
+ notes: z.optional(z.string()),
15
+ credits: z.optional(z.string()),
16
+ alt: z.optional(z.string()),
17
+ })
18
+
19
+ export type Asset = z.infer<typeof AssetSchema>
20
+
21
+ export const getAssetOrThrow =
22
+ (assets: Record<Asset["id"], Asset | undefined>): ((assetId: Asset["id"]) => Asset) =>
23
+ (assetId: Asset["id"]): Asset => {
24
+ const asset = assets[assetId]
25
+ if (!asset) {
26
+ throw new Error(`Missing asset with id '${assetId}'!`)
27
+ }
28
+ return asset
29
+ }
@@ -0,0 +1,27 @@
1
+ import { z } from "zod/mini"
2
+
3
+ // This type represents response format from oEmbed API
4
+ export const EmbedSchema = z.strictObject({
5
+ type: z.string(),
6
+ version: z.nullish(z.string()),
7
+ author_name: z.nullish(z.string()),
8
+ author_url: z.nullish(z.string()),
9
+ provider_name: z.nullish(z.string()),
10
+ provider_url: z.nullish(z.string()),
11
+ cache_age: z.nullish(z.string()),
12
+ thumbnail_url: z.nullish(z.string()),
13
+ thumbnail_width: z.nullish(z.number()),
14
+ thumbnail_height: z.nullish(z.number()),
15
+ html: z.nullish(z.string()),
16
+ title: z.nullish(z.string()),
17
+ })
18
+
19
+ export type Embed = z.infer<typeof EmbedSchema>
20
+
21
+ export const getEmbedOrThrow =
22
+ (embeds: Record<string, Embed | undefined>): ((embedUrl: string) => Embed) =>
23
+ (embedUrl: string): Embed => {
24
+ const embed = embeds[embedUrl]
25
+ if (!embed) throw new Error(`Missing embed with url '${embedUrl}'`)
26
+ return embed
27
+ }
@@ -0,0 +1,11 @@
1
+ import { z } from "zod/mini"
2
+
3
+ const hexaColorCodeRegex = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/
4
+
5
+ export const HexaColorCodeSchema = z.string().check(
6
+ z.refine((s) => hexaColorCodeRegex.test(s), {
7
+ error: () => "The value must be a valid hex color code (e.g. #FFF or #FFFFFF)",
8
+ }),
9
+ )
10
+
11
+ export type HexaColorCode = z.infer<typeof HexaColorCodeSchema>
@@ -0,0 +1,9 @@
1
+ import { z } from "zod/mini"
2
+
3
+ export const NonEmptyStringSchema = z.string().check(
4
+ z.refine((s) => s.trim().length > 0, {
5
+ error: () => "The value must be a non-empty string",
6
+ }),
7
+ )
8
+
9
+ export type NonEmptyString = z.infer<typeof NonEmptyStringSchema>
@@ -0,0 +1,11 @@
1
+ import { z } from "zod/mini"
2
+
3
+ const widgetKeyRegex = /^[^<>]+$/
4
+
5
+ export const WidgetKeySchema = z.string().check(
6
+ z.refine((s) => s.length === 0 || widgetKeyRegex.test(s), {
7
+ error: () => "The value must not contain < or > characters",
8
+ }),
9
+ )
10
+
11
+ export type WidgetKey = z.infer<typeof WidgetKeySchema>
@@ -0,0 +1,10 @@
1
+ import { z } from "zod/mini"
2
+
3
+ export const BooleanContentType = "BooleanContent" as const
4
+
5
+ export const BooleanContentSchema = z.object({
6
+ __TYPE__: z.literal(BooleanContentType),
7
+ value: z.boolean(),
8
+ })
9
+
10
+ export type BooleanContent = z.infer<typeof BooleanContentSchema>
@@ -0,0 +1,38 @@
1
+ import { BooleanContentSchema, BooleanContentType } from "../boolean"
2
+ import type { BooleanContent } from "../boolean"
3
+ import { BooleanLegacySchema } from "../legacy/boolean"
4
+ import type { BooleanLegacy } from "../legacy/boolean"
5
+ import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
6
+
7
+ export const BooleanLegacyCodec = (
8
+ ctx: LegacyContentCtx,
9
+ ): LegacyCodec<BooleanContent, BooleanLegacy> => ({
10
+ name: "BooleanLegacy",
11
+
12
+ is(input): input is BooleanContent {
13
+ return BooleanContentSchema.safeParse(input).success
14
+ },
15
+
16
+ toContent(input) {
17
+ const parsed = BooleanLegacySchema.safeParse(input)
18
+ if (!parsed.success) {
19
+ return parsed
20
+ }
21
+
22
+ return {
23
+ success: true,
24
+ data: {
25
+ __TYPE__: BooleanContentType,
26
+ value: parsed.data,
27
+ },
28
+ }
29
+ },
30
+
31
+ fromContent(input) {
32
+ return {
33
+ content: input.value,
34
+ types: { [ctx.keyOfType]: "Boolean" },
35
+ keys: {},
36
+ }
37
+ },
38
+ })
@@ -0,0 +1,60 @@
1
+ import { DocumentContentSchema } from "../document"
2
+ import type { DocumentContent } from "../document"
3
+ import { DocumentLegacySchema } from "../legacy/document"
4
+ import type { DocumentLegacy } from "../legacy/document"
5
+ import { defaultCtx } from "./legacyContentCtx"
6
+ import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
7
+ import { WidgetLegacyCodec } from "./widget"
8
+
9
+ export const DocumentLegacyCodec = (
10
+ ctx: LegacyContentCtx,
11
+ ): LegacyCodec<DocumentContent, DocumentLegacy> => ({
12
+ name: "DocumentLegacy",
13
+
14
+ is(input): input is DocumentContent {
15
+ return DocumentContentSchema.safeParse(input).success
16
+ },
17
+
18
+ toContent(input) {
19
+ const parsed = DocumentLegacySchema.safeParse(input)
20
+ if (!parsed.success) {
21
+ return parsed
22
+ }
23
+
24
+ const data: DocumentContent = {}
25
+
26
+ for (const [widgetKey, widgetValue] of Object.entries(parsed.data)) {
27
+ const widgetCtx = defaultCtx(widgetKey, ctx.allTypes, ctx.allKeys)
28
+ const result = WidgetLegacyCodec(widgetCtx).toContent(widgetValue)
29
+
30
+ if (result.success) {
31
+ data[widgetKey] = result.data
32
+ }
33
+ }
34
+
35
+ return { success: true, data }
36
+ },
37
+
38
+ fromContent(input) {
39
+ const legacy: ReturnType<LegacyCodec<DocumentContent, DocumentLegacy>["fromContent"]> = {
40
+ content: {},
41
+ types: {},
42
+ keys: {},
43
+ }
44
+
45
+ for (const [widgetKey, widgetValue] of Object.entries(input)) {
46
+ const widgetCtx = defaultCtx(widgetKey, ctx.allTypes)
47
+ const result = WidgetLegacyCodec(widgetCtx).fromContent(widgetValue)
48
+
49
+ if (!result) {
50
+ continue
51
+ }
52
+
53
+ legacy.content[widgetKey] = result.content
54
+ legacy.types = { ...legacy.types, ...result.types }
55
+ legacy.keys = { ...legacy.keys, ...result.keys }
56
+ }
57
+
58
+ return legacy
59
+ },
60
+ })
@@ -0,0 +1,55 @@
1
+ import { EmbedContentSchema, EmbedContentType } from "../embed"
2
+ import type { EmbedContent } from "../embed"
3
+ import type { EmbedLegacy } from "../legacy/embed"
4
+ import { EmbedLegacySchema, EmbedLegacyLooseSchema } from "../legacy/embed"
5
+ import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
6
+
7
+ // Also used by content/codec/richText
8
+ export function embedLegacyToContent(value: EmbedLegacy): EmbedContent {
9
+ const parsed = EmbedLegacySchema.parse(value)
10
+
11
+ return {
12
+ ...parsed,
13
+ all: value,
14
+ __TYPE__: EmbedContentType,
15
+ }
16
+ }
17
+
18
+ // Also used by content/codec/richText
19
+ export function embedContentToLegacy(value: EmbedContent): EmbedLegacy {
20
+ /**
21
+ * We cast here because actually in the all property we can have
22
+ * extra keys that are never parsed and we don't want to loose them.
23
+ */
24
+ return value.all as EmbedLegacy
25
+ }
26
+
27
+ export const EmbedLegacyCodec = (
28
+ ctx: LegacyContentCtx,
29
+ ): LegacyCodec<EmbedContent, EmbedLegacy> => ({
30
+ name: "EmbedLegacy",
31
+
32
+ is(input): input is EmbedContent {
33
+ return EmbedContentSchema.safeParse(input).success
34
+ },
35
+
36
+ toContent(input) {
37
+ const parsed = EmbedLegacyLooseSchema.safeParse(input)
38
+ if (!parsed.success) {
39
+ return parsed
40
+ }
41
+
42
+ return {
43
+ success: true,
44
+ data: embedLegacyToContent(parsed.data),
45
+ }
46
+ },
47
+
48
+ fromContent(input) {
49
+ return {
50
+ content: embedContentToLegacy(input),
51
+ types: { [ctx.keyOfType]: "Embed" },
52
+ keys: {},
53
+ }
54
+ },
55
+ })
@@ -0,0 +1,49 @@
1
+ import { z } from "zod/mini"
2
+
3
+ import { EmptyContentSchema, EmptyContentType } from "../empty"
4
+ import type { EmptyContent } from "../empty"
5
+ import { EmptyLegacySchema } from "../legacy/empty"
6
+ import type { EmptyLegacy } from "../legacy/empty"
7
+ import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
8
+
9
+ const UnsupportedEmptyLegacySchema = z.never()
10
+
11
+ export const EmptyLegacyCodec = (
12
+ ctx: LegacyContentCtx,
13
+ ): LegacyCodec<EmptyContent, EmptyLegacy> => ({
14
+ name: "EmptyLegacy",
15
+
16
+ is(input): input is EmptyContent {
17
+ return EmptyContentSchema.safeParse(input).success
18
+ },
19
+
20
+ toContent(input) {
21
+ if (!ctx.fieldType) {
22
+ return UnsupportedEmptyLegacySchema.safeParse(
23
+ input,
24
+ ) as z.core.util.SafeParseError<EmptyLegacy>
25
+ }
26
+
27
+ const parsed = EmptyLegacySchema.safeParse(input)
28
+ if (!parsed.success) {
29
+ return parsed
30
+ }
31
+
32
+ return {
33
+ success: true,
34
+ data: {
35
+ __TYPE__: EmptyContentType,
36
+ type: ctx.fieldType,
37
+ },
38
+ }
39
+ },
40
+
41
+ fromContent(input) {
42
+ const type = ctx.fieldType ?? input.type
43
+ return {
44
+ content: null,
45
+ types: { [ctx.keyOfType]: type },
46
+ keys: {},
47
+ } as ReturnType<LegacyCodec<EmptyContent, EmptyLegacy>["fromContent"]>
48
+ },
49
+ })