@prismicio/editor-fields 0.4.2 → 0.4.5

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.
Files changed (40) hide show
  1. package/dist/EditorConfig.d.ts +6 -0
  2. package/dist/NestableWidgetSwitch.d.ts +3 -4
  3. package/dist/SectionEditor.d.ts +3 -4
  4. package/dist/fields/EmbedField/EmbedField.d.ts +7 -3
  5. package/dist/fields/GeoPointField.d.ts +11 -0
  6. package/dist/fields/ImageField/{CroppedDialog/index.d.ts → CropperDialog/CropperDialog.d.ts} +1 -1
  7. package/dist/fields/ImageField/{CroppedDialog → CropperDialog}/croppedImage.d.ts +1 -1
  8. package/dist/fields/ImageField/CropperDialog/index.d.ts +1 -0
  9. package/dist/fields/ImageField/ImageField.d.ts +12 -0
  10. package/dist/fields/ImageField/MediaPicker/MediaLibrary/MediaLibrary.d.ts +8 -2
  11. package/dist/fields/ImageField/MediaPicker/MediaLibrary/mediaLibraryData.d.ts +58 -40
  12. package/dist/fields/ImageField/MediaPicker/MediaPicker.d.ts +2 -2
  13. package/dist/fields/ImageField/MediaPicker/mediaPickerData.d.ts +22 -0
  14. package/dist/fields/ImageField/index.d.ts +1 -12
  15. package/dist/fields/KeyTextField.d.ts +3 -4
  16. package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +7 -0
  17. package/dist/fields/LinkField/Documents/documentsData.d.ts +291 -0
  18. package/dist/fields/LinkField/LinkField.d.ts +11 -0
  19. package/dist/fields/LinkField/LinkFieldActions.d.ts +5 -2
  20. package/dist/fields/LinkField/index.d.ts +2 -12
  21. package/dist/fields/LinkField/useLinkField.d.ts +37 -0
  22. package/dist/fields/RichTextField/RichTextField.d.ts +2 -2
  23. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
  24. package/dist/fields/RichTextField/coreExtensions/Placeholder.d.ts +7 -2
  25. package/dist/fields/RichTextField/extensions/Embed/EmbedExtension.d.ts +10 -0
  26. package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +13 -3
  27. package/dist/fields/RichTextField/extensions/Embed/useEmbedView.d.ts +12 -0
  28. package/dist/fields/RichTextField/extensions/index.d.ts +1 -1
  29. package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +3 -3
  30. package/dist/fields/externalLinks.d.ts +2 -0
  31. package/dist/index.es.js +21349 -19982
  32. package/dist/index.umd.js +40 -43
  33. package/dist/slices/SharedSliceEditor.d.ts +3 -4
  34. package/dist/zones/SliceZoneEditor.d.ts +3 -4
  35. package/dist/zones/StaticZoneEditor.d.ts +3 -4
  36. package/package.json +24 -21
  37. package/dist/fields/ImageField/MediaPicker/MediaLibrary.d.ts +0 -1
  38. package/dist/fields/ImageField/MediaPicker/UnsplashLibrary.d.ts +0 -6
  39. package/dist/fields/ImageField/MediaPicker/unsplashData.d.ts +0 -115
  40. /package/dist/fields/ImageField/{imageField.d.ts → imageFieldUtils.d.ts} +0 -0
@@ -9,6 +9,12 @@ export interface EditorConfig {
9
9
  url: string;
10
10
  repository: string;
11
11
  };
12
+ documents?: {
13
+ url: string;
14
+ };
15
+ env: Env;
16
+ status: "published" | "release" | "archived" | "unclassified";
12
17
  }
18
+ export declare type Env = "dev" | "stage" | "prod";
13
19
  export declare const EditorConfigContext: import("react").Context<EditorConfig | undefined>;
14
20
  export declare function useEditorConfig(): EditorConfig;
@@ -1,12 +1,11 @@
1
1
  import { NestableContent } from "@prismicio/types-internal/lib/content";
2
2
  import type { NestableWidget } from "@prismicio/types-internal/lib/customtypes";
