@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":"zod4.d.ts","names":[],"sources":["../src/zod4.ts"],"mappings":";;;;;;;;;;;;;;cAuGa,WAAA,YAAW,aAAA;MAAyB,SAAA,CAAA,aAAA;;;;;;;;;;;;;;cACpC,WAAA,YAAW,aAAA;QAAyB,SAAA,CAAA,aAAA;;;;;;;;;;;;;cACpC,mBAAA,EAAoD,SAAA,CAAjC,aAAA;AAAA,cACnB,oBAAA,EAAsD,SAAA,CAAlC,aAAA;AAAA,cACpB,eAAA,EAA4C,SAAA,CAA7B,aAAA;AAAA,cAGf,oBAAA,YAAoB,aAAA;YAAkC,SAAA,CAAA,cAAA;;;cACtD,kBAAA,YAAkB,aAAA;QAAgC,SAAA,CAAA,cAAA;;;;cAClD,iBAAA,YAAiB,aAAA;QAA+B,SAAA,CAAA,cAAA;;;;cAChD,kBAAA,YAAkB,aAAA;QAAgC,SAAA,CAAA,aAAA;;;cAClD,qBAAA,YAAqB,aAAA;;SAAmC,SAAA,CAAA,aAAA;;;;;cACxD,iBAAA,YAAiB,aAAA;YAA+B,SAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAChD,mBAAA,YAAmB,aAAA;QAAiC,SAAA,CAAA,cAAA;;;;cACpD,kBAAA,YAAkB,aAAA;QAAgC,SAAA,CAAA,cAAA;;;;cAClD,mBAAA,YAAmB,aAAA;QAAiC,SAAA,CAAA,cAAA;;;;cACpD,sBAAA,YAAsB,aAAA;YAAoC,SAAA,CAAA,cAAA;A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WAAA,CAAsC,kBAAA,WAAtC,YAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,cACxB,wBAAA,EAAwB,SAAA,CAAA,aAAA,CAAsC,SAAA,CAAtC,aAAA,UAAA,SAAA,CAAA,WAAA,CAAA,iBAAA,WAAA,YAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cACxB,yBAAA,EAAyB,SAAA,CAAA,aAAA,CAAuC,SAAA,CAAvC,aAAA,UAAA,SAAA,CAAA,WAAA,CAAA,kBAAA,WAAA,YAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA,cACzB,2BAAA,YAA2B,aAAA;MAAyC,SAAA,CAAA,aAAA;;;;;;;;;;cACpE,qBAAA,YAAqB,aAAA;MAAmC,SAAA,CAAA,aAAA"}
|
package/dist/zod4.js
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
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 { BooleanModelSchema as BooleanModelSchema$1 } from "./model/boolean.js";
|
|
26
|
+
import { ColorModelSchema as ColorModelSchema$1 } from "./model/color.js";
|
|
27
|
+
import { DateModelSchema as DateModelSchema$1 } from "./model/date.js";
|
|
28
|
+
import { EmbedModelSchema as EmbedModelSchema$1 } from "./model/embed.js";
|
|
29
|
+
import { GeoPointModelSchema as GeoPointModelSchema$1 } from "./model/geopoint.js";
|
|
30
|
+
import { IntegrationFieldModelSchema as IntegrationFieldModelSchema$1 } from "./model/integrationField.js";
|
|
31
|
+
import { LinkModelSchema as LinkModelSchema$1 } from "./model/link.js";
|
|
32
|
+
import { NumberModelSchema as NumberModelSchema$1 } from "./model/number.js";
|
|
33
|
+
import { RangeModelSchema as RangeModelSchema$1 } from "./model/range.js";
|
|
34
|
+
import { SelectModelSchema as SelectModelSchema$1 } from "./model/select.js";
|
|
35
|
+
import { SeparatorModelSchema as SeparatorModelSchema$1 } from "./model/separator.js";
|
|
36
|
+
import { TextModelSchema as TextModelSchema$1 } from "./model/text.js";
|
|
37
|
+
import { TimestampModelSchema as TimestampModelSchema$1 } from "./model/timestamp.js";
|
|
38
|
+
import { NestableModelSchema as NestableModelSchema$1 } from "./model/nestable.js";
|
|
39
|
+
import { GroupModelSchema as GroupModelSchema$1, NestedGroupModelSchema as NestedGroupModelSchema$1 } from "./model/group.js";
|
|
40
|
+
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";
|
|
41
|
+
import { DynamicSlicesModelSchema as DynamicSlicesModelSchema$1, StaticSlicesModelSchema as StaticSlicesModelSchema$1 } from "./model/slices.js";
|
|
42
|
+
import { UIDModelSchema as UIDModelSchema$1 } from "./model/uid.js";
|
|
43
|
+
import { DynamicWidgetModelSchema as DynamicWidgetModelSchema$1, StaticWidgetModelSchema as StaticWidgetModelSchema$1 } from "./model/widget.js";
|
|
44
|
+
import { AssetSchema as AssetSchema$1 } from "./common/asset.js";
|
|
45
|
+
import { EmbedSchema as EmbedSchema$1 } from "./common/embed.js";
|
|
46
|
+
import { HexaColorCodeSchema as HexaColorCodeSchema$1 } from "./common/hexaColorCode.js";
|
|
47
|
+
import { DynamicSectionModelSchema as DynamicSectionModelSchema$1, StaticSectionModelSchema as StaticSectionModelSchema$1 } from "./model/section.js";
|
|
48
|
+
import { CustomTypeModelSchema as CustomTypeModelSchema$1, StaticCustomTypeModelSchema as StaticCustomTypeModelSchema$1 } from "./model/customType.js";
|
|
49
|
+
//#region src/zod4.ts
|
|
50
|
+
const AssetSchema = toZod4(AssetSchema$1);
|
|
51
|
+
const EmbedSchema = toZod4(EmbedSchema$1);
|
|
52
|
+
const HexaColorCodeSchema = toZod4(HexaColorCodeSchema$1);
|
|
53
|
+
const NonEmptyStringSchema = toZod4(NonEmptyStringSchema$1);
|
|
54
|
+
const WidgetKeySchema = toZod4(WidgetKeySchema$1);
|
|
55
|
+
const BooleanContentSchema = toZod4(BooleanContentSchema$1);
|
|
56
|
+
const ColorContentSchema = toZod4(ColorContentSchema$1);
|
|
57
|
+
const DateContentSchema = toZod4(DateContentSchema$1);
|
|
58
|
+
const EmptyContentSchema = toZod4(EmptyContentSchema$1);
|
|
59
|
+
const GeoPointContentSchema = toZod4(GeoPointContentSchema$1);
|
|
60
|
+
const LinkContentSchema = toZod4(LinkContentSchema$1);
|
|
61
|
+
const NumberContentSchema = toZod4(NumberContentSchema$1);
|
|
62
|
+
const RangeContentSchema = toZod4(RangeContentSchema$1);
|
|
63
|
+
const SelectContentSchema = toZod4(SelectContentSchema$1);
|
|
64
|
+
const SeparatorContentSchema = toZod4(SeparatorContentSchema$1);
|
|
65
|
+
const SharedSliceContentSchema = toZod4(SharedSliceContentSchema$1);
|
|
66
|
+
const TextContentSchema = toZod4(TextContentSchema$1);
|
|
67
|
+
const TimestampContentSchema = toZod4(TimestampContentSchema$1);
|
|
68
|
+
const FieldContentSchema = toZod4(FieldContentSchema$1);
|
|
69
|
+
const UIDContentSchema = toZod4(UIDContentSchema$1);
|
|
70
|
+
const IntegrationFieldContentSchema = toZod4(IntegrationFieldContentSchema$1);
|
|
71
|
+
const EmbedContentSchema = toZod4(EmbedContentSchema$1);
|
|
72
|
+
const ImageContentSchema = toZod4(ImageContentSchema$1);
|
|
73
|
+
const RichTextContentSchema = toZod4(RichTextContentSchema$1);
|
|
74
|
+
const RichTextContentBlockSchema = toZod4(RichTextContentBlockSchema$1);
|
|
75
|
+
const RichTextContentSpanSchema = toZod4(RichTextContentSpanSchema$1);
|
|
76
|
+
const TableContentSchema = toZod4(TableContentSchema$1);
|
|
77
|
+
const RepeatableContentSchema = toZod4(RepeatableContentSchema$1);
|
|
78
|
+
const NestableContentSchema = toZod4(NestableContentSchema$1);
|
|
79
|
+
const GroupContentSchema = toZod4(GroupContentSchema$1);
|
|
80
|
+
const GroupItemContentSchema = toZod4(GroupItemContentSchema$1);
|
|
81
|
+
const CompositeSliceContentSchema = toZod4(CompositeSliceContentSchema$1);
|
|
82
|
+
const LegacySliceContentSchema = toZod4(LegacySliceContentSchema$1);
|
|
83
|
+
const SliceContentSchema = toZod4(SliceContentSchema$1);
|
|
84
|
+
const LegacySliceItemContentSchema = toZod4(LegacySliceItemContentSchema$1);
|
|
85
|
+
const CompositeSliceItemContentSchema = toZod4(CompositeSliceItemContentSchema$1);
|
|
86
|
+
const SharedSliceItemContentSchema = toZod4(SharedSliceItemContentSchema$1);
|
|
87
|
+
const SliceItemContentSchema = toZod4(SliceItemContentSchema$1);
|
|
88
|
+
const SlicesContentSchema = toZod4(SlicesContentSchema$1);
|
|
89
|
+
const WidgetContentSchema = toZod4(WidgetContentSchema$1);
|
|
90
|
+
const DocumentContentSchema = toZod4(DocumentContentSchema$1);
|
|
91
|
+
const BooleanModelSchema = toZod4(BooleanModelSchema$1);
|
|
92
|
+
const ColorModelSchema = toZod4(ColorModelSchema$1);
|
|
93
|
+
const DateModelSchema = toZod4(DateModelSchema$1);
|
|
94
|
+
const EmbedModelSchema = toZod4(EmbedModelSchema$1);
|
|
95
|
+
const GeoPointModelSchema = toZod4(GeoPointModelSchema$1);
|
|
96
|
+
const ImageModelSchema = toZod4(ImageModelSchema$1);
|
|
97
|
+
const IntegrationFieldModelSchema = toZod4(IntegrationFieldModelSchema$1);
|
|
98
|
+
const LinkModelSchema = toZod4(LinkModelSchema$1);
|
|
99
|
+
const NestableModelSchema = toZod4(NestableModelSchema$1);
|
|
100
|
+
const NumberModelSchema = toZod4(NumberModelSchema$1);
|
|
101
|
+
const RangeModelSchema = toZod4(RangeModelSchema$1);
|
|
102
|
+
const RichTextModelSchema = toZod4(RichTextModelSchema$1);
|
|
103
|
+
const SelectModelSchema = toZod4(SelectModelSchema$1);
|
|
104
|
+
const SeparatorModelSchema = toZod4(SeparatorModelSchema$1);
|
|
105
|
+
const SharedSliceModelSchema = toZod4(SharedSliceModelSchema$1);
|
|
106
|
+
const TableModelSchema = toZod4(TableModelSchema$1);
|
|
107
|
+
const TextModelSchema = toZod4(TextModelSchema$1);
|
|
108
|
+
const TimestampModelSchema = toZod4(TimestampModelSchema$1);
|
|
109
|
+
const UIDModelSchema = toZod4(UIDModelSchema$1);
|
|
110
|
+
const GroupModelSchema = toZod4(GroupModelSchema$1);
|
|
111
|
+
const NestedGroupModelSchema = toZod4(NestedGroupModelSchema$1);
|
|
112
|
+
const SharedSliceRefModelSchema = toZod4(SharedSliceRefModelSchema$1);
|
|
113
|
+
const CompositeSliceModelSchema = toZod4(CompositeSliceModelSchema$1);
|
|
114
|
+
const LegacySliceModelSchema = toZod4(LegacySliceModelSchema$1);
|
|
115
|
+
const DynamicSliceModelSchema = toZod4(DynamicSliceModelSchema$1);
|
|
116
|
+
const StaticSliceModelSchema = toZod4(StaticSliceModelSchema$1);
|
|
117
|
+
const SliceContentModelSchema = toZod4(SliceContentModelSchema$1);
|
|
118
|
+
const DynamicSlicesModelSchema = toZod4(DynamicSlicesModelSchema$1);
|
|
119
|
+
const StaticSlicesModelSchema = toZod4(StaticSlicesModelSchema$1);
|
|
120
|
+
const StaticWidgetModelSchema = toZod4(StaticWidgetModelSchema$1);
|
|
121
|
+
const DynamicWidgetModelSchema = toZod4(DynamicWidgetModelSchema$1);
|
|
122
|
+
const StaticSectionModelSchema = toZod4(StaticSectionModelSchema$1);
|
|
123
|
+
const DynamicSectionModelSchema = toZod4(DynamicSectionModelSchema$1);
|
|
124
|
+
const StaticCustomTypeModelSchema = toZod4(StaticCustomTypeModelSchema$1);
|
|
125
|
+
const CustomTypeModelSchema = toZod4(CustomTypeModelSchema$1);
|
|
126
|
+
function toZod4(type) {
|
|
127
|
+
return type;
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
export { AssetSchema, BooleanContentSchema, BooleanModelSchema, ColorContentSchema, ColorModelSchema, CompositeSliceContentSchema, CompositeSliceItemContentSchema, CompositeSliceModelSchema, CustomTypeModelSchema, DateContentSchema, DateModelSchema, DocumentContentSchema, DynamicSectionModelSchema, DynamicSliceModelSchema, DynamicSlicesModelSchema, DynamicWidgetModelSchema, EmbedContentSchema, EmbedModelSchema, EmbedSchema, EmptyContentSchema, FieldContentSchema, GeoPointContentSchema, GeoPointModelSchema, GroupContentSchema, GroupItemContentSchema, GroupModelSchema, HexaColorCodeSchema, ImageContentSchema, ImageModelSchema, IntegrationFieldContentSchema, IntegrationFieldModelSchema, LegacySliceContentSchema, LegacySliceItemContentSchema, LegacySliceModelSchema, LinkContentSchema, LinkModelSchema, NestableContentSchema, NestableModelSchema, NestedGroupModelSchema, NonEmptyStringSchema, NumberContentSchema, NumberModelSchema, RangeContentSchema, RangeModelSchema, RepeatableContentSchema, RichTextContentBlockSchema, RichTextContentSchema, RichTextContentSpanSchema, RichTextModelSchema, SelectContentSchema, SelectModelSchema, SeparatorContentSchema, SeparatorModelSchema, SharedSliceContentSchema, SharedSliceItemContentSchema, SharedSliceModelSchema, SharedSliceRefModelSchema, SliceContentModelSchema, SliceContentSchema, SliceItemContentSchema, SlicesContentSchema, StaticCustomTypeModelSchema, StaticSectionModelSchema, StaticSliceModelSchema, StaticSlicesModelSchema, StaticWidgetModelSchema, TableContentSchema, TableModelSchema, TextContentSchema, TextModelSchema, TimestampContentSchema, TimestampModelSchema, UIDContentSchema, UIDModelSchema, WidgetContentSchema, WidgetKeySchema };
|
|
131
|
+
|
|
132
|
+
//# sourceMappingURL=zod4.js.map
|
package/dist/zod4.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod4.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/zod4.ts"],"sourcesContent":["// Common\nimport { AssetSchema as rawAssetSchema } from \"./common/asset\"\nimport { EmbedSchema as rawEmbedSchema } from \"./common/embed\"\nimport { HexaColorCodeSchema as rawHexaColorCodeSchema } from \"./common/hexaColorCode\"\nimport { NonEmptyStringSchema as rawNonEmptyStringSchema } from \"./common/nonEmptyString\"\nimport { WidgetKeySchema as rawWidgetKeySchema } from \"./common/widgetKey\"\n// Content\nimport { BooleanContentSchema as rawBooleanContentSchema } from \"./content/boolean\"\nimport { DocumentContentSchema as rawDocumentContentSchema } from \"./content/document\"\nimport { EmbedContentSchema as rawEmbedContentSchema } from \"./content/embed\"\nimport { EmptyContentSchema as rawEmptyContentSchema } from \"./content/empty\"\nimport {\n\tColorContentSchema as rawColorContentSchema,\n\tDateContentSchema as rawDateContentSchema,\n\tNumberContentSchema as rawNumberContentSchema,\n\tRangeContentSchema as rawRangeContentSchema,\n\tSelectContentSchema as rawSelectContentSchema,\n\tTextContentSchema as rawTextContentSchema,\n\tTimestampContentSchema as rawTimestampContentSchema,\n\tFieldContentSchema as rawFieldContentSchema,\n} from \"./content/field\"\nimport { GeoPointContentSchema as rawGeoPointContentSchema } from \"./content/geopoint\"\nimport {\n\tGroupContentSchema as rawGroupContentSchema,\n\tGroupItemContentSchema as rawGroupItemContentSchema,\n} from \"./content/group\"\nimport { 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\tCompositeSliceContentSchema as rawCompositeSliceContentSchema,\n\tLegacySliceContentSchema as rawLegacySliceContentSchema,\n\tSharedSliceContentSchema as rawSharedSliceContentSchema,\n\tSliceContentSchema as rawSliceContentSchema,\n} from \"./content/slice\"\nimport {\n\tLegacySliceItemContentSchema as rawLegacySliceItemContentSchema,\n\tCompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,\n\tSharedSliceItemContentSchema as rawSharedSliceItemContentSchema,\n\tSliceItemContentSchema as rawSliceItemContentSchema,\n\tSlicesContentSchema as rawSlicesContentSchema,\n} from \"./content/slices\"\nimport { TableContentSchema as rawTableContentSchema } from \"./content/table\"\nimport { UIDContentSchema as rawUIDContentSchema } from \"./content/uid\"\nimport { WidgetContentSchema as rawWidgetContentSchema } from \"./content/widget\"\n// Model\nimport { BooleanModelSchema as rawBooleanModelSchema } from \"./model/boolean\"\nimport { ColorModelSchema as rawColorModelSchema } from \"./model/color\"\nimport {\n\tStaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,\n\tCustomTypeModelSchema as rawCustomTypeModelSchema,\n} from \"./model/customType\"\nimport { DateModelSchema as rawDateModelSchema } from \"./model/date\"\nimport { EmbedModelSchema as rawEmbedModelSchema } from \"./model/embed\"\nimport { GeoPointModelSchema as rawGeoPointModelSchema } from \"./model/geopoint\"\nimport {\n\tGroupModelSchema as rawGroupModelSchema,\n\tNestedGroupModelSchema as rawNestedGroupModelSchema,\n} from \"./model/group\"\nimport { ImageModelSchema as rawImageModelSchema } from \"./model/image\"\nimport { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from \"./model/integrationField\"\nimport { LinkModelSchema as rawLinkModelSchema } from \"./model/link\"\nimport { NestableModelSchema as rawNestableModelSchema } from \"./model/nestable\"\nimport { NumberModelSchema as rawNumberModelSchema } from \"./model/number\"\nimport { RangeModelSchema as rawRangeModelSchema } from \"./model/range\"\nimport { RichTextModelSchema as rawRichTextModelSchema } from \"./model/richText\"\nimport {\n\tStaticSectionModelSchema as rawStaticSectionModelSchema,\n\tDynamicSectionModelSchema as rawDynamicSectionModelSchema,\n} from \"./model/section\"\nimport { SelectModelSchema as rawSelectModelSchema } from \"./model/select\"\nimport { SeparatorModelSchema as rawSeparatorModelSchema } from \"./model/separator\"\nimport {\n\tLegacySliceModelSchema as rawLegacySliceModelSchema,\n\tCompositeSliceModelSchema as rawCompositeSliceModelSchema,\n\tSharedSliceModelSchema as rawSharedSliceModelSchema,\n\tSharedSliceRefModelSchema as rawSharedSliceRefModelSchema,\n\tStaticSliceModelSchema as rawStaticSliceModelSchema,\n\tDynamicSliceModelSchema as rawDynamicSliceModelSchema,\n\tSliceContentModelSchema as rawSliceContentModelSchema,\n} from \"./model/slice\"\nimport {\n\tDynamicSlicesModelSchema as rawDynamicSlicesModelSchema,\n\tStaticSlicesModelSchema as rawStaticSlicesModelSchema,\n} from \"./model/slices\"\nimport { TableModelSchema as rawTableModelSchema } from \"./model/table\"\nimport { TextModelSchema as rawTextModelSchema } from \"./model/text\"\nimport { TimestampModelSchema as rawTimestampModelSchema } from \"./model/timestamp\"\nimport { UIDModelSchema as rawUIDModelSchema } from \"./model/uid\"\nimport {\n\tStaticWidgetModelSchema as rawStaticWidgetModelSchema,\n\tDynamicWidgetModelSchema as rawDynamicWidgetModelSchema,\n} from \"./model/widget\"\n\n// Common\nexport const AssetSchema = toZod4(rawAssetSchema)\nexport const EmbedSchema = toZod4(rawEmbedSchema)\nexport const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)\nexport const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)\nexport const WidgetKeySchema = toZod4(rawWidgetKeySchema)\n\n// Content\nexport const BooleanContentSchema = toZod4(rawBooleanContentSchema)\nexport const ColorContentSchema = toZod4(rawColorContentSchema)\nexport const DateContentSchema = toZod4(rawDateContentSchema)\nexport const EmptyContentSchema = toZod4(rawEmptyContentSchema)\nexport const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)\nexport const LinkContentSchema = toZod4(rawLinkContentSchema)\nexport const NumberContentSchema = toZod4(rawNumberContentSchema)\nexport const RangeContentSchema = toZod4(rawRangeContentSchema)\nexport const SelectContentSchema = toZod4(rawSelectContentSchema)\nexport const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)\nexport const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)\nexport const TextContentSchema = toZod4(rawTextContentSchema)\nexport const TimestampContentSchema = toZod4(rawTimestampContentSchema)\nexport const FieldContentSchema = toZod4(rawFieldContentSchema)\nexport const UIDContentSchema = toZod4(rawUIDContentSchema)\nexport const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)\nexport const EmbedContentSchema = toZod4(rawEmbedContentSchema)\nexport const ImageContentSchema = toZod4(rawImageContentSchema)\nexport const RichTextContentSchema = toZod4(rawRichTextContentSchema)\nexport const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)\nexport const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)\nexport const TableContentSchema = toZod4(rawTableContentSchema)\nexport const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)\nexport const NestableContentSchema = toZod4(rawNestableContentSchema)\nexport const GroupContentSchema = toZod4(rawGroupContentSchema)\nexport const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)\nexport const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)\nexport const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)\nexport const SliceContentSchema = toZod4(rawSliceContentSchema)\nexport const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)\nexport const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)\nexport const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)\nexport const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)\nexport const SlicesContentSchema = toZod4(rawSlicesContentSchema)\nexport const WidgetContentSchema = toZod4(rawWidgetContentSchema)\nexport const DocumentContentSchema = toZod4(rawDocumentContentSchema)\n\n// Model\nexport const BooleanModelSchema = toZod4(rawBooleanModelSchema)\nexport const ColorModelSchema = toZod4(rawColorModelSchema)\nexport const DateModelSchema = toZod4(rawDateModelSchema)\nexport const EmbedModelSchema = toZod4(rawEmbedModelSchema)\nexport const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)\nexport const ImageModelSchema = toZod4(rawImageModelSchema)\nexport const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)\nexport const LinkModelSchema = toZod4(rawLinkModelSchema)\nexport const NestableModelSchema = toZod4(rawNestableModelSchema)\nexport const NumberModelSchema = toZod4(rawNumberModelSchema)\nexport const RangeModelSchema = toZod4(rawRangeModelSchema)\nexport const RichTextModelSchema = toZod4(rawRichTextModelSchema)\nexport const SelectModelSchema = toZod4(rawSelectModelSchema)\nexport const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)\nexport const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)\nexport const TableModelSchema = toZod4(rawTableModelSchema)\nexport const TextModelSchema = toZod4(rawTextModelSchema)\nexport const TimestampModelSchema = toZod4(rawTimestampModelSchema)\nexport const UIDModelSchema = toZod4(rawUIDModelSchema)\nexport const GroupModelSchema = toZod4(rawGroupModelSchema)\nexport const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)\nexport const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)\nexport const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)\nexport const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)\nexport const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)\nexport const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)\nexport const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)\nexport const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)\nexport const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)\nexport const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)\nexport const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)\nexport const StaticSectionModelSchema = toZod4(rawStaticSectionModelSchema)\nexport const DynamicSectionModelSchema = toZod4(rawDynamicSectionModelSchema)\nexport const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)\nexport const CustomTypeModelSchema = toZod4(rawCustomTypeModelSchema)\n\nfunction toZod4<T>(type: T): T {\n\treturn type\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGA,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,yB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AmB,OAAOC,mBAAoB;AAC3D,MAAa,sBAAsB,OAAOC,sBAAuB;AACjE,MAAa,oBAAoB,OAAOC,oBAAqB;AAC7D,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,mBAAmB,OAAOC,mBAAoB;AAC3D,MAAa,kBAAkB,OAAOC,kBAAmB;AACzD,MAAa,uBAAuB,OAAOC,uBAAwB;AACnE,MAAa,iBAAiB,OAAOC,iBAAkB;AACvD,MAAa,mBAAmB,OAAOC,mBAAoB;AAC3D,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,yBAAyB,OAAOC,yBAA0B;AACvE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,0BAA0B,OAAOC,0BAA2B;AACzE,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,2BAA2B,OAAOC,2BAA4B;AAC3E,MAAa,4BAA4B,OAAOC,4BAA6B;AAC7E,MAAa,8BAA8B,OAAOC,8BAA+B;AACjF,MAAa,wBAAwB,OAAOC,wBAAyB;AAErE,SAAS,OAAU,MAAY;AAC9B,QAAO"}
|
package/package.json
CHANGED
|
@@ -1,77 +1,74 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/types-internal",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "4.0.0-canary.3fe5f1e",
|
|
4
|
+
"description": "TypeScript types and runtime parsers for Prismic data",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"prismic",
|
|
7
|
+
"typescript"
|
|
8
8
|
],
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"author": "Prismic <contact@prismic.io> (https://prismic.io)",
|
|
9
11
|
"repository": {
|
|
10
12
|
"type": "git",
|
|
11
|
-
"url": "ssh://git@github.com/prismicio/prismic-types-internal.git"
|
|
13
|
+
"url": "ssh://git@github.com/prismicio/prismic-types-internal-next.git"
|
|
12
14
|
},
|
|
13
|
-
"license": "Apache-2.0",
|
|
14
|
-
"author": "Prismic <contact@prismic.io> (https://prismic.io)",
|
|
15
|
-
"main": "lib/index.js",
|
|
16
|
-
"types": "lib/index.d.ts",
|
|
17
15
|
"files": [
|
|
18
|
-
"
|
|
19
|
-
"src"
|
|
16
|
+
"./dist",
|
|
17
|
+
"./src"
|
|
20
18
|
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"typesVersions": {
|
|
22
|
+
"*": {
|
|
23
|
+
"*": [
|
|
24
|
+
"./dist/index.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"io-ts": [
|
|
27
|
+
"./dist/io-ts.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"zod4": [
|
|
30
|
+
"./dist/zod4.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"exports": {
|
|
35
|
+
".": "./dist/index.js",
|
|
36
|
+
"./io-ts": "./dist/io-ts.js",
|
|
37
|
+
"./zod4": "./dist/zod4.js",
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
21
43
|
"scripts": {
|
|
22
|
-
"build": "
|
|
23
|
-
"dev": "
|
|
24
|
-
"format": "
|
|
44
|
+
"build": "tsdown",
|
|
45
|
+
"dev": "tsdown --watch",
|
|
46
|
+
"format": "oxfmt",
|
|
25
47
|
"prepare": "npm run build",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"prettier": "prettier --check .",
|
|
33
|
-
"prettier-write": "prettier --write ."
|
|
48
|
+
"lint": "oxlint --deny-warnings",
|
|
49
|
+
"portability": "npm run build && tsc -p test/portability/tsconfig.json --pretty false",
|
|
50
|
+
"types": "tsc --noEmit",
|
|
51
|
+
"unit": "vitest run --coverage",
|
|
52
|
+
"unit:watch": "vitest watch",
|
|
53
|
+
"test": "npm run lint && npm run types && npm run unit && npm run portability"
|
|
34
54
|
},
|
|
35
55
|
"dependencies": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"tslib": "^2.3.1",
|
|
39
|
-
"uuid": "^9.0.0"
|
|
56
|
+
"io-ts": "^2.2.22",
|
|
57
|
+
"zod": "^4.3.6"
|
|
40
58
|
},
|
|
41
59
|
"devDependencies": {
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@types/
|
|
45
|
-
"@types/uuid": "^
|
|
46
|
-
"@
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"eslint-plugin-simple-import-sort": "7.0.0",
|
|
53
|
-
"eslint-plugin-storybook": "0.5.5",
|
|
54
|
-
"fp-ts": "^2.11.8",
|
|
55
|
-
"io-ts": "^2.2.16",
|
|
56
|
-
"io-ts-types": "^0.5.16",
|
|
57
|
-
"jest": "^27.5.1",
|
|
58
|
-
"nyc": "^15.1.0",
|
|
59
|
-
"prettier": "^2.7.1",
|
|
60
|
-
"prettier-plugin-jsdoc": "^0.3.30",
|
|
61
|
-
"standard-version": "^9.3.2",
|
|
62
|
-
"ts-eager": "^2.0.2",
|
|
63
|
-
"ts-jest": "^27.1.3",
|
|
64
|
-
"typescript": "^4.5.5"
|
|
65
|
-
},
|
|
66
|
-
"peerDependencies": {
|
|
67
|
-
"fp-ts": "^2.11.8",
|
|
68
|
-
"io-ts": "^2.2.16",
|
|
69
|
-
"io-ts-types": "^0.5.16"
|
|
60
|
+
"@prismicio/e2e-tests-utils": "^1.16.0",
|
|
61
|
+
"@prismicio/types-internal-v3": "npm:@prismicio/types-internal@^3.17.0",
|
|
62
|
+
"@types/node": "^25.4.0",
|
|
63
|
+
"@types/uuid": "^11.0.0",
|
|
64
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
65
|
+
"oxfmt": "^0.37.0",
|
|
66
|
+
"oxlint": "^1.52.0",
|
|
67
|
+
"tsdown": "^0.21.1",
|
|
68
|
+
"typescript": "^5.9.3",
|
|
69
|
+
"vitest": "^4.0.18"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
|
-
"node": ">=
|
|
73
|
-
},
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
72
|
+
"node": ">=20"
|
|
76
73
|
}
|
|
77
74
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod/mini"
|
|
2
|
+
|
|
3
|
+
export const AssetSchema = z.strictObject({
|
|
4
|
+
id: z.string(),
|
|
5
|
+
last_modified: z.string(),
|
|
6
|
+
kind: z.union([z.literal("image"), z.literal("all")]),
|
|
7
|
+
filename: z.optional(z.string()),
|
|
8
|
+
extension: z.optional(z.string()),
|
|
9
|
+
size: z.optional(z.number()),
|
|
10
|
+
origin_url: z.string(),
|
|
11
|
+
url: z.string(),
|
|
12
|
+
width: z.optional(z.number()),
|
|
13
|
+
height: z.optional(z.number()),
|
|
14
|
+
notes: z.optional(z.string()),
|
|
15
|
+
credits: z.optional(z.string()),
|
|
16
|
+
alt: z.optional(z.string()),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export type Asset = z.infer<typeof AssetSchema>
|
|
20
|
+
|
|
21
|
+
export const getAssetOrThrow =
|
|
22
|
+
(assets: Record<Asset["id"], Asset | undefined>): ((assetId: Asset["id"]) => Asset) =>
|
|
23
|
+
(assetId: Asset["id"]): Asset => {
|
|
24
|
+
const asset = assets[assetId]
|
|
25
|
+
if (!asset) {
|
|
26
|
+
throw new Error(`Missing asset with id '${assetId}'!`)
|
|
27
|
+
}
|
|
28
|
+
return asset
|
|
29
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod/mini"
|
|
2
|
+
|
|
3
|
+
// This type represents response format from oEmbed API
|
|
4
|
+
export const EmbedSchema = z.strictObject({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
version: z.nullish(z.string()),
|
|
7
|
+
author_name: z.nullish(z.string()),
|
|
8
|
+
author_url: z.nullish(z.string()),
|
|
9
|
+
provider_name: z.nullish(z.string()),
|
|
10
|
+
provider_url: z.nullish(z.string()),
|
|
11
|
+
cache_age: z.nullish(z.string()),
|
|
12
|
+
thumbnail_url: z.nullish(z.string()),
|
|
13
|
+
thumbnail_width: z.nullish(z.number()),
|
|
14
|
+
thumbnail_height: z.nullish(z.number()),
|
|
15
|
+
html: z.nullish(z.string()),
|
|
16
|
+
title: z.nullish(z.string()),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export type Embed = z.infer<typeof EmbedSchema>
|
|
20
|
+
|
|
21
|
+
export const getEmbedOrThrow =
|
|
22
|
+
(embeds: Record<string, Embed | undefined>): ((embedUrl: string) => Embed) =>
|
|
23
|
+
(embedUrl: string): Embed => {
|
|
24
|
+
const embed = embeds[embedUrl]
|
|
25
|
+
if (!embed) throw new Error(`Missing embed with url '${embedUrl}'`)
|
|
26
|
+
return embed
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod/mini"
|
|
2
|
+
|
|
3
|
+
const hexaColorCodeRegex = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/
|
|
4
|
+
|
|
5
|
+
export const HexaColorCodeSchema = z.string().check(
|
|
6
|
+
z.refine((s) => hexaColorCodeRegex.test(s), {
|
|
7
|
+
error: () => "The value must be a valid hex color code (e.g. #FFF or #FFFFFF)",
|
|
8
|
+
}),
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
export type HexaColorCode = z.infer<typeof HexaColorCodeSchema>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod/mini"
|
|
2
|
+
|
|
3
|
+
const widgetKeyRegex = /^[^<>]+$/
|
|
4
|
+
|
|
5
|
+
export const WidgetKeySchema = z.string().check(
|
|
6
|
+
z.refine((s) => s.length === 0 || widgetKeyRegex.test(s), {
|
|
7
|
+
error: () => "The value must not contain < or > characters",
|
|
8
|
+
}),
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
export type WidgetKey = z.infer<typeof WidgetKeySchema>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod/mini"
|
|
2
|
+
|
|
3
|
+
import type { BooleanModel } from "../model/boolean"
|
|
4
|
+
|
|
5
|
+
export const BooleanContentType = "BooleanContent" as const
|
|
6
|
+
|
|
7
|
+
export const BooleanContentSchema = z.object({
|
|
8
|
+
__TYPE__: z.literal(BooleanContentType),
|
|
9
|
+
value: z.boolean(),
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
export type BooleanContent = z.infer<typeof BooleanContentSchema>
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Returns the default value for a Boolean field based on its configuration.
|
|
16
|
+
*/
|
|
17
|
+
export const BooleanContentDefaultValue = (field: BooleanModel): BooleanContent | undefined =>
|
|
18
|
+
field.config?.default_value !== undefined
|
|
19
|
+
? {
|
|
20
|
+
__TYPE__: BooleanContentType,
|
|
21
|
+
value: field.config.default_value || false,
|
|
22
|
+
}
|
|
23
|
+
: undefined
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BooleanContentSchema, BooleanContentType } from "../boolean"
|
|
2
|
+
import type { BooleanContent } from "../boolean"
|
|
3
|
+
import { BooleanLegacySchema } from "../legacy/boolean"
|
|
4
|
+
import type { BooleanLegacy } from "../legacy/boolean"
|
|
5
|
+
import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
|
|
6
|
+
|
|
7
|
+
export const BooleanLegacyCodec = (
|
|
8
|
+
ctx: LegacyContentCtx,
|
|
9
|
+
): LegacyCodec<BooleanContent, BooleanLegacy> => ({
|
|
10
|
+
name: "BooleanLegacy",
|
|
11
|
+
|
|
12
|
+
is(input): input is BooleanContent {
|
|
13
|
+
return BooleanContentSchema.safeParse(input).success
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
toContent(input) {
|
|
17
|
+
const parsed = BooleanLegacySchema.safeParse(input)
|
|
18
|
+
if (!parsed.success) {
|
|
19
|
+
return parsed
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
success: true,
|
|
24
|
+
data: {
|
|
25
|
+
__TYPE__: BooleanContentType,
|
|
26
|
+
value: parsed.data,
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
fromContent(input) {
|
|
32
|
+
return {
|
|
33
|
+
content: input.value,
|
|
34
|
+
types: { [ctx.keyOfType]: "Boolean" },
|
|
35
|
+
keys: {},
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
})
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { DocumentContentSchema } from "../document"
|
|
2
|
+
import type { DocumentContent } from "../document"
|
|
3
|
+
import { DocumentLegacySchema } from "../legacy/document"
|
|
4
|
+
import type { DocumentLegacy } from "../legacy/document"
|
|
5
|
+
import { defaultCtx } from "./legacyContentCtx"
|
|
6
|
+
import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
|
|
7
|
+
import { WidgetLegacyCodec } from "./widget"
|
|
8
|
+
|
|
9
|
+
export const DocumentLegacyCodec = (
|
|
10
|
+
ctx: LegacyContentCtx,
|
|
11
|
+
): LegacyCodec<DocumentContent, DocumentLegacy> => ({
|
|
12
|
+
name: "DocumentLegacy",
|
|
13
|
+
|
|
14
|
+
is(input): input is DocumentContent {
|
|
15
|
+
return DocumentContentSchema.safeParse(input).success
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
toContent(input) {
|
|
19
|
+
const parsed = DocumentLegacySchema.safeParse(input)
|
|
20
|
+
if (!parsed.success) {
|
|
21
|
+
return parsed
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const data: DocumentContent = {}
|
|
25
|
+
|
|
26
|
+
for (const [widgetKey, widgetValue] of Object.entries(parsed.data)) {
|
|
27
|
+
const widgetCtx = defaultCtx(widgetKey, ctx.allTypes, ctx.allKeys)
|
|
28
|
+
const result = WidgetLegacyCodec(widgetCtx).toContent(widgetValue)
|
|
29
|
+
|
|
30
|
+
if (result.success) {
|
|
31
|
+
data[widgetKey] = result.data
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return { success: true, data }
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
fromContent(input) {
|
|
39
|
+
const legacy: ReturnType<LegacyCodec<DocumentContent, DocumentLegacy>["fromContent"]> = {
|
|
40
|
+
content: {},
|
|
41
|
+
types: {},
|
|
42
|
+
keys: {},
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
for (const [widgetKey, widgetValue] of Object.entries(input)) {
|
|
46
|
+
const widgetCtx = defaultCtx(widgetKey, ctx.allTypes)
|
|
47
|
+
const result = WidgetLegacyCodec(widgetCtx).fromContent(widgetValue)
|
|
48
|
+
|
|
49
|
+
if (!result) {
|
|
50
|
+
continue
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
legacy.content[widgetKey] = result.content
|
|
54
|
+
legacy.types = { ...legacy.types, ...result.types }
|
|
55
|
+
legacy.keys = { ...legacy.keys, ...result.keys }
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return legacy
|
|
59
|
+
},
|
|
60
|
+
})
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { EmbedContentSchema, EmbedContentType } from "../embed"
|
|
2
|
+
import type { EmbedContent } from "../embed"
|
|
3
|
+
import type { EmbedLegacy } from "../legacy/embed"
|
|
4
|
+
import { EmbedLegacySchema, EmbedLegacyLooseSchema } from "../legacy/embed"
|
|
5
|
+
import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
|
|
6
|
+
|
|
7
|
+
// Also used by content/codec/richText
|
|
8
|
+
export function embedLegacyToContent(value: EmbedLegacy): EmbedContent {
|
|
9
|
+
const parsed = EmbedLegacySchema.parse(value)
|
|
10
|
+
|
|
11
|
+
return {
|
|
12
|
+
...parsed,
|
|
13
|
+
all: value,
|
|
14
|
+
__TYPE__: EmbedContentType,
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Also used by content/codec/richText
|
|
19
|
+
export function embedContentToLegacy(value: EmbedContent): EmbedLegacy {
|
|
20
|
+
/**
|
|
21
|
+
* We cast here because actually in the all property we can have
|
|
22
|
+
* extra keys that are never parsed and we don't want to loose them.
|
|
23
|
+
*/
|
|
24
|
+
return value.all as EmbedLegacy
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const EmbedLegacyCodec = (
|
|
28
|
+
ctx: LegacyContentCtx,
|
|
29
|
+
): LegacyCodec<EmbedContent, EmbedLegacy> => ({
|
|
30
|
+
name: "EmbedLegacy",
|
|
31
|
+
|
|
32
|
+
is(input): input is EmbedContent {
|
|
33
|
+
return EmbedContentSchema.safeParse(input).success
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
toContent(input) {
|
|
37
|
+
const parsed = EmbedLegacyLooseSchema.safeParse(input)
|
|
38
|
+
if (!parsed.success) {
|
|
39
|
+
return parsed
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
success: true,
|
|
44
|
+
data: embedLegacyToContent(parsed.data),
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
fromContent(input) {
|
|
49
|
+
return {
|
|
50
|
+
content: embedContentToLegacy(input),
|
|
51
|
+
types: { [ctx.keyOfType]: "Embed" },
|
|
52
|
+
keys: {},
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
})
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod/mini"
|
|
2
|
+
|
|
3
|
+
import { EmptyContentSchema, EmptyContentType } from "../empty"
|
|
4
|
+
import type { EmptyContent } from "../empty"
|
|
5
|
+
import { EmptyLegacySchema } from "../legacy/empty"
|
|
6
|
+
import type { EmptyLegacy } from "../legacy/empty"
|
|
7
|
+
import type { LegacyContentCtx, LegacyCodec } from "./legacyContentCtx"
|
|
8
|
+
|
|
9
|
+
const UnsupportedEmptyLegacySchema = z.never()
|
|
10
|
+
|
|
11
|
+
export const EmptyLegacyCodec = (
|
|
12
|
+
ctx: LegacyContentCtx,
|
|
13
|
+
): LegacyCodec<EmptyContent, EmptyLegacy> => ({
|
|
14
|
+
name: "EmptyLegacy",
|
|
15
|
+
|
|
16
|
+
is(input): input is EmptyContent {
|
|
17
|
+
return EmptyContentSchema.safeParse(input).success
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
toContent(input) {
|
|
21
|
+
if (!ctx.fieldType) {
|
|
22
|
+
return UnsupportedEmptyLegacySchema.safeParse(
|
|
23
|
+
input,
|
|
24
|
+
) as z.core.util.SafeParseError<EmptyLegacy>
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const parsed = EmptyLegacySchema.safeParse(input)
|
|
28
|
+
if (!parsed.success) {
|
|
29
|
+
return parsed
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
success: true,
|
|
34
|
+
data: {
|
|
35
|
+
__TYPE__: EmptyContentType,
|
|
36
|
+
type: ctx.fieldType,
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
fromContent(input) {
|
|
42
|
+
const type = ctx.fieldType ?? input.type
|
|
43
|
+
return {
|
|
44
|
+
content: null,
|
|
45
|
+
types: { [ctx.keyOfType]: type },
|
|
46
|
+
keys: {},
|
|
47
|
+
} as ReturnType<LegacyCodec<EmptyContent, EmptyLegacy>["fromContent"]>
|
|
48
|
+
},
|
|
49
|
+
})
|