@prismicio/client 7.21.0-alpha.2 → 7.21.0-canary.147e3f2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.cjs +926 -0
- package/dist/Client.cjs.map +1 -0
- package/dist/Client.d.cts +704 -0
- package/dist/Client.d.cts.map +1 -0
- package/dist/Client.d.ts +704 -0
- package/dist/Client.d.ts.map +1 -0
- package/dist/Client.js +926 -0
- package/dist/Client.js.map +1 -0
- package/dist/Migration.cjs +284 -0
- package/dist/Migration.cjs.map +1 -0
- package/dist/Migration.d.cts +216 -0
- package/dist/Migration.d.cts.map +1 -0
- package/dist/Migration.d.ts +216 -0
- package/dist/Migration.d.ts.map +1 -0
- package/dist/Migration.js +284 -0
- package/dist/Migration.js.map +1 -0
- package/dist/WriteClient.cjs +488 -0
- package/dist/WriteClient.cjs.map +1 -0
- package/dist/WriteClient.d.cts +262 -0
- package/dist/WriteClient.d.cts.map +1 -0
- package/dist/WriteClient.d.ts +262 -0
- package/dist/WriteClient.d.ts.map +1 -0
- package/dist/WriteClient.js +488 -0
- package/dist/WriteClient.js.map +1 -0
- package/dist/_virtual/rolldown_runtime.cjs +14 -0
- package/dist/_virtual/rolldown_runtime.js +13 -0
- package/dist/buildQueryURL.cjs +96 -0
- package/dist/buildQueryURL.cjs.map +1 -0
- package/dist/buildQueryURL.d.cts +212 -0
- package/dist/buildQueryURL.d.cts.map +1 -0
- package/dist/buildQueryURL.d.ts +212 -0
- package/dist/buildQueryURL.d.ts.map +1 -0
- package/dist/buildQueryURL.js +96 -0
- package/dist/buildQueryURL.js.map +1 -0
- package/dist/cookie.cjs +19 -0
- package/dist/cookie.cjs.map +1 -0
- package/dist/cookie.d.cts +11 -0
- package/dist/cookie.d.cts.map +1 -0
- package/dist/cookie.d.ts +11 -0
- package/dist/cookie.d.ts.map +1 -0
- package/dist/cookie.js +13 -0
- package/dist/cookie.js.map +1 -0
- package/dist/createClient.cjs +33 -0
- package/dist/createClient.cjs.map +1 -0
- package/dist/createClient.d.cts +41 -0
- package/dist/createClient.d.cts.map +1 -0
- package/dist/createClient.d.ts +41 -0
- package/dist/createClient.d.ts.map +1 -0
- package/dist/createClient.js +33 -0
- package/dist/createClient.js.map +1 -0
- package/dist/createMigration.cjs +22 -0
- package/dist/createMigration.cjs.map +1 -0
- package/dist/createMigration.d.cts +30 -0
- package/dist/createMigration.d.cts.map +1 -0
- package/dist/createMigration.d.ts +30 -0
- package/dist/createMigration.d.ts.map +1 -0
- package/dist/createMigration.js +22 -0
- package/dist/createMigration.js.map +1 -0
- package/dist/createWriteClient.cjs +30 -0
- package/dist/createWriteClient.cjs.map +1 -0
- package/dist/createWriteClient.d.cts +38 -0
- package/dist/createWriteClient.d.cts.map +1 -0
- package/dist/createWriteClient.d.ts +38 -0
- package/dist/createWriteClient.d.ts.map +1 -0
- package/dist/createWriteClient.js +30 -0
- package/dist/createWriteClient.js.map +1 -0
- package/dist/errors.cjs +31 -0
- package/dist/errors.cjs.map +1 -0
- package/dist/errors.d.cts +46 -0
- package/dist/errors.d.cts.map +1 -0
- package/dist/errors.d.ts +46 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +22 -0
- package/dist/errors.js.map +1 -0
- package/dist/filter.cjs +104 -0
- package/dist/filter.cjs.map +1 -0
- package/dist/filter.d.cts +213 -0
- package/dist/filter.d.cts.map +1 -0
- package/dist/filter.d.ts +213 -0
- package/dist/filter.d.ts.map +1 -0
- package/dist/filter.js +103 -0
- package/dist/filter.js.map +1 -0
- package/dist/getGraphQLEndpoint.cjs +21 -0
- package/dist/getGraphQLEndpoint.cjs.map +1 -0
- package/dist/getGraphQLEndpoint.d.cts +14 -0
- package/dist/getGraphQLEndpoint.d.cts.map +1 -0
- package/dist/getGraphQLEndpoint.d.ts +14 -0
- package/dist/getGraphQLEndpoint.d.ts.map +1 -0
- package/dist/getGraphQLEndpoint.js +21 -0
- package/dist/getGraphQLEndpoint.js.map +1 -0
- package/dist/getRepositoryEndpoint.cjs +30 -0
- package/dist/getRepositoryEndpoint.cjs.map +1 -0
- package/dist/getRepositoryEndpoint.d.cts +23 -0
- package/dist/getRepositoryEndpoint.d.cts.map +1 -0
- package/dist/getRepositoryEndpoint.d.ts +23 -0
- package/dist/getRepositoryEndpoint.d.ts.map +1 -0
- package/dist/getRepositoryEndpoint.js +30 -0
- package/dist/getRepositoryEndpoint.js.map +1 -0
- package/dist/getRepositoryName.cjs +25 -0
- package/dist/getRepositoryName.cjs.map +1 -0
- package/dist/getRepositoryName.d.cts +16 -0
- package/dist/getRepositoryName.d.cts.map +1 -0
- package/dist/getRepositoryName.d.ts +16 -0
- package/dist/getRepositoryName.d.ts.map +1 -0
- package/dist/getRepositoryName.js +25 -0
- package/dist/getRepositoryName.js.map +1 -0
- package/dist/getToolbarSrc.cjs +45 -0
- package/dist/getToolbarSrc.cjs.map +1 -0
- package/dist/getToolbarSrc.d.cts +38 -0
- package/dist/getToolbarSrc.d.cts.map +1 -0
- package/dist/getToolbarSrc.d.ts +38 -0
- package/dist/getToolbarSrc.d.ts.map +1 -0
- package/dist/getToolbarSrc.js +45 -0
- package/dist/getToolbarSrc.js.map +1 -0
- package/dist/helpers/asDate.cjs +39 -0
- package/dist/helpers/asDate.cjs.map +1 -0
- package/dist/helpers/asDate.d.cts +29 -0
- package/dist/helpers/asDate.d.cts.map +1 -0
- package/dist/helpers/asDate.d.ts +29 -0
- package/dist/helpers/asDate.d.ts.map +1 -0
- package/dist/helpers/asDate.js +38 -0
- package/dist/helpers/asDate.js.map +1 -0
- package/dist/helpers/asHTML.cjs +83 -0
- package/dist/helpers/asHTML.cjs.map +1 -0
- package/dist/helpers/asHTML.d.cts +147 -0
- package/dist/helpers/asHTML.d.cts.map +1 -0
- package/dist/helpers/asHTML.d.ts +147 -0
- package/dist/helpers/asHTML.d.ts.map +1 -0
- package/dist/helpers/asHTML.js +83 -0
- package/dist/helpers/asHTML.js.map +1 -0
- package/dist/helpers/asImagePixelDensitySrcSet.cjs +60 -0
- package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +1 -0
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts +59 -0
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts.map +1 -0
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts +59 -0
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts.map +1 -0
- package/dist/helpers/asImagePixelDensitySrcSet.js +60 -0
- package/dist/helpers/asImagePixelDensitySrcSet.js.map +1 -0
- package/dist/helpers/asImageSrc.cjs +33 -0
- package/dist/helpers/asImageSrc.cjs.map +1 -0
- package/dist/helpers/asImageSrc.d.cts +34 -0
- package/dist/helpers/asImageSrc.d.cts.map +1 -0
- package/dist/helpers/asImageSrc.d.ts +34 -0
- package/dist/helpers/asImageSrc.d.ts.map +1 -0
- package/dist/helpers/asImageSrc.js +33 -0
- package/dist/helpers/asImageSrc.js.map +1 -0
- package/dist/helpers/asImageWidthSrcSet.cjs +79 -0
- package/dist/helpers/asImageWidthSrcSet.cjs.map +1 -0
- package/dist/helpers/asImageWidthSrcSet.d.cts +67 -0
- package/dist/helpers/asImageWidthSrcSet.d.cts.map +1 -0
- package/dist/helpers/asImageWidthSrcSet.d.ts +67 -0
- package/dist/helpers/asImageWidthSrcSet.d.ts.map +1 -0
- package/dist/helpers/asImageWidthSrcSet.js +79 -0
- package/dist/helpers/asImageWidthSrcSet.js.map +1 -0
- package/dist/helpers/asLink.cjs +29 -0
- package/dist/helpers/asLink.cjs.map +1 -0
- package/dist/helpers/asLink.d.cts +83 -0
- package/dist/helpers/asLink.d.cts.map +1 -0
- package/dist/helpers/asLink.d.ts +83 -0
- package/dist/helpers/asLink.d.ts.map +1 -0
- package/dist/helpers/asLink.js +29 -0
- package/dist/helpers/asLink.js.map +1 -0
- package/dist/helpers/asLinkAttrs.cjs +47 -0
- package/dist/helpers/asLinkAttrs.cjs.map +1 -0
- package/dist/helpers/asLinkAttrs.d.cts +51 -0
- package/dist/helpers/asLinkAttrs.d.cts.map +1 -0
- package/dist/helpers/asLinkAttrs.d.ts +51 -0
- package/dist/helpers/asLinkAttrs.d.ts.map +1 -0
- package/dist/helpers/asLinkAttrs.js +47 -0
- package/dist/helpers/asLinkAttrs.js.map +1 -0
- package/dist/helpers/asText.cjs +16 -0
- package/dist/helpers/asText.cjs.map +1 -0
- package/dist/helpers/asText.d.cts +62 -0
- package/dist/helpers/asText.d.cts.map +1 -0
- package/dist/helpers/asText.d.ts +62 -0
- package/dist/helpers/asText.d.ts.map +1 -0
- package/dist/helpers/asText.js +16 -0
- package/dist/helpers/asText.js.map +1 -0
- package/dist/helpers/documentToLinkField.cjs +33 -0
- package/dist/helpers/documentToLinkField.cjs.map +1 -0
- package/dist/helpers/documentToLinkField.d.cts +21 -0
- package/dist/helpers/documentToLinkField.d.cts.map +1 -0
- package/dist/helpers/documentToLinkField.d.ts +21 -0
- package/dist/helpers/documentToLinkField.d.ts.map +1 -0
- package/dist/helpers/documentToLinkField.js +33 -0
- package/dist/helpers/documentToLinkField.js.map +1 -0
- package/dist/helpers/isFilled.cjs +250 -0
- package/dist/helpers/isFilled.cjs.map +1 -0
- package/dist/helpers/isFilled.d.cts +199 -0
- package/dist/helpers/isFilled.d.cts.map +1 -0
- package/dist/helpers/isFilled.d.ts +199 -0
- package/dist/helpers/isFilled.d.ts.map +1 -0
- package/dist/helpers/isFilled.js +243 -0
- package/dist/helpers/isFilled.js.map +1 -0
- package/dist/helpers/mapSliceZone.cjs +53 -0
- package/dist/helpers/mapSliceZone.cjs.map +1 -0
- package/dist/helpers/mapSliceZone.d.cts +139 -0
- package/dist/helpers/mapSliceZone.d.cts.map +1 -0
- package/dist/helpers/mapSliceZone.d.ts +139 -0
- package/dist/helpers/mapSliceZone.d.ts.map +1 -0
- package/dist/helpers/mapSliceZone.js +52 -0
- package/dist/helpers/mapSliceZone.js.map +1 -0
- package/dist/index.cjs +109 -3882
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +143 -4394
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +143 -4394
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/isRepositoryEndpoint.cjs +23 -0
- package/dist/isRepositoryEndpoint.cjs.map +1 -0
- package/dist/isRepositoryEndpoint.d.cts +14 -0
- package/dist/isRepositoryEndpoint.d.cts.map +1 -0
- package/dist/isRepositoryEndpoint.d.ts +14 -0
- package/dist/isRepositoryEndpoint.d.ts.map +1 -0
- package/dist/isRepositoryEndpoint.js +22 -0
- package/dist/isRepositoryEndpoint.js.map +1 -0
- package/dist/isRepositoryName.cjs +17 -0
- package/dist/isRepositoryName.cjs.map +1 -0
- package/dist/isRepositoryName.d.cts +13 -0
- package/dist/isRepositoryName.d.cts.map +1 -0
- package/dist/isRepositoryName.d.ts +13 -0
- package/dist/isRepositoryName.d.ts.map +1 -0
- package/dist/isRepositoryName.js +16 -0
- package/dist/isRepositoryName.js.map +1 -0
- package/dist/lib/devMsg.cjs +25 -0
- package/dist/lib/devMsg.cjs.map +1 -0
- package/dist/lib/devMsg.js +25 -0
- package/dist/lib/devMsg.js.map +1 -0
- package/dist/lib/escapeHTML.cjs +40 -0
- package/dist/lib/escapeHTML.cjs.map +1 -0
- package/dist/lib/escapeHTML.js +39 -0
- package/dist/lib/escapeHTML.js.map +1 -0
- package/dist/lib/getOptionalLinkProperties.cjs +22 -0
- package/dist/lib/getOptionalLinkProperties.cjs.map +1 -0
- package/dist/lib/getOptionalLinkProperties.js +21 -0
- package/dist/lib/getOptionalLinkProperties.js.map +1 -0
- package/dist/lib/getPreviewCookie.cjs +30 -0
- package/dist/lib/getPreviewCookie.cjs.map +1 -0
- package/dist/lib/getPreviewCookie.js +30 -0
- package/dist/lib/getPreviewCookie.js.map +1 -0
- package/dist/lib/isInternalURL.cjs +18 -0
- package/dist/lib/isInternalURL.cjs.map +1 -0
- package/dist/lib/isInternalURL.js +17 -0
- package/dist/lib/isInternalURL.js.map +1 -0
- package/dist/lib/isMigrationValue.cjs +77 -0
- package/dist/lib/isMigrationValue.cjs.map +1 -0
- package/dist/lib/isMigrationValue.js +74 -0
- package/dist/lib/isMigrationValue.js.map +1 -0
- package/dist/lib/isValue.cjs +110 -0
- package/dist/lib/isValue.cjs.map +1 -0
- package/dist/lib/isValue.js +106 -0
- package/dist/lib/isValue.js.map +1 -0
- package/dist/lib/pLimit.cjs +55 -0
- package/dist/lib/pLimit.cjs.map +1 -0
- package/dist/lib/pLimit.js +54 -0
- package/dist/lib/pLimit.js.map +1 -0
- package/dist/lib/request.cjs +60 -0
- package/dist/lib/request.cjs.map +1 -0
- package/dist/lib/request.d.cts +61 -0
- package/dist/lib/request.d.cts.map +1 -0
- package/dist/lib/request.d.ts +61 -0
- package/dist/lib/request.d.ts.map +1 -0
- package/dist/lib/request.js +60 -0
- package/dist/lib/request.js.map +1 -0
- package/dist/lib/resolveMigrationDocumentData.cjs +156 -0
- package/dist/lib/resolveMigrationDocumentData.cjs.map +1 -0
- package/dist/lib/resolveMigrationDocumentData.js +155 -0
- package/dist/lib/resolveMigrationDocumentData.js.map +1 -0
- package/dist/lib/serializerHelpers.cjs +95 -0
- package/dist/lib/serializerHelpers.cjs.map +1 -0
- package/dist/lib/serializerHelpers.js +90 -0
- package/dist/lib/serializerHelpers.js.map +1 -0
- package/dist/lib/throttledWarn.cjs +27 -0
- package/dist/lib/throttledWarn.cjs.map +1 -0
- package/dist/lib/throttledWarn.js +26 -0
- package/dist/lib/throttledWarn.js.map +1 -0
- package/dist/lib/validateAssetMetadata.cjs +48 -0
- package/dist/lib/validateAssetMetadata.cjs.map +1 -0
- package/dist/lib/validateAssetMetadata.js +48 -0
- package/dist/lib/validateAssetMetadata.js.map +1 -0
- package/dist/package.cjs +19 -0
- package/dist/package.cjs.map +1 -0
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/richtext/asText.cjs +21 -0
- package/dist/richtext/asText.cjs.map +1 -0
- package/dist/richtext/asText.d.cts +18 -0
- package/dist/richtext/asText.d.cts.map +1 -0
- package/dist/richtext/asText.d.ts +18 -0
- package/dist/richtext/asText.d.ts.map +1 -0
- package/dist/richtext/asText.js +20 -0
- package/dist/richtext/asText.js.map +1 -0
- package/dist/richtext/asTree.cjs +122 -0
- package/dist/richtext/asTree.cjs.map +1 -0
- package/dist/richtext/asTree.d.cts +20 -0
- package/dist/richtext/asTree.d.cts.map +1 -0
- package/dist/richtext/asTree.d.ts +20 -0
- package/dist/richtext/asTree.d.ts.map +1 -0
- package/dist/richtext/asTree.js +122 -0
- package/dist/richtext/asTree.js.map +1 -0
- package/dist/richtext/composeSerializers.cjs +31 -0
- package/dist/richtext/composeSerializers.cjs.map +1 -0
- package/dist/richtext/composeSerializers.d.cts +22 -0
- package/dist/richtext/composeSerializers.d.cts.map +1 -0
- package/dist/richtext/composeSerializers.d.ts +22 -0
- package/dist/richtext/composeSerializers.d.ts.map +1 -0
- package/dist/richtext/composeSerializers.js +30 -0
- package/dist/richtext/composeSerializers.js.map +1 -0
- package/dist/richtext/serialize.cjs +35 -0
- package/dist/richtext/serialize.cjs.map +1 -0
- package/dist/richtext/serialize.d.cts +25 -0
- package/dist/richtext/serialize.d.cts.map +1 -0
- package/dist/richtext/serialize.d.ts +25 -0
- package/dist/richtext/serialize.d.ts.map +1 -0
- package/dist/richtext/serialize.js +35 -0
- package/dist/richtext/serialize.js.map +1 -0
- package/dist/richtext/types.cjs +13 -0
- package/dist/richtext/types.cjs.map +1 -0
- package/dist/richtext/types.d.cts +71 -0
- package/dist/richtext/types.d.cts.map +1 -0
- package/dist/richtext/types.d.ts +71 -0
- package/dist/richtext/types.d.ts.map +1 -0
- package/dist/richtext/types.js +13 -0
- package/dist/richtext/types.js.map +1 -0
- package/dist/richtext/wrapMapSerializer.cjs +32 -0
- package/dist/richtext/wrapMapSerializer.cjs.map +1 -0
- package/dist/richtext/wrapMapSerializer.d.cts +21 -0
- package/dist/richtext/wrapMapSerializer.d.cts.map +1 -0
- package/dist/richtext/wrapMapSerializer.d.ts +21 -0
- package/dist/richtext/wrapMapSerializer.d.ts.map +1 -0
- package/dist/richtext/wrapMapSerializer.js +32 -0
- package/dist/richtext/wrapMapSerializer.js.map +1 -0
- package/dist/richtext.cjs +13 -0
- package/dist/richtext.d.cts +8 -0
- package/dist/richtext.d.ts +8 -0
- package/dist/richtext.js +8 -0
- package/dist/types/api/asset/asset.d.cts +97 -0
- package/dist/types/api/asset/asset.d.cts.map +1 -0
- package/dist/types/api/asset/asset.d.ts +97 -0
- package/dist/types/api/asset/asset.d.ts.map +1 -0
- package/dist/types/api/asset/tag.d.cts +35 -0
- package/dist/types/api/asset/tag.d.cts.map +1 -0
- package/dist/types/api/asset/tag.d.ts +35 -0
- package/dist/types/api/asset/tag.d.ts.map +1 -0
- package/dist/types/api/integration.d.cts +34 -0
- package/dist/types/api/integration.d.cts.map +1 -0
- package/dist/types/api/integration.d.ts +34 -0
- package/dist/types/api/integration.d.ts.map +1 -0
- package/dist/types/api/query.d.cts +49 -0
- package/dist/types/api/query.d.cts.map +1 -0
- package/dist/types/api/query.d.ts +49 -0
- package/dist/types/api/query.d.ts.map +1 -0
- package/dist/types/api/ref.d.cts +36 -0
- package/dist/types/api/ref.d.cts.map +1 -0
- package/dist/types/api/ref.d.ts +36 -0
- package/dist/types/api/ref.d.ts.map +1 -0
- package/dist/types/api/release.d.cts +17 -0
- package/dist/types/api/release.d.cts.map +1 -0
- package/dist/types/api/release.d.ts +17 -0
- package/dist/types/api/release.d.ts.map +1 -0
- package/dist/types/api/repository.d.cts +115 -0
- package/dist/types/api/repository.d.cts.map +1 -0
- package/dist/types/api/repository.d.ts +115 -0
- package/dist/types/api/repository.d.ts.map +1 -0
- package/dist/types/api/tags.d.cts +13 -0
- package/dist/types/api/tags.d.cts.map +1 -0
- package/dist/types/api/tags.d.ts +13 -0
- package/dist/types/api/tags.d.ts.map +1 -0
- package/dist/types/migration/Asset.cjs +35 -0
- package/dist/types/migration/Asset.cjs.map +1 -0
- package/dist/types/migration/Asset.d.cts +109 -0
- package/dist/types/migration/Asset.d.cts.map +1 -0
- package/dist/types/migration/Asset.d.ts +109 -0
- package/dist/types/migration/Asset.d.ts.map +1 -0
- package/dist/types/migration/Asset.js +34 -0
- package/dist/types/migration/Asset.js.map +1 -0
- package/dist/types/migration/ContentRelationship.d.cts +15 -0
- package/dist/types/migration/ContentRelationship.d.cts.map +1 -0
- package/dist/types/migration/ContentRelationship.d.ts +15 -0
- package/dist/types/migration/ContentRelationship.d.ts.map +1 -0
- package/dist/types/migration/Document.cjs +51 -0
- package/dist/types/migration/Document.cjs.map +1 -0
- package/dist/types/migration/Document.d.cts +97 -0
- package/dist/types/migration/Document.d.cts.map +1 -0
- package/dist/types/migration/Document.d.ts +97 -0
- package/dist/types/migration/Document.d.ts.map +1 -0
- package/dist/types/migration/Document.js +50 -0
- package/dist/types/migration/Document.js.map +1 -0
- package/dist/types/model/boolean.d.cts +21 -0
- package/dist/types/model/boolean.d.cts.map +1 -0
- package/dist/types/model/boolean.d.ts +21 -0
- package/dist/types/model/boolean.d.ts.map +1 -0
- package/dist/types/model/color.d.cts +19 -0
- package/dist/types/model/color.d.cts.map +1 -0
- package/dist/types/model/color.d.ts +19 -0
- package/dist/types/model/color.d.ts.map +1 -0
- package/dist/types/model/contentRelationship.d.cts +59 -0
- package/dist/types/model/contentRelationship.d.cts.map +1 -0
- package/dist/types/model/contentRelationship.d.ts +59 -0
- package/dist/types/model/contentRelationship.d.ts.map +1 -0
- package/dist/types/model/customType.d.cts +54 -0
- package/dist/types/model/customType.d.cts.map +1 -0
- package/dist/types/model/customType.d.ts +54 -0
- package/dist/types/model/customType.d.ts.map +1 -0
- package/dist/types/model/date.d.cts +20 -0
- package/dist/types/model/date.d.cts.map +1 -0
- package/dist/types/model/date.d.ts +20 -0
- package/dist/types/model/date.d.ts.map +1 -0
- package/dist/types/model/embed.d.cts +19 -0
- package/dist/types/model/embed.d.cts.map +1 -0
- package/dist/types/model/embed.d.ts +19 -0
- package/dist/types/model/embed.d.ts.map +1 -0
- package/dist/types/model/geoPoint.d.cts +18 -0
- package/dist/types/model/geoPoint.d.cts.map +1 -0
- package/dist/types/model/geoPoint.d.ts +18 -0
- package/dist/types/model/geoPoint.d.ts.map +1 -0
- package/dist/types/model/group.d.cts +29 -0
- package/dist/types/model/group.d.cts.map +1 -0
- package/dist/types/model/group.d.ts +29 -0
- package/dist/types/model/group.d.ts.map +1 -0
- package/dist/types/model/image.d.cts +37 -0
- package/dist/types/model/image.d.cts.map +1 -0
- package/dist/types/model/image.d.ts +37 -0
- package/dist/types/model/image.d.ts.map +1 -0
- package/dist/types/model/integration.d.cts +20 -0
- package/dist/types/model/integration.d.cts.map +1 -0
- package/dist/types/model/integration.d.ts +20 -0
- package/dist/types/model/integration.d.ts.map +1 -0
- package/dist/types/model/keyText.d.cts +19 -0
- package/dist/types/model/keyText.d.cts.map +1 -0
- package/dist/types/model/keyText.d.ts +19 -0
- package/dist/types/model/keyText.d.ts.map +1 -0
- package/dist/types/model/link.cjs +16 -0
- package/dist/types/model/link.cjs.map +1 -0
- package/dist/types/model/link.d.cts +34 -0
- package/dist/types/model/link.d.cts.map +1 -0
- package/dist/types/model/link.d.ts +34 -0
- package/dist/types/model/link.d.ts.map +1 -0
- package/dist/types/model/link.js +15 -0
- package/dist/types/model/link.js.map +1 -0
- package/dist/types/model/linkToMedia.d.cts +23 -0
- package/dist/types/model/linkToMedia.d.cts.map +1 -0
- package/dist/types/model/linkToMedia.d.ts +23 -0
- package/dist/types/model/linkToMedia.d.ts.map +1 -0
- package/dist/types/model/number.d.cts +21 -0
- package/dist/types/model/number.d.cts.map +1 -0
- package/dist/types/model/number.d.ts +21 -0
- package/dist/types/model/number.d.ts.map +1 -0
- package/dist/types/model/range.d.cts +20 -0
- package/dist/types/model/range.d.cts.map +1 -0
- package/dist/types/model/range.d.ts +20 -0
- package/dist/types/model/range.d.ts.map +1 -0
- package/dist/types/model/richText.d.cts +43 -0
- package/dist/types/model/richText.d.cts.map +1 -0
- package/dist/types/model/richText.d.ts +43 -0
- package/dist/types/model/richText.d.ts.map +1 -0
- package/dist/types/model/select.d.cts +24 -0
- package/dist/types/model/select.d.cts.map +1 -0
- package/dist/types/model/select.d.ts +24 -0
- package/dist/types/model/select.d.ts.map +1 -0
- package/dist/types/model/separator.d.cts +16 -0
- package/dist/types/model/separator.d.cts.map +1 -0
- package/dist/types/model/separator.d.ts +16 -0
- package/dist/types/model/separator.d.ts.map +1 -0
- package/dist/types/model/sharedSlice.d.cts +22 -0
- package/dist/types/model/sharedSlice.d.cts.map +1 -0
- package/dist/types/model/sharedSlice.d.ts +22 -0
- package/dist/types/model/sharedSlice.d.ts.map +1 -0
- package/dist/types/model/sharedSliceVariation.d.cts +25 -0
- package/dist/types/model/sharedSliceVariation.d.cts.map +1 -0
- package/dist/types/model/sharedSliceVariation.d.ts +25 -0
- package/dist/types/model/sharedSliceVariation.d.ts.map +1 -0
- package/dist/types/model/slice.cjs +15 -0
- package/dist/types/model/slice.cjs.map +1 -0
- package/dist/types/model/slice.d.cts +39 -0
- package/dist/types/model/slice.d.cts.map +1 -0
- package/dist/types/model/slice.d.ts +39 -0
- package/dist/types/model/slice.d.ts.map +1 -0
- package/dist/types/model/slice.js +14 -0
- package/dist/types/model/slice.js.map +1 -0
- package/dist/types/model/sliceZone.cjs +15 -0
- package/dist/types/model/sliceZone.cjs.map +1 -0
- package/dist/types/model/sliceZone.d.cts +47 -0
- package/dist/types/model/sliceZone.d.cts.map +1 -0
- package/dist/types/model/sliceZone.d.ts +47 -0
- package/dist/types/model/sliceZone.d.ts.map +1 -0
- package/dist/types/model/sliceZone.js +14 -0
- package/dist/types/model/sliceZone.js.map +1 -0
- package/dist/types/model/table.d.cts +18 -0
- package/dist/types/model/table.d.cts.map +1 -0
- package/dist/types/model/table.d.ts +18 -0
- package/dist/types/model/table.d.ts.map +1 -0
- package/dist/types/model/timestamp.d.cts +20 -0
- package/dist/types/model/timestamp.d.cts.map +1 -0
- package/dist/types/model/timestamp.d.ts +20 -0
- package/dist/types/model/timestamp.d.ts.map +1 -0
- package/dist/types/model/title.d.cts +13 -0
- package/dist/types/model/title.d.cts.map +1 -0
- package/dist/types/model/title.d.ts +13 -0
- package/dist/types/model/title.d.ts.map +1 -0
- package/dist/types/model/types.cjs +32 -0
- package/dist/types/model/types.cjs.map +1 -0
- package/dist/types/model/types.d.cts +82 -0
- package/dist/types/model/types.d.cts.map +1 -0
- package/dist/types/model/types.d.ts +82 -0
- package/dist/types/model/types.d.ts.map +1 -0
- package/dist/types/model/types.js +31 -0
- package/dist/types/model/types.js.map +1 -0
- package/dist/types/model/uid.d.cts +19 -0
- package/dist/types/model/uid.d.cts.map +1 -0
- package/dist/types/model/uid.d.ts +19 -0
- package/dist/types/model/uid.d.ts.map +1 -0
- package/dist/types/value/boolean.d.cts +10 -0
- package/dist/types/value/boolean.d.cts.map +1 -0
- package/dist/types/value/boolean.d.ts +10 -0
- package/dist/types/value/boolean.d.ts.map +1 -0
- package/dist/types/value/color.d.cts +15 -0
- package/dist/types/value/color.d.cts.map +1 -0
- package/dist/types/value/color.d.ts +15 -0
- package/dist/types/value/color.d.ts.map +1 -0
- package/dist/types/value/contentRelationship.d.cts +37 -0
- package/dist/types/value/contentRelationship.d.cts.map +1 -0
- package/dist/types/value/contentRelationship.d.ts +37 -0
- package/dist/types/value/contentRelationship.d.ts.map +1 -0
- package/dist/types/value/date.d.cts +15 -0
- package/dist/types/value/date.d.cts.map +1 -0
- package/dist/types/value/date.d.ts +15 -0
- package/dist/types/value/date.d.ts.map +1 -0
- package/dist/types/value/document.d.cts +120 -0
- package/dist/types/value/document.d.cts.map +1 -0
- package/dist/types/value/document.d.ts +120 -0
- package/dist/types/value/document.d.ts.map +1 -0
- package/dist/types/value/embed.cjs +17 -0
- package/dist/types/value/embed.cjs.map +1 -0
- package/dist/types/value/embed.d.cts +173 -0
- package/dist/types/value/embed.d.cts.map +1 -0
- package/dist/types/value/embed.d.ts +173 -0
- package/dist/types/value/embed.d.ts.map +1 -0
- package/dist/types/value/embed.js +16 -0
- package/dist/types/value/embed.js.map +1 -0
- package/dist/types/value/geoPoint.d.cts +18 -0
- package/dist/types/value/geoPoint.d.cts.map +1 -0
- package/dist/types/value/geoPoint.d.ts +18 -0
- package/dist/types/value/geoPoint.d.ts.map +1 -0
- package/dist/types/value/group.d.cts +19 -0
- package/dist/types/value/group.d.cts.map +1 -0
- package/dist/types/value/group.d.ts +19 -0
- package/dist/types/value/group.d.ts.map +1 -0
- package/dist/types/value/image.d.cts +53 -0
- package/dist/types/value/image.d.cts.map +1 -0
- package/dist/types/value/image.d.ts +53 -0
- package/dist/types/value/image.d.ts.map +1 -0
- package/dist/types/value/integration.d.cts +22 -0
- package/dist/types/value/integration.d.cts.map +1 -0
- package/dist/types/value/integration.d.ts +22 -0
- package/dist/types/value/integration.d.ts.map +1 -0
- package/dist/types/value/keyText.d.cts +15 -0
- package/dist/types/value/keyText.d.cts.map +1 -0
- package/dist/types/value/keyText.d.ts +15 -0
- package/dist/types/value/keyText.d.ts.map +1 -0
- package/dist/types/value/link.cjs +15 -0
- package/dist/types/value/link.cjs.map +1 -0
- package/dist/types/value/link.d.cts +74 -0
- package/dist/types/value/link.d.cts.map +1 -0
- package/dist/types/value/link.d.ts +74 -0
- package/dist/types/value/link.d.ts.map +1 -0
- package/dist/types/value/link.js +14 -0
- package/dist/types/value/link.js.map +1 -0
- package/dist/types/value/linkToMedia.d.cts +33 -0
- package/dist/types/value/linkToMedia.d.cts.map +1 -0
- package/dist/types/value/linkToMedia.d.ts +33 -0
- package/dist/types/value/linkToMedia.d.ts.map +1 -0
- package/dist/types/value/number.d.cts +15 -0
- package/dist/types/value/number.d.cts.map +1 -0
- package/dist/types/value/number.d.ts +15 -0
- package/dist/types/value/number.d.ts.map +1 -0
- package/dist/types/value/richText.cjs +32 -0
- package/dist/types/value/richText.cjs.map +1 -0
- package/dist/types/value/richText.d.cts +221 -0
- package/dist/types/value/richText.d.cts.map +1 -0
- package/dist/types/value/richText.d.ts +221 -0
- package/dist/types/value/richText.d.ts.map +1 -0
- package/dist/types/value/richText.js +31 -0
- package/dist/types/value/richText.js.map +1 -0
- package/dist/types/value/select.d.cts +16 -0
- package/dist/types/value/select.d.cts.map +1 -0
- package/dist/types/value/select.d.ts +16 -0
- package/dist/types/value/select.d.ts.map +1 -0
- package/dist/types/value/sharedSlice.d.cts +17 -0
- package/dist/types/value/sharedSlice.d.cts.map +1 -0
- package/dist/types/value/sharedSlice.d.ts +17 -0
- package/dist/types/value/sharedSlice.d.ts.map +1 -0
- package/dist/types/value/sharedSliceVariation.d.cts +16 -0
- package/dist/types/value/sharedSliceVariation.d.cts.map +1 -0
- package/dist/types/value/sharedSliceVariation.d.ts +16 -0
- package/dist/types/value/sharedSliceVariation.d.ts.map +1 -0
- package/dist/types/value/slice.d.cts +19 -0
- package/dist/types/value/slice.d.cts.map +1 -0
- package/dist/types/value/slice.d.ts +19 -0
- package/dist/types/value/slice.d.ts.map +1 -0
- package/dist/types/value/sliceZone.d.cts +18 -0
- package/dist/types/value/sliceZone.d.cts.map +1 -0
- package/dist/types/value/sliceZone.d.ts +18 -0
- package/dist/types/value/sliceZone.d.ts.map +1 -0
- package/dist/types/value/table.d.cts +97 -0
- package/dist/types/value/table.d.cts.map +1 -0
- package/dist/types/value/table.d.ts +97 -0
- package/dist/types/value/table.d.ts.map +1 -0
- package/dist/types/value/timestamp.d.cts +13 -0
- package/dist/types/value/timestamp.d.cts.map +1 -0
- package/dist/types/value/timestamp.d.ts +13 -0
- package/dist/types/value/timestamp.d.ts.map +1 -0
- package/dist/types/value/title.d.cts +16 -0
- package/dist/types/value/title.d.cts.map +1 -0
- package/dist/types/value/title.d.ts +16 -0
- package/dist/types/value/title.d.ts.map +1 -0
- package/dist/types/value/types.d.cts +61 -0
- package/dist/types/value/types.d.cts.map +1 -0
- package/dist/types/value/types.d.ts +61 -0
- package/dist/types/value/types.d.ts.map +1 -0
- package/dist/types/webhook/apiUpdate.d.cts +57 -0
- package/dist/types/webhook/apiUpdate.d.cts.map +1 -0
- package/dist/types/webhook/apiUpdate.d.ts +57 -0
- package/dist/types/webhook/apiUpdate.d.ts.map +1 -0
- package/dist/types/webhook/testTrigger.d.cts +15 -0
- package/dist/types/webhook/testTrigger.d.cts.map +1 -0
- package/dist/types/webhook/testTrigger.d.ts +15 -0
- package/dist/types/webhook/testTrigger.d.ts.map +1 -0
- package/dist/types/webhook/types.cjs +15 -0
- package/dist/types/webhook/types.cjs.map +1 -0
- package/dist/types/webhook/types.d.cts +23 -0
- package/dist/types/webhook/types.d.cts.map +1 -0
- package/dist/types/webhook/types.d.ts +23 -0
- package/dist/types/webhook/types.d.ts.map +1 -0
- package/dist/types/webhook/types.js +14 -0
- package/dist/types/webhook/types.js.map +1 -0
- package/package.json +29 -35
- package/src/Client.ts +682 -1028
- package/src/WriteClient.ts +44 -46
- package/src/buildQueryURL.ts +14 -20
- package/src/createClient.ts +1 -1
- package/src/errors.ts +94 -0
- package/src/getGraphQLEndpoint.ts +1 -1
- package/src/getRepositoryEndpoint.ts +1 -1
- package/src/getRepositoryName.ts +1 -1
- package/src/getToolbarSrc.ts +1 -1
- package/src/helpers/asHTML.ts +4 -4
- package/src/helpers/asImageWidthSrcSet.ts +1 -5
- package/src/helpers/asLink.ts +0 -3
- package/src/helpers/asLinkAttrs.ts +0 -4
- package/src/helpers/mapSliceZone.ts +5 -5
- package/src/index.ts +11 -8
- package/src/lib/isValue.ts +0 -6
- package/src/lib/pLimit.ts +1 -1
- package/src/lib/request.ts +3 -3
- package/src/lib/{throttledLog.ts → throttledWarn.ts} +3 -14
- package/src/lib/validateAssetMetadata.ts +1 -1
- package/src/types/migration/Document.ts +1 -1
- package/src/types/model/contentRelationship.ts +1 -0
- package/src/types/value/date.ts +1 -1
- package/src/types/value/document.ts +3 -3
- package/src/types/value/timestamp.ts +1 -5
- package/dist/index.d.mts +0 -4424
- package/dist/index.mjs +0 -3837
- package/dist/index.mjs.map +0 -1
- package/dist/richtext/index.cjs +0 -244
- package/dist/richtext/index.cjs.map +0 -1
- package/dist/richtext/index.d.cts +0 -78
- package/dist/richtext/index.d.mts +0 -78
- package/dist/richtext/index.d.ts +0 -78
- package/dist/richtext/index.mjs +0 -237
- package/dist/richtext/index.mjs.map +0 -1
- package/dist/shared/client.TSGr56lO.d.cts +0 -899
- package/dist/shared/client.TSGr56lO.d.mts +0 -899
- package/dist/shared/client.TSGr56lO.d.ts +0 -899
- package/src/errors/ForbiddenError.ts +0 -16
- package/src/errors/InvalidDataError.ts +0 -5
- package/src/errors/NotFoundError.ts +0 -5
- package/src/errors/ParsingError.ts +0 -16
- package/src/errors/PreviewTokenExpired.ts +0 -12
- package/src/errors/PrismicError.ts +0 -15
- package/src/errors/RefExpiredError.ts +0 -14
- package/src/errors/RefNotFoundError.ts +0 -14
- package/src/errors/RepositoryNotFoundError.ts +0 -5
- package/src/lib/appendFilters.ts +0 -26
- package/src/lib/castArray.ts +0 -14
- package/src/lib/castThunk.ts +0 -13
- package/src/lib/everyTagFilter.ts +0 -15
- package/src/lib/findMasterRef.ts +0 -16
- package/src/lib/findRef.ts +0 -25
- package/src/lib/findRefByID.ts +0 -17
- package/src/lib/findRefByLabel.ts +0 -17
- package/src/lib/minifyGraphQLQuery.ts +0 -13
- package/src/lib/someTagsFilter.ts +0 -15
- package/src/lib/typeFilter.ts +0 -12
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/link.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A link custom type field.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/link}
|
|
9
|
+
*/
|
|
10
|
+
interface CustomTypeModelLinkField {
|
|
11
|
+
type: typeof CustomTypeModelFieldType.Link;
|
|
12
|
+
config?: {
|
|
13
|
+
label?: string | null;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
select?: null | (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType];
|
|
16
|
+
allowText?: boolean;
|
|
17
|
+
allowTargetBlank?: boolean;
|
|
18
|
+
repeat?: boolean;
|
|
19
|
+
variants?: string[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Type of a link custom type field.
|
|
24
|
+
*
|
|
25
|
+
* More details: {@link https://prismic.io/docs/link}
|
|
26
|
+
*/
|
|
27
|
+
declare const CustomTypeModelLinkSelectType: {
|
|
28
|
+
readonly Document: "document";
|
|
29
|
+
readonly Media: "media";
|
|
30
|
+
readonly Web: "web";
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { CustomTypeModelLinkField, CustomTypeModelLinkSelectType };
|
|
34
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","names":[],"sources":["../../../src/types/model/link.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;;;AAOyD,UAPxC,wBAAA,CAOwC;EAA6B,IAAA,EAAA,OANxE,wBAAA,CAAyB,IAM+C;EAazE,MAAA,CAAA,EAAA;;;4BAbA,4CAA4C;;;;;;;;;;;;cAa5C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/types/model/link.ts
|
|
2
|
+
/**
|
|
3
|
+
* Type of a link custom type field.
|
|
4
|
+
*
|
|
5
|
+
* More details: {@link https://prismic.io/docs/link}
|
|
6
|
+
*/
|
|
7
|
+
const CustomTypeModelLinkSelectType = {
|
|
8
|
+
Document: "document",
|
|
9
|
+
Media: "media",
|
|
10
|
+
Web: "web"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { CustomTypeModelLinkSelectType };
|
|
15
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","names":[],"sources":["../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\"\n\n/**\n * A link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport interface CustomTypeModelLinkField {\n\ttype: typeof CustomTypeModelFieldType.Link\n\tconfig?: {\n\t\tlabel?: string | null\n\t\tplaceholder?: string\n\t\tselect?:\n\t\t\t| null\n\t\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]\n\t\tallowText?: boolean\n\t\tallowTargetBlank?: boolean\n\t\trepeat?: boolean\n\t\tvariants?: string[]\n\t}\n}\n\n/**\n * Type of a link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport const CustomTypeModelLinkSelectType = {\n\tDocument: \"document\",\n\tMedia: \"media\",\n\tWeb: \"web\",\n} as const\n"],"mappings":";;;;;;AA2BA,MAAa,gCAAgC;CAC5C,UAAU;CACV,OAAO;CACP,KAAK;CACL"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CustomTypeModelLinkSelectType } from "./link.cjs";
|
|
2
|
+
import { CustomTypeModelFieldType } from "./types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types/model/linkToMedia.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A link to media custom type field.
|
|
8
|
+
*
|
|
9
|
+
* More details: {@link https://prismic.io/docs/media}
|
|
10
|
+
*/
|
|
11
|
+
interface CustomTypeModelLinkToMediaField {
|
|
12
|
+
type: typeof CustomTypeModelFieldType.Link;
|
|
13
|
+
config?: {
|
|
14
|
+
label?: string | null;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
select: typeof CustomTypeModelLinkSelectType.Media;
|
|
17
|
+
allowText?: boolean;
|
|
18
|
+
variants?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CustomTypeModelLinkToMediaField };
|
|
23
|
+
//# sourceMappingURL=linkToMedia.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkToMedia.d.cts","names":[],"sources":["../../../src/types/model/linkToMedia.ts"],"sourcesContent":[],"mappings":";;;;;;;AASA;;;UAAiB,+BAAA;eACH,wBAAA,CAAyB;;;;mBAItB,6BAAA,CAA8B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CustomTypeModelLinkSelectType } from "./link.js";
|
|
2
|
+
import { CustomTypeModelFieldType } from "./types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/types/model/linkToMedia.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A link to media custom type field.
|
|
8
|
+
*
|
|
9
|
+
* More details: {@link https://prismic.io/docs/media}
|
|
10
|
+
*/
|
|
11
|
+
interface CustomTypeModelLinkToMediaField {
|
|
12
|
+
type: typeof CustomTypeModelFieldType.Link;
|
|
13
|
+
config?: {
|
|
14
|
+
label?: string | null;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
select: typeof CustomTypeModelLinkSelectType.Media;
|
|
17
|
+
allowText?: boolean;
|
|
18
|
+
variants?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CustomTypeModelLinkToMediaField };
|
|
23
|
+
//# sourceMappingURL=linkToMedia.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkToMedia.d.ts","names":[],"sources":["../../../src/types/model/linkToMedia.ts"],"sourcesContent":[],"mappings":";;;;;;;AASA;;;UAAiB,+BAAA;eACH,wBAAA,CAAyB;;;;mBAItB,6BAAA,CAA8B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/number.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A number custom type field.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/number}
|
|
9
|
+
*/
|
|
10
|
+
interface CustomTypeModelNumberField {
|
|
11
|
+
type: typeof CustomTypeModelFieldType.Number;
|
|
12
|
+
config?: {
|
|
13
|
+
label?: string | null;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { CustomTypeModelNumberField };
|
|
21
|
+
//# sourceMappingURL=number.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.d.cts","names":[],"sources":["../../../src/types/model/number.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;;;UAAiB,0BAAA;eACH,wBAAA,CAAyB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/number.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A number custom type field.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/number}
|
|
9
|
+
*/
|
|
10
|
+
interface CustomTypeModelNumberField {
|
|
11
|
+
type: typeof CustomTypeModelFieldType.Number;
|
|
12
|
+
config?: {
|
|
13
|
+
label?: string | null;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { CustomTypeModelNumberField };
|
|
21
|
+
//# sourceMappingURL=number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.d.ts","names":[],"sources":["../../../src/types/model/number.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;;;UAAiB,0BAAA;eACH,wBAAA,CAAyB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/range.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated - Legacy field. Use `CustomTypeModelNumberField` instead.
|
|
7
|
+
*/
|
|
8
|
+
interface CustomTypeModelRangeField {
|
|
9
|
+
type: typeof CustomTypeModelFieldType.Range;
|
|
10
|
+
config?: {
|
|
11
|
+
label?: string | null;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
min?: number;
|
|
14
|
+
max?: number;
|
|
15
|
+
step?: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { CustomTypeModelRangeField };
|
|
20
|
+
//# sourceMappingURL=range.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.cts","names":[],"sources":["../../../src/types/model/range.ts"],"sourcesContent":[],"mappings":";;;;;;AAKA;UAAiB,yBAAA;eACH,wBAAA,CAAyB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/range.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated - Legacy field. Use `CustomTypeModelNumberField` instead.
|
|
7
|
+
*/
|
|
8
|
+
interface CustomTypeModelRangeField {
|
|
9
|
+
type: typeof CustomTypeModelFieldType.Range;
|
|
10
|
+
config?: {
|
|
11
|
+
label?: string | null;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
min?: number;
|
|
14
|
+
max?: number;
|
|
15
|
+
step?: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { CustomTypeModelRangeField };
|
|
20
|
+
//# sourceMappingURL=range.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.ts","names":[],"sources":["../../../src/types/model/range.ts"],"sourcesContent":[],"mappings":";;;;;;AAKA;UAAiB,yBAAA;eACH,wBAAA,CAAyB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/richText.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A rich text custom type field.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
9
|
+
*/
|
|
10
|
+
type CustomTypeModelRichTextField = CustomTypeModelRichTextMultiField | CustomTypeModelRichTextSingleField;
|
|
11
|
+
/**
|
|
12
|
+
* A rich text custom type field which supports multiple blocks of content.
|
|
13
|
+
*
|
|
14
|
+
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
15
|
+
*/
|
|
16
|
+
interface CustomTypeModelRichTextMultiField {
|
|
17
|
+
type: typeof CustomTypeModelFieldType.StructuredText;
|
|
18
|
+
config?: {
|
|
19
|
+
label?: string | null;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
allowTargetBlank?: boolean;
|
|
22
|
+
multi?: string;
|
|
23
|
+
labels?: readonly string[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A rich text custom type field which supports one block of content.
|
|
28
|
+
*
|
|
29
|
+
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
30
|
+
*/
|
|
31
|
+
interface CustomTypeModelRichTextSingleField {
|
|
32
|
+
type: typeof CustomTypeModelFieldType.StructuredText;
|
|
33
|
+
config?: {
|
|
34
|
+
label?: string | null;
|
|
35
|
+
placeholder?: string;
|
|
36
|
+
allowTargetBlank?: boolean;
|
|
37
|
+
single?: string;
|
|
38
|
+
labels?: readonly string[];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField };
|
|
43
|
+
//# sourceMappingURL=richText.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"richText.d.cts","names":[],"sources":["../../../src/types/model/richText.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AASA;AAiBA;KA1BY,4BAAA,GACT,oCACA;;;;;;UAOc,iCAAA;eACH,wBAAA,CAAyB;;;;;;;;;;;;;;UAgBtB,kCAAA;eACH,wBAAA,CAAyB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/richText.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A rich text custom type field.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
9
|
+
*/
|
|
10
|
+
type CustomTypeModelRichTextField = CustomTypeModelRichTextMultiField | CustomTypeModelRichTextSingleField;
|
|
11
|
+
/**
|
|
12
|
+
* A rich text custom type field which supports multiple blocks of content.
|
|
13
|
+
*
|
|
14
|
+
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
15
|
+
*/
|
|
16
|
+
interface CustomTypeModelRichTextMultiField {
|
|
17
|
+
type: typeof CustomTypeModelFieldType.StructuredText;
|
|
18
|
+
config?: {
|
|
19
|
+
label?: string | null;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
allowTargetBlank?: boolean;
|
|
22
|
+
multi?: string;
|
|
23
|
+
labels?: readonly string[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A rich text custom type field which supports one block of content.
|
|
28
|
+
*
|
|
29
|
+
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
30
|
+
*/
|
|
31
|
+
interface CustomTypeModelRichTextSingleField {
|
|
32
|
+
type: typeof CustomTypeModelFieldType.StructuredText;
|
|
33
|
+
config?: {
|
|
34
|
+
label?: string | null;
|
|
35
|
+
placeholder?: string;
|
|
36
|
+
allowTargetBlank?: boolean;
|
|
37
|
+
single?: string;
|
|
38
|
+
labels?: readonly string[];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField };
|
|
43
|
+
//# sourceMappingURL=richText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"richText.d.ts","names":[],"sources":["../../../src/types/model/richText.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;AASA;AAiBA;KA1BY,4BAAA,GACT,oCACA;;;;;;UAOc,iCAAA;eACH,wBAAA,CAAyB;;;;;;;;;;;;;;UAgBtB,kCAAA;eACH,wBAAA,CAAyB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/select.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A select custom type field.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/select}
|
|
9
|
+
*
|
|
10
|
+
* @typeParam Options - Options for the field.
|
|
11
|
+
* @typeParam DefaultValue - Default value for the field.
|
|
12
|
+
*/
|
|
13
|
+
interface CustomTypeModelSelectField<Option extends string = string, DefaultValue extends Option = Option> {
|
|
14
|
+
type: typeof CustomTypeModelFieldType.Select;
|
|
15
|
+
config?: {
|
|
16
|
+
label?: string | null;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
options?: readonly Option[];
|
|
19
|
+
default_value?: DefaultValue;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CustomTypeModelSelectField };
|
|
24
|
+
//# sourceMappingURL=select.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.cts","names":[],"sources":["../../../src/types/model/select.ts"],"sourcesContent":[],"mappings":";;;;;;AAUA;;;;;;AAS8B,UATb,0BASa,CAAA,eAAA,MAAA,GAAA,MAAA,EAAA,qBAPR,MAOQ,GAPC,MAOD,CAAA,CAAA;eALhB,wBAAA,CAAyB;;;;uBAIlB;oBACH"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/select.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A select custom type field.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/select}
|
|
9
|
+
*
|
|
10
|
+
* @typeParam Options - Options for the field.
|
|
11
|
+
* @typeParam DefaultValue - Default value for the field.
|
|
12
|
+
*/
|
|
13
|
+
interface CustomTypeModelSelectField<Option extends string = string, DefaultValue extends Option = Option> {
|
|
14
|
+
type: typeof CustomTypeModelFieldType.Select;
|
|
15
|
+
config?: {
|
|
16
|
+
label?: string | null;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
options?: readonly Option[];
|
|
19
|
+
default_value?: DefaultValue;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CustomTypeModelSelectField };
|
|
24
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","names":[],"sources":["../../../src/types/model/select.ts"],"sourcesContent":[],"mappings":";;;;;;AAUA;;;;;;AAS8B,UATb,0BASa,CAAA,eAAA,MAAA,GAAA,MAAA,EAAA,qBAPR,MAOQ,GAPC,MAOD,CAAA,CAAA;eALhB,wBAAA,CAAyB;;;;uBAIlB;oBACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/separator.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated - Legacy field. Do not use.
|
|
7
|
+
*/
|
|
8
|
+
interface CustomTypeModelSeparatorField {
|
|
9
|
+
type: typeof CustomTypeModelFieldType.Separator;
|
|
10
|
+
config?: {
|
|
11
|
+
label?: string | null;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { CustomTypeModelSeparatorField };
|
|
16
|
+
//# sourceMappingURL=separator.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.cts","names":[],"sources":["../../../src/types/model/separator.ts"],"sourcesContent":[],"mappings":";;;;;;AAKA;UAAiB,6BAAA;eACH,wBAAA,CAAyB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/separator.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated - Legacy field. Do not use.
|
|
7
|
+
*/
|
|
8
|
+
interface CustomTypeModelSeparatorField {
|
|
9
|
+
type: typeof CustomTypeModelFieldType.Separator;
|
|
10
|
+
config?: {
|
|
11
|
+
label?: string | null;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { CustomTypeModelSeparatorField };
|
|
16
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.ts","names":[],"sources":["../../../src/types/model/separator.ts"],"sourcesContent":[],"mappings":";;;;;;AAKA;UAAiB,6BAAA;eACH,wBAAA,CAAyB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CustomTypeModelSliceType } from "./sliceZone.cjs";
|
|
2
|
+
import { SharedSliceModelVariation } from "./sharedSliceVariation.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types/model/sharedSlice.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A Prismic shared Slice model.
|
|
8
|
+
*
|
|
9
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
10
|
+
*
|
|
11
|
+
* @typeParam Variation - A variation for the shared Slice.
|
|
12
|
+
*/
|
|
13
|
+
interface SharedSliceModel<ID extends string = string, Variation extends SharedSliceModelVariation = SharedSliceModelVariation> {
|
|
14
|
+
type: typeof CustomTypeModelSliceType.SharedSlice;
|
|
15
|
+
id: ID;
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
variations: readonly Variation[];
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SharedSliceModel };
|
|
22
|
+
//# sourceMappingURL=sharedSlice.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedSlice.d.cts","names":[],"sources":["../../../src/types/model/sharedSlice.ts"],"sourcesContent":[],"mappings":";;;;;;;AAUA;;;;;AAQsB,UARL,gBAQK,CAAA,WAAA,MAAA,GAAA,MAAA,EAAA,kBANH,yBAMG,GANyB,yBAMzB,CAAA,CAAA;EAAS,IAAA,EAAA,OAJjB,wBAAA,CAAyB,WAIR;MAH1B;;;uBAGiB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CustomTypeModelSliceType } from "./sliceZone.js";
|
|
2
|
+
import { SharedSliceModelVariation } from "./sharedSliceVariation.js";
|
|
3
|
+
|
|
4
|
+
//#region src/types/model/sharedSlice.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A Prismic shared Slice model.
|
|
8
|
+
*
|
|
9
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
10
|
+
*
|
|
11
|
+
* @typeParam Variation - A variation for the shared Slice.
|
|
12
|
+
*/
|
|
13
|
+
interface SharedSliceModel<ID extends string = string, Variation extends SharedSliceModelVariation = SharedSliceModelVariation> {
|
|
14
|
+
type: typeof CustomTypeModelSliceType.SharedSlice;
|
|
15
|
+
id: ID;
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
variations: readonly Variation[];
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SharedSliceModel };
|
|
22
|
+
//# sourceMappingURL=sharedSlice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedSlice.d.ts","names":[],"sources":["../../../src/types/model/sharedSlice.ts"],"sourcesContent":[],"mappings":";;;;;;;AAUA;;;;;AAQsB,UARL,gBAQK,CAAA,WAAA,MAAA,GAAA,MAAA,EAAA,kBANH,yBAMG,GANyB,yBAMzB,CAAA,CAAA;EAAS,IAAA,EAAA,OAJjB,wBAAA,CAAyB,WAIR;MAH1B;;;uBAGiB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/sharedSliceVariation.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A shared Slice variation.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
9
|
+
*
|
|
10
|
+
* @typeParam PrimaryFields - A record of fields that cannnot be repeated.
|
|
11
|
+
* @typeParam ItemFields - A record of fields that can be repeated.
|
|
12
|
+
*/
|
|
13
|
+
interface SharedSliceModelVariation<ID extends string = string, PrimaryFields extends Record<string, CustomTypeModelFieldForSlicePrimary> = Record<string, CustomTypeModelFieldForSlicePrimary>, ItemFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>> {
|
|
14
|
+
id: ID;
|
|
15
|
+
name: string;
|
|
16
|
+
docURL: string;
|
|
17
|
+
version: string;
|
|
18
|
+
description: string;
|
|
19
|
+
primary?: PrimaryFields;
|
|
20
|
+
items?: ItemFields;
|
|
21
|
+
imageUrl: string;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { SharedSliceModelVariation };
|
|
25
|
+
//# sourceMappingURL=sharedSliceVariation.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedSliceVariation.d.cts","names":[],"sources":["../../../src/types/model/sharedSliceVariation.ts"],"sourcesContent":[],"mappings":";;;;;;AAaA;;;;;;AAMoB,UANH,yBAMG,CAAA,WAAA,MAAA,GAAA,MAAA,EAAA,sBAJG,MAIH,CAAA,MAAA,EAFlB,mCAEkB,CAAA,GADf,MACe,CAAA,MAAA,EADA,mCACA,CAAA,EAAA,mBAAA,MAAA,CAAA,MAAA,EAElB,kCAFkB,CAAA,GAGf,MAHe,CAAA,MAAA,EAGA,kCAHA,CAAA,CAAA,CAAA;EAGA,EAAA,EAEf,EAFe;EAAf,IAAA,EAAA,MAAA;EAEA,MAAA,EAAA,MAAA;EAKM,OAAA,EAAA,MAAA;EACF,WAAA,EAAA,MAAA;EAAU,OAAA,CAAA,EADR,aACQ;UAAV"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/types/model/sharedSliceVariation.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A shared Slice variation.
|
|
7
|
+
*
|
|
8
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
9
|
+
*
|
|
10
|
+
* @typeParam PrimaryFields - A record of fields that cannnot be repeated.
|
|
11
|
+
* @typeParam ItemFields - A record of fields that can be repeated.
|
|
12
|
+
*/
|
|
13
|
+
interface SharedSliceModelVariation<ID extends string = string, PrimaryFields extends Record<string, CustomTypeModelFieldForSlicePrimary> = Record<string, CustomTypeModelFieldForSlicePrimary>, ItemFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>> {
|
|
14
|
+
id: ID;
|
|
15
|
+
name: string;
|
|
16
|
+
docURL: string;
|
|
17
|
+
version: string;
|
|
18
|
+
description: string;
|
|
19
|
+
primary?: PrimaryFields;
|
|
20
|
+
items?: ItemFields;
|
|
21
|
+
imageUrl: string;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { SharedSliceModelVariation };
|
|
25
|
+
//# sourceMappingURL=sharedSliceVariation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedSliceVariation.d.ts","names":[],"sources":["../../../src/types/model/sharedSliceVariation.ts"],"sourcesContent":[],"mappings":";;;;;;AAaA;;;;;;AAMoB,UANH,yBAMG,CAAA,WAAA,MAAA,GAAA,MAAA,EAAA,sBAJG,MAIH,CAAA,MAAA,EAFlB,mCAEkB,CAAA,GADf,MACe,CAAA,MAAA,EADA,mCACA,CAAA,EAAA,mBAAA,MAAA,CAAA,MAAA,EAElB,kCAFkB,CAAA,GAGf,MAHe,CAAA,MAAA,EAGA,kCAHA,CAAA,CAAA,CAAA;EAGA,EAAA,EAEf,EAFe;EAAf,IAAA,EAAA,MAAA;EAEA,MAAA,EAAA,MAAA;EAKM,OAAA,EAAA,MAAA;EACF,WAAA,EAAA,MAAA;EAAU,OAAA,CAAA,EADR,aACQ;UAAV"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/types/model/slice.ts
|
|
3
|
+
/**
|
|
4
|
+
* Display type for a Slice.
|
|
5
|
+
*
|
|
6
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
7
|
+
*/
|
|
8
|
+
const CustomTypeModelSliceDisplay = {
|
|
9
|
+
List: "list",
|
|
10
|
+
Grid: "grid"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.CustomTypeModelSliceDisplay = CustomTypeModelSliceDisplay;
|
|
15
|
+
//# sourceMappingURL=slice.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slice.cjs","names":[],"sources":["../../../src/types/model/slice.ts"],"sourcesContent":["import type { CustomTypeModelFieldForNestedGroup } from \"./types\"\n\nimport type { CustomTypeModelNestedGroupField } from \"./group\"\nimport type { CustomTypeModelSliceType } from \"./sliceZone\"\n\n/**\n * A Slice for a custom type.\n *\n * More details: {@link https://prismic.io/docs/slice}\n *\n * @typeParam NonRepeatFields - A record of fields that cannnot be repeated.\n * @typeParam RepeatFields - A record of fields that can be repeated.\n */\nexport interface CustomTypeModelSlice<\n\tNonRepeatFields extends Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForNestedGroup\n\t> = Record<string, CustomTypeModelFieldForNestedGroup>,\n\tRepeatFields extends Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForNestedGroup\n\t> = Record<string, CustomTypeModelFieldForNestedGroup>,\n> {\n\ttype: typeof CustomTypeModelSliceType.Slice\n\tfieldset?: string | null\n\tdescription?: string\n\ticon?: string\n\tdisplay?:\n\t\t| (typeof CustomTypeModelSliceDisplay)[keyof typeof CustomTypeModelSliceDisplay]\n\t\t| string\n\t\"non-repeat\"?: NonRepeatFields\n\trepeat?: RepeatFields\n}\n\n/**\n * Display type for a Slice.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport const CustomTypeModelSliceDisplay = {\n\tList: \"list\",\n\tGrid: \"grid\",\n} as const\n\n/**\n * @deprecated - Legacy slice type. Do not use.\n */\nexport type CustomTypeModelLegacySlice =\n\t| CustomTypeModelNestedGroupField\n\t| CustomTypeModelFieldForNestedGroup\n"],"mappings":";;;;;;;AAuCA,MAAa,8BAA8B;CAC1C,MAAM;CACN,MAAM;CACN"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CustomTypeModelNestedGroupField } from "./group.cjs";
|
|
2
|
+
import { CustomTypeModelSliceType } from "./sliceZone.cjs";
|
|
3
|
+
import { CustomTypeModelFieldForNestedGroup } from "./types.cjs";
|
|
4
|
+
|
|
5
|
+
//#region src/types/model/slice.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A Slice for a custom type.
|
|
9
|
+
*
|
|
10
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
11
|
+
*
|
|
12
|
+
* @typeParam NonRepeatFields - A record of fields that cannnot be repeated.
|
|
13
|
+
* @typeParam RepeatFields - A record of fields that can be repeated.
|
|
14
|
+
*/
|
|
15
|
+
interface CustomTypeModelSlice<NonRepeatFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>, RepeatFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>> {
|
|
16
|
+
type: typeof CustomTypeModelSliceType.Slice;
|
|
17
|
+
fieldset?: string | null;
|
|
18
|
+
description?: string;
|
|
19
|
+
icon?: string;
|
|
20
|
+
display?: (typeof CustomTypeModelSliceDisplay)[keyof typeof CustomTypeModelSliceDisplay] | string;
|
|
21
|
+
"non-repeat"?: NonRepeatFields;
|
|
22
|
+
repeat?: RepeatFields;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Display type for a Slice.
|
|
26
|
+
*
|
|
27
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
28
|
+
*/
|
|
29
|
+
declare const CustomTypeModelSliceDisplay: {
|
|
30
|
+
readonly List: "list";
|
|
31
|
+
readonly Grid: "grid";
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated - Legacy slice type. Do not use.
|
|
35
|
+
*/
|
|
36
|
+
type CustomTypeModelLegacySlice = CustomTypeModelNestedGroupField | CustomTypeModelFieldForNestedGroup;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay };
|
|
39
|
+
//# sourceMappingURL=slice.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slice.d.cts","names":[],"sources":["../../../src/types/model/slice.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAaA;;;;;;AAKsB,UALL,oBAKK,CAAA,wBAJG,MAIH,CAAA,MAAA,EAFpB,kCAEoB,CAAA,GADjB,MACiB,CAAA,MAAA,EADF,kCACE,CAAA,EAAA,qBAAA,MAAA,CAAA,MAAA,EAEpB,kCAFoB,CAAA,GAGjB,MAHiB,CAAA,MAAA,EAGF,kCAHE,CAAA,CAAA,CAAA;EAGF,IAAA,EAAA,OAEN,wBAAA,CAAyB,KAFnB;EAAf,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAES,WAAA,CAAA,EAAA,MAAA;EAKF,IAAA,CAAA,EAAA,MAAA;EAA0C,OAAA,CAAA,EAAA,CAAA,OAA1C,2BAA0C,CAAA,CAAA,MAAA,OAAA,2BAAA,CAAA,GAAA,MAAA;EAEtC,YAAA,CAAA,EAAA,eAAA;EACN,MAAA,CAAA,EAAA,YAAA;;AAQV;AAQA;;;;cARa;;;;;;;KAQD,0BAAA,GACT,kCACA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CustomTypeModelNestedGroupField } from "./group.js";
|
|
2
|
+
import { CustomTypeModelSliceType } from "./sliceZone.js";
|
|
3
|
+
import { CustomTypeModelFieldForNestedGroup } from "./types.js";
|
|
4
|
+
|
|
5
|
+
//#region src/types/model/slice.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A Slice for a custom type.
|
|
9
|
+
*
|
|
10
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
11
|
+
*
|
|
12
|
+
* @typeParam NonRepeatFields - A record of fields that cannnot be repeated.
|
|
13
|
+
* @typeParam RepeatFields - A record of fields that can be repeated.
|
|
14
|
+
*/
|
|
15
|
+
interface CustomTypeModelSlice<NonRepeatFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>, RepeatFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>> {
|
|
16
|
+
type: typeof CustomTypeModelSliceType.Slice;
|
|
17
|
+
fieldset?: string | null;
|
|
18
|
+
description?: string;
|
|
19
|
+
icon?: string;
|
|
20
|
+
display?: (typeof CustomTypeModelSliceDisplay)[keyof typeof CustomTypeModelSliceDisplay] | string;
|
|
21
|
+
"non-repeat"?: NonRepeatFields;
|
|
22
|
+
repeat?: RepeatFields;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Display type for a Slice.
|
|
26
|
+
*
|
|
27
|
+
* More details: {@link https://prismic.io/docs/slice}
|
|
28
|
+
*/
|
|
29
|
+
declare const CustomTypeModelSliceDisplay: {
|
|
30
|
+
readonly List: "list";
|
|
31
|
+
readonly Grid: "grid";
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated - Legacy slice type. Do not use.
|
|
35
|
+
*/
|
|
36
|
+
type CustomTypeModelLegacySlice = CustomTypeModelNestedGroupField | CustomTypeModelFieldForNestedGroup;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay };
|
|
39
|
+
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../../src/types/model/slice.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAaA;;;;;;AAKsB,UALL,oBAKK,CAAA,wBAJG,MAIH,CAAA,MAAA,EAFpB,kCAEoB,CAAA,GADjB,MACiB,CAAA,MAAA,EADF,kCACE,CAAA,EAAA,qBAAA,MAAA,CAAA,MAAA,EAEpB,kCAFoB,CAAA,GAGjB,MAHiB,CAAA,MAAA,EAGF,kCAHE,CAAA,CAAA,CAAA;EAGF,IAAA,EAAA,OAEN,wBAAA,CAAyB,KAFnB;EAAf,QAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAES,WAAA,CAAA,EAAA,MAAA;EAKF,IAAA,CAAA,EAAA,MAAA;EAA0C,OAAA,CAAA,EAAA,CAAA,OAA1C,2BAA0C,CAAA,CAAA,MAAA,OAAA,2BAAA,CAAA,GAAA,MAAA;EAEtC,YAAA,CAAA,EAAA,eAAA;EACN,MAAA,CAAA,EAAA,YAAA;;AAQV;AAQA;;;;cARa;;;;;;;KAQD,0BAAA,GACT,kCACA"}
|