@prismicio/types-internal 4.6.0 → 4.7.0-canary.af0f4e3

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 (292) hide show
  1. package/dist/common/asset.d.ts +1 -2
  2. package/dist/common/asset.d.ts.map +1 -1
  3. package/dist/common/asset.js.map +1 -1
  4. package/dist/common/embed.d.ts +1 -2
  5. package/dist/common/embed.d.ts.map +1 -1
  6. package/dist/common/embed.js.map +1 -1
  7. package/dist/common/hexaColorCode.d.ts +1 -2
  8. package/dist/common/hexaColorCode.d.ts.map +1 -1
  9. package/dist/common/hexaColorCode.js.map +1 -1
  10. package/dist/common/nonEmptyString.d.ts +1 -2
  11. package/dist/common/nonEmptyString.d.ts.map +1 -1
  12. package/dist/common/nonEmptyString.js.map +1 -1
  13. package/dist/common/widgetKey.d.ts +1 -2
  14. package/dist/common/widgetKey.d.ts.map +1 -1
  15. package/dist/common/widgetKey.js.map +1 -1
  16. package/dist/content/boolean.d.ts +1 -2
  17. package/dist/content/boolean.d.ts.map +1 -1
  18. package/dist/content/boolean.js.map +1 -1
  19. package/dist/content/codec/boolean.js.map +1 -1
  20. package/dist/content/codec/document.js.map +1 -1
  21. package/dist/content/codec/embed.js.map +1 -1
  22. package/dist/content/codec/empty.js.map +1 -1
  23. package/dist/content/codec/field.js.map +1 -1
  24. package/dist/content/codec/geopoint.js.map +1 -1
  25. package/dist/content/codec/group.js +9 -6
  26. package/dist/content/codec/group.js.map +1 -1
  27. package/dist/content/codec/image.js.map +1 -1
  28. package/dist/content/codec/integrationField.js.map +1 -1
  29. package/dist/content/codec/legacyContentCtx.d.ts +2 -15
  30. package/dist/content/codec/legacyContentCtx.d.ts.map +1 -1
  31. package/dist/content/codec/legacyContentCtx.js +5 -1
  32. package/dist/content/codec/legacyContentCtx.js.map +1 -1
  33. package/dist/content/codec/link.js.map +1 -1
  34. package/dist/content/codec/nestable.js.map +1 -1
  35. package/dist/content/codec/repeatable.js.map +1 -1
  36. package/dist/content/codec/richText.js.map +1 -1
  37. package/dist/content/codec/separator.js.map +1 -1
  38. package/dist/content/codec/slice.js.map +1 -1
  39. package/dist/content/codec/slices.js.map +1 -1
  40. package/dist/content/codec/table.js.map +1 -1
  41. package/dist/content/codec/uid.js.map +1 -1
  42. package/dist/content/codec/widget.js.map +1 -1
  43. package/dist/content/document.d.ts +1 -2
  44. package/dist/content/document.d.ts.map +1 -1
  45. package/dist/content/document.js.map +1 -1
  46. package/dist/content/embed.d.ts +1 -2
  47. package/dist/content/embed.d.ts.map +1 -1
  48. package/dist/content/embed.js.map +1 -1
  49. package/dist/content/empty.d.ts +1 -2
  50. package/dist/content/empty.d.ts.map +1 -1
  51. package/dist/content/empty.js.map +1 -1
  52. package/dist/content/field.d.ts +1 -2
  53. package/dist/content/field.d.ts.map +1 -1
  54. package/dist/content/field.js.map +1 -1
  55. package/dist/content/geopoint.d.ts +1 -2
  56. package/dist/content/geopoint.d.ts.map +1 -1
  57. package/dist/content/geopoint.js.map +1 -1
  58. package/dist/content/group.d.ts +3 -2
  59. package/dist/content/group.d.ts.map +1 -1
  60. package/dist/content/group.js.map +1 -1
  61. package/dist/content/image.d.ts +1 -2
  62. package/dist/content/image.d.ts.map +1 -1
  63. package/dist/content/image.js.map +1 -1
  64. package/dist/content/integrationField.d.ts +1 -2
  65. package/dist/content/integrationField.d.ts.map +1 -1
  66. package/dist/content/integrationField.js.map +1 -1
  67. package/dist/content/legacy/boolean.js.map +1 -1
  68. package/dist/content/legacy/document.d.ts +1 -2
  69. package/dist/content/legacy/document.d.ts.map +1 -1
  70. package/dist/content/legacy/document.js.map +1 -1
  71. package/dist/content/legacy/embed.js.map +1 -1
  72. package/dist/content/legacy/empty.js.map +1 -1
  73. package/dist/content/legacy/field.js.map +1 -1
  74. package/dist/content/legacy/geopoint.js.map +1 -1
  75. package/dist/content/legacy/group.d.ts +2 -2
  76. package/dist/content/legacy/group.d.ts.map +1 -1
  77. package/dist/content/legacy/group.js.map +1 -1
  78. package/dist/content/legacy/image.d.ts +0 -1
  79. package/dist/content/legacy/image.d.ts.map +1 -1
  80. package/dist/content/legacy/image.js.map +1 -1
  81. package/dist/content/legacy/integrationField.js.map +1 -1
  82. package/dist/content/legacy/link.d.ts +1 -2
  83. package/dist/content/legacy/link.d.ts.map +1 -1
  84. package/dist/content/legacy/link.js.map +1 -1
  85. package/dist/content/legacy/nestable.d.ts +12 -0
  86. package/dist/content/legacy/nestable.js.map +1 -1
  87. package/dist/content/legacy/repeatable.js.map +1 -1
  88. package/dist/content/legacy/richText.d.ts +5 -2
  89. package/dist/content/legacy/richText.d.ts.map +1 -1
  90. package/dist/content/legacy/richText.js.map +1 -1
  91. package/dist/content/legacy/separator.js.map +1 -1
  92. package/dist/content/legacy/slice.js +1 -1
  93. package/dist/content/legacy/slice.js.map +1 -1
  94. package/dist/content/legacy/slices.js.map +1 -1
  95. package/dist/content/legacy/table.d.ts +2 -0
  96. package/dist/content/legacy/table.js.map +1 -1
  97. package/dist/content/legacy/uid.js.map +1 -1
  98. package/dist/content/link.d.ts +7 -8
  99. package/dist/content/link.d.ts.map +1 -1
  100. package/dist/content/link.js.map +1 -1
  101. package/dist/content/nestable.d.ts +0 -1
  102. package/dist/content/nestable.d.ts.map +1 -1
  103. package/dist/content/nestable.js.map +1 -1
  104. package/dist/content/repeatable.d.ts +3 -4
  105. package/dist/content/repeatable.d.ts.map +1 -1
  106. package/dist/content/repeatable.js.map +1 -1
  107. package/dist/content/richText.d.ts +2 -3
  108. package/dist/content/richText.d.ts.map +1 -1
  109. package/dist/content/richText.js +2 -2
  110. package/dist/content/richText.js.map +1 -1
  111. package/dist/content/separator.d.ts +1 -2
  112. package/dist/content/separator.d.ts.map +1 -1
  113. package/dist/content/separator.js.map +1 -1
  114. package/dist/content/slice.d.ts +13 -14
  115. package/dist/content/slice.d.ts.map +1 -1
  116. package/dist/content/slice.js.map +1 -1
  117. package/dist/content/slices.d.ts +13 -14
  118. package/dist/content/slices.d.ts.map +1 -1
  119. package/dist/content/slices.js.map +1 -1
  120. package/dist/content/table.d.ts +1 -2
  121. package/dist/content/table.d.ts.map +1 -1
  122. package/dist/content/table.js.map +1 -1
  123. package/dist/content/uid.d.ts +1 -2
  124. package/dist/content/uid.d.ts.map +1 -1
  125. package/dist/content/uid.js.map +1 -1
  126. package/dist/content/widget.d.ts +0 -1
  127. package/dist/content/widget.d.ts.map +1 -1
  128. package/dist/content/widget.js.map +1 -1
  129. package/dist/helpers/contentPath.d.ts +1 -1
  130. package/dist/helpers/contentPath.d.ts.map +1 -1
  131. package/dist/helpers/contentPath.js +1 -1
  132. package/dist/helpers/contentPath.js.map +1 -1
  133. package/dist/helpers/customTypeModel.d.ts +3 -5
  134. package/dist/helpers/customTypeModel.d.ts.map +1 -1
  135. package/dist/helpers/customTypeModel.js +2 -2
  136. package/dist/helpers/customTypeModel.js.map +1 -1
  137. package/dist/helpers/documentContent.d.ts +4 -5
  138. package/dist/helpers/documentContent.d.ts.map +1 -1
  139. package/dist/helpers/documentContent.js +12 -15
  140. package/dist/helpers/documentContent.js.map +1 -1
  141. package/dist/helpers/fieldModel.d.ts +1 -1
  142. package/dist/helpers/fieldModel.d.ts.map +1 -1
  143. package/dist/helpers/fieldModel.js +1 -1
  144. package/dist/helpers/fieldModel.js.map +1 -1
  145. package/dist/helpers/imageContent.d.ts +2 -6
  146. package/dist/helpers/imageContent.d.ts.map +1 -1
  147. package/dist/helpers/imageContent.js +1 -1
  148. package/dist/helpers/imageContent.js.map +1 -1
  149. package/dist/helpers/repository.d.ts +1 -1
  150. package/dist/helpers/repository.d.ts.map +1 -1
  151. package/dist/helpers/repository.js +1 -1
  152. package/dist/helpers/repository.js.map +1 -1
  153. package/dist/helpers/sliceContent.d.ts +4 -4
  154. package/dist/helpers/sliceContent.d.ts.map +1 -1
  155. package/dist/helpers/sliceContent.js +11 -2
  156. package/dist/helpers/sliceContent.js.map +1 -1
  157. package/dist/helpers/sliceModel.d.ts +1 -1
  158. package/dist/helpers/sliceModel.d.ts.map +1 -1
  159. package/dist/helpers/sliceModel.js +1 -1
  160. package/dist/helpers/sliceModel.js.map +1 -1
  161. package/dist/helpers/traverseContent.d.ts +2 -3
  162. package/dist/helpers/traverseContent.d.ts.map +1 -1
  163. package/dist/helpers/traverseContent.js +6 -3
  164. package/dist/helpers/traverseContent.js.map +1 -1
  165. package/dist/helpers/traverseContentWithModel.d.ts +0 -1
  166. package/dist/helpers/traverseContentWithModel.d.ts.map +1 -1
  167. package/dist/helpers/traverseContentWithModel.js.map +1 -1
  168. package/dist/helpers/withDefaultContent.d.ts +1 -3
  169. package/dist/helpers/withDefaultContent.d.ts.map +1 -1
  170. package/dist/helpers/withDefaultContent.js +1 -1
  171. package/dist/helpers/withDefaultContent.js.map +1 -1
  172. package/dist/index.d.ts +10 -6
  173. package/dist/index.js +5 -2
  174. package/dist/io-ts.d.ts +349 -305
  175. package/dist/io-ts.d.ts.map +1 -1
  176. package/dist/io-ts.js +20 -18
  177. package/dist/io-ts.js.map +1 -1
  178. package/dist/model/boolean.d.ts +1 -2
  179. package/dist/model/boolean.d.ts.map +1 -1
  180. package/dist/model/boolean.js.map +1 -1
  181. package/dist/model/color.d.ts +1 -2
  182. package/dist/model/color.d.ts.map +1 -1
  183. package/dist/model/color.js.map +1 -1
  184. package/dist/model/customType.d.ts +7 -4
  185. package/dist/model/customType.d.ts.map +1 -1
  186. package/dist/model/customType.js +1 -1
  187. package/dist/model/customType.js.map +1 -1
  188. package/dist/model/date.d.ts +1 -2
  189. package/dist/model/date.d.ts.map +1 -1
  190. package/dist/model/date.js.map +1 -1
  191. package/dist/model/diff/changes.d.ts +21 -0
  192. package/dist/model/diff/changes.d.ts.map +1 -0
  193. package/dist/model/diff/changes.js +11 -0
  194. package/dist/model/diff/changes.js.map +1 -0
  195. package/dist/model/diff/sharedSlice.d.ts +14 -0
  196. package/dist/model/diff/sharedSlice.d.ts.map +1 -0
  197. package/dist/model/diff/sharedSlice.js +45 -0
  198. package/dist/model/diff/sharedSlice.js.map +1 -0
  199. package/dist/model/diff/utils.js +40 -0
  200. package/dist/model/diff/utils.js.map +1 -0
  201. package/dist/model/diff/variation.d.ts +15 -0
  202. package/dist/model/diff/variation.d.ts.map +1 -0
  203. package/dist/model/diff/variation.js +92 -0
  204. package/dist/model/diff/variation.js.map +1 -0
  205. package/dist/model/diff/widgets.d.ts +15 -0
  206. package/dist/model/diff/widgets.d.ts.map +1 -0
  207. package/dist/model/embed.d.ts +1 -2
  208. package/dist/model/embed.d.ts.map +1 -1
  209. package/dist/model/embed.js.map +1 -1
  210. package/dist/model/geopoint.d.ts +1 -2
  211. package/dist/model/geopoint.d.ts.map +1 -1
  212. package/dist/model/geopoint.js.map +1 -1
  213. package/dist/model/group.d.ts +7 -8
  214. package/dist/model/group.d.ts.map +1 -1
  215. package/dist/model/group.js +1 -1
  216. package/dist/model/group.js.map +1 -1
  217. package/dist/model/image.d.ts +1 -2
  218. package/dist/model/image.d.ts.map +1 -1
  219. package/dist/model/image.js +1 -1
  220. package/dist/model/image.js.map +1 -1
  221. package/dist/model/integrationField.d.ts +1 -2
  222. package/dist/model/integrationField.d.ts.map +1 -1
  223. package/dist/model/integrationField.js.map +1 -1
  224. package/dist/model/link.d.ts +28 -3
  225. package/dist/model/link.d.ts.map +1 -1
  226. package/dist/model/link.js +3 -3
  227. package/dist/model/link.js.map +1 -1
  228. package/dist/model/nestable.d.ts +0 -1
  229. package/dist/model/nestable.d.ts.map +1 -1
  230. package/dist/model/nestable.js +3 -3
  231. package/dist/model/nestable.js.map +1 -1
  232. package/dist/model/number.d.ts +1 -2
  233. package/dist/model/number.d.ts.map +1 -1
  234. package/dist/model/number.js.map +1 -1
  235. package/dist/model/range.d.ts +1 -2
  236. package/dist/model/range.d.ts.map +1 -1
  237. package/dist/model/range.js.map +1 -1
  238. package/dist/model/richText.d.ts +1 -2
  239. package/dist/model/richText.d.ts.map +1 -1
  240. package/dist/model/richText.js +1 -1
  241. package/dist/model/richText.js.map +1 -1
  242. package/dist/model/select.d.ts +1 -2
  243. package/dist/model/select.d.ts.map +1 -1
  244. package/dist/model/select.js.map +1 -1
  245. package/dist/model/separator.d.ts +1 -2
  246. package/dist/model/separator.d.ts.map +1 -1
  247. package/dist/model/separator.js.map +1 -1
  248. package/dist/model/slice.d.ts +44 -45
  249. package/dist/model/slice.d.ts.map +1 -1
  250. package/dist/model/slice.js +1 -1
  251. package/dist/model/slice.js.map +1 -1
  252. package/dist/model/slices.d.ts +1 -2
  253. package/dist/model/slices.d.ts.map +1 -1
  254. package/dist/model/slices.js +1 -1
  255. package/dist/model/slices.js.map +1 -1
  256. package/dist/model/table.d.ts +4 -3
  257. package/dist/model/table.d.ts.map +1 -1
  258. package/dist/model/table.js.map +1 -1
  259. package/dist/model/text.d.ts +1 -2
  260. package/dist/model/text.d.ts.map +1 -1
  261. package/dist/model/text.js.map +1 -1
  262. package/dist/model/timestamp.d.ts +1 -2
  263. package/dist/model/timestamp.d.ts.map +1 -1
  264. package/dist/model/timestamp.js.map +1 -1
  265. package/dist/model/uid.d.ts +1 -2
  266. package/dist/model/uid.d.ts.map +1 -1
  267. package/dist/model/uid.js.map +1 -1
  268. package/dist/model/widget.d.ts +23 -24
  269. package/dist/model/widget.d.ts.map +1 -1
  270. package/dist/model/widget.js +1 -1
  271. package/dist/model/widget.js.map +1 -1
  272. package/dist/zod4.d.ts +3399 -3354
  273. package/dist/zod4.d.ts.map +1 -1
  274. package/dist/zod4.js +20 -18
  275. package/dist/zod4.js.map +1 -1
  276. package/package.json +15 -13
  277. package/src/content/codec/group.ts +1 -1
  278. package/src/content/codec/legacyContentCtx.ts +7 -1
  279. package/src/helpers/customTypeModel.ts +6 -3
  280. package/src/helpers/documentContent.ts +21 -28
  281. package/src/helpers/sliceContent.ts +16 -0
  282. package/src/helpers/traverseContent.ts +8 -5
  283. package/src/index.ts +21 -3
  284. package/src/io-ts.ts +7 -1
  285. package/src/model/customType.ts +5 -0
  286. package/src/model/diff/changes.ts +4 -4
  287. package/src/model/diff/sharedSlice.ts +8 -8
  288. package/src/model/diff/variation.ts +6 -6
  289. package/src/model/diff/widgets.ts +3 -3
  290. package/src/model/image.ts +4 -1
  291. package/src/model/link.ts +4 -2
  292. package/src/zod4.ts +7 -1
