@prismicio/client 7.22.3 → 7.23.0-canary.431db47
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 +3 -4
- 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 +3 -4
- 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 +1 -2
- package/dist/lib/pLimit.js +1 -2
- package/dist/lib/request.cjs +1 -2
- package/dist/lib/request.d.cts +0 -2
- package/dist/lib/request.d.cts.map +1 -1
- package/dist/lib/request.d.ts +0 -2
- package/dist/lib/request.d.ts.map +1 -1
- package/dist/lib/request.js +1 -2
- package/dist/lib/resolveMigrationDocumentData.cjs +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 +1 -2
- package/dist/lib/throttledWarn.js +1 -2
- package/dist/lib/validateAssetMetadata.cjs +1 -2
- package/dist/lib/validateAssetMetadata.js +1 -2
- package/dist/package.cjs +2 -3
- package/dist/package.js +2 -3
- package/dist/richtext/asText.cjs +1 -2
- package/dist/richtext/asText.d.cts +0 -2
- package/dist/richtext/asText.d.cts.map +1 -1
- package/dist/richtext/asText.d.ts +0 -2
- package/dist/richtext/asText.d.ts.map +1 -1
- package/dist/richtext/asText.js +1 -2
- package/dist/richtext/asTree.cjs +1 -2
- package/dist/richtext/asTree.d.cts +0 -2
- package/dist/richtext/asTree.d.cts.map +1 -1
- package/dist/richtext/asTree.d.ts +0 -2
- package/dist/richtext/asTree.d.ts.map +1 -1
- package/dist/richtext/asTree.js +1 -2
- package/dist/richtext/composeSerializers.cjs +1 -2
- package/dist/richtext/composeSerializers.d.cts +0 -2
- package/dist/richtext/composeSerializers.d.cts.map +1 -1
- package/dist/richtext/composeSerializers.d.ts +0 -2
- package/dist/richtext/composeSerializers.d.ts.map +1 -1
- package/dist/richtext/composeSerializers.js +1 -2
- package/dist/richtext/serialize.cjs +1 -2
- package/dist/richtext/serialize.d.cts +0 -2
- package/dist/richtext/serialize.d.cts.map +1 -1
- package/dist/richtext/serialize.d.ts +0 -2
- package/dist/richtext/serialize.d.ts.map +1 -1
- package/dist/richtext/serialize.js +1 -2
- package/dist/richtext/types.cjs +1 -2
- package/dist/richtext/types.d.cts +0 -2
- package/dist/richtext/types.d.cts.map +1 -1
- package/dist/richtext/types.d.ts +0 -2
- package/dist/richtext/types.d.ts.map +1 -1
- package/dist/richtext/types.js +1 -2
- package/dist/richtext/wrapMapSerializer.cjs +1 -2
- package/dist/richtext/wrapMapSerializer.d.cts +0 -2
- package/dist/richtext/wrapMapSerializer.d.cts.map +1 -1
- package/dist/richtext/wrapMapSerializer.d.ts +0 -2
- package/dist/richtext/wrapMapSerializer.d.ts.map +1 -1
- package/dist/richtext/wrapMapSerializer.js +1 -2
- package/dist/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/cookie.ts +3 -0
- package/src/getToolbarSrc.ts +18 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSlice.d.ts","names":[],"sources":["../../../src/types/value/sharedSlice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedSlice.d.ts","names":[],"sources":["../../../src/types/value/sharedSlice.ts"],"mappings":";;;;;;YAOY,YACX,oBACA,mBAAmB,uBAAuB;EAE1C,YAAY;EACZ;EACA;IACG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyRegularField, AnySlicePrimaryField } from "./types.cjs";
|
|
2
|
-
//#region src/types/value/sharedSliceVariation.d.ts
|
|
3
2
|
/** A shared Slice variation. */
|
|
4
3
|
export interface SharedSliceVariation<Variation = string, PrimaryFields extends Record<string, AnySlicePrimaryField> = Record<string, AnySlicePrimaryField>, ItemsFields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>> {
|
|
5
4
|
variation: Variation;
|
|
@@ -7,5 +6,4 @@ export interface SharedSliceVariation<Variation = string, PrimaryFields extends
|
|
|
7
6
|
primary: PrimaryFields;
|
|
8
7
|
items: ItemsFields[];
|
|
9
8
|
}
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=sharedSliceVariation.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSliceVariation.d.cts","names":[],"sources":["../../../src/types/value/sharedSliceVariation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedSliceVariation.d.cts","names":[],"sources":["../../../src/types/value/sharedSliceVariation.ts"],"mappings":";;iBAGiB,qBAChB,oBACA,sBAAsB,eAAe,wBAAwB,eAAe,uBAC5E,oBAAoB,eAAe,mBAAmB,eAAe;EAErE,WAAW;EACX;EACA,SAAS;EACT,OAAO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyRegularField, AnySlicePrimaryField } from "./types.js";
|
|
2
|
-
//#region src/types/value/sharedSliceVariation.d.ts
|
|
3
2
|
/** A shared Slice variation. */
|
|
4
3
|
export interface SharedSliceVariation<Variation = string, PrimaryFields extends Record<string, AnySlicePrimaryField> = Record<string, AnySlicePrimaryField>, ItemsFields extends Record<string, AnyRegularField> = Record<string, AnyRegularField>> {
|
|
5
4
|
variation: Variation;
|
|
@@ -7,5 +6,4 @@ export interface SharedSliceVariation<Variation = string, PrimaryFields extends
|
|
|
7
6
|
primary: PrimaryFields;
|
|
8
7
|
items: ItemsFields[];
|
|
9
8
|
}
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=sharedSliceVariation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSliceVariation.d.ts","names":[],"sources":["../../../src/types/value/sharedSliceVariation.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedSliceVariation.d.ts","names":[],"sources":["../../../src/types/value/sharedSliceVariation.ts"],"mappings":";;iBAGiB,qBAChB,oBACA,sBAAsB,eAAe,wBAAwB,eAAe,uBAC5E,oBAAoB,eAAe,mBAAmB,eAAe;EAErE,WAAW;EACX;EACA,SAAS;EACT,OAAO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyRegularField } from "./types.cjs";
|
|
2
|
-
//#region src/types/value/slice.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A Slice - sections of your webpages.
|
|
5
4
|
*
|
|
@@ -12,5 +11,4 @@ export interface Slice<SliceType = string, PrimaryFields extends Record<string,
|
|
|
12
11
|
primary: PrimaryFields;
|
|
13
12
|
items: ItemsFields[];
|
|
14
13
|
}
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=slice.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.cts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slice.d.cts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":";;;;;;iBAOiB,MAChB,oBACA,sBAAsB,eAAe,mBAAmB,eAAe,kBACvE,oBAAoB,eAAe,mBAAmB,eAAe;EAErE,YAAY;EACZ;EACA;EACA,SAAS;EACT,OAAO"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyRegularField } from "./types.js";
|
|
2
|
-
//#region src/types/value/slice.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A Slice - sections of your webpages.
|
|
5
4
|
*
|
|
@@ -12,5 +11,4 @@ export interface Slice<SliceType = string, PrimaryFields extends Record<string,
|
|
|
12
11
|
primary: PrimaryFields;
|
|
13
12
|
items: ItemsFields[];
|
|
14
13
|
}
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":";;;;;;iBAOiB,MAChB,oBACA,sBAAsB,eAAe,mBAAmB,eAAe,kBACvE,oBAAoB,eAAe,mBAAmB,eAAe;EAErE,YAAY;EACZ;EACA;EACA,SAAS;EACT,OAAO"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SharedSlice } from "./sharedSlice.cjs";
|
|
2
2
|
import { Slice } from "./slice.cjs";
|
|
3
3
|
import { FieldState } from "./types.cjs";
|
|
4
|
-
//#region src/types/value/sliceZone.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Prismic Slices are sections of your website. Prismic documents contain a dynamic "Slice Zone"
|
|
7
6
|
* that allows content creators to add, edit, and rearrange Slices to compose dynamic layouts for
|
|
@@ -10,5 +9,4 @@ import { FieldState } from "./types.cjs";
|
|
|
10
9
|
* @see More details: {@link https://prismic.io/docs/slice}
|
|
11
10
|
*/
|
|
12
11
|
export type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice, State extends FieldState = FieldState> = State extends "empty" ? [] : [Slices, ...Slices[]];
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=sliceZone.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliceZone.d.cts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sliceZone.d.cts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":";;;;;;;;;;YAWY,UACX,eAAe,QAAQ,cAAc,QAAQ,aAC7C,cAAc,aAAa,cACxB,8BAA8B,WAAW"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SharedSlice } from "./sharedSlice.js";
|
|
2
2
|
import { Slice } from "./slice.js";
|
|
3
3
|
import { FieldState } from "./types.js";
|
|
4
|
-
//#region src/types/value/sliceZone.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Prismic Slices are sections of your website. Prismic documents contain a dynamic "Slice Zone"
|
|
7
6
|
* that allows content creators to add, edit, and rearrange Slices to compose dynamic layouts for
|
|
@@ -10,5 +9,4 @@ import { FieldState } from "./types.js";
|
|
|
10
9
|
* @see More details: {@link https://prismic.io/docs/slice}
|
|
11
10
|
*/
|
|
12
11
|
export type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice, State extends FieldState = FieldState> = State extends "empty" ? [] : [Slices, ...Slices[]];
|
|
13
|
-
//#endregion
|
|
14
12
|
//# sourceMappingURL=sliceZone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliceZone.d.ts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sliceZone.d.ts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":";;;;;;;;;;YAWY,UACX,eAAe,QAAQ,cAAc,QAAQ,aAC7C,cAAc,aAAa,cACxB,8BAA8B,WAAW"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldState } from "./types.cjs";
|
|
2
1
|
import { RichTextField } from "./richText.cjs";
|
|
3
|
-
|
|
2
|
+
import { FieldState } from "./types.cjs";
|
|
4
3
|
/**
|
|
5
4
|
* A table field.
|
|
6
5
|
*
|
|
@@ -53,5 +52,4 @@ export type TableFieldDataCell = {
|
|
|
53
52
|
/** The content of the cell. */
|
|
54
53
|
content: RichTextField;
|
|
55
54
|
};
|
|
56
|
-
//#endregion
|
|
57
55
|
//# sourceMappingURL=table.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.cts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.cts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":";;;;;;;;YASY,WAAW,cAAc,aAAa,cAAc;;EAI7D,OAAO;;EAGP,MAAM;;;YAIG;EACX,MAAM;;;YAIK;EACX,MAAM;;;YAIK;;EAEX;;EAGA,OAAO;;;YAII;;EAEX;;EAGA;;EAGA,SAAS;;;YAIE;;EAEX;;EAGA,QAAQ,uBAAuB;;;YAIpB;;EAEX;;EAGA;;EAGA,SAAS"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldState } from "./types.js";
|
|
2
1
|
import { RichTextField } from "./richText.js";
|
|
3
|
-
|
|
2
|
+
import { FieldState } from "./types.js";
|
|
4
3
|
/**
|
|
5
4
|
* A table field.
|
|
6
5
|
*
|
|
@@ -53,5 +52,4 @@ export type TableFieldDataCell = {
|
|
|
53
52
|
/** The content of the cell. */
|
|
54
53
|
content: RichTextField;
|
|
55
54
|
};
|
|
56
|
-
//#endregion
|
|
57
55
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":";;;;;;;;YASY,WAAW,cAAc,aAAa,cAAc;;EAI7D,OAAO;;EAGP,MAAM;;;YAIG;EACX,MAAM;;;YAIK;EACX,MAAM;;;YAIK;;EAEX;;EAGA,OAAO;;;YAII;;EAEX;;EAGA;;EAGA,SAAS;;;YAIE;;EAEX;;EAGA,QAAQ,uBAAuB;;;YAIpB;;EAEX;;EAGA;;EAGA,SAAS"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FieldState } from "./types.cjs";
|
|
2
|
-
//#region src/types/value/timestamp.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A timestamp field.
|
|
5
4
|
*
|
|
6
5
|
* @typeParam State - State of the field which determines its shape.
|
|
7
6
|
*/
|
|
8
7
|
export type TimestampField<State extends FieldState = FieldState> = State extends "empty" ? null : string;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=timestamp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.cts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.cts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":";;;;;;YAOY,eAAe,cAAc,aAAa,cAAc"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FieldState } from "./types.js";
|
|
2
|
-
//#region src/types/value/timestamp.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A timestamp field.
|
|
5
4
|
*
|
|
6
5
|
* @typeParam State - State of the field which determines its shape.
|
|
7
6
|
*/
|
|
8
7
|
export type TimestampField<State extends FieldState = FieldState> = State extends "empty" ? null : string;
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":";;;;;;YAOY,eAAe,cAAc,aAAa,cAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldState } from "./types.cjs";
|
|
2
1
|
import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText.cjs";
|
|
3
|
-
|
|
2
|
+
import { FieldState } from "./types.cjs";
|
|
4
3
|
/**
|
|
5
4
|
* A title field.
|
|
6
5
|
*
|
|
@@ -9,5 +8,4 @@ import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeadi
|
|
|
9
8
|
export type TitleField<State extends FieldState = FieldState> = State extends "empty" ? [] : [Omit<RTHeading1Node | RTHeading2Node | RTHeading3Node | RTHeading4Node | RTHeading5Node | RTHeading6Node, "spans"> & {
|
|
10
9
|
spans: [];
|
|
11
10
|
}];
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=title.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.cts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.d.cts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":";;;;;;;YAeY,WAAW,cAAc,aAAa,cAAc,8BAG7D,KACG,iBACA,iBACA,iBACA,iBACA,iBACA;EAGF"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FieldState } from "./types.js";
|
|
2
1
|
import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText.js";
|
|
3
|
-
|
|
2
|
+
import { FieldState } from "./types.js";
|
|
4
3
|
/**
|
|
5
4
|
* A title field.
|
|
6
5
|
*
|
|
@@ -9,5 +8,4 @@ import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeadi
|
|
|
9
8
|
export type TitleField<State extends FieldState = FieldState> = State extends "empty" ? [] : [Omit<RTHeading1Node | RTHeading2Node | RTHeading3Node | RTHeading4Node | RTHeading5Node | RTHeading6Node, "spans"> & {
|
|
10
9
|
spans: [];
|
|
11
10
|
}];
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":";;;;;;;YAeY,WAAW,cAAc,aAAa,cAAc,8BAG7D,KACG,iBACA,iBACA,iBACA,iBACA,iBACA;EAGF"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { BooleanField } from "./boolean.cjs";
|
|
2
2
|
import { ColorField } from "./color.cjs";
|
|
3
|
-
import { GroupField } from "./group.cjs";
|
|
4
3
|
import { ContentRelationshipField } from "./contentRelationship.cjs";
|
|
5
4
|
import { DateField } from "./date.cjs";
|
|
5
|
+
import { EmbedField } from "./embed.cjs";
|
|
6
6
|
import { GeoPointField } from "./geoPoint.cjs";
|
|
7
|
+
import { GroupField } from "./group.cjs";
|
|
7
8
|
import { ImageField } from "./image.cjs";
|
|
8
9
|
import { IntegrationField } from "./integration.cjs";
|
|
9
10
|
import { KeyTextField } from "./keyText.cjs";
|
|
10
|
-
import { LinkToMediaField } from "./linkToMedia.cjs";
|
|
11
11
|
import { LinkField } from "./link.cjs";
|
|
12
|
+
import { LinkToMediaField } from "./linkToMedia.cjs";
|
|
12
13
|
import { NumberField } from "./number.cjs";
|
|
14
|
+
import { RichTextField } from "./richText.cjs";
|
|
13
15
|
import { SelectField } from "./select.cjs";
|
|
14
16
|
import { TableField } from "./table.cjs";
|
|
15
17
|
import { TimestampField } from "./timestamp.cjs";
|
|
16
18
|
import { TitleField } from "./title.cjs";
|
|
17
|
-
import { EmbedField } from "./embed.cjs";
|
|
18
|
-
import { RichTextField } from "./richText.cjs";
|
|
19
|
-
//#region src/types/value/types.d.ts
|
|
20
19
|
/** Empty state for object-shaped fields. */
|
|
21
20
|
export type EmptyObjectField = Record<string, never>;
|
|
22
21
|
/** Valid states for fields. Not all fields use this type (e.g. BooleanField). */
|
|
@@ -41,5 +40,5 @@ type WithKey<Field extends LinkField> = Field & {
|
|
|
41
40
|
* @see https://github.com/sindresorhus/type-fest/blob/cbd7ec510bd136ac045bbc74e391ee686b8a9a2f/source/simplify.d.ts
|
|
42
41
|
*/
|
|
43
42
|
export type Simplify<T> = { [P in keyof T]: T[P]; };
|
|
44
|
-
|
|
43
|
+
export {};
|
|
45
44
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;YAoBY,mBAAmB;;YAGnB;;YAGA,kBACT,aACA,gBACA,aACA,2BACA,YACA,WAAW,aACX,mBACA,aACA,YACA,iBACA,aACA,cACA,eACA,cACA,eACA,gBACA,mBACA;;YAGS,uBAAuB,aAAa;;YAGpC,WACX,cAAc,WACd,cAAc,aAAa,cACxB,8BAA8B,QAAQ,WAAW,QAAQ;;KAGxD,QAAQ,cAAc,aAAa;EAAU;;;;;;;;;;;YAWtC,SAAS,QAAQ,WAAW,IAAI,EAAE"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { BooleanField } from "./boolean.js";
|
|
2
2
|
import { ColorField } from "./color.js";
|
|
3
|
-
import { GroupField } from "./group.js";
|
|
4
3
|
import { ContentRelationshipField } from "./contentRelationship.js";
|
|
5
4
|
import { DateField } from "./date.js";
|
|
5
|
+
import { EmbedField } from "./embed.js";
|
|
6
6
|
import { GeoPointField } from "./geoPoint.js";
|
|
7
|
+
import { GroupField } from "./group.js";
|
|
7
8
|
import { ImageField } from "./image.js";
|
|
8
9
|
import { IntegrationField } from "./integration.js";
|
|
9
10
|
import { KeyTextField } from "./keyText.js";
|
|
10
|
-
import { LinkToMediaField } from "./linkToMedia.js";
|
|
11
11
|
import { LinkField } from "./link.js";
|
|
12
|
+
import { LinkToMediaField } from "./linkToMedia.js";
|
|
12
13
|
import { NumberField } from "./number.js";
|
|
14
|
+
import { RichTextField } from "./richText.js";
|
|
13
15
|
import { SelectField } from "./select.js";
|
|
14
16
|
import { TableField } from "./table.js";
|
|
15
17
|
import { TimestampField } from "./timestamp.js";
|
|
16
18
|
import { TitleField } from "./title.js";
|
|
17
|
-
import { EmbedField } from "./embed.js";
|
|
18
|
-
import { RichTextField } from "./richText.js";
|
|
19
|
-
//#region src/types/value/types.d.ts
|
|
20
19
|
/** Empty state for object-shaped fields. */
|
|
21
20
|
export type EmptyObjectField = Record<string, never>;
|
|
22
21
|
/** Valid states for fields. Not all fields use this type (e.g. BooleanField). */
|
|
@@ -41,5 +40,5 @@ type WithKey<Field extends LinkField> = Field & {
|
|
|
41
40
|
* @see https://github.com/sindresorhus/type-fest/blob/cbd7ec510bd136ac045bbc74e391ee686b8a9a2f/source/simplify.d.ts
|
|
42
41
|
*/
|
|
43
42
|
export type Simplify<T> = { [P in keyof T]: T[P]; };
|
|
44
|
-
|
|
43
|
+
export {};
|
|
45
44
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;YAoBY,mBAAmB;;YAGnB;;YAGA,kBACT,aACA,gBACA,aACA,2BACA,YACA,WAAW,aACX,mBACA,aACA,YACA,iBACA,aACA,cACA,eACA,cACA,eACA,gBACA,mBACA;;YAGS,uBAAuB,aAAa;;YAGpC,WACX,cAAc,WACd,cAAc,aAAa,cACxB,8BAA8B,QAAQ,WAAW,QAAQ;;KAGxD,QAAQ,cAAc,aAAa;EAAU;;;;;;;;;;;YAWtC,SAAS,QAAQ,WAAW,IAAI,EAAE"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.cjs";
|
|
2
|
-
//#region src/types/webhook/apiUpdate.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Webhook payload sent when a Prismic repository content is updated.
|
|
5
4
|
*
|
|
@@ -48,5 +47,5 @@ interface WebhookBodyAPIUpdateRelease {
|
|
|
48
47
|
label: string;
|
|
49
48
|
documents: string[];
|
|
50
49
|
}
|
|
51
|
-
|
|
50
|
+
export {};
|
|
52
51
|
//# sourceMappingURL=apiUpdate.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiUpdate.d.cts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiUpdate.d.cts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":";;;;;;iBAOiB,6BAA6B;EAC7C,aAAa,YAAY;EACzB;EACA,UAAU,+BAA+B;EACzC,OAAO,+BAA+B;EACtC,MAAM,+BAA+B;EACrC;;EAEA,cAAc;;UAGL,+BAA+B;EACxC,SAAS;EACT,WAAW;EACX,WAAW;;;;;;;UAQF;EACT;EACA;;;;;;;UAQS;EACT;;;;;;;UAQS;EACT;EACA;EACA;EACA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.js";
|
|
2
|
-
//#region src/types/webhook/apiUpdate.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Webhook payload sent when a Prismic repository content is updated.
|
|
5
4
|
*
|
|
@@ -48,5 +47,5 @@ interface WebhookBodyAPIUpdateRelease {
|
|
|
48
47
|
label: string;
|
|
49
48
|
documents: string[];
|
|
50
49
|
}
|
|
51
|
-
|
|
50
|
+
export {};
|
|
52
51
|
//# sourceMappingURL=apiUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiUpdate.d.ts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiUpdate.d.ts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":";;;;;;iBAOiB,6BAA6B;EAC7C,aAAa,YAAY;EACzB;EACA,UAAU,+BAA+B;EACzC,OAAO,+BAA+B;EACtC,MAAM,+BAA+B;EACrC;;EAEA,cAAc;;UAGL,+BAA+B;EACxC,SAAS;EACT,WAAW;EACX,WAAW;;;;;;;UAQF;EACT;EACA;;;;;;;UAQS;EACT;;;;;;;UAQS;EACT;EACA;EACA;EACA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.cjs";
|
|
2
|
-
//#region src/types/webhook/testTrigger.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Webhook payload sent when a test webhook action is triggered.
|
|
5
4
|
*
|
|
@@ -8,5 +7,4 @@ import { WebhookBodyBase, WebhookType } from "./types.cjs";
|
|
|
8
7
|
export interface WebhookBodyTestTrigger extends WebhookBodyBase {
|
|
9
8
|
type: typeof WebhookType.TestTrigger;
|
|
10
9
|
}
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=testTrigger.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testTrigger.d.cts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"testTrigger.d.cts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":";;;;;;iBAOiB,+BAA+B;EAC/C,aAAa,YAAY"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.js";
|
|
2
|
-
//#region src/types/webhook/testTrigger.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Webhook payload sent when a test webhook action is triggered.
|
|
5
4
|
*
|
|
@@ -8,5 +7,4 @@ import { WebhookBodyBase, WebhookType } from "./types.js";
|
|
|
8
7
|
export interface WebhookBodyTestTrigger extends WebhookBodyBase {
|
|
9
8
|
type: typeof WebhookType.TestTrigger;
|
|
10
9
|
}
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=testTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testTrigger.d.ts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"testTrigger.d.ts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":";;;;;;iBAOiB,+BAA+B;EAC/C,aAAa,YAAY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types/webhook/types.ts
|
|
2
2
|
/**
|
|
3
3
|
* Types of Prismic Webhooks.
|
|
4
4
|
*
|
|
@@ -8,7 +8,6 @@ const WebhookType = {
|
|
|
8
8
|
APIUpdate: "api-update",
|
|
9
9
|
TestTrigger: "test-trigger"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
exports.WebhookType = WebhookType;
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=types.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WebhookBodyAPIUpdate } from "./apiUpdate.cjs";
|
|
2
2
|
import { WebhookBodyTestTrigger } from "./testTrigger.cjs";
|
|
3
|
-
//#region src/types/webhook/types.d.ts
|
|
4
3
|
export type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
|
|
5
4
|
/**
|
|
6
5
|
* Types of Prismic Webhooks.
|
|
@@ -17,5 +16,4 @@ export interface WebhookBodyBase {
|
|
|
17
16
|
apiUrl: string;
|
|
18
17
|
secret: string | null;
|
|
19
18
|
}
|
|
20
|
-
//#endregion
|
|
21
19
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":";;YAGY,cAAc,uBAAuB;;;;;;qBAOpC;WACZ;WACA;;iBAGgB;EAChB,cAAc,0BAA0B;EACxC;EACA;EACA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WebhookBodyAPIUpdate } from "./apiUpdate.js";
|
|
2
2
|
import { WebhookBodyTestTrigger } from "./testTrigger.js";
|
|
3
|
-
//#region src/types/webhook/types.d.ts
|
|
4
3
|
export type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
|
|
5
4
|
/**
|
|
6
5
|
* Types of Prismic Webhooks.
|
|
@@ -17,5 +16,4 @@ export interface WebhookBodyBase {
|
|
|
17
16
|
apiUrl: string;
|
|
18
17
|
secret: string | null;
|
|
19
18
|
}
|
|
20
|
-
//#endregion
|
|
21
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":";;YAGY,cAAc,uBAAuB;;;;;;qBAOpC;WACZ;WACA;;iBAGgB;EAChB,cAAc,0BAA0B;EACxC;EACA;EACA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/types/webhook/types.ts
|
|
2
2
|
/**
|
|
3
3
|
* Types of Prismic Webhooks.
|
|
4
4
|
*
|
|
@@ -8,7 +8,6 @@ const WebhookType = {
|
|
|
8
8
|
APIUpdate: "api-update",
|
|
9
9
|
TestTrigger: "test-trigger"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { WebhookType };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/client",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.23.0-canary.431db47",
|
|
4
4
|
"description": "The official JavaScript + TypeScript client library for Prismic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@prismicio/e2e-tests-utils": "^1.20.0",
|
|
72
72
|
"@prismicio/types-internal": "^3.17.2",
|
|
73
|
-
"@types/node": "^26.6.
|
|
74
|
-
"@vitest/coverage-v8": "^5.0.
|
|
75
|
-
"oxfmt": "^0.
|
|
76
|
-
"oxlint": "^1.
|
|
77
|
-
"tsdown": "^0.23.
|
|
73
|
+
"@types/node": "^26.6.6",
|
|
74
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
75
|
+
"oxfmt": "^0.75.0",
|
|
76
|
+
"oxlint": "^1.90.0",
|
|
77
|
+
"tsdown": "^0.23.4",
|
|
78
78
|
"typescript": "^7.0.2",
|
|
79
|
-
"vitest": "^5.0.
|
|
79
|
+
"vitest": "^5.0.5"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22"
|
package/src/cookie.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
/** The well-known name of the cookie used to store a Prismic preview session's ref. */
|
|
2
2
|
export const preview = "io.prismic.preview"
|
|
3
|
+
|
|
4
|
+
/** The well-known name of the cookie used to store a Prismic preview session's ID. */
|
|
5
|
+
export const previewSession = "io.prismic.previewSession"
|
package/src/getToolbarSrc.ts
CHANGED
|
@@ -30,13 +30,27 @@ import { isRepositoryName } from "./isRepositoryName"
|
|
|
30
30
|
*
|
|
31
31
|
* @param repositoryName - The name of the Prismic repository. For example, `"my-repo"` if the
|
|
32
32
|
* repository URL is `my-repo.prismic.io`.
|
|
33
|
+
* @param config - Options that configure the toolbar URL.
|
|
33
34
|
* @returns The URL for the given Prismic repository's Prismic Toolbar script.
|
|
34
35
|
*/
|
|
35
|
-
export const getToolbarSrc =
|
|
36
|
-
repositoryName:
|
|
37
|
-
|
|
36
|
+
export const getToolbarSrc = (
|
|
37
|
+
repositoryName: string,
|
|
38
|
+
config?: {
|
|
39
|
+
/** The version of the Prismic Toolbar to load. Defaults to 4. */
|
|
40
|
+
version?: 4 | 5
|
|
41
|
+
/**
|
|
42
|
+
* The URL the toolbar script is loaded from, without a trailing slash. For example, a toolbar
|
|
43
|
+
* preview build. Defaults to `https://static.cdn.prismic.io`.
|
|
44
|
+
*/
|
|
45
|
+
host?: string
|
|
46
|
+
},
|
|
47
|
+
): string => {
|
|
38
48
|
if (isRepositoryName(repositoryName)) {
|
|
39
|
-
|
|
49
|
+
const url = new URL(`${config?.host ?? "https://static.cdn.prismic.io"}/prismic.js`)
|
|
50
|
+
url.searchParams.set("repo", repositoryName)
|
|
51
|
+
if (config?.version) url.searchParams.set("v", config.version.toString())
|
|
52
|
+
|
|
53
|
+
return url.toString()
|
|
40
54
|
} else {
|
|
41
55
|
throw new PrismicError(
|
|
42
56
|
`An invalid Prismic repository name was given: ${repositoryName}`,
|