@prismicio/types-internal 4.0.0 → 4.1.0-canary.18ae460

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 (117) hide show
  1. package/README.md +5 -5
  2. package/dist/content/boolean.d.ts.map +1 -1
  3. package/dist/content/boolean.js.map +1 -1
  4. package/dist/content/codec/link.js.map +1 -1
  5. package/dist/content/codec/nestable.js +4 -4
  6. package/dist/content/field.d.ts.map +1 -1
  7. package/dist/content/field.js +1 -1
  8. package/dist/content/field.js.map +1 -1
  9. package/dist/content/group.d.ts.map +1 -1
  10. package/dist/content/group.js.map +1 -1
  11. package/dist/content/image.d.ts +3 -1
  12. package/dist/content/image.d.ts.map +1 -1
  13. package/dist/content/image.js +3 -3
  14. package/dist/content/image.js.map +1 -1
  15. package/dist/content/legacy/boolean.d.ts +1 -0
  16. package/dist/content/legacy/embed.d.ts +1 -0
  17. package/dist/content/legacy/empty.d.ts +1 -0
  18. package/dist/content/legacy/field.d.ts +1 -0
  19. package/dist/content/legacy/geopoint.d.ts +1 -0
  20. package/dist/content/legacy/image.d.ts +28 -0
  21. package/dist/content/legacy/image.d.ts.map +1 -0
  22. package/dist/content/legacy/image.js +3 -3
  23. package/dist/content/legacy/image.js.map +1 -1
  24. package/dist/content/legacy/integrationField.d.ts +1 -0
  25. package/dist/content/legacy/link.d.ts +10 -10
  26. package/dist/content/legacy/link.js +23 -23
  27. package/dist/content/legacy/link.js.map +1 -1
  28. package/dist/content/legacy/nestable.d.ts +1 -0
  29. package/dist/content/legacy/nestable.js +1 -1
  30. package/dist/content/legacy/repeatable.d.ts +1 -0
  31. package/dist/content/legacy/richText.d.ts +9 -8
  32. package/dist/content/legacy/richText.d.ts.map +1 -1
  33. package/dist/content/legacy/richText.js +5 -5
  34. package/dist/content/legacy/richText.js.map +1 -1
  35. package/dist/content/legacy/separator.d.ts +1 -0
  36. package/dist/content/legacy/table.d.ts +1 -0
  37. package/dist/content/link.d.ts +62 -85
  38. package/dist/content/link.d.ts.map +1 -1
  39. package/dist/content/link.js +30 -27
  40. package/dist/content/link.js.map +1 -1
  41. package/dist/content/nestable.d.ts.map +1 -1
  42. package/dist/content/nestable.js +4 -4
  43. package/dist/content/nestable.js.map +1 -1
  44. package/dist/content/repeatable.d.ts +4 -69
  45. package/dist/content/repeatable.d.ts.map +1 -1
  46. package/dist/content/richText.d.ts +13 -13
  47. package/dist/content/richText.d.ts.map +1 -1
  48. package/dist/content/richText.js +9 -9
  49. package/dist/content/richText.js.map +1 -1
  50. package/dist/helpers/customTypeModel.d.ts +2 -1
  51. package/dist/helpers/customTypeModel.d.ts.map +1 -1
  52. package/dist/helpers/customTypeModel.js +30 -0
  53. package/dist/helpers/customTypeModel.js.map +1 -1
  54. package/dist/helpers/imageContent.d.ts +33 -0
  55. package/dist/helpers/imageContent.d.ts.map +1 -0
  56. package/dist/helpers/imageContent.js +55 -0
  57. package/dist/helpers/imageContent.js.map +1 -0
  58. package/dist/helpers/traverseContent.d.ts +4 -4
  59. package/dist/helpers/traverseContent.d.ts.map +1 -1
  60. package/dist/helpers/traverseContent.js +5 -3
  61. package/dist/helpers/traverseContent.js.map +1 -1
  62. package/dist/helpers/traverseContentWithModel.d.ts +4 -4
  63. package/dist/helpers/traverseContentWithModel.js +1 -1
  64. package/dist/helpers/withDefaultContent.d.ts +21 -0
  65. package/dist/helpers/withDefaultContent.d.ts.map +1 -0
  66. package/dist/helpers/withDefaultContent.js +120 -0
  67. package/dist/helpers/withDefaultContent.js.map +1 -0
  68. package/dist/index.d.ts +25 -22
  69. package/dist/index.js +6 -1
  70. package/dist/io-ts.d.ts +1156 -727
  71. package/dist/io-ts.d.ts.map +1 -1
  72. package/dist/io-ts.js +11 -7
  73. package/dist/io-ts.js.map +1 -1
  74. package/dist/model/richText.d.ts +20 -1
  75. package/dist/model/richText.d.ts.map +1 -1
  76. package/dist/model/richText.js +3 -3
  77. package/dist/model/richText.js.map +1 -1
  78. package/dist/model/slice.d.ts +1251 -643
  79. package/dist/model/slice.d.ts.map +1 -1
  80. package/dist/model/slice.js +4 -4
  81. package/dist/model/slice.js.map +1 -1
  82. package/dist/model/table.js +5 -5
  83. package/dist/model/table.js.map +1 -1
  84. package/dist/model/widget.d.ts +1 -3
  85. package/dist/model/widget.d.ts.map +1 -1
  86. package/dist/model/widget.js +5 -2
  87. package/dist/model/widget.js.map +1 -1
  88. package/dist/zod4.d.ts +2392 -1873
  89. package/dist/zod4.d.ts.map +1 -1
  90. package/dist/zod4.js +11 -7
  91. package/dist/zod4.js.map +1 -1
  92. package/package.json +19 -12
  93. package/src/content/boolean.ts +0 -13
  94. package/src/content/codec/link.ts +12 -12
  95. package/src/content/field.ts +0 -14
  96. package/src/content/group.ts +1 -54
  97. package/src/content/image.ts +3 -91
  98. package/src/content/legacy/image.ts +4 -4
  99. package/src/content/legacy/link.ts +46 -46
  100. package/src/content/legacy/richText.ts +18 -16
  101. package/src/content/link.ts +100 -89
  102. package/src/content/nestable.ts +1 -20
  103. package/src/content/richText.ts +23 -17
  104. package/src/helpers/customTypeModel.ts +44 -0
  105. package/src/helpers/imageContent.ts +84 -0
  106. package/src/helpers/traverseContent.ts +4 -1
  107. package/src/helpers/withDefaultContent.ts +180 -0
  108. package/src/index.ts +18 -5
  109. package/src/io-ts.ts +14 -2
  110. package/src/model/diff/sharedSlice.ts +2 -2
  111. package/src/model/diff/variation.ts +7 -7
  112. package/src/model/richText.ts +5 -2
  113. package/src/model/slice.ts +6 -8
  114. package/src/model/table.ts +5 -5
  115. package/src/model/widget.ts +6 -2
  116. package/src/zod4.ts +14 -2
  117. package/src/content/withDefaultValues.ts +0 -114
