@prismicio/editor-fields 0.4.62-alpha.jp-table-render-default-layout.2 → 0.4.63-alpha.jp-upgrade-tiptap.0
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 +97 -97
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +6 -6
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +9 -9
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +9 -9
- package/dist/core/service/customType.d.ts +18 -18
- package/dist/core/service/document.d.ts +121 -121
- package/dist/core/service/documentSearch.d.ts +20 -20
- 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 +9 -9
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +9 -9
- package/dist/fields/LinkField/Documents/DocumentCard.d.ts +2 -0
- package/dist/fields/LinkField/Documents/documentsData.d.ts +8 -8
- package/dist/fields/LinkField/LinkField.d.ts +1 -1
- package/dist/fields/RichTextField/BubbleMenu/BubbleMenu.d.ts +1 -0
- package/dist/fields/RichTextField/coreExtensions/HardBreak.d.ts +1 -1
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +5 -5
- package/dist/fields/RichTextField/coreExtensions/Text.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Bold/BoldModel.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +9 -9
- package/dist/fields/RichTextField/extensions/Italic/ItalicModel.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Label/LabelModel.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Link/Link.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +1 -1
- package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +1 -1
- package/dist/fields/RichTextField/models/EditorExtension.d.ts +1 -1
- package/dist/fields/RichTextField/models/helpers/NodeUtils.d.ts +1 -1
- package/dist/index.cjs.js +42 -42
- package/dist/index.es.js +10595 -10540
- package/package.json +26 -27
|
@@ -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
|
+
filename?: string | undefined;
|
|
25
25
|
alt?: string | undefined;
|
|
26
26
|
notes?: string | undefined;
|
|
27
|
-
|
|
27
|
+
credits?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
|
|
29
|
+
filename?: string[] | undefined;
|
|
30
30
|
alt?: string[] | undefined;
|
|
31
31
|
notes?: string[] | undefined;
|
|
32
|
-
|
|
32
|
+
credits?: 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
|
-
name: string;
|
|
43
42
|
id: string;
|
|
44
|
-
|
|
43
|
+
name: string;
|
|
45
44
|
last_modified: number;
|
|
45
|
+
created_at: number;
|
|
46
46
|
count: number;
|
|
47
47
|
uploader_id?: string | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
name: string;
|
|
50
49
|
id: string;
|
|
51
|
-
|
|
50
|
+
name: string;
|
|
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
|
-
kind: string;
|
|
58
57
|
id: string;
|
|
58
|
+
kind: string;
|
|
59
59
|
url: string;
|
|
60
60
|
size: number;
|
|
61
61
|
tags: {
|
|
62
|
-
name: string;
|
|
63
62
|
id: string;
|
|
64
|
-
|
|
63
|
+
name: string;
|
|
65
64
|
last_modified: number;
|
|
65
|
+
created_at: number;
|
|
66
66
|
count: number;
|
|
67
67
|
uploader_id?: string | undefined;
|
|
68
68
|
}[];
|
|
69
|
-
last_modified: number;
|
|
70
69
|
filename: string;
|
|
70
|
+
last_modified: number;
|
|
71
71
|
height?: number | undefined;
|
|
72
72
|
width?: number | undefined;
|
|
73
|
-
|
|
73
|
+
extension?: string | undefined;
|
|
74
74
|
alt?: string | undefined;
|
|
75
|
-
notes?: string | undefined;
|
|
76
75
|
uploader_id?: string | undefined;
|
|
77
|
-
|
|
76
|
+
notes?: string | undefined;
|
|
77
|
+
credits?: string | undefined;
|
|
78
78
|
search_highlight?: {
|
|
79
|
-
|
|
79
|
+
filename?: string | undefined;
|
|
80
80
|
alt?: string | undefined;
|
|
81
81
|
notes?: string | undefined;
|
|
82
|
-
|
|
82
|
+
credits?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
kind: string;
|
|
86
85
|
id: string;
|
|
86
|
+
kind: string;
|
|
87
87
|
url: string;
|
|
88
88
|
size: number;
|
|
89
89
|
tags: {
|
|
90
|
-
name: string;
|
|
91
90
|
id: string;
|
|
92
|
-
|
|
91
|
+
name: string;
|
|
93
92
|
last_modified: number;
|
|
93
|
+
created_at: number;
|
|
94
94
|
uploader_id?: string | undefined;
|
|
95
95
|
count?: number | undefined;
|
|
96
96
|
}[];
|
|
97
|
-
last_modified: number;
|
|
98
97
|
filename: string;
|
|
98
|
+
last_modified: number;
|
|
99
99
|
height?: number | undefined;
|
|
100
100
|
width?: number | undefined;
|
|
101
|
-
|
|
101
|
+
extension?: string | undefined;
|
|
102
102
|
alt?: string | undefined;
|
|
103
|
-
notes?: string | undefined;
|
|
104
103
|
uploader_id?: string | undefined;
|
|
105
|
-
|
|
104
|
+
notes?: string | undefined;
|
|
105
|
+
credits?: string | undefined;
|
|
106
106
|
search_highlight?: {
|
|
107
|
-
|
|
107
|
+
filename?: string[] | undefined;
|
|
108
108
|
alt?: string[] | undefined;
|
|
109
109
|
notes?: string[] | undefined;
|
|
110
|
-
|
|
110
|
+
credits?: 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
|
+
filename?: string | undefined;
|
|
140
140
|
alt?: string | undefined;
|
|
141
141
|
notes?: string | undefined;
|
|
142
|
-
|
|
142
|
+
credits?: string | undefined;
|
|
143
143
|
}, {
|
|
144
|
-
|
|
144
|
+
filename?: string[] | undefined;
|
|
145
145
|
alt?: string[] | undefined;
|
|
146
146
|
notes?: string[] | undefined;
|
|
147
|
-
|
|
147
|
+
credits?: 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
|
-
name: string;
|
|
158
157
|
id: string;
|
|
159
|
-
|
|
158
|
+
name: string;
|
|
160
159
|
last_modified: number;
|
|
160
|
+
created_at: number;
|
|
161
161
|
count: number;
|
|
162
162
|
uploader_id?: string | undefined;
|
|
163
163
|
}, {
|
|
164
|
-
name: string;
|
|
165
164
|
id: string;
|
|
166
|
-
|
|
165
|
+
name: string;
|
|
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
|
-
kind: string;
|
|
173
172
|
id: string;
|
|
173
|
+
kind: string;
|
|
174
174
|
url: string;
|
|
175
175
|
size: number;
|
|
176
176
|
tags: {
|
|
177
|
-
name: string;
|
|
178
177
|
id: string;
|
|
179
|
-
|
|
178
|
+
name: string;
|
|
180
179
|
last_modified: number;
|
|
180
|
+
created_at: number;
|
|
181
181
|
count: number;
|
|
182
182
|
uploader_id?: string | undefined;
|
|
183
183
|
}[];
|
|
184
|
-
last_modified: number;
|
|
185
184
|
filename: string;
|
|
185
|
+
last_modified: number;
|
|
186
186
|
height?: number | undefined;
|
|
187
187
|
width?: number | undefined;
|
|
188
|
-
|
|
188
|
+
extension?: string | undefined;
|
|
189
189
|
alt?: string | undefined;
|
|
190
|
-
notes?: string | undefined;
|
|
191
190
|
uploader_id?: string | undefined;
|
|
192
|
-
|
|
191
|
+
notes?: string | undefined;
|
|
192
|
+
credits?: string | undefined;
|
|
193
193
|
search_highlight?: {
|
|
194
|
-
|
|
194
|
+
filename?: string | undefined;
|
|
195
195
|
alt?: string | undefined;
|
|
196
196
|
notes?: string | undefined;
|
|
197
|
-
|
|
197
|
+
credits?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
200
|
-
kind: string;
|
|
201
200
|
id: string;
|
|
201
|
+
kind: string;
|
|
202
202
|
url: string;
|
|
203
203
|
size: number;
|
|
204
204
|
tags: {
|
|
205
|
-
name: string;
|
|
206
205
|
id: string;
|
|
207
|
-
|
|
206
|
+
name: string;
|
|
208
207
|
last_modified: number;
|
|
208
|
+
created_at: number;
|
|
209
209
|
uploader_id?: string | undefined;
|
|
210
210
|
count?: number | undefined;
|
|
211
211
|
}[];
|
|
212
|
-
last_modified: number;
|
|
213
212
|
filename: string;
|
|
213
|
+
last_modified: number;
|
|
214
214
|
height?: number | undefined;
|
|
215
215
|
width?: number | undefined;
|
|
216
|
-
|
|
216
|
+
extension?: string | undefined;
|
|
217
217
|
alt?: string | undefined;
|
|
218
|
-
notes?: string | undefined;
|
|
219
218
|
uploader_id?: string | undefined;
|
|
220
|
-
|
|
219
|
+
notes?: string | undefined;
|
|
220
|
+
credits?: string | undefined;
|
|
221
221
|
search_highlight?: {
|
|
222
|
-
|
|
222
|
+
filename?: string[] | undefined;
|
|
223
223
|
alt?: string[] | undefined;
|
|
224
224
|
notes?: string[] | undefined;
|
|
225
|
-
|
|
225
|
+
credits?: string[] | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
}>, "many">;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
total: number;
|
|
230
230
|
items: {
|
|
231
|
-
kind: string;
|
|
232
231
|
id: string;
|
|
232
|
+
kind: string;
|
|
233
233
|
url: string;
|
|
234
234
|
size: number;
|
|
235
235
|
tags: {
|
|
236
|
-
name: string;
|
|
237
236
|
id: string;
|
|
238
|
-
|
|
237
|
+
name: string;
|
|
239
238
|
last_modified: number;
|
|
239
|
+
created_at: number;
|
|
240
240
|
count: number;
|
|
241
241
|
uploader_id?: string | undefined;
|
|
242
242
|
}[];
|
|
243
|
-
last_modified: number;
|
|
244
243
|
filename: string;
|
|
244
|
+
last_modified: number;
|
|
245
245
|
height?: number | undefined;
|
|
246
246
|
width?: number | undefined;
|
|
247
|
-
|
|
247
|
+
extension?: string | undefined;
|
|
248
248
|
alt?: string | undefined;
|
|
249
|
-
notes?: string | undefined;
|
|
250
249
|
uploader_id?: string | undefined;
|
|
251
|
-
|
|
250
|
+
notes?: string | undefined;
|
|
251
|
+
credits?: string | undefined;
|
|
252
252
|
search_highlight?: {
|
|
253
|
-
|
|
253
|
+
filename?: string | undefined;
|
|
254
254
|
alt?: string | undefined;
|
|
255
255
|
notes?: string | undefined;
|
|
256
|
-
|
|
256
|
+
credits?: string | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}[];
|
|
259
259
|
cursor?: string | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
total: number;
|
|
262
262
|
items: {
|
|
263
|
-
kind: string;
|
|
264
263
|
id: string;
|
|
264
|
+
kind: string;
|
|
265
265
|
url: string;
|
|
266
266
|
size: number;
|
|
267
267
|
tags: {
|
|
268
|
-
name: string;
|
|
269
268
|
id: string;
|
|
270
|
-
|
|
269
|
+
name: string;
|
|
271
270
|
last_modified: number;
|
|
271
|
+
created_at: number;
|
|
272
272
|
uploader_id?: string | undefined;
|
|
273
273
|
count?: number | undefined;
|
|
274
274
|
}[];
|
|
275
|
-
last_modified: number;
|
|
276
275
|
filename: string;
|
|
276
|
+
last_modified: number;
|
|
277
277
|
height?: number | undefined;
|
|
278
278
|
width?: number | undefined;
|
|
279
|
-
|
|
279
|
+
extension?: string | undefined;
|
|
280
280
|
alt?: string | undefined;
|
|
281
|
-
notes?: string | undefined;
|
|
282
281
|
uploader_id?: string | undefined;
|
|
283
|
-
|
|
282
|
+
notes?: string | undefined;
|
|
283
|
+
credits?: string | undefined;
|
|
284
284
|
search_highlight?: {
|
|
285
|
-
|
|
285
|
+
filename?: string[] | undefined;
|
|
286
286
|
alt?: string[] | undefined;
|
|
287
287
|
notes?: string[] | undefined;
|
|
288
|
-
|
|
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
|
-
kind: string;
|
|
312
311
|
id: string;
|
|
312
|
+
kind: string;
|
|
313
313
|
url: string;
|
|
314
314
|
size: number;
|
|
315
315
|
tags: {
|
|
316
|
-
name: string;
|
|
317
316
|
id: string;
|
|
318
|
-
|
|
317
|
+
name: string;
|
|
319
318
|
last_modified: number;
|
|
319
|
+
created_at: number;
|
|
320
320
|
count: number;
|
|
321
321
|
uploader_id?: string | undefined;
|
|
322
322
|
}[];
|
|
323
|
-
last_modified: number;
|
|
324
323
|
filename: string;
|
|
324
|
+
last_modified: number;
|
|
325
325
|
height?: number | undefined;
|
|
326
326
|
width?: number | undefined;
|
|
327
|
-
|
|
327
|
+
extension?: string | undefined;
|
|
328
328
|
alt?: string | undefined;
|
|
329
|
-
notes?: string | undefined;
|
|
330
329
|
uploader_id?: string | undefined;
|
|
331
|
-
|
|
330
|
+
notes?: string | undefined;
|
|
331
|
+
credits?: string | undefined;
|
|
332
332
|
search_highlight?: {
|
|
333
|
-
|
|
333
|
+
filename?: string | undefined;
|
|
334
334
|
alt?: string | undefined;
|
|
335
335
|
notes?: string | undefined;
|
|
336
|
-
|
|
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
|
-
kind: string;
|
|
361
360
|
id: string;
|
|
361
|
+
kind: string;
|
|
362
362
|
url: string;
|
|
363
363
|
size: number;
|
|
364
364
|
tags: {
|
|
365
|
-
name: string;
|
|
366
365
|
id: string;
|
|
367
|
-
|
|
366
|
+
name: string;
|
|
368
367
|
last_modified: number;
|
|
368
|
+
created_at: number;
|
|
369
369
|
count: number;
|
|
370
370
|
uploader_id?: string | undefined;
|
|
371
371
|
}[];
|
|
372
|
-
last_modified: number;
|
|
373
372
|
filename: string;
|
|
373
|
+
last_modified: number;
|
|
374
374
|
height?: number | undefined;
|
|
375
375
|
width?: number | undefined;
|
|
376
|
-
|
|
376
|
+
extension?: string | undefined;
|
|
377
377
|
alt?: string | undefined;
|
|
378
|
-
notes?: string | undefined;
|
|
379
378
|
uploader_id?: string | undefined;
|
|
380
|
-
|
|
379
|
+
notes?: string | undefined;
|
|
380
|
+
credits?: string | undefined;
|
|
381
381
|
search_highlight?: {
|
|
382
|
-
|
|
382
|
+
filename?: string | undefined;
|
|
383
383
|
alt?: string | undefined;
|
|
384
384
|
notes?: string | undefined;
|
|
385
|
-
|
|
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
|
-
kind: string;
|
|
411
410
|
id: string;
|
|
411
|
+
kind: string;
|
|
412
412
|
url: string;
|
|
413
413
|
size: number;
|
|
414
414
|
tags: {
|
|
415
|
-
name: string;
|
|
416
415
|
id: string;
|
|
417
|
-
|
|
416
|
+
name: string;
|
|
418
417
|
last_modified: number;
|
|
418
|
+
created_at: number;
|
|
419
419
|
count: number;
|
|
420
420
|
uploader_id?: string | undefined;
|
|
421
421
|
}[];
|
|
422
|
-
last_modified: number;
|
|
423
422
|
filename: string;
|
|
423
|
+
last_modified: number;
|
|
424
424
|
height?: number | undefined;
|
|
425
425
|
width?: number | undefined;
|
|
426
|
-
|
|
426
|
+
extension?: string | undefined;
|
|
427
427
|
alt?: string | undefined;
|
|
428
|
-
notes?: string | undefined;
|
|
429
428
|
uploader_id?: string | undefined;
|
|
430
|
-
|
|
429
|
+
notes?: string | undefined;
|
|
430
|
+
credits?: string | undefined;
|
|
431
431
|
search_highlight?: {
|
|
432
|
-
|
|
432
|
+
filename?: string | undefined;
|
|
433
433
|
alt?: string | undefined;
|
|
434
434
|
notes?: string | undefined;
|
|
435
|
-
|
|
435
|
+
credits?: 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
|
-
name: string;
|
|
5
4
|
id: string;
|
|
6
|
-
|
|
5
|
+
name: string;
|
|
7
6
|
last_modified: number;
|
|
7
|
+
created_at: 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
|
-
name: string;
|
|
24
23
|
id: string;
|
|
25
|
-
|
|
24
|
+
name: string;
|
|
26
25
|
last_modified: number;
|
|
26
|
+
created_at: number;
|
|
27
27
|
count: number;
|
|
28
28
|
uploader_id?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
name: string;
|
|
31
30
|
id: string;
|
|
32
|
-
|
|
31
|
+
name: string;
|
|
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
|
-
kind: string;
|
|
41
40
|
id: string;
|
|
41
|
+
kind: string;
|
|
42
42
|
url: string;
|
|
43
43
|
size: number;
|
|
44
44
|
tags: {
|
|
45
|
-
name: string;
|
|
46
45
|
id: string;
|
|
47
|
-
|
|
46
|
+
name: string;
|
|
48
47
|
last_modified: number;
|
|
48
|
+
created_at: number;
|
|
49
49
|
count: number;
|
|
50
50
|
uploader_id?: string | undefined;
|
|
51
51
|
}[];
|
|
52
|
-
last_modified: number;
|
|
53
52
|
filename: string;
|
|
53
|
+
last_modified: number;
|
|
54
54
|
height?: number | undefined;
|
|
55
55
|
width?: number | undefined;
|
|
56
|
-
|
|
56
|
+
extension?: string | undefined;
|
|
57
57
|
alt?: string | undefined;
|
|
58
|
-
notes?: string | undefined;
|
|
59
58
|
uploader_id?: string | undefined;
|
|
60
|
-
|
|
59
|
+
notes?: string | undefined;
|
|
60
|
+
credits?: string | undefined;
|
|
61
61
|
search_highlight?: {
|
|
62
|
-
|
|
62
|
+
filename?: string | undefined;
|
|
63
63
|
alt?: string | undefined;
|
|
64
64
|
notes?: string | undefined;
|
|
65
|
-
|
|
65
|
+
credits?: string | undefined;
|
|
66
66
|
} | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
export {};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
|
-
kind: string;
|
|
3
2
|
id: string;
|
|
3
|
+
kind: string;
|
|
4
4
|
url: string;
|
|
5
5
|
size: number;
|
|
6
6
|
tags: {
|
|
7
|
-
name: string;
|
|
8
7
|
id: string;
|
|
9
|
-
|
|
8
|
+
name: string;
|
|
10
9
|
last_modified: number;
|
|
10
|
+
created_at: number;
|
|
11
11
|
count: number;
|
|
12
12
|
uploader_id?: string | undefined;
|
|
13
13
|
}[];
|
|
14
|
-
last_modified: number;
|
|
15
14
|
filename: string;
|
|
15
|
+
last_modified: number;
|
|
16
16
|
height?: number | undefined;
|
|
17
17
|
width?: number | undefined;
|
|
18
|
-
|
|
18
|
+
extension?: string | undefined;
|
|
19
19
|
alt?: string | undefined;
|
|
20
|
-
notes?: string | undefined;
|
|
21
20
|
uploader_id?: string | undefined;
|
|
22
|
-
|
|
21
|
+
notes?: string | undefined;
|
|
22
|
+
credits?: string | undefined;
|
|
23
23
|
search_highlight?: {
|
|
24
|
-
|
|
24
|
+
filename?: string | undefined;
|
|
25
25
|
alt?: string | undefined;
|
|
26
26
|
notes?: string | undefined;
|
|
27
|
-
|
|
27
|
+
credits?: string | undefined;
|
|
28
28
|
} | undefined;
|
|
29
29
|
}[];
|
|
@@ -7,15 +7,15 @@ declare const CustomType: z.ZodObject<{
|
|
|
7
7
|
repeatable: z.ZodBoolean;
|
|
8
8
|
status: z.ZodBoolean;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
label: string;
|
|
11
10
|
id: string;
|
|
12
|
-
|
|
11
|
+
label: string;
|
|
13
12
|
status: boolean;
|
|
13
|
+
repeatable: boolean;
|
|
14
14
|
}, {
|
|
15
|
-
label: string;
|
|
16
15
|
id: string;
|
|
17
|
-
|
|
16
|
+
label: string;
|
|
18
17
|
status: boolean;
|
|
18
|
+
repeatable: boolean;
|
|
19
19
|
}>;
|
|
20
20
|
export type CustomType = z.TypeOf<typeof CustomType>;
|
|
21
21
|
interface CustomTypesOptionsArgs {
|
|
@@ -24,51 +24,51 @@ interface CustomTypesOptionsArgs {
|
|
|
24
24
|
authStrategy: AuthStrategy;
|
|
25
25
|
}
|
|
26
26
|
export declare function getCustomTypesOptions(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
27
|
-
label: string;
|
|
28
27
|
id: string;
|
|
29
|
-
|
|
28
|
+
label: string;
|
|
30
29
|
status: boolean;
|
|
30
|
+
repeatable: boolean;
|
|
31
31
|
}[], Error, {
|
|
32
|
-
label: string;
|
|
33
32
|
id: string;
|
|
34
|
-
|
|
33
|
+
label: string;
|
|
35
34
|
status: boolean;
|
|
35
|
+
repeatable: boolean;
|
|
36
36
|
}[], string[]> & {
|
|
37
37
|
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
38
|
-
label: string;
|
|
39
38
|
id: string;
|
|
40
|
-
|
|
39
|
+
label: string;
|
|
41
40
|
status: boolean;
|
|
41
|
+
repeatable: boolean;
|
|
42
42
|
}[]> | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
|
|
45
|
-
label: string;
|
|
46
45
|
id: string;
|
|
47
|
-
|
|
46
|
+
label: string;
|
|
48
47
|
status: boolean;
|
|
48
|
+
repeatable: boolean;
|
|
49
49
|
}[]>;
|
|
50
50
|
};
|
|
51
51
|
export declare function prefetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): void;
|
|
52
52
|
export declare function fetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<{
|
|
53
|
-
label: string;
|
|
54
53
|
id: string;
|
|
55
|
-
|
|
54
|
+
label: string;
|
|
56
55
|
status: boolean;
|
|
56
|
+
repeatable: boolean;
|
|
57
57
|
}[]>;
|
|
58
58
|
export declare function useCustomTypes(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
|
|
59
|
-
label: string;
|
|
60
59
|
id: string;
|
|
61
|
-
|
|
60
|
+
label: string;
|
|
62
61
|
status: boolean;
|
|
62
|
+
repeatable: boolean;
|
|
63
63
|
}[], Error>;
|
|
64
64
|
interface CustomTypeOptionsArgs extends CustomTypesOptionsArgs {
|
|
65
65
|
id: string;
|
|
66
66
|
}
|
|
67
67
|
export declare function useCustomType(args: CustomTypeOptionsArgs): {
|
|
68
|
-
label: string;
|
|
69
68
|
id: string;
|
|
70
|
-
|
|
69
|
+
label: string;
|
|
71
70
|
status: boolean;
|
|
71
|
+
repeatable: boolean;
|
|
72
72
|
};
|
|
73
73
|
export declare function invalidateCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<void>;
|
|
74
74
|
export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
|