@prismicio/editor-fields 0.4.57 → 0.4.58-alpha.repeatable-link-base.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/EditorConfig.d.ts +2 -0
- package/dist/FieldContext.d.ts +5 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +62 -62
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +6 -6
- package/dist/core/service/customType.d.ts +13 -0
- package/dist/core/service/document.d.ts +1669 -418
- package/dist/core/service/documentSearch.d.ts +214 -0
- package/dist/core/service/index.d.ts +2 -0
- package/dist/core/service/repository.d.ts +29 -21
- package/dist/core/service/teamSpace.d.ts +48 -0
- package/dist/core/service/user.d.ts +112 -6
- package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
- package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -1
- package/dist/fields/LinkField/Documents/documentsData.d.ts +73 -44
- package/dist/fields/LinkField/LinkField.d.ts +4 -3
- package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +12 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +11 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +11 -0
- package/dist/fields/LinkField/RepeatableLinkField/index.d.ts +1 -0
- package/dist/fields/LinkField/RepeatableLinkField/useRepeatableLinkField.d.ts +84 -0
- package/dist/fields/LinkField/index.d.ts +1 -0
- package/dist/fields/LinkField/useLinkField.d.ts +6 -3
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +6 -6
- package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +2 -2
- package/dist/index.cjs.js +37 -39
- package/dist/index.es.js +25902 -22602
- package/dist/slices/utils.d.ts +101 -27
- package/package.json +25 -24
- package/dist/fields/LinkField/RepeatableLinkField.d.ts +0 -12
- package/dist/fields/RichTextField/extensions/Image/ImageLinkControl.d.ts +0 -9
package/dist/EditorConfig.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ type SearchDocuments = {
|
|
|
39
39
|
localeId?: string;
|
|
40
40
|
customTypeId?: string;
|
|
41
41
|
documentSearchBaseUrl: URL;
|
|
42
|
+
searchDocumentsWithInterestingVersions: boolean;
|
|
42
43
|
};
|
|
43
44
|
type IntegrationFields = {
|
|
44
45
|
integrationFields?: never;
|
|
@@ -77,6 +78,7 @@ interface OnAnalyticsEvent {
|
|
|
77
78
|
type: "web" | "media" | "document";
|
|
78
79
|
isInSlice: string;
|
|
79
80
|
isInGroup: string;
|
|
81
|
+
inInRepeatable: string;
|
|
80
82
|
customTypeFormat: "page" | "custom";
|
|
81
83
|
}): void;
|
|
82
84
|
(event: "Unsplash Image Searched" | "Unsplash Image Added"): void;
|
package/dist/FieldContext.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface FieldContextValue {
|
|
|
5
5
|
customTypeFormat: CustomTypeFormat;
|
|
6
6
|
isInSlice: boolean;
|
|
7
7
|
isInGroup: boolean;
|
|
8
|
+
isInRepeatable: boolean;
|
|
8
9
|
}
|
|
9
10
|
interface RootFieldContextProviderProps {
|
|
10
11
|
customTypeFormat: CustomTypeFormat;
|
|
@@ -23,5 +24,9 @@ export declare function FieldInSliceContextProvider(props: PropsWithChildren): J
|
|
|
23
24
|
* Overrides the field context to indicate that the field is in a group.
|
|
24
25
|
*/
|
|
25
26
|
export declare function FieldInGroupContextProvider(props: PropsWithChildren): JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* Overrides the field context to indicate that the field is repeatable.
|
|
29
|
+
*/
|
|
30
|
+
export declare function FieldInRepeatableContextProvider(props: PropsWithChildren): JSX.Element;
|
|
26
31
|
export declare function useFieldContext(): FieldContextValue | undefined;
|
|
27
32
|
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;
|
|
24
25
|
filename?: string | undefined;
|
|
25
26
|
alt?: string | undefined;
|
|
26
|
-
notes?: string | undefined;
|
|
27
27
|
credits?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
+
notes?: string[] | undefined;
|
|
29
30
|
filename?: string[] | undefined;
|
|
30
31
|
alt?: string[] | undefined;
|
|
31
|
-
notes?: string[] | undefined;
|
|
32
32
|
credits?: string[] | undefined;
|
|
33
33
|
}>>;
|
|
34
34
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -41,15 +41,15 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
|
-
last_modified: number;
|
|
45
44
|
created_at: number;
|
|
45
|
+
last_modified: number;
|
|
46
46
|
count: number;
|
|
47
47
|
uploader_id?: string | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
id: string;
|
|
50
50
|
name: string;
|
|
51
|
-
last_modified: number;
|
|
52
51
|
created_at: number;
|
|
52
|
+
last_modified: number;
|
|
53
53
|
uploader_id?: string | undefined;
|
|
54
54
|
count?: number | undefined;
|
|
55
55
|
}>, "many">;
|
|
@@ -58,27 +58,27 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
58
58
|
tags: {
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
|
-
last_modified: number;
|
|
62
61
|
created_at: number;
|
|
62
|
+
last_modified: number;
|
|
63
63
|
count: number;
|
|
64
64
|
uploader_id?: string | undefined;
|
|
65
65
|
}[];
|
|
66
66
|
url: string;
|
|
67
67
|
size: number;
|
|
68
|
+
last_modified: number;
|
|
68
69
|
kind: string;
|
|
69
70
|
filename: string;
|
|
70
|
-
|
|
71
|
-
extension?: string | undefined;
|
|
71
|
+
notes?: string | undefined;
|
|
72
72
|
width?: number | undefined;
|
|
73
73
|
height?: number | undefined;
|
|
74
|
-
alt?: string | undefined;
|
|
75
74
|
uploader_id?: string | undefined;
|
|
76
|
-
|
|
75
|
+
extension?: string | undefined;
|
|
76
|
+
alt?: string | undefined;
|
|
77
77
|
credits?: string | undefined;
|
|
78
78
|
search_highlight?: {
|
|
79
|
+
notes?: string | undefined;
|
|
79
80
|
filename?: string | undefined;
|
|
80
81
|
alt?: string | undefined;
|
|
81
|
-
notes?: string | undefined;
|
|
82
82
|
credits?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
@@ -86,27 +86,27 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
86
86
|
tags: {
|
|
87
87
|
id: string;
|
|
88
88
|
name: string;
|
|
89
|
-
last_modified: number;
|
|
90
89
|
created_at: number;
|
|
90
|
+
last_modified: number;
|
|
91
91
|
uploader_id?: string | undefined;
|
|
92
92
|
count?: number | undefined;
|
|
93
93
|
}[];
|
|
94
94
|
url: string;
|
|
95
95
|
size: number;
|
|
96
|
+
last_modified: number;
|
|
96
97
|
kind: string;
|
|
97
98
|
filename: string;
|
|
98
|
-
|
|
99
|
-
extension?: string | undefined;
|
|
99
|
+
notes?: string | undefined;
|
|
100
100
|
width?: number | undefined;
|
|
101
101
|
height?: number | undefined;
|
|
102
|
-
alt?: string | undefined;
|
|
103
102
|
uploader_id?: string | undefined;
|
|
104
|
-
|
|
103
|
+
extension?: string | undefined;
|
|
104
|
+
alt?: string | undefined;
|
|
105
105
|
credits?: string | undefined;
|
|
106
106
|
search_highlight?: {
|
|
107
|
+
notes?: string[] | undefined;
|
|
107
108
|
filename?: string[] | undefined;
|
|
108
109
|
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;
|
|
139
140
|
filename?: string | undefined;
|
|
140
141
|
alt?: string | undefined;
|
|
141
|
-
notes?: string | undefined;
|
|
142
142
|
credits?: string | undefined;
|
|
143
143
|
}, {
|
|
144
|
+
notes?: string[] | undefined;
|
|
144
145
|
filename?: string[] | undefined;
|
|
145
146
|
alt?: string[] | undefined;
|
|
146
|
-
notes?: string[] | undefined;
|
|
147
147
|
credits?: string[] | undefined;
|
|
148
148
|
}>>;
|
|
149
149
|
tags: z.ZodArray<z.ZodObject<{
|
|
@@ -156,15 +156,15 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
id: string;
|
|
158
158
|
name: string;
|
|
159
|
-
last_modified: number;
|
|
160
159
|
created_at: number;
|
|
160
|
+
last_modified: number;
|
|
161
161
|
count: number;
|
|
162
162
|
uploader_id?: string | undefined;
|
|
163
163
|
}, {
|
|
164
164
|
id: string;
|
|
165
165
|
name: string;
|
|
166
|
-
last_modified: number;
|
|
167
166
|
created_at: number;
|
|
167
|
+
last_modified: number;
|
|
168
168
|
uploader_id?: string | undefined;
|
|
169
169
|
count?: number | undefined;
|
|
170
170
|
}>, "many">;
|
|
@@ -173,27 +173,27 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
173
173
|
tags: {
|
|
174
174
|
id: string;
|
|
175
175
|
name: string;
|
|
176
|
-
last_modified: number;
|
|
177
176
|
created_at: number;
|
|
177
|
+
last_modified: number;
|
|
178
178
|
count: number;
|
|
179
179
|
uploader_id?: string | undefined;
|
|
180
180
|
}[];
|
|
181
181
|
url: string;
|
|
182
182
|
size: number;
|
|
183
|
+
last_modified: number;
|
|
183
184
|
kind: string;
|
|
184
185
|
filename: string;
|
|
185
|
-
|
|
186
|
-
extension?: string | undefined;
|
|
186
|
+
notes?: string | undefined;
|
|
187
187
|
width?: number | undefined;
|
|
188
188
|
height?: number | undefined;
|
|
189
|
-
alt?: string | undefined;
|
|
190
189
|
uploader_id?: string | undefined;
|
|
191
|
-
|
|
190
|
+
extension?: string | undefined;
|
|
191
|
+
alt?: string | undefined;
|
|
192
192
|
credits?: string | undefined;
|
|
193
193
|
search_highlight?: {
|
|
194
|
+
notes?: string | undefined;
|
|
194
195
|
filename?: string | undefined;
|
|
195
196
|
alt?: string | undefined;
|
|
196
|
-
notes?: string | undefined;
|
|
197
197
|
credits?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
@@ -201,27 +201,27 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
201
201
|
tags: {
|
|
202
202
|
id: string;
|
|
203
203
|
name: string;
|
|
204
|
-
last_modified: number;
|
|
205
204
|
created_at: number;
|
|
205
|
+
last_modified: number;
|
|
206
206
|
uploader_id?: string | undefined;
|
|
207
207
|
count?: number | undefined;
|
|
208
208
|
}[];
|
|
209
209
|
url: string;
|
|
210
210
|
size: number;
|
|
211
|
+
last_modified: number;
|
|
211
212
|
kind: string;
|
|
212
213
|
filename: string;
|
|
213
|
-
|
|
214
|
-
extension?: string | undefined;
|
|
214
|
+
notes?: string | undefined;
|
|
215
215
|
width?: number | undefined;
|
|
216
216
|
height?: number | undefined;
|
|
217
|
-
alt?: string | undefined;
|
|
218
217
|
uploader_id?: string | undefined;
|
|
219
|
-
|
|
218
|
+
extension?: string | undefined;
|
|
219
|
+
alt?: string | undefined;
|
|
220
220
|
credits?: string | undefined;
|
|
221
221
|
search_highlight?: {
|
|
222
|
+
notes?: string[] | undefined;
|
|
222
223
|
filename?: string[] | undefined;
|
|
223
224
|
alt?: string[] | undefined;
|
|
224
|
-
notes?: string[] | undefined;
|
|
225
225
|
credits?: string[] | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
}>, "many">;
|
|
@@ -232,27 +232,27 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
232
232
|
tags: {
|
|
233
233
|
id: string;
|
|
234
234
|
name: string;
|
|
235
|
-
last_modified: number;
|
|
236
235
|
created_at: number;
|
|
236
|
+
last_modified: number;
|
|
237
237
|
count: number;
|
|
238
238
|
uploader_id?: string | undefined;
|
|
239
239
|
}[];
|
|
240
240
|
url: string;
|
|
241
241
|
size: number;
|
|
242
|
+
last_modified: number;
|
|
242
243
|
kind: string;
|
|
243
244
|
filename: string;
|
|
244
|
-
|
|
245
|
-
extension?: string | undefined;
|
|
245
|
+
notes?: string | undefined;
|
|
246
246
|
width?: number | undefined;
|
|
247
247
|
height?: number | undefined;
|
|
248
|
-
alt?: string | undefined;
|
|
249
248
|
uploader_id?: string | undefined;
|
|
250
|
-
|
|
249
|
+
extension?: string | undefined;
|
|
250
|
+
alt?: string | undefined;
|
|
251
251
|
credits?: string | undefined;
|
|
252
252
|
search_highlight?: {
|
|
253
|
+
notes?: string | undefined;
|
|
253
254
|
filename?: string | undefined;
|
|
254
255
|
alt?: string | undefined;
|
|
255
|
-
notes?: string | undefined;
|
|
256
256
|
credits?: string | undefined;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}[];
|
|
@@ -264,27 +264,27 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
264
264
|
tags: {
|
|
265
265
|
id: string;
|
|
266
266
|
name: string;
|
|
267
|
-
last_modified: number;
|
|
268
267
|
created_at: number;
|
|
268
|
+
last_modified: number;
|
|
269
269
|
uploader_id?: string | undefined;
|
|
270
270
|
count?: number | undefined;
|
|
271
271
|
}[];
|
|
272
272
|
url: string;
|
|
273
273
|
size: number;
|
|
274
|
+
last_modified: number;
|
|
274
275
|
kind: string;
|
|
275
276
|
filename: string;
|
|
276
|
-
|
|
277
|
-
extension?: string | undefined;
|
|
277
|
+
notes?: string | undefined;
|
|
278
278
|
width?: number | undefined;
|
|
279
279
|
height?: number | undefined;
|
|
280
|
-
alt?: string | undefined;
|
|
281
280
|
uploader_id?: string | undefined;
|
|
282
|
-
|
|
281
|
+
extension?: string | undefined;
|
|
282
|
+
alt?: string | undefined;
|
|
283
283
|
credits?: string | undefined;
|
|
284
284
|
search_highlight?: {
|
|
285
|
+
notes?: string[] | undefined;
|
|
285
286
|
filename?: string[] | undefined;
|
|
286
287
|
alt?: string[] | undefined;
|
|
287
|
-
notes?: string[] | undefined;
|
|
288
288
|
credits?: string[] | undefined;
|
|
289
289
|
} | undefined;
|
|
290
290
|
}[];
|
|
@@ -312,27 +312,27 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
312
312
|
tags: {
|
|
313
313
|
id: string;
|
|
314
314
|
name: string;
|
|
315
|
-
last_modified: number;
|
|
316
315
|
created_at: number;
|
|
316
|
+
last_modified: number;
|
|
317
317
|
count: number;
|
|
318
318
|
uploader_id?: string | undefined;
|
|
319
319
|
}[];
|
|
320
320
|
url: string;
|
|
321
321
|
size: number;
|
|
322
|
+
last_modified: number;
|
|
322
323
|
kind: string;
|
|
323
324
|
filename: string;
|
|
324
|
-
|
|
325
|
-
extension?: string | undefined;
|
|
325
|
+
notes?: string | undefined;
|
|
326
326
|
width?: number | undefined;
|
|
327
327
|
height?: number | undefined;
|
|
328
|
-
alt?: string | undefined;
|
|
329
328
|
uploader_id?: string | undefined;
|
|
330
|
-
|
|
329
|
+
extension?: string | undefined;
|
|
330
|
+
alt?: string | undefined;
|
|
331
331
|
credits?: string | undefined;
|
|
332
332
|
search_highlight?: {
|
|
333
|
+
notes?: string | undefined;
|
|
333
334
|
filename?: string | undefined;
|
|
334
335
|
alt?: string | undefined;
|
|
335
|
-
notes?: string | undefined;
|
|
336
336
|
credits?: string | undefined;
|
|
337
337
|
} | undefined;
|
|
338
338
|
}[];
|
|
@@ -361,27 +361,27 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
361
361
|
tags: {
|
|
362
362
|
id: string;
|
|
363
363
|
name: string;
|
|
364
|
-
last_modified: number;
|
|
365
364
|
created_at: number;
|
|
365
|
+
last_modified: number;
|
|
366
366
|
count: number;
|
|
367
367
|
uploader_id?: string | undefined;
|
|
368
368
|
}[];
|
|
369
369
|
url: string;
|
|
370
370
|
size: number;
|
|
371
|
+
last_modified: number;
|
|
371
372
|
kind: string;
|
|
372
373
|
filename: string;
|
|
373
|
-
|
|
374
|
-
extension?: string | undefined;
|
|
374
|
+
notes?: string | undefined;
|
|
375
375
|
width?: number | undefined;
|
|
376
376
|
height?: number | undefined;
|
|
377
|
-
alt?: string | undefined;
|
|
378
377
|
uploader_id?: string | undefined;
|
|
379
|
-
|
|
378
|
+
extension?: string | undefined;
|
|
379
|
+
alt?: string | undefined;
|
|
380
380
|
credits?: string | undefined;
|
|
381
381
|
search_highlight?: {
|
|
382
|
+
notes?: string | undefined;
|
|
382
383
|
filename?: string | undefined;
|
|
383
384
|
alt?: string | undefined;
|
|
384
|
-
notes?: string | undefined;
|
|
385
385
|
credits?: string | undefined;
|
|
386
386
|
} | undefined;
|
|
387
387
|
}[];
|
|
@@ -411,27 +411,27 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
|
|
|
411
411
|
tags: {
|
|
412
412
|
id: string;
|
|
413
413
|
name: string;
|
|
414
|
-
last_modified: number;
|
|
415
414
|
created_at: number;
|
|
415
|
+
last_modified: number;
|
|
416
416
|
count: number;
|
|
417
417
|
uploader_id?: string | undefined;
|
|
418
418
|
}[];
|
|
419
419
|
url: string;
|
|
420
420
|
size: number;
|
|
421
|
+
last_modified: number;
|
|
421
422
|
kind: string;
|
|
422
423
|
filename: string;
|
|
423
|
-
|
|
424
|
-
extension?: string | undefined;
|
|
424
|
+
notes?: string | undefined;
|
|
425
425
|
width?: number | undefined;
|
|
426
426
|
height?: number | undefined;
|
|
427
|
-
alt?: string | undefined;
|
|
428
427
|
uploader_id?: string | undefined;
|
|
429
|
-
|
|
428
|
+
extension?: string | undefined;
|
|
429
|
+
alt?: string | undefined;
|
|
430
430
|
credits?: string | undefined;
|
|
431
431
|
search_highlight?: {
|
|
432
|
+
notes?: string | undefined;
|
|
432
433
|
filename?: string | undefined;
|
|
433
434
|
alt?: string | undefined;
|
|
434
|
-
notes?: string | undefined;
|
|
435
435
|
credits?: string | undefined;
|
|
436
436
|
} | undefined;
|
|
437
437
|
}[];
|
|
@@ -3,8 +3,8 @@ export declare function useTagSearch(): {
|
|
|
3
3
|
tags: {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
last_modified: number;
|
|
7
6
|
created_at: number;
|
|
7
|
+
last_modified: 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
|
-
last_modified: number;
|
|
26
25
|
created_at: number;
|
|
26
|
+
last_modified: number;
|
|
27
27
|
count: number;
|
|
28
28
|
uploader_id?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
31
|
name: string;
|
|
32
|
-
last_modified: number;
|
|
33
32
|
created_at: number;
|
|
33
|
+
last_modified: number;
|
|
34
34
|
uploader_id?: string | undefined;
|
|
35
35
|
count?: number | undefined;
|
|
36
36
|
}>;
|
|
@@ -3,27 +3,27 @@ export declare function useSelectedMedia(): {
|
|
|
3
3
|
tags: {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
last_modified: number;
|
|
7
6
|
created_at: number;
|
|
7
|
+
last_modified: number;
|
|
8
8
|
count: number;
|
|
9
9
|
uploader_id?: string | undefined;
|
|
10
10
|
}[];
|
|
11
11
|
url: string;
|
|
12
12
|
size: number;
|
|
13
|
+
last_modified: number;
|
|
13
14
|
kind: string;
|
|
14
15
|
filename: string;
|
|
15
|
-
|
|
16
|
-
extension?: string | undefined;
|
|
16
|
+
notes?: string | undefined;
|
|
17
17
|
width?: number | undefined;
|
|
18
18
|
height?: number | undefined;
|
|
19
|
-
alt?: string | undefined;
|
|
20
19
|
uploader_id?: string | undefined;
|
|
21
|
-
|
|
20
|
+
extension?: string | undefined;
|
|
21
|
+
alt?: string | undefined;
|
|
22
22
|
credits?: string | undefined;
|
|
23
23
|
search_highlight?: {
|
|
24
|
+
notes?: string | undefined;
|
|
24
25
|
filename?: string | undefined;
|
|
25
26
|
alt?: string | undefined;
|
|
26
|
-
notes?: string | undefined;
|
|
27
27
|
credits?: string | undefined;
|
|
28
28
|
} | undefined;
|
|
29
29
|
}[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import type { AuthStrategy } from "../../EditorConfig";
|
|
3
4
|
declare const customTypeResponse: z.ZodObject<{
|
|
@@ -23,4 +24,16 @@ export declare function getRepositoryCustomTypes(baseUrl: URL, repository: strin
|
|
|
23
24
|
repeatable: boolean;
|
|
24
25
|
status: boolean;
|
|
25
26
|
}[]>;
|
|
27
|
+
interface CustomTypesOptionsArgs {
|
|
28
|
+
baseUrl: URL;
|
|
29
|
+
repository: string;
|
|
30
|
+
authStrategy: AuthStrategy;
|
|
31
|
+
}
|
|
32
|
+
export declare function prefetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): void;
|
|
33
|
+
export declare function fetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<{
|
|
34
|
+
id: string;
|
|
35
|
+
label: string;
|
|
36
|
+
repeatable: boolean;
|
|
37
|
+
status: boolean;
|
|
38
|
+
}[]>;
|
|
26
39
|
export {};
|