@@ -1 +1 @@
1
- {"version":3,"file":"zod4.d.ts","names":[],"sources":["../src/zod4.ts"],"mappings":";;;;;;;;;;;;;;cAuGa,WAAA,YAAW,aAAA;MAAyB,SAAA,CAAA,aAAA;;;;;;;;;;;;;;cACpC,WAAA,YAAW,aAAA;QAAyB,SAAA,CAAA,aAAA;;;;;;;;;;;;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AAoC,gBAAA,WAApC,cAAA,CAAA,iBAAA,CAAA,gBAAA;AAAA,cACtB,uBAAA,EAAuB,WAAA,CAAA,WAAA,CAAqC,iBAAA,WAArC,cAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACvB,sBAAA,EAAsB,WAAA,CAAA,WAAA,CAAoC,gBAAA,WAApC,cAAA,CAAA,iBAAA,CAAA,gBAAA;AAAA,cACtB,uBAAA,EAAuB,WAAA,CAAA,WAAA,CAAqC,iBAAA,WAArC,cAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACvB,wBAAA,cAAwB,aAAA;2CAAsC,WAAA,CAAA,cAAA;;;;;;;;;;;cAC9D,uBAAA,cAAuB,aAAA;2CAAqC,WAAA,CAAA,cAAA;;;;;;;;;;;cAC5D,uBAAA,EAAuB,WAAA,CAAA,WAAA,CAAqC,iBAAA,WAArC,cAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACvB,wBAAA,EAAwB,WAAA,CAAA,WAAA,CAAsC,kBAAA,WAAtC,cAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,cACxB,wBAAA,EAAwB,WAAA,CAAA,aAAA,CAAsC,WAAA,CAAtC,aAAA,UAAA,WAAA,CAAA,WAAA,CAAA,iBAAA,WAAA,cAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACxB,yBAAA,EAAyB,WAAA,CAAA,aAAA,CAAuC,WAAA,CAAvC,aAAA,UAAA,WAAA,CAAA,WAAA,CAAA,kBAAA,WAAA,cAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,cACzB,2BAAA,cAA2B,aAAA;MAAyC,WAAA,CAAA,aAAA;;;;;;;;;;cACpE,qBAAA,cAAqB,aAAA;MAAmC,WAAA,CAAA,aAAA"}
package/dist/zod4.js CHANGED
@@ -1,18 +1,18 @@
1
+ import { EmbedContentSchema as EmbedContentSchema$1 } from "./content/embed.js";
2
+ import { ImageContentSchema as ImageContentSchema$1, ImageContentViewSchema as ImageContentViewSchema$1 } from "./content/image.js";
3
+ import { NonEmptyStringSchema as NonEmptyStringSchema$1 } from "./common/nonEmptyString.js";
4
+ import { EmptyLinkContentSchema as EmptyLinkContentSchema$1, FilledLinkContentSchema as FilledLinkContentSchema$1, LinkContentSchema as LinkContentSchema$1 } from "./content/link.js";
5
+ import { RichTextContentBlockSchema as RichTextContentBlockSchema$1, RichTextContentSchema as RichTextContentSchema$1, RichTextContentSpanSchema as RichTextContentSpanSchema$1 } from "./content/richText.js";
1
6
  import { ImageModelSchema as ImageModelSchema$1 } from "./model/image.js";
