@prismicio/editor-fields 0.4.71 → 0.4.73

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 (43) hide show
  1. package/dist/EditorConfig.d.ts +2 -10
  2. package/dist/core/APIExplorer/APIExplorer.d.ts +4 -1
  3. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +34 -2
  4. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +5 -0
  5. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +12 -3
  6. package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
  7. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +1 -0
  8. package/dist/core/APIExplorer/components/Request/index.d.ts +1 -0
  9. package/dist/core/APIExplorer/hooks/useCopy.d.ts +4 -0
  10. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +6 -0
  11. package/dist/core/APIExplorer/hooks/useRequestRepository.d.ts +1 -0
  12. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +31 -31
  13. package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
  14. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +3 -3
  15. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +3 -3
  16. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  17. package/dist/core/service/customType.d.ts +1 -1
  18. package/dist/core/service/document.d.ts +35 -35
  19. package/dist/core/service/documentSearch.d.ts +5 -5
  20. package/dist/core/service/repository.d.ts +18 -18
  21. package/dist/core/service/role.d.ts +10 -10
  22. package/dist/fields/ImageField/useImageField.d.ts +3 -3
  23. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +3 -3
  24. package/dist/fields/LinkField/Documents/documentsData.d.ts +2 -2
  25. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  26. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +3 -3
  27. package/dist/index.cjs.js +47 -47
  28. package/dist/index.es.js +29520 -29372
  29. package/dist/slices/utils.d.ts +5 -5
  30. package/package.json +4 -4
  31. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +0 -8
  32. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +0 -19
  33. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +0 -1
  34. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +0 -23
  35. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +0 -1
  36. package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +0 -3
  37. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginDef.d.ts +0 -8
  38. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginView.d.ts +0 -34
  39. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginViewClass.d.ts +0 -34
  40. /package/dist/fields/RichTextField/extensions/Table/plugins/{TableHandles → tableHandles}/index.d.ts +0 -0
  41. /package/dist/fields/RichTextField/extensions/Table/plugins/{TableHandles/TableHandlesPlugin.d.ts → tableHandles/tableHandlesPlugin.d.ts} +0 -0
  42. /package/dist/fields/RichTextField/extensions/Table/{TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts → plugins/tableHandles/tableHandlesPluginView.d.ts} +0 -0
  43. /package/dist/fields/RichTextField/extensions/Table/plugins/{TableHandles → tableHandles}/utils.d.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { type MediaAssetType } from "@prismicio/editor-ui";
3
+ import type { APIExplorerEvents } from "./core/APIExplorer/components/APIExplorerContext";
3
4
  import type { MetadataType } from "./core/service";
4
5
  export type EditorConfig = {
5
6
  baseUrl: URL;
@@ -95,19 +96,10 @@ interface OnAnalyticsEvent {
95
96
  customTypeFormat: "page" | "custom";
96
97
  }): void;
97
98
  (event: "Unsplash Image Searched" | "Unsplash Image Added"): void;
98
- (event: "API Explorer Request", args: {
99
- type: string;
100
- repositoryID: string;
101
- }): void;
102
- (event: "API Explorer Request Error", args: {
103
- type: string;
104
- repositoryID: string;
105
- error?: string;
106
- url?: string;
107
- }): void;
108
99
  (event: "Table Limit Reached", args: {
109
100
  type: "row" | "column";
110
101
  }): void;
102
+ (...params: APIExplorerEvents): void;
111
103
  }
112
104
  interface Analytics {
113
105
  onAnalyticsEvent?: OnAnalyticsEvent;
@@ -1,2 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare function APIExplorer(): JSX.Element;
2
+ import { type APIExplorerProviderProps } from "./components/APIExplorerContext";
3
+ type APIExplorerProps = Pick<APIExplorerProviderProps, "repository" | "track">;
4
+ export declare function APIExplorer(props: APIExplorerProps): JSX.Element;
5
+ export {};
@@ -25,6 +25,7 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
25
25
  page?: number | undefined;
26
26
  }>;
27
27
  lang: z.ZodOptional<z.ZodString>;
