@prismicio/types-internal 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/content/field.js +1 -1
- package/dist/content/field.js.map +1 -1
- package/dist/content/group.d.ts +1 -2
- package/dist/content/group.d.ts.map +1 -1
- package/dist/content/group.js +1 -1
- package/dist/content/group.js.map +1 -1
- package/dist/content/legacy/link.d.ts +4 -4
- package/dist/content/legacy/link.js +4 -4
- package/dist/content/legacy/link.js.map +1 -1
- package/dist/content/legacy/richText.d.ts +23 -12
- package/dist/content/legacy/richText.d.ts.map +1 -1
- package/dist/content/legacy/richText.js +2 -2
- package/dist/content/legacy/richText.js.map +1 -1
- package/dist/content/link.d.ts +4 -4
- package/dist/content/nestable.d.ts +3 -3
- package/dist/content/nestable.d.ts.map +1 -1
- package/dist/content/nestable.js +3 -9
- package/dist/content/nestable.js.map +1 -1
- package/dist/content/richText.d.ts +1 -1
- package/dist/content/richText.d.ts.map +1 -1
- package/dist/content/richText.js +1 -1
- package/dist/content/richText.js.map +1 -1
- package/dist/content/slice.d.ts +507 -5
- package/dist/content/slice.d.ts.map +1 -1
- package/dist/content/slice.js +1 -1
- package/dist/content/slice.js.map +1 -1
- package/dist/content/slices.d.ts +507 -5
- package/dist/content/slices.d.ts.map +1 -1
- package/dist/content/table.d.ts +5 -2
- package/dist/content/table.d.ts.map +1 -1
- package/dist/content/widget.js +1 -1
- package/dist/content/widget.js.map +1 -1
- package/dist/helpers/customTypeModel.d.ts +4 -5
- package/dist/helpers/customTypeModel.d.ts.map +1 -1
- package/dist/helpers/customTypeModel.js.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/io-ts.d.ts +5138 -1917
- package/dist/io-ts.d.ts.map +1 -1
- package/dist/io-ts.js +7 -6
- package/dist/io-ts.js.map +1 -1
- package/dist/model/customType.d.ts +9 -3
- package/dist/model/customType.d.ts.map +1 -1
- package/dist/model/customType.js +7 -4
- package/dist/model/customType.js.map +1 -1
- package/dist/model/group.d.ts +2 -2
- package/dist/model/group.js +1 -1
- package/dist/model/group.js.map +1 -1
- package/dist/model/nestable.js +1 -1
- package/dist/model/nestable.js.map +1 -1
- package/dist/model/slice.d.ts +10 -10
- package/dist/model/slice.d.ts.map +1 -1
- package/dist/model/slice.js +5 -5
- package/dist/model/slice.js.map +1 -1
- package/dist/model/widget.d.ts.map +1 -1
- package/dist/model/widget.js +2 -2
- package/dist/model/widget.js.map +1 -1
- package/dist/zod4.d.ts +1814 -249
- package/dist/zod4.d.ts.map +1 -1
- package/dist/zod4.js +7 -6
- package/dist/zod4.js.map +1 -1
- package/package.json +9 -6
- package/src/content/field.ts +1 -1
- package/src/content/group.ts +1 -1
- package/src/content/legacy/link.ts +4 -4
- package/src/content/legacy/richText.ts +14 -21
- package/src/content/nestable.ts +3 -18
- package/src/content/richText.ts +9 -6
- package/src/content/slice.ts +1 -1
- package/src/content/widget.ts +1 -1
- package/src/helpers/customTypeModel.ts +8 -5
- package/src/index.ts +7 -2
- package/src/io-ts.ts +8 -8
- package/src/model/customType.ts +18 -7
- package/src/model/group.ts +1 -1
- package/src/model/nestable.ts +1 -1
- package/src/model/slice.ts +16 -17
- package/src/model/widget.ts +8 -12
- package/src/zod4.ts +8 -8
- package/dist/model/section.d.ts +0 -11
- package/dist/model/section.d.ts.map +0 -1
- package/dist/model/section.js +0 -10
- package/dist/model/section.js.map +0 -1
- package/src/model/section.ts +0 -12
package/dist/io-ts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io-ts.d.ts","names":[],"sources":["../src/io-ts.ts"],"mappings":";;;;;;;;;;;;;;;;cAmJa,WAAA,EAAW,CAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,WAAA,EAAW,CAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,mBAAA,EAAmB,CAAA,CAAA,IAAA;AAAA,cACnB,oBAAA,EAA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AA;AAAA,cAC/B,2BAAA,EAA2B,CAAA,CAAA,IAAA;;;sCAAyC,iBAAA;;;;;;;;;;;;cACpE,4BAAA,EAA4B,CAAA,CAAA,IAAA;;;sCAA0C,kBAAA;;;;;;;;;;;;;cAEtE,qBAAA,EAAqB,CAAA,CAAA,IAAA;;;sCAA+B,kBAAA"}
|
package/dist/io-ts.js
CHANGED
|
@@ -63,8 +63,7 @@ import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetMod
|
|
|
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";
|
|
66
|
-
import {
|
|
67
|
-
import { CustomTypeModelSchema as CustomTypeModelSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1 } from "./model/customType.js";
|
|
66
|
+
import { DynamicCustomTypeModelSchema as DynamicCustomTypeModelSchema$1, DynamicCustomTypeModelTabSchema as DynamicCustomTypeModelTabSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1, StaticCustomTypeModelTabSchema as StaticCustomTypeModelTabSchema$1 } from "./model/customType.js";
|
|
68
67
|
import * as t from "io-ts";
|
|
69
68
|
//#region src/io-ts.ts
|
|
70
69
|
const AssetSchema = toIOTS(AssetSchema$1);
|
|
@@ -173,10 +172,12 @@ const DynamicSlicesModelSchema = toIOTS(DynamicSlicesModelSchema$1);
|
|
|
173
172
|
const StaticSlicesModelSchema = toIOTS(StaticSlicesModelSchema$1);
|
|
174
173
|
const StaticWidgetModelSchema = toIOTS(StaticWidgetModelSchema$1);
|
|
175
174
|
const DynamicWidgetModelSchema = toIOTS(DynamicWidgetModelSchema$1);
|
|
176
|
-
const
|
|
177
|
-
const
|
|
175
|
+
const StaticCustomTypeModelTabSchema = toIOTS(StaticCustomTypeModelTabSchema$1);
|
|
176
|
+
const DynamicCustomTypeModelTabSchema = toIOTS(DynamicCustomTypeModelTabSchema$1);
|
|
178
177
|
const StaticCustomTypeModelSchema = toIOTS(StaticCustomTypeModelSchema$1);
|
|
179
|
-
const
|
|
178
|
+
const DynamicCustomTypeModelSchema = toIOTS(DynamicCustomTypeModelSchema$1);
|
|
179
|
+
/** @deprecated Use DynamicCustomTypeModelSchema instead */
|
|
180
|
+
const CustomTypeModelSchema = DynamicCustomTypeModelSchema;
|
|
180
181
|
function toIOTS(type) {
|
|
181
182
|
return new t.Type("Type", (input) => type.safeParse(input).success, (input, context) => {
|
|
182
183
|
const result = type.safeParse(input);
|
|
@@ -219,6 +220,6 @@ function formatIssue(issue, input) {
|
|
|
219
220
|
return issue.message;
|
|
220
221
|
}
|
|
221
222
|
//#endregion
|
|
222
|
-
export { AssetSchema, BooleanContentSchema, BooleanLegacy, BooleanModelSchema, ColorContentSchema, ColorLegacy, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceLegacy, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateLegacy, DateModelSchema, DocumentContentSchema, DocumentLegacy,
|
|
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 };
|
|
223
224
|
|
|
224
225
|
//# 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","rawStaticSectionModelSchema","rawDynamicSectionModelSchema","rawStaticCustomTypeModelSchema","rawCustomTypeModelSchema"],"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\tCustomTypeModelSchema as rawCustomTypeModelSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport {\n\tStaticSectionModelSchema as rawStaticSectionModelSchema,\n\tDynamicSectionModelSchema as rawDynamicSectionModelSchema,\n} from \"./model/section\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = 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 StaticSectionModelSchema = toIOTS(rawStaticSectionModelSchema)\nexport const DynamicSectionModelSchema = toIOTS(rawDynamicSectionModelSchema)\nexport const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)\nexport const CustomTypeModelSchema = toIOTS(rawCustomTypeModelSchema)\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmJA,MAAa,cAAc,OAAOA,cAAe;AACjD,MAAa,cAAc,OAAOC,cAAe;AACjD,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,u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Y,gBAChD,QAAO,MAAM;CAGd,MAAM,QAAQ,aAAa,OAAO,MAAM,QAAQ,EAAE,CAAC;CACnD,MAAM,UAAU,MAAM,MAAM,SAAS,MAAM,KAAK,KAAK,IAAI,GAAG,KAAA;AAE5D,KAAI,MAAM,SAAS,mBAAmB,MAAM,QAAQ;EACnD,MAAM,WAAW,MAAM,OAAO,IAAI,YAAY,CAAC,KAAK,KAAK;AACzD,SAAO,UACJ,iBAAiB,YAAY,MAAM,CAAC,OAAO,QAAQ,aAAa,aAChE,iBAAiB,YAAY,MAAM,CAAC,aAAa;;AAGrD,KAAI,MAAM,SAAS,kBAAkB,MAAM,SAC1C,QAAO,UACJ,iBAAiB,YAAY,MAAM,CAAC,OAAO,QAAQ,aAAa,MAAM,aACtE,iBAAiB,YAAY,MAAM,CAAC,aAAa,MAAM;AAG3D,KAAI,MAAM,SAAS,uBAAuB,MAAM,KAC/C,QAAO,wBAAwB,MAAM,KAAK,KAAK,KAAK;AAGrD,QAAO,MAAM"}
|
|
1
|
+
{"version":3,"file":"io-ts.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticCustomTypeModelTabSchema","rawDynamicCustomTypeModelTabSchema","rawStaticCustomTypeModelSchema","rawDynamicCustomTypeModelSchema"],"sources":["../src/io-ts.ts"],"sourcesContent":["import * as t from \"io-ts\"\nimport type { ZodMiniType } from \"zod/mini\"\n\n// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { BooleanLegacyCodec } from \"./content/codec/boolean\"\nimport { DocumentLegacyCodec } from \"./content/codec/document\"\nimport { EmbedLegacyCodec } from \"./content/codec/embed\"\nimport { EmptyLegacyCodec } from \"./content/codec/empty\"\nimport {\n\tColorLegacyCodec,\n\tDateLegacyCodec,\n\tNumberLegacyCodec,\n\tRangeLegacyCodec,\n\tSelectLegacyCodec,\n\tTextLegacyCodec,\n\tTimestampLegacyCodec,\n} from \"./content/codec/field\"\nimport { GeoPointLegacyCodec } from \"./content/codec/geopoint\"\nimport { GroupItemLegacyCodec, GroupLegacyCodec } from \"./content/codec/group\"\nimport { ImageLegacyCodec } from \"./content/codec/image\"\nimport { IntegrationFieldLegacyCodec } from \"./content/codec/integrationField\"\nimport type { LegacyCodec } from \"./content/codec/legacyContentCtx\"\nimport { LinkLegacyCodec } from \"./content/codec/link\"\nimport { NestableLegacyCodec } from \"./content/codec/nestable\"\nimport { RepeatableLegacyCodec } from \"./content/codec/repeatable\"\nimport { RichTextLegacyCodec } from \"./content/codec/richText\"\nimport { SeparatorLegacyCodec } from \"./content/codec/separator\"\nimport {\n\tCompositeSliceLegacyCodec,\n\tSharedSliceLegacyCodec,\n\tLegacySliceLegacyCodec,\n\tSliceLegacyCodec,\n} from \"./content/codec/slice\"\nimport { SliceItemLegacyCodec, SlicesLegacyCodec } from \"./content/codec/slices\"\nimport { TableLegacyCodec } from \"./content/codec/table\"\nimport { UIDLegacyCodec } from \"./content/codec/uid\"\nimport { WidgetLegacyCodec } from \"./content/codec/widget\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toIOTS(rawAssetSchema)\nexport const EmbedSchema = toIOTS(rawEmbedSchema)\nexport const HexaColorCodeSchema = toIOTS(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toIOTS(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toIOTS(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toIOTS(rawBooleanContentSchema)\nexport const ColorContentSchema = toIOTS(rawColorContentSchema)\nexport const DateContentSchema = toIOTS(rawDateContentSchema)\nexport const EmptyContentSchema = toIOTS(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toIOTS(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toIOTS(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toIOTS(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toIOTS(rawLinkContentSchema)\nexport const NumberContentSchema = toIOTS(rawNumberContentSchema)\nexport const RangeContentSchema = toIOTS(rawRangeContentSchema)\nexport const SelectContentSchema = toIOTS(rawSelectContentSchema)\nexport const SeparatorContentSchema = toIOTS(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toIOTS(rawSharedSliceContentSchema)\nexport const TextContentSchema = toIOTS(rawTextContentSchema)\nexport const TimestampContentSchema = toIOTS(rawTimestampContentSchema)\nexport const FieldContentSchema = toIOTS(rawFieldContentSchema)\nexport const UIDContentSchema = toIOTS(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toIOTS(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toIOTS(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toIOTS(rawImageContentViewSchema)\nexport const ImageContentSchema = toIOTS(rawImageContentSchema)\nexport const RichTextContentSchema = toIOTS(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toIOTS(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toIOTS(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toIOTS(rawTableContentSchema)\nexport const RepeatableContentSchema = toIOTS(rawRepeatableContentSchema)\nexport const NestableContentSchema = toIOTS(rawNestableContentSchema)\nexport const GroupContentSchema = toIOTS(rawGroupContentSchema)\nexport const GroupItemContentSchema = toIOTS(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toIOTS(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toIOTS(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toIOTS(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toIOTS(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toIOTS(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toIOTS(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toIOTS(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toIOTS(rawSlicesContentSchema)\nexport const WidgetContentSchema = toIOTS(rawWidgetContentSchema)\nexport const DocumentContentSchema = toIOTS(rawDocumentContentSchema)\n\n// Content legacy\nexport const BooleanLegacy = toIOTSCodec(BooleanLegacyCodec)\nexport const EmptyLegacy = toIOTSCodec(EmptyLegacyCodec)\nexport const TextLegacy = toIOTSCodec(TextLegacyCodec)\nexport const ColorLegacy = toIOTSCodec(ColorLegacyCodec)\nexport const DateLegacy = toIOTSCodec(DateLegacyCodec)\nexport const TimestampLegacy = toIOTSCodec(TimestampLegacyCodec)\nexport const NumberLegacy = toIOTSCodec(NumberLegacyCodec)\nexport const RangeLegacy = toIOTSCodec(RangeLegacyCodec)\nexport const SelectLegacy = toIOTSCodec(SelectLegacyCodec)\nexport const GeoPointLegacy = toIOTSCodec(GeoPointLegacyCodec)\nexport const EmbedLegacy = toIOTSCodec(EmbedLegacyCodec)\nexport const ImageLegacy = toIOTSCodec(ImageLegacyCodec)\nexport const LinkLegacy = toIOTSCodec(LinkLegacyCodec)\nexport const RepeatableLegacy = toIOTSCodec(RepeatableLegacyCodec)\nexport const RichTextLegacy = toIOTSCodec(RichTextLegacyCodec)\nexport const SeparatorLegacy = toIOTSCodec(SeparatorLegacyCodec)\nexport const IntegrationFieldLegacy = toIOTSCodec(IntegrationFieldLegacyCodec)\nexport const TableLegacy = toIOTSCodec(TableLegacyCodec)\nexport const NestableLegacy = toIOTSCodec(NestableLegacyCodec)\nexport const UIDLegacy = toIOTSCodec(UIDLegacyCodec)\nexport const GroupItemLegacy = toIOTSCodec(GroupItemLegacyCodec)\nexport const GroupLegacy = toIOTSCodec(GroupLegacyCodec)\nexport const LegacySliceLegacy = toIOTSCodec(LegacySliceLegacyCodec)\nexport const CompositeSliceLegacy = toIOTSCodec(CompositeSliceLegacyCodec)\nexport const SharedSliceLegacy = toIOTSCodec(SharedSliceLegacyCodec)\nexport const SliceLegacy = toIOTSCodec(SliceLegacyCodec)\nexport const SliceItemLegacy = toIOTSCodec(SliceItemLegacyCodec)\nexport const SlicesLegacy = toIOTSCodec(SlicesLegacyCodec)\nexport const WidgetLegacy = toIOTSCodec(WidgetLegacyCodec)\nexport const DocumentLegacy = toIOTSCodec(DocumentLegacyCodec)\n\n// Model\nexport const BooleanModelSchema = toIOTS(rawBooleanModelSchema)\nexport const ColorModelSchema = toIOTS(rawColorModelSchema)\nexport const DateModelSchema = toIOTS(rawDateModelSchema)\nexport const EmbedModelSchema = toIOTS(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toIOTS(rawGeoPointModelSchema)\nexport const ImageModelSchema = toIOTS(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toIOTS(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toIOTS(rawLinkModelSchema)\nexport const NestableModelSchema = toIOTS(rawNestableModelSchema)\nexport const NumberModelSchema = toIOTS(rawNumberModelSchema)\nexport const RangeModelSchema = toIOTS(rawRangeModelSchema)\nexport const RichTextModelSchema = toIOTS(rawRichTextModelSchema)\nexport const SelectModelSchema = toIOTS(rawSelectModelSchema)\nexport const SeparatorModelSchema = toIOTS(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toIOTS(rawSharedSliceModelSchema)\nexport const TableModelSchema = toIOTS(rawTableModelSchema)\nexport const TextModelSchema = toIOTS(rawTextModelSchema)\nexport const TimestampModelSchema = toIOTS(rawTimestampModelSchema)\nexport const UIDModelSchema = toIOTS(rawUIDModelSchema)\nexport const GroupModelSchema = toIOTS(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toIOTS(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toIOTS(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toIOTS(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toIOTS(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toIOTS(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toIOTS(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toIOTS(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toIOTS(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)\nexport const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toIOTS(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toIOTS<T>(type: ZodMiniType<T>): t.Type<T> {\n\treturn new t.Type<T>(\n\t\t\"Type\",\n\t\t(input): input is T => type.safeParse(input).success,\n\t\t(input, context) => {\n\t\t\tconst result = type.safeParse(input)\n\t\t\treturn result.success\n\t\t\t\t? t.success(result.data)\n\t\t\t\t: t.failure(\n\t\t\t\t\t\tinput,\n\t\t\t\t\t\tcontext,\n\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t)\n\t\t},\n\t\tt.identity,\n\t)\n}\n\nfunction toIOTSCodec<TArgs extends unknown[], A, LegacyRaw, AllowUndefined extends boolean>(\n\tcodecFactory: (...args: TArgs) => LegacyCodec<A, LegacyRaw, AllowUndefined>,\n): (\n\t...args: TArgs\n) => t.Type<A, ReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>, unknown> {\n\treturn (...args: TArgs) => {\n\t\tconst codec = codecFactory(...args)\n\t\treturn new t.Type<\n\t\t\tA,\n\t\t\tReturnType<LegacyCodec<A, LegacyRaw, AllowUndefined>[\"fromContent\"]>,\n\t\t\tunknown\n\t\t>(\n\t\t\tcodec.name,\n\t\t\tcodec.is,\n\t\t\t(input, context) => {\n\t\t\t\tconst result = codec.toContent(input)\n\t\t\t\treturn result.success\n\t\t\t\t\t? t.success(result.data)\n\t\t\t\t\t: t.failure(\n\t\t\t\t\t\t\tinput,\n\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\tresult.error.issues.map((issue) => formatIssue(issue, input)).join(\"\\n\"),\n\t\t\t\t\t\t)\n\t\t\t},\n\t\t\tcodec.fromContent,\n\t\t)\n\t}\n}\n\ninterface ZodIssue {\n\tcode: string\n\tmessage: string\n\tpath?: PropertyKey[]\n\texpected?: string\n\tvalues?: unknown[]\n\tkeys?: string[]\n}\n\nfunction resolveValue(input: unknown, path: PropertyKey[]): unknown {\n\tlet current = input\n\tfor (const key of path) {\n\t\tif (current == null || typeof current !== \"object\") return undefined\n\t\tcurrent = (current as Record<PropertyKey, unknown>)[key]\n\t}\n\treturn current\n}\n\nfunction formatValue(value: unknown): string {\n\tif (value === null) return \"null\"\n\tif (value === undefined) return \"undefined\"\n\tif (typeof value === \"string\") return JSON.stringify(value)\n\treturn String(value)\n}\n\nfunction formatIssue(issue: ZodIssue, input: unknown): string {\n\tif (issue.code === \"custom\" && issue.message !== \"Invalid input\") {\n\t\treturn issue.message\n\t}\n\n\tconst value = resolveValue(input, issue.path ?? [])\n\tconst pathStr = issue.path?.length ? issue.path.join(\".\") : undefined\n\n\tif (issue.code === \"invalid_value\" && issue.values) {\n\t\tconst expected = issue.values.map(formatValue).join(\", \")\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${expected}`\n\t}\n\n\tif (issue.code === \"invalid_type\" && issue.expected) {\n\t\treturn pathStr\n\t\t\t? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${issue.expected}`\n\t\t\t: `Invalid value ${formatValue(value)}: expected ${issue.expected}`\n\t}\n\n\tif (issue.code === \"unrecognized_keys\" && issue.keys) {\n\t\treturn `Unrecognized key(s): ${issue.keys.join(\", \")}`\n\t}\n\n\treturn issue.message\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiJA,MAAa,cAAc,OAAOA,cAAe;AACjD,MAAa,cAAc,OAAOC,cAAe;AACjD,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,kBAAkB,OAAOC,kBAAmB;AAGzD,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAA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EACnD,MAAM,WAAW,MAAM,OAAO,IAAI,YAAY,CAAC,KAAK,KAAK;AACzD,SAAO,UACJ,iBAAiB,YAAY,MAAM,CAAC,OAAO,QAAQ,aAAa,aAChE,iBAAiB,YAAY,MAAM,CAAC,aAAa;;AAGrD,KAAI,MAAM,SAAS,kBAAkB,MAAM,SAC1C,QAAO,UACJ,iBAAiB,YAAY,MAAM,CAAC,OAAO,QAAQ,aAAa,MAAM,aACtE,iBAAiB,YAAY,MAAM,CAAC,aAAa,MAAM;AAG3D,KAAI,MAAM,SAAS,uBAAuB,MAAM,KAC/C,QAAO,wBAAwB,MAAM,KAAK,KAAK,KAAK;AAGrD,QAAO,MAAM"}
|
|
@@ -2,6 +2,10 @@ import { DynamicWidgetModel, StaticWidgetModel } from "./widget.js";
|
|
|
2
2
|
import { z } from "zod/mini";
|
|
3
3
|
|
|
4
4
|
//#region src/model/customType.d.ts
|
|
5
|
+
declare const StaticCustomTypeModelTabSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<StaticWidgetModel, unknown, z.core.$ZodTypeInternals<StaticWidgetModel, unknown>>>;
|
|
6
|
+
type StaticCustomTypeModelTab = z.infer<typeof StaticCustomTypeModelTabSchema>;
|
|
7
|
+
declare const DynamicCustomTypeModelTabSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<DynamicWidgetModel, unknown, z.core.$ZodTypeInternals<DynamicWidgetModel, unknown>>>;
|
|
8
|
+
type DynamicCustomTypeModelTab = z.infer<typeof DynamicCustomTypeModelTabSchema>;
|
|
5
9
|
declare const StaticCustomTypeModelSchema: z.ZodMiniObject<{
|
|
6
10
|
id: z.ZodMiniString<string>;
|
|
7
11
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -14,7 +18,7 @@ declare const StaticCustomTypeModelSchema: z.ZodMiniObject<{
|
|
|
14
18
|
}>>;
|
|
15
19
|
}, z.core.$strip>;
|
|
16
20
|
type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>;
|
|
17
|
-
declare const
|
|
21
|
+
declare const DynamicCustomTypeModelSchema: z.ZodMiniObject<{
|
|
18
22
|
id: z.ZodMiniString<string>;
|
|
19
23
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
20
24
|
repeatable: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
@@ -25,7 +29,9 @@ declare const CustomTypeModelSchema: z.ZodMiniObject<{
|
|
|
25
29
|
page: "page";
|
|
26
30
|
}>>;
|
|
27
31
|
}, z.core.$strip>;
|
|
28
|
-
type
|
|
32
|
+
type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>;
|
|
33
|
+
/** @deprecated Use DynamicCustomTypeModel instead */
|
|
34
|
+
type CustomTypeModel = DynamicCustomTypeModel;
|
|
29
35
|
//#endregion
|
|
30
|
-
export { CustomTypeModel, StaticCustomTypeModel };
|
|
36
|
+
export { CustomTypeModel, DynamicCustomTypeModel, DynamicCustomTypeModelTab, StaticCustomTypeModel, StaticCustomTypeModelTab };
|
|
31
37
|
//# sourceMappingURL=customType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customType.d.ts","names":[],"sources":["../../src/model/customType.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"customType.d.ts","names":[],"sources":["../../src/model/customType.ts"],"mappings":";;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,aAAA,CAAA,CAAA,CAAA,aAAA,UAAA,CAAA,CAAA,WAAA,CAAA,iBAAA,WAAA,CAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,KAC/B,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,8BAAA;AAAA,cAEzC,+BAAA,EAA+B,CAAA,CAAA,aAAA,CAAA,CAAA,CAAA,aAAA,UAAA,CAAA,CAAA,WAAA,CAAA,kBAAA,WAAA,CAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,KAChC,yBAAA,GAA4B,CAAA,CAAE,KAAA,QAAa,+BAAA;AAAA,cAiB1C,2BAAA,EAA2B,CAAA,CAAA,aAAA;;;;;;;;;;;KAC5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAEtC,4BAAA,EAA4B,CAAA,CAAA,aAAA;;;;;;;;;;;KAC7B,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,4BAAA;;KAKxC,eAAA,GAAkB,sBAAA"}
|
package/dist/model/customType.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WidgetKeySchema } from "../common/widgetKey.js";
|
|
2
|
+
import { DynamicWidgetModelSchema, StaticWidgetModelSchema } from "./widget.js";
|
|
2
3
|
import { z } from "zod/mini";
|
|
3
4
|
//#region src/model/customType.ts
|
|
5
|
+
const StaticCustomTypeModelTabSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema);
|
|
6
|
+
const DynamicCustomTypeModelTabSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema);
|
|
4
7
|
const CustomTypeFormatSchema = z.enum(["page", "custom"]);
|
|
5
8
|
const createCustomTypeSchema = (sectionSchema) => z.object({
|
|
6
9
|
id: z.string(),
|
|
@@ -10,9 +13,9 @@ const createCustomTypeSchema = (sectionSchema) => z.object({
|
|
|
10
13
|
status: z._default(z.boolean(), true),
|
|
11
14
|
format: z._default(CustomTypeFormatSchema, "custom")
|
|
12
15
|
});
|
|
13
|
-
const StaticCustomTypeModelSchema = createCustomTypeSchema(
|
|
14
|
-
const
|
|
16
|
+
const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema);
|
|
17
|
+
const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema);
|
|
15
18
|
//#endregion
|
|
16
|
-
export {
|
|
19
|
+
export { DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema };
|
|
17
20
|
|
|
18
21
|
//# sourceMappingURL=customType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customType.js","names":[],"sources":["../../src/model/customType.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport {
|
|
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 = <T extends z.ZodMiniType>(sectionSchema: T) =>\n\tz.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})\n\nexport const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)\nexport type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>\n\nexport const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)\nexport type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>\n\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n/** @deprecated Use DynamicCustomTypeModel instead */\nexport type CustomTypeModel = DynamicCustomTypeModel\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,iBAAiB,wBAAwB;AAGhG,MAAa,kCAAkC,EAAE,OAAO,iBAAiB,yBAAyB;AAIlG,MAAa,yBAAyB,EAAE,KAAK,CAAC,QAAQ,SAAS,CAAC;AAIhE,MAAM,0BAAmD,kBACxD,EAAE,OAAO;CACR,IAAI,EAAE,QAAQ;CACd,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK;CACzC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc;CACzC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK;CACrC,QAAQ,EAAE,SAAS,wBAAwB,SAAS;CACpD,CAAC;AAEH,MAAa,8BAA8B,uBAAuB,+BAA+B;AAGjG,MAAa,+BAA+B,uBAAuB,gCAAgC"}
|
package/dist/model/group.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const NestedGroupModelSchema: z.ZodMiniObject<{
|
|
|
10
10
|
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
11
11
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
12
12
|
repeat: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
13
|
-
fields: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
13
|
+
fields: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
14
14
|
type: z.ZodMiniLiteral<"Boolean">;
|
|
15
15
|
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
16
16
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -182,7 +182,7 @@ declare const NestedGroupModelSchema: z.ZodMiniObject<{
|
|
|
182
182
|
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
183
183
|
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
184
184
|
}, z.core.$strip>>;
|
|
185
|
-
}, z.core.$strip>]>>>;
|
|
185
|
+
}, z.core.$strip>], "type">>>;
|
|
186
186
|
}, z.core.$strip>>;
|
|
187
187
|
}, z.core.$strip>;
|
|
188
188
|
type NestedGroupModel = z.infer<typeof NestedGroupModelSchema>;
|
package/dist/model/group.js
CHANGED
|
@@ -16,7 +16,7 @@ const createGroupSchema = (widgets) => z.object({
|
|
|
16
16
|
config: z.optional(createGroupConfigSchema(widgets))
|
|
17
17
|
});
|
|
18
18
|
const NestedGroupModelSchema = createGroupSchema(NestableModelSchema);
|
|
19
|
-
const GroupModelSchema = createGroupSchema(z.
|
|
19
|
+
const GroupModelSchema = createGroupSchema(z.discriminatedUnion("type", [NestableModelSchema, NestedGroupModelSchema]));
|
|
20
20
|
//#endregion
|
|
21
21
|
export { GroupModelSchema, NestedGroupModelSchema };
|
|
22
22
|
|
package/dist/model/group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","names":[],"sources":["../../src/model/group.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport type { NestableModel } from \"./nestable\"\nimport { NestableModelSchema } from \"./nestable\"\n\nexport const GroupFieldType = \"Group\"\n\n// Factory to create group config schema with configurable widget types\nconst createGroupConfigSchema = <TWidgets extends z.ZodMiniType>(widgets: TWidgets) =>\n\tz.object({\n\t\tlabel: z.nullish(z.string()),\n\t\trepeat: z.optional(z.boolean()),\n\t\tfields: z.optional(z.record(WidgetKeySchema, widgets)),\n\t})\n\n// Factory to create group schema with configurable widget types\nconst createGroupSchema = <TWidgets extends z.ZodMiniType>(widgets: TWidgets) =>\n\tz.object({\n\t\ttype: z.literal(GroupFieldType),\n\t\tfieldset: z.nullish(z.string()),\n\t\ticon: z.optional(z.string()),\n\t\tdescription: z.optional(z.string()),\n\t\tconfig: z.optional(createGroupConfigSchema(widgets)),\n\t})\n\n// NestedGroup - only allows Nestable in fields (no further nesting)\nexport const NestedGroupModelSchema = createGroupSchema(NestableModelSchema)\n\nexport type NestedGroupModel = z.infer<typeof NestedGroupModelSchema>\n\n// Group - allows Nestable | NestedGroup in fields (max 2 levels of nesting)\nexport const GroupModelSchema = createGroupSchema(\n\tz.
|
|
1
|
+
{"version":3,"file":"group.js","names":[],"sources":["../../src/model/group.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport type { NestableModel } from \"./nestable\"\nimport { NestableModelSchema } from \"./nestable\"\n\nexport const GroupFieldType = \"Group\"\n\n// Factory to create group config schema with configurable widget types\nconst createGroupConfigSchema = <TWidgets extends z.ZodMiniType>(widgets: TWidgets) =>\n\tz.object({\n\t\tlabel: z.nullish(z.string()),\n\t\trepeat: z.optional(z.boolean()),\n\t\tfields: z.optional(z.record(WidgetKeySchema, widgets)),\n\t})\n\n// Factory to create group schema with configurable widget types\nconst createGroupSchema = <TWidgets extends z.ZodMiniType>(widgets: TWidgets) =>\n\tz.object({\n\t\ttype: z.literal(GroupFieldType),\n\t\tfieldset: z.nullish(z.string()),\n\t\ticon: z.optional(z.string()),\n\t\tdescription: z.optional(z.string()),\n\t\tconfig: z.optional(createGroupConfigSchema(widgets)),\n\t})\n\n// NestedGroup - only allows Nestable in fields (no further nesting)\nexport const NestedGroupModelSchema = createGroupSchema(NestableModelSchema)\n\nexport type NestedGroupModel = z.infer<typeof NestedGroupModelSchema>\n\n// Group - allows Nestable | NestedGroup in fields (max 2 levels of nesting)\nexport const GroupModelSchema = createGroupSchema(\n\tz.discriminatedUnion(\"type\", [NestableModelSchema, NestedGroupModelSchema]) as z.ZodMiniType<\n\t\tNestableModel | NestedGroupModel\n\t>,\n)\n\nexport type GroupModel = z.infer<typeof GroupModelSchema>\n"],"mappings":";;;;AAMA,MAAa,iBAAiB;AAG9B,MAAM,2BAA2D,YAChE,EAAE,OAAO;CACR,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;CAC/B,QAAQ,EAAE,SAAS,EAAE,OAAO,iBAAiB,QAAQ,CAAC;CACtD,CAAC;AAGH,MAAM,qBAAqD,YAC1D,EAAE,OAAO;CACR,MAAM,EAAE,QAAQ,eAAe;CAC/B,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC/B,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;CAC5B,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnC,QAAQ,EAAE,SAAS,wBAAwB,QAAQ,CAAC;CACpD,CAAC;AAGH,MAAa,yBAAyB,kBAAkB,oBAAoB;AAK5E,MAAa,mBAAmB,kBAC/B,EAAE,mBAAmB,QAAQ,CAAC,qBAAqB,uBAAuB,CAAC,CAG3E"}
|
package/dist/model/nestable.js
CHANGED
|
@@ -16,7 +16,7 @@ import { TextModelSchema } from "./text.js";
|
|
|
16
16
|
import { TimestampModelSchema } from "./timestamp.js";
|
|
17
17
|
import { z } from "zod/mini";
|
|
18
18
|
//#region src/model/nestable.ts
|
|
19
|
-
const NestableModelSchema = z.
|
|
19
|
+
const NestableModelSchema = z.discriminatedUnion("type", [
|
|
20
20
|
BooleanModelSchema,
|
|
21
21
|
ColorModelSchema,
|
|
22
22
|
DateModelSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nestable.js","names":[],"sources":["../../src/model/nestable.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { BooleanModel } from \"./boolean\"\nimport { BooleanModelSchema } from \"./boolean\"\nimport type { ColorModel } from \"./color\"\nimport { ColorModelSchema } from \"./color\"\nimport type { DateModel } from \"./date\"\nimport { DateModelSchema } from \"./date\"\nimport type { EmbedModel } from \"./embed\"\nimport { EmbedModelSchema } from \"./embed\"\nimport type { GeoPointModel } from \"./geopoint\"\nimport { GeoPointModelSchema } from \"./geopoint\"\nimport type { ImageModel } from \"./image\"\nimport { ImageModelSchema } from \"./image\"\nimport type { IntegrationFieldModel } from \"./integrationField\"\nimport { IntegrationFieldModelSchema } from \"./integrationField\"\nimport type { LinkModel } from \"./link\"\nimport { LinkModelSchema } from \"./link\"\nimport type { NumberModel } from \"./number\"\nimport { NumberModelSchema } from \"./number\"\nimport type { RangeModel } from \"./range\"\nimport { RangeModelSchema } from \"./range\"\nimport type { RichTextModel } from \"./richText\"\nimport { RichTextModelSchema } from \"./richText\"\nimport type { SelectModel } from \"./select\"\nimport { SelectModelSchema } from \"./select\"\nimport type { SeparatorModel } from \"./separator\"\nimport { SeparatorModelSchema } from \"./separator\"\nimport type { TableModel } from \"./table\"\nimport { TableModelSchema } from \"./table\"\nimport type { TextModel } from \"./text\"\nimport { TextModelSchema } from \"./text\"\nimport type { TimestampModel } from \"./timestamp\"\nimport { TimestampModelSchema } from \"./timestamp\"\n\nexport const NestableModelSchema = z.
|
|
1
|
+
{"version":3,"file":"nestable.js","names":[],"sources":["../../src/model/nestable.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { BooleanModel } from \"./boolean\"\nimport { BooleanModelSchema } from \"./boolean\"\nimport type { ColorModel } from \"./color\"\nimport { ColorModelSchema } from \"./color\"\nimport type { DateModel } from \"./date\"\nimport { DateModelSchema } from \"./date\"\nimport type { EmbedModel } from \"./embed\"\nimport { EmbedModelSchema } from \"./embed\"\nimport type { GeoPointModel } from \"./geopoint\"\nimport { GeoPointModelSchema } from \"./geopoint\"\nimport type { ImageModel } from \"./image\"\nimport { ImageModelSchema } from \"./image\"\nimport type { IntegrationFieldModel } from \"./integrationField\"\nimport { IntegrationFieldModelSchema } from \"./integrationField\"\nimport type { LinkModel } from \"./link\"\nimport { LinkModelSchema } from \"./link\"\nimport type { NumberModel } from \"./number\"\nimport { NumberModelSchema } from \"./number\"\nimport type { RangeModel } from \"./range\"\nimport { RangeModelSchema } from \"./range\"\nimport type { RichTextModel } from \"./richText\"\nimport { RichTextModelSchema } from \"./richText\"\nimport type { SelectModel } from \"./select\"\nimport { SelectModelSchema } from \"./select\"\nimport type { SeparatorModel } from \"./separator\"\nimport { SeparatorModelSchema } from \"./separator\"\nimport type { TableModel } from \"./table\"\nimport { TableModelSchema } from \"./table\"\nimport type { TextModel } from \"./text\"\nimport { TextModelSchema } from \"./text\"\nimport type { TimestampModel } from \"./timestamp\"\nimport { TimestampModelSchema } from \"./timestamp\"\n\nexport const NestableModelSchema = z.discriminatedUnion(\"type\", [\n\tBooleanModelSchema,\n\tColorModelSchema,\n\tDateModelSchema,\n\tEmbedModelSchema,\n\tGeoPointModelSchema,\n\tImageModelSchema,\n\tIntegrationFieldModelSchema,\n\tLinkModelSchema,\n\tNumberModelSchema,\n\tRangeModelSchema,\n\tRichTextModelSchema,\n\tSelectModelSchema,\n\tSeparatorModelSchema,\n\tTableModelSchema,\n\tTextModelSchema,\n\tTimestampModelSchema,\n])\n\nexport type NestableModel =\n\t| BooleanModel\n\t| ColorModel\n\t| DateModel\n\t| EmbedModel\n\t| GeoPointModel\n\t| ImageModel\n\t| IntegrationFieldModel\n\t| LinkModel\n\t| NumberModel\n\t| RangeModel\n\t| RichTextModel\n\t| SelectModel\n\t| SeparatorModel\n\t| TableModel\n\t| TextModel\n\t| TimestampModel\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmCA,MAAa,sBAAsB,EAAE,mBAAmB,QAAQ;CAC/D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC"}
|
package/dist/model/slice.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const CompositeSliceModelSchema: z.ZodMiniObject<{
|
|
|
10
10
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
11
11
|
icon: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
12
12
|
display: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
13
|
-
"non-repeat": z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
13
|
+
"non-repeat": z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
14
14
|
type: z.ZodMiniLiteral<"Boolean">;
|
|
15
15
|
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
16
16
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -182,8 +182,8 @@ declare const CompositeSliceModelSchema: z.ZodMiniObject<{
|
|
|
182
182
|
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
183
183
|
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
184
184
|
}, z.core.$strip>>;
|
|
185
|
-
}, z.core.$strip>]>>>;
|
|
186
|
-
repeat: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
185
|
+
}, z.core.$strip>], "type">>>;
|
|
186
|
+
repeat: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
187
187
|
type: z.ZodMiniLiteral<"Boolean">;
|
|
188
188
|
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
189
189
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -355,7 +355,7 @@ declare const CompositeSliceModelSchema: z.ZodMiniObject<{
|
|
|
355
355
|
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
356
356
|
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
357
357
|
}, z.core.$strip>>;
|
|
358
|
-
}, z.core.$strip>]>>>;
|
|
358
|
+
}, z.core.$strip>], "type">>>;
|
|
359
359
|
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
360
360
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
361
361
|
}, z.core.$strip>>;
|
|
@@ -754,7 +754,7 @@ declare const SharedSliceModelVariationSchema: z.ZodMiniObject<{
|
|
|
754
754
|
}> | undefined;
|
|
755
755
|
} | undefined;
|
|
756
756
|
}, unknown>>>>;
|
|
757
|
-
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
757
|
+
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
758
758
|
type: z.ZodMiniLiteral<"Boolean">;
|
|
759
759
|
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
760
760
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -926,7 +926,7 @@ declare const SharedSliceModelVariationSchema: z.ZodMiniObject<{
|
|
|
926
926
|
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
927
927
|
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
928
928
|
}, z.core.$strip>>;
|
|
929
|
-
}, z.core.$strip>]>>>;
|
|
929
|
+
}, z.core.$strip>], "type">>>;
|
|
930
930
|
}, z.core.$strip>;
|
|
931
931
|
type SharedSliceModelVariation = z.infer<typeof SharedSliceModelVariationSchema>;
|
|
932
932
|
declare const SharedSliceModelSchema: z.ZodMiniObject<{
|
|
@@ -1326,7 +1326,7 @@ declare const SharedSliceModelSchema: z.ZodMiniObject<{
|
|
|
1326
1326
|
}> | undefined;
|
|
1327
1327
|
} | undefined;
|
|
1328
1328
|
}, unknown>>>>;
|
|
1329
|
-
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
1329
|
+
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1330
1330
|
type: z.ZodMiniLiteral<"Boolean">;
|
|
1331
1331
|
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1332
1332
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -1498,7 +1498,7 @@ declare const SharedSliceModelSchema: z.ZodMiniObject<{
|
|
|
1498
1498
|
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1499
1499
|
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1500
1500
|
}, z.core.$strip>>;
|
|
1501
|
-
}, z.core.$strip>]>>>;
|
|
1501
|
+
}, z.core.$strip>], "type">>>;
|
|
1502
1502
|
}, z.core.$strip>>;
|
|
1503
1503
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1504
1504
|
legacyPaths: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
@@ -1898,7 +1898,7 @@ declare const SharedSliceVariationContentModelSchema: z.ZodMiniObject<{
|
|
|
1898
1898
|
}> | undefined;
|
|
1899
1899
|
} | undefined;
|
|
1900
1900
|
}, unknown>>>>;
|
|
1901
|
-
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.
|
|
1901
|
+
items: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1902
1902
|
type: z.ZodMiniLiteral<"Boolean">;
|
|
1903
1903
|
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1904
1904
|
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
@@ -2070,7 +2070,7 @@ declare const SharedSliceVariationContentModelSchema: z.ZodMiniObject<{
|
|
|
2070
2070
|
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2071
2071
|
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2072
2072
|
}, z.core.$strip>>;
|
|
2073
|
-
}, z.core.$strip>]>>>;
|
|
2073
|
+
}, z.core.$strip>], "type">>>;
|
|
2074
2074
|
}, z.core.$strip>;
|
|
2075
2075
|
}, z.core.$strip>;
|
|
2076
2076
|
type SharedSliceVariationContentModel = z.infer<typeof SharedSliceVariationContentModelSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../src/model/slice.ts"],"mappings":";;;;;KAcY,gBAAA,GAAmB,aAAA,GAAgB,gBAAA;AAAA,cASlC,yBAAA,EAAyB,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAW1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA;AAAA,cAQpC,+BAAA,EAA+B,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAA,CAAA,cAAA;AAAA,KAKrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA"}
|
package/dist/model/slice.js
CHANGED
|
@@ -3,7 +3,7 @@ import { NestableModelSchema } from "./nestable.js";
|
|
|
3
3
|
import { GroupModelSchema, NestedGroupModelSchema } from "./group.js";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
5
|
//#region src/model/slice.ts
|
|
6
|
-
const LegacySliceModelSchema = z.
|
|
6
|
+
const LegacySliceModelSchema = z.discriminatedUnion("type", [NestableModelSchema, NestedGroupModelSchema]);
|
|
7
7
|
const CompositeSliceType = "Slice";
|
|
8
8
|
const CompositeSliceConfigSchema = z.object({ label: z.nullish(z.string()) });
|
|
9
9
|
const CompositeSliceModelSchema = z.object({
|
|
@@ -25,7 +25,7 @@ const SharedSliceModelVariationSchema = z.object({
|
|
|
25
25
|
docURL: z.string(),
|
|
26
26
|
version: z.string(),
|
|
27
27
|
display: z.optional(z.string()),
|
|
28
|
-
primary: z.optional(z.record(z.string(), z.
|
|
28
|
+
primary: z.optional(z.record(z.string(), z.discriminatedUnion("type", [NestableModelSchema, GroupModelSchema]))),
|
|
29
29
|
items: z.optional(z.record(z.string(), NestableModelSchema))
|
|
30
30
|
});
|
|
31
31
|
const SharedSliceModelSchema = z.object({
|
|
@@ -46,17 +46,17 @@ const SharedSliceVariationContentModelSchema = z.object({
|
|
|
46
46
|
items: true
|
|
47
47
|
})
|
|
48
48
|
});
|
|
49
|
-
const DynamicSliceModelSchema = z.
|
|
49
|
+
const DynamicSliceModelSchema = z.discriminatedUnion("type", [
|
|
50
50
|
CompositeSliceModelSchema,
|
|
51
51
|
LegacySliceModelSchema,
|
|
52
52
|
SharedSliceRefModelSchema
|
|
53
53
|
]);
|
|
54
|
-
const StaticSliceModelSchema = z.
|
|
54
|
+
const StaticSliceModelSchema = z.discriminatedUnion("type", [
|
|
55
55
|
CompositeSliceModelSchema,
|
|
56
56
|
LegacySliceModelSchema,
|
|
57
57
|
SharedSliceModelSchema
|
|
58
58
|
]);
|
|
59
|
-
const SliceContentModelSchema = z.
|
|
59
|
+
const SliceContentModelSchema = z.discriminatedUnion("type", [
|
|
60
60
|
CompositeSliceModelSchema,
|
|
61
61
|
LegacySliceModelSchema,
|
|
62
62
|
SharedSliceVariationContentModelSchema
|
package/dist/model/slice.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.js","names":[],"sources":["../../src/model/slice.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport type { GroupModel, NestedGroupModel } from \"./group\"\nimport { GroupModelSchema, NestedGroupModelSchema } from \"./group\"\nimport type { NestableModel } from \"./nestable\"\nimport { NestableModelSchema } from \"./nestable\"\n\n// Simple (before 2020)\nexport const LegacySliceModelSchema
|
|
1
|
+
{"version":3,"file":"slice.js","names":[],"sources":["../../src/model/slice.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport type { GroupModel, NestedGroupModel } from \"./group\"\nimport { GroupModelSchema, NestedGroupModelSchema } from \"./group\"\nimport type { NestableModel } from \"./nestable\"\nimport { NestableModelSchema } from \"./nestable\"\n\n// Simple (before 2020)\nexport const LegacySliceModelSchema = z.discriminatedUnion(\"type\", [\n\tNestableModelSchema,\n\tNestedGroupModelSchema,\n])\n\nexport type LegacySliceModel = NestableModel | NestedGroupModel\n\n// Composite (2020 to 2021)\nexport const CompositeSliceType = \"Slice\" as const\n\nconst CompositeSliceConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n})\n\nexport const CompositeSliceModelSchema = z.object({\n\ttype: z.literal(CompositeSliceType),\n\tfieldset: z.nullish(z.string()),\n\tdescription: z.optional(z.string()),\n\ticon: z.optional(z.string()),\n\tdisplay: z.optional(z.string()),\n\t\"non-repeat\": z.optional(z.record(WidgetKeySchema, NestableModelSchema)),\n\trepeat: z.optional(z.record(WidgetKeySchema, NestableModelSchema)),\n\tconfig: z.optional(CompositeSliceConfigSchema),\n})\n\nexport type CompositeSliceModel = z.infer<typeof CompositeSliceModelSchema>\n\n// Shared (2021 to present)\nexport const SharedSliceType = \"SharedSlice\" as const\n\nconst IMAGE_PLACEHOLDER_URL =\n\t\"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format\"\n\nexport const SharedSliceModelVariationSchema = z.object({\n\tid: z.string(),\n\tname: z.string(),\n\tdescription: z.string(),\n\timageUrl: z._default(z.string(), IMAGE_PLACEHOLDER_URL),\n\tdocURL: z.string(),\n\tversion: z.string(),\n\tdisplay: z.optional(z.string()),\n\tprimary: z.optional(\n\t\tz.record(\n\t\t\tz.string(),\n\t\t\tz.discriminatedUnion(\"type\", [NestableModelSchema, GroupModelSchema]) as z.ZodMiniType<\n\t\t\t\tNestableModel | GroupModel\n\t\t\t>,\n\t\t),\n\t),\n\titems: z.optional(z.record(z.string(), NestableModelSchema)),\n})\n\nexport type SharedSliceModelVariation = z.infer<typeof SharedSliceModelVariationSchema>\n\nexport const SharedSliceModelSchema = z.object({\n\tid: z.string(),\n\ttype: z.literal(SharedSliceType),\n\tname: z.string(),\n\tvariations: z.array(SharedSliceModelVariationSchema),\n\tdescription: z.optional(z.string()),\n\tlegacyPaths: z.optional(z.record(z.string(), z.string())),\n})\n\nexport type SharedSliceModel = z.infer<typeof SharedSliceModelSchema>\n\nexport const SharedSliceRefModelSchema = z.object({\n\ttype: z.literal(SharedSliceType),\n})\n\nexport type SharedSliceRefModel = z.infer<typeof SharedSliceRefModelSchema>\n\n// Used to represent a shared slice content which can only be\n// of a given shared slice variation type.\nexport const SharedSliceVariationContentModelSchema = z.object({\n\ttype: z.literal(SharedSliceType),\n\tsliceName: z.string(),\n\tvariationID: z.string(),\n\tfields: z.pick(SharedSliceModelVariationSchema, { primary: true, items: true }),\n})\n\nexport type SharedSliceVariationContentModel = z.infer<\n\ttypeof SharedSliceVariationContentModelSchema\n>\n\n// All\n\n// Used when slices reference SharedSlice by ref (not full definition)\nexport const DynamicSliceModelSchema: z.ZodMiniType<DynamicSliceModel> = z.discriminatedUnion(\n\t\"type\",\n\t[CompositeSliceModelSchema, LegacySliceModelSchema, SharedSliceRefModelSchema],\n)\n\nexport type DynamicSliceModel = CompositeSliceModel | LegacySliceModel | SharedSliceRefModel\n\n// Used when slices include full SharedSlice definition\nexport const StaticSliceModelSchema: z.ZodMiniType<StaticSliceModel> = z.discriminatedUnion(\n\t\"type\",\n\t[CompositeSliceModelSchema, LegacySliceModelSchema, SharedSliceModelSchema],\n)\n\nexport type StaticSliceModel = CompositeSliceModel | LegacySliceModel | SharedSliceModel\n\n// Used to represent a slice content model as shared slice variations\n// can only be of a given shared slice variation type.\nexport const SliceContentModelSchema: z.ZodMiniType<SliceContentModel> = z.discriminatedUnion(\n\t\"type\",\n\t[CompositeSliceModelSchema, LegacySliceModelSchema, SharedSliceVariationContentModelSchema],\n)\n\nexport type SliceContentModel =\n\t| CompositeSliceModel\n\t| LegacySliceModel\n\t| SharedSliceVariationContentModel\n\n// Model types\nexport const SliceModelTypeSchema = z.union([\n\tz.literal(CompositeSliceType),\n\tz.literal(SharedSliceType),\n])\n\nexport type SliceModelType = z.infer<typeof SliceModelTypeSchema>\n"],"mappings":";;;;;AASA,MAAa,yBAAyB,EAAE,mBAAmB,QAAQ,CAClE,qBACA,uBACA,CAAC;AAKF,MAAa,qBAAqB;AAElC,MAAM,6BAA6B,EAAE,OAAO,EAC3C,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAC5B,CAAC;AAEF,MAAa,4BAA4B,EAAE,OAAO;CACjD,MAAM,EAAE,QAAQ,mBAAmB;CACnC,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC/B,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;CAC5B,SAAS,EAAE,SAAS,EAAE,QAAQ,CA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E,mBAC1E,QACA;CAAC;CAA2B;CAAwB;CAA0B,CAC9E;AAKD,MAAa,yBAA0D,EAAE,mBACxE,QACA;CAAC;CAA2B;CAAwB;CAAuB,CAC3E;AAMD,MAAa,0BAA4D,EAAE,mBAC1E,QACA;CAAC;CAA2B;CAAwB;CAAuC,CAC3F;AAQD,MAAa,uBAAuB,EAAE,MAAM,CAC3C,EAAE,QAAQ,mBAAmB,EAC7B,EAAE,QAAQ,gBAAgB,CAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","names":[],"sources":["../../src/model/widget.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"widget.d.ts","names":[],"sources":["../../src/model/widget.ts"],"mappings":";;;;;;;KAkBY,iBAAA,GAAoB,QAAA,GAAW,aAAA,GAAgB,UAAA,GAAa,iBAAA;AAAA,KAQ5D,kBAAA,GAAqB,QAAA,GAAW,aAAA,GAAgB,UAAA,GAAa,kBAAA;AAAA,cAG5D,oBAAA,EAAoB,CAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;KAuBrB,cAAA,GAAiB,CAAA,CAAE,KAAA,QAAa,oBAAA;AAAA,cAG/B,sBAAA,EAAsB,CAAA,CAAA,YAAA,WAAA,CAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;KAOvB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA"}
|
package/dist/model/widget.js
CHANGED
|
@@ -5,13 +5,13 @@ import { DynamicSlicesModelSchema, StaticSlicesModelSchema } from "./slices.js";
|
|
|
5
5
|
import { UIDModelSchema } from "./uid.js";
|
|
6
6
|
import { z } from "zod/mini";
|
|
7
7
|
//#region src/model/widget.ts
|
|
8
|
-
const StaticWidgetModelSchema = z.
|
|
8
|
+
const StaticWidgetModelSchema = z.discriminatedUnion("type", [
|
|
9
9
|
UIDModelSchema,
|
|
10
10
|
NestableModelSchema,
|
|
11
11
|
GroupModelSchema,
|
|
12
12
|
StaticSlicesModelSchema
|
|
13
13
|
]);
|
|
14
|
-
const DynamicWidgetModelSchema = z.
|
|
14
|
+
const DynamicWidgetModelSchema = z.discriminatedUnion("type", [
|
|
15
15
|
UIDModelSchema,
|
|
16
16
|
NestableModelSchema,
|
|
17
17
|
GroupModelSchema,
|
package/dist/model/widget.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.js","names":[],"sources":["../../src/model/widget.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { GroupModel } from \"./group\"\nimport { GroupModelSchema } from \"./group\"\nimport type { NestableModel } from \"./nestable\"\nimport { NestableModelSchema } from \"./nestable\"\nimport { SliceModelTypeSchema } from \"./slice\"\nimport type { DynamicSlicesModel, StaticSlicesModel } from \"./slices\"\nimport { DynamicSlicesModelSchema, StaticSlicesModelSchema } from \"./slices\"\nimport type { UIDModel } from \"./uid\"\nimport { UIDModelSchema } from \"./uid\"\n\n// StaticWidget = UID | Nestable | Group | StaticSlices\nexport const StaticWidgetModelSchema: z.ZodMiniType<StaticWidgetModel> = z.
|
|
1
|
+
{"version":3,"file":"widget.js","names":[],"sources":["../../src/model/widget.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { GroupModel } from \"./group\"\nimport { GroupModelSchema } from \"./group\"\nimport type { NestableModel } from \"./nestable\"\nimport { NestableModelSchema } from \"./nestable\"\nimport { SliceModelTypeSchema } from \"./slice\"\nimport type { DynamicSlicesModel, StaticSlicesModel } from \"./slices\"\nimport { DynamicSlicesModelSchema, StaticSlicesModelSchema } from \"./slices\"\nimport type { UIDModel } from \"./uid\"\nimport { UIDModelSchema } from \"./uid\"\n\n// StaticWidget = UID | Nestable | Group | StaticSlices\nexport const StaticWidgetModelSchema: z.ZodMiniType<StaticWidgetModel> = z.discriminatedUnion(\n\t\"type\",\n\t[UIDModelSchema, NestableModelSchema, GroupModelSchema, StaticSlicesModelSchema],\n)\n\nexport type StaticWidgetModel = UIDModel | NestableModel | GroupModel | StaticSlicesModel\n\n// DynamicWidget = UID | Nestable | Group | DynamicSlices\nexport const DynamicWidgetModelSchema: z.ZodMiniType<DynamicWidgetModel> = z.discriminatedUnion(\n\t\"type\",\n\t[UIDModelSchema, NestableModelSchema, GroupModelSchema, DynamicSlicesModelSchema],\n)\n\nexport type DynamicWidgetModel = UIDModel | NestableModel | GroupModel | DynamicSlicesModel\n\n// FieldModelType - all possible field type strings\nexport const FieldModelTypeSchema = z.enum([\n\t\"Color\",\n\t\"Boolean\",\n\t\"Number\",\n\t\"Embed\",\n\t\"GeoPoint\",\n\t\"Date\",\n\t\"Range\",\n\t\"StructuredText\",\n\t\"Select\",\n\t\"Separator\",\n\t\"Table\",\n\t\"Text\",\n\t\"Timestamp\",\n\t\"Link\",\n\t\"Image\",\n\t\"IntegrationFields\",\n\t\"UID\",\n\t\"Group\",\n\t\"Slices\",\n\t\"Choice\",\n])\n\nexport type FieldModelType = z.infer<typeof FieldModelTypeSchema>\n\n// Field and slice types\nexport const FieldOrSliceTypeSchema = z.union([\n\tFieldModelTypeSchema,\n\tSliceModelTypeSchema,\n\t// Repeatable links are \"meta\" types like slices and shared slices\n\tz.literal(\"Repeatable.Link\"),\n])\n\nexport type FieldOrSliceType = z.infer<typeof FieldOrSliceTypeSchema>\n"],"mappings":";;;;;;;AAaA,MAAa,0BAA4D,EAAE,mBAC1E,QACA;CAAC;CAAgB;CAAqB;CAAkB;CAAwB,CAChF;AAKD,MAAa,2BAA8D,EAAE,mBAC5E,QACA;CAAC;CAAgB;CAAqB;CAAkB;CAAyB,CACjF;AAKD,MAAa,uBAAuB,EAAE,KAAK;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAAC;AAKF,MAAa,yBAAyB,EAAE,MAAM;CAC7C;CACA;CAEA,EAAE,QAAQ,kBAAkB;CAC5B,CAAC"}
|