2
7
  import { RichTextModelSchema as RichTextModelSchema$1 } from "./model/richText.js";
3
8
  import { TableModelSchema as TableModelSchema$1 } from "./model/table.js";
4
9
  import { WidgetKeySchema as WidgetKeySchema$1 } from "./common/widgetKey.js";
5
10
  import { BooleanContentSchema as BooleanContentSchema$1 } from "./content/boolean.js";
6
- import { EmbedContentSchema as EmbedContentSchema$1 } from "./content/embed.js";
7
11
  import { EmptyContentSchema as EmptyContentSchema$1 } from "./content/empty.js";
8
12
  import { ColorContentSchema as ColorContentSchema$1, DateContentSchema as DateContentSchema$1, FieldContentSchema as FieldContentSchema$1, NumberContentSchema as NumberContentSchema$1, RangeContentSchema as RangeContentSchema$1, SelectContentSchema as SelectContentSchema$1, TextContentSchema as TextContentSchema$1, TimestampContentSchema as TimestampContentSchema$1 } from "./content/field.js";
9
13
  import { GeoPointContentSchema as GeoPointContentSchema$1 } from "./content/geopoint.js";
10
- import { ImageContentSchema as ImageContentSchema$1 } from "./content/image.js";
11
14
  import { IntegrationFieldContentSchema as IntegrationFieldContentSchema$1 } from "./content/integrationField.js";
12
- import { NonEmptyStringSchema as NonEmptyStringSchema$1 } from "./common/nonEmptyString.js";
13
- import { LinkContentSchema as LinkContentSchema$1 } from "./content/link.js";
14
15
  import { RepeatableContentSchema as RepeatableContentSchema$1 } from "./content/repeatable.js";
15
- import { RichTextContentBlockSchema as RichTextContentBlockSchema$1, RichTextContentSchema as RichTextContentSchema$1, RichTextContentSpanSchema as RichTextContentSpanSchema$1 } from "./content/richText.js";
16
16
  import { SeparatorContentSchema as SeparatorContentSchema$1 } from "./content/separator.js";
