@prismicio/editor-fields 0.4.71 → 0.4.72

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/core/APIExplorer/components/APIExplorerContext.d.ts +10 -6
  2. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +5 -0
  3. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +1 -0
  4. package/dist/core/APIExplorer/hooks/useCopy.d.ts +4 -0
  5. package/dist/core/APIExplorer/hooks/useRequestRepository.d.ts +1 -0
  6. package/dist/core/APIExplorer/hooks/useRequestRepositoryCustomTypes.d.ts +6 -0
  7. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +44 -44
  8. package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
  9. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +4 -4
  10. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +4 -4
  11. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  12. package/dist/core/service/customType.d.ts +10 -10
  13. package/dist/core/service/document.d.ts +163 -163
  14. package/dist/core/service/documentSearch.d.ts +40 -40
  15. package/dist/core/service/repository.d.ts +6 -6
  16. package/dist/core/service/role.d.ts +10 -10
  17. package/dist/fields/ImageField/useImageField.d.ts +4 -4
  18. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +4 -4
  19. package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
  20. package/dist/fields/LinkField/Documents/documentsData.d.ts +12 -12
  21. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  22. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
  23. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +4 -4
  24. package/dist/index.cjs.js +46 -46
  25. package/dist/index.es.js +27399 -27305
  26. package/dist/slices/utils.d.ts +1 -1
  27. package/package.json +4 -4
  28. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +0 -8
  29. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +0 -19
  30. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +0 -1
  31. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +0 -23
  32. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +0 -1
  33. package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +0 -3
  34. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginDef.d.ts +0 -8
  35. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginView.d.ts +0 -34
  36. package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginViewClass.d.ts +0 -34
  37. /package/dist/fields/RichTextField/extensions/Table/plugins/{TableHandles → tableHandles}/index.d.ts +0 -0
  38. /package/dist/fields/RichTextField/extensions/Table/plugins/{TableHandles/TableHandlesPlugin.d.ts → tableHandles/tableHandlesPlugin.d.ts} +0 -0
  39. /package/dist/fields/RichTextField/extensions/Table/{TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts → plugins/tableHandles/tableHandlesPluginView.d.ts} +0 -0
  40. /package/dist/fields/RichTextField/extensions/Table/plugins/{TableHandles → tableHandles}/utils.d.ts +0 -0
@@ -18,36 +18,39 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
18
18
  page: z.ZodOptional<z.ZodNumber>;
19
19
  pageSize: z.ZodOptional<z.ZodNumber>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- pageSize?: number | undefined;
22
21
  page?: number | undefined;
23
- }, {
24
22
  pageSize?: number | undefined;
23
+ }, {
25
24
  page?: number | undefined;
25
+ pageSize?: number | undefined;
26
26
  }>;
27
27
  lang: z.ZodOptional<z.ZodString>;
