@prismicio/types-internal 4.6.0 → 4.7.0-pr.28.255f9f9

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 (279) 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 +6 -4
  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.map +1 -1
  32. package/dist/content/codec/link.js.map +1 -1
  33. package/dist/content/codec/nestable.js.map +1 -1
  34. package/dist/content/codec/repeatable.js.map +1 -1
  35. package/dist/content/codec/richText.js.map +1 -1
  36. package/dist/content/codec/separator.js.map +1 -1
  37. package/dist/content/codec/slice.js.map +1 -1
  38. package/dist/content/codec/slices.js.map +1 -1
  39. package/dist/content/codec/table.js.map +1 -1
  40. package/dist/content/codec/uid.js.map +1 -1
  41. package/dist/content/codec/widget.js.map +1 -1
  42. package/dist/content/document.d.ts +1 -2
  43. package/dist/content/document.d.ts.map +1 -1
  44. package/dist/content/document.js.map +1 -1
  45. package/dist/content/embed.d.ts +1 -2
  46. package/dist/content/embed.d.ts.map +1 -1
  47. package/dist/content/embed.js.map +1 -1
  48. package/dist/content/empty.d.ts +1 -2
  49. package/dist/content/empty.d.ts.map +1 -1
  50. package/dist/content/empty.js.map +1 -1
  51. package/dist/content/field.d.ts +1 -2
  52. package/dist/content/field.d.ts.map +1 -1
  53. package/dist/content/field.js.map +1 -1
  54. package/dist/content/geopoint.d.ts +1 -2
  55. package/dist/content/geopoint.d.ts.map +1 -1
  56. package/dist/content/geopoint.js.map +1 -1
  57. package/dist/content/group.d.ts +3 -2
  58. package/dist/content/group.d.ts.map +1 -1
  59. package/dist/content/group.js.map +1 -1
  60. package/dist/content/image.d.ts +1 -2
  61. package/dist/content/image.d.ts.map +1 -1
  62. package/dist/content/image.js.map +1 -1
  63. package/dist/content/integrationField.d.ts +1 -2
  64. package/dist/content/integrationField.d.ts.map +1 -1
  65. package/dist/content/integrationField.js.map +1 -1
  66. package/dist/content/legacy/boolean.js.map +1 -1
  67. package/dist/content/legacy/document.d.ts +1 -2
  68. package/dist/content/legacy/document.d.ts.map +1 -1
  69. package/dist/content/legacy/document.js.map +1 -1
  70. package/dist/content/legacy/embed.js.map +1 -1
  71. package/dist/content/legacy/empty.js.map +1 -1
  72. package/dist/content/legacy/field.js.map +1 -1
  73. package/dist/content/legacy/geopoint.js.map +1 -1
  74. package/dist/content/legacy/group.d.ts +2 -2
  75. package/dist/content/legacy/group.d.ts.map +1 -1
  76. package/dist/content/legacy/group.js.map +1 -1
  77. package/dist/content/legacy/image.d.ts +0 -1
  78. package/dist/content/legacy/image.d.ts.map +1 -1
  79. package/dist/content/legacy/image.js.map +1 -1
  80. package/dist/content/legacy/integrationField.js.map +1 -1
  81. package/dist/content/legacy/link.d.ts +1 -2
  82. package/dist/content/legacy/link.d.ts.map +1 -1
  83. package/dist/content/legacy/link.js.map +1 -1
  84. package/dist/content/legacy/nestable.d.ts +12 -0
  85. package/dist/content/legacy/nestable.js.map +1 -1
  86. package/dist/content/legacy/repeatable.js.map +1 -1
  87. package/dist/content/legacy/richText.d.ts +5 -2
  88. package/dist/content/legacy/richText.d.ts.map +1 -1
  89. package/dist/content/legacy/richText.js.map +1 -1
  90. package/dist/content/legacy/separator.js.map +1 -1
  91. package/dist/content/legacy/slice.js +1 -1
  92. package/dist/content/legacy/slice.js.map +1 -1
  93. package/dist/content/legacy/slices.js.map +1 -1
  94. package/dist/content/legacy/table.d.ts +2 -0
  95. package/dist/content/legacy/table.js.map +1 -1
  96. package/dist/content/legacy/uid.js.map +1 -1
  97. package/dist/content/link.d.ts +7 -8
  98. package/dist/content/link.d.ts.map +1 -1
  99. package/dist/content/link.js.map +1 -1
  100. package/dist/content/nestable.d.ts +0 -1
  101. package/dist/content/nestable.d.ts.map +1 -1
  102. package/dist/content/nestable.js.map +1 -1
  103. package/dist/content/repeatable.d.ts +3 -4
  104. package/dist/content/repeatable.d.ts.map +1 -1
  105. package/dist/content/repeatable.js.map +1 -1
  106. package/dist/content/richText.d.ts +2 -3
  107. package/dist/content/richText.d.ts.map +1 -1
  108. package/dist/content/richText.js +2 -2
  109. package/dist/content/richText.js.map +1 -1
  110. package/dist/content/separator.d.ts +1 -2
  111. package/dist/content/separator.d.ts.map +1 -1
  112. package/dist/content/separator.js.map +1 -1
  113. package/dist/content/slice.d.ts +13 -14
  114. package/dist/content/slice.d.ts.map +1 -1
  115. package/dist/content/slice.js.map +1 -1
  116. package/dist/content/slices.d.ts +13 -14
  117. package/dist/content/slices.d.ts.map +1 -1
  118. package/dist/content/slices.js.map +1 -1
  119. package/dist/content/table.d.ts +1 -2
  120. package/dist/content/table.d.ts.map +1 -1
  121. package/dist/content/table.js.map +1 -1
  122. package/dist/content/uid.d.ts +1 -2
  123. package/dist/content/uid.d.ts.map +1 -1
  124. package/dist/content/uid.js.map +1 -1
  125. package/dist/content/widget.d.ts +0 -1
  126. package/dist/content/widget.d.ts.map +1 -1
  127. package/dist/content/widget.js.map +1 -1
  128. package/dist/helpers/contentPath.d.ts +1 -1
  129. package/dist/helpers/contentPath.d.ts.map +1 -1
  130. package/dist/helpers/contentPath.js +1 -1
  131. package/dist/helpers/contentPath.js.map +1 -1
  132. package/dist/helpers/customTypeModel.d.ts +1 -3
  133. package/dist/helpers/customTypeModel.d.ts.map +1 -1
  134. package/dist/helpers/customTypeModel.js +1 -1
  135. package/dist/helpers/customTypeModel.js.map +1 -1
  136. package/dist/helpers/documentContent.d.ts +1 -3
  137. package/dist/helpers/documentContent.d.ts.map +1 -1
  138. package/dist/helpers/documentContent.js +1 -1
  139. package/dist/helpers/documentContent.js.map +1 -1
  140. package/dist/helpers/fieldModel.d.ts +1 -1
  141. package/dist/helpers/fieldModel.d.ts.map +1 -1
  142. package/dist/helpers/fieldModel.js +1 -1
  143. package/dist/helpers/fieldModel.js.map +1 -1
  144. package/dist/helpers/imageContent.d.ts +2 -6
  145. package/dist/helpers/imageContent.d.ts.map +1 -1
  146. package/dist/helpers/imageContent.js +1 -1
  147. package/dist/helpers/imageContent.js.map +1 -1
  148. package/dist/helpers/repository.d.ts +1 -1
  149. package/dist/helpers/repository.d.ts.map +1 -1
  150. package/dist/helpers/repository.js +1 -1
  151. package/dist/helpers/repository.js.map +1 -1
  152. package/dist/helpers/sliceContent.d.ts +1 -3
  153. package/dist/helpers/sliceContent.d.ts.map +1 -1
  154. package/dist/helpers/sliceContent.js.map +1 -1
  155. package/dist/helpers/sliceModel.d.ts +1 -1
  156. package/dist/helpers/sliceModel.d.ts.map +1 -1
  157. package/dist/helpers/sliceModel.js +1 -1
  158. package/dist/helpers/sliceModel.js.map +1 -1
  159. package/dist/helpers/traverseContent.d.ts +0 -1
  160. package/dist/helpers/traverseContent.d.ts.map +1 -1
  161. package/dist/helpers/traverseContent.js.map +1 -1
  162. package/dist/helpers/traverseContentWithModel.d.ts +0 -1
  163. package/dist/helpers/traverseContentWithModel.d.ts.map +1 -1
  164. package/dist/helpers/traverseContentWithModel.js.map +1 -1
  165. package/dist/helpers/withDefaultContent.d.ts +1 -3
  166. package/dist/helpers/withDefaultContent.d.ts.map +1 -1
  167. package/dist/helpers/withDefaultContent.js +1 -1
  168. package/dist/helpers/withDefaultContent.js.map +1 -1
  169. package/dist/index.d.ts +5 -1
  170. package/dist/index.js +4 -1
  171. package/dist/io-ts.d.ts +434 -440
  172. package/dist/io-ts.d.ts.map +1 -1
  173. package/dist/io-ts.js +16 -16
  174. package/dist/io-ts.js.map +1 -1
  175. package/dist/model/boolean.d.ts +1 -2
  176. package/dist/model/boolean.d.ts.map +1 -1
  177. package/dist/model/boolean.js.map +1 -1
  178. package/dist/model/color.d.ts +1 -2
  179. package/dist/model/color.d.ts.map +1 -1
  180. package/dist/model/color.js.map +1 -1
  181. package/dist/model/customType.d.ts +3 -4
  182. package/dist/model/customType.d.ts.map +1 -1
  183. package/dist/model/customType.js +1 -1
  184. package/dist/model/customType.js.map +1 -1
  185. package/dist/model/date.d.ts +1 -2
  186. package/dist/model/date.d.ts.map +1 -1
  187. package/dist/model/date.js.map +1 -1
  188. package/dist/model/diff/changes.d.ts +21 -0
  189. package/dist/model/diff/changes.d.ts.map +1 -0
  190. package/dist/model/diff/changes.js +11 -0
  191. package/dist/model/diff/changes.js.map +1 -0
  192. package/dist/model/diff/sharedSlice.d.ts +14 -0
  193. package/dist/model/diff/sharedSlice.d.ts.map +1 -0
  194. package/dist/model/diff/sharedSlice.js +45 -0
  195. package/dist/model/diff/sharedSlice.js.map +1 -0
  196. package/dist/model/diff/utils.js +40 -0
  197. package/dist/model/diff/utils.js.map +1 -0
  198. package/dist/model/diff/variation.d.ts +15 -0
  199. package/dist/model/diff/variation.d.ts.map +1 -0
  200. package/dist/model/diff/variation.js +92 -0
  201. package/dist/model/diff/variation.js.map +1 -0
  202. package/dist/model/diff/widgets.d.ts +15 -0
  203. package/dist/model/diff/widgets.d.ts.map +1 -0
  204. package/dist/model/embed.d.ts +1 -2
  205. package/dist/model/embed.d.ts.map +1 -1
  206. package/dist/model/embed.js.map +1 -1
  207. package/dist/model/geopoint.d.ts +1 -2
  208. package/dist/model/geopoint.d.ts.map +1 -1
  209. package/dist/model/geopoint.js.map +1 -1
  210. package/dist/model/group.d.ts +39 -40
  211. package/dist/model/group.d.ts.map +1 -1
  212. package/dist/model/group.js +1 -1
  213. package/dist/model/group.js.map +1 -1
  214. package/dist/model/image.d.ts +1 -2
  215. package/dist/model/image.d.ts.map +1 -1
  216. package/dist/model/image.js +1 -1
  217. package/dist/model/image.js.map +1 -1
  218. package/dist/model/integrationField.d.ts +1 -2
  219. package/dist/model/integrationField.d.ts.map +1 -1
  220. package/dist/model/integrationField.js.map +1 -1
  221. package/dist/model/link.d.ts +2 -3
  222. package/dist/model/link.d.ts.map +1 -1
  223. package/dist/model/link.js.map +1 -1
  224. package/dist/model/nestable.d.ts +0 -1
  225. package/dist/model/nestable.d.ts.map +1 -1
  226. package/dist/model/nestable.js +3 -3
  227. package/dist/model/nestable.js.map +1 -1
  228. package/dist/model/number.d.ts +1 -2
  229. package/dist/model/number.d.ts.map +1 -1
  230. package/dist/model/number.js.map +1 -1
  231. package/dist/model/range.d.ts +1 -2
  232. package/dist/model/range.d.ts.map +1 -1
  233. package/dist/model/range.js.map +1 -1
  234. package/dist/model/richText.d.ts +1 -2
  235. package/dist/model/richText.d.ts.map +1 -1
  236. package/dist/model/richText.js +1 -1
  237. package/dist/model/richText.js.map +1 -1
  238. package/dist/model/select.d.ts +1 -2
  239. package/dist/model/select.d.ts.map +1 -1
  240. package/dist/model/select.js.map +1 -1
  241. package/dist/model/separator.d.ts +1 -2
  242. package/dist/model/separator.d.ts.map +1 -1
  243. package/dist/model/separator.js.map +1 -1
  244. package/dist/model/slice.d.ts +44 -45
  245. package/dist/model/slice.d.ts.map +1 -1
  246. package/dist/model/slice.js +1 -1
  247. package/dist/model/slice.js.map +1 -1
  248. package/dist/model/slices.d.ts +1 -2
  249. package/dist/model/slices.d.ts.map +1 -1
  250. package/dist/model/slices.js +1 -1
  251. package/dist/model/slices.js.map +1 -1
  252. package/dist/model/table.d.ts +3 -3
  253. package/dist/model/table.d.ts.map +1 -1
  254. package/dist/model/table.js.map +1 -1
  255. package/dist/model/text.d.ts +1 -2
  256. package/dist/model/text.d.ts.map +1 -1
  257. package/dist/model/text.js.map +1 -1
  258. package/dist/model/timestamp.d.ts +1 -2
  259. package/dist/model/timestamp.d.ts.map +1 -1
  260. package/dist/model/timestamp.js.map +1 -1
  261. package/dist/model/uid.d.ts +1 -2
  262. package/dist/model/uid.d.ts.map +1 -1
  263. package/dist/model/uid.js.map +1 -1
  264. package/dist/model/widget.d.ts +23 -24
  265. package/dist/model/widget.d.ts.map +1 -1
  266. package/dist/model/widget.js +1 -1
  267. package/dist/model/widget.js.map +1 -1
  268. package/dist/zod4.d.ts +3351 -3353
  269. package/dist/zod4.d.ts.map +1 -1
  270. package/dist/zod4.js +16 -16
  271. package/dist/zod4.js.map +1 -1
  272. package/package.json +12 -13
  273. package/src/helpers/customTypeModel.ts +3 -1
  274. package/src/index.ts +12 -0
  275. package/src/model/diff/changes.ts +4 -4
  276. package/src/model/diff/sharedSlice.ts +8 -8
  277. package/src/model/diff/variation.ts +6 -6
  278. package/src/model/diff/widgets.ts +3 -3
  279. package/src/model/image.ts +4 -1
