@prismicio/types-internal 3.17.0 → 4.0.0-canary.3fe5f1e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -20
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/common/asset.d.ts +22 -0
- package/dist/common/asset.d.ts.map +1 -0
- package/dist/common/asset.js +21 -0
- package/dist/common/asset.js.map +1 -0
- package/dist/common/embed.d.ts +21 -0
- package/dist/common/embed.d.ts.map +1 -0
- package/dist/common/embed.js +20 -0
- package/dist/common/embed.js.map +1 -0
- package/dist/common/hexaColorCode.d.ts +8 -0
- package/dist/common/hexaColorCode.d.ts.map +1 -0
- package/dist/common/hexaColorCode.js +8 -0
- package/dist/common/hexaColorCode.js.map +1 -0
- package/dist/common/nonEmptyString.d.ts +8 -0
- package/dist/common/nonEmptyString.d.ts.map +1 -0
- package/dist/common/nonEmptyString.js +7 -0
- package/dist/common/nonEmptyString.js.map +1 -0
- package/dist/common/widgetKey.d.ts +8 -0
- package/dist/common/widgetKey.d.ts.map +1 -0
- package/dist/common/widgetKey.js +8 -0
- package/dist/common/widgetKey.js.map +1 -0
- package/dist/content/boolean.d.ts +11 -0
- package/dist/content/boolean.d.ts.map +1 -0
- package/dist/content/boolean.js +11 -0
- package/dist/content/boolean.js.map +1 -0
- package/dist/content/codec/boolean.js +31 -0
- package/dist/content/codec/boolean.js.map +1 -0
- package/dist/content/codec/document.js +49 -0
- package/dist/content/codec/document.js.map +1 -0
- package/dist/content/codec/embed.js +42 -0
- package/dist/content/codec/embed.js.map +1 -0
- package/dist/content/codec/empty.js +35 -0
- package/dist/content/codec/empty.js.map +1 -0
- package/dist/content/codec/field.js +41 -0
- package/dist/content/codec/field.js.map +1 -0
- package/dist/content/codec/geopoint.js +32 -0
- package/dist/content/codec/geopoint.js.map +1 -0
- package/dist/content/codec/group.js +127 -0
- package/dist/content/codec/group.js.map +1 -0
- package/dist/content/codec/image.js +44 -0
- package/dist/content/codec/image.js.map +1 -0
- package/dist/content/codec/integrationField.js +31 -0
- package/dist/content/codec/integrationField.js.map +1 -0
- package/dist/content/codec/legacyContentCtx.d.ts +50 -0
- package/dist/content/codec/legacyContentCtx.d.ts.map +1 -0
- package/dist/content/codec/legacyContentCtx.js +68 -0
- package/dist/content/codec/legacyContentCtx.js.map +1 -0
- package/dist/content/codec/link.js +93 -0
- package/dist/content/codec/link.js.map +1 -0
- package/dist/content/codec/nestable.js +91 -0
- package/dist/content/codec/nestable.js.map +1 -0
- package/dist/content/codec/repeatable.js +56 -0
- package/dist/content/codec/repeatable.js.map +1 -0
- package/dist/content/codec/richText.js +87 -0
- package/dist/content/codec/richText.js.map +1 -0
- package/dist/content/codec/separator.js +26 -0
- package/dist/content/codec/separator.js.map +1 -0
- package/dist/content/codec/slice.js +220 -0
- package/dist/content/codec/slice.js.map +1 -0
- package/dist/content/codec/slices.js +106 -0
- package/dist/content/codec/slices.js.map +1 -0
- package/dist/content/codec/table.js +56 -0
- package/dist/content/codec/table.js.map +1 -0
- package/dist/content/codec/uid.js +31 -0
- package/dist/content/codec/uid.js.map +1 -0
- package/dist/content/codec/widget.js +39 -0
- package/dist/content/codec/widget.js.map +1 -0
- package/dist/content/document.d.ts +9 -0
- package/dist/content/document.d.ts.map +1 -0
- package/dist/content/document.js +9 -0
- package/dist/content/document.js.map +1 -0
- package/dist/content/embed.d.ts +24 -0
- package/dist/content/embed.d.ts.map +1 -0
- package/dist/content/embed.js +12 -0
- package/dist/content/embed.js.map +1 -0
- package/dist/content/empty.d.ts +11 -0
- package/dist/content/empty.d.ts.map +1 -0
- package/dist/content/empty.js +11 -0
- package/dist/content/empty.js.map +1 -0
- package/dist/content/field.d.ts +49 -0
- package/dist/content/field.d.ts.map +1 -0
- package/dist/content/field.js +52 -0
- package/dist/content/field.js.map +1 -0
- package/dist/content/geopoint.d.ts +14 -0
- package/dist/content/geopoint.d.ts.map +1 -0
- package/dist/content/geopoint.js +9 -0
- package/dist/content/geopoint.js.map +1 -0
- package/dist/content/group.d.ts +19 -0
- package/dist/content/group.d.ts.map +1 -0
- package/dist/content/group.js +19 -0
- package/dist/content/group.js.map +1 -0
- package/dist/content/image.d.ts +52 -0
- package/dist/content/image.d.ts.map +1 -0
- package/dist/content/image.js +10 -0
- package/dist/content/image.js.map +1 -0
- package/dist/content/integrationField.d.ts +11 -0
- package/dist/content/integrationField.d.ts.map +1 -0
- package/dist/content/integrationField.js +11 -0
- package/dist/content/integrationField.js.map +1 -0
- package/dist/content/legacy/boolean.d.ts +1 -0
- package/dist/content/legacy/boolean.js +7 -0
- package/dist/content/legacy/boolean.js.map +1 -0
- package/dist/content/legacy/document.d.ts +8 -0
- package/dist/content/legacy/document.d.ts.map +1 -0
- package/dist/content/legacy/document.js +15 -0
- package/dist/content/legacy/document.js.map +1 -0
- package/dist/content/legacy/embed.d.ts +1 -0
- package/dist/content/legacy/embed.js +23 -0
- package/dist/content/legacy/embed.js.map +1 -0
- package/dist/content/legacy/empty.d.ts +1 -0
- package/dist/content/legacy/empty.js +7 -0
- package/dist/content/legacy/empty.js.map +1 -0
- package/dist/content/legacy/field.d.ts +1 -0
- package/dist/content/legacy/field.js +7 -0
- package/dist/content/legacy/field.js.map +1 -0
- package/dist/content/legacy/geopoint.d.ts +1 -0
- package/dist/content/legacy/geopoint.js +10 -0
- package/dist/content/legacy/geopoint.js.map +1 -0
- package/dist/content/legacy/group.d.ts +9 -0
- package/dist/content/legacy/group.d.ts.map +1 -0
- package/dist/content/legacy/group.js +10 -0
- package/dist/content/legacy/group.js.map +1 -0
- package/dist/content/legacy/image.d.ts +1 -0
- package/dist/content/legacy/image.js +33 -0
- package/dist/content/legacy/image.js.map +1 -0
- package/dist/content/legacy/integrationField.d.ts +1 -0
- package/dist/content/legacy/integrationField.js +7 -0
- package/dist/content/legacy/integrationField.js.map +1 -0
- package/dist/content/legacy/link.d.ts +41 -0
- package/dist/content/legacy/link.d.ts.map +1 -0
- package/dist/content/legacy/link.js +88 -0
- package/dist/content/legacy/link.js.map +1 -0
- package/dist/content/legacy/nestable.d.ts +1 -0
- package/dist/content/legacy/nestable.js +32 -0
- package/dist/content/legacy/nestable.js.map +1 -0
- package/dist/content/legacy/repeatable.d.ts +1 -0
- package/dist/content/legacy/repeatable.js +7 -0
- package/dist/content/legacy/repeatable.js.map +1 -0
- package/dist/content/legacy/richText.d.ts +109 -0
- package/dist/content/legacy/richText.d.ts.map +1 -0
- package/dist/content/legacy/richText.js +100 -0
- package/dist/content/legacy/richText.js.map +1 -0
- package/dist/content/legacy/separator.d.ts +1 -0
- package/dist/content/legacy/separator.js +7 -0
- package/dist/content/legacy/separator.js.map +1 -0
- package/dist/content/legacy/slice.js +22 -0
- package/dist/content/legacy/slice.js.map +1 -0
- package/dist/content/legacy/slices.js +13 -0
- package/dist/content/legacy/slices.js.map +1 -0
- package/dist/content/legacy/table.d.ts +1 -0
- package/dist/content/legacy/table.js +19 -0
- package/dist/content/legacy/table.js.map +1 -0
- package/dist/content/legacy/uid.js +7 -0
- package/dist/content/legacy/uid.js.map +1 -0
- package/dist/content/link.d.ts +163 -0
- package/dist/content/link.d.ts.map +1 -0
- package/dist/content/link.js +50 -0
- package/dist/content/link.js.map +1 -0
- package/dist/content/nestable.d.ts +19 -0
- package/dist/content/nestable.d.ts.map +1 -0
- package/dist/content/nestable.js +56 -0
- package/dist/content/nestable.js.map +1 -0
- package/dist/content/repeatable.d.ts +97 -0
- package/dist/content/repeatable.d.ts.map +1 -0
- package/dist/content/repeatable.js +17 -0
- package/dist/content/repeatable.js.map +1 -0
- package/dist/content/richText.d.ts +91 -0
- package/dist/content/richText.d.ts.map +1 -0
- package/dist/content/richText.js +24 -0
- package/dist/content/richText.js.map +1 -0
- package/dist/content/separator.d.ts +10 -0
- package/dist/content/separator.d.ts.map +1 -0
- package/dist/content/separator.js +8 -0
- package/dist/content/separator.js.map +1 -0
- package/dist/content/slice.d.ts +24 -0
- package/dist/content/slice.d.ts.map +1 -0
- package/dist/content/slice.js +27 -0
- package/dist/content/slice.js.map +1 -0
- package/dist/content/slices.d.ts +56 -0
- package/dist/content/slices.d.ts.map +1 -0
- package/dist/content/slices.js +24 -0
- package/dist/content/slices.js.map +1 -0
- package/dist/content/table.d.ts +21 -0
- package/dist/content/table.d.ts.map +1 -0
- package/dist/content/table.js +13 -0
- package/dist/content/table.js.map +1 -0
- package/dist/content/uid.d.ts +11 -0
- package/dist/content/uid.d.ts.map +1 -0
- package/dist/content/uid.js +11 -0
- package/dist/content/uid.js.map +1 -0
- package/dist/content/widget.d.ts +11 -0
- package/dist/content/widget.d.ts.map +1 -0
- package/dist/content/widget.js +16 -0
- package/dist/content/widget.js.map +1 -0
- package/dist/helpers/contentPath.d.ts +15 -0
- package/dist/helpers/contentPath.d.ts.map +1 -0
- package/dist/helpers/contentPath.js +30 -0
- package/dist/helpers/contentPath.js.map +1 -0
- package/dist/helpers/customTypeModel.d.ts +15 -0
- package/dist/helpers/customTypeModel.d.ts.map +1 -0
- package/dist/helpers/customTypeModel.js +85 -0
- package/dist/helpers/customTypeModel.js.map +1 -0
- package/dist/helpers/documentContent.d.ts +20 -0
- package/dist/helpers/documentContent.d.ts.map +1 -0
- package/dist/helpers/documentContent.js +64 -0
- package/dist/helpers/documentContent.js.map +1 -0
- package/dist/helpers/sliceContent.d.ts +12 -0
- package/dist/helpers/sliceContent.d.ts.map +1 -0
- package/dist/helpers/sliceContent.js +60 -0
- package/dist/helpers/sliceContent.js.map +1 -0
- package/dist/helpers/traverseContent.d.ts +84 -0
- package/dist/helpers/traverseContent.d.ts.map +1 -0
- package/dist/helpers/traverseContent.js +374 -0
- package/dist/helpers/traverseContent.js.map +1 -0
- package/dist/helpers/traverseContentWithModel.d.ts +84 -0
- package/dist/helpers/traverseContentWithModel.d.ts.map +1 -0
- package/dist/helpers/traverseContentWithModel.js +388 -0
- package/dist/helpers/traverseContentWithModel.js.map +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +9 -0
- package/dist/io-ts.d.ts +4363 -0
- package/dist/io-ts.d.ts.map +1 -0
- package/dist/io-ts.js +220 -0
- package/dist/io-ts.js.map +1 -0
- package/dist/model/boolean.d.ts +16 -0
- package/dist/model/boolean.d.ts.map +1 -0
- package/dist/model/boolean.js +16 -0
- package/dist/model/boolean.js.map +1 -0
- package/dist/model/color.d.ts +15 -0
- package/dist/model/color.d.ts.map +1 -0
- package/dist/model/color.js +15 -0
- package/dist/model/color.js.map +1 -0
- package/dist/model/customType.d.ts +31 -0
- package/dist/model/customType.d.ts.map +1 -0
- package/dist/model/customType.js +18 -0
- package/dist/model/customType.js.map +1 -0
- package/dist/model/date.d.ts +16 -0
- package/dist/model/date.d.ts.map +1 -0
- package/dist/model/date.js +16 -0
- package/dist/model/date.js.map +1 -0
- package/dist/model/embed.d.ts +16 -0
- package/dist/model/embed.d.ts.map +1 -0
- package/dist/model/embed.js +16 -0
- package/dist/model/embed.js.map +1 -0
- package/dist/model/geopoint.d.ts +14 -0
- package/dist/model/geopoint.d.ts.map +1 -0
- package/dist/model/geopoint.js +12 -0
- package/dist/model/geopoint.js.map +1 -0
- package/dist/model/group.d.ts +567 -0
- package/dist/model/group.d.ts.map +1 -0
- package/dist/model/group.js +23 -0
- package/dist/model/group.js.map +1 -0
- package/dist/model/image.d.ts +24 -0
- package/dist/model/image.d.ts.map +1 -0
- package/dist/model/image.js +41 -0
- package/dist/model/image.js.map +1 -0
- package/dist/model/integrationField.d.ts +16 -0
- package/dist/model/integrationField.d.ts.map +1 -0
- package/dist/model/integrationField.js +16 -0
- package/dist/model/integrationField.js.map +1 -0
- package/dist/model/link.d.ts +48 -0
- package/dist/model/link.d.ts.map +1 -0
- package/dist/model/link.js +94 -0
- package/dist/model/link.js.map +1 -0
- package/dist/model/nestable.d.ts +23 -0
- package/dist/model/nestable.d.ts.map +1 -0
- package/dist/model/nestable.js +40 -0
- package/dist/model/nestable.js.map +1 -0
- package/dist/model/number.d.ts +18 -0
- package/dist/model/number.d.ts.map +1 -0
- package/dist/model/number.js +19 -0
- package/dist/model/number.js.map +1 -0
- package/dist/model/range.d.ts +18 -0
- package/dist/model/range.d.ts.map +1 -0
- package/dist/model/range.js +19 -0
- package/dist/model/range.js.map +1 -0
- package/dist/model/richText.d.ts +24 -0
- package/dist/model/richText.d.ts.map +1 -0
- package/dist/model/richText.js +73 -0
- package/dist/model/richText.js.map +1 -0
- package/dist/model/section.d.ts +11 -0
- package/dist/model/section.d.ts.map +1 -0
- package/dist/model/section.js +10 -0
- package/dist/model/section.js.map +1 -0
- package/dist/model/select.d.ts +17 -0
- package/dist/model/select.d.ts.map +1 -0
- package/dist/model/select.js +22 -0
- package/dist/model/select.js.map +1 -0
- package/dist/model/separator.d.ts +13 -0
- package/dist/model/separator.d.ts.map +1 -0
- package/dist/model/separator.js +11 -0
- package/dist/model/separator.js.map +1 -0
- package/dist/model/slice.d.ts +1476 -0
- package/dist/model/slice.d.ts.map +1 -0
- package/dist/model/slice.js +68 -0
- package/dist/model/slice.js.map +1 -0
- package/dist/model/slices.d.ts +33 -0
- package/dist/model/slices.d.ts.map +1 -0
- package/dist/model/slices.js +29 -0
- package/dist/model/slices.js.map +1 -0
- package/dist/model/table.d.ts +14 -0
- package/dist/model/table.d.ts.map +1 -0
- package/dist/model/table.js +22 -0
- package/dist/model/table.js.map +1 -0
- package/dist/model/text.d.ts +16 -0
- package/dist/model/text.d.ts.map +1 -0
- package/dist/model/text.js +16 -0
- package/dist/model/text.js.map +1 -0
- package/dist/model/timestamp.d.ts +16 -0
- package/dist/model/timestamp.d.ts.map +1 -0
- package/dist/model/timestamp.js +16 -0
- package/dist/model/timestamp.js.map +1 -0
- package/dist/model/uid.d.ts +16 -0
- package/dist/model/uid.d.ts.map +1 -0
- package/dist/model/uid.js +16 -0
- package/dist/model/uid.js.map +1 -0
- package/dist/model/widget.d.ts +60 -0
- package/dist/model/widget.d.ts.map +1 -0
- package/dist/model/widget.js +47 -0
- package/dist/model/widget.js.map +1 -0
- package/dist/zod4.d.ts +2321 -0
- package/dist/zod4.d.ts.map +1 -0
- package/dist/zod4.js +132 -0
- package/dist/zod4.js.map +1 -0
- package/package.json +55 -58
- package/src/common/asset.ts +29 -0
- package/src/common/embed.ts +27 -0
- package/src/common/hexaColorCode.ts +11 -0
- package/src/common/nonEmptyString.ts +9 -0
- package/src/common/widgetKey.ts +11 -0
- package/src/content/boolean.ts +23 -0
- package/src/content/codec/boolean.ts +38 -0
- package/src/content/codec/document.ts +60 -0
- package/src/content/codec/embed.ts +55 -0
- package/src/content/codec/empty.ts +49 -0
- package/src/content/codec/field.ts +96 -0
- package/src/content/codec/geopoint.ts +40 -0
- package/src/content/codec/group.ts +163 -0
- package/src/content/codec/image.ts +50 -0
- package/src/content/codec/integrationField.ts +38 -0
- package/src/content/{LegacyContentCtx.ts → codec/legacyContentCtx.ts} +17 -17
- package/src/content/codec/link.ts +103 -0
- package/src/content/codec/nestable.ts +146 -0
- package/src/content/codec/repeatable.ts +68 -0
- package/src/content/codec/richText.ts +117 -0
- package/src/content/codec/separator.ts +33 -0
- package/src/content/codec/slice.ts +276 -0
- package/src/content/codec/slices.ts +130 -0
- package/src/content/codec/table.ts +65 -0
- package/src/content/codec/uid.ts +36 -0
- package/src/content/codec/widget.ts +58 -0
- package/src/content/document.ts +8 -0
- package/src/content/embed.ts +12 -0
- package/src/content/empty.ts +10 -0
- package/src/content/field.ts +94 -0
- package/src/content/geopoint.ts +11 -0
- package/src/content/group.ts +99 -0
- package/src/content/image.ts +103 -0
- package/src/content/integrationField.ts +10 -0
- package/src/content/legacy/boolean.ts +5 -0
- package/src/content/legacy/document.ts +25 -0
- package/src/content/legacy/embed.ts +23 -0
- package/src/content/legacy/empty.ts +10 -0
- package/src/content/legacy/field.ts +8 -0
- package/src/content/legacy/geopoint.ts +10 -0
- package/src/content/legacy/group.ts +23 -0
- package/src/content/legacy/image.ts +43 -0
- package/src/content/legacy/integrationField.ts +5 -0
- package/src/content/legacy/link.ts +194 -0
- package/src/content/legacy/nestable.ts +55 -0
- package/src/content/legacy/repeatable.ts +7 -0
- package/src/content/legacy/richText.ts +198 -0
- package/src/content/legacy/separator.ts +6 -0
- package/src/content/legacy/slice.ts +38 -0
- package/src/content/legacy/slices.ts +17 -0
- package/src/content/legacy/table.ts +39 -0
- package/src/content/legacy/uid.ts +6 -0
- package/src/content/legacy/widget.ts +19 -0
- package/src/content/link.ts +154 -0
- package/src/content/nestable.ts +126 -0
- package/src/content/repeatable.ts +21 -0
- package/src/content/richText.ts +54 -0
- package/src/content/separator.ts +9 -0
- package/src/content/slice.ts +41 -0
- package/src/content/slices.ts +57 -0
- package/src/content/table.ts +14 -0
- package/src/content/uid.ts +10 -0
- package/src/content/widget.ts +21 -0
- package/src/content/{fields/withDefaultValues.ts → withDefaultValues.ts} +34 -39
- package/src/helpers/contentPath.ts +35 -0
- package/src/helpers/customTypeModel.ts +113 -0
- package/src/helpers/documentContent.ts +108 -0
- package/src/helpers/sliceContent.ts +86 -0
- package/src/helpers/traverseContent.ts +594 -0
- package/src/helpers/traverseContentWithModel.ts +616 -0
- package/src/index.ts +123 -0
- package/src/io-ts.ts +351 -0
- package/src/model/boolean.ts +15 -0
- package/src/model/color.ts +14 -0
- package/src/model/customType.ts +26 -0
- package/src/model/date.ts +15 -0
- package/src/model/diff/index.ts +4 -0
- package/src/{customtypes/diff/SharedSlice.ts → model/diff/sharedSlice.ts} +16 -18
- package/src/model/diff/utils.ts +45 -0
- package/src/model/diff/variation.ts +155 -0
- package/src/model/diff/widgets.ts +15 -0
- package/src/model/embed.ts +15 -0
- package/src/model/geopoint.ts +13 -0
- package/src/model/group.ts +39 -0
- package/src/model/image.ts +54 -0
- package/src/model/integrationField.ts +15 -0
- package/src/model/link.ts +141 -0
- package/src/model/nestable.ts +71 -0
- package/src/model/number.ts +26 -0
- package/src/model/range.ts +26 -0
- package/src/model/richText.ts +106 -0
- package/src/model/section.ts +12 -0
- package/src/model/select.ts +30 -0
- package/src/model/separator.ts +12 -0
- package/src/model/slice.ts +133 -0
- package/src/model/slices.ts +54 -0
- package/src/model/table.ts +29 -0
- package/src/model/text.ts +15 -0
- package/src/model/timestamp.ts +15 -0
- package/src/model/uid.ts +15 -0
- package/src/model/widget.ts +63 -0
- package/src/zod4.ts +187 -0
- package/lib/common/Asset.d.ts +0 -16
- package/lib/common/Asset.js +0 -11
- package/lib/common/Embed.d.ts +0 -15
- package/lib/common/Embed.js +0 -10
- package/lib/common/HexaColorCode.d.ts +0 -4
- package/lib/common/HexaColorCode.js +0 -7
- package/lib/common/UUID.d.ts +0 -6
- package/lib/common/UUID.js +0 -8
- package/lib/common/WidgetKey.d.ts +0 -3
- package/lib/common/WidgetKey.js +0 -8
- package/lib/common/index.d.ts +0 -3
- package/lib/common/index.js +0 -6
- package/lib/content/Document.d.ts +0 -11813
- package/lib/content/Document.js +0 -364
- package/lib/content/LegacyContentCtx.d.ts +0 -64
- package/lib/content/LegacyContentCtx.js +0 -130
- package/lib/content/fields/EmptyContent.d.ts +0 -16
- package/lib/content/fields/EmptyContent.js +0 -30
- package/lib/content/fields/GroupContent.d.ts +0 -53
- package/lib/content/fields/GroupContent.js +0 -307
- package/lib/content/fields/UIDContent.d.ts +0 -16
- package/lib/content/fields/UIDContent.js +0 -25
- package/lib/content/fields/WidgetContent.d.ts +0 -11749
- package/lib/content/fields/WidgetContent.js +0 -57
- package/lib/content/fields/index.d.ts +0 -6
- package/lib/content/fields/index.js +0 -9
- package/lib/content/fields/nestable/BooleanContent.d.ts +0 -18
- package/lib/content/fields/nestable/BooleanContent.js +0 -35
- package/lib/content/fields/nestable/EmbedContent.d.ts +0 -78
- package/lib/content/fields/nestable/EmbedContent.js +0 -56
- package/lib/content/fields/nestable/FieldContent/ColorContent.d.ts +0 -18
- package/lib/content/fields/nestable/FieldContent/ColorContent.js +0 -35
- package/lib/content/fields/nestable/FieldContent/DateContent.d.ts +0 -18
- package/lib/content/fields/nestable/FieldContent/DateContent.js +0 -35
- package/lib/content/fields/nestable/FieldContent/NumberContent.d.ts +0 -18
- package/lib/content/fields/nestable/FieldContent/NumberContent.js +0 -35
- package/lib/content/fields/nestable/FieldContent/RangeContent.d.ts +0 -18
- package/lib/content/fields/nestable/FieldContent/RangeContent.js +0 -35
- package/lib/content/fields/nestable/FieldContent/SelectContent.d.ts +0 -20
- package/lib/content/fields/nestable/FieldContent/SelectContent.js +0 -46
- package/lib/content/fields/nestable/FieldContent/TextContent.d.ts +0 -18
- package/lib/content/fields/nestable/FieldContent/TextContent.js +0 -35
- package/lib/content/fields/nestable/FieldContent/TimestampContent.d.ts +0 -18
- package/lib/content/fields/nestable/FieldContent/TimestampContent.js +0 -35
- package/lib/content/fields/nestable/FieldContent/common.d.ts +0 -1
- package/lib/content/fields/nestable/FieldContent/common.js +0 -4
- package/lib/content/fields/nestable/FieldContent/index.d.ts +0 -49
- package/lib/content/fields/nestable/FieldContent/index.js +0 -38
- package/lib/content/fields/nestable/GeoPointContent.d.ts +0 -33
- package/lib/content/fields/nestable/GeoPointContent.js +0 -31
- package/lib/content/fields/nestable/ImageContent.d.ts +0 -252
- package/lib/content/fields/nestable/ImageContent.js +0 -122
- package/lib/content/fields/nestable/IntegrationFieldContent.d.ts +0 -16
- package/lib/content/fields/nestable/IntegrationFieldContent.js +0 -28
- package/lib/content/fields/nestable/LinkContent.d.ts +0 -919
- package/lib/content/fields/nestable/LinkContent.js +0 -399
- package/lib/content/fields/nestable/NestableContent.d.ts +0 -1953
- package/lib/content/fields/nestable/NestableContent.js +0 -167
- package/lib/content/fields/nestable/RepeatableContent.d.ts +0 -182
- package/lib/content/fields/nestable/RepeatableContent.js +0 -146
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +0 -1261
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +0 -170
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +0 -1004
- package/lib/content/fields/nestable/RichTextContent/index.js +0 -28
- package/lib/content/fields/nestable/SeparatorContent.d.ts +0 -13
- package/lib/content/fields/nestable/SeparatorContent.js +0 -22
- package/lib/content/fields/nestable/TableContent.d.ts +0 -776
- package/lib/content/fields/nestable/TableContent.js +0 -167
- package/lib/content/fields/nestable/index.d.ts +0 -12
- package/lib/content/fields/nestable/index.js +0 -15
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +0 -3934
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +0 -195
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +0 -774
- package/lib/content/fields/slices/Slice/RepeatableContent.js +0 -21
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +0 -3937
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +0 -215
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +0 -1962
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +0 -130
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +0 -1952
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.js +0 -30
- package/lib/content/fields/slices/Slice/index.d.ts +0 -6810
- package/lib/content/fields/slices/Slice/index.js +0 -45
- package/lib/content/fields/slices/SliceItem.d.ts +0 -6846
- package/lib/content/fields/slices/SliceItem.js +0 -116
- package/lib/content/fields/slices/SlicesContent.d.ts +0 -9827
- package/lib/content/fields/slices/SlicesContent.js +0 -465
- package/lib/content/fields/slices/index.d.ts +0 -3
- package/lib/content/fields/slices/index.js +0 -6
- package/lib/content/fields/withDefaultValues.d.ts +0 -9
- package/lib/content/fields/withDefaultValues.js +0 -79
- package/lib/content/helpers.d.ts +0 -9
- package/lib/content/helpers.js +0 -22
- package/lib/content/index.d.ts +0 -4
- package/lib/content/index.js +0 -7
- package/lib/content/utils.d.ts +0 -50
- package/lib/content/utils.js +0 -35
- package/lib/customtypes/CustomType.d.ts +0 -3680
- package/lib/customtypes/CustomType.js +0 -184
- package/lib/customtypes/Section.d.ts +0 -3635
- package/lib/customtypes/Section.js +0 -66
- package/lib/customtypes/diff/Changes.d.ts +0 -17
- package/lib/customtypes/diff/Changes.js +0 -9
- package/lib/customtypes/diff/SharedSlice.d.ts +0 -1624
- package/lib/customtypes/diff/SharedSlice.js +0 -55
- package/lib/customtypes/diff/Variation.d.ts +0 -1605
- package/lib/customtypes/diff/Variation.js +0 -113
- package/lib/customtypes/diff/Widgets.d.ts +0 -11
- package/lib/customtypes/diff/Widgets.js +0 -2
- package/lib/customtypes/diff/index.d.ts +0 -4
- package/lib/customtypes/diff/index.js +0 -7
- package/lib/customtypes/index.d.ts +0 -4
- package/lib/customtypes/index.js +0 -7
- package/lib/customtypes/widgets/Group.d.ts +0 -1352
- package/lib/customtypes/widgets/Group.js +0 -92
- package/lib/customtypes/widgets/UID.d.ts +0 -19
- package/lib/customtypes/widgets/UID.js +0 -21
- package/lib/customtypes/widgets/Widget.d.ts +0 -4457
- package/lib/customtypes/widgets/Widget.js +0 -49
- package/lib/customtypes/widgets/index.d.ts +0 -6
- package/lib/customtypes/widgets/index.js +0 -9
- package/lib/customtypes/widgets/nestable/BooleanField.d.ts +0 -20
- package/lib/customtypes/widgets/nestable/BooleanField.js +0 -21
- package/lib/customtypes/widgets/nestable/Color.d.ts +0 -17
- package/lib/customtypes/widgets/nestable/Color.js +0 -20
- package/lib/customtypes/widgets/nestable/Date.d.ts +0 -19
- package/lib/customtypes/widgets/nestable/Date.js +0 -21
- package/lib/customtypes/widgets/nestable/Embed.d.ts +0 -19
- package/lib/customtypes/widgets/nestable/Embed.js +0 -21
- package/lib/customtypes/widgets/nestable/GeoPoint.d.ts +0 -15
- package/lib/customtypes/widgets/nestable/GeoPoint.js +0 -19
- package/lib/customtypes/widgets/nestable/Image.d.ts +0 -44
- package/lib/customtypes/widgets/nestable/Image.js +0 -29
- package/lib/customtypes/widgets/nestable/IntegrationField.d.ts +0 -19
- package/lib/customtypes/widgets/nestable/IntegrationField.js +0 -21
- package/lib/customtypes/widgets/nestable/Link.d.ts +0 -196
- package/lib/customtypes/widgets/nestable/Link.js +0 -167
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -217
- package/lib/customtypes/widgets/nestable/NestableWidget.js +0 -39
- package/lib/customtypes/widgets/nestable/Number.d.ts +0 -23
- package/lib/customtypes/widgets/nestable/Number.js +0 -24
- package/lib/customtypes/widgets/nestable/Range.d.ts +0 -23
- package/lib/customtypes/widgets/nestable/Range.js +0 -24
- package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -73
- package/lib/customtypes/widgets/nestable/RichText.js +0 -131
- package/lib/customtypes/widgets/nestable/Select.d.ts +0 -21
- package/lib/customtypes/widgets/nestable/Select.js +0 -22
- package/lib/customtypes/widgets/nestable/Separator.d.ts +0 -14
- package/lib/customtypes/widgets/nestable/Separator.js +0 -18
- package/lib/customtypes/widgets/nestable/Table.d.ts +0 -21
- package/lib/customtypes/widgets/nestable/Table.js +0 -30
- package/lib/customtypes/widgets/nestable/Text.d.ts +0 -19
- package/lib/customtypes/widgets/nestable/Text.js +0 -21
- package/lib/customtypes/widgets/nestable/Timestamp.d.ts +0 -19
- package/lib/customtypes/widgets/nestable/Timestamp.js +0 -21
- package/lib/customtypes/widgets/nestable/index.d.ts +0 -17
- package/lib/customtypes/widgets/nestable/index.js +0 -20
- package/lib/customtypes/widgets/shared/ImageConstraint.d.ts +0 -7
- package/lib/customtypes/widgets/shared/ImageConstraint.js +0 -31
- package/lib/customtypes/widgets/shared/index.d.ts +0 -1
- package/lib/customtypes/widgets/shared/index.js +0 -8
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -455
- package/lib/customtypes/widgets/slices/CompositeSlice.js +0 -63
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -442
- package/lib/customtypes/widgets/slices/LegacySlice.js +0 -12
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +0 -1807
- package/lib/customtypes/widgets/slices/SharedSlice.js +0 -118
- package/lib/customtypes/widgets/slices/SharedSliceRef.d.ts +0 -5
- package/lib/customtypes/widgets/slices/SharedSliceRef.js +0 -9
- package/lib/customtypes/widgets/slices/Slice.d.ts +0 -6
- package/lib/customtypes/widgets/slices/Slice.js +0 -2
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +0 -1259
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.js +0 -10
- package/lib/customtypes/widgets/slices/Slices.d.ts +0 -5917
- package/lib/customtypes/widgets/slices/Slices.js +0 -146
- package/lib/customtypes/widgets/slices/SlicesTypes.d.ts +0 -6
- package/lib/customtypes/widgets/slices/SlicesTypes.js +0 -11
- package/lib/customtypes/widgets/slices/index.d.ts +0 -8
- package/lib/customtypes/widgets/slices/index.js +0 -11
- package/lib/utils/Arrays.d.ts +0 -1
- package/lib/utils/Arrays.js +0 -13
- package/lib/utils/DocumentId.d.ts +0 -2
- package/lib/utils/DocumentId.js +0 -7
- package/lib/utils/Fields.d.ts +0 -6
- package/lib/utils/Fields.js +0 -2
- package/lib/utils/Objects.d.ts +0 -8
- package/lib/utils/Objects.js +0 -42
- package/lib/utils/index.d.ts +0 -4
- package/lib/utils/index.js +0 -8
- package/lib/validators/BasicTypes.d.ts +0 -10
- package/lib/validators/BasicTypes.js +0 -25
- package/lib/validators/DateFromString.d.ts +0 -3
- package/lib/validators/DateFromString.js +0 -11
- package/lib/validators/DateFromStringOrNumber.d.ts +0 -3
- package/lib/validators/DateFromStringOrNumber.js +0 -10
- package/lib/validators/DateFromTsMs.d.ts +0 -3
- package/lib/validators/DateFromTsMs.js +0 -10
- package/lib/validators/DefaultOrElse.d.ts +0 -5
- package/lib/validators/DefaultOrElse.js +0 -21
- package/lib/validators/IntFromNumber.d.ts +0 -5
- package/lib/validators/IntFromNumber.js +0 -14
- package/lib/validators/IntFromPixels.d.ts +0 -8
- package/lib/validators/IntFromPixels.js +0 -24
- package/lib/validators/NonEmptyString.d.ts +0 -3
- package/lib/validators/NonEmptyString.js +0 -6
- package/lib/validators/NonEmptyStringOrNull.d.ts +0 -3
- package/lib/validators/NonEmptyStringOrNull.js +0 -15
- package/lib/validators/NumberOrNull.d.ts +0 -3
- package/lib/validators/NumberOrNull.js +0 -6
- package/lib/validators/NumberRange.d.ts +0 -32
- package/lib/validators/NumberRange.js +0 -40
- package/lib/validators/StringFromBoolean.d.ts +0 -5
- package/lib/validators/StringFromBoolean.js +0 -10
- package/lib/validators/StringFromNumber.d.ts +0 -5
- package/lib/validators/StringFromNumber.js +0 -10
- package/lib/validators/StringOrNull.d.ts +0 -3
- package/lib/validators/StringOrNull.js +0 -6
- package/lib/validators/TrimmedString.d.ts +0 -5
- package/lib/validators/TrimmedString.js +0 -23
- package/lib/validators/function.d.ts +0 -34
- package/lib/validators/function.js +0 -100
- package/lib/validators/index.d.ts +0 -15
- package/lib/validators/index.js +0 -31
- package/src/common/Asset.ts +0 -25
- package/src/common/Embed.ts +0 -22
- package/src/common/HexaColorCode.ts +0 -11
- package/src/common/UUID.ts +0 -19
- package/src/common/WidgetKey.ts +0 -13
- package/src/common/index.ts +0 -3
- package/src/content/Document.ts +0 -539
- package/src/content/fields/EmptyContent.ts +0 -45
- package/src/content/fields/GroupContent.ts +0 -466
- package/src/content/fields/UIDContent.ts +0 -42
- package/src/content/fields/WidgetContent.ts +0 -76
- package/src/content/fields/index.ts +0 -6
- package/src/content/fields/nestable/BooleanContent.ts +0 -52
- package/src/content/fields/nestable/EmbedContent.ts +0 -74
- package/src/content/fields/nestable/FieldContent/ColorContent.ts +0 -49
- package/src/content/fields/nestable/FieldContent/DateContent.ts +0 -49
- package/src/content/fields/nestable/FieldContent/NumberContent.ts +0 -49
- package/src/content/fields/nestable/FieldContent/RangeContent.ts +0 -49
- package/src/content/fields/nestable/FieldContent/SelectContent.ts +0 -60
- package/src/content/fields/nestable/FieldContent/TextContent.ts +0 -49
- package/src/content/fields/nestable/FieldContent/TimestampContent.ts +0 -49
- package/src/content/fields/nestable/FieldContent/common.ts +0 -1
- package/src/content/fields/nestable/FieldContent/index.ts +0 -40
- package/src/content/fields/nestable/GeoPointContent.ts +0 -48
- package/src/content/fields/nestable/ImageContent.ts +0 -196
- package/src/content/fields/nestable/IntegrationFieldContent.ts +0 -51
- package/src/content/fields/nestable/LinkContent.ts +0 -651
- package/src/content/fields/nestable/NestableContent.ts +0 -241
- package/src/content/fields/nestable/RepeatableContent.ts +0 -224
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +0 -238
- package/src/content/fields/nestable/RichTextContent/index.ts +0 -42
- package/src/content/fields/nestable/SeparatorContent.ts +0 -34
- package/src/content/fields/nestable/TableContent.ts +0 -234
- package/src/content/fields/nestable/index.ts +0 -12
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +0 -293
- package/src/content/fields/slices/Slice/RepeatableContent.ts +0 -29
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +0 -305
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +0 -180
- package/src/content/fields/slices/Slice/SlicePrimaryContent.ts +0 -40
- package/src/content/fields/slices/Slice/index.ts +0 -52
- package/src/content/fields/slices/SliceItem.ts +0 -184
- package/src/content/fields/slices/SlicesContent.ts +0 -677
- package/src/content/fields/slices/index.ts +0 -3
- package/src/content/helpers.ts +0 -25
- package/src/content/index.ts +0 -4
- package/src/content/utils.ts +0 -145
- package/src/customtypes/CustomType.ts +0 -280
- package/src/customtypes/Section.ts +0 -98
- package/src/customtypes/diff/Variation.ts +0 -167
- package/src/customtypes/diff/Widgets.ts +0 -17
- package/src/customtypes/diff/index.ts +0 -4
- package/src/customtypes/index.ts +0 -4
- package/src/customtypes/widgets/Group.ts +0 -120
- package/src/customtypes/widgets/UID.ts +0 -27
- package/src/customtypes/widgets/Widget.ts +0 -83
- package/src/customtypes/widgets/index.ts +0 -6
- package/src/customtypes/widgets/nestable/BooleanField.ts +0 -29
- package/src/customtypes/widgets/nestable/Color.ts +0 -25
- package/src/customtypes/widgets/nestable/Date.ts +0 -27
- package/src/customtypes/widgets/nestable/Embed.ts +0 -27
- package/src/customtypes/widgets/nestable/GeoPoint.ts +0 -25
- package/src/customtypes/widgets/nestable/Image.ts +0 -39
- package/src/customtypes/widgets/nestable/IntegrationField.ts +0 -26
- package/src/customtypes/widgets/nestable/Link.ts +0 -313
- package/src/customtypes/widgets/nestable/NestableWidget.ts +0 -40
- package/src/customtypes/widgets/nestable/Number.ts +0 -30
- package/src/customtypes/widgets/nestable/Range.ts +0 -30
- package/src/customtypes/widgets/nestable/RichText.ts +0 -215
- package/src/customtypes/widgets/nestable/Select.ts +0 -34
- package/src/customtypes/widgets/nestable/Separator.ts +0 -24
- package/src/customtypes/widgets/nestable/Table.ts +0 -38
- package/src/customtypes/widgets/nestable/Text.ts +0 -27
- package/src/customtypes/widgets/nestable/Timestamp.ts +0 -27
- package/src/customtypes/widgets/nestable/index.ts +0 -17
- package/src/customtypes/widgets/shared/ImageConstraint.ts +0 -41
- package/src/customtypes/widgets/shared/index.ts +0 -1
- package/src/customtypes/widgets/slices/CompositeSlice.ts +0 -79
- package/src/customtypes/widgets/slices/LegacySlice.ts +0 -15
- package/src/customtypes/widgets/slices/SharedSlice.ts +0 -152
- package/src/customtypes/widgets/slices/SharedSliceRef.ts +0 -10
- package/src/customtypes/widgets/slices/Slice.ts +0 -7
- package/src/customtypes/widgets/slices/SlicePrimaryWidget.ts +0 -12
- package/src/customtypes/widgets/slices/Slices.ts +0 -184
- package/src/customtypes/widgets/slices/SlicesTypes.ts +0 -11
- package/src/customtypes/widgets/slices/index.ts +0 -8
- package/src/utils/Arrays.ts +0 -12
- package/src/utils/DocumentId.ts +0 -8
- package/src/utils/Fields.ts +0 -4
- package/src/utils/Objects.ts +0 -53
- package/src/utils/index.ts +0 -4
- package/src/validators/BasicTypes.ts +0 -55
- package/src/validators/DateFromString.ts +0 -19
- package/src/validators/DateFromStringOrNumber.ts +0 -17
- package/src/validators/DateFromTsMs.ts +0 -17
- package/src/validators/DefaultOrElse.ts +0 -24
- package/src/validators/IntFromNumber.ts +0 -22
- package/src/validators/IntFromPixels.ts +0 -32
- package/src/validators/NonEmptyString.ts +0 -8
- package/src/validators/NonEmptyStringOrNull.ts +0 -22
- package/src/validators/NumberOrNull.ts +0 -5
- package/src/validators/NumberRange.ts +0 -51
- package/src/validators/StringFromBoolean.ts +0 -19
- package/src/validators/StringFromNumber.ts +0 -19
- package/src/validators/StringOrNull.ts +0 -5
- package/src/validators/TrimmedString.ts +0 -33
- package/src/validators/function.ts +0 -115
- package/src/validators/index.ts +0 -15
- /package/src/{customtypes/diff/Changes.ts → model/diff/changes.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io-ts.d.ts","names":[],"sources":["../src/io-ts.ts"],"mappings":";;;;;;;;;;;;;;;cA2Ia,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,IAAA;;;;;;;;;cACjB,kBAAA,EAAkB,CAAA,CAAA,IAAA;;;;;;;cAClB,qBAAA,EAAqB,CAAA,CAAA,IAAA;;;;;;;;;;;;;cACrB,iBAAA,EAAiB,CAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACjB,mBAAA,EAAmB,CAAA,CAAA,IAAA;;;;;;;;;cACnB,kBAAA,EAAkB,CAAA,CAAA,IAAA;;;;;;;;;cAClB,mBAAA,EAAmB,CAAA,CAAA,IAAA;;;;;;;;;cACnB,sBAAA,EAAsB,CAAA,CAAA,IAAA;;;;;c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CAAA,CAAA,IAAA,CAAA,MAAA,SAAuC,kBAAA,GAAvC,MAAA,SAAA,kBAAA;AAAA,cACzB,2BAAA,EAA2B,CAAA,CAAA,IAAA;;;sCAAyC,iBAAA;;;;;;;;;;;;cACpE,qBAAA,EAAqB,CAAA,CAAA,IAAA;;;sCAAmC,kBAAA"}
|
package/dist/io-ts.js
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { ImageModelSchema as ImageModelSchema$1 } from "./model/image.js";
|
|
2
|
+
import { RichTextModelSchema as RichTextModelSchema$1 } from "./model/richText.js";
|
|
3
|
+
import { TableModelSchema as TableModelSchema$1 } from "./model/table.js";
|
|
4
|
+
import { WidgetKeySchema as WidgetKeySchema$1 } from "./common/widgetKey.js";
|
|
5
|
+
import { BooleanContentSchema as BooleanContentSchema$1 } from "./content/boolean.js";
|
|
6
|
+
import { EmbedContentSchema as EmbedContentSchema$1 } from "./content/embed.js";
|
|
7
|
+
import { EmptyContentSchema as EmptyContentSchema$1 } from "./content/empty.js";
|
|
8
|
+
import { ColorContentSchema as ColorContentSchema$1, DateContentSchema as DateContentSchema$1, FieldContentSchema as FieldContentSchema$1, NumberContentSchema as NumberContentSchema$1, RangeContentSchema as RangeContentSchema$1, SelectContentSchema as SelectContentSchema$1, TextContentSchema as TextContentSchema$1, TimestampContentSchema as TimestampContentSchema$1 } from "./content/field.js";
|
|
9
|
+
import { GeoPointContentSchema as GeoPointContentSchema$1 } from "./content/geopoint.js";
|
|
10
|
+
import { ImageContentSchema as ImageContentSchema$1 } from "./content/image.js";
|
|
11
|
+
import { IntegrationFieldContentSchema as IntegrationFieldContentSchema$1 } from "./content/integrationField.js";
|
|
12
|
+
import { NonEmptyStringSchema as NonEmptyStringSchema$1 } from "./common/nonEmptyString.js";
|
|
13
|
+
import { LinkContentSchema as LinkContentSchema$1 } from "./content/link.js";
|
|
14
|
+
import { RepeatableContentSchema as RepeatableContentSchema$1 } from "./content/repeatable.js";
|
|
15
|
+
import { RichTextContentBlockSchema as RichTextContentBlockSchema$1, RichTextContentSchema as RichTextContentSchema$1, RichTextContentSpanSchema as RichTextContentSpanSchema$1 } from "./content/richText.js";
|
|
16
|
+
import { SeparatorContentSchema as SeparatorContentSchema$1 } from "./content/separator.js";
|
|
17
|
+
import { TableContentSchema as TableContentSchema$1 } from "./content/table.js";
|
|
18
|
+
import { NestableContentSchema as NestableContentSchema$1 } from "./content/nestable.js";
|
|
19
|
+
import { GroupContentSchema as GroupContentSchema$1, GroupItemContentSchema as GroupItemContentSchema$1 } from "./content/group.js";
|
|
20
|
+
import { CompositeSliceContentSchema as CompositeSliceContentSchema$1, LegacySliceContentSchema as LegacySliceContentSchema$1, SharedSliceContentSchema as SharedSliceContentSchema$1, SliceContentSchema as SliceContentSchema$1 } from "./content/slice.js";
|
|
21
|
+
import { CompositeSliceItemContentSchema as CompositeSliceItemContentSchema$1, LegacySliceItemContentSchema as LegacySliceItemContentSchema$1, SharedSliceItemContentSchema as SharedSliceItemContentSchema$1, SliceItemContentSchema as SliceItemContentSchema$1, SlicesContentSchema as SlicesContentSchema$1 } from "./content/slices.js";
|
|
22
|
+
import { UIDContentSchema as UIDContentSchema$1 } from "./content/uid.js";
|
|
23
|
+
import { WidgetContentSchema as WidgetContentSchema$1 } from "./content/widget.js";
|
|
24
|
+
import { DocumentContentSchema as DocumentContentSchema$1 } from "./content/document.js";
|
|
25
|
+
import { BooleanLegacyCodec } from "./content/codec/boolean.js";
|
|
26
|
+
import { EmbedLegacyCodec } from "./content/codec/embed.js";
|
|
27
|
+
import { EmptyLegacyCodec } from "./content/codec/empty.js";
|
|
28
|
+
import { ColorLegacyCodec, DateLegacyCodec, NumberLegacyCodec, RangeLegacyCodec, SelectLegacyCodec, TextLegacyCodec, TimestampLegacyCodec } from "./content/codec/field.js";
|
|
29
|
+
import { GeoPointLegacyCodec } from "./content/codec/geopoint.js";
|
|
30
|
+
import { ImageLegacyCodec } from "./content/codec/image.js";
|
|
31
|
+
import { IntegrationFieldLegacyCodec } from "./content/codec/integrationField.js";
|
|
32
|
+
import { LinkLegacyCodec } from "./content/codec/link.js";
|
|
33
|
+
import { RepeatableLegacyCodec } from "./content/codec/repeatable.js";
|
|
34
|
+
import { RichTextLegacyCodec } from "./content/codec/richText.js";
|
|
35
|
+
import { SeparatorLegacyCodec } from "./content/codec/separator.js";
|
|
36
|
+
import { TableLegacyCodec } from "./content/codec/table.js";
|
|
37
|
+
import { NestableLegacyCodec } from "./content/codec/nestable.js";
|
|
38
|
+
import { GroupItemLegacyCodec, GroupLegacyCodec } from "./content/codec/group.js";
|
|
39
|
+
import { CompositeSliceLegacyCodec, LegacySliceLegacyCodec, SharedSliceLegacyCodec, SliceLegacyCodec } from "./content/codec/slice.js";
|
|
40
|
+
import { SliceItemLegacyCodec, SlicesLegacyCodec } from "./content/codec/slices.js";
|
|
41
|
+
import { UIDLegacyCodec } from "./content/codec/uid.js";
|
|
42
|
+
import { WidgetLegacyCodec } from "./content/codec/widget.js";
|
|
43
|
+
import { DocumentLegacyCodec } from "./content/codec/document.js";
|
|
44
|
+
import { BooleanModelSchema as BooleanModelSchema$1 } from "./model/boolean.js";
|
|
45
|
+
import { ColorModelSchema as ColorModelSchema$1 } from "./model/color.js";
|
|
46
|
+
import { DateModelSchema as DateModelSchema$1 } from "./model/date.js";
|
|
47
|
+
import { EmbedModelSchema as EmbedModelSchema$1 } from "./model/embed.js";
|
|
48
|
+
import { GeoPointModelSchema as GeoPointModelSchema$1 } from "./model/geopoint.js";
|
|
49
|
+
import { IntegrationFieldModelSchema as IntegrationFieldModelSchema$1 } from "./model/integrationField.js";
|
|
50
|
+
import { LinkModelSchema as LinkModelSchema$1 } from "./model/link.js";
|
|
51
|
+
import { NumberModelSchema as NumberModelSchema$1 } from "./model/number.js";
|
|
52
|
+
import { RangeModelSchema as RangeModelSchema$1 } from "./model/range.js";
|
|
53
|
+
import { SelectModelSchema as SelectModelSchema$1 } from "./model/select.js";
|
|
54
|
+
import { SeparatorModelSchema as SeparatorModelSchema$1 } from "./model/separator.js";
|
|
55
|
+
import { TextModelSchema as TextModelSchema$1 } from "./model/text.js";
|
|
56
|
+
import { TimestampModelSchema as TimestampModelSchema$1 } from "./model/timestamp.js";
|
|
57
|
+
import { NestableModelSchema as NestableModelSchema$1 } from "./model/nestable.js";
|
|
58
|
+
import { GroupModelSchema as GroupModelSchema$1, NestedGroupModelSchema as NestedGroupModelSchema$1 } from "./model/group.js";
|
|
59
|
+
import { CompositeSliceModelSchema as CompositeSliceModelSchema$1, DynamicSliceModelSchema as DynamicSliceModelSchema$1, LegacySliceModelSchema as LegacySliceModelSchema$1, SharedSliceModelSchema as SharedSliceModelSchema$1, SharedSliceRefModelSchema as SharedSliceRefModelSchema$1, SliceContentModelSchema as SliceContentModelSchema$1, StaticSliceModelSchema as StaticSliceModelSchema$1 } from "./model/slice.js";
|
|
60
|
+
import { DynamicSlicesModelSchema as DynamicSlicesModelSchema$1, StaticSlicesModelSchema as StaticSlicesModelSchema$1 } from "./model/slices.js";
|
|
61
|
+
import { UIDModelSchema as UIDModelSchema$1 } from "./model/uid.js";
|
|
62
|
+
import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
|
|
63
|
+
import { AssetSchema as AssetSchema$1 } from "./common/asset.js";
|
|
64
|
+
import { EmbedSchema as EmbedSchema$1 } from "./common/embed.js";
|
|
65
|
+
import { HexaColorCodeSchema as HexaColorCodeSchema$1 } from "./common/hexaColorCode.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";
|
|
68
|
+
import * as t from "io-ts";
|
|
69
|
+
//#region src/io-ts.ts
|
|
70
|
+
const AssetSchema = toIOTS(AssetSchema$1);
|
|
71
|
+
const EmbedSchema = toIOTS(EmbedSchema$1);
|
|
72
|
+
const HexaColorCodeSchema = toIOTS(HexaColorCodeSchema$1);
|
|
73
|
+
const NonEmptyStringSchema = toIOTS(NonEmptyStringSchema$1);
|
|
74
|
+
const WidgetKeySchema = toIOTS(WidgetKeySchema$1);
|
|
75
|
+
const BooleanContentSchema = toIOTS(BooleanContentSchema$1);
|
|
76
|
+
const ColorContentSchema = toIOTS(ColorContentSchema$1);
|
|
77
|
+
const DateContentSchema = toIOTS(DateContentSchema$1);
|
|
78
|
+
const EmptyContentSchema = toIOTS(EmptyContentSchema$1);
|
|
79
|
+
const GeoPointContentSchema = toIOTS(GeoPointContentSchema$1);
|
|
80
|
+
const LinkContentSchema = toIOTS(LinkContentSchema$1);
|
|
81
|
+
const NumberContentSchema = toIOTS(NumberContentSchema$1);
|
|
82
|
+
const RangeContentSchema = toIOTS(RangeContentSchema$1);
|
|
83
|
+
const SelectContentSchema = toIOTS(SelectContentSchema$1);
|
|
84
|
+
const SeparatorContentSchema = toIOTS(SeparatorContentSchema$1);
|
|
85
|
+
const SharedSliceContentSchema = toIOTS(SharedSliceContentSchema$1);
|
|
86
|
+
const TextContentSchema = toIOTS(TextContentSchema$1);
|
|
87
|
+
const TimestampContentSchema = toIOTS(TimestampContentSchema$1);
|
|
88
|
+
const FieldContentSchema = toIOTS(FieldContentSchema$1);
|
|
89
|
+
const UIDContentSchema = toIOTS(UIDContentSchema$1);
|
|
90
|
+
const IntegrationFieldContentSchema = toIOTS(IntegrationFieldContentSchema$1);
|
|
91
|
+
const EmbedContentSchema = toIOTS(EmbedContentSchema$1);
|
|
92
|
+
const ImageContentSchema = toIOTS(ImageContentSchema$1);
|
|
93
|
+
const RichTextContentSchema = toIOTS(RichTextContentSchema$1);
|
|
94
|
+
const RichTextContentBlockSchema = toIOTS(RichTextContentBlockSchema$1);
|
|
95
|
+
const RichTextContentSpanSchema = toIOTS(RichTextContentSpanSchema$1);
|
|
96
|
+
const TableContentSchema = toIOTS(TableContentSchema$1);
|
|
97
|
+
const RepeatableContentSchema = toIOTS(RepeatableContentSchema$1);
|
|
98
|
+
const NestableContentSchema = toIOTS(NestableContentSchema$1);
|
|
99
|
+
const GroupContentSchema = toIOTS(GroupContentSchema$1);
|
|
100
|
+
const GroupItemContentSchema = toIOTS(GroupItemContentSchema$1);
|
|
101
|
+
const CompositeSliceContentSchema = toIOTS(CompositeSliceContentSchema$1);
|
|
102
|
+
const LegacySliceContentSchema = toIOTS(LegacySliceContentSchema$1);
|
|
103
|
+
const SliceContentSchema = toIOTS(SliceContentSchema$1);
|
|
104
|
+
const LegacySliceItemContentSchema = toIOTS(LegacySliceItemContentSchema$1);
|
|
105
|
+
const CompositeSliceItemContentSchema = toIOTS(CompositeSliceItemContentSchema$1);
|
|
106
|
+
const SharedSliceItemContentSchema = toIOTS(SharedSliceItemContentSchema$1);
|
|
107
|
+
const SliceItemContentSchema = toIOTS(SliceItemContentSchema$1);
|
|
108
|
+
const SlicesContentSchema = toIOTS(SlicesContentSchema$1);
|
|
109
|
+
const WidgetContentSchema = toIOTS(WidgetContentSchema$1);
|
|
110
|
+
const DocumentContentSchema = toIOTS(DocumentContentSchema$1);
|
|
111
|
+
const BooleanLegacy = toIOTSCodec(BooleanLegacyCodec);
|
|
112
|
+
const EmptyLegacy = toIOTSCodec(EmptyLegacyCodec);
|
|
113
|
+
const TextLegacy = toIOTSCodec(TextLegacyCodec);
|
|
114
|
+
const ColorLegacy = toIOTSCodec(ColorLegacyCodec);
|
|
115
|
+
const DateLegacy = toIOTSCodec(DateLegacyCodec);
|
|
116
|
+
const TimestampLegacy = toIOTSCodec(TimestampLegacyCodec);
|
|
117
|
+
const NumberLegacy = toIOTSCodec(NumberLegacyCodec);
|
|
118
|
+
const RangeLegacy = toIOTSCodec(RangeLegacyCodec);
|
|
119
|
+
const SelectLegacy = toIOTSCodec(SelectLegacyCodec);
|
|
120
|
+
const GeoPointLegacy = toIOTSCodec(GeoPointLegacyCodec);
|
|
121
|
+
const EmbedLegacy = toIOTSCodec(EmbedLegacyCodec);
|
|
122
|
+
const ImageLegacy = toIOTSCodec(ImageLegacyCodec);
|
|
123
|
+
const LinkLegacy = toIOTSCodec(LinkLegacyCodec);
|
|
124
|
+
const RepeatableLegacy = toIOTSCodec(RepeatableLegacyCodec);
|
|
125
|
+
const RichTextLegacy = toIOTSCodec(RichTextLegacyCodec);
|
|
126
|
+
const SeparatorLegacy = toIOTSCodec(SeparatorLegacyCodec);
|
|
127
|
+
const IntegrationFieldLegacy = toIOTSCodec(IntegrationFieldLegacyCodec);
|
|
128
|
+
const TableLegacy = toIOTSCodec(TableLegacyCodec);
|
|
129
|
+
const NestableLegacy = toIOTSCodec(NestableLegacyCodec);
|
|
130
|
+
const UIDLegacy = toIOTSCodec(UIDLegacyCodec);
|
|
131
|
+
const GroupItemLegacy = toIOTSCodec(GroupItemLegacyCodec);
|
|
132
|
+
const GroupLegacy = toIOTSCodec(GroupLegacyCodec);
|
|
133
|
+
const LegacySliceLegacy = toIOTSCodec(LegacySliceLegacyCodec);
|
|
134
|
+
const CompositeSliceLegacy = toIOTSCodec(CompositeSliceLegacyCodec);
|
|
135
|
+
const SharedSliceLegacy = toIOTSCodec(SharedSliceLegacyCodec);
|
|
136
|
+
const SliceLegacy = toIOTSCodec(SliceLegacyCodec);
|
|
137
|
+
const SliceItemLegacy = toIOTSCodec(SliceItemLegacyCodec);
|
|
138
|
+
const SlicesLegacy = toIOTSCodec(SlicesLegacyCodec);
|
|
139
|
+
const WidgetLegacy = toIOTSCodec(WidgetLegacyCodec);
|
|
140
|
+
const DocumentLegacy = toIOTSCodec(DocumentLegacyCodec);
|
|
141
|
+
const BooleanModelSchema = toIOTS(BooleanModelSchema$1);
|
|
142
|
+
const ColorModelSchema = toIOTS(ColorModelSchema$1);
|
|
143
|
+
const DateModelSchema = toIOTS(DateModelSchema$1);
|
|
144
|
+
const EmbedModelSchema = toIOTS(EmbedModelSchema$1);
|
|
145
|
+
const GeoPointModelSchema = toIOTS(GeoPointModelSchema$1);
|
|
146
|
+
const ImageModelSchema = toIOTS(ImageModelSchema$1);
|
|
147
|
+
const IntegrationFieldModelSchema = toIOTS(IntegrationFieldModelSchema$1);
|
|
148
|
+
const LinkModelSchema = toIOTS(LinkModelSchema$1);
|
|
149
|
+
const NestableModelSchema = toIOTS(NestableModelSchema$1);
|
|
150
|
+
const NumberModelSchema = toIOTS(NumberModelSchema$1);
|
|
151
|
+
const RangeModelSchema = toIOTS(RangeModelSchema$1);
|
|
152
|
+
const RichTextModelSchema = toIOTS(RichTextModelSchema$1);
|
|
153
|
+
const SelectModelSchema = toIOTS(SelectModelSchema$1);
|
|
154
|
+
const SeparatorModelSchema = toIOTS(SeparatorModelSchema$1);
|
|
155
|
+
const SharedSliceModelSchema = toIOTS(SharedSliceModelSchema$1);
|
|
156
|
+
const TableModelSchema = toIOTS(TableModelSchema$1);
|
|
157
|
+
const TextModelSchema = toIOTS(TextModelSchema$1);
|
|
158
|
+
const TimestampModelSchema = toIOTS(TimestampModelSchema$1);
|
|
159
|
+
const UIDModelSchema = toIOTS(UIDModelSchema$1);
|
|
160
|
+
const GroupModelSchema = toIOTS(GroupModelSchema$1);
|
|
161
|
+
const NestedGroupModelSchema = toIOTS(NestedGroupModelSchema$1);
|
|
162
|
+
const SharedSliceRefModelSchema = toIOTS(SharedSliceRefModelSchema$1);
|
|
163
|
+
const CompositeSliceModelSchema = toIOTS(CompositeSliceModelSchema$1);
|
|
164
|
+
const LegacySliceModelSchema = toIOTS(LegacySliceModelSchema$1);
|
|
165
|
+
const DynamicSliceModelSchema = toIOTS(DynamicSliceModelSchema$1);
|
|
166
|
+
const StaticSliceModelSchema = toIOTS(StaticSliceModelSchema$1);
|
|
167
|
+
const SliceContentModelSchema = toIOTS(SliceContentModelSchema$1);
|
|
168
|
+
const DynamicSlicesModelSchema = toIOTS(DynamicSlicesModelSchema$1);
|
|
169
|
+
const StaticSlicesModelSchema = toIOTS(StaticSlicesModelSchema$1);
|
|
170
|
+
const StaticWidgetModelSchema = toIOTS(StaticWidgetModelSchema$1);
|
|
171
|
+
const DynamicWidgetModelSchema = toIOTS(DynamicWidgetModelSchema$1);
|
|
172
|
+
const StaticSectionModelSchema = toIOTS(StaticSectionModelSchema$1);
|
|
173
|
+
const DynamicSectionModelSchema = toIOTS(DynamicSectionModelSchema$1);
|
|
174
|
+
const StaticCustomTypeModelSchema = toIOTS(StaticCustomTypeModelSchema$1);
|
|
175
|
+
const CustomTypeModelSchema = toIOTS(CustomTypeModelSchema$1);
|
|
176
|
+
function toIOTS(type) {
|
|
177
|
+
return new t.Type("Type", (input) => type.safeParse(input).success, (input, context) => {
|
|
178
|
+
const result = type.safeParse(input);
|
|
179
|
+
return result.success ? t.success(result.data) : t.failure(input, context, result.error.issues.map((issue) => formatIssue(issue, input)).join("\n"));
|
|
180
|
+
}, t.identity);
|
|
181
|
+
}
|
|
182
|
+
function toIOTSCodec(codecFactory) {
|
|
183
|
+
return (...args) => {
|
|
184
|
+
const codec = codecFactory(...args);
|
|
185
|
+
return new t.Type(codec.name, codec.is, (input, context) => {
|
|
186
|
+
const result = codec.toContent(input);
|
|
187
|
+
return result.success ? t.success(result.data) : t.failure(input, context, result.error.issues.map((issue) => formatIssue(issue, input)).join("\n"));
|
|
188
|
+
}, codec.fromContent);
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function resolveValue(input, path) {
|
|
192
|
+
let current = input;
|
|
193
|
+
for (const key of path) {
|
|
194
|
+
if (current == null || typeof current !== "object") return void 0;
|
|
195
|
+
current = current[key];
|
|
196
|
+
}
|
|
197
|
+
return current;
|
|
198
|
+
}
|
|
199
|
+
function formatValue(value) {
|
|
200
|
+
if (value === null) return "null";
|
|
201
|
+
if (value === void 0) return "undefined";
|
|
202
|
+
if (typeof value === "string") return JSON.stringify(value);
|
|
203
|
+
return String(value);
|
|
204
|
+
}
|
|
205
|
+
function formatIssue(issue, input) {
|
|
206
|
+
if (issue.code === "custom" && issue.message !== "Invalid input") return issue.message;
|
|
207
|
+
const value = resolveValue(input, issue.path ?? []);
|
|
208
|
+
const pathStr = issue.path?.length ? issue.path.join(".") : void 0;
|
|
209
|
+
if (issue.code === "invalid_value" && issue.values) {
|
|
210
|
+
const expected = issue.values.map(formatValue).join(", ");
|
|
211
|
+
return pathStr ? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${expected}` : `Invalid value ${formatValue(value)}: expected ${expected}`;
|
|
212
|
+
}
|
|
213
|
+
if (issue.code === "invalid_type" && issue.expected) return pathStr ? `Invalid value ${formatValue(value)} at .${pathStr}: expected ${issue.expected}` : `Invalid value ${formatValue(value)}: expected ${issue.expected}`;
|
|
214
|
+
if (issue.code === "unrecognized_keys" && issue.keys) return `Unrecognized key(s): ${issue.keys.join(", ")}`;
|
|
215
|
+
return issue.message;
|
|
216
|
+
}
|
|
217
|
+
//#endregion
|
|
218
|
+
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, FieldContentSchema, GeoPointContentSchema, GeoPointLegacy, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupItemLegacy, GroupLegacy, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, 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, 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 };
|
|
219
|
+
|
|
220
|
+
//# sourceMappingURL=io-ts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io-ts.js","names":["rawAssetSchema","rawEmbedSchema","rawHexaColorCodeSchema","rawNonEmptyStringSchema","rawWidgetKeySchema","rawBooleanContentSchema","rawColorContentSchema","rawDateContentSchema","rawEmptyContentSchema","rawGeoPointContentSchema","rawLinkContentSchema","rawNumberContentSchema","rawRangeContentSchema","rawSelectContentSchema","rawSeparatorContentSchema","rawSharedSliceContentSchema","rawTextContentSchema","rawTimestampContentSchema","rawFieldContentSchema","rawUIDContentSchema","rawIntegrationFieldContentSchema","rawEmbedContentSchema","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","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 { ImageContentSchema as rawImageContentSchema } from \"./content/image\"\nimport { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from \"./content/integrationField\"\nimport { LinkContentSchema as rawLinkContentSchema } 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\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 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 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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2IA,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,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,yBAA0B;AACvE,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,mBAAmB,OAAOC,mBAAoB;AAC3D,MAAa,gCAAgC,OAAOC,gCAAiC;AACrF,MAAa,qBAAqB,OAAOC,qBAAsB;AAC/D,MAAa,qBAAqB,OA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7
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
8
|
+
default_value: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
9
|
+
placeholder_true: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
10
|
+
placeholder_false: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type BooleanModel = z.infer<typeof BooleanModelSchema>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BooleanModel };
|
|
16
|
+
//# sourceMappingURL=boolean.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean.d.ts","names":[],"sources":["../../src/model/boolean.ts"],"mappings":";;;cASa,kBAAA,EAAkB,CAAA,CAAA,aAAA;;;;;;;;;KAKnB,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,kBAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
//#region src/model/boolean.ts
|
|
3
|
+
const BooleanConfigSchema = z.object({
|
|
4
|
+
label: z.nullish(z.string()),
|
|
5
|
+
default_value: z.optional(z.boolean()),
|
|
6
|
+
placeholder_true: z.optional(z.string()),
|
|
7
|
+
placeholder_false: z.optional(z.string())
|
|
8
|
+
});
|
|
9
|
+
const BooleanModelSchema = z.object({
|
|
10
|
+
type: z.literal("Boolean"),
|
|
11
|
+
config: z.optional(BooleanConfigSchema)
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { BooleanModelSchema };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=boolean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean.js","names":[],"sources":["../../src/model/boolean.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst BooleanConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tdefault_value: z.optional(z.boolean()),\n\tplaceholder_true: z.optional(z.string()),\n\tplaceholder_false: z.optional(z.string()),\n})\n\nexport const BooleanModelSchema = z.object({\n\ttype: z.literal(\"Boolean\"),\n\tconfig: z.optional(BooleanConfigSchema),\n})\n\nexport type BooleanModel = z.infer<typeof BooleanModelSchema>\n"],"mappings":";;AAEA,MAAM,sBAAsB,EAAE,OAAO;CACpC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,eAAe,EAAE,SAAS,EAAE,SAAS,CAAC;CACtC,kBAAkB,EAAE,SAAS,EAAE,QAAQ,CAAC;CACxC,mBAAmB,EAAE,SAAS,EAAE,QAAQ,CAAC;CACzC,CAAC;AAEF,MAAa,qBAAqB,EAAE,OAAO;CAC1C,MAAM,EAAE,QAAQ,UAAU;CAC1B,QAAQ,EAAE,SAAS,oBAAoB;CACvC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
|
|
3
|
+
//#region src/model/color.d.ts
|
|
4
|
+
declare const ColorModelSchema: z.ZodMiniObject<{
|
|
5
|
+
type: z.ZodMiniLiteral<"Color">;
|
|
6
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
8
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
9
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type ColorModel = z.infer<typeof ColorModelSchema>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ColorModel };
|
|
15
|
+
//# sourceMappingURL=color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","names":[],"sources":["../../src/model/color.ts"],"mappings":";;;cAOa,gBAAA,EAAgB,CAAA,CAAA,aAAA;;;;;;;;KAMjB,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
//#region src/model/color.ts
|
|
3
|
+
const ColorConfigSchema = z.object({
|
|
4
|
+
label: z.nullish(z.string()),
|
|
5
|
+
placeholder: z.optional(z.string())
|
|
6
|
+
});
|
|
7
|
+
const ColorModelSchema = z.object({
|
|
8
|
+
type: z.literal("Color"),
|
|
9
|
+
fieldset: z.nullish(z.string()),
|
|
10
|
+
config: z.optional(ColorConfigSchema)
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ColorModelSchema };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.js","names":[],"sources":["../../src/model/color.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst ColorConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n})\n\nexport const ColorModelSchema = z.object({\n\ttype: z.literal(\"Color\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(ColorConfigSchema),\n})\n\nexport type ColorModel = z.infer<typeof ColorModelSchema>\n"],"mappings":";;AAEA,MAAM,oBAAoB,EAAE,OAAO;CAClC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnC,CAAC;AAEF,MAAa,mBAAmB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,QAAQ;CACxB,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC/B,QAAQ,EAAE,SAAS,kBAAkB;CACrC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DynamicWidgetModel, StaticWidgetModel } from "./widget.js";
|
|
2
|
+
import { z } from "zod/mini";
|
|
3
|
+
|
|
4
|
+
//#region src/model/customType.d.ts
|
|
5
|
+
declare const StaticCustomTypeModelSchema: z.ZodMiniObject<{
|
|
6
|
+
id: z.ZodMiniString<string>;
|
|
7
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
8
|
+
repeatable: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
9
|
+
json: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<StaticWidgetModel, unknown, z.core.$ZodTypeInternals<StaticWidgetModel, unknown>>>>;
|
|
10
|
+
status: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
11
|
+
format: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
12
|
+
custom: "custom";
|
|
13
|
+
page: "page";
|
|
14
|
+
}>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type StaticCustomTypeModel = z.infer<typeof StaticCustomTypeModelSchema>;
|
|
17
|
+
declare const CustomTypeModelSchema: z.ZodMiniObject<{
|
|
18
|
+
id: z.ZodMiniString<string>;
|
|
19
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
20
|
+
repeatable: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
21
|
+
json: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniType<DynamicWidgetModel, unknown, z.core.$ZodTypeInternals<DynamicWidgetModel, unknown>>>>;
|
|
22
|
+
status: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
23
|
+
format: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
24
|
+
custom: "custom";
|
|
25
|
+
page: "page";
|
|
26
|
+
}>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
type CustomTypeModel = z.infer<typeof CustomTypeModelSchema>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { CustomTypeModel, StaticCustomTypeModel };
|
|
31
|
+
//# sourceMappingURL=customType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DynamicSectionModelSchema, StaticSectionModelSchema } from "./section.js";
|
|
2
|
+
import { z } from "zod/mini";
|
|
3
|
+
//#region src/model/customType.ts
|
|
4
|
+
const CustomTypeFormatSchema = z.enum(["page", "custom"]);
|
|
5
|
+
const createCustomTypeSchema = (sectionSchema) => z.object({
|
|
6
|
+
id: z.string(),
|
|
7
|
+
label: z.nullish(z.string()),
|
|
8
|
+
repeatable: z._default(z.boolean(), true),
|
|
9
|
+
json: z.record(z.string(), sectionSchema),
|
|
10
|
+
status: z._default(z.boolean(), true),
|
|
11
|
+
format: z._default(CustomTypeFormatSchema, "custom")
|
|
12
|
+
});
|
|
13
|
+
const StaticCustomTypeModelSchema = createCustomTypeSchema(StaticSectionModelSchema);
|
|
14
|
+
const CustomTypeModelSchema = createCustomTypeSchema(DynamicSectionModelSchema);
|
|
15
|
+
//#endregion
|
|
16
|
+
export { CustomTypeModelSchema, StaticCustomTypeModelSchema };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=customType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,16 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
|
|
3
|
+
//#region src/model/date.d.ts
|
|
4
|
+
declare const DateModelSchema: z.ZodMiniObject<{
|
|
5
|
+
type: z.ZodMiniLiteral<"Date">;
|
|
6
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
8
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
9
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
10
|
+
default: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type DateModel = z.infer<typeof DateModelSchema>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { DateModel };
|
|
16
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","names":[],"sources":["../../src/model/date.ts"],"mappings":";;;cAQa,eAAA,EAAe,CAAA,CAAA,aAAA;;;;;;;;;KAMhB,SAAA,GAAY,CAAA,CAAE,KAAA,QAAa,eAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
//#region src/model/date.ts
|
|
3
|
+
const DateConfigSchema = z.object({
|
|
4
|
+
label: z.nullish(z.string()),
|
|
5
|
+
placeholder: z.optional(z.string()),
|
|
6
|
+
default: z.optional(z.string())
|
|
7
|
+
});
|
|
8
|
+
const DateModelSchema = z.object({
|
|
9
|
+
type: z.literal("Date"),
|
|
10
|
+
fieldset: z.nullish(z.string()),
|
|
11
|
+
config: z.optional(DateConfigSchema)
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { DateModelSchema };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.js","names":[],"sources":["../../src/model/date.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst DateConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n\tdefault: z.optional(z.string()),\n})\n\nexport const DateModelSchema = z.object({\n\ttype: z.literal(\"Date\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(DateConfigSchema),\n})\n\nexport type DateModel = z.infer<typeof DateModelSchema>\n"],"mappings":";;AAEA,MAAM,mBAAmB,EAAE,OAAO;CACjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;CAC/B,CAAC;AAEF,MAAa,kBAAkB,EAAE,OAAO;CACvC,MAAM,EAAE,QAAQ,OAAO;CACvB,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC/B,QAAQ,EAAE,SAAS,iBAAiB;CACpC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
|
|
3
|
+
//#region src/model/embed.d.ts
|
|
4
|
+
declare const EmbedModelSchema: z.ZodMiniObject<{
|
|
5
|
+
type: z.ZodMiniLiteral<"Embed">;
|
|
6
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
8
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
9
|
+
placeholder: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
10
|
+
useAsTitle: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type EmbedModel = z.infer<typeof EmbedModelSchema>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { EmbedModel };
|
|
16
|
+
//# sourceMappingURL=embed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embed.d.ts","names":[],"sources":["../../src/model/embed.ts"],"mappings":";;;cAQa,gBAAA,EAAgB,CAAA,CAAA,aAAA;;;;;;;;;KAMjB,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,gBAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
//#region src/model/embed.ts
|
|
3
|
+
const EmbedConfigSchema = z.object({
|
|
4
|
+
label: z.nullish(z.string()),
|
|
5
|
+
placeholder: z.optional(z.string()),
|
|
6
|
+
useAsTitle: z.optional(z.boolean())
|
|
7
|
+
});
|
|
8
|
+
const EmbedModelSchema = z.object({
|
|
9
|
+
type: z.literal("Embed"),
|
|
10
|
+
fieldset: z.nullish(z.string()),
|
|
11
|
+
config: z.optional(EmbedConfigSchema)
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { EmbedModelSchema };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=embed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embed.js","names":[],"sources":["../../src/model/embed.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst EmbedConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n\tuseAsTitle: z.optional(z.boolean()),\n})\n\nexport const EmbedModelSchema = z.object({\n\ttype: z.literal(\"Embed\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(EmbedConfigSchema),\n})\n\nexport type EmbedModel = z.infer<typeof EmbedModelSchema>\n"],"mappings":";;AAEA,MAAM,oBAAoB,EAAE,OAAO;CAClC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC5B,aAAa,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnC,YAAY,EAAE,SAAS,EAAE,SAAS,CAAC;CACnC,CAAC;AAEF,MAAa,mBAAmB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,QAAQ;CACxB,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC/B,QAAQ,EAAE,SAAS,kBAAkB;CACrC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
|
|
3
|
+
//#region src/model/geopoint.d.ts
|
|
4
|
+
declare const GeoPointModelSchema: z.ZodMiniObject<{
|
|
5
|
+
type: z.ZodMiniLiteral<"GeoPoint">;
|
|
6
|
+
fieldset: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
7
|
+
config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
8
|
+
label: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type GeoPointModel = z.infer<typeof GeoPointModelSchema>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { GeoPointModel };
|
|
14
|
+
//# sourceMappingURL=geopoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geopoint.d.ts","names":[],"sources":["../../src/model/geopoint.ts"],"mappings":";;;cAMa,mBAAA,EAAmB,CAAA,CAAA,aAAA;;;;;;;KAMpB,aAAA,GAAgB,CAAA,CAAE,KAAA,QAAa,mBAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
//#region src/model/geopoint.ts
|
|
3
|
+
const GeoPointConfigSchema = z.object({ label: z.nullish(z.string()) });
|
|
4
|
+
const GeoPointModelSchema = z.object({
|
|
5
|
+
type: z.literal("GeoPoint"),
|
|
6
|
+
fieldset: z.nullish(z.string()),
|
|
7
|
+
config: z.optional(GeoPointConfigSchema)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { GeoPointModelSchema };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=geopoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geopoint.js","names":[],"sources":["../../src/model/geopoint.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst GeoPointConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n})\n\nexport const GeoPointModelSchema = z.object({\n\ttype: z.literal(\"GeoPoint\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(GeoPointConfigSchema),\n})\n\nexport type GeoPointModel = z.infer<typeof GeoPointModelSchema>\n"],"mappings":";;AAEA,MAAM,uBAAuB,EAAE,OAAO,EACrC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAC5B,CAAC;AAEF,MAAa,sBAAsB,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,WAAW;CAC3B,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;CAC/B,QAAQ,EAAE,SAAS,qBAAqB;CACxC,CAAC"}
|