28
+ ref: z.ZodOptional<z.ZodString>;
28
29
  }, "strip", z.ZodTypeAny, {
30
+ options: Partial<Record<"get" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
29
31
  type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
30
32
  repository: {
31
33
  id: string;
32
34
  accessToken?: string | undefined;
33
35
  };
34
- options: Partial<Record<"get" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
35
36
  pagination: {
36
- pageSize?: number | undefined;
37
37
  page?: number | undefined;
38
+ pageSize?: number | undefined;
38
39
  };
40
+ ref?: string | undefined;
39
41
  lang?: string | undefined;
40
42
  }, {
43
+ options: Partial<Record<"get" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
41
44
  type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
42
45
  repository: {
43
46
  id: string;
44
47
  accessToken?: string | undefined;
45
48
  };
46
- options: Partial<Record<"get" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
47
49
  pagination: {
48
- pageSize?: number | undefined;
49
50
  page?: number | undefined;
51
+ pageSize?: 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 = {
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Display a fieldset managing a request document lang setting.
4
+ */
5
+ export declare function RequestRefFieldset(): JSX.Element;
@@ -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;
@@ -0,0 +1,4 @@
1
+ export declare function useCopy(): {
2
+ isCopied: boolean;
3
+ copy: (text: string) => Promise<void>;
4
+ };
@@ -0,0 +1 @@
1
+ export declare function useRequestRepository(): import("@prismicio/client").Repository;
@@ -0,0 +1,6 @@
1
+ export declare function useRequestRepositoryCustomTypes(nonRepeatableOnly?: boolean): {
2
+ status: boolean;
3
+ id: string;
4
+ label: string;
5
+ repeatable: boolean;
6
+ }[];
@@ -21,14 +21,14 @@ export declare const mediaAssetType: z.ZodObject<{
21
21
  notes: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
22
22
  credits: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- notes?: string | undefined;
25
24
  credits?: string | undefined;
26
25
  alt?: string | undefined;
26
+ notes?: string | undefined;
27
27
  filename?: string | undefined;
28
28
  }, {
29
- notes?: string[] | undefined;
30
29
  credits?: string[] | undefined;
31
30
  alt?: string[] | undefined;
31
+ notes?: string[] | undefined;
32
32
  filename?: string[] | undefined;
33
33
  }>>;
34
34
  tags: z.ZodArray<z.ZodObject<{
@@ -39,15 +39,15 @@ 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;
@@ -55,12 +55,12 @@ export declare const mediaAssetType: z.ZodObject<{
55
55
  }>, "many">;
56
56
  }, "strip", z.ZodTypeAny, {
57
57
  id: string;
58
- size: number;
59
58
  url: string;
60
59
  kind: string;
60
+ size: number;
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;
@@ -70,25 +70,25 @@ export declare const mediaAssetType: z.ZodObject<{
70
70
  filename: string;
71
71
  width?: number | undefined;
72
72
  height?: number | undefined;
73
- notes?: string | undefined;
74
73
  credits?: string | undefined;
75
74
  alt?: string | undefined;
75
+ notes?: string | undefined;
76
76
  uploader_id?: string | undefined;
77
77
  extension?: string | undefined;
78
78
  search_highlight?: {
79
- notes?: string | undefined;
80
79
  credits?: string | undefined;
81
80
  alt?: string | undefined;
81
+ notes?: string | undefined;
82
82
  filename?: string | undefined;
83
83
  } | undefined;
84
84
  }, {
85
85
  id: string;
86
- size: number;
87
86
  url: string;
88
87
  kind: string;
88
+ size: number;
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;
@@ -98,15 +98,15 @@ export declare const mediaAssetType: z.ZodObject<{
98
98
  filename: string;
99
99
  width?: number | undefined;
100
100
  height?: number | undefined;
101
- notes?: string | undefined;
102
101
  credits?: string | undefined;
103
102
  alt?: string | undefined;
103
+ notes?: string | undefined;
104
104
  uploader_id?: string | undefined;
105
105
  extension?: string | undefined;
106
106
  search_highlight?: {
107
- notes?: string[] | undefined;
108
107
  credits?: string[] | undefined;
109
108
  alt?: string[] | undefined;
109
+ notes?: string[] | undefined;
110
110
  filename?: string[] | undefined;
111
111
  } | undefined;
112
112
  }>;
@@ -136,14 +136,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
136
136
  notes: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
137
137
  credits: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
138
138
  }, "strip", z.ZodTypeAny, {
139
- notes?: string | undefined;
140
139
  credits?: string | undefined;
141
140
  alt?: string | undefined;
141
+ notes?: string | undefined;
142
142
  filename?: string | undefined;
143
143
  }, {
144
- notes?: string[] | undefined;
145
144
  credits?: string[] | undefined;
146
145
  alt?: string[] | undefined;
146
+ notes?: string[] | undefined;
147
147
  filename?: string[] | undefined;
148
148
  }>>;
149
149
  tags: z.ZodArray<z.ZodObject<{
@@ -154,15 +154,15 @@ 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;
@@ -170,12 +170,12 @@ export declare const mediaSearchResponse: z.ZodObject<{
170
170
  }>, "many">;
171
171
  }, "strip", z.ZodTypeAny, {
172
172
  id: string;
173
- size: number;
174
173
  url: string;
175
174
  kind: string;
175
+ size: number;
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;
@@ -185,25 +185,25 @@ export declare const mediaSearchResponse: z.ZodObject<{
185
185
  filename: string;
186
186
  width?: number | undefined;
187
187
  height?: number | undefined;
188
- notes?: string | undefined;
189
188
  credits?: string | undefined;
190
189
  alt?: string | undefined;
190
+ notes?: string | undefined;
191
191
  uploader_id?: string | undefined;
192
192
  extension?: string | undefined;
193
193
  search_highlight?: {
194
- notes?: string | undefined;
195
194
  credits?: string | undefined;
196
195
  alt?: string | undefined;
196
+ notes?: string | undefined;
197
197
  filename?: string | undefined;
198
198
  } | undefined;
199
199
  }, {
200
200
  id: string;
201
- size: number;
202
201
  url: string;
203
202
  kind: string;
203
+ size: number;
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;
@@ -213,15 +213,15 @@ export declare const mediaSearchResponse: z.ZodObject<{
213
213
  filename: string;
214
214
  width?: number | undefined;
215
215
  height?: number | undefined;
216
- notes?: string | undefined;
217
216
  credits?: string | undefined;
218
217
  alt?: string | undefined;
218
+ notes?: string | undefined;
219
219
  uploader_id?: string | undefined;
220
220
  extension?: string | undefined;
221
221
  search_highlight?: {
222
- notes?: string[] | undefined;
223
222
  credits?: string[] | undefined;
224
223
  alt?: string[] | undefined;
224
+ notes?: string[] | undefined;
225
225
  filename?: string[] | undefined;
226
226
  } | undefined;
227
227
  }>, "many">;
@@ -229,12 +229,12 @@ export declare const mediaSearchResponse: z.ZodObject<{
229
229
  total: number;
230
230
  items: {
231
231
  id: string;
232
- size: number;
233
232
  url: string;
234
233
  kind: string;
234
+ size: number;
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;
@@ -244,15 +244,15 @@ export declare const mediaSearchResponse: z.ZodObject<{
244
244
  filename: string;
245
245
  width?: number | undefined;
246
246
  height?: number | undefined;
247
- notes?: string | undefined;
248
247
  credits?: string | undefined;
249
248
  alt?: string | undefined;
249
+ notes?: string | undefined;
250
250
  uploader_id?: string | undefined;
251
251
  extension?: string | undefined;
252
252
  search_highlight?: {
253
- notes?: string | undefined;
254
253
  credits?: string | undefined;
255
254
  alt?: string | undefined;
255
+ notes?: string | undefined;
256
256
  filename?: string | undefined;
257
257
  } | undefined;
258
258
  }[];
@@ -261,12 +261,12 @@ export declare const mediaSearchResponse: z.ZodObject<{
261
261
  total: number;
262
262
  items: {
263
263
  id: string;
264
- size: number;
265
264
  url: string;
266
265
  kind: string;
266
+ size: number;
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;
@@ -276,15 +276,15 @@ export declare const mediaSearchResponse: z.ZodObject<{
276
276
  filename: string;
277
277
  width?: number | undefined;
278
278
  height?: number | undefined;
279
- notes?: string | undefined;
280
279
  credits?: string | undefined;
281
280
  alt?: string | undefined;
281
+ notes?: string | undefined;
282
282
  uploader_id?: string | undefined;
283
283
  extension?: string | undefined;
284
284
  search_highlight?: {
285
- notes?: string[] | undefined;
286
285
  credits?: string[] | undefined;
287
286
  alt?: string[] | undefined;
287
+ notes?: string[] | undefined;
288
288
  filename?: string[] | undefined;
289
289
  } | undefined;
290
290
  }[];
@@ -309,12 +309,12 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
309
309
  total: number;
310
310
  items: {
311
311
  id: string;
312
- size: number;
313
312
  url: string;
314
313
  kind: string;
314
+ size: number;
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;
@@ -324,15 +324,15 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
324
324
  filename: string;
325
325
  width?: number | undefined;
326
326
  height?: number | undefined;
327
- notes?: string | undefined;
328
327
  credits?: string | undefined;
329
328
  alt?: string | undefined;
329
+ notes?: string | undefined;
330
330
  uploader_id?: string | undefined;
331
331
  extension?: string | undefined;
332
332
  search_highlight?: {
333
- notes?: string | undefined;
334
333
  credits?: string | undefined;
335
334
  alt?: string | undefined;
335
+ notes?: string | undefined;
336
336
  filename?: string | undefined;
337
337
  } | undefined;
338
338
  }[];
@@ -358,12 +358,12 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
358
358
  resetFilters: () => void;
359
359
  media: {
360
360
  id: string;
361
- size: number;
362
361
  url: string;
363
362
  kind: string;
363
+ size: number;
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;
@@ -373,15 +373,15 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
373
373
  filename: string;
374
374
  width?: number | undefined;
375
375
  height?: number | undefined;
376
- notes?: string | undefined;
377
376
  credits?: string | undefined;
378
377
  alt?: string | undefined;
378
+ notes?: string | undefined;
379
379
  uploader_id?: string | undefined;
380
380
  extension?: string | undefined;
381
381
  search_highlight?: {
382
- notes?: string | undefined;
383
382
  credits?: string | undefined;
384
383
  alt?: string | undefined;
384
+ notes?: string | undefined;
385
385
  filename?: string | undefined;
386
386
  } | undefined;
387
387
  }[];
@@ -408,12 +408,12 @@ 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
410
  id: string;
411
- size: number;
412
411
  url: string;
413
412
  kind: string;
413
+ size: number;
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;
@@ -423,15 +423,15 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
423
423
  filename: string;
424
424
  width?: number | undefined;
425
425
  height?: number | undefined;
426
- notes?: string | undefined;
427
426
  credits?: string | undefined;
428
427
  alt?: string | undefined;
428
+ notes?: string | undefined;
429
429
  uploader_id?: string | undefined;
430
430
  extension?: string | undefined;
431
431
  search_highlight?: {
432
- notes?: string | undefined;
433
432
  credits?: string | undefined;
434
433
  alt?: string | undefined;
434
+ notes?: string | undefined;
435
435
  filename?: string | undefined;
436
436
  } | undefined;
437
437
  }[];
@@ -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;
@@ -38,12 +38,12 @@ export declare function uploadMedia(params: {
38
38
  config: EditorConfig;
39
39
  }): Promise<{
40
40
  id: string;
41
- size: number;
42
41
  url: string;
43
42
  kind: string;
43
+ size: number;
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;
@@ -53,15 +53,15 @@ export declare function uploadMedia(params: {
53
53
  filename: string;
54
54
  width?: number | undefined;
55
55
  height?: number | undefined;
56
- notes?: string | undefined;
57
56
  credits?: string | undefined;
58
57
  alt?: string | undefined;
58
+ notes?: string | undefined;
59
59
  uploader_id?: string | undefined;
60
60
  extension?: string | undefined;
61
61
  search_highlight?: {
62
- notes?: string | undefined;
63
62
  credits?: string | undefined;
64
63
  alt?: string | undefined;
64
+ notes?: string | undefined;
65
65
  filename?: string | undefined;
66
66
  } | undefined;
67
67
  }>;
@@ -1,11 +1,11 @@
1
1
  export declare function useSelectedMedia(): {
2
2
  id: string;
3
- size: number;
4
3
  url: string;
5
4
  kind: string;
5
+ size: number;
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;
@@ -15,15 +15,15 @@ export declare function useSelectedMedia(): {
15
15
  filename: string;
16
16
  width?: number | undefined;
17
17
  height?: number | undefined;
18
- notes?: string | undefined;
19
18
  credits?: string | undefined;
20
19
  alt?: string | undefined;
20
+ notes?: string | undefined;
21
21
  uploader_id?: string | undefined;
22
22
  extension?: string | undefined;
23
23
  search_highlight?: {
24
- notes?: string | undefined;
25
24
  credits?: string | undefined;
26
25
  alt?: string | undefined;
26
+ notes?: string | undefined;
27
27
  filename?: string | undefined;
28
28
  } | undefined;
29
29
  }[];
@@ -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
- width: number;
20
- height: number;
21
19
  id: string;
22
20
  description: string | null;
21
+ width: number;
22
+ height: number;
23
23
  urls: {
24
24
  small: string;
25
25
  full: string;
26
26
  };
27
27
  alt_description?: string | undefined;
28
28
  }, {
29
- width: number;
30
- height: number;
31
29
  id: string;
32
30
  description: string | null;
31
+ width: number;
32
+ height: number;
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
- width: number;
58
- height: number;
59
57
  id: string;
60
58
  description: string | null;
59
+ width: number;
60
+ height: number;
61
61
  urls: {
62
62
  small: string;
63
63
  full: string;
64
64
  };
65
65
  alt_description?: string | undefined;
66
66
  }, {
67
- width: number;
68
- height: number;
69
67
  id: string;
70
68
  description: string | null;
69
+ width: number;
70
+ height: number;
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
- width: number;
80
- height: number;
81
79
  id: string;
82
80
  description: string | null;
81
+ width: number;
82
+ height: number;
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
- width: number;
92
- height: number;
93
91
  id: string;
94
92
  description: string | null;
93
+ width: number;
94
+ height: number;
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
- width: number;
103
- height: number;
104
102
  id: string;
105
103
  description: string | null;
104
+ width: number;
105
+ height: number;
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
- width: number;
114
- height: number;
115
113
  id: string;
116
114
  description: string | null;
115
+ width: number;
116
+ height: number;
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
- width: number;
128
- height: number;
129
127
  id: string;
130
128
  description: string | null;
129
+ width: number;
130
+ height: number;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;