@prismicio/types-internal 4.1.0 → 4.2.0
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.
- package/dist/content/field.js +1 -1
- package/dist/content/field.js.map +1 -1
- package/dist/content/group.d.ts +1 -2
- package/dist/content/group.d.ts.map +1 -1
- package/dist/content/group.js +1 -1
- package/dist/content/group.js.map +1 -1
- package/dist/content/legacy/link.d.ts +4 -4
- package/dist/content/legacy/link.js +4 -4
- package/dist/content/legacy/link.js.map +1 -1
- package/dist/content/legacy/richText.d.ts +23 -12
- package/dist/content/legacy/richText.d.ts.map +1 -1
- package/dist/content/legacy/richText.js +2 -2
- package/dist/content/legacy/richText.js.map +1 -1
- package/dist/content/link.d.ts +4 -4
- package/dist/content/nestable.d.ts +3 -3
- package/dist/content/nestable.d.ts.map +1 -1
- package/dist/content/nestable.js +3 -9
- package/dist/content/nestable.js.map +1 -1
- package/dist/content/richText.d.ts +1 -1
- package/dist/content/richText.d.ts.map +1 -1
- package/dist/content/richText.js +1 -1
- package/dist/content/richText.js.map +1 -1
- package/dist/content/slice.d.ts +507 -5
- package/dist/content/slice.d.ts.map +1 -1
- package/dist/content/slice.js +1 -1
- package/dist/content/slice.js.map +1 -1
- package/dist/content/slices.d.ts +507 -5
- package/dist/content/slices.d.ts.map +1 -1
- package/dist/content/table.d.ts +5 -2
- package/dist/content/table.d.ts.map +1 -1
- package/dist/content/widget.js +1 -1
- package/dist/content/widget.js.map +1 -1
- package/dist/helpers/customTypeModel.d.ts +4 -5
- package/dist/helpers/customTypeModel.d.ts.map +1 -1
- package/dist/helpers/customTypeModel.js.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/io-ts.d.ts +5138 -1917
- package/dist/io-ts.d.ts.map +1 -1
- package/dist/io-ts.js +7 -6
- package/dist/io-ts.js.map +1 -1
- package/dist/model/customType.d.ts +9 -3
- package/dist/model/customType.d.ts.map +1 -1
- package/dist/model/customType.js +7 -4
- package/dist/model/customType.js.map +1 -1
- package/dist/model/group.d.ts +2 -2
- package/dist/model/group.js +1 -1
- package/dist/model/group.js.map +1 -1
- package/dist/model/nestable.js +1 -1
- package/dist/model/nestable.js.map +1 -1
- package/dist/model/slice.d.ts +10 -10
- package/dist/model/slice.d.ts.map +1 -1
- package/dist/model/slice.js +5 -5
- package/dist/model/slice.js.map +1 -1
- package/dist/model/widget.d.ts.map +1 -1
- package/dist/model/widget.js +2 -2
- package/dist/model/widget.js.map +1 -1
- package/dist/zod4.d.ts +1814 -249
- package/dist/zod4.d.ts.map +1 -1
- package/dist/zod4.js +7 -6
- package/dist/zod4.js.map +1 -1
- package/package.json +9 -6
- package/src/content/field.ts +1 -1
- package/src/content/group.ts +1 -1
- package/src/content/legacy/link.ts +4 -4
- package/src/content/legacy/richText.ts +14 -21
- package/src/content/nestable.ts +3 -18
- package/src/content/richText.ts +9 -6
- package/src/content/slice.ts +1 -1
- package/src/content/widget.ts +1 -1
- package/src/helpers/customTypeModel.ts +8 -5
- package/src/index.ts +7 -2
- package/src/io-ts.ts +8 -8
- package/src/model/customType.ts +18 -7
- package/src/model/group.ts +1 -1
- package/src/model/nestable.ts +1 -1
- package/src/model/slice.ts +16 -17
- package/src/model/widget.ts +8 -12
- package/src/zod4.ts +8 -8
- package/dist/model/section.d.ts +0 -11
- package/dist/model/section.d.ts.map +0 -1
- package/dist/model/section.js +0 -10
- package/dist/model/section.js.map +0 -1
- package/src/model/section.ts +0 -12
package/dist/zod4.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod4.d.ts","names":[],"sources":["../src/zod4.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"zod4.d.ts","names":[],"sources":["../src/zod4.ts"],"mappings":";;;;;;;;;;;;cA6Ga,WAAA,cAAW,aAAA;MAAyB,WAAA,CAAA,aAAA;;;;;;;;;;;;;;cACpC,WAAA,cAAW,aAAA;QAAyB,WAAA,CAAA,aAAA;;;;;;;;;;;;;cACpC,m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WAAA,CAAA,aAAA,CAA6C,WAAA,CAA7C,aAAA,UAAA,WAAA,CAAA,WAAA,CAAA,kBAAA,WAAA,cAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,cAC/B,2BAAA,cAA2B,aAAA;MAAyC,WAAA,CAAA,aAAA;;;;;;;;;;cACpE,4BAAA,cAA4B,aAAA;MAA0C,WAAA,CAAA,aAAA;;;;;;;;;;;cAEtE,qBAAA,cAAqB,aAAA;MAA+B,WAAA,CAAA,aAAA"}
|
package/dist/zod4.js
CHANGED
|
@@ -44,8 +44,7 @@ import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetMod
|
|
|
44
44
|
import { AssetSchema as AssetSchema$1 } from "./common/asset.js";
|
|
45
45
|
import { EmbedSchema as EmbedSchema$1 } from "./common/embed.js";
|
|
46
46
|
import { HexaColorCodeSchema as HexaColorCodeSchema$1 } from "./common/hexaColorCode.js";
|
|
47
|
-
import {
|
|
48
|
-
import { CustomTypeModelSchema as CustomTypeModelSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1 } from "./model/customType.js";
|
|
47
|
+
import { DynamicCustomTypeModelSchema as DynamicCustomTypeModelSchema$1, DynamicCustomTypeModelTabSchema as DynamicCustomTypeModelTabSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1, StaticCustomTypeModelTabSchema as StaticCustomTypeModelTabSchema$1 } from "./model/customType.js";
|
|
49
48
|
//#region src/zod4.ts
|
|
50
49
|
const AssetSchema = toZod4(AssetSchema$1);
|
|
51
50
|
const EmbedSchema = toZod4(EmbedSchema$1);
|
|
@@ -123,14 +122,16 @@ const DynamicSlicesModelSchema = toZod4(DynamicSlicesModelSchema$1);
|
|
|
123
122
|
const StaticSlicesModelSchema = toZod4(StaticSlicesModelSchema$1);
|
|
124
123
|
const StaticWidgetModelSchema = toZod4(StaticWidgetModelSchema$1);
|
|
125
124
|
const DynamicWidgetModelSchema = toZod4(DynamicWidgetModelSchema$1);
|
|
126
|
-
const
|
|
127
|
-
const
|
|
125
|
+
const StaticCustomTypeModelTabSchema = toZod4(StaticCustomTypeModelTabSchema$1);
|
|
126
|
+
const DynamicCustomTypeModelTabSchema = toZod4(DynamicCustomTypeModelTabSchema$1);
|
|
128
127
|
const StaticCustomTypeModelSchema = toZod4(StaticCustomTypeModelSchema$1);
|
|
129
|
-
const
|
|
128
|
+
const DynamicCustomTypeModelSchema = toZod4(DynamicCustomTypeModelSchema$1);
|
|
129
|
+
/** @deprecated Use DynamicCustomTypeModelSchema instead */
|
|
130
|
+
const CustomTypeModelSchema = DynamicCustomTypeModelSchema;
|
|
130
131
|
function toZod4(type) {
|
|
131
132
|
return type;
|
|
132
133
|
}
|
|
133
134
|
//#endregion
|
|
134
|
-
export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema,
|
|
135
|
+
export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
|
|
135
136
|
|
|
136
137
|
//# sourceMappingURL=zod4.js.map
|
package/dist/zod4.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod4.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C7E,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,8BAA8B,OAAOC,8BAA+B;AACjF,MAAa,wBAAwB,OAAOC,wBAAyB;AAErE,SAAS,OAAU,MAAY;AAC9B,QAAO"}
|
|
1
|
+
{"version":3,"file":"zod4.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticCustomTypeModelTabSchema","rawDynamicCustomTypeModelTabSchema","rawStaticCustomTypeModelSchema","rawDynamicCustomTypeModelSchema"],"sources":["../src/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toZod4(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toZod4(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toZod4(rawImageContentViewSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toZod4(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const StaticCustomTypeModelTabSchema = toZod4(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toZod4(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toZod4(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nf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BAA0B;AACvE,MAAa,kCAAkC,OAAOC,kCAAmC;AACzF,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,iCAAiC,OAAOC,iCAAkC;AACvF,MAAa,kCAAkC,OAAOC,kCAAmC;AACzF,MAAa,8BAA8B,OAAOC,8BAA+B;AACjF,MAAa,+BAA+B,OAAOC,+BAAgC;;AAEnF,MAAa,wBAAwB;AAErC,SAAS,OAAU,MAAY;AAC9B,QAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/types-internal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "TypeScript types and runtime parsers for Prismic data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"prismic",
|
|
@@ -50,20 +50,23 @@
|
|
|
50
50
|
"types": "tsc --noEmit",
|
|
51
51
|
"unit": "vitest run --coverage",
|
|
52
52
|
"unit:watch": "vitest watch",
|
|
53
|
+
"bench": "vitest bench --watch=false",
|
|
54
|
+
"bench:watch": "vitest bench",
|
|
53
55
|
"test": "npm run lint && npm run types && npm run unit && npm run portability"
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
56
58
|
"@prismicio/e2e-tests-utils": "^1.16.0",
|
|
57
59
|
"@prismicio/types-internal-v3": "npm:@prismicio/types-internal@^3.17.0",
|
|
58
|
-
"@types
|
|
60
|
+
"@prismicio/types-internal-v4-1-0": "npm:@prismicio/types-internal@4.1.0",
|
|
61
|
+
"@types/node": "^25.5.2",
|
|
59
62
|
"@types/uuid": "^11.0.0",
|
|
60
|
-
"@vitest/coverage-v8": "^4.1.
|
|
63
|
+
"@vitest/coverage-v8": "^4.1.3",
|
|
61
64
|
"io-ts": "^2.2.22",
|
|
62
|
-
"oxfmt": "^0.
|
|
63
|
-
"oxlint": "^1.
|
|
65
|
+
"oxfmt": "^0.44.0",
|
|
66
|
+
"oxlint": "^1.59.0",
|
|
64
67
|
"tsdown": "^0.21.7",
|
|
65
68
|
"typescript": "^6.0.2",
|
|
66
|
-
"vitest": "^4.1.
|
|
69
|
+
"vitest": "^4.1.3",
|
|
67
70
|
"zod": "^4.3.6"
|
|
68
71
|
},
|
|
69
72
|
"peerDependencies": {
|
package/src/content/field.ts
CHANGED
|
@@ -53,7 +53,7 @@ export const SelectContentSchema = z.object({
|
|
|
53
53
|
})
|
|
54
54
|
|
|
55
55
|
// Fields
|
|
56
|
-
export const FieldContentSchema
|
|
56
|
+
export const FieldContentSchema = z.discriminatedUnion("type", [
|
|
57
57
|
TextContentSchema,
|
|
58
58
|
ColorContentSchema,
|
|
59
59
|
DateContentSchema,
|
package/src/content/group.ts
CHANGED
|
@@ -38,7 +38,7 @@ export const GroupContentSchema = z.object({
|
|
|
38
38
|
|
|
39
39
|
export type GroupContent = z.infer<typeof GroupContentSchema>
|
|
40
40
|
|
|
41
|
-
export const NestableAndGroupContentSchema
|
|
41
|
+
export const NestableAndGroupContentSchema = z.discriminatedUnion("__TYPE__", [
|
|
42
42
|
NestableContentSchema,
|
|
43
43
|
GroupContentSchema,
|
|
44
44
|
])
|
|
@@ -21,7 +21,7 @@ export const LinkType = {
|
|
|
21
21
|
} as const
|
|
22
22
|
|
|
23
23
|
// Image
|
|
24
|
-
export const FilledImageLinkLegacyValueSchema = z.
|
|
24
|
+
export const FilledImageLinkLegacyValueSchema = z.object({
|
|
25
25
|
// `kind` was normalized to the literal (legacy behavior)
|
|
26
26
|
kind: z.pipe(
|
|
27
27
|
z.string(),
|
|
@@ -41,7 +41,7 @@ export const EmptyImageLinkLegacyValueSchema = z.strictObject({
|
|
|
41
41
|
})
|
|
42
42
|
|
|
43
43
|
// File
|
|
44
|
-
export const FilledFileLinkLegacyValueSchema = z.
|
|
44
|
+
export const FilledFileLinkLegacyValueSchema = z.object({
|
|
45
45
|
// `kind` was normalized to the literal (legacy behavior)
|
|
46
46
|
kind: z.pipe(
|
|
47
47
|
z.string(),
|
|
@@ -67,7 +67,7 @@ export const EmptyMediaLinkLegacyValueSchema = z.strictObject({
|
|
|
67
67
|
})
|
|
68
68
|
|
|
69
69
|
// Document
|
|
70
|
-
export const FilledDocumentLinkLegacyValueSchema = z.
|
|
70
|
+
export const FilledDocumentLinkLegacyValueSchema = z.object({
|
|
71
71
|
// `kind` is not part of the filled schema... (legacy behavior)
|
|
72
72
|
// We transform it to the literal for consistency.
|
|
73
73
|
kind: z.pipe(
|
|
@@ -82,7 +82,7 @@ export const EmptyDocumentLinkLegacyValueSchema = z.strictObject({
|
|
|
82
82
|
})
|
|
83
83
|
|
|
84
84
|
// External
|
|
85
|
-
export const FilledExternalLinkLegacyValueSchema = z.
|
|
85
|
+
export const FilledExternalLinkLegacyValueSchema = z.object({
|
|
86
86
|
// It's odd that `kind` is optional here... (legacy behavior)
|
|
87
87
|
// We transform it to the literal for consistency.
|
|
88
88
|
kind: z.pipe(
|
|
@@ -50,14 +50,7 @@ const getHyperlinkSpanSchema = <
|
|
|
50
50
|
data,
|
|
51
51
|
})
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
type: "label"
|
|
55
|
-
start: number
|
|
56
|
-
end: number
|
|
57
|
-
data: string
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const LabelSpanSchema: z.ZodMiniType<LabelSpan> = z.object({
|
|
53
|
+
const LabelSpanSchema = z.object({
|
|
61
54
|
type: z.literal("label"),
|
|
62
55
|
start: z.number(),
|
|
63
56
|
end: z.number(),
|
|
@@ -66,14 +59,9 @@ const LabelSpanSchema: z.ZodMiniType<LabelSpan> = z.object({
|
|
|
66
59
|
z.transform((value) => (typeof value === "string" && value.length > 0 ? value : "")),
|
|
67
60
|
),
|
|
68
61
|
})
|
|
62
|
+
type LabelSpan = z.infer<typeof LabelSpanSchema>
|
|
69
63
|
|
|
70
|
-
|
|
71
|
-
type: typeof RichTextNodeType.strong | typeof RichTextNodeType.em | "list-item"
|
|
72
|
-
start: number
|
|
73
|
-
end: number
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const BasicSpanSchema: z.ZodMiniType<BasicSpan> = z.object({
|
|
64
|
+
const BasicSpanSchema = z.object({
|
|
77
65
|
type: z.union([
|
|
78
66
|
z.literal(RichTextNodeType.strong),
|
|
79
67
|
z.literal(RichTextNodeType.em),
|
|
@@ -82,6 +70,7 @@ const BasicSpanSchema: z.ZodMiniType<BasicSpan> = z.object({
|
|
|
82
70
|
start: z.number(),
|
|
83
71
|
end: z.number(),
|
|
84
72
|
})
|
|
73
|
+
type BasicSpan = z.infer<typeof BasicSpanSchema>
|
|
85
74
|
|
|
86
75
|
export type Span<TLink extends FilledLinkLegacyValue | FilledLinkContentValue> =
|
|
87
76
|
| HyperlinkSpan<TLink>
|
|
@@ -93,7 +82,12 @@ export const getSpanSchema = <
|
|
|
93
82
|
TLinkSchema extends typeof FilledLinkLegacyValueSchema | typeof FilledLinkContentValueSchema,
|
|
94
83
|
>(
|
|
95
84
|
linkSchema: TLinkSchema,
|
|
96
|
-
) =>
|
|
85
|
+
) =>
|
|
86
|
+
z.discriminatedUnion("type", [
|
|
87
|
+
getHyperlinkSpanSchema(linkSchema),
|
|
88
|
+
LabelSpanSchema,
|
|
89
|
+
BasicSpanSchema,
|
|
90
|
+
])
|
|
97
91
|
|
|
98
92
|
// Text blocks
|
|
99
93
|
const TextBlockTypeSchema = z.union([
|
|
@@ -187,11 +181,10 @@ const EmbedBlockLegacySchema = getEmbedBlockSchema(EmbedLegacyLooseSchema)
|
|
|
187
181
|
type EmbedBlockLegacy = z.infer<typeof EmbedBlockLegacySchema>
|
|
188
182
|
|
|
189
183
|
// Blocks
|
|
190
|
-
export const RichTextLegacyBlockSchema: z.ZodMiniType<RichTextLegacyBlock> = z.
|
|
191
|
-
|
|
192
|
-
ImageBlockLegacySchema,
|
|
193
|
-
|
|
194
|
-
])
|
|
184
|
+
export const RichTextLegacyBlockSchema: z.ZodMiniType<RichTextLegacyBlock> = z.discriminatedUnion(
|
|
185
|
+
"type",
|
|
186
|
+
[TextBlockLegacySchema, ImageBlockLegacySchema, EmbedBlockLegacySchema],
|
|
187
|
+
)
|
|
195
188
|
|
|
196
189
|
export type RichTextLegacyBlock = TextBlockLegacy | ImageBlockLegacy | EmbedBlockLegacy
|
|
197
190
|
|
package/src/content/nestable.ts
CHANGED
|
@@ -15,16 +15,7 @@ import type {
|
|
|
15
15
|
TextContent,
|
|
16
16
|
TimestampContent,
|
|
17
17
|
} from "./field"
|
|
18
|
-
import {
|
|
19
|
-
ColorContentSchema,
|
|
20
|
-
DateContentSchema,
|
|
21
|
-
FieldContentType,
|
|
22
|
-
NumberContentSchema,
|
|
23
|
-
RangeContentSchema,
|
|
24
|
-
SelectContentSchema,
|
|
25
|
-
TextContentSchema,
|
|
26
|
-
TimestampContentSchema,
|
|
27
|
-
} from "./field"
|
|
18
|
+
import { FieldContentType, FieldContentSchema } from "./field"
|
|
28
19
|
import type { GeoPointContent } from "./geopoint"
|
|
29
20
|
import { GeoPointContentSchema, GeoPointContentType } from "./geopoint"
|
|
30
21
|
import type { ImageContent } from "./image"
|
|
@@ -42,25 +33,19 @@ import { SeparatorContentSchema, SeparatorContentType } from "./separator"
|
|
|
42
33
|
import type { TableContent } from "./table"
|
|
43
34
|
import { TableContentSchema, TableContentType } from "./table"
|
|
44
35
|
|
|
45
|
-
export const NestableContentSchema
|
|
36
|
+
export const NestableContentSchema = z.discriminatedUnion("__TYPE__", [
|
|
46
37
|
EmptyContentSchema,
|
|
47
38
|
BooleanContentSchema,
|
|
48
|
-
ColorContentSchema,
|
|
49
|
-
DateContentSchema,
|
|
50
39
|
EmbedContentSchema,
|
|
51
40
|
GeoPointContentSchema,
|
|
52
41
|
ImageContentSchema,
|
|
53
42
|
IntegrationFieldContentSchema,
|
|
54
43
|
LinkContentSchema,
|
|
55
|
-
NumberContentSchema,
|
|
56
|
-
RangeContentSchema,
|
|
57
44
|
RepeatableContentSchema,
|
|
58
45
|
RichTextContentSchema,
|
|
59
|
-
SelectContentSchema,
|
|
60
46
|
SeparatorContentSchema,
|
|
61
47
|
TableContentSchema,
|
|
62
|
-
|
|
63
|
-
TimestampContentSchema,
|
|
48
|
+
FieldContentSchema,
|
|
64
49
|
])
|
|
65
50
|
|
|
66
51
|
export type NestableContent =
|
package/src/content/richText.ts
CHANGED
|
@@ -35,11 +35,14 @@ export type RichTextContentImageBlock = z.infer<typeof RichTextContentImageBlock
|
|
|
35
35
|
const RichTextContentEmbedBlockSchema = getEmbedBlockSchema(EmbedContentSchema)
|
|
36
36
|
export type RichTextContentEmbedBlock = z.infer<typeof RichTextContentEmbedBlockSchema>
|
|
37
37
|
|
|
38
|
-
export const RichTextContentBlockSchema: z.ZodMiniType<RichTextContentBlock> = z.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
export const RichTextContentBlockSchema: z.ZodMiniType<RichTextContentBlock> = z.discriminatedUnion(
|
|
39
|
+
"type",
|
|
40
|
+
[
|
|
41
|
+
RichTextContentTextBlockSchema,
|
|
42
|
+
RichTextContentImageBlockSchema,
|
|
43
|
+
RichTextContentEmbedBlockSchema,
|
|
44
|
+
],
|
|
45
|
+
)
|
|
43
46
|
|
|
44
47
|
// Used by content/codec/richText
|
|
45
48
|
export type RichTextContentBlock =
|
|
@@ -54,7 +57,7 @@ export type RichTextContent = {
|
|
|
54
57
|
value: RichTextContentBlock[]
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
export const RichTextContentSchema
|
|
60
|
+
export const RichTextContentSchema = z.object({
|
|
58
61
|
__TYPE__: z.literal(RichTextContentType),
|
|
59
62
|
value: z.array(RichTextContentBlockSchema),
|
|
60
63
|
})
|
package/src/content/slice.ts
CHANGED
|
@@ -32,7 +32,7 @@ export const SharedSliceContentSchema = z.object({
|
|
|
32
32
|
export type SharedSliceContent = z.infer<typeof SharedSliceContentSchema>
|
|
33
33
|
|
|
34
34
|
// All
|
|
35
|
-
export const SliceContentSchema: z.ZodMiniType<SliceContent> = z.
|
|
35
|
+
export const SliceContentSchema: z.ZodMiniType<SliceContent> = z.discriminatedUnion("__TYPE__", [
|
|
36
36
|
LegacySliceContentSchema,
|
|
37
37
|
CompositeSliceContentSchema,
|
|
38
38
|
SharedSliceContentSchema,
|
package/src/content/widget.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { SlicesContentSchema } from "./slices"
|
|
|
9
9
|
import type { UIDContent } from "./uid"
|
|
10
10
|
import { UIDContentSchema } from "./uid"
|
|
11
11
|
|
|
12
|
-
export const WidgetContentSchema: z.ZodMiniType<WidgetContent> = z.
|
|
12
|
+
export const WidgetContentSchema: z.ZodMiniType<WidgetContent> = z.discriminatedUnion("__TYPE__", [
|
|
13
13
|
GroupContentSchema,
|
|
14
14
|
NestableContentSchema,
|
|
15
15
|
UIDContentSchema,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
DynamicCustomTypeModel,
|
|
3
|
+
StaticCustomTypeModel,
|
|
4
|
+
StaticCustomTypeModelTab,
|
|
5
|
+
} from "../model/customType"
|
|
3
6
|
import type { SharedSliceModel, StaticSliceModel } from "../model/slice"
|
|
4
7
|
|
|
5
8
|
export function toStatic(
|
|
6
|
-
customType:
|
|
9
|
+
customType: DynamicCustomTypeModel,
|
|
7
10
|
sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,
|
|
8
11
|
): StaticCustomTypeModel {
|
|
9
12
|
const json: StaticCustomTypeModel["json"] = {}
|
|
@@ -45,7 +48,7 @@ export function toStatic(
|
|
|
45
48
|
return { ...customType, json }
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
export function flatten(customType: StaticCustomTypeModel):
|
|
51
|
+
export function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab {
|
|
49
52
|
return Object.values(customType.json).reduce((acc, fields) => ({ ...acc, ...fields }), {})
|
|
50
53
|
}
|
|
51
54
|
|
|
@@ -69,7 +72,7 @@ export function collectSharedSlices(
|
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
export function filterMissingSharedSlices<
|
|
72
|
-
TCustomType extends StaticCustomTypeModel |
|
|
75
|
+
TCustomType extends StaticCustomTypeModel | DynamicCustomTypeModel,
|
|
73
76
|
>(
|
|
74
77
|
customType: TCustomType,
|
|
75
78
|
sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,
|
package/src/index.ts
CHANGED
|
@@ -58,7 +58,13 @@ export type { WidgetContent } from "./content/widget"
|
|
|
58
58
|
// Model
|
|
59
59
|
export type { BooleanModel } from "./model/boolean"
|
|
60
60
|
export type { ColorModel } from "./model/color"
|
|
61
|
-
export type {
|
|
61
|
+
export type {
|
|
62
|
+
StaticCustomTypeModel,
|
|
63
|
+
DynamicCustomTypeModel,
|
|
64
|
+
CustomTypeModel,
|
|
65
|
+
StaticCustomTypeModelTab,
|
|
66
|
+
DynamicCustomTypeModelTab,
|
|
67
|
+
} from "./model/customType"
|
|
62
68
|
export type { DateModel } from "./model/date"
|
|
63
69
|
export type { EmbedModel } from "./model/embed"
|
|
64
70
|
export type { GeoPointModel } from "./model/geopoint"
|
|
@@ -71,7 +77,6 @@ export type { NumberModel } from "./model/number"
|
|
|
71
77
|
export type { RangeModel } from "./model/range"
|
|
72
78
|
export type { RichTextModel, RichTextModelNodeTypes } from "./model/richText"
|
|
73
79
|
export { RichTextModelNodeType } from "./model/richText"
|
|
74
|
-
export type { StaticSectionModel, DynamicSectionModel } from "./model/section"
|
|
75
80
|
export type { SelectModel } from "./model/select"
|
|
76
81
|
export type { SeparatorModel } from "./model/separator"
|
|
77
82
|
export type {
|
package/src/io-ts.ts
CHANGED
|
@@ -99,7 +99,9 @@ import { BooleanModelSchema as rawBooleanModelSchema } from "./model/boolean"
|
|
|
99
99
|
import { ColorModelSchema as rawColorModelSchema } from "./model/color"
|
|
100
100
|
import {
|
|
101
101
|
StaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,
|
|
102
|
-
|
|
102
|
+
DynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,
|
|
103
|
+
StaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,
|
|
104
|
+
DynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,
|
|
103
105
|
} from "./model/customType"
|
|
104
106
|
import { DateModelSchema as rawDateModelSchema } from "./model/date"
|
|
105
107
|
import { EmbedModelSchema as rawEmbedModelSchema } from "./model/embed"
|
|
@@ -115,10 +117,6 @@ import { NestableModelSchema as rawNestableModelSchema } from "./model/nestable"
|
|
|
115
117
|
import { NumberModelSchema as rawNumberModelSchema } from "./model/number"
|
|
116
118
|
import { RangeModelSchema as rawRangeModelSchema } from "./model/range"
|
|
117
119
|
import { RichTextModelSchema as rawRichTextModelSchema } from "./model/richText"
|
|
118
|
-
import {
|
|
119
|
-
StaticSectionModelSchema as rawStaticSectionModelSchema,
|
|
120
|
-
DynamicSectionModelSchema as rawDynamicSectionModelSchema,
|
|
121
|
-
} from "./model/section"
|
|
122
120
|
import { SelectModelSchema as rawSelectModelSchema } from "./model/select"
|
|
123
121
|
import { SeparatorModelSchema as rawSeparatorModelSchema } from "./model/separator"
|
|
124
122
|
import {
|
|
@@ -257,10 +255,12 @@ export const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)
|
|
|
257
255
|
export const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)
|
|
258
256
|
export const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)
|
|
259
257
|
export const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)
|
|
260
|
-
export const
|
|
261
|
-
export const
|
|
258
|
+
export const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)
|
|
259
|
+
export const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)
|
|
262
260
|
export const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)
|
|
263
|
-
export const
|
|
261
|
+
export const DynamicCustomTypeModelSchema = toIOTS(rawDynamicCustomTypeModelSchema)
|
|
262
|
+
/** @deprecated Use DynamicCustomTypeModelSchema instead */
|
|
263
|
+
export const CustomTypeModelSchema = DynamicCustomTypeModelSchema
|
|
264
264
|
|
|
265
265
|
function toIOTS<T>(type: ZodMiniType<T>): t.Type<T> {
|
|
266
266
|
return new t.Type<T>(
|
package/src/model/customType.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { z } from "zod/mini"
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { WidgetKeySchema } from "../common/widgetKey"
|
|
4
|
+
import { DynamicWidgetModelSchema, StaticWidgetModelSchema } from "./widget"
|
|
4
5
|
|
|
5
|
-
//
|
|
6
|
+
// Tab
|
|
7
|
+
export const StaticCustomTypeModelTabSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema)
|
|
8
|
+
export type StaticCustomTypeModelTab = z.infer<typeof StaticCustomTypeModelTabSchema>
|
|
9
|
+
|
|
10
|
+
export const DynamicCustomTypeModelTabSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema)
|
|
11
|
+
export type DynamicCustomTypeModelTab = z.infer<typeof DynamicCustomTypeModelTabSchema>
|
|
12
|
+
|
|
13
|
+
// Custom types
|
|
6
14
|
export const CustomTypeFormatSchema = z.enum(["page", "custom"])
|
|
7
15
|
export type CustomTypeFormat = z.infer<typeof CustomTypeFormatSchema>
|
|
8
16
|
|
|
@@ -17,10 +25,13 @@ const createCustomTypeSchema = <T extends z.ZodMiniType>(sectionSchema: T) =>
|
|
|
17
25
|
format: z._default(CustomTypeFormatSchema, "custom"),
|
|
18
26
|
})
|
|
19
27
|
|
|
20
|
-
|
|
21
|
-
export const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticSectionModelSchema)
|
|
28
|
+
export const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)
|
|
22
29
|
export type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>
|
|
23
30
|
|
|
24
|
-
|
|
25
|
-
export
|
|
26
|
-
|
|
31
|
+
export const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)
|
|
32
|
+
export type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>
|
|
33
|
+
|
|
34
|
+
/** @deprecated Use DynamicCustomTypeModelSchema instead */
|
|
35
|
+
export const CustomTypeModelSchema = DynamicCustomTypeModelSchema
|
|
36
|
+
/** @deprecated Use DynamicCustomTypeModel instead */
|
|
37
|
+
export type CustomTypeModel = DynamicCustomTypeModel
|
package/src/model/group.ts
CHANGED
|
@@ -31,7 +31,7 @@ export type NestedGroupModel = z.infer<typeof NestedGroupModelSchema>
|
|
|
31
31
|
|
|
32
32
|
// Group - allows Nestable | NestedGroup in fields (max 2 levels of nesting)
|
|
33
33
|
export const GroupModelSchema = createGroupSchema(
|
|
34
|
-
z.
|
|
34
|
+
z.discriminatedUnion("type", [NestableModelSchema, NestedGroupModelSchema]) as z.ZodMiniType<
|
|
35
35
|
NestableModel | NestedGroupModel
|
|
36
36
|
>,
|
|
37
37
|
)
|
package/src/model/nestable.ts
CHANGED
|
@@ -33,7 +33,7 @@ import { TextModelSchema } from "./text"
|
|
|
33
33
|
import type { TimestampModel } from "./timestamp"
|
|
34
34
|
import { TimestampModelSchema } from "./timestamp"
|
|
35
35
|
|
|
36
|
-
export const NestableModelSchema = z.
|
|
36
|
+
export const NestableModelSchema = z.discriminatedUnion("type", [
|
|
37
37
|
BooleanModelSchema,
|
|
38
38
|
ColorModelSchema,
|
|
39
39
|
DateModelSchema,
|