17
17
  import { TableContentSchema as TableContentSchema$1 } from "./content/table.js";
18
18
  import { NestableContentSchema as NestableContentSchema$1 } from "./content/nestable.js";
@@ -37,7 +37,7 @@ import { TextModelSchema as TextModelSchema$1 } from "./model/text.js";
37
37
  import { TimestampModelSchema as TimestampModelSchema$1 } from "./model/timestamp.js";
38
38
  import { NestableModelSchema as NestableModelSchema$1 } from "./model/nestable.js";
39
39
  import { GroupModelSchema as GroupModelSchema$1, NestedGroupModelSchema as NestedGroupModelSchema$1 } from "./model/group.js";
40
- import { CompositeSliceModelSchema as CompositeSliceModelSchema$1, DynamicSliceModelSchema as DynamicSliceModelSchema$1, LegacySliceModelSchema as LegacySliceModelSchema$1, SharedSliceModelSchema as SharedSliceModelSchema$1, SharedSliceRefModelSchema as SharedSliceRefModelSchema$1, SliceContentModelSchema as SliceContentModelSchema$1, StaticSliceModelSchema as StaticSliceModelSchema$1 } from "./model/slice.js";
40
+ import { CompositeSliceModelSchema as CompositeSliceModelSchema$1, DynamicSliceModelSchema as DynamicSliceModelSchema$1, LegacySliceModelSchema as LegacySliceModelSchema$1, SharedSliceModelSchema as SharedSliceModelSchema$1, SharedSliceModelVariationSchema as SharedSliceModelVariationSchema$1, SharedSliceRefModelSchema as SharedSliceRefModelSchema$1, SliceContentModelSchema as SliceContentModelSchema$1, StaticSliceModelSchema as StaticSliceModelSchema$1 } from "./model/slice.js";
41
41
  import { DynamicSlicesModelSchema as DynamicSlicesModelSchema$1, StaticSlicesModelSchema as StaticSlicesModelSchema$1 } from "./model/slices.js";
42
42
  import { UIDModelSchema as UIDModelSchema$1 } from "./model/uid.js";
43
43
  import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
@@ -57,6 +57,8 @@ const ColorContentSchema = toZod4(ColorContentSchema$1);
57
57
  const DateContentSchema = toZod4(DateContentSchema$1);
58
58
  const EmptyContentSchema = toZod4(EmptyContentSchema$1);
59
59
  const GeoPointContentSchema = toZod4(GeoPointContentSchema$1);
60
+ const FilledLinkContentSchema = toZod4(FilledLinkContentSchema$1);
61
+ const EmptyLinkContentSchema = toZod4(EmptyLinkContentSchema$1);
60
62
  const LinkContentSchema = toZod4(LinkContentSchema$1);
61
63
  const NumberContentSchema = toZod4(NumberContentSchema$1);
62
64
  const RangeContentSchema = toZod4(RangeContentSchema$1);
@@ -69,6 +71,7 @@ const FieldContentSchema = toZod4(FieldContentSchema$1);
69
71
  const UIDContentSchema = toZod4(UIDContentSchema$1);
70
72
  const IntegrationFieldContentSchema = toZod4(IntegrationFieldContentSchema$1);
71
73
  const EmbedContentSchema = toZod4(EmbedContentSchema$1);
74
+ const ImageContentViewSchema = toZod4(ImageContentViewSchema$1);
72
75
  const ImageContentSchema = toZod4(ImageContentSchema$1);
73
76
  const RichTextContentSchema = toZod4(RichTextContentSchema$1);
74
77
  const RichTextContentBlockSchema = toZod4(RichTextContentBlockSchema$1);
@@ -109,6 +112,7 @@ const TimestampModelSchema = toZod4(TimestampModelSchema$1);
109
112
  const UIDModelSchema = toZod4(UIDModelSchema$1);
110
113
  const GroupModelSchema = toZod4(GroupModelSchema$1);
111
114
  const NestedGroupModelSchema = toZod4(NestedGroupModelSchema$1);
