@prismicio/types-internal 4.7.0 → 4.8.0-pr.33.be0224f
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 +4 -1
- 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/io-ts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io-ts.d.ts","names":[],"sources":["../src/io-ts.ts"],"mappings":";;;;;;;;;;;;;;;cAiJa,aAAW,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,aAAW,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,qBAAmB,EAAA;cACnB,sBAAoB,EAAA;cACpB,iBAAe,EAAA;cAGf,sBAAoB,EAAA;;;;;;;cACpB,oBAAkB,EAAA;;;;;;;;;cAClB,mBAAiB,EAAA;;;;;;;;;cACjB,oBAAkB,EAAA;;;;;;;cAClB,uBAAqB,EAAA;;;;;;;;;;;;;cACrB,yBAAuB,EAAA;;;;;;MAAvB;;;;;;;;;cACA,wBAAsB,EAAA;;;;;;MAAtB;;;;;;;;;cACA,mBAAiB,EAAA;;;;;;MAAjB;;;;;;;;;cACA,qBAAmB,EAAA;;;;;;;;;cACnB,oBAAkB,EAAA;;;;;;;;;cAClB,qBAAmB,EAAA;;;;;;;;;cACnB,wBAAsB,EAAA;;;;;cACtB,0BAAwB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,0BAAwB,EAAA,KAAxB,oBAAwB;cACxB,wBAAsB,EAAA;cACtB,gCAA8B,EAAA,KAAA,eAA9B,oBAA8B,eAAA;cAC9B,iCAA+B,EAAA,KAAA,eAA/B,qBAA+B,eAAA;cAC/B,6BAA2B,EAAA;;;;sCAA3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACA,8BAA4B,EAAA;;;;sCAA5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEA,uBAAqB,EAAA;;;;sCAArB"}
|
package/dist/io-ts.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";
|
|
@@ -59,7 +59,7 @@ import { DocumentLegacyCodec } from "./content/codec/document.js";
|
|
|
59
59
|
import { CompositeSliceModelSchema as CompositeSliceModelSchema$1, DynamicSliceModelSchema as DynamicSliceModelSchema$1, LegacySliceModelSchema as LegacySliceModelSchema$1, SharedSliceModelSchema as SharedSliceModelSchema$1, SharedSliceModelVariationSchema as SharedSliceModelVariationSchema$1, SharedSliceRefModelSchema as SharedSliceRefModelSchema$1, SliceContentModelSchema as SliceContentModelSchema$1, StaticSliceModelSchema as StaticSliceModelSchema$1 } from "./model/slice.js";
|
|
60
60
|
import { DynamicSlicesModelSchema as DynamicSlicesModelSchema$1, StaticSlicesModelSchema as StaticSlicesModelSchema$1 } from "./model/slices.js";
|
|
61
61
|
import { UIDModelSchema as UIDModelSchema$1 } from "./model/uid.js";
|
|
62
|
-
import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
|
|
62
|
+
import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, FieldOrSliceTypeSchema as FieldOrSliceTypeSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
|
|
63
63
|
import { AssetSchema as AssetSchema$1 } from "./common/asset.js";
|
|
64
64
|
import { EmbedSchema as EmbedSchema$1 } from "./common/embed.js";
|
|
65
65
|
import { HexaColorCodeSchema as HexaColorCodeSchema$1 } from "./common/hexaColorCode.js";
|
|
@@ -148,6 +148,7 @@ const GeoPointModelSchema = toIOTS(GeoPointModelSchema$1);
|
|
|
148
148
|
const ImageModelSchema = toIOTS(ImageModelSchema$1);
|
|
149
149
|
const IntegrationFieldModelSchema = toIOTS(IntegrationFieldModelSchema$1);
|
|
150
150
|
const LinkModelSchema = toIOTS(LinkModelSchema$1);
|
|
151
|
+
const LinkConfigCustomtypesSchema = toIOTS(LinkConfigCustomtypesSchema$1);
|
|
151
152
|
const NestableModelSchema = toIOTS(NestableModelSchema$1);
|
|
152
153
|
const NumberModelSchema = toIOTS(NumberModelSchema$1);
|
|
153
154
|
const RangeModelSchema = toIOTS(RangeModelSchema$1);
|
|
@@ -172,6 +173,7 @@ const DynamicSlicesModelSchema = toIOTS(DynamicSlicesModelSchema$1);
|
|
|
172
173
|
const StaticSlicesModelSchema = toIOTS(StaticSlicesModelSchema$1);
|
|
173
174
|
const StaticWidgetModelSchema = toIOTS(StaticWidgetModelSchema$1);
|
|
174
175
|
const DynamicWidgetModelSchema = toIOTS(DynamicWidgetModelSchema$1);
|
|
176
|
+
const FieldOrSliceTypeSchema = toIOTS(FieldOrSliceTypeSchema$1);
|
|
175
177
|
const StaticCustomTypeModelTabSchema = toIOTS(StaticCustomTypeModelTabSchema$1);
|
|
176
178
|
const DynamicCustomTypeModelTabSchema = toIOTS(DynamicCustomTypeModelTabSchema$1);
|
|
177
179
|
const StaticCustomTypeModelSchema = toIOTS(StaticCustomTypeModelSchema$1);
|
|
@@ -220,6 +222,6 @@ function formatIssue(issue, input) {
|
|
|
220
222
|
return issue.message;
|
|
221
223
|
}
|
|
222
224
|
//#endregion
|
|
223
|
-
export { AssetSchema, BooleanContentSchema, BooleanLegacy, BooleanModelSchema, ColorContentSchema, ColorLegacy, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceLegacy, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateLegacy, DateModelSchema, DocumentContentSchema, DocumentLegacy, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedLegacy, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLegacy, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointLegacy, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupItemLegacy, GroupLegacy, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageLegacy, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldLegacy, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceLegacy, LegacySliceModelSchema, LinkContentSchema, LinkLegacy, LinkModelSchema, NestableContentSchema, NestableLegacy, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberLegacy, NumberModelSchema, RangeContentSchema, RangeLegacy, RangeModelSchema, RepeatableContentSchema, RepeatableLegacy, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextLegacy, RichTextModelSchema, SelectContentSchema, SelectLegacy, SelectModelSchema, SeparatorContentSchema, SeparatorLegacy, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceLegacy, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SliceItemLegacy, SliceLegacy, SlicesContentSchema, SlicesLegacy, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableLegacy, TableModelSchema, TextContentSchema, TextLegacy, TextModelSchema, TimestampContentSchema, TimestampLegacy, TimestampModelSchema, UIDContentSchema, UIDLegacy, UIDModelSchema, WidgetContentSchema, WidgetKeySchema, WidgetLegacy };
|
|
225
|
+
export { AssetSchema, BooleanContentSchema, BooleanLegacy, BooleanModelSchema, ColorContentSchema, ColorLegacy, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceLegacy, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateLegacy, DateModelSchema, DocumentContentSchema, DocumentLegacy, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedLegacy, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLegacy, EmptyLinkContentSchema, FieldContentSchema, FieldOrSliceTypeSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointLegacy, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupItemLegacy, GroupLegacy, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageLegacy, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldLegacy, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceLegacy, LegacySliceModelSchema, LinkConfigCustomtypesSchema, LinkContentSchema, LinkLegacy, LinkModelSchema, NestableContentSchema, NestableLegacy, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberLegacy, NumberModelSchema, RangeContentSchema, RangeLegacy, RangeModelSchema, RepeatableContentSchema, RepeatableLegacy, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextLegacy, RichTextModelSchema, SelectContentSchema, SelectLegacy, SelectModelSchema, SeparatorContentSchema, SeparatorLegacy, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceLegacy, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SliceItemLegacy, SliceLegacy, SlicesContentSchema, SlicesLegacy, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableLegacy, TableModelSchema, TextContentSchema, TextLegacy, TextModelSchema, TimestampContentSchema, TimestampLegacy, TimestampModelSchema, UIDContentSchema, UIDLegacy, UIDModelSchema, WidgetContentSchema, WidgetKeySchema, WidgetLegacy };
|
|
224
226
|
|
|
225
227
|
//# sourceMappingURL=io-ts.js.map
|
package/dist/io-ts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io-ts.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticCustomTypeModelTabSchema","rawDynamicCustomTypeModelTabSchema","rawStaticCustomTypeModelSchema","rawDynamicCustomTypeModelSchema"],"sources":["../src/io-ts.ts"],"sourcesContent":["import * as t from \"io-ts\"\nimport type { ZodMiniType } from \"zod/mini\"\n\n// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { BooleanLegacyCodec } from \"./content/codec/boolean\"\nimport { DocumentLegacyCodec } from \"./content/codec/document\"\nimport { EmbedLegacyCodec } from \"./content/codec/embed\"\nimport { EmptyLegacyCodec } from \"./content/codec/empty\"\nimport {\n\tColorLegacyCodec,\n\tDateLegacyCodec,\n\tNumberLegacyCodec,\n\tRangeLegacyCodec,\n\tSelectLegacyCodec,\n\tTextLegacyCodec,\n\tTimestampLegacyCodec,\n} from \"./content/codec/field\"\nimport { GeoPointLegacyCodec } from \"./content/codec/geopoint\"\nimport { GroupItemLegacyCodec, GroupLegacyCodec } from \"./content/codec/group\"\nimport { ImageLegacyCodec } from \"./content/codec/image\"\nimport { IntegrationFieldLegacyCodec } from \"./content/codec/integrationField\"\nimport type { LegacyCodec } from \"./content/codec/legacyContentCtx\"\nimport { LinkLegacyCodec } from \"./content/codec/link\"\nimport { NestableLegacyCodec } from \"./content/codec/nestable\"\nimport { RepeatableLegacyCodec } from \"./content/codec/repeatable\"\nimport { RichTextLegacyCodec } from \"./content/codec/richText\"\nimport { SeparatorLegacyCodec } from \"./content/codec/separator\"\nimport {\n\tCompositeSliceLegacyCodec,\n\tSharedSliceLegacyCodec,\n\tLegacySliceLegacyCodec,\n\tSliceLegacyCodec,\n} from \"./content/codec/slice\"\nimport { SliceItemLegacyCodec, SlicesLegacyCodec } from \"./content/codec/slices\"\nimport { TableLegacyCodec } from \"./content/codec/table\"\nimport { UIDLegacyCodec } from \"./content/codec/uid\"\nimport { WidgetLegacyCodec } from \"./content/codec/widget\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toIOTS(rawAssetSchema)\nexport const EmbedSchema = toIOTS(rawEmbedSchema)\nexport const HexaColorCodeSchema = toIOTS(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toIOTS(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toIOTS(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toIOTS(rawBooleanContentSchema)\nexport const ColorContentSchema = toIOTS(rawColorContentSchema)\nexport const DateContentSchema = toIOTS(rawDateContentSchema)\nexport const EmptyContentSchema = toIOTS(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toIOTS(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toIOTS(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toIOTS(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toIOTS(rawLinkContentSchema)\nexport const NumberContentSchema = toIOTS(rawNumberContentSchema)\nexport const RangeContentSchema = toIOTS(rawRangeContentSchema)\nexport const SelectContentSchema = toIOTS(rawSelectContentSchema)\nexport const SeparatorContentSchema = toIOTS(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toIOTS(rawSharedSliceContentSchema)\nexport const TextContentSchema = toIOTS(rawTextContentSchema)\nexport const TimestampContentSchema = toIOTS(rawTimestampContentSchema)\nexport const FieldContentSchema = toIOTS(rawFieldContentSchema)\nexport const UIDContentSchema = toIOTS(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toIOTS(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toIOTS(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toIOTS(rawImageContentViewSchema)\nexport const ImageContentSchema = toIOTS(rawImageContentSchema)\nexport const RichTextContentSchema = toIOTS(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toIOTS(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toIOTS(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toIOTS(rawTableContentSchema)\nexport const RepeatableContentSchema = toIOTS(rawRepeatableContentSchema)\nexport const NestableContentSchema = toIOTS(rawNestableContentSchema)\nexport const GroupContentSchema = toIOTS(rawGroupContentSchema)\nexport const GroupItemContentSchema = toIOTS(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toIOTS(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toIOTS(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toIOTS(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toIOTS(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toIOTS(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toIOTS(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toIOTS(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toIOTS(rawSlicesContentSchema)\nexport const WidgetContentSchema = toIOTS(rawWidgetContentSchema)\nexport const DocumentContentSchema = toIOTS(rawDocumentContentSchema)\n\n// Content legacy\nexport const BooleanLegacy = toIOTSCodec(BooleanLegacyCodec)\nexport const EmptyLegacy = toIOTSCodec(EmptyLegacyCodec)\nexport const TextLegacy = toIOTSCodec(TextLegacyCodec)\nexport const ColorLegacy = toIOTSCodec(ColorLegacyCodec)\nexport const DateLegacy = toIOTSCodec(DateLegacyCodec)\nexport const TimestampLegacy = toIOTSCodec(TimestampLegacyCodec)\nexport const NumberLegacy = toIOTSCodec(NumberLegacyCodec)\nexport const RangeLegacy = toIOTSCodec(RangeLegacyCodec)\nexport const SelectLegacy = toIOTSCodec(SelectLegacyCodec)\nexport const GeoPointLegacy = toIOTSCodec(GeoPointLegacyCodec)\nexport const EmbedLegacy = toIOTSCodec(EmbedLegacyCodec)\nexport const ImageLegacy = toIOTSCodec(ImageLegacyCodec)\nexport const LinkLegacy = toIOTSCodec(LinkLegacyCodec)\nexport const RepeatableLegacy = toIOTSCodec(RepeatableLegacyCodec)\nexport const RichTextLegacy = toIOTSCodec(RichTextLegacyCodec)\nexport const SeparatorLegacy = toIOTSCodec(SeparatorLegacyCodec)\nexport const IntegrationFieldLegacy = toIOTSCodec(IntegrationFieldLegacyCodec)\nexport const TableLegacy = toIOTSCodec(TableLegacyCodec)\nexport const NestableLegacy = toIOTSCodec(NestableLegacyCodec)\nexport const UIDLegacy = toIOTSCodec(UIDLegacyCodec)\nexport const GroupItemLegacy = toIOTSCodec(GroupItemLegacyCodec)\nexport const GroupLegacy = toIOTSCodec(GroupLegacyCodec)\nexport const LegacySliceLegacy = toIOTSCodec(LegacySliceLegacyCodec)\nexport const CompositeSliceLegacy = toIOTSCodec(CompositeSliceLegacyCodec)\nexport const SharedSliceLegacy = toIOTSCodec(SharedSliceLegacyCodec)\nexport const SliceLegacy = toIOTSCodec(SliceLegacyCodec)\nexport const SliceItemLegacy = toIOTSCodec(SliceItemLegacyCodec)\nexport const SlicesLegacy = toIOTSCodec(SlicesLegacyCodec)\nexport const WidgetLegacy = toIOTSCodec(WidgetLegacyCodec)\nexport const DocumentLegacy = toIOTSCodec(DocumentLegacyCodec)\n\n// Model\nexport const BooleanModelSchema = toIOTS(rawBooleanModelSchema)\nexport const ColorModelSchema = toIOTS(rawColorModelSchema)\nexport const DateModelSchema = toIOTS(rawDateModelSchema)\nexport const EmbedModelSchema = toIOTS(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toIOTS(rawGeoPointModelSchema)\nexport const ImageModelSchema = toIOTS(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toIOTS(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toIOTS(rawLinkModelSchema)\nexport const NestableModelSchema = toIOTS(rawNestableModelSchema)\nexport const NumberModelSchema = toIOTS(rawNumberModelSchema)\nexport const RangeModelSchema = toIOTS(rawRangeModelSchema)\nexport const RichTextModelSchema = toIOTS(rawRichTextModelSchema)\nexport const SelectModelSchema = toIOTS(rawSelectModelSchema)\nexport const SeparatorModelSchema = toIOTS(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toIOTS(rawSharedSliceModelSchema)\nexport const TableModelSchema = toIOTS(rawTableModelSchema)\nexport const TextModelSchema = toIOTS(rawTextModelSchema)\nexport const TimestampModelSchema = toIOTS(rawTimestampModelSchema)\nexport const UIDModelSchema = toIOTS(rawUIDModelSchema)\nexport const GroupModelSchema = toIOTS(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toIOTS(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toIOTS(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toIOTS(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toIOTS(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toIOTS(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toIOTS(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toIOTS(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toIOTS(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)\nexport const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toIOTS(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toIOTS<T>(type: ZodMiniType<T>): t.Type<T> {\n\treturn new t.Type<T>(\n\t\t\"Type\",\n\t\t(input): input is T => type.safeParse(input).success,\n\t\t(input, context) => {\n\t\t\tconst result = type.safeParse(input)\n\t\t\treturn result.success\n\t\t\t\t? t.success(result.data)\n\t\t\t\t: t.failure(\n\t\t\t\t\t\tinput,\n\t\t\t\t\t\tcontext,\n\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t)\n\t\t},\n\t\tt.identity,\n\t)\n}\n\nfunction toIOTSCodec<TArgs extends unknown[], A, LegacyRaw, AllowUndefined extends boolean>(\n\tcodecFactory: (...args: TArgs) => LegacyCodec<A, LegacyRaw, AllowUndefined>,\n): (\n\t...args: TArgs\n) => t.Type<A, ReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>, unknown> {\n\treturn (...args: TArgs) => {\n\t\tconst codec = codecFactory(...args)\n\t\treturn new t.Type<\n\t\t\tA,\n\t\t\tReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>,\n\t\t\tunknown\n\t\t>(\n\t\t\tcodec.name,\n\t\t\tcodec.is,\n\t\t\t(input, context) => {\n\t\t\t\tconst result = codec.toContent(input)\n\t\t\t\treturn result.success\n\t\t\t\t\t? t.success(result.data)\n\t\t\t\t\t: t.failure(\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t\t)\n\t\t\t},\n\t\t\tcodec.fromContent,\n\t\t)\n\t}\n}\n\ninterface ZodIssue {\n\tcode: string\n\tmessage: string\n\tpath?: PropertyKey[]\n\texpected?: string\n\tvalues?: unknown[]\n\tkeys?: string[]\n}\n\nfunction resolveValue(input: unknown, path: PropertyKey[]): unknown {\n\tlet current = input\n\tfor (const key of path) {\n\t\tif (current == null || typeof current !== \"object\") return undefined\n\t\tcurrent = (current as Record<PropertyKey, unknown>)[key]\n\t}\n\treturn current\n}\n\nfunction formatValue(value: unknown): string {\n\tif (value === null) return \"null\"\n\tif (value === undefined) return \"undefined\"\n\tif (typeof value === \"string\") return JSON.stringify(value)\n\treturn String(value)\n}\n\nfunction formatIssue(issue: ZodIssue, input: unknown): string {\n\tif (issue.code === \"custom\" && issue.message !== \"Invalid input\") {\n\t\treturn issue.message\n\t}\n\n\tconst value = resolveValue(input, issue.path ?? [])\n\tconst pathStr = issue.path?.length ? issue.path.join(\".\") : undefined\n\n\tif (issue.code === \"invalid_value\" && issue.values) {\n\t\tconst expected = issue.values.map(formatValue).join(\", \")\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${expected}`\n\t}\n\n\tif (issue.code === \"invalid_type\" && issue.expected) {\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${issue.expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${issue.expected}`\n\t}\n\n\tif (issue.code === \"unrecognized_keys\" && issue.keys) {\n\t\treturn `Unrecognized key(s): ${issue.keys.join(\", \")}`\n\t}\n\n\treturn issue.message\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiJA,MAAa,cAAc,OAAOA,aAAc;AAChD,MAAa,cAAc,OAAOC,aAAc;AAChD,MAAa,sBAAsB,OAAOC,qBAAsB;AAChE,MAAa,uBAAuB,OAAOC,s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AC7D,IAAI,MAAM,SAAS,YAAY,MAAM,YAAY,iBAChD,OAAO,MAAM;CAGd,MAAM,QAAQ,aAAa,OAAO,MAAM,QAAQ,CAAC,CAAC;CAClD,MAAM,UAAU,MAAM,MAAM,SAAS,MAAM,KAAK,KAAK,GAAG,IAAI,KAAA;CAE5D,IAAI,MAAM,SAAS,mBAAmB,MAAM,QAAQ;EACnD,MAAM,WAAW,MAAM,OAAO,IAAI,WAAW,CAAC,CAAC,KAAK,IAAI;EACxD,OAAO,UACJ,iBAAiB,YAAY,KAAK,EAAE,OAAO,QAAQ,aAAa,aAChE,iBAAiB,YAAY,KAAK,EAAE,aAAa;CACrD;CAEA,IAAI,MAAM,SAAS,kBAAkB,MAAM,UAC1C,OAAO,UACJ,iBAAiB,YAAY,KAAK,EAAE,OAAO,QAAQ,aAAa,MAAM,aACtE,iBAAiB,YAAY,KAAK,EAAE,aAAa,MAAM;CAG3D,IAAI,MAAM,SAAS,uBAAuB,MAAM,MAC/C,OAAO,wBAAwB,MAAM,KAAK,KAAK,IAAI;CAGpD,OAAO,MAAM;AACd"}
|
|
1
|
+
{"version":3,"file":"io-ts.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","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/io-ts.ts"],"sourcesContent":["import * as t from \"io-ts\"\nimport type { ZodMiniType } from \"zod/mini\"\n\n// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { BooleanLegacyCodec } from \"./content/codec/boolean\"\nimport { DocumentLegacyCodec } from \"./content/codec/document\"\nimport { EmbedLegacyCodec } from \"./content/codec/embed\"\nimport { EmptyLegacyCodec } from \"./content/codec/empty\"\nimport {\n\tColorLegacyCodec,\n\tDateLegacyCodec,\n\tNumberLegacyCodec,\n\tRangeLegacyCodec,\n\tSelectLegacyCodec,\n\tTextLegacyCodec,\n\tTimestampLegacyCodec,\n} from \"./content/codec/field\"\nimport { GeoPointLegacyCodec } from \"./content/codec/geopoint\"\nimport { GroupItemLegacyCodec, GroupLegacyCodec } from \"./content/codec/group\"\nimport { ImageLegacyCodec } from \"./content/codec/image\"\nimport { IntegrationFieldLegacyCodec } from \"./content/codec/integrationField\"\nimport type { LegacyCodec } from \"./content/codec/legacyContentCtx\"\nimport { LinkLegacyCodec } from \"./content/codec/link\"\nimport { NestableLegacyCodec } from \"./content/codec/nestable\"\nimport { RepeatableLegacyCodec } from \"./content/codec/repeatable\"\nimport { RichTextLegacyCodec } from \"./content/codec/richText\"\nimport { SeparatorLegacyCodec } from \"./content/codec/separator\"\nimport {\n\tCompositeSliceLegacyCodec,\n\tSharedSliceLegacyCodec,\n\tLegacySliceLegacyCodec,\n\tSliceLegacyCodec,\n} from \"./content/codec/slice\"\nimport { SliceItemLegacyCodec, SlicesLegacyCodec } from \"./content/codec/slices\"\nimport { TableLegacyCodec } from \"./content/codec/table\"\nimport { UIDLegacyCodec } from \"./content/codec/uid\"\nimport { WidgetLegacyCodec } from \"./content/codec/widget\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport {\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 = toIOTS(rawAssetSchema)\nexport const EmbedSchema = toIOTS(rawEmbedSchema)\nexport const HexaColorCodeSchema = toIOTS(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toIOTS(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toIOTS(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toIOTS(rawBooleanContentSchema)\nexport const ColorContentSchema = toIOTS(rawColorContentSchema)\nexport const DateContentSchema = toIOTS(rawDateContentSchema)\nexport const EmptyContentSchema = toIOTS(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toIOTS(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toIOTS(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toIOTS(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toIOTS(rawLinkContentSchema)\nexport const NumberContentSchema = toIOTS(rawNumberContentSchema)\nexport const RangeContentSchema = toIOTS(rawRangeContentSchema)\nexport const SelectContentSchema = toIOTS(rawSelectContentSchema)\nexport const SeparatorContentSchema = toIOTS(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toIOTS(rawSharedSliceContentSchema)\nexport const TextContentSchema = toIOTS(rawTextContentSchema)\nexport const TimestampContentSchema = toIOTS(rawTimestampContentSchema)\nexport const FieldContentSchema = toIOTS(rawFieldContentSchema)\nexport const UIDContentSchema = toIOTS(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toIOTS(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toIOTS(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toIOTS(rawImageContentViewSchema)\nexport const ImageContentSchema = toIOTS(rawImageContentSchema)\nexport const RichTextContentSchema = toIOTS(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toIOTS(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toIOTS(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toIOTS(rawTableContentSchema)\nexport const RepeatableContentSchema = toIOTS(rawRepeatableContentSchema)\nexport const NestableContentSchema = toIOTS(rawNestableContentSchema)\nexport const GroupContentSchema = toIOTS(rawGroupContentSchema)\nexport const GroupItemContentSchema = toIOTS(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toIOTS(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toIOTS(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toIOTS(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toIOTS(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toIOTS(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toIOTS(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toIOTS(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toIOTS(rawSlicesContentSchema)\nexport const WidgetContentSchema = toIOTS(rawWidgetContentSchema)\nexport const DocumentContentSchema = toIOTS(rawDocumentContentSchema)\n\n// Content legacy\nexport const BooleanLegacy = toIOTSCodec(BooleanLegacyCodec)\nexport const EmptyLegacy = toIOTSCodec(EmptyLegacyCodec)\nexport const TextLegacy = toIOTSCodec(TextLegacyCodec)\nexport const ColorLegacy = toIOTSCodec(ColorLegacyCodec)\nexport const DateLegacy = toIOTSCodec(DateLegacyCodec)\nexport const TimestampLegacy = toIOTSCodec(TimestampLegacyCodec)\nexport const NumberLegacy = toIOTSCodec(NumberLegacyCodec)\nexport const RangeLegacy = toIOTSCodec(RangeLegacyCodec)\nexport const SelectLegacy = toIOTSCodec(SelectLegacyCodec)\nexport const GeoPointLegacy = toIOTSCodec(GeoPointLegacyCodec)\nexport const EmbedLegacy = toIOTSCodec(EmbedLegacyCodec)\nexport const ImageLegacy = toIOTSCodec(ImageLegacyCodec)\nexport const LinkLegacy = toIOTSCodec(LinkLegacyCodec)\nexport const RepeatableLegacy = toIOTSCodec(RepeatableLegacyCodec)\nexport const RichTextLegacy = toIOTSCodec(RichTextLegacyCodec)\nexport const SeparatorLegacy = toIOTSCodec(SeparatorLegacyCodec)\nexport const IntegrationFieldLegacy = toIOTSCodec(IntegrationFieldLegacyCodec)\nexport const TableLegacy = toIOTSCodec(TableLegacyCodec)\nexport const NestableLegacy = toIOTSCodec(NestableLegacyCodec)\nexport const UIDLegacy = toIOTSCodec(UIDLegacyCodec)\nexport const GroupItemLegacy = toIOTSCodec(GroupItemLegacyCodec)\nexport const GroupLegacy = toIOTSCodec(GroupLegacyCodec)\nexport const LegacySliceLegacy = toIOTSCodec(LegacySliceLegacyCodec)\nexport const CompositeSliceLegacy = toIOTSCodec(CompositeSliceLegacyCodec)\nexport const SharedSliceLegacy = toIOTSCodec(SharedSliceLegacyCodec)\nexport const SliceLegacy = toIOTSCodec(SliceLegacyCodec)\nexport const SliceItemLegacy = toIOTSCodec(SliceItemLegacyCodec)\nexport const SlicesLegacy = toIOTSCodec(SlicesLegacyCodec)\nexport const WidgetLegacy = toIOTSCodec(WidgetLegacyCodec)\nexport const DocumentLegacy = toIOTSCodec(DocumentLegacyCodec)\n\n// Model\nexport const BooleanModelSchema = toIOTS(rawBooleanModelSchema)\nexport const ColorModelSchema = toIOTS(rawColorModelSchema)\nexport const DateModelSchema = toIOTS(rawDateModelSchema)\nexport const EmbedModelSchema = toIOTS(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toIOTS(rawGeoPointModelSchema)\nexport const ImageModelSchema = toIOTS(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toIOTS(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toIOTS(rawLinkModelSchema)\nexport const LinkConfigCustomtypesSchema = toIOTS(rawLinkConfigCustomtypesSchema)\nexport const NestableModelSchema = toIOTS(rawNestableModelSchema)\nexport const NumberModelSchema = toIOTS(rawNumberModelSchema)\nexport const RangeModelSchema = toIOTS(rawRangeModelSchema)\nexport const RichTextModelSchema = toIOTS(rawRichTextModelSchema)\nexport const SelectModelSchema = toIOTS(rawSelectModelSchema)\nexport const SeparatorModelSchema = toIOTS(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toIOTS(rawSharedSliceModelSchema)\nexport const TableModelSchema = toIOTS(rawTableModelSchema)\nexport const TextModelSchema = toIOTS(rawTextModelSchema)\nexport const TimestampModelSchema = toIOTS(rawTimestampModelSchema)\nexport const UIDModelSchema = toIOTS(rawUIDModelSchema)\nexport const GroupModelSchema = toIOTS(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toIOTS(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toIOTS(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toIOTS(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toIOTS(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toIOTS(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toIOTS(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toIOTS(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toIOTS(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)\nexport const FieldOrSliceTypeSchema = toIOTS(rawFieldOrSliceTypeSchema)\nexport const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toIOTS(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toIOTS<T>(type: ZodMiniType<T>): t.Type<T> {\n\treturn new t.Type<T>(\n\t\t\"Type\",\n\t\t(input): input is T => type.safeParse(input).success,\n\t\t(input, context) => {\n\t\t\tconst result = type.safeParse(input)\n\t\t\treturn result.success\n\t\t\t\t? t.success(result.data)\n\t\t\t\t: t.failure(\n\t\t\t\t\t\tinput,\n\t\t\t\t\t\tcontext,\n\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t)\n\t\t},\n\t\tt.identity,\n\t)\n}\n\nfunction toIOTSCodec<TArgs extends unknown[], A, LegacyRaw, AllowUndefined extends boolean>(\n\tcodecFactory: (...args: TArgs) => LegacyCodec<A, LegacyRaw, AllowUndefined>,\n): (\n\t...args: TArgs\n) => t.Type<A, ReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>, unknown> {\n\treturn (...args: TArgs) => {\n\t\tconst codec = codecFactory(...args)\n\t\treturn new t.Type<\n\t\t\tA,\n\t\t\tReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>,\n\t\t\tunknown\n\t\t>(\n\t\t\tcodec.name,\n\t\t\tcodec.is,\n\t\t\t(input, context) => {\n\t\t\t\tconst result = codec.toContent(input)\n\t\t\t\treturn result.success\n\t\t\t\t\t? t.success(result.data)\n\t\t\t\t\t: t.failure(\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t\t)\n\t\t\t},\n\t\t\tcodec.fromContent,\n\t\t)\n\t}\n}\n\ninterface ZodIssue {\n\tcode: string\n\tmessage: string\n\tpath?: PropertyKey[]\n\texpected?: string\n\tvalues?: unknown[]\n\tkeys?: string[]\n}\n\nfunction resolveValue(input: unknown, path: PropertyKey[]): unknown {\n\tlet current = input\n\tfor (const key of path) {\n\t\tif (current == null || typeof current !== \"object\") return undefined\n\t\tcurrent = (current as Record<PropertyKey, unknown>)[key]\n\t}\n\treturn current\n}\n\nfunction formatValue(value: unknown): string {\n\tif (value === null) return \"null\"\n\tif (value === undefined) return \"undefined\"\n\tif (typeof value === \"string\") return JSON.stringify(value)\n\treturn String(value)\n}\n\nfunction formatIssue(issue: ZodIssue, input: unknown): string {\n\tif (issue.code === \"custom\" && issue.message !== \"Invalid input\") {\n\t\treturn issue.message\n\t}\n\n\tconst value = resolveValue(input, issue.path ?? [])\n\tconst pathStr = issue.path?.length ? issue.path.join(\".\") : undefined\n\n\tif (issue.code === \"invalid_value\" && issue.values) {\n\t\tconst expected = issue.values.map(formatValue).join(\", \")\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${expected}`\n\t}\n\n\tif (issue.code === \"invalid_type\" && issue.expected) {\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${issue.expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${issue.expected}`\n\t}\n\n\tif (issue.code === \"unrecognized_keys\" && issue.keys) {\n\t\treturn `Unrecognized key(s): ${issue.keys.join(\", \")}`\n\t}\n\n\treturn issue.message\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqJA,MAAa,cAAc,OAAOA,aAAc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,MAAM,OAAO;CAC3B,IAAI,UAAU,KAAA,GAAW,OAAO;CAChC,IAAI,OAAO,UAAU,UAAU,OAAO,KAAK,UAAU,KAAK;CAC1D,OAAO,OAAO,KAAK;AACpB;AAEA,SAAS,YAAY,OAAiB,OAAwB;CAC7D,IAAI,MAAM,SAAS,YAAY,MAAM,YAAY,iBAChD,OAAO,MAAM;CAGd,MAAM,QAAQ,aAAa,OAAO,MAAM,QAAQ,CAAC,CAAC;CAClD,MAAM,UAAU,MAAM,MAAM,SAAS,MAAM,KAAK,KAAK,GAAG,IAAI,KAAA;CAE5D,IAAI,MAAM,SAAS,mBAAmB,MAAM,QAAQ;EACnD,MAAM,WAAW,MAAM,OAAO,IAAI,WAAW,CAAC,CAAC,KAAK,IAAI;EACxD,OAAO,UACJ,iBAAiB,YAAY,KAAK,EAAE,OAAO,QAAQ,aAAa,aAChE,iBAAiB,YAAY,KAAK,EAAE,aAAa;CACrD;CAEA,IAAI,MAAM,SAAS,kBAAkB,MAAM,UAC1C,OAAO,UACJ,iBAAiB,YAAY,KAAK,EAAE,OAAO,QAAQ,aAAa,MAAM,aACtE,iBAAiB,YAAY,KAAK,EAAE,aAAa,MAAM;CAG3D,IAAI,MAAM,SAAS,uBAAuB,MAAM,MAC/C,OAAO,wBAAwB,MAAM,KAAK,KAAK,IAAI;CAGpD,OAAO,MAAM;AACd"}
|
|
@@ -29,6 +29,10 @@ declare const StaticCustomTypeModelSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMin
|
|
|
29
29
|
schema: z.ZodMiniLiteral<"@prismicio/types-internal@4.5.0">;
|
|
30
30
|
}, z.core.$strip>], "schema">;
|
|
31
31
|
type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>;
|
|
32
|
+
type FlattenedStaticCustomTypeModel = {
|
|
33
|
+
customTypeId: string;
|
|
34
|
+
fields: StaticCustomTypeModelTab;
|
|
35
|
+
};
|
|
32
36
|
declare const DynamicCustomTypeModelSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
33
37
|
id: z.ZodMiniString<string>;
|
|
34
38
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -56,5 +60,5 @@ type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>;
|
|
|
56
60
|
/** @deprecated Use DynamicCustomTypeModel instead */
|
|
57
61
|
type CustomTypeModel = DynamicCustomTypeModel;
|
|
58
62
|
//#endregion
|
|
59
|
-
export { CustomTypeModel, DynamicCustomTypeModel, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTab, DynamicCustomTypeModelTabSchema, StaticCustomTypeModel, StaticCustomTypeModelSchema, StaticCustomTypeModelTab, StaticCustomTypeModelTabSchema };
|
|
63
|
+
export { CustomTypeModel, DynamicCustomTypeModel, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTab, DynamicCustomTypeModelTabSchema, FlattenedStaticCustomTypeModel, StaticCustomTypeModel, StaticCustomTypeModelSchema, StaticCustomTypeModelTab, StaticCustomTypeModelTabSchema };
|
|
60
64
|
//# sourceMappingURL=customType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customType.d.ts","names":[],"sources":["../../src/model/customType.ts"],"mappings":";;;cAMa,gCAA8B,EAAA,cAAA,EAAA,uBAAA,EAAA,YAAA,4BAAA,EAAA,KAAA,kBAAA;KAC/B,2BAA2B,EAAE,aAAa;cAEzC,iCAA+B,EAAA,cAAA,EAAA,uBAAA,EAAA,YAAA,6BAAA,EAAA,KAAA,kBAAA;KAChC,4BAA4B,EAAE,aAAa;cAmE1C,6BAA2B,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;KAC5B,wBAAwB,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"customType.d.ts","names":[],"sources":["../../src/model/customType.ts"],"mappings":";;;cAMa,gCAA8B,EAAA,cAAA,EAAA,uBAAA,EAAA,YAAA,4BAAA,EAAA,KAAA,kBAAA;KAC/B,2BAA2B,EAAE,aAAa;cAEzC,iCAA+B,EAAA,cAAA,EAAA,uBAAA,EAAA,YAAA,6BAAA,EAAA,KAAA,kBAAA;KAChC,4BAA4B,EAAE,aAAa;cAmE1C,6BAA2B,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;KAC5B,wBAAwB,EAAE,aAAa;KAEvC;EACX;EACA,QAAQ;;cAGI,8BAA4B,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;KAC7B,yBAAyB,EAAE,aAAa;;KAKxC,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customType.js","names":[],"sources":["../../src/model/customType.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport { DynamicWidgetModelSchema, StaticWidgetModelSchema } from \"./widget\"\n\n// Tab\nexport const StaticCustomTypeModelTabSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema)\nexport type StaticCustomTypeModelTab = z.infer<typeof StaticCustomTypeModelTabSchema>\n\nexport const DynamicCustomTypeModelTabSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema)\nexport type DynamicCustomTypeModelTab = z.infer<typeof DynamicCustomTypeModelTabSchema>\n\n// Custom types\nexport const CustomTypeFormatSchema = z.enum([\"page\", \"custom\"])\nexport type CustomTypeFormat = z.infer<typeof CustomTypeFormatSchema>\n\n// Factory to create CustomType schema with configurable section type\nconst createCustomTypeSchema = <\n\tT extends typeof StaticCustomTypeModelTabSchema | typeof DynamicCustomTypeModelTabSchema,\n>(\n\tsectionSchema: T,\n) => {\n\t// 4.4.0 and earlier\n\tconst Schema_4_4_0 = z.object({\n\t\tid: z.string(),\n\t\tlabel: z.nullish(z.string()),\n\t\trepeatable: z._default(z.boolean(), true),\n\t\tjson: z.record(z.string(), sectionSchema),\n\t\tstatus: z._default(z.boolean(), true),\n\t\tformat: z._default(CustomTypeFormatSchema, \"custom\"),\n\t\tschema: z.optional(z.undefined()),\n\t})\n\n\t// 4.5.0 and later\n\tconst Schema_4_5_0 = z\n\t\t.object({\n\t\t\t...Schema_4_4_0.shape,\n\t\t\tschema: z.literal(\"@prismicio/types-internal@4.5.0\"),\n\t\t})\n\t\t.check(\n\t\t\tz.superRefine((model, ctx) => {\n\t\t\t\tconst { json } = model\n\n\t\t\t\tconst tabEntries = Object.entries(json)\n\n\t\t\t\t// A map of widget IDs to the tab they belong to\n\t\t\t\t// to check for ID uniqueness across all tabs.\n\t\t\t\tconst existingWidgetKeys = new Map<string, string>()\n\t\t\t\tfor (const [tabID, tab] of tabEntries) {\n\t\t\t\t\tfor (const [widgetID, widget] of Object.entries(tab)) {\n\t\t\t\t\t\tif (widget.type === \"UID\" && widgetID !== \"uid\") {\n\t\t\t\t\t\t\tctx.addIssue({\n\t\t\t\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\t\t\t\tmessage: `The UID widget ID must be set to \"uid\"`,\n\t\t\t\t\t\t\t\tpath: [\"json\", tabID, widgetID],\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst maybeTabID = existingWidgetKeys.get(widgetID)\n\t\t\t\t\t\tif (typeof maybeTabID === \"string\") {\n\t\t\t\t\t\t\tctx.addIssue({\n\t\t\t\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\t\t\t\tmessage: `${widgetID} already exists in the \"${maybeTabID}\" tab`,\n\t\t\t\t\t\t\t\tpath: [\"json\", tabID, widgetID],\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\texistingWidgetKeys.set(widgetID, tabID)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}),\n\t\t)\n\n\treturn z.discriminatedUnion(\"schema\", [Schema_4_4_0, Schema_4_5_0])\n}\n\nexport const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)\nexport type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>\n\nexport const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)\nexport type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>\n\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n/** @deprecated Use DynamicCustomTypeModel instead */\nexport type CustomTypeModel = DynamicCustomTypeModel\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,iBAAiB,uBAAuB;AAG/F,MAAa,kCAAkC,EAAE,OAAO,iBAAiB,wBAAwB;AAIjG,MAAa,yBAAyB,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC;AAI/D,MAAM,0BAGL,kBACI;CAEJ,MAAM,eAAe,EAAE,OAAO;EAC7B,IAAI,EAAE,OAAO;EACb,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;EAC3B,YAAY,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;EACxC,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,aAAa;EACxC,QAAQ,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;EACpC,QAAQ,EAAE,SAAS,wBAAwB,QAAQ;EACnD,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC;CACjC,CAAC;CAGD,MAAM,eAAe,EACnB,OAAO;EACP,GAAG,aAAa;EAChB,QAAQ,EAAE,QAAQ,iCAAiC;CACpD,CAAC,CAAC,CACD,MACA,EAAE,aAAa,OAAO,QAAQ;EAC7B,MAAM,EAAE,SAAS;EAEjB,MAAM,aAAa,OAAO,QAAQ,IAAI;EAItC,MAAM,qCAAqB,IAAI,IAAoB;EACnD,KAAK,MAAM,CAAC,OAAO,QAAQ,YAC1B,KAAK,MAAM,CAAC,UAAU,WAAW,OAAO,QAAQ,GAAG,GAAG;GACrD,IAAI,OAAO,SAAS,SAAS,aAAa,OACzC,IAAI,SAAS;IACZ,MAAM;IACN,SAAS;IACT,MAAM;KAAC;KAAQ;KAAO;IAAQ;GAC/B,CAAC;GAGF,MAAM,aAAa,mBAAmB,IAAI,QAAQ;GAClD,IAAI,OAAO,eAAe,UAAU;IACnC,IAAI,SAAS;KACZ,MAAM;KACN,SAAS,GAAG,SAAS,0BAA0B,WAAW;KAC1D,MAAM;MAAC;MAAQ;MAAO;KAAQ;IAC/B,CAAC;IACD;GACD;GAEA,mBAAmB,IAAI,UAAU,KAAK;EACvC;CAEF,CAAC,CACF;CAED,OAAO,EAAE,mBAAmB,UAAU,CAAC,cAAc,YAAY,CAAC;AACnE;AAEA,MAAa,8BAA8B,uBAAuB,8BAA8B;
|
|
1
|
+
{"version":3,"file":"customType.js","names":[],"sources":["../../src/model/customType.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport { DynamicWidgetModelSchema, StaticWidgetModelSchema } from \"./widget\"\n\n// Tab\nexport const StaticCustomTypeModelTabSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema)\nexport type StaticCustomTypeModelTab = z.infer<typeof StaticCustomTypeModelTabSchema>\n\nexport const DynamicCustomTypeModelTabSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema)\nexport type DynamicCustomTypeModelTab = z.infer<typeof DynamicCustomTypeModelTabSchema>\n\n// Custom types\nexport const CustomTypeFormatSchema = z.enum([\"page\", \"custom\"])\nexport type CustomTypeFormat = z.infer<typeof CustomTypeFormatSchema>\n\n// Factory to create CustomType schema with configurable section type\nconst createCustomTypeSchema = <\n\tT extends typeof StaticCustomTypeModelTabSchema | typeof DynamicCustomTypeModelTabSchema,\n>(\n\tsectionSchema: T,\n) => {\n\t// 4.4.0 and earlier\n\tconst Schema_4_4_0 = z.object({\n\t\tid: z.string(),\n\t\tlabel: z.nullish(z.string()),\n\t\trepeatable: z._default(z.boolean(), true),\n\t\tjson: z.record(z.string(), sectionSchema),\n\t\tstatus: z._default(z.boolean(), true),\n\t\tformat: z._default(CustomTypeFormatSchema, \"custom\"),\n\t\tschema: z.optional(z.undefined()),\n\t})\n\n\t// 4.5.0 and later\n\tconst Schema_4_5_0 = z\n\t\t.object({\n\t\t\t...Schema_4_4_0.shape,\n\t\t\tschema: z.literal(\"@prismicio/types-internal@4.5.0\"),\n\t\t})\n\t\t.check(\n\t\t\tz.superRefine((model, ctx) => {\n\t\t\t\tconst { json } = model\n\n\t\t\t\tconst tabEntries = Object.entries(json)\n\n\t\t\t\t// A map of widget IDs to the tab they belong to\n\t\t\t\t// to check for ID uniqueness across all tabs.\n\t\t\t\tconst existingWidgetKeys = new Map<string, string>()\n\t\t\t\tfor (const [tabID, tab] of tabEntries) {\n\t\t\t\t\tfor (const [widgetID, widget] of Object.entries(tab)) {\n\t\t\t\t\t\tif (widget.type === \"UID\" && widgetID !== \"uid\") {\n\t\t\t\t\t\t\tctx.addIssue({\n\t\t\t\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\t\t\t\tmessage: `The UID widget ID must be set to \"uid\"`,\n\t\t\t\t\t\t\t\tpath: [\"json\", tabID, widgetID],\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst maybeTabID = existingWidgetKeys.get(widgetID)\n\t\t\t\t\t\tif (typeof maybeTabID === \"string\") {\n\t\t\t\t\t\t\tctx.addIssue({\n\t\t\t\t\t\t\t\tcode: \"custom\",\n\t\t\t\t\t\t\t\tmessage: `${widgetID} already exists in the \"${maybeTabID}\" tab`,\n\t\t\t\t\t\t\t\tpath: [\"json\", tabID, widgetID],\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\texistingWidgetKeys.set(widgetID, tabID)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}),\n\t\t)\n\n\treturn z.discriminatedUnion(\"schema\", [Schema_4_4_0, Schema_4_5_0])\n}\n\nexport const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)\nexport type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>\n\nexport type FlattenedStaticCustomTypeModel = {\n\tcustomTypeId: string\n\tfields: StaticCustomTypeModelTab\n}\n\nexport const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)\nexport type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>\n\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n/** @deprecated Use DynamicCustomTypeModel instead */\nexport type CustomTypeModel = DynamicCustomTypeModel\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,iBAAiB,uBAAuB;AAG/F,MAAa,kCAAkC,EAAE,OAAO,iBAAiB,wBAAwB;AAIjG,MAAa,yBAAyB,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC;AAI/D,MAAM,0BAGL,kBACI;CAEJ,MAAM,eAAe,EAAE,OAAO;EAC7B,IAAI,EAAE,OAAO;EACb,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;EAC3B,YAAY,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;EACxC,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,aAAa;EACxC,QAAQ,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;EACpC,QAAQ,EAAE,SAAS,wBAAwB,QAAQ;EACnD,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC;CACjC,CAAC;CAGD,MAAM,eAAe,EACnB,OAAO;EACP,GAAG,aAAa;EAChB,QAAQ,EAAE,QAAQ,iCAAiC;CACpD,CAAC,CAAC,CACD,MACA,EAAE,aAAa,OAAO,QAAQ;EAC7B,MAAM,EAAE,SAAS;EAEjB,MAAM,aAAa,OAAO,QAAQ,IAAI;EAItC,MAAM,qCAAqB,IAAI,IAAoB;EACnD,KAAK,MAAM,CAAC,OAAO,QAAQ,YAC1B,KAAK,MAAM,CAAC,UAAU,WAAW,OAAO,QAAQ,GAAG,GAAG;GACrD,IAAI,OAAO,SAAS,SAAS,aAAa,OACzC,IAAI,SAAS;IACZ,MAAM;IACN,SAAS;IACT,MAAM;KAAC;KAAQ;KAAO;IAAQ;GAC/B,CAAC;GAGF,MAAM,aAAa,mBAAmB,IAAI,QAAQ;GAClD,IAAI,OAAO,eAAe,UAAU;IACnC,IAAI,SAAS;KACZ,MAAM;KACN,SAAS,GAAG,SAAS,0BAA0B,WAAW;KAC1D,MAAM;MAAC;MAAQ;MAAO;KAAQ;IAC/B,CAAC;IACD;GACD;GAEA,mBAAmB,IAAI,UAAU,KAAK;EACvC;CAEF,CAAC,CACF;CAED,OAAO,EAAE,mBAAmB,UAAU,CAAC,cAAc,YAAY,CAAC;AACnE;AAEA,MAAa,8BAA8B,uBAAuB,8BAA8B;AAQhG,MAAa,+BAA+B,uBAAuB,+BAA+B"}
|
package/dist/model/group.d.ts
CHANGED
|
@@ -202,22 +202,6 @@ declare const GroupModelSchema: z.ZodMiniObject<{
|
|
|
202
202
|
label?: string | null | undefined;
|
|
203
203
|
repeat?: boolean | undefined;
|
|
204
204
|
fields?: Record<string, {
|
|
205
|
-
type: "StructuredText";
|
|
206
|
-
fieldset?: string | null | undefined;
|
|
207
|
-
config?: {
|
|
208
|
-
label?: string | null | undefined;
|
|
209
|
-
placeholder?: string | undefined;
|
|
210
|
-
useAsTitle?: boolean | undefined;
|
|
211
|
-
single?: string | undefined;
|
|
212
|
-
multi?: string | undefined;
|
|
213
|
-
imageConstraint?: {
|
|
214
|
-
width?: number | null | undefined;
|
|
215
|
-
height?: number | null | undefined;
|
|
216
|
-
} | undefined;
|
|
217
|
-
labels?: string[] | undefined;
|
|
218
|
-
allowTargetBlank?: boolean | undefined;
|
|
219
|
-
} | undefined;
|
|
220
|
-
} | {
|
|
221
205
|
type: "Boolean";
|
|
222
206
|
config?: {
|
|
223
207
|
label?: string | null | undefined;
|
|
@@ -338,6 +322,22 @@ declare const GroupModelSchema: z.ZodMiniObject<{
|
|
|
338
322
|
max?: number | undefined;
|
|
339
323
|
step?: number | undefined;
|
|
340
324
|
} | undefined;
|
|
325
|
+
} | {
|
|
326
|
+
type: "StructuredText";
|
|
327
|
+
fieldset?: string | null | undefined;
|
|
328
|
+
config?: {
|
|
329
|
+
label?: string | null | undefined;
|
|
330
|
+
placeholder?: string | undefined;
|
|
331
|
+
useAsTitle?: boolean | undefined;
|
|
332
|
+
single?: string | undefined;
|
|
333
|
+
multi?: string | undefined;
|
|
334
|
+
imageConstraint?: {
|
|
335
|
+
width?: number | null | undefined;
|
|
336
|
+
height?: number | null | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
labels?: string[] | undefined;
|
|
339
|
+
allowTargetBlank?: boolean | undefined;
|
|
340
|
+
} | undefined;
|
|
341
341
|
} | {
|
|
342
342
|
type: "Select";
|
|
343
343
|
fieldset?: string | null | undefined;
|
|
@@ -384,22 +384,6 @@ declare const GroupModelSchema: z.ZodMiniObject<{
|
|
|
384
384
|
label?: string | null | undefined;
|
|
385
385
|
repeat?: boolean | undefined;
|
|
386
386
|
fields?: Record<string, {
|
|
387
|
-
type: "StructuredText";
|
|
388
|
-
fieldset?: string | null | undefined;
|
|
389
|
-
config?: {
|
|
390
|
-
label?: string | null | undefined;
|
|
391
|
-
placeholder?: string | undefined;
|
|
392
|
-
useAsTitle?: boolean | undefined;
|
|
393
|
-
single?: string | undefined;
|
|
394
|
-
multi?: string | undefined;
|
|
395
|
-
imageConstraint?: {
|
|
396
|
-
width?: number | null | undefined;
|
|
397
|
-
height?: number | null | undefined;
|
|
398
|
-
} | undefined;
|
|
399
|
-
labels?: string[] | undefined;
|
|
400
|
-
allowTargetBlank?: boolean | undefined;
|
|
401
|
-
} | undefined;
|
|
402
|
-
} | {
|
|
403
387
|
type: "Boolean";
|
|
404
388
|
config?: {
|
|
405
389
|
label?: string | null | undefined;
|
|
@@ -520,6 +504,22 @@ declare const GroupModelSchema: z.ZodMiniObject<{
|
|
|
520
504
|
max?: number | undefined;
|
|
521
505
|
step?: number | undefined;
|
|
522
506
|
} | undefined;
|
|
507
|
+
} | {
|
|
508
|
+
type: "StructuredText";
|
|
509
|
+
fieldset?: string | null | undefined;
|
|
510
|
+
config?: {
|
|
511
|
+
label?: string | null | undefined;
|
|
512
|
+
placeholder?: string | undefined;
|
|
513
|
+
useAsTitle?: boolean | undefined;
|
|
514
|
+
single?: string | undefined;
|
|
515
|
+
multi?: string | undefined;
|
|
516
|
+
imageConstraint?: {
|
|
517
|
+
width?: number | null | undefined;
|
|
518
|
+
height?: number | null | undefined;
|
|
519
|
+
} | undefined;
|
|
520
|
+
labels?: string[] | undefined;
|
|
521
|
+
allowTargetBlank?: boolean | undefined;
|
|
522
|
+
} | undefined;
|
|
523
523
|
} | {
|
|
524
524
|
type: "Select";
|
|
525
525
|
fieldset?: string | null | undefined;
|
package/dist/model/link.d.ts
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
2
|
//#region src/model/link.d.ts
|
|
3
|
+
declare const LinkConfigCustomtypesSchema: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
4
|
+
id: z.ZodMiniString<string>;
|
|
5
|
+
fields: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
6
|
+
id: z.ZodMiniString<string>;
|
|
7
|
+
fields: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
8
|
+
id: z.ZodMiniString<string>;
|
|
9
|
+
customtypes: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
10
|
+
id: z.ZodMiniString<string>;
|
|
11
|
+
fields: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
12
|
+
id: z.ZodMiniString<string>;
|
|
13
|
+
fields: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
14
|
+
}, z.core.$strip>, z.ZodMiniString<string>]>>;
|
|
15
|
+
}, z.core.$strip>]>>;
|
|
16
|
+
}, z.core.$strip>, z.ZodMiniString<string>]>>;
|
|
17
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
18
|
+
id: z.ZodMiniString<string>;
|
|
19
|
+
customtypes: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
20
|
+
id: z.ZodMiniString<string>;
|
|
21
|
+
fields: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
22
|
+
id: z.ZodMiniString<string>;
|
|
23
|
+
fields: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
24
|
+
}, z.core.$strip>, z.ZodMiniString<string>]>>;
|
|
25
|
+
}, z.core.$strip>]>>;
|
|
26
|
+
}, z.core.$strip>, z.ZodMiniString<string>]>>;
|
|
27
|
+
}, z.core.$strip>]>>;
|
|
28
|
+
type LinkConfigCustomtypes = z.infer<typeof LinkConfigCustomtypesSchema>;
|
|
3
29
|
declare const LinkModelSchema: z.ZodMiniObject<{
|
|
4
30
|
type: z.ZodMiniLiteral<"Link">;
|
|
5
31
|
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -43,5 +69,5 @@ declare const LinkModelSchema: z.ZodMiniObject<{
|
|
|
43
69
|
}, z.core.$strip>;
|
|
44
70
|
type LinkModel = z.infer<typeof LinkModelSchema>;
|
|
45
71
|
//#endregion
|
|
46
|
-
export { LinkModel, LinkModelSchema };
|
|
72
|
+
export { LinkConfigCustomtypes, LinkConfigCustomtypesSchema, LinkModel, LinkModelSchema };
|
|
47
73
|
//# sourceMappingURL=link.d.ts.map
|
package/dist/model/link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","names":[],"sources":["../../src/model/link.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"link.d.ts","names":[],"sources":["../../src/model/link.ts"],"mappings":";;cA6Ea,6BAA2B,EAAA,aAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;KA6B5B,wBAAwB,EAAE,aAAa;cA8BtC,iBAAe,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAMhB,YAAY,EAAE,aAAa"}
|
package/dist/model/link.js
CHANGED
|
@@ -36,7 +36,7 @@ const CustomTypeLevel1Schema = z.union([z.string(), z.object({
|
|
|
36
36
|
id: z.string(),
|
|
37
37
|
fields: CustomTypeLevel1FieldsSchema
|
|
38
38
|
})]);
|
|
39
|
-
const
|
|
39
|
+
const LinkConfigCustomtypesSchema = z.array(CustomTypeLevel1Schema).check(({ value, issues }) => {
|
|
40
40
|
const cts = value;
|
|
41
41
|
const push = (message) => issues.push({
|
|
42
42
|
code: "custom",
|
|
@@ -75,7 +75,7 @@ const LinkConfigSchema = z.object({
|
|
|
75
75
|
useAsTitle: z.optional(z.boolean()),
|
|
76
76
|
placeholder: z.optional(z.string()),
|
|
77
77
|
select: z.optional(SelectWithFallbackSchema),
|
|
78
|
-
customtypes: z.optional(
|
|
78
|
+
customtypes: z.optional(LinkConfigCustomtypesSchema),
|
|
79
79
|
masks: z.optional(MasksArrayStringSchema),
|
|
80
80
|
tags: z.optional(MasksArrayStringSchema),
|
|
81
81
|
allowTargetBlank: z.optional(z.boolean()),
|
|
@@ -89,6 +89,6 @@ const LinkModelSchema = z.object({
|
|
|
89
89
|
config: z.optional(LinkConfigSchema)
|
|
90
90
|
});
|
|
91
91
|
//#endregion
|
|
92
|
-
export { LinkModelSchema };
|
|
92
|
+
export { LinkConfigCustomtypesSchema, LinkModelSchema };
|
|
93
93
|
|
|
94
94
|
//# sourceMappingURL=link.js.map
|
package/dist/model/link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","names":[],"sources":["../../src/model/link.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\n// Accepts string | string[], normalizes string to [string]\nconst MasksArrayStringSchema = z.pipe(\n\tz.union([z.array(z.string()), z.string()]),\n\tz.transform((val): string[] => (typeof val === \"string\" ? [val] : val)),\n)\n\n// --- CustomTypes hierarchy (field selection in content relationship fields) ---\n\n// Level 2\n\nconst noDuplicateStrings = z.refine(\n\t(arr) => new Set(arr as string[]).size === (arr as string[]).length,\n\t\"Fields have duplicates.\",\n)\n\nconst CustomTypeLevel2FieldGroupFieldsSchema = z.array(z.string()).check(noDuplicateStrings)\n\nconst CustomTypeLevel2FieldSchema = z.union([\n\tz.object({ id: z.string(), fields: CustomTypeLevel2FieldGroupFieldsSchema }),\n\tz.string(),\n])\n\nconst noDuplicateIds = (items: unknown) => {\n\tconst arr = items as { id: string }[] | string[]\n\tconst ids = new Set(arr.map((item) => (typeof item === \"string\" ? item : item.id)))\n\treturn ids.size === arr.length\n}\n\nconst CustomTypeLevel2FieldsSchema = z\n\t.array(CustomTypeLevel2FieldSchema)\n\t.check(z.refine(noDuplicateIds, \"Fields have duplicates.\"))\n\nconst CustomTypeLevel2Schema = z.union([\n\tz.string(),\n\tz.object({ id: z.string(), fields: CustomTypeLevel2FieldsSchema }),\n])\n\nconst CustomTypesLevel2Schema = z\n\t.array(CustomTypeLevel2Schema)\n\t.check(z.refine(noDuplicateIds, \"Custom types have duplicates.\"))\n\n// Level 1\n\nconst CustomTypeLevel1FieldCustomTypesSchema = z.object({\n\tid: z.string(),\n\tcustomtypes: CustomTypesLevel2Schema,\n})\n\nconst CustomTypeLevel1FieldGroupFieldSchema = z.union([\n\tCustomTypeLevel1FieldCustomTypesSchema,\n\tz.string(),\n])\n\nconst CustomTypeLevel1FieldGroupFieldsSchema = z\n\t.array(CustomTypeLevel1FieldGroupFieldSchema)\n\t.check(z.refine(noDuplicateIds, \"Fields have duplicates.\"))\n\nconst CustomTypeLevel1FieldSchema = z.union([\n\tz.object({\n\t\tid: z.string(),\n\t\tfields: CustomTypeLevel1FieldGroupFieldsSchema,\n\t}),\n\tCustomTypeLevel1FieldCustomTypesSchema,\n\tz.string(),\n])\n\nconst CustomTypeLevel1FieldsSchema = z\n\t.array(CustomTypeLevel1FieldSchema)\n\t.check(z.refine(noDuplicateIds, \"Fields have duplicates.\"))\n\nconst CustomTypeLevel1Schema = z.union([\n\tz.string(),\n\tz.object({ id: z.string(), fields: CustomTypeLevel1FieldsSchema }),\n])\n\
|
|
1
|
+
{"version":3,"file":"link.js","names":[],"sources":["../../src/model/link.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\n// Accepts string | string[], normalizes string to [string]\nconst MasksArrayStringSchema = z.pipe(\n\tz.union([z.array(z.string()), z.string()]),\n\tz.transform((val): string[] => (typeof val === \"string\" ? [val] : val)),\n)\n\n// --- CustomTypes hierarchy (field selection in content relationship fields) ---\n\n// Level 2\n\nconst noDuplicateStrings = z.refine(\n\t(arr) => new Set(arr as string[]).size === (arr as string[]).length,\n\t\"Fields have duplicates.\",\n)\n\nconst CustomTypeLevel2FieldGroupFieldsSchema = z.array(z.string()).check(noDuplicateStrings)\n\nconst CustomTypeLevel2FieldSchema = z.union([\n\tz.object({ id: z.string(), fields: CustomTypeLevel2FieldGroupFieldsSchema }),\n\tz.string(),\n])\n\nconst noDuplicateIds = (items: unknown) => {\n\tconst arr = items as { id: string }[] | string[]\n\tconst ids = new Set(arr.map((item) => (typeof item === \"string\" ? item : item.id)))\n\treturn ids.size === arr.length\n}\n\nconst CustomTypeLevel2FieldsSchema = z\n\t.array(CustomTypeLevel2FieldSchema)\n\t.check(z.refine(noDuplicateIds, \"Fields have duplicates.\"))\n\nconst CustomTypeLevel2Schema = z.union([\n\tz.string(),\n\tz.object({ id: z.string(), fields: CustomTypeLevel2FieldsSchema }),\n])\n\nconst CustomTypesLevel2Schema = z\n\t.array(CustomTypeLevel2Schema)\n\t.check(z.refine(noDuplicateIds, \"Custom types have duplicates.\"))\n\n// Level 1\n\nconst CustomTypeLevel1FieldCustomTypesSchema = z.object({\n\tid: z.string(),\n\tcustomtypes: CustomTypesLevel2Schema,\n})\n\nconst CustomTypeLevel1FieldGroupFieldSchema = z.union([\n\tCustomTypeLevel1FieldCustomTypesSchema,\n\tz.string(),\n])\n\nconst CustomTypeLevel1FieldGroupFieldsSchema = z\n\t.array(CustomTypeLevel1FieldGroupFieldSchema)\n\t.check(z.refine(noDuplicateIds, \"Fields have duplicates.\"))\n\nconst CustomTypeLevel1FieldSchema = z.union([\n\tz.object({\n\t\tid: z.string(),\n\t\tfields: CustomTypeLevel1FieldGroupFieldsSchema,\n\t}),\n\tCustomTypeLevel1FieldCustomTypesSchema,\n\tz.string(),\n])\n\nconst CustomTypeLevel1FieldsSchema = z\n\t.array(CustomTypeLevel1FieldSchema)\n\t.check(z.refine(noDuplicateIds, \"Fields have duplicates.\"))\n\nconst CustomTypeLevel1Schema = z.union([\n\tz.string(),\n\tz.object({ id: z.string(), fields: CustomTypeLevel1FieldsSchema }),\n])\n\nexport const LinkConfigCustomtypesSchema = z.array(CustomTypeLevel1Schema).check(({ value, issues }) => {\n\tconst cts = value as ({ id: string } | string)[]\n\tconst push = (message: string) => issues.push({ code: \"custom\", input: value, message })\n\tconst strings = new Set<string>()\n\tconst objects = new Set<string>()\n\tfor (const ct of cts) {\n\t\tlet failed = false\n\t\tif (typeof ct === \"string\") {\n\t\t\tfailed = objects.has(ct)\n\t\t\tstrings.add(ct)\n\t\t} else {\n\t\t\tconst { id } = ct\n\t\t\tfailed = strings.has(id) || objects.has(id)\n\t\t\tobjects.add(id)\n\t\t}\n\t\tif (failed) {\n\t\t\tpush(\"Custom types have duplicates.\")\n\t\t\treturn\n\t\t}\n\t}\n\tif (objects.size > 1) {\n\t\tpush(\"Cannot have multiple custom types with fields selection.\")\n\t\treturn\n\t}\n\tif (strings.size > 0 && objects.size > 0) {\n\t\tpush(\"Cannot mix custom types as strings and objects with fields.\")\n\t}\n})\n\nexport type LinkConfigCustomtypes = z.infer<typeof LinkConfigCustomtypesSchema>\n\n// --- Select with fallback to null ---\n\nconst SelectWithFallbackSchema = z.pipe(\n\tz.unknown(),\n\tz.transform((val): \"media\" | \"document\" | \"web\" | null => {\n\t\tif (val === \"media\" || val === \"document\" || val === \"web\" || val === null) {\n\t\t\treturn val\n\t\t}\n\t\treturn null\n\t}),\n)\n\n// --- LinkConfig and Link ---\n\nconst LinkConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tuseAsTitle: z.optional(z.boolean()),\n\tplaceholder: z.optional(z.string()),\n\tselect: z.optional(SelectWithFallbackSchema),\n\tcustomtypes: z.optional(LinkConfigCustomtypesSchema),\n\tmasks: z.optional(MasksArrayStringSchema),\n\ttags: z.optional(MasksArrayStringSchema),\n\tallowTargetBlank: z.optional(z.boolean()),\n\tallowText: z.optional(z.boolean()),\n\trepeat: z.optional(z.boolean()),\n\tvariants: z.optional(z.array(z.string())),\n})\n\nexport const LinkModelSchema = z.object({\n\ttype: z.literal(\"Link\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(LinkConfigSchema),\n})\n\nexport type LinkModel = z.infer<typeof LinkModelSchema>\n"],"mappings":";;AAGA,MAAM,yBAAyB,EAAE,KAChC,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,GACzC,EAAE,WAAW,QAAmB,OAAO,QAAQ,WAAW,CAAC,GAAG,IAAI,GAAI,CACvE;AAMA,MAAM,qBAAqB,EAAE,QAC3B,QAAQ,IAAI,IAAI,GAAe,CAAC,CAAC,SAAU,IAAiB,QAC7D,yBACD;AAEA,MAAM,yCAAyC,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,kBAAkB;AAE3F,MAAM,8BAA8B,EAAE,MAAM,CAC3C,EAAE,OAAO;CAAE,IAAI,EAAE,OAAO;CAAG,QAAQ;AAAuC,CAAC,GAC3E,EAAE,OAAO,CACV,CAAC;AAED,MAAM,kBAAkB,UAAmB;CAC1C,MAAM,MAAM;CAEZ,OAAO,IADS,IAAI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AC;CAC9B,QAAQ,EAAE,SAAS,gBAAgB;AACpC,CAAC"}
|
package/dist/model/table.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./richText.js";
|
|
1
|
+
import { RichTextModel } from "./richText.js";
|
|
2
2
|
import { z } from "zod/mini";
|
|
3
3
|
//#region src/model/table.d.ts
|
|
4
4
|
declare const TableModelSchema: z.ZodMiniObject<{
|
|
@@ -9,6 +9,7 @@ declare const TableModelSchema: z.ZodMiniObject<{
|
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
type TableModel = z.infer<typeof TableModelSchema>;
|
|
11
11
|
declare const TableCellModelNodeTypes: ("em" | "hyperlink" | "paragraph" | "strong")[];
|
|
12
|
+
declare const TableCellModel: RichTextModel;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { TableCellModelNodeTypes, TableModel, TableModelSchema };
|
|
14
|
+
export { TableCellModel, TableCellModelNodeTypes, TableModel, TableModelSchema };
|
|
14
15
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../src/model/table.ts"],"mappings":";;;cAQa,kBAAgB,EAAA;;;;;;KAKjB,aAAa,EAAE,aAAa;cAG3B"}
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../src/model/table.ts"],"mappings":";;;cAQa,kBAAgB,EAAA;;;;;;KAKjB,aAAa,EAAE,aAAa;cAG3B;cAOA,gBAAgB"}
|
package/dist/zod4.d.ts
CHANGED
|
@@ -1659,6 +1659,31 @@ declare const LinkModelSchema: import("zod/mini").ZodMiniObject<{
|
|
|
1659
1659
|
variants: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniString<string>>>;
|
|
1660
1660
|
}, import("zod/v4/core").$strip>>;
|
|
1661
1661
|
}, import("zod/v4/core").$strip>;
|
|
1662
|
+
declare const LinkConfigCustomtypesSchema: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniObject<{
|
|
1663
|
+
id: import("zod/mini").ZodMiniString<string>;
|
|
1664
|
+
fields: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniObject<{
|
|
1665
|
+
id: import("zod/mini").ZodMiniString<string>;
|
|
1666
|
+
fields: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniObject<{
|
|
1667
|
+
id: import("zod/mini").ZodMiniString<string>;
|
|
1668
|
+
customtypes: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniObject<{
|
|
1669
|
+
id: import("zod/mini").ZodMiniString<string>;
|
|
1670
|
+
fields: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniObject<{
|
|
1671
|
+
id: import("zod/mini").ZodMiniString<string>;
|
|
1672
|
+
fields: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniString<string>>;
|
|
1673
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniString<string>]>>;
|
|
1674
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
1675
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniString<string>]>>;
|
|
1676
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniObject<{
|
|
1677
|
+
id: import("zod/mini").ZodMiniString<string>;
|
|
1678
|
+
customtypes: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniObject<{
|
|
1679
|
+
id: import("zod/mini").ZodMiniString<string>;
|
|
1680
|
+
fields: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniObject<{
|
|
1681
|
+
id: import("zod/mini").ZodMiniString<string>;
|
|
1682
|
+
fields: import("zod/mini").ZodMiniArray<import("zod/mini").ZodMiniString<string>>;
|
|
1683
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniString<string>]>>;
|
|
1684
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
1685
|
+
}, import("zod/v4/core").$strip>, import("zod/mini").ZodMiniString<string>]>>;
|
|
1686
|
+
}, import("zod/v4/core").$strip>]>>;
|
|
1662
1687
|
declare const NestableModelSchema: import("zod/mini").ZodMiniDiscriminatedUnion<[import("zod/mini").ZodMiniObject<{
|
|
1663
1688
|
type: import("zod/mini").ZodMiniLiteral<"Boolean">;
|
|
1664
1689
|
config: import("zod/mini").ZodMiniOptional<import("zod/mini").ZodMiniObject<{
|
|
@@ -4937,6 +4962,28 @@ declare const StaticSlicesModelSchema: import("zod/mini").ZodMiniObject<{
|
|
|
4937
4962
|
}, import("zod/v4/core").$strip>;
|
|
4938
4963
|
declare const StaticWidgetModelSchema: import("zod/mini").ZodMiniType<StaticWidgetModel, unknown, import("zod/v4/core").$ZodTypeInternals<StaticWidgetModel, unknown>>;
|
|
4939
4964
|
declare const DynamicWidgetModelSchema: import("zod/mini").ZodMiniType<DynamicWidgetModel, unknown, import("zod/v4/core").$ZodTypeInternals<DynamicWidgetModel, unknown>>;
|
|
4965
|
+
declare const FieldOrSliceTypeSchema: import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniEnum<{
|
|
4966
|
+
Boolean: "Boolean";
|
|
4967
|
+
Choice: "Choice";
|
|
4968
|
+
Color: "Color";
|
|
4969
|
+
Date: "Date";
|
|
4970
|
+
Embed: "Embed";
|
|
4971
|
+
GeoPoint: "GeoPoint";
|
|
4972
|
+
Group: "Group";
|
|
4973
|
+
Image: "Image";
|
|
4974
|
+
IntegrationFields: "IntegrationFields";
|
|
4975
|
+
Link: "Link";
|
|
4976
|
+
Number: "Number";
|
|
4977
|
+
Range: "Range";
|
|
4978
|
+
Select: "Select";
|
|
4979
|
+
Separator: "Separator";
|
|
4980
|
+
Slices: "Slices";
|
|
4981
|
+
StructuredText: "StructuredText";
|
|
4982
|
+
Table: "Table";
|
|
4983
|
+
Text: "Text";
|
|
4984
|
+
Timestamp: "Timestamp";
|
|
4985
|
+
UID: "UID";
|
|
4986
|
+
}>, import("zod/mini").ZodMiniUnion<readonly [import("zod/mini").ZodMiniLiteral<"Slice">, import("zod/mini").ZodMiniLiteral<"SharedSlice">]>, import("zod/mini").ZodMiniLiteral<"Repeatable.Link">]>;
|
|
4940
4987
|
declare const StaticCustomTypeModelTabSchema: import("zod/mini").ZodMiniRecord<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<StaticWidgetModel, unknown, import("zod/v4/core").$ZodTypeInternals<StaticWidgetModel, unknown>>>;
|
|
4941
4988
|
declare const DynamicCustomTypeModelTabSchema: import("zod/mini").ZodMiniRecord<import("zod/mini").ZodMiniString<string>, import("zod/mini").ZodMiniType<DynamicWidgetModel, unknown, import("zod/v4/core").$ZodTypeInternals<DynamicWidgetModel, unknown>>>;
|
|
4942
4989
|
declare const StaticCustomTypeModelSchema: import("zod/mini").ZodMiniDiscriminatedUnion<[import("zod/mini").ZodMiniObject<{
|
|
@@ -5010,5 +5057,5 @@ declare const CustomTypeModelSchema: import("zod/mini").ZodMiniDiscriminatedUnio
|
|
|
5010
5057
|
schema: import("zod/mini").ZodMiniLiteral<"@prismicio/types-internal@4.5.0">;
|
|
5011
5058
|
}, import("zod/v4/core").$strip>], "schema">;
|
|
5012
5059
|
//#endregion
|
|
5013
|
-
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 };
|
|
5060
|
+
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 };
|
|
5014
5061
|
//# sourceMappingURL=zod4.d.ts.map
|