@prismicio/types-internal 4.1.0-canary.858108c → 4.1.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.
@@ -1,14 +1,15 @@
1
1
  import { SharedSliceModel } from "../model/slice.js";
2
- import { DynamicCustomTypeModel, StaticCustomTypeModel, StaticCustomTypeModelTab } from "../model/customType.js";
2
+ import { CustomTypeModel, StaticCustomTypeModel } from "../model/customType.js";
3
+ import { StaticSectionModel } from "../model/section.js";
3
4
 
4
5
  //#region src/helpers/customTypeModel.d.ts
5
6
  declare namespace customTypeModel_d_exports {
6
7
  export { collectSharedSlices, filterMissingSharedSlices, flatten, toStatic };
7
8
  }
8
- declare function toStatic(customType: DynamicCustomTypeModel, sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>): StaticCustomTypeModel;
9
- declare function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab;
9
+ declare function toStatic(customType: CustomTypeModel, sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>): StaticCustomTypeModel;
10
+ declare function flatten(customType: StaticCustomTypeModel): StaticSectionModel;
10
11
  declare function collectSharedSlices(customType: StaticCustomTypeModel): Record<string, SharedSliceModel>;
11
- declare function filterMissingSharedSlices<TCustomType extends StaticCustomTypeModel | DynamicCustomTypeModel>(customType: TCustomType, sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>): TCustomType;
12
+ declare function filterMissingSharedSlices<TCustomType extends StaticCustomTypeModel | CustomTypeModel>(customType: TCustomType, sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>): TCustomType;
12
13
  //#endregion
13
14
  export { customTypeModel_d_exports };
14
15
  //# sourceMappingURL=customTypeModel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customTypeModel.d.ts","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"mappings":";;;;;;;iBAOgB,QAAA,CACf,UAAA,EAAY,sBAAA,EACZ,YAAA,EAAc,GAAA,SAAY,gBAAA,IAAoB,MAAA,SAAe,gBAAA,IAC3D,qBAAA;AAAA,iBAwCa,OAAA,CAAQ,UAAA,EAAY,qBAAA,GAAwB,wBAAA;AAAA,iBAI5C,mBAAA,CACf,UAAA,EAAY,qBAAA,GACV,MAAA,SAAe,gBAAA;AAAA,iBAiBF,yBAAA,qBACK,qBAAA,GAAwB,sBAAA,CAAA,CAE5C,UAAA,EAAY,WAAA,EACZ,YAAA,EAAc,GAAA,SAAY,gBAAA,IAAoB,MAAA,SAAe,gBAAA,IAC3D,WAAA"}
1
+ {"version":3,"file":"customTypeModel.d.ts","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"mappings":";;;;;;;;iBAIgB,QAAA,CACf,UAAA,EAAY,eAAA,EACZ,YAAA,EAAc,GAAA,SAAY,gBAAA,IAAoB,MAAA,SAAe,gBAAA,IAC3D,qBAAA;AAAA,iBAwCa,OAAA,CAAQ,UAAA,EAAY,qBAAA,GAAwB,kBAAA;AAAA,iBAI5C,mBAAA,CACf,UAAA,EAAY,qBAAA,GACV,MAAA,SAAe,gBAAA;AAAA,iBAiBF,yBAAA,qBACK,qBAAA,GAAwB,eAAA,CAAA,CAE5C,UAAA,EAAY,WAAA,EACZ,YAAA,EAAc,GAAA,SAAY,gBAAA,IAAoB,MAAA,SAAe,gBAAA,IAC3D,WAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"customTypeModel.js","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"sourcesContent":["import type {\n\tDynamicCustomTypeModel,\n\tStaticCustomTypeModel,\n\tStaticCustomTypeModelTab,\n} from \"../model/customType\"\nimport type { SharedSliceModel, StaticSliceModel } from \"../model/slice\"\n\nexport function toStatic(\n\tcustomType: DynamicCustomTypeModel,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): StaticCustomTypeModel {\n\tconst json: StaticCustomTypeModel[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: StaticCustomTypeModel[\"json\"][string] = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Record<string, StaticSliceModel> = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tconst sharedSlice = sharedSlicesMap.get(id)\n\t\t\t\t\t\t\tif (sharedSlice) {\n\t\t\t\t\t\t\t\tchoices[id] = sharedSlice\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n\nexport function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab {\n\treturn Object.values(customType.json).reduce((acc, fields) => ({ ...acc, ...fields }), {})\n}\n\nexport function collectSharedSlices(\n\tcustomType: StaticCustomTypeModel,\n): Record<string, SharedSliceModel> {\n\tconst sharedSlices: Record<string, SharedSliceModel> = {}\n\n\tconst flattened = flatten(customType)\n\tfor (const widget of Object.values(flattened)) {\n\t\tif (widget.type === \"Slices\" || widget.type === \"Choice\") {\n\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\tsharedSlices[id] = model\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn sharedSlices\n}\n\nexport function filterMissingSharedSlices<\n\tTCustomType extends StaticCustomTypeModel | DynamicCustomTypeModel,\n>(\n\tcustomType: TCustomType,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): TCustomType {\n\tconst json: TCustomType[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: typeof tab = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Required<typeof widget>[\"config\"][\"choices\"] = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tif (sharedSlicesMap.get(id)) {\n\t\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,SACf,YACA,cACwB;CACxB,MAAM,OAAsC,EAAE;CAE9C,MAAM,kBACL,wBAAwB,MAAM,eAAe,IAAI,IAAI,OAAO,QAAQ,aAAa,CAAC;AAEnF,MAAK,MAAM,CAAC,QAAQ,QAAQ,OAAO,QAAQ,WAAW,KAAK,EAAE;EAC5D,M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AAQ,IAAI,CAC9C,SAAQ,OAAO,MAAf;GACC,KAAK;GACL,KAAK;IACJ,MAAM,UAAwD,EAAE;AAChE,SAAK,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,EAAE,CAAC,CACrE,KAAI,MAAM,SAAS;SACd,gBAAgB,IAAI,GAAG,CAC1B,SAAQ,MAAM;UAGf,SAAQ,MAAM;AAIhB,YAAQ,OAAO;KACd,GAAG;KACH,QAAQ;MAAE,GAAG,OAAO;MAAQ;MAAS;KACrC;AACD;GACD,QACC,SAAQ,OAAO;;AAIlB,OAAK,UAAU;;AAGhB,QAAO;EAAE,GAAG;EAAY;EAAM"}
1
+ {"version":3,"file":"customTypeModel.js","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"sourcesContent":["import type { CustomTypeModel, StaticCustomTypeModel } from \"../model/customType\"\nimport type { StaticSectionModel } from \"../model/section\"\nimport type { SharedSliceModel, StaticSliceModel } from \"../model/slice\"\n\nexport function toStatic(\n\tcustomType: CustomTypeModel,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): StaticCustomTypeModel {\n\tconst json: StaticCustomTypeModel[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: StaticCustomTypeModel[\"json\"][string] = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Record<string, StaticSliceModel> = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tconst sharedSlice = sharedSlicesMap.get(id)\n\t\t\t\t\t\t\tif (sharedSlice) {\n\t\t\t\t\t\t\t\tchoices[id] = sharedSlice\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n\nexport function flatten(customType: StaticCustomTypeModel): StaticSectionModel {\n\treturn Object.values(customType.json).reduce((acc, fields) => ({ ...acc, ...fields }), {})\n}\n\nexport function collectSharedSlices(\n\tcustomType: StaticCustomTypeModel,\n): Record<string, SharedSliceModel> {\n\tconst sharedSlices: Record<string, SharedSliceModel> = {}\n\n\tconst flattened = flatten(customType)\n\tfor (const widget of Object.values(flattened)) {\n\t\tif (widget.type === \"Slices\" || widget.type === \"Choice\") {\n\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\tsharedSlices[id] = model\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn sharedSlices\n}\n\nexport function filterMissingSharedSlices<\n\tTCustomType extends StaticCustomTypeModel | CustomTypeModel,\n>(\n\tcustomType: TCustomType,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): TCustomType {\n\tconst json: TCustomType[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: typeof tab = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Required<typeof widget>[\"config\"][\"choices\"] = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tif (sharedSlicesMap.get(id)) {\n\t\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n"],"mappings":";;;;;;;;AAIA,SAAgB,SACf,YACA,cACwB;CACxB,MAAM,OAAsC,EAAE;CAE9C,MAAM,kBACL,wBAAwB,MAAM,eAAe,IAAI,IAAI,OAAO,QAAQ,aAAa,CAAC;AAEnF,MAAK,MAAM,CAAC,QAAQ,QAAQ,OAAO,QAAQ,WAAW,KAAK,EAAE;EAC5D,MAAM,UAAiD,EAAE;AACzD,OAAK,MAAM,CAAC,KAAK,WAAW,OAAO,QAAQ,IAAI,CAC9C,SAAQ,OAAO,MAAf;GACC,KAAK;GACL,KAAK;IACJ,MAAM,UAA4C,EAAE;AACpD,SAAK,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,EAAE,CAAC,CACrE,KAAI,MAAM,SAAS,eAAe;KACjC,MAAM,cAAc,gBAAgB,IAAI,GAAG;AAC3C,SAAI,YACH,SAAQ,MAAM;UAGf,SAAQ,MAAM;AAIhB,YAAQ,OAAO;KACd,GAAG;KACH,QAAQ;MAAE,GAAG,OAAO;MAAQ;MAAS;KACrC;AACD;GACD,QACC,SAAQ,OAAO;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 +45,8 @@ import { CompositeSliceModel, DynamicSliceModel, LegacySliceModel, SharedSliceMo
45
45
  import { DynamicSlicesModel, StaticSlicesModel } from "./model/slices.js";
