@prismicio/editor-fields 0.4.74 → 0.4.75

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 (30) hide show
  1. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +10 -10
  2. package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +1 -1
  3. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +6 -7
  4. package/dist/core/APIExplorer/constants.d.ts +1 -0
  5. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1 -1
  6. package/dist/core/APIExplorer/utils.d.ts +3 -0
  7. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +76 -76
  8. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +8 -8
  9. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +8 -8
  10. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  11. package/dist/core/document.d.ts +1 -1
  12. package/dist/core/service/customType.d.ts +153 -32
  13. package/dist/core/service/document.d.ts +146 -146
  14. package/dist/core/service/documentSearch.d.ts +37 -37
  15. package/dist/core/service/onboarding.d.ts +3 -3
  16. package/dist/core/service/repository.d.ts +6 -6
  17. package/dist/core/service/role.d.ts +64 -64
  18. package/dist/core/service/user.d.ts +8 -8
  19. package/dist/fields/ImageField/useImageField.d.ts +8 -8
  20. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +8 -8
  21. package/dist/fields/LinkField/Documents/documentsData.d.ts +12 -12
  22. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  23. package/dist/fields/LinkField/useLinkField.d.ts +1 -1
  24. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
  25. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +8 -8
  26. package/dist/index.cjs.js +50 -61
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.es.js +15510 -15410
  29. package/dist/slices/utils.d.ts +5 -5
  30. package/package.json +5 -5
@@ -18,40 +18,40 @@ 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
28
  ref: z.ZodOptional<z.ZodString>;
29
29
  }, "strip", z.ZodTypeAny, {
30
+ type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
31
+ options: Partial<Record<"get" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
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
- type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
36
36
  pagination: {
37
- pageSize?: number | undefined;
38
37
  page?: number | undefined;
38
+ pageSize?: number | undefined;
39
39
  };
40
- lang?: string | undefined;
41
40
  ref?: string | undefined;
41
+ lang?: string | undefined;
42
42
  }, {
43
+ type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
44
+ options: Partial<Record<"get" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
43
45
  repository: {
44
46
  id: string;
45
47
  accessToken?: string | undefined;
46
48
  };
47
- options: Partial<Record<"get" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
48
- type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
49
49
  pagination: {
50
- pageSize?: number | undefined;
51
50
  page?: number | undefined;
51
+ pageSize?: number | undefined;
52
52
  };
53
- lang?: string | undefined;
54
53
  ref?: string | undefined;
54
+ lang?: string | undefined;
55
55
  }>;
56
56
  export type APIExplorerRequestProperties = z.infer<typeof APIExplorerRequestProperties>;