@@ -1 +1 @@
1
- {"version":3,"file":"io-ts.d.ts","names":[],"sources":["../src/io-ts.ts"],"mappings":";;;;;;;;;;;;;;;cAiJa,WAAA,EAAW,CAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,WAAA,EAAW,CAAA,CAAA,IAAA;;;;;;;;;;;;;;;;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eAA/B,qBAA+B,eAAA;cAC/B,6BAA2B,EAAA;;;;sCAA3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACA,8BAA4B,EAAA;;;;sCAA5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEA,uBAAqB,EAAA;;;;sCAArB"}
package/dist/io-ts.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 { 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";
@@ -41,21 +56,6 @@ import { SliceItemLegacyCodec, SlicesLegacyCodec } from "./content/codec/slices.
41
56
  import { UIDLegacyCodec } from "./content/codec/uid.js";
42
57
  import { WidgetLegacyCodec } from "./content/codec/widget.js";
43
58
  import { DocumentLegacyCodec } from "./content/codec/document.js";
44
- import { BooleanModelSchema as BooleanModelSchema$1 } from "./model/boolean.js";
45
- import { ColorModelSchema as ColorModelSchema$1 } from "./model/color.js";
46
- import { DateModelSchema as DateModelSchema$1 } from "./model/date.js";
47
- import { EmbedModelSchema as EmbedModelSchema$1 } from "./model/embed.js";
48
- import { GeoPointModelSchema as GeoPointModelSchema$1 } from "./model/geopoint.js";
49
- import { IntegrationFieldModelSchema as IntegrationFieldModelSchema$1 } from "./model/integrationField.js";
50
- import { LinkModelSchema as LinkModelSchema$1 } from "./model/link.js";
51
- import { NumberModelSchema as NumberModelSchema$1 } from "./model/number.js";
52
- import { RangeModelSchema as RangeModelSchema$1 } from "./model/range.js";
53
- import { SelectModelSchema as SelectModelSchema$1 } from "./model/select.js";
54
- import { SeparatorModelSchema as SeparatorModelSchema$1 } from "./model/separator.js";
55
- import { TextModelSchema as TextModelSchema$1 } from "./model/text.js";
56
- import { TimestampModelSchema as TimestampModelSchema$1 } from "./model/timestamp.js";
57
- import { NestableModelSchema as NestableModelSchema$1 } from "./model/nestable.js";
58
- import { GroupModelSchema as GroupModelSchema$1, NestedGroupModelSchema as NestedGroupModelSchema$1 } from "./model/group.js";
59
59
  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";
60
60
  import { DynamicSlicesModelSchema as DynamicSlicesModelSchema$1, StaticSlicesModelSchema as StaticSlicesModelSchema$1 } from "./model/slices.js";
61
61
  import { UIDModelSchema as UIDModelSchema$1 } from "./model/uid.js";
package/dist/io-ts.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"io-ts.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/io-ts.ts"],"sourcesContent":["import * as t from \"io-ts\"\nimport type { ZodMiniType } from \"zod/mini\"\n\n// 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 { BooleanLegacyCodec } from \"./content/codec/boolean\"\nimport { DocumentLegacyCodec } from \"./content/codec/document\"\nimport { EmbedLegacyCodec } from \"./content/codec/embed\"\nimport { EmptyLegacyCodec } from \"./content/codec/empty\"\nimport {\n\tColorLegacyCodec,\n\tDateLegacyCodec,\n\tNumberLegacyCodec,\n\tRangeLegacyCodec,\n\tSelectLegacyCodec,\n\tTextLegacyCodec,\n\tTimestampLegacyCodec,\n} from \"./content/codec/field\"\nimport { GeoPointLegacyCodec } from \"./content/codec/geopoint\"\nimport { GroupItemLegacyCodec, GroupLegacyCodec } from \"./content/codec/group\"\nimport { ImageLegacyCodec } from \"./content/codec/image\"\nimport { IntegrationFieldLegacyCodec } from \"./content/codec/integrationField\"\nimport type { LegacyCodec } from \"./content/codec/legacyContentCtx\"\nimport { LinkLegacyCodec } from \"./content/codec/link\"\nimport { NestableLegacyCodec } from \"./content/codec/nestable\"\nimport { RepeatableLegacyCodec } from \"./content/codec/repeatable\"\nimport { RichTextLegacyCodec } from \"./content/codec/richText\"\nimport { SeparatorLegacyCodec } from \"./content/codec/separator\"\nimport {\n\tCompositeSliceLegacyCodec,\n\tSharedSliceLegacyCodec,\n\tLegacySliceLegacyCodec,\n\tSliceLegacyCodec,\n} from \"./content/codec/slice\"\nimport { SliceItemLegacyCodec, SlicesLegacyCodec } from \"./content/codec/slices\"\nimport { TableLegacyCodec } from \"./content/codec/table\"\nimport { UIDLegacyCodec } from \"./content/codec/uid\"\nimport { WidgetLegacyCodec } from \"./content/codec/widget\"\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\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\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 = toIOTS(rawAssetSchema)\nexport const EmbedSchema = toIOTS(rawEmbedSchema)\nexport const HexaColorCodeSchema = toIOTS(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toIOTS(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toIOTS(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toIOTS(rawBooleanContentSchema)\nexport const ColorContentSchema = toIOTS(rawColorContentSchema)\nexport const DateContentSchema = toIOTS(rawDateContentSchema)\nexport const EmptyContentSchema = toIOTS(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toIOTS(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toIOTS(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toIOTS(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toIOTS(rawLinkContentSchema)\nexport const NumberContentSchema = toIOTS(rawNumberContentSchema)\nexport const RangeContentSchema = toIOTS(rawRangeContentSchema)\nexport const SelectContentSchema = toIOTS(rawSelectContentSchema)\nexport const SeparatorContentSchema = toIOTS(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toIOTS(rawSharedSliceContentSchema)\nexport const TextContentSchema = toIOTS(rawTextContentSchema)\nexport const TimestampContentSchema = toIOTS(rawTimestampContentSchema)\nexport const FieldContentSchema = toIOTS(rawFieldContentSchema)\nexport const UIDContentSchema = toIOTS(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toIOTS(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toIOTS(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toIOTS(rawImageContentViewSchema)\nexport const ImageContentSchema = toIOTS(rawImageContentSchema)\nexport const RichTextContentSchema = toIOTS(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toIOTS(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toIOTS(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toIOTS(rawTableContentSchema)\nexport const RepeatableContentSchema = toIOTS(rawRepeatableContentSchema)\nexport const NestableContentSchema = toIOTS(rawNestableContentSchema)\nexport const GroupContentSchema = toIOTS(rawGroupContentSchema)\nexport const GroupItemContentSchema = toIOTS(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toIOTS(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toIOTS(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toIOTS(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toIOTS(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toIOTS(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toIOTS(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toIOTS(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toIOTS(rawSlicesContentSchema)\nexport const WidgetContentSchema = toIOTS(rawWidgetContentSchema)\nexport const DocumentContentSchema = toIOTS(rawDocumentContentSchema)\n\n// Content legacy\nexport const BooleanLegacy = toIOTSCodec(BooleanLegacyCodec)\nexport const EmptyLegacy = toIOTSCodec(EmptyLegacyCodec)\nexport const TextLegacy = toIOTSCodec(TextLegacyCodec)\nexport const ColorLegacy = toIOTSCodec(ColorLegacyCodec)\nexport const DateLegacy = toIOTSCodec(DateLegacyCodec)\nexport const TimestampLegacy = toIOTSCodec(TimestampLegacyCodec)\nexport const NumberLegacy = toIOTSCodec(NumberLegacyCodec)\nexport const RangeLegacy = toIOTSCodec(RangeLegacyCodec)\nexport const SelectLegacy = toIOTSCodec(SelectLegacyCodec)\nexport const GeoPointLegacy = toIOTSCodec(GeoPointLegacyCodec)\nexport const EmbedLegacy = toIOTSCodec(EmbedLegacyCodec)\nexport const ImageLegacy = toIOTSCodec(ImageLegacyCodec)\nexport const LinkLegacy = toIOTSCodec(LinkLegacyCodec)\nexport const RepeatableLegacy = toIOTSCodec(RepeatableLegacyCodec)\nexport const RichTextLegacy = toIOTSCodec(RichTextLegacyCodec)\nexport const SeparatorLegacy = toIOTSCodec(SeparatorLegacyCodec)\nexport const IntegrationFieldLegacy = toIOTSCodec(IntegrationFieldLegacyCodec)\nexport const TableLegacy = toIOTSCodec(TableLegacyCodec)\nexport const NestableLegacy = toIOTSCodec(NestableLegacyCodec)\nexport const UIDLegacy = toIOTSCodec(UIDLegacyCodec)\nexport const GroupItemLegacy = toIOTSCodec(GroupItemLegacyCodec)\nexport const GroupLegacy = toIOTSCodec(GroupLegacyCodec)\nexport const LegacySliceLegacy = toIOTSCodec(LegacySliceLegacyCodec)\nexport const CompositeSliceLegacy = toIOTSCodec(CompositeSliceLegacyCodec)\nexport const SharedSliceLegacy = toIOTSCodec(SharedSliceLegacyCodec)\nexport const SliceLegacy = toIOTSCodec(SliceLegacyCodec)\nexport const SliceItemLegacy = toIOTSCodec(SliceItemLegacyCodec)\nexport const SlicesLegacy = toIOTSCodec(SlicesLegacyCodec)\nexport const WidgetLegacy = toIOTSCodec(WidgetLegacyCodec)\nexport const DocumentLegacy = toIOTSCodec(DocumentLegacyCodec)\n\n// Model\nexport const BooleanModelSchema = toIOTS(rawBooleanModelSchema)\nexport const ColorModelSchema = toIOTS(rawColorModelSchema)\nexport const DateModelSchema = toIOTS(rawDateModelSchema)\nexport const EmbedModelSchema = toIOTS(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toIOTS(rawGeoPointModelSchema)\nexport const ImageModelSchema = toIOTS(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toIOTS(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toIOTS(rawLinkModelSchema)\nexport const NestableModelSchema = toIOTS(rawNestableModelSchema)\nexport const NumberModelSchema = toIOTS(rawNumberModelSchema)\nexport const RangeModelSchema = toIOTS(rawRangeModelSchema)\nexport const RichTextModelSchema = toIOTS(rawRichTextModelSchema)\nexport const SelectModelSchema = toIOTS(rawSelectModelSchema)\nexport const SeparatorModelSchema = toIOTS(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toIOTS(rawSharedSliceModelSchema)\nexport const TableModelSchema = toIOTS(rawTableModelSchema)\nexport const TextModelSchema = toIOTS(rawTextModelSchema)\nexport const TimestampModelSchema = toIOTS(rawTimestampModelSchema)\nexport const UIDModelSchema = toIOTS(rawUIDModelSchema)\nexport const GroupModelSchema = toIOTS(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toIOTS(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toIOTS(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toIOTS(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toIOTS(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toIOTS(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toIOTS(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toIOTS(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toIOTS(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)\nexport const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toIOTS(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toIOTS<T>(type: ZodMiniType<T>): t.Type<T> {\n\treturn new t.Type<T>(\n\t\t\"Type\",\n\t\t(input): input is T => type.safeParse(input).success,\n\t\t(input, context) => {\n\t\t\tconst result = type.safeParse(input)\n\t\t\treturn result.success\n\t\t\t\t? t.success(result.data)\n\t\t\t\t: t.failure(\n\t\t\t\t\t\tinput,\n\t\t\t\t\t\tcontext,\n\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t)\n\t\t},\n\t\tt.identity,\n\t)\n}\n\nfunction toIOTSCodec<TArgs extends unknown[], A, LegacyRaw, AllowUndefined extends boolean>(\n\tcodecFactory: (...args: TArgs) => LegacyCodec<A, LegacyRaw, AllowUndefined>,\n): (\n\t...args: TArgs\n) => t.Type<A, ReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>, unknown> {\n\treturn (...args: TArgs) => {\n\t\tconst codec = codecFactory(...args)\n\t\treturn new t.Type<\n\t\t\tA,\n\t\t\tReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>,\n\t\t\tunknown\n\t\t>(\n\t\t\tcodec.name,\n\t\t\tcodec.is,\n\t\t\t(input, context) => {\n\t\t\t\tconst result = codec.toContent(input)\n\t\t\t\treturn result.success\n\t\t\t\t\t? t.success(result.data)\n\t\t\t\t\t: t.failure(\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t\t)\n\t\t\t},\n\t\t\tcodec.fromContent,\n\t\t)\n\t}\n}\n\ninterface ZodIssue {\n\tcode: string\n\tmessage: string\n\tpath?: PropertyKey[]\n\texpected?: string\n\tvalues?: unknown[]\n\tkeys?: string[]\n}\n\nfunction resolveValue(input: unknown, path: PropertyKey[]): unknown {\n\tlet current = input\n\tfor (const key of path) {\n\t\tif (current == null || typeof current !== \"object\") return undefined\n\t\tcurrent = (current as Record<PropertyKey, unknown>)[key]\n\t}\n\treturn current\n}\n\nfunction formatValue(value: unknown): string {\n\tif (value === null) return \"null\"\n\tif (value === undefined) return \"undefined\"\n\tif (typeof value === \"string\") return JSON.stringify(value)\n\treturn String(value)\n}\n\nfunction formatIssue(issue: ZodIssue, input: unknown): string {\n\tif (issue.code === \"custom\" && issue.message !== \"Invalid input\") {\n\t\treturn issue.message\n\t}\n\n\tconst value = resolveValue(input, issue.path ?? [])\n\tconst pathStr = issue.path?.length ? issue.path.join(\".\") : undefined\n\n\tif (issue.code === \"invalid_value\" && issue.values) {\n\t\tconst expected = issue.values.map(formatValue).join(\", \")\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${expected}`\n\t}\n\n\tif (issue.code === \"invalid_type\" && issue.expected) {\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${issue.expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${issue.expected}`\n\t}\n\n\tif (issue.code === \"unrecognized_keys\" && issue.keys) {\n\t\treturn `Unrecognized key(s): ${issue.keys.join(\", \")}`\n\t}\n\n\treturn issue.message\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiJA,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,uBA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,CAAC;CACnD,MAAM,UAAU,MAAM,MAAM,SAAS,MAAM,KAAK,KAAK,IAAI,GAAG,KAAA;AAE5D,KAAI,MAAM,SAAS,mBAAmB,MAAM,QAAQ;EACnD,MAAM,WAAW,MAAM,OAAO,IAAI,YAAY,CAAC,KAAK,KAAK;AACzD,SAAO,UACJ,iBAAiB,YAAY,MAAM,CAAC,OAAO,QAAQ,aAAa,aAChE,iBAAiB,YAAY,MAAM,CAAC,aAAa;;AAGrD,KAAI,MAAM,SAAS,kBAAkB,MAAM,SAC1C,QAAO,UACJ,iBAAiB,YAAY,MAAM,CAAC,OAAO,QAAQ,aAAa,MAAM,aACtE,iBAAiB,YAAY,MAAM,CAAC,aAAa,MAAM;AAG3D,KAAI,MAAM,SAAS,uBAAuB,MAAM,KAC/C,QAAO,wBAAwB,MAAM,KAAK,KAAK,KAAK;AAGrD,QAAO,MAAM"}
1
+ {"version":3,"file":"io-ts.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/io-ts.ts"],"sourcesContent":["import * as t from \"io-ts\"\nimport type { ZodMiniType } from \"zod/mini\"\n\n// 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 { BooleanLegacyCodec } from \"./content/codec/boolean\"\nimport { DocumentLegacyCodec } from \"./content/codec/document\"\nimport { EmbedLegacyCodec } from \"./content/codec/embed\"\nimport { EmptyLegacyCodec } from \"./content/codec/empty\"\nimport {\n\tColorLegacyCodec,\n\tDateLegacyCodec,\n\tNumberLegacyCodec,\n\tRangeLegacyCodec,\n\tSelectLegacyCodec,\n\tTextLegacyCodec,\n\tTimestampLegacyCodec,\n} from \"./content/codec/field\"\nimport { GeoPointLegacyCodec } from \"./content/codec/geopoint\"\nimport { GroupItemLegacyCodec, GroupLegacyCodec } from \"./content/codec/group\"\nimport { ImageLegacyCodec } from \"./content/codec/image\"\nimport { IntegrationFieldLegacyCodec } from \"./content/codec/integrationField\"\nimport type { LegacyCodec } from \"./content/codec/legacyContentCtx\"\nimport { LinkLegacyCodec } from \"./content/codec/link\"\nimport { NestableLegacyCodec } from \"./content/codec/nestable\"\nimport { RepeatableLegacyCodec } from \"./content/codec/repeatable\"\nimport { RichTextLegacyCodec } from \"./content/codec/richText\"\nimport { SeparatorLegacyCodec } from \"./content/codec/separator\"\nimport {\n\tCompositeSliceLegacyCodec,\n\tSharedSliceLegacyCodec,\n\tLegacySliceLegacyCodec,\n\tSliceLegacyCodec,\n} from \"./content/codec/slice\"\nimport { SliceItemLegacyCodec, SlicesLegacyCodec } from \"./content/codec/slices\"\nimport { TableLegacyCodec } from \"./content/codec/table\"\nimport { UIDLegacyCodec } from \"./content/codec/uid\"\nimport { WidgetLegacyCodec } from \"./content/codec/widget\"\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\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\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 = toIOTS(rawAssetSchema)\nexport const EmbedSchema = toIOTS(rawEmbedSchema)\nexport const HexaColorCodeSchema = toIOTS(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toIOTS(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toIOTS(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toIOTS(rawBooleanContentSchema)\nexport const ColorContentSchema = toIOTS(rawColorContentSchema)\nexport const DateContentSchema = toIOTS(rawDateContentSchema)\nexport const EmptyContentSchema = toIOTS(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toIOTS(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toIOTS(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toIOTS(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toIOTS(rawLinkContentSchema)\nexport const NumberContentSchema = toIOTS(rawNumberContentSchema)\nexport const RangeContentSchema = toIOTS(rawRangeContentSchema)\nexport const SelectContentSchema = toIOTS(rawSelectContentSchema)\nexport const SeparatorContentSchema = toIOTS(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toIOTS(rawSharedSliceContentSchema)\nexport const TextContentSchema = toIOTS(rawTextContentSchema)\nexport const TimestampContentSchema = toIOTS(rawTimestampContentSchema)\nexport const FieldContentSchema = toIOTS(rawFieldContentSchema)\nexport const UIDContentSchema = toIOTS(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toIOTS(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toIOTS(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toIOTS(rawImageContentViewSchema)\nexport const ImageContentSchema = toIOTS(rawImageContentSchema)\nexport const RichTextContentSchema = toIOTS(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toIOTS(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toIOTS(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toIOTS(rawTableContentSchema)\nexport const RepeatableContentSchema = toIOTS(rawRepeatableContentSchema)\nexport const NestableContentSchema = toIOTS(rawNestableContentSchema)\nexport const GroupContentSchema = toIOTS(rawGroupContentSchema)\nexport const GroupItemContentSchema = toIOTS(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toIOTS(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toIOTS(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toIOTS(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toIOTS(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toIOTS(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toIOTS(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toIOTS(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toIOTS(rawSlicesContentSchema)\nexport const WidgetContentSchema = toIOTS(rawWidgetContentSchema)\nexport const DocumentContentSchema = toIOTS(rawDocumentContentSchema)\n\n// Content legacy\nexport const BooleanLegacy = toIOTSCodec(BooleanLegacyCodec)\nexport const EmptyLegacy = toIOTSCodec(EmptyLegacyCodec)\nexport const TextLegacy = toIOTSCodec(TextLegacyCodec)\nexport const ColorLegacy = toIOTSCodec(ColorLegacyCodec)\nexport const DateLegacy = toIOTSCodec(DateLegacyCodec)\nexport const TimestampLegacy = toIOTSCodec(TimestampLegacyCodec)\nexport const NumberLegacy = toIOTSCodec(NumberLegacyCodec)\nexport const RangeLegacy = toIOTSCodec(RangeLegacyCodec)\nexport const SelectLegacy = toIOTSCodec(SelectLegacyCodec)\nexport const GeoPointLegacy = toIOTSCodec(GeoPointLegacyCodec)\nexport const EmbedLegacy = toIOTSCodec(EmbedLegacyCodec)\nexport const ImageLegacy = toIOTSCodec(ImageLegacyCodec)\nexport const LinkLegacy = toIOTSCodec(LinkLegacyCodec)\nexport const RepeatableLegacy = toIOTSCodec(RepeatableLegacyCodec)\nexport const RichTextLegacy = toIOTSCodec(RichTextLegacyCodec)\nexport const SeparatorLegacy = toIOTSCodec(SeparatorLegacyCodec)\nexport const IntegrationFieldLegacy = toIOTSCodec(IntegrationFieldLegacyCodec)\nexport const TableLegacy = toIOTSCodec(TableLegacyCodec)\nexport const NestableLegacy = toIOTSCodec(NestableLegacyCodec)\nexport const UIDLegacy = toIOTSCodec(UIDLegacyCodec)\nexport const GroupItemLegacy = toIOTSCodec(GroupItemLegacyCodec)\nexport const GroupLegacy = toIOTSCodec(GroupLegacyCodec)\nexport const LegacySliceLegacy = toIOTSCodec(LegacySliceLegacyCodec)\nexport const CompositeSliceLegacy = toIOTSCodec(CompositeSliceLegacyCodec)\nexport const SharedSliceLegacy = toIOTSCodec(SharedSliceLegacyCodec)\nexport const SliceLegacy = toIOTSCodec(SliceLegacyCodec)\nexport const SliceItemLegacy = toIOTSCodec(SliceItemLegacyCodec)\nexport const SlicesLegacy = toIOTSCodec(SlicesLegacyCodec)\nexport const WidgetLegacy = toIOTSCodec(WidgetLegacyCodec)\nexport const DocumentLegacy = toIOTSCodec(DocumentLegacyCodec)\n\n// Model\nexport const BooleanModelSchema = toIOTS(rawBooleanModelSchema)\nexport const ColorModelSchema = toIOTS(rawColorModelSchema)\nexport const DateModelSchema = toIOTS(rawDateModelSchema)\nexport const EmbedModelSchema = toIOTS(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toIOTS(rawGeoPointModelSchema)\nexport const ImageModelSchema = toIOTS(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toIOTS(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toIOTS(rawLinkModelSchema)\nexport const NestableModelSchema = toIOTS(rawNestableModelSchema)\nexport const NumberModelSchema = toIOTS(rawNumberModelSchema)\nexport const RangeModelSchema = toIOTS(rawRangeModelSchema)\nexport const RichTextModelSchema = toIOTS(rawRichTextModelSchema)\nexport const SelectModelSchema = toIOTS(rawSelectModelSchema)\nexport const SeparatorModelSchema = toIOTS(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toIOTS(rawSharedSliceModelSchema)\nexport const TableModelSchema = toIOTS(rawTableModelSchema)\nexport const TextModelSchema = toIOTS(rawTextModelSchema)\nexport const TimestampModelSchema = toIOTS(rawTimestampModelSchema)\nexport const UIDModelSchema = toIOTS(rawUIDModelSchema)\nexport const GroupModelSchema = toIOTS(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toIOTS(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toIOTS(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toIOTS(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toIOTS(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toIOTS(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toIOTS(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toIOTS(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toIOTS(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)\nexport const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toIOTS(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toIOTS<T>(type: ZodMiniType<T>): t.Type<T> {\n\treturn new t.Type<T>(\n\t\t\"Type\",\n\t\t(input): input is T => type.safeParse(input).success,\n\t\t(input, context) => {\n\t\t\tconst result = type.safeParse(input)\n\t\t\treturn result.success\n\t\t\t\t? t.success(result.data)\n\t\t\t\t: t.failure(\n\t\t\t\t\t\tinput,\n\t\t\t\t\t\tcontext,\n\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t)\n\t\t},\n\t\tt.identity,\n\t)\n}\n\nfunction toIOTSCodec<TArgs extends unknown[], A, LegacyRaw, AllowUndefined extends boolean>(\n\tcodecFactory: (...args: TArgs) => LegacyCodec<A, LegacyRaw, AllowUndefined>,\n): (\n\t...args: TArgs\n) => t.Type<A, ReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>, unknown> {\n\treturn (...args: TArgs) => {\n\t\tconst codec = codecFactory(...args)\n\t\treturn new t.Type<\n\t\t\tA,\n\t\t\tReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>,\n\t\t\tunknown\n\t\t>(\n\t\t\tcodec.name,\n\t\t\tcodec.is,\n\t\t\t(input, context) => {\n\t\t\t\tconst result = codec.toContent(input)\n\t\t\t\treturn result.success\n\t\t\t\t\t? t.success(result.data)\n\t\t\t\t\t: t.failure(\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t\t)\n\t\t\t},\n\t\t\tcodec.fromContent,\n\t\t)\n\t}\n}\n\ninterface ZodIssue {\n\tcode: string\n\tmessage: string\n\tpath?: PropertyKey[]\n\texpected?: string\n\tvalues?: unknown[]\n\tkeys?: string[]\n}\n\nfunction resolveValue(input: unknown, path: PropertyKey[]): unknown {\n\tlet current = input\n\tfor (const key of path) {\n\t\tif (current == null || typeof current !== \"object\") return undefined\n\t\tcurrent = (current as Record<PropertyKey, unknown>)[key]\n\t}\n\treturn current\n}\n\nfunction formatValue(value: unknown): string {\n\tif (value === null) return \"null\"\n\tif (value === undefined) return \"undefined\"\n\tif (typeof value === \"string\") return JSON.stringify(value)\n\treturn String(value)\n}\n\nfunction formatIssue(issue: ZodIssue, input: unknown): string {\n\tif (issue.code === \"custom\" && issue.message !== \"Invalid input\") {\n\t\treturn issue.message\n\t}\n\n\tconst value = resolveValue(input, issue.path ?? [])\n\tconst pathStr = issue.path?.length ? issue.path.join(\".\") : undefined\n\n\tif (issue.code === \"invalid_value\" && issue.values) {\n\t\tconst expected = issue.values.map(formatValue).join(\", \")\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${expected}`\n\t}\n\n\tif (issue.code === \"invalid_type\" && issue.expected) {\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${issue.expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${issue.expected}`\n\t}\n\n\tif (issue.code === \"unrecognized_keys\" && issue.keys) {\n\t\treturn `Unrecognized key(s): ${issue.keys.join(\", \")}`\n\t}\n\n\treturn issue.message\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiJA,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,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,oBAAoB,OAAOC,mBAAoB;AAC5D,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,wBAAwB,OAAOC,uBAAwB;AACpE,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,yBA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AAC,CAAC,KAAK,IAAI;EACxD,OAAO,UACJ,iBAAiB,YAAY,KAAK,EAAE,OAAO,QAAQ,aAAa,aAChE,iBAAiB,YAAY,KAAK,EAAE,aAAa;CACrD;CAEA,IAAI,MAAM,SAAS,kBAAkB,MAAM,UAC1C,OAAO,UACJ,iBAAiB,YAAY,KAAK,EAAE,OAAO,QAAQ,aAAa,MAAM,aACtE,iBAAiB,YAAY,KAAK,EAAE,aAAa,MAAM;CAG3D,IAAI,MAAM,SAAS,uBAAuB,MAAM,MAC/C,OAAO,wBAAwB,MAAM,KAAK,KAAK,IAAI;CAGpD,OAAO,MAAM;AACd"}
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/mini";
2
-
3
2
  //#region src/model/boolean.d.ts
