@prismicio/client 7.8.1 → 7.9.0-alpha.1

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "7.8.1";
3
+ const version = "7.9.0-alpha.1";
4
4
  exports.version = version;
5
5
  //# sourceMappingURL=package.json.cjs.map
@@ -1,4 +1,4 @@
1
- const version = "7.8.1";
1
+ const version = "7.9.0-alpha.1";
2
2
  export {
3
3
  version
4
4
  };
@@ -77,10 +77,6 @@ export interface Language {
77
77
  * The name of the language.
78
78
  */
79
79
  name: string;
80
- /**
81
- * Whether or not the language is the default language of the repository.
82
- */
83
- is_master: boolean;
84
80
  }
85
81
  /**
86
82
  * A Prismic REST API V2 feature supported by the repository. It contains
@@ -1,4 +1,5 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
+ import type { CustomTypeModelKeyTextField } from "./keyText";
2
3
  import type { CustomTypeModelLinkSelectType } from "./link";
3
4
  /**
4
5
  * A content relationship custom type field.
@@ -13,5 +14,6 @@ export interface CustomTypeModelContentRelationshipField<CustomTypeIDs extends s
13
14
  select: typeof CustomTypeModelLinkSelectType.Document;
14
15
  customtypes?: readonly CustomTypeIDs[];
15
16
  tags?: readonly Tags[];
17
+ text?: CustomTypeModelKeyTextField;
16
18
  };
17
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"link.cjs","sources":["../../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\"\n\n/**\n * A link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport interface CustomTypeModelLinkField {\n\ttype: typeof CustomTypeModelFieldType.Link\n\tconfig?: {\n\t\tlabel?: string | null\n\t\tplaceholder?: string\n\t\tselect?:\n\t\t\t| null\n\t\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]\n\t\tallowTargetBlank?: boolean\n\t}\n}\n\n/**\n * Type of a link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport const CustomTypeModelLinkSelectType = {\n\tDocument: \"document\",\n\tMedia: \"media\",\n\tWeb: \"web\",\n} as const\n"],"names":[],"mappings":";;AAwBO,MAAM,gCAAgC;AAAA,EAC5C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;;"}
1
+ {"version":3,"file":"link.cjs","sources":["../../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\"\n\nimport type { CustomTypeModelKeyTextField } from \"./keyText\"\n\n/**\n * A link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport interface CustomTypeModelLinkField {\n\ttype: typeof CustomTypeModelFieldType.Link\n\tconfig?: {\n\t\tlabel?: string | null\n\t\tplaceholder?: string\n\t\tselect?:\n\t\t\t| null\n\t\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]\n\t\ttext?: CustomTypeModelKeyTextField\n\t\tallowTargetBlank?: boolean\n\t}\n}\n\n/**\n * Type of a link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport const CustomTypeModelLinkSelectType = {\n\tDocument: \"document\",\n\tMedia: \"media\",\n\tWeb: \"web\",\n} as const\n"],"names":[],"mappings":";;AA2BO,MAAM,gCAAgC;AAAA,EAC5C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;;"}
@@ -1,4 +1,5 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
+ import type { CustomTypeModelKeyTextField } from "./keyText";
2
3
  /**
3
4
  * A link custom type field.
4
5
  *
@@ -10,6 +11,7 @@ export interface CustomTypeModelLinkField {
10
11
  label?: string | null;
11
12
  placeholder?: string;
12
13
  select?: null | (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType];
14
+ text?: CustomTypeModelKeyTextField;
13
15
  allowTargetBlank?: boolean;
14
16
  };
15
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sources":["../../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\"\n\n/**\n * A link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport interface CustomTypeModelLinkField {\n\ttype: typeof CustomTypeModelFieldType.Link\n\tconfig?: {\n\t\tlabel?: string | null\n\t\tplaceholder?: string\n\t\tselect?:\n\t\t\t| null\n\t\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]\n\t\tallowTargetBlank?: boolean\n\t}\n}\n\n/**\n * Type of a link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport const CustomTypeModelLinkSelectType = {\n\tDocument: \"document\",\n\tMedia: \"media\",\n\tWeb: \"web\",\n} as const\n"],"names":[],"mappings":"AAwBO,MAAM,gCAAgC;AAAA,EAC5C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;"}
1
+ {"version":3,"file":"link.js","sources":["../../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\"\n\nimport type { CustomTypeModelKeyTextField } from \"./keyText\"\n\n/**\n * A link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport interface CustomTypeModelLinkField {\n\ttype: typeof CustomTypeModelFieldType.Link\n\tconfig?: {\n\t\tlabel?: string | null\n\t\tplaceholder?: string\n\t\tselect?:\n\t\t\t| null\n\t\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]\n\t\ttext?: CustomTypeModelKeyTextField\n\t\tallowTargetBlank?: boolean\n\t}\n}\n\n/**\n * Type of a link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport const CustomTypeModelLinkSelectType = {\n\tDocument: \"document\",\n\tMedia: \"media\",\n\tWeb: \"web\",\n} as const\n"],"names":[],"mappings":"AA2BO,MAAM,gCAAgC;AAAA,EAC5C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;"}
@@ -1,4 +1,5 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
+ import type { CustomTypeModelKeyTextField } from "./keyText";
2
3
  import type { CustomTypeModelLinkSelectType } from "./link";
3
4
  /**
4
5
  * A link to media custom type field.
@@ -11,5 +12,6 @@ export interface CustomTypeModelLinkToMediaField {
11
12
  label?: string | null;
12
13
  placeholder?: string;
13
14
  select: typeof CustomTypeModelLinkSelectType.Media;
15
+ text?: CustomTypeModelKeyTextField;
14
16
  };
15
17
  }
@@ -1,5 +1,6 @@
1
1
  import type { AnyRegularField, FieldState } from "./types";
2
2
  import type { GroupField } from "./group";
3
+ import type { KeyTextField } from "./keyText";
3
4
  import type { EmptyLinkField, LinkType } from "./link";
4
5
  import type { SliceZone } from "./sliceZone";
5
6
  /**
@@ -26,4 +27,5 @@ export interface FilledContentRelationshipField<TypeEnum = string, LangEnum = st
26
27
  slug?: string;
27
28
  isBroken?: boolean;
28
29
  data?: DataInterface;
30
+ text?: KeyTextField;
29
31
  }
@@ -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 { 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}\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
+ {"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 { KeyTextField } from \"./keyText\"\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?: KeyTextField\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":";;AAWO,MAAM,WAAW;AAAA,EACvB,KAAK;AAAA,EACL,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;;"}
@@ -1,6 +1,7 @@
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";
4
5
  import type { LinkToMediaField } from "./linkToMedia";
5
6
  import type { SliceZone } from "./sliceZone";
6
7
  /**
@@ -27,6 +28,7 @@ export interface FilledLinkToWebField {
27
28
  link_type: typeof LinkType.Web;
28
29
  url: string;
29
30
  target?: string;
31
+ text?: KeyTextField;
30
32
  }
31
33
  /**
32
34
  * 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 { 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}\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
+ {"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 { KeyTextField } from \"./keyText\"\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?: KeyTextField\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":"AAWO,MAAM,WAAW;AAAA,EACvB,KAAK;AAAA,EACL,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;"}
@@ -1,4 +1,5 @@
1
1
  import type { FieldState } from "./types";
2
+ import type { KeyTextField } from "./keyText";
2
3
  import type { EmptyLinkField, LinkType } from "./link";
3
4
  /**
4
5
  * A link field that points to media.
@@ -18,4 +19,5 @@ export interface FilledLinkToMediaField {
18
19
  size: string;
19
20
  height?: string | null;
20
21
  width?: string | null;
22
+ text?: KeyTextField;
21
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/client",
3
- "version": "7.8.1",
3
+ "version": "7.9.0-alpha.1",
4
4
  "description": "The official JavaScript + TypeScript client library for Prismic",
5
5
  "keywords": [
6
6
  "typescript",
@@ -91,11 +91,6 @@ export interface Language {
91
91
  * The name of the language.
92
92
  */
