@prismicio/editor-fields 0.4.77-alpha.bump-types-internal.3 → 0.4.78
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.
- package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +10 -10
- package/dist/core/APIExplorer/components/Request/MissingParameterError.d.ts +3 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +18 -18
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +2 -2
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +2 -2
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +9 -9
- package/dist/core/service/document.d.ts +50 -50
- package/dist/core/service/documentSearch.d.ts +10 -10
- package/dist/core/service/repository.d.ts +12 -12
- package/dist/fields/ImageField/useImageField.d.ts +2 -2
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +2 -2
- package/dist/fields/LinkField/Documents/documentsData.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +2 -2
- package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
- package/dist/index.cjs.js +46 -46
- package/dist/index.es.js +17216 -17161
- package/package.json +4 -4
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/getFilterSnippet.d.ts +0 -2
|
@@ -66,10 +66,6 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
|
|
|
66
66
|
args: (string | number | boolean | (string | number | boolean)[])[];
|
|
67
67
|
}[] | undefined>;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
repository: {
|
|
70
|
-
id: string;
|
|
71
|
-
accessToken?: string | undefined;
|
|
72
|
-
};
|
|
73
69
|
options: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
|
|
74
70
|
tag?: string | undefined;
|
|
75
71
|
type?: string | undefined;
|
|
@@ -80,19 +76,19 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
|
|
|
80
76
|
tags?: string[] | undefined;
|
|
81
77
|
} | undefined>>;
|
|
82
78
|
type: "get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags";
|
|
79
|
+
repository: {
|
|
80
|
+
id: string;
|
|
81
|
+
accessToken?: string | undefined;
|
|
82
|
+
};
|
|
83
83
|
filters: Filter[];
|
|
84
84
|
pagination: {
|
|
85
85
|
pageSize?: number | undefined;
|
|
86
86
|
page?: number | undefined;
|
|
87
87
|
};
|
|
88
88
|
advanced: boolean;
|
|
89
|
-
lang?: string | undefined;
|
|
90
89
|
ref?: string | undefined;
|
|
90
|
+
lang?: string | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
repository: {
|
|
93
|
-
id: string;
|
|
94
|
-
accessToken?: string | undefined;
|
|
95
|
-
};
|
|
96
92
|
options: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
|
|
97
93
|
tag?: string | undefined;
|
|
98
94
|
type?: string | undefined;
|
|
@@ -103,16 +99,20 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
|
|
|
103
99
|
tags?: string[] | undefined;
|
|
104
100
|
} | undefined>>;
|
|
105
101
|
type: "get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags";
|
|
102
|
+
repository: {
|
|
103
|
+
id: string;
|
|
104
|
+
accessToken?: string | undefined;
|
|
105
|
+
};
|
|
106
106
|
pagination: {
|
|
107
107
|
pageSize?: number | undefined;
|
|
108
108
|
page?: number | undefined;
|
|
109
109
|
};
|
|
110
|
+
ref?: string | undefined;
|
|
110
111
|
filters?: {
|
|
111
112
|
type: "at" | "not" | "any" | "in" | "fulltext" | "has" | "missing" | "similar" | "geopointNear" | "numberLessThan" | "numberGreaterThan" | "numberInRange" | "dateAfter" | "dateBefore" | "dateBetween" | "dateDayOfMonth" | "dateDayOfMonthAfter" | "dateDayOfMonthBefore" | "dateDayOfWeek" | "dateDayOfWeekAfter" | "dateDayOfWeekBefore" | "dateMonth" | "dateMonthAfter" | "dateMonthBefore" | "dateYear" | "dateHour" | "dateHourAfter" | "dateHourBefore";
|
|
112
113
|
args: (string | number | boolean | (string | number | boolean)[])[];
|
|
113
114
|
}[] | undefined;
|
|
114
115
|
lang?: string | undefined;
|
|
115
|
-
ref?: string | undefined;
|
|
116
116
|
advanced?: boolean | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
export type APIExplorerRequestProperties = z.infer<typeof APIExplorerRequestProperties>;
|
|
@@ -54,6 +54,7 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
54
54
|
count?: number | undefined;
|
|
55
55
|
}>, "many">;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
url: string;
|
|
57
58
|
id: string;
|
|
58
59
|
tags: {
|
|
59
60
|
id: string;
|
|
@@ -64,13 +65,12 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
64
65
|
uploader_id?: string | undefined;
|
|
65
66
|
}[];
|
|
66
67
|
size: number;
|
|
67
|
-
url: string;
|
|
68
68
|
kind: string;
|
|
69
69
|
last_modified: number;
|
|
70
70
|
filename: string;
|
|
71
71
|
notes?: string | undefined;
|
|
72
|
-
width?: number | undefined;
|
|
73
72
|
height?: number | undefined;
|
|
73
|
+
width?: number | undefined;
|
|
74
74
|
credits?: string | undefined;
|
|
75
75
|
alt?: string | undefined;
|
|
76
76
|
uploader_id?: string | undefined;
|
|
@@ -82,6 +82,7 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
82
82
|
filename?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
|
+
url: string;
|
|
85
86
|
id: string;
|
|
86
87
|
tags: {
|
|
87
88
|
id: string;
|
|
@@ -92,13 +93,12 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
92
93
|
count?: number | undefined;
|
|
93
94
|
}[];
|
|
94
95
|
size: number;
|
|
95
|
-
url: string;
|
|
96
96
|
kind: string;
|
|
97
97
|
last_modified: number;
|
|
98
98
|
filename: string;
|
|
99
99
|
notes?: string | undefined;
|
|
100
|
-
width?: number | undefined;
|
|
101
100
|
height?: number | undefined;
|
|
101
|
+
width?: number | undefined;
|
|
102
102
|
credits?: string | undefined;
|
|
103
103
|
alt?: string | undefined;
|
|
104
104
|
uploader_id?: string | undefined;
|
|
@@ -169,6 +169,7 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
169
169
|
count?: number | undefined;
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
url: string;
|
|
172
173
|
id: string;
|
|
173
174
|
tags: {
|
|
174
175
|
id: string;
|
|
@@ -179,13 +180,12 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
179
180
|
uploader_id?: string | undefined;
|
|
180
181
|
}[];
|
|
181
182
|
size: number;
|
|
182
|
-
url: string;
|
|
183
183
|
kind: string;
|
|
184
184
|
last_modified: number;
|
|
185
185
|
filename: string;
|
|
186
186
|
notes?: string | undefined;
|
|
187
|
-
width?: number | undefined;
|
|
188
187
|
height?: number | undefined;
|
|
188
|
+
width?: number | undefined;
|
|
189
189
|
credits?: string | undefined;
|
|
190
190
|
alt?: string | undefined;
|
|
191
191
|
uploader_id?: string | undefined;
|
|
@@ -197,6 +197,7 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
197
197
|
filename?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
200
|
+
url: string;
|
|
200
201
|
id: string;
|
|
201
202
|
tags: {
|
|
202
203
|
id: string;
|
|
@@ -207,13 +208,12 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
207
208
|
count?: number | undefined;
|
|
208
209
|
}[];
|
|
209
210
|
size: number;
|
|
210
|
-
url: string;
|
|
211
211
|
kind: string;
|
|
212
212
|
last_modified: number;
|
|
213
213
|
filename: string;
|
|
214
214
|
notes?: string | undefined;
|
|
215
|
-
width?: number | undefined;
|
|
216
215
|
height?: number | undefined;
|
|
216
|
+
width?: number | undefined;
|
|
217
217
|
credits?: string | undefined;
|
|
218
218
|
alt?: string | undefined;
|
|
219
219
|
uploader_id?: string | undefined;
|
|
@@ -228,6 +228,7 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
total: number;
|
|
230
230
|
items: {
|
|
231
|
+
url: string;
|
|
231
232
|
id: string;
|
|
232
233
|
tags: {
|
|
233
234
|
id: string;
|
|
@@ -238,13 +239,12 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
238
239
|
uploader_id?: string | undefined;
|
|
239
240
|
}[];
|
|
240
241
|
size: number;
|
|
241
|
-
url: string;
|
|
242
242
|
kind: string;
|
|
243
243
|
last_modified: number;
|
|
244
244
|
filename: string;
|
|
245
245
|
notes?: string | undefined;
|
|
246
|
-
width?: number | undefined;
|
|
247
246
|
height?: number | undefined;
|
|
247
|
+
width?: number | undefined;
|
|
248
248
|
credits?: string | undefined;
|
|
249
249
|
alt?: string | undefined;
|
|
250
250
|
uploader_id?: string | undefined;
|
|
@@ -260,6 +260,7 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
260
260
|
}, {
|
|
261
261
|
total: number;
|
|
262
262
|
items: {
|
|
263
|
+
url: string;
|
|
263
264
|
id: string;
|
|
264
265
|
tags: {
|
|
265
266
|
id: string;
|
|
@@ -270,13 +271,12 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
270
271
|
count?: number | undefined;
|
|
271
272
|
}[];
|
|
272
273
|
size: number;
|
|
273
|
-
url: string;
|
|
274
274
|
kind: string;
|
|
275
275
|
last_modified: number;
|
|
276
276
|
filename: string;
|
|
277
277
|
notes?: string | undefined;
|
|
278
|
-
width?: number | undefined;
|
|
279
278
|
height?: number | undefined;
|
|
279
|
+
width?: number | undefined;
|
|
280
280
|
credits?: string | undefined;
|
|
281
281
|
alt?: string | undefined;
|
|
282
282
|
uploader_id?: string | undefined;
|
|
@@ -308,6 +308,7 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
308
308
|
page: number;
|
|
309
309
|
total: number;
|
|
310
310
|
items: {
|
|
311
|
+
url: string;
|
|
311
312
|
id: string;
|
|
312
313
|
tags: {
|
|
313
314
|
id: string;
|
|
@@ -318,13 +319,12 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
318
319
|
uploader_id?: string | undefined;
|
|
319
320
|
}[];
|
|
320
321
|
size: number;
|
|
321
|
-
url: string;
|
|
322
322
|
kind: string;
|
|
323
323
|
last_modified: number;
|
|
324
324
|
filename: string;
|
|
325
325
|
notes?: string | undefined;
|
|
326
|
-
width?: number | undefined;
|
|
327
326
|
height?: number | undefined;
|
|
327
|
+
width?: number | undefined;
|
|
328
328
|
credits?: string | undefined;
|
|
329
329
|
alt?: string | undefined;
|
|
330
330
|
uploader_id?: string | undefined;
|
|
@@ -357,6 +357,7 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
357
357
|
setFilters: (filters: Partial<MediaLibraryFilters>) => void;
|
|
358
358
|
resetFilters: () => void;
|
|
359
359
|
media: {
|
|
360
|
+
url: string;
|
|
360
361
|
id: string;
|
|
361
362
|
tags: {
|
|
362
363
|
id: string;
|
|
@@ -367,13 +368,12 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
367
368
|
uploader_id?: string | undefined;
|
|
368
369
|
}[];
|
|
369
370
|
size: number;
|
|
370
|
-
url: string;
|
|
371
371
|
kind: string;
|
|
372
372
|
last_modified: number;
|
|
373
373
|
filename: string;
|
|
374
374
|
notes?: string | undefined;
|
|
375
|
-
width?: number | undefined;
|
|
376
375
|
height?: number | undefined;
|
|
376
|
+
width?: number | undefined;
|
|
377
377
|
credits?: string | undefined;
|
|
378
378
|
alt?: string | undefined;
|
|
379
379
|
uploader_id?: string | undefined;
|
|
@@ -407,6 +407,7 @@ 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
|
+
url: string;
|
|
410
411
|
id: string;
|
|
411
412
|
tags: {
|
|
412
413
|
id: string;
|
|
@@ -417,13 +418,12 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
|
|
|
417
418
|
uploader_id?: string | undefined;
|
|
418
419
|
}[];
|
|
419
420
|
size: number;
|
|
420
|
-
url: string;
|
|
421
421
|
kind: string;
|
|
422
422
|
last_modified: number;
|
|
423
423
|
filename: string;
|
|
424
424
|
notes?: string | undefined;
|
|
425
|
-
width?: number | undefined;
|
|
426
425
|
height?: number | undefined;
|
|
426
|
+
width?: number | undefined;
|
|
427
427
|
credits?: string | undefined;
|
|
428
428
|
alt?: string | undefined;
|
|
429
429
|
uploader_id?: string | undefined;
|
|
@@ -37,6 +37,7 @@ export declare function uploadMedia(params: {
|
|
|
37
37
|
file: File;
|
|
38
38
|
config: EditorConfig;
|
|
39
39
|
}): Promise<{
|
|
40
|
+
url: string;
|
|
40
41
|
id: string;
|
|
41
42
|
tags: {
|
|
42
43
|
id: string;
|
|
@@ -47,13 +48,12 @@ export declare function uploadMedia(params: {
|
|
|
47
48
|
uploader_id?: string | undefined;
|
|
48
49
|
}[];
|
|
49
50
|
size: number;
|
|
50
|
-
url: string;
|
|
51
51
|
kind: string;
|
|
52
52
|
last_modified: number;
|
|
53
53
|
filename: string;
|
|
54
54
|
notes?: string | undefined;
|
|
55
|
-
width?: number | undefined;
|
|
56
55
|
height?: number | undefined;
|
|
56
|
+
width?: number | undefined;
|
|
57
57
|
credits?: string | undefined;
|
|
58
58
|
alt?: string | undefined;
|
|
59
59
|
uploader_id?: string | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
|
+
url: string;
|
|
2
3
|
id: string;
|
|
3
4
|
tags: {
|
|
4
5
|
id: string;
|
|
@@ -9,13 +10,12 @@ export declare function useSelectedMedia(): {
|
|
|
9
10
|
uploader_id?: string | undefined;
|
|
10
11
|
}[];
|
|
11
12
|
size: number;
|
|
12
|
-
url: string;
|
|
13
13
|
kind: string;
|
|
14
14
|
last_modified: number;
|
|
15
15
|
filename: string;
|
|
16
16
|
notes?: string | undefined;
|
|
17
|
-
width?: number | undefined;
|
|
18
17
|
height?: number | undefined;
|
|
18
|
+
width?: number | undefined;
|
|
19
19
|
credits?: string | undefined;
|
|
20
20
|
alt?: string | undefined;
|
|
21
21
|
uploader_id?: string | undefined;
|
|
@@ -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
|
description: string | null;
|
|
20
|
+
height: number;
|
|
20
21
|
id: string;
|
|
21
22
|
width: number;
|
|
22
|
-
height: number;
|
|
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
|
description: string | null;
|
|
30
|
+
height: number;
|
|
30
31
|
id: string;
|
|
31
32
|
width: number;
|
|
32
|
-
height: number;
|
|
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
|
description: string | null;
|
|
58
|
+
height: number;
|
|
58
59
|
id: string;
|
|
59
60
|
width: number;
|
|
60
|
-
height: number;
|
|
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
|
description: string | null;
|
|
68
|
+
height: number;
|
|
68
69
|
id: string;
|
|
69
70
|
width: number;
|
|
70
|
-
height: number;
|
|
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
|
description: string | null;
|
|
80
|
+
height: number;
|
|
80
81
|
id: string;
|
|
81
82
|
width: number;
|
|
82
|
-
height: number;
|
|
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
|
description: string | null;
|
|
92
|
+
height: number;
|
|
92
93
|
id: string;
|
|
93
94
|
width: number;
|
|
94
|
-
height: number;
|
|
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
|
description: string | null;
|
|
103
|
+
height: number;
|
|
103
104
|
id: string;
|
|
104
105
|
width: number;
|
|
105
|
-
height: number;
|
|
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
|
description: string | null;
|
|
114
|
+
height: number;
|
|
114
115
|
id: string;
|
|
115
116
|
width: number;
|
|
116
|
-
height: number;
|
|
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
|
description: string | null;
|
|
128
|
+
height: number;
|
|
128
129
|
id: string;
|
|
129
130
|
width: number;
|
|
130
|
-
height: number;
|
|
131
131
|
urls: {
|
|
132
132
|
small: string;
|
|
133
133
|
full: string;
|