3
- import type { FC } from "react";
4
- declare type NestableWidgetSwitchProps = Readonly<{
3
+ interface Props {
5
4
  content: NestableContent | undefined;
6
5
  id: string;
7
6
  nestableWidget: NestableWidget;
8
7
  onContentChange: (content: NestableContent | undefined) => void;
9
8
  readOnly: boolean;
10
- }>;
11
- export declare const NestableWidgetSwitch: FC<NestableWidgetSwitchProps>;
9
+ }
10
+ export declare function NestableWidgetSwitch(props: Props): JSX.Element | null;
12
11
  export {};
@@ -1,14 +1,13 @@
1
1
  import { type Document } from "@prismicio/types-internal/lib/content";
2
2
  import type { StaticSection } from "@prismicio/types-internal/lib/customtypes";
3
- import { type FC } from "react";
4
3
  import type { Selection } from "./Selection";
5
- declare type SectionEditorProps = Readonly<{
4
+ interface Props {
6
5
  id: string;
7
6
  readOnly: boolean;
8
7
  selection?: Selection;
9
8
  section: StaticSection;
10
9
  content: Document;
11
10
  onContentChange: (content: Document) => void;
12
- }>;
13
- export declare const SectionEditor: FC<SectionEditorProps>;
11
+ }
12
+ export declare function SectionEditor(props: Props): JSX.Element;
14
13
  export {};
@@ -1,11 +1,15 @@
1
1
  import type { EmbedContent } from "@prismicio/types-internal/lib/content";
2
2
  import type { Embed as EmbedT } from "@prismicio/types-internal/lib/customtypes";
3
- declare type Props = Readonly<{
3
+ interface Props {
4
4
  id: string;
5
5
  readOnly: boolean;
6
6
  field: EmbedT;
7
7
  content?: EmbedContent;
8
8
  onContentChange: (content?: EmbedContent) => void;
9
- }>;
10
- export declare const EmbedField: ({ id, readOnly, field, content, onContentChange }: Props) => JSX.Element;
9
+ }
10
+ export declare function EmbedField(props: Props): JSX.Element;
11
+ interface FooterProps extends Pick<Props, "content" | "onContentChange"> {
12
+ debouncedUrl: string;
13
+ }
14
+ export declare function Footer(props: FooterProps): JSX.Element;
11
15
  export {};
@@ -0,0 +1,11 @@
1
+ import type { GeoPointContent } from "@prismicio/types-internal/lib/content";
2
+ import type { GeoPoint } from "@prismicio/types-internal/lib/customtypes";
3
+ interface GeoPointFieldProps {
4
+ content: GeoPointContent | undefined;
5
+ field: GeoPoint;
6
+ id: string;
7
+ onContentChange: (content?: GeoPointContent) => void;
8
+ readOnly: boolean;
9
+ }
10
+ export declare function GeoPointField(props: GeoPointFieldProps): JSX.Element;
11
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type { ImageContentView } from "@prismicio/types-internal/lib/content";
2
2
  import * as React from "react";
3
- import type { getImageLabel, Thumbnail } from "../imageField";
3
+ import type { getImageLabel, Thumbnail } from "../imageFieldUtils";
4
4
  import { type CroppedImage } from "./croppedImage";
5
5
  export declare type CroppedImages = Record<string, CroppedImage>;