@@ -1 +1 @@
1
- {"version":3,"file":"zod4.d.ts","names":[],"sources":["../src/zod4.ts"],"mappings":";;;;;;;;;;;;cA6Ga,WAAA,cAAW,aAAA;MAAyB,WAAA,CAAA,aAAA;;;;;;;;;;;;;;cACpC,WAAA,cAAW,aAAA;QAAyB,WAAA,CAAA,aAAA;;;;;;;;;;;;;cACpC,mBAAA,EAAoD,WAAA,CAAjC,aAAA;AAAA,cACnB,oBAAA,EAAsD,WAAA,CAAlC,aAAA;AAAA,cACpB,eAAA,EAA4C,WAAA,CAA7B,aAAA;AAAA,cAGf,oBAAA,cAAoB,aAAA;YAAkC,WAAA,CAAA,cAAA;;;cACtD,kBAAA,cAAkB,aAAA;QAAgC,WAAA,CAAA,cAAA;;;;cAClD,iBAAA,cAAiB,aAAA;QAA+B,WAAA,CAAA,cAAA;;;;cAChD,kBAAA,cAAkB,aAAA;QAAgC,WAAA,CAAA,aAAA;;;cAClD,qBAAA,cAAqB,aAAA;;SAAmC,WAAA,CAAA,aAAA;;;;;cACxD,uBAAA,cAAuB,aAAA;YAAqC,WAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;cAC5D,sBAAA,cAAsB,aAAA;YAAoC,WAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;cAC1D,iBAAA,cAAiB,aAAA;YAA+B,WAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;cAChD,mBAAA,cAAmB,aAAA;QAAiC,WAAA,CAAA,cAAA;;;;cACpD,kBAAA,cAAkB,aAAA;QAAgC,WAAA,CAAA,cAAA;;;;cAClD,mBAAA,cAAmB,aAAA;QAAiC,WAAA,CAAA,cAAA;;;;cACpD,sBAAA,cAAsB,aAAA;YAAoC,WAAA,CAAA,cAAA;AAAA;cAC1D,wBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACtB,4CAAuB,YAAvB,kDAAuB,kBAAA;cACvB,2CAAsB,YAAtB,iDAAsB,kBAAA;cACtB,4CAAuB,YAAvB,kDAAuB,kBAAA;cACvB,6CAAwB;;;;;;;;;0JAAxB,oEAAA;;;cACA,4CAAuB;;;;;;;;;0JAAvB,mEAAA;;;cACA,4CAAuB,YAAvB,kDAAuB,kBAAA;cACvB,6CAAwB,YAAxB,mDAAwB,kBAAA;cACxB,2CAAsB,0CAAA;;;;;;;;;;;;;;;;;;;;;;cACtB,mDAA8B,iCAAA,0CAAA,YAA9B,kDAA8B,kBAAA;cAC9B,oDAA+B,iCAAA,0CAAA,YAA/B,mDAA+B,kBAAA;cAC/B,gDAA2B,8CAAA;;;;6LAA3B;;;;;;;;;;;;;;;;;;;cACA,iDAA4B,8CAAA;;;;6LAA5B;;;;;;;;;;;;;;;;;;;;cAEA,0CAAqB,8CAAA;;;;6LAArB"}
package/dist/zod4.js CHANGED
@@ -3,10 +3,25 @@ import { ImageContentSchema as ImageContentSchema$1, ImageContentViewSchema as I
3
3
  import { NonEmptyStringSchema as NonEmptyStringSchema$1 } from "./common/nonEmptyString.js";
4
4
  import { EmptyLinkContentSchema as EmptyLinkContentSchema$1, FilledLinkContentSchema as FilledLinkContentSchema$1, LinkContentSchema as LinkContentSchema$1 } from "./content/link.js";
5
5
  import { RichTextContentBlockSchema as RichTextContentBlockSchema$1, RichTextContentSchema as RichTextContentSchema$1, RichTextContentSpanSchema as RichTextContentSpanSchema$1 } from "./content/richText.js";
6
+ import { WidgetKeySchema as WidgetKeySchema$1 } from "./common/widgetKey.js";
7
+ import { BooleanModelSchema as BooleanModelSchema$1 } from "./model/boolean.js";
8
+ import { ColorModelSchema as ColorModelSchema$1 } from "./model/color.js";
9
+ import { DateModelSchema as DateModelSchema$1 } from "./model/date.js";
10
+ import { EmbedModelSchema as EmbedModelSchema$1 } from "./model/embed.js";
11
+ import { GeoPointModelSchema as GeoPointModelSchema$1 } from "./model/geopoint.js";
6
12
  import { ImageModelSchema as ImageModelSchema$1 } from "./model/image.js";
13
+ import { IntegrationFieldModelSchema as IntegrationFieldModelSchema$1 } from "./model/integrationField.js";
14
+ import { LinkConfigCustomtypesSchema as LinkConfigCustomtypesSchema$1, LinkModelSchema as LinkModelSchema$1 } from "./model/link.js";
15
+ import { NumberModelSchema as NumberModelSchema$1 } from "./model/number.js";
16
+ import { RangeModelSchema as RangeModelSchema$1 } from "./model/range.js";
7
17
  import { RichTextModelSchema as RichTextModelSchema$1 } from "./model/richText.js";
18
+ import { SelectModelSchema as SelectModelSchema$1 } from "./model/select.js";
19
+ import { SeparatorModelSchema as SeparatorModelSchema$1 } from "./model/separator.js";
8
20
  import { TableModelSchema as TableModelSchema$1 } from "./model/table.js";
9
- import { WidgetKeySchema as WidgetKeySchema$1 } from "./common/widgetKey.js";
21
+ import { TextModelSchema as TextModelSchema$1 } from "./model/text.js";
22
+ import { TimestampModelSchema as TimestampModelSchema$1 } from "./model/timestamp.js";
23
+ import { NestableModelSchema as NestableModelSchema$1 } from "./model/nestable.js";
24
+ import { GroupModelSchema as GroupModelSchema$1, NestedGroupModelSchema as NestedGroupModelSchema$1 } from "./model/group.js";
10
25
  import { BooleanContentSchema as BooleanContentSchema$1 } from "./content/boolean.js";
11
26
  import { EmptyContentSchema as EmptyContentSchema$1 } from "./content/empty.js";
12
27
  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";
@@ -22,25 +37,10 @@ import { CompositeSliceItemContentSchema as CompositeSliceItemContentSchema$1, L
22
37
  import { UIDContentSchema as UIDContentSchema$1 } from "./content/uid.js";
23
38
  import { WidgetContentSchema as WidgetContentSchema$1 } from "./content/widget.js";
24
39
  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
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
41
  import { DynamicSlicesModelSchema as DynamicSlicesModelSchema$1, StaticSlicesModelSchema as StaticSlicesModelSchema$1 } from "./model/slices.js";
42
42
  import { UIDModelSchema as UIDModelSchema$1 } from "./model/uid.js";
43
- import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
43
+ import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, FieldOrSliceTypeSchema as FieldOrSliceTypeSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
44
44
  import { AssetSchema as AssetSchema$1 } from "./common/asset.js";
45
45
  import { EmbedSchema as EmbedSchema$1 } from "./common/embed.js";
46
46
  import { HexaColorCodeSchema as HexaColorCodeSchema$1 } from "./common/hexaColorCode.js";
@@ -98,6 +98,7 @@ const GeoPointModelSchema = toZod4(GeoPointModelSchema$1);
98
98
  const ImageModelSchema = toZod4(ImageModelSchema$1);
99
99
  const IntegrationFieldModelSchema = toZod4(IntegrationFieldModelSchema$1);
100
100
  const LinkModelSchema = toZod4(LinkModelSchema$1);
101
+ const LinkConfigCustomtypesSchema = toZod4(LinkConfigCustomtypesSchema$1);
101
102
  const NestableModelSchema = toZod4(NestableModelSchema$1);
102
103
  const NumberModelSchema = toZod4(NumberModelSchema$1);
103
104
  const RangeModelSchema = toZod4(RangeModelSchema$1);
@@ -122,6 +123,7 @@ const DynamicSlicesModelSchema = toZod4(DynamicSlicesModelSchema$1);
122
123
  const StaticSlicesModelSchema = toZod4(StaticSlicesModelSchema$1);
123
124
  const StaticWidgetModelSchema = toZod4(StaticWidgetModelSchema$1);
124
125
  const DynamicWidgetModelSchema = toZod4(DynamicWidgetModelSchema$1);
126
+ const FieldOrSliceTypeSchema = toZod4(FieldOrSliceTypeSchema$1);
125
127
  const StaticCustomTypeModelTabSchema = toZod4(StaticCustomTypeModelTabSchema$1);
126
128
  const DynamicCustomTypeModelTabSchema = toZod4(DynamicCustomTypeModelTabSchema$1);
127
129
  const StaticCustomTypeModelSchema = toZod4(StaticCustomTypeModelSchema$1);
@@ -132,6 +134,6 @@ function toZod4(type) {
132
134
  return type;
133
135
  }
134
136
  //#endregion
135
- export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, 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, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
137
+ export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FieldOrSliceTypeSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkConfigCustomtypesSchema, 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, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
136
138
 
137
139
  //# sourceMappingURL=zod4.js.map
package/dist/zod4.js.map CHANGED
@@ -1 +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","rawStaticCustomTypeModelTabSchema","rawDynamicCustomTypeModelTabSchema","rawStaticCustomTypeModelSchema","rawDynamicCustomTypeModelSchema"],"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\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\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 { 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 StaticCustomTypeModelTabSchema = toZod4(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toZod4(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toZod4(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GA,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,qBAAsB;AAC/D,MAAa,wBAAwB,OAAOC,wBAAyB;AACrE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,s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","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","rawLinkConfigCustomtypesSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawFieldOrSliceTypeSchema","rawStaticCustomTypeModelTabSchema","rawDynamicCustomTypeModelTabSchema","rawStaticCustomTypeModelSchema","rawDynamicCustomTypeModelSchema"],"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\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\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 {\n\tLinkModelSchema as rawLinkModelSchema,\n\tLinkConfigCustomtypesSchema as rawLinkConfigCustomtypesSchema,\n} 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 { 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\tFieldOrSliceTypeSchema as rawFieldOrSliceTypeSchema,\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 LinkConfigCustomtypesSchema = toZod4(rawLinkConfigCustomtypesSchema)\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 FieldOrSliceTypeSchema = toZod4(rawFieldOrSliceTypeSchema)\nexport const StaticCustomTypeModelTabSchema = toZod4(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toZod4(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toZod4(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA,MAAa,cAAc,OAAOA,aAAc;AAChD,MAAa,cAAc,OAAOC,aAAc;AAChD,MAAa,sBAAsB,OAAOC,qBAAsB;AAChE,MAAa,uBAAuB,OAAOC,sBAAuB;AAClE,MAAa,kBAAkB,OAAOC,iBAAkB;AAGxD,MAAa,uBAAuB,OAAOC,sBAAuB;AAClE,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2B,OAAOC,0BAA2B;AAC1E,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,2BAA2B,OAAOC,0BAA2B;AAC1E,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,iCAAiC,OAAOC,gCAAiC;AACtF,MAAa,kCAAkC,OAAOC,iCAAkC;AACxF,MAAa,8BAA8B,OAAOC,6BAA8B;AAChF,MAAa,+BAA+B,OAAOC,8BAA+B;;AAElF,MAAa,wBAAwB;AAErC,SAAS,OAAU,MAAY;CAC9B,OAAO;AACR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/types-internal",
3
- "version": "4.6.0",
3
+ "version": "4.7.0-canary.af0f4e3",
4
4
  "description": "TypeScript types and runtime parsers for Prismic data",
5
5
  "keywords": [
6
6
  "prismic",
@@ -55,19 +55,18 @@
55
55
  "test": "npm run lint && npm run types && npm run unit && npm run portability"
56
56
  },
57
57
  "devDependencies": {
58
- "@prismicio/e2e-tests-utils": "^1.16.0",
59
- "@prismicio/types-internal-v3": "npm:@prismicio/types-internal@^3.17.0",
58
+ "@prismicio/e2e-tests-utils": "^1.19.0",
59
+ "@prismicio/types-internal-v3": "npm:@prismicio/types-internal@^3.17.2",
60
60
  "@prismicio/types-internal-v4-1-0": "npm:@prismicio/types-internal@4.1.0",
61
- "@types/node": "^25.5.2",
62
- "@types/uuid": "^11.0.0",
63
- "@vitest/coverage-v8": "^4.1.3",
61
+ "@types/node": "^26.1.1",
62
+ "@vitest/coverage-v8": "^4.1.10",
64
63
  "io-ts": "^2.2.22",
65
- "oxfmt": "^0.44.0",
66
- "oxlint": "^1.59.0",
67
- "tsdown": "^0.21.7",
68
- "typescript": "^6.0.2",
69
- "vitest": "^4.1.3",
70
- "zod": "^4.3.6"
64
+ "oxfmt": "^0.59.0",
65
+ "oxlint": "^1.74.0",
66
+ "tsdown": "^0.22.8",
67
+ "typescript": "^7.0.2",
68
+ "vitest": "^4.1.10",
69
+ "zod": "^4.4.3"
71
70
  },
72
71
  "peerDependencies": {
73
72
  "io-ts": "^2.2.22",
@@ -79,6 +78,9 @@
79
78
  }
80
79
  },
81
80
  "engines": {
82
- "node": ">=20"
81
+ "node": ">=22"
82
+ },
83
+ "dependencies": {
84
+ "uuid": "^11.1.1"
83
85
  }
84
86
  }
@@ -63,7 +63,7 @@ export const GroupItemLegacyCodec = (
63
63
  }
64
64
 
65
65
  for (const [key, content] of input.value) {
66
- const itemCtx = getFieldCtx({ fieldKey: key, ctx })
66
+ const itemCtx = getFieldCtx({ fieldKey: key, ctx: groupItemCtx })
67
67
 
68
68
  const result = NestableAndGroupLegacyCodec(itemCtx).fromContent(content)
69
69
  if (result) {
@@ -1,7 +1,12 @@
1
+ import { v5 as uuidV5 } from "uuid"
1
2
  import type { z } from "zod/mini"
2
3
 
3
4
  import type { FieldOrSliceType } from "../../model/widget"
4
5
 
6
+ function uuidV5ForPath(path: string[]): string {
7
+ return uuidV5(JSON.stringify(path), uuidV5.URL)
8
+ }
9
+
5
10
  interface LegacyContentCtxParams {
6
11
  fieldKey: string
7
12
  contentKey?: string
@@ -47,7 +52,8 @@ export class LegacyContentCtx {
47
52
  this.keyOfType = `${prefixedKey}_TYPE`
48
53
  this.keyOfKey = `${prefixedContentKey}_KEY`
49
54
  this.fieldType = this.allTypes.get(this.prefixedKey)
50
- this.fieldContentKey = this.allKeys.get(prefixedContentKey) ?? crypto.randomUUID()
55
+ this.fieldContentKey =
56
+ this.allKeys.get(prefixedContentKey) ?? uuidV5ForPath([...this.contentPath, this.contentKey])
51
57
  }
52
58
 
53
59
  withContentKey(contentKey: string): LegacyContentCtx {
@@ -1,6 +1,7 @@
1
1
  import type {
2
2
  DynamicCustomTypeModel,
3
3
  DynamicCustomTypeModelTab,
4
+ FlattenedStaticCustomTypeModel,
4
5
  StaticCustomTypeModel,
5
6
  StaticCustomTypeModelTab,
6
7
  } from "../model/customType"
@@ -85,16 +86,18 @@ export function toDynamic(customType: StaticCustomTypeModel): DynamicCustomTypeM
85
86
 
86
87
  export function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab
87
88
  export function flatten(customType: DynamicCustomTypeModel): DynamicCustomTypeModelTab
88
- export function flatten(customType: StaticCustomTypeModel | DynamicCustomTypeModel): StaticCustomTypeModelTab | DynamicCustomTypeModelTab {
89
+ export function flatten(
90
+ customType: StaticCustomTypeModel | DynamicCustomTypeModel,
91
+ ): StaticCustomTypeModelTab | DynamicCustomTypeModelTab {
89
92
  return Object.values(customType.json).reduce((acc, fields) => ({ ...acc, ...fields }), {})
90
93
  }
91
94
 
92
95
  export function collectSharedSlices(
93
- customType: StaticCustomTypeModel,
96
+ customType: StaticCustomTypeModel | FlattenedStaticCustomTypeModel,
94
97
  ): Record<string, SharedSliceModel> {
95
98
  const sharedSlices: Record<string, SharedSliceModel> = {}
96
99
 
97
- const flattened = flatten(customType)
100
+ const flattened = "fields" in customType ? customType.fields : flatten(customType)
98
101
  for (const widget of Object.values(flattened)) {
99
102
  if (widget.type === "Slices" || widget.type === "Choice") {
100
103
  for (const [id, model] of Object.entries(widget.config?.choices || {})) {
@@ -5,10 +5,8 @@ import { defaultCtx } from "../content/codec/legacyContentCtx"
5
5
  import type { DocumentContent } from "../content/document"
6
6
  import type { DocumentLegacy } from "../content/legacy/document"
7
7
  import { DocumentLegacySchema } from "../content/legacy/document"
8
- import { isNestableContent } from "../content/nestable"
9
- import type { CompositeSliceItemContent, LegacySliceItemContent } from "../content/slices"
10
8
  import type { WidgetContent } from "../content/widget"
11
- import type { StaticCustomTypeModel } from "../model/customType"
9
+ import type { FlattenedStaticCustomTypeModel, StaticCustomTypeModel } from "../model/customType"
12
10
  import type { FieldOrSliceType } from "../model/widget"
13
11
  import { FieldOrSliceTypeSchema } from "../model/widget"
14
12
  import * as contentPath from "./contentPath"
@@ -42,6 +40,24 @@ export function collectWidgets<TWidgetContent extends WidgetContent>(
42
40
  return collected
43
41
  }
44
42
 
43
+ export function migrateDocument(
44
+ document: DocumentContent,
45
+ model: StaticCustomTypeModel | FlattenedStaticCustomTypeModel,
46
+ ): DocumentContent {
47
+ const needsMigration = Object.values(customTypeModel.collectSharedSlices(model)).some((slice) =>
48
+ Boolean(slice.legacyPaths),
49
+ )
50
+
51
+ if (needsMigration) {
52
+ return traverseDocumentContent(document, {
53
+ model,
54
+ transformSlice: sliceContent.migrateSliceItem,
55
+ })
56
+ }
57
+
58
+ return document
59
+ }
60
+
45
61
  export function fromLegacy(
46
62
  legacy: DocumentLegacy,
47
63
  model: StaticCustomTypeModel,
@@ -61,7 +77,7 @@ export function fromLegacy(
61
77
  types.set(key.substring(0, key.length - 5), parsed.data)
62
78
  }
63
79
  } else if (key.endsWith("_KEY")) {
64
- const parsed = z.uuidv4().safeParse(value)
80
+ const parsed = z.union([z.uuidv4(), z.uuid({ version: "v5" })]).safeParse(value)
65
81
  if (parsed.success) {
66
82
  keys.set(key.substring(0, key.length - 4), parsed.data)
67
83
  }
@@ -75,30 +91,7 @@ export function fromLegacy(
75
91
  return
76
92
  }
77
93
 
78
- const needsMigration = Object.values(customTypeModel.collectSharedSlices(model)).some((slice) =>
79
- Boolean(slice.legacyPaths),
80
- )
81
-
82
- if (needsMigration) {
83
- return traverseDocumentContent(result.data, {
84
- model,
85
- transformSlice: ({ content, model }) => {
86
- if (model?.type === "SharedSlice") {
87
- if (content.widget.__TYPE__ === "CompositeSliceContent") {
88
- return sliceContent.compositeToShared(content as CompositeSliceItemContent, model)
89
- } else if (
90
- content.widget.__TYPE__ === "GroupContentType" ||
91
- isNestableContent(content.widget)
92
- ) {
93
- return sliceContent.legacyToShared(content as LegacySliceItemContent, model)
94
- }
95
- }
96
- return content
97
- },
98
- })
99
- }
100
-
101
- return result.data
94
+ return migrateDocument(result.data, model)
102
95
  }
103
96
 
104
97
  export function toLegacy(document: DocumentContent): DocumentLegacy {
@@ -1,4 +1,5 @@
1
1
  import type { GroupItemContent } from "../content/group"
2
+ import { isNestableContent } from "../content/nestable"
2
3
  import type { SharedSliceContent } from "../content/slice"
3
4
  import type {
4
5
  CompositeSliceItemContent,
@@ -6,6 +7,21 @@ import type {
6
7
  SharedSliceItemContent,
7
8
  } from "../content/slices"
8
9
  import type { SharedSliceVariationContentModel } from "../model/slice"
10
+ import type { TraverseSliceContentFunction } from "./traverseContent"
11
+
12
+ export const migrateSliceItem: TraverseSliceContentFunction = ({ content, model }) => {
13
+ if (model?.type === "SharedSlice") {
14
+ if (content.widget.__TYPE__ === "CompositeSliceContent") {
15
+ return compositeToShared(content as CompositeSliceItemContent, model)
16
+ } else if (
17
+ content.widget.__TYPE__ === "GroupContentType" ||
18
+ isNestableContent(content.widget)
19
+ ) {
20
+ return legacyToShared(content as LegacySliceItemContent, model)
21
+ }
22
+ }
23
+ return content
24
+ }
9
25
 
10
26
  export const legacyToShared = (
11
27
  content: LegacySliceItemContent,
@@ -17,7 +17,7 @@ import {
17
17
  } from "../content/slices"
18
18
  import { TableContentType, type TableContent } from "../content/table"
19
19
  import type { WidgetContent } from "../content/widget"
20
- import type { StaticCustomTypeModel } from "../model/customType"
20
+ import type { FlattenedStaticCustomTypeModel, StaticCustomTypeModel } from "../model/customType"
21
21
  import type { GroupModel, NestedGroupModel } from "../model/group"
22
22
  import type { LinkModel } from "../model/link"
23
23
  import type { NestableModel } from "../model/nestable"
@@ -36,7 +36,7 @@ import * as contentPath from "./contentPath"
36
36
  import * as customTypeModel from "./customTypeModel"
37
37
 
38
38
  type TraverseDocumentContentConfig = {
39
- model?: StaticCustomTypeModel
39
+ model?: StaticCustomTypeModel | FlattenedStaticCustomTypeModel
40
40
  transformWidget?: TraverseWidgetContentFunction
41
41
  transformSlice?: TraverseSliceContentFunction
42
42
  }
@@ -48,17 +48,20 @@ export function traverseDocumentContent(
48
48
  const { model, transformWidget, transformSlice } = config
49
49
 
50
50
  // Remove tabs from custom type model
51
- const flatModel = model ? customTypeModel.flatten(model) : {}
51
+ const flatModel =
52
+ model && !("fields" in model)
53
+ ? { customTypeId: model.id, fields: customTypeModel.flatten(model) }
54
+ : model
52
55
 
53
56
  const traversed: DocumentContent = {}
54
57
  for (const [key, content] of Object.entries(document)) {
55
58
  const path = contentPath.make(
56
- { key: config.model?.id, type: "CustomType" },
59
+ { key: flatModel?.customTypeId, type: "CustomType" },
57
60
  { key, type: "Widget" },
58
61
  )
59
62
 
60
63
  const traversedContent = traverseWidgetContent(path, key, key, content, {
61
- model: flatModel[key],
64
+ model: flatModel?.fields[key],
62
65
  transformWidget,
63
66
  transformSlice,
64
67
  })
package/src/index.ts CHANGED
@@ -64,14 +64,27 @@ export type {
64
64
  CustomTypeModel,
65
65
  StaticCustomTypeModelTab,
66
66
  DynamicCustomTypeModelTab,
67
+ FlattenedStaticCustomTypeModel,
67
68
  } from "./model/customType"
68
69
  export type { DateModel } from "./model/date"
70
+ export type { AddedDiff, RemovedDiff, UpdatedDiff, Diff } from "./model/diff/changes"
71
+ export { DiffOperation } from "./model/diff/changes"
72
+ export type { SliceDiffMetadata, SliceDiff } from "./model/diff/sharedSlice"
73
+ export { SliceDiffComparator } from "./model/diff/sharedSlice"
74
+ export type { VariationDiffMetadata, VariationDiff } from "./model/diff/variation"
75
+ export { VariationDiffComparator } from "./model/diff/variation"
76
+ export type {
77
+ NestableWidgetDiff,
78
+ GroupWidgetWithFieldsDiff,
79
+ GroupWidgetDiff,
80
+ SlicePrimaryWidgetDiff,
81
+ } from "./model/diff/widgets"
69
82
  export type { EmbedModel } from "./model/embed"
70
83
  export type { GeoPointModel } from "./model/geopoint"
71
84
  export type { GroupModel, NestedGroupModel } from "./model/group"
72
85
  export type { ImageModel } from "./model/image"
73
86
  export type { IntegrationFieldModel } from "./model/integrationField"
74
- export type { LinkModel } from "./model/link"
87
+ export type { LinkModel, LinkConfigCustomtypes } from "./model/link"
75
88
  export type { NestableModel } from "./model/nestable"
76
89
  export type { NumberModel } from "./model/number"
77
90
  export type { RangeModel } from "./model/range"
@@ -93,11 +106,16 @@ export type {
93
106
  } from "./model/slice"
94
107
  export type { DynamicSlicesModel, StaticSlicesModel } from "./model/slices"
95
108
  export type { TableModel } from "./model/table"
96
- export { TableCellModelNodeTypes } from "./model/table"
109
+ export { TableCellModel, TableCellModelNodeTypes } from "./model/table"
97
110
  export type { TextModel } from "./model/text"
98
111
  export type { TimestampModel } from "./model/timestamp"
99
112
  export type { UIDModel } from "./model/uid"
100
- export type { StaticWidgetModel, DynamicWidgetModel, FieldModelType } from "./model/widget"
113
+ export type {
114
+ StaticWidgetModel,
115
+ DynamicWidgetModel,
116
+ FieldModelType,
117
+ FieldOrSliceType,
118
+ } from "./model/widget"
101
119
 
102
120
  // Legacy
103
121
  export { LegacyContentCtx, getFieldCtx, defaultCtx } from "./content/codec/legacyContentCtx"
package/src/io-ts.ts CHANGED
@@ -112,7 +112,10 @@ import {
112
112
  } from "./model/group"
113
113
  import { ImageModelSchema as rawImageModelSchema } from "./model/image"
114
114
  import { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from "./model/integrationField"
115
- import { LinkModelSchema as rawLinkModelSchema } from "./model/link"
115
+ import {
116
+ LinkModelSchema as rawLinkModelSchema,
117
+ LinkConfigCustomtypesSchema as rawLinkConfigCustomtypesSchema,
118
+ } from "./model/link"
116
119
  import { NestableModelSchema as rawNestableModelSchema } from "./model/nestable"
117
120
  import { NumberModelSchema as rawNumberModelSchema } from "./model/number"
118
121
  import { RangeModelSchema as rawRangeModelSchema } from "./model/range"
@@ -140,6 +143,7 @@ import { UIDModelSchema as rawUIDModelSchema } from "./model/uid"
140
143
  import {
141
144
  StaticWidgetModelSchema as rawStaticWidgetModelSchema,
142
145
  DynamicWidgetModelSchema as rawDynamicWidgetModelSchema,
146
+ FieldOrSliceTypeSchema as rawFieldOrSliceTypeSchema,
143
147
  } from "./model/widget"
144
148
 
145
149
  // Common
@@ -231,6 +235,7 @@ export const GeoPointModelSchema = toIOTS(rawGeoPointModelSchema)
231
235
  export const ImageModelSchema = toIOTS(rawImageModelSchema)
232
236
  export const IntegrationFieldModelSchema = toIOTS(rawIntegrationFieldModelSchema)
233
237
  export const LinkModelSchema = toIOTS(rawLinkModelSchema)
238
+ export const LinkConfigCustomtypesSchema = toIOTS(rawLinkConfigCustomtypesSchema)
234
239
  export const NestableModelSchema = toIOTS(rawNestableModelSchema)
235
240
  export const NumberModelSchema = toIOTS(rawNumberModelSchema)
236
241
  export const RangeModelSchema = toIOTS(rawRangeModelSchema)
@@ -255,6 +260,7 @@ export const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)
255
260
  export const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)
256
261
  export const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)
257
262
  export const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)
263
+ export const FieldOrSliceTypeSchema = toIOTS(rawFieldOrSliceTypeSchema)
258
264
  export const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)
259
265
  export const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)
260
266
  export const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)
@@ -78,6 +78,11 @@ const createCustomTypeSchema = <
78
78
  export const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)
79
79
  export type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>
80
80
 
81
+ export type FlattenedStaticCustomTypeModel = {
82
+ customTypeId: string
83
+ fields: StaticCustomTypeModelTab
84
+ }
85
+
81
86
  export const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)
82
87
  export type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>
83
88
 
@@ -4,18 +4,18 @@ export enum DiffOperation {
4
4
  Updated = "updated",
5
5
  }
6
6
 
7
- export type AddChange<A> = {
7
+ export type AddedDiff<A> = {
8
8
  op: DiffOperation.Added
9
9
  value: A
10
10
  }
11
11
 
12
- export type RemovedChange = {
12
+ export type RemovedDiff = {
13
13
  op: DiffOperation.Removed
14
14
  }
15
15
 
16
- export type UpdatedChange<A> = {
16
+ export type UpdatedDiff<A> = {
17
17
  op: DiffOperation.Updated
18
18
  value: A
19
19
  }
20
20
 
21
- export type DiffChange<A, U> = AddChange<A> | UpdatedChange<U> | RemovedChange
21
+ export type Diff<A, U> = AddedDiff<A> | UpdatedDiff<U> | RemovedDiff