57
57
  type APIExplorerRequestMethods = {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { type SelectProps } from "@prismicio/editor-ui";
3
3
  import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
4
- export declare function RequestFormSelect(props: Pick<RequestFormInputBaseProps, "label"> & SelectProps<string>): JSX.Element;
4
+ export declare function RequestFormSelect(props: Pick<RequestFormInputBaseProps, "label"> & SelectProps): JSX.Element;
@@ -1,12 +1,11 @@
1
1
  /// <reference types="react" />
2
- import type { Client } from "@prismicio/client";
2
+ import type { BuildQueryURLArgs, Client } from "@prismicio/client";
3
3
  import type { RequestRunReturnType } from "./types";
4
- type RequestOptions = Record<string, string | number | undefined> & {
5
- page?: number;
6
- pageSize?: number;
7
- lang?: string;
8
- ref?: string;
9
- };
4
+ type RequestOptions = {
5
+ type?: string;
6
+ uid?: string;
7
+ signal?: AbortSignal;
8
+ } & Partial<BuildQueryURLArgs>;
10
9
  export type RequestConfig<TType extends string> = {
11
10
  type: TType;
12
11
  Fieldset?: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const prismicClientDocsUrl = "https://prismic.io/docs/technical-reference/prismicio-client";
@@ -1,6 +1,6 @@
1
1
  export declare function useRepositoryCustomTypes(nonRepeatableOnly?: boolean): {
2
- status: boolean;
3
2
  id: string;
4
3
  label: string;
4
+ status: boolean;
5
5
  repeatable: boolean;
6
6
  }[];
@@ -0,0 +1,3 @@
1
+ type Primitive = number | string | symbol | undefined;
2
+ export declare function getSnippetArgs(...args: (Primitive | Record<string, Primitive>)[]): string;
3
+ export {};
@@ -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
  filename?: string | undefined;
26
25
  alt?: string | undefined;
26
+ notes?: string | undefined;
27
27
  credits?: string | undefined;
28
28
  }, {
29
- notes?: string[] | undefined;
30
29
  filename?: string[] | undefined;
31
30
  alt?: string[] | undefined;
31
+ notes?: string[] | undefined;
32
32
  credits?: string[] | undefined;
33
33
  }>>;
34
34
  tags: z.ZodArray<z.ZodObject<{
@@ -55,11 +55,9 @@ export declare const mediaAssetType: z.ZodObject<{
55
55
  }>, "many">;
56
56
  }, "strip", z.ZodTypeAny, {
57
57
  id: string;
58
- size: number;
59
- url: string;
60
58
  kind: string;
61
- filename: string;
62
- last_modified: number;
59
+ url: string;
60
+ size: number;
63
61
  tags: {
64
62
  id: string;
65
63
  name: string;
@@ -68,26 +66,26 @@ export declare const mediaAssetType: z.ZodObject<{
68
66
  count: number;
69
67
  uploader_id?: string | undefined;
70
68
  }[];
71
- notes?: string | undefined;
72
- extension?: string | undefined;
73
- width?: number | undefined;
69
+ filename: string;
70
+ last_modified: number;
74
71
  height?: number | undefined;
72
+ width?: number | undefined;
73
+ extension?: string | undefined;
75
74
  alt?: string | undefined;
76
75
  uploader_id?: string | undefined;
76
+ notes?: string | undefined;
77
77
  credits?: string | undefined;
78
78
  search_highlight?: {
79
- notes?: string | undefined;
80
79
  filename?: string | undefined;
81
80
  alt?: string | undefined;
81
+ notes?: string | undefined;
82
82
  credits?: string | undefined;
83
83
  } | undefined;
84
84
  }, {
85
85
  id: string;
86
- size: number;
87
- url: string;
88
86
  kind: string;
89
- filename: string;
90
- last_modified: number;
87
+ url: string;
88
+ size: number;
91
89
  tags: {
92
90
  id: string;
93
91
  name: string;
@@ -96,17 +94,19 @@ export declare const mediaAssetType: z.ZodObject<{
96
94
  uploader_id?: string | undefined;
97
95
  count?: number | undefined;
98
96
  }[];
99
- notes?: string | undefined;
100
- extension?: string | undefined;
101
- width?: number | undefined;
97
+ filename: string;
98
+ last_modified: number;
102
99
  height?: number | undefined;
100
+ width?: number | undefined;
101
+ extension?: string | undefined;
103
102
  alt?: string | undefined;
104
103
  uploader_id?: string | undefined;
104
+ notes?: string | undefined;
105
105
  credits?: string | undefined;
106
106
  search_highlight?: {
107
- notes?: string[] | undefined;
108
107
  filename?: string[] | undefined;
109
108
  alt?: string[] | undefined;
109
+ notes?: string[] | undefined;
110
110
  credits?: 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
  filename?: string | undefined;
141
140
  alt?: string | undefined;
141
+ notes?: string | undefined;
142
142
  credits?: string | undefined;
143
143
  }, {
144
- notes?: string[] | undefined;
145
144
  filename?: string[] | undefined;
146
145
  alt?: string[] | undefined;
146
+ notes?: string[] | undefined;
147
147
  credits?: string[] | undefined;
148
148
  }>>;
149
149
  tags: z.ZodArray<z.ZodObject<{
@@ -170,11 +170,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
170
170
  }>, "many">;
171
171
  }, "strip", z.ZodTypeAny, {
172
172
  id: string;
173
- size: number;
174
- url: string;
175
173
  kind: string;
176
- filename: string;
177
- last_modified: number;
174
+ url: string;
175
+ size: number;
178
176
  tags: {
179
177
  id: string;
180
178
  name: string;
@@ -183,26 +181,26 @@ export declare const mediaSearchResponse: z.ZodObject<{
183
181
  count: number;
184
182
  uploader_id?: string | undefined;
185
183
  }[];
186
- notes?: string | undefined;
187
- extension?: string | undefined;
188
- width?: number | undefined;
184
+ filename: string;
185
+ last_modified: number;
189
186
  height?: number | undefined;
187
+ width?: number | undefined;
188
+ extension?: string | undefined;
190
189
  alt?: string | undefined;
191
190
  uploader_id?: string | undefined;
191
+ notes?: string | undefined;
192
192
  credits?: string | undefined;
193
193
  search_highlight?: {
194
- notes?: string | undefined;
195
194
  filename?: string | undefined;
196
195
  alt?: string | undefined;
196
+ notes?: string | undefined;
197
197
  credits?: string | undefined;
198
198
  } | undefined;
199
199
  }, {
200
200
  id: string;
201
- size: number;
202
- url: string;
203
201
  kind: string;
204
- filename: string;
205
- last_modified: number;
202
+ url: string;
203
+ size: number;
206
204
  tags: {
207
205
  id: string;
208
206
  name: string;
@@ -211,17 +209,19 @@ export declare const mediaSearchResponse: z.ZodObject<{
211
209
  uploader_id?: string | undefined;
212
210
  count?: number | undefined;
213
211
  }[];
214
- notes?: string | undefined;
215
- extension?: string | undefined;
216
- width?: number | undefined;
212
+ filename: string;
213
+ last_modified: number;
217
214
  height?: number | undefined;
215
+ width?: number | undefined;
216
+ extension?: string | undefined;
218
217
  alt?: string | undefined;
219
218
  uploader_id?: string | undefined;
219
+ notes?: string | undefined;
220
220
  credits?: string | undefined;
221
221
  search_highlight?: {
222
- notes?: string[] | undefined;
223
222
  filename?: string[] | undefined;
224
223
  alt?: string[] | undefined;
224
+ notes?: string[] | undefined;
225
225
  credits?: string[] | undefined;
226
226
  } | undefined;
227
227
  }>, "many">;
@@ -229,11 +229,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
229
229
  total: number;
230
230
  items: {
231
231
  id: string;
232
- size: number;
233
- url: string;
234
232
  kind: string;
235
- filename: string;
236
- last_modified: number;
233
+ url: string;
234
+ size: number;
237
235
  tags: {
238
236
  id: string;
239
237
  name: string;
@@ -242,17 +240,19 @@ export declare const mediaSearchResponse: z.ZodObject<{
242
240
  count: number;
243
241
  uploader_id?: string | undefined;
244
242
  }[];
245
- notes?: string | undefined;
246
- extension?: string | undefined;
247
- width?: number | undefined;
243
+ filename: string;
244
+ last_modified: number;
248
245
  height?: number | undefined;
246
+ width?: number | undefined;
247
+ extension?: string | undefined;
249
248
  alt?: string | undefined;
250
249
  uploader_id?: string | undefined;
250
+ notes?: string | undefined;
251
251
  credits?: string | undefined;
252
252
  search_highlight?: {
253
- notes?: string | undefined;
254
253
  filename?: string | undefined;
255
254
  alt?: string | undefined;
255
+ notes?: string | undefined;
256
256
  credits?: string | undefined;
257
257
  } | undefined;
258
258
  }[];
@@ -261,11 +261,9 @@ export declare const mediaSearchResponse: z.ZodObject<{
261
261
  total: number;
262
262
  items: {
263
263
  id: string;
264
- size: number;
265
- url: string;
266
264
  kind: string;
267
- filename: string;
268
- last_modified: number;
265
+ url: string;
266
+ size: number;
269
267
  tags: {
270
268
  id: string;
271
269
  name: string;
@@ -274,17 +272,19 @@ export declare const mediaSearchResponse: z.ZodObject<{
274
272
  uploader_id?: string | undefined;
275
273
  count?: number | undefined;
276
274
  }[];
277
- notes?: string | undefined;
278
- extension?: string | undefined;
279
- width?: number | undefined;
275
+ filename: string;
276
+ last_modified: number;
280
277
  height?: number | undefined;
278
+ width?: number | undefined;
279
+ extension?: string | undefined;
281
280
  alt?: string | undefined;
282
281
  uploader_id?: string | undefined;
282
+ notes?: string | undefined;
283
283
  credits?: string | undefined;
284
284
  search_highlight?: {
285
- notes?: string[] | undefined;
286
285
  filename?: string[] | undefined;
287
286
  alt?: string[] | undefined;
287
+ notes?: string[] | undefined;
288
288
  credits?: string[] | undefined;
289
289
  } | undefined;
290
290
  }[];
@@ -309,11 +309,9 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
309
309
  total: number;
310
310
  items: {
311
311
  id: string;
312
- size: number;
313
- url: string;
314
312
  kind: string;
315
- filename: string;
316
- last_modified: number;
313
+ url: string;
314
+ size: number;
317
315
  tags: {
318
316
  id: string;
319
317
  name: string;
@@ -322,17 +320,19 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
322
320
  count: number;
323
321
  uploader_id?: string | undefined;
324
322
  }[];
325
- notes?: string | undefined;
326
- extension?: string | undefined;
327
- width?: number | undefined;
323
+ filename: string;
324
+ last_modified: number;
328
325
  height?: number | undefined;
326
+ width?: number | undefined;
327
+ extension?: string | undefined;
329
328
  alt?: string | undefined;
330
329
  uploader_id?: string | undefined;
330
+ notes?: string | undefined;
331
331
  credits?: string | undefined;
332
332
  search_highlight?: {
333
- notes?: string | undefined;
334
333
  filename?: string | undefined;
335
334
  alt?: string | undefined;
335
+ notes?: string | undefined;
336
336
  credits?: string | undefined;
337
337
  } | undefined;
338
338
  }[];
@@ -358,11 +358,9 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
358
358
  resetFilters: () => void;
359
359
  media: {
360
360
  id: string;
361
- size: number;
362
- url: string;
363
361
  kind: string;
364
- filename: string;
365
- last_modified: number;
362
+ url: string;
363
+ size: number;
366
364
  tags: {
367
365
  id: string;
368
366
  name: string;
@@ -371,17 +369,19 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
371
369
  count: number;
372
370
  uploader_id?: string | undefined;
373
371
  }[];
374
- notes?: string | undefined;
375
- extension?: string | undefined;
376
- width?: number | undefined;
372
+ filename: string;
373
+ last_modified: number;
377
374
  height?: number | undefined;
375
+ width?: number | undefined;
376
+ extension?: string | undefined;
378
377
  alt?: string | undefined;
379
378
  uploader_id?: string | undefined;
379
+ notes?: string | undefined;
380
380
  credits?: string | undefined;
381
381
  search_highlight?: {
382
- notes?: string | undefined;
383
382
  filename?: string | undefined;
384
383
  alt?: string | undefined;
384
+ notes?: string | undefined;
385
385
  credits?: string | undefined;
386
386
  } | undefined;
387
387
  }[];
@@ -408,11 +408,9 @@ 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
- url: string;
413
411
  kind: string;
414
- filename: string;
415
- last_modified: number;
412
+ url: string;
413
+ size: number;
416
414
  tags: {
417
415
  id: string;
418
416
  name: string;
@@ -421,17 +419,19 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
421
419
  count: number;
422
420
  uploader_id?: string | undefined;
423
421
  }[];
424
- notes?: string | undefined;
425
- extension?: string | undefined;
426
- width?: number | undefined;
422
+ filename: string;
423
+ last_modified: number;
427
424
  height?: number | undefined;
425
+ width?: number | undefined;
426
+ extension?: string | undefined;
428
427
  alt?: string | undefined;
429
428
  uploader_id?: string | undefined;
429
+ notes?: string | undefined;
430
430
  credits?: string | undefined;
431
431
  search_highlight?: {
432
- notes?: string | undefined;
433
432
  filename?: string | undefined;
434
433
  alt?: string | undefined;
434
+ notes?: string | undefined;
435
435
  credits?: string | undefined;
436
436
  } | undefined;
437
437
  }[];
@@ -38,11 +38,9 @@ export declare function uploadMedia(params: {
38
38
  config: EditorConfig;
39
39
  }): Promise<{
40
40
  id: string;
41
- size: number;
42
- url: string;
43
41
  kind: string;
44
- filename: string;
45
- last_modified: number;
42
+ url: string;
43
+ size: number;
46
44
  tags: {
47
45
  id: string;
48
46
  name: string;
@@ -51,17 +49,19 @@ export declare function uploadMedia(params: {
51
49
  count: number;
52
50
  uploader_id?: string | undefined;
53
51
  }[];
54
- notes?: string | undefined;
55
- extension?: string | undefined;
56
- width?: number | undefined;
52
+ filename: string;
53
+ last_modified: number;
57
54
  height?: number | undefined;
55
+ width?: number | undefined;
56
+ extension?: string | undefined;
58
57
  alt?: string | undefined;
59
58
  uploader_id?: string | undefined;
59
+ notes?: string | undefined;
60
60
  credits?: string | undefined;
61
61
  search_highlight?: {
62
- notes?: string | undefined;
63
62
  filename?: string | undefined;
64
63
  alt?: string | undefined;
64
+ notes?: string | undefined;
65
65
  credits?: string | undefined;
66
66
  } | undefined;
67
67
  }>;
@@ -1,10 +1,8 @@
1
1
  export declare function useSelectedMedia(): {
2
2
  id: string;
3
- size: number;
4
- url: string;
5
3
  kind: string;
6
- filename: string;
7
- last_modified: number;
4
+ url: string;
5
+ size: number;
8
6
  tags: {
9
7
  id: string;
10
8
  name: string;
@@ -13,17 +11,19 @@ export declare function useSelectedMedia(): {
13
11
  count: number;
14
12
  uploader_id?: string | undefined;
15
13
  }[];
16
- notes?: string | undefined;
17
- extension?: string | undefined;
18
- width?: number | undefined;
14
+ filename: string;
15
+ last_modified: number;
19
16
  height?: number | undefined;
17
+ width?: number | undefined;
18
+ extension?: string | undefined;
20
19
  alt?: string | undefined;
21
20
  uploader_id?: string | undefined;
21
+ notes?: string | undefined;
22
22
  credits?: string | undefined;
23
23
  search_highlight?: {
24
- notes?: string | undefined;
25
24
  filename?: string | undefined;
26
25
  alt?: string | undefined;
26
+ notes?: string | undefined;
27
27
  credits?: string | undefined;
28
28
  } | undefined;
29
29
  }[];
@@ -17,9 +17,9 @@ declare const unsplashImage: import("zod").ZodObject<{
17
17
  description: import("zod").ZodNullable<import("zod").ZodString>;
18
18
  }, "strip", import("zod").ZodTypeAny, {
19
19
  id: string;
20
- description: string | null;
21
- width: number;
22
20
  height: number;
21
+ width: number;
22
+ description: string | null;
23
23
  urls: {
24
24
  small: string;
25
25
  full: string;
@@ -27,9 +27,9 @@ declare const unsplashImage: import("zod").ZodObject<{
27
27
  alt_description?: string | undefined;
28
28
  }, {
29
29
  id: string;
30
- description: string | null;
31
- width: number;
32
30
  height: number;
31
+ width: number;
32
+ description: string | null;
33
33
  urls: {
34
34
  small: string;
35
35
  full: string;
@@ -55,9 +55,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
55
55
  description: import("zod").ZodNullable<import("zod").ZodString>;
56
56
  }, "strip", import("zod").ZodTypeAny, {
57
57
  id: string;
58
- description: string | null;
59
- width: number;
60
58
  height: number;
59
+ width: number;
60
+ description: string | null;
61
61
  urls: {
62
62
  small: string;
63
63
  full: string;
@@ -65,9 +65,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
65
65
  alt_description?: string | undefined;
66
66
  }, {
67
67
  id: string;
68
- description: string | null;
69
- width: number;
70
68
  height: number;
69
+ width: number;
70
+ description: string | null;
71
71
  urls: {
72
72
  small: string;
73
73
  full: string;
@@ -77,9 +77,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
77
77
  }, "strip", import("zod").ZodTypeAny, {
78
78
  results: {
79
79
  id: string;
80
- description: string | null;
81
- width: number;
82
80
  height: number;
81
+ width: number;
82
+ description: string | null;
83
83
  urls: {
84
84
  small: string;
85
85
  full: string;
@@ -89,9 +89,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
89
89
  }, {
90
90
  results: {
91
91
  id: string;
92
- description: string | null;
93
- width: number;
94
92
  height: number;
93
+ width: number;
94
+ description: string | null;
95
95
  urls: {
96
96
  small: string;
97
97
  full: string;
@@ -100,9 +100,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
100
100
  }[];
101
101
  }>, {
102
102
  id: string;
103
- description: string | null;
104
- width: number;
105
103
  height: number;
104
+ width: number;
105
+ description: string | null;
106
106
  urls: {
107
107
  small: string;
108
108
  full: string;
@@ -111,9 +111,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
111
111
  }[], {
112
112
  results: {
113
113
  id: string;
114
- description: string | null;
115
- width: number;
116
114
  height: number;
115
+ width: number;
116
+ description: string | null;
117
117
  urls: {
118
118
  small: string;
119
119
  full: string;
@@ -125,9 +125,9 @@ 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
127
  id: string;
128
- description: string | null;
129
- width: number;
130
128
  height: number;
129
+ width: number;
130
+ description: string | null;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;
@@ -1,7 +1,7 @@
1
1
  import { type Document as DocumentT, GroupContent } from "@prismicio/types-internal/lib/content";
2
2
  import { type StaticCustomType } from "@prismicio/types-internal/lib/customtypes";
3
3
  import type { DocumentVersion } from "./service";
4
- export declare function prepareDocumentForSave(customType: StaticCustomType, document: DocumentT): DocumentT;
4
+ export declare function prepareDocument(document: DocumentT, customType: StaticCustomType): DocumentT;
5
5
  export declare const defaultGroupContentWithOneItem: GroupContent;
6
6
  export declare const documentStatus: {
7
7
  readonly unclassified: {