46
46
  import { UIDModel } from "./model/uid.js";
47
47
  import { DynamicWidgetModel, FieldModelType, StaticWidgetModel } from "./model/widget.js";
48
- import { CustomTypeModel, DynamicCustomTypeModel, DynamicCustomTypeModelTab, StaticCustomTypeModel, StaticCustomTypeModelTab } from "./model/customType.js";
48
+ import { CustomTypeModel, StaticCustomTypeModel } from "./model/customType.js";
49
+ import { DynamicSectionModel, StaticSectionModel } from "./model/section.js";
49
50
  import { LegacyContentCtx, defaultCtx, getFieldCtx } from "./content/codec/legacyContentCtx.js";
50
51
  import { contentPath_d_exports } from "./helpers/contentPath.js";
51
52
  import { customTypeModel_d_exports } from "./helpers/customTypeModel.js";
@@ -55,4 +56,4 @@ import { withDefaultContent_d_exports } from "./helpers/withDefaultContent.js";
55
56
  import { imageContent_d_exports } from "./helpers/imageContent.js";
56
57
  import { TraverseSliceContentFunction, TraverseWidgetContentFunction, traverseCompositeSliceContent, traverseDocumentContent, traverseGroupContent, traverseGroupItemsContent, traverseLegacySliceContent, traverseRepeatableContent, traverseSharedSliceContent, traverseSlicesContent, traverseTableContent } from "./helpers/traverseContent.js";
57
58
  import { TraverseSliceContentWithModelFunction, TraverseWidgetContentWithModelFunction, traverseCompositeSliceContentWithModel, traverseDocumentContentWithModel, traverseGroupContentWithModel, traverseGroupItemsContentWithModel, traverseLegacySliceContentWithModel, traverseRepeatableContentWithModel, traverseSharedSliceContentWithModel, traverseSlicesContentWithModel, traverseTableContentWithModel } from "./helpers/traverseContentWithModel.js";
