@prismicio/client 7.23.0 → 7.23.1-canary.194986f
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 -4
- package/dist/WriteClient.d.cts +3 -5
- package/dist/WriteClient.d.cts.map +1 -1
- package/dist/WriteClient.d.ts +3 -5
- package/dist/WriteClient.d.ts.map +1 -1
- package/dist/WriteClient.js +3 -4
- 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 +1 -2
- package/dist/createClient.d.cts +1 -3
- package/dist/createClient.d.cts.map +1 -1
- package/dist/createClient.d.ts +1 -3
- package/dist/createClient.d.ts.map +1 -1
- package/dist/createClient.js +1 -2
- 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.d.cts +1 -3
- package/dist/helpers/asHTML.d.cts.map +1 -1
- package/dist/helpers/asHTML.d.ts +1 -3
- package/dist/helpers/asHTML.d.ts.map +1 -1
- package/dist/helpers/asHTML.js +2 -3
- 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.d.cts +2 -4
- package/dist/helpers/asLink.d.cts.map +1 -1
- package/dist/helpers/asLink.d.ts +2 -4
- package/dist/helpers/asLink.d.ts.map +1 -1
- package/dist/helpers/asLink.js +1 -2
- package/dist/helpers/asLinkAttrs.cjs +2 -3
- package/dist/helpers/asLinkAttrs.d.cts +2 -4
- package/dist/helpers/asLinkAttrs.d.cts.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +2 -4
- package/dist/helpers/asLinkAttrs.d.ts.map +1 -1
- package/dist/helpers/asLinkAttrs.js +2 -3
- 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.d.cts +2 -4
- package/dist/types/value/link.d.cts.map +1 -1
- package/dist/types/value/link.d.ts +2 -4
- package/dist/types/value/link.d.ts.map +1 -1
- package/dist/types/value/link.js +1 -2
- 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/lib/pLimit.ts +3 -3
- package/src/lib/throttledWarn.ts +3 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RichTextField } from "../types/value/richText.cjs";
|
|
2
|
-
//#region src/helpers/asText.d.ts
|
|
3
2
|
/** Configuration that determines the output of `asText()`. */
|
|
4
3
|
type AsTextConfig = {
|
|
5
4
|
/**
|
|
@@ -42,6 +41,5 @@ export declare const asText: {
|
|
|
42
41
|
*/
|
|
43
42
|
<Field extends RichTextField | null | undefined>(richTextField: Field, ...config: AsTextDeprecatedTupleConfig): AsTextReturnType<Field>;
|
|
44
43
|
};
|
|
45
|
-
//#endregion
|
|
46
44
|
export {};
|
|
47
45
|
//# sourceMappingURL=asText.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asText.d.cts","names":[],"sources":["../../src/helpers/asText.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asText.d.cts","names":[],"sources":["../../src/helpers/asText.ts"],"mappings":";;KAIK;;;;;;EAMJ;;;KAKI,+BAA+B;;KAG/B,iBAAiB,cAAc,oCAAoC,cAAc;qBAIzE;;;;;;;;;;;;;;;;GAgBX,cAAc,kCACd,eAAe,OACf,SAAS,eACP,iBAAiB;;;;;;;;;;;GAYnB,cAAc,kCACd,eAAe,UACZ,QAAQ,8BACT,iBAAiB"}
|
package/dist/helpers/asText.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RichTextField } from "../types/value/richText.js";
|
|
2
|
-
//#region src/helpers/asText.d.ts
|
|
3
2
|
/** Configuration that determines the output of `asText()`. */
|
|
4
3
|
type AsTextConfig = {
|
|
5
4
|
/**
|
|
@@ -42,6 +41,5 @@ export declare const asText: {
|
|
|
42
41
|
*/
|
|
43
42
|
<Field extends RichTextField | null | undefined>(richTextField: Field, ...config: AsTextDeprecatedTupleConfig): AsTextReturnType<Field>;
|
|
44
43
|
};
|
|
45
|
-
//#endregion
|
|
46
44
|
export {};
|
|
47
45
|
//# sourceMappingURL=asText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asText.d.ts","names":[],"sources":["../../src/helpers/asText.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asText.d.ts","names":[],"sources":["../../src/helpers/asText.ts"],"mappings":";;KAIK;;;;;;EAMJ;;;KAKI,+BAA+B;;KAG/B,iBAAiB,cAAc,oCAAoC,cAAc;qBAIzE;;;;;;;;;;;;;;;;GAgBX,cAAc,kCACd,eAAe,OACf,SAAS,eACP,iBAAiB;;;;;;;;;;;GAYnB,cAAc,kCACd,eAAe,UACZ,QAAQ,8BACT,iBAAiB"}
|
package/dist/helpers/asText.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { asText as asText$1 } from "../richtext/asText.js";
|
|
2
|
-
|
|
2
|
+
// src/helpers/asText.ts
|
|
3
3
|
const asText = (richTextField, ...configObjectOrTuple) => {
|
|
4
4
|
if (richTextField) {
|
|
5
5
|
const [configObjectOrSeparator] = configObjectOrTuple;
|
|
@@ -9,7 +9,6 @@ const asText = (richTextField, ...configObjectOrTuple) => {
|
|
|
9
9
|
return asText$1(richTextField, config.separator);
|
|
10
10
|
} else return null;
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { asText };
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=asText.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_link = require("../types/value/link.cjs");
|
|
2
|
-
|
|
2
|
+
// src/helpers/documentToLinkField.ts
|
|
3
3
|
/**
|
|
4
4
|
* Converts a document into a link field, this is useful when crawling the API for document links
|
|
5
5
|
*
|
|
@@ -21,7 +21,6 @@ const documentToLinkField = (prismicDocument) => {
|
|
|
21
21
|
...prismicDocument.data && Object.keys(prismicDocument.data).length > 0 ? { data: prismicDocument.data } : {}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
exports.documentToLinkField = documentToLinkField;
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=documentToLinkField.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.cjs";
|
|
2
2
|
import { PrismicDocument } from "../types/value/document.cjs";
|
|
3
|
-
//#region src/helpers/documentToLinkField.d.ts
|
|
4
3
|
type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
|
|
5
4
|
/**
|
|
6
5
|
* Converts a document into a link field, this is useful when crawling the API for document links
|
|
@@ -11,6 +10,5 @@ type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys
|
|
|
11
10
|
* @internal
|
|
12
11
|
*/
|
|
13
12
|
export declare const documentToLinkField: <TDocument extends SetOptional<PrismicDocument, "slugs">>(prismicDocument: TDocument) => FilledContentRelationshipField<TDocument["type"], TDocument["lang"], TDocument["data"]>;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
|
16
14
|
//# sourceMappingURL=documentToLinkField.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentToLinkField.d.cts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"documentToLinkField.d.cts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":";;KAIK,YAAY,GAAG,mBAAmB,KAAK,KAAK,GAAG,QAAQ,QAAQ,KAAK,GAAG;;;;;;;;;qBAU/D,sBAAuB,kBAAkB,YAAY,2BAAyB,iBACzE,cACf,+BAA+B,mBAAmB,mBAAmB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.js";
|
|
2
2
|
import { PrismicDocument } from "../types/value/document.js";
|
|
3
|
-
//#region src/helpers/documentToLinkField.d.ts
|
|
4
3
|
type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
|
|
5
4
|
/**
|
|
6
5
|
* Converts a document into a link field, this is useful when crawling the API for document links
|
|
@@ -11,6 +10,5 @@ type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys
|
|
|
11
10
|
* @internal
|
|
12
11
|
*/
|
|
13
12
|
export declare const documentToLinkField: <TDocument extends SetOptional<PrismicDocument, "slugs">>(prismicDocument: TDocument) => FilledContentRelationshipField<TDocument["type"], TDocument["lang"], TDocument["data"]>;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
|
16
14
|
//# sourceMappingURL=documentToLinkField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentToLinkField.d.ts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"documentToLinkField.d.ts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":";;KAIK,YAAY,GAAG,mBAAmB,KAAK,KAAK,GAAG,QAAQ,QAAQ,KAAK,GAAG;;;;;;;;;qBAU/D,sBAAuB,kBAAkB,YAAY,2BAAyB,iBACzE,cACf,+BAA+B,mBAAmB,mBAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LinkType } from "../types/value/link.js";
|
|
2
|
-
|
|
2
|
+
// src/helpers/documentToLinkField.ts
|
|
3
3
|
/**
|
|
4
4
|
* Converts a document into a link field, this is useful when crawling the API for document links
|
|
5
5
|
*
|
|
@@ -21,7 +21,6 @@ const documentToLinkField = (prismicDocument) => {
|
|
|
21
21
|
...prismicDocument.data && Object.keys(prismicDocument.data).length > 0 ? { data: prismicDocument.data } : {}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { documentToLinkField };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=documentToLinkField.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/helpers/isFilled.ts
|
|
2
2
|
var isFilled_exports = /* @__PURE__ */ require("../_virtual/_rolldown/runtime.cjs").__exportAll({
|
|
3
3
|
color: () => color,
|
|
4
4
|
contentRelationship: () => contentRelationship,
|
|
@@ -208,7 +208,6 @@ const group = (group) => {
|
|
|
208
208
|
const sliceZone = (slices) => {
|
|
209
209
|
return isNonNullish(slices) && isNonEmptyArray(slices);
|
|
210
210
|
};
|
|
211
|
-
//#endregion
|
|
212
211
|
exports.color = color;
|
|
213
212
|
exports.contentRelationship = contentRelationship;
|
|
214
213
|
exports.date = date;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ColorField } from "../types/value/color.cjs";
|
|
2
|
-
import { GroupField, NestedGroupField } from "../types/value/group.cjs";
|
|
3
|
-
import { SharedSlice } from "../types/value/sharedSlice.cjs";
|
|
4
|
-
import { Slice } from "../types/value/slice.cjs";
|
|
5
|
-
import { SliceZone } from "../types/value/sliceZone.cjs";
|
|
6
2
|
import { ContentRelationshipField, EmptyContentRelationshipField } from "../types/value/contentRelationship.cjs";
|
|
7
3
|
import { DateField } from "../types/value/date.cjs";
|
|
4
|
+
import { AnyOEmbed, EmbedField } from "../types/value/embed.cjs";
|
|
8
5
|
import { GeoPointField } from "../types/value/geoPoint.cjs";
|
|
6
|
+
import { GroupField, NestedGroupField } from "../types/value/group.cjs";
|
|
9
7
|
import { ImageField, ImageFieldImage } from "../types/value/image.cjs";
|
|
10
8
|
import { IntegrationField, IntegrationFieldData } from "../types/value/integration.cjs";
|
|
11
9
|
import { KeyTextField } from "../types/value/keyText.cjs";
|
|
12
|
-
import { LinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
13
10
|
import { LinkField } from "../types/value/link.cjs";
|
|
11
|
+
import { LinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
14
12
|
import { NumberField } from "../types/value/number.cjs";
|
|
13
|
+
import { RichTextField } from "../types/value/richText.cjs";
|
|
15
14
|
import { SelectField } from "../types/value/select.cjs";
|
|
15
|
+
import { SharedSlice } from "../types/value/sharedSlice.cjs";
|
|
16
|
+
import { Slice } from "../types/value/slice.cjs";
|
|
17
|
+
import { SliceZone } from "../types/value/sliceZone.cjs";
|
|
16
18
|
import { TableField } from "../types/value/table.cjs";
|
|
17
19
|
import { TimestampField } from "../types/value/timestamp.cjs";
|
|
18
20
|
import { TitleField } from "../types/value/title.cjs";
|
|
19
21
|
import { AnyRegularField, Repeatable } from "../types/value/types.cjs";
|
|
20
|
-
import { AnyOEmbed, EmbedField } from "../types/value/embed.cjs";
|
|
21
|
-
import { RichTextField } from "../types/value/richText.cjs";
|
|
22
22
|
declare namespace isFilled_d_exports {
|
|
23
23
|
export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
|
|
24
24
|
}
|
|
@@ -168,6 +168,5 @@ export declare const group: <Fields extends Record<string, AnyRegularField | Nes
|
|
|
168
168
|
* otherwise.
|
|
169
169
|
*/
|
|
170
170
|
export declare const sliceZone: <Slices extends Slice | SharedSlice>(slices: SliceZone<Slices> | null | undefined) => slices is SliceZone<Slices, "filled">;
|
|
171
|
-
//#endregion
|
|
172
171
|
export { isFilled_d_exports };
|
|
173
172
|
//# sourceMappingURL=isFilled.d.cts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ColorField } from "../types/value/color.js";
|
|
2
|
-
import { GroupField, NestedGroupField } from "../types/value/group.js";
|
|
3
|
-
import { SharedSlice } from "../types/value/sharedSlice.js";
|
|
4
|
-
import { Slice } from "../types/value/slice.js";
|
|
5
|
-
import { SliceZone } from "../types/value/sliceZone.js";
|
|
6
2
|
import { ContentRelationshipField, EmptyContentRelationshipField } from "../types/value/contentRelationship.js";
|
|
7
3
|
import { DateField } from "../types/value/date.js";
|
|
4
|
+
import { AnyOEmbed, EmbedField } from "../types/value/embed.js";
|
|
8
5
|
import { GeoPointField } from "../types/value/geoPoint.js";
|
|
6
|
+
import { GroupField, NestedGroupField } from "../types/value/group.js";
|
|
9
7
|
import { ImageField, ImageFieldImage } from "../types/value/image.js";
|
|
10
8
|
import { IntegrationField, IntegrationFieldData } from "../types/value/integration.js";
|
|
11
9
|
import { KeyTextField } from "../types/value/keyText.js";
|
|
12
|
-
import { LinkToMediaField } from "../types/value/linkToMedia.js";
|
|
13
10
|
import { LinkField } from "../types/value/link.js";
|
|
11
|
+
import { LinkToMediaField } from "../types/value/linkToMedia.js";
|
|
14
12
|
import { NumberField } from "../types/value/number.js";
|
|
13
|
+
import { RichTextField } from "../types/value/richText.js";
|
|
15
14
|
import { SelectField } from "../types/value/select.js";
|
|
15
|
+
import { SharedSlice } from "../types/value/sharedSlice.js";
|
|
16
|
+
import { Slice } from "../types/value/slice.js";
|
|
17
|
+
import { SliceZone } from "../types/value/sliceZone.js";
|
|
16
18
|
import { TableField } from "../types/value/table.js";
|
|
17
19
|
import { TimestampField } from "../types/value/timestamp.js";
|
|
18
20
|
import { TitleField } from "../types/value/title.js";
|
|
19
21
|
import { AnyRegularField, Repeatable } from "../types/value/types.js";
|
|
20
|
-
import { AnyOEmbed, EmbedField } from "../types/value/embed.js";
|
|
21
|
-
import { RichTextField } from "../types/value/richText.js";
|
|
22
22
|
declare namespace isFilled_d_exports {
|
|
23
23
|
export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
|
|
24
24
|
}
|
|
@@ -168,6 +168,5 @@ export declare const group: <Fields extends Record<string, AnyRegularField | Nes
|
|
|
168
168
|
* otherwise.
|
|
169
169
|
*/
|
|
170
170
|
export declare const sliceZone: <Slices extends Slice | SharedSlice>(slices: SliceZone<Slices> | null | undefined) => slices is SliceZone<Slices, "filled">;
|
|
171
|
-
//#endregion
|
|
172
171
|
export { isFilled_d_exports };
|
|
173
172
|
//# sourceMappingURL=isFilled.d.ts.map
|
package/dist/helpers/isFilled.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
|
|
2
|
+
// src/helpers/isFilled.ts
|
|
3
3
|
var isFilled_exports = /* @__PURE__ */ __exportAll({
|
|
4
4
|
color: () => color,
|
|
5
5
|
contentRelationship: () => contentRelationship,
|
|
@@ -209,7 +209,6 @@ const group = (group) => {
|
|
|
209
209
|
const sliceZone = (slices) => {
|
|
210
210
|
return isNonNullish(slices) && isNonEmptyArray(slices);
|
|
211
211
|
};
|
|
212
|
-
//#endregion
|
|
213
212
|
export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, isFilled_exports, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
|
|
214
213
|
|
|
215
214
|
//# sourceMappingURL=isFilled.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/helpers/mapSliceZone.ts
|
|
2
2
|
/**
|
|
3
3
|
* Transforms a Slice Zone using a set of mapping functions, one for each type of Slice. Mapping
|
|
4
4
|
* functions can be async.
|
|
@@ -44,7 +44,6 @@ function mapSliceZone(sliceZone, mappers, context) {
|
|
|
44
44
|
};
|
|
45
45
|
}));
|
|
46
46
|
}
|
|
47
|
-
//#endregion
|
|
48
47
|
exports.mapSliceZone = mapSliceZone;
|
|
49
48
|
|
|
50
49
|
//# sourceMappingURL=mapSliceZone.cjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Slice } from "../types/value/slice.cjs";
|
|
2
|
-
//#region src/helpers/mapSliceZone.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Convert a value to a lazyily loaded module. This is useful when using functions like `() =>
|
|
5
4
|
* import("...")`.
|
|
@@ -108,6 +107,5 @@ type MapSliceLike<TSliceLike extends SliceLike<any>, TSliceMappers extends Slice
|
|
|
108
107
|
* ```
|
|
109
108
|
*/
|
|
110
109
|
export declare function mapSliceZone<TSliceLike extends SliceLike, TSliceMappers extends SliceMappers<TSliceLike, TContext>, TContext = unknown>(sliceZone: SliceZoneLike<TSliceLike>, mappers: TSliceMappers, context?: TContext): Promise<MapSliceLike<TSliceLike, TSliceMappers>[]>;
|
|
111
|
-
//#endregion
|
|
112
110
|
export {};
|
|
113
111
|
//# sourceMappingURL=mapSliceZone.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapSliceZone.d.cts","names":[],"sources":["../../src/helpers/mapSliceZone.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mapSliceZone.d.cts","names":[],"sources":["../../src/helpers/mapSliceZone.ts"],"mappings":";;;;;KAMK,WAAW,WAAW,QAAQ;EAAM,SAAS;;;KAG7C,gBAAgB,KAAK,IAAI,WAAW;KAGpC,kBAAkB;;;;;;KAOlB,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;KASC,gBAAgB,sCAAsC,KAC1D,MAAM;;;;;;;KAUF,iBAAiB;EACrB,MAAM,MAAM;;;;;;;;;;KAWR,UAAU,sCACZ,gBAAgB,cAChB,iBAAiB;;;;;;;;;KAUf,cAAc,eAAe,YAAY,sBAAsB;;;;;KAM/D;;;;;;EAMJ;;;;;;;;;KAUI,gBAAgB,eAAe,YAAY,WAAW;;EAE1D,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;KAIL,aAAa,eAAe,YAAY,WAAW,yBACtD,KAAK,iBAAiB,WAAW,gBACjC,YACC,QAAQ,QAAQ,UAAU,UAG1B;;;;;YASS,YACX,eAAe,YAAY,WAC3B,qBAAqB,6CAClB,4CAGH,uBACI,MAAM,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;;KAGnE,6BAEJ,qBAAqB,wBAAwB,WAAW,gBAExD,qBAAqB,WAAW,eAC7B,QAAQ,WAAW;EACnB;IAEC,QAAQ,WAAW,4BACnB,QAAQ,WAAW,iBACpB;;KAGC,aAEJ,mBAAmB,gBACnB,sBAAsB,aACrB,oBAIE,mBAAmB,QACpB,uCAAuC,gBACtC,cAAc,kCAAkC,cAC/C,gBAAgB,4BAChB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,+BAC9D,aACD,aACD,mBAAmB,mBAClB,iCAAiC,gBAChC,cAAc,4BAA4B,cACzC,iBAAiB,sBACjB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,yBAC9D,aACD;;;;;;;;;;;;;;;;wBAkBW,aACf,mBAAmB,WACnB,sBAAsB,aAAa,YAAY,WAC/C,oBAEA,WAAW,cAAc,aACzB,SAAS,eACT,UAAU,WACR,QAAQ,aAAa,YAAY"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Slice } from "../types/value/slice.js";
|
|
2
|
-
//#region src/helpers/mapSliceZone.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Convert a value to a lazyily loaded module. This is useful when using functions like `() =>
|
|
5
4
|
* import("...")`.
|
|
@@ -108,6 +107,5 @@ type MapSliceLike<TSliceLike extends SliceLike<any>, TSliceMappers extends Slice
|
|
|
108
107
|
* ```
|
|
109
108
|
*/
|
|
110
109
|
export declare function mapSliceZone<TSliceLike extends SliceLike, TSliceMappers extends SliceMappers<TSliceLike, TContext>, TContext = unknown>(sliceZone: SliceZoneLike<TSliceLike>, mappers: TSliceMappers, context?: TContext): Promise<MapSliceLike<TSliceLike, TSliceMappers>[]>;
|
|
111
|
-
//#endregion
|
|
112
110
|
export {};
|
|
113
111
|
//# sourceMappingURL=mapSliceZone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapSliceZone.d.ts","names":[],"sources":["../../src/helpers/mapSliceZone.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mapSliceZone.d.ts","names":[],"sources":["../../src/helpers/mapSliceZone.ts"],"mappings":";;;;;KAMK,WAAW,WAAW,QAAQ;EAAM,SAAS;;;KAG7C,gBAAgB,KAAK,IAAI,WAAW;KAGpC,kBAAkB;;;;;;KAOlB,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;KASC,gBAAgB,sCAAsC,KAC1D,MAAM;;;;;;;KAUF,iBAAiB;EACrB,MAAM,MAAM;;;;;;;;;;KAWR,UAAU,sCACZ,gBAAgB,cAChB,iBAAiB;;;;;;;;;KAUf,cAAc,eAAe,YAAY,sBAAsB;;;;;KAM/D;;;;;;EAMJ;;;;;;;;;KAUI,gBAAgB,eAAe,YAAY,WAAW;;EAE1D,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;KAIL,aAAa,eAAe,YAAY,WAAW,yBACtD,KAAK,iBAAiB,WAAW,gBACjC,YACC,QAAQ,QAAQ,UAAU,UAG1B;;;;;YASS,YACX,eAAe,YAAY,WAC3B,qBAAqB,6CAClB,4CAGH,uBACI,MAAM,gBAAgB,QAAQ,cAAc,eAAe,QAAQ;;KAGnE,6BAEJ,qBAAqB,wBAAwB,WAAW,gBAExD,qBAAqB,WAAW,eAC7B,QAAQ,WAAW;EACnB;IAEC,QAAQ,WAAW,4BACnB,QAAQ,WAAW,iBACpB;;KAGC,aAEJ,mBAAmB,gBACnB,sBAAsB,aACrB,oBAIE,mBAAmB,QACpB,uCAAuC,gBACtC,cAAc,kCAAkC,cAC/C,gBAAgB,4BAChB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,+BAC9D,aACD,aACD,mBAAmB,mBAClB,iCAAiC,gBAChC,cAAc,4BAA4B,cACzC,iBAAiB,sBACjB,kBACA,QAAQ,WAAW,6BAA6B,cAAc,yBAC9D,aACD;;;;;;;;;;;;;;;;wBAkBW,aACf,mBAAmB,WACnB,sBAAsB,aAAa,YAAY,WAC/C,oBAEA,WAAW,cAAc,aACzB,SAAS,eACT,UAAU,WACR,QAAQ,aAAa,YAAY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/helpers/mapSliceZone.ts
|
|
2
2
|
/**
|
|
3
3
|
* Transforms a Slice Zone using a set of mapping functions, one for each type of Slice. Mapping
|
|
4
4
|
* functions can be async.
|
|
@@ -44,7 +44,6 @@ function mapSliceZone(sliceZone, mappers, context) {
|
|
|
44
44
|
};
|
|
45
45
|
}));
|
|
46
46
|
}
|
|
47
|
-
//#endregion
|
|
48
47
|
export { mapSliceZone };
|
|
49
48
|
|
|
50
49
|
//# sourceMappingURL=mapSliceZone.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -2,48 +2,47 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_filter = require("./filter.cjs");
|
|
3
3
|
const require_mapSliceZone = require("./helpers/mapSliceZone.cjs");
|
|
4
4
|
const require_richText = require("./types/value/richText.cjs");
|
|
5
|
-
const require_buildQueryURL = require("./buildQueryURL.cjs");
|
|
6
|
-
const require_errors = require("./errors.cjs");
|
|
7
|
-
const require_isRepositoryName = require("./isRepositoryName.cjs");
|
|
8
|
-
const require_getRepositoryEndpoint = require("./getRepositoryEndpoint.cjs");
|
|
9
|
-
const require_getRepositoryName = require("./getRepositoryName.cjs");
|
|
10
|
-
const require_link = require("./types/value/link.cjs");
|
|
11
|
-
const require_documentToLinkField = require("./helpers/documentToLinkField.cjs");
|
|
12
|
-
const require_asLink = require("./helpers/asLink.cjs");
|
|
13
|
-
const require_isRepositoryEndpoint = require("./isRepositoryEndpoint.cjs");
|
|
14
|
-
const require_cookie = require("./cookie.cjs");
|
|
15
|
-
const require_Client = require("./Client.cjs");
|
|
16
5
|
const require_createClient = require("./createClient.cjs");
|
|
17
|
-
const
|
|
18
|
-
const require_Asset = require("./types/migration/Asset.cjs");
|
|
19
|
-
const require_Document = require("./types/migration/Document.cjs");
|
|
20
|
-
const require_WriteClient = require("./WriteClient.cjs");
|
|
6
|
+
const require_Client = require("./Client.cjs");
|
|
21
7
|
const require_createWriteClient = require("./createWriteClient.cjs");
|
|
22
|
-
const
|
|
8
|
+
const require_WriteClient = require("./WriteClient.cjs");
|
|
23
9
|
const require_createMigration = require("./createMigration.cjs");
|
|
10
|
+
const require_Migration = require("./Migration.cjs");
|
|
11
|
+
const require_getRepositoryEndpoint = require("./getRepositoryEndpoint.cjs");
|
|
12
|
+
const require_getRepositoryName = require("./getRepositoryName.cjs");
|
|
24
13
|
const require_getGraphQLEndpoint = require("./getGraphQLEndpoint.cjs");
|
|
14
|
+
const require_isRepositoryName = require("./isRepositoryName.cjs");
|
|
15
|
+
const require_isRepositoryEndpoint = require("./isRepositoryEndpoint.cjs");
|
|
16
|
+
const require_buildQueryURL = require("./buildQueryURL.cjs");
|
|
25
17
|
const require_getToolbarSrc = require("./getToolbarSrc.cjs");
|
|
18
|
+
const require_cookie = require("./cookie.cjs");
|
|
26
19
|
const require_asDate = require("./helpers/asDate.cjs");
|
|
20
|
+
const require_asLink = require("./helpers/asLink.cjs");
|
|
27
21
|
const require_asLinkAttrs = require("./helpers/asLinkAttrs.cjs");
|
|
28
22
|
const require_asText = require("./helpers/asText.cjs");
|
|
29
23
|
const require_asHTML = require("./helpers/asHTML.cjs");
|
|
30
24
|
const require_asImageSrc = require("./helpers/asImageSrc.cjs");
|
|
31
25
|
const require_asImageWidthSrcSet = require("./helpers/asImageWidthSrcSet.cjs");
|
|
32
26
|
const require_asImagePixelDensitySrcSet = require("./helpers/asImagePixelDensitySrcSet.cjs");
|
|
27
|
+
const require_isFilled = require("./helpers/isFilled.cjs");
|
|
28
|
+
const require_documentToLinkField = require("./helpers/documentToLinkField.cjs");
|
|
29
|
+
const require_errors = require("./errors.cjs");
|
|
30
|
+
const require_link = require("./types/value/link.cjs");
|
|
33
31
|
const require_embed = require("./types/value/embed.cjs");
|
|
34
32
|
const require_types = require("./types/model/types.cjs");
|
|
35
33
|
const require_link$1 = require("./types/model/link.cjs");
|
|
36
34
|
const require_sliceZone = require("./types/model/sliceZone.cjs");
|
|
37
35
|
const require_slice = require("./types/model/slice.cjs");
|
|
36
|
+
const require_Document = require("./types/migration/Document.cjs");
|
|
37
|
+
const require_Asset = require("./types/migration/Asset.cjs");
|
|
38
38
|
const require_types$1 = require("./types/webhook/types.cjs");
|
|
39
|
-
|
|
39
|
+
// src/index.ts
|
|
40
40
|
/** @deprecated Renamed to `filter` */
|
|
41
41
|
const predicate = require_filter.filter;
|
|
42
42
|
/** @deprecated Renamed to `mapSliceZone` */
|
|
43
43
|
const unstable_mapSliceZone = require_mapSliceZone.mapSliceZone;
|
|
44
44
|
/** @deprecated Use {@link RichTextNodeType} instead. */
|
|
45
45
|
const Element = require_richText.RichTextNodeType;
|
|
46
|
-
//#endregion
|
|
47
46
|
exports.Client = require_Client.Client;
|
|
48
47
|
exports.CustomTypeModelFieldType = require_types.CustomTypeModelFieldType;
|
|
49
48
|
exports.CustomTypeModelLinkSelectType = require_link$1.CustomTypeModelLinkSelectType;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,78 +1,26 @@
|
|
|
1
1
|
import { filter } from "./filter.cjs";
|
|
2
|
-
import { BooleanField } from "./types/value/boolean.cjs";
|
|
3
|
-
import { ColorField } from "./types/value/color.cjs";
|
|
4
|
-
import { GroupField, NestedGroupField } from "./types/value/group.cjs";
|
|
5
|
-
import { SharedSliceVariation } from "./types/value/sharedSliceVariation.cjs";
|
|
6
|
-
import { SharedSlice } from "./types/value/sharedSlice.cjs";
|
|
7
|
-
import { Slice } from "./types/value/slice.cjs";
|
|
8
|
-
import { SliceZone } from "./types/value/sliceZone.cjs";
|
|
9
|
-
import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.cjs";
|
|
10
|
-
import { DateField } from "./types/value/date.cjs";
|
|
11
|
-
import { GeoPointField } from "./types/value/geoPoint.cjs";
|
|
12
|
-
import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.cjs";
|
|
13
|
-
import { IntegrationField, IntegrationFieldData } from "./types/value/integration.cjs";
|
|
14
|
-
import { KeyTextField } from "./types/value/keyText.cjs";
|
|
15
|
-
import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.cjs";
|
|
16
|
-
import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.cjs";
|
|
17
|
-
import { NumberField } from "./types/value/number.cjs";
|
|
18
|
-
import { SelectField } from "./types/value/select.cjs";
|
|
19
|
-
import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.cjs";
|
|
20
|
-
import { TimestampField } from "./types/value/timestamp.cjs";
|
|
21
|
-
import { TitleField } from "./types/value/title.cjs";
|
|
22
|
-
import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.cjs";
|
|
23
|
-
import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.cjs";
|
|
24
|
-
import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.cjs";
|
|
25
|
-
import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.cjs";
|
|
26
|
-
import { LinkResolverFunction, asLink } from "./helpers/asLink.cjs";
|
|
27
2
|
import { HTMLRichTextFunctionSerializer, HTMLRichTextMapSerializer, HTMLRichTextSerializer, asHTML } from "./helpers/asHTML.cjs";
|
|
28
3
|
import { SliceMapper, mapSliceZone } from "./helpers/mapSliceZone.cjs";
|
|
29
|
-
import { CustomTypeModelBooleanField } from "./types/model/boolean.cjs";
|
|
30
|
-
import { CustomTypeModelColorField } from "./types/model/color.cjs";
|
|
31
|
-
import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.cjs";
|
|
32
|
-
import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.cjs";
|
|
33
|
-
import { CustomTypeModelDateField } from "./types/model/date.cjs";
|
|
34
|
-
import { CustomTypeModelEmbedField } from "./types/model/embed.cjs";
|
|
35
|
-
import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.cjs";
|
|
36
|
-
import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.cjs";
|
|
37
|
-
import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.cjs";
|
|
38
|
-
import { CustomTypeModelKeyTextField } from "./types/model/keyText.cjs";
|
|
39
|
-
import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.cjs";
|
|
40
|
-
import { CustomTypeModelNumberField } from "./types/model/number.cjs";
|
|
41
|
-
import { CustomTypeModelRangeField } from "./types/model/range.cjs";
|
|
42
|
-
import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.cjs";
|
|
43
|
-
import { CustomTypeModelSelectField } from "./types/model/select.cjs";
|
|
44
|
-
import { CustomTypeModelSeparatorField } from "./types/model/separator.cjs";
|
|
45
|
-
import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.cjs";
|
|
46
|
-
import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.cjs";
|
|
47
|
-
import { CustomTypeModelTableField } from "./types/model/table.cjs";
|
|
48
|
-
import { CustomTypeModelTimestampField } from "./types/model/timestamp.cjs";
|
|
49
|
-
import { CustomTypeModelTitleField } from "./types/model/title.cjs";
|
|
50
|
-
import { CustomTypeModelUIDField } from "./types/model/uid.cjs";
|
|
51
|
-
import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.cjs";
|
|
52
4
|
import { CustomTypeModelIntegrationField } from "./types/model/integration.cjs";
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { Query } from "./types/api/query.cjs";
|
|
56
|
-
import { Ref } from "./types/api/ref.cjs";
|
|
57
|
-
import { Form, FormField, Language, Repository } from "./types/api/repository.cjs";
|
|
58
|
-
import { Client, ClientConfig, HttpRequestLike } from "./Client.cjs";
|
|
5
|
+
import { IntegrationField, IntegrationFieldData } from "./types/value/integration.cjs";
|
|
6
|
+
import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.cjs";
|
|
59
7
|
import { CreateClient, createClient } from "./createClient.cjs";
|
|
60
|
-
import {
|
|
61
|
-
import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.cjs";
|
|
62
|
-
import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.cjs";
|
|
63
|
-
import { Migration } from "./Migration.cjs";
|
|
64
|
-
import { PublishMigrationReleaseResult } from "./types/api/migration/release.cjs";
|
|
65
|
-
import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.cjs";
|
|
8
|
+
import { Client, ClientConfig, HttpRequestLike } from "./Client.cjs";
|
|
66
9
|
import { CreateWriteClient, createWriteClient } from "./createWriteClient.cjs";
|
|
10
|
+
import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.cjs";
|
|
67
11
|
import { CreateMigration, createMigration } from "./createMigration.cjs";
|
|
12
|
+
import { Migration } from "./Migration.cjs";
|
|
68
13
|
import { getRepositoryEndpoint } from "./getRepositoryEndpoint.cjs";
|
|
69
14
|
import { getRepositoryName } from "./getRepositoryName.cjs";
|
|
70
15
|
import { getGraphQLEndpoint } from "./getGraphQLEndpoint.cjs";
|
|
71
16
|
import { isRepositoryName } from "./isRepositoryName.cjs";
|
|
72
17
|
import { isRepositoryEndpoint } from "./isRepositoryEndpoint.cjs";
|
|
18
|
+
import { BuildQueryURLArgs, Ordering, QueryParams, Route, buildQueryURL } from "./buildQueryURL.cjs";
|
|
73
19
|
import { getToolbarSrc } from "./getToolbarSrc.cjs";
|
|
74
20
|
import { cookie_d_exports } from "./cookie.cjs";
|
|
21
|
+
import { AbortSignalLike, FetchLike, RequestInitLike, ResponseLike } from "./lib/request.cjs";
|
|
75
22
|
import { asDate } from "./helpers/asDate.cjs";
|
|
23
|
+
import { LinkResolverFunction, asLink } from "./helpers/asLink.cjs";
|
|
76
24
|
import { AsLinkAttrsConfig, asLinkAttrs } from "./helpers/asLinkAttrs.cjs";
|
|
77
25
|
import { asText } from "./helpers/asText.cjs";
|
|
78
26
|
import { asImageSrc } from "./helpers/asImageSrc.cjs";
|
|
@@ -81,16 +29,67 @@ import { asImagePixelDensitySrcSet } from "./helpers/asImagePixelDensitySrcSet.c
|
|
|
81
29
|
import { isFilled_d_exports } from "./helpers/isFilled.cjs";
|
|
82
30
|
import { documentToLinkField } from "./helpers/documentToLinkField.cjs";
|
|
83
31
|
import { ForbiddenError, InvalidDataError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.cjs";
|
|
32
|
+
import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.cjs";
|
|
33
|
+
import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.cjs";
|
|
34
|
+
import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.cjs";
|
|
35
|
+
import { TitleField } from "./types/value/title.cjs";
|
|
36
|
+
import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.cjs";
|
|
37
|
+
import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.cjs";
|
|
38
|
+
import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.cjs";
|
|
39
|
+
import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.cjs";
|
|
40
|
+
import { BooleanField } from "./types/value/boolean.cjs";
|
|
41
|
+
import { ColorField } from "./types/value/color.cjs";
|
|
42
|
+
import { DateField } from "./types/value/date.cjs";
|
|
43
|
+
import { KeyTextField } from "./types/value/keyText.cjs";
|
|
44
|
+
import { NumberField } from "./types/value/number.cjs";
|
|
45
|
+
import { SelectField } from "./types/value/select.cjs";
|
|
46
|
+
import { TimestampField } from "./types/value/timestamp.cjs";
|
|
47
|
+
import { GeoPointField } from "./types/value/geoPoint.cjs";
|
|
48
|
+
import { GroupField, NestedGroupField } from "./types/value/group.cjs";
|
|
49
|
+
import { SliceZone } from "./types/value/sliceZone.cjs";
|
|
50
|
+
import { Slice } from "./types/value/slice.cjs";
|
|
51
|
+
import { SharedSlice } from "./types/value/sharedSlice.cjs";
|
|
52
|
+
import { SharedSliceVariation } from "./types/value/sharedSliceVariation.cjs";
|
|
53
|
+
import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.cjs";
|
|
54
|
+
import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.cjs";
|
|
55
|
+
import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.cjs";
|
|
56
|
+
import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.cjs";
|
|
57
|
+
import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.cjs";
|
|
84
58
|
import { CustomTypeModel, CustomTypeModelDefinition, CustomTypeModelTab } from "./types/model/customType.cjs";
|
|
85
|
-
import {
|
|
59
|
+
import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.cjs";
|
|
60
|
+
import { CustomTypeModelTitleField } from "./types/model/title.cjs";
|
|
61
|
+
import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.cjs";
|
|
62
|
+
import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.cjs";
|
|
63
|
+
import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.cjs";
|
|
64
|
+
import { CustomTypeModelEmbedField } from "./types/model/embed.cjs";
|
|
65
|
+
import { CustomTypeModelBooleanField } from "./types/model/boolean.cjs";
|
|
66
|
+
import { CustomTypeModelColorField } from "./types/model/color.cjs";
|
|
67
|
+
import { CustomTypeModelDateField } from "./types/model/date.cjs";
|
|
68
|
+
import { CustomTypeModelKeyTextField } from "./types/model/keyText.cjs";
|
|
69
|
+
import { CustomTypeModelNumberField } from "./types/model/number.cjs";
|
|
70
|
+
import { CustomTypeModelSelectField } from "./types/model/select.cjs";
|
|
71
|
+
import { CustomTypeModelTimestampField } from "./types/model/timestamp.cjs";
|
|
72
|
+
import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.cjs";
|
|
73
|
+
import { CustomTypeModelTableField } from "./types/model/table.cjs";
|
|
74
|
+
import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.cjs";
|
|
86
75
|
import { SharedSliceModel } from "./types/model/sharedSlice.cjs";
|
|
76
|
+
import { SharedSliceModelVariation } from "./types/model/sharedSliceVariation.cjs";
|
|
77
|
+
import { CustomTypeModelUIDField } from "./types/model/uid.cjs";
|
|
78
|
+
import { CustomTypeModelRangeField } from "./types/model/range.cjs";
|
|
79
|
+
import { CustomTypeModelSeparatorField } from "./types/model/separator.cjs";
|
|
80
|
+
import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.cjs";
|
|
81
|
+
import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.cjs";
|
|
82
|
+
import { MigrationContentRelationship } from "./types/migration/ContentRelationship.cjs";
|
|
83
|
+
import { Query } from "./types/api/query.cjs";
|
|
84
|
+
import { PublishMigrationReleaseResult } from "./types/api/migration/release.cjs";
|
|
85
|
+
import { Ref } from "./types/api/ref.cjs";
|
|
87
86
|
import { Release } from "./types/api/release.cjs";
|
|
87
|
+
import { Form, FormField, Language, Repository } from "./types/api/repository.cjs";
|
|
88
88
|
import { Tags } from "./types/api/tags.cjs";
|
|
89
89
|
import { IntegrationAPIItem, IntegrationAPIResults } from "./types/api/integration.cjs";
|
|
90
|
+
import { WebhookBody, WebhookType } from "./types/webhook/types.cjs";
|
|
90
91
|
import { WebhookBodyAPIUpdate } from "./types/webhook/apiUpdate.cjs";
|
|
91
92
|
import { WebhookBodyTestTrigger } from "./types/webhook/testTrigger.cjs";
|
|
92
|
-
import { WebhookBody, WebhookType } from "./types/webhook/types.cjs";
|
|
93
|
-
//#region src/index.d.ts
|
|
94
93
|
/** @deprecated Renamed to `filter` */
|
|
95
94
|
declare const predicate: {
|
|
96
95
|
at: (path: string, value: string | number | boolean | string[] | Date) => string;
|
|
@@ -154,6 +153,5 @@ declare const Element: {
|
|
|
154
153
|
type IntegrationFields = IntegrationField;
|
|
155
154
|
/** @deprecated Renamed to `CustomTypeModelIntegrationField`. */
|
|
156
155
|
type CustomTypeModelIntegrationFieldsField = CustomTypeModelIntegrationField;
|
|
157
|
-
//#endregion
|
|
158
156
|
export { type AbortSignalLike, type AlternateLanguage, type AnyOEmbed, type AnyRegularField, type AnySlicePrimaryField, type AsLinkAttrsConfig, type BooleanField, type BuildQueryURLArgs, Client, type ClientConfig, type ColorField, type ContentRelationshipField, type CreateClient, type CreateMigration, type CreateWriteClient, type CustomTypeModel, type CustomTypeModelBooleanField, type CustomTypeModelColorField, type CustomTypeModelContentRelationshipField, type CustomTypeModelDateField, type CustomTypeModelDefinition, type CustomTypeModelEmbedField, type CustomTypeModelFetchContentRelationshipLevel1, type CustomTypeModelFetchCustomTypeLevel1, type CustomTypeModelFetchCustomTypeLevel2, type CustomTypeModelFetchGroupLevel1, type CustomTypeModelFetchGroupLevel2, type CustomTypeModelField, type CustomTypeModelFieldForGroup, type CustomTypeModelFieldForNestedGroup, type CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType, type CustomTypeModelGeoPointField, type CustomTypeModelGroupField, type CustomTypeModelImageConstraint, type CustomTypeModelImageField, type CustomTypeModelImageThumbnail, type CustomTypeModelIntegrationField, CustomTypeModelIntegrationFieldsField, type CustomTypeModelKeyTextField, type CustomTypeModelLegacySlice, type CustomTypeModelLinkField, CustomTypeModelLinkSelectType, type CustomTypeModelLinkToMediaField, type CustomTypeModelNestedGroupField, type CustomTypeModelNumberField, type CustomTypeModelRangeField, type CustomTypeModelRichTextField, type CustomTypeModelRichTextMultiField, type CustomTypeModelRichTextSingleField, type CustomTypeModelSelectField, type CustomTypeModelSeparatorField, type CustomTypeModelSharedSlice, type CustomTypeModelSlice, CustomTypeModelSliceDisplay, type CustomTypeModelSliceLabel, CustomTypeModelSliceType, type CustomTypeModelSliceZoneField, type CustomTypeModelTab, type CustomTypeModelTableField, type CustomTypeModelTimestampField, type CustomTypeModelTitleField, type CustomTypeModelUIDField, type DateField, Element, type EmbedField, type EmptyImageFieldImage, type EmptyLinkField, type ExistingPrismicDocument, type FetchLike, type FieldState, type FilledContentRelationshipField, type FilledImageFieldImage, type FilledLinkToMediaField, type FilledLinkToWebField, ForbiddenError, type Form, type FormField, type GeoPointField, type GroupField, type HTMLFunctionSerializer, type HTMLMapSerializer, type HTMLRichTextFunctionSerializer, type HTMLRichTextMapSerializer, type HTMLRichTextSerializer, type HttpRequestLike, type ImageField, type ImageFieldImage, type InjectMigrationSpecificTypes, type IntegrationAPIItem, type IntegrationAPIResults, type IntegrationField, type IntegrationFieldData, type IntegrationFields, InvalidDataError, type KeyTextField, type Language, type LinkField, type LinkOEmbed, type LinkResolverFunction, type LinkToMediaField, LinkType, type MigrateReporterEvents, Migration, type MigrationContentRelationship, type MigrationImage, type MigrationLinkToMedia, type MigrationRTImageNode, type NestedGroupField, NotFoundError, type NumberField, type OEmbedExtra, OEmbedType, type Ordering, ParsingError, type PendingPrismicDocument, type PhotoOEmbed, PreviewTokenExpiredError, type PrismicDocument, type PrismicDocumentHeader, type PrismicDocumentWithUID, type PrismicDocumentWithoutUID, PrismicError, PrismicMigrationAsset, PrismicMigrationDocument, type PublishMigrationReleaseResult, type Query, type QueryParams, type RTAnyNode, type RTBlockNode, type RTEmNode, type RTEmbedNode, type RTHeading1Node, type RTHeading2Node, type RTHeading3Node, type RTHeading4Node, type RTHeading5Node, type RTHeading6Node, type RTImageNode, type RTInlineNode, type RTLabelNode, type RTLinkNode, type RTListItemNode, type RTListNode, type RTNode, type RTOListItemNode, type RTOListNode, type RTParagraphNode, type RTPreformattedNode, type RTSpanNode, type RTSpanNodeBase, type RTStrongNode, type RTTextNode, type RTTextNodeBase, type Ref, RefExpiredError, RefNotFoundError, type Release, type Repeatable, type Repository, RepositoryNotFoundError, type RequestInitLike, type ResponseLike, type RichOEmbed, type RichTextField, RichTextNodeType, type RichTextNodeTypes, type Route, type SelectField, type SharedSlice, type SharedSliceModel, type SharedSliceModelVariation, type SharedSliceVariation, type Slice, type SliceMapper, type SliceZone, type TableField, type TableFieldBody, type TableFieldBodyRow, type TableFieldDataCell, type TableFieldHead, type TableFieldHeadRow, type TableFieldHeaderCell, type Tags, type TimestampField, type TitleField, type VideoOEmbed, type WebhookBody, type WebhookBodyAPIUpdate, type WebhookBodyTestTrigger, WebhookType, WriteClient, type WriteClientConfig, asDate, asHTML, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet, asLink, asLinkAttrs, asText, buildQueryURL, cookie_d_exports as cookie, createClient, createMigration, createWriteClient, documentToLinkField, filter, getGraphQLEndpoint, getRepositoryEndpoint, getRepositoryName, getToolbarSrc, isFilled_d_exports as isFilled, isRepositoryEndpoint, isRepositoryName, mapSliceZone, predicate, unstable_mapSliceZone };
|
|
159
157
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BA,8BAAqB;;KAWtB,oBAAoB;;KAEpB,yBAAyB;;cAiCxB;;;;;;;;;;;;;;;;;;;;;;KAiGD,oBAAoB;;KAoEpB,wCAAwC"}
|