@prismicio/editor-fields 0.4.67-alpha.3 → 0.4.67-alpha.5
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 +13 -13
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +1 -1
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +1 -1
- package/dist/core/service/customType.d.ts +9 -9
- package/dist/core/service/document.d.ts +85 -85
- package/dist/core/service/documentSearch.d.ts +15 -15
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/core/service/role.d.ts +10 -10
- package/dist/fields/ImageField/useImageField.d.ts +1 -1
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +1 -1
- package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
- package/dist/fields/LinkField/Documents/documentsData.d.ts +4 -4
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/Table.d.ts +6 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
- package/dist/fields/RichTextField/extensions/Table/menus/utils.d.ts +5 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPlugin.d.ts +8 -0
- 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/fields/RichTextField/extensions/Table/plugins/TableHandles/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/utils.d.ts +23 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/utils.d.ts +25 -25
- package/dist/index.cjs.js +42 -42
- package/dist/index.es.js +29568 -27287
- package/dist/slices/utils.d.ts +4 -4
- package/package.json +4 -10
|
@@ -39,15 +39,15 @@ 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;
|
|
43
|
+
id: string;
|
|
44
44
|
created_at: number;
|
|
45
45
|
last_modified: number;
|
|
46
46
|
count: number;
|
|
47
47
|
uploader_id?: string | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
id: string;
|
|
50
49
|
name: string;
|
|
50
|
+
id: string;
|
|
51
51
|
created_at: number;
|
|
52
52
|
last_modified: number;
|
|
53
53
|
uploader_id?: string | undefined;
|
|
@@ -59,8 +59,8 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
59
59
|
kind: string;
|
|
60
60
|
size: number;
|
|
61
61
|
tags: {
|
|
62
|
-
id: string;
|
|
63
62
|
name: string;
|
|
63
|
+
id: string;
|
|
64
64
|
created_at: number;
|
|
65
65
|
last_modified: number;
|
|
66
66
|
count: number;
|
|
@@ -87,8 +87,8 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
87
87
|
kind: string;
|
|
88
88
|
size: number;
|
|
89
89
|
tags: {
|
|
90
|
-
id: string;
|
|
91
90
|
name: string;
|
|
91
|
+
id: string;
|
|
92
92
|
created_at: number;
|
|
93
93
|
last_modified: number;
|
|
94
94
|
uploader_id?: string | undefined;
|
|
@@ -154,15 +154,15 @@ 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;
|
|
158
|
+
id: string;
|
|
159
159
|
created_at: number;
|
|
160
160
|
last_modified: number;
|
|
161
161
|
count: number;
|
|
162
162
|
uploader_id?: string | undefined;
|
|
163
163
|
}, {
|
|
164
|
-
id: string;
|
|
165
164
|
name: string;
|
|
165
|
+
id: string;
|
|
166
166
|
created_at: number;
|
|
167
167
|
last_modified: number;
|
|
168
168
|
uploader_id?: string | undefined;
|
|
@@ -174,8 +174,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
174
174
|
kind: string;
|
|
175
175
|
size: number;
|
|
176
176
|
tags: {
|
|
177
|
-
id: string;
|
|
178
177
|
name: string;
|
|
178
|
+
id: string;
|
|
179
179
|
created_at: number;
|
|
180
180
|
last_modified: number;
|
|
181
181
|
count: number;
|
|
@@ -202,8 +202,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
202
202
|
kind: string;
|
|
203
203
|
size: number;
|
|
204
204
|
tags: {
|
|
205
|
-
id: string;
|
|
206
205
|
name: string;
|
|
206
|
+
id: string;
|
|
207
207
|
created_at: number;
|
|
208
208
|
last_modified: number;
|
|
209
209
|
uploader_id?: string | undefined;
|
|
@@ -233,8 +233,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
233
233
|
kind: string;
|
|
234
234
|
size: number;
|
|
235
235
|
tags: {
|
|
236
|
-
id: string;
|
|
237
236
|
name: string;
|
|
237
|
+
id: string;
|
|
238
238
|
created_at: number;
|
|
239
239
|
last_modified: number;
|
|
240
240
|
count: number;
|
|
@@ -265,8 +265,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
265
265
|
kind: string;
|
|
266
266
|
size: number;
|
|
267
267
|
tags: {
|
|
268
|
-
id: string;
|
|
269
268
|
name: string;
|
|
269
|
+
id: string;
|
|
270
270
|
created_at: number;
|
|
271
271
|
last_modified: number;
|
|
272
272
|
uploader_id?: string | undefined;
|
|
@@ -313,8 +313,8 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
313
313
|
kind: string;
|
|
314
314
|
size: number;
|
|
315
315
|
tags: {
|
|
316
|
-
id: string;
|
|
317
316
|
name: string;
|
|
317
|
+
id: string;
|
|
318
318
|
created_at: number;
|
|
319
319
|
last_modified: number;
|
|
320
320
|
count: number;
|
|
@@ -362,8 +362,8 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
362
362
|
kind: string;
|
|
363
363
|
size: number;
|
|
364
364
|
tags: {
|
|
365
|
-
id: string;
|
|
366
365
|
name: string;
|
|
366
|
+
id: string;
|
|
367
367
|
created_at: number;
|
|
368
368
|
last_modified: number;
|
|
369
369
|
count: number;
|
|
@@ -412,8 +412,8 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
|
|
|
412
412
|
kind: string;
|
|
413
413
|
size: number;
|
|
414
414
|
tags: {
|
|
415
|
-
id: string;
|
|
416
415
|
name: string;
|
|
416
|
+
id: string;
|
|
417
417
|
created_at: number;
|
|
418
418
|
last_modified: number;
|
|
419
419
|
count: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare function useTagSearch(): {
|
|
3
3
|
tags: {
|
|
4
|
-
id: string;
|
|
5
4
|
name: string;
|
|
5
|
+
id: string;
|
|
6
6
|
created_at: number;
|
|
7
7
|
last_modified: number;
|
|
8
8
|
count: number;
|
|
@@ -20,15 +20,15 @@ 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;
|
|
24
|
+
id: string;
|
|
25
25
|
created_at: number;
|
|
26
26
|
last_modified: number;
|
|
27
27
|
count: number;
|
|
28
28
|
uploader_id?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
id: string;
|
|
31
30
|
name: string;
|
|
31
|
+
id: string;
|
|
32
32
|
created_at: number;
|
|
33
33
|
last_modified: number;
|
|
34
34
|
uploader_id?: string | undefined;
|
|
@@ -7,14 +7,14 @@ declare const CustomType: z.ZodObject<{
|
|
|
7
7
|
repeatable: z.ZodBoolean;
|
|
8
8
|
status: z.ZodBoolean;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
label: string;
|
|
10
11
|
status: boolean;
|
|
11
12
|
id: string;
|
|
12
|
-
label: string;
|
|
13
13
|
repeatable: boolean;
|
|
14
14
|
}, {
|
|
15
|
+
label: string;
|
|
15
16
|
status: boolean;
|
|
16
17
|
id: string;
|
|
17
|
-
label: string;
|
|
18
18
|
repeatable: boolean;
|
|
19
19
|
}>;
|
|
20
20
|
export type CustomType = z.TypeOf<typeof CustomType>;
|
|
@@ -24,50 +24,50 @@ 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;
|
|
27
28
|
status: boolean;
|
|
28
29
|
id: string;
|
|
29
|
-
label: string;
|
|
30
30
|
repeatable: boolean;
|
|
31
31
|
}[], Error, {
|
|
32
|
+
label: string;
|
|
32
33
|
status: boolean;
|
|
33
34
|
id: string;
|
|
34
|
-
label: string;
|
|
35
35
|
repeatable: boolean;
|
|
36
36
|
}[], string[]> & {
|
|
37
37
|
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
38
|
+
label: string;
|
|
38
39
|
status: boolean;
|
|
39
40
|
id: string;
|
|
40
|
-
label: string;
|
|
41
41
|
repeatable: boolean;
|
|
42
42
|
}[]> | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
|
|
45
|
+
label: string;
|
|
45
46
|
status: boolean;
|
|
46
47
|
id: string;
|
|
47
|
-
label: string;
|
|
48
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;
|
|
53
54
|
status: boolean;
|
|
54
55
|
id: string;
|
|
55
|
-
label: string;
|
|
56
56
|
repeatable: boolean;
|
|
57
57
|
}[]>;
|
|
58
58
|
export declare function useCustomTypes(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
|
|
59
|
+
label: string;
|
|
59
60
|
status: boolean;
|
|
60
61
|
id: string;
|
|
61
|
-
label: string;
|
|
62
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;
|
|
68
69
|
status: boolean;
|
|
69
70
|
id: string;
|
|
70
|
-
label: string;
|
|
71
71
|
repeatable: boolean;
|
|
72
72
|
};
|
|
73
73
|
export declare function invalidateCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<void>;
|