4
3
  declare const BooleanModelSchema: z.ZodMiniObject<{
5
4
  type: z.ZodMiniLiteral<"Boolean">;
@@ -12,5 +11,5 @@ declare const BooleanModelSchema: z.ZodMiniObject<{
12
11
  }, z.core.$strip>;
13
12
  type BooleanModel = z.infer<typeof BooleanModelSchema>;
14
13
  //#endregion
15
- export { BooleanModel };
14
+ export { BooleanModel, BooleanModelSchema };
16
15
  //# sourceMappingURL=boolean.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"boolean.d.ts","names":[],"sources":["../../src/model/boolean.ts"],"mappings":";;;cASa,kBAAA,EAAkB,CAAA,CAAA,aAAA;;;;;;;;;KAKnB,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA"}
1
+ {"version":3,"file":"boolean.d.ts","names":[],"sources":["../../src/model/boolean.ts"],"mappings":";;cASa,oBAAkB,EAAA;;;;;;;;;KAKnB,eAAe,EAAE,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"boolean.js","names":[],"sources":["../../src/model/boolean.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst BooleanConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tdefault_value: z.optional(z.boolean()),\n\tplaceholder_true: z.optional(z.string()),\n\tplaceholder_false: z.optional(z.string()),\n})\n\nexport const BooleanModelSchema = z.object({\n\ttype: z.literal(\"Boolean\"),\n\tconfig: z.optional(BooleanConfigSchema),\n})\n\nexport type BooleanModel = z.infer<typeof BooleanModelSchema>\n"],"mappings":";;AAEA,MAAM,sBAAsB,EAAE,OAAO;CACpC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,eAAe,EAAE,SAAS,EAAE,SAAS,CAAC;CACtC,kBAAkB,EAAE,SAAS,EAAE,QAAQ,CAAC;CACxC,mBAAmB,EAAE,SAAS,EAAE,QAAQ,CAAC;CACzC,CAAC;AAEF,MAAa,qBAAqB,EAAE,OAAO;CAC1C,MAAM,EAAE,QAAQ,UAAU;CAC1B,QAAQ,EAAE,SAAS,oBAAoB;CACvC,CAAC"}
1
+ {"version":3,"file":"boolean.js","names":[],"sources":["../../src/model/boolean.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst BooleanConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tdefault_value: z.optional(z.boolean()),\n\tplaceholder_true: z.optional(z.string()),\n\tplaceholder_false: z.optional(z.string()),\n})\n\nexport const BooleanModelSchema = z.object({\n\ttype: z.literal(\"Boolean\"),\n\tconfig: z.optional(BooleanConfigSchema),\n})\n\nexport type BooleanModel = z.infer<typeof BooleanModelSchema>\n"],"mappings":";;AAEA,MAAM,sBAAsB,EAAE,OAAO;CACpC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC3B,eAAe,EAAE,SAAS,EAAE,QAAQ,CAAC;CACrC,kBAAkB,EAAE,SAAS,EAAE,OAAO,CAAC;CACvC,mBAAmB,EAAE,SAAS,EAAE,OAAO,CAAC;AACzC,CAAC;AAED,MAAa,qBAAqB,EAAE,OAAO;CAC1C,MAAM,EAAE,QAAQ,SAAS;CACzB,QAAQ,EAAE,SAAS,mBAAmB;AACvC,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/mini";
2
-
3
2
  //#region src/model/color.d.ts
4
3
  declare const ColorModelSchema: z.ZodMiniObject<{
5
4
  type: z.ZodMiniLiteral<"Color">;
@@ -11,5 +10,5 @@ declare const ColorModelSchema: z.ZodMiniObject<{
11
10
  }, z.core.$strip>;
12
11
  type ColorModel = z.infer<typeof ColorModelSchema>;
13
12
  //#endregion
14
- export { ColorModel };
13
+ export { ColorModel, ColorModelSchema };
15
14
  //# sourceMappingURL=color.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","names":[],"sources":["../../src/model/color.ts"],"mappings":";;;cAOa,gBAAA,EAAgB,CAAA,CAAA,aAAA;;;;;;;;KAMjB,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA"}
1
+ {"version":3,"file":"color.d.ts","names":[],"sources":["../../src/model/color.ts"],"mappings":";;cAOa,kBAAgB,EAAA;;;;;;;;KAMjB,aAAa,EAAE,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"color.js","names":[],"sources":["../../src/model/color.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst ColorConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n})\n\nexport const ColorModelSchema = z.object({\n\ttype: z.literal(\"Color\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(ColorConfigSchema),\n})\n\nexport type ColorModel = z.infer<typeof ColorModelSchema>\n"],"mappings":";;AAEA,MAAM,oBAAoB,EAAE,OAAO;CAClC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnC,CAAC;AAEF,MAAa,mBAAmB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,QAAQ;CACxB,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC/B,QAAQ,EAAE,SAAS,kBAAkB;CACrC,CAAC"}
1
+ {"version":3,"file":"color.js","names":[],"sources":["../../src/model/color.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst ColorConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n})\n\nexport const ColorModelSchema = z.object({\n\ttype: z.literal(\"Color\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(ColorConfigSchema),\n})\n\nexport type ColorModel = z.infer<typeof ColorModelSchema>\n"],"mappings":";;AAEA,MAAM,oBAAoB,EAAE,OAAO;CAClC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC3B,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;AACnC,CAAC;AAED,MAAa,mBAAmB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,OAAO;CACvB,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC9B,QAAQ,EAAE,SAAS,iBAAiB;AACrC,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { DynamicWidgetModel, StaticWidgetModel } from "./widget.js";
2
2
  import { z } from "zod/mini";
3
-
4
3
  //#region src/model/customType.d.ts
5
4
  declare const StaticCustomTypeModelTabSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<StaticWidgetModel, unknown, z.core.$ZodTypeInternals<StaticWidgetModel, unknown>>>;
6
5
  type StaticCustomTypeModelTab = z.infer<typeof StaticCustomTypeModelTabSchema>;
@@ -18,7 +17,6 @@ declare const StaticCustomTypeModelSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMin
18
17
  }>>;
19
18
  schema: z.ZodMiniOptional<z.ZodMiniUndefined>;
20
19
  }, z.core.$strip>, z.ZodMiniObject<{
21
- schema: z.ZodMiniLiteral<"@prismicio/types-internal@4.5.0">;
22
20
  id: z.ZodMiniString<string>;
23
21
  label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
24
22
  repeatable: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
@@ -28,6 +26,7 @@ declare const StaticCustomTypeModelSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMin
28
26
  custom: "custom";
29
27
  page: "page";
30
28
  }>>;
29
+ schema: z.ZodMiniLiteral<"@prismicio/types-internal@4.5.0">;
31
30
  }, z.core.$strip>], "schema">;