93
93
  name: string
94
-
95
- /**
96
- * Whether or not the language is the default language of the repository.
97
- */
98
- is_master: boolean
99
94
  }
100
95
 
101
96
  /**
@@ -1,5 +1,6 @@
1
1
  import type { CustomTypeModelFieldType } from "./types"
2
2
 
3
+ import type { CustomTypeModelKeyTextField } from "./keyText"
3
4
  import type { CustomTypeModelLinkSelectType } from "./link"
4
5
 
5
6
  /**
@@ -18,5 +19,6 @@ export interface CustomTypeModelContentRelationshipField<
18
19
  select: typeof CustomTypeModelLinkSelectType.Document
19
20
  customtypes?: readonly CustomTypeIDs[]
20
21
  tags?: readonly Tags[]
22
+ text?: CustomTypeModelKeyTextField
21
23
  }
22
24
  }
@@ -1,5 +1,7 @@
1
1
  import type { CustomTypeModelFieldType } from "./types"
2
2
 
3
+ import type { CustomTypeModelKeyTextField } from "./keyText"
4
+
3
5
  /**
4
6
  * A link custom type field.
5
7
  *
@@ -13,6 +15,7 @@ export interface CustomTypeModelLinkField {
13
15
  select?:
14
16
  | null
15
17
  | (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType]
18
+ text?: CustomTypeModelKeyTextField
16
19
  allowTargetBlank?: boolean
17
20
  }
18
21
  }
@@ -1,5 +1,6 @@
1
1
  import type { CustomTypeModelFieldType } from "./types"
2
2
 
3
+ import type { CustomTypeModelKeyTextField } from "./keyText"
3
4
  import type { CustomTypeModelLinkSelectType } from "./link"
4
5
 
5
6
  /**
@@ -13,5 +14,6 @@ export interface CustomTypeModelLinkToMediaField {
13
14
  label?: string | null
14
15
  placeholder?: string
15
16
  select: typeof CustomTypeModelLinkSelectType.Media
17
+ text?: CustomTypeModelKeyTextField
16
18
  }
17
19
  }
@@ -1,6 +1,7 @@
1
1
  import type { AnyRegularField, FieldState } from "./types"
2
2
 
3
3
  import type { GroupField } from "./group"
4
+ import type { KeyTextField } from "./keyText"
4
5
  import type { EmptyLinkField, LinkType } from "./link"
5
6
  import type { SliceZone } from "./sliceZone"
6
7
 
@@ -44,4 +45,5 @@ export interface FilledContentRelationshipField<
44
45
  slug?: string
45
46
  isBroken?: boolean
46
47
  data?: DataInterface
48
+ text?: KeyTextField
47
49
  }
@@ -2,6 +2,7 @@ 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"
5
6
  import type { LinkToMediaField } from "./linkToMedia"
6
7
  import type { SliceZone } from "./sliceZone"
7
8
 
@@ -33,6 +34,7 @@ export interface FilledLinkToWebField {
33
34
  link_type: typeof LinkType.Web
34
35
  url: string
35
36
  target?: string
37
+ text?: KeyTextField
36
38
  }
37
39
 
38
40
  /**
@@ -1,5 +1,6 @@
1
1
  import type { FieldState } from "./types"
2
2
 
3
+ import type { KeyTextField } from "./keyText"
3
4
  import type { EmptyLinkField, LinkType } from "./link"
4
5
 
5
6
  /**
@@ -24,4 +25,5 @@ export interface FilledLinkToMediaField {
24
25
  size: string
25
26
  height?: string | null
26
27
  width?: string | null
28
+ text?: KeyTextField
27
29
  }