28
+ ref: z.ZodOptional<z.ZodString>;
28
29
  }, "strip", z.ZodTypeAny, {
29
30
  type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
30
31
  repository: {
@@ -36,6 +37,7 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
36
37
  pageSize?: number | undefined;
37
38
  page?: number | undefined;
38
39
  };
40
+ ref?: string | undefined;
39
41
  lang?: string | undefined;
40
42
  }, {
41
43
  type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
@@ -48,6 +50,7 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
48
50
  pageSize?: number | undefined;
49
51
  page?: number | undefined;
50
52
  };
53
+ ref?: string | undefined;
51
54
  lang?: string | undefined;
52
55
  }>;
53
56
  export type APIExplorerRequestProperties = z.infer<typeof APIExplorerRequestProperties>;
@@ -61,6 +64,7 @@ type APIExplorerRequestMethods = {
61
64
  pageSize?: number;
62
65
  }) => void;
63
66
  setLang: (lang?: string) => void;
67
+ setRef: (ref?: string) => void;
64
68
  run: () => Promise<void>;
65
69
  };
66
70
  type ResponseBase = {
@@ -84,12 +88,40 @@ export type ResponseError = ResponseBase & {
84
88
  error: Error;
85
89
  };
86
90
  type APIExplorerResponse = ResponseIdle | ResponsePending | ResponseSuccess | ResponseError;
87
- export declare const apiExplorerShareableUrlSearchParam = "request";
91
+ type APIExplorerConfig = {
92
+ /**
93
+ * Repository information to use the API Explorer with.
94
+ * When not provided, the API Explorer will allow entering a repository ID.
95
+ */
96
+ repository?: {
97
+ id: string;
98
+ documentAPIEndpoint: string;
99
+ };
100
+ };
88
101
  type APIExplorerContextType = {
89
102
  request: APIExplorerRequestProperties & APIExplorerRequestMethods;
90
103
  response: APIExplorerResponse;
104
+ config: APIExplorerConfig;
91
105
  };
92
- type APIExplorerProviderProps = PropsWithChildren;
106
+ export type APIExplorerEvents = [
107
+ event: "API Explorer Request",
108
+ args: {
109
+ type: RequestTypes;
110
+ repositoryID: string;
111
+ }
112
+ ] | [
113
+ event: "API Explorer Request Error",
114
+ args: {
115
+ type: RequestTypes;
116
+ repositoryID: string;
117
+ error?: string;
118
+ url?: string;
119
+ }
120
+ ];
121
+ export type APIExplorerProviderProps = {
122
+ track?: (...params: APIExplorerEvents) => void;
123
+ } & APIExplorerConfig & PropsWithChildren;
93
124
  export declare const APIExplorerProvider: (props: APIExplorerProviderProps) => JSX.Element;
94
125
  export declare function useAPIExplorer(): APIExplorerContextType;
126
+ export declare const apiExplorerShareableUrlSearchParam = "request";
95
127
  export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Display a fieldset managing a request ref setting.
4
+ */
5
+ export declare function RequestRefFieldset(): JSX.Element;
@@ -1,7 +1,16 @@
1
1
  /// <reference types="react" />
2
+ type RequestTypeFieldsetProps = {
3
+ nonRepeatableOnly?: boolean;
4
+ };
2
5
  /**
3
6
  * Display a fieldset managing a request document type setting.
4
7
  */
5
- export declare function RequestTypeFieldset(props: {
6
- nonRepeatableOnly?: boolean;
7
- }): JSX.Element;
8
+ export declare function RequestTypeFieldset(props: RequestTypeFieldsetProps): JSX.Element;
9
+ type RequestTypeFieldsetContentProps = {
10
+ customTypes?: {
11
+ id: string;
12
+ label: string;
13
+ }[];
14
+ };
15
+ export declare function RequestTypeFieldsetContent(props: RequestTypeFieldsetContentProps): JSX.Element;
16
+ export {};
@@ -1,4 +1,5 @@
1
1
  export { RequestFormInput } from "./RequestFormInput";
2
2
  export { RequestLangFieldset } from "./RequestLangFieldset";
3
3
  export { RequestPaginationFieldset } from "./RequestPaginationFieldset";
4
+ export { RequestRefFieldset } from "./RequestRefFieldset";
4
5
  export { RequestTypeFieldset } from "./RequestTypeFieldset";
@@ -5,6 +5,7 @@ type RequestOptions = Record<string, string | number | undefined> & {
5
5
  page?: number;
6
6
  pageSize?: number;
7
7
  lang?: string;
8
+ ref?: string;
8
9
  };
9
10
  export type RequestConfig<TType extends string> = {
10
11
  type: TType;
@@ -1 +1,2 @@
1
+ export { RequestFormInput } from "./components";
1
2
  export { type RequestRunReturnType, Requests, RequestTypes } from "./types";
@@ -0,0 +1,4 @@
1
+ export declare function useCopy(): {
2
+ isCopied: boolean;
3
+ copy: (text: string) => Promise<void>;
4
+ };
@@ -0,0 +1,6 @@
1
+ export declare function useRepositoryCustomTypes(nonRepeatableOnly?: boolean): {
2
+ label: string;
3
+ status: boolean;
4
+ id: string;
5
+ repeatable: boolean;
6
+ }[];
@@ -0,0 +1 @@
1
+ export declare function useRequestRepository(): import("@prismicio/client").Repository | undefined;
@@ -39,28 +39,28 @@ export declare const mediaAssetType: z.ZodObject<{
39
39
  last_modified: z.ZodNumber;
40
40
  count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
- name: string;
43
42
  id: string;
43
+ name: string;
44
44
  created_at: number;
45
45
  last_modified: number;
46
46
  count: number;
47
47
  uploader_id?: string | undefined;
48
48
  }, {
49
- name: string;
50
49
  id: string;
50
+ name: string;
51
51
  created_at: number;
52
52
  last_modified: number;
53
53
  uploader_id?: string | undefined;
54
54
  count?: number | undefined;
55
55
  }>, "many">;
56
56
  }, "strip", z.ZodTypeAny, {
57
- id: string;
58
57
  size: number;
58
+ id: string;
59
59
  url: string;
60
60
  kind: string;
61
61
  tags: {
62
- name: string;
63
62
  id: string;
63
+ name: string;
64
64
  created_at: number;
65
65
  last_modified: number;
66
66
  count: number;
@@ -68,9 +68,9 @@ export declare const mediaAssetType: z.ZodObject<{
68
68
  }[];
69
69
  last_modified: number;
70
70
  filename: string;
71
+ notes?: string | undefined;
71
72
  width?: number | undefined;
72
73
  height?: number | undefined;
73
- notes?: string | undefined;
74
74
  credits?: string | undefined;
75
75
  alt?: string | undefined;
76
76
  uploader_id?: string | undefined;
@@ -82,13 +82,13 @@ export declare const mediaAssetType: z.ZodObject<{
82
82
  filename?: string | undefined;
83
83
  } | undefined;
84
84
  }, {
85
- id: string;
86
85
  size: number;
86
+ id: string;
87
87
  url: string;
88
88
  kind: string;
89
89
  tags: {
90
- name: string;
91
90
  id: string;
91
+ name: string;
92
92
  created_at: number;
93
93
  last_modified: number;
94
94
  uploader_id?: string | undefined;
@@ -96,9 +96,9 @@ export declare const mediaAssetType: z.ZodObject<{
96
96
  }[];
97
97
  last_modified: number;
98
98
  filename: string;
99
+ notes?: string | undefined;
99
100
  width?: number | undefined;
100
101
  height?: number | undefined;
101
- notes?: string | undefined;
102
102
  credits?: string | undefined;
103
103
  alt?: string | undefined;
104
104
  uploader_id?: string | undefined;
@@ -154,28 +154,28 @@ export declare const mediaSearchResponse: z.ZodObject<{
154
154
  last_modified: z.ZodNumber;
155
155
  count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
156
156
  }, "strip", z.ZodTypeAny, {
157
- name: string;
158
157
  id: string;
158
+ name: string;
159
159
  created_at: number;
160
160
  last_modified: number;
161
161
  count: number;
162
162
  uploader_id?: string | undefined;
163
163
  }, {
164
- name: string;
165
164
  id: string;
165
+ name: string;
166
166
  created_at: number;
167
167
  last_modified: number;
168
168
  uploader_id?: string | undefined;
169
169
  count?: number | undefined;
170
170
  }>, "many">;
171
171
  }, "strip", z.ZodTypeAny, {
172
- id: string;
173
172
  size: number;
173
+ id: string;
174
174
  url: string;
175
175
  kind: string;
176
176
  tags: {
177
- name: string;
178
177
  id: string;
178
+ name: string;
179
179
  created_at: number;
180
180
  last_modified: number;
181
181
  count: number;
@@ -183,9 +183,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
183
183
  }[];
184
184
  last_modified: number;
185
185
  filename: string;
186
+ notes?: string | undefined;
186
187
  width?: number | undefined;
187
188
  height?: number | undefined;
188
- notes?: string | undefined;
189
189
  credits?: string | undefined;
190
190
  alt?: string | undefined;
191
191
  uploader_id?: string | undefined;
@@ -197,13 +197,13 @@ export declare const mediaSearchResponse: z.ZodObject<{
197
197
  filename?: string | undefined;
198
198
  } | undefined;
199
199
  }, {
200
- id: string;
201
200
  size: number;
201
+ id: string;
202
202
  url: string;
203
203
  kind: string;
204
204
  tags: {
205
- name: string;
206
205
  id: string;
206
+ name: string;
207
207
  created_at: number;
208
208
  last_modified: number;
209
209
  uploader_id?: string | undefined;
@@ -211,9 +211,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
211
211
  }[];
212
212
  last_modified: number;
213
213
  filename: string;
214
+ notes?: string | undefined;
214
215
  width?: number | undefined;
215
216
  height?: number | undefined;
216
- notes?: string | undefined;
217
217
  credits?: string | undefined;
218
218
  alt?: string | undefined;
219
219
  uploader_id?: string | undefined;
@@ -228,13 +228,13 @@ export declare const mediaSearchResponse: z.ZodObject<{
228
228
  }, "strip", z.ZodTypeAny, {
229
229
  total: number;
230
230
  items: {
231
- id: string;
232
231
  size: number;
232
+ id: string;
233
233
  url: string;
234
234
  kind: string;
235
235
  tags: {
236
- name: string;
237
236
  id: string;
237
+ name: string;
238
238
  created_at: number;
239
239
  last_modified: number;
240
240
  count: number;
@@ -242,9 +242,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
242
242
  }[];
243
243
  last_modified: number;
244
244
  filename: string;
245
+ notes?: string | undefined;
245
246
  width?: number | undefined;
246
247
  height?: number | undefined;
247
- notes?: string | undefined;
248
248
  credits?: string | undefined;
249
249
  alt?: string | undefined;
250
250
  uploader_id?: string | undefined;
@@ -260,13 +260,13 @@ export declare const mediaSearchResponse: z.ZodObject<{
260
260
  }, {
261
261
  total: number;
262
262
  items: {
263
- id: string;
264
263
  size: number;
264
+ id: string;
265
265
  url: string;
266
266
  kind: string;
267
267
  tags: {
268
- name: string;
269
268
  id: string;
269
+ name: string;
270
270
  created_at: number;
271
271
  last_modified: number;
272
272
  uploader_id?: string | undefined;
@@ -274,9 +274,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
274
274
  }[];
275
275
  last_modified: number;
276
276
  filename: string;
277
+ notes?: string | undefined;
277
278
  width?: number | undefined;
278
279
  height?: number | undefined;
279
- notes?: string | undefined;
280
280
  credits?: string | undefined;
281
281
  alt?: string | undefined;
282
282
  uploader_id?: string | undefined;
@@ -308,13 +308,13 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
308
308
  page: number;
309
309
  total: number;
310
310
  items: {
311
- id: string;
312
311
  size: number;
312
+ id: string;
313
313
  url: string;
314
314
  kind: string;
315
315
  tags: {
316
- name: string;
317
316
  id: string;
317
+ name: string;
318
318
  created_at: number;
319
319
  last_modified: number;
320
320
  count: number;
@@ -322,9 +322,9 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
322
322
  }[];
323
323
  last_modified: number;
324
324
  filename: string;
325
+ notes?: string | undefined;
325
326
  width?: number | undefined;
326
327
  height?: number | undefined;
327
- notes?: string | undefined;
328
328
  credits?: string | undefined;
329
329
  alt?: string | undefined;
330
330
  uploader_id?: string | undefined;
@@ -357,13 +357,13 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
357
357
  setFilters: (filters: Partial<MediaLibraryFilters>) => void;
358
358
  resetFilters: () => void;
359
359
  media: {
360
- id: string;
361
360
  size: number;
361
+ id: string;
362
362
  url: string;
363
363
  kind: string;
364
364
  tags: {
365
- name: string;
366
365
  id: string;
366
+ name: string;
367
367
  created_at: number;
368
368
  last_modified: number;
369
369
  count: number;
@@ -371,9 +371,9 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
371
371
  }[];
372
372
  last_modified: number;
373
373
  filename: string;
374
+ notes?: string | undefined;
374
375
  width?: number | undefined;
375
376
  height?: number | undefined;
376
- notes?: string | undefined;
377
377
  credits?: string | undefined;
378
378
  alt?: string | undefined;
379
379
  uploader_id?: string | undefined;
@@ -407,13 +407,13 @@ declare function deleteMedia(mediaIds: string[]): void;
407
407
  declare function deleteSearchData(args: MediaLibraryFilters): void;
408
408
  type MediaPage = Awaited<ReturnType<typeof searchMedia>>;
409
409
  export declare function getMedia(allPages: MediaPage[], keyword: string, assetType: MediaAssetType, uploaderId: string | undefined, tags: string): {
410
- id: string;
411
410
  size: number;
411
+ id: string;
412
412
  url: string;
413
413
  kind: string;
414
414
  tags: {
415
- name: string;
416
415
  id: string;
416
+ name: string;
417
417
  created_at: number;
418
418
  last_modified: number;
419
419
  count: number;
@@ -421,9 +421,9 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
421
421
  }[];
422
422
  last_modified: number;
423
423
  filename: string;
424
+ notes?: string | undefined;
424
425
  width?: number | undefined;
425
426
  height?: number | undefined;
426
- notes?: string | undefined;
427
427
  credits?: string | undefined;
428
428
  alt?: string | undefined;
429
429
  uploader_id?: string | undefined;
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare function useTagSearch(): {
3
3
  tags: {
4
- name: string;
5
4
  id: string;
5
+ name: string;
6
6
  created_at: number;
7
7
  last_modified: number;
8
8
  count: number;
@@ -20,15 +20,15 @@ export declare const tagSchema: z.ZodObject<{
20
20
  last_modified: z.ZodNumber;
21
21
  count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- name: string;
24
23
  id: string;
24
+ name: string;
25
25
  created_at: number;
26
26
  last_modified: number;
27
27
  count: number;
28
28
  uploader_id?: string | undefined;
29
29
  }, {
30
- name: string;
31
30
  id: string;
31
+ name: string;
32
32
  created_at: number;
33
33
  last_modified: number;
34
34
  uploader_id?: string | undefined;
@@ -37,13 +37,13 @@ export declare function uploadMedia(params: {
37
37
  file: File;
38
38
  config: EditorConfig;
39
39
  }): Promise<{
40
- id: string;
41
40
  size: number;
41
+ id: string;
42
42
  url: string;
43
43
  kind: string;
44
44
  tags: {
45
- name: string;
46
45
  id: string;
46
+ name: string;
47
47
  created_at: number;
48
48
  last_modified: number;
49
49
  count: number;
@@ -51,9 +51,9 @@ export declare function uploadMedia(params: {
51
51
  }[];
52
52
  last_modified: number;
53
53
  filename: string;
54
+ notes?: string | undefined;
54
55
  width?: number | undefined;
55
56
  height?: number | undefined;
56
- notes?: string | undefined;
57
57
  credits?: string | undefined;
58
58
  alt?: string | undefined;
59
59
  uploader_id?: string | undefined;
@@ -1,11 +1,11 @@
1
1
  export declare function useSelectedMedia(): {
2
- id: string;
3
2
  size: number;
3
+ id: string;
4
4
  url: string;
5
5
  kind: string;
6
6
  tags: {
7
- name: string;
8
7
  id: string;
8
+ name: string;
9
9
  created_at: number;
10
10
  last_modified: number;
11
11
  count: number;
@@ -13,9 +13,9 @@ export declare function useSelectedMedia(): {
13
13
  }[];
14
14
  last_modified: number;
15
15
  filename: string;
16
+ notes?: string | undefined;
16
17
  width?: number | undefined;
17
18
  height?: number | undefined;
18
- notes?: string | undefined;
19
19
  credits?: string | undefined;
20
20
  alt?: string | undefined;
21
21
  uploader_id?: string | undefined;
@@ -16,20 +16,20 @@ declare const unsplashImage: import("zod").ZodObject<{
16
16
  alt_description: import("zod").ZodOptional<import("zod").ZodString>;
17
17
  description: import("zod").ZodNullable<import("zod").ZodString>;
18
18
  }, "strip", import("zod").ZodTypeAny, {
19
+ description: string | null;
20
+ id: string;
19
21
  width: number;
20
22
  height: number;
21
- id: string;
22
- description: string | null;
23
23
  urls: {
24
24
  small: string;
25
25
  full: string;
26
26
  };
27
27
  alt_description?: string | undefined;
28
28
  }, {
29
+ description: string | null;
30
+ id: string;
29
31
  width: number;
30
32
  height: number;
31
- id: string;
32
- description: string | null;
33
33
  urls: {
34
34
  small: string;
35
35
  full: string;
@@ -54,20 +54,20 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
54
54
  alt_description: import("zod").ZodOptional<import("zod").ZodString>;
55
55
  description: import("zod").ZodNullable<import("zod").ZodString>;
56
56
  }, "strip", import("zod").ZodTypeAny, {
57
+ description: string | null;
58
+ id: string;
57
59
  width: number;
58
60
  height: number;
59
- id: string;
60
- description: string | null;
61
61
  urls: {
62
62
  small: string;
63
63
  full: string;
64
64
  };
65
65
  alt_description?: string | undefined;
66
66
  }, {
67
+ description: string | null;
68
+ id: string;
67
69
  width: number;
68
70
  height: number;
69
- id: string;
70
- description: string | null;
71
71
  urls: {
72
72
  small: string;
73
73
  full: string;
@@ -76,10 +76,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
76
76
  }>, "many">;
77
77
  }, "strip", import("zod").ZodTypeAny, {
78
78
  results: {
79
+ description: string | null;
80
+ id: string;
79
81
  width: number;
80
82
  height: number;
81
- id: string;
82
- description: string | null;
83
83
  urls: {
84
84
  small: string;
85
85
  full: string;
@@ -88,10 +88,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
88
88
  }[];
89
89
  }, {
90
90
  results: {
91
+ description: string | null;
92
+ id: string;
91
93
  width: number;
92
94
  height: number;
93
- id: string;
94
- description: string | null;
95
95
  urls: {
96
96
  small: string;
97
97
  full: string;
@@ -99,10 +99,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
99
99
  alt_description?: string | undefined;
100
100
  }[];
101
101
  }>, {
102
+ description: string | null;
103
+ id: string;
102
104
  width: number;
103
105
  height: number;
104
- id: string;
105
- description: string | null;
106
106
  urls: {
107
107
  small: string;
108
108
  full: string;
@@ -110,10 +110,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
110
110
  alt_description?: string | undefined;
111
111
  }[], {
112
112
  results: {
113
+ description: string | null;
114
+ id: string;
113
115
  width: number;
114
116
  height: number;
115
- id: string;
116
- description: string | null;
117
117
  urls: {
118
118
  small: string;
119
119
  full: string;
@@ -124,10 +124,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
124
124
  export type UnplashSearchApi = TypeOf<typeof unsplashSearchApiType>;
125
125
  export type UnsplashImage = TypeOf<typeof unsplashImage>;
126
126
  export declare function useUnsplashSearch(baseUrl: URL, term: string): {
127
+ description: string | null;
128
+ id: string;
127
129
  width: number;
128
130
  height: number;
129
- id: string;
130
- description: string | null;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;
@@ -2031,5 +2031,5 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
2031
2031
  } & {
2032
2032
  format?: "custom" | "page" | undefined;
2033
2033
  }, Error>;
2034
- export declare function prefetchStaticCustomType(queryClient: QueryClient, args: CustomTypeOptionsArgs): void;
2034
+ export declare function usePrefetchStaticCustomType(args: CustomTypeOptionsArgs): void;
2035
2035
  export {};