@prismicio/client 7.9.0-alpha.1 → 7.9.0-alpha.2
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/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/types/value/contentRelationship.d.ts +1 -2
- package/dist/types/value/link.cjs.map +1 -1
- package/dist/types/value/link.d.ts +1 -2
- package/dist/types/value/link.js.map +1 -1
- package/dist/types/value/linkToMedia.d.ts +1 -2
- package/package.json +1 -1
- package/src/types/value/contentRelationship.ts +1 -2
- package/src/types/value/link.ts +1 -2
- package/src/types/value/linkToMedia.ts +1 -2
package/dist/package.json.cjs
CHANGED
package/dist/package.json.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { AnyRegularField, FieldState } from "./types";
|
|
2
2
|
import type { GroupField } from "./group";
|
|
3
|
-
import type { KeyTextField } from "./keyText";
|
|
4
3
|
import type { EmptyLinkField, LinkType } from "./link";
|
|
5
4
|
import type { SliceZone } from "./sliceZone";
|
|
6
5
|
/**
|
|
@@ -27,5 +26,5 @@ export interface FilledContentRelationshipField<TypeEnum = string, LangEnum = st
|
|
|
27
26
|
slug?: string;
|
|
28
27
|
isBroken?: boolean;
|
|
29
28
|
data?: DataInterface;
|
|
30
|
-
text?:
|
|
29
|
+
text?: string;
|
|
31
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.cjs","sources":["../../../../src/types/value/link.ts"],"sourcesContent":["import type { AnyRegularField, FieldState } from \"./types\"\n\nimport type { ContentRelationshipField } from \"./contentRelationship\"\nimport type { GroupField } from \"./group\"\nimport type {
|
|
1
|
+
{"version":3,"file":"link.cjs","sources":["../../../../src/types/value/link.ts"],"sourcesContent":["import type { AnyRegularField, FieldState } from \"./types\"\n\nimport type { ContentRelationshipField } from \"./contentRelationship\"\nimport type { GroupField } from \"./group\"\nimport type { LinkToMediaField } from \"./linkToMedia\"\nimport type { SliceZone } from \"./sliceZone\"\n\n/**\n * Link types\n */\nexport const LinkType = {\n\tAny: \"Any\",\n\tDocument: \"Document\",\n\tMedia: \"Media\",\n\tWeb: \"Web\",\n} as const\n\n/**\n * For link fields that haven't been filled\n *\n * @typeParam Type - The type of link.\n */\nexport type EmptyLinkField<\n\tType extends (typeof LinkType)[keyof typeof LinkType] = typeof LinkType.Any,\n> = {\n\tlink_type: Type | string\n}\n\n/**\n * Link that points to external website\n */\nexport interface FilledLinkToWebField {\n\tlink_type: typeof LinkType.Web\n\turl: string\n\ttarget?: string\n\ttext?: string\n}\n\n/**\n * A link field.\n *\n * @typeParam TypeEnum - Type API ID of the document.\n * @typeParam LangEnum - Language API ID of the document.\n * @typeParam DataInterface - Data fields for the document (filled in via\n * GraphQuery of `fetchLinks`).\n * @typeParam State - State of the field which determines its shape.\n */\nexport type LinkField<\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends\n\t\t| Record<string, AnyRegularField | GroupField | SliceZone>\n\t\t| unknown = unknown,\n\tState extends FieldState = FieldState,\n> = State extends \"empty\"\n\t? EmptyLinkField<typeof LinkType.Any>\n\t:\n\t\t\t| ContentRelationshipField<TypeEnum, LangEnum, DataInterface, State>\n\t\t\t| FilledLinkToWebField\n\t\t\t| LinkToMediaField<State>\n"],"names":[],"mappings":";;AAUO,MAAM,WAAW;AAAA,EACvB,KAAK;AAAA,EACL,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;;"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { AnyRegularField, FieldState } from "./types";
|
|
2
2
|
import type { ContentRelationshipField } from "./contentRelationship";
|
|
3
3
|
import type { GroupField } from "./group";
|
|
4
|
-
import type { KeyTextField } from "./keyText";
|
|
5
4
|
import type { LinkToMediaField } from "./linkToMedia";
|
|
6
5
|
import type { SliceZone } from "./sliceZone";
|
|
7
6
|
/**
|
|
@@ -28,7 +27,7 @@ export interface FilledLinkToWebField {
|
|
|
28
27
|
link_type: typeof LinkType.Web;
|
|
29
28
|
url: string;
|
|
30
29
|
target?: string;
|
|
31
|
-
text?:
|
|
30
|
+
text?: string;
|
|
32
31
|
}
|
|
33
32
|
/**
|
|
34
33
|
* A link field.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../../../../src/types/value/link.ts"],"sourcesContent":["import type { AnyRegularField, FieldState } from \"./types\"\n\nimport type { ContentRelationshipField } from \"./contentRelationship\"\nimport type { GroupField } from \"./group\"\nimport type {
|
|
1
|
+
{"version":3,"file":"link.js","sources":["../../../../src/types/value/link.ts"],"sourcesContent":["import type { AnyRegularField, FieldState } from \"./types\"\n\nimport type { ContentRelationshipField } from \"./contentRelationship\"\nimport type { GroupField } from \"./group\"\nimport type { LinkToMediaField } from \"./linkToMedia\"\nimport type { SliceZone } from \"./sliceZone\"\n\n/**\n * Link types\n */\nexport const LinkType = {\n\tAny: \"Any\",\n\tDocument: \"Document\",\n\tMedia: \"Media\",\n\tWeb: \"Web\",\n} as const\n\n/**\n * For link fields that haven't been filled\n *\n * @typeParam Type - The type of link.\n */\nexport type EmptyLinkField<\n\tType extends (typeof LinkType)[keyof typeof LinkType] = typeof LinkType.Any,\n> = {\n\tlink_type: Type | string\n}\n\n/**\n * Link that points to external website\n */\nexport interface FilledLinkToWebField {\n\tlink_type: typeof LinkType.Web\n\turl: string\n\ttarget?: string\n\ttext?: string\n}\n\n/**\n * A link field.\n *\n * @typeParam TypeEnum - Type API ID of the document.\n * @typeParam LangEnum - Language API ID of the document.\n * @typeParam DataInterface - Data fields for the document (filled in via\n * GraphQuery of `fetchLinks`).\n * @typeParam State - State of the field which determines its shape.\n */\nexport type LinkField<\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends\n\t\t| Record<string, AnyRegularField | GroupField | SliceZone>\n\t\t| unknown = unknown,\n\tState extends FieldState = FieldState,\n> = State extends \"empty\"\n\t? EmptyLinkField<typeof LinkType.Any>\n\t:\n\t\t\t| ContentRelationshipField<TypeEnum, LangEnum, DataInterface, State>\n\t\t\t| FilledLinkToWebField\n\t\t\t| LinkToMediaField<State>\n"],"names":[],"mappings":"AAUO,MAAM,WAAW;AAAA,EACvB,KAAK;AAAA,EACL,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FieldState } from "./types";
|
|
2
|
-
import type { KeyTextField } from "./keyText";
|
|
3
2
|
import type { EmptyLinkField, LinkType } from "./link";
|
|
4
3
|
/**
|
|
5
4
|
* A link field that points to media.
|
|
@@ -19,5 +18,5 @@ export interface FilledLinkToMediaField {
|
|
|
19
18
|
size: string;
|
|
20
19
|
height?: string | null;
|
|
21
20
|
width?: string | null;
|
|
22
|
-
text?:
|
|
21
|
+
text?: string;
|
|
23
22
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { AnyRegularField, FieldState } from "./types"
|
|
2
2
|
|
|
3
3
|
import type { GroupField } from "./group"
|
|
4
|
-
import type { KeyTextField } from "./keyText"
|
|
5
4
|
import type { EmptyLinkField, LinkType } from "./link"
|
|
6
5
|
import type { SliceZone } from "./sliceZone"
|
|
7
6
|
|
|
@@ -45,5 +44,5 @@ export interface FilledContentRelationshipField<
|
|
|
45
44
|
slug?: string
|
|
46
45
|
isBroken?: boolean
|
|
47
46
|
data?: DataInterface
|
|
48
|
-
text?:
|
|
47
|
+
text?: string
|
|
49
48
|
}
|
package/src/types/value/link.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { AnyRegularField, FieldState } from "./types"
|
|
|
2
2
|
|
|
3
3
|
import type { ContentRelationshipField } from "./contentRelationship"
|
|
4
4
|
import type { GroupField } from "./group"
|
|
5
|
-
import type { KeyTextField } from "./keyText"
|
|
6
5
|
import type { LinkToMediaField } from "./linkToMedia"
|
|
7
6
|
import type { SliceZone } from "./sliceZone"
|
|
8
7
|
|
|
@@ -34,7 +33,7 @@ export interface FilledLinkToWebField {
|
|
|
34
33
|
link_type: typeof LinkType.Web
|
|
35
34
|
url: string
|
|
36
35
|
target?: string
|
|
37
|
-
text?:
|
|
36
|
+
text?: string
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { FieldState } from "./types"
|
|
2
2
|
|
|
3
|
-
import type { KeyTextField } from "./keyText"
|
|
4
3
|
import type { EmptyLinkField, LinkType } from "./link"
|
|
5
4
|
|
|
6
5
|
/**
|
|
@@ -25,5 +24,5 @@ export interface FilledLinkToMediaField {
|
|
|
25
24
|
size: string
|
|
26
25
|
height?: string | null
|
|
27
26
|
width?: string | null
|
|
28
|
-
text?:
|
|
27
|
+
text?: string
|
|
29
28
|
}
|