@prismicio/editor-fields 0.4.73 → 0.4.74
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 +4 -4
- package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1 -1
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +84 -84
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +8 -8
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +8 -8
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +9 -9
- package/dist/core/service/customType.d.ts +21 -21
- package/dist/core/service/document.d.ts +115 -115
- package/dist/core/service/documentSearch.d.ts +37 -37
- package/dist/core/service/onboarding.d.ts +3 -3
- package/dist/core/service/repository.d.ts +18 -18
- package/dist/core/service/role.d.ts +64 -64
- package/dist/core/service/user.d.ts +8 -8
- package/dist/fields/ImageField/useImageField.d.ts +8 -8
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +8 -8
- package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
- package/dist/fields/LinkField/Documents/documentsData.d.ts +12 -12
- package/dist/fields/LinkField/LinkField.d.ts +1 -1
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +8 -8
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +8 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +19 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +23 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
- package/dist/fields/RichTextField/extensions/Table/TableView.d.ts +5 -8
- package/dist/fields/RichTextField/extensions/Table/menus/PassthroughTrigger.d.ts +12 -0
- package/dist/fields/RichTextField/extensions/Table/menus/TableColumnMenu.d.ts +6 -4
- package/dist/fields/RichTextField/extensions/Table/menus/TableRowMenu.d.ts +6 -4
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginDef.d.ts +8 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginView.d.ts +34 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginViewClass.d.ts +34 -0
- package/dist/index.cjs.js +35 -35
- package/dist/index.es.js +5424 -5373
- package/dist/slices/utils.d.ts +5 -5
- package/package.json +4 -4
- /package/dist/fields/RichTextField/extensions/Table/{plugins/tableHandles/tableHandlesPluginView.d.ts → TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts} +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles/tableHandlesPlugin.d.ts → TableHandles/TableHandlesPlugin.d.ts} +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles → TableHandles}/index.d.ts +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles → TableHandles}/utils.d.ts +0 -0
|
@@ -27,31 +27,31 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
|
|
|
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
30
|
repository: {
|
|
32
31
|
id: string;
|
|
33
32
|
accessToken?: string | undefined;
|
|
34
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
37
|
pageSize?: number | undefined;
|
|
38
38
|
page?: number | undefined;
|
|
39
39
|
};
|
|
40
|
-
ref?: string | undefined;
|
|
41
40
|
lang?: string | undefined;
|
|
41
|
+
ref?: string | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
|
|
44
43
|
repository: {
|
|
45
44
|
id: string;
|
|
46
45
|
accessToken?: string | undefined;
|
|
47
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
50
|
pageSize?: number | undefined;
|
|
51
51
|
page?: number | undefined;
|
|
52
52
|
};
|
|
53
|
-
ref?: string | undefined;
|
|
54
53
|
lang?: string | undefined;
|
|
54
|
+
ref?: string | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
export type APIExplorerRequestProperties = z.infer<typeof APIExplorerRequestProperties>;
|
|
57
57
|
type APIExplorerRequestMethods = {
|
|
@@ -22,14 +22,14 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
22
22
|
credits: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
notes?: string | undefined;
|
|
25
|
-
credits?: string | undefined;
|
|
26
|
-
alt?: string | undefined;
|
|
27
25
|
filename?: string | undefined;
|
|
26
|
+
alt?: string | undefined;
|
|
27
|
+
credits?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
notes?: string[] | undefined;
|
|
30
|
-
credits?: string[] | undefined;
|
|
31
|
-
alt?: string[] | undefined;
|
|
32
30
|
filename?: string[] | undefined;
|
|
31
|
+
alt?: string[] | undefined;
|
|
32
|
+
credits?: string[] | undefined;
|
|
33
33
|
}>>;
|
|
34
34
|
tags: z.ZodArray<z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
@@ -41,73 +41,73 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
|
-
created_at: number;
|
|
45
44
|
last_modified: number;
|
|
45
|
+
created_at: number;
|
|
46
46
|
count: number;
|
|
47
47
|
uploader_id?: string | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
id: string;
|
|
50
50
|
name: string;
|
|
51
|
-
created_at: number;
|
|
52
51
|
last_modified: number;
|
|
52
|
+
created_at: number;
|
|
53
53
|
uploader_id?: string | undefined;
|
|
54
54
|
count?: number | undefined;
|
|
55
55
|
}>, "many">;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
size: number;
|
|
58
57
|
id: string;
|
|
58
|
+
size: number;
|
|
59
59
|
url: string;
|
|
60
60
|
kind: string;
|
|
61
|
+
filename: string;
|
|
62
|
+
last_modified: number;
|
|
61
63
|
tags: {
|
|
62
64
|
id: string;
|
|
63
65
|
name: string;
|
|
64
|
-
created_at: number;
|
|
65
66
|
last_modified: number;
|
|
67
|
+
created_at: number;
|
|
66
68
|
count: number;
|
|
67
69
|
uploader_id?: string | undefined;
|
|
68
70
|
}[];
|
|
69
|
-
last_modified: number;
|
|
70
|
-
filename: string;
|
|
71
71
|
notes?: string | undefined;
|
|
72
|
+
extension?: string | undefined;
|
|
72
73
|
width?: number | undefined;
|
|
73
74
|
height?: number | undefined;
|
|
74
|
-
credits?: string | undefined;
|
|
75
75
|
alt?: string | undefined;
|
|
76
76
|
uploader_id?: string | undefined;
|
|
77
|
-
|
|
77
|
+
credits?: string | undefined;
|
|
78
78
|
search_highlight?: {
|
|
79
79
|
notes?: string | undefined;
|
|
80
|
-
credits?: string | undefined;
|
|
81
|
-
alt?: string | undefined;
|
|
82
80
|
filename?: string | undefined;
|
|
81
|
+
alt?: string | undefined;
|
|
82
|
+
credits?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
size: number;
|
|
86
85
|
id: string;
|
|
86
|
+
size: number;
|
|
87
87
|
url: string;
|
|
88
88
|
kind: string;
|
|
89
|
+
filename: string;
|
|
90
|
+
last_modified: number;
|
|
89
91
|
tags: {
|
|
90
92
|
id: string;
|
|
91
93
|
name: string;
|
|
92
|
-
created_at: number;
|
|
93
94
|
last_modified: number;
|
|
95
|
+
created_at: number;
|
|
94
96
|
uploader_id?: string | undefined;
|
|
95
97
|
count?: number | undefined;
|
|
96
98
|
}[];
|
|
97
|
-
last_modified: number;
|
|
98
|
-
filename: string;
|
|
99
99
|
notes?: string | undefined;
|
|
100
|
+
extension?: string | undefined;
|
|
100
101
|
width?: number | undefined;
|
|
101
102
|
height?: number | undefined;
|
|
102
|
-
credits?: string | undefined;
|
|
103
103
|
alt?: string | undefined;
|
|
104
104
|
uploader_id?: string | undefined;
|
|
105
|
-
|
|
105
|
+
credits?: string | undefined;
|
|
106
106
|
search_highlight?: {
|
|
107
107
|
notes?: string[] | undefined;
|
|
108
|
-
credits?: string[] | undefined;
|
|
109
|
-
alt?: string[] | undefined;
|
|
110
108
|
filename?: string[] | undefined;
|
|
109
|
+
alt?: string[] | undefined;
|
|
110
|
+
credits?: string[] | undefined;
|
|
111
111
|
} | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
export declare const assetApiHeaders: {
|
|
@@ -137,14 +137,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
137
137
|
credits: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string | undefined, string[] | undefined>;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
notes?: string | undefined;
|
|
140
|
-
credits?: string | undefined;
|
|
141
|
-
alt?: string | undefined;
|
|
142
140
|
filename?: string | undefined;
|
|
141
|
+
alt?: string | undefined;
|
|
142
|
+
credits?: string | undefined;
|
|
143
143
|
}, {
|
|
144
144
|
notes?: string[] | undefined;
|
|
145
|
-
credits?: string[] | undefined;
|
|
146
|
-
alt?: string[] | undefined;
|
|
147
145
|
filename?: string[] | undefined;
|
|
146
|
+
alt?: string[] | undefined;
|
|
147
|
+
credits?: string[] | undefined;
|
|
148
148
|
}>>;
|
|
149
149
|
tags: z.ZodArray<z.ZodObject<{
|
|
150
150
|
id: z.ZodString;
|
|
@@ -156,136 +156,136 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
id: string;
|
|
158
158
|
name: string;
|
|
159
|
-
created_at: number;
|
|
160
159
|
last_modified: number;
|
|
160
|
+
created_at: number;
|
|
161
161
|
count: number;
|
|
162
162
|
uploader_id?: string | undefined;
|
|
163
163
|
}, {
|
|
164
164
|
id: string;
|
|
165
165
|
name: string;
|
|
166
|
-
created_at: number;
|
|
167
166
|
last_modified: number;
|
|
167
|
+
created_at: number;
|
|
168
168
|
uploader_id?: string | undefined;
|
|
169
169
|
count?: number | undefined;
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
size: number;
|
|
173
172
|
id: string;
|
|
173
|
+
size: number;
|
|
174
174
|
url: string;
|
|
175
175
|
kind: string;
|
|
176
|
+
filename: string;
|
|
177
|
+
last_modified: number;
|
|
176
178
|
tags: {
|
|
177
179
|
id: string;
|
|
178
180
|
name: string;
|
|
179
|
-
created_at: number;
|
|
180
181
|
last_modified: number;
|
|
182
|
+
created_at: number;
|
|
181
183
|
count: number;
|
|
182
184
|
uploader_id?: string | undefined;
|
|
183
185
|
}[];
|
|
184
|
-
last_modified: number;
|
|
185
|
-
filename: string;
|
|
186
186
|
notes?: string | undefined;
|
|
187
|
+
extension?: string | undefined;
|
|
187
188
|
width?: number | undefined;
|
|
188
189
|
height?: number | undefined;
|
|
189
|
-
credits?: string | undefined;
|
|
190
190
|
alt?: string | undefined;
|
|
191
191
|
uploader_id?: string | undefined;
|
|
192
|
-
|
|
192
|
+
credits?: string | undefined;
|
|
193
193
|
search_highlight?: {
|
|
194
194
|
notes?: string | undefined;
|
|
195
|
-
credits?: string | undefined;
|
|
196
|
-
alt?: string | undefined;
|
|
197
195
|
filename?: string | undefined;
|
|
196
|
+
alt?: string | undefined;
|
|
197
|
+
credits?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
200
|
-
size: number;
|
|
201
200
|
id: string;
|
|
201
|
+
size: number;
|
|
202
202
|
url: string;
|
|
203
203
|
kind: string;
|
|
204
|
+
filename: string;
|
|
205
|
+
last_modified: number;
|
|
204
206
|
tags: {
|
|
205
207
|
id: string;
|
|
206
208
|
name: string;
|
|
207
|
-
created_at: number;
|
|
208
209
|
last_modified: number;
|
|
210
|
+
created_at: number;
|
|
209
211
|
uploader_id?: string | undefined;
|
|
210
212
|
count?: number | undefined;
|
|
211
213
|
}[];
|
|
212
|
-
last_modified: number;
|
|
213
|
-
filename: string;
|
|
214
214
|
notes?: string | undefined;
|
|
215
|
+
extension?: string | undefined;
|
|
215
216
|
width?: number | undefined;
|
|
216
217
|
height?: number | undefined;
|
|
217
|
-
credits?: string | undefined;
|
|
218
218
|
alt?: string | undefined;
|
|
219
219
|
uploader_id?: string | undefined;
|
|
220
|
-
|
|
220
|
+
credits?: string | undefined;
|
|
221
221
|
search_highlight?: {
|
|
222
222
|
notes?: string[] | undefined;
|
|
223
|
-
credits?: string[] | undefined;
|
|
224
|
-
alt?: string[] | undefined;
|
|
225
223
|
filename?: string[] | undefined;
|
|
224
|
+
alt?: string[] | undefined;
|
|
225
|
+
credits?: string[] | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
}>, "many">;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
total: number;
|
|
230
230
|
items: {
|
|
231
|
-
size: number;
|
|
232
231
|
id: string;
|
|
232
|
+
size: number;
|
|
233
233
|
url: string;
|
|
234
234
|
kind: string;
|
|
235
|
+
filename: string;
|
|
236
|
+
last_modified: number;
|
|
235
237
|
tags: {
|
|
236
238
|
id: string;
|
|
237
239
|
name: string;
|
|
238
|
-
created_at: number;
|
|
239
240
|
last_modified: number;
|
|
241
|
+
created_at: number;
|
|
240
242
|
count: number;
|
|
241
243
|
uploader_id?: string | undefined;
|
|
242
244
|
}[];
|
|
243
|
-
last_modified: number;
|
|
244
|
-
filename: string;
|
|
245
245
|
notes?: string | undefined;
|
|
246
|
+
extension?: string | undefined;
|
|
246
247
|
width?: number | undefined;
|
|
247
248
|
height?: number | undefined;
|
|
248
|
-
credits?: string | undefined;
|
|
249
249
|
alt?: string | undefined;
|
|
250
250
|
uploader_id?: string | undefined;
|
|
251
|
-
|
|
251
|
+
credits?: string | undefined;
|
|
252
252
|
search_highlight?: {
|
|
253
253
|
notes?: string | undefined;
|
|
254
|
-
credits?: string | undefined;
|
|
255
|
-
alt?: string | undefined;
|
|
256
254
|
filename?: string | undefined;
|
|
255
|
+
alt?: string | undefined;
|
|
256
|
+
credits?: string | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}[];
|
|
259
259
|
cursor?: string | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
total: number;
|
|
262
262
|
items: {
|
|
263
|
-
size: number;
|
|
264
263
|
id: string;
|
|
264
|
+
size: number;
|
|
265
265
|
url: string;
|
|
266
266
|
kind: string;
|
|
267
|
+
filename: string;
|
|
268
|
+
last_modified: number;
|
|
267
269
|
tags: {
|
|
268
270
|
id: string;
|
|
269
271
|
name: string;
|
|
270
|
-
created_at: number;
|
|
271
272
|
last_modified: number;
|
|
273
|
+
created_at: number;
|
|
272
274
|
uploader_id?: string | undefined;
|
|
273
275
|
count?: number | undefined;
|
|
274
276
|
}[];
|
|
275
|
-
last_modified: number;
|
|
276
|
-
filename: string;
|
|
277
277
|
notes?: string | undefined;
|
|
278
|
+
extension?: string | undefined;
|
|
278
279
|
width?: number | undefined;
|
|
279
280
|
height?: number | undefined;
|
|
280
|
-
credits?: string | undefined;
|
|
281
281
|
alt?: string | undefined;
|
|
282
282
|
uploader_id?: string | undefined;
|
|
283
|
-
|
|
283
|
+
credits?: string | undefined;
|
|
284
284
|
search_highlight?: {
|
|
285
285
|
notes?: string[] | undefined;
|
|
286
|
-
credits?: string[] | undefined;
|
|
287
|
-
alt?: string[] | undefined;
|
|
288
286
|
filename?: string[] | undefined;
|
|
287
|
+
alt?: string[] | undefined;
|
|
288
|
+
credits?: string[] | undefined;
|
|
289
289
|
} | undefined;
|
|
290
290
|
}[];
|
|
291
291
|
cursor?: string | undefined;
|
|
@@ -308,32 +308,32 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
308
308
|
page: number;
|
|
309
309
|
total: number;
|
|
310
310
|
items: {
|
|
311
|
-
size: number;
|
|
312
311
|
id: string;
|
|
312
|
+
size: number;
|
|
313
313
|
url: string;
|
|
314
314
|
kind: string;
|
|
315
|
+
filename: string;
|
|
316
|
+
last_modified: number;
|
|
315
317
|
tags: {
|
|
316
318
|
id: string;
|
|
317
319
|
name: string;
|
|
318
|
-
created_at: number;
|
|
319
320
|
last_modified: number;
|
|
321
|
+
created_at: number;
|
|
320
322
|
count: number;
|
|
321
323
|
uploader_id?: string | undefined;
|
|
322
324
|
}[];
|
|
323
|
-
last_modified: number;
|
|
324
|
-
filename: string;
|
|
325
325
|
notes?: string | undefined;
|
|
326
|
+
extension?: string | undefined;
|
|
326
327
|
width?: number | undefined;
|
|
327
328
|
height?: number | undefined;
|
|
328
|
-
credits?: string | undefined;
|
|
329
329
|
alt?: string | undefined;
|
|
330
330
|
uploader_id?: string | undefined;
|
|
331
|
-
|
|
331
|
+
credits?: string | undefined;
|
|
332
332
|
search_highlight?: {
|
|
333
333
|
notes?: string | undefined;
|
|
334
|
-
credits?: string | undefined;
|
|
335
|
-
alt?: string | undefined;
|
|
336
334
|
filename?: string | undefined;
|
|
335
|
+
alt?: string | undefined;
|
|
336
|
+
credits?: string | undefined;
|
|
337
337
|
} | undefined;
|
|
338
338
|
}[];
|
|
339
339
|
cursor?: string | undefined;
|
|
@@ -357,32 +357,32 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
357
357
|
setFilters: (filters: Partial<MediaLibraryFilters>) => void;
|
|
358
358
|
resetFilters: () => void;
|
|
359
359
|
media: {
|
|
360
|
-
size: number;
|
|
361
360
|
id: string;
|
|
361
|
+
size: number;
|
|
362
362
|
url: string;
|
|
363
363
|
kind: string;
|
|
364
|
+
filename: string;
|
|
365
|
+
last_modified: number;
|
|
364
366
|
tags: {
|
|
365
367
|
id: string;
|
|
366
368
|
name: string;
|
|
367
|
-
created_at: number;
|
|
368
369
|
last_modified: number;
|
|
370
|
+
created_at: number;
|
|
369
371
|
count: number;
|
|
370
372
|
uploader_id?: string | undefined;
|
|
371
373
|
}[];
|
|
372
|
-
last_modified: number;
|
|
373
|
-
filename: string;
|
|
374
374
|
notes?: string | undefined;
|
|
375
|
+
extension?: string | undefined;
|
|
375
376
|
width?: number | undefined;
|
|
376
377
|
height?: number | undefined;
|
|
377
|
-
credits?: string | undefined;
|
|
378
378
|
alt?: string | undefined;
|
|
379
379
|
uploader_id?: string | undefined;
|
|
380
|
-
|
|
380
|
+
credits?: string | undefined;
|
|
381
381
|
search_highlight?: {
|
|
382
382
|
notes?: string | undefined;
|
|
383
|
-
credits?: string | undefined;
|
|
384
|
-
alt?: string | undefined;
|
|
385
383
|
filename?: string | undefined;
|
|
384
|
+
alt?: string | undefined;
|
|
385
|
+
credits?: string | undefined;
|
|
386
386
|
} | undefined;
|
|
387
387
|
}[];
|
|
388
388
|
mediaTotal: number;
|
|
@@ -407,32 +407,32 @@ 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
|
-
size: number;
|
|
411
410
|
id: string;
|
|
411
|
+
size: number;
|
|
412
412
|
url: string;
|
|
413
413
|
kind: string;
|
|
414
|
+
filename: string;
|
|
415
|
+
last_modified: number;
|
|
414
416
|
tags: {
|
|
415
417
|
id: string;
|
|
416
418
|
name: string;
|
|
417
|
-
created_at: number;
|
|
418
419
|
last_modified: number;
|
|
420
|
+
created_at: number;
|
|
419
421
|
count: number;
|
|
420
422
|
uploader_id?: string | undefined;
|
|
421
423
|
}[];
|
|
422
|
-
last_modified: number;
|
|
423
|
-
filename: string;
|
|
424
424
|
notes?: string | undefined;
|
|
425
|
+
extension?: string | undefined;
|
|
425
426
|
width?: number | undefined;
|
|
426
427
|
height?: number | undefined;
|
|
427
|
-
credits?: string | undefined;
|
|
428
428
|
alt?: string | undefined;
|
|
429
429
|
uploader_id?: string | undefined;
|
|
430
|
-
|
|
430
|
+
credits?: string | undefined;
|
|
431
431
|
search_highlight?: {
|
|
432
432
|
notes?: string | undefined;
|
|
433
|
-
credits?: string | undefined;
|
|
434
|
-
alt?: string | undefined;
|
|
435
433
|
filename?: string | undefined;
|
|
434
|
+
alt?: string | undefined;
|
|
435
|
+
credits?: string | undefined;
|
|
436
436
|
} | undefined;
|
|
437
437
|
}[];
|
|
438
438
|
interface PageMetadata {
|
|
@@ -3,8 +3,8 @@ export declare function useTagSearch(): {
|
|
|
3
3
|
tags: {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
created_at: number;
|
|
7
6
|
last_modified: number;
|
|
7
|
+
created_at: number;
|
|
8
8
|
count: number;
|
|
9
9
|
uploader_id?: string | undefined;
|
|
10
10
|
}[];
|
|
@@ -22,15 +22,15 @@ export declare const tagSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
created_at: number;
|
|
26
25
|
last_modified: number;
|
|
26
|
+
created_at: number;
|
|
27
27
|
count: number;
|
|
28
28
|
uploader_id?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
31
|
name: string;
|
|
32
|
-
created_at: number;
|
|
33
32
|
last_modified: number;
|
|
33
|
+
created_at: number;
|
|
34
34
|
uploader_id?: string | undefined;
|
|
35
35
|
count?: number | undefined;
|
|
36
36
|
}>;
|
|
@@ -37,32 +37,32 @@ export declare function uploadMedia(params: {
|
|
|
37
37
|
file: File;
|
|
38
38
|
config: EditorConfig;
|
|
39
39
|
}): Promise<{
|
|
40
|
-
size: number;
|
|
41
40
|
id: string;
|
|
41
|
+
size: number;
|
|
42
42
|
url: string;
|
|
43
43
|
kind: string;
|
|
44
|
+
filename: string;
|
|
45
|
+
last_modified: number;
|
|
44
46
|
tags: {
|
|
45
47
|
id: string;
|
|
46
48
|
name: string;
|
|
47
|
-
created_at: number;
|
|
48
49
|
last_modified: number;
|
|
50
|
+
created_at: number;
|
|
49
51
|
count: number;
|
|
50
52
|
uploader_id?: string | undefined;
|
|
51
53
|
}[];
|
|
52
|
-
last_modified: number;
|
|
53
|
-
filename: string;
|
|
54
54
|
notes?: string | undefined;
|
|
55
|
+
extension?: string | undefined;
|
|
55
56
|
width?: number | undefined;
|
|
56
57
|
height?: number | undefined;
|
|
57
|
-
credits?: string | undefined;
|
|
58
58
|
alt?: string | undefined;
|
|
59
59
|
uploader_id?: string | undefined;
|
|
60
|
-
|
|
60
|
+
credits?: string | undefined;
|
|
61
61
|
search_highlight?: {
|
|
62
62
|
notes?: string | undefined;
|
|
63
|
-
credits?: string | undefined;
|
|
64
|
-
alt?: string | undefined;
|
|
65
63
|
filename?: string | undefined;
|
|
64
|
+
alt?: string | undefined;
|
|
65
|
+
credits?: string | undefined;
|
|
66
66
|
} | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
export {};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
|
-
size: number;
|
|
3
2
|
id: string;
|
|
3
|
+
size: number;
|
|
4
4
|
url: string;
|
|
5
5
|
kind: string;
|
|
6
|
+
filename: string;
|
|
7
|
+
last_modified: number;
|
|
6
8
|
tags: {
|
|
7
9
|
id: string;
|
|
8
10
|
name: string;
|
|
9
|
-
created_at: number;
|
|
10
11
|
last_modified: number;
|
|
12
|
+
created_at: number;
|
|
11
13
|
count: number;
|
|
12
14
|
uploader_id?: string | undefined;
|
|
13
15
|
}[];
|
|
14
|
-
last_modified: number;
|
|
15
|
-
filename: string;
|
|
16
16
|
notes?: string | undefined;
|
|
17
|
+
extension?: string | undefined;
|
|
17
18
|
width?: number | undefined;
|
|
18
19
|
height?: number | undefined;
|
|
19
|
-
credits?: string | undefined;
|
|
20
20
|
alt?: string | undefined;
|
|
21
21
|
uploader_id?: string | undefined;
|
|
22
|
-
|
|
22
|
+
credits?: string | undefined;
|
|
23
23
|
search_highlight?: {
|
|
24
24
|
notes?: string | undefined;
|
|
25
|
-
credits?: string | undefined;
|
|
26
|
-
alt?: string | undefined;
|
|
27
25
|
filename?: string | undefined;
|
|
26
|
+
alt?: string | undefined;
|
|
27
|
+
credits?: string | undefined;
|
|
28
28
|
} | undefined;
|
|
29
29
|
}[];
|
|
@@ -16,8 +16,8 @@ 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
19
|
id: string;
|
|
20
|
+
description: string | null;
|
|
21
21
|
width: number;
|
|
22
22
|
height: number;
|
|
23
23
|
urls: {
|
|
@@ -26,8 +26,8 @@ declare const unsplashImage: import("zod").ZodObject<{
|
|
|
26
26
|
};
|
|
27
27
|
alt_description?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
description: string | null;
|
|
30
29
|
id: string;
|
|
30
|
+
description: string | null;
|
|
31
31
|
width: number;
|
|
32
32
|
height: number;
|
|
33
33
|
urls: {
|
|
@@ -54,8 +54,8 @@ 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
57
|
id: string;
|
|
58
|
+
description: string | null;
|
|
59
59
|
width: number;
|
|
60
60
|
height: number;
|
|
61
61
|
urls: {
|
|
@@ -64,8 +64,8 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
64
64
|
};
|
|
65
65
|
alt_description?: string | undefined;
|
|
66
66
|
}, {
|
|
67
|
-
description: string | null;
|
|
68
67
|
id: string;
|
|
68
|
+
description: string | null;
|
|
69
69
|
width: number;
|
|
70
70
|
height: number;
|
|
71
71
|
urls: {
|
|
@@ -76,8 +76,8 @@ 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
79
|
id: string;
|
|
80
|
+
description: string | null;
|
|
81
81
|
width: number;
|
|
82
82
|
height: number;
|
|
83
83
|
urls: {
|
|
@@ -88,8 +88,8 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
88
88
|
}[];
|
|
89
89
|
}, {
|
|
90
90
|
results: {
|
|
91
|
-
description: string | null;
|
|
92
91
|
id: string;
|
|
92
|
+
description: string | null;
|
|
93
93
|
width: number;
|
|
94
94
|
height: number;
|
|
95
95
|
urls: {
|
|
@@ -99,8 +99,8 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
99
99
|
alt_description?: string | undefined;
|
|
100
100
|
}[];
|
|
101
101
|
}>, {
|
|
102
|
-
description: string | null;
|
|
103
102
|
id: string;
|
|
103
|
+
description: string | null;
|
|
104
104
|
width: number;
|
|
105
105
|
height: number;
|
|
106
106
|
urls: {
|
|
@@ -110,8 +110,8 @@ 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
113
|
id: string;
|
|
114
|
+
description: string | null;
|
|
115
115
|
width: number;
|
|
116
116
|
height: number;
|
|
117
117
|
urls: {
|
|
@@ -124,8 +124,8 @@ 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
127
|
id: string;
|
|
128
|
+
description: string | null;
|
|
129
129
|
width: number;
|
|
130
130
|
height: number;
|
|
131
131
|
urls: {
|