32
31
  type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>;
33
32
  declare const DynamicCustomTypeModelSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
@@ -42,7 +41,6 @@ declare const DynamicCustomTypeModelSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMi
42
41
  }>>;
43
42
  schema: z.ZodMiniOptional<z.ZodMiniUndefined>;
44
43
  }, z.core.$strip>, z.ZodMiniObject<{
45
- schema: z.ZodMiniLiteral<"@prismicio/types-internal@4.5.0">;
46
44
  id: z.ZodMiniString<string>;
47
45
  label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
48
46
  repeatable: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
@@ -52,10 +50,11 @@ declare const DynamicCustomTypeModelSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMi
52
50
  custom: "custom";
53
51
  page: "page";
54
52
  }>>;
53
+ schema: z.ZodMiniLiteral<"@prismicio/types-internal@4.5.0">;
55
54
  }, z.core.$strip>], "schema">;
56
55
  type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>;
57
56
  /** @deprecated Use DynamicCustomTypeModel instead */
58
57
  type CustomTypeModel = DynamicCustomTypeModel;
59
58
  //#endregion
60
- export { CustomTypeModel, DynamicCustomTypeModel, DynamicCustomTypeModelTab, StaticCustomTypeModel, StaticCustomTypeModelTab };
59
+ export { CustomTypeModel, DynamicCustomTypeModel, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTab, DynamicCustomTypeModelTabSchema, StaticCustomTypeModel, StaticCustomTypeModelSchema, StaticCustomTypeModelTab, StaticCustomTypeModelTabSchema };
61
60
  //# sourceMappingURL=customType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customType.d.ts","names":[],"sources":["../../src/model/customType.ts"],"mappings":";;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,aAAA,CAAA,CAAA,CAAA,aAAA,UAAA,CAAA,CAAA,WAAA,CAAA,iBAAA,WAAA,CAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,KAC/B,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,8BAAA;AAAA,cAEzC,+BAAA,EAA+B,CAAA,CAAA,aAAA,CAAA,CAAA,CAAA,aAAA,UAAA,CAAA,CAAA,WAAA,CAAA,kBAAA,WAAA,CAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,KAChC,yBAAA,GAA4B,CAAA,CAAE,KAAA,QAAa,+BAAA;AAAA,cAmE1C,2BAAA,EAA2B,CAAA,CAAA,yBAAA,EAAA,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;KAC5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAEtC,4BAAA,EAA4B,CAAA,CAAA,yBAAA,EAAA,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;KAC7B,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,4BAAA;;KAKxC,eAAA,GAAkB,sBAAA"}