6
6
  interface Image {
@@ -1,6 +1,6 @@
1
1
  import type { ImageContent, ImageContentView } from "@prismicio/types-internal/lib/content";
2
2
  import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
- import { type Thumbnail } from "../imageField";
3
+ import { type Thumbnail } from "../imageFieldUtils";
4
4
  export interface Point {
5
5
  x: number;
6
6
  y: number;
@@ -0,0 +1 @@
1
+ export { type CroppedImages, CropperDialog } from "./CropperDialog";
@@ -0,0 +1,12 @@
1
+ import type { ImageContent } from "@prismicio/types-internal/lib/content";
2
+ import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
+ import { type FC } from "react";
4
+ interface ImageFieldProps {
5
+ content: ImageContent | undefined;
6
+ field: Image;
7
+ id: string;
8
+ onContentChange: (content: ImageContent | undefined) => void;
9
+ readOnly: boolean;
10
+ }
11
+ export declare const ImageField: FC<ImageFieldProps>;
12
+ export {};
@@ -1,6 +1,12 @@
1
1
  import type { ExternalImage } from "../externalImage";
2
- interface Props {
2
+ import type { UploadFile } from "../mediaPickerData";
3
+ interface MediaLibraryProps {
4
+ uploadingFiles: UploadFile[];
5
+ onFilesSelected: (uploadingFiles: File[]) => void;
6
+ onSuccessFiles: () => void;
7
+ onFailedFiles: (failedFiles: UploadFile[]) => void;
8
+ onTryAgain: (failedFile: UploadFile) => void;
3
9
  onMediaSelected: (media: ExternalImage) => void;
4
10
  }
5
- export declare const MediaLibrary: (props: Props) => JSX.Element | null;
11
+ export declare function MediaLibrary(props: MediaLibraryProps): JSX.Element;
6
12
  export {};
@@ -1,100 +1,118 @@
1
1
  import { TypeOf } from "zod";
2
- declare const mediaLibraryImage: import("zod").ZodObject<{
2
+ export declare const mediaLibraryImageOkType: import("zod").ZodObject<{
3
3
  id: import("zod").ZodString;
4
4
  kind: import("zod").ZodString;
5
5
  extension: import("zod").ZodString;
6
6
  filename: import("zod").ZodString;
7
- width: import("zod").ZodNumber;
8
- height: import("zod").ZodNumber;
7
+ width: import("zod").ZodOptional<import("zod").ZodNumber>;
8
+ height: import("zod").ZodOptional<import("zod").ZodNumber>;
9
9
  last_modified: import("zod").ZodNumber;
10
10
  url: import("zod").ZodString;
11
11
  }, "strip", import("zod").ZodTypeAny, {
12
12
  id: string;
13
+ url: string;
13
14
  kind: string;
14
15
  extension: string;
15
16
  filename: string;
16
- width: number;
17
- height: number;
18
17
  last_modified: number;
19
- url: string;
18
+ width?: number | undefined;
19
+ height?: number | undefined;
20
20
  }, {
21
21
  id: string;
22
+ url: string;
22
23
  kind: string;
23
24
  extension: string;
24
25
  filename: string;
25
- width: number;
26
- height: number;
27
26
  last_modified: number;
28
- url: string;
27
+ width?: number | undefined;
28
+ height?: number | undefined;
29
29
  }>;
30
- export declare const mediaLibrarySearchAPISchema: import("zod").ZodObject<{
30
+ export declare const mediaLibrarySearchAPISchemaOkType: import("zod").ZodObject<{
31
31
  total: import("zod").ZodNumber;
32
- cursor: import("zod").ZodString;
32
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
33
33
  items: import("zod").ZodArray<import("zod").ZodObject<{
34
34
  id: import("zod").ZodString;
35
35
  kind: import("zod").ZodString;
36
36
  extension: import("zod").ZodString;
37
37
  filename: import("zod").ZodString;
38
- width: import("zod").ZodNumber;
39
- height: import("zod").ZodNumber;
38
+ width: import("zod").ZodOptional<import("zod").ZodNumber>;
39
+ height: import("zod").ZodOptional<import("zod").ZodNumber>;
40
40
  last_modified: import("zod").ZodNumber;
41
41
  url: import("zod").ZodString;
42
42
  }, "strip", import("zod").ZodTypeAny, {
43
43
  id: string;
44
+ url: string;
44
45
  kind: string;
45
46
  extension: string;
46
47
  filename: string;
47
- width: number;
48
- height: number;
49
48
  last_modified: number;
50
- url: string;
49
+ width?: number | undefined;
50
+ height?: number | undefined;
51
51
  }, {
52
52
  id: string;
53
+ url: string;
53
54
  kind: string;
54
55
  extension: string;
55
56
  filename: string;
56
- width: number;
57
- height: number;
58
57
  last_modified: number;
59
- url: string;
58
+ width?: number | undefined;
59
+ height?: number | undefined;
60
60
  }>, "many">;
61
61
  }, "strip", import("zod").ZodTypeAny, {
62
62
  total: number;
63
- cursor: string;
64
63
  items: {
65
64
  id: string;
65
+ url: string;
66
66
  kind: string;
67
67
  extension: string;
68
68
  filename: string;
69
- width: number;
70
- height: number;
71
69
  last_modified: number;
72
- url: string;
70
+ width?: number | undefined;
71
+ height?: number | undefined;
73
72
  }[];
73
+ cursor?: string | undefined;
74
74
  }, {
75
75
  total: number;
76
- cursor: string;
77
76
  items: {
78
77
  id: string;
78
+ url: string;
79
79
  kind: string;
80
80
  extension: string;
81
81
  filename: string;
82
- width: number;
83
- height: number;
84
82
  last_modified: number;
85
- url: string;
83
+ width?: number | undefined;
84
+ height?: number | undefined;
86
85
  }[];
86
+ cursor?: string | undefined;
87
87
  }>;
88
- export declare type MediaLibrarySearchApi = TypeOf<typeof mediaLibrarySearchAPISchema>;
89
- export declare type MediaLibraryImage = TypeOf<typeof mediaLibraryImage>;
90
- export declare function useMediaLibrarySearch(url: string, repository: string): {
91
- id: string;
92
- kind: string;
93
- extension: string;
94
- filename: string;
95
- width: number;
96
- height: number;
97
- last_modified: number;
98
- url: string;
99
- }[];
100
- export {};
88
+ export declare type MediaLibrarySearchApi = TypeOf<typeof mediaLibrarySearchAPISchemaOkType>;
89
+ export declare type MediaLibraryImage = TypeOf<typeof mediaLibraryImageOkType>;
90
+ export declare function useMediaLibrarySearch(): {
91
+ media: {
92
+ id: string;
93
+ url: string;
94
+ kind: string;
95
+ extension: string;
96
+ filename: string;
97
+ last_modified: number;
98
+ width?: number | undefined;
99
+ height?: number | undefined;
100
+ }[];
101
+ limit: number;
102
+ onHasReachedBottom: () => void;
103
+ response: {
104
+ total: number;
105
+ items: {
106
+ id: string;
107
+ url: string;
108
+ kind: string;
109
+ extension: string;
110
+ filename: string;
111
+ last_modified: number;
112
+ width?: number | undefined;
113
+ height?: number | undefined;
114
+ }[];
115
+ cursor?: string | undefined;
116
+ };
117
+ updateMedia: (newFiles: MediaLibraryImage[]) => void;
118
+ };
@@ -1,8 +1,8 @@
1
- import { FC, ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import type { ExternalImage } from "./externalImage";
3
3
  interface MediaPickerProps {
4
4
  trigger: ReactNode;
5
5
  onMediaSelected: (media: ExternalImage) => void;
6
6
  }
7
- export declare const MediaPicker: FC<MediaPickerProps>;
7
+ export declare function MediaPicker(props: MediaPickerProps): JSX.Element;
8
8
  export {};
@@ -0,0 +1,22 @@
1
+ import { MediaLibraryImage } from "./MediaLibrary/mediaLibraryData";
2
+ export declare type UploadFile = UploadFileLoading | UploadFileSuccess;
3
+ interface UploadFileLoading {
4
+ id: string;
5
+ file: File;
6
+ status: "failed" | "loading";
7
+ response?: MediaLibraryImage;
8
+ }
9
+ export interface UploadFileSuccess {
10
+ id: string;
11
+ file: File;
12
+ status: "success";
13
+ response: MediaLibraryImage;
14
+ }
15
+ export declare function useMediaLibraryUpload(): {
16
+ onFilesSelected: (selectedFiles: File[]) => void;
17
+ uploadingFiles: UploadFile[];
18
+ onSuccessFiles: () => void;
19
+ onFailedFiles: (failedFiles: UploadFile[]) => void;
20
+ onTryAgain: (failedFile: UploadFile) => void;
21
+ };
22
+ export {};
@@ -1,12 +1 @@
1
- import type { ImageContent } from "@prismicio/types-internal/lib/content";
2
- import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
- import { type FC } from "react";
4
- interface ImageFieldProps {
5
- content: ImageContent | undefined;
6
- field: Image;
7
- id: string;
8
- onContentChange: (content: ImageContent | undefined) => void;
9
- readOnly: boolean;
10
- }
11
- export declare const ImageField: FC<ImageFieldProps>;
12
- export {};
1
+ export { ImageField } from "./ImageField";
@@ -1,12 +1,11 @@
1
1
  import type { TextContent } from "@prismicio/types-internal/lib/content";
2
2
  import type { Text } from "@prismicio/types-internal/lib/customtypes";
3
- import type { FC } from "react";
4
- declare type KeyTextFieldProps = Readonly<{
3
+ interface Props {
5
4
  content: TextContent | undefined;
6
5
  field: Text;
7
6
  id: string;
8
7
  onContentChange: (content: TextContent | undefined) => void;
9
8
  readOnly: boolean;
10
- }>;
11
- export declare const KeyTextField: FC<KeyTextFieldProps>;
9
+ }
10
+ export declare function KeyTextField(props: Props): JSX.Element;
12
11
  export {};
@@ -0,0 +1,7 @@
1
+ interface DocumentsModalProps {
2
+ open: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ onSelectDocument: (documentID: string) => void;
5
+ }
6
+ export declare function DocumentsModal(props: DocumentsModalProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,291 @@
1
+ import { TypeOf } from "zod";
2
+ export declare function useDocuments(params: {
3
+ searchTerm: string;
4
+ tagsFilter: string[];
5
+ typesFilter: string[];
6
+ }): {
7
+ documents: {
8
+ id: string;
9
+ title: string;
10
+ custom_type_id: string;
11
+ versions: (({
12
+ status: "unclassified";
13
+ } | {
14
+ status: "published";
15
+ } | {
16
+ status: "release";
17
+ release_id: string;
18
+ } | {
19
+ status: "archived";
20
+ }) & {
21
+ tags: string[];
22
+ version_id: string;
23
+ custom_type_label: string;
24
+ preview_summary?: string | undefined;
25
+ preview_image?: string | undefined;
26
+ })[];
27
+ }[];
28
+ onHasReachedBottom: () => void;
29
+ response: {
30
+ results: {
31
+ id: string;
32
+ title: string;
33
+ custom_type_id: string;
34
+ versions: (({
35
+ status: "unclassified";
36
+ } | {
37
+ status: "published";
38
+ } | {
39
+ status: "release";
40
+ release_id: string;
41
+ } | {
42
+ status: "archived";
43
+ }) & {
44
+ tags: string[];
45
+ version_id: string;
46
+ custom_type_label: string;
47
+ preview_summary?: string | undefined;
48
+ preview_image?: string | undefined;
49
+ })[];
50
+ }[];
51
+ total: number;
52
+ cursor?: string | undefined;
53
+ };
54
+ };
55
+ declare const documentsSearchOkType: import("zod").ZodObject<{
56
+ id: import("zod").ZodString;
57
+ custom_type_id: import("zod").ZodString;
58
+ title: import("zod").ZodString;
59
+ versions: import("zod").ZodArray<import("zod").ZodIntersection<import("zod").ZodDiscriminatedUnion<"status", [import("zod").ZodObject<{
60
+ status: import("zod").ZodLiteral<"unclassified">;
61
+ }, "strip", import("zod").ZodTypeAny, {
62
+ status: "unclassified";
63
+ }, {
64
+ status: "unclassified";
65
+ }>, import("zod").ZodObject<{
66
+ status: import("zod").ZodLiteral<"published">;
67
+ }, "strip", import("zod").ZodTypeAny, {
68
+ status: "published";
69
+ }, {
70
+ status: "published";
71
+ }>, import("zod").ZodObject<{
72
+ status: import("zod").ZodLiteral<"release">;
73
+ release_id: import("zod").ZodString;
74
+ }, "strip", import("zod").ZodTypeAny, {
75
+ status: "release";
76
+ release_id: string;
77
+ }, {
78
+ status: "release";
79
+ release_id: string;
80
+ }>, import("zod").ZodObject<{
81
+ status: import("zod").ZodLiteral<"archived">;
82
+ }, "strip", import("zod").ZodTypeAny, {
83
+ status: "archived";
84
+ }, {
85
+ status: "archived";
86
+ }>]>, import("zod").ZodObject<{
87
+ version_id: import("zod").ZodString;
88
+ tags: import("zod").ZodArray<import("zod").ZodString, "many">;
89
+ custom_type_label: import("zod").ZodString;
90
+ preview_summary: import("zod").ZodOptional<import("zod").ZodString>;
91
+ preview_image: import("zod").ZodOptional<import("zod").ZodString>;
92
+ }, "strip", import("zod").ZodTypeAny, {
93
+ tags: string[];
94
+ version_id: string;
95
+ custom_type_label: string;
96
+ preview_summary?: string | undefined;
97
+ preview_image?: string | undefined;
98
+ }, {
99
+ tags: string[];
100
+ version_id: string;
101
+ custom_type_label: string;
102
+ preview_summary?: string | undefined;
103
+ preview_image?: string | undefined;
104
+ }>>, "many">;
105
+ }, "strip", import("zod").ZodTypeAny, {
106
+ id: string;
107
+ title: string;
108
+ custom_type_id: string;
109
+ versions: (({
110
+ status: "unclassified";
111
+ } | {
112
+ status: "published";
113
+ } | {
114
+ status: "release";
115
+ release_id: string;
116
+ } | {
117
+ status: "archived";
118
+ }) & {
119
+ tags: string[];
120
+ version_id: string;
121
+ custom_type_label: string;
122
+ preview_summary?: string | undefined;
123
+ preview_image?: string | undefined;
124
+ })[];
125
+ }, {
126
+ id: string;
127
+ title: string;
128
+ custom_type_id: string;
129
+ versions: (({
130
+ status: "unclassified";
131
+ } | {
132
+ status: "published";
133
+ } | {
134
+ status: "release";
135
+ release_id: string;
136
+ } | {
137
+ status: "archived";
138
+ }) & {
139
+ tags: string[];
140
+ version_id: string;
141
+ custom_type_label: string;
142
+ preview_summary?: string | undefined;
143
+ preview_image?: string | undefined;
144
+ })[];
145
+ }>;
146
+ declare const documentsSearchAPISchemaOkType: import("zod").ZodObject<{
147
+ total: import("zod").ZodNumber;
148
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
149
+ results: import("zod").ZodArray<import("zod").ZodObject<{
150
+ id: import("zod").ZodString;
151
+ custom_type_id: import("zod").ZodString;
152
+ title: import("zod").ZodString;
153
+ versions: import("zod").ZodArray<import("zod").ZodIntersection<import("zod").ZodDiscriminatedUnion<"status", [import("zod").ZodObject<{
154
+ status: import("zod").ZodLiteral<"unclassified">;
155
+ }, "strip", import("zod").ZodTypeAny, {
156
+ status: "unclassified";
157
+ }, {
158
+ status: "unclassified";
159
+ }>, import("zod").ZodObject<{
160
+ status: import("zod").ZodLiteral<"published">;
161
+ }, "strip", import("zod").ZodTypeAny, {
162
+ status: "published";
163
+ }, {
164
+ status: "published";
165
+ }>, import("zod").ZodObject<{
166
+ status: import("zod").ZodLiteral<"release">;
167
+ release_id: import("zod").ZodString;
168
+ }, "strip", import("zod").ZodTypeAny, {
169
+ status: "release";
170
+ release_id: string;
171
+ }, {
172
+ status: "release";
173
+ release_id: string;
174
+ }>, import("zod").ZodObject<{
175
+ status: import("zod").ZodLiteral<"archived">;
176
+ }, "strip", import("zod").ZodTypeAny, {
177
+ status: "archived";
178
+ }, {
179
+ status: "archived";
180
+ }>]>, import("zod").ZodObject<{
181
+ version_id: import("zod").ZodString;
182
+ tags: import("zod").ZodArray<import("zod").ZodString, "many">;
183
+ custom_type_label: import("zod").ZodString;
184
+ preview_summary: import("zod").ZodOptional<import("zod").ZodString>;
185
+ preview_image: import("zod").ZodOptional<import("zod").ZodString>;
186
+ }, "strip", import("zod").ZodTypeAny, {
187
+ tags: string[];
188
+ version_id: string;
189
+ custom_type_label: string;
190
+ preview_summary?: string | undefined;
191
+ preview_image?: string | undefined;
192
+ }, {
193
+ tags: string[];
194
+ version_id: string;
195
+ custom_type_label: string;
196
+ preview_summary?: string | undefined;
197
+ preview_image?: string | undefined;
198
+ }>>, "many">;
199
+ }, "strip", import("zod").ZodTypeAny, {
200
+ id: string;
201
+ title: string;
202
+ custom_type_id: string;
203
+ versions: (({
204
+ status: "unclassified";
205
+ } | {
206
+ status: "published";
207
+ } | {
208
+ status: "release";
209
+ release_id: string;
210
+ } | {
211
+ status: "archived";
212
+ }) & {
213
+ tags: string[];
214
+ version_id: string;
215
+ custom_type_label: string;
216
+ preview_summary?: string | undefined;
217
+ preview_image?: string | undefined;
218
+ })[];
219
+ }, {
220
+ id: string;
221
+ title: string;
222
+ custom_type_id: string;
223
+ versions: (({
224
+ status: "unclassified";
225
+ } | {
226
+ status: "published";
227
+ } | {
228
+ status: "release";
229
+ release_id: string;
230
+ } | {
231
+ status: "archived";
232
+ }) & {
233
+ tags: string[];
234
+ version_id: string;
235
+ custom_type_label: string;
236
+ preview_summary?: string | undefined;
237
+ preview_image?: string | undefined;
238
+ })[];
239
+ }>, "many">;
240
+ }, "strip", import("zod").ZodTypeAny, {
241
+ results: {
242
+ id: string;
243
+ title: string;
244
+ custom_type_id: string;
245
+ versions: (({
246
+ status: "unclassified";
247
+ } | {
248
+ status: "published";
249
+ } | {
250
+ status: "release";
251
+ release_id: string;
252
+ } | {
253
+ status: "archived";
254
+ }) & {
255
+ tags: string[];
256
+ version_id: string;
257
+ custom_type_label: string;
258
+ preview_summary?: string | undefined;
259
+ preview_image?: string | undefined;
260
+ })[];
261
+ }[];
262
+ total: number;
263
+ cursor?: string | undefined;
264
+ }, {
265
+ results: {
266
+ id: string;
267
+ title: string;
268
+ custom_type_id: string;
269
+ versions: (({
270
+ status: "unclassified";
271
+ } | {
272
+ status: "published";
273
+ } | {
274
+ status: "release";
275
+ release_id: string;
276
+ } | {
277
+ status: "archived";
278
+ }) & {
279
+ tags: string[];
280
+ version_id: string;
281
+ custom_type_label: string;
282
+ preview_summary?: string | undefined;
283
+ preview_image?: string | undefined;
284
+ })[];
285
+ }[];
286
+ total: number;
287
+ cursor?: string | undefined;
288
+ }>;
289
+ export declare type DocumentSearchApi = TypeOf<typeof documentsSearchAPISchemaOkType>;
290
+ export declare type Document = TypeOf<typeof documentsSearchOkType>;
291
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { LinkContent } from "@prismicio/types-internal/lib/content";
2
+ import type { Link } from "@prismicio/types-internal/lib/customtypes";
3
+ interface LinkFieldProps {
4
+ id: string;
5
+ field: Link;
6
+ readOnly: boolean;
7
+ content: LinkContent | undefined;
8
+ onContentChange: (content: LinkContent | undefined) => void;
9
+ }
10
+ export declare function LinkField(props: LinkFieldProps): JSX.Element;
11
+ export {};