58
- export { type Asset, type BooleanContent, type BooleanModel, type ColorContent, type ColorModel, type CompositeSliceContent, type CompositeSliceItemContent, type CompositeSliceModel, type CustomTypeModel, type DateContent, type DateModel, type DocumentContent, type DynamicCustomTypeModel, type DynamicCustomTypeModelTab, type DynamicSliceModel, type DynamicSlicesModel, type DynamicWidgetModel, type Embed, type EmbedContent, type EmbedModel, type EmptyContent, type EmptyLinkContent, type FieldContent, type FieldModelType, type FilledLinkContent, type GeoPointContent, type GeoPointModel, type GroupContent, type GroupItemContent, type GroupModel, type HexaColorCode, type ImageContent, type ImageContentView, type ImageModel, type IntegrationFieldContent, type IntegrationFieldModel, LegacyContentCtx, type LegacySliceContent, type LegacySliceItemContent, type LegacySliceModel, type LinkContent, type LinkModel, type NestableContent, type NestableModel, type NestedGroupModel, type NonEmptyString, type NumberContent, type NumberModel, type RangeContent, type RangeModel, type RepeatableContent, type RichTextContent, type RichTextContentBlock, type RichTextContentEmbedBlock, type RichTextContentImageBlock, type RichTextContentSpan, type RichTextContentTextBlock, type RichTextModel, RichTextModelNodeType, type RichTextModelNodeTypes, RichTextNodeType, type RichTextNodeTypes, type SelectContent, type SelectModel, type SeparatorContent, type SeparatorModel, type SharedSliceContent, type SharedSliceItemContent, type SharedSliceModel, type SharedSliceModelVariation, type SharedSliceRefModel, type SharedSliceVariationContentModel, type SliceContent, type SliceContentModel, type SliceItemContent, type SliceModelType, type SlicesContent, type StaticCustomTypeModel, type StaticCustomTypeModelTab, type StaticSliceModel, type StaticSlicesModel, type StaticWidgetModel, TableCellModelNodeTypes, type TableContent, type TableModel, type TextContent, type TextModel, type TimestampContent, type TimestampModel, type TraverseSliceContentFunction, type TraverseSliceContentWithModelFunction, type TraverseWidgetContentFunction, type TraverseWidgetContentWithModelFunction, type UIDContent, type UIDModel, type WidgetContent, type WidgetKey, contentPath_d_exports as contentPath, customTypeModel_d_exports as customTypeModel, defaultCtx, documentContent_d_exports as documentContent, getFieldCtx, imageContent_d_exports as imageContent, sliceContent_d_exports as sliceContent, traverseCompositeSliceContent, traverseCompositeSliceContentWithModel, traverseDocumentContent, traverseDocumentContentWithModel, traverseGroupContent, traverseGroupContentWithModel, traverseGroupItemsContent, traverseGroupItemsContentWithModel, traverseLegacySliceContent, traverseLegacySliceContentWithModel, traverseRepeatableContent, traverseRepeatableContentWithModel, traverseSharedSliceContent, traverseSharedSliceContentWithModel, traverseSlicesContent, traverseSlicesContentWithModel, traverseTableContent, traverseTableContentWithModel, withDefaultContent_d_exports as withDefaultContent };
59
+ export { type Asset, type BooleanContent, type BooleanModel, type ColorContent, type ColorModel, type CompositeSliceContent, type CompositeSliceItemContent, type CompositeSliceModel, type CustomTypeModel, type DateContent, type DateModel, type DocumentContent, type DynamicSectionModel, type DynamicSliceModel, type DynamicSlicesModel, type DynamicWidgetModel, type Embed, type EmbedContent, type EmbedModel, type EmptyContent, type EmptyLinkContent, type FieldContent, type FieldModelType, type FilledLinkContent, type GeoPointContent, type GeoPointModel, type GroupContent, type GroupItemContent, type GroupModel, type HexaColorCode, type ImageContent, type ImageContentView, type ImageModel, type IntegrationFieldContent, type IntegrationFieldModel, LegacyContentCtx, type LegacySliceContent, type LegacySliceItemContent, type LegacySliceModel, type LinkContent, type LinkModel, type NestableContent, type NestableModel, type NestedGroupModel, type NonEmptyString, type NumberContent, type NumberModel, type RangeContent, type RangeModel, type RepeatableContent, type RichTextContent, type RichTextContentBlock, type RichTextContentEmbedBlock, type RichTextContentImageBlock, type RichTextContentSpan, type RichTextContentTextBlock, type RichTextModel, RichTextModelNodeType, type RichTextModelNodeTypes, RichTextNodeType, type RichTextNodeTypes, type SelectContent, type SelectModel, type SeparatorContent, type SeparatorModel, type SharedSliceContent, type SharedSliceItemContent, type SharedSliceModel, type SharedSliceModelVariation, type SharedSliceRefModel, type SharedSliceVariationContentModel, type SliceContent, type SliceContentModel, type SliceItemContent, type SliceModelType, type SlicesContent, type StaticCustomTypeModel, type StaticSectionModel, type StaticSliceModel, type StaticSlicesModel, type StaticWidgetModel, TableCellModelNodeTypes, type TableContent, type TableModel, type TextContent, type TextModel, type TimestampContent, type TimestampModel, type TraverseSliceContentFunction, type TraverseSliceContentWithModelFunction, type TraverseWidgetContentFunction, type TraverseWidgetContentWithModelFunction, type UIDContent, type UIDModel, type WidgetContent, type WidgetKey, contentPath_d_exports as contentPath, customTypeModel_d_exports as customTypeModel, defaultCtx, documentContent_d_exports as documentContent, getFieldCtx, imageContent_d_exports as imageContent, sliceContent_d_exports as sliceContent, traverseCompositeSliceContent, traverseCompositeSliceContentWithModel, traverseDocumentContent, traverseDocumentContentWithModel, traverseGroupContent, traverseGroupContentWithModel, traverseGroupItemsContent, traverseGroupItemsContentWithModel, traverseLegacySliceContent, traverseLegacySliceContentWithModel, traverseRepeatableContent, traverseRepeatableContentWithModel, traverseSharedSliceContent, traverseSharedSliceContentWithModel, traverseSlicesContent, traverseSlicesContentWithModel, traverseTableContent, traverseTableContentWithModel, withDefaultContent_d_exports as withDefaultContent };
package/dist/io-ts.d.ts CHANGED
@@ -4755,8 +4755,8 @@ declare const StaticSlicesModelSchema: t.Type<{
4755
4755
  }, unknown>;
4756
4756
  declare const StaticWidgetModelSchema: t.Type<StaticWidgetModel, StaticWidgetModel, unknown>;
4757
4757
  declare const DynamicWidgetModelSchema: t.Type<DynamicWidgetModel, DynamicWidgetModel, unknown>;
4758
- declare const StaticCustomTypeModelTabSchema: t.Type<Record<string, StaticWidgetModel>, Record<string, StaticWidgetModel>, unknown>;
4759
- declare const DynamicCustomTypeModelTabSchema: t.Type<Record<string, DynamicWidgetModel>, Record<string, DynamicWidgetModel>, unknown>;
4758
+ declare const StaticSectionModelSchema: t.Type<Record<string, StaticWidgetModel>, Record<string, StaticWidgetModel>, unknown>;
4759
+ declare const DynamicSectionModelSchema: t.Type<Record<string, DynamicWidgetModel>, Record<string, DynamicWidgetModel>, unknown>;
4760
4760
  declare const StaticCustomTypeModelSchema: t.Type<{
4761
4761
  id: string;
4762
4762
  repeatable: boolean;
@@ -4772,22 +4772,6 @@ declare const StaticCustomTypeModelSchema: t.Type<{
4772
4772
  format: "custom" | "page";
4773
4773
  label?: string | null | undefined;
4774
4774
  }, unknown>;
4775
- declare const DynamicCustomTypeModelSchema: t.Type<{
4776
- id: string;
4777
- repeatable: boolean;
4778
- json: Record<string, Record<string, DynamicWidgetModel>>;
4779
- status: boolean;
4780
- format: "custom" | "page";
4781
- label?: string | null | undefined;
4782
- }, {
4783
- id: string;
4784
- repeatable: boolean;
4785
- json: Record<string, Record<string, DynamicWidgetModel>>;
4786
- status: boolean;
4787
- format: "custom" | "page";
4788
- label?: string | null | undefined;
4789
- }, unknown>;
4790
- /** @deprecated Use DynamicCustomTypeModelSchema instead */
4791
4775
  declare const CustomTypeModelSchema: t.Type<{
4792
4776
  id: string;
4793
4777
  repeatable: boolean;
@@ -4804,5 +4788,5 @@ declare const CustomTypeModelSchema: t.Type<{
4804
4788
  label?: string | null | undefined;
4805
4789
  }, unknown>;
4806
4790
  //#endregion
4807
- 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 };
4791
+ export { AssetSchema, BooleanContentSchema, BooleanLegacy, BooleanModelSchema, ColorContentSchema, ColorLegacy, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceLegacy, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateLegacy, DateModelSchema, DocumentContentSchema, DocumentLegacy, DynamicSectionModelSchema, 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, StaticSectionModelSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableLegacy, TableModelSchema, TextContentSchema, TextLegacy, TextModelSchema, TimestampContentSchema, TimestampLegacy, TimestampModelSchema, UIDContentSchema, UIDLegacy, UIDModelSchema, WidgetContentSchema, WidgetKeySchema, WidgetLegacy };
4808
4792
  //# sourceMappingURL=io-ts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"io-ts.d.ts","names":[],"sources":["../src/io-ts.ts"],"mappings":";;;;;;;;;;;;;;;;cAiJa,WAAA,EAAW,CAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,WAAA,EAAW,CAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cACX,mBAAA,EAAmB,CAAA,CAAA,IAAA;AAAA,cACnB,oBAAA,EAAoB,CAAA,CAAA,IAAA;AAAA,cACpB,eAAA,EAAe,CAAA,CAAA,IAAA;AAAA,cAGf,oBAAA,EAAoB,CAAA,CAAA,IAAA;;;;;;;cACpB,kBAAA,EAAkB,CAAA,CAAA,IAAA;;;;;;;;;cAClB,iBAAA,EAAiB,CAAA,CAAA,I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icWidgetModelSchema$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 { DynamicCustomTypeModelSchema as DynamicCustomTypeModelSchema$1, DynamicCustomTypeModelTabSchema as DynamicCustomTypeModelTabSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1, StaticCustomTypeModelTabSchema as StaticCustomTypeModelTabSchema$1 } from "./model/customType.js";
66
+ import { DynamicSectionModelSchema as DynamicSectionModelSchema$1, StaticSectionModelSchema as StaticSectionModelSchema$1 } from "./model/section.js";
67
+ import { CustomTypeModelSchema as CustomTypeModelSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1 } from "./model/customType.js";
67
68
  import * as t from "io-ts";
68
69
  //#region src/io-ts.ts
69
70
  const AssetSchema = toIOTS(AssetSchema$1);
@@ -172,12 +173,10 @@ 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);
175
- const StaticCustomTypeModelTabSchema = toIOTS(StaticCustomTypeModelTabSchema$1);
176
- const DynamicCustomTypeModelTabSchema = toIOTS(DynamicCustomTypeModelTabSchema$1);
176
+ const StaticSectionModelSchema = toIOTS(StaticSectionModelSchema$1);
177
+ const DynamicSectionModelSchema = toIOTS(DynamicSectionModelSchema$1);
177
178
  const StaticCustomTypeModelSchema = toIOTS(StaticCustomTypeModelSchema$1);
