@prismicio/client 7.20.2 → 7.20.3
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 +120 -132
- package/dist/Client.cjs.map +1 -1
- package/dist/Client.d.ts +7 -7
- package/dist/Client.js +120 -132
- package/dist/Client.js.map +1 -1
- package/dist/Migration.cjs +83 -101
- package/dist/Migration.cjs.map +1 -1
- package/dist/Migration.d.ts +9 -9
- package/dist/Migration.js +83 -101
- package/dist/Migration.js.map +1 -1
- package/dist/WriteClient.cjs +117 -98
- package/dist/WriteClient.cjs.map +1 -1
- package/dist/WriteClient.d.ts +6 -6
- package/dist/WriteClient.js +117 -98
- package/dist/WriteClient.js.map +1 -1
- package/dist/buildQueryURL.cjs.map +1 -1
- package/dist/buildQueryURL.js.map +1 -1
- package/dist/createClient.cjs.map +1 -1
- package/dist/createClient.d.ts +2 -2
- package/dist/createMigration.cjs.map +1 -1
- package/dist/createMigration.d.ts +2 -2
- package/dist/createMigration.js.map +1 -1
- package/dist/createWriteClient.cjs.map +1 -1
- package/dist/createWriteClient.d.ts +2 -2
- package/dist/errors/ForbiddenError.d.ts +1 -1
- package/dist/errors/InvalidDataError.d.ts +1 -1
- package/dist/errors/NotFoundError.d.ts +1 -1
- package/dist/errors/ParsingError.d.ts +1 -1
- package/dist/errors/PreviewTokenExpired.d.ts +1 -1
- package/dist/errors/PrismicError.cjs +2 -5
- package/dist/errors/PrismicError.cjs.map +1 -1
- package/dist/errors/PrismicError.js +2 -5
- package/dist/errors/PrismicError.js.map +1 -1
- package/dist/errors/RefExpiredError.d.ts +1 -1
- package/dist/errors/RefNotFoundError.d.ts +1 -1
- package/dist/errors/RepositoryNotFoundError.d.ts +1 -1
- package/dist/filter.cjs.map +1 -1
- package/dist/filter.js.map +1 -1
- package/dist/getGraphQLEndpoint.cjs.map +1 -1
- package/dist/getGraphQLEndpoint.js.map +1 -1
- package/dist/getRepositoryEndpoint.cjs.map +1 -1
- package/dist/getRepositoryEndpoint.js.map +1 -1
- package/dist/getRepositoryName.cjs.map +1 -1
- package/dist/getRepositoryName.js.map +1 -1
- package/dist/getToolbarSrc.cjs.map +1 -1
- package/dist/getToolbarSrc.js.map +1 -1
- package/dist/helpers/asDate.cjs.map +1 -1
- package/dist/helpers/asDate.d.ts +2 -2
- package/dist/helpers/asDate.js.map +1 -1
- package/dist/helpers/asHTML.cjs +22 -22
- package/dist/helpers/asHTML.cjs.map +1 -1
- package/dist/helpers/asHTML.d.ts +3 -3
- package/dist/helpers/asHTML.js +22 -22
- package/dist/helpers/asHTML.js.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.js.map +1 -1
- package/dist/helpers/asImageSrc.cjs.map +1 -1
- package/dist/helpers/asImageSrc.d.ts +1 -1
- package/dist/helpers/asImageSrc.js.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.cjs.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.d.ts +1 -1
- package/dist/helpers/asImageWidthSrcSet.js.map +1 -1
- package/dist/helpers/asLink.cjs.map +1 -1
- package/dist/helpers/asLink.d.ts +4 -4
- package/dist/helpers/asLink.js.map +1 -1
- package/dist/helpers/asLinkAttrs.cjs.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +5 -5
- package/dist/helpers/asLinkAttrs.js.map +1 -1
- package/dist/helpers/asText.cjs.map +1 -1
- package/dist/helpers/asText.d.ts +1 -1
- package/dist/helpers/asText.js.map +1 -1
- package/dist/helpers/documentToLinkField.cjs +1 -2
- package/dist/helpers/documentToLinkField.cjs.map +1 -1
- package/dist/helpers/documentToLinkField.d.ts +2 -2
- package/dist/helpers/documentToLinkField.js +1 -2
- package/dist/helpers/documentToLinkField.js.map +1 -1
- package/dist/helpers/isFilled.cjs.map +1 -1
- package/dist/helpers/isFilled.d.ts +21 -21
- package/dist/helpers/isFilled.js.map +1 -1
- package/dist/helpers/mapSliceZone.cjs.map +1 -1
- package/dist/helpers/mapSliceZone.d.ts +1 -1
- package/dist/helpers/mapSliceZone.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +120 -120
- package/dist/index.js.map +1 -1
- package/dist/isRepositoryEndpoint.cjs.map +1 -1
- package/dist/isRepositoryEndpoint.js.map +1 -1
- package/dist/isRepositoryName.cjs.map +1 -1
- package/dist/isRepositoryName.js.map +1 -1
- package/dist/lib/appendFilters.cjs.map +1 -1
- package/dist/lib/appendFilters.js.map +1 -1
- package/dist/lib/castArray.cjs.map +1 -1
- package/dist/lib/castArray.js.map +1 -1
- package/dist/lib/castThunk.cjs.map +1 -1
- package/dist/lib/castThunk.js.map +1 -1
- package/dist/lib/devMsg.cjs.map +1 -1
- package/dist/lib/devMsg.js.map +1 -1
- package/dist/lib/escapeHTML.cjs.map +1 -1
- package/dist/lib/escapeHTML.js.map +1 -1
- package/dist/lib/everyTagFilter.cjs.map +1 -1
- package/dist/lib/everyTagFilter.js.map +1 -1
- package/dist/lib/findMasterRef.cjs.map +1 -1
- package/dist/lib/findMasterRef.d.ts +1 -1
- package/dist/lib/findMasterRef.js.map +1 -1
- package/dist/lib/findRef.cjs.map +1 -1
- package/dist/lib/findRef.d.ts +1 -1
- package/dist/lib/findRef.js.map +1 -1
- package/dist/lib/findRefByID.cjs.map +1 -1
- package/dist/lib/findRefByID.d.ts +1 -1
- package/dist/lib/findRefByID.js.map +1 -1
- package/dist/lib/findRefByLabel.cjs.map +1 -1
- package/dist/lib/findRefByLabel.d.ts +1 -1
- package/dist/lib/findRefByLabel.js.map +1 -1
- package/dist/lib/getOptionalLinkProperties.cjs.map +1 -1
- package/dist/lib/getOptionalLinkProperties.d.ts +1 -1
- package/dist/lib/getOptionalLinkProperties.js.map +1 -1
- package/dist/lib/getPreviewCookie.cjs.map +1 -1
- package/dist/lib/getPreviewCookie.js.map +1 -1
- package/dist/lib/isInternalURL.cjs.map +1 -1
- package/dist/lib/isInternalURL.js.map +1 -1
- package/dist/lib/isMigrationValue.cjs.map +1 -1
- package/dist/lib/isMigrationValue.d.ts +8 -8
- package/dist/lib/isMigrationValue.js.map +1 -1
- package/dist/lib/isValue.cjs.map +1 -1
- package/dist/lib/isValue.d.ts +10 -10
- package/dist/lib/isValue.js.map +1 -1
- package/dist/lib/minifyGraphQLQuery.cjs.map +1 -1
- package/dist/lib/minifyGraphQLQuery.js.map +1 -1
- package/dist/lib/pLimit.cjs +3 -4
- package/dist/lib/pLimit.cjs.map +1 -1
- package/dist/lib/pLimit.js +3 -4
- package/dist/lib/pLimit.js.map +1 -1
- package/dist/lib/request.cjs +8 -10
- package/dist/lib/request.cjs.map +1 -1
- package/dist/lib/request.js +8 -10
- package/dist/lib/request.js.map +1 -1
- package/dist/lib/resolveMigrationDocumentData.cjs +4 -6
- package/dist/lib/resolveMigrationDocumentData.cjs.map +1 -1
- package/dist/lib/resolveMigrationDocumentData.d.ts +8 -8
- package/dist/lib/resolveMigrationDocumentData.js +4 -6
- package/dist/lib/resolveMigrationDocumentData.js.map +1 -1
- package/dist/lib/serializerHelpers.cjs +2 -2
- package/dist/lib/serializerHelpers.cjs.map +1 -1
- package/dist/lib/serializerHelpers.d.ts +3 -3
- package/dist/lib/serializerHelpers.js +2 -2
- package/dist/lib/serializerHelpers.js.map +1 -1
- package/dist/lib/someTagsFilter.cjs.map +1 -1
- package/dist/lib/someTagsFilter.js.map +1 -1
- package/dist/lib/throttledLog.cjs.map +1 -1
- package/dist/lib/throttledLog.js.map +1 -1
- package/dist/lib/typeFilter.cjs.map +1 -1
- package/dist/lib/typeFilter.js.map +1 -1
- package/dist/lib/validateAssetMetadata.cjs.map +1 -1
- package/dist/lib/validateAssetMetadata.d.ts +1 -1
- package/dist/lib/validateAssetMetadata.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/richtext/asText.cjs.map +1 -1
- package/dist/richtext/asText.d.ts +1 -1
- package/dist/richtext/asText.js.map +1 -1
- package/dist/richtext/asTree.cjs.map +1 -1
- package/dist/richtext/asTree.d.ts +2 -2
- package/dist/richtext/asTree.js.map +1 -1
- package/dist/richtext/composeSerializers.cjs.map +1 -1
- package/dist/richtext/composeSerializers.d.ts +1 -1
- package/dist/richtext/composeSerializers.js.map +1 -1
- package/dist/richtext/index.d.ts +7 -7
- package/dist/richtext/serialize.cjs.map +1 -1
- package/dist/richtext/serialize.d.ts +2 -2
- package/dist/richtext/serialize.js.map +1 -1
- package/dist/richtext/types.d.ts +1 -1
- package/dist/richtext/wrapMapSerializer.cjs.map +1 -1
- package/dist/richtext/wrapMapSerializer.d.ts +1 -1
- package/dist/richtext/wrapMapSerializer.js.map +1 -1
- package/dist/types/api/asset/asset.d.ts +1 -1
- package/dist/types/api/integration.d.ts +1 -1
- package/dist/types/api/migration/document.d.ts +1 -1
- package/dist/types/api/query.d.ts +1 -1
- package/dist/types/api/release.d.ts +1 -1
- package/dist/types/api/repository.d.ts +1 -1
- package/dist/types/migration/Asset.cjs +12 -15
- package/dist/types/migration/Asset.cjs.map +1 -1
- package/dist/types/migration/Asset.d.ts +7 -7
- package/dist/types/migration/Asset.js +12 -15
- package/dist/types/migration/Asset.js.map +1 -1
- package/dist/types/migration/ContentRelationship.d.ts +3 -3
- package/dist/types/migration/Document.cjs +24 -27
- package/dist/types/migration/Document.cjs.map +1 -1
- package/dist/types/migration/Document.d.ts +9 -9
- package/dist/types/migration/Document.js +24 -27
- package/dist/types/migration/Document.js.map +1 -1
- package/dist/types/migration/Link.d.ts +1 -1
- package/dist/types/model/boolean.d.ts +1 -1
- package/dist/types/model/color.d.ts +1 -1
- package/dist/types/model/contentRelationship.d.ts +3 -2
- package/dist/types/model/customType.d.ts +1 -1
- package/dist/types/model/date.d.ts +1 -1
- package/dist/types/model/embed.d.ts +1 -1
- package/dist/types/model/geoPoint.d.ts +1 -1
- package/dist/types/model/group.d.ts +1 -1
- package/dist/types/model/image.d.ts +1 -1
- package/dist/types/model/integration.d.ts +1 -1
- package/dist/types/model/keyText.d.ts +1 -1
- package/dist/types/model/link.d.ts +1 -1
- package/dist/types/model/linkToMedia.d.ts +2 -2
- package/dist/types/model/number.d.ts +1 -1
- package/dist/types/model/range.d.ts +1 -1
- package/dist/types/model/richText.d.ts +1 -1
- package/dist/types/model/select.d.ts +1 -1
- package/dist/types/model/separator.d.ts +1 -1
- package/dist/types/model/sharedSlice.d.ts +2 -2
- package/dist/types/model/sharedSliceVariation.d.ts +1 -1
- package/dist/types/model/slice.d.ts +3 -3
- package/dist/types/model/sliceZone.d.ts +2 -2
- package/dist/types/model/table.d.ts +1 -1
- package/dist/types/model/timestamp.d.ts +1 -1
- package/dist/types/model/title.d.ts +1 -1
- package/dist/types/model/types.d.ts +22 -22
- package/dist/types/model/uid.d.ts +1 -1
- package/dist/types/value/color.d.ts +1 -1
- package/dist/types/value/contentRelationship.d.ts +3 -3
- package/dist/types/value/date.d.ts +1 -1
- package/dist/types/value/document.d.ts +4 -4
- package/dist/types/value/embed.d.ts +1 -1
- package/dist/types/value/geoPoint.d.ts +1 -1
- package/dist/types/value/group.d.ts +1 -1
- package/dist/types/value/image.d.ts +1 -1
- package/dist/types/value/integration.d.ts +1 -1
- package/dist/types/value/keyText.d.ts +1 -1
- package/dist/types/value/link.d.ts +5 -5
- package/dist/types/value/linkToMedia.d.ts +2 -2
- package/dist/types/value/number.d.ts +1 -1
- package/dist/types/value/richText.d.ts +3 -3
- package/dist/types/value/select.d.ts +1 -1
- package/dist/types/value/sharedSlice.d.ts +1 -1
- package/dist/types/value/sharedSliceVariation.d.ts +1 -1
- package/dist/types/value/slice.d.ts +1 -1
- package/dist/types/value/sliceZone.d.ts +3 -3
- package/dist/types/value/table.d.ts +2 -2
- package/dist/types/value/timestamp.d.ts +2 -2
- package/dist/types/value/title.d.ts +2 -2
- package/dist/types/value/types.d.ts +18 -18
- package/dist/types/webhook/apiUpdate.d.ts +1 -1
- package/dist/types/webhook/testTrigger.d.ts +1 -1
- package/dist/types/webhook/types.d.ts +2 -2
- package/package.json +11 -11
- package/src/index.ts +1 -1
- package/src/types/migration/Asset.ts +10 -2
- package/src/types/model/contentRelationship.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CustomTypeModelFieldType } from "./types";
|
|
2
|
-
import type { CustomTypeModelLinkSelectType } from "./link";
|
|
1
|
+
import type { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
import type { CustomTypeModelLinkSelectType } from "./link.js";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -42,6 +42,7 @@ export type CustomTypeModelFetchCustomTypeLevel1 = {
|
|
|
42
42
|
*/
|
|
43
43
|
export interface CustomTypeModelContentRelationshipField<CustomTypes extends string | CustomTypeModelFetchCustomTypeLevel1 = string | CustomTypeModelFetchCustomTypeLevel1, Tags extends string = string> {
|
|
44
44
|
type: typeof CustomTypeModelFieldType.Link;
|
|
45
|
+
fieldset?: string | null;
|
|
45
46
|
config?: {
|
|
46
47
|
label?: string | null;
|
|
47
48
|
placeholder?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldType } from "./types";
|
|
1
|
+
import type { CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldType } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* A group custom type field.
|
|
4
4
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CustomTypeModelFieldType } from "./types";
|
|
2
|
-
import type { CustomTypeModelLinkSelectType } from "./link";
|
|
1
|
+
import type { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
import type { CustomTypeModelLinkSelectType } from "./link.js";
|
|
3
3
|
/**
|
|
4
4
|
* A link to media custom type field.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SharedSliceModelVariation } from "./sharedSliceVariation";
|
|
2
|
-
import type { CustomTypeModelSliceType } from "./sliceZone";
|
|
1
|
+
import type { SharedSliceModelVariation } from "./sharedSliceVariation.js";
|
|
2
|
+
import type { CustomTypeModelSliceType } from "./sliceZone.js";
|
|
3
3
|
/**
|
|
4
4
|
* A Prismic shared Slice model.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CustomTypeModelFieldForNestedGroup } from "./types";
|
|
2
|
-
import type { CustomTypeModelNestedGroupField } from "./group";
|
|
3
|
-
import type { CustomTypeModelSliceType } from "./sliceZone";
|
|
1
|
+
import type { CustomTypeModelFieldForNestedGroup } from "./types.js";
|
|
2
|
+
import type { CustomTypeModelNestedGroupField } from "./group.js";
|
|
3
|
+
import type { CustomTypeModelSliceType } from "./sliceZone.js";
|
|
4
4
|
/**
|
|
5
5
|
* A Slice for a custom type.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CustomTypeModelFieldType } from "./types";
|
|
2
|
-
import type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from "./slice";
|
|
1
|
+
import type { CustomTypeModelFieldType } from "./types.js";
|
|
2
|
+
import type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from "./slice.js";
|
|
3
3
|
/**
|
|
4
4
|
* A Slice Zone custom type field.
|
|
5
5
|
*
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type { CustomTypeModelBooleanField } from "./boolean";
|
|
2
|
-
import type { CustomTypeModelColorField } from "./color";
|
|
3
|
-
import type { CustomTypeModelContentRelationshipField } from "./contentRelationship";
|
|
4
|
-
import type { CustomTypeModelDateField } from "./date";
|
|
5
|
-
import type { CustomTypeModelEmbedField } from "./embed";
|
|
6
|
-
import type { CustomTypeModelGeoPointField } from "./geoPoint";
|
|
7
|
-
import type { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./group";
|
|
8
|
-
import type { CustomTypeModelImageField } from "./image";
|
|
9
|
-
import type { CustomTypeModelIntegrationField } from "./integration";
|
|
10
|
-
import type { CustomTypeModelKeyTextField } from "./keyText";
|
|
11
|
-
import type { CustomTypeModelLinkField } from "./link";
|
|
12
|
-
import type { CustomTypeModelLinkToMediaField } from "./linkToMedia";
|
|
13
|
-
import type { CustomTypeModelNumberField } from "./number";
|
|
14
|
-
import type { CustomTypeModelRangeField } from "./range";
|
|
15
|
-
import type { CustomTypeModelRichTextField } from "./richText";
|
|
16
|
-
import type { CustomTypeModelSelectField } from "./select";
|
|
17
|
-
import type { CustomTypeModelSeparatorField } from "./separator";
|
|
18
|
-
import type { CustomTypeModelSliceZoneField } from "./sliceZone";
|
|
19
|
-
import type { CustomTypeModelTableField } from "./table";
|
|
20
|
-
import type { CustomTypeModelTimestampField } from "./timestamp";
|
|
21
|
-
import type { CustomTypeModelTitleField } from "./title";
|
|
22
|
-
import type { CustomTypeModelUIDField } from "./uid";
|
|
1
|
+
import type { CustomTypeModelBooleanField } from "./boolean.js";
|
|
2
|
+
import type { CustomTypeModelColorField } from "./color.js";
|
|
3
|
+
import type { CustomTypeModelContentRelationshipField } from "./contentRelationship.js";
|
|
4
|
+
import type { CustomTypeModelDateField } from "./date.js";
|
|
5
|
+
import type { CustomTypeModelEmbedField } from "./embed.js";
|
|
6
|
+
import type { CustomTypeModelGeoPointField } from "./geoPoint.js";
|
|
7
|
+
import type { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./group.js";
|
|
8
|
+
import type { CustomTypeModelImageField } from "./image.js";
|
|
9
|
+
import type { CustomTypeModelIntegrationField } from "./integration.js";
|
|
10
|
+
import type { CustomTypeModelKeyTextField } from "./keyText.js";
|
|
11
|
+
import type { CustomTypeModelLinkField } from "./link.js";
|
|
12
|
+
import type { CustomTypeModelLinkToMediaField } from "./linkToMedia.js";
|
|
13
|
+
import type { CustomTypeModelNumberField } from "./number.js";
|
|
14
|
+
import type { CustomTypeModelRangeField } from "./range.js";
|
|
15
|
+
import type { CustomTypeModelRichTextField } from "./richText.js";
|
|
16
|
+
import type { CustomTypeModelSelectField } from "./select.js";
|
|
17
|
+
import type { CustomTypeModelSeparatorField } from "./separator.js";
|
|
18
|
+
import type { CustomTypeModelSliceZoneField } from "./sliceZone.js";
|
|
19
|
+
import type { CustomTypeModelTableField } from "./table.js";
|
|
20
|
+
import type { CustomTypeModelTimestampField } from "./timestamp.js";
|
|
21
|
+
import type { CustomTypeModelTitleField } from "./title.js";
|
|
22
|
+
import type { CustomTypeModelUIDField } from "./uid.js";
|
|
23
23
|
/**
|
|
24
24
|
* Type identifier for a custom type field.
|
|
25
25
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AnyRegularField, FieldState } from "./types";
|
|
2
|
-
import type { GroupField } from "./group";
|
|
3
|
-
import type { SliceZone } from "./sliceZone";
|
|
1
|
+
import type { AnyRegularField, FieldState } from "./types.js";
|
|
2
|
+
import type { GroupField } from "./group.js";
|
|
3
|
+
import type { SliceZone } from "./sliceZone.js";
|
|
4
4
|
/**
|
|
5
5
|
* Field for related documents
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AnyRegularField } from "./types";
|
|
2
|
-
import type { GroupField } from "./group";
|
|
3
|
-
import type { SliceZone } from "./sliceZone";
|
|
4
|
-
import type { TimestampField } from "./timestamp";
|
|
1
|
+
import type { AnyRegularField } from "./types.js";
|
|
2
|
+
import type { GroupField } from "./group.js";
|
|
3
|
+
import type { SliceZone } from "./sliceZone.js";
|
|
4
|
+
import type { TimestampField } from "./timestamp.js";
|
|
5
5
|
/**
|
|
6
6
|
* Document metadata for a translation of a Prismic document.
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { AnyRegularField, FieldState } from "./types";
|
|
2
|
-
import type { FilledContentRelationshipField } from "./contentRelationship";
|
|
3
|
-
import type { GroupField } from "./group";
|
|
4
|
-
import type { FilledLinkToMediaField } from "./linkToMedia";
|
|
5
|
-
import type { SliceZone } from "./sliceZone";
|
|
1
|
+
import type { AnyRegularField, FieldState } from "./types.js";
|
|
2
|
+
import type { FilledContentRelationshipField } from "./contentRelationship.js";
|
|
3
|
+
import type { GroupField } from "./group.js";
|
|
4
|
+
import type { FilledLinkToMediaField } from "./linkToMedia.js";
|
|
5
|
+
import type { SliceZone } from "./sliceZone.js";
|
|
6
6
|
/**
|
|
7
7
|
* Link types
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FieldState } from "./types";
|
|
2
|
-
import type { EmbedField } from "./embed";
|
|
3
|
-
import type { FilledLinkField } from "./link";
|
|
1
|
+
import type { FieldState } from "./types.js";
|
|
2
|
+
import type { EmbedField } from "./embed.js";
|
|
3
|
+
import type { FilledLinkField } from "./link.js";
|
|
4
4
|
/**
|
|
5
5
|
* Types enum for RichTextNodes
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FieldState } from "./types";
|
|
2
|
-
import type { SharedSlice } from "./sharedSlice";
|
|
3
|
-
import type { Slice } from "./slice";
|
|
1
|
+
import type { FieldState } from "./types.js";
|
|
2
|
+
import type { SharedSlice } from "./sharedSlice.js";
|
|
3
|
+
import type { Slice } from "./slice.js";
|
|
4
4
|
/**
|
|
5
5
|
* Prismic Slices are sections of your website. Prismic documents contain a
|
|
6
6
|
* dynamic "Slice Zone" that allows content creators to add, edit, and rearrange
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FieldState } from "./types";
|
|
2
|
-
import type { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText";
|
|
1
|
+
import type { FieldState } from "./types.js";
|
|
2
|
+
import type { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText.js";
|
|
3
3
|
/**
|
|
4
4
|
* A title field.
|
|
5
5
|
*
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { BooleanField } from "./boolean";
|
|
2
|
-
import type { ColorField } from "./color";
|
|
3
|
-
import type { ContentRelationshipField } from "./contentRelationship";
|
|
4
|
-
import type { DateField } from "./date";
|
|
5
|
-
import type { EmbedField } from "./embed";
|
|
6
|
-
import type { GeoPointField } from "./geoPoint";
|
|
7
|
-
import type { GroupField } from "./group";
|
|
8
|
-
import type { ImageField } from "./image";
|
|
9
|
-
import type { IntegrationField } from "./integration";
|
|
10
|
-
import type { KeyTextField } from "./keyText";
|
|
11
|
-
import type { LinkField } from "./link";
|
|
12
|
-
import type { LinkToMediaField } from "./linkToMedia";
|
|
13
|
-
import type { NumberField } from "./number";
|
|
14
|
-
import type { RichTextField } from "./richText";
|
|
15
|
-
import type { SelectField } from "./select";
|
|
16
|
-
import type { TableField } from "./table";
|
|
17
|
-
import type { TimestampField } from "./timestamp";
|
|
18
|
-
import type { TitleField } from "./title";
|
|
1
|
+
import type { BooleanField } from "./boolean.js";
|
|
2
|
+
import type { ColorField } from "./color.js";
|
|
3
|
+
import type { ContentRelationshipField } from "./contentRelationship.js";
|
|
4
|
+
import type { DateField } from "./date.js";
|
|
5
|
+
import type { EmbedField } from "./embed.js";
|
|
6
|
+
import type { GeoPointField } from "./geoPoint.js";
|
|
7
|
+
import type { GroupField } from "./group.js";
|
|
8
|
+
import type { ImageField } from "./image.js";
|
|
9
|
+
import type { IntegrationField } from "./integration.js";
|
|
10
|
+
import type { KeyTextField } from "./keyText.js";
|
|
11
|
+
import type { LinkField } from "./link.js";
|
|
12
|
+
import type { LinkToMediaField } from "./linkToMedia.js";
|
|
13
|
+
import type { NumberField } from "./number.js";
|
|
14
|
+
import type { RichTextField } from "./richText.js";
|
|
15
|
+
import type { SelectField } from "./select.js";
|
|
16
|
+
import type { TableField } from "./table.js";
|
|
17
|
+
import type { TimestampField } from "./timestamp.js";
|
|
18
|
+
import type { TitleField } from "./title.js";
|
|
19
19
|
/**
|
|
20
20
|
* Empty state for object-shaped fields.
|
|
21
21
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WebhookBodyAPIUpdate } from "./apiUpdate";
|
|
2
|
-
import type { WebhookBodyTestTrigger } from "./testTrigger";
|
|
1
|
+
import type { WebhookBodyAPIUpdate } from "./apiUpdate.js";
|
|
2
|
+
import type { WebhookBodyTestTrigger } from "./testTrigger.js";
|
|
3
3
|
export type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
|
|
4
4
|
/**
|
|
5
5
|
* Types of Prismic Webhooks.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/client",
|
|
3
|
-
"version": "7.20.
|
|
3
|
+
"version": "7.20.3",
|
|
4
4
|
"description": "The official JavaScript + TypeScript client library for Prismic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -83,28 +83,28 @@
|
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@prismicio/mock": "0.7.1",
|
|
86
|
-
"@prismicio/types-internal": "^3.
|
|
86
|
+
"@prismicio/types-internal": "^3.16.1",
|
|
87
87
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
88
88
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
89
89
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
90
90
|
"@typescript-eslint/parser": "^6.21.0",
|
|
91
|
-
"@vitest/coverage-v8": "^2.
|
|
91
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
92
92
|
"abort-controller": "^3.0.0",
|
|
93
93
|
"eslint": "^8.57.1",
|
|
94
|
-
"eslint-config-prettier": "^9.1.
|
|
95
|
-
"eslint-plugin-prettier": "^5.
|
|
94
|
+
"eslint-config-prettier": "^9.1.2",
|
|
95
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
96
96
|
"eslint-plugin-tsdoc": "^0.3.0",
|
|
97
97
|
"msw": "^1.3.5",
|
|
98
98
|
"node-fetch": "^3.3.2",
|
|
99
|
-
"prettier": "^3.
|
|
100
|
-
"prettier-plugin-jsdoc": "1.3.
|
|
99
|
+
"prettier": "^3.6.2",
|
|
100
|
+
"prettier-plugin-jsdoc": "1.3.3",
|
|
101
101
|
"size-limit": "^11.2.0",
|
|
102
102
|
"standard-version": "^9.5.0",
|
|
103
103
|
"ts-expect": "^1.3.0",
|
|
104
|
-
"typescript": "^5.
|
|
105
|
-
"vite": "^
|
|
106
|
-
"vite-plugin-sdk": "^0.1.
|
|
107
|
-
"vitest": "^2.
|
|
104
|
+
"typescript": "^5.9.3",
|
|
105
|
+
"vite": "^7.1.10",
|
|
106
|
+
"vite-plugin-sdk": "^0.1.5",
|
|
107
|
+
"vitest": "^3.2.4"
|
|
108
108
|
},
|
|
109
109
|
"engines": {
|
|
110
110
|
"node": ">=14.15.0"
|
package/src/index.ts
CHANGED
|
@@ -377,7 +377,7 @@ export type {
|
|
|
377
377
|
export type { Tags } from "./types/api/tags"
|
|
378
378
|
|
|
379
379
|
// Integration - Types representing Prismic's integration API.
|
|
380
|
-
export {
|
|
380
|
+
export type {
|
|
381
381
|
IntegrationAPIItem,
|
|
382
382
|
IntegrationAPIResults,
|
|
383
383
|
} from "./types/api/integration"
|
|
@@ -17,12 +17,20 @@ export type MigrationAssetConfig = {
|
|
|
17
17
|
* `file` property. It is mainly used for deduplication within a `Migration`
|
|
18
18
|
* instance.
|
|
19
19
|
*/
|
|
20
|
-
id:
|
|
20
|
+
id:
|
|
21
|
+
| string
|
|
22
|
+
| URL
|
|
23
|
+
| File
|
|
24
|
+
| NonNullable<ConstructorParameters<typeof File>[0]>[0]
|
|
21
25
|
|
|
22
26
|
/**
|
|
23
27
|
* File to be uploaded as an asset.
|
|
24
28
|
*/
|
|
25
|
-
file:
|
|
29
|
+
file:
|
|
30
|
+
| string
|
|
31
|
+
| URL
|
|
32
|
+
| File
|
|
33
|
+
| NonNullable<ConstructorParameters<typeof File>[0]>[0]
|
|
26
34
|
|
|
27
35
|
/**
|
|
28
36
|
* Filename of the asset.
|