1
+ {"version":3,"file":"customType.d.ts","names":[],"sources":["../../src/model/customType.ts"],"mappings":";;;cAMa,gCAA8B,EAAA,cAAA,EAAA,uBAAA,EAAA,YAAA,4BAAA,EAAA,KAAA,kBAAA;KAC/B,2BAA2B,EAAE,aAAa;cAEzC,iCAA+B,EAAA,cAAA,EAAA,uBAAA,EAAA,YAAA,6BAAA,EAAA,KAAA,kBAAA;KAChC,4BAA4B,EAAE,aAAa;cAmE1C,6BAA2B,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;KAC5B,wBAAwB,EAAE,aAAa;cAEtC,8BAA4B,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;KAC7B,yBAAyB,EAAE,aAAa;;KAKxC,kBAAkB"}
@@ -53,6 +53,6 @@ const createCustomTypeSchema = (sectionSchema) => {
53
53
  const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema);
54
54
  const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema);
55
55
  //#endregion
56
- export { DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema };
56
+ export { CustomTypeFormatSchema, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema };
57
57
 
58
58
  //# sourceMappingURL=customType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"customType.js","names":[],"sources":["../../src/model/customType.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport { DynamicWidgetModelSchema, StaticWidgetModelSchema } from \"./widget\"\n\n// Tab\nexport const StaticCustomTypeModelTabSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema)\nexport type StaticCustomTypeModelTab = z.infer<typeof StaticCustomTypeModelTabSchema>\n\nexport const DynamicCustomTypeModelTabSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema)\nexport type DynamicCustomTypeModelTab = z.infer<typeof DynamicCustomTypeModelTabSchema>\n\n// Custom types\nexport const CustomTypeFormatSchema = z.enum([\"page\", \"custom\"])\nexport type CustomTypeFormat = z.infer<typeof CustomTypeFormatSchema>\n\n// Factory to create CustomType schema with configurable section type\nconst createCustomTypeSchema = <\n\tT extends typeof StaticCustomTypeModelTabSchema | typeof DynamicCustomTypeModelTabSchema,\n>(\n\tsectionSchema: T,\n) => {\n\t// 4.4.0 and earlier\n\tconst Schema_4_4_0 = z.object({\n\t\tid: z.string(),\n\t\tlabel: z.nullish(z.string()),\n\t\trepeatable: z._default(z.boolean(), true),\n\t\tjson: z.record(z.string(), sectionSchema),\n\t\tstatus: z._default(z.boolean(), true),\n\t\tformat: z._default(CustomTypeFormatSchema, \"custom\"),\n\t\tschema: z.optional(z.undefined()),\n\t})\n\n\t// 4.5.0 and later\n\tconst Schema_4_5_0 = z\n\t\t.object({\n\t\t\t...Schema_4_4_0.shape,\n\t\t\tschema: z.literal(\"@prismicio/types-internal@4.5.0\"),\n\t\t})\n\t\t.check(\n\t\t\tz.superRefine((model, ctx) => {\n\t\t\t\tconst { json } = model\n\n\t\t\t\tconst tabEntries = Object.entries(json)\n\n\t\t\t\t// A map of widget IDs to the tab they belong to\n\t\t\t\t// to check for ID uniqueness across all tabs.\n\t\t\t\tconst existingWidgetKeys = new Map<string, string>()\n\t\t\t\tfor (const [tabID, tab] of tabEntries) {\n\t\t\t\t\tfor (const [widgetID, widget] of Object.entries(tab)) {\n\t\t\t\t\t\tif (widget.type === \"UID\" && widgetID !== \"uid\") {\n\t\t\t\t\t\t\tctx.addIssue({\n\t\t\t\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\t\t\t\tmessage: `The UID widget ID must be set to \"uid\"`,\n\t\t\t\t\t\t\t\tpath: [\"json\", tabID, widgetID],\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst maybeTabID = existingWidgetKeys.get(widgetID)\n\t\t\t\t\t\tif (typeof maybeTabID === \"string\") {\n\t\t\t\t\t\t\tctx.addIssue({\n\t\t\t\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\t\t\t\tmessage: `${widgetID} already exists in the \"${maybeTabID}\" tab`,\n\t\t\t\t\t\t\t\tpath: [\"json\", tabID, widgetID],\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\texistingWidgetKeys.set(widgetID, tabID)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}),\n\t\t)\n\n\treturn z.discriminatedUnion(\"schema\", [Schema_4_4_0, Schema_4_5_0])\n}\n\nexport const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)\nexport type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>\n\nexport const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)\nexport type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>\n\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n/** @deprecated Use DynamicCustomTypeModel instead */\nexport type CustomTypeModel = DynamicCustomTypeModel\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,iBAAiB,wBAAwB;AAGhG,MAAa,kCAAkC,EAAE,OAAO,iBAAiB,yBAAyB;AAIlG,MAAa,yBAAyB,EAAE,KAAK,CAAC,QAAQ,SAAS,CAAC;AAIhE,MAAM,0BAGL,kBACI;CAEJ,MAAM,eAAe,EAAE,OAAO;EAC7B,IAAI,EAAE,QAAQ;EACd,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;EAC5B,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK;EACzC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc;EACzC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK;EACrC,QAAQ,EAAE,SAAS,wBAAwB,SAAS;EACpD,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC;EACjC,CAAC;CAGF,MAAM,eAAe,EACnB,OAAO;EACP,GAAG,aAAa;EAChB,QAAQ,EAAE,QAAQ,kCAAkC;EACpD,CAAC,CACD,MACA,EAAE,aAAa,OAAO,QAAQ;EAC7B,MAAM,EAAE,SAAS;EAEjB,MAAM,aAAa,OAAO,QAAQ,KAAK;EAIvC,MAAM,qCAAqB,IAAI,KAAqB;AACpD,OAAK,MAAM,CAAC,OAAO,QAAQ,WAC1B,MAAK,MAAM,CAAC,UAAU,WAAW,OAAO,QAAQ,IAAI,EAAE;AACrD,OAAI,OAAO,SAAS,SAAS,aAAa,MACzC,KAAI,SAAS;IACZ,MAAM;IACN,SAAS;IACT,MAAM;KAAC;KAAQ;KAAO;KAAS;IAC/B,CAAC;GAGH,MAAM,aAAa,mBAAmB,IAAI,SAAS;AACnD,OAAI,OAAO,eAAe,UAAU;AACnC,QAAI,SAAS;KACZ,MAAM;KACN,SAAS,GAAG,SAAS,0BAA0B,WAAW;KAC1D,MAAM;MAAC;MAAQ;MAAO;MAAS;KAC/B,CAAC;AACF;;AAGD,sBAAmB,IAAI,UAAU,MAAM;;GAGxC,CACF;AAEF,QAAO,EAAE,mBAAmB,UAAU,CAAC,cAAc,aAAa,CAAC;;AAGpE,MAAa,8BAA8B,uBAAuB,+BAA+B;AAGjG,MAAa,+BAA+B,uBAAuB,gCAAgC"}
