@prismicio/client 7.23.0-canary.748ee7b → 7.23.0-canary.a2ac6e0
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 +2 -2
- package/dist/Client.d.cts +2 -2
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +2 -2
- package/dist/Migration.cjs +4 -4
- package/dist/Migration.d.cts +4 -4
- package/dist/Migration.d.ts +4 -4
- package/dist/Migration.js +4 -4
- package/dist/WriteClient.cjs +2 -2
- package/dist/WriteClient.d.cts +3 -3
- package/dist/WriteClient.d.ts +3 -3
- package/dist/WriteClient.js +2 -2
- package/dist/createClient.d.cts +1 -1
- package/dist/createClient.d.ts +1 -1
- package/dist/createMigration.d.cts +1 -1
- package/dist/createMigration.d.ts +1 -1
- package/dist/helpers/asHTML.cjs +1 -1
- package/dist/helpers/asHTML.d.cts +1 -1
- package/dist/helpers/asHTML.d.ts +1 -1
- package/dist/helpers/asHTML.js +1 -1
- package/dist/helpers/asLink.d.cts +2 -2
- package/dist/helpers/asLink.d.ts +2 -2
- package/dist/helpers/asLinkAttrs.cjs +1 -1
- package/dist/helpers/asLinkAttrs.d.cts +2 -2
- package/dist/helpers/asLinkAttrs.d.ts +2 -2
- package/dist/helpers/asLinkAttrs.js +1 -1
- package/dist/helpers/isFilled.d.cts +7 -7
- package/dist/helpers/isFilled.d.ts +7 -7
- package/dist/index.cjs +16 -16
- package/dist/index.d.cts +62 -62
- package/dist/index.d.ts +62 -62
- package/dist/index.js +16 -16
- package/dist/lib/isMigrationValue.cjs +2 -2
- package/dist/lib/isMigrationValue.js +2 -2
- package/dist/lib/isValue.cjs +1 -1
- package/dist/lib/isValue.js +1 -1
- package/dist/lib/resolveMigrationDocumentData.cjs +2 -2
- package/dist/lib/resolveMigrationDocumentData.js +2 -2
- package/dist/lib/serializerHelpers.cjs +1 -1
- package/dist/lib/serializerHelpers.js +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.js +1 -1
- 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/migration/Asset.d.cts +1 -1
- package/dist/types/migration/Asset.d.ts +1 -1
- package/dist/types/migration/Document.d.cts +4 -4
- package/dist/types/migration/Document.d.ts +4 -4
- package/dist/types/model/sharedSlice.d.cts +1 -1
- package/dist/types/model/sharedSlice.d.ts +1 -1
- package/dist/types/model/types.d.cts +2 -2
- package/dist/types/model/types.d.ts +2 -2
- package/dist/types/value/link.d.cts +2 -2
- package/dist/types/value/link.d.ts +2 -2
- package/dist/types/value/richText.d.cts +1 -1
- package/dist/types/value/richText.d.ts +1 -1
- package/dist/types/value/table.d.cts +1 -1
- package/dist/types/value/table.d.ts +1 -1
- package/dist/types/value/title.d.cts +1 -1
- package/dist/types/value/title.d.ts +1 -1
- package/dist/types/value/types.d.cts +4 -4
- package/dist/types/value/types.d.ts +4 -4
- package/package.json +7 -7
package/dist/Client.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_filter = require("./filter.cjs");
|
|
2
|
-
const require_devMsg = require("./lib/devMsg.cjs");
|
|
3
1
|
const require_buildQueryURL = require("./buildQueryURL.cjs");
|
|
4
2
|
const require_errors = require("./errors.cjs");
|
|
3
|
+
const require_filter = require("./filter.cjs");
|
|
5
4
|
const require_getRepositoryEndpoint = require("./getRepositoryEndpoint.cjs");
|
|
6
5
|
const require_getRepositoryName = require("./getRepositoryName.cjs");
|
|
7
6
|
const require_asLink = require("./helpers/asLink.cjs");
|
|
8
7
|
const require_isRepositoryEndpoint = require("./isRepositoryEndpoint.cjs");
|
|
8
|
+
const require_devMsg = require("./lib/devMsg.cjs");
|
|
9
9
|
const require_getPreviewCookie = require("./lib/getPreviewCookie.cjs");
|
|
10
10
|
const require_request = require("./lib/request.cjs");
|
|
11
11
|
const require_throttledWarn = require("./lib/throttledWarn.cjs");
|
package/dist/Client.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PrismicDocument } from "./types/value/document.cjs";
|
|
2
|
-
import { LinkResolverFunction } from "./helpers/asLink.cjs";
|
|
3
1
|
import { BuildQueryURLArgs } from "./buildQueryURL.cjs";
|
|
2
|
+
import { LinkResolverFunction } from "./helpers/asLink.cjs";
|
|
4
3
|
import { AbortSignalLike, FetchLike, RequestInitLike } from "./lib/request.cjs";
|
|
5
4
|
import { Query } from "./types/api/query.cjs";
|
|
6
5
|
import { Ref } from "./types/api/ref.cjs";
|
|
7
6
|
import { Repository } from "./types/api/repository.cjs";
|
|
7
|
+
import { PrismicDocument } from "./types/value/document.cjs";
|
|
8
8
|
/** Extracts a document type with a matching `type` property from a union of document types. */
|
|
9
9
|
type ExtractDocumentType<TDocuments extends PrismicDocument, TDocumentType extends TDocuments["type"]> = Extract<TDocuments, {
|
|
10
10
|
type: TDocumentType;
|
package/dist/Client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PrismicDocument } from "./types/value/document.js";
|
|
2
|
-
import { LinkResolverFunction } from "./helpers/asLink.js";
|
|
3
1
|
import { BuildQueryURLArgs } from "./buildQueryURL.js";
|
|
2
|
+
import { LinkResolverFunction } from "./helpers/asLink.js";
|
|
4
3
|
import { AbortSignalLike, FetchLike, RequestInitLike } from "./lib/request.js";
|
|
5
4
|
import { Query } from "./types/api/query.js";
|
|
6
5
|
import { Ref } from "./types/api/ref.js";
|
|
7
6
|
import { Repository } from "./types/api/repository.js";
|
|
7
|
+
import { PrismicDocument } from "./types/value/document.js";
|
|
8
8
|
/** Extracts a document type with a matching `type` property from a union of document types. */
|
|
9
9
|
type ExtractDocumentType<TDocuments extends PrismicDocument, TDocumentType extends TDocuments["type"]> = Extract<TDocuments, {
|
|
10
10
|
type: TDocumentType;
|
package/dist/Client.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { filter } from "./filter.js";
|
|
2
|
-
import { devMsg } from "./lib/devMsg.js";
|
|
3
1
|
import { buildQueryURL } from "./buildQueryURL.js";
|
|
4
2
|
import { ForbiddenError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.js";
|
|
3
|
+
import { filter } from "./filter.js";
|
|
5
4
|
import { getRepositoryEndpoint } from "./getRepositoryEndpoint.js";
|
|
6
5
|
import { getRepositoryName } from "./getRepositoryName.js";
|
|
7
6
|
import { asLink } from "./helpers/asLink.js";
|
|
8
7
|
import { isRepositoryEndpoint } from "./isRepositoryEndpoint.js";
|
|
8
|
+
import { devMsg } from "./lib/devMsg.js";
|
|
9
9
|
import { getPreviewCookie } from "./lib/getPreviewCookie.js";
|
|
10
10
|
import { request } from "./lib/request.js";
|
|
11
11
|
import { throttledWarn } from "./lib/throttledWarn.js";
|
package/dist/Migration.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_richText = require("./types/value/richText.cjs");
|
|
2
|
-
const require_link = require("./types/value/link.cjs");
|
|
3
|
-
const require_Asset = require("./types/migration/Asset.cjs");
|
|
4
|
-
const require_Document = require("./types/migration/Document.cjs");
|
|
5
1
|
const require_getOptionalLinkProperties = require("./lib/getOptionalLinkProperties.cjs");
|
|
6
2
|
const require_isValue = require("./lib/isValue.cjs");
|
|
7
3
|
const require_validateAssetMetadata = require("./lib/validateAssetMetadata.cjs");
|
|
4
|
+
const require_Asset = require("./types/migration/Asset.cjs");
|
|
5
|
+
const require_Document = require("./types/migration/Document.cjs");
|
|
6
|
+
const require_link = require("./types/value/link.cjs");
|
|
7
|
+
const require_richText = require("./types/value/richText.cjs");
|
|
8
8
|
// src/Migration.ts
|
|
9
9
|
/**
|
|
10
10
|
* A helper that allows preparing your migration to Prismic.
|
package/dist/Migration.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FilledImageFieldImage } from "./types/value/image.cjs";
|
|
2
|
-
import { FilledLinkToMediaField } from "./types/value/linkToMedia.cjs";
|
|
3
|
-
import { PrismicDocument } from "./types/value/document.cjs";
|
|
4
1
|
import { Asset } from "./types/api/asset/asset.cjs";
|
|
2
|
+
import { MigrationAssetConfig, PrismicMigrationAsset } from "./types/migration/Asset.cjs";
|
|
5
3
|
import { MigrationContentRelationship } from "./types/migration/ContentRelationship.cjs";
|
|
6
4
|
import { ExistingPrismicDocument, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.cjs";
|
|
7
|
-
import {
|
|
5
|
+
import { PrismicDocument } from "./types/value/document.cjs";
|
|
6
|
+
import { FilledImageFieldImage } from "./types/value/image.cjs";
|
|
7
|
+
import { FilledLinkToMediaField } from "./types/value/linkToMedia.cjs";
|
|
8
8
|
/**
|
|
9
9
|
* Extracts one or more Prismic document types that match a given Prismic document type. If no
|
|
10
10
|
* matches are found, no extraction is performed and the union of all provided Prismic document
|
package/dist/Migration.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FilledImageFieldImage } from "./types/value/image.js";
|
|
2
|
-
import { FilledLinkToMediaField } from "./types/value/linkToMedia.js";
|
|
3
|
-
import { PrismicDocument } from "./types/value/document.js";
|
|
4
1
|
import { Asset } from "./types/api/asset/asset.js";
|
|
2
|
+
import { MigrationAssetConfig, PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
5
3
|
import { MigrationContentRelationship } from "./types/migration/ContentRelationship.js";
|
|
6
4
|
import { ExistingPrismicDocument, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
7
|
-
import {
|
|
5
|
+
import { PrismicDocument } from "./types/value/document.js";
|
|
6
|
+
import { FilledImageFieldImage } from "./types/value/image.js";
|
|
7
|
+
import { FilledLinkToMediaField } from "./types/value/linkToMedia.js";
|
|
8
8
|
/**
|
|
9
9
|
* Extracts one or more Prismic document types that match a given Prismic document type. If no
|
|
10
10
|
* matches are found, no extraction is performed and the union of all provided Prismic document
|
package/dist/Migration.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RichTextNodeType } from "./types/value/richText.js";
|
|
2
|
-
import { LinkType } from "./types/value/link.js";
|
|
3
|
-
import { PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
4
|
-
import { PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
5
1
|
import { getOptionalLinkProperties } from "./lib/getOptionalLinkProperties.js";
|
|
6
2
|
import { filledContentRelationship, filledImage, filledLinkToMedia, rtImageNode } from "./lib/isValue.js";
|
|
7
3
|
import { validateAssetMetadata } from "./lib/validateAssetMetadata.js";
|
|
4
|
+
import { PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
5
|
+
import { PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
6
|
+
import { LinkType } from "./types/value/link.js";
|
|
7
|
+
import { RichTextNodeType } from "./types/value/richText.js";
|
|
8
8
|
// src/Migration.ts
|
|
9
9
|
/**
|
|
10
10
|
* A helper that allows preparing your migration to Prismic.
|
package/dist/WriteClient.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_package = require("./package.cjs");
|
|
2
|
-
const
|
|
2
|
+
const require_Client = require("./Client.cjs");
|
|
3
3
|
const require_errors = require("./errors.cjs");
|
|
4
|
+
const require_devMsg = require("./lib/devMsg.cjs");
|
|
4
5
|
const require_pLimit = require("./lib/pLimit.cjs");
|
|
5
6
|
const require_request = require("./lib/request.cjs");
|
|
6
|
-
const require_Client = require("./Client.cjs");
|
|
7
7
|
const require_resolveMigrationDocumentData = require("./lib/resolveMigrationDocumentData.cjs");
|
|
8
8
|
// src/WriteClient.ts
|
|
9
9
|
const CLIENT_IDENTIFIER = `${require_package.name.replace("@", "").replace("/", "-")}/${require_package.version}`;
|
package/dist/WriteClient.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PrismicDocument } from "./types/value/document.cjs";
|
|
2
1
|
import { Client, ClientConfig, FetchParams } from "./Client.cjs";
|
|
3
|
-
import { PrismicMigrationDocument } from "./types/migration/Document.cjs";
|
|
4
|
-
import { PrismicMigrationAsset } from "./types/migration/Asset.cjs";
|
|
5
2
|
import { Migration } from "./Migration.cjs";
|
|
6
3
|
import { PublishMigrationReleaseResult } from "./types/api/migration/release.cjs";
|
|
4
|
+
import { PrismicMigrationAsset } from "./types/migration/Asset.cjs";
|
|
5
|
+
import { PrismicMigrationDocument } from "./types/migration/Document.cjs";
|
|
6
|
+
import { PrismicDocument } from "./types/value/document.cjs";
|
|
7
7
|
/** Utility type to construct events reported by the migration process. */
|
|
8
8
|
type MigrateReporterEvent<TType extends string, TData = never> = TData extends never ? {
|
|
9
9
|
type: TType;
|
package/dist/WriteClient.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PrismicDocument } from "./types/value/document.js";
|
|
2
1
|
import { Client, ClientConfig, FetchParams } from "./Client.js";
|
|
3
|
-
import { PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
4
|
-
import { PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
5
2
|
import { Migration } from "./Migration.js";
|
|
6
3
|
import { PublishMigrationReleaseResult } from "./types/api/migration/release.js";
|
|
4
|
+
import { PrismicMigrationAsset } from "./types/migration/Asset.js";
|
|
5
|
+
import { PrismicMigrationDocument } from "./types/migration/Document.js";
|
|
6
|
+
import { PrismicDocument } from "./types/value/document.js";
|
|
7
7
|
/** Utility type to construct events reported by the migration process. */
|
|
8
8
|
type MigrateReporterEvent<TType extends string, TData = never> = TData extends never ? {
|
|
9
9
|
type: TType;
|
package/dist/WriteClient.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { name, version } from "./package.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Client } from "./Client.js";
|
|
3
3
|
import { ForbiddenError, InvalidDataError, NotFoundError, PrismicError } from "./errors.js";
|
|
4
|
+
import { devMsg } from "./lib/devMsg.js";
|
|
4
5
|
import { pLimit } from "./lib/pLimit.js";
|
|
5
6
|
import { request } from "./lib/request.js";
|
|
6
|
-
import { Client } from "./Client.js";
|
|
7
7
|
import { resolveMigrationContentRelationship, resolveMigrationDocumentData } from "./lib/resolveMigrationDocumentData.js";
|
|
8
8
|
// src/WriteClient.ts
|
|
9
9
|
const CLIENT_IDENTIFIER = `${name.replace("@", "").replace("/", "-")}/${version}`;
|
package/dist/createClient.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PrismicDocument } from "./types/value/document.cjs";
|
|
2
1
|
import { Client } from "./Client.cjs";
|
|
2
|
+
import { PrismicDocument } from "./types/value/document.cjs";
|
|
3
3
|
/** Type definitions for the `createClient()` function. May be augmented by third-party libraries. */
|
|
4
4
|
export interface CreateClient {
|
|
5
5
|
<TDocuments extends PrismicDocument>(...args: ConstructorParameters<typeof Client>): Client<TDocuments>;
|
package/dist/createClient.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PrismicDocument } from "./types/value/document.js";
|
|
2
1
|
import { Client } from "./Client.js";
|
|
2
|
+
import { PrismicDocument } from "./types/value/document.js";
|
|
3
3
|
/** Type definitions for the `createClient()` function. May be augmented by third-party libraries. */
|
|
4
4
|
export interface CreateClient {
|
|
5
5
|
<TDocuments extends PrismicDocument>(...args: ConstructorParameters<typeof Client>): Client<TDocuments>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PrismicDocument } from "./types/value/document.cjs";
|
|
2
1
|
import { Migration } from "./Migration.cjs";
|
|
2
|
+
import { PrismicDocument } from "./types/value/document.cjs";
|
|
3
3
|
/** Type definitions for the `createMigration()` function. May be augmented by third-party libraries. */
|
|
4
4
|
export interface CreateMigration {
|
|
5
5
|
<TDocuments extends PrismicDocument>(...args: ConstructorParameters<typeof Migration>): Migration<TDocuments>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PrismicDocument } from "./types/value/document.js";
|
|
2
1
|
import { Migration } from "./Migration.js";
|
|
2
|
+
import { PrismicDocument } from "./types/value/document.js";
|
|
3
3
|
/** Type definitions for the `createMigration()` function. May be augmented by third-party libraries. */
|
|
4
4
|
export interface CreateMigration {
|
|
5
5
|
<TDocuments extends PrismicDocument>(...args: ConstructorParameters<typeof Migration>): Migration<TDocuments>;
|
package/dist/helpers/asHTML.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_serializerHelpers = require("../lib/serializerHelpers.cjs");
|
|
2
|
+
const require_composeSerializers = require("../richtext/composeSerializers.cjs");
|
|
2
3
|
const require_serialize = require("../richtext/serialize.cjs");
|
|
3
4
|
const require_wrapMapSerializer = require("../richtext/wrapMapSerializer.cjs");
|
|
4
|
-
const require_composeSerializers = require("../richtext/composeSerializers.cjs");
|
|
5
5
|
// src/helpers/asHTML.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates a HTML rich text serializer with a given link resolver and provide sensible and safe
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RichTextField } from "../types/value/richText.cjs";
|
|
2
1
|
import { RichTextFunctionSerializer, RichTextMapSerializer, RichTextMapSerializerFunction } from "../richtext/types.cjs";
|
|
2
|
+
import { RichTextField } from "../types/value/richText.cjs";
|
|
3
3
|
import { LinkResolverFunction } from "./asLink.cjs";
|
|
4
4
|
/**
|
|
5
5
|
* Serializes a node from a rich text field with a function to HTML.
|
package/dist/helpers/asHTML.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RichTextField } from "../types/value/richText.js";
|
|
2
1
|
import { RichTextFunctionSerializer, RichTextMapSerializer, RichTextMapSerializerFunction } from "../richtext/types.js";
|
|
2
|
+
import { RichTextField } from "../types/value/richText.js";
|
|
3
3
|
import { LinkResolverFunction } from "./asLink.js";
|
|
4
4
|
/**
|
|
5
5
|
* Serializes a node from a rich text field with a function to HTML.
|
package/dist/helpers/asHTML.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { serializeEmbed, serializeHyperlink, serializeImage, serializePreFormatted, serializeSpan, serializeStandardTag } from "../lib/serializerHelpers.js";
|
|
2
|
+
import { composeSerializers } from "../richtext/composeSerializers.js";
|
|
2
3
|
import { serialize } from "../richtext/serialize.js";
|
|
3
4
|
import { wrapMapSerializer } from "../richtext/wrapMapSerializer.js";
|
|
4
|
-
import { composeSerializers } from "../richtext/composeSerializers.js";
|
|
5
5
|
// src/helpers/asHTML.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates a HTML rich text serializer with a given link resolver and provide sensible and safe
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.cjs";
|
|
2
|
-
import { FilledLinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
3
|
-
import { FilledLinkToWebField, LinkField } from "../types/value/link.cjs";
|
|
4
2
|
import { PrismicDocument } from "../types/value/document.cjs";
|
|
3
|
+
import { FilledLinkToWebField, LinkField } from "../types/value/link.cjs";
|
|
4
|
+
import { FilledLinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
5
5
|
/**
|
|
6
6
|
* Resolves a link to a Prismic page to a URL.
|
|
7
7
|
*
|
package/dist/helpers/asLink.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.js";
|
|
2
|
-
import { FilledLinkToMediaField } from "../types/value/linkToMedia.js";
|
|
3
|
-
import { FilledLinkToWebField, LinkField } from "../types/value/link.js";
|
|
4
2
|
import { PrismicDocument } from "../types/value/document.js";
|
|
3
|
+
import { FilledLinkToWebField, LinkField } from "../types/value/link.js";
|
|
4
|
+
import { FilledLinkToMediaField } from "../types/value/linkToMedia.js";
|
|
5
5
|
/**
|
|
6
6
|
* Resolves a link to a Prismic page to a URL.
|
|
7
7
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
const require_isInternalURL = require("../lib/isInternalURL.cjs");
|
|
1
2
|
const require_asLink = require("./asLink.cjs");
|
|
2
3
|
const require_isFilled = require("./isFilled.cjs");
|
|
3
|
-
const require_isInternalURL = require("../lib/isInternalURL.cjs");
|
|
4
4
|
// src/helpers/asLinkAttrs.ts
|
|
5
5
|
/**
|
|
6
6
|
* Resolves any type of link field or Prismic page to a set of link attributes. The attributes are
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.cjs";
|
|
2
|
-
import { FilledLinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
3
|
-
import { FilledLinkToWebField, LinkField } from "../types/value/link.cjs";
|
|
4
2
|
import { PrismicDocument } from "../types/value/document.cjs";
|
|
3
|
+
import { FilledLinkToWebField, LinkField } from "../types/value/link.cjs";
|
|
4
|
+
import { FilledLinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
5
5
|
import { AsLinkReturnType, LinkResolverFunction } from "./asLink.cjs";
|
|
6
6
|
type AsLinkAttrsConfigRelArgs<LinkResolverFunctionReturnType = ReturnType<LinkResolverFunction>, Field extends LinkField | PrismicDocument | null | undefined = LinkField | PrismicDocument | null | undefined> = {
|
|
7
7
|
href: NonNullable<AsLinkReturnType<LinkResolverFunctionReturnType, Field>> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.js";
|
|
2
|
-
import { FilledLinkToMediaField } from "../types/value/linkToMedia.js";
|
|
3
|
-
import { FilledLinkToWebField, LinkField } from "../types/value/link.js";
|
|
4
2
|
import { PrismicDocument } from "../types/value/document.js";
|
|
3
|
+
import { FilledLinkToWebField, LinkField } from "../types/value/link.js";
|
|
4
|
+
import { FilledLinkToMediaField } from "../types/value/linkToMedia.js";
|
|
5
5
|
import { AsLinkReturnType, LinkResolverFunction } from "./asLink.js";
|
|
6
6
|
type AsLinkAttrsConfigRelArgs<LinkResolverFunctionReturnType = ReturnType<LinkResolverFunction>, Field extends LinkField | PrismicDocument | null | undefined = LinkField | PrismicDocument | null | undefined> = {
|
|
7
7
|
href: NonNullable<AsLinkReturnType<LinkResolverFunctionReturnType, Field>> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { isInternalURL } from "../lib/isInternalURL.js";
|
|
1
2
|
import { asLink } from "./asLink.js";
|
|
2
3
|
import { link } from "./isFilled.js";
|
|
3
|
-
import { isInternalURL } from "../lib/isInternalURL.js";
|
|
4
4
|
// src/helpers/asLinkAttrs.ts
|
|
5
5
|
/**
|
|
6
6
|
* Resolves any type of link field or Prismic page to a set of link attributes. The attributes are
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ColorField } from "../types/value/color.cjs";
|
|
2
|
-
import { GroupField, NestedGroupField } from "../types/value/group.cjs";
|
|
3
|
-
import { SharedSlice } from "../types/value/sharedSlice.cjs";
|
|
4
|
-
import { Slice } from "../types/value/slice.cjs";
|
|
5
|
-
import { SliceZone } from "../types/value/sliceZone.cjs";
|
|
6
2
|
import { ContentRelationshipField, EmptyContentRelationshipField } from "../types/value/contentRelationship.cjs";
|
|
7
3
|
import { DateField } from "../types/value/date.cjs";
|
|
4
|
+
import { AnyOEmbed, EmbedField } from "../types/value/embed.cjs";
|
|
8
5
|
import { GeoPointField } from "../types/value/geoPoint.cjs";
|
|
6
|
+
import { GroupField, NestedGroupField } from "../types/value/group.cjs";
|
|
9
7
|
import { ImageField, ImageFieldImage } from "../types/value/image.cjs";
|
|
10
8
|
import { IntegrationField, IntegrationFieldData } from "../types/value/integration.cjs";
|
|
11
9
|
import { KeyTextField } from "../types/value/keyText.cjs";
|
|
12
|
-
import { LinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
13
10
|
import { LinkField } from "../types/value/link.cjs";
|
|
11
|
+
import { LinkToMediaField } from "../types/value/linkToMedia.cjs";
|
|
14
12
|
import { NumberField } from "../types/value/number.cjs";
|
|
13
|
+
import { RichTextField } from "../types/value/richText.cjs";
|
|
15
14
|
import { SelectField } from "../types/value/select.cjs";
|
|
15
|
+
import { SharedSlice } from "../types/value/sharedSlice.cjs";
|
|
16
|
+
import { Slice } from "../types/value/slice.cjs";
|
|
17
|
+
import { SliceZone } from "../types/value/sliceZone.cjs";
|
|
16
18
|
import { TableField } from "../types/value/table.cjs";
|
|
17
19
|
import { TimestampField } from "../types/value/timestamp.cjs";
|
|
18
20
|
import { TitleField } from "../types/value/title.cjs";
|
|
19
21
|
import { AnyRegularField, Repeatable } from "../types/value/types.cjs";
|
|
20
|
-
import { AnyOEmbed, EmbedField } from "../types/value/embed.cjs";
|
|
21
|
-
import { RichTextField } from "../types/value/richText.cjs";
|
|
22
22
|
declare namespace isFilled_d_exports {
|
|
23
23
|
export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
|
|
24
24
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ColorField } from "../types/value/color.js";
|
|
2
|
-
import { GroupField, NestedGroupField } from "../types/value/group.js";
|
|
3
|
-
import { SharedSlice } from "../types/value/sharedSlice.js";
|
|
4
|
-
import { Slice } from "../types/value/slice.js";
|
|
5
|
-
import { SliceZone } from "../types/value/sliceZone.js";
|
|
6
2
|
import { ContentRelationshipField, EmptyContentRelationshipField } from "../types/value/contentRelationship.js";
|
|
7
3
|
import { DateField } from "../types/value/date.js";
|
|
4
|
+
import { AnyOEmbed, EmbedField } from "../types/value/embed.js";
|
|
8
5
|
import { GeoPointField } from "../types/value/geoPoint.js";
|
|
6
|
+
import { GroupField, NestedGroupField } from "../types/value/group.js";
|
|
9
7
|
import { ImageField, ImageFieldImage } from "../types/value/image.js";
|
|
10
8
|
import { IntegrationField, IntegrationFieldData } from "../types/value/integration.js";
|
|
11
9
|
import { KeyTextField } from "../types/value/keyText.js";
|
|
12
|
-
import { LinkToMediaField } from "../types/value/linkToMedia.js";
|
|
13
10
|
import { LinkField } from "../types/value/link.js";
|
|
11
|
+
import { LinkToMediaField } from "../types/value/linkToMedia.js";
|
|
14
12
|
import { NumberField } from "../types/value/number.js";
|
|
13
|
+
import { RichTextField } from "../types/value/richText.js";
|
|
15
14
|
import { SelectField } from "../types/value/select.js";
|
|
15
|
+
import { SharedSlice } from "../types/value/sharedSlice.js";
|
|
16
|
+
import { Slice } from "../types/value/slice.js";
|
|
17
|
+
import { SliceZone } from "../types/value/sliceZone.js";
|
|
16
18
|
import { TableField } from "../types/value/table.js";
|
|
17
19
|
import { TimestampField } from "../types/value/timestamp.js";
|
|
18
20
|
import { TitleField } from "../types/value/title.js";
|
|
19
21
|
import { AnyRegularField, Repeatable } from "../types/value/types.js";
|
|
20
|
-
import { AnyOEmbed, EmbedField } from "../types/value/embed.js";
|
|
21
|
-
import { RichTextField } from "../types/value/richText.js";
|
|
22
22
|
declare namespace isFilled_d_exports {
|
|
23
23
|
export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
|
|
24
24
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -2,39 +2,39 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_filter = require("./filter.cjs");
|
|
3
3
|
const require_mapSliceZone = require("./helpers/mapSliceZone.cjs");
|
|
4
4
|
const require_richText = require("./types/value/richText.cjs");
|
|
5
|
-
const require_buildQueryURL = require("./buildQueryURL.cjs");
|
|
6
|
-
const require_errors = require("./errors.cjs");
|
|
7
|
-
const require_isRepositoryName = require("./isRepositoryName.cjs");
|
|
8
|
-
const require_getRepositoryEndpoint = require("./getRepositoryEndpoint.cjs");
|
|
9
|
-
const require_getRepositoryName = require("./getRepositoryName.cjs");
|
|
10
|
-
const require_link = require("./types/value/link.cjs");
|
|
11
|
-
const require_documentToLinkField = require("./helpers/documentToLinkField.cjs");
|
|
12
|
-
const require_asLink = require("./helpers/asLink.cjs");
|
|
13
|
-
const require_isRepositoryEndpoint = require("./isRepositoryEndpoint.cjs");
|
|
14
|
-
const require_cookie = require("./cookie.cjs");
|
|
15
|
-
const require_Client = require("./Client.cjs");
|
|
16
5
|
const require_createClient = require("./createClient.cjs");
|
|
17
|
-
const
|
|
18
|
-
const require_Asset = require("./types/migration/Asset.cjs");
|
|
19
|
-
const require_Document = require("./types/migration/Document.cjs");
|
|
20
|
-
const require_WriteClient = require("./WriteClient.cjs");
|
|
6
|
+
const require_Client = require("./Client.cjs");
|
|
21
7
|
const require_createWriteClient = require("./createWriteClient.cjs");
|
|
22
|
-
const
|
|
8
|
+
const require_WriteClient = require("./WriteClient.cjs");
|
|
23
9
|
const require_createMigration = require("./createMigration.cjs");
|
|
10
|
+
const require_Migration = require("./Migration.cjs");
|
|
11
|
+
const require_getRepositoryEndpoint = require("./getRepositoryEndpoint.cjs");
|
|
12
|
+
const require_getRepositoryName = require("./getRepositoryName.cjs");
|
|
24
13
|
const require_getGraphQLEndpoint = require("./getGraphQLEndpoint.cjs");
|
|
14
|
+
const require_isRepositoryName = require("./isRepositoryName.cjs");
|
|
15
|
+
const require_isRepositoryEndpoint = require("./isRepositoryEndpoint.cjs");
|
|
16
|
+
const require_buildQueryURL = require("./buildQueryURL.cjs");
|
|
25
17
|
const require_getToolbarSrc = require("./getToolbarSrc.cjs");
|
|
18
|
+
const require_cookie = require("./cookie.cjs");
|
|
26
19
|
const require_asDate = require("./helpers/asDate.cjs");
|
|
20
|
+
const require_asLink = require("./helpers/asLink.cjs");
|
|
27
21
|
const require_asLinkAttrs = require("./helpers/asLinkAttrs.cjs");
|
|
28
22
|
const require_asText = require("./helpers/asText.cjs");
|
|
29
23
|
const require_asHTML = require("./helpers/asHTML.cjs");
|
|
30
24
|
const require_asImageSrc = require("./helpers/asImageSrc.cjs");
|
|
31
25
|
const require_asImageWidthSrcSet = require("./helpers/asImageWidthSrcSet.cjs");
|
|
32
26
|
const require_asImagePixelDensitySrcSet = require("./helpers/asImagePixelDensitySrcSet.cjs");
|
|
27
|
+
const require_isFilled = require("./helpers/isFilled.cjs");
|
|
28
|
+
const require_documentToLinkField = require("./helpers/documentToLinkField.cjs");
|
|
29
|
+
const require_errors = require("./errors.cjs");
|
|
30
|
+
const require_link = require("./types/value/link.cjs");
|
|
33
31
|
const require_embed = require("./types/value/embed.cjs");
|
|
34
32
|
const require_types = require("./types/model/types.cjs");
|
|
35
33
|
const require_link$1 = require("./types/model/link.cjs");
|
|
36
34
|
const require_sliceZone = require("./types/model/sliceZone.cjs");
|
|
37
35
|
const require_slice = require("./types/model/slice.cjs");
|
|
36
|
+
const require_Document = require("./types/migration/Document.cjs");
|
|
37
|
+
const require_Asset = require("./types/migration/Asset.cjs");
|
|
38
38
|
const require_types$1 = require("./types/webhook/types.cjs");
|
|
39
39
|
// src/index.ts
|
|
40
40
|
/** @deprecated Renamed to `filter` */
|
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,15 +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
93
|
/** @deprecated Renamed to `filter` */
|
|
94
94
|
declare const predicate: {
|
|
95
95
|
at: (path: string, value: string | number | boolean | string[] | Date) => string;
|