@prismicio/client 7.23.0 → 7.23.1-canary.46cd720
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 +7 -9
- package/dist/Client.cjs.map +1 -1
- package/dist/Client.d.cts +2 -4
- package/dist/Client.d.cts.map +1 -1
- package/dist/Client.d.ts +2 -4
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +7 -9
- package/dist/Client.js.map +1 -1
- package/dist/Migration.cjs +5 -6
- package/dist/Migration.d.cts +4 -6
- package/dist/Migration.d.cts.map +1 -1
- package/dist/Migration.d.ts +4 -6
- package/dist/Migration.d.ts.map +1 -1
- package/dist/Migration.js +5 -6
- package/dist/WriteClient.cjs +3 -6
- package/dist/WriteClient.cjs.map +1 -1
- package/dist/WriteClient.d.cts +3 -7
- package/dist/WriteClient.d.cts.map +1 -1
- package/dist/WriteClient.d.ts +3 -7
- package/dist/WriteClient.d.ts.map +1 -1
- package/dist/WriteClient.js +3 -6
- package/dist/WriteClient.js.map +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/buildQueryURL.cjs +1 -2
- package/dist/buildQueryURL.d.cts +0 -2
- package/dist/buildQueryURL.d.cts.map +1 -1
- package/dist/buildQueryURL.d.ts +0 -2
- package/dist/buildQueryURL.d.ts.map +1 -1
- package/dist/buildQueryURL.js +1 -2
- package/dist/cookie.cjs +1 -2
- package/dist/cookie.d.cts +0 -1
- package/dist/cookie.d.ts +0 -1
- package/dist/cookie.js +1 -2
- package/dist/createClient.cjs +2 -4
- package/dist/createClient.cjs.map +1 -1
- package/dist/createClient.d.cts +2 -5
- package/dist/createClient.d.cts.map +1 -1
- package/dist/createClient.d.ts +2 -5
- package/dist/createClient.d.ts.map +1 -1
- package/dist/createClient.js +2 -4
- package/dist/createClient.js.map +1 -1
- package/dist/createMigration.cjs +1 -2
- package/dist/createMigration.d.cts +1 -3
- package/dist/createMigration.d.cts.map +1 -1
- package/dist/createMigration.d.ts +1 -3
- package/dist/createMigration.d.ts.map +1 -1
- package/dist/createMigration.js +1 -2
- package/dist/createWriteClient.cjs +1 -2
- package/dist/createWriteClient.d.cts +0 -2
- package/dist/createWriteClient.d.cts.map +1 -1
- package/dist/createWriteClient.d.ts +0 -2
- package/dist/createWriteClient.d.ts.map +1 -1
- package/dist/createWriteClient.js +1 -2
- package/dist/errors.cjs +1 -2
- package/dist/errors.d.cts +0 -2
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.ts +0 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +1 -2
- package/dist/filter.cjs +1 -2
- package/dist/filter.d.cts +0 -2
- package/dist/filter.d.cts.map +1 -1
- package/dist/filter.d.ts +0 -2
- package/dist/filter.d.ts.map +1 -1
- package/dist/filter.js +1 -2
- package/dist/getGraphQLEndpoint.cjs +1 -2
- package/dist/getGraphQLEndpoint.d.cts +0 -2
- package/dist/getGraphQLEndpoint.d.cts.map +1 -1
- package/dist/getGraphQLEndpoint.d.ts +0 -2
- package/dist/getGraphQLEndpoint.d.ts.map +1 -1
- package/dist/getGraphQLEndpoint.js +1 -2
- package/dist/getRepositoryEndpoint.cjs +1 -2
- package/dist/getRepositoryEndpoint.d.cts +0 -2
- package/dist/getRepositoryEndpoint.d.cts.map +1 -1
- package/dist/getRepositoryEndpoint.d.ts +0 -2
- package/dist/getRepositoryEndpoint.d.ts.map +1 -1
- package/dist/getRepositoryEndpoint.js +1 -2
- package/dist/getRepositoryName.cjs +1 -2
- package/dist/getRepositoryName.d.cts +0 -2
- package/dist/getRepositoryName.d.cts.map +1 -1
- package/dist/getRepositoryName.d.ts +0 -2
- package/dist/getRepositoryName.d.ts.map +1 -1
- package/dist/getRepositoryName.js +1 -2
- package/dist/getToolbarSrc.cjs +1 -2
- package/dist/getToolbarSrc.d.cts +0 -2
- package/dist/getToolbarSrc.d.cts.map +1 -1
- package/dist/getToolbarSrc.d.ts +0 -2
- package/dist/getToolbarSrc.d.ts.map +1 -1
- package/dist/getToolbarSrc.js +1 -2
- package/dist/helpers/asDate.cjs +1 -2
- package/dist/helpers/asDate.d.cts +0 -2
- package/dist/helpers/asDate.d.cts.map +1 -1
- package/dist/helpers/asDate.d.ts +0 -2
- package/dist/helpers/asDate.d.ts.map +1 -1
- package/dist/helpers/asDate.js +1 -2
- package/dist/helpers/asHTML.cjs +2 -3
- package/dist/helpers/asHTML.cjs.map +1 -1
- package/dist/helpers/asHTML.d.cts +3 -7
- package/dist/helpers/asHTML.d.cts.map +1 -1
- package/dist/helpers/asHTML.d.ts +3 -7
- package/dist/helpers/asHTML.d.ts.map +1 -1
- package/dist/helpers/asHTML.js +2 -3
- package/dist/helpers/asHTML.js.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.cjs +1 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts +0 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts +0 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.js +1 -2
- package/dist/helpers/asImageSrc.cjs +1 -2
- package/dist/helpers/asImageSrc.d.cts +0 -2
- package/dist/helpers/asImageSrc.d.cts.map +1 -1
- package/dist/helpers/asImageSrc.d.ts +0 -2
- package/dist/helpers/asImageSrc.d.ts.map +1 -1
- package/dist/helpers/asImageSrc.js +1 -2
- package/dist/helpers/asImageWidthSrcSet.cjs +1 -2
- package/dist/helpers/asImageWidthSrcSet.d.cts +0 -2
- package/dist/helpers/asImageWidthSrcSet.d.cts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.d.ts +0 -2
- package/dist/helpers/asImageWidthSrcSet.d.ts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.js +1 -2
- package/dist/helpers/asLink.cjs +1 -2
- package/dist/helpers/asLink.cjs.map +1 -1
- package/dist/helpers/asLink.d.cts +4 -8
- package/dist/helpers/asLink.d.cts.map +1 -1
- package/dist/helpers/asLink.d.ts +4 -8
- package/dist/helpers/asLink.d.ts.map +1 -1
- package/dist/helpers/asLink.js +1 -2
- package/dist/helpers/asLink.js.map +1 -1
- package/dist/helpers/asLinkAttrs.cjs +3 -5
- package/dist/helpers/asLinkAttrs.cjs.map +1 -1
- package/dist/helpers/asLinkAttrs.d.cts +3 -6
- package/dist/helpers/asLinkAttrs.d.cts.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +3 -6
- package/dist/helpers/asLinkAttrs.d.ts.map +1 -1
- package/dist/helpers/asLinkAttrs.js +3 -5
- package/dist/helpers/asLinkAttrs.js.map +1 -1
- package/dist/helpers/asText.cjs +1 -2
- package/dist/helpers/asText.d.cts +0 -2
- package/dist/helpers/asText.d.cts.map +1 -1
- package/dist/helpers/asText.d.ts +0 -2
- package/dist/helpers/asText.d.ts.map +1 -1
- package/dist/helpers/asText.js +1 -2
- package/dist/helpers/documentToLinkField.cjs +1 -2
- package/dist/helpers/documentToLinkField.d.cts +0 -2
- package/dist/helpers/documentToLinkField.d.cts.map +1 -1
- package/dist/helpers/documentToLinkField.d.ts +0 -2
- package/dist/helpers/documentToLinkField.d.ts.map +1 -1
- package/dist/helpers/documentToLinkField.js +1 -2
- package/dist/helpers/isFilled.cjs +1 -2
- package/dist/helpers/isFilled.d.cts +7 -8
- package/dist/helpers/isFilled.d.ts +7 -8
- package/dist/helpers/isFilled.js +1 -2
- package/dist/helpers/mapSliceZone.cjs +1 -2
- package/dist/helpers/mapSliceZone.d.cts +0 -2
- package/dist/helpers/mapSliceZone.d.cts.map +1 -1
- package/dist/helpers/mapSliceZone.d.ts +0 -2
- package/dist/helpers/mapSliceZone.d.ts.map +1 -1
- package/dist/helpers/mapSliceZone.js +1 -2
- package/dist/index.cjs +17 -18
- package/dist/index.d.cts +62 -64
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +62 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -18
- package/dist/isRepositoryEndpoint.cjs +1 -2
- package/dist/isRepositoryEndpoint.d.cts +0 -2
- package/dist/isRepositoryEndpoint.d.cts.map +1 -1
- package/dist/isRepositoryEndpoint.d.ts +0 -2
- package/dist/isRepositoryEndpoint.d.ts.map +1 -1
- package/dist/isRepositoryEndpoint.js +1 -2
- package/dist/isRepositoryName.cjs +1 -2
- package/dist/isRepositoryName.d.cts +0 -2
- package/dist/isRepositoryName.d.cts.map +1 -1
- package/dist/isRepositoryName.d.ts +0 -2
- package/dist/isRepositoryName.d.ts.map +1 -1
- package/dist/isRepositoryName.js +1 -2
- package/dist/lib/devMsg.cjs +1 -2
- package/dist/lib/devMsg.js +1 -2
- package/dist/lib/escapeHTML.cjs +1 -2
- package/dist/lib/escapeHTML.js +1 -2
- package/dist/lib/getOptionalLinkProperties.cjs +1 -2
- package/dist/lib/getOptionalLinkProperties.js +1 -2
- package/dist/lib/getPreviewCookie.cjs +1 -2
- package/dist/lib/getPreviewCookie.js +1 -2
- package/dist/lib/isInternalURL.cjs +1 -2
- package/dist/lib/isInternalURL.js +1 -2
- package/dist/lib/isMigrationValue.cjs +3 -4
- package/dist/lib/isMigrationValue.js +3 -4
- package/dist/lib/isValue.cjs +2 -3
- package/dist/lib/isValue.js +2 -3
- package/dist/lib/pLimit.cjs +4 -5
- package/dist/lib/pLimit.cjs.map +1 -1
- package/dist/lib/pLimit.js +4 -5
- package/dist/lib/pLimit.js.map +1 -1
- package/dist/lib/request.cjs +1 -2
- package/dist/lib/request.d.cts +0 -2
- package/dist/lib/request.d.cts.map +1 -1
- package/dist/lib/request.d.ts +0 -2
- package/dist/lib/request.d.ts.map +1 -1
- package/dist/lib/request.js +1 -2
- package/dist/lib/resolveMigrationDocumentData.cjs +3 -4
- package/dist/lib/resolveMigrationDocumentData.js +3 -4
- package/dist/lib/serializerHelpers.cjs +2 -3
- package/dist/lib/serializerHelpers.js +2 -3
- package/dist/lib/throttledWarn.cjs +4 -5
- package/dist/lib/throttledWarn.cjs.map +1 -1
- package/dist/lib/throttledWarn.js +4 -5
- package/dist/lib/throttledWarn.js.map +1 -1
- package/dist/lib/validateAssetMetadata.cjs +1 -2
- package/dist/lib/validateAssetMetadata.js +1 -2
- package/dist/package.cjs +2 -3
- package/dist/package.js +2 -3
- package/dist/richtext/asText.cjs +1 -2
- package/dist/richtext/asText.d.cts +0 -2
- package/dist/richtext/asText.d.cts.map +1 -1
- package/dist/richtext/asText.d.ts +0 -2
- package/dist/richtext/asText.d.ts.map +1 -1
- package/dist/richtext/asText.js +1 -2
- package/dist/richtext/asTree.cjs +1 -2
- package/dist/richtext/asTree.d.cts +0 -2
- package/dist/richtext/asTree.d.cts.map +1 -1
- package/dist/richtext/asTree.d.ts +0 -2
- package/dist/richtext/asTree.d.ts.map +1 -1
- package/dist/richtext/asTree.js +1 -2
- package/dist/richtext/composeSerializers.cjs +1 -2
- package/dist/richtext/composeSerializers.d.cts +0 -2
- package/dist/richtext/composeSerializers.d.cts.map +1 -1
- package/dist/richtext/composeSerializers.d.ts +0 -2
- package/dist/richtext/composeSerializers.d.ts.map +1 -1
- package/dist/richtext/composeSerializers.js +1 -2
- package/dist/richtext/serialize.cjs +1 -2
- package/dist/richtext/serialize.d.cts +0 -2
- package/dist/richtext/serialize.d.cts.map +1 -1
- package/dist/richtext/serialize.d.ts +0 -2
- package/dist/richtext/serialize.d.ts.map +1 -1
- package/dist/richtext/serialize.js +1 -2
- package/dist/richtext/types.cjs +1 -2
- package/dist/richtext/types.d.cts +0 -2
- package/dist/richtext/types.d.cts.map +1 -1
- package/dist/richtext/types.d.ts +0 -2
- package/dist/richtext/types.d.ts.map +1 -1
- package/dist/richtext/types.js +1 -2
- package/dist/richtext/wrapMapSerializer.cjs +1 -2
- package/dist/richtext/wrapMapSerializer.d.cts +0 -2
- package/dist/richtext/wrapMapSerializer.d.cts.map +1 -1
- package/dist/richtext/wrapMapSerializer.d.ts +0 -2
- package/dist/richtext/wrapMapSerializer.d.ts.map +1 -1
- package/dist/richtext/wrapMapSerializer.js +1 -2
- package/dist/richtext.cjs +2 -2
- package/dist/richtext.d.cts +2 -2
- package/dist/richtext.d.ts +2 -2
- package/dist/richtext.js +2 -2
- package/dist/types/api/asset/asset.d.cts +0 -2
- package/dist/types/api/asset/asset.d.cts.map +1 -1
- package/dist/types/api/asset/asset.d.ts +0 -2
- package/dist/types/api/asset/asset.d.ts.map +1 -1
- package/dist/types/api/asset/tag.d.cts +0 -2
- package/dist/types/api/asset/tag.d.cts.map +1 -1
- package/dist/types/api/asset/tag.d.ts +0 -2
- package/dist/types/api/asset/tag.d.ts.map +1 -1
- package/dist/types/api/integration.d.cts +0 -2
- package/dist/types/api/integration.d.cts.map +1 -1
- package/dist/types/api/integration.d.ts +0 -2
- package/dist/types/api/integration.d.ts.map +1 -1
- package/dist/types/api/migration/release.d.cts +0 -2
- package/dist/types/api/migration/release.d.cts.map +1 -1
- package/dist/types/api/migration/release.d.ts +0 -2
- package/dist/types/api/migration/release.d.ts.map +1 -1
- package/dist/types/api/query.d.cts +0 -2
- package/dist/types/api/query.d.cts.map +1 -1
- package/dist/types/api/query.d.ts +0 -2
- package/dist/types/api/query.d.ts.map +1 -1
- package/dist/types/api/ref.d.cts +0 -2
- package/dist/types/api/ref.d.cts.map +1 -1
- package/dist/types/api/ref.d.ts +0 -2
- package/dist/types/api/ref.d.ts.map +1 -1
- package/dist/types/api/release.d.cts +0 -2
- package/dist/types/api/release.d.cts.map +1 -1
- package/dist/types/api/release.d.ts +0 -2
- package/dist/types/api/release.d.ts.map +1 -1
- package/dist/types/api/repository.d.cts +0 -2
- package/dist/types/api/repository.d.cts.map +1 -1
- package/dist/types/api/repository.d.ts +0 -2
- package/dist/types/api/repository.d.ts.map +1 -1
- package/dist/types/api/tags.d.cts +0 -2
- package/dist/types/api/tags.d.cts.map +1 -1
- package/dist/types/api/tags.d.ts +0 -2
- package/dist/types/api/tags.d.ts.map +1 -1
- package/dist/types/migration/Asset.cjs +1 -2
- package/dist/types/migration/Asset.d.cts +1 -3
- package/dist/types/migration/Asset.d.cts.map +1 -1
- package/dist/types/migration/Asset.d.ts +1 -3
- package/dist/types/migration/Asset.d.ts.map +1 -1
- package/dist/types/migration/Asset.js +1 -2
- package/dist/types/migration/ContentRelationship.d.cts +0 -2
- package/dist/types/migration/ContentRelationship.d.cts.map +1 -1
- package/dist/types/migration/ContentRelationship.d.ts +0 -2
- package/dist/types/migration/ContentRelationship.d.ts.map +1 -1
- package/dist/types/migration/Document.cjs +1 -2
- package/dist/types/migration/Document.d.cts +4 -6
- package/dist/types/migration/Document.d.cts.map +1 -1
- package/dist/types/migration/Document.d.ts +4 -6
- package/dist/types/migration/Document.d.ts.map +1 -1
- package/dist/types/migration/Document.js +1 -2
- package/dist/types/model/boolean.d.cts +0 -2
- package/dist/types/model/boolean.d.cts.map +1 -1
- package/dist/types/model/boolean.d.ts +0 -2
- package/dist/types/model/boolean.d.ts.map +1 -1
- package/dist/types/model/color.d.cts +0 -2
- package/dist/types/model/color.d.cts.map +1 -1
- package/dist/types/model/color.d.ts +0 -2
- package/dist/types/model/color.d.ts.map +1 -1
- package/dist/types/model/contentRelationship.d.cts +0 -2
- package/dist/types/model/contentRelationship.d.cts.map +1 -1
- package/dist/types/model/contentRelationship.d.ts +0 -2
- package/dist/types/model/contentRelationship.d.ts.map +1 -1
- package/dist/types/model/customType.d.cts +0 -2
- package/dist/types/model/customType.d.cts.map +1 -1
- package/dist/types/model/customType.d.ts +0 -2
- package/dist/types/model/customType.d.ts.map +1 -1
- package/dist/types/model/date.d.cts +0 -2
- package/dist/types/model/date.d.cts.map +1 -1
- package/dist/types/model/date.d.ts +0 -2
- package/dist/types/model/date.d.ts.map +1 -1
- package/dist/types/model/embed.d.cts +0 -2
- package/dist/types/model/embed.d.cts.map +1 -1
- package/dist/types/model/embed.d.ts +0 -2
- package/dist/types/model/embed.d.ts.map +1 -1
- package/dist/types/model/geoPoint.d.cts +0 -2
- package/dist/types/model/geoPoint.d.cts.map +1 -1
- package/dist/types/model/geoPoint.d.ts +0 -2
- package/dist/types/model/geoPoint.d.ts.map +1 -1
- package/dist/types/model/group.d.cts +0 -2
- package/dist/types/model/group.d.cts.map +1 -1
- package/dist/types/model/group.d.ts +0 -2
- package/dist/types/model/group.d.ts.map +1 -1
- package/dist/types/model/image.d.cts +0 -2
- package/dist/types/model/image.d.cts.map +1 -1
- package/dist/types/model/image.d.ts +0 -2
- package/dist/types/model/image.d.ts.map +1 -1
- package/dist/types/model/integration.d.cts +0 -2
- package/dist/types/model/integration.d.cts.map +1 -1
- package/dist/types/model/integration.d.ts +0 -2
- package/dist/types/model/integration.d.ts.map +1 -1
- package/dist/types/model/keyText.d.cts +0 -2
- package/dist/types/model/keyText.d.cts.map +1 -1
- package/dist/types/model/keyText.d.ts +0 -2
- package/dist/types/model/keyText.d.ts.map +1 -1
- package/dist/types/model/link.cjs +1 -2
- package/dist/types/model/link.d.cts +0 -2
- package/dist/types/model/link.d.cts.map +1 -1
- package/dist/types/model/link.d.ts +0 -2
- package/dist/types/model/link.d.ts.map +1 -1
- package/dist/types/model/link.js +1 -2
- package/dist/types/model/linkToMedia.d.cts +0 -2
- package/dist/types/model/linkToMedia.d.cts.map +1 -1
- package/dist/types/model/linkToMedia.d.ts +0 -2
- package/dist/types/model/linkToMedia.d.ts.map +1 -1
- package/dist/types/model/number.d.cts +0 -2
- package/dist/types/model/number.d.cts.map +1 -1
- package/dist/types/model/number.d.ts +0 -2
- package/dist/types/model/number.d.ts.map +1 -1
- package/dist/types/model/range.d.cts +0 -2
- package/dist/types/model/range.d.cts.map +1 -1
- package/dist/types/model/range.d.ts +0 -2
- package/dist/types/model/range.d.ts.map +1 -1
- package/dist/types/model/richText.d.cts +0 -2
- package/dist/types/model/richText.d.cts.map +1 -1
- package/dist/types/model/richText.d.ts +0 -2
- package/dist/types/model/richText.d.ts.map +1 -1
- package/dist/types/model/select.d.cts +0 -2
- package/dist/types/model/select.d.cts.map +1 -1
- package/dist/types/model/select.d.ts +0 -2
- package/dist/types/model/select.d.ts.map +1 -1
- package/dist/types/model/separator.d.cts +0 -2
- package/dist/types/model/separator.d.cts.map +1 -1
- package/dist/types/model/separator.d.ts +0 -2
- package/dist/types/model/separator.d.ts.map +1 -1
- package/dist/types/model/sharedSlice.d.cts +1 -3
- package/dist/types/model/sharedSlice.d.cts.map +1 -1
- package/dist/types/model/sharedSlice.d.ts +1 -3
- package/dist/types/model/sharedSlice.d.ts.map +1 -1
- package/dist/types/model/sharedSliceVariation.d.cts +0 -2
- package/dist/types/model/sharedSliceVariation.d.cts.map +1 -1
- package/dist/types/model/sharedSliceVariation.d.ts +0 -2
- package/dist/types/model/sharedSliceVariation.d.ts.map +1 -1
- package/dist/types/model/slice.cjs +1 -2
- package/dist/types/model/slice.d.cts +0 -2
- package/dist/types/model/slice.d.cts.map +1 -1
- package/dist/types/model/slice.d.ts +0 -2
- package/dist/types/model/slice.d.ts.map +1 -1
- package/dist/types/model/slice.js +1 -2
- package/dist/types/model/sliceZone.cjs +1 -2
- package/dist/types/model/sliceZone.d.cts +0 -2
- package/dist/types/model/sliceZone.d.cts.map +1 -1
- package/dist/types/model/sliceZone.d.ts +0 -2
- package/dist/types/model/sliceZone.d.ts.map +1 -1
- package/dist/types/model/sliceZone.js +1 -2
- package/dist/types/model/table.d.cts +0 -2
- package/dist/types/model/table.d.cts.map +1 -1
- package/dist/types/model/table.d.ts +0 -2
- package/dist/types/model/table.d.ts.map +1 -1
- package/dist/types/model/timestamp.d.cts +0 -2
- package/dist/types/model/timestamp.d.cts.map +1 -1
- package/dist/types/model/timestamp.d.ts +0 -2
- package/dist/types/model/timestamp.d.ts.map +1 -1
- package/dist/types/model/title.d.cts +0 -2
- package/dist/types/model/title.d.cts.map +1 -1
- package/dist/types/model/title.d.ts +0 -2
- package/dist/types/model/title.d.ts.map +1 -1
- package/dist/types/model/types.cjs +1 -2
- package/dist/types/model/types.d.cts +2 -4
- package/dist/types/model/types.d.cts.map +1 -1
- package/dist/types/model/types.d.ts +2 -4
- package/dist/types/model/types.d.ts.map +1 -1
- package/dist/types/model/types.js +1 -2
- package/dist/types/model/uid.d.cts +0 -2
- package/dist/types/model/uid.d.cts.map +1 -1
- package/dist/types/model/uid.d.ts +0 -2
- package/dist/types/model/uid.d.ts.map +1 -1
- package/dist/types/value/boolean.d.cts +0 -2
- package/dist/types/value/boolean.d.cts.map +1 -1
- package/dist/types/value/boolean.d.ts +0 -2
- package/dist/types/value/boolean.d.ts.map +1 -1
- package/dist/types/value/color.d.cts +0 -2
- package/dist/types/value/color.d.cts.map +1 -1
- package/dist/types/value/color.d.ts +0 -2
- package/dist/types/value/color.d.ts.map +1 -1
- package/dist/types/value/contentRelationship.d.cts +0 -2
- package/dist/types/value/contentRelationship.d.cts.map +1 -1
- package/dist/types/value/contentRelationship.d.ts +0 -2
- package/dist/types/value/contentRelationship.d.ts.map +1 -1
- package/dist/types/value/date.d.cts +0 -2
- package/dist/types/value/date.d.cts.map +1 -1
- package/dist/types/value/date.d.ts +0 -2
- package/dist/types/value/date.d.ts.map +1 -1
- package/dist/types/value/document.d.cts +0 -2
- package/dist/types/value/document.d.cts.map +1 -1
- package/dist/types/value/document.d.ts +0 -2
- package/dist/types/value/document.d.ts.map +1 -1
- package/dist/types/value/embed.cjs +1 -2
- package/dist/types/value/embed.d.cts +0 -2
- package/dist/types/value/embed.d.cts.map +1 -1
- package/dist/types/value/embed.d.ts +0 -2
- package/dist/types/value/embed.d.ts.map +1 -1
- package/dist/types/value/embed.js +1 -2
- package/dist/types/value/geoPoint.d.cts +0 -2
- package/dist/types/value/geoPoint.d.cts.map +1 -1
- package/dist/types/value/geoPoint.d.ts +0 -2
- package/dist/types/value/geoPoint.d.ts.map +1 -1
- package/dist/types/value/group.d.cts +0 -2
- package/dist/types/value/group.d.cts.map +1 -1
- package/dist/types/value/group.d.ts +0 -2
- package/dist/types/value/group.d.ts.map +1 -1
- package/dist/types/value/image.d.cts +0 -2
- package/dist/types/value/image.d.cts.map +1 -1
- package/dist/types/value/image.d.ts +0 -2
- package/dist/types/value/image.d.ts.map +1 -1
- package/dist/types/value/integration.d.cts +0 -2
- package/dist/types/value/integration.d.cts.map +1 -1
- package/dist/types/value/integration.d.ts +0 -2
- package/dist/types/value/integration.d.ts.map +1 -1
- package/dist/types/value/keyText.d.cts +0 -2
- package/dist/types/value/keyText.d.cts.map +1 -1
- package/dist/types/value/keyText.d.ts +0 -2
- package/dist/types/value/keyText.d.ts.map +1 -1
- package/dist/types/value/link.cjs +1 -2
- package/dist/types/value/link.cjs.map +1 -1
- package/dist/types/value/link.d.cts +3 -6
- package/dist/types/value/link.d.cts.map +1 -1
- package/dist/types/value/link.d.ts +3 -6
- package/dist/types/value/link.d.ts.map +1 -1
- package/dist/types/value/link.js +1 -2
- package/dist/types/value/link.js.map +1 -1
- package/dist/types/value/linkToMedia.d.cts +0 -2
- package/dist/types/value/linkToMedia.d.cts.map +1 -1
- package/dist/types/value/linkToMedia.d.ts +0 -2
- package/dist/types/value/linkToMedia.d.ts.map +1 -1
- package/dist/types/value/number.d.cts +0 -2
- package/dist/types/value/number.d.cts.map +1 -1
- package/dist/types/value/number.d.ts +0 -2
- package/dist/types/value/number.d.ts.map +1 -1
- package/dist/types/value/richText.cjs +1 -2
- package/dist/types/value/richText.d.cts +1 -3
- package/dist/types/value/richText.d.cts.map +1 -1
- package/dist/types/value/richText.d.ts +1 -3
- package/dist/types/value/richText.d.ts.map +1 -1
- package/dist/types/value/richText.js +1 -2
- package/dist/types/value/select.d.cts +0 -2
- package/dist/types/value/select.d.cts.map +1 -1
- package/dist/types/value/select.d.ts +0 -2
- package/dist/types/value/select.d.ts.map +1 -1
- package/dist/types/value/sharedSlice.d.cts +0 -2
- package/dist/types/value/sharedSlice.d.cts.map +1 -1
- package/dist/types/value/sharedSlice.d.ts +0 -2
- package/dist/types/value/sharedSlice.d.ts.map +1 -1
- package/dist/types/value/sharedSliceVariation.d.cts +0 -2
- package/dist/types/value/sharedSliceVariation.d.cts.map +1 -1
- package/dist/types/value/sharedSliceVariation.d.ts +0 -2
- package/dist/types/value/sharedSliceVariation.d.ts.map +1 -1
- package/dist/types/value/slice.d.cts +0 -2
- package/dist/types/value/slice.d.cts.map +1 -1
- package/dist/types/value/slice.d.ts +0 -2
- package/dist/types/value/slice.d.ts.map +1 -1
- package/dist/types/value/sliceZone.d.cts +0 -2
- package/dist/types/value/sliceZone.d.cts.map +1 -1
- package/dist/types/value/sliceZone.d.ts +0 -2
- package/dist/types/value/sliceZone.d.ts.map +1 -1
- package/dist/types/value/table.d.cts +1 -3
- package/dist/types/value/table.d.cts.map +1 -1
- package/dist/types/value/table.d.ts +1 -3
- package/dist/types/value/table.d.ts.map +1 -1
- package/dist/types/value/timestamp.d.cts +0 -2
- package/dist/types/value/timestamp.d.cts.map +1 -1
- package/dist/types/value/timestamp.d.ts +0 -2
- package/dist/types/value/timestamp.d.ts.map +1 -1
- package/dist/types/value/title.d.cts +1 -3
- package/dist/types/value/title.d.cts.map +1 -1
- package/dist/types/value/title.d.ts +1 -3
- package/dist/types/value/title.d.ts.map +1 -1
- package/dist/types/value/types.d.cts +4 -6
- package/dist/types/value/types.d.cts.map +1 -1
- package/dist/types/value/types.d.ts +4 -6
- package/dist/types/value/types.d.ts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.cts +0 -2
- package/dist/types/webhook/apiUpdate.d.cts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.ts +0 -2
- package/dist/types/webhook/apiUpdate.d.ts.map +1 -1
- package/dist/types/webhook/testTrigger.d.cts +0 -2
- package/dist/types/webhook/testTrigger.d.cts.map +1 -1
- package/dist/types/webhook/testTrigger.d.ts +0 -2
- package/dist/types/webhook/testTrigger.d.ts.map +1 -1
- package/dist/types/webhook/types.cjs +1 -2
- package/dist/types/webhook/types.d.cts +0 -2
- package/dist/types/webhook/types.d.cts.map +1 -1
- package/dist/types/webhook/types.d.ts +0 -2
- package/dist/types/webhook/types.d.ts.map +1 -1
- package/dist/types/webhook/types.js +1 -2
- package/package.json +7 -7
- package/src/Client.ts +6 -6
- package/src/WriteClient.ts +0 -2
- package/src/createClient.ts +1 -2
- package/src/helpers/asHTML.ts +2 -4
- package/src/helpers/asLink.ts +2 -4
- package/src/helpers/asLinkAttrs.ts +1 -2
- package/src/lib/pLimit.ts +3 -3
- package/src/lib/throttledWarn.ts +3 -3
- package/src/types/value/link.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSlice.d.cts","names":[],"sources":["../../../src/types/value/sharedSlice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedSlice.d.cts","names":[],"sources":["../../../src/types/value/sharedSlice.ts"],"mappings":";;;;;;YAOY,YACX,oBACA,mBAAmB,uBAAuB;EAE1C,YAAY;EACZ;EACA;IACG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SharedSliceVariation } from "./sharedSliceVariation.js";
|
|
2
|
-
//#region src/types/value/sharedSlice.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A shared Slice.
|
|
5
4
|
*
|
|
@@ -10,5 +9,4 @@ export type SharedSlice<SliceType = string, Variations extends SharedSliceVariat
|
|
|
10
9
|
slice_label: null;
|
|
11
10
|
id: string;
|
|
12
11
|
} & Variations;
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=sharedSlice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSlice.d.ts","names":[],"sources":["../../../src/types/value/sharedSlice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedSlice.d.ts","names":[],"sources":["../../../src/types/value/sharedSlice.ts"],"mappings":";;;;;;YAOY,YACX,oBACA,mBAAmB,uBAAuB;EAE1C,YAAY;EACZ;EACA;IACG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyRegularField, AnySlicePrimaryField } from "./types.cjs";
|
|
2
|
-
//#region src/types/value/sharedSliceVariation.d.ts
|
|
3
2
|
/** A shared Slice variation. */
|
|
4
3
|
export interface SharedSliceVariation<Variation = string, PrimaryFields extends Record<string, AnySlicePrimaryField> = Record<string, AnySlicePrimaryField>, ItemsFields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>> {
|
|
5
4
|
variation: Variation;
|
|
@@ -7,5 +6,4 @@ export interface SharedSliceVariation<Variation = string, PrimaryFields extends
|
|
|
7
6
|
primary: PrimaryFields;
|
|
8
7
|
items: ItemsFields[];
|
|
9
8
|
}
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=sharedSliceVariation.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSliceVariation.d.cts","names":[],"sources":["../../../src/types/value/sharedSliceVariation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedSliceVariation.d.cts","names":[],"sources":["../../../src/types/value/sharedSliceVariation.ts"],"mappings":";;iBAGiB,qBAChB,oBACA,sBAAsB,eAAe,wBAAwB,eAAe,uBAC5E,oBAAoB,eAAe,mBAAmB,eAAe;EAErE,WAAW;EACX;EACA,SAAS;EACT,OAAO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyRegularField, AnySlicePrimaryField } from "./types.js";
|
|
2
|
-
//#region src/types/value/sharedSliceVariation.d.ts
|
|
3
2
|
/** A shared Slice variation. */
|
|
4
3
|
export interface SharedSliceVariation<Variation = string, PrimaryFields extends Record<string, AnySlicePrimaryField> = Record<string, AnySlicePrimaryField>, ItemsFields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>> {
|
|
5
4
|
variation: Variation;
|
|
@@ -7,5 +6,4 @@ export interface SharedSliceVariation<Variation = string, PrimaryFields extends
|
|
|
7
6
|
primary: PrimaryFields;
|
|
8
7
|
items: ItemsFields[];
|
|
9
8
|
}
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=sharedSliceVariation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSliceVariation.d.ts","names":[],"sources":["../../../src/types/value/sharedSliceVariation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedSliceVariation.d.ts","names":[],"sources":["../../../src/types/value/sharedSliceVariation.ts"],"mappings":";;iBAGiB,qBAChB,oBACA,sBAAsB,eAAe,wBAAwB,eAAe,uBAC5E,oBAAoB,eAAe,mBAAmB,eAAe;EAErE,WAAW;EACX;EACA,SAAS;EACT,OAAO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyRegularField } from "./types.cjs";
|
|
2
|
-
//#region src/types/value/slice.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A Slice - sections of your webpages.
|
|
5
4
|
*
|
|
@@ -12,5 +11,4 @@ export interface Slice<SliceType = string, PrimaryFields extends Record<string,
|
|
|
12
11
|
primary: PrimaryFields;
|
|
13
12
|
items: ItemsFields[];
|
|
14
13
|
}
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=slice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.cts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slice.d.cts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":";;;;;;iBAOiB,MAChB,oBACA,sBAAsB,eAAe,mBAAmB,eAAe,kBACvE,oBAAoB,eAAe,mBAAmB,eAAe;EAErE,YAAY;EACZ;EACA;EACA,SAAS;EACT,OAAO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyRegularField } from "./types.js";
|
|
2
|
-
//#region src/types/value/slice.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A Slice - sections of your webpages.
|
|
5
4
|
*
|
|
@@ -12,5 +11,4 @@ export interface Slice<SliceType = string, PrimaryFields extends Record<string,
|
|
|
12
11
|
primary: PrimaryFields;
|
|
13
12
|
items: ItemsFields[];
|
|
14
13
|
}
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":";;;;;;iBAOiB,MAChB,oBACA,sBAAsB,eAAe,mBAAmB,eAAe,kBACvE,oBAAoB,eAAe,mBAAmB,eAAe;EAErE,YAAY;EACZ;EACA;EACA,SAAS;EACT,OAAO"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SharedSlice } from "./sharedSlice.cjs";
|
|
2
2
|
import { Slice } from "./slice.cjs";
|
|
3
3
|
import { FieldState } from "./types.cjs";
|
|
4
|
-
//#region src/types/value/sliceZone.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Prismic Slices are sections of your website. Prismic documents contain a dynamic "Slice Zone"
|
|
7
6
|
* that allows content creators to add, edit, and rearrange Slices to compose dynamic layouts for
|
|
@@ -10,5 +9,4 @@ import { FieldState } from "./types.cjs";
|
|
|
10
9
|
* @see More details: {@link https://prismic.io/docs/slice}
|
|
11
10
|
*/
|
|
12
11
|
export type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice, State extends FieldState = FieldState> = State extends "empty" ? [] : [Slices, ...Slices[]];
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=sliceZone.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliceZone.d.cts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sliceZone.d.cts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":";;;;;;;;;;YAWY,UACX,eAAe,QAAQ,cAAc,QAAQ,aAC7C,cAAc,aAAa,cACxB,8BAA8B,WAAW"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SharedSlice } from "./sharedSlice.js";
|
|
2
2
|
import { Slice } from "./slice.js";
|
|
3
3
|
import { FieldState } from "./types.js";
|
|
4
|
-
//#region src/types/value/sliceZone.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Prismic Slices are sections of your website. Prismic documents contain a dynamic "Slice Zone"
|
|
7
6
|
* that allows content creators to add, edit, and rearrange Slices to compose dynamic layouts for
|
|
@@ -10,5 +9,4 @@ import { FieldState } from "./types.js";
|
|
|
10
9
|
* @see More details: {@link https://prismic.io/docs/slice}
|
|
11
10
|
*/
|
|
12
11
|
export type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice, State extends FieldState = FieldState> = State extends "empty" ? [] : [Slices, ...Slices[]];
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=sliceZone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliceZone.d.ts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sliceZone.d.ts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":";;;;;;;;;;YAWY,UACX,eAAe,QAAQ,cAAc,QAAQ,aAC7C,cAAc,aAAa,cACxB,8BAA8B,WAAW"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldState } from "./types.cjs";
|
|
2
1
|
import { RichTextField } from "./richText.cjs";
|
|
3
|
-
|
|
2
|
+
import { FieldState } from "./types.cjs";
|
|
4
3
|
/**
|
|
5
4
|
* A table field.
|
|
6
5
|
*
|
|
@@ -53,5 +52,4 @@ export type TableFieldDataCell = {
|
|
|
53
52
|
/** The content of the cell. */
|
|
54
53
|
content: RichTextField;
|
|
55
54
|
};
|
|
56
|
-
//#endregion
|
|
57
55
|
//# sourceMappingURL=table.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.cts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.cts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":";;;;;;;;YASY,WAAW,cAAc,aAAa,cAAc;;EAI7D,OAAO;;EAGP,MAAM;;;YAIG;EACX,MAAM;;;YAIK;EACX,MAAM;;;YAIK;;EAEX;;EAGA,OAAO;;;YAII;;EAEX;;EAGA;;EAGA,SAAS;;;YAIE;;EAEX;;EAGA,QAAQ,uBAAuB;;;YAIpB;;EAEX;;EAGA;;EAGA,SAAS"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldState } from "./types.js";
|
|
2
1
|
import { RichTextField } from "./richText.js";
|
|
3
|
-
|
|
2
|
+
import { FieldState } from "./types.js";
|
|
4
3
|
/**
|
|
5
4
|
* A table field.
|
|
6
5
|
*
|
|
@@ -53,5 +52,4 @@ export type TableFieldDataCell = {
|
|
|
53
52
|
/** The content of the cell. */
|
|
54
53
|
content: RichTextField;
|
|
55
54
|
};
|
|
56
|
-
//#endregion
|
|
57
55
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":";;;;;;;;YASY,WAAW,cAAc,aAAa,cAAc;;EAI7D,OAAO;;EAGP,MAAM;;;YAIG;EACX,MAAM;;;YAIK;EACX,MAAM;;;YAIK;;EAEX;;EAGA,OAAO;;;YAII;;EAEX;;EAGA;;EAGA,SAAS;;;YAIE;;EAEX;;EAGA,QAAQ,uBAAuB;;;YAIpB;;EAEX;;EAGA;;EAGA,SAAS"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FieldState } from "./types.cjs";
|
|
2
|
-
//#region src/types/value/timestamp.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A timestamp field.
|
|
5
4
|
*
|
|
6
5
|
* @typeParam State - State of the field which determines its shape.
|
|
7
6
|
*/
|
|
8
7
|
export type TimestampField<State extends FieldState = FieldState> = State extends "empty" ? null : string;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=timestamp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.cts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.cts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":";;;;;;YAOY,eAAe,cAAc,aAAa,cAAc"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FieldState } from "./types.js";
|
|
2
|
-
//#region src/types/value/timestamp.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A timestamp field.
|
|
5
4
|
*
|
|
6
5
|
* @typeParam State - State of the field which determines its shape.
|
|
7
6
|
*/
|
|
8
7
|
export type TimestampField<State extends FieldState = FieldState> = State extends "empty" ? null : string;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":";;;;;;YAOY,eAAe,cAAc,aAAa,cAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldState } from "./types.cjs";
|
|
2
1
|
import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText.cjs";
|
|
3
|
-
|
|
2
|
+
import { FieldState } from "./types.cjs";
|
|
4
3
|
/**
|
|
5
4
|
* A title field.
|
|
6
5
|
*
|
|
@@ -9,5 +8,4 @@ import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeadi
|
|
|
9
8
|
export type TitleField<State extends FieldState = FieldState> = State extends "empty" ? [] : [Omit<RTHeading1Node | RTHeading2Node | RTHeading3Node | RTHeading4Node | RTHeading5Node | RTHeading6Node, "spans"> & {
|
|
10
9
|
spans: [];
|
|
11
10
|
}];
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=title.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.cts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.d.cts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":";;;;;;;YAeY,WAAW,cAAc,aAAa,cAAc,8BAG7D,KACG,iBACA,iBACA,iBACA,iBACA,iBACA;EAGF"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldState } from "./types.js";
|
|
2
1
|
import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText.js";
|
|
3
|
-
|
|
2
|
+
import { FieldState } from "./types.js";
|
|
4
3
|
/**
|
|
5
4
|
* A title field.
|
|
6
5
|
*
|
|
@@ -9,5 +8,4 @@ import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeadi
|
|
|
9
8
|
export type TitleField<State extends FieldState = FieldState> = State extends "empty" ? [] : [Omit<RTHeading1Node | RTHeading2Node | RTHeading3Node | RTHeading4Node | RTHeading5Node | RTHeading6Node, "spans"> & {
|
|
10
9
|
spans: [];
|
|
11
10
|
}];
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":";;;;;;;YAeY,WAAW,cAAc,aAAa,cAAc,8BAG7D,KACG,iBACA,iBACA,iBACA,iBACA,iBACA;EAGF"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { BooleanField } from "./boolean.cjs";
|
|
2
2
|
import { ColorField } from "./color.cjs";
|
|
3
|
-
import { GroupField } from "./group.cjs";
|
|
4
3
|
import { ContentRelationshipField } from "./contentRelationship.cjs";
|
|
5
4
|
import { DateField } from "./date.cjs";
|
|
5
|
+
import { EmbedField } from "./embed.cjs";
|
|
6
6
|
import { GeoPointField } from "./geoPoint.cjs";
|
|
7
|
+
import { GroupField } from "./group.cjs";
|
|
7
8
|
import { ImageField } from "./image.cjs";
|
|
8
9
|
import { IntegrationField } from "./integration.cjs";
|
|
9
10
|
import { KeyTextField } from "./keyText.cjs";
|
|
10
|
-
import { LinkToMediaField } from "./linkToMedia.cjs";
|
|
11
11
|
import { LinkField } from "./link.cjs";
|
|
12
|
+
import { LinkToMediaField } from "./linkToMedia.cjs";
|
|
12
13
|
import { NumberField } from "./number.cjs";
|
|
14
|
+
import { RichTextField } from "./richText.cjs";
|
|
13
15
|
import { SelectField } from "./select.cjs";
|
|
14
16
|
import { TableField } from "./table.cjs";
|
|
15
17
|
import { TimestampField } from "./timestamp.cjs";
|
|
16
18
|
import { TitleField } from "./title.cjs";
|
|
17
|
-
import { EmbedField } from "./embed.cjs";
|
|
18
|
-
import { RichTextField } from "./richText.cjs";
|
|
19
|
-
//#region src/types/value/types.d.ts
|
|
20
19
|
/** Empty state for object-shaped fields. */
|
|
21
20
|
export type EmptyObjectField = Record<string, never>;
|
|
22
21
|
/** Valid states for fields. Not all fields use this type (e.g. BooleanField). */
|
|
@@ -41,6 +40,5 @@ type WithKey<Field extends LinkField> = Field & {
|
|
|
41
40
|
* @see https://github.com/sindresorhus/type-fest/blob/cbd7ec510bd136ac045bbc74e391ee686b8a9a2f/source/simplify.d.ts
|
|
42
41
|
*/
|
|
43
42
|
export type Simplify<T> = { [P in keyof T]: T[P]; };
|
|
44
|
-
//#endregion
|
|
45
43
|
export {};
|
|
46
44
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;YAoBY,mBAAmB;;YAGnB;;YAGA,kBACT,aACA,gBACA,aACA,2BACA,YACA,WAAW,aACX,mBACA,aACA,YACA,iBACA,aACA,cACA,eACA,cACA,eACA,gBACA,mBACA;;YAGS,uBAAuB,aAAa;;YAGpC,WACX,cAAc,WACd,cAAc,aAAa,cACxB,8BAA8B,QAAQ,WAAW,QAAQ;;KAGxD,QAAQ,cAAc,aAAa;EAAU;;;;;;;;;;;YAWtC,SAAS,QAAQ,WAAW,IAAI,EAAE"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { BooleanField } from "./boolean.js";
|
|
2
2
|
import { ColorField } from "./color.js";
|
|
3
|
-
import { GroupField } from "./group.js";
|
|
4
3
|
import { ContentRelationshipField } from "./contentRelationship.js";
|
|
5
4
|
import { DateField } from "./date.js";
|
|
5
|
+
import { EmbedField } from "./embed.js";
|
|
6
6
|
import { GeoPointField } from "./geoPoint.js";
|
|
7
|
+
import { GroupField } from "./group.js";
|
|
7
8
|
import { ImageField } from "./image.js";
|
|
8
9
|
import { IntegrationField } from "./integration.js";
|
|
9
10
|
import { KeyTextField } from "./keyText.js";
|
|
10
|
-
import { LinkToMediaField } from "./linkToMedia.js";
|
|
11
11
|
import { LinkField } from "./link.js";
|
|
12
|
+
import { LinkToMediaField } from "./linkToMedia.js";
|
|
12
13
|
import { NumberField } from "./number.js";
|
|
14
|
+
import { RichTextField } from "./richText.js";
|
|
13
15
|
import { SelectField } from "./select.js";
|
|
14
16
|
import { TableField } from "./table.js";
|
|
15
17
|
import { TimestampField } from "./timestamp.js";
|
|
16
18
|
import { TitleField } from "./title.js";
|
|
17
|
-
import { EmbedField } from "./embed.js";
|
|
18
|
-
import { RichTextField } from "./richText.js";
|
|
19
|
-
//#region src/types/value/types.d.ts
|
|
20
19
|
/** Empty state for object-shaped fields. */
|
|
21
20
|
export type EmptyObjectField = Record<string, never>;
|
|
22
21
|
/** Valid states for fields. Not all fields use this type (e.g. BooleanField). */
|
|
@@ -41,6 +40,5 @@ type WithKey<Field extends LinkField> = Field & {
|
|
|
41
40
|
* @see https://github.com/sindresorhus/type-fest/blob/cbd7ec510bd136ac045bbc74e391ee686b8a9a2f/source/simplify.d.ts
|
|
42
41
|
*/
|
|
43
42
|
export type Simplify<T> = { [P in keyof T]: T[P]; };
|
|
44
|
-
//#endregion
|
|
45
43
|
export {};
|
|
46
44
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;YAoBY,mBAAmB;;YAGnB;;YAGA,kBACT,aACA,gBACA,aACA,2BACA,YACA,WAAW,aACX,mBACA,aACA,YACA,iBACA,aACA,cACA,eACA,cACA,eACA,gBACA,mBACA;;YAGS,uBAAuB,aAAa;;YAGpC,WACX,cAAc,WACd,cAAc,aAAa,cACxB,8BAA8B,QAAQ,WAAW,QAAQ;;KAGxD,QAAQ,cAAc,aAAa;EAAU;;;;;;;;;;;YAWtC,SAAS,QAAQ,WAAW,IAAI,EAAE"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.cjs";
|
|
2
|
-
//#region src/types/webhook/apiUpdate.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Webhook payload sent when a Prismic repository content is updated.
|
|
5
4
|
*
|
|
@@ -48,6 +47,5 @@ interface WebhookBodyAPIUpdateRelease {
|
|
|
48
47
|
label: string;
|
|
49
48
|
documents: string[];
|
|
50
49
|
}
|
|
51
|
-
//#endregion
|
|
52
50
|
export {};
|
|
53
51
|
//# sourceMappingURL=apiUpdate.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiUpdate.d.cts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiUpdate.d.cts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":";;;;;;iBAOiB,6BAA6B;EAC7C,aAAa,YAAY;EACzB;EACA,UAAU,+BAA+B;EACzC,OAAO,+BAA+B;EACtC,MAAM,+BAA+B;EACrC;;EAEA,cAAc;;UAGL,+BAA+B;EACxC,SAAS;EACT,WAAW;EACX,WAAW;;;;;;;UAQF;EACT;EACA;;;;;;;UAQS;EACT;;;;;;;UAQS;EACT;EACA;EACA;EACA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.js";
|
|
2
|
-
//#region src/types/webhook/apiUpdate.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Webhook payload sent when a Prismic repository content is updated.
|
|
5
4
|
*
|
|
@@ -48,6 +47,5 @@ interface WebhookBodyAPIUpdateRelease {
|
|
|
48
47
|
label: string;
|
|
49
48
|
documents: string[];
|
|
50
49
|
}
|
|
51
|
-
//#endregion
|
|
52
50
|
export {};
|
|
53
51
|
//# sourceMappingURL=apiUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiUpdate.d.ts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiUpdate.d.ts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":";;;;;;iBAOiB,6BAA6B;EAC7C,aAAa,YAAY;EACzB;EACA,UAAU,+BAA+B;EACzC,OAAO,+BAA+B;EACtC,MAAM,+BAA+B;EACrC;;EAEA,cAAc;;UAGL,+BAA+B;EACxC,SAAS;EACT,WAAW;EACX,WAAW;;;;;;;UAQF;EACT;EACA;;;;;;;UAQS;EACT;;;;;;;UAQS;EACT;EACA;EACA;EACA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.cjs";
|
|
2
|
-
//#region src/types/webhook/testTrigger.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Webhook payload sent when a test webhook action is triggered.
|
|
5
4
|
*
|
|
@@ -8,5 +7,4 @@ import { WebhookBodyBase, WebhookType } from "./types.cjs";
|
|
|
8
7
|
export interface WebhookBodyTestTrigger extends WebhookBodyBase {
|
|
9
8
|
type: typeof WebhookType.TestTrigger;
|
|
10
9
|
}
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=testTrigger.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testTrigger.d.cts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"testTrigger.d.cts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":";;;;;;iBAOiB,+BAA+B;EAC/C,aAAa,YAAY"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.js";
|
|
2
|
-
//#region src/types/webhook/testTrigger.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Webhook payload sent when a test webhook action is triggered.
|
|
5
4
|
*
|
|
@@ -8,5 +7,4 @@ import { WebhookBodyBase, WebhookType } from "./types.js";
|
|
|
8
7
|
export interface WebhookBodyTestTrigger extends WebhookBodyBase {
|
|
9
8
|
type: typeof WebhookType.TestTrigger;
|
|
10
9
|
}
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=testTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testTrigger.d.ts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"testTrigger.d.ts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":";;;;;;iBAOiB,+BAA+B;EAC/C,aAAa,YAAY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types/webhook/types.ts
|
|
2
2
|
/**
|
|
3
3
|
* Types of Prismic Webhooks.
|
|
4
4
|
*
|
|
@@ -8,7 +8,6 @@ const WebhookType = {
|
|
|
8
8
|
APIUpdate: "api-update",
|
|
9
9
|
TestTrigger: "test-trigger"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
exports.WebhookType = WebhookType;
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=types.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WebhookBodyAPIUpdate } from "./apiUpdate.cjs";
|
|
2
2
|
import { WebhookBodyTestTrigger } from "./testTrigger.cjs";
|
|
3
|
-
//#region src/types/webhook/types.d.ts
|
|
4
3
|
export type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
|
|
5
4
|
/**
|
|
6
5
|
* Types of Prismic Webhooks.
|
|
@@ -17,5 +16,4 @@ export interface WebhookBodyBase {
|
|
|
17
16
|
apiUrl: string;
|
|
18
17
|
secret: string | null;
|
|
19
18
|
}
|
|
20
|
-
//#endregion
|
|
21
19
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":";;YAGY,cAAc,uBAAuB;;;;;;qBAOpC;WACZ;WACA;;iBAGgB;EAChB,cAAc,0BAA0B;EACxC;EACA;EACA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WebhookBodyAPIUpdate } from "./apiUpdate.js";
|
|
2
2
|
import { WebhookBodyTestTrigger } from "./testTrigger.js";
|
|
3
|
-
//#region src/types/webhook/types.d.ts
|
|
4
3
|
export type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
|
|
5
4
|
/**
|
|
6
5
|
* Types of Prismic Webhooks.
|
|
@@ -17,5 +16,4 @@ export interface WebhookBodyBase {
|
|
|
17
16
|
apiUrl: string;
|
|
18
17
|
secret: string | null;
|
|
19
18
|
}
|
|
20
|
-
//#endregion
|
|
21
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":";;YAGY,cAAc,uBAAuB;;;;;;qBAOpC;WACZ;WACA;;iBAGgB;EAChB,cAAc,0BAA0B;EACxC;EACA;EACA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types/webhook/types.ts
|
|
2
2
|
/**
|
|
3
3
|
* Types of Prismic Webhooks.
|
|
4
4
|
*
|
|
@@ -8,7 +8,6 @@ const WebhookType = {
|
|
|
8
8
|
APIUpdate: "api-update",
|
|
9
9
|
TestTrigger: "test-trigger"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { WebhookType };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/client",
|
|
3
|
-
"version": "7.23.
|
|
3
|
+
"version": "7.23.1-canary.46cd720",
|
|
4
4
|
"description": "The official JavaScript + TypeScript client library for Prismic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@prismicio/e2e-tests-utils": "^1.20.0",
|
|
72
72
|
"@prismicio/types-internal": "^3.17.2",
|
|
73
|
-
"@types/node": "^26.6.
|
|
74
|
-
"@vitest/coverage-v8": "^5.0
|
|
75
|
-
"oxfmt": "^0.
|
|
76
|
-
"oxlint": "^1.
|
|
77
|
-
"tsdown": "^0.23.
|
|
73
|
+
"@types/node": "^26.6.6",
|
|
74
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
75
|
+
"oxfmt": "^0.78.0",
|
|
76
|
+
"oxlint": "^1.93.0",
|
|
77
|
+
"tsdown": "^0.23.5",
|
|
78
78
|
"typescript": "^7.0.2",
|
|
79
|
-
"vitest": "^5.0
|
|
79
|
+
"vitest": "^5.1.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22"
|
package/src/Client.ts
CHANGED
|
@@ -457,17 +457,17 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
|
|
|
457
457
|
while ((!latestResult || latestResult.next_page) && documents.length < limit) {
|
|
458
458
|
const page = latestResult ? latestResult.page + 1 : undefined
|
|
459
459
|
|
|
460
|
-
const requestedAt = Date.now()
|
|
461
460
|
const response = await this.#internalGet({ ...resolvedParams, page })
|
|
462
461
|
latestResult = (await response.json()) as Query<TDocument>
|
|
463
462
|
documents.push(...latestResult.results)
|
|
464
463
|
|
|
465
464
|
// Caches (CDN, Next.js Data Cache) replay the origin's `Date` header, even
|
|
466
465
|
// when they also replay an `x-cache: Miss`. The margin covers clock skew.
|
|
467
|
-
|
|
466
|
+
// Lazy, because Next.js forbids `Date.now()` during a prerender.
|
|
467
|
+
const isCached = () =>
|
|
468
468
|
response.headers.get("x-cache")?.startsWith("Hit") ||
|
|
469
|
-
Date.parse(response.headers.get("date") ?? "") <
|
|
470
|
-
if (latestResult.next_page && !isCached) {
|
|
469
|
+
Date.parse(response.headers.get("date") ?? "") < Date.now() - 5000
|
|
470
|
+
if (latestResult.next_page && !isCached()) {
|
|
471
471
|
await new Promise((res) => setTimeout(res, GET_ALL_QUERY_DELAY))
|
|
472
472
|
}
|
|
473
473
|
}
|
|
@@ -802,7 +802,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
|
|
|
802
802
|
async getRepository(
|
|
803
803
|
params?: Pick<BuildQueryURLArgs, "accessToken"> & FetchParams,
|
|
804
804
|
): Promise<Repository> {
|
|
805
|
-
if (this.#cachedRepository && this.#cachedRepositoryExpiration >
|
|
805
|
+
if (this.#cachedRepository && this.#cachedRepositoryExpiration > performance.now()) {
|
|
806
806
|
return this.#cachedRepository
|
|
807
807
|
}
|
|
808
808
|
|
|
@@ -817,7 +817,7 @@ export class Client<TDocuments extends PrismicDocument = PrismicDocument> {
|
|
|
817
817
|
|
|
818
818
|
if (response.ok) {
|
|
819
819
|
this.#cachedRepository = (await response.json()) as Repository
|
|
820
|
-
this.#cachedRepositoryExpiration =
|
|
820
|
+
this.#cachedRepositoryExpiration = performance.now() + REPOSITORY_CACHE_TTL
|
|
821
821
|
|
|
822
822
|
return this.#cachedRepository
|
|
823
823
|
}
|
package/src/WriteClient.ts
CHANGED
|
@@ -241,7 +241,6 @@ export class WriteClient<
|
|
|
241
241
|
* published content.
|
|
242
242
|
*
|
|
243
243
|
* @example
|
|
244
|
-
* ```ts
|
|
245
244
|
* const migration = createMigration()
|
|
246
245
|
*
|
|
247
246
|
* // Prepare and run a migration.
|
|
@@ -250,7 +249,6 @@ export class WriteClient<
|
|
|
250
249
|
*
|
|
251
250
|
* // Publish the migration release.
|
|
252
251
|
* const { totalItems } = await writeClient.publishMigrationRelease()
|
|
253
|
-
* ```
|
|
254
252
|
*
|
|
255
253
|
* @param params - Additional fetch parameters.
|
|
256
254
|
* @returns The result of the publish operation, including the total number of documents that were
|
package/src/createClient.ts
CHANGED
|
@@ -21,8 +21,7 @@ export interface CreateClient {
|
|
|
21
21
|
* createClient("https://my-repo.cdn.prismic.io/api/v2")
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
|
-
* @typeParam TDocuments - A union of Prismic page and custom types for the
|
|
25
|
-
* repository.
|
|
24
|
+
* @typeParam TDocuments - A union of Prismic page and custom types for the repository.
|
|
26
25
|
* @param repositoryNameOrEndpoint - The Prismic repository name or full Content API endpoint for
|
|
27
26
|
* the repository.
|
|
28
27
|
* @param options - Configuration that determines how content will be queried from the Prismic
|
package/src/helpers/asHTML.ts
CHANGED
|
@@ -80,8 +80,7 @@ type HTMLRichTextMapSerializerFunction<BlockType extends keyof RichTextMapSerial
|
|
|
80
80
|
/**
|
|
81
81
|
* Returns the `Node` generic from {@link RichTextMapSerializerFunction}.
|
|
82
82
|
*
|
|
83
|
-
* @typeParam T - The `RichTextMapSerializerFunction` containing the needed
|
|
84
|
-
* `Node` generic.
|
|
83
|
+
* @typeParam T - The `RichTextMapSerializerFunction` containing the needed `Node` generic.
|
|
85
84
|
*/
|
|
86
85
|
type ExtractNodeGeneric<T> =
|
|
87
86
|
T extends RichTextMapSerializerFunction<
|
|
@@ -97,8 +96,7 @@ type ExtractNodeGeneric<T> =
|
|
|
97
96
|
/**
|
|
98
97
|
* Returns the `TextType` generic from {@link RichTextMapSerializerFunction}.
|
|
99
98
|
*
|
|
100
|
-
* @typeParam T - The `RichTextMapSerializerFunction` containing the needed
|
|
101
|
-
* `TextType` generic.
|
|
99
|
+
* @typeParam T - The `RichTextMapSerializerFunction` containing the needed `TextType` generic.
|
|
102
100
|
*/
|
|
103
101
|
type ExtractTextTypeGeneric<T> =
|
|
104
102
|
T extends RichTextMapSerializerFunction<
|
package/src/helpers/asLink.ts
CHANGED
|
@@ -60,8 +60,7 @@ export const asLink: {
|
|
|
60
60
|
* // => "/blog/my-post"
|
|
61
61
|
* ```
|
|
62
62
|
*
|
|
63
|
-
* @typeParam LinkResolverFunctionReturnType - Link resolver function return
|
|
64
|
-
* type.
|
|
63
|
+
* @typeParam LinkResolverFunctionReturnType - Link resolver function return type.
|
|
65
64
|
* @typeParam Field - Link field or Prismic page to resolve to a URL.
|
|
66
65
|
* @param linkFieldOrDocument - Any kind of link field or a page to resolve.
|
|
67
66
|
* @param config - Configuration that determines the output of `asLink()`.
|
|
@@ -84,8 +83,7 @@ export const asLink: {
|
|
|
84
83
|
* Converts any type of link field or Prismic page to a URL.
|
|
85
84
|
*
|
|
86
85
|
* @deprecated Use object-style configuration instead.
|
|
87
|
-
* @typeParam LinkResolverFunctionReturnType - Link resolver function return
|
|
88
|
-
* type.
|
|
86
|
+
* @typeParam LinkResolverFunctionReturnType - Link resolver function return type.
|
|
89
87
|
* @typeParam Field - Link field or Prismic page to resolve to a URL.
|
|
90
88
|
* @param linkFieldOrDocument - Any kind of link field or a page to resolve.
|
|
91
89
|
* @param linkResolver - An optional link resolver function. Without it, you're expected to use
|
|
@@ -65,8 +65,7 @@ type AsLinkAttrsReturnType<
|
|
|
65
65
|
* If a resolved URL is external (i.e. starts with a protocol like `https://`), `rel` is returned as
|
|
66
66
|
* `"noreferrer"`.
|
|
67
67
|
*
|
|
68
|
-
* @typeParam LinkResolverFunctionReturnType - Link resolver function return
|
|
69
|
-
* type
|
|
68
|
+
* @typeParam LinkResolverFunctionReturnType - Link resolver function return type
|
|
70
69
|
* @typeParam Field - Link field or Prismic page to resolve to link attributes
|
|
71
70
|
* @param linkFieldOrDocument - Any kind of link field or a page to resolve
|
|
72
71
|
* @param config - Configuration that determines the output of `asLinkAttrs()`
|