178
- const DynamicCustomTypeModelSchema = toIOTS(DynamicCustomTypeModelSchema$1);
179
- /** @deprecated Use DynamicCustomTypeModelSchema instead */
180
- const CustomTypeModelSchema = DynamicCustomTypeModelSchema;
179
+ const CustomTypeModelSchema = toIOTS(CustomTypeModelSchema$1);
181
180
  function toIOTS(type) {
182
181
  return new t.Type("Type", (input) => type.safeParse(input).success, (input, context) => {
183
182
  const result = type.safeParse(input);
@@ -220,6 +219,6 @@ function formatIssue(issue, input) {
220
219
  return issue.message;
221
220
  }
222
221
  //#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 };
222
+ export { AssetSchema, BooleanContentSchema, BooleanLegacy, BooleanModelSchema, ColorContentSchema, ColorLegacy, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceLegacy, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateLegacy, DateModelSchema, DocumentContentSchema, DocumentLegacy, DynamicSectionModelSchema, 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, StaticSectionModelSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableLegacy, TableModelSchema, TextContentSchema, TextLegacy, TextModelSchema, TimestampContentSchema, TimestampLegacy, TimestampModelSchema, UIDContentSchema, UIDLegacy, UIDModelSchema, WidgetContentSchema, WidgetKeySchema, WidgetLegacy };
224
223
 
225
224
  //# 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,cAAe;AACjD,MAAa,cAAc,OAAOC,cAAe;AACjD,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,kBAAkB,OAAOC,kBAAmB;AAGzD,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,wBAAwB,OAAOC,wBAAyB;AACrE,MAAa,0BAA0B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C,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","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,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,kBAAkB,OAAOC,kBAAmB;AAGzD,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,wBAAwB,OAAOC,wBAAyB;AACrE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,yBAAyB,OAAOC,yB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GrD,QAAO,MAAM"}
@@ -2,10 +2,6 @@ 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>;
9
5
  declare const StaticCustomTypeModelSchema: z.ZodMiniObject<{
10
6
  id: z.ZodMiniString<string>;
11
7
  label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
@@ -18,7 +14,7 @@ declare const StaticCustomTypeModelSchema: z.ZodMiniObject<{
18
14
  }>>;
19
15
  }, z.core.$strip>;
20
16
  type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>;
21
- declare const DynamicCustomTypeModelSchema: z.ZodMiniObject<{
17
+ declare const CustomTypeModelSchema: z.ZodMiniObject<{
22
18
  id: z.ZodMiniString<string>;
23
19
  label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
24
20
  repeatable: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
@@ -29,9 +25,7 @@ declare const DynamicCustomTypeModelSchema: z.ZodMiniObject<{
29
25
  page: "page";
30
26
  }>>;
31
27
  }, z.core.$strip>;
32
- type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>;
33
- /** @deprecated Use DynamicCustomTypeModel instead */
34
- type CustomTypeModel = DynamicCustomTypeModel;
28
+ type CustomTypeModel = z.infer<typeof CustomTypeModelSchema>;
35
29
  //#endregion
36
- export { CustomTypeModel, DynamicCustomTypeModel, DynamicCustomTypeModelTab, StaticCustomTypeModel, StaticCustomTypeModelTab };
30
+ export { CustomTypeModel, StaticCustomTypeModel };
37
31
  //# sourceMappingURL=customType.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"customType.d.ts","names":[],"sources":["../../src/model/customType.ts"],"mappings":";;;;cAoBa,2BAAA,EAA2B,CAAA,CAAA,aAAA;;;;;;;;;;;KAC5B,qBAAA,GAAwB,CAAA,CAAE,KAAA,QAAa,2BAAA;AAAA,cAGtC,qBAAA,EAAqB,CAAA,CAAA,aAAA;;;;;;;;;;;KACtB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,qBAAA"}
@@ -1,9 +1,6 @@
1
- import { WidgetKeySchema } from "../common/widgetKey.js";
2
- import { DynamicWidgetModelSchema, StaticWidgetModelSchema } from "./widget.js";
1
+ import { DynamicSectionModelSchema, StaticSectionModelSchema } from "./section.js";
3
2
  import { z } from "zod/mini";
4
3
  //#region src/model/customType.ts
5
- const StaticCustomTypeModelTabSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema);
6
- const DynamicCustomTypeModelTabSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema);
7
4
  const CustomTypeFormatSchema = z.enum(["page", "custom"]);
8
5
  const createCustomTypeSchema = (sectionSchema) => z.object({
9
6
  id: z.string(),
@@ -13,9 +10,9 @@ const createCustomTypeSchema = (sectionSchema) => z.object({
13
10
  status: z._default(z.boolean(), true),
14
11
  format: z._default(CustomTypeFormatSchema, "custom")
15
12
  });
16
- const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema);
17
- const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema);
13
+ const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticSectionModelSchema);
14
+ const CustomTypeModelSchema = createCustomTypeSchema(DynamicSectionModelSchema);
18
15
  //#endregion
19
- export { DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema };
16
+ export { CustomTypeModelSchema, StaticCustomTypeModelSchema };
20
17
 
21
18
  //# 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 { 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"}
1
+ {"version":3,"file":"customType.js","names":[],"sources":["../../src/model/customType.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { DynamicSectionModelSchema, StaticSectionModelSchema } from \"./section\"\n\n// CustomTypeFormat - \"page\" | \"custom\"\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\n// StaticCustomType - uses StaticSection (with full SharedSlice definitions)\nexport const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticSectionModelSchema)\nexport type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>\n\n// CustomType (dynamic) - uses DynamicSection (with SharedSliceRef references)\nexport const CustomTypeModelSchema = createCustomTypeSchema(DynamicSectionModelSchema)\nexport type CustomTypeModel = z.infer<typeof CustomTypeModelSchema>\n"],"mappings":";;;AAKA,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;AAGH,MAAa,8BAA8B,uBAAuB,yBAAyB;AAI3F,MAAa,wBAAwB,uBAAuB,0BAA0B"}
@@ -0,0 +1,11 @@
1
+ import { DynamicWidgetModel, StaticWidgetModel } from "./widget.js";
2
+ import { z } from "zod/mini";
3
+
4
+ //#region src/model/section.d.ts
5
+ declare const StaticSectionModelSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<StaticWidgetModel, unknown, z.core.$ZodTypeInternals<StaticWidgetModel, unknown>>>;
6
+ type StaticSectionModel = z.infer<typeof StaticSectionModelSchema>;
7
+ declare const DynamicSectionModelSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<DynamicWidgetModel, unknown, z.core.$ZodTypeInternals<DynamicWidgetModel, unknown>>>;
8
+ type DynamicSectionModel = z.infer<typeof DynamicSectionModelSchema>;
9
+ //#endregion
10
+ export { DynamicSectionModel, StaticSectionModel };
11
+ //# sourceMappingURL=section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.d.ts","names":[],"sources":["../../src/model/section.ts"],"mappings":";;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,aAAA,CAAA,CAAA,CAAA,aAAA,UAAA,CAAA,CAAA,WAAA,CAAA,iBAAA,WAAA,CAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,KACzB,kBAAA,GAAqB,CAAA,CAAE,KAAA,QAAa,wBAAA;AAAA,cAGnC,yBAAA,EAAyB,CAAA,CAAA,aAAA,CAAA,CAAA,CAAA,aAAA,UAAA,CAAA,CAAA,WAAA,CAAA,kBAAA,WAAA,CAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,KAC1B,mBAAA,GAAsB,CAAA,CAAE,KAAA,QAAa,yBAAA"}
@@ -0,0 +1,10 @@
1
+ import { WidgetKeySchema } from "../common/widgetKey.js";
2
+ import { DynamicWidgetModelSchema, StaticWidgetModelSchema } from "./widget.js";
3
+ import { z } from "zod/mini";
4
+ //#region src/model/section.ts
5
+ const StaticSectionModelSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema);
6
+ const DynamicSectionModelSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema);
7
+ //#endregion
8
+ export { DynamicSectionModelSchema, StaticSectionModelSchema };
9
+
10
+ //# sourceMappingURL=section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.js","names":[],"sources":["../../src/model/section.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { WidgetKeySchema } from \"../common/widgetKey\"\nimport { DynamicWidgetModelSchema, StaticWidgetModelSchema } from \"./widget\"\n\n// StaticSection = Record<WidgetKey, StaticWidget>\nexport const StaticSectionModelSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema)\nexport type StaticSectionModel = z.infer<typeof StaticSectionModelSchema>\n\n// DynamicSection = Record<WidgetKey, DynamicWidget>\nexport const DynamicSectionModelSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema)\nexport type DynamicSectionModel = z.infer<typeof DynamicSectionModelSchema>\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO,iBAAiB,wBAAwB;AAI1F,MAAa,4BAA4B,EAAE,OAAO,iBAAiB,yBAAyB"}
package/dist/zod4.d.ts CHANGED
@@ -2811,8 +2811,8 @@ declare const StaticSlicesModelSchema: _$zod_mini0.ZodMiniObject<{
2811
2811
  }, _$zod_v4_core0.$strip>;
