@prismicio/client 7.23.0 → 7.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.cjs +7 -9
- package/dist/Client.cjs.map +1 -1
- package/dist/Client.d.cts +2 -4
- package/dist/Client.d.cts.map +1 -1
- package/dist/Client.d.ts +2 -4
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +7 -9
- package/dist/Client.js.map +1 -1
- package/dist/Migration.cjs +5 -6
- package/dist/Migration.d.cts +4 -6
- package/dist/Migration.d.cts.map +1 -1
- package/dist/Migration.d.ts +4 -6
- package/dist/Migration.d.ts.map +1 -1
- package/dist/Migration.js +5 -6
- package/dist/WriteClient.cjs +3 -4
- package/dist/WriteClient.d.cts +3 -5
- package/dist/WriteClient.d.cts.map +1 -1
- package/dist/WriteClient.d.ts +3 -5
- package/dist/WriteClient.d.ts.map +1 -1
- package/dist/WriteClient.js +3 -4
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/buildQueryURL.cjs +1 -2
- package/dist/buildQueryURL.d.cts +0 -2
- package/dist/buildQueryURL.d.cts.map +1 -1
- package/dist/buildQueryURL.d.ts +0 -2
- package/dist/buildQueryURL.d.ts.map +1 -1
- package/dist/buildQueryURL.js +1 -2
- package/dist/cookie.cjs +1 -2
- package/dist/cookie.d.cts +0 -1
- package/dist/cookie.d.ts +0 -1
- package/dist/cookie.js +1 -2
- package/dist/createClient.cjs +1 -2
- package/dist/createClient.d.cts +1 -3
- package/dist/createClient.d.cts.map +1 -1
- package/dist/createClient.d.ts +1 -3
- package/dist/createClient.d.ts.map +1 -1
- package/dist/createClient.js +1 -2
- package/dist/createMigration.cjs +1 -2
- package/dist/createMigration.d.cts +1 -3
- package/dist/createMigration.d.cts.map +1 -1
- package/dist/createMigration.d.ts +1 -3
- package/dist/createMigration.d.ts.map +1 -1
- package/dist/createMigration.js +1 -2
- package/dist/createWriteClient.cjs +1 -2
- package/dist/createWriteClient.d.cts +0 -2
- package/dist/createWriteClient.d.cts.map +1 -1
- package/dist/createWriteClient.d.ts +0 -2
- package/dist/createWriteClient.d.ts.map +1 -1
- package/dist/createWriteClient.js +1 -2
- package/dist/errors.cjs +1 -2
- package/dist/errors.d.cts +0 -2
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.ts +0 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +1 -2
- package/dist/filter.cjs +1 -2
- package/dist/filter.d.cts +0 -2
- package/dist/filter.d.cts.map +1 -1
- package/dist/filter.d.ts +0 -2
- package/dist/filter.d.ts.map +1 -1
- package/dist/filter.js +1 -2
- package/dist/getGraphQLEndpoint.cjs +1 -2
- package/dist/getGraphQLEndpoint.d.cts +0 -2
- package/dist/getGraphQLEndpoint.d.cts.map +1 -1
- package/dist/getGraphQLEndpoint.d.ts +0 -2
- package/dist/getGraphQLEndpoint.d.ts.map +1 -1
- package/dist/getGraphQLEndpoint.js +1 -2
- package/dist/getRepositoryEndpoint.cjs +1 -2
- package/dist/getRepositoryEndpoint.d.cts +0 -2
- package/dist/getRepositoryEndpoint.d.cts.map +1 -1
- package/dist/getRepositoryEndpoint.d.ts +0 -2
- package/dist/getRepositoryEndpoint.d.ts.map +1 -1
- package/dist/getRepositoryEndpoint.js +1 -2
- package/dist/getRepositoryName.cjs +1 -2
- package/dist/getRepositoryName.d.cts +0 -2
- package/dist/getRepositoryName.d.cts.map +1 -1
- package/dist/getRepositoryName.d.ts +0 -2
- package/dist/getRepositoryName.d.ts.map +1 -1
- package/dist/getRepositoryName.js +1 -2
- package/dist/getToolbarSrc.cjs +1 -2
- package/dist/getToolbarSrc.d.cts +0 -2
- package/dist/getToolbarSrc.d.cts.map +1 -1
- package/dist/getToolbarSrc.d.ts +0 -2
- package/dist/getToolbarSrc.d.ts.map +1 -1
- package/dist/getToolbarSrc.js +1 -2
- package/dist/helpers/asDate.cjs +1 -2
- package/dist/helpers/asDate.d.cts +0 -2
- package/dist/helpers/asDate.d.cts.map +1 -1
- package/dist/helpers/asDate.d.ts +0 -2
- package/dist/helpers/asDate.d.ts.map +1 -1
- package/dist/helpers/asDate.js +1 -2
- package/dist/helpers/asHTML.cjs +2 -3
- package/dist/helpers/asHTML.d.cts +1 -3
- package/dist/helpers/asHTML.d.cts.map +1 -1
- package/dist/helpers/asHTML.d.ts +1 -3
- package/dist/helpers/asHTML.d.ts.map +1 -1
- package/dist/helpers/asHTML.js +2 -3
- package/dist/helpers/asImagePixelDensitySrcSet.cjs +1 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts +0 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts +0 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.js +1 -2
- package/dist/helpers/asImageSrc.cjs +1 -2
- package/dist/helpers/asImageSrc.d.cts +0 -2
- package/dist/helpers/asImageSrc.d.cts.map +1 -1
- package/dist/helpers/asImageSrc.d.ts +0 -2
- package/dist/helpers/asImageSrc.d.ts.map +1 -1
- package/dist/helpers/asImageSrc.js +1 -2
- package/dist/helpers/asImageWidthSrcSet.cjs +1 -2
- package/dist/helpers/asImageWidthSrcSet.d.cts +0 -2
- package/dist/helpers/asImageWidthSrcSet.d.cts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.d.ts +0 -2
- package/dist/helpers/asImageWidthSrcSet.d.ts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.js +1 -2
- package/dist/helpers/asLink.cjs +1 -2
- package/dist/helpers/asLink.d.cts +2 -4
- package/dist/helpers/asLink.d.cts.map +1 -1
- package/dist/helpers/asLink.d.ts +2 -4
- package/dist/helpers/asLink.d.ts.map +1 -1
- package/dist/helpers/asLink.js +1 -2
- package/dist/helpers/asLinkAttrs.cjs +2 -3
- package/dist/helpers/asLinkAttrs.d.cts +2 -4
- package/dist/helpers/asLinkAttrs.d.cts.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +2 -4
- package/dist/helpers/asLinkAttrs.d.ts.map +1 -1
- package/dist/helpers/asLinkAttrs.js +2 -3
- package/dist/helpers/asText.cjs +1 -2
- package/dist/helpers/asText.d.cts +0 -2
- package/dist/helpers/asText.d.cts.map +1 -1
- package/dist/helpers/asText.d.ts +0 -2
- package/dist/helpers/asText.d.ts.map +1 -1
- package/dist/helpers/asText.js +1 -2
- package/dist/helpers/documentToLinkField.cjs +1 -2
- package/dist/helpers/documentToLinkField.d.cts +0 -2
- package/dist/helpers/documentToLinkField.d.cts.map +1 -1
- package/dist/helpers/documentToLinkField.d.ts +0 -2
- package/dist/helpers/documentToLinkField.d.ts.map +1 -1
- package/dist/helpers/documentToLinkField.js +1 -2
- package/dist/helpers/isFilled.cjs +1 -2
- package/dist/helpers/isFilled.d.cts +7 -8
- package/dist/helpers/isFilled.d.ts +7 -8
- package/dist/helpers/isFilled.js +1 -2
- package/dist/helpers/mapSliceZone.cjs +1 -2
- package/dist/helpers/mapSliceZone.d.cts +0 -2
- package/dist/helpers/mapSliceZone.d.cts.map +1 -1
- package/dist/helpers/mapSliceZone.d.ts +0 -2
- package/dist/helpers/mapSliceZone.d.ts.map +1 -1
- package/dist/helpers/mapSliceZone.js +1 -2
- package/dist/index.cjs +17 -18
- package/dist/index.d.cts +62 -64
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +62 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -18
- package/dist/isRepositoryEndpoint.cjs +1 -2
- package/dist/isRepositoryEndpoint.d.cts +0 -2
- package/dist/isRepositoryEndpoint.d.cts.map +1 -1
- package/dist/isRepositoryEndpoint.d.ts +0 -2
- package/dist/isRepositoryEndpoint.d.ts.map +1 -1
- package/dist/isRepositoryEndpoint.js +1 -2
- package/dist/isRepositoryName.cjs +1 -2
- package/dist/isRepositoryName.d.cts +0 -2
- package/dist/isRepositoryName.d.cts.map +1 -1
- package/dist/isRepositoryName.d.ts +0 -2
- package/dist/isRepositoryName.d.ts.map +1 -1
- package/dist/isRepositoryName.js +1 -2
- package/dist/lib/devMsg.cjs +1 -2
- package/dist/lib/devMsg.js +1 -2
- package/dist/lib/escapeHTML.cjs +1 -2
- package/dist/lib/escapeHTML.js +1 -2
- package/dist/lib/getOptionalLinkProperties.cjs +1 -2
- package/dist/lib/getOptionalLinkProperties.js +1 -2
- package/dist/lib/getPreviewCookie.cjs +1 -2
- package/dist/lib/getPreviewCookie.js +1 -2
- package/dist/lib/isInternalURL.cjs +1 -2
- package/dist/lib/isInternalURL.js +1 -2
- package/dist/lib/isMigrationValue.cjs +3 -4
- package/dist/lib/isMigrationValue.js +3 -4
- package/dist/lib/isValue.cjs +2 -3
- package/dist/lib/isValue.js +2 -3
- package/dist/lib/pLimit.cjs +4 -5
- package/dist/lib/pLimit.cjs.map +1 -1
- package/dist/lib/pLimit.js +4 -5
- package/dist/lib/pLimit.js.map +1 -1
- package/dist/lib/request.cjs +1 -2
- package/dist/lib/request.d.cts +0 -2
- package/dist/lib/request.d.cts.map +1 -1
- package/dist/lib/request.d.ts +0 -2
- package/dist/lib/request.d.ts.map +1 -1
- package/dist/lib/request.js +1 -2
- package/dist/lib/resolveMigrationDocumentData.cjs +3 -4
- package/dist/lib/resolveMigrationDocumentData.js +3 -4
- package/dist/lib/serializerHelpers.cjs +2 -3
- package/dist/lib/serializerHelpers.js +2 -3
- package/dist/lib/throttledWarn.cjs +4 -5
- package/dist/lib/throttledWarn.cjs.map +1 -1
- package/dist/lib/throttledWarn.js +4 -5
- package/dist/lib/throttledWarn.js.map +1 -1
- package/dist/lib/validateAssetMetadata.cjs +1 -2
- package/dist/lib/validateAssetMetadata.js +1 -2
- package/dist/package.cjs +2 -3
- package/dist/package.js +2 -3
- package/dist/richtext/asText.cjs +1 -2
- package/dist/richtext/asText.d.cts +0 -2
- package/dist/richtext/asText.d.cts.map +1 -1
- package/dist/richtext/asText.d.ts +0 -2
- package/dist/richtext/asText.d.ts.map +1 -1
- package/dist/richtext/asText.js +1 -2
- package/dist/richtext/asTree.cjs +1 -2
- package/dist/richtext/asTree.d.cts +0 -2
- package/dist/richtext/asTree.d.cts.map +1 -1
- package/dist/richtext/asTree.d.ts +0 -2
- package/dist/richtext/asTree.d.ts.map +1 -1
- package/dist/richtext/asTree.js +1 -2
- package/dist/richtext/composeSerializers.cjs +1 -2
- package/dist/richtext/composeSerializers.d.cts +0 -2
- package/dist/richtext/composeSerializers.d.cts.map +1 -1
- package/dist/richtext/composeSerializers.d.ts +0 -2
- package/dist/richtext/composeSerializers.d.ts.map +1 -1
- package/dist/richtext/composeSerializers.js +1 -2
- package/dist/richtext/serialize.cjs +1 -2
- package/dist/richtext/serialize.d.cts +0 -2
- package/dist/richtext/serialize.d.cts.map +1 -1
- package/dist/richtext/serialize.d.ts +0 -2
- package/dist/richtext/serialize.d.ts.map +1 -1
- package/dist/richtext/serialize.js +1 -2
- package/dist/richtext/types.cjs +1 -2
- package/dist/richtext/types.d.cts +0 -2
- package/dist/richtext/types.d.cts.map +1 -1
- package/dist/richtext/types.d.ts +0 -2
- package/dist/richtext/types.d.ts.map +1 -1
- package/dist/richtext/types.js +1 -2
- package/dist/richtext/wrapMapSerializer.cjs +1 -2
- package/dist/richtext/wrapMapSerializer.d.cts +0 -2
- package/dist/richtext/wrapMapSerializer.d.cts.map +1 -1
- package/dist/richtext/wrapMapSerializer.d.ts +0 -2
- package/dist/richtext/wrapMapSerializer.d.ts.map +1 -1
- package/dist/richtext/wrapMapSerializer.js +1 -2
- package/dist/richtext.cjs +2 -2
- package/dist/richtext.d.cts +2 -2
- package/dist/richtext.d.ts +2 -2
- package/dist/richtext.js +2 -2
- package/dist/types/api/asset/asset.d.cts +0 -2
- package/dist/types/api/asset/asset.d.cts.map +1 -1
- package/dist/types/api/asset/asset.d.ts +0 -2
- package/dist/types/api/asset/asset.d.ts.map +1 -1
- package/dist/types/api/asset/tag.d.cts +0 -2
- package/dist/types/api/asset/tag.d.cts.map +1 -1
- package/dist/types/api/asset/tag.d.ts +0 -2
- package/dist/types/api/asset/tag.d.ts.map +1 -1
- package/dist/types/api/integration.d.cts +0 -2
- package/dist/types/api/integration.d.cts.map +1 -1
- package/dist/types/api/integration.d.ts +0 -2
- package/dist/types/api/integration.d.ts.map +1 -1
- package/dist/types/api/migration/release.d.cts +0 -2
- package/dist/types/api/migration/release.d.cts.map +1 -1
- package/dist/types/api/migration/release.d.ts +0 -2
- package/dist/types/api/migration/release.d.ts.map +1 -1
- package/dist/types/api/query.d.cts +0 -2
- package/dist/types/api/query.d.cts.map +1 -1
- package/dist/types/api/query.d.ts +0 -2
- package/dist/types/api/query.d.ts.map +1 -1
- package/dist/types/api/ref.d.cts +0 -2
- package/dist/types/api/ref.d.cts.map +1 -1
- package/dist/types/api/ref.d.ts +0 -2
- package/dist/types/api/ref.d.ts.map +1 -1
- package/dist/types/api/release.d.cts +0 -2
- package/dist/types/api/release.d.cts.map +1 -1
- package/dist/types/api/release.d.ts +0 -2
- package/dist/types/api/release.d.ts.map +1 -1
- package/dist/types/api/repository.d.cts +0 -2
- package/dist/types/api/repository.d.cts.map +1 -1
- package/dist/types/api/repository.d.ts +0 -2
- package/dist/types/api/repository.d.ts.map +1 -1
- package/dist/types/api/tags.d.cts +0 -2
- package/dist/types/api/tags.d.cts.map +1 -1
- package/dist/types/api/tags.d.ts +0 -2
- package/dist/types/api/tags.d.ts.map +1 -1
- package/dist/types/migration/Asset.cjs +1 -2
- package/dist/types/migration/Asset.d.cts +1 -3
- package/dist/types/migration/Asset.d.cts.map +1 -1
- package/dist/types/migration/Asset.d.ts +1 -3
- package/dist/types/migration/Asset.d.ts.map +1 -1
- package/dist/types/migration/Asset.js +1 -2
- package/dist/types/migration/ContentRelationship.d.cts +0 -2
- package/dist/types/migration/ContentRelationship.d.cts.map +1 -1
- package/dist/types/migration/ContentRelationship.d.ts +0 -2
- package/dist/types/migration/ContentRelationship.d.ts.map +1 -1
- package/dist/types/migration/Document.cjs +1 -2
- package/dist/types/migration/Document.d.cts +4 -6
- package/dist/types/migration/Document.d.cts.map +1 -1
- package/dist/types/migration/Document.d.ts +4 -6
- package/dist/types/migration/Document.d.ts.map +1 -1
- package/dist/types/migration/Document.js +1 -2
- package/dist/types/model/boolean.d.cts +0 -2
- package/dist/types/model/boolean.d.cts.map +1 -1
- package/dist/types/model/boolean.d.ts +0 -2
- package/dist/types/model/boolean.d.ts.map +1 -1
- package/dist/types/model/color.d.cts +0 -2
- package/dist/types/model/color.d.cts.map +1 -1
- package/dist/types/model/color.d.ts +0 -2
- package/dist/types/model/color.d.ts.map +1 -1
- package/dist/types/model/contentRelationship.d.cts +0 -2
- package/dist/types/model/contentRelationship.d.cts.map +1 -1
- package/dist/types/model/contentRelationship.d.ts +0 -2
- package/dist/types/model/contentRelationship.d.ts.map +1 -1
- package/dist/types/model/customType.d.cts +0 -2
- package/dist/types/model/customType.d.cts.map +1 -1
- package/dist/types/model/customType.d.ts +0 -2
- package/dist/types/model/customType.d.ts.map +1 -1
- package/dist/types/model/date.d.cts +0 -2
- package/dist/types/model/date.d.cts.map +1 -1
- package/dist/types/model/date.d.ts +0 -2
- package/dist/types/model/date.d.ts.map +1 -1
- package/dist/types/model/embed.d.cts +0 -2
- package/dist/types/model/embed.d.cts.map +1 -1
- package/dist/types/model/embed.d.ts +0 -2
- package/dist/types/model/embed.d.ts.map +1 -1
- package/dist/types/model/geoPoint.d.cts +0 -2
- package/dist/types/model/geoPoint.d.cts.map +1 -1
- package/dist/types/model/geoPoint.d.ts +0 -2
- package/dist/types/model/geoPoint.d.ts.map +1 -1
- package/dist/types/model/group.d.cts +0 -2
- package/dist/types/model/group.d.cts.map +1 -1
- package/dist/types/model/group.d.ts +0 -2
- package/dist/types/model/group.d.ts.map +1 -1
- package/dist/types/model/image.d.cts +0 -2
- package/dist/types/model/image.d.cts.map +1 -1
- package/dist/types/model/image.d.ts +0 -2
- package/dist/types/model/image.d.ts.map +1 -1
- package/dist/types/model/integration.d.cts +0 -2
- package/dist/types/model/integration.d.cts.map +1 -1
- package/dist/types/model/integration.d.ts +0 -2
- package/dist/types/model/integration.d.ts.map +1 -1
- package/dist/types/model/keyText.d.cts +0 -2
- package/dist/types/model/keyText.d.cts.map +1 -1
- package/dist/types/model/keyText.d.ts +0 -2
- package/dist/types/model/keyText.d.ts.map +1 -1
- package/dist/types/model/link.cjs +1 -2
- package/dist/types/model/link.d.cts +0 -2
- package/dist/types/model/link.d.cts.map +1 -1
- package/dist/types/model/link.d.ts +0 -2
- package/dist/types/model/link.d.ts.map +1 -1
- package/dist/types/model/link.js +1 -2
- package/dist/types/model/linkToMedia.d.cts +0 -2
- package/dist/types/model/linkToMedia.d.cts.map +1 -1
- package/dist/types/model/linkToMedia.d.ts +0 -2
- package/dist/types/model/linkToMedia.d.ts.map +1 -1
- package/dist/types/model/number.d.cts +0 -2
- package/dist/types/model/number.d.cts.map +1 -1
- package/dist/types/model/number.d.ts +0 -2
- package/dist/types/model/number.d.ts.map +1 -1
- package/dist/types/model/range.d.cts +0 -2
- package/dist/types/model/range.d.cts.map +1 -1
- package/dist/types/model/range.d.ts +0 -2
- package/dist/types/model/range.d.ts.map +1 -1
- package/dist/types/model/richText.d.cts +0 -2
- package/dist/types/model/richText.d.cts.map +1 -1
- package/dist/types/model/richText.d.ts +0 -2
- package/dist/types/model/richText.d.ts.map +1 -1
- package/dist/types/model/select.d.cts +0 -2
- package/dist/types/model/select.d.cts.map +1 -1
- package/dist/types/model/select.d.ts +0 -2
- package/dist/types/model/select.d.ts.map +1 -1
- package/dist/types/model/separator.d.cts +0 -2
- package/dist/types/model/separator.d.cts.map +1 -1
- package/dist/types/model/separator.d.ts +0 -2
- package/dist/types/model/separator.d.ts.map +1 -1
- package/dist/types/model/sharedSlice.d.cts +1 -3
- package/dist/types/model/sharedSlice.d.cts.map +1 -1
- package/dist/types/model/sharedSlice.d.ts +1 -3
- package/dist/types/model/sharedSlice.d.ts.map +1 -1
- package/dist/types/model/sharedSliceVariation.d.cts +0 -2
- package/dist/types/model/sharedSliceVariation.d.cts.map +1 -1
- package/dist/types/model/sharedSliceVariation.d.ts +0 -2
- package/dist/types/model/sharedSliceVariation.d.ts.map +1 -1
- package/dist/types/model/slice.cjs +1 -2
- package/dist/types/model/slice.d.cts +0 -2
- package/dist/types/model/slice.d.cts.map +1 -1
- package/dist/types/model/slice.d.ts +0 -2
- package/dist/types/model/slice.d.ts.map +1 -1
- package/dist/types/model/slice.js +1 -2
- package/dist/types/model/sliceZone.cjs +1 -2
- package/dist/types/model/sliceZone.d.cts +0 -2
- package/dist/types/model/sliceZone.d.cts.map +1 -1
- package/dist/types/model/sliceZone.d.ts +0 -2
- package/dist/types/model/sliceZone.d.ts.map +1 -1
- package/dist/types/model/sliceZone.js +1 -2
- package/dist/types/model/table.d.cts +0 -2
- package/dist/types/model/table.d.cts.map +1 -1
- package/dist/types/model/table.d.ts +0 -2
- package/dist/types/model/table.d.ts.map +1 -1
- package/dist/types/model/timestamp.d.cts +0 -2
- package/dist/types/model/timestamp.d.cts.map +1 -1
- package/dist/types/model/timestamp.d.ts +0 -2
- package/dist/types/model/timestamp.d.ts.map +1 -1
- package/dist/types/model/title.d.cts +0 -2
- package/dist/types/model/title.d.cts.map +1 -1
- package/dist/types/model/title.d.ts +0 -2
- package/dist/types/model/title.d.ts.map +1 -1
- package/dist/types/model/types.cjs +1 -2
- package/dist/types/model/types.d.cts +2 -4
- package/dist/types/model/types.d.cts.map +1 -1
- package/dist/types/model/types.d.ts +2 -4
- package/dist/types/model/types.d.ts.map +1 -1
- package/dist/types/model/types.js +1 -2
- package/dist/types/model/uid.d.cts +0 -2
- package/dist/types/model/uid.d.cts.map +1 -1
- package/dist/types/model/uid.d.ts +0 -2
- package/dist/types/model/uid.d.ts.map +1 -1
- package/dist/types/value/boolean.d.cts +0 -2
- package/dist/types/value/boolean.d.cts.map +1 -1
- package/dist/types/value/boolean.d.ts +0 -2
- package/dist/types/value/boolean.d.ts.map +1 -1
- package/dist/types/value/color.d.cts +0 -2
- package/dist/types/value/color.d.cts.map +1 -1
- package/dist/types/value/color.d.ts +0 -2
- package/dist/types/value/color.d.ts.map +1 -1
- package/dist/types/value/contentRelationship.d.cts +0 -2
- package/dist/types/value/contentRelationship.d.cts.map +1 -1
- package/dist/types/value/contentRelationship.d.ts +0 -2
- package/dist/types/value/contentRelationship.d.ts.map +1 -1
- package/dist/types/value/date.d.cts +0 -2
- package/dist/types/value/date.d.cts.map +1 -1
- package/dist/types/value/date.d.ts +0 -2
- package/dist/types/value/date.d.ts.map +1 -1
- package/dist/types/value/document.d.cts +0 -2
- package/dist/types/value/document.d.cts.map +1 -1
- package/dist/types/value/document.d.ts +0 -2
- package/dist/types/value/document.d.ts.map +1 -1
- package/dist/types/value/embed.cjs +1 -2
- package/dist/types/value/embed.d.cts +0 -2
- package/dist/types/value/embed.d.cts.map +1 -1
- package/dist/types/value/embed.d.ts +0 -2
- package/dist/types/value/embed.d.ts.map +1 -1
- package/dist/types/value/embed.js +1 -2
- package/dist/types/value/geoPoint.d.cts +0 -2
- package/dist/types/value/geoPoint.d.cts.map +1 -1
- package/dist/types/value/geoPoint.d.ts +0 -2
- package/dist/types/value/geoPoint.d.ts.map +1 -1
- package/dist/types/value/group.d.cts +0 -2
- package/dist/types/value/group.d.cts.map +1 -1
- package/dist/types/value/group.d.ts +0 -2
- package/dist/types/value/group.d.ts.map +1 -1
- package/dist/types/value/image.d.cts +0 -2
- package/dist/types/value/image.d.cts.map +1 -1
- package/dist/types/value/image.d.ts +0 -2
- package/dist/types/value/image.d.ts.map +1 -1
- package/dist/types/value/integration.d.cts +0 -2
- package/dist/types/value/integration.d.cts.map +1 -1
- package/dist/types/value/integration.d.ts +0 -2
- package/dist/types/value/integration.d.ts.map +1 -1
- package/dist/types/value/keyText.d.cts +0 -2
- package/dist/types/value/keyText.d.cts.map +1 -1
- package/dist/types/value/keyText.d.ts +0 -2
- package/dist/types/value/keyText.d.ts.map +1 -1
- package/dist/types/value/link.cjs +1 -2
- package/dist/types/value/link.d.cts +2 -4
- package/dist/types/value/link.d.cts.map +1 -1
- package/dist/types/value/link.d.ts +2 -4
- package/dist/types/value/link.d.ts.map +1 -1
- package/dist/types/value/link.js +1 -2
- package/dist/types/value/linkToMedia.d.cts +0 -2
- package/dist/types/value/linkToMedia.d.cts.map +1 -1
- package/dist/types/value/linkToMedia.d.ts +0 -2
- package/dist/types/value/linkToMedia.d.ts.map +1 -1
- package/dist/types/value/number.d.cts +0 -2
- package/dist/types/value/number.d.cts.map +1 -1
- package/dist/types/value/number.d.ts +0 -2
- package/dist/types/value/number.d.ts.map +1 -1
- package/dist/types/value/richText.cjs +1 -2
- package/dist/types/value/richText.d.cts +1 -3
- package/dist/types/value/richText.d.cts.map +1 -1
- package/dist/types/value/richText.d.ts +1 -3
- package/dist/types/value/richText.d.ts.map +1 -1
- package/dist/types/value/richText.js +1 -2
- package/dist/types/value/select.d.cts +0 -2
- package/dist/types/value/select.d.cts.map +1 -1
- package/dist/types/value/select.d.ts +0 -2
- package/dist/types/value/select.d.ts.map +1 -1
- package/dist/types/value/sharedSlice.d.cts +0 -2
- package/dist/types/value/sharedSlice.d.cts.map +1 -1
- package/dist/types/value/sharedSlice.d.ts +0 -2
- package/dist/types/value/sharedSlice.d.ts.map +1 -1
- package/dist/types/value/sharedSliceVariation.d.cts +0 -2
- package/dist/types/value/sharedSliceVariation.d.cts.map +1 -1
- package/dist/types/value/sharedSliceVariation.d.ts +0 -2
- package/dist/types/value/sharedSliceVariation.d.ts.map +1 -1
- package/dist/types/value/slice.d.cts +0 -2
- package/dist/types/value/slice.d.cts.map +1 -1
- package/dist/types/value/slice.d.ts +0 -2
- package/dist/types/value/slice.d.ts.map +1 -1
- package/dist/types/value/sliceZone.d.cts +0 -2
- package/dist/types/value/sliceZone.d.cts.map +1 -1
- package/dist/types/value/sliceZone.d.ts +0 -2
- package/dist/types/value/sliceZone.d.ts.map +1 -1
- package/dist/types/value/table.d.cts +1 -3
- package/dist/types/value/table.d.cts.map +1 -1
- package/dist/types/value/table.d.ts +1 -3
- package/dist/types/value/table.d.ts.map +1 -1
- package/dist/types/value/timestamp.d.cts +0 -2
- package/dist/types/value/timestamp.d.cts.map +1 -1
- package/dist/types/value/timestamp.d.ts +0 -2
- package/dist/types/value/timestamp.d.ts.map +1 -1
- package/dist/types/value/title.d.cts +1 -3
- package/dist/types/value/title.d.cts.map +1 -1
- package/dist/types/value/title.d.ts +1 -3
- package/dist/types/value/title.d.ts.map +1 -1
- package/dist/types/value/types.d.cts +4 -6
- package/dist/types/value/types.d.cts.map +1 -1
- package/dist/types/value/types.d.ts +4 -6
- package/dist/types/value/types.d.ts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.cts +0 -2
- package/dist/types/webhook/apiUpdate.d.cts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.ts +0 -2
- package/dist/types/webhook/apiUpdate.d.ts.map +1 -1
- package/dist/types/webhook/testTrigger.d.cts +0 -2
- package/dist/types/webhook/testTrigger.d.cts.map +1 -1
- package/dist/types/webhook/testTrigger.d.ts +0 -2
- package/dist/types/webhook/testTrigger.d.ts.map +1 -1
- package/dist/types/webhook/types.cjs +1 -2
- package/dist/types/webhook/types.d.cts +0 -2
- package/dist/types/webhook/types.d.cts.map +1 -1
- package/dist/types/webhook/types.d.ts +0 -2
- package/dist/types/webhook/types.d.ts.map +1 -1
- package/dist/types/webhook/types.js +1 -2
- package/package.json +7 -7
- package/src/Client.ts +6 -6
- package/src/lib/pLimit.ts +3 -3
- package/src/lib/throttledWarn.ts +3 -3
|
@@ -1,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
|
package/dist/richtext.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_richText = require("./types/value/richText.cjs");
|
|
3
|
-
const require_asText = require("./richtext/asText.cjs");
|
|
4
2
|
const require_asTree = require("./richtext/asTree.cjs");
|
|
3
|
+
const require_asText = require("./richtext/asText.cjs");
|
|
5
4
|
const require_serialize = require("./richtext/serialize.cjs");
|
|
6
5
|
const require_wrapMapSerializer = require("./richtext/wrapMapSerializer.cjs");
|
|
7
6
|
const require_composeSerializers = require("./richtext/composeSerializers.cjs");
|
|
7
|
+
const require_richText = require("./types/value/richText.cjs");
|
|
8
8
|
exports.Element = require_richText.RichTextNodeType;
|
|
9
9
|
exports.asText = require_asText.asText;
|
|
10
10
|
exports.asTree = require_asTree.asTree;
|
package/dist/richtext.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RichTextNodeType } from "./types/value/richText.cjs";
|
|
2
|
-
import { RichTextFunctionSerializer, RichTextMapSerializer, RichTextMapSerializerFunction } from "./richtext/types.cjs";
|
|
3
1
|
import { asTree } from "./richtext/asTree.cjs";
|
|
4
2
|
import { asText } from "./richtext/asText.cjs";
|
|
5
3
|
import { serialize } from "./richtext/serialize.cjs";
|
|
6
4
|
import { wrapMapSerializer } from "./richtext/wrapMapSerializer.cjs";
|
|
7
5
|
import { composeSerializers } from "./richtext/composeSerializers.cjs";
|
|
6
|
+
import { RichTextNodeType } from "./types/value/richText.cjs";
|
|
7
|
+
import { RichTextFunctionSerializer, RichTextMapSerializer, RichTextMapSerializerFunction } from "./richtext/types.cjs";
|
|
8
8
|
export { RichTextNodeType as Element, type RichTextFunctionSerializer, type RichTextMapSerializer, type RichTextMapSerializerFunction, asText, asTree, composeSerializers, serialize, wrapMapSerializer };
|
package/dist/richtext.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RichTextNodeType } from "./types/value/richText.js";
|
|
2
|
-
import { RichTextFunctionSerializer, RichTextMapSerializer, RichTextMapSerializerFunction } from "./richtext/types.js";
|
|
3
1
|
import { asTree } from "./richtext/asTree.js";
|
|
4
2
|
import { asText } from "./richtext/asText.js";
|
|
5
3
|
import { serialize } from "./richtext/serialize.js";
|
|
6
4
|
import { wrapMapSerializer } from "./richtext/wrapMapSerializer.js";
|
|
7
5
|
import { composeSerializers } from "./richtext/composeSerializers.js";
|
|
6
|
+
import { RichTextNodeType } from "./types/value/richText.js";
|
|
7
|
+
import { RichTextFunctionSerializer, RichTextMapSerializer, RichTextMapSerializerFunction } from "./richtext/types.js";
|
|
8
8
|
export { RichTextNodeType as Element, type RichTextFunctionSerializer, type RichTextMapSerializer, type RichTextMapSerializerFunction, asText, asTree, composeSerializers, serialize, wrapMapSerializer };
|
package/dist/richtext.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RichTextNodeType } from "./types/value/richText.js";
|
|
2
|
-
import { asText } from "./richtext/asText.js";
|
|
3
1
|
import { asTree } from "./richtext/asTree.js";
|
|
2
|
+
import { asText } from "./richtext/asText.js";
|
|
4
3
|
import { serialize } from "./richtext/serialize.js";
|
|
5
4
|
import { wrapMapSerializer } from "./richtext/wrapMapSerializer.js";
|
|
6
5
|
import { composeSerializers } from "./richtext/composeSerializers.js";
|
|
6
|
+
import { RichTextNodeType } from "./types/value/richText.js";
|
|
7
7
|
export { RichTextNodeType as Element, asText, asTree, composeSerializers, serialize, wrapMapSerializer };
|
|
@@ -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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IntegrationFieldData } from "../value/integration.cjs";
|
|
2
|
-
//#region src/types/api/integration.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A catalog item from an integration field.
|
|
5
4
|
*
|
|
@@ -25,5 +24,4 @@ export type IntegrationAPIResults<TData extends IntegrationFieldData = Integrati
|
|
|
25
24
|
results_size: number;
|
|
26
25
|
results: IntegrationAPIItem<TData>[];
|
|
27
26
|
};
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=integration.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.d.cts","names":[],"sources":["../../../src/types/api/integration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"integration.d.cts","names":[],"sources":["../../../src/types/api/integration.ts"],"mappings":";;;;;;;YAQY,mBAAmB,cAAc,uBAAuB;EACnE;EACA;EACA;EACA;EACA;EACA,MAAM;;;;;;;;;YAUK,sBAAsB,cAAc,uBAAuB;EACtE;EACA,SAAS,mBAAmB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IntegrationFieldData } from "../value/integration.js";
|
|
2
|
-
//#region src/types/api/integration.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A catalog item from an integration field.
|
|
5
4
|
*
|
|
@@ -25,5 +24,4 @@ export type IntegrationAPIResults<TData extends IntegrationFieldData = Integrati
|
|
|
25
24
|
results_size: number;
|
|
26
25
|
results: IntegrationAPIItem<TData>[];
|
|
27
26
|
};
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.d.ts","names":[],"sources":["../../../src/types/api/integration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"integration.d.ts","names":[],"sources":["../../../src/types/api/integration.ts"],"mappings":";;;;;;;YAQY,mBAAmB,cAAc,uBAAuB;EACnE;EACA;EACA;EACA;EACA;EACA,MAAM;;;;;;;;;YAUK,sBAAsB,cAAc,uBAAuB;EACtE;EACA,SAAS,mBAAmB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/api/migration/release.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Result of publishing the repository's migration release with the Migration API.
|
|
4
3
|
*
|
|
@@ -8,5 +7,4 @@ export type PublishMigrationReleaseResult = {
|
|
|
8
7
|
/** The total number of documents included in the published migration release. */
|
|
9
8
|
totalItems: number;
|
|
10
9
|
};
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=release.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.cts","names":[],"sources":["../../../../src/types/api/migration/release.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"release.d.cts","names":[],"sources":["../../../../src/types/api/migration/release.ts"],"mappings":";;;;;YAKY;;EAEX"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/api/migration/release.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Result of publishing the repository's migration release with the Migration API.
|
|
4
3
|
*
|
|
@@ -8,5 +7,4 @@ export type PublishMigrationReleaseResult = {
|
|
|
8
7
|
/** The total number of documents included in the published migration release. */
|
|
9
8
|
totalItems: number;
|
|
10
9
|
};
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=release.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","names":[],"sources":["../../../../src/types/api/migration/release.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"release.d.ts","names":[],"sources":["../../../../src/types/api/migration/release.ts"],"mappings":";;;;;YAKY;;EAEX"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PrismicDocument } from "../value/document.cjs";
|
|
2
|
-
//#region src/types/api/query.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A query response from the Prismic REST API V2. The response contains paginated metadata and a
|
|
5
4
|
* list of matching results for the query.
|
|
@@ -25,5 +24,4 @@ export interface Query<Document extends PrismicDocument = PrismicDocument> {
|
|
|
25
24
|
/** A paginated list of documents matching the query. */
|
|
26
25
|
results: Document[];
|
|
27
26
|
}
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=query.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.cts","names":[],"sources":["../../../src/types/api/query.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query.d.cts","names":[],"sources":["../../../src/types/api/query.ts"],"mappings":";;;;;;;;iBASiB,MAAM,iBAAiB,kBAAkB;;EAEzD;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA,SAAS"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PrismicDocument } from "../value/document.js";
|
|
2
|
-
//#region src/types/api/query.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A query response from the Prismic REST API V2. The response contains paginated metadata and a
|
|
5
4
|
* list of matching results for the query.
|
|
@@ -25,5 +24,4 @@ export interface Query<Document extends PrismicDocument = PrismicDocument> {
|
|
|
25
24
|
/** A paginated list of documents matching the query. */
|
|
26
25
|
results: Document[];
|
|
27
26
|
}
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","names":[],"sources":["../../../src/types/api/query.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query.d.ts","names":[],"sources":["../../../src/types/api/query.ts"],"mappings":";;;;;;;;iBASiB,MAAM,iBAAiB,kBAAkB;;EAEzD;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA,SAAS"}
|
package/dist/types/api/ref.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.d.cts","names":[],"sources":["../../../src/types/api/ref.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ref.d.cts","names":[],"sources":["../../../src/types/api/ref.ts"],"mappings":";;;;;iBAKiB;;EAEhB;;EAGA;;EAGA;;EAGA;;;;;;;EAQA"}
|
package/dist/types/api/ref.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.d.ts","names":[],"sources":["../../../src/types/api/ref.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ref.d.ts","names":[],"sources":["../../../src/types/api/ref.ts"],"mappings":";;;;;iBAKiB;;EAEhB;;EAGA;;EAGA;;EAGA;;;;;;;EAQA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Ref } from "./ref.cjs";
|
|
2
|
-
//#region src/types/api/release.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Metadata for a Release.
|
|
5
4
|
*
|
|
@@ -9,5 +8,4 @@ import { Ref } from "./ref.cjs";
|
|
|
9
8
|
* @see More details on Releases: {@link https://prismic.io/docs/guides/draft-plan-and-schedule-content#releases}
|
|
10
9
|
*/
|
|
11
10
|
export type Release = Ref;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=release.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.cts","names":[],"sources":["../../../src/types/api/release.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"release.d.cts","names":[],"sources":["../../../src/types/api/release.ts"],"mappings":";;;;;;;;;YAUY,UAAU"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Ref } from "./ref.js";
|
|
2
|
-
//#region src/types/api/release.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Metadata for a Release.
|
|
5
4
|
*
|
|
@@ -9,5 +8,4 @@ import { Ref } from "./ref.js";
|
|
|
9
8
|
* @see More details on Releases: {@link https://prismic.io/docs/guides/draft-plan-and-schedule-content#releases}
|
|
10
9
|
*/
|
|
11
10
|
export type Release = Ref;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=release.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","names":[],"sources":["../../../src/types/api/release.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"release.d.ts","names":[],"sources":["../../../src/types/api/release.ts"],"mappings":";;;;;;;;;YAUY,UAAU"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Ref } from "./ref.cjs";
|
|
2
|
-
//#region src/types/api/repository.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Repository metadata returned from the Prismic REST API V2. This data can be fetched by sending a
|
|
5
4
|
* `GET` a request to a repository's `/api/v2` endpoint.
|
|
@@ -81,5 +80,4 @@ export interface FormField {
|
|
|
81
80
|
multiple: boolean;
|
|
82
81
|
default?: string;
|
|
83
82
|
}
|
|
84
|
-
//#endregion
|
|
85
83
|
//# sourceMappingURL=repository.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.cts","names":[],"sources":["../../../src/types/api/repository.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"repository.d.cts","names":[],"sources":["../../../src/types/api/repository.ts"],"mappings":";;;;;;;iBAQiB;;;;;;EAMhB,MAAM;;EAGN;;;;;;EAOA,WAAW;;EAGX,OAAO;;;;;EAMP;;;;;;EAOA,OAAO,eAAe;;EAGtB;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA,WAAW;;;iBAIK;;EAEhB;;EAGA;;EAGA;;;;;;;;iBASgB;EAChB;EACA;EACA;EACA;EACA;EACA,QAAQ,eAAe;;;;;;;;iBASP;EAChB;EACA;EACA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Ref } from "./ref.js";
|
|
2
|
-
//#region src/types/api/repository.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Repository metadata returned from the Prismic REST API V2. This data can be fetched by sending a
|
|
5
4
|
* `GET` a request to a repository's `/api/v2` endpoint.
|
|
@@ -81,5 +80,4 @@ export interface FormField {
|
|
|
81
80
|
multiple: boolean;
|
|
82
81
|
default?: string;
|
|
83
82
|
}
|
|
84
|
-
//#endregion
|
|
85
83
|
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.ts","names":[],"sources":["../../../src/types/api/repository.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"repository.d.ts","names":[],"sources":["../../../src/types/api/repository.ts"],"mappings":";;;;;;;iBAQiB;;;;;;EAMhB,MAAM;;EAGN;;;;;;EAOA,WAAW;;EAGX,OAAO;;;;;EAMP;;;;;;EAOA,OAAO,eAAe;;EAGtB;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA,WAAW;;;iBAIK;;EAEhB;;EAGA;;EAGA;;;;;;;;iBASgB;EAChB;EACA;EACA;EACA;EACA;EACA,QAAQ,eAAe;;;;;;;;iBASP;EAChB;EACA;EACA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/api/tags.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* List of tags returned from the Prismic Tags API. This data can be fetched by sending a `GET`
|
|
4
3
|
* request to a repository's `/api/tags` endpoint.
|
|
@@ -7,5 +6,4 @@
|
|
|
7
6
|
* @see More details on the Tags API: {@link https://prismic.io/docs/tags-api-technical-reference}
|
|
8
7
|
*/
|
|
9
8
|
export type Tags<Tag extends string = string> = Tag[];
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=tags.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.cts","names":[],"sources":["../../../src/types/api/tags.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tags.d.cts","names":[],"sources":["../../../src/types/api/tags.ts"],"mappings":";;;;;;;YAOY,KAAK,+BAA+B"}
|
package/dist/types/api/tags.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/types/api/tags.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* List of tags returned from the Prismic Tags API. This data can be fetched by sending a `GET`
|
|
4
3
|
* request to a repository's `/api/tags` endpoint.
|
|
@@ -7,5 +6,4 @@
|
|
|
7
6
|
* @see More details on the Tags API: {@link https://prismic.io/docs/tags-api-technical-reference}
|
|
8
7
|
*/
|
|
9
8
|
export type Tags<Tag extends string = string> = Tag[];
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","names":[],"sources":["../../../src/types/api/tags.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tags.d.ts","names":[],"sources":["../../../src/types/api/tags.ts"],"mappings":";;;;;;;YAOY,KAAK,+BAA+B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types/migration/Asset.ts
|
|
2
2
|
/** A migration asset used with the Prismic Migration API. */
|
|
3
3
|
var PrismicMigrationAsset = class {
|
|
4
4
|
/** Asset object from Prismic, available once created. */
|
|
@@ -19,7 +19,6 @@ var PrismicMigrationAsset = class {
|
|
|
19
19
|
this.originalField = initialField;
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.PrismicMigrationAsset = PrismicMigrationAsset;
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=Asset.cjs.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { Asset } from "../api/asset/asset.cjs";
|
|
1
2
|
import { FilledImageFieldImage } from "../value/image.cjs";
|
|
2
3
|
import { LinkToMediaField } from "../value/linkToMedia.cjs";
|
|
3
4
|
import { RTImageNode } from "../value/richText.cjs";
|
|
4
|
-
import { Asset } from "../api/asset/asset.cjs";
|
|
5
5
|
import { InjectMigrationSpecificTypes } from "./Document.cjs";
|
|
6
|
-
//#region src/types/migration/Asset.d.ts
|
|
7
6
|
/** An asset to be uploaded to Prismic media library. */
|
|
8
7
|
export type MigrationAssetConfig = {
|
|
9
8
|
/**
|
|
@@ -64,5 +63,4 @@ export declare class PrismicMigrationAsset {
|
|
|
64
63
|
*/
|
|
65
64
|
constructor(config: MigrationAssetConfig, initialField?: FilledImageFieldImage | LinkToMediaField<"filled"> | RTImageNode);
|
|
66
65
|
}
|
|
67
|
-
//#endregion
|
|
68
66
|
//# sourceMappingURL=Asset.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Asset.d.cts","names":[],"sources":["../../../src/types/migration/Asset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Asset.d.cts","names":[],"sources":["../../../src/types/migration/Asset.ts"],"mappings":";;;;;;YAOY;;;;;;;;EAQX,aAAa,MAAM,OAAO,YAAY,6BAA6B;;EAGnE,eAAe,MAAM,OAAO,YAAY,6BAA6B;;EAGrE;;EAGA;;EAGA;;EAGA;;;;;;;EAQA;;;YAIW,iBACT;;EAGA,IAAI;IACA,eAAe;;YAGV,uBAAuB,KAAK;;EAEvC,IAAI;;;YAYO,uBAAuB,6BAClC,KAAK;;EAGL,IAAI;;;qBAIQ;;EAEZ,QAAQ;;EAGR,QAAQ;;EAGR,gBAAgB,wBAAwB,6BAA6B;;;;;;;;EASrE,YACC,QAAQ,sBACR,eAAe,wBAAwB,6BAA6B"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { Asset } from "../api/asset/asset.js";
|
|
1
2
|
import { FilledImageFieldImage } from "../value/image.js";
|
|
2
3
|
import { LinkToMediaField } from "../value/linkToMedia.js";
|
|
3
4
|
import { RTImageNode } from "../value/richText.js";
|
|
4
|
-
import { Asset } from "../api/asset/asset.js";
|
|
5
5
|
import { InjectMigrationSpecificTypes } from "./Document.js";
|
|
6
|
-
//#region src/types/migration/Asset.d.ts
|
|
7
6
|
/** An asset to be uploaded to Prismic media library. */
|
|
8
7
|
export type MigrationAssetConfig = {
|
|
9
8
|
/**
|
|
@@ -64,5 +63,4 @@ export declare class PrismicMigrationAsset {
|
|
|
64
63
|
*/
|
|
65
64
|
constructor(config: MigrationAssetConfig, initialField?: FilledImageFieldImage | LinkToMediaField<"filled"> | RTImageNode);
|
|
66
65
|
}
|
|
67
|
-
//#endregion
|
|
68
66
|
//# sourceMappingURL=Asset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Asset.d.ts","names":[],"sources":["../../../src/types/migration/Asset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Asset.d.ts","names":[],"sources":["../../../src/types/migration/Asset.ts"],"mappings":";;;;;;YAOY;;;;;;;;EAQX,aAAa,MAAM,OAAO,YAAY,6BAA6B;;EAGnE,eAAe,MAAM,OAAO,YAAY,6BAA6B;;EAGrE;;EAGA;;EAGA;;EAGA;;;;;;;EAQA;;;YAIW,iBACT;;EAGA,IAAI;IACA,eAAe;;YAGV,uBAAuB,KAAK;;EAEvC,IAAI;;;YAYO,uBAAuB,6BAClC,KAAK;;EAGL,IAAI;;;qBAIQ;;EAEZ,QAAQ;;EAGR,QAAQ;;EAGR,gBAAgB,wBAAwB,6BAA6B;;;;;;;;EASrE,YACC,QAAQ,sBACR,eAAe,wBAAwB,6BAA6B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types/migration/Asset.ts
|
|
2
2
|
/** A migration asset used with the Prismic Migration API. */
|
|
3
3
|
var PrismicMigrationAsset = class {
|
|
4
4
|
/** Asset object from Prismic, available once created. */
|
|
@@ -19,7 +19,6 @@ var PrismicMigrationAsset = class {
|
|
|
19
19
|
this.originalField = initialField;
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { PrismicMigrationAsset };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=Asset.js.map
|