@prismicio/types-internal 4.7.0 → 4.8.0-pr.39.a4627e7
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/codec/group.js +3 -2
- package/dist/content/codec/group.js.map +1 -1
- package/dist/content/codec/legacyContentCtx.d.ts.map +1 -1
- package/dist/content/codec/legacyContentCtx.js +5 -1
- package/dist/content/codec/legacyContentCtx.js.map +1 -1
- package/dist/helpers/customTypeModel.d.ts +2 -2
- package/dist/helpers/customTypeModel.d.ts.map +1 -1
- package/dist/helpers/customTypeModel.js +1 -1
- package/dist/helpers/customTypeModel.js.map +1 -1
- package/dist/helpers/documentContent.d.ts +4 -3
- package/dist/helpers/documentContent.d.ts.map +1 -1
- package/dist/helpers/documentContent.js +12 -15
- package/dist/helpers/documentContent.js.map +1 -1
- package/dist/helpers/sliceContent.d.ts +4 -2
- package/dist/helpers/sliceContent.d.ts.map +1 -1
- package/dist/helpers/sliceContent.js +11 -2
- package/dist/helpers/sliceContent.js.map +1 -1
- package/dist/helpers/traverseContent.d.ts +2 -2
- package/dist/helpers/traverseContent.d.ts.map +1 -1
- package/dist/helpers/traverseContent.js +6 -3
- package/dist/helpers/traverseContent.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/io-ts.d.ts +187 -137
- package/dist/io-ts.d.ts.map +1 -1
- package/dist/io-ts.js +5 -3
- package/dist/io-ts.js.map +1 -1
- package/dist/model/customType.d.ts +5 -1
- package/dist/model/customType.d.ts.map +1 -1
- package/dist/model/customType.js.map +1 -1
- package/dist/model/group.d.ts +32 -32
- package/dist/model/link.d.ts +27 -1
- package/dist/model/link.d.ts.map +1 -1
- package/dist/model/link.js +3 -3
- package/dist/model/link.js.map +1 -1
- package/dist/model/table.d.ts +3 -2
- package/dist/model/table.d.ts.map +1 -1
- package/dist/zod4.d.ts +48 -1
- package/dist/zod4.d.ts.map +1 -1
- package/dist/zod4.js +5 -3
- package/dist/zod4.js.map +1 -1
- package/package.json +7 -4
- package/src/content/codec/group.ts +1 -1
- package/src/content/codec/legacyContentCtx.ts +7 -1
- package/src/helpers/customTypeModel.ts +3 -2
- package/src/helpers/documentContent.ts +21 -28
- package/src/helpers/sliceContent.ts +16 -0
- package/src/helpers/traverseContent.ts +8 -5
- package/src/index.ts +9 -3
- package/src/io-ts.ts +7 -1
- package/src/model/customType.ts +5 -0
- package/src/model/link.ts +4 -2
- package/src/zod4.ts +7 -1
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":";;;;;;;;;;cAiHa,gCAAW;;;;;;;;;;;;;;;cACX,gCAAW;;;;;;;;;;;;;;cACX,wCAAmB;cACnB,yCAAoB;cACpB,oCAAe;cAGf,yCAAoB;;;;cACpB,uCAAkB;;;;;cAClB,sCAAiB;;;;;cACjB,uCAAkB;;;;cAClB,0CAAqB;;;;;;;cACrB,4CAAuB;;;;;;;;;;;;;;;;;;;;cACvB,2CAAsB;;;;;;;;;;;;;;;;;;;;cACtB,sCAAiB;;;;;;;;;;;;;;;;;;;;cACjB,wCAAmB;;;;;cACnB,uCAAkB;;;;;cAClB,wCAAmB;;;;;cACnB,2CAAsB;;;cACtB,6CAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACxB,sCAAiB;;;;;cACjB,2CAAsB;;;;;cACtB,uCAAkB,8CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAClB,qCAAgB;;;;cAChB,kDAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACtB,4CAAuB,YAAvB,kDAAuB,kBAAA;cACvB,2CAAsB,YAAtB,iDAAsB,kBAAA;cACtB,4CAAuB,YAAvB,kDAAuB,kBAAA;cACvB,6CAAwB;;;;;;;;;0JAAxB,oEAAA;;;cACA,4CAAuB;;;;;;;;;0JAAvB,mEAAA;;;cACA,4CAAuB,YAAvB,kDAAuB,kBAAA;cACvB,6CAAwB,YAAxB,mDAAwB,kBAAA;cACxB,2CAAsB,0CAAA;;;;;;;;;;;;;;;;;;;;;;cACtB,mDAA8B,iCAAA,0CAAA,YAA9B,kDAA8B,kBAAA;cAC9B,oDAA+B,iCAAA,0CAAA,YAA/B,mDAA+B,kBAAA;cAC/B,gDAA2B,8CAAA;;;;6LAA3B;;;;;;;;;;;;;;;;;;;cACA,iDAA4B,8CAAA;;;;6LAA5B;;;;;;;;;;;;;;;;;;;;cAEA,0CAAqB,8CAAA;;;;6LAArB"}
|
package/dist/zod4.js
CHANGED
|
@@ -11,7 +11,7 @@ import { EmbedModelSchema as EmbedModelSchema$1 } from "./model/embed.js";
|
|
|
11
11
|
import { GeoPointModelSchema as GeoPointModelSchema$1 } from "./model/geopoint.js";
|
|
12
12
|
import { ImageModelSchema as ImageModelSchema$1 } from "./model/image.js";
|
|
13
13
|
import { IntegrationFieldModelSchema as IntegrationFieldModelSchema$1 } from "./model/integrationField.js";
|
|
14
|
-
import { LinkModelSchema as LinkModelSchema$1 } from "./model/link.js";
|
|
14
|
+
import { LinkConfigCustomtypesSchema as LinkConfigCustomtypesSchema$1, LinkModelSchema as LinkModelSchema$1 } from "./model/link.js";
|
|
15
15
|
import { NumberModelSchema as NumberModelSchema$1 } from "./model/number.js";
|
|
16
16
|
import { RangeModelSchema as RangeModelSchema$1 } from "./model/range.js";
|
|
17
17
|
import { RichTextModelSchema as RichTextModelSchema$1 } from "./model/richText.js";
|
|
@@ -40,7 +40,7 @@ import { DocumentContentSchema as DocumentContentSchema$1 } from "./content/docu
|
|
|
40
40
|
import { CompositeSliceModelSchema as CompositeSliceModelSchema$1, DynamicSliceModelSchema as DynamicSliceModelSchema$1, LegacySliceModelSchema as LegacySliceModelSchema$1, SharedSliceModelSchema as SharedSliceModelSchema$1, SharedSliceModelVariationSchema as SharedSliceModelVariationSchema$1, SharedSliceRefModelSchema as SharedSliceRefModelSchema$1, SliceContentModelSchema as SliceContentModelSchema$1, StaticSliceModelSchema as StaticSliceModelSchema$1 } from "./model/slice.js";
|
|
41
41
|
import { DynamicSlicesModelSchema as DynamicSlicesModelSchema$1, StaticSlicesModelSchema as StaticSlicesModelSchema$1 } from "./model/slices.js";
|
|
42
42
|
import { UIDModelSchema as UIDModelSchema$1 } from "./model/uid.js";
|
|
43
|
-
import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
|
|
43
|
+
import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, FieldOrSliceTypeSchema as FieldOrSliceTypeSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
|
|
44
44
|
import { AssetSchema as AssetSchema$1 } from "./common/asset.js";
|
|
45
45
|
import { EmbedSchema as EmbedSchema$1 } from "./common/embed.js";
|
|
46
46
|
import { HexaColorCodeSchema as HexaColorCodeSchema$1 } from "./common/hexaColorCode.js";
|
|
@@ -98,6 +98,7 @@ const GeoPointModelSchema = toZod4(GeoPointModelSchema$1);
|
|
|
98
98
|
const ImageModelSchema = toZod4(ImageModelSchema$1);
|
|
99
99
|
const IntegrationFieldModelSchema = toZod4(IntegrationFieldModelSchema$1);
|
|
100
100
|
const LinkModelSchema = toZod4(LinkModelSchema$1);
|
|
101
|
+
const LinkConfigCustomtypesSchema = toZod4(LinkConfigCustomtypesSchema$1);
|
|
101
102
|
const NestableModelSchema = toZod4(NestableModelSchema$1);
|
|
102
103
|
const NumberModelSchema = toZod4(NumberModelSchema$1);
|
|
103
104
|
const RangeModelSchema = toZod4(RangeModelSchema$1);
|
|
@@ -122,6 +123,7 @@ const DynamicSlicesModelSchema = toZod4(DynamicSlicesModelSchema$1);
|
|
|
122
123
|
const StaticSlicesModelSchema = toZod4(StaticSlicesModelSchema$1);
|
|
123
124
|
const StaticWidgetModelSchema = toZod4(StaticWidgetModelSchema$1);
|
|
124
125
|
const DynamicWidgetModelSchema = toZod4(DynamicWidgetModelSchema$1);
|
|
126
|
+
const FieldOrSliceTypeSchema = toZod4(FieldOrSliceTypeSchema$1);
|
|
125
127
|
const StaticCustomTypeModelTabSchema = toZod4(StaticCustomTypeModelTabSchema$1);
|
|
126
128
|
const DynamicCustomTypeModelTabSchema = toZod4(DynamicCustomTypeModelTabSchema$1);
|
|
127
129
|
const StaticCustomTypeModelSchema = toZod4(StaticCustomTypeModelSchema$1);
|
|
@@ -132,6 +134,6 @@ function toZod4(type) {
|
|
|
132
134
|
return type;
|
|
133
135
|
}
|
|
134
136
|
//#endregion
|
|
135
|
-
export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
|
|
137
|
+
export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FieldOrSliceTypeSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkConfigCustomtypesSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
|
|
136
138
|
|
|
137
139
|
//# sourceMappingURL=zod4.js.map
|
package/dist/zod4.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod4.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticCustomTypeModelTabSchema","rawDynamicCustomTypeModelTabSchema","rawStaticCustomTypeModelSchema","rawDynamicCustomTypeModelSchema"],"sources":["../src/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toZod4(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toZod4(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toZod4(rawImageContentViewSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toZod4(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const StaticCustomTypeModelTabSchema = toZod4(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toZod4(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toZod4(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GA,MAAa,cAAc,OAAOA,aAAc;AAChD,MAAa,cAAc,OAAOC,aAAc;AAChD,MAAa,sBAAsB,OAAOC,qBAAsB;AAChE,MAAa,uBAAuB,OAAOC,sBAAuB;AAClE,MAAa,kBAAkB,OAAOC,iBAAkB;AAGxD,MAAa,uBAAuB,OAAOC,sBAAuB;AAClE,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,oBAAoB,OAAOC,mBAAoB;AAC5D,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,wBAAwB,OAAOC,uBAAwB;AACpE,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,oBAAoB,OAAOC,mBAAoB;AAC5D,MAAa,sBAAsB,OAAOC,qBAAsB;AAChE,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,sBAAsB,OAAOC,qBAAsB;AAChE,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,2BAA2B,OAAOC,0BAA2B;AAC1E,MAAa,oBAAoB,OAAOC,mBAAoB;AAC5D,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,mBAAmB,OAAOC,kBAAmB;AAC1D,MAAa,gCAAgC,OAAOC,+BAAgC;AACpF,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,wBAAwB,OAAOC,uBAAwB;AACpE,M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AAkB;AACxD,MAAa,uBAAuB,OAAOC,sBAAuB;AAClE,MAAa,iBAAiB,OAAOC,gBAAiB;AACtD,MAAa,mBAAmB,OAAOC,kBAAmB;AAC1D,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,kCAAkC,OAAOC,iCAAkC;AACxF,MAAa,4BAA4B,OAAOC,2BAA4B;AAC5E,MAAa,4BAA4B,OAAOC,2BAA4B;AAC5E,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,2BAA2B,OAAOC,0BAA2B;AAC1E,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,2BAA2B,OAAOC,0BAA2B;AAC1E,MAAa,iCAAiC,OAAOC,gCAAiC;AACtF,MAAa,kCAAkC,OAAOC,iCAAkC;AACxF,MAAa,8BAA8B,OAAOC,6BAA8B;AAChF,MAAa,+BAA+B,OAAOC,8BAA+B;;AAElF,MAAa,wBAAwB;AAErC,SAAS,OAAU,MAAY;CAC9B,OAAO;AACR"}
|
|
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","rawLinkConfigCustomtypesSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawFieldOrSliceTypeSchema","rawStaticCustomTypeModelTabSchema","rawDynamicCustomTypeModelTabSchema","rawStaticCustomTypeModelSchema","rawDynamicCustomTypeModelSchema"],"sources":["../src/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport {\n\tLinkModelSchema as rawLinkModelSchema,\n\tLinkConfigCustomtypesSchema as rawLinkConfigCustomtypesSchema,\n} from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n\tFieldOrSliceTypeSchema as rawFieldOrSliceTypeSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toZod4(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toZod4(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toZod4(rawImageContentViewSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const LinkConfigCustomtypesSchema = toZod4(rawLinkConfigCustomtypesSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toZod4(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const FieldOrSliceTypeSchema = toZod4(rawFieldOrSliceTypeSchema)\nexport const StaticCustomTypeModelTabSchema = toZod4(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toZod4(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toZod4(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHA,MAAa,cAAc,OAAOA,aAAc;AAChD,MAAa,cAAc,OAAOC,aAAc;AAChD,MAAa,sBAAsB,OAAOC,qBAAsB;AAChE,MAAa,uBAAuB,OAAOC,sBAAuB;AAClE,MAAa,kBAAkB,OAAOC,iBAAkB;AAGxD,MAAa,uBAAuB,OAAOC,sBAAuB;AAClE,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,oBAAoB,OAAOC,mBAAoB;AAC5D,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,wBAAwB,OAAOC,uBAAwB;AACpE,MAAa,0BAA0B,OAAOC,yBAA0B;AACxE,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,oBAAoB,OAAOC,mBAAoB;AAC5D,MAAa,sBAAsB,OAAOC,qBAAsB;AAChE,MAAa,qBAAqB,OAAOC,oBAAqB;AAC9D,MAAa,sBAAsB,OAAOC,qBAAsB;AAChE,MAAa,yBAAyB,OAAOC,wBAAyB;AACtE,MAAa,2BAA2B,OAAOC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
1
|
{
|
|
2
2
|
"name": "@prismicio/types-internal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0-pr.39.a4627e7",
|
|
4
4
|
"description": "TypeScript types and runtime parsers for Prismic data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"prismic",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"@prismicio/types-internal-v3": "npm:@prismicio/types-internal@^3.17.2",
|
|
60
60
|
"@prismicio/types-internal-v4-1-0": "npm:@prismicio/types-internal@4.1.0",
|
|
61
61
|
"@types/node": "^26.1.1",
|
|
62
|
-
"@vitest/coverage-v8": "^4.1.
|
|
62
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
63
63
|
"io-ts": "^2.2.22",
|
|
64
|
-
"oxfmt": "^0.
|
|
64
|
+
"oxfmt": "^0.67.0",
|
|
65
65
|
"oxlint": "^1.74.0",
|
|
66
66
|
"tsdown": "^0.22.8",
|
|
67
67
|
"typescript": "^7.0.2",
|
|
68
|
-
"vitest": "^4.1.
|
|
68
|
+
"vitest": "^4.1.11",
|
|
69
69
|
"zod": "^4.4.3"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
@@ -79,5 +79,8 @@
|
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=22"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"uuid": "^11.1.1"
|
|
82
85
|
}
|
|
83
86
|
}
|
|
@@ -63,7 +63,7 @@ export const GroupItemLegacyCodec = (
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
for (const [key, content] of input.value) {
|
|
66
|
-
const itemCtx = getFieldCtx({ fieldKey: key, ctx })
|
|
66
|
+
const itemCtx = getFieldCtx({ fieldKey: key, ctx: groupItemCtx })
|
|
67
67
|
|
|
68
68
|
const result = NestableAndGroupLegacyCodec(itemCtx).fromContent(content)
|
|
69
69
|
if (result) {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { v5 as uuidV5 } from "uuid"
|
|
1
2
|
import type { z } from "zod/mini"
|
|
2
3
|
|
|
3
4
|
import type { FieldOrSliceType } from "../../model/widget"
|
|
4
5
|
|
|
6
|
+
function uuidV5ForPath(path: string[]): string {
|
|
7
|
+
return uuidV5(JSON.stringify(path), uuidV5.URL)
|
|
8
|
+
}
|
|
9
|
+
|
|
5
10
|
interface LegacyContentCtxParams {
|
|
6
11
|
fieldKey: string
|
|
7
12
|
contentKey?: string
|
|
@@ -47,7 +52,8 @@ export class LegacyContentCtx {
|
|
|
47
52
|
this.keyOfType = `${prefixedKey}_TYPE`
|
|
48
53
|
this.keyOfKey = `${prefixedContentKey}_KEY`
|
|
49
54
|
this.fieldType = this.allTypes.get(this.prefixedKey)
|
|
50
|
-
this.fieldContentKey =
|
|
55
|
+
this.fieldContentKey =
|
|
56
|
+
this.allKeys.get(prefixedContentKey) ?? uuidV5ForPath([...this.contentPath, this.contentKey])
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
withContentKey(contentKey: string): LegacyContentCtx {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
DynamicCustomTypeModel,
|
|
3
3
|
DynamicCustomTypeModelTab,
|
|
4
|
+
FlattenedStaticCustomTypeModel,
|
|
4
5
|
StaticCustomTypeModel,
|
|
5
6
|
StaticCustomTypeModelTab,
|
|
6
7
|
} from "../model/customType"
|
|
@@ -92,11 +93,11 @@ export function flatten(
|
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
export function collectSharedSlices(
|
|
95
|
-
customType: StaticCustomTypeModel,
|
|
96
|
+
customType: StaticCustomTypeModel | FlattenedStaticCustomTypeModel,
|
|
96
97
|
): Record<string, SharedSliceModel> {
|
|
97
98
|
const sharedSlices: Record<string, SharedSliceModel> = {}
|
|
98
99
|
|
|
99
|
-
const flattened = flatten(customType)
|
|
100
|
+
const flattened = "fields" in customType ? customType.fields : flatten(customType)
|
|
100
101
|
for (const widget of Object.values(flattened)) {
|
|
101
102
|
if (widget.type === "Slices" || widget.type === "Choice") {
|
|
102
103
|
for (const [id, model] of Object.entries(widget.config?.choices || {})) {
|
|
@@ -5,10 +5,8 @@ import { defaultCtx } from "../content/codec/legacyContentCtx"
|
|
|
5
5
|
import type { DocumentContent } from "../content/document"
|
|
6
6
|
import type { DocumentLegacy } from "../content/legacy/document"
|
|
7
7
|
import { DocumentLegacySchema } from "../content/legacy/document"
|
|
8
|
-
import { isNestableContent } from "../content/nestable"
|
|
9
|
-
import type { CompositeSliceItemContent, LegacySliceItemContent } from "../content/slices"
|
|
10
8
|
import type { WidgetContent } from "../content/widget"
|
|
11
|
-
import type { StaticCustomTypeModel } from "../model/customType"
|
|
9
|
+
import type { FlattenedStaticCustomTypeModel, StaticCustomTypeModel } from "../model/customType"
|
|
12
10
|
import type { FieldOrSliceType } from "../model/widget"
|
|
13
11
|
import { FieldOrSliceTypeSchema } from "../model/widget"
|
|
14
12
|
import * as contentPath from "./contentPath"
|
|
@@ -42,6 +40,24 @@ export function collectWidgets<TWidgetContent extends WidgetContent>(
|
|
|
42
40
|
return collected
|
|
43
41
|
}
|
|
44
42
|
|
|
43
|
+
export function migrateDocument(
|
|
44
|
+
document: DocumentContent,
|
|
45
|
+
model: StaticCustomTypeModel | FlattenedStaticCustomTypeModel,
|
|
46
|
+
): DocumentContent {
|
|
47
|
+
const needsMigration = Object.values(customTypeModel.collectSharedSlices(model)).some((slice) =>
|
|
48
|
+
Boolean(slice.legacyPaths),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
if (needsMigration) {
|
|
52
|
+
return traverseDocumentContent(document, {
|
|
53
|
+
model,
|
|
54
|
+
transformSlice: sliceContent.migrateSliceItem,
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return document
|
|
59
|
+
}
|
|
60
|
+
|
|
45
61
|
export function fromLegacy(
|
|
46
62
|
legacy: DocumentLegacy,
|
|
47
63
|
model: StaticCustomTypeModel,
|
|
@@ -61,7 +77,7 @@ export function fromLegacy(
|
|
|
61
77
|
types.set(key.substring(0, key.length - 5), parsed.data)
|
|
62
78
|
}
|
|
63
79
|
} else if (key.endsWith("_KEY")) {
|
|
64
|
-
const parsed = z.uuidv4().safeParse(value)
|
|
80
|
+
const parsed = z.union([z.uuidv4(), z.uuid({ version: "v5" })]).safeParse(value)
|
|
65
81
|
if (parsed.success) {
|
|
66
82
|
keys.set(key.substring(0, key.length - 4), parsed.data)
|
|
67
83
|
}
|
|
@@ -75,30 +91,7 @@ export function fromLegacy(
|
|
|
75
91
|
return
|
|
76
92
|
}
|
|
77
93
|
|
|
78
|
-
|
|
79
|
-
Boolean(slice.legacyPaths),
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
if (needsMigration) {
|
|
83
|
-
return traverseDocumentContent(result.data, {
|
|
84
|
-
model,
|
|
85
|
-
transformSlice: ({ content, model }) => {
|
|
86
|
-
if (model?.type === "SharedSlice") {
|
|
87
|
-
if (content.widget.__TYPE__ === "CompositeSliceContent") {
|
|
88
|
-
return sliceContent.compositeToShared(content as CompositeSliceItemContent, model)
|
|
89
|
-
} else if (
|
|
90
|
-
content.widget.__TYPE__ === "GroupContentType" ||
|
|
91
|
-
isNestableContent(content.widget)
|
|
92
|
-
) {
|
|
93
|
-
return sliceContent.legacyToShared(content as LegacySliceItemContent, model)
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return content
|
|
97
|
-
},
|
|
98
|
-
})
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return result.data
|
|
94
|
+
return migrateDocument(result.data, model)
|
|
102
95
|
}
|
|
103
96
|
|
|
104
97
|
export function toLegacy(document: DocumentContent): DocumentLegacy {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GroupItemContent } from "../content/group"
|
|
2
|
+
import { isNestableContent } from "../content/nestable"
|
|
2
3
|
import type { SharedSliceContent } from "../content/slice"
|
|
3
4
|
import type {
|
|
4
5
|
CompositeSliceItemContent,
|
|
@@ -6,6 +7,21 @@ import type {
|
|
|
6
7
|
SharedSliceItemContent,
|
|
7
8
|
} from "../content/slices"
|
|
8
9
|
import type { SharedSliceVariationContentModel } from "../model/slice"
|
|
10
|
+
import type { TraverseSliceContentFunction } from "./traverseContent"
|
|
11
|
+
|
|
12
|
+
export const migrateSliceItem: TraverseSliceContentFunction = ({ content, model }) => {
|
|
13
|
+
if (model?.type === "SharedSlice") {
|
|
14
|
+
if (content.widget.__TYPE__ === "CompositeSliceContent") {
|
|
15
|
+
return compositeToShared(content as CompositeSliceItemContent, model)
|
|
16
|
+
} else if (
|
|
17
|
+
content.widget.__TYPE__ === "GroupContentType" ||
|
|
18
|
+
isNestableContent(content.widget)
|
|
19
|
+
) {
|
|
20
|
+
return legacyToShared(content as LegacySliceItemContent, model)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return content
|
|
24
|
+
}
|
|
9
25
|
|
|
10
26
|
export const legacyToShared = (
|
|
11
27
|
content: LegacySliceItemContent,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "../content/slices"
|
|
18
18
|
import { TableContentType, type TableContent } from "../content/table"
|
|
19
19
|
import type { WidgetContent } from "../content/widget"
|
|
20
|
-
import type { StaticCustomTypeModel } from "../model/customType"
|
|
20
|
+
import type { FlattenedStaticCustomTypeModel, StaticCustomTypeModel } from "../model/customType"
|
|
21
21
|
import type { GroupModel, NestedGroupModel } from "../model/group"
|
|
22
22
|
import type { LinkModel } from "../model/link"
|
|
23
23
|
import type { NestableModel } from "../model/nestable"
|
|
@@ -36,7 +36,7 @@ import * as contentPath from "./contentPath"
|
|
|
36
36
|
import * as customTypeModel from "./customTypeModel"
|
|
37
37
|
|
|
38
38
|
type TraverseDocumentContentConfig = {
|
|
39
|
-
model?: StaticCustomTypeModel
|
|
39
|
+
model?: StaticCustomTypeModel | FlattenedStaticCustomTypeModel
|
|
40
40
|
transformWidget?: TraverseWidgetContentFunction
|
|
41
41
|
transformSlice?: TraverseSliceContentFunction
|
|
42
42
|
}
|
|
@@ -48,17 +48,20 @@ export function traverseDocumentContent(
|
|
|
48
48
|
const { model, transformWidget, transformSlice } = config
|
|
49
49
|
|
|
50
50
|
// Remove tabs from custom type model
|
|
51
|
-
const flatModel =
|
|
51
|
+
const flatModel =
|
|
52
|
+
model && !("fields" in model)
|
|
53
|
+
? { customTypeId: model.id, fields: customTypeModel.flatten(model) }
|
|
54
|
+
: model
|
|
52
55
|
|
|
53
56
|
const traversed: DocumentContent = {}
|
|
54
57
|
for (const [key, content] of Object.entries(document)) {
|
|
55
58
|
const path = contentPath.make(
|
|
56
|
-
{ key:
|
|
59
|
+
{ key: flatModel?.customTypeId, type: "CustomType" },
|
|
57
60
|
{ key, type: "Widget" },
|
|
58
61
|
)
|
|
59
62
|
|
|
60
63
|
const traversedContent = traverseWidgetContent(path, key, key, content, {
|
|
61
|
-
model: flatModel[key],
|
|
64
|
+
model: flatModel?.fields[key],
|
|
62
65
|
transformWidget,
|
|
63
66
|
transformSlice,
|
|
64
67
|
})
|
package/src/index.ts
CHANGED
|
@@ -64,6 +64,7 @@ export type {
|
|
|
64
64
|
CustomTypeModel,
|
|
65
65
|
StaticCustomTypeModelTab,
|
|
66
66
|
DynamicCustomTypeModelTab,
|
|
67
|
+
FlattenedStaticCustomTypeModel,
|
|
67
68
|
} from "./model/customType"
|
|
68
69
|
export type { DateModel } from "./model/date"
|
|
69
70
|
export type { AddedDiff, RemovedDiff, UpdatedDiff, Diff } from "./model/diff/changes"
|
|
@@ -83,7 +84,7 @@ export type { GeoPointModel } from "./model/geopoint"
|
|
|
83
84
|
export type { GroupModel, NestedGroupModel } from "./model/group"
|
|
84
85
|
export type { ImageModel } from "./model/image"
|
|
85
86
|
export type { IntegrationFieldModel } from "./model/integrationField"
|
|
86
|
-
export type { LinkModel } from "./model/link"
|
|
87
|
+
export type { LinkModel, LinkConfigCustomtypes } from "./model/link"
|
|
87
88
|
export type { NestableModel } from "./model/nestable"
|
|
88
89
|
export type { NumberModel } from "./model/number"
|
|
89
90
|
export type { RangeModel } from "./model/range"
|
|
@@ -105,11 +106,16 @@ export type {
|
|
|
105
106
|
} from "./model/slice"
|
|
106
107
|
export type { DynamicSlicesModel, StaticSlicesModel } from "./model/slices"
|
|
107
108
|
export type { TableModel } from "./model/table"
|
|
108
|
-
export { TableCellModelNodeTypes } from "./model/table"
|
|
109
|
+
export { TableCellModel, TableCellModelNodeTypes } from "./model/table"
|
|
109
110
|
export type { TextModel } from "./model/text"
|
|
110
111
|
export type { TimestampModel } from "./model/timestamp"
|
|
111
112
|
export type { UIDModel } from "./model/uid"
|
|
112
|
-
export type {
|
|
113
|
+
export type {
|
|
114
|
+
StaticWidgetModel,
|
|
115
|
+
DynamicWidgetModel,
|
|
116
|
+
FieldModelType,
|
|
117
|
+
FieldOrSliceType,
|
|
118
|
+
} from "./model/widget"
|
|
113
119
|
|
|
114
120
|
// Legacy
|
|
115
121
|
export { LegacyContentCtx, getFieldCtx, defaultCtx } from "./content/codec/legacyContentCtx"
|
package/src/io-ts.ts
CHANGED
|
@@ -112,7 +112,10 @@ import {
|
|
|
112
112
|
} from "./model/group"
|
|
113
113
|
import { ImageModelSchema as rawImageModelSchema } from "./model/image"
|
|
114
114
|
import { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from "./model/integrationField"
|
|
115
|
-
import {
|
|
115
|
+
import {
|
|
116
|
+
LinkModelSchema as rawLinkModelSchema,
|
|
117
|
+
LinkConfigCustomtypesSchema as rawLinkConfigCustomtypesSchema,
|
|
118
|
+
} from "./model/link"
|
|
116
119
|
import { NestableModelSchema as rawNestableModelSchema } from "./model/nestable"
|
|
117
120
|
import { NumberModelSchema as rawNumberModelSchema } from "./model/number"
|
|
118
121
|
import { RangeModelSchema as rawRangeModelSchema } from "./model/range"
|
|
@@ -140,6 +143,7 @@ import { UIDModelSchema as rawUIDModelSchema } from "./model/uid"
|
|
|
140
143
|
import {
|
|
141
144
|
StaticWidgetModelSchema as rawStaticWidgetModelSchema,
|
|
142
145
|
DynamicWidgetModelSchema as rawDynamicWidgetModelSchema,
|
|
146
|
+
FieldOrSliceTypeSchema as rawFieldOrSliceTypeSchema,
|
|
143
147
|
} from "./model/widget"
|
|
144
148
|
|
|
145
149
|
// Common
|
|
@@ -231,6 +235,7 @@ export const GeoPointModelSchema = toIOTS(rawGeoPointModelSchema)
|
|
|
231
235
|
export const ImageModelSchema = toIOTS(rawImageModelSchema)
|
|
232
236
|
export const IntegrationFieldModelSchema = toIOTS(rawIntegrationFieldModelSchema)
|
|
233
237
|
export const LinkModelSchema = toIOTS(rawLinkModelSchema)
|
|
238
|
+
export const LinkConfigCustomtypesSchema = toIOTS(rawLinkConfigCustomtypesSchema)
|
|
234
239
|
export const NestableModelSchema = toIOTS(rawNestableModelSchema)
|
|
235
240
|
export const NumberModelSchema = toIOTS(rawNumberModelSchema)
|
|
236
241
|
export const RangeModelSchema = toIOTS(rawRangeModelSchema)
|
|
@@ -255,6 +260,7 @@ export const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)
|
|
|
255
260
|
export const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)
|
|
256
261
|
export const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)
|
|
257
262
|
export const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)
|
|
263
|
+
export const FieldOrSliceTypeSchema = toIOTS(rawFieldOrSliceTypeSchema)
|
|
258
264
|
export const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)
|
|
259
265
|
export const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)
|
|
260
266
|
export const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)
|
package/src/model/customType.ts
CHANGED
|
@@ -78,6 +78,11 @@ const createCustomTypeSchema = <
|
|
|
78
78
|
export const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)
|
|
79
79
|
export type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>
|
|
80
80
|
|
|
81
|
+
export type FlattenedStaticCustomTypeModel = {
|
|
82
|
+
customTypeId: string
|
|
83
|
+
fields: StaticCustomTypeModelTab
|
|
84
|
+
}
|
|
85
|
+
|
|
81
86
|
export const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)
|
|
82
87
|
export type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>
|
|
83
88
|
|
package/src/model/link.ts
CHANGED
|
@@ -75,7 +75,7 @@ const CustomTypeLevel1Schema = z.union([
|
|
|
75
75
|
z.object({ id: z.string(), fields: CustomTypeLevel1FieldsSchema }),
|
|
76
76
|
])
|
|
77
77
|
|
|
78
|
-
const
|
|
78
|
+
export const LinkConfigCustomtypesSchema = z.array(CustomTypeLevel1Schema).check(({ value, issues }) => {
|
|
79
79
|
const cts = value as ({ id: string } | string)[]
|
|
80
80
|
const push = (message: string) => issues.push({ code: "custom", input: value, message })
|
|
81
81
|
const strings = new Set<string>()
|
|
@@ -104,6 +104,8 @@ const CustomTypesSchema = z.array(CustomTypeLevel1Schema).check(({ value, issues
|
|
|
104
104
|
}
|
|
105
105
|
})
|
|
106
106
|
|
|
107
|
+
export type LinkConfigCustomtypes = z.infer<typeof LinkConfigCustomtypesSchema>
|
|
108
|
+
|
|
107
109
|
// --- Select with fallback to null ---
|
|
108
110
|
|
|
109
111
|
const SelectWithFallbackSchema = z.pipe(
|
|
@@ -123,7 +125,7 @@ const LinkConfigSchema = z.object({
|
|
|
123
125
|
useAsTitle: z.optional(z.boolean()),
|
|
124
126
|
placeholder: z.optional(z.string()),
|
|
125
127
|
select: z.optional(SelectWithFallbackSchema),
|
|
126
|
-
customtypes: z.optional(
|
|
128
|
+
customtypes: z.optional(LinkConfigCustomtypesSchema),
|
|
127
129
|
masks: z.optional(MasksArrayStringSchema),
|
|
128
130
|
tags: z.optional(MasksArrayStringSchema),
|
|
129
131
|
allowTargetBlank: z.optional(z.boolean()),
|
package/src/zod4.ts
CHANGED
|
@@ -76,7 +76,10 @@ import {
|
|
|
76
76
|
} from "./model/group"
|
|
77
77
|
import { ImageModelSchema as rawImageModelSchema } from "./model/image"
|
|
78
78
|
import { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from "./model/integrationField"
|
|
79
|
-
import {
|
|
79
|
+
import {
|
|
80
|
+
LinkModelSchema as rawLinkModelSchema,
|
|
81
|
+
LinkConfigCustomtypesSchema as rawLinkConfigCustomtypesSchema,
|
|
82
|
+
} from "./model/link"
|
|
80
83
|
import { NestableModelSchema as rawNestableModelSchema } from "./model/nestable"
|
|
81
84
|
import { NumberModelSchema as rawNumberModelSchema } from "./model/number"
|
|
82
85
|
import { RangeModelSchema as rawRangeModelSchema } from "./model/range"
|
|
@@ -104,6 +107,7 @@ import { UIDModelSchema as rawUIDModelSchema } from "./model/uid"
|
|
|
104
107
|
import {
|
|
105
108
|
StaticWidgetModelSchema as rawStaticWidgetModelSchema,
|
|
106
109
|
DynamicWidgetModelSchema as rawDynamicWidgetModelSchema,
|
|
110
|
+
FieldOrSliceTypeSchema as rawFieldOrSliceTypeSchema,
|
|
107
111
|
} from "./model/widget"
|
|
108
112
|
|
|
109
113
|
// Common
|
|
@@ -163,6 +167,7 @@ export const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)
|
|
|
163
167
|
export const ImageModelSchema = toZod4(rawImageModelSchema)
|
|
164
168
|
export const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)
|
|
165
169
|
export const LinkModelSchema = toZod4(rawLinkModelSchema)
|
|
170
|
+
export const LinkConfigCustomtypesSchema = toZod4(rawLinkConfigCustomtypesSchema)
|
|
166
171
|
export const NestableModelSchema = toZod4(rawNestableModelSchema)
|
|
167
172
|
export const NumberModelSchema = toZod4(rawNumberModelSchema)
|
|
168
173
|
export const RangeModelSchema = toZod4(rawRangeModelSchema)
|
|
@@ -187,6 +192,7 @@ export const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)
|
|
|
187
192
|
export const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)
|
|
188
193
|
export const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)
|
|
189
194
|
export const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)
|
|
195
|
+
export const FieldOrSliceTypeSchema = toZod4(rawFieldOrSliceTypeSchema)
|
|
190
196
|
export const StaticCustomTypeModelTabSchema = toZod4(rawStaticCustomTypeModelTabSchema)
|
|
191
197
|
export const DynamicCustomTypeModelTabSchema = toZod4(rawDynamicCustomTypeModelTabSchema)
|
|
192
198
|
export const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)
|