2812
2812
  declare const StaticWidgetModelSchema: _$zod_mini0.ZodMiniType<StaticWidgetModel, unknown, _$zod_v4_core0.$ZodTypeInternals<StaticWidgetModel, unknown>>;
2813
2813
  declare const DynamicWidgetModelSchema: _$zod_mini0.ZodMiniType<DynamicWidgetModel, unknown, _$zod_v4_core0.$ZodTypeInternals<DynamicWidgetModel, unknown>>;
2814
- declare const StaticCustomTypeModelTabSchema: _$zod_mini0.ZodMiniRecord<_$zod_mini0.ZodMiniString<string>, _$zod_mini0.ZodMiniType<StaticWidgetModel, unknown, _$zod_v4_core0.$ZodTypeInternals<StaticWidgetModel, unknown>>>;
2815
- declare const DynamicCustomTypeModelTabSchema: _$zod_mini0.ZodMiniRecord<_$zod_mini0.ZodMiniString<string>, _$zod_mini0.ZodMiniType<DynamicWidgetModel, unknown, _$zod_v4_core0.$ZodTypeInternals<DynamicWidgetModel, unknown>>>;
2814
+ declare const StaticSectionModelSchema: _$zod_mini0.ZodMiniRecord<_$zod_mini0.ZodMiniString<string>, _$zod_mini0.ZodMiniType<StaticWidgetModel, unknown, _$zod_v4_core0.$ZodTypeInternals<StaticWidgetModel, unknown>>>;
2815
+ declare const DynamicSectionModelSchema: _$zod_mini0.ZodMiniRecord<_$zod_mini0.ZodMiniString<string>, _$zod_mini0.ZodMiniType<DynamicWidgetModel, unknown, _$zod_v4_core0.$ZodTypeInternals<DynamicWidgetModel, unknown>>>;
2816
2816
  declare const StaticCustomTypeModelSchema: _$zod_mini0.ZodMiniObject<{
2817
2817
  id: _$zod_mini0.ZodMiniString<string>;
2818
2818
  label: _$zod_mini0.ZodMiniOptional<_$zod_mini0.ZodMiniNullable<_$zod_mini0.ZodMiniString<string>>>;
@@ -2824,18 +2824,6 @@ declare const StaticCustomTypeModelSchema: _$zod_mini0.ZodMiniObject<{
2824
2824
  page: "page";
2825
2825
  }>>;
2826
2826
  }, _$zod_v4_core0.$strip>;
2827
- declare const DynamicCustomTypeModelSchema: _$zod_mini0.ZodMiniObject<{
2828
- id: _$zod_mini0.ZodMiniString<string>;
2829
- label: _$zod_mini0.ZodMiniOptional<_$zod_mini0.ZodMiniNullable<_$zod_mini0.ZodMiniString<string>>>;
2830
- repeatable: _$zod_mini0.ZodMiniDefault<_$zod_mini0.ZodMiniBoolean<boolean>>;
2831
- json: _$zod_mini0.ZodMiniRecord<_$zod_mini0.ZodMiniString<string>, _$zod_mini0.ZodMiniRecord<_$zod_mini0.ZodMiniString<string>, _$zod_mini0.ZodMiniType<DynamicWidgetModel, unknown, _$zod_v4_core0.$ZodTypeInternals<DynamicWidgetModel, unknown>>>>;
2832
- status: _$zod_mini0.ZodMiniDefault<_$zod_mini0.ZodMiniBoolean<boolean>>;
2833
- format: _$zod_mini0.ZodMiniDefault<_$zod_mini0.ZodMiniEnum<{
2834
- custom: "custom";
2835
- page: "page";
2836
- }>>;
2837
- }, _$zod_v4_core0.$strip>;
2838
- /** @deprecated Use DynamicCustomTypeModelSchema instead */
2839
2827
  declare const CustomTypeModelSchema: _$zod_mini0.ZodMiniObject<{
2840
2828
  id: _$zod_mini0.ZodMiniString<string>;
2841
2829
  label: _$zod_mini0.ZodMiniOptional<_$zod_mini0.ZodMiniNullable<_$zod_mini0.ZodMiniString<string>>>;
@@ -2848,5 +2836,5 @@ declare const CustomTypeModelSchema: _$zod_mini0.ZodMiniObject<{
2848
2836
  }>>;
2849
2837
  }, _$zod_v4_core0.$strip>;