1
+ {"version":3,"file":"customType.js","names":[],"sources":["../../src/model/customType.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport { DynamicWidgetModelSchema, StaticWidgetModelSchema } from \"./widget\"\n\n// Tab\nexport const StaticCustomTypeModelTabSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema)\nexport type StaticCustomTypeModelTab = z.infer<typeof StaticCustomTypeModelTabSchema>\n\nexport const DynamicCustomTypeModelTabSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema)\nexport type DynamicCustomTypeModelTab = z.infer<typeof DynamicCustomTypeModelTabSchema>\n\n// Custom types\nexport const CustomTypeFormatSchema = z.enum([\"page\", \"custom\"])\nexport type CustomTypeFormat = z.infer<typeof CustomTypeFormatSchema>\n\n// Factory to create CustomType schema with configurable section type\nconst createCustomTypeSchema = <\n\tT extends typeof StaticCustomTypeModelTabSchema | typeof DynamicCustomTypeModelTabSchema,\n>(\n\tsectionSchema: T,\n) => {\n\t// 4.4.0 and earlier\n\tconst Schema_4_4_0 = z.object({\n\t\tid: z.string(),\n\t\tlabel: z.nullish(z.string()),\n\t\trepeatable: z._default(z.boolean(), true),\n\t\tjson: z.record(z.string(), sectionSchema),\n\t\tstatus: z._default(z.boolean(), true),\n\t\tformat: z._default(CustomTypeFormatSchema, \"custom\"),\n\t\tschema: z.optional(z.undefined()),\n\t})\n\n\t// 4.5.0 and later\n\tconst Schema_4_5_0 = z\n\t\t.object({\n\t\t\t...Schema_4_4_0.shape,\n\t\t\tschema: z.literal(\"@prismicio/types-internal@4.5.0\"),\n\t\t})\n\t\t.check(\n\t\t\tz.superRefine((model, ctx) => {\n\t\t\t\tconst { json } = model\n\n\t\t\t\tconst tabEntries = Object.entries(json)\n\n\t\t\t\t// A map of widget IDs to the tab they belong to\n\t\t\t\t// to check for ID uniqueness across all tabs.\n\t\t\t\tconst existingWidgetKeys = new Map<string, string>()\n\t\t\t\tfor (const [tabID, tab] of tabEntries) {\n\t\t\t\t\tfor (const [widgetID, widget] of Object.entries(tab)) {\n\t\t\t\t\t\tif (widget.type === \"UID\" && widgetID !== \"uid\") {\n\t\t\t\t\t\t\tctx.addIssue({\n\t\t\t\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\t\t\t\tmessage: `The UID widget ID must be set to \"uid\"`,\n\t\t\t\t\t\t\t\tpath: [\"json\", tabID, widgetID],\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst maybeTabID = existingWidgetKeys.get(widgetID)\n\t\t\t\t\t\tif (typeof maybeTabID === \"string\") {\n\t\t\t\t\t\t\tctx.addIssue({\n\t\t\t\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\t\t\t\tmessage: `${widgetID} already exists in the \"${maybeTabID}\" tab`,\n\t\t\t\t\t\t\t\tpath: [\"json\", tabID, widgetID],\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\texistingWidgetKeys.set(widgetID, tabID)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}),\n\t\t)\n\n\treturn z.discriminatedUnion(\"schema\", [Schema_4_4_0, Schema_4_5_0])\n}\n\nexport const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)\nexport type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>\n\nexport const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)\nexport type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>\n\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n/** @deprecated Use DynamicCustomTypeModel instead */\nexport type CustomTypeModel = DynamicCustomTypeModel\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,iBAAiB,uBAAuB;AAG/F,MAAa,kCAAkC,EAAE,OAAO,iBAAiB,wBAAwB;AAIjG,MAAa,yBAAyB,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC;AAI/D,MAAM,0BAGL,kBACI;CAEJ,MAAM,eAAe,EAAE,OAAO;EAC7B,IAAI,EAAE,OAAO;EACb,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;EAC3B,YAAY,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;EACxC,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,aAAa;EACxC,QAAQ,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;EACpC,QAAQ,EAAE,SAAS,wBAAwB,QAAQ;EACnD,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC;CACjC,CAAC;CAGD,MAAM,eAAe,EACnB,OAAO;EACP,GAAG,aAAa;EAChB,QAAQ,EAAE,QAAQ,iCAAiC;CACpD,CAAC,CAAC,CACD,MACA,EAAE,aAAa,OAAO,QAAQ;EAC7B,MAAM,EAAE,SAAS;EAEjB,MAAM,aAAa,OAAO,QAAQ,IAAI;EAItC,MAAM,qCAAqB,IAAI,IAAoB;EACnD,KAAK,MAAM,CAAC,OAAO,QAAQ,YAC1B,KAAK,MAAM,CAAC,UAAU,WAAW,OAAO,QAAQ,GAAG,GAAG;GACrD,IAAI,OAAO,SAAS,SAAS,aAAa,OACzC,IAAI,SAAS;IACZ,MAAM;IACN,SAAS;IACT,MAAM;KAAC;KAAQ;KAAO;IAAQ;GAC/B,CAAC;GAGF,MAAM,aAAa,mBAAmB,IAAI,QAAQ;GAClD,IAAI,OAAO,eAAe,UAAU;IACnC,IAAI,SAAS;KACZ,MAAM;KACN,SAAS,GAAG,SAAS,0BAA0B,WAAW;KAC1D,MAAM;MAAC;MAAQ;MAAO;KAAQ;IAC/B,CAAC;IACD;GACD;GAEA,mBAAmB,IAAI,UAAU,KAAK;EACvC;CAEF,CAAC,CACF;CAED,OAAO,EAAE,mBAAmB,UAAU,CAAC,cAAc,YAAY,CAAC;AACnE;AAEA,MAAa,8BAA8B,uBAAuB,8BAA8B;AAGhG,MAAa,+BAA+B,uBAAuB,+BAA+B"}
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/mini";
2
-
3
2
  //#region src/model/date.d.ts
4
3
  declare const DateModelSchema: z.ZodMiniObject<{
5
4
  type: z.ZodMiniLiteral<"Date">;
@@ -12,5 +11,5 @@ declare const DateModelSchema: z.ZodMiniObject<{
12
11
  }, z.core.$strip>;
13
12
  type DateModel = z.infer<typeof DateModelSchema>;
14
13
  //#endregion
15
- export { DateModel };
14
+ export { DateModel, DateModelSchema };
16
15
  //# sourceMappingURL=date.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date.d.ts","names":[],"sources":["../../src/model/date.ts"],"mappings":";;;cAQa,eAAA,EAAe,CAAA,CAAA,aAAA;;;;;;;;;KAMhB,SAAA,GAAY,CAAA,CAAE,KAAA,QAAa,eAAA"}
1
+ {"version":3,"file":"date.d.ts","names":[],"sources":["../../src/model/date.ts"],"mappings":";;cAQa,iBAAe,EAAA;;;;;;;;;KAMhB,YAAY,EAAE,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"date.js","names":[],"sources":["../../src/model/date.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst DateConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n\tdefault: z.optional(z.string()),\n})\n\nexport const DateModelSchema = z.object({\n\ttype: z.literal(\"Date\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(DateConfigSchema),\n})\n\nexport type DateModel = z.infer<typeof DateModelSchema>\n"],"mappings":";;AAEA,MAAM,mBAAmB,EAAE,OAAO;CACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;CAC/B,CAAC;AAEF,MAAa,kBAAkB,EAAE,OAAO;CACvC,MAAM,EAAE,QAAQ,OAAO;CACvB,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC/B,QAAQ,EAAE,SAAS,iBAAiB;CACpC,CAAC"}
1
+ {"version":3,"file":"date.js","names":[],"sources":["../../src/model/date.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst DateConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n\tdefault: z.optional(z.string()),\n})\n\nexport const DateModelSchema = z.object({\n\ttype: z.literal(\"Date\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(DateConfigSchema),\n})\n\nexport type DateModel = z.infer<typeof DateModelSchema>\n"],"mappings":";;AAEA,MAAM,mBAAmB,EAAE,OAAO;CACjC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC3B,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;CAClC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;AAC/B,CAAC;AAED,MAAa,kBAAkB,EAAE,OAAO;CACvC,MAAM,EAAE,QAAQ,MAAM;CACtB,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC9B,QAAQ,EAAE,SAAS,gBAAgB;AACpC,CAAC"}
@@ -0,0 +1,21 @@
1
+ //#region src/model/diff/changes.d.ts
2
+ declare enum DiffOperation {
3
+ Added = "added",
4
+ Removed = "removed",
5
+ Updated = "updated"
6
+ }
7
+ type AddedDiff<A> = {
8
+ op: DiffOperation.Added;
9
+ value: A;
10
+ };
11
+ type RemovedDiff = {
12
+ op: DiffOperation.Removed;
13
+ };
14
+ type UpdatedDiff<A> = {
15
+ op: DiffOperation.Updated;
16
+ value: A;
17
+ };
18
+ type Diff<A, U> = AddedDiff<A> | UpdatedDiff<U> | RemovedDiff;
19
+ //#endregion
20
+ export { AddedDiff, Diff, DiffOperation, RemovedDiff, UpdatedDiff };
21
+ //# sourceMappingURL=changes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.d.ts","names":[],"sources":["../../../src/model/diff/changes.ts"],"mappings":";aAAY;EACX;EACA;EACA;;KAGW,UAAU;EACrB,IAAI,cAAc;EAClB,OAAO;;KAGI;EACX,IAAI,cAAc;;KAGP,YAAY;EACvB,IAAI,cAAc;EAClB,OAAO;;KAGI,KAAK,GAAG,KAAK,UAAU,KAAK,YAAY,KAAK"}
@@ -0,0 +1,11 @@
1
+ //#region src/model/diff/changes.ts
2
+ let DiffOperation = /* @__PURE__ */ function(DiffOperation) {
3
+ DiffOperation["Added"] = "added";
4
+ DiffOperation["Removed"] = "removed";
5
+ DiffOperation["Updated"] = "updated";
6
+ return DiffOperation;
7
+ }({});
8
+ //#endregion
9
+ export { DiffOperation };
10
+
11
+ //# sourceMappingURL=changes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.js","names":[],"sources":["../../../src/model/diff/changes.ts"],"sourcesContent":["export enum DiffOperation {\n\tAdded = \"added\",\n\tRemoved = \"removed\",\n\tUpdated = \"updated\",\n}\n\nexport type AddedDiff<A> = {\n\top: DiffOperation.Added\n\tvalue: A\n}\n\nexport type RemovedDiff = {\n\top: DiffOperation.Removed\n}\n\nexport type UpdatedDiff<A> = {\n\top: DiffOperation.Updated\n\tvalue: A\n}\n\nexport type Diff<A, U> = AddedDiff<A> | UpdatedDiff<U> | RemovedDiff\n"],"mappings":";AAAA,IAAY,gBAAL,yBAAA,eAAA;CACN,cAAA,WAAA;CACA,cAAA,aAAA;CACA,cAAA,aAAA;;AACD,EAAA,CAAA,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { SharedSliceModel } from "../slice.js";
2
+ import { Diff } from "./changes.js";
3
+ import { VariationDiff } from "./variation.js";
4
+ //#region src/model/diff/sharedSlice.d.ts
5
+ type SliceDiffMetadata = Omit<SharedSliceModel, "variations">;
6
+ type SliceDiff = Diff<SharedSliceModel, Partial<SliceDiffMetadata & {
7
+ variations?: Partial<Record<string, VariationDiff>>;
8
+ }>>;
9
+ declare const SliceDiffComparator: {
10
+ compare(sliceA?: SharedSliceModel, sliceB?: SharedSliceModel): SliceDiff | undefined;
11
+ };
12
+ //#endregion
13
+ export { SliceDiff, SliceDiffComparator, SliceDiffMetadata };
14
+ //# sourceMappingURL=sharedSlice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sharedSlice.d.ts","names":[],"sources":["../../../src/model/diff/sharedSlice.ts"],"mappings":";;;;KAKY,oBAAoB,KAAK;KACzB,YAAY,KACvB,kBACA,QACC;EACC,aAAa,QAAQ,eAAe;;cAmB1B;EACZ,QAAO,SAAU,kBAAgB,SAAW,mBAAmB"}
@@ -0,0 +1,45 @@
1
+ import "./changes.js";
2
+ import { isNotEmpty, toRecord, zipObjects } from "./utils.js";
3
+ import { VariationDiffComparator } from "./variation.js";
4
+ //#region src/model/diff/sharedSlice.ts
5
+ function compareSliceMeta(sliceA, sliceB) {
6
+ const zippedSlices = zipObjects(sliceA, sliceB);
7
+ return Object.entries(zippedSlices).reduce((acc, [key, value]) => {
8
+ if (key === "variations") return acc;
9
+ if (value?.left === value?.right) return acc;
10
+ return {
11
+ ...acc,
12
+ [key]: value?.right
13
+ };
14
+ }, {});
15
+ }
16
+ const SliceDiffComparator = { compare(sliceA, sliceB) {
17
+ if (!sliceA && sliceB) return {
18
+ op: "added",
19
+ value: sliceB
20
+ };
21
+ if (sliceA && !sliceB) return { op: "removed" };
22
+ const diffMeta = compareSliceMeta(sliceA, sliceB);
23
+ const zippedSlices = zipObjects(sliceA && toRecord(sliceA.variations, (v) => v.id), sliceB && toRecord(sliceB.variations, (v) => v.id));
24
+ const diffVariations = Object.entries(zippedSlices).reduce((acc, [variationId, value]) => {
25
+ if (!value) return acc;
26
+ const vDiff = VariationDiffComparator.compare(value.left, value.right);
27
+ if (!vDiff) return acc;
28
+ return {
29
+ ...acc,
30
+ [variationId]: vDiff
31
+ };
32
+ }, {});
33
+ const diffSlice = {
34
+ ...diffMeta,
35
+ ...isNotEmpty(diffVariations) ? { variations: diffVariations } : {}
36
+ };
37
+ if (isNotEmpty(diffSlice)) return {
38
+ op: "updated",
39
+ value: diffSlice
40
+ };
41
+ } };
42
+ //#endregion
43
+ export { SliceDiffComparator };
44
+
45
+ //# sourceMappingURL=sharedSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sharedSlice.js","names":[],"sources":["../../../src/model/diff/sharedSlice.ts"],"sourcesContent":["import type { SharedSliceModel, SharedSliceModelVariation } from \"../slice\"\nimport { type Diff, DiffOperation } from \"./changes\"\nimport { isNotEmpty, toRecord, zipObjects } from \"./utils\"\nimport { type VariationDiff, VariationDiffComparator } from \"./variation\"\n\nexport type SliceDiffMetadata = Omit<SharedSliceModel, \"variations\">\nexport type SliceDiff = Diff<\n\tSharedSliceModel,\n\tPartial<\n\t\tSliceDiffMetadata & {\n\t\t\tvariations?: Partial<Record<string, VariationDiff>>\n\t\t}\n\t>\n>\n\nfunction compareSliceMeta(\n\tsliceA?: SharedSliceModel,\n\tsliceB?: SharedSliceModel,\n): Partial<SliceDiffMetadata> {\n\tconst zippedSlices = zipObjects(sliceA, sliceB)\n\n\treturn Object.entries(zippedSlices).reduce((acc, [key, value]) => {\n\t\tif (key === \"variations\") return acc\n\n\t\tif (value?.left === value?.right) return acc\n\t\treturn { ...acc, [key]: value?.right }\n\t}, {})\n}\n\nexport const SliceDiffComparator = {\n\tcompare(sliceA?: SharedSliceModel, sliceB?: SharedSliceModel): SliceDiff | undefined {\n\t\tif (!sliceA && sliceB)\n\t\t\treturn {\n\t\t\t\top: DiffOperation.Added,\n\t\t\t\tvalue: sliceB,\n\t\t\t}\n\t\tif (sliceA && !sliceB)\n\t\t\treturn {\n\t\t\t\top: DiffOperation.Removed,\n\t\t\t}\n\n\t\tconst diffMeta = compareSliceMeta(sliceA, sliceB)\n\n\t\tconst zippedSlices = zipObjects<SharedSliceModelVariation>(\n\t\t\tsliceA && toRecord(sliceA.variations, (v) => v.id),\n\t\t\tsliceB && toRecord(sliceB.variations, (v) => v.id),\n\t\t)\n\n\t\tconst diffVariations = Object.entries(zippedSlices).reduce<\n\t\t\tPartial<Record<string, VariationDiff>>\n\t\t>((acc, [variationId, value]) => {\n\t\t\tif (!value) return acc\n\n\t\t\tconst vDiff = VariationDiffComparator.compare(value.left, value.right)\n\t\t\tif (!vDiff) return acc\n\t\t\treturn {\n\t\t\t\t...acc,\n\t\t\t\t[variationId]: vDiff,\n\t\t\t}\n\t\t}, {})\n\n\t\tconst diffSlice = {\n\t\t\t...diffMeta,\n\t\t\t...(isNotEmpty(diffVariations) ? { variations: diffVariations } : {}),\n\t\t}\n\n\t\tif (isNotEmpty(diffSlice)) {\n\t\t\treturn {\n\t\t\t\top: DiffOperation.Updated,\n\t\t\t\tvalue: diffSlice,\n\t\t\t}\n\t\t}\n\t\treturn undefined\n\t},\n}\n"],"mappings":";;;;AAeA,SAAS,iBACR,QACA,QAC6B;CAC7B,MAAM,eAAe,WAAW,QAAQ,MAAM;CAE9C,OAAO,OAAO,QAAQ,YAAY,CAAC,CAAC,QAAQ,KAAK,CAAC,KAAK,WAAW;EACjE,IAAI,QAAQ,cAAc,OAAO;EAEjC,IAAI,OAAO,SAAS,OAAO,OAAO,OAAO;EACzC,OAAO;GAAE,GAAG;IAAM,MAAM,OAAO;EAAM;CACtC,GAAG,CAAC,CAAC;AACN;AAEA,MAAa,sBAAsB,EAClC,QAAQ,QAA2B,QAAkD;CACpF,IAAI,CAAC,UAAU,QACd,OAAO;EACN,IAAA;EACA,OAAO;CACR;CACD,IAAI,UAAU,CAAC,QACd,OAAO,EACN,IAAA,UACD;CAED,MAAM,WAAW,iBAAiB,QAAQ,MAAM;CAEhD,MAAM,eAAe,WACpB,UAAU,SAAS,OAAO,aAAa,MAAM,EAAE,EAAE,GACjD,UAAU,SAAS,OAAO,aAAa,MAAM,EAAE,EAAE,CAClD;CAEA,MAAM,iBAAiB,OAAO,QAAQ,YAAY,CAAC,CAAC,QAEjD,KAAK,CAAC,aAAa,WAAW;EAChC,IAAI,CAAC,OAAO,OAAO;EAEnB,MAAM,QAAQ,wBAAwB,QAAQ,MAAM,MAAM,MAAM,KAAK;EACrE,IAAI,CAAC,OAAO,OAAO;EACnB,OAAO;GACN,GAAG;IACF,cAAc;EAChB;CACD,GAAG,CAAC,CAAC;CAEL,MAAM,YAAY;EACjB,GAAG;EACH,GAAI,WAAW,cAAc,IAAI,EAAE,YAAY,eAAe,IAAI,CAAC;CACpE;CAEA,IAAI,WAAW,SAAS,GACvB,OAAO;EACN,IAAA;EACA,OAAO;CACR;AAGF,EACD"}
@@ -0,0 +1,40 @@
1
+ //#region src/model/diff/utils.ts
2
+ /**
3
+ * Zips two objects together by their keys, creating an object with
4
+ * both left and right values for each key.
5
+ */
6
+ function zipObjects(objLeft, objRight) {
7
+ return [...new Set(Object.keys(objLeft || {}).concat(Object.keys(objRight || {})))].reduce((acc, key) => {
8
+ const left = objLeft?.[key];
9
+ const right = objRight?.[key];
10
+ return {
11
+ ...acc,
12
+ [key]: {
13
+ left,
14
+ right
15
+ }
16
+ };
17
+ }, {});
18
+ }
19
+ /**
20
+ * Returns true if the object has at least one key.
21
+ */
22
+ function isNotEmpty(obj) {
23
+ return Boolean(Object.keys(obj).length);
24
+ }
25
+ /**
26
+ * Converts an array to a record using the provided key function.
27
+ */
28
+ function toRecord(arr, key) {
29
+ return arr.reduce((acc, entry) => {
30
+ const k = key(entry);
31
+ return {
32
+ ...acc,
33
+ [k]: entry
34
+ };
35
+ }, {});
36
+ }
37
+ //#endregion
38
+ export { isNotEmpty, toRecord, zipObjects };
39
+
40
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../../../src/model/diff/utils.ts"],"sourcesContent":["/**\n * Zips two objects together by their keys, creating an object with\n * both left and right values for each key.\n */\nexport function zipObjects<A, B = A>(\n\tobjLeft?: Partial<Record<string, A>> | undefined,\n\tobjRight?: Partial<Record<string, B>> | undefined,\n): Partial<Record<string, { left?: A | undefined; right?: B | undefined }>> {\n\tconst allKeys = [...new Set(Object.keys(objLeft || {}).concat(Object.keys(objRight || {})))]\n\n\treturn allKeys.reduce<Record<string, { left?: A | undefined; right?: B | undefined }>>(\n\t\t(acc, key) => {\n\t\t\tconst left = objLeft?.[key]\n\t\t\tconst right = objRight?.[key]\n\t\t\treturn {\n\t\t\t\t...acc,\n\t\t\t\t[key]: { left, right },\n\t\t\t}\n\t\t},\n\t\t{},\n\t)\n}\n\n/**\n * Returns true if the object has at least one key.\n */\nexport function isNotEmpty<A extends object>(obj: A): boolean {\n\treturn Boolean(Object.keys(obj).length)\n}\n\n/**\n * Converts an array to a record using the provided key function.\n */\nexport function toRecord<A extends object>(\n\tarr: ReadonlyArray<A>,\n\tkey: (obj: A) => string,\n): Record<string, A> {\n\treturn arr.reduce<Record<string, A>>((acc, entry) => {\n\t\tconst k = key(entry)\n\t\treturn {\n\t\t\t...acc,\n\t\t\t[k]: entry,\n\t\t}\n\t}, {})\n}\n"],"mappings":";;;;;AAIA,SAAgB,WACf,SACA,UAC2E;CAG3E,OAAO,CAFU,GAAG,IAAI,IAAI,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,OAAO,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,CAE7E,CAAC,CAAC,QACb,KAAK,QAAQ;EACb,MAAM,OAAO,UAAU;EACvB,MAAM,QAAQ,WAAW;EACzB,OAAO;GACN,GAAG;IACF,MAAM;IAAE;IAAM;GAAM;EACtB;CACD,GACA,CAAC,CACF;AACD;;;;AAKA,SAAgB,WAA6B,KAAiB;CAC7D,OAAO,QAAQ,OAAO,KAAK,GAAG,CAAC,CAAC,MAAM;AACvC;;;;AAKA,SAAgB,SACf,KACA,KACoB;CACpB,OAAO,IAAI,QAA2B,KAAK,UAAU;EACpD,MAAM,IAAI,IAAI,KAAK;EACnB,OAAO;GACN,GAAG;IACF,IAAI;EACN;CACD,GAAG,CAAC,CAAC;AACN"}
@@ -0,0 +1,15 @@
1
+ import { SharedSliceModelVariation } from "../slice.js";
2
+ import { Diff } from "./changes.js";
3
+ import { NestableWidgetDiff, SlicePrimaryWidgetDiff } from "./widgets.js";
4
+ //#region src/model/diff/variation.d.ts
5
+ type VariationDiffMetadata = Omit<SharedSliceModelVariation, "primary" | "items">;
6
+ type VariationDiff = Diff<SharedSliceModelVariation, Partial<VariationDiffMetadata> & {
7
+ primary?: Record<string, SlicePrimaryWidgetDiff>;
8
+ items?: Record<string, NestableWidgetDiff>;
9
+ }>;
10
+ declare const VariationDiffComparator: {
11
+ compare(variationA?: SharedSliceModelVariation, variationB?: SharedSliceModelVariation): VariationDiff | undefined;
12
+ };
13
+ //#endregion
14
+ export { VariationDiff, VariationDiffComparator, VariationDiffMetadata };
15
+ //# sourceMappingURL=variation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variation.d.ts","names":[],"sources":["../../../src/model/diff/variation.ts"],"mappings":";;;;KAYY,wBAAwB,KAAK;KAC7B,gBAAgB,KAC3B,2BACA,QAAQ;EACP,UAAU,eAAe;EACzB,QAAQ,eAAe;;cAsGZ;EACZ,QAAO,aACO,2BAAyB,aACzB,4BACX"}