@prismicio/editor-fields 0.4.62 → 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 +45 -45
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +5 -5
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
- package/dist/core/service/customType.d.ts +18 -18
- package/dist/core/service/document.d.ts +97 -71
- package/dist/core/service/documentSearch.d.ts +20 -39
- package/dist/fields/ImageField/useImageField.d.ts +5 -5
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +5 -5
- package/dist/fields/LinkField/Documents/documentsData.d.ts +8 -6
- package/dist/fields/LinkField/LinkField.d.ts +1 -1
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- 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 +7 -7
- 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/extensions/Table/Table.d.ts +18 -0
- package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
- package/dist/fields/RichTextField/extensions/extensions.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/fields/TableField/TableField.d.ts +1 -1
- package/dist/index.cjs.js +11 -130
- package/dist/index.es.js +10894 -64732
- package/dist/slices/utils.d.ts +2 -2
- package/package.json +27 -27
|
@@ -54,10 +54,6 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
54
54
|
count?: number | undefined;
|
|
55
55
|
}>, "many">;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
kind: string;
|
|
58
|
-
id: string;
|
|
59
|
-
url: string;
|
|
60
|
-
size: number;
|
|
61
57
|
tags: {
|
|
62
58
|
name: string;
|
|
63
59
|
id: string;
|
|
@@ -66,10 +62,14 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
66
62
|
count: number;
|
|
67
63
|
uploader_id?: string | undefined;
|
|
68
64
|
}[];
|
|
65
|
+
id: string;
|
|
66
|
+
url: string;
|
|
67
|
+
kind: string;
|
|
68
|
+
size: number;
|
|
69
69
|
last_modified: number;
|
|
70
70
|
filename: string;
|
|
71
|
-
height?: number | undefined;
|
|
72
71
|
width?: number | undefined;
|
|
72
|
+
height?: number | undefined;
|
|
73
73
|
credits?: string | undefined;
|
|
74
74
|
alt?: string | undefined;
|
|
75
75
|
notes?: string | undefined;
|
|
@@ -82,10 +82,6 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
82
82
|
filename?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
kind: string;
|
|
86
|
-
id: string;
|
|
87
|
-
url: string;
|
|
88
|
-
size: number;
|
|
89
85
|
tags: {
|
|
90
86
|
name: string;
|
|
91
87
|
id: string;
|
|
@@ -94,10 +90,14 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
94
90
|
uploader_id?: string | undefined;
|
|
95
91
|
count?: number | undefined;
|
|
96
92
|
}[];
|
|
93
|
+
id: string;
|
|
94
|
+
url: string;
|
|
95
|
+
kind: string;
|
|
96
|
+
size: number;
|
|
97
97
|
last_modified: number;
|
|
98
98
|
filename: string;
|
|
99
|
-
height?: number | undefined;
|
|
100
99
|
width?: number | undefined;
|
|
100
|
+
height?: number | undefined;
|
|
101
101
|
credits?: string | undefined;
|
|
102
102
|
alt?: string | undefined;
|
|
103
103
|
notes?: string | undefined;
|
|
@@ -169,10 +169,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
169
169
|
count?: number | undefined;
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
kind: string;
|
|
173
|
-
id: string;
|
|
174
|
-
url: string;
|
|
175
|
-
size: number;
|
|
176
172
|
tags: {
|
|
177
173
|
name: string;
|
|
178
174
|
id: string;
|
|
@@ -181,10 +177,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
181
177
|
count: number;
|
|
182
178
|
uploader_id?: string | undefined;
|
|
183
179
|
}[];
|
|
180
|
+
id: string;
|
|
181
|
+
url: string;
|
|
182
|
+
kind: string;
|
|
183
|
+
size: number;
|
|
184
184
|
last_modified: number;
|
|
185
185
|
filename: string;
|
|
186
|
-
height?: number | undefined;
|
|
187
186
|
width?: number | undefined;
|
|
187
|
+
height?: number | undefined;
|
|
188
188
|
credits?: string | undefined;
|
|
189
189
|
alt?: string | undefined;
|
|
190
190
|
notes?: string | undefined;
|
|
@@ -197,10 +197,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
197
197
|
filename?: string | undefined;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}, {
|
|
200
|
-
kind: string;
|
|
201
|
-
id: string;
|
|
202
|
-
url: string;
|
|
203
|
-
size: number;
|
|
204
200
|
tags: {
|
|
205
201
|
name: string;
|
|
206
202
|
id: string;
|
|
@@ -209,10 +205,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
209
205
|
uploader_id?: string | undefined;
|
|
210
206
|
count?: number | undefined;
|
|
211
207
|
}[];
|
|
208
|
+
id: string;
|
|
209
|
+
url: string;
|
|
210
|
+
kind: string;
|
|
211
|
+
size: number;
|
|
212
212
|
last_modified: number;
|
|
213
213
|
filename: string;
|
|
214
|
-
height?: number | undefined;
|
|
215
214
|
width?: number | undefined;
|
|
215
|
+
height?: number | undefined;
|
|
216
216
|
credits?: string | undefined;
|
|
217
217
|
alt?: string | undefined;
|
|
218
218
|
notes?: string | undefined;
|
|
@@ -228,10 +228,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
total: number;
|
|
230
230
|
items: {
|
|
231
|
-
kind: string;
|
|
232
|
-
id: string;
|
|
233
|
-
url: string;
|
|
234
|
-
size: number;
|
|
235
231
|
tags: {
|
|
236
232
|
name: string;
|
|
237
233
|
id: string;
|
|
@@ -240,10 +236,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
240
236
|
count: number;
|
|
241
237
|
uploader_id?: string | undefined;
|
|
242
238
|
}[];
|
|
239
|
+
id: string;
|
|
240
|
+
url: string;
|
|
241
|
+
kind: string;
|
|
242
|
+
size: number;
|
|
243
243
|
last_modified: number;
|
|
244
244
|
filename: string;
|
|
245
|
-
height?: number | undefined;
|
|
246
245
|
width?: number | undefined;
|
|
246
|
+
height?: number | undefined;
|
|
247
247
|
credits?: string | undefined;
|
|
248
248
|
alt?: string | undefined;
|
|
249
249
|
notes?: string | undefined;
|
|
@@ -260,10 +260,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
260
260
|
}, {
|
|
261
261
|
total: number;
|
|
262
262
|
items: {
|
|
263
|
-
kind: string;
|
|
264
|
-
id: string;
|
|
265
|
-
url: string;
|
|
266
|
-
size: number;
|
|
267
263
|
tags: {
|
|
268
264
|
name: string;
|
|
269
265
|
id: string;
|
|
@@ -272,10 +268,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
272
268
|
uploader_id?: string | undefined;
|
|
273
269
|
count?: number | undefined;
|
|
274
270
|
}[];
|
|
271
|
+
id: string;
|
|
272
|
+
url: string;
|
|
273
|
+
kind: string;
|
|
274
|
+
size: number;
|
|
275
275
|
last_modified: number;
|
|
276
276
|
filename: string;
|
|
277
|
-
height?: number | undefined;
|
|
278
277
|
width?: number | undefined;
|
|
278
|
+
height?: number | undefined;
|
|
279
279
|
credits?: string | undefined;
|
|
280
280
|
alt?: string | undefined;
|
|
281
281
|
notes?: string | undefined;
|
|
@@ -308,10 +308,6 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
308
308
|
page: number;
|
|
309
309
|
total: number;
|
|
310
310
|
items: {
|
|
311
|
-
kind: string;
|
|
312
|
-
id: string;
|
|
313
|
-
url: string;
|
|
314
|
-
size: number;
|
|
315
311
|
tags: {
|
|
316
312
|
name: string;
|
|
317
313
|
id: string;
|
|
@@ -320,10 +316,14 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
320
316
|
count: number;
|
|
321
317
|
uploader_id?: string | undefined;
|
|
322
318
|
}[];
|
|
319
|
+
id: string;
|
|
320
|
+
url: string;
|
|
321
|
+
kind: string;
|
|
322
|
+
size: number;
|
|
323
323
|
last_modified: number;
|
|
324
324
|
filename: string;
|
|
325
|
-
height?: number | undefined;
|
|
326
325
|
width?: number | undefined;
|
|
326
|
+
height?: number | undefined;
|
|
327
327
|
credits?: string | undefined;
|
|
328
328
|
alt?: string | undefined;
|
|
329
329
|
notes?: string | undefined;
|
|
@@ -357,10 +357,6 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
357
357
|
setFilters: (filters: Partial<MediaLibraryFilters>) => void;
|
|
358
358
|
resetFilters: () => void;
|
|
359
359
|
media: {
|
|
360
|
-
kind: string;
|
|
361
|
-
id: string;
|
|
362
|
-
url: string;
|
|
363
|
-
size: number;
|
|
364
360
|
tags: {
|
|
365
361
|
name: string;
|
|
366
362
|
id: string;
|
|
@@ -369,10 +365,14 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
369
365
|
count: number;
|
|
370
366
|
uploader_id?: string | undefined;
|
|
371
367
|
}[];
|
|
368
|
+
id: string;
|
|
369
|
+
url: string;
|
|
370
|
+
kind: string;
|
|
371
|
+
size: number;
|
|
372
372
|
last_modified: number;
|
|
373
373
|
filename: string;
|
|
374
|
-
height?: number | undefined;
|
|
375
374
|
width?: number | undefined;
|
|
375
|
+
height?: number | undefined;
|
|
376
376
|
credits?: string | undefined;
|
|
377
377
|
alt?: string | undefined;
|
|
378
378
|
notes?: string | undefined;
|
|
@@ -407,10 +407,6 @@ 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
|
-
id: string;
|
|
412
|
-
url: string;
|
|
413
|
-
size: number;
|
|
414
410
|
tags: {
|
|
415
411
|
name: string;
|
|
416
412
|
id: string;
|
|
@@ -419,10 +415,14 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
|
|
|
419
415
|
count: number;
|
|
420
416
|
uploader_id?: string | undefined;
|
|
421
417
|
}[];
|
|
418
|
+
id: string;
|
|
419
|
+
url: string;
|
|
420
|
+
kind: string;
|
|
421
|
+
size: number;
|
|
422
422
|
last_modified: number;
|
|
423
423
|
filename: string;
|
|
424
|
-
height?: number | undefined;
|
|
425
424
|
width?: number | undefined;
|
|
425
|
+
height?: number | undefined;
|
|
426
426
|
credits?: string | undefined;
|
|
427
427
|
alt?: string | undefined;
|
|
428
428
|
notes?: string | undefined;
|
|
@@ -37,10 +37,6 @@ export declare function uploadMedia(params: {
|
|
|
37
37
|
file: File;
|
|
38
38
|
config: EditorConfig;
|
|
39
39
|
}): Promise<{
|
|
40
|
-
kind: string;
|
|
41
|
-
id: string;
|
|
42
|
-
url: string;
|
|
43
|
-
size: number;
|
|
44
40
|
tags: {
|
|
45
41
|
name: string;
|
|
46
42
|
id: string;
|
|
@@ -49,10 +45,14 @@ export declare function uploadMedia(params: {
|
|
|
49
45
|
count: number;
|
|
50
46
|
uploader_id?: string | undefined;
|
|
51
47
|
}[];
|
|
48
|
+
id: string;
|
|
49
|
+
url: string;
|
|
50
|
+
kind: string;
|
|
51
|
+
size: number;
|
|
52
52
|
last_modified: number;
|
|
53
53
|
filename: string;
|
|
54
|
-
height?: number | undefined;
|
|
55
54
|
width?: number | undefined;
|
|
55
|
+
height?: number | undefined;
|
|
56
56
|
credits?: string | undefined;
|
|
57
57
|
alt?: string | undefined;
|
|
58
58
|
notes?: string | undefined;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
|
-
kind: string;
|
|
3
|
-
id: string;
|
|
4
|
-
url: string;
|
|
5
|
-
size: number;
|
|
6
2
|
tags: {
|
|
7
3
|
name: string;
|
|
8
4
|
id: string;
|
|
@@ -11,10 +7,14 @@ export declare function useSelectedMedia(): {
|
|
|
11
7
|
count: number;
|
|
12
8
|
uploader_id?: string | undefined;
|
|
13
9
|
}[];
|
|
10
|
+
id: string;
|
|
11
|
+
url: string;
|
|
12
|
+
kind: string;
|
|
13
|
+
size: number;
|
|
14
14
|
last_modified: number;
|
|
15
15
|
filename: string;
|
|
16
|
-
height?: number | undefined;
|
|
17
16
|
width?: number | undefined;
|
|
17
|
+
height?: number | undefined;
|
|
18
18
|
credits?: string | undefined;
|
|
19
19
|
alt?: string | undefined;
|
|
20
20
|
notes?: string | undefined;
|
|
@@ -17,9 +17,9 @@ declare const unsplashImage: import("zod").ZodObject<{
|
|
|
17
17
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
18
18
|
}, "strip", import("zod").ZodTypeAny, {
|
|
19
19
|
id: string;
|
|
20
|
-
height: number;
|
|
21
|
-
width: number;
|
|
22
20
|
description: string | null;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
23
|
urls: {
|
|
24
24
|
small: string;
|
|
25
25
|
full: string;
|
|
@@ -27,9 +27,9 @@ declare const unsplashImage: import("zod").ZodObject<{
|
|
|
27
27
|
alt_description?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
id: string;
|
|
30
|
-
height: number;
|
|
31
|
-
width: number;
|
|
32
30
|
description: string | null;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
33
|
urls: {
|
|
34
34
|
small: string;
|
|
35
35
|
full: string;
|
|
@@ -55,9 +55,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
55
55
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
56
56
|
}, "strip", import("zod").ZodTypeAny, {
|
|
57
57
|
id: string;
|
|
58
|
-
height: number;
|
|
59
|
-
width: number;
|
|
60
58
|
description: string | null;
|
|
59
|
+
width: number;
|
|
60
|
+
height: number;
|
|
61
61
|
urls: {
|
|
62
62
|
small: string;
|
|
63
63
|
full: string;
|
|
@@ -65,9 +65,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
65
65
|
alt_description?: string | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
id: string;
|
|
68
|
-
height: number;
|
|
69
|
-
width: number;
|
|
70
68
|
description: string | null;
|
|
69
|
+
width: number;
|
|
70
|
+
height: number;
|
|
71
71
|
urls: {
|
|
72
72
|
small: string;
|
|
73
73
|
full: string;
|
|
@@ -77,9 +77,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
77
77
|
}, "strip", import("zod").ZodTypeAny, {
|
|
78
78
|
results: {
|
|
79
79
|
id: string;
|
|
80
|
-
height: number;
|
|
81
|
-
width: number;
|
|
82
80
|
description: string | null;
|
|
81
|
+
width: number;
|
|
82
|
+
height: number;
|
|
83
83
|
urls: {
|
|
84
84
|
small: string;
|
|
85
85
|
full: string;
|
|
@@ -89,9 +89,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
89
89
|
}, {
|
|
90
90
|
results: {
|
|
91
91
|
id: string;
|
|
92
|
-
height: number;
|
|
93
|
-
width: number;
|
|
94
92
|
description: string | null;
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
95
|
urls: {
|
|
96
96
|
small: string;
|
|
97
97
|
full: string;
|
|
@@ -100,9 +100,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
100
100
|
}[];
|
|
101
101
|
}>, {
|
|
102
102
|
id: string;
|
|
103
|
-
height: number;
|
|
104
|
-
width: number;
|
|
105
103
|
description: string | null;
|
|
104
|
+
width: number;
|
|
105
|
+
height: number;
|
|
106
106
|
urls: {
|
|
107
107
|
small: string;
|
|
108
108
|
full: string;
|
|
@@ -111,9 +111,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
111
111
|
}[], {
|
|
112
112
|
results: {
|
|
113
113
|
id: string;
|
|
114
|
-
height: number;
|
|
115
|
-
width: number;
|
|
116
114
|
description: string | null;
|
|
115
|
+
width: number;
|
|
116
|
+
height: number;
|
|
117
117
|
urls: {
|
|
118
118
|
small: string;
|
|
119
119
|
full: string;
|
|
@@ -125,9 +125,9 @@ export type UnplashSearchApi = TypeOf<typeof unsplashSearchApiType>;
|
|
|
125
125
|
export type UnsplashImage = TypeOf<typeof unsplashImage>;
|
|
126
126
|
export declare function useUnsplashSearch(baseUrl: URL, term: string): {
|
|
127
127
|
id: string;
|
|
128
|
-
height: number;
|
|
129
|
-
width: number;
|
|
130
128
|
description: string | null;
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
131
|
urls: {
|
|
132
132
|
small: string;
|
|
133
133
|
full: string;
|
|
@@ -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
|
-
|
|
10
|
+
status: boolean;
|
|
11
11
|
id: string;
|
|
12
|
+
label: string;
|
|
12
13
|
repeatable: boolean;
|
|
13
|
-
status: boolean;
|
|
14
14
|
}, {
|
|
15
|
-
|
|
15
|
+
status: boolean;
|
|
16
16
|
id: string;
|
|
17
|
+
label: string;
|
|
17
18
|
repeatable: boolean;
|
|
18
|
-
status: 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
|
-
|
|
27
|
+
status: boolean;
|
|
28
28
|
id: string;
|
|
29
|
+
label: string;
|
|
29
30
|
repeatable: boolean;
|
|
30
|
-
status: boolean;
|
|
31
31
|
}[], Error, {
|
|
32
|
-
|
|
32
|
+
status: boolean;
|
|
33
33
|
id: string;
|
|
34
|
+
label: string;
|
|
34
35
|
repeatable: boolean;
|
|
35
|
-
status: boolean;
|
|
36
36
|
}[], string[]> & {
|
|
37
37
|
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
38
|
-
|
|
38
|
+
status: boolean;
|
|
39
39
|
id: string;
|
|
40
|
+
label: string;
|
|
40
41
|
repeatable: boolean;
|
|
41
|
-
status: boolean;
|
|
42
42
|
}[]> | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
|
|
45
|
-
|
|
45
|
+
status: boolean;
|
|
46
46
|
id: string;
|
|
47
|
+
label: string;
|
|
47
48
|
repeatable: boolean;
|
|
48
|
-
status: 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
|
-
|
|
53
|
+
status: boolean;
|
|
54
54
|
id: string;
|
|
55
|
+
label: string;
|
|
55
56
|
repeatable: boolean;
|
|
56
|
-
status: boolean;
|
|
57
57
|
}[]>;
|
|
58
58
|
export declare function useCustomTypes(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
|
|
59
|
-
|
|
59
|
+
status: boolean;
|
|
60
60
|
id: string;
|
|
61
|
+
label: string;
|
|
61
62
|
repeatable: boolean;
|
|
62
|
-
status: 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
|
-
|
|
68
|
+
status: boolean;
|
|
69
69
|
id: string;
|
|
70
|
+
label: string;
|
|
70
71
|
repeatable: boolean;
|
|
71
|
-
status: 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<{
|