2850
2838
  //#endregion
2851
- 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 };
2839
+ export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicSectionModelSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticSectionModelSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
2852
2840
  //# sourceMappingURL=zod4.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zod4.d.ts","names":[],"sources":["../src/zod4.ts"],"mappings":";;;;;;;;;;;;;;cA6Ga,WAAA,cAAW,aAAA;MAAyB,WAAA,CAAA,aAAA;;;;;;;;;;;;;;cACpC,WAAA,cAAW,aAAA;QAAyB,WAAA,CAAA,aAAA;;;;;;;;;;;;;cACpC,mBAAA,EAAoD,WAAA,CAAjC,aAAA;AAAA,cACnB,oBAAA,EAAsD,WAAA,CAAlC,aAAA;AAAA,cACpB,eAAA,EAA4C,WAAA,CAA7B,aAAA;AAAA,cAGf,oBAAA,cAAoB,aAAA;YAAkC,WAAA,CAAA,cAAA;;;cACtD,kBAAA,cAAkB,aAAA;QAAgC,WAAA,CAAA,cAAA;;;;cAClD,iBAAA,cAAiB,aAAA;QAA+B,WAAA,CAAA,cAAA;;;;cAChD,kBAAA,cAAkB,aAAA;QAAgC,WAAA,CAAA,aAAA;;;cAClD,qBAAA,cAAqB,aAAA;;SAAmC,WAAA,CAAA,aAAA;;;;;cACxD,uBAAA,cAAuB,aAAA;YAAqC,WAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;cAC5D,sBAAA,cAAsB,aAAA;YAAoC,WAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;cAC1D,iBAAA,cAAiB,aAAA;YAA+B,WAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;cAChD,mBAAA,cAAmB,aAAA;QAAiC,WAAA,CAAA,cAAA;;;;cACpD,kBAAA,cAAkB,aAAA;QAAgC,WAAA,CAAA,cAAA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aAAA"}
package/dist/zod4.js CHANGED
@@ -44,7 +44,8 @@ import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetMod
44
44
  import { AssetSchema as AssetSchema$1 } from "./common/asset.js";
45
45
  import { EmbedSchema as EmbedSchema$1 } from "./common/embed.js";
46
46
  import { HexaColorCodeSchema as HexaColorCodeSchema$1 } from "./common/hexaColorCode.js";
47
- import { DynamicCustomTypeModelSchema as DynamicCustomTypeModelSchema$1, DynamicCustomTypeModelTabSchema as DynamicCustomTypeModelTabSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1, StaticCustomTypeModelTabSchema as StaticCustomTypeModelTabSchema$1 } from "./model/customType.js";
47
+ import { DynamicSectionModelSchema as DynamicSectionModelSchema$1, StaticSectionModelSchema as StaticSectionModelSchema$1 } from "./model/section.js";
48
+ import { CustomTypeModelSchema as CustomTypeModelSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1 } from "./model/customType.js";
48
49
  //#region src/zod4.ts
49
50
  const AssetSchema = toZod4(AssetSchema$1);
50
51
  const EmbedSchema = toZod4(EmbedSchema$1);
@@ -122,16 +123,14 @@ const DynamicSlicesModelSchema = toZod4(DynamicSlicesModelSchema$1);
122
123
  const StaticSlicesModelSchema = toZod4(StaticSlicesModelSchema$1);
123
124
  const StaticWidgetModelSchema = toZod4(StaticWidgetModelSchema$1);
124
125
  const DynamicWidgetModelSchema = toZod4(DynamicWidgetModelSchema$1);
125
- const StaticCustomTypeModelTabSchema = toZod4(StaticCustomTypeModelTabSchema$1);
126
- const DynamicCustomTypeModelTabSchema = toZod4(DynamicCustomTypeModelTabSchema$1);
126
+ const StaticSectionModelSchema = toZod4(StaticSectionModelSchema$1);
127
+ const DynamicSectionModelSchema = toZod4(DynamicSectionModelSchema$1);
127
128
  const StaticCustomTypeModelSchema = toZod4(StaticCustomTypeModelSchema$1);
128
- const DynamicCustomTypeModelSchema = toZod4(DynamicCustomTypeModelSchema$1);
129
- /** @deprecated Use DynamicCustomTypeModelSchema instead */
130
- const CustomTypeModelSchema = DynamicCustomTypeModelSchema;
129
+ const CustomTypeModelSchema = toZod4(CustomTypeModelSchema$1);
131
130
  function toZod4(type) {
132
131
  return type;
133
132
  }
134
133
  //#endregion
135
- export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicCustomTypeModelSchema, DynamicCustomTypeModelTabSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticCustomTypeModelTabSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
134
+ export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicSectionModelSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, EmptyLinkContentSchema, FieldContentSchema, FilledLinkContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageContentViewSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceModelVariationSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticSectionModelSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
136
135
 
137
136
  //# sourceMappingURL=zod4.js.map
