@prismicio/editor-fields 0.4.63-alpha.jp-upgrade-tiptap.0 → 0.4.63
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/MediaLibrary/hooks/mediaLibraryData.d.ts +133 -133
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +6 -6
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +13 -13
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +13 -13
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
- package/dist/core/service/customType.d.ts +9 -9
- package/dist/core/service/document.d.ts +98 -72
- package/dist/core/service/documentSearch.d.ts +10 -29
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/core/service/role.d.ts +10 -10
- package/dist/core/service/user.d.ts +5 -5
- package/dist/fields/ImageField/useImageField.d.ts +13 -13
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +13 -13
- package/dist/fields/LinkField/Documents/documentsData.d.ts +4 -2
- package/dist/fields/LinkField/LinkField.d.ts +1 -1
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +13 -13
- package/dist/fields/RichTextField/extensions/Table/Table.d.ts +18 -0
- package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
- package/dist/fields/TableField/TableField.d.ts +1 -1
- package/dist/index.cjs.js +11 -130
- package/dist/index.es.js +10896 -64751
- package/dist/slices/utils.d.ts +2 -2
- package/package.json +5 -4
|
@@ -21,15 +21,15 @@ 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
|
-
|
|
24
|
+
credits?: string | undefined;
|
|
25
25
|
alt?: string | undefined;
|
|
26
26
|
notes?: string | undefined;
|
|
27
|
-
|
|
27
|
+
filename?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
|
|
29
|
+
credits?: string[] | undefined;
|
|
30
30
|
alt?: string[] | undefined;
|
|
31
31
|
notes?: string[] | undefined;
|
|
32
|
-
|
|
32
|
+
filename?: string[] | undefined;
|
|
33
33
|
}>>;
|
|
34
34
|
tags: z.ZodArray<z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
@@ -39,75 +39,75 @@ 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
|
-
id: string;
|
|
43
42
|
name: string;
|
|
44
|
-
|
|
43
|
+
id: string;
|
|
45
44
|
created_at: number;
|
|
45
|
+
last_modified: number;
|
|
46
46
|
count: number;
|
|
47
47
|
uploader_id?: string | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
id: string;
|
|
50
49
|
name: string;
|
|
51
|
-
|
|
50
|
+
id: string;
|
|
52
51
|
created_at: number;
|
|
52
|
+
last_modified: number;
|
|
53
53
|
uploader_id?: string | undefined;
|
|
54
54
|
count?: number | undefined;
|
|
55
55
|
}>, "many">;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
id: string;
|
|
58
|
-
kind: string;
|
|
59
|
-
url: string;
|
|
60
|
-
size: number;
|
|
61
57
|
tags: {
|
|
62
|
-
id: string;
|
|
63
58
|
name: string;
|
|
64
|
-
|
|
59
|
+
id: string;
|
|
65
60
|
created_at: number;
|
|
61
|
+
last_modified: number;
|
|
66
62
|
count: number;
|
|
67
63
|
uploader_id?: string | undefined;
|
|
68
64
|
}[];
|
|
69
|
-
|
|
65
|
+
id: string;
|
|
66
|
+
url: string;
|
|
67
|
+
kind: string;
|
|
68
|
+
size: number;
|
|
70
69
|
last_modified: number;
|
|
71
|
-
|
|
70
|
+
filename: string;
|
|
72
71
|
width?: number | undefined;
|
|
73
|
-
|
|
72
|
+
height?: number | undefined;
|
|
73
|
+
credits?: string | undefined;
|
|
74
74
|
alt?: string | undefined;
|
|
75
|
-
uploader_id?: string | undefined;
|
|
76
75
|
notes?: string | undefined;
|
|
77
|
-
|
|
76
|
+
uploader_id?: string | undefined;
|
|
77
|
+
extension?: string | undefined;
|
|
78
78
|
search_highlight?: {
|
|
79
|
-
|
|
79
|
+
credits?: string | undefined;
|
|
80
80
|
alt?: string | undefined;
|
|
81
81
|
notes?: string | undefined;
|
|
82
|
-
|
|
82
|
+
filename?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
id: string;
|
|
86
|
-
kind: string;
|
|
87
|
-
url: string;
|
|
88
|
-
size: number;
|
|
89
85
|
tags: {
|
|
90
|
-
id: string;
|
|
91
86
|
name: string;
|
|
92
|
-
|
|
87
|
+
id: string;
|
|
93
88
|
created_at: number;
|
|
89
|
+
last_modified: number;
|
|
94
90
|
uploader_id?: string | undefined;
|
|
95
91
|
count?: number | undefined;
|
|
96
92
|
}[];
|
|
97
|
-
|
|
93
|
+
id: string;
|
|
94
|
+
url: string;
|
|
95
|
+
kind: string;
|
|
96
|
+
size: number;
|
|
98
97
|
last_modified: number;
|
|
99
|
-
|
|
98
|
+
filename: string;
|
|
100
99
|
width?: number | undefined;
|
|
101
|
-
|
|
100
|
+
height?: number | undefined;
|
|
101
|
+
credits?: string | undefined;
|
|
102
102
|
alt?: string | undefined;
|
|
103
|
-
uploader_id?: string | undefined;
|
|
104
103
|
notes?: string | undefined;
|
|
105
|
-
|
|
104
|
+
uploader_id?: string | undefined;
|
|
105
|
+
extension?: string | undefined;
|
|
106
106
|
search_highlight?: {
|
|
107
|
-
|
|
107
|
+
credits?: string[] | undefined;
|
|
108
108
|
alt?: string[] | undefined;
|
|
109
109
|
notes?: string[] | undefined;
|
|
110
|
-
|
|
110
|
+
filename?: string[] | undefined;
|
|
111
111
|
} | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
export declare const assetApiHeaders: {
|
|
@@ -136,15 +136,15 @@ 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
|
-
|
|
139
|
+
credits?: string | undefined;
|
|
140
140
|
alt?: string | undefined;
|
|
141
141
|
notes?: string | undefined;
|
|
142
|
-
|
|
142
|
+
filename?: string | undefined;
|
|
143
143
|
}, {
|
|
144
|
-
|
|
144
|
+
credits?: string[] | undefined;
|
|
145
145
|
alt?: string[] | undefined;
|
|
146
146
|
notes?: string[] | undefined;
|
|
147
|
-
|
|
147
|
+
filename?: string[] | undefined;
|
|
148
148
|
}>>;
|
|
149
149
|
tags: z.ZodArray<z.ZodObject<{
|
|
150
150
|
id: z.ZodString;
|
|
@@ -154,138 +154,138 @@ 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
|
-
id: string;
|
|
158
157
|
name: string;
|
|
159
|
-
|
|
158
|
+
id: string;
|
|
160
159
|
created_at: number;
|
|
160
|
+
last_modified: number;
|
|
161
161
|
count: number;
|
|
162
162
|
uploader_id?: string | undefined;
|
|
163
163
|
}, {
|
|
164
|
-
id: string;
|
|
165
164
|
name: string;
|
|
166
|
-
|
|
165
|
+
id: string;
|
|
167
166
|
created_at: number;
|
|
167
|
+
last_modified: number;
|
|
168
168
|
uploader_id?: string | undefined;
|
|
169
169
|
count?: number | undefined;
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
id: string;
|
|
173
|
-
kind: string;
|
|
174
|
-
url: string;
|
|
175
|
-
size: number;
|
|
176
172
|
tags: {
|
|
177
|
-
id: string;
|
|
178
173
|
name: string;
|
|
179
|
-
|
|
174
|
+
id: string;
|
|
180
175
|
created_at: number;
|
|
176
|
+
last_modified: number;
|
|
181
177
|
count: number;
|
|
182
178
|
uploader_id?: string | undefined;
|
|
183
179
|
}[];
|
|
184
|
-
|
|
180
|
+
id: string;
|
|
181
|
+
url: string;
|
|
182
|
+
kind: string;
|
|
183
|
+
size: number;
|
|
185
184
|
last_modified: number;
|
|
186
|
-
|
|
185
|
+
filename: string;
|
|
187
186
|
width?: number | undefined;
|
|
188
|
-
|
|
187
|
+
height?: number | undefined;
|
|
188
|
+
credits?: string | undefined;
|
|
189
189
|
alt?: string | undefined;
|
|
190
|
-
uploader_id?: string | undefined;
|
|
191
190
|
notes?: string | undefined;
|
|
192
|
-
|
|
191
|
+
uploader_id?: string | undefined;
|
|
192
|
+
extension?: string | undefined;
|
|
193
193
|
search_highlight?: {
|
|
194
|
-
|
|
194
|
+
credits?: string | undefined;
|
|
195
195
|
alt?: string | undefined;
|
|
196
196
|
notes?: string | undefined;
|
|
197
|
-
|
|
197
|
+
filename?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
200
|
-
id: string;
|
|
201
|
-
kind: string;
|
|
202
|
-
url: string;
|
|
203
|
-
size: number;
|
|
204
200
|
tags: {
|
|
205
|
-
id: string;
|
|
206
201
|
name: string;
|
|
207
|
-
|
|
202
|
+
id: string;
|
|
208
203
|
created_at: number;
|
|
204
|
+
last_modified: number;
|
|
209
205
|
uploader_id?: string | undefined;
|
|
210
206
|
count?: number | undefined;
|
|
211
207
|
}[];
|
|
212
|
-
|
|
208
|
+
id: string;
|
|
209
|
+
url: string;
|
|
210
|
+
kind: string;
|
|
211
|
+
size: number;
|
|
213
212
|
last_modified: number;
|
|
214
|
-
|
|
213
|
+
filename: string;
|
|
215
214
|
width?: number | undefined;
|
|
216
|
-
|
|
215
|
+
height?: number | undefined;
|
|
216
|
+
credits?: string | undefined;
|
|
217
217
|
alt?: string | undefined;
|
|
218
|
-
uploader_id?: string | undefined;
|
|
219
218
|
notes?: string | undefined;
|
|
220
|
-
|
|
219
|
+
uploader_id?: string | undefined;
|
|
220
|
+
extension?: string | undefined;
|
|
221
221
|
search_highlight?: {
|
|
222
|
-
|
|
222
|
+
credits?: string[] | undefined;
|
|
223
223
|
alt?: string[] | undefined;
|
|
224
224
|
notes?: string[] | undefined;
|
|
225
|
-
|
|
225
|
+
filename?: string[] | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
}>, "many">;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
total: number;
|
|
230
230
|
items: {
|
|
231
|
-
id: string;
|
|
232
|
-
kind: string;
|
|
233
|
-
url: string;
|
|
234
|
-
size: number;
|
|
235
231
|
tags: {
|
|
236
|
-
id: string;
|
|
237
232
|
name: string;
|
|
238
|
-
|
|
233
|
+
id: string;
|
|
239
234
|
created_at: number;
|
|
235
|
+
last_modified: number;
|
|
240
236
|
count: number;
|
|
241
237
|
uploader_id?: string | undefined;
|
|
242
238
|
}[];
|
|
243
|
-
|
|
239
|
+
id: string;
|
|
240
|
+
url: string;
|
|
241
|
+
kind: string;
|
|
242
|
+
size: number;
|
|
244
243
|
last_modified: number;
|
|
245
|
-
|
|
244
|
+
filename: string;
|
|
246
245
|
width?: number | undefined;
|
|
247
|
-
|
|
246
|
+
height?: number | undefined;
|
|
247
|
+
credits?: string | undefined;
|
|
248
248
|
alt?: string | undefined;
|
|
249
|
-
uploader_id?: string | undefined;
|
|
250
249
|
notes?: string | undefined;
|
|
251
|
-
|
|
250
|
+
uploader_id?: string | undefined;
|
|
251
|
+
extension?: string | undefined;
|
|
252
252
|
search_highlight?: {
|
|
253
|
-
|
|
253
|
+
credits?: string | undefined;
|
|
254
254
|
alt?: string | undefined;
|
|
255
255
|
notes?: string | undefined;
|
|
256
|
-
|
|
256
|
+
filename?: string | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}[];
|
|
259
259
|
cursor?: string | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
total: number;
|
|
262
262
|
items: {
|
|
263
|
-
id: string;
|
|
264
|
-
kind: string;
|
|
265
|
-
url: string;
|
|
266
|
-
size: number;
|
|
267
263
|
tags: {
|
|
268
|
-
id: string;
|
|
269
264
|
name: string;
|
|
270
|
-
|
|
265
|
+
id: string;
|
|
271
266
|
created_at: number;
|
|
267
|
+
last_modified: number;
|
|
272
268
|
uploader_id?: string | undefined;
|
|
273
269
|
count?: number | undefined;
|
|
274
270
|
}[];
|
|
275
|
-
|
|
271
|
+
id: string;
|
|
272
|
+
url: string;
|
|
273
|
+
kind: string;
|
|
274
|
+
size: number;
|
|
276
275
|
last_modified: number;
|
|
277
|
-
|
|
276
|
+
filename: string;
|
|
278
277
|
width?: number | undefined;
|
|
279
|
-
|
|
278
|
+
height?: number | undefined;
|
|
279
|
+
credits?: string | undefined;
|
|
280
280
|
alt?: string | undefined;
|
|
281
|
-
uploader_id?: string | undefined;
|
|
282
281
|
notes?: string | undefined;
|
|
283
|
-
|
|
282
|
+
uploader_id?: string | undefined;
|
|
283
|
+
extension?: string | undefined;
|
|
284
284
|
search_highlight?: {
|
|
285
|
-
|
|
285
|
+
credits?: string[] | undefined;
|
|
286
286
|
alt?: string[] | undefined;
|
|
287
287
|
notes?: string[] | undefined;
|
|
288
|
-
|
|
288
|
+
filename?: 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
|
-
id: string;
|
|
312
|
-
kind: string;
|
|
313
|
-
url: string;
|
|
314
|
-
size: number;
|
|
315
311
|
tags: {
|
|
316
|
-
id: string;
|
|
317
312
|
name: string;
|
|
318
|
-
|
|
313
|
+
id: string;
|
|
319
314
|
created_at: number;
|
|
315
|
+
last_modified: number;
|
|
320
316
|
count: number;
|
|
321
317
|
uploader_id?: string | undefined;
|
|
322
318
|
}[];
|
|
323
|
-
|
|
319
|
+
id: string;
|
|
320
|
+
url: string;
|
|
321
|
+
kind: string;
|
|
322
|
+
size: number;
|
|
324
323
|
last_modified: number;
|
|
325
|
-
|
|
324
|
+
filename: string;
|
|
326
325
|
width?: number | undefined;
|
|
327
|
-
|
|
326
|
+
height?: number | undefined;
|
|
327
|
+
credits?: string | undefined;
|
|
328
328
|
alt?: string | undefined;
|
|
329
|
-
uploader_id?: string | undefined;
|
|
330
329
|
notes?: string | undefined;
|
|
331
|
-
|
|
330
|
+
uploader_id?: string | undefined;
|
|
331
|
+
extension?: string | undefined;
|
|
332
332
|
search_highlight?: {
|
|
333
|
-
|
|
333
|
+
credits?: string | undefined;
|
|
334
334
|
alt?: string | undefined;
|
|
335
335
|
notes?: string | undefined;
|
|
336
|
-
|
|
336
|
+
filename?: 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
|
-
id: string;
|
|
361
|
-
kind: string;
|
|
362
|
-
url: string;
|
|
363
|
-
size: number;
|
|
364
360
|
tags: {
|
|
365
|
-
id: string;
|
|
366
361
|
name: string;
|
|
367
|
-
|
|
362
|
+
id: string;
|
|
368
363
|
created_at: number;
|
|
364
|
+
last_modified: number;
|
|
369
365
|
count: number;
|
|
370
366
|
uploader_id?: string | undefined;
|
|
371
367
|
}[];
|
|
372
|
-
|
|
368
|
+
id: string;
|
|
369
|
+
url: string;
|
|
370
|
+
kind: string;
|
|
371
|
+
size: number;
|
|
373
372
|
last_modified: number;
|
|
374
|
-
|
|
373
|
+
filename: string;
|
|
375
374
|
width?: number | undefined;
|
|
376
|
-
|
|
375
|
+
height?: number | undefined;
|
|
376
|
+
credits?: string | undefined;
|
|
377
377
|
alt?: string | undefined;
|
|
378
|
-
uploader_id?: string | undefined;
|
|
379
378
|
notes?: string | undefined;
|
|
380
|
-
|
|
379
|
+
uploader_id?: string | undefined;
|
|
380
|
+
extension?: string | undefined;
|
|
381
381
|
search_highlight?: {
|
|
382
|
-
|
|
382
|
+
credits?: string | undefined;
|
|
383
383
|
alt?: string | undefined;
|
|
384
384
|
notes?: string | undefined;
|
|
385
|
-
|
|
385
|
+
filename?: 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
|
-
id: string;
|
|
411
|
-
kind: string;
|
|
412
|
-
url: string;
|
|
413
|
-
size: number;
|
|
414
410
|
tags: {
|
|
415
|
-
id: string;
|
|
416
411
|
name: string;
|
|
417
|
-
|
|
412
|
+
id: string;
|
|
418
413
|
created_at: number;
|
|
414
|
+
last_modified: number;
|
|
419
415
|
count: number;
|
|
420
416
|
uploader_id?: string | undefined;
|
|
421
417
|
}[];
|
|
422
|
-
|
|
418
|
+
id: string;
|
|
419
|
+
url: string;
|
|
420
|
+
kind: string;
|
|
421
|
+
size: number;
|
|
423
422
|
last_modified: number;
|
|
424
|
-
|
|
423
|
+
filename: string;
|
|
425
424
|
width?: number | undefined;
|
|
426
|
-
|
|
425
|
+
height?: number | undefined;
|
|
426
|
+
credits?: string | undefined;
|
|
427
427
|
alt?: string | undefined;
|
|
428
|
-
uploader_id?: string | undefined;
|
|
429
428
|
notes?: string | undefined;
|
|
430
|
-
|
|
429
|
+
uploader_id?: string | undefined;
|
|
430
|
+
extension?: string | undefined;
|
|
431
431
|
search_highlight?: {
|
|
432
|
-
|
|
432
|
+
credits?: string | undefined;
|
|
433
433
|
alt?: string | undefined;
|
|
434
434
|
notes?: string | undefined;
|
|
435
|
-
|
|
435
|
+
filename?: string | undefined;
|
|
436
436
|
} | undefined;
|
|
437
437
|
}[];
|
|
438
438
|
interface PageMetadata {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare function useTagSearch(): {
|
|
3
3
|
tags: {
|
|
4
|
-
id: string;
|
|
5
4
|
name: string;
|
|
6
|
-
|
|
5
|
+
id: string;
|
|
7
6
|
created_at: number;
|
|
7
|
+
last_modified: number;
|
|
8
8
|
count: number;
|
|
9
9
|
uploader_id?: string | undefined;
|
|
10
10
|
}[];
|
|
@@ -20,17 +20,17 @@ 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
|
-
id: string;
|
|
24
23
|
name: string;
|
|
25
|
-
|
|
24
|
+
id: string;
|
|
26
25
|
created_at: number;
|
|
26
|
+
last_modified: number;
|
|
27
27
|
count: number;
|
|
28
28
|
uploader_id?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
id: string;
|
|
31
30
|
name: string;
|
|
32
|
-
|
|
31
|
+
id: string;
|
|
33
32
|
created_at: number;
|
|
33
|
+
last_modified: 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
|
-
id: string;
|
|
41
|
-
kind: string;
|
|
42
|
-
url: string;
|
|
43
|
-
size: number;
|
|
44
40
|
tags: {
|
|
45
|
-
id: string;
|
|
46
41
|
name: string;
|
|
47
|
-
|
|
42
|
+
id: string;
|
|
48
43
|
created_at: number;
|
|
44
|
+
last_modified: number;
|
|
49
45
|
count: number;
|
|
50
46
|
uploader_id?: string | undefined;
|
|
51
47
|
}[];
|
|
52
|
-
|
|
48
|
+
id: string;
|
|
49
|
+
url: string;
|
|
50
|
+
kind: string;
|
|
51
|
+
size: number;
|
|
53
52
|
last_modified: number;
|
|
54
|
-
|
|
53
|
+
filename: string;
|
|
55
54
|
width?: number | undefined;
|
|
56
|
-
|
|
55
|
+
height?: number | undefined;
|
|
56
|
+
credits?: string | undefined;
|
|
57
57
|
alt?: string | undefined;
|
|
58
|
-
uploader_id?: string | undefined;
|
|
59
58
|
notes?: string | undefined;
|
|
60
|
-
|
|
59
|
+
uploader_id?: string | undefined;
|
|
60
|
+
extension?: string | undefined;
|
|
61
61
|
search_highlight?: {
|
|
62
|
-
|
|
62
|
+
credits?: string | undefined;
|
|
63
63
|
alt?: string | undefined;
|
|
64
64
|
notes?: string | undefined;
|
|
65
|
-
|
|
65
|
+
filename?: string | undefined;
|
|
66
66
|
} | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
export {};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
|
-
id: string;
|
|
3
|
-
kind: string;
|
|
4
|
-
url: string;
|
|
5
|
-
size: number;
|
|
6
2
|
tags: {
|
|
7
|
-
id: string;
|
|
8
3
|
name: string;
|
|
9
|
-
|
|
4
|
+
id: string;
|
|
10
5
|
created_at: number;
|
|
6
|
+
last_modified: number;
|
|
11
7
|
count: number;
|
|
12
8
|
uploader_id?: string | undefined;
|
|
13
9
|
}[];
|
|
14
|
-
|
|
10
|
+
id: string;
|
|
11
|
+
url: string;
|
|
12
|
+
kind: string;
|
|
13
|
+
size: number;
|
|
15
14
|
last_modified: number;
|
|
16
|
-
|
|
15
|
+
filename: string;
|
|
17
16
|
width?: number | undefined;
|
|
18
|
-
|
|
17
|
+
height?: number | undefined;
|
|
18
|
+
credits?: string | undefined;
|
|
19
19
|
alt?: string | undefined;
|
|
20
|
-
uploader_id?: string | undefined;
|
|
21
20
|
notes?: string | undefined;
|
|
22
|
-
|
|
21
|
+
uploader_id?: string | undefined;
|
|
22
|
+
extension?: string | undefined;
|
|
23
23
|
search_highlight?: {
|
|
24
|
-
|
|
24
|
+
credits?: string | undefined;
|
|
25
25
|
alt?: string | undefined;
|
|
26
26
|
notes?: string | undefined;
|
|
27
|
-
|
|
27
|
+
filename?: string | undefined;
|
|
28
28
|
} | undefined;
|
|
29
29
|
}[];
|