115
+ const SharedSliceModelVariationSchema = toZod4(SharedSliceModelVariationSchema$1);
112
116
  const SharedSliceRefModelSchema = toZod4(SharedSliceRefModelSchema$1);
113
117
  const CompositeSliceModelSchema = toZod4(CompositeSliceModelSchema$1);
114
118
  const LegacySliceModelSchema = toZod4(LegacySliceModelSchema$1);
@@ -127,6 +131,6 @@ function toZod4(type) {
127
131
  return type;
128
132
  }
129
133
  //#endregion
130
- export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicSectionModelSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, FieldContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticSectionModelSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
134
+ export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicSectionModelSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticSectionModelSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
131
135
 
132
136
  //# sourceMappingURL=zod4.js.map
package/dist/zod4.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"zod4.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","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","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticSectionModelSchema","rawDynamicSectionModelSchema","rawStaticCustomTypeModelSchema","rawCustomTypeModelSchema"],"sources":["../src/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport { ImageContentSchema as rawImageContentSchema } from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport { LinkContentSchema as rawLinkContentSchema } from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tCustomTypeModelSchema as rawCustomTypeModelSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport {\n\tStaticSectionModelSchema as rawStaticSectionModelSchema,\n\tDynamicSectionModelSchema as rawDynamicSectionModelSchema,\n} from \"./model/section\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const StaticSectionModelSchema = toZod4(rawStaticSectionModelSchema)\nexport const DynamicSectionModelSchema = toZod4(rawDynamicSectionModelSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const CustomTypeModelSchema = toZod4(rawCustomTypeModelSchema)\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGA,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,uBAAw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,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,8BAA8B,OAAOC,8BAA+B;AACjF,MAAa,wBAAwB,OAAOC,wBAAyB;AAErE,SAAS,OAAU,MAAY;AAC9B,QAAO"}
1
+ {"version":3,"file":"zod4.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticSectionModelSchema","rawDynamicSectionModelSchema","rawStaticCustomTypeModelSchema","rawCustomTypeModelSchema"],"sources":["../src/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tCustomTypeModelSchema as rawCustomTypeModelSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport {\n\tStaticSectionModelSchema as rawStaticSectionModelSchema,\n\tDynamicSectionModelSchema as rawDynamicSectionModelSchema,\n} from \"./model/section\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toZod4(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toZod4(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toZod4(rawImageContentViewSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toZod4(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const StaticSectionModelSchema = toZod4(rawStaticSectionModelSchema)\nexport const DynamicSectionModelSchema = toZod4(rawDynamicSectionModelSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const CustomTypeModelSchema = toZod4(rawCustomTypeModelSchema)\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+GA,MAAa,cAAc,OAAOA,cAAe;AACjD,MAAa,cAAc,OAAOC,cAAe;AACjD,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,kBAAkB,OAAOC,kBAAmB;AAGzD,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,wBAAwB,OAAOC,wBAAyB;AACrE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,yBAAyB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BAA+B;AACjF,MAAa,wBAAwB,OAAOC,wBAAyB;AAErE,SAAS,OAAU,MAAY;AAC9B,QAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/types-internal",
3
- "version": "4.0.0",
3
+ "version": "4.1.0-canary.18ae460",
4
4
  "description": "TypeScript types and runtime parsers for Prismic data",
5
5
  "keywords": [
6
6
  "prismic",
@@ -52,21 +52,28 @@
52
52
  "unit:watch": "vitest watch",
53
53
  "test": "npm run lint && npm run types && npm run unit && npm run portability"
54
54
  },
55
- "dependencies": {
56
- "io-ts": "^2.2.22",
57
- "zod": "^4.3.6"
58
- },
59
55
  "devDependencies": {
60
56
  "@prismicio/e2e-tests-utils": "^1.16.0",
61
57
  "@prismicio/types-internal-v3": "npm:@prismicio/types-internal@^3.17.0",
62
- "@types/node": "^25.4.0",
58
+ "@types/node": "^25.5.0",
63
59
  "@types/uuid": "^11.0.0",
64
- "@vitest/coverage-v8": "^4.0.18",
65
- "oxfmt": "^0.37.0",
66
- "oxlint": "^1.52.0",
67
- "tsdown": "^0.21.1",
68
- "typescript": "^5.9.3",
69
- "vitest": "^4.0.18"
60
+ "@vitest/coverage-v8": "^4.1.2",
61
+ "io-ts": "^2.2.22",
62
+ "oxfmt": "^0.43.0",
63
+ "oxlint": "^1.58.0",
64
+ "tsdown": "^0.21.7",
65
+ "typescript": "^6.0.2",
66
+ "vitest": "^4.1.2",
67
+ "zod": "^4.3.6"
68
+ },
69
+ "peerDependencies": {
70
+ "io-ts": "^2.2.22",
71
+ "zod": "^4.3.6"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "io-ts": {
75
+ "optional": true
76
+ }
70
77
  },
71
78
  "engines": {
72
79
  "node": ">=20"
@@ -1,7 +1,5 @@
1
1
  import { z } from "zod/mini"
2
2
 
3
- import type { BooleanModel } from "../model/boolean"
4
-
5
3
  export const BooleanContentType = "BooleanContent" as const
6
4
 
7
5
  export const BooleanContentSchema = z.object({
@@ -10,14 +8,3 @@ export const BooleanContentSchema = z.object({
10
8
  })
11
9
 
12
10
  export type BooleanContent = z.infer<typeof BooleanContentSchema>
13
-
14
- /**
15
- * Returns the default value for a Boolean field based on its configuration.
16
- */
17
- export const BooleanContentDefaultValue = (field: BooleanModel): BooleanContent | undefined =>
18
- field.config?.default_value !== undefined
19
- ? {
20
- __TYPE__: BooleanContentType,
21
- value: field.config.default_value || false,
22
- }
23
- : undefined
@@ -1,23 +1,23 @@
1
1
  import type {
2
- EmptyLinkValueLegacy,
3
- FilledLinkValueLegacy,
4
- LinkValueLegacy,
2
+ EmptyLinkLegacyValue,
3
+ FilledLinkLegacyValue,
4
+ LinkLegacyValue,
5
5
  LinkLegacy,
6
6
  } from "../legacy/link"
7
7
  import { LinkKind, LinkType, LinkLegacySchema } from "../legacy/link"
8
8
  import { LinkContentSchema, LinkContentType } from "../link"
9
9
  import type {
10
- EmptyLinkValueContent,
11
- FilledLinkValueContent,
10
+ EmptyLinkContentValue,
11
+ FilledLinkContentValue,
12
12
  LinkContent,
13
- LinkValueContent,
13
+ LinkContentValue,
14
14
  } from "../link"
15
15
  import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
16
16
 
17
17
  // Also used by content/codec/richText
18
- export function linkLegacyToValue(value: FilledLinkValueLegacy): FilledLinkValueContent
19
- export function linkLegacyToValue(value: EmptyLinkValueLegacy): EmptyLinkValueContent
20
- export function linkLegacyToValue(value: LinkValueLegacy): LinkValueContent
18
+ export function linkLegacyToValue(value: FilledLinkLegacyValue): FilledLinkContentValue
19
+ export function linkLegacyToValue(value: EmptyLinkLegacyValue): EmptyLinkContentValue
20
+ export function linkLegacyToValue(value: LinkLegacyValue): LinkContentValue
21
21
  export function linkLegacyToValue(
22
22
  value: Omit<LinkLegacy, "text" | "variant" | "key">,
23
23
  ): Omit<LinkContent["value"], "text" | "variant"> {
@@ -61,9 +61,9 @@ export function linkLegacyToContent({ key, text, variant, ...legacy }: LinkLegac
61
61
  }
62
62
 
63
63
  // Also used by content/codec/richText
64
- export function linkValueToLegacy(value: FilledLinkValueContent): FilledLinkValueLegacy
65
- export function linkValueToLegacy(value: EmptyLinkValueContent): EmptyLinkValueLegacy
66
- export function linkValueToLegacy(value: LinkValueContent): LinkValueLegacy {
64
+ export function linkValueToLegacy(value: FilledLinkContentValue): FilledLinkLegacyValue
65
+ export function linkValueToLegacy(value: EmptyLinkContentValue): EmptyLinkLegacyValue
66
+ export function linkValueToLegacy(value: LinkContentValue): LinkLegacyValue {
67
67
  const { __TYPE__, ...legacy } = value
68
68
  return legacy
69
69
  }
@@ -1,7 +1,5 @@
1
1
  import { z } from "zod/mini"
2
2
 
3
- import type { SelectModel } from "../model/select"
4
-
5
3
  export const FieldContentType = "FieldContent" as const
6
4
  export const SelectFieldType = "Select" as const
7
5
 
@@ -80,15 +78,3 @@ export type FieldContent =
80
78
  | NumberContent
81
79
  | RangeContent
82
80
  | SelectContent
83
-
84
- /**
85
- * Returns the default value for a Select field based on its configuration.
86
- */
87
- export const SelectContentDefaultValue = (field: SelectModel): SelectContent | undefined =>
88
- field.config?.default_value
89
- ? {
90
- __TYPE__: FieldContentType,
91
- type: SelectFieldType,
92
- value: field.config.default_value || "",
93
- }
94
- : undefined
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod/mini"
2
2
 
3
- import type { GroupModel } from "../model/group"
4
- import { NestableContentDefaultValue, NestableContentSchema } from "./nestable"
3
+ import { NestableContentSchema } from "./nestable"
5
4
  import type { NestableContent } from "./nestable"
6
5
 
7
6
  // Item
@@ -45,55 +44,3 @@ export const NestableAndGroupContentSchema: z.ZodMiniType<NestableAndGroupConten
45
44
  ])
46
45
 
47
46
  export type NestableAndGroupContent = NestableContent | GroupContent
48
-
49
- // Default values for GroupContent
50
- export function groupContentWithDefaultValues(
51
- customType: GroupModel,
52
- content: GroupContent,
53
- ): GroupContent {
54
- const fields = customType.config?.fields
55
- if (!fields) return content
56
-
57
- return {
58
- ...content,
59
- value: content.value.map((groupItem) => {
60
- const updatedValue = Object.entries(fields).reduce<GroupItemContent["value"]>(
61
- (acc, [fieldKey, fieldDef]) => {
62
- const existingField = groupItem.value.find(([key]) => key === fieldKey)
63
-
64
- if (existingField) {
65
- return [...acc, existingField]
66
- }
67
-
68
- // Field is missing, check if we can add a default value
69
- if (fieldDef.type === "Group") {
70
- // Recursively apply defaults to nested groups
71
- return [
72
- ...acc,
73
- [
74
- fieldKey,
75
- {
76
- __TYPE__: GroupContentType,
77
- value: [],
78
- },
79
- ],
80
- ]
81
- }
82
-
83
- const defaultValue = NestableContentDefaultValue(fieldDef)
84
- if (defaultValue) {
85
- return [...acc, [fieldKey, defaultValue]]
86
- }
87
-
88
- return acc
89
- },
90
- [],
91
- )
92
-
93
- return {
94
- ...groupItem,
95
- value: updatedValue,
96
- }
97
- }),
98
- }
99
- }
@@ -1,103 +1,15 @@
1
1
  import { z } from "zod/mini"
2
2
 
3
- import { ImageViewLegacySchema, ImageLegacySchema } from "./legacy/image"
3
+ import { ImageLegacyViewSchema, ImageLegacySchema } from "./legacy/image"
4
4
 
5
5
  export const ImageContentType = "ImageContent" as const
6
6
 
7
- export const ImageViewContentSchema = ImageViewLegacySchema
7
+ export const ImageContentViewSchema = ImageLegacyViewSchema
8
8
 
9
- type ImageViewContent = z.infer<typeof ImageViewLegacySchema>
9
+ export type ImageContentView = z.infer<typeof ImageLegacyViewSchema>
10
10
 
11
11
  export const ImageContentSchema = z.extend(ImageLegacySchema, {
12
12
  __TYPE__: z.literal(ImageContentType),
13
13
  })
14
14
 
15
15
  export type ImageContent = z.infer<typeof ImageContentSchema>
16
-
17
- // Helpers
18
-
19
- export interface CroppedImage {
20
- zoom: number
21
- /** X coordinate of the crop rect on the original image */
22
- x: number
23
- /** Y coordinate of the crop rect on the original image */
24
- y: number
25
-
26
- /** The width of the crop rect over the original image */
27
- cropWidth: number
28
- /** The height of the crop rect over the original image */
29
- cropHeight: number
30
-
31
- /** Final (user defined via W input) width of the image */
32
- width: number
33
- /** Final (user defined via H input) height of the image */
34
- height: number
35
- }
36
-
37
- interface BuildCropUrlArgs {
38
- origin: ImageContent["origin"]
39
- /** Image crop parameters */
40
- croppedImage: CroppedImage
41
- }
42
-
43
- export function buildCropUrl(args: BuildCropUrlArgs): string {
44
- const { origin, croppedImage } = args
45
- const { x, y, width, height, cropHeight, cropWidth } = croppedImage
46
-
47
- const url = new URL(origin.url)
48
-
49
- const hasResize = origin.height !== height || origin.width !== width
50
-
51
- const hasCrop = x !== 0 || y !== 0 || cropHeight !== origin.height || cropWidth !== origin.width
52
-
53
- if (hasCrop) {
54
- const crop = [x, y, cropWidth, cropHeight].map(Math.round).join(",")
55
-
56
- url.searchParams.set("rect", crop)
57
- url.searchParams.set("w", width.toString())
58
- url.searchParams.set("h", height.toString())
59
- }
60
-
61
- if (hasResize) {
62
- url.searchParams.set("w", width.toString())
63
- url.searchParams.set("h", height.toString())
64
- }
65
-
66
- return url.toString()
67
- }
68
-
69
- export function getCroppedImage({ contentView }: { contentView: ImageViewContent }): CroppedImage {
70
- const {
71
- edit: {
72
- crop: { x, y },
73
- zoom,
74
- },
75
- width,
76
- height,
77
- origin: { width: originWidth, height: originHeight },
78
- } = contentView
79
-
80
- let cropWidth
81
- let cropHeight
82
- const originAspect = originWidth / originHeight
83
- const cropAspect = width / height
84
- if (cropAspect >= originAspect) {
85
- // crop and origin image would be the same width if zoom was equal to 1
86
- cropWidth = originWidth / zoom
87
- cropHeight = cropWidth / cropAspect
88
- } else {
89
- // crop and origin image would be the same height if zoom was equal to 1
90
- cropHeight = originHeight / zoom
91
- cropWidth = cropHeight * cropAspect
92
- }
93
-
94
- return {
95
- x,
96
- y,
97
- width,
98
- height,
99
- zoom,
100
- cropWidth,
101
- cropHeight,
102
- }
103
- }
@@ -23,7 +23,7 @@ const NonEmptyStringOrNullSchema = z.pipe(
23
23
  z.transform((value) => (typeof value === "string" && value.length > 0 ? value : null)),
24
24
  )
25
25
 
26
- export const ImageViewLegacySchema = z.object({
26
+ export const ImageLegacyViewSchema = z.object({
27
27
  origin: OriginSchema,
28
28
  width: z.number(),
29
29
  height: z.number(),
@@ -34,10 +34,10 @@ export const ImageViewLegacySchema = z.object({
34
34
  provider: z.nullish(z.string()),
35
35
  })
36
36
 
37
- export type ImageLegacyView = z.infer<typeof ImageViewLegacySchema>
37
+ export type ImageLegacyView = z.infer<typeof ImageLegacyViewSchema>
38
38
 
39
- export const ImageLegacySchema = z.extend(ImageViewLegacySchema, {
40
- thumbnails: z.optional(z.record(z.string(), ImageViewLegacySchema)),
39
+ export const ImageLegacySchema = z.extend(ImageLegacyViewSchema, {
40
+ thumbnails: z.optional(z.record(z.string(), ImageLegacyViewSchema)),
41
41
  })
42
42
 
43
43
  export type ImageLegacy = z.infer<typeof ImageLegacySchema>