package/dist/zod4.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"zod4.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticCustomTypeModelTabSchema","rawDynamicCustomTypeModelTabSchema","rawStaticCustomTypeModelSchema","rawDynamicCustomTypeModelSchema"],"sources":["../src/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tDynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,\n\tStaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,\n\tDynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toZod4(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toZod4(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toZod4(rawImageContentViewSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toZod4(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const StaticCustomTypeModelTabSchema = toZod4(rawStaticCustomTypeModelTabSchema)\nexport const DynamicCustomTypeModelTabSchema = toZod4(rawDynamicCustomTypeModelTabSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const DynamicCustomTypeModelSchema = toZod4(rawDynamicCustomTypeModelSchema)\n/** @deprecated Use DynamicCustomTypeModelSchema instead */\nexport const CustomTypeModelSchema = DynamicCustomTypeModelSchema\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GA,MAAa,cAAc,OAAOA,cAAe;AACjD,MAAa,cAAc,OAAOC,cAAe;AACjD,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,kBAAkB,OAAOC,kBAAmB;AAGzD,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,wBAAwB,OAAOC,wBAAyB;AACrE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,qBAAqB,OAA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,"file":"zod4.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawFilledLinkContentSchema","rawEmptyLinkContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","rawImageContentViewSchema","rawImageContentSchema","rawRichTextContentSchema","rawRichTextContentBlockSchema","rawRichTextContentSpanSchema","rawTableContentSchema","rawRepeatableContentSchema","rawNestableContentSchema","rawGroupContentSchema","rawGroupItemContentSchema","rawCompositeSliceContentSchema","rawLegacySliceContentSchema","rawSliceContentSchema","rawLegacySliceItemContentSchema","rawCompositeSliceItemContentSchema","rawSharedSliceItemContentSchema","rawSliceItemContentSchema","rawSlicesContentSchema","rawWidgetContentSchema","rawDocumentContentSchema","rawBooleanModelSchema","rawColorModelSchema","rawDateModelSchema","rawEmbedModelSchema","rawGeoPointModelSchema","rawImageModelSchema","rawIntegrationFieldModelSchema","rawLinkModelSchema","rawNestableModelSchema","rawNumberModelSchema","rawRangeModelSchema","rawRichTextModelSchema","rawSelectModelSchema","rawSeparatorModelSchema","rawSharedSliceModelSchema","rawTableModelSchema","rawTextModelSchema","rawTimestampModelSchema","rawUIDModelSchema","rawGroupModelSchema","rawNestedGroupModelSchema","rawSharedSliceModelVariationSchema","rawSharedSliceRefModelSchema","rawCompositeSliceModelSchema","rawLegacySliceModelSchema","rawDynamicSliceModelSchema","rawStaticSliceModelSchema","rawSliceContentModelSchema","rawDynamicSlicesModelSchema","rawStaticSlicesModelSchema","rawStaticWidgetModelSchema","rawDynamicWidgetModelSchema","rawStaticSectionModelSchema","rawDynamicSectionModelSchema","rawStaticCustomTypeModelSchema","rawCustomTypeModelSchema"],"sources":["../src/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport {\n\tImageContentSchema as rawImageContentSchema,\n\tImageContentViewSchema as rawImageContentViewSchema,\n} from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport {\n\tEmptyLinkContentSchema as rawEmptyLinkContentSchema,\n\tFilledLinkContentSchema as rawFilledLinkContentSchema,\n\tLinkContentSchema as rawLinkContentSchema,\n} from \"./content/link\"\nimport { NestableContentSchema as rawNestableContentSchema } from \"./content/nestable\"\nimport { RepeatableContentSchema as rawRepeatableContentSchema } from \"./content/repeatable\"\nimport {\n\tRichTextContentSchema as rawRichTextContentSchema,\n\tRichTextContentBlockSchema as rawRichTextContentBlockSchema,\n\tRichTextContentSpanSchema as rawRichTextContentSpanSchema,\n} from \"./content/richText\"\nimport { SeparatorContentSchema as rawSeparatorContentSchema } from \"./content/separator\"\nimport {\n\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tCustomTypeModelSchema as rawCustomTypeModelSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport {\n\tStaticSectionModelSchema as rawStaticSectionModelSchema,\n\tDynamicSectionModelSchema as rawDynamicSectionModelSchema,\n} from \"./model/section\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceModelVariationSchema as rawSharedSliceModelVariationSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const FilledLinkContentSchema = toZod4(rawFilledLinkContentSchema)\nexport const EmptyLinkContentSchema = toZod4(rawEmptyLinkContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentViewSchema = toZod4(rawImageContentViewSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceModelVariationSchema = toZod4(rawSharedSliceModelVariationSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const StaticSectionModelSchema = toZod4(rawStaticSectionModelSchema)\nexport const DynamicSectionModelSchema = toZod4(rawDynamicSectionModelSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const CustomTypeModelSchema = toZod4(rawCustomTypeModelSchema)\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+GA,MAAa,cAAc,OAAOA,cAAe;AACjD,MAAa,cAAc,OAAOC,cAAe;AACjD,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,kBAAkB,OAAOC,kBAAmB;AAGzD,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,wBAAwB,OAAOC,wBAAyB;AACrE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,sBAAsB,OAAOC,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": "4.1.0-canary.858108c",
3
+ "version": "4.1.0",
4
4
  "description": "TypeScript types and runtime parsers for Prismic data",
5
5
  "keywords": [
6
6
  "prismic",
@@ -1,12 +1,9 @@
1
- import type {
2
- DynamicCustomTypeModel,
3
- StaticCustomTypeModel,
4
- StaticCustomTypeModelTab,
5
- } from "../model/customType"
1
+ import type { CustomTypeModel, StaticCustomTypeModel } from "../model/customType"
2
+ import type { StaticSectionModel } from "../model/section"
6
3
  import type { SharedSliceModel, StaticSliceModel } from "../model/slice"
7
4
 
8
5
  export function toStatic(
9
- customType: DynamicCustomTypeModel,
6
+ customType: CustomTypeModel,
10
7
  sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,
11
8
  ): StaticCustomTypeModel {
12
9
  const json: StaticCustomTypeModel["json"] = {}
@@ -48,7 +45,7 @@ export function toStatic(
48
45
  return { ...customType, json }
49
46
  }
50
47
 
51
- export function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab {
48
+ export function flatten(customType: StaticCustomTypeModel): StaticSectionModel {
52
49
  return Object.values(customType.json).reduce((acc, fields) => ({ ...acc, ...fields }), {})
53
50
  }
54
51
 
@@ -72,7 +69,7 @@ export function collectSharedSlices(
72
69
  }
73
70
 
74
71
  export function filterMissingSharedSlices<
75
- TCustomType extends StaticCustomTypeModel | DynamicCustomTypeModel,
72
+ TCustomType extends StaticCustomTypeModel | CustomTypeModel,
76
73
  >(
77
74
  customType: TCustomType,
78
75
  sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,
package/src/index.ts CHANGED
@@ -58,13 +58,7 @@ export type { WidgetContent } from "./content/widget"
58
58
  // Model
59
59
  export type { BooleanModel } from "./model/boolean"
60
60
  export type { ColorModel } from "./model/color"
61
- export type {
62
- StaticCustomTypeModel,
63
- DynamicCustomTypeModel,
64
- CustomTypeModel,
65
- StaticCustomTypeModelTab,
66
- DynamicCustomTypeModelTab,
67
- } from "./model/customType"
61
+ export type { StaticCustomTypeModel, CustomTypeModel } from "./model/customType"
68
62
  export type { DateModel } from "./model/date"
69
63
  export type { EmbedModel } from "./model/embed"
70
64
  export type { GeoPointModel } from "./model/geopoint"
@@ -77,6 +71,7 @@ export type { NumberModel } from "./model/number"
77
71
  export type { RangeModel } from "./model/range"
78
72
  export type { RichTextModel, RichTextModelNodeTypes } from "./model/richText"
79
73
  export { RichTextModelNodeType } from "./model/richText"
74
+ export type { StaticSectionModel, DynamicSectionModel } from "./model/section"
80
75
  export type { SelectModel } from "./model/select"
81
76
  export type { SeparatorModel } from "./model/separator"
82
77
  export type {
package/src/io-ts.ts CHANGED
@@ -99,9 +99,7 @@ import { BooleanModelSchema as rawBooleanModelSchema } from "./model/boolean"
99
99
  import { ColorModelSchema as rawColorModelSchema } from "./model/color"
100
100
  import {
101
101
  StaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,
102
- DynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,
103
- StaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,
104
- DynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,
102
+ CustomTypeModelSchema as rawCustomTypeModelSchema,
105
103
  } from "./model/customType"
106
104
  import { DateModelSchema as rawDateModelSchema } from "./model/date"
107
105
  import { EmbedModelSchema as rawEmbedModelSchema } from "./model/embed"
@@ -117,6 +115,10 @@ import { NestableModelSchema as rawNestableModelSchema } from "./model/nestable"
117
115
  import { NumberModelSchema as rawNumberModelSchema } from "./model/number"
118
116
  import { RangeModelSchema as rawRangeModelSchema } from "./model/range"
119
117
  import { RichTextModelSchema as rawRichTextModelSchema } from "./model/richText"
118
+ import {
119
+ StaticSectionModelSchema as rawStaticSectionModelSchema,
120
+ DynamicSectionModelSchema as rawDynamicSectionModelSchema,
121
+ } from "./model/section"
120
122
  import { SelectModelSchema as rawSelectModelSchema } from "./model/select"
121
123
  import { SeparatorModelSchema as rawSeparatorModelSchema } from "./model/separator"
122
124
  import {
@@ -255,12 +257,10 @@ export const DynamicSlicesModelSchema = toIOTS(rawDynamicSlicesModelSchema)
255
257
  export const StaticSlicesModelSchema = toIOTS(rawStaticSlicesModelSchema)
256
258
  export const StaticWidgetModelSchema = toIOTS(rawStaticWidgetModelSchema)
257
259
  export const DynamicWidgetModelSchema = toIOTS(rawDynamicWidgetModelSchema)
258
- export const StaticCustomTypeModelTabSchema = toIOTS(rawStaticCustomTypeModelTabSchema)
259
- export const DynamicCustomTypeModelTabSchema = toIOTS(rawDynamicCustomTypeModelTabSchema)
260
+ export const StaticSectionModelSchema = toIOTS(rawStaticSectionModelSchema)
261
+ export const DynamicSectionModelSchema = toIOTS(rawDynamicSectionModelSchema)
260
262
  export const StaticCustomTypeModelSchema = toIOTS(rawStaticCustomTypeModelSchema)
261
- export const DynamicCustomTypeModelSchema = toIOTS(rawDynamicCustomTypeModelSchema)
262
- /** @deprecated Use DynamicCustomTypeModelSchema instead */
263
- export const CustomTypeModelSchema = DynamicCustomTypeModelSchema
263
+ export const CustomTypeModelSchema = toIOTS(rawCustomTypeModelSchema)
264
264
 
265
265
  function toIOTS<T>(type: ZodMiniType<T>): t.Type<T> {
266
266
  return new t.Type<T>(
@@ -1,16 +1,8 @@
1
1
  import { z } from "zod/mini"
2
2
 
3
- import { WidgetKeySchema } from "../common/widgetKey"
4
- import { DynamicWidgetModelSchema, StaticWidgetModelSchema } from "./widget"
3
+ import { DynamicSectionModelSchema, StaticSectionModelSchema } from "./section"
5
4
 
6
- // Tab
7
- export const StaticCustomTypeModelTabSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema)
8
- export type StaticCustomTypeModelTab = z.infer<typeof StaticCustomTypeModelTabSchema>
9
-
10
- export const DynamicCustomTypeModelTabSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema)
11
- export type DynamicCustomTypeModelTab = z.infer<typeof DynamicCustomTypeModelTabSchema>
12
-
13
- // Custom types
5
+ // CustomTypeFormat - "page" | "custom"
14
6
  export const CustomTypeFormatSchema = z.enum(["page", "custom"])
15
7
  export type CustomTypeFormat = z.infer<typeof CustomTypeFormatSchema>
16
8
 
@@ -25,13 +17,10 @@ const createCustomTypeSchema = <T extends z.ZodMiniType>(sectionSchema: T) =>
25
17
  format: z._default(CustomTypeFormatSchema, "custom"),
26
18
  })
27
19
 
28
- export const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticCustomTypeModelTabSchema)
20
+ // StaticCustomType - uses StaticSection (with full SharedSlice definitions)
21
+ export const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticSectionModelSchema)
29
22
  export type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>
30
23
 
31
- export const DynamicCustomTypeModelSchema = createCustomTypeSchema(DynamicCustomTypeModelTabSchema)
32
- export type DynamicCustomTypeModel = z.infer<typeof DynamicCustomTypeModelSchema>
33
-
34
- /** @deprecated Use DynamicCustomTypeModelSchema instead */
35
- export const CustomTypeModelSchema = DynamicCustomTypeModelSchema
36
- /** @deprecated Use DynamicCustomTypeModel instead */
37
- export type CustomTypeModel = DynamicCustomTypeModel
24
+ // CustomType (dynamic) - uses DynamicSection (with SharedSliceRef references)
25
+ export const CustomTypeModelSchema = createCustomTypeSchema(DynamicSectionModelSchema)
26
+ export type CustomTypeModel = z.infer<typeof CustomTypeModelSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod/mini"
2
+
3
+ import { WidgetKeySchema } from "../common/widgetKey"
4
+ import { DynamicWidgetModelSchema, StaticWidgetModelSchema } from "./widget"
5
+
6
+ // StaticSection = Record<WidgetKey, StaticWidget>
7
+ export const StaticSectionModelSchema = z.record(WidgetKeySchema, StaticWidgetModelSchema)
8
+ export type StaticSectionModel = z.infer<typeof StaticSectionModelSchema>
9
+
10
+ // DynamicSection = Record<WidgetKey, DynamicWidget>
11
+ export const DynamicSectionModelSchema = z.record(WidgetKeySchema, DynamicWidgetModelSchema)
12
+ export type DynamicSectionModel = z.infer<typeof DynamicSectionModelSchema>
package/src/zod4.ts CHANGED
@@ -63,9 +63,7 @@ import { BooleanModelSchema as rawBooleanModelSchema } from "./model/boolean"
63
63
  import { ColorModelSchema as rawColorModelSchema } from "./model/color"
64
64
  import {
65
65
  StaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,
66
- DynamicCustomTypeModelSchema as rawDynamicCustomTypeModelSchema,
67
- StaticCustomTypeModelTabSchema as rawStaticCustomTypeModelTabSchema,
68
- DynamicCustomTypeModelTabSchema as rawDynamicCustomTypeModelTabSchema,
66
+ CustomTypeModelSchema as rawCustomTypeModelSchema,
69
67
  } from "./model/customType"
70
68
  import { DateModelSchema as rawDateModelSchema } from "./model/date"
71
69
  import { EmbedModelSchema as rawEmbedModelSchema } from "./model/embed"
@@ -81,6 +79,10 @@ import { NestableModelSchema as rawNestableModelSchema } from "./model/nestable"
81
79
  import { NumberModelSchema as rawNumberModelSchema } from "./model/number"
82
80
  import { RangeModelSchema as rawRangeModelSchema } from "./model/range"
83
81
  import { RichTextModelSchema as rawRichTextModelSchema } from "./model/richText"
82
+ import {
83
+ StaticSectionModelSchema as rawStaticSectionModelSchema,
84
+ DynamicSectionModelSchema as rawDynamicSectionModelSchema,
85
+ } from "./model/section"
84
86
  import { SelectModelSchema as rawSelectModelSchema } from "./model/select"
85
87
  import { SeparatorModelSchema as rawSeparatorModelSchema } from "./model/separator"
86
88
  import {
@@ -187,12 +189,10 @@ export const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)
187
189
  export const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)
188
190
  export const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)
189
191
  export const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)
190
- export const StaticCustomTypeModelTabSchema = toZod4(rawStaticCustomTypeModelTabSchema)
191
- export const DynamicCustomTypeModelTabSchema = toZod4(rawDynamicCustomTypeModelTabSchema)
192
+ export const StaticSectionModelSchema = toZod4(rawStaticSectionModelSchema)
193
+ export const DynamicSectionModelSchema = toZod4(rawDynamicSectionModelSchema)
192
194
  export const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)
193
- export const DynamicCustomTypeModelSchema = toZod4(rawDynamicCustomTypeModelSchema)
194
- /** @deprecated Use DynamicCustomTypeModelSchema instead */
195
- export const CustomTypeModelSchema = DynamicCustomTypeModelSchema
195
+ export const CustomTypeModelSchema = toZod4(rawCustomTypeModelSchema)
196
196
 
197
197
  function toZod4<T>(type: T): T {
198
198
  return type