@prismicio/client 7.22.3 → 7.23.0-canary.35b4a42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.cjs +7 -9
- package/dist/Client.cjs.map +1 -1
- package/dist/Client.d.cts +3 -4
- package/dist/Client.d.cts.map +1 -1
- package/dist/Client.d.ts +3 -4
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +7 -9
- package/dist/Client.js.map +1 -1
- package/dist/Migration.cjs +5 -6
- package/dist/Migration.d.cts +5 -6
- package/dist/Migration.d.cts.map +1 -1
- package/dist/Migration.d.ts +5 -6
- package/dist/Migration.d.ts.map +1 -1
- package/dist/Migration.js +5 -6
- package/dist/WriteClient.cjs +3 -4
- package/dist/WriteClient.d.cts +4 -5
- package/dist/WriteClient.d.cts.map +1 -1
- package/dist/WriteClient.d.ts +4 -5
- package/dist/WriteClient.d.ts.map +1 -1
- package/dist/WriteClient.js +3 -4
- package/dist/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/buildQueryURL.cjs +1 -2
- package/dist/buildQueryURL.d.cts +1 -2
- package/dist/buildQueryURL.d.cts.map +1 -1
- package/dist/buildQueryURL.d.ts +1 -2
- package/dist/buildQueryURL.d.ts.map +1 -1
- package/dist/buildQueryURL.js +1 -2
- package/dist/cookie.cjs +8 -3
- package/dist/cookie.cjs.map +1 -1
- package/dist/cookie.d.cts +3 -2
- package/dist/cookie.d.cts.map +1 -1
- package/dist/cookie.d.ts +3 -2
- package/dist/cookie.d.ts.map +1 -1
- package/dist/cookie.js +8 -4
- package/dist/cookie.js.map +1 -1
- package/dist/createClient.cjs +1 -2
- package/dist/createClient.d.cts +1 -3
- package/dist/createClient.d.cts.map +1 -1
- package/dist/createClient.d.ts +1 -3
- package/dist/createClient.d.ts.map +1 -1
- package/dist/createClient.js +1 -2
- package/dist/createMigration.cjs +1 -2
- package/dist/createMigration.d.cts +1 -3
- package/dist/createMigration.d.cts.map +1 -1
- package/dist/createMigration.d.ts +1 -3
- package/dist/createMigration.d.ts.map +1 -1
- package/dist/createMigration.js +1 -2
- package/dist/createWriteClient.cjs +1 -2
- package/dist/createWriteClient.d.cts +0 -2
- package/dist/createWriteClient.d.cts.map +1 -1
- package/dist/createWriteClient.d.ts +0 -2
- package/dist/createWriteClient.d.ts.map +1 -1
- package/dist/createWriteClient.js +1 -2
- package/dist/errors.cjs +1 -2
- package/dist/errors.d.cts +1 -2
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.ts +1 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +1 -2
- package/dist/filter.cjs +1 -2
- package/dist/filter.d.cts +0 -2
- package/dist/filter.d.cts.map +1 -1
- package/dist/filter.d.ts +0 -2
- package/dist/filter.d.ts.map +1 -1
- package/dist/filter.js +1 -2
- package/dist/getGraphQLEndpoint.cjs +1 -2
- package/dist/getGraphQLEndpoint.d.cts +0 -2
- package/dist/getGraphQLEndpoint.d.cts.map +1 -1
- package/dist/getGraphQLEndpoint.d.ts +0 -2
- package/dist/getGraphQLEndpoint.d.ts.map +1 -1
- package/dist/getGraphQLEndpoint.js +1 -2
- package/dist/getRepositoryEndpoint.cjs +1 -2
- package/dist/getRepositoryEndpoint.d.cts +0 -2
- package/dist/getRepositoryEndpoint.d.cts.map +1 -1
- package/dist/getRepositoryEndpoint.d.ts +0 -2
- package/dist/getRepositoryEndpoint.d.ts.map +1 -1
- package/dist/getRepositoryEndpoint.js +1 -2
- package/dist/getRepositoryName.cjs +1 -2
- package/dist/getRepositoryName.d.cts +0 -2
- package/dist/getRepositoryName.d.cts.map +1 -1
- package/dist/getRepositoryName.d.ts +0 -2
- package/dist/getRepositoryName.d.ts.map +1 -1
- package/dist/getRepositoryName.js +1 -2
- package/dist/getToolbarSrc.cjs +9 -5
- package/dist/getToolbarSrc.cjs.map +1 -1
- package/dist/getToolbarSrc.d.cts +10 -3
- package/dist/getToolbarSrc.d.cts.map +1 -1
- package/dist/getToolbarSrc.d.ts +10 -3
- package/dist/getToolbarSrc.d.ts.map +1 -1
- package/dist/getToolbarSrc.js +9 -5
- package/dist/getToolbarSrc.js.map +1 -1
- package/dist/helpers/asDate.cjs +1 -2
- package/dist/helpers/asDate.d.cts +1 -2
- package/dist/helpers/asDate.d.cts.map +1 -1
- package/dist/helpers/asDate.d.ts +1 -2
- package/dist/helpers/asDate.d.ts.map +1 -1
- package/dist/helpers/asDate.js +1 -2
- package/dist/helpers/asHTML.cjs +2 -3
- package/dist/helpers/asHTML.d.cts +2 -3
- package/dist/helpers/asHTML.d.cts.map +1 -1
- package/dist/helpers/asHTML.d.ts +2 -3
- package/dist/helpers/asHTML.d.ts.map +1 -1
- package/dist/helpers/asHTML.js +2 -3
- package/dist/helpers/asImagePixelDensitySrcSet.cjs +1 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts +1 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts +1 -2
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.js +1 -2
- package/dist/helpers/asImageSrc.cjs +1 -2
- package/dist/helpers/asImageSrc.d.cts +1 -2
- package/dist/helpers/asImageSrc.d.cts.map +1 -1
- package/dist/helpers/asImageSrc.d.ts +1 -2
- package/dist/helpers/asImageSrc.d.ts.map +1 -1
- package/dist/helpers/asImageSrc.js +1 -2
- package/dist/helpers/asImageWidthSrcSet.cjs +1 -2
- package/dist/helpers/asImageWidthSrcSet.d.cts +1 -2
- package/dist/helpers/asImageWidthSrcSet.d.cts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.d.ts +1 -2
- package/dist/helpers/asImageWidthSrcSet.d.ts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.js +1 -2
- package/dist/helpers/asLink.cjs +1 -2
- package/dist/helpers/asLink.d.cts +3 -4
- package/dist/helpers/asLink.d.cts.map +1 -1
- package/dist/helpers/asLink.d.ts +3 -4
- package/dist/helpers/asLink.d.ts.map +1 -1
- package/dist/helpers/asLink.js +1 -2
- package/dist/helpers/asLinkAttrs.cjs +2 -3
- package/dist/helpers/asLinkAttrs.d.cts +3 -4
- package/dist/helpers/asLinkAttrs.d.cts.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +3 -4
- package/dist/helpers/asLinkAttrs.d.ts.map +1 -1
- package/dist/helpers/asLinkAttrs.js +2 -3
- package/dist/helpers/asText.cjs +1 -2
- package/dist/helpers/asText.d.cts +1 -2
- package/dist/helpers/asText.d.cts.map +1 -1
- package/dist/helpers/asText.d.ts +1 -2
- package/dist/helpers/asText.d.ts.map +1 -1
- package/dist/helpers/asText.js +1 -2
- package/dist/helpers/documentToLinkField.cjs +1 -2
- package/dist/helpers/documentToLinkField.d.cts +1 -2
- package/dist/helpers/documentToLinkField.d.cts.map +1 -1
- package/dist/helpers/documentToLinkField.d.ts +1 -2
- package/dist/helpers/documentToLinkField.d.ts.map +1 -1
- package/dist/helpers/documentToLinkField.js +1 -2
- package/dist/helpers/isFilled.cjs +1 -2
- package/dist/helpers/isFilled.d.cts +7 -8
- package/dist/helpers/isFilled.d.ts +7 -8
- package/dist/helpers/isFilled.js +1 -2
- package/dist/helpers/mapSliceZone.cjs +1 -2
- package/dist/helpers/mapSliceZone.d.cts +1 -2
- package/dist/helpers/mapSliceZone.d.cts.map +1 -1
- package/dist/helpers/mapSliceZone.d.ts +1 -2
- package/dist/helpers/mapSliceZone.d.ts.map +1 -1
- package/dist/helpers/mapSliceZone.js +1 -2
- package/dist/index.cjs +17 -18
- package/dist/index.d.cts +62 -64
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +62 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -18
- package/dist/isRepositoryEndpoint.cjs +1 -2
- package/dist/isRepositoryEndpoint.d.cts +0 -2
- package/dist/isRepositoryEndpoint.d.cts.map +1 -1
- package/dist/isRepositoryEndpoint.d.ts +0 -2
- package/dist/isRepositoryEndpoint.d.ts.map +1 -1
- package/dist/isRepositoryEndpoint.js +1 -2
- package/dist/isRepositoryName.cjs +1 -2
- package/dist/isRepositoryName.d.cts +0 -2
- package/dist/isRepositoryName.d.cts.map +1 -1
- package/dist/isRepositoryName.d.ts +0 -2
- package/dist/isRepositoryName.d.ts.map +1 -1
- package/dist/isRepositoryName.js +1 -2
- package/dist/lib/devMsg.cjs +1 -2
- package/dist/lib/devMsg.js +1 -2
- package/dist/lib/escapeHTML.cjs +1 -2
- package/dist/lib/escapeHTML.js +1 -2
- package/dist/lib/getOptionalLinkProperties.cjs +1 -2
- package/dist/lib/getOptionalLinkProperties.js +1 -2
- package/dist/lib/getPreviewCookie.cjs +1 -2
- package/dist/lib/getPreviewCookie.js +1 -2
- package/dist/lib/isInternalURL.cjs +1 -2
- package/dist/lib/isInternalURL.js +1 -2
- package/dist/lib/isMigrationValue.cjs +3 -4
- package/dist/lib/isMigrationValue.js +3 -4
- package/dist/lib/isValue.cjs +2 -3
- package/dist/lib/isValue.js +2 -3
- package/dist/lib/pLimit.cjs +4 -5
- package/dist/lib/pLimit.cjs.map +1 -1
- package/dist/lib/pLimit.js +4 -5
- package/dist/lib/pLimit.js.map +1 -1
- package/dist/lib/request.cjs +1 -2
- package/dist/lib/request.d.cts +0 -2
- package/dist/lib/request.d.cts.map +1 -1
- package/dist/lib/request.d.ts +0 -2
- package/dist/lib/request.d.ts.map +1 -1
- package/dist/lib/request.js +1 -2
- package/dist/lib/resolveMigrationDocumentData.cjs +3 -4
- package/dist/lib/resolveMigrationDocumentData.js +3 -4
- package/dist/lib/serializerHelpers.cjs +2 -3
- package/dist/lib/serializerHelpers.js +2 -3
- package/dist/lib/throttledWarn.cjs +4 -5
- package/dist/lib/throttledWarn.cjs.map +1 -1
- package/dist/lib/throttledWarn.js +4 -5
- package/dist/lib/throttledWarn.js.map +1 -1
- package/dist/lib/validateAssetMetadata.cjs +1 -2
- package/dist/lib/validateAssetMetadata.js +1 -2
- package/dist/package.cjs +2 -3
- package/dist/package.js +2 -3
- package/dist/richtext/asText.cjs +1 -2
- package/dist/richtext/asText.d.cts +0 -2
- package/dist/richtext/asText.d.cts.map +1 -1
- package/dist/richtext/asText.d.ts +0 -2
- package/dist/richtext/asText.d.ts.map +1 -1
- package/dist/richtext/asText.js +1 -2
- package/dist/richtext/asTree.cjs +1 -2
- package/dist/richtext/asTree.d.cts +0 -2
- package/dist/richtext/asTree.d.cts.map +1 -1
- package/dist/richtext/asTree.d.ts +0 -2
- package/dist/richtext/asTree.d.ts.map +1 -1
- package/dist/richtext/asTree.js +1 -2
- package/dist/richtext/composeSerializers.cjs +1 -2
- package/dist/richtext/composeSerializers.d.cts +0 -2
- package/dist/richtext/composeSerializers.d.cts.map +1 -1
- package/dist/richtext/composeSerializers.d.ts +0 -2
- package/dist/richtext/composeSerializers.d.ts.map +1 -1
- package/dist/richtext/composeSerializers.js +1 -2
- package/dist/richtext/serialize.cjs +1 -2
- package/dist/richtext/serialize.d.cts +0 -2
- package/dist/richtext/serialize.d.cts.map +1 -1
- package/dist/richtext/serialize.d.ts +0 -2
- package/dist/richtext/serialize.d.ts.map +1 -1
- package/dist/richtext/serialize.js +1 -2
- package/dist/richtext/types.cjs +1 -2
- package/dist/richtext/types.d.cts +0 -2
- package/dist/richtext/types.d.cts.map +1 -1
- package/dist/richtext/types.d.ts +0 -2
- package/dist/richtext/types.d.ts.map +1 -1
- package/dist/richtext/types.js +1 -2
- package/dist/richtext/wrapMapSerializer.cjs +1 -2
- package/dist/richtext/wrapMapSerializer.d.cts +0 -2
- package/dist/richtext/wrapMapSerializer.d.cts.map +1 -1
- package/dist/richtext/wrapMapSerializer.d.ts +0 -2
- package/dist/richtext/wrapMapSerializer.d.ts.map +1 -1
- package/dist/richtext/wrapMapSerializer.js +1 -2
- package/dist/richtext.cjs +2 -2
- package/dist/richtext.d.cts +2 -2
- package/dist/richtext.d.ts +2 -2
- package/dist/richtext.js +2 -2
- package/dist/types/api/asset/asset.d.cts +0 -2
- package/dist/types/api/asset/asset.d.cts.map +1 -1
- package/dist/types/api/asset/asset.d.ts +0 -2
- package/dist/types/api/asset/asset.d.ts.map +1 -1
- package/dist/types/api/asset/tag.d.cts +0 -2
- package/dist/types/api/asset/tag.d.cts.map +1 -1
- package/dist/types/api/asset/tag.d.ts +0 -2
- package/dist/types/api/asset/tag.d.ts.map +1 -1
- package/dist/types/api/integration.d.cts +0 -2
- package/dist/types/api/integration.d.cts.map +1 -1
- package/dist/types/api/integration.d.ts +0 -2
- package/dist/types/api/integration.d.ts.map +1 -1
- package/dist/types/api/migration/release.d.cts +0 -2
- package/dist/types/api/migration/release.d.cts.map +1 -1
- package/dist/types/api/migration/release.d.ts +0 -2
- package/dist/types/api/migration/release.d.ts.map +1 -1
- package/dist/types/api/query.d.cts +0 -2
- package/dist/types/api/query.d.cts.map +1 -1
- package/dist/types/api/query.d.ts +0 -2
- package/dist/types/api/query.d.ts.map +1 -1
- package/dist/types/api/ref.d.cts +0 -2
- package/dist/types/api/ref.d.cts.map +1 -1
- package/dist/types/api/ref.d.ts +0 -2
- package/dist/types/api/ref.d.ts.map +1 -1
- package/dist/types/api/release.d.cts +0 -2
- package/dist/types/api/release.d.cts.map +1 -1
- package/dist/types/api/release.d.ts +0 -2
- package/dist/types/api/release.d.ts.map +1 -1
- package/dist/types/api/repository.d.cts +0 -2
- package/dist/types/api/repository.d.cts.map +1 -1
- package/dist/types/api/repository.d.ts +0 -2
- package/dist/types/api/repository.d.ts.map +1 -1
- package/dist/types/api/tags.d.cts +0 -2
- package/dist/types/api/tags.d.cts.map +1 -1
- package/dist/types/api/tags.d.ts +0 -2
- package/dist/types/api/tags.d.ts.map +1 -1
- package/dist/types/migration/Asset.cjs +1 -2
- package/dist/types/migration/Asset.d.cts +1 -3
- package/dist/types/migration/Asset.d.cts.map +1 -1
- package/dist/types/migration/Asset.d.ts +1 -3
- package/dist/types/migration/Asset.d.ts.map +1 -1
- package/dist/types/migration/Asset.js +1 -2
- package/dist/types/migration/ContentRelationship.d.cts +1 -2
- package/dist/types/migration/ContentRelationship.d.cts.map +1 -1
- package/dist/types/migration/ContentRelationship.d.ts +1 -2
- package/dist/types/migration/ContentRelationship.d.ts.map +1 -1
- package/dist/types/migration/Document.cjs +1 -2
- package/dist/types/migration/Document.d.cts +5 -6
- package/dist/types/migration/Document.d.cts.map +1 -1
- package/dist/types/migration/Document.d.ts +5 -6
- package/dist/types/migration/Document.d.ts.map +1 -1
- package/dist/types/migration/Document.js +1 -2
- package/dist/types/model/boolean.d.cts +0 -2
- package/dist/types/model/boolean.d.cts.map +1 -1
- package/dist/types/model/boolean.d.ts +0 -2
- package/dist/types/model/boolean.d.ts.map +1 -1
- package/dist/types/model/color.d.cts +0 -2
- package/dist/types/model/color.d.cts.map +1 -1
- package/dist/types/model/color.d.ts +0 -2
- package/dist/types/model/color.d.ts.map +1 -1
- package/dist/types/model/contentRelationship.d.cts +0 -2
- package/dist/types/model/contentRelationship.d.cts.map +1 -1
- package/dist/types/model/contentRelationship.d.ts +0 -2
- package/dist/types/model/contentRelationship.d.ts.map +1 -1
- package/dist/types/model/customType.d.cts +0 -2
- package/dist/types/model/customType.d.cts.map +1 -1
- package/dist/types/model/customType.d.ts +0 -2
- package/dist/types/model/customType.d.ts.map +1 -1
- package/dist/types/model/date.d.cts +0 -2
- package/dist/types/model/date.d.cts.map +1 -1
- package/dist/types/model/date.d.ts +0 -2
- package/dist/types/model/date.d.ts.map +1 -1
- package/dist/types/model/embed.d.cts +0 -2
- package/dist/types/model/embed.d.cts.map +1 -1
- package/dist/types/model/embed.d.ts +0 -2
- package/dist/types/model/embed.d.ts.map +1 -1
- package/dist/types/model/geoPoint.d.cts +0 -2
- package/dist/types/model/geoPoint.d.cts.map +1 -1
- package/dist/types/model/geoPoint.d.ts +0 -2
- package/dist/types/model/geoPoint.d.ts.map +1 -1
- package/dist/types/model/group.d.cts +0 -2
- package/dist/types/model/group.d.cts.map +1 -1
- package/dist/types/model/group.d.ts +0 -2
- package/dist/types/model/group.d.ts.map +1 -1
- package/dist/types/model/image.d.cts +0 -2
- package/dist/types/model/image.d.cts.map +1 -1
- package/dist/types/model/image.d.ts +0 -2
- package/dist/types/model/image.d.ts.map +1 -1
- package/dist/types/model/integration.d.cts +0 -2
- package/dist/types/model/integration.d.cts.map +1 -1
- package/dist/types/model/integration.d.ts +0 -2
- package/dist/types/model/integration.d.ts.map +1 -1
- package/dist/types/model/keyText.d.cts +0 -2
- package/dist/types/model/keyText.d.cts.map +1 -1
- package/dist/types/model/keyText.d.ts +0 -2
- package/dist/types/model/keyText.d.ts.map +1 -1
- package/dist/types/model/link.cjs +1 -2
- package/dist/types/model/link.d.cts +0 -2
- package/dist/types/model/link.d.cts.map +1 -1
- package/dist/types/model/link.d.ts +0 -2
- package/dist/types/model/link.d.ts.map +1 -1
- package/dist/types/model/link.js +1 -2
- package/dist/types/model/linkToMedia.d.cts +0 -2
- package/dist/types/model/linkToMedia.d.cts.map +1 -1
- package/dist/types/model/linkToMedia.d.ts +0 -2
- package/dist/types/model/linkToMedia.d.ts.map +1 -1
- package/dist/types/model/number.d.cts +0 -2
- package/dist/types/model/number.d.cts.map +1 -1
- package/dist/types/model/number.d.ts +0 -2
- package/dist/types/model/number.d.ts.map +1 -1
- package/dist/types/model/range.d.cts +0 -2
- package/dist/types/model/range.d.cts.map +1 -1
- package/dist/types/model/range.d.ts +0 -2
- package/dist/types/model/range.d.ts.map +1 -1
- package/dist/types/model/richText.d.cts +0 -2
- package/dist/types/model/richText.d.cts.map +1 -1
- package/dist/types/model/richText.d.ts +0 -2
- package/dist/types/model/richText.d.ts.map +1 -1
- package/dist/types/model/select.d.cts +0 -2
- package/dist/types/model/select.d.cts.map +1 -1
- package/dist/types/model/select.d.ts +0 -2
- package/dist/types/model/select.d.ts.map +1 -1
- package/dist/types/model/separator.d.cts +0 -2
- package/dist/types/model/separator.d.cts.map +1 -1
- package/dist/types/model/separator.d.ts +0 -2
- package/dist/types/model/separator.d.ts.map +1 -1
- package/dist/types/model/sharedSlice.d.cts +1 -3
- package/dist/types/model/sharedSlice.d.cts.map +1 -1
- package/dist/types/model/sharedSlice.d.ts +1 -3
- package/dist/types/model/sharedSlice.d.ts.map +1 -1
- package/dist/types/model/sharedSliceVariation.d.cts +0 -2
- package/dist/types/model/sharedSliceVariation.d.cts.map +1 -1
- package/dist/types/model/sharedSliceVariation.d.ts +0 -2
- package/dist/types/model/sharedSliceVariation.d.ts.map +1 -1
- package/dist/types/model/slice.cjs +1 -2
- package/dist/types/model/slice.d.cts +0 -2
- package/dist/types/model/slice.d.cts.map +1 -1
- package/dist/types/model/slice.d.ts +0 -2
- package/dist/types/model/slice.d.ts.map +1 -1
- package/dist/types/model/slice.js +1 -2
- package/dist/types/model/sliceZone.cjs +1 -2
- package/dist/types/model/sliceZone.d.cts +0 -2
- package/dist/types/model/sliceZone.d.cts.map +1 -1
- package/dist/types/model/sliceZone.d.ts +0 -2
- package/dist/types/model/sliceZone.d.ts.map +1 -1
- package/dist/types/model/sliceZone.js +1 -2
- package/dist/types/model/table.d.cts +0 -2
- package/dist/types/model/table.d.cts.map +1 -1
- package/dist/types/model/table.d.ts +0 -2
- package/dist/types/model/table.d.ts.map +1 -1
- package/dist/types/model/timestamp.d.cts +0 -2
- package/dist/types/model/timestamp.d.cts.map +1 -1
- package/dist/types/model/timestamp.d.ts +0 -2
- package/dist/types/model/timestamp.d.ts.map +1 -1
- package/dist/types/model/title.d.cts +0 -2
- package/dist/types/model/title.d.cts.map +1 -1
- package/dist/types/model/title.d.ts +0 -2
- package/dist/types/model/title.d.ts.map +1 -1
- package/dist/types/model/types.cjs +1 -2
- package/dist/types/model/types.d.cts +2 -4
- package/dist/types/model/types.d.cts.map +1 -1
- package/dist/types/model/types.d.ts +2 -4
- package/dist/types/model/types.d.ts.map +1 -1
- package/dist/types/model/types.js +1 -2
- package/dist/types/model/uid.d.cts +0 -2
- package/dist/types/model/uid.d.cts.map +1 -1
- package/dist/types/model/uid.d.ts +0 -2
- package/dist/types/model/uid.d.ts.map +1 -1
- package/dist/types/value/boolean.d.cts +0 -2
- package/dist/types/value/boolean.d.cts.map +1 -1
- package/dist/types/value/boolean.d.ts +0 -2
- package/dist/types/value/boolean.d.ts.map +1 -1
- package/dist/types/value/color.d.cts +0 -2
- package/dist/types/value/color.d.cts.map +1 -1
- package/dist/types/value/color.d.ts +0 -2
- package/dist/types/value/color.d.ts.map +1 -1
- package/dist/types/value/contentRelationship.d.cts +0 -2
- package/dist/types/value/contentRelationship.d.cts.map +1 -1
- package/dist/types/value/contentRelationship.d.ts +0 -2
- package/dist/types/value/contentRelationship.d.ts.map +1 -1
- package/dist/types/value/date.d.cts +0 -2
- package/dist/types/value/date.d.cts.map +1 -1
- package/dist/types/value/date.d.ts +0 -2
- package/dist/types/value/date.d.ts.map +1 -1
- package/dist/types/value/document.d.cts +0 -2
- package/dist/types/value/document.d.cts.map +1 -1
- package/dist/types/value/document.d.ts +0 -2
- package/dist/types/value/document.d.ts.map +1 -1
- package/dist/types/value/embed.cjs +1 -2
- package/dist/types/value/embed.d.cts +1 -2
- package/dist/types/value/embed.d.cts.map +1 -1
- package/dist/types/value/embed.d.ts +1 -2
- package/dist/types/value/embed.d.ts.map +1 -1
- package/dist/types/value/embed.js +1 -2
- package/dist/types/value/geoPoint.d.cts +0 -2
- package/dist/types/value/geoPoint.d.cts.map +1 -1
- package/dist/types/value/geoPoint.d.ts +0 -2
- package/dist/types/value/geoPoint.d.ts.map +1 -1
- package/dist/types/value/group.d.cts +0 -2
- package/dist/types/value/group.d.cts.map +1 -1
- package/dist/types/value/group.d.ts +0 -2
- package/dist/types/value/group.d.ts.map +1 -1
- package/dist/types/value/image.d.cts +0 -2
- package/dist/types/value/image.d.cts.map +1 -1
- package/dist/types/value/image.d.ts +0 -2
- package/dist/types/value/image.d.ts.map +1 -1
- package/dist/types/value/integration.d.cts +0 -2
- package/dist/types/value/integration.d.cts.map +1 -1
- package/dist/types/value/integration.d.ts +0 -2
- package/dist/types/value/integration.d.ts.map +1 -1
- package/dist/types/value/keyText.d.cts +0 -2
- package/dist/types/value/keyText.d.cts.map +1 -1
- package/dist/types/value/keyText.d.ts +0 -2
- package/dist/types/value/keyText.d.ts.map +1 -1
- package/dist/types/value/link.cjs +1 -2
- package/dist/types/value/link.d.cts +2 -4
- package/dist/types/value/link.d.cts.map +1 -1
- package/dist/types/value/link.d.ts +2 -4
- package/dist/types/value/link.d.ts.map +1 -1
- package/dist/types/value/link.js +1 -2
- package/dist/types/value/linkToMedia.d.cts +1 -2
- package/dist/types/value/linkToMedia.d.cts.map +1 -1
- package/dist/types/value/linkToMedia.d.ts +1 -2
- package/dist/types/value/linkToMedia.d.ts.map +1 -1
- package/dist/types/value/number.d.cts +0 -2
- package/dist/types/value/number.d.cts.map +1 -1
- package/dist/types/value/number.d.ts +0 -2
- package/dist/types/value/number.d.ts.map +1 -1
- package/dist/types/value/richText.cjs +1 -2
- package/dist/types/value/richText.d.cts +1 -3
- package/dist/types/value/richText.d.cts.map +1 -1
- package/dist/types/value/richText.d.ts +1 -3
- package/dist/types/value/richText.d.ts.map +1 -1
- package/dist/types/value/richText.js +1 -2
- package/dist/types/value/select.d.cts +0 -2
- package/dist/types/value/select.d.cts.map +1 -1
- package/dist/types/value/select.d.ts +0 -2
- package/dist/types/value/select.d.ts.map +1 -1
- package/dist/types/value/sharedSlice.d.cts +0 -2
- package/dist/types/value/sharedSlice.d.cts.map +1 -1
- package/dist/types/value/sharedSlice.d.ts +0 -2
- package/dist/types/value/sharedSlice.d.ts.map +1 -1
- package/dist/types/value/sharedSliceVariation.d.cts +0 -2
- package/dist/types/value/sharedSliceVariation.d.cts.map +1 -1
- package/dist/types/value/sharedSliceVariation.d.ts +0 -2
- package/dist/types/value/sharedSliceVariation.d.ts.map +1 -1
- package/dist/types/value/slice.d.cts +0 -2
- package/dist/types/value/slice.d.cts.map +1 -1
- package/dist/types/value/slice.d.ts +0 -2
- package/dist/types/value/slice.d.ts.map +1 -1
- package/dist/types/value/sliceZone.d.cts +0 -2
- package/dist/types/value/sliceZone.d.cts.map +1 -1
- package/dist/types/value/sliceZone.d.ts +0 -2
- package/dist/types/value/sliceZone.d.ts.map +1 -1
- package/dist/types/value/table.d.cts +1 -3
- package/dist/types/value/table.d.cts.map +1 -1
- package/dist/types/value/table.d.ts +1 -3
- package/dist/types/value/table.d.ts.map +1 -1
- package/dist/types/value/timestamp.d.cts +0 -2
- package/dist/types/value/timestamp.d.cts.map +1 -1
- package/dist/types/value/timestamp.d.ts +0 -2
- package/dist/types/value/timestamp.d.ts.map +1 -1
- package/dist/types/value/title.d.cts +1 -3
- package/dist/types/value/title.d.cts.map +1 -1
- package/dist/types/value/title.d.ts +1 -3
- package/dist/types/value/title.d.ts.map +1 -1
- package/dist/types/value/types.d.cts +5 -6
- package/dist/types/value/types.d.cts.map +1 -1
- package/dist/types/value/types.d.ts +5 -6
- package/dist/types/value/types.d.ts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.cts +1 -2
- package/dist/types/webhook/apiUpdate.d.cts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.ts +1 -2
- package/dist/types/webhook/apiUpdate.d.ts.map +1 -1
- package/dist/types/webhook/testTrigger.d.cts +0 -2
- package/dist/types/webhook/testTrigger.d.cts.map +1 -1
- package/dist/types/webhook/testTrigger.d.ts +0 -2
- package/dist/types/webhook/testTrigger.d.ts.map +1 -1
- package/dist/types/webhook/types.cjs +1 -2
- package/dist/types/webhook/types.d.cts +0 -2
- package/dist/types/webhook/types.d.cts.map +1 -1
- package/dist/types/webhook/types.d.ts +0 -2
- package/dist/types/webhook/types.d.ts.map +1 -1
- package/dist/types/webhook/types.js +1 -2
- package/package.json +7 -7
- package/src/Client.ts +6 -6
- package/src/cookie.ts +3 -0
- package/src/getToolbarSrc.ts +18 -4
- package/src/lib/pLimit.ts +3 -3
- package/src/lib/throttledWarn.ts +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,78 +1,26 @@
|
|
|
1
1
|
import { filter } from "./filter.cjs";
|
|
2
|
-
import { BooleanField } from "./types/value/boolean.cjs";
|
|
3
|
-
import { ColorField } from "./types/value/color.cjs";
|
|
4
|
-
import { GroupField, NestedGroupField } from "./types/value/group.cjs";
|
|
5
|
-
import { SharedSliceVariation } from "./types/value/sharedSliceVariation.cjs";
|
|
6
|
-
import { SharedSlice } from "./types/value/sharedSlice.cjs";
|
|
7
|
-
import { Slice } from "./types/value/slice.cjs";
|
|
8
|
-
import { SliceZone } from "./types/value/sliceZone.cjs";
|
|
9
|
-
import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.cjs";
|
|
10
|
-
import { DateField } from "./types/value/date.cjs";
|
|
11
|
-
import { GeoPointField } from "./types/value/geoPoint.cjs";
|
|
12
|
-
import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.cjs";
|
|
13
|
-
import { IntegrationField, IntegrationFieldData } from "./types/value/integration.cjs";
|
|
14
|
-
import { KeyTextField } from "./types/value/keyText.cjs";
|
|
15
|
-
import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.cjs";
|
|
16
|
-
import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.cjs";
|
|
17
|
-
import { NumberField } from "./types/value/number.cjs";
|
|
18
|
-
import { SelectField } from "./types/value/select.cjs";
|
|
19
|
-
import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.cjs";
|
|
20
|
-
import { TimestampField } from "./types/value/timestamp.cjs";
|
|
21
|
-
import { TitleField } from "./types/value/title.cjs";
|
|
22
|
-
import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.cjs";
|
|
23
|
-
import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.cjs";
|
|
24
|
-
import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.cjs";
|
|
25
|
-
import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.cjs";
|
|
26
|
-
import { LinkResolverFunction, asLink } from "./helpers/asLink.cjs";
|
|
27
2
|
import { HTMLRichTextFunctionSerializer, HTMLRichTextMapSerializer, HTMLRichTextSerializer, asHTML } from "./helpers/asHTML.cjs";
|
|
28
3
|
import { SliceMapper, mapSliceZone } from "./helpers/mapSliceZone.cjs";
|
|
29
|
-
import { CustomTypeModelBooleanField } from "./types/model/boolean.cjs";
|
|
30
|
-
import { CustomTypeModelColorField } from "./types/model/color.cjs";
|
|
31
|
-
import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.cjs";
|
|
32
|
-
import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.cjs";
|
|
33
|
-
import { CustomTypeModelDateField } from "./types/model/date.cjs";
|
|
34
|
-
import { CustomTypeModelEmbedField } from "./types/model/embed.cjs";
|
|
35
|
-
import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.cjs";
|
|
36
|
-
import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.cjs";
|
|
37
|
-
import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.cjs";
|
|
38
|
-
import { CustomTypeModelKeyTextField } from "./types/model/keyText.cjs";
|
|
39
|
-
import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.cjs";
|
|
40
|
-
import { CustomTypeModelNumberField } from "./types/model/number.cjs";
|
|
41
|
-
import { CustomTypeModelRangeField } from "./types/model/range.cjs";
|
|
42
|
-
import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.cjs";
|
|
43
|
-
import { CustomTypeModelSelectField } from "./types/model/select.cjs";
|
|
44
|
-
import { CustomTypeModelSeparatorField } from "./types/model/separator.cjs";
|
|
45
|
-
import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.cjs";
|
|
46
|
-
import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.cjs";
|
|
47
|
-
import { CustomTypeModelTableField } from "./types/model/table.cjs";
|
|
48
|
-
import { CustomTypeModelTimestampField } from "./types/model/timestamp.cjs";
|
|
49
|
-
import { CustomTypeModelTitleField } from "./types/model/title.cjs";
|
|
50
|
-
import { CustomTypeModelUIDField } from "./types/model/uid.cjs";
|
|
51
|
-
import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.cjs";
|
|
52
4
|
import { CustomTypeModelIntegrationField } from "./types/model/integration.cjs";
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { Query } from "./types/api/query.cjs";
|
|
56
|
-
import { Ref } from "./types/api/ref.cjs";
|
|
57
|
-
import { Form, FormField, Language, Repository } from "./types/api/repository.cjs";
|
|
58
|
-
import { Client, ClientConfig, HttpRequestLike } from "./Client.cjs";
|
|
5
|
+
import { IntegrationField, IntegrationFieldData } from "./types/value/integration.cjs";
|
|
6
|
+
import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.cjs";
|
|
59
7
|
import { CreateClient, createClient } from "./createClient.cjs";
|
|
60
|
-
import {
|
|
61
|
-
import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.cjs";
|
|
62
|
-
import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.cjs";
|
|
63
|
-
import { Migration } from "./Migration.cjs";
|
|
64
|
-
import { PublishMigrationReleaseResult } from "./types/api/migration/release.cjs";
|
|
65
|
-
import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.cjs";
|
|
8
|
+
import { Client, ClientConfig, HttpRequestLike } from "./Client.cjs";
|
|
66
9
|
import { CreateWriteClient, createWriteClient } from "./createWriteClient.cjs";
|
|
10
|
+
import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.cjs";
|
|
67
11
|
import { CreateMigration, createMigration } from "./createMigration.cjs";
|
|
12
|
+
import { Migration } from "./Migration.cjs";
|
|
68
13
|
import { getRepositoryEndpoint } from "./getRepositoryEndpoint.cjs";
|
|
69
14
|
import { getRepositoryName } from "./getRepositoryName.cjs";
|
|
70
15
|
import { getGraphQLEndpoint } from "./getGraphQLEndpoint.cjs";
|
|
71
16
|
import { isRepositoryName } from "./isRepositoryName.cjs";
|
|
72
17
|
import { isRepositoryEndpoint } from "./isRepositoryEndpoint.cjs";
|
|
18
|
+
import { BuildQueryURLArgs, Ordering, QueryParams, Route, buildQueryURL } from "./buildQueryURL.cjs";
|
|
73
19
|
import { getToolbarSrc } from "./getToolbarSrc.cjs";
|
|
74
20
|
import { cookie_d_exports } from "./cookie.cjs";
|
|
21
|
+
import { AbortSignalLike, FetchLike, RequestInitLike, ResponseLike } from "./lib/request.cjs";
|
|
75
22
|
import { asDate } from "./helpers/asDate.cjs";
|
|
23
|
+
import { LinkResolverFunction, asLink } from "./helpers/asLink.cjs";
|
|
76
24
|
import { AsLinkAttrsConfig, asLinkAttrs } from "./helpers/asLinkAttrs.cjs";
|
|
77
25
|
import { asText } from "./helpers/asText.cjs";
|
|
78
26
|
import { asImageSrc } from "./helpers/asImageSrc.cjs";
|
|
@@ -81,16 +29,67 @@ import { asImagePixelDensitySrcSet } from "./helpers/asImagePixelDensitySrcSet.c
|
|
|
81
29
|
import { isFilled_d_exports } from "./helpers/isFilled.cjs";
|
|
82
30
|
import { documentToLinkField } from "./helpers/documentToLinkField.cjs";
|
|
83
31
|
import { ForbiddenError, InvalidDataError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.cjs";
|
|
32
|
+
import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.cjs";
|
|
33
|
+
import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.cjs";
|
|
34
|
+
import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.cjs";
|
|
35
|
+
import { TitleField } from "./types/value/title.cjs";
|
|
36
|
+
import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.cjs";
|
|
37
|
+
import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.cjs";
|
|
38
|
+
import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.cjs";
|
|
39
|
+
import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.cjs";
|
|
40
|
+
import { BooleanField } from "./types/value/boolean.cjs";
|
|
41
|
+
import { ColorField } from "./types/value/color.cjs";
|
|
42
|
+
import { DateField } from "./types/value/date.cjs";
|
|
43
|
+
import { KeyTextField } from "./types/value/keyText.cjs";
|
|
44
|
+
import { NumberField } from "./types/value/number.cjs";
|
|
45
|
+
import { SelectField } from "./types/value/select.cjs";
|
|
46
|
+
import { TimestampField } from "./types/value/timestamp.cjs";
|
|
47
|
+
import { GeoPointField } from "./types/value/geoPoint.cjs";
|
|
48
|
+
import { GroupField, NestedGroupField } from "./types/value/group.cjs";
|
|
49
|
+
import { SliceZone } from "./types/value/sliceZone.cjs";
|
|
50
|
+
import { Slice } from "./types/value/slice.cjs";
|
|
51
|
+
import { SharedSlice } from "./types/value/sharedSlice.cjs";
|
|
52
|
+
import { SharedSliceVariation } from "./types/value/sharedSliceVariation.cjs";
|
|
53
|
+
import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.cjs";
|
|
54
|
+
import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.cjs";
|
|
55
|
+
import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.cjs";
|
|
56
|
+
import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.cjs";
|
|
57
|
+
import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.cjs";
|
|
84
58
|
import { CustomTypeModel, CustomTypeModelDefinition, CustomTypeModelTab } from "./types/model/customType.cjs";
|
|
85
|
-
import {
|
|
59
|
+
import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.cjs";
|
|
60
|
+
import { CustomTypeModelTitleField } from "./types/model/title.cjs";
|
|
61
|
+
import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.cjs";
|
|
62
|
+
import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.cjs";
|
|
63
|
+
import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.cjs";
|
|
64
|
+
import { CustomTypeModelEmbedField } from "./types/model/embed.cjs";
|
|
65
|
+
import { CustomTypeModelBooleanField } from "./types/model/boolean.cjs";
|
|
66
|
+
import { CustomTypeModelColorField } from "./types/model/color.cjs";
|
|
67
|
+
import { CustomTypeModelDateField } from "./types/model/date.cjs";
|
|
68
|
+
import { CustomTypeModelKeyTextField } from "./types/model/keyText.cjs";
|
|
69
|
+
import { CustomTypeModelNumberField } from "./types/model/number.cjs";
|
|
70
|
+
import { CustomTypeModelSelectField } from "./types/model/select.cjs";
|
|
71
|
+
import { CustomTypeModelTimestampField } from "./types/model/timestamp.cjs";
|
|
72
|
+
import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.cjs";
|
|
73
|
+
import { CustomTypeModelTableField } from "./types/model/table.cjs";
|
|
74
|
+
import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.cjs";
|
|
86
75
|
import { SharedSliceModel } from "./types/model/sharedSlice.cjs";
|
|
76
|
+
import { SharedSliceModelVariation } from "./types/model/sharedSliceVariation.cjs";
|
|
77
|
+
import { CustomTypeModelUIDField } from "./types/model/uid.cjs";
|
|
78
|
+
import { CustomTypeModelRangeField } from "./types/model/range.cjs";
|
|
79
|
+
import { CustomTypeModelSeparatorField } from "./types/model/separator.cjs";
|
|
80
|
+
import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.cjs";
|
|
81
|
+
import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.cjs";
|
|
82
|
+
import { MigrationContentRelationship } from "./types/migration/ContentRelationship.cjs";
|
|
83
|
+
import { Query } from "./types/api/query.cjs";
|
|
84
|
+
import { PublishMigrationReleaseResult } from "./types/api/migration/release.cjs";
|
|
85
|
+
import { Ref } from "./types/api/ref.cjs";
|
|
87
86
|
import { Release } from "./types/api/release.cjs";
|
|
87
|
+
import { Form, FormField, Language, Repository } from "./types/api/repository.cjs";
|
|
88
88
|
import { Tags } from "./types/api/tags.cjs";
|
|
89
89
|
import { IntegrationAPIItem, IntegrationAPIResults } from "./types/api/integration.cjs";
|
|
90
|
+
import { WebhookBody, WebhookType } from "./types/webhook/types.cjs";
|
|
90
91
|
import { WebhookBodyAPIUpdate } from "./types/webhook/apiUpdate.cjs";
|
|
91
92
|
import { WebhookBodyTestTrigger } from "./types/webhook/testTrigger.cjs";
|
|
92
|
-
import { WebhookBody, WebhookType } from "./types/webhook/types.cjs";
|
|
93
|
-
//#region src/index.d.ts
|
|
94
93
|
/** @deprecated Renamed to `filter` */
|
|
95
94
|
declare const predicate: {
|
|
96
95
|
at: (path: string, value: string | number | boolean | string[] | Date) => string;
|
|
@@ -154,6 +153,5 @@ declare const Element: {
|
|
|
154
153
|
type IntegrationFields = IntegrationField;
|
|
155
154
|
/** @deprecated Renamed to `CustomTypeModelIntegrationField`. */
|
|
156
155
|
type CustomTypeModelIntegrationFieldsField = CustomTypeModelIntegrationField;
|
|
157
|
-
//#endregion
|
|
158
156
|
export { type AbortSignalLike, type AlternateLanguage, type AnyOEmbed, type AnyRegularField, type AnySlicePrimaryField, type AsLinkAttrsConfig, type BooleanField, type BuildQueryURLArgs, Client, type ClientConfig, type ColorField, type ContentRelationshipField, type CreateClient, type CreateMigration, type CreateWriteClient, type CustomTypeModel, type CustomTypeModelBooleanField, type CustomTypeModelColorField, type CustomTypeModelContentRelationshipField, type CustomTypeModelDateField, type CustomTypeModelDefinition, type CustomTypeModelEmbedField, type CustomTypeModelFetchContentRelationshipLevel1, type CustomTypeModelFetchCustomTypeLevel1, type CustomTypeModelFetchCustomTypeLevel2, type CustomTypeModelFetchGroupLevel1, type CustomTypeModelFetchGroupLevel2, type CustomTypeModelField, type CustomTypeModelFieldForGroup, type CustomTypeModelFieldForNestedGroup, type CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType, type CustomTypeModelGeoPointField, type CustomTypeModelGroupField, type CustomTypeModelImageConstraint, type CustomTypeModelImageField, type CustomTypeModelImageThumbnail, type CustomTypeModelIntegrationField, CustomTypeModelIntegrationFieldsField, type CustomTypeModelKeyTextField, type CustomTypeModelLegacySlice, type CustomTypeModelLinkField, CustomTypeModelLinkSelectType, type CustomTypeModelLinkToMediaField, type CustomTypeModelNestedGroupField, type CustomTypeModelNumberField, type CustomTypeModelRangeField, type CustomTypeModelRichTextField, type CustomTypeModelRichTextMultiField, type CustomTypeModelRichTextSingleField, type CustomTypeModelSelectField, type CustomTypeModelSeparatorField, type CustomTypeModelSharedSlice, type CustomTypeModelSlice, CustomTypeModelSliceDisplay, type CustomTypeModelSliceLabel, CustomTypeModelSliceType, type CustomTypeModelSliceZoneField, type CustomTypeModelTab, type CustomTypeModelTableField, type CustomTypeModelTimestampField, type CustomTypeModelTitleField, type CustomTypeModelUIDField, type DateField, Element, type EmbedField, type EmptyImageFieldImage, type EmptyLinkField, type ExistingPrismicDocument, type FetchLike, type FieldState, type FilledContentRelationshipField, type FilledImageFieldImage, type FilledLinkToMediaField, type FilledLinkToWebField, ForbiddenError, type Form, type FormField, type GeoPointField, type GroupField, type HTMLFunctionSerializer, type HTMLMapSerializer, type HTMLRichTextFunctionSerializer, type HTMLRichTextMapSerializer, type HTMLRichTextSerializer, type HttpRequestLike, type ImageField, type ImageFieldImage, type InjectMigrationSpecificTypes, type IntegrationAPIItem, type IntegrationAPIResults, type IntegrationField, type IntegrationFieldData, type IntegrationFields, InvalidDataError, type KeyTextField, type Language, type LinkField, type LinkOEmbed, type LinkResolverFunction, type LinkToMediaField, LinkType, type MigrateReporterEvents, Migration, type MigrationContentRelationship, type MigrationImage, type MigrationLinkToMedia, type MigrationRTImageNode, type NestedGroupField, NotFoundError, type NumberField, type OEmbedExtra, OEmbedType, type Ordering, ParsingError, type PendingPrismicDocument, type PhotoOEmbed, PreviewTokenExpiredError, type PrismicDocument, type PrismicDocumentHeader, type PrismicDocumentWithUID, type PrismicDocumentWithoutUID, PrismicError, PrismicMigrationAsset, PrismicMigrationDocument, type PublishMigrationReleaseResult, type Query, type QueryParams, type RTAnyNode, type RTBlockNode, type RTEmNode, type RTEmbedNode, type RTHeading1Node, type RTHeading2Node, type RTHeading3Node, type RTHeading4Node, type RTHeading5Node, type RTHeading6Node, type RTImageNode, type RTInlineNode, type RTLabelNode, type RTLinkNode, type RTListItemNode, type RTListNode, type RTNode, type RTOListItemNode, type RTOListNode, type RTParagraphNode, type RTPreformattedNode, type RTSpanNode, type RTSpanNodeBase, type RTStrongNode, type RTTextNode, type RTTextNodeBase, type Ref, RefExpiredError, RefNotFoundError, type Release, type Repeatable, type Repository, RepositoryNotFoundError, type RequestInitLike, type ResponseLike, type RichOEmbed, type RichTextField, RichTextNodeType, type RichTextNodeTypes, type Route, type SelectField, type SharedSlice, type SharedSliceModel, type SharedSliceModelVariation, type SharedSliceVariation, type Slice, type SliceMapper, type SliceZone, type TableField, type TableFieldBody, type TableFieldBodyRow, type TableFieldDataCell, type TableFieldHead, type TableFieldHeadRow, type TableFieldHeaderCell, type Tags, type TimestampField, type TitleField, type VideoOEmbed, type WebhookBody, type WebhookBodyAPIUpdate, type WebhookBodyTestTrigger, WebhookType, WriteClient, type WriteClientConfig, asDate, asHTML, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet, asLink, asLinkAttrs, asText, buildQueryURL, cookie_d_exports as cookie, createClient, createMigration, createWriteClient, documentToLinkField, filter, getGraphQLEndpoint, getRepositoryEndpoint, getRepositoryName, getToolbarSrc, isFilled_d_exports as isFilled, isRepositoryEndpoint, isRepositoryName, mapSliceZone, predicate, unstable_mapSliceZone };
|
|
159
157
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BA,8BAAqB;;KAWtB,oBAAoB;;KAEpB,yBAAyB;;cAiCxB;;;;;;;;;;;;;;;;;;;;;;KAiGD,oBAAoB;;KAoEpB,wCAAwC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,78 +1,26 @@
|
|
|
1
1
|
import { filter } from "./filter.js";
|
|
2
|
-
import { BooleanField } from "./types/value/boolean.js";
|
|
3
|
-
import { ColorField } from "./types/value/color.js";
|
|
4
|
-
import { GroupField, NestedGroupField } from "./types/value/group.js";
|
|
5
|
-
import { SharedSliceVariation } from "./types/value/sharedSliceVariation.js";
|
|
6
|
-
import { SharedSlice } from "./types/value/sharedSlice.js";
|
|
7
|
-
import { Slice } from "./types/value/slice.js";
|
|
8
|
-
import { SliceZone } from "./types/value/sliceZone.js";
|
|
9
|
-
import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.js";
|
|
10
|
-
import { DateField } from "./types/value/date.js";
|
|
11
|
-
import { GeoPointField } from "./types/value/geoPoint.js";
|
|
12
|
-
import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.js";
|
|
13
|
-
import { IntegrationField, IntegrationFieldData } from "./types/value/integration.js";
|
|
14
|
-
import { KeyTextField } from "./types/value/keyText.js";
|
|
15
|
-
import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.js";
|
|
16
|
-
import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.js";
|
|
17
|
-
import { NumberField } from "./types/value/number.js";
|
|
18
|
-
import { SelectField } from "./types/value/select.js";
|
|
19
|
-
import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.js";
|
|
20
|
-
import { TimestampField } from "./types/value/timestamp.js";
|
|
21
|
-
import { TitleField } from "./types/value/title.js";
|
|
22
|
-
import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.js";
|
|
23
|
-
import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.js";
|
|
24
|
-
import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.js";
|
|
25
|
-
import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.js";
|
|
26
|
-
import { LinkResolverFunction, asLink } from "./helpers/asLink.js";
|
|
27
2
|
import { HTMLRichTextFunctionSerializer, HTMLRichTextMapSerializer, HTMLRichTextSerializer, asHTML } from "./helpers/asHTML.js";
|
|
28
3
|
import { SliceMapper, mapSliceZone } from "./helpers/mapSliceZone.js";
|
|
29
|
-
import { CustomTypeModelBooleanField } from "./types/model/boolean.js";
|
|
30
|
-
import { CustomTypeModelColorField } from "./types/model/color.js";
|
|
31
|
-
import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.js";
|
|
32
|
-
import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.js";
|
|
33
|
-
import { CustomTypeModelDateField } from "./types/model/date.js";
|
|
34
|
-
import { CustomTypeModelEmbedField } from "./types/model/embed.js";
|
|
35
|
-
import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.js";
|
|
36
|
-
import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.js";
|
|
37
|
-
import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.js";
|
|
38
|
-
import { CustomTypeModelKeyTextField } from "./types/model/keyText.js";
|
|
39
|
-
import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.js";
|
|
40
|
-
import { CustomTypeModelNumberField } from "./types/model/number.js";
|
|
41
|
-
import { CustomTypeModelRangeField } from "./types/model/range.js";
|
|
42
|
-
import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.js";
|
|
43
|
-
import { CustomTypeModelSelectField } from "./types/model/select.js";
|
|
44
|
-
import { CustomTypeModelSeparatorField } from "./types/model/separator.js";
|
|
45
|
-
import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.js";
|
|
46
|
-
import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.js";
|
|
47
|
-
import { CustomTypeModelTableField } from "./types/model/table.js";
|
|
48
|
-
import { CustomTypeModelTimestampField } from "./types/model/timestamp.js";
|
|
49
|
-
import { CustomTypeModelTitleField } from "./types/model/title.js";
|
|
50
|
-
import { CustomTypeModelUIDField } from "./types/model/uid.js";
|
|
51
|
-
import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.js";
|
|
52
4
|
import { CustomTypeModelIntegrationField } from "./types/model/integration.js";
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { Query } from "./types/api/query.js";
|
|
56
|
-
import { Ref } from "./types/api/ref.js";
|
|
57
|
-
import { Form, FormField, Language, Repository } from "./types/api/repository.js";
|
|
58
|
-
import { Client, ClientConfig, HttpRequestLike } from "./Client.js";
|
|
5
|
+
import { IntegrationField, IntegrationFieldData } from "./types/value/integration.js";
|
|
6
|
+
import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.js";
|
|
59
7
|
import { CreateClient, createClient } from "./createClient.js";
|
|
60
|
-
import {
|
|
61
|
-
import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
62
|
-
import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
63
|
-
import { Migration } from "./Migration.js";
|
|
64
|
-
import { PublishMigrationReleaseResult } from "./types/api/migration/release.js";
|
|
65
|
-
import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.js";
|
|
8
|
+
import { Client, ClientConfig, HttpRequestLike } from "./Client.js";
|
|
66
9
|
import { CreateWriteClient, createWriteClient } from "./createWriteClient.js";
|
|
10
|
+
import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.js";
|
|
67
11
|
import { CreateMigration, createMigration } from "./createMigration.js";
|
|
12
|
+
import { Migration } from "./Migration.js";
|
|
68
13
|
import { getRepositoryEndpoint } from "./getRepositoryEndpoint.js";
|
|
69
14
|
import { getRepositoryName } from "./getRepositoryName.js";
|
|
70
15
|
import { getGraphQLEndpoint } from "./getGraphQLEndpoint.js";
|
|
71
16
|
import { isRepositoryName } from "./isRepositoryName.js";
|
|
72
17
|
import { isRepositoryEndpoint } from "./isRepositoryEndpoint.js";
|
|
18
|
+
import { BuildQueryURLArgs, Ordering, QueryParams, Route, buildQueryURL } from "./buildQueryURL.js";
|
|
73
19
|
import { getToolbarSrc } from "./getToolbarSrc.js";
|
|
74
20
|
import { cookie_d_exports } from "./cookie.js";
|
|
21
|
+
import { AbortSignalLike, FetchLike, RequestInitLike, ResponseLike } from "./lib/request.js";
|
|
75
22
|
import { asDate } from "./helpers/asDate.js";
|
|
23
|
+
import { LinkResolverFunction, asLink } from "./helpers/asLink.js";
|
|
76
24
|
import { AsLinkAttrsConfig, asLinkAttrs } from "./helpers/asLinkAttrs.js";
|
|
77
25
|
import { asText } from "./helpers/asText.js";
|
|
78
26
|
import { asImageSrc } from "./helpers/asImageSrc.js";
|
|
@@ -81,16 +29,67 @@ import { asImagePixelDensitySrcSet } from "./helpers/asImagePixelDensitySrcSet.j
|
|
|
81
29
|
import { isFilled_d_exports } from "./helpers/isFilled.js";
|
|
82
30
|
import { documentToLinkField } from "./helpers/documentToLinkField.js";
|
|
83
31
|
import { ForbiddenError, InvalidDataError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.js";
|
|
32
|
+
import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.js";
|
|
33
|
+
import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.js";
|
|
34
|
+
import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.js";
|
|
35
|
+
import { TitleField } from "./types/value/title.js";
|
|
36
|
+
import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.js";
|
|
37
|
+
import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.js";
|
|
38
|
+
import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.js";
|
|
39
|
+
import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.js";
|
|
40
|
+
import { BooleanField } from "./types/value/boolean.js";
|
|
41
|
+
import { ColorField } from "./types/value/color.js";
|
|
42
|
+
import { DateField } from "./types/value/date.js";
|
|
43
|
+
import { KeyTextField } from "./types/value/keyText.js";
|
|
44
|
+
import { NumberField } from "./types/value/number.js";
|
|
45
|
+
import { SelectField } from "./types/value/select.js";
|
|
46
|
+
import { TimestampField } from "./types/value/timestamp.js";
|
|
47
|
+
import { GeoPointField } from "./types/value/geoPoint.js";
|
|
48
|
+
import { GroupField, NestedGroupField } from "./types/value/group.js";
|
|
49
|
+
import { SliceZone } from "./types/value/sliceZone.js";
|
|
50
|
+
import { Slice } from "./types/value/slice.js";
|
|
51
|
+
import { SharedSlice } from "./types/value/sharedSlice.js";
|
|
52
|
+
import { SharedSliceVariation } from "./types/value/sharedSliceVariation.js";
|
|
53
|
+
import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.js";
|
|
54
|
+
import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.js";
|
|
55
|
+
import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.js";
|
|
56
|
+
import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.js";
|
|
57
|
+
import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.js";
|
|
84
58
|
import { CustomTypeModel, CustomTypeModelDefinition, CustomTypeModelTab } from "./types/model/customType.js";
|
|
85
|
-
import {
|
|
59
|
+
import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.js";
|
|
60
|
+
import { CustomTypeModelTitleField } from "./types/model/title.js";
|
|
61
|
+
import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.js";
|
|
62
|
+
import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.js";
|
|
63
|
+
import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.js";
|
|
64
|
+
import { CustomTypeModelEmbedField } from "./types/model/embed.js";
|
|
65
|
+
import { CustomTypeModelBooleanField } from "./types/model/boolean.js";
|
|
66
|
+
import { CustomTypeModelColorField } from "./types/model/color.js";
|
|
67
|
+
import { CustomTypeModelDateField } from "./types/model/date.js";
|
|
68
|
+
import { CustomTypeModelKeyTextField } from "./types/model/keyText.js";
|
|
69
|
+
import { CustomTypeModelNumberField } from "./types/model/number.js";
|
|
70
|
+
import { CustomTypeModelSelectField } from "./types/model/select.js";
|
|
71
|
+
import { CustomTypeModelTimestampField } from "./types/model/timestamp.js";
|
|
72
|
+
import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.js";
|
|
73
|
+
import { CustomTypeModelTableField } from "./types/model/table.js";
|
|
74
|
+
import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.js";
|
|
86
75
|
import { SharedSliceModel } from "./types/model/sharedSlice.js";
|
|
76
|
+
import { SharedSliceModelVariation } from "./types/model/sharedSliceVariation.js";
|
|
77
|
+
import { CustomTypeModelUIDField } from "./types/model/uid.js";
|
|
78
|
+
import { CustomTypeModelRangeField } from "./types/model/range.js";
|
|
79
|
+
import { CustomTypeModelSeparatorField } from "./types/model/separator.js";
|
|
80
|
+
import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
81
|
+
import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
82
|
+
import { MigrationContentRelationship } from "./types/migration/ContentRelationship.js";
|
|
83
|
+
import { Query } from "./types/api/query.js";
|
|
84
|
+
import { PublishMigrationReleaseResult } from "./types/api/migration/release.js";
|
|
85
|
+
import { Ref } from "./types/api/ref.js";
|
|
87
86
|
import { Release } from "./types/api/release.js";
|
|
87
|
+
import { Form, FormField, Language, Repository } from "./types/api/repository.js";
|
|
88
88
|
import { Tags } from "./types/api/tags.js";
|
|
89
89
|
import { IntegrationAPIItem, IntegrationAPIResults } from "./types/api/integration.js";
|
|
90
|
+
import { WebhookBody, WebhookType } from "./types/webhook/types.js";
|
|
90
91
|
import { WebhookBodyAPIUpdate } from "./types/webhook/apiUpdate.js";
|
|
91
92
|
import { WebhookBodyTestTrigger } from "./types/webhook/testTrigger.js";
|
|
92
|
-
import { WebhookBody, WebhookType } from "./types/webhook/types.js";
|
|
93
|
-
//#region src/index.d.ts
|
|
94
93
|
/** @deprecated Renamed to `filter` */
|
|
95
94
|
declare const predicate: {
|
|
96
95
|
at: (path: string, value: string | number | boolean | string[] | Date) => string;
|
|
@@ -154,6 +153,5 @@ declare const Element: {
|
|
|
154
153
|
type IntegrationFields = IntegrationField;
|
|
155
154
|
/** @deprecated Renamed to `CustomTypeModelIntegrationField`. */
|
|
156
155
|
type CustomTypeModelIntegrationFieldsField = CustomTypeModelIntegrationField;
|
|
157
|
-
//#endregion
|
|
158
156
|
export { type AbortSignalLike, type AlternateLanguage, type AnyOEmbed, type AnyRegularField, type AnySlicePrimaryField, type AsLinkAttrsConfig, type BooleanField, type BuildQueryURLArgs, Client, type ClientConfig, type ColorField, type ContentRelationshipField, type CreateClient, type CreateMigration, type CreateWriteClient, type CustomTypeModel, type CustomTypeModelBooleanField, type CustomTypeModelColorField, type CustomTypeModelContentRelationshipField, type CustomTypeModelDateField, type CustomTypeModelDefinition, type CustomTypeModelEmbedField, type CustomTypeModelFetchContentRelationshipLevel1, type CustomTypeModelFetchCustomTypeLevel1, type CustomTypeModelFetchCustomTypeLevel2, type CustomTypeModelFetchGroupLevel1, type CustomTypeModelFetchGroupLevel2, type CustomTypeModelField, type CustomTypeModelFieldForGroup, type CustomTypeModelFieldForNestedGroup, type CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType, type CustomTypeModelGeoPointField, type CustomTypeModelGroupField, type CustomTypeModelImageConstraint, type CustomTypeModelImageField, type CustomTypeModelImageThumbnail, type CustomTypeModelIntegrationField, CustomTypeModelIntegrationFieldsField, type CustomTypeModelKeyTextField, type CustomTypeModelLegacySlice, type CustomTypeModelLinkField, CustomTypeModelLinkSelectType, type CustomTypeModelLinkToMediaField, type CustomTypeModelNestedGroupField, type CustomTypeModelNumberField, type CustomTypeModelRangeField, type CustomTypeModelRichTextField, type CustomTypeModelRichTextMultiField, type CustomTypeModelRichTextSingleField, type CustomTypeModelSelectField, type CustomTypeModelSeparatorField, type CustomTypeModelSharedSlice, type CustomTypeModelSlice, CustomTypeModelSliceDisplay, type CustomTypeModelSliceLabel, CustomTypeModelSliceType, type CustomTypeModelSliceZoneField, type CustomTypeModelTab, type CustomTypeModelTableField, type CustomTypeModelTimestampField, type CustomTypeModelTitleField, type CustomTypeModelUIDField, type DateField, Element, type EmbedField, type EmptyImageFieldImage, type EmptyLinkField, type ExistingPrismicDocument, type FetchLike, type FieldState, type FilledContentRelationshipField, type FilledImageFieldImage, type FilledLinkToMediaField, type FilledLinkToWebField, ForbiddenError, type Form, type FormField, type GeoPointField, type GroupField, type HTMLFunctionSerializer, type HTMLMapSerializer, type HTMLRichTextFunctionSerializer, type HTMLRichTextMapSerializer, type HTMLRichTextSerializer, type HttpRequestLike, type ImageField, type ImageFieldImage, type InjectMigrationSpecificTypes, type IntegrationAPIItem, type IntegrationAPIResults, type IntegrationField, type IntegrationFieldData, type IntegrationFields, InvalidDataError, type KeyTextField, type Language, type LinkField, type LinkOEmbed, type LinkResolverFunction, type LinkToMediaField, LinkType, type MigrateReporterEvents, Migration, type MigrationContentRelationship, type MigrationImage, type MigrationLinkToMedia, type MigrationRTImageNode, type NestedGroupField, NotFoundError, type NumberField, type OEmbedExtra, OEmbedType, type Ordering, ParsingError, type PendingPrismicDocument, type PhotoOEmbed, PreviewTokenExpiredError, type PrismicDocument, type PrismicDocumentHeader, type PrismicDocumentWithUID, type PrismicDocumentWithoutUID, PrismicError, PrismicMigrationAsset, PrismicMigrationDocument, type PublishMigrationReleaseResult, type Query, type QueryParams, type RTAnyNode, type RTBlockNode, type RTEmNode, type RTEmbedNode, type RTHeading1Node, type RTHeading2Node, type RTHeading3Node, type RTHeading4Node, type RTHeading5Node, type RTHeading6Node, type RTImageNode, type RTInlineNode, type RTLabelNode, type RTLinkNode, type RTListItemNode, type RTListNode, type RTNode, type RTOListItemNode, type RTOListNode, type RTParagraphNode, type RTPreformattedNode, type RTSpanNode, type RTSpanNodeBase, type RTStrongNode, type RTTextNode, type RTTextNodeBase, type Ref, RefExpiredError, RefNotFoundError, type Release, type Repeatable, type Repository, RepositoryNotFoundError, type RequestInitLike, type ResponseLike, type RichOEmbed, type RichTextField, RichTextNodeType, type RichTextNodeTypes, type Route, type SelectField, type SharedSlice, type SharedSliceModel, type SharedSliceModelVariation, type SharedSliceVariation, type Slice, type SliceMapper, type SliceZone, type TableField, type TableFieldBody, type TableFieldBodyRow, type TableFieldDataCell, type TableFieldHead, type TableFieldHeadRow, type TableFieldHeaderCell, type Tags, type TimestampField, type TitleField, type VideoOEmbed, type WebhookBody, type WebhookBodyAPIUpdate, type WebhookBodyTestTrigger, WebhookType, WriteClient, type WriteClientConfig, asDate, asHTML, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet, asLink, asLinkAttrs, asText, buildQueryURL, cookie_d_exports as cookie, createClient, createMigration, createWriteClient, documentToLinkField, filter, getGraphQLEndpoint, getRepositoryEndpoint, getRepositoryName, getToolbarSrc, isFilled_d_exports as isFilled, isRepositoryEndpoint, isRepositoryName, mapSliceZone, predicate, unstable_mapSliceZone };
|
|
159
157
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsCM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BA,8BAAqB;;KAWtB,oBAAoB;;KAEpB,yBAAyB;;cAiCxB;;;;;;;;;;;;;;;;;;;;;;KAiGD,oBAAoB;;KAoEpB,wCAAwC"}
|
package/dist/index.js
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
1
|
import { filter } from "./filter.js";
|
|
2
2
|
import { mapSliceZone } from "./helpers/mapSliceZone.js";
|
|
3
3
|
import { RichTextNodeType } from "./types/value/richText.js";
|
|
4
|
-
import { buildQueryURL } from "./buildQueryURL.js";
|
|
5
|
-
import { ForbiddenError, InvalidDataError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.js";
|
|
6
|
-
import { isRepositoryName } from "./isRepositoryName.js";
|
|
7
|
-
import { getRepositoryEndpoint } from "./getRepositoryEndpoint.js";
|
|
8
|
-
import { getRepositoryName } from "./getRepositoryName.js";
|
|
9
|
-
import { LinkType } from "./types/value/link.js";
|
|
10
|
-
import { documentToLinkField } from "./helpers/documentToLinkField.js";
|
|
11
|
-
import { asLink } from "./helpers/asLink.js";
|
|
12
|
-
import { isRepositoryEndpoint } from "./isRepositoryEndpoint.js";
|
|
13
|
-
import { cookie_exports } from "./cookie.js";
|
|
14
|
-
import { Client } from "./Client.js";
|
|
15
4
|
import { createClient } from "./createClient.js";
|
|
16
|
-
import {
|
|
17
|
-
import { PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
18
|
-
import { PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
19
|
-
import { WriteClient } from "./WriteClient.js";
|
|
5
|
+
import { Client } from "./Client.js";
|
|
20
6
|
import { createWriteClient } from "./createWriteClient.js";
|
|
21
|
-
import {
|
|
7
|
+
import { WriteClient } from "./WriteClient.js";
|
|
22
8
|
import { createMigration } from "./createMigration.js";
|
|
9
|
+
import { Migration } from "./Migration.js";
|
|
10
|
+
import { getRepositoryEndpoint } from "./getRepositoryEndpoint.js";
|
|
11
|
+
import { getRepositoryName } from "./getRepositoryName.js";
|
|
23
12
|
import { getGraphQLEndpoint } from "./getGraphQLEndpoint.js";
|
|
13
|
+
import { isRepositoryName } from "./isRepositoryName.js";
|
|
14
|
+
import { isRepositoryEndpoint } from "./isRepositoryEndpoint.js";
|
|
15
|
+
import { buildQueryURL } from "./buildQueryURL.js";
|
|
24
16
|
import { getToolbarSrc } from "./getToolbarSrc.js";
|
|
17
|
+
import { cookie_exports } from "./cookie.js";
|
|
25
18
|
import { asDate } from "./helpers/asDate.js";
|
|
19
|
+
import { asLink } from "./helpers/asLink.js";
|
|
26
20
|
import { asLinkAttrs } from "./helpers/asLinkAttrs.js";
|
|
27
21
|
import { asText } from "./helpers/asText.js";
|
|
28
22
|
import { asHTML } from "./helpers/asHTML.js";
|
|
29
23
|
import { asImageSrc } from "./helpers/asImageSrc.js";
|
|
30
24
|
import { asImageWidthSrcSet } from "./helpers/asImageWidthSrcSet.js";
|
|
31
25
|
import { asImagePixelDensitySrcSet } from "./helpers/asImagePixelDensitySrcSet.js";
|
|
26
|
+
import { isFilled_exports } from "./helpers/isFilled.js";
|
|
27
|
+
import { documentToLinkField } from "./helpers/documentToLinkField.js";
|
|
28
|
+
import { ForbiddenError, InvalidDataError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.js";
|
|
29
|
+
import { LinkType } from "./types/value/link.js";
|
|
32
30
|
import { OEmbedType } from "./types/value/embed.js";
|
|
33
31
|
import { CustomTypeModelFieldType } from "./types/model/types.js";
|
|
34
32
|
import { CustomTypeModelLinkSelectType } from "./types/model/link.js";
|
|
35
33
|
import { CustomTypeModelSliceType } from "./types/model/sliceZone.js";
|
|
36
34
|
import { CustomTypeModelSliceDisplay } from "./types/model/slice.js";
|
|
35
|
+
import { PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
36
|
+
import { PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
37
37
|
import { WebhookType } from "./types/webhook/types.js";
|
|
38
|
-
|
|
38
|
+
// src/index.ts
|
|
39
39
|
/** @deprecated Renamed to `filter` */
|
|
40
40
|
const predicate = filter;
|
|
41
41
|
/** @deprecated Renamed to `mapSliceZone` */
|
|
42
42
|
const unstable_mapSliceZone = mapSliceZone;
|
|
43
43
|
/** @deprecated Use {@link RichTextNodeType} instead. */
|
|
44
44
|
const Element = RichTextNodeType;
|
|
45
|
-
//#endregion
|
|
46
45
|
export { Client, CustomTypeModelFieldType, CustomTypeModelLinkSelectType, CustomTypeModelSliceDisplay, CustomTypeModelSliceType, Element, ForbiddenError, InvalidDataError, LinkType, Migration, NotFoundError, OEmbedType, ParsingError, PreviewTokenExpiredError, PrismicError, PrismicMigrationAsset, PrismicMigrationDocument, RefExpiredError, RefNotFoundError, RepositoryNotFoundError, RichTextNodeType, WebhookType, WriteClient, asDate, asHTML, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet, asLink, asLinkAttrs, asText, buildQueryURL, cookie_exports as cookie, createClient, createMigration, createWriteClient, documentToLinkField, filter, getGraphQLEndpoint, getRepositoryEndpoint, getRepositoryName, getToolbarSrc, isFilled_exports as isFilled, isRepositoryEndpoint, isRepositoryName, mapSliceZone, predicate, unstable_mapSliceZone };
|
|
47
46
|
|
|
48
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/isRepositoryEndpoint.ts
|
|
2
2
|
/**
|
|
3
3
|
* Determines if a string is a Prismic Content API endpoint. Note that any valid URL is a valid
|
|
4
4
|
* endpoint to support network proxies.
|
|
@@ -15,7 +15,6 @@ const isRepositoryEndpoint = (input) => {
|
|
|
15
15
|
return false;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
exports.isRepositoryEndpoint = isRepositoryEndpoint;
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=isRepositoryEndpoint.cjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/isRepositoryEndpoint.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Determines if a string is a Prismic Content API endpoint. Note that any valid URL is a valid
|
|
4
3
|
* endpoint to support network proxies.
|
|
@@ -8,5 +7,4 @@
|
|
|
8
7
|
* otherwise.
|
|
9
8
|
*/
|
|
10
9
|
export declare const isRepositoryEndpoint: (input: string) => boolean;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=isRepositoryEndpoint.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isRepositoryEndpoint.d.cts","names":[],"sources":["../src/isRepositoryEndpoint.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isRepositoryEndpoint.d.cts","names":[],"sources":["../src/isRepositoryEndpoint.ts"],"mappings":";;;;;;;;qBAQa,uBAAoB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/isRepositoryEndpoint.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Determines if a string is a Prismic Content API endpoint. Note that any valid URL is a valid
|
|
4
3
|
* endpoint to support network proxies.
|
|
@@ -8,5 +7,4 @@
|
|
|
8
7
|
* otherwise.
|
|
9
8
|
*/
|
|
10
9
|
export declare const isRepositoryEndpoint: (input: string) => boolean;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=isRepositoryEndpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isRepositoryEndpoint.d.ts","names":[],"sources":["../src/isRepositoryEndpoint.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isRepositoryEndpoint.d.ts","names":[],"sources":["../src/isRepositoryEndpoint.ts"],"mappings":";;;;;;;;qBAQa,uBAAoB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/isRepositoryEndpoint.ts
|
|
2
2
|
/**
|
|
3
3
|
* Determines if a string is a Prismic Content API endpoint. Note that any valid URL is a valid
|
|
4
4
|
* endpoint to support network proxies.
|
|
@@ -15,7 +15,6 @@ const isRepositoryEndpoint = (input) => {
|
|
|
15
15
|
return false;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { isRepositoryEndpoint };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=isRepositoryEndpoint.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/isRepositoryName.ts
|
|
2
2
|
/**
|
|
3
3
|
* Determines if an input is a valid Prismic repository name.
|
|
4
4
|
*
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
const isRepositoryName = (input) => {
|
|
10
10
|
return /^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(input);
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
exports.isRepositoryName = isRepositoryName;
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=isRepositoryName.cjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/isRepositoryName.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Determines if an input is a valid Prismic repository name.
|
|
4
3
|
*
|
|
@@ -7,5 +6,4 @@
|
|
|
7
6
|
* otherwise.
|
|
8
7
|
*/
|
|
9
8
|
export declare const isRepositoryName: (input: string) => boolean;
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=isRepositoryName.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isRepositoryName.d.cts","names":[],"sources":["../src/isRepositoryName.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isRepositoryName.d.cts","names":[],"sources":["../src/isRepositoryName.ts"],"mappings":";;;;;;;qBAOa,mBAAgB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/isRepositoryName.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Determines if an input is a valid Prismic repository name.
|
|
4
3
|
*
|
|
@@ -7,5 +6,4 @@
|
|
|
7
6
|
* otherwise.
|
|
8
7
|
*/
|
|
9
8
|
export declare const isRepositoryName: (input: string) => boolean;
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=isRepositoryName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isRepositoryName.d.ts","names":[],"sources":["../src/isRepositoryName.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isRepositoryName.d.ts","names":[],"sources":["../src/isRepositoryName.ts"],"mappings":";;;;;;;qBAOa,mBAAgB"}
|
package/dist/isRepositoryName.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/isRepositoryName.ts
|
|
2
2
|
/**
|
|
3
3
|
* Determines if an input is a valid Prismic repository name.
|
|
4
4
|
*
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
const isRepositoryName = (input) => {
|
|
10
10
|
return /^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(input);
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { isRepositoryName };
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=isRepositoryName.js.map
|
package/dist/lib/devMsg.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_package = require("../package.cjs");
|
|
2
|
-
|
|
2
|
+
// src/lib/devMsg.ts
|
|
3
3
|
/**
|
|
4
4
|
* Returns a `prismic.dev/msg` URL for a given message slug.
|
|
5
5
|
*
|
|
@@ -16,7 +16,6 @@ const require_package = require("../package.cjs");
|
|
|
16
16
|
const devMsg = (slug) => {
|
|
17
17
|
return `https://prismic.dev/msg/client/v${require_package.version}/${slug}`;
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
exports.devMsg = devMsg;
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=devMsg.cjs.map
|
package/dist/lib/devMsg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { version } from "../package.js";
|
|
2
|
-
|
|
2
|
+
// src/lib/devMsg.ts
|
|
3
3
|
/**
|
|
4
4
|
* Returns a `prismic.dev/msg` URL for a given message slug.
|
|
5
5
|
*
|
|
@@ -16,7 +16,6 @@ import { version } from "../package.js";
|
|
|
16
16
|
const devMsg = (slug) => {
|
|
17
17
|
return `https://prismic.dev/msg/client/v${version}/${slug}`;
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { devMsg };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=devMsg.js.map
|
package/dist/lib/escapeHTML.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/escapeHTML.ts
|
|
2
2
|
const matchHtmlRegExp = /["'&<>]/;
|
|
3
3
|
const escapeHTML = (string) => {
|
|
4
4
|
const str = "" + string;
|
|
@@ -33,7 +33,6 @@ const escapeHTML = (string) => {
|
|
|
33
33
|
}
|
|
34
34
|
return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
|
|
35
35
|
};
|
|
36
|
-
//#endregion
|
|
37
36
|
exports.escapeHTML = escapeHTML;
|
|
38
37
|
|
|
39
38
|
//# sourceMappingURL=escapeHTML.cjs.map
|