@prismicio/client 7.22.3 → 7.23.0-canary.35b4a42
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 +3 -4
- package/dist/Client.d.cts.map +1 -1
- package/dist/Client.d.ts +3 -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 +5 -6
- package/dist/Migration.d.cts.map +1 -1
- package/dist/Migration.d.ts +5 -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 +4 -5
- package/dist/WriteClient.d.cts.map +1 -1
- package/dist/WriteClient.d.ts +4 -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 +1 -2
- package/dist/buildQueryURL.d.cts.map +1 -1
- package/dist/buildQueryURL.d.ts +1 -2
- package/dist/buildQueryURL.d.ts.map +1 -1
- package/dist/buildQueryURL.js +1 -2
- package/dist/cookie.cjs +8 -3
- package/dist/cookie.cjs.map +1 -1
- package/dist/cookie.d.cts +3 -2
- package/dist/cookie.d.cts.map +1 -1
- package/dist/cookie.d.ts +3 -2
- package/dist/cookie.d.ts.map +1 -1
- package/dist/cookie.js +8 -4
- package/dist/cookie.js.map +1 -1
- 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 +1 -2
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.ts +1 -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 +9 -5
- package/dist/getToolbarSrc.cjs.map +1 -1
- package/dist/getToolbarSrc.d.cts +10 -3
- package/dist/getToolbarSrc.d.cts.map +1 -1
- package/dist/getToolbarSrc.d.ts +10 -3
- package/dist/getToolbarSrc.d.ts.map +1 -1
- package/dist/getToolbarSrc.js +9 -5
- package/dist/getToolbarSrc.js.map +1 -1
- package/dist/helpers/asDate.cjs +1 -2
- package/dist/helpers/asDate.d.cts +1 -2
- package/dist/helpers/asDate.d.cts.map +1 -1
- package/dist/helpers/asDate.d.ts +1 -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 +2 -3
- package/dist/helpers/asHTML.d.cts.map +1 -1
- package/dist/helpers/asHTML.d.ts +2 -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 +1 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts +1 -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 +1 -2
- package/dist/helpers/asImageSrc.d.cts.map +1 -1
- package/dist/helpers/asImageSrc.d.ts +1 -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 +1 -2
- package/dist/helpers/asImageWidthSrcSet.d.cts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.d.ts +1 -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 +3 -4
- package/dist/helpers/asLink.d.cts.map +1 -1
- package/dist/helpers/asLink.d.ts +3 -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 +3 -4
- package/dist/helpers/asLinkAttrs.d.cts.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +3 -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 +1 -2
- package/dist/helpers/asText.d.cts.map +1 -1
- package/dist/helpers/asText.d.ts +1 -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 +1 -2
- package/dist/helpers/documentToLinkField.d.cts.map +1 -1
- package/dist/helpers/documentToLinkField.d.ts +1 -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 +1 -2
- package/dist/helpers/mapSliceZone.d.cts.map +1 -1
- package/dist/helpers/mapSliceZone.d.ts +1 -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 +1 -2
- package/dist/types/migration/ContentRelationship.d.cts.map +1 -1
- package/dist/types/migration/ContentRelationship.d.ts +1 -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 +5 -6
- package/dist/types/migration/Document.d.cts.map +1 -1
- package/dist/types/migration/Document.d.ts +5 -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 +1 -2
- package/dist/types/value/embed.d.cts.map +1 -1
- package/dist/types/value/embed.d.ts +1 -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 +1 -2
- package/dist/types/value/linkToMedia.d.cts.map +1 -1
- package/dist/types/value/linkToMedia.d.ts +1 -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 +5 -6
- package/dist/types/value/types.d.cts.map +1 -1
- package/dist/types/value/types.d.ts +5 -6
- package/dist/types/value/types.d.ts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.cts +1 -2
- package/dist/types/webhook/apiUpdate.d.cts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.ts +1 -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/cookie.ts +3 -0
- package/src/getToolbarSrc.ts +18 -4
- package/src/lib/pLimit.ts +3 -3
- package/src/lib/throttledWarn.ts +3 -3
package/dist/helpers/asLink.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.js";
|
|
2
|
-
import { FilledLinkToMediaField } from "../types/value/linkToMedia.js";
|
|
3
|
-
import { FilledLinkToWebField, LinkField } from "../types/value/link.js";
|
|
4
2
|
import { PrismicDocument } from "../types/value/document.js";
|
|
5
|
-
|
|
3
|
+
import { FilledLinkToWebField, LinkField } from "../types/value/link.js";
|
|
4
|
+
import { FilledLinkToMediaField } from "../types/value/linkToMedia.js";
|
|
6
5
|
/**
|
|
7
6
|
* Resolves a link to a Prismic page to a URL.
|
|
8
7
|
*
|
|
@@ -59,5 +58,5 @@ export declare const asLink: {
|
|
|
59
58
|
*/
|
|
60
59
|
<LinkResolverFunctionReturnType = string | null | undefined, Field extends LinkField | PrismicDocument | null | undefined = LinkField | PrismicDocument | null | undefined>(linkFieldOrDocument: Field, ...config: AsLinkDeprecatedTupleConfig<LinkResolverFunctionReturnType>): AsLinkReturnType<LinkResolverFunctionReturnType, Field>;
|
|
61
60
|
};
|
|
62
|
-
|
|
61
|
+
export {};
|
|
63
62
|
//# sourceMappingURL=asLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asLink.d.ts","names":[],"sources":["../../src/helpers/asLink.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asLink.d.ts","names":[],"sources":["../../src/helpers/asLink.ts"],"mappings":";;;;;;;;;;;;;YAgBY,qBAAqB,2CAChC,qBAAqB,mCACjB;;KAGA,aAAa;;;;;EAKjB,eAAe,qBAAqB;;;KAKhC,4BAA4B,+DAChC,eAAe,qBAAqB;;YAIzB,iBACX,4DACA,cAAc,YAAY,qCACvB,YACA,sCAGA,cACD,uBACA,yBACA,iCACA,kBACA;qBAIU;;;;;;;;;;;;;;;;;;GAmBX,4DACA,cAAc,YAAY,qCACvB,YACA,oCAIH,qBAAqB,OACrB,SAAS,aAAa,kCACpB,iBAAiB,gCAAgC;;;;;;;;;;;;;;GAgBnD,4DACA,cAAc,YAAY,qCACvB,YACA,oCAIH,qBAAqB,UAClB,QAAQ,4BAA4B,kCACrC,iBAAiB,gCAAgC"}
|
package/dist/helpers/asLink.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkType } from "../types/value/link.js";
|
|
2
2
|
import { documentToLinkField } from "./documentToLinkField.js";
|
|
3
|
-
|
|
3
|
+
// src/helpers/asLink.ts
|
|
4
4
|
const asLink = (linkFieldOrDocument, ...configObjectOrTuple) => {
|
|
5
5
|
if (!linkFieldOrDocument) return null;
|
|
6
6
|
const linkField = "link_type" in linkFieldOrDocument ? linkFieldOrDocument : documentToLinkField(linkFieldOrDocument);
|
|
@@ -22,7 +22,6 @@ const asLink = (linkFieldOrDocument, ...configObjectOrTuple) => {
|
|
|
22
22
|
default: return null;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { asLink };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=asLink.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
const require_isInternalURL = require("../lib/isInternalURL.cjs");
|
|
1
2
|
const require_asLink = require("./asLink.cjs");
|
|
2
3
|
const require_isFilled = require("./isFilled.cjs");
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/asLinkAttrs.ts
|
|
4
|
+
// src/helpers/asLinkAttrs.ts
|
|
5
5
|
/**
|
|
6
6
|
* Resolves any type of link field or Prismic page to a set of link attributes. The attributes are
|
|
7
7
|
* designed to be passed to link HTML elements, like `<a>`.
|
|
@@ -37,7 +37,6 @@ const asLinkAttrs = (linkFieldOrDocument, config = {}) => {
|
|
|
37
37
|
}
|
|
38
38
|
return {};
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
exports.asLinkAttrs = asLinkAttrs;
|
|
42
41
|
|
|
43
42
|
//# sourceMappingURL=asLinkAttrs.cjs.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.cjs";
|
|
2
|
-
import { FilledLinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
3
|
-
import { FilledLinkToWebField, LinkField } from "../types/value/link.cjs";
|
|
4
2
|
import { PrismicDocument } from "../types/value/document.cjs";
|
|
3
|
+
import { FilledLinkToWebField, LinkField } from "../types/value/link.cjs";
|
|
4
|
+
import { FilledLinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
5
5
|
import { AsLinkReturnType, LinkResolverFunction } from "./asLink.cjs";
|
|
6
|
-
//#region src/helpers/asLinkAttrs.d.ts
|
|
7
6
|
type AsLinkAttrsConfigRelArgs<LinkResolverFunctionReturnType = ReturnType<LinkResolverFunction>, Field extends LinkField | PrismicDocument | null | undefined = LinkField | PrismicDocument | null | undefined> = {
|
|
8
7
|
href: NonNullable<AsLinkReturnType<LinkResolverFunctionReturnType, Field>> | undefined;
|
|
9
8
|
isExternal: boolean;
|
|
@@ -40,5 +39,5 @@ type AsLinkAttrsReturnType<LinkResolverFunctionReturnType = ReturnType<LinkResol
|
|
|
40
39
|
* @see Learn about route resolvers and link resolvers: {@link https://prismic.io/docs/routes}
|
|
41
40
|
*/
|
|
42
41
|
export declare const asLinkAttrs: <LinkResolverFunctionReturnType = ReturnType<LinkResolverFunction>, Field extends LinkField | PrismicDocument | null | undefined = LinkField | PrismicDocument | null | undefined>(linkFieldOrDocument: Field, config?: AsLinkAttrsConfig<LinkResolverFunctionReturnType>) => AsLinkAttrsReturnType<LinkResolverFunctionReturnType>;
|
|
43
|
-
|
|
42
|
+
export {};
|
|
44
43
|
//# sourceMappingURL=asLinkAttrs.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asLinkAttrs.d.cts","names":[],"sources":["../../src/helpers/asLinkAttrs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asLinkAttrs.d.cts","names":[],"sources":["../../src/helpers/asLinkAttrs.ts"],"mappings":";;;;;KASK,yBACJ,iCAAiC,WAAW,uBAC5C,cAAc,YAAY,qCACvB,YACA;EAIH,MAAM,YAAY,iBAAiB,gCAAgC;EACnE;EACA;;YAGW,kBACX,iCAAiC,WAAW,uBAC5C,cAAc,YAAY,qCACvB,YACA;EAIH,eAAe,qBAAqB;EACpC,OACC,MAAM,yBAAyB,gCAAgC;;;KAK5D,sBACJ,iCAAiC,WAAW,uBAC5C,cAAc,YAAY,qCACvB,YACA,sCAGA,cACD,uBACA,yBACA,iCACA;EAEA,MAAM,YAAY,iBAAiB,gCAAgC;EACnE;EACA;;EAGA;EACA;EACA;;;;;;;;;;;;;;;;;;qBAmBU,cACZ,iCAAiC,WAAW,uBAC5C,cAAc,YAAY,qCACvB,YACA,oCAES,qBAES,OAAK,SAClB,kBAAkB,oCACxB,sBAAsB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.js";
|
|
2
|
-
import { FilledLinkToMediaField } from "../types/value/linkToMedia.js";
|
|
3
|
-
import { FilledLinkToWebField, LinkField } from "../types/value/link.js";
|
|
4
2
|
import { PrismicDocument } from "../types/value/document.js";
|
|
3
|
+
import { FilledLinkToWebField, LinkField } from "../types/value/link.js";
|
|
4
|
+
import { FilledLinkToMediaField } from "../types/value/linkToMedia.js";
|
|
5
5
|
import { AsLinkReturnType, LinkResolverFunction } from "./asLink.js";
|
|
6
|
-
//#region src/helpers/asLinkAttrs.d.ts
|
|
7
6
|
type AsLinkAttrsConfigRelArgs<LinkResolverFunctionReturnType = ReturnType<LinkResolverFunction>, Field extends LinkField | PrismicDocument | null | undefined = LinkField | PrismicDocument | null | undefined> = {
|
|
8
7
|
href: NonNullable<AsLinkReturnType<LinkResolverFunctionReturnType, Field>> | undefined;
|
|
9
8
|
isExternal: boolean;
|
|
@@ -40,5 +39,5 @@ type AsLinkAttrsReturnType<LinkResolverFunctionReturnType = ReturnType<LinkResol
|
|
|
40
39
|
* @see Learn about route resolvers and link resolvers: {@link https://prismic.io/docs/routes}
|
|
41
40
|
*/
|
|
42
41
|
export declare const asLinkAttrs: <LinkResolverFunctionReturnType = ReturnType<LinkResolverFunction>, Field extends LinkField | PrismicDocument | null | undefined = LinkField | PrismicDocument | null | undefined>(linkFieldOrDocument: Field, config?: AsLinkAttrsConfig<LinkResolverFunctionReturnType>) => AsLinkAttrsReturnType<LinkResolverFunctionReturnType>;
|
|
43
|
-
|
|
42
|
+
export {};
|
|
44
43
|
//# sourceMappingURL=asLinkAttrs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asLinkAttrs.d.ts","names":[],"sources":["../../src/helpers/asLinkAttrs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asLinkAttrs.d.ts","names":[],"sources":["../../src/helpers/asLinkAttrs.ts"],"mappings":";;;;;KASK,yBACJ,iCAAiC,WAAW,uBAC5C,cAAc,YAAY,qCACvB,YACA;EAIH,MAAM,YAAY,iBAAiB,gCAAgC;EACnE;EACA;;YAGW,kBACX,iCAAiC,WAAW,uBAC5C,cAAc,YAAY,qCACvB,YACA;EAIH,eAAe,qBAAqB;EACpC,OACC,MAAM,yBAAyB,gCAAgC;;;KAK5D,sBACJ,iCAAiC,WAAW,uBAC5C,cAAc,YAAY,qCACvB,YACA,sCAGA,cACD,uBACA,yBACA,iCACA;EAEA,MAAM,YAAY,iBAAiB,gCAAgC;EACnE;EACA;;EAGA;EACA;EACA;;;;;;;;;;;;;;;;;;qBAmBU,cACZ,iCAAiC,WAAW,uBAC5C,cAAc,YAAY,qCACvB,YACA,oCAES,qBAES,OAAK,SAClB,kBAAkB,oCACxB,sBAAsB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { isInternalURL } from "../lib/isInternalURL.js";
|
|
1
2
|
import { asLink } from "./asLink.js";
|
|
2
3
|
import { link } from "./isFilled.js";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/asLinkAttrs.ts
|
|
4
|
+
// src/helpers/asLinkAttrs.ts
|
|
5
5
|
/**
|
|
6
6
|
* Resolves any type of link field or Prismic page to a set of link attributes. The attributes are
|
|
7
7
|
* designed to be passed to link HTML elements, like `<a>`.
|
|
@@ -37,7 +37,6 @@ const asLinkAttrs = (linkFieldOrDocument, config = {}) => {
|
|
|
37
37
|
}
|
|
38
38
|
return {};
|
|
39
39
|
};
|
|
40
|
-
//#endregion
|
|
41
40
|
export { asLinkAttrs };
|
|
42
41
|
|
|
43
42
|
//# sourceMappingURL=asLinkAttrs.js.map
|
package/dist/helpers/asText.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_asText = require("../richtext/asText.cjs");
|
|
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 require_asText.asText(richTextField, config.separator);
|
|
10
10
|
} else return null;
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
exports.asText = asText;
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=asText.cjs.map
|
|
@@ -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,5 +41,5 @@ export declare const asText: {
|
|
|
42
41
|
*/
|
|
43
42
|
<Field extends RichTextField | null | undefined>(richTextField: Field, ...config: AsTextDeprecatedTupleConfig): AsTextReturnType<Field>;
|
|
44
43
|
};
|
|
45
|
-
|
|
44
|
+
export {};
|
|
46
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,5 +41,5 @@ export declare const asText: {
|
|
|
42
41
|
*/
|
|
43
42
|
<Field extends RichTextField | null | undefined>(richTextField: Field, ...config: AsTextDeprecatedTupleConfig): AsTextReturnType<Field>;
|
|
44
43
|
};
|
|
45
|
-
|
|
44
|
+
export {};
|
|
46
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,5 +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
|
-
|
|
13
|
+
export {};
|
|
15
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,5 +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
|
-
|
|
13
|
+
export {};
|
|
15
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,5 +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
|
-
|
|
110
|
+
export {};
|
|
112
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,5 +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
|
-
|
|
110
|
+
export {};
|
|
112
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;
|