@prismicio/client 7.22.3 → 7.23.0-canary.748ee7b
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 +1 -2
- package/dist/Client.d.cts +1 -2
- package/dist/Client.d.cts.map +1 -1
- package/dist/Client.d.ts +1 -2
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +1 -2
- package/dist/Migration.cjs +1 -2
- package/dist/Migration.d.cts +1 -2
- package/dist/Migration.d.cts.map +1 -1
- package/dist/Migration.d.ts +1 -2
- package/dist/Migration.d.ts.map +1 -1
- package/dist/Migration.js +1 -2
- package/dist/WriteClient.cjs +1 -2
- package/dist/WriteClient.d.cts +1 -2
- package/dist/WriteClient.d.cts.map +1 -1
- package/dist/WriteClient.d.ts +1 -2
- package/dist/WriteClient.d.ts.map +1 -1
- package/dist/WriteClient.js +1 -2
- 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 +0 -2
- package/dist/createClient.d.cts.map +1 -1
- package/dist/createClient.d.ts +0 -2
- 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 +0 -2
- package/dist/createMigration.d.cts.map +1 -1
- package/dist/createMigration.d.ts +0 -2
- 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 +1 -2
- package/dist/helpers/asHTML.d.cts +1 -2
- package/dist/helpers/asHTML.d.cts.map +1 -1
- package/dist/helpers/asHTML.d.ts +1 -2
- package/dist/helpers/asHTML.d.ts.map +1 -1
- package/dist/helpers/asHTML.js +1 -2
- 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 +1 -2
- package/dist/helpers/asLink.d.cts.map +1 -1
- package/dist/helpers/asLink.d.ts +1 -2
- package/dist/helpers/asLink.d.ts.map +1 -1
- package/dist/helpers/asLink.js +1 -2
- package/dist/helpers/asLinkAttrs.cjs +1 -2
- package/dist/helpers/asLinkAttrs.d.cts +1 -2
- package/dist/helpers/asLinkAttrs.d.cts.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +1 -2
- package/dist/helpers/asLinkAttrs.d.ts.map +1 -1
- package/dist/helpers/asLinkAttrs.js +1 -2
- 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 +0 -1
- package/dist/helpers/isFilled.d.ts +0 -1
- 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 +1 -2
- package/dist/index.d.cts +0 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- 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 +1 -2
- package/dist/lib/isMigrationValue.js +1 -2
- package/dist/lib/isValue.cjs +1 -2
- package/dist/lib/isValue.js +1 -2
- package/dist/lib/pLimit.cjs +1 -2
- package/dist/lib/pLimit.js +1 -2
- 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 +1 -2
- package/dist/lib/resolveMigrationDocumentData.js +1 -2
- package/dist/lib/serializerHelpers.cjs +1 -2
- package/dist/lib/serializerHelpers.js +1 -2
- package/dist/lib/throttledWarn.cjs +1 -2
- package/dist/lib/throttledWarn.js +1 -2
- 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/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 +0 -2
- package/dist/types/migration/Asset.d.cts.map +1 -1
- package/dist/types/migration/Asset.d.ts +0 -2
- 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 +1 -2
- package/dist/types/migration/Document.d.cts.map +1 -1
- package/dist/types/migration/Document.d.ts +1 -2
- 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 +0 -2
- package/dist/types/model/sharedSlice.d.cts.map +1 -1
- package/dist/types/model/sharedSlice.d.ts +0 -2
- 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 +0 -2
- package/dist/types/model/types.d.cts.map +1 -1
- package/dist/types/model/types.d.ts +0 -2
- 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 +0 -2
- package/dist/types/value/link.d.cts.map +1 -1
- package/dist/types/value/link.d.ts +0 -2
- 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 +0 -2
- package/dist/types/value/richText.d.cts.map +1 -1
- package/dist/types/value/richText.d.ts +0 -2
- 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 +0 -2
- package/dist/types/value/table.d.cts.map +1 -1
- package/dist/types/value/table.d.ts +0 -2
- 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 +0 -2
- package/dist/types/value/title.d.cts.map +1 -1
- package/dist/types/value/title.d.ts +0 -2
- package/dist/types/value/title.d.ts.map +1 -1
- package/dist/types/value/types.d.cts +1 -2
- package/dist/types/value/types.d.cts.map +1 -1
- package/dist/types/value/types.d.ts +1 -2
- 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/cookie.ts +3 -0
- package/src/getToolbarSrc.ts +18 -4
|
@@ -5,7 +5,7 @@ const require_Asset = require("../types/migration/Asset.cjs");
|
|
|
5
5
|
const require_Document = require("../types/migration/Document.cjs");
|
|
6
6
|
const require_getOptionalLinkProperties = require("./getOptionalLinkProperties.cjs");
|
|
7
7
|
const require_isMigrationValue = require("./isMigrationValue.cjs");
|
|
8
|
-
|
|
8
|
+
// src/lib/resolveMigrationDocumentData.ts
|
|
9
9
|
/**
|
|
10
10
|
* Resolves a migration content relationship to a content relationship field.
|
|
11
11
|
*
|
|
@@ -140,7 +140,6 @@ async function resolveMigrationDocumentData(input, migration) {
|
|
|
140
140
|
}
|
|
141
141
|
return input;
|
|
142
142
|
}
|
|
143
|
-
//#endregion
|
|
144
143
|
exports.resolveMigrationContentRelationship = resolveMigrationContentRelationship;
|
|
145
144
|
exports.resolveMigrationDocumentData = resolveMigrationDocumentData;
|
|
146
145
|
exports.resolveMigrationImage = resolveMigrationImage;
|
|
@@ -5,7 +5,7 @@ import { PrismicMigrationAsset } from "../types/migration/Asset.js";
|
|
|
5
5
|
import { PrismicMigrationDocument } from "../types/migration/Document.js";
|
|
6
6
|
import { getOptionalLinkProperties } from "./getOptionalLinkProperties.js";
|
|
7
7
|
import { contentRelationship, image, linkToMedia, rtImageNode } from "./isMigrationValue.js";
|
|
8
|
-
|
|
8
|
+
// src/lib/resolveMigrationDocumentData.ts
|
|
9
9
|
/**
|
|
10
10
|
* Resolves a migration content relationship to a content relationship field.
|
|
11
11
|
*
|
|
@@ -140,7 +140,6 @@ async function resolveMigrationDocumentData(input, migration) {
|
|
|
140
140
|
}
|
|
141
141
|
return input;
|
|
142
142
|
}
|
|
143
|
-
//#endregion
|
|
144
143
|
export { resolveMigrationContentRelationship, resolveMigrationDocumentData, resolveMigrationImage, resolveMigrationLinkToMedia, resolveMigrationRTImageNode };
|
|
145
144
|
|
|
146
145
|
//# sourceMappingURL=resolveMigrationDocumentData.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_link = require("../types/value/link.cjs");
|
|
2
2
|
const require_asLink = require("../helpers/asLink.cjs");
|
|
3
3
|
const require_escapeHTML = require("./escapeHTML.cjs");
|
|
4
|
-
|
|
4
|
+
// src/lib/serializerHelpers.ts
|
|
5
5
|
const formatAttributes = (node, attributes) => {
|
|
6
6
|
const _attributes = { ...attributes };
|
|
7
7
|
if ("direction" in node && node.direction === "rtl") _attributes.dir = node.direction;
|
|
@@ -87,7 +87,6 @@ const serializeSpan = () => {
|
|
|
87
87
|
return text ? require_escapeHTML.escapeHTML(text).replace(/\n/g, "<br />") : "";
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
//#endregion
|
|
91
90
|
exports.serializeEmbed = serializeEmbed;
|
|
92
91
|
exports.serializeHyperlink = serializeHyperlink;
|
|
93
92
|
exports.serializeImage = serializeImage;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LinkType } from "../types/value/link.js";
|
|
2
2
|
import { asLink } from "../helpers/asLink.js";
|
|
3
3
|
import { escapeHTML } from "./escapeHTML.js";
|
|
4
|
-
|
|
4
|
+
// src/lib/serializerHelpers.ts
|
|
5
5
|
const formatAttributes = (node, attributes) => {
|
|
6
6
|
const _attributes = { ...attributes };
|
|
7
7
|
if ("direction" in node && node.direction === "rtl") _attributes.dir = node.direction;
|
|
@@ -87,7 +87,6 @@ const serializeSpan = () => {
|
|
|
87
87
|
return text ? escapeHTML(text).replace(/\n/g, "<br />") : "";
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
//#endregion
|
|
91
90
|
export { serializeEmbed, serializeHyperlink, serializeImage, serializePreFormatted, serializeSpan, serializeStandardTag };
|
|
92
91
|
|
|
93
92
|
//# sourceMappingURL=serializerHelpers.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/throttledWarn.ts
|
|
2
2
|
const THROTTLE_THRESHOLD_MS = 5e3;
|
|
3
3
|
let lastMessage;
|
|
4
4
|
let lastCalledAt = 0;
|
|
@@ -19,7 +19,6 @@ const throttledWarn = (message) => {
|
|
|
19
19
|
lastMessage = message;
|
|
20
20
|
console.warn(message);
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.throttledWarn = throttledWarn;
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=throttledWarn.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/throttledWarn.ts
|
|
2
2
|
const THROTTLE_THRESHOLD_MS = 5e3;
|
|
3
3
|
let lastMessage;
|
|
4
4
|
let lastCalledAt = 0;
|
|
@@ -19,7 +19,6 @@ const throttledWarn = (message) => {
|
|
|
19
19
|
lastMessage = message;
|
|
20
20
|
console.warn(message);
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { throttledWarn };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=throttledWarn.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_errors = require("../errors.cjs");
|
|
2
|
-
|
|
2
|
+
// src/lib/validateAssetMetadata.ts
|
|
3
3
|
/** Max length for asset notes accepted by the API. */
|
|
4
4
|
const ASSET_NOTES_MAX_LENGTH = 500;
|
|
5
5
|
/** Max length for asset credits accepted by the API. */
|
|
@@ -29,7 +29,6 @@ const validateAssetMetadata = ({ notes, credits, alt, tags }) => {
|
|
|
29
29
|
tags
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
exports.validateAssetMetadata = validateAssetMetadata;
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=validateAssetMetadata.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PrismicError } from "../errors.js";
|
|
2
|
-
|
|
2
|
+
// src/lib/validateAssetMetadata.ts
|
|
3
3
|
/** Max length for asset notes accepted by the API. */
|
|
4
4
|
const ASSET_NOTES_MAX_LENGTH = 500;
|
|
5
5
|
/** Max length for asset credits accepted by the API. */
|
|
@@ -29,7 +29,6 @@ const validateAssetMetadata = ({ notes, credits, alt, tags }) => {
|
|
|
29
29
|
tags
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { validateAssetMetadata };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=validateAssetMetadata.js.map
|
package/dist/package.cjs
CHANGED
package/dist/package.js
CHANGED
package/dist/richtext/asText.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/richtext/asText.ts
|
|
2
2
|
/**
|
|
3
3
|
* Converts a rich text field to a plain text string.
|
|
4
4
|
*
|
|
@@ -12,7 +12,6 @@ const asText = (richTextField, separator = " ") => {
|
|
|
12
12
|
for (let i = 0; i < richTextField.length; i++) if ("text" in richTextField[i]) result += (result ? separator : "") + richTextField[i].text;
|
|
13
13
|
return result;
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
exports.asText = asText;
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=asText.cjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RichTextField } from "../types/value/richText.cjs";
|
|
2
|
-
//#region src/richtext/asText.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Converts a rich text field to a plain text string.
|
|
5
4
|
*
|
|
@@ -9,5 +8,4 @@ import { RichTextField } from "../types/value/richText.cjs";
|
|
|
9
8
|
* @see Learn how to work with rich text fields: {@link https://prismic.io/docs/fields/rich-text}
|
|
10
9
|
*/
|
|
11
10
|
export declare const asText: (richTextField: RichTextField, separator?: string) => string;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=asText.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asText.d.cts","names":[],"sources":["../../src/richtext/asText.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asText.d.cts","names":[],"sources":["../../src/richtext/asText.ts"],"mappings":";;;;;;;;;qBAUa,SAAM,eAAmB,eAAa"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RichTextField } from "../types/value/richText.js";
|
|
2
|
-
//#region src/richtext/asText.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Converts a rich text field to a plain text string.
|
|
5
4
|
*
|
|
@@ -9,5 +8,4 @@ import { RichTextField } from "../types/value/richText.js";
|
|
|
9
8
|
* @see Learn how to work with rich text fields: {@link https://prismic.io/docs/fields/rich-text}
|
|
10
9
|
*/
|
|
11
10
|
export declare const asText: (richTextField: RichTextField, separator?: string) => string;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=asText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asText.d.ts","names":[],"sources":["../../src/richtext/asText.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asText.d.ts","names":[],"sources":["../../src/richtext/asText.ts"],"mappings":";;;;;;;;;qBAUa,SAAM,eAAmB,eAAa"}
|
package/dist/richtext/asText.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/richtext/asText.ts
|
|
2
2
|
/**
|
|
3
3
|
* Converts a rich text field to a plain text string.
|
|
4
4
|
*
|
|
@@ -12,7 +12,6 @@ const asText = (richTextField, separator = " ") => {
|
|
|
12
12
|
for (let i = 0; i < richTextField.length; i++) if ("text" in richTextField[i]) result += (result ? separator : "") + richTextField[i].text;
|
|
13
13
|
return result;
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { asText };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=asText.js.map
|
package/dist/richtext/asTree.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_richText = require("../types/value/richText.cjs");
|
|
2
|
-
|
|
2
|
+
// src/richtext/asTree.ts
|
|
3
3
|
const uuid = () => {
|
|
4
4
|
return (++uuid.i).toString();
|
|
5
5
|
};
|
|
@@ -113,7 +113,6 @@ const textNodeSpansToTreeNodeChildren = (spans, node, parentSpan) => {
|
|
|
113
113
|
}
|
|
114
114
|
return children;
|
|
115
115
|
};
|
|
116
|
-
//#endregion
|
|
117
116
|
exports.asTree = asTree;
|
|
118
117
|
|
|
119
118
|
//# sourceMappingURL=asTree.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RTNode } from "../types/value/richText.cjs";
|
|
2
2
|
import { Tree } from "./types.cjs";
|
|
3
|
-
//#region src/richtext/asTree.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Parses a rich text or title field into a tree
|
|
6
5
|
*
|
|
@@ -11,5 +10,4 @@ import { Tree } from "./types.cjs";
|
|
|
11
10
|
* @returns Tree from given rich text or title field
|
|
12
11
|
*/
|
|
13
12
|
export declare const asTree: (nodes: RTNode[]) => Tree;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=asTree.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asTree.d.cts","names":[],"sources":["../../src/richtext/asTree.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asTree.d.cts","names":[],"sources":["../../src/richtext/asTree.ts"],"mappings":";;;;;;;;;;;qBA0Ba,SAAM,OAAW,aAAW"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RTNode } from "../types/value/richText.js";
|
|
2
2
|
import { Tree } from "./types.js";
|
|
3
|
-
//#region src/richtext/asTree.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Parses a rich text or title field into a tree
|
|
6
5
|
*
|
|
@@ -11,5 +10,4 @@ import { Tree } from "./types.js";
|
|
|
11
10
|
* @returns Tree from given rich text or title field
|
|
12
11
|
*/
|
|
13
12
|
export declare const asTree: (nodes: RTNode[]) => Tree;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=asTree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asTree.d.ts","names":[],"sources":["../../src/richtext/asTree.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asTree.d.ts","names":[],"sources":["../../src/richtext/asTree.ts"],"mappings":";;;;;;;;;;;qBA0Ba,SAAM,OAAW,aAAW"}
|
package/dist/richtext/asTree.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RichTextNodeType } from "../types/value/richText.js";
|
|
2
|
-
|
|
2
|
+
// src/richtext/asTree.ts
|
|
3
3
|
const uuid = () => {
|
|
4
4
|
return (++uuid.i).toString();
|
|
5
5
|
};
|
|
@@ -113,7 +113,6 @@ const textNodeSpansToTreeNodeChildren = (spans, node, parentSpan) => {
|
|
|
113
113
|
}
|
|
114
114
|
return children;
|
|
115
115
|
};
|
|
116
|
-
//#endregion
|
|
117
116
|
export { asTree };
|
|
118
117
|
|
|
119
118
|
//# sourceMappingURL=asTree.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/richtext/composeSerializers.ts
|
|
2
2
|
/**
|
|
3
3
|
* Takes an array of serializers and returns a serializer applying provided serializers sequentially
|
|
4
4
|
* until a result is returned
|
|
@@ -21,7 +21,6 @@ const composeSerializers = (...serializers) => {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
exports.composeSerializers = composeSerializers;
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=composeSerializers.cjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RichTextFunctionSerializer } from "./types.cjs";
|
|
2
|
-
//#region src/richtext/composeSerializers.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Takes an array of serializers and returns a serializer applying provided serializers sequentially
|
|
5
4
|
* until a result is returned
|
|
@@ -12,5 +11,4 @@ import { RichTextFunctionSerializer } from "./types.cjs";
|
|
|
12
11
|
* @returns Composed serializer
|
|
13
12
|
*/
|
|
14
13
|
export declare const composeSerializers: <SerializerReturnType>(...serializers: (RichTextFunctionSerializer<SerializerReturnType> | undefined)[]) => RichTextFunctionSerializer<SerializerReturnType>;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=composeSerializers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeSerializers.d.cts","names":[],"sources":["../../src/richtext/composeSerializers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composeSerializers.d.cts","names":[],"sources":["../../src/richtext/composeSerializers.ts"],"mappings":";;;;;;;;;;;;qBAaa,qBAAsB,yBAAoB,cACrC,2BAA2B,yCAC1C,2BAA2B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RichTextFunctionSerializer } from "./types.js";
|
|
2
|
-
//#region src/richtext/composeSerializers.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Takes an array of serializers and returns a serializer applying provided serializers sequentially
|
|
5
4
|
* until a result is returned
|
|
@@ -12,5 +11,4 @@ import { RichTextFunctionSerializer } from "./types.js";
|
|
|
12
11
|
* @returns Composed serializer
|
|
13
12
|
*/
|
|
14
13
|
export declare const composeSerializers: <SerializerReturnType>(...serializers: (RichTextFunctionSerializer<SerializerReturnType> | undefined)[]) => RichTextFunctionSerializer<SerializerReturnType>;
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=composeSerializers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeSerializers.d.ts","names":[],"sources":["../../src/richtext/composeSerializers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composeSerializers.d.ts","names":[],"sources":["../../src/richtext/composeSerializers.ts"],"mappings":";;;;;;;;;;;;qBAaa,qBAAsB,yBAAoB,cACrC,2BAA2B,yCAC1C,2BAA2B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/richtext/composeSerializers.ts
|
|
2
2
|
/**
|
|
3
3
|
* Takes an array of serializers and returns a serializer applying provided serializers sequentially
|
|
4
4
|
* until a result is returned
|
|
@@ -21,7 +21,6 @@ const composeSerializers = (...serializers) => {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { composeSerializers };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=composeSerializers.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_asTree = require("./asTree.cjs");
|
|
2
|
-
|
|
2
|
+
// src/richtext/serialize.ts
|
|
3
3
|
/**
|
|
4
4
|
* Serializes a rich text field with a given serializer.
|
|
5
5
|
*
|
|
@@ -24,7 +24,6 @@ const serializeTreeNodes = (nodes, serializer) => {
|
|
|
24
24
|
}
|
|
25
25
|
return serializedTreeNodes;
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
exports.serialize = serialize;
|
|
29
28
|
|
|
30
29
|
//# sourceMappingURL=serialize.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RichTextField } from "../types/value/richText.cjs";
|
|
2
2
|
import { RichTextFunctionSerializer } from "./types.cjs";
|
|
3
|
-
//#region src/richtext/serialize.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Serializes a rich text field with a given serializer.
|
|
6
5
|
*
|
|
@@ -14,5 +13,4 @@ import { RichTextFunctionSerializer } from "./types.cjs";
|
|
|
14
13
|
* @see Learn how to work with rich text fields: {@link https://prismic.io/docs/fields/rich-text}
|
|
15
14
|
*/
|
|
16
15
|
export declare const serialize: <SerializerReturnType>(richTextField: RichTextField, serializer: RichTextFunctionSerializer<SerializerReturnType>) => SerializerReturnType[];
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=serialize.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.d.cts","names":[],"sources":["../../src/richtext/serialize.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"serialize.d.cts","names":[],"sources":["../../src/richtext/serialize.ts"],"mappings":";;;;;;;;;;;;;;qBAgBa,YAAa,sBAAoB,eAC9B,eAAa,YAChB,2BAA2B,0BACrC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RichTextField } from "../types/value/richText.js";
|
|
2
2
|
import { RichTextFunctionSerializer } from "./types.js";
|
|
3
|
-
//#region src/richtext/serialize.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Serializes a rich text field with a given serializer.
|
|
6
5
|
*
|
|
@@ -14,5 +13,4 @@ import { RichTextFunctionSerializer } from "./types.js";
|
|
|
14
13
|
* @see Learn how to work with rich text fields: {@link https://prismic.io/docs/fields/rich-text}
|
|
15
14
|
*/
|
|
16
15
|
export declare const serialize: <SerializerReturnType>(richTextField: RichTextField, serializer: RichTextFunctionSerializer<SerializerReturnType>) => SerializerReturnType[];
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=serialize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.d.ts","names":[],"sources":["../../src/richtext/serialize.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"serialize.d.ts","names":[],"sources":["../../src/richtext/serialize.ts"],"mappings":";;;;;;;;;;;;;;qBAgBa,YAAa,sBAAoB,eAC9B,eAAa,YAChB,2BAA2B,0BACrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { asTree } from "./asTree.js";
|
|
2
|
-
|
|
2
|
+
// src/richtext/serialize.ts
|
|
3
3
|
/**
|
|
4
4
|
* Serializes a rich text field with a given serializer.
|
|
5
5
|
*
|
|
@@ -24,7 +24,6 @@ const serializeTreeNodes = (nodes, serializer) => {
|
|
|
24
24
|
}
|
|
25
25
|
return serializedTreeNodes;
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { serialize };
|
|
29
28
|
|
|
30
29
|
//# sourceMappingURL=serialize.js.map
|
package/dist/richtext/types.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
const require_richText = require("../types/value/richText.cjs");
|
|
2
|
-
|
|
2
|
+
// src/richtext/types.ts
|
|
3
3
|
const RichTextReversedNodeType = {
|
|
4
4
|
[require_richText.RichTextNodeType.listItem]: "listItem",
|
|
5
5
|
[require_richText.RichTextNodeType.oListItem]: "oListItem",
|
|
6
6
|
[require_richText.RichTextNodeType.list]: "list",
|
|
7
7
|
[require_richText.RichTextNodeType.oList]: "oList"
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
exports.RichTextReversedNodeType = RichTextReversedNodeType;
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=types.cjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RTAnyNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTStrongNode, RichTextNodeTypes } from "../types/value/richText.cjs";
|
|
2
|
-
//#region src/richtext/types.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Serializes a node from a rich text or title field with a function
|
|
5
4
|
*
|
|
@@ -60,5 +59,4 @@ export interface TreeNode {
|
|
|
60
59
|
node: RTAnyNode;
|
|
61
60
|
children: TreeNode[];
|
|
62
61
|
}
|
|
63
|
-
//#endregion
|
|
64
62
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/richtext/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/richtext/types.ts"],"mappings":";;;;;;;YAiCY,2BAA2B,eACtC,MAAM,mBACN,MAAM,WACN,0BACA,UAAU,cACV,gBACI;;;;;;YAOO,8BACX,YACA,aAAa,YAAY,WACzB,kCACI;EACJ,MAAM;EACN,MAAM;EACN,MAAM;EACN,UAAU;EACV;MACK;;;;;;;;;;YAWM,sBAAsB;EACjC,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,YAAY,8BAA8B,YAAY;EACtD,eAAe,8BAA8B,YAAY;EACzD,SAAS,8BAA8B,YAAY;EACnD,KAAK,8BAA8B,YAAY;EAC/C,WAAW,8BAA8B,YAAY;EACrD,YAAY,8BAA8B,YAAY;EACtD,OAAO,8BAA8B,YAAY;EACjD,QAAQ,8BAA8B,YAAY;EAClD,QAAQ,8BAA8B,YAAY;EAClD,QAAQ,8BAA8B,YAAY;EAClD,YAAY,8BAA8B,YAAY;EACtD,QAAQ,8BAA8B,YAAY;EAClD,OAAO,8BAA8B,YAAY;;iBAIjC;EAChB;EACA,UAAU;;iBAGM;EAChB;EACA,MAAM;EACN;EACA,MAAM;EACN,UAAU"}
|
package/dist/richtext/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RTAnyNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTStrongNode, RichTextNodeTypes } from "../types/value/richText.js";
|
|
2
|
-
//#region src/richtext/types.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Serializes a node from a rich text or title field with a function
|
|
5
4
|
*
|
|
@@ -60,5 +59,4 @@ export interface TreeNode {
|
|
|
60
59
|
node: RTAnyNode;
|
|
61
60
|
children: TreeNode[];
|
|
62
61
|
}
|
|
63
|
-
//#endregion
|
|
64
62
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../src/richtext/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../src/richtext/types.ts"],"mappings":";;;;;;;YAiCY,2BAA2B,eACtC,MAAM,mBACN,MAAM,WACN,0BACA,UAAU,cACV,gBACI;;;;;;YAOO,8BACX,YACA,aAAa,YAAY,WACzB,kCACI;EACJ,MAAM;EACN,MAAM;EACN,MAAM;EACN,UAAU;EACV;MACK;;;;;;;;;;YAWM,sBAAsB;EACjC,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,WAAW,8BAA8B,YAAY;EACrD,YAAY,8BAA8B,YAAY;EACtD,eAAe,8BAA8B,YAAY;EACzD,SAAS,8BAA8B,YAAY;EACnD,KAAK,8BAA8B,YAAY;EAC/C,WAAW,8BAA8B,YAAY;EACrD,YAAY,8BAA8B,YAAY;EACtD,OAAO,8BAA8B,YAAY;EACjD,QAAQ,8BAA8B,YAAY;EAClD,QAAQ,8BAA8B,YAAY;EAClD,QAAQ,8BAA8B,YAAY;EAClD,YAAY,8BAA8B,YAAY;EACtD,QAAQ,8BAA8B,YAAY;EAClD,OAAO,8BAA8B,YAAY;;iBAIjC;EAChB;EACA,UAAU;;iBAGM;EAChB;EACA,MAAM;EACN;EACA,MAAM;EACN,UAAU"}
|
package/dist/richtext/types.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { RichTextNodeType } from "../types/value/richText.js";
|
|
2
|
-
|
|
2
|
+
// src/richtext/types.ts
|
|
3
3
|
const RichTextReversedNodeType = {
|
|
4
4
|
[RichTextNodeType.listItem]: "listItem",
|
|
5
5
|
[RichTextNodeType.oListItem]: "oListItem",
|
|
6
6
|
[RichTextNodeType.list]: "list",
|
|
7
7
|
[RichTextNodeType.oList]: "oList"
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { RichTextReversedNodeType };
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=types.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_types = require("./types.cjs");
|
|
2
|
-
|
|
2
|
+
// src/richtext/wrapMapSerializer.ts
|
|
3
3
|
/**
|
|
4
4
|
* Wraps a map serializer into a regular function serializer
|
|
5
5
|
*
|
|
@@ -22,7 +22,6 @@ const wrapMapSerializer = (mapSerializer) => {
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
exports.wrapMapSerializer = wrapMapSerializer;
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=wrapMapSerializer.cjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RichTextFunctionSerializer, RichTextMapSerializer } from "./types.cjs";
|
|
2
|
-
//#region src/richtext/wrapMapSerializer.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Wraps a map serializer into a regular function serializer
|
|
5
4
|
*
|
|
@@ -11,5 +10,4 @@ import { RichTextFunctionSerializer, RichTextMapSerializer } from "./types.cjs";
|
|
|
11
10
|
* @returns A regular function serializer
|
|
12
11
|
*/
|
|
13
12
|
export declare const wrapMapSerializer: <SerializerReturnType>(mapSerializer: RichTextMapSerializer<SerializerReturnType>) => RichTextFunctionSerializer<SerializerReturnType>;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=wrapMapSerializer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapMapSerializer.d.cts","names":[],"sources":["../../src/richtext/wrapMapSerializer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"wrapMapSerializer.d.cts","names":[],"sources":["../../src/richtext/wrapMapSerializer.ts"],"mappings":";;;;;;;;;;;qBAaa,oBAAqB,sBAAoB,eACtC,sBAAsB,0BACnC,2BAA2B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RichTextFunctionSerializer, RichTextMapSerializer } from "./types.js";
|
|
2
|
-
//#region src/richtext/wrapMapSerializer.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Wraps a map serializer into a regular function serializer
|
|
5
4
|
*
|
|
@@ -11,5 +10,4 @@ import { RichTextFunctionSerializer, RichTextMapSerializer } from "./types.js";
|
|
|
11
10
|
* @returns A regular function serializer
|
|
12
11
|
*/
|
|
13
12
|
export declare const wrapMapSerializer: <SerializerReturnType>(mapSerializer: RichTextMapSerializer<SerializerReturnType>) => RichTextFunctionSerializer<SerializerReturnType>;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=wrapMapSerializer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapMapSerializer.d.ts","names":[],"sources":["../../src/richtext/wrapMapSerializer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"wrapMapSerializer.d.ts","names":[],"sources":["../../src/richtext/wrapMapSerializer.ts"],"mappings":";;;;;;;;;;;qBAaa,oBAAqB,sBAAoB,eACtC,sBAAsB,0BACnC,2BAA2B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RichTextReversedNodeType } from "./types.js";
|
|
2
|
-
|
|
2
|
+
// src/richtext/wrapMapSerializer.ts
|
|
3
3
|
/**
|
|
4
4
|
* Wraps a map serializer into a regular function serializer
|
|
5
5
|
*
|
|
@@ -22,7 +22,6 @@ const wrapMapSerializer = (mapSerializer) => {
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { wrapMapSerializer };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=wrapMapSerializer.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AssetTag } from "./tag.cjs";
|
|
2
|
-
//#region src/types/api/asset/asset.d.ts
|
|
3
2
|
/** Asset types. */
|
|
4
3
|
export declare const AssetType: {
|
|
5
4
|
readonly All: "all";
|
|
@@ -54,5 +53,4 @@ export type Asset = {
|
|
|
54
53
|
alt?: string[];
|
|
55
54
|
};
|
|
56
55
|
};
|
|
57
|
-
//#endregion
|
|
58
56
|
//# sourceMappingURL=asset.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.cts","names":[],"sources":["../../../../src/types/api/asset/asset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asset.d.cts","names":[],"sources":["../../../../src/types/api/asset/asset.ts"],"mappings":";;qBAGa;WACZ;WACA;WACA;WACA;WACA;;;;;;;YAQW;;EAEX;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA,MAAM,gBAAgB,wBAAwB,oBAAoB;;EAGlE;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA,OAAO;;EAGP;;EAGA;;EAGA;IACC;IACA;IACA;IACA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AssetTag } from "./tag.js";
|
|
2
|
-
//#region src/types/api/asset/asset.d.ts
|
|
3
2
|
/** Asset types. */
|
|
4
3
|
export declare const AssetType: {
|
|
5
4
|
readonly All: "all";
|
|
@@ -54,5 +53,4 @@ export type Asset = {
|
|
|
54
53
|
alt?: string[];
|
|
55
54
|
};
|
|
56
55
|
};
|
|
57
|
-
//#endregion
|
|
58
56
|
//# sourceMappingURL=asset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","names":[],"sources":["../../../../src/types/api/asset/asset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asset.d.ts","names":[],"sources":["../../../../src/types/api/asset/asset.ts"],"mappings":";;qBAGa;WACZ;WACA;WACA;WACA;WACA;;;;;;;YAQW;;EAEX;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA,MAAM,gBAAgB,wBAAwB,oBAAoB;;EAGlE;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA,OAAO;;EAGP;;EAGA;;EAGA;IACC;IACA;IACA;IACA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/api/asset/tag.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* An object representing an tag used by the Asset API.
|
|
4
3
|
*
|
|
@@ -18,5 +17,4 @@ export type AssetTag = {
|
|
|
18
17
|
/** Number of assets tagged with this tag. */
|
|
19
18
|
count?: number;
|
|
20
19
|
};
|
|
21
|
-
//#endregion
|
|
22
20
|
//# sourceMappingURL=tag.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.cts","names":[],"sources":["../../../../src/types/api/asset/tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.d.cts","names":[],"sources":["../../../../src/types/api/asset/tag.ts"],"mappings":";;;;;YAKY;;EAEX;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/api/asset/tag.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* An object representing an tag used by the Asset API.
|
|
4
3
|
*
|
|
@@ -18,5 +17,4 @@ export type AssetTag = {
|
|
|
18
17
|
/** Number of assets tagged with this tag. */
|
|
19
18
|
count?: number;
|
|
20
19
|
};
|
|
21
|
-
//#endregion
|
|
22
20
|
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","names":[],"sources":["../../../../src/types/api/asset/tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.d.ts","names":[],"sources":["../../../../src/types/api/asset/tag.ts"],"mappings":";;;;;YAKY;;EAEX;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA"}
|