@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
|
@@ -16,12 +16,6 @@ interface SearchDocumentsArgs {
|
|
|
16
16
|
* TODO: Remove after all repos have been migrated to storageVerison 7 or above (PBD-1908)
|
|
17
17
|
*/
|
|
18
18
|
storageVersion?: Repository["storageVersion"];
|
|
19
|
-
track: ((args: {
|
|
20
|
-
numberOfResults: number;
|
|
21
|
-
searchQuery: string;
|
|
22
|
-
numberOfWords: number;
|
|
23
|
-
timeToGetResultsInMs: number;
|
|
24
|
-
}) => void) | undefined;
|
|
25
19
|
signal: AbortSignal;
|
|
26
20
|
}
|
|
27
21
|
export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
@@ -50,6 +44,7 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
50
44
|
last_modified_date: Date;
|
|
51
45
|
custom_type_label: string;
|
|
52
46
|
author: {
|
|
47
|
+
id?: string | undefined;
|
|
53
48
|
first_name?: string | undefined;
|
|
54
49
|
last_name?: string | undefined;
|
|
55
50
|
email?: string | undefined;
|
|
@@ -80,9 +75,9 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
80
75
|
tags: string[];
|
|
81
76
|
version_id: string;
|
|
82
77
|
last_modified_date: Date;
|
|
83
|
-
custom_type_id?: string | undefined;
|
|
84
78
|
preview_image?: string | undefined;
|
|
85
79
|
uid?: string | undefined;
|
|
80
|
+
custom_type_id?: string | undefined;
|
|
86
81
|
summary?: string | undefined;
|
|
87
82
|
author_ids?: string[] | undefined;
|
|
88
83
|
highlights?: {
|
|
@@ -103,12 +98,6 @@ interface SearchDocumentsQueryOptionsArgs {
|
|
|
103
98
|
*/
|
|
104
99
|
storageVersion?: Repository["storageVersion"];
|
|
105
100
|
config: SearchDocumentsConfig;
|
|
106
|
-
track?: (args: {
|
|
107
|
-
numberOfResults: number;
|
|
108
|
-
searchQuery: string;
|
|
109
|
-
numberOfWords: number;
|
|
110
|
-
timeToGetResultsInMs: number;
|
|
111
|
-
}) => void;
|
|
112
101
|
}
|
|
113
102
|
export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
114
103
|
results: {
|
|
@@ -136,6 +125,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
136
125
|
last_modified_date: Date;
|
|
137
126
|
custom_type_label: string;
|
|
138
127
|
author: {
|
|
128
|
+
id?: string | undefined;
|
|
139
129
|
first_name?: string | undefined;
|
|
140
130
|
last_name?: string | undefined;
|
|
141
131
|
email?: string | undefined;
|
|
@@ -166,9 +156,9 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
166
156
|
tags: string[];
|
|
167
157
|
version_id: string;
|
|
168
158
|
last_modified_date: Date;
|
|
169
|
-
custom_type_id?: string | undefined;
|
|
170
159
|
preview_image?: string | undefined;
|
|
171
160
|
uid?: string | undefined;
|
|
161
|
+
custom_type_id?: string | undefined;
|
|
172
162
|
summary?: string | undefined;
|
|
173
163
|
author_ids?: string[] | undefined;
|
|
174
164
|
highlights?: {
|
|
@@ -202,6 +192,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
202
192
|
last_modified_date: Date;
|
|
203
193
|
custom_type_label: string;
|
|
204
194
|
author: {
|
|
195
|
+
id?: string | undefined;
|
|
205
196
|
first_name?: string | undefined;
|
|
206
197
|
last_name?: string | undefined;
|
|
207
198
|
email?: string | undefined;
|
|
@@ -232,9 +223,9 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
232
223
|
tags: string[];
|
|
233
224
|
version_id: string;
|
|
234
225
|
last_modified_date: Date;
|
|
235
|
-
custom_type_id?: string | undefined;
|
|
236
226
|
preview_image?: string | undefined;
|
|
237
227
|
uid?: string | undefined;
|
|
228
|
+
custom_type_id?: string | undefined;
|
|
238
229
|
summary?: string | undefined;
|
|
239
230
|
author_ids?: string[] | undefined;
|
|
240
231
|
highlights?: {
|
|
@@ -253,12 +244,6 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
253
244
|
readonly authors: string[] | undefined;
|
|
254
245
|
readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
|
|
255
246
|
readonly locale: string | undefined;
|
|
256
|
-
readonly track: ((args: {
|
|
257
|
-
numberOfResults: number;
|
|
258
|
-
searchQuery: string;
|
|
259
|
-
numberOfWords: number;
|
|
260
|
-
timeToGetResultsInMs: number;
|
|
261
|
-
}) => void) | undefined;
|
|
262
247
|
readonly storageVersion: {
|
|
263
248
|
major: number;
|
|
264
249
|
minor: number;
|
|
@@ -290,6 +275,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
290
275
|
last_modified_date: Date;
|
|
291
276
|
custom_type_label: string;
|
|
292
277
|
author: {
|
|
278
|
+
id?: string | undefined;
|
|
293
279
|
first_name?: string | undefined;
|
|
294
280
|
last_name?: string | undefined;
|
|
295
281
|
email?: string | undefined;
|
|
@@ -320,9 +306,9 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
320
306
|
tags: string[];
|
|
321
307
|
version_id: string;
|
|
322
308
|
last_modified_date: Date;
|
|
323
|
-
custom_type_id?: string | undefined;
|
|
324
309
|
preview_image?: string | undefined;
|
|
325
310
|
uid?: string | undefined;
|
|
311
|
+
custom_type_id?: string | undefined;
|
|
326
312
|
summary?: string | undefined;
|
|
327
313
|
author_ids?: string[] | undefined;
|
|
328
314
|
highlights?: {
|
|
@@ -343,12 +329,6 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
343
329
|
readonly authors: string[] | undefined;
|
|
344
330
|
readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
|
|
345
331
|
readonly locale: string | undefined;
|
|
346
|
-
readonly track: ((args: {
|
|
347
|
-
numberOfResults: number;
|
|
348
|
-
searchQuery: string;
|
|
349
|
-
numberOfWords: number;
|
|
350
|
-
timeToGetResultsInMs: number;
|
|
351
|
-
}) => void) | undefined;
|
|
352
332
|
readonly storageVersion: {
|
|
353
333
|
major: number;
|
|
354
334
|
minor: number;
|
|
@@ -379,6 +359,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
379
359
|
last_modified_date: Date;
|
|
380
360
|
custom_type_label: string;
|
|
381
361
|
author: {
|
|
362
|
+
id?: string | undefined;
|
|
382
363
|
first_name?: string | undefined;
|
|
383
364
|
last_name?: string | undefined;
|
|
384
365
|
email?: string | undefined;
|
|
@@ -409,9 +390,9 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
409
390
|
tags: string[];
|
|
410
391
|
version_id: string;
|
|
411
392
|
last_modified_date: Date;
|
|
412
|
-
custom_type_id?: string | undefined;
|
|
413
393
|
preview_image?: string | undefined;
|
|
414
394
|
uid?: string | undefined;
|
|
395
|
+
custom_type_id?: string | undefined;
|
|
415
396
|
summary?: string | undefined;
|
|
416
397
|
author_ids?: string[] | undefined;
|
|
417
398
|
highlights?: {
|
|
@@ -37,28 +37,28 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
37
37
|
name: z.ZodString;
|
|
38
38
|
is_master: z.ZodOptional<z.ZodBoolean>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
id: string;
|
|
41
40
|
name: string;
|
|
41
|
+
id: string;
|
|
42
42
|
is_master?: boolean | undefined;
|
|
43
43
|
}, {
|
|
44
|
-
id: string;
|
|
45
44
|
name: string;
|
|
45
|
+
id: string;
|
|
46
46
|
is_master?: boolean | undefined;
|
|
47
47
|
}>, {
|
|
48
48
|
isMaster?: boolean | undefined;
|
|
49
49
|
id: string;
|
|
50
50
|
label: string;
|
|
51
51
|
}, {
|
|
52
|
-
id: string;
|
|
53
52
|
name: string;
|
|
53
|
+
id: string;
|
|
54
54
|
is_master?: boolean | undefined;
|
|
55
55
|
}>, "many">, {
|
|
56
56
|
isMaster?: boolean | undefined;
|
|
57
57
|
id: string;
|
|
58
58
|
label: string;
|
|
59
59
|
}[], {
|
|
60
|
-
id: string;
|
|
61
60
|
name: string;
|
|
61
|
+
id: string;
|
|
62
62
|
is_master?: boolean | undefined;
|
|
63
63
|
}[]>;
|
|
64
64
|
authors: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -126,8 +126,8 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
126
126
|
starterId?: string | undefined;
|
|
127
127
|
}, {
|
|
128
128
|
languages: {
|
|
129
|
-
id: string;
|
|
130
129
|
name: string;
|
|
130
|
+
id: string;
|
|
131
131
|
is_master?: boolean | undefined;
|
|
132
132
|
}[];
|
|
133
133
|
storageVersion: {
|
|
@@ -175,8 +175,8 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
175
175
|
starterId?: string | undefined;
|
|
176
176
|
}, {
|
|
177
177
|
languages: {
|
|
178
|
-
id: string;
|
|
179
178
|
name: string;
|
|
179
|
+
id: string;
|
|
180
180
|
is_master?: boolean | undefined;
|
|
181
181
|
}[];
|
|
182
182
|
storageVersion: {
|
|
@@ -13,14 +13,14 @@ export declare const TeamSpace: z.ZodObject<{
|
|
|
13
13
|
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
14
14
|
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
id: string;
|
|
17
16
|
name: string;
|
|
17
|
+
id: string;
|
|
18
18
|
customTypes: string[];
|
|
19
19
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
20
20
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
id: string;
|
|
23
22
|
name: string;
|
|
23
|
+
id: string;
|
|
24
24
|
customTypes: string[];
|
|
25
25
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
26
26
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
@@ -51,30 +51,30 @@ declare const TeamSpacesResponse: z.ZodObject<{
|
|
|
51
51
|
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
52
52
|
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
id: string;
|
|
55
54
|
name: string;
|
|
55
|
+
id: string;
|
|
56
56
|
customTypes: string[];
|
|
57
57
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
58
58
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
id: string;
|
|
61
60
|
name: string;
|
|
61
|
+
id: string;
|
|
62
62
|
customTypes: string[];
|
|
63
63
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
64
64
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
65
65
|
}>, "many">;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
results: {
|
|
68
|
-
id: string;
|
|
69
68
|
name: string;
|
|
69
|
+
id: string;
|
|
70
70
|
customTypes: string[];
|
|
71
71
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
72
72
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
73
73
|
}[];
|
|
74
74
|
}, {
|
|
75
75
|
results: {
|
|
76
|
-
id: string;
|
|
77
76
|
name: string;
|
|
77
|
+
id: string;
|
|
78
78
|
customTypes: string[];
|
|
79
79
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
80
80
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
@@ -89,23 +89,23 @@ interface GetTeamSpacesArgs {
|
|
|
89
89
|
export declare function getTeamSpaces(args: GetTeamSpacesArgs): Promise<TeamSpacesResponse>;
|
|
90
90
|
export declare function getTeamSpacesOptions(args: GetTeamSpacesArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
91
91
|
results: {
|
|
92
|
-
id: string;
|
|
93
92
|
name: string;
|
|
93
|
+
id: string;
|
|
94
94
|
customTypes: string[];
|
|
95
95
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
96
96
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
97
97
|
}[];
|
|
98
98
|
}, Error, {
|
|
99
|
-
id: string;
|
|
100
99
|
name: string;
|
|
100
|
+
id: string;
|
|
101
101
|
customTypes: string[];
|
|
102
102
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
103
103
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
104
104
|
}[], (string | GetTeamSpacesArgs)[]> & {
|
|
105
105
|
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
106
106
|
results: {
|
|
107
|
-
id: string;
|
|
108
107
|
name: string;
|
|
108
|
+
id: string;
|
|
109
109
|
customTypes: string[];
|
|
110
110
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
111
111
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
@@ -114,8 +114,8 @@ export declare function getTeamSpacesOptions(args: GetTeamSpacesArgs): import("@
|
|
|
114
114
|
} & {
|
|
115
115
|
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<(string | GetTeamSpacesArgs)[], {
|
|
116
116
|
results: {
|
|
117
|
-
id: string;
|
|
118
117
|
name: string;
|
|
118
|
+
id: string;
|
|
119
119
|
customTypes: string[];
|
|
120
120
|
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
121
121
|
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
@@ -23,12 +23,12 @@ export declare const profileResponse: z.ZodObject<{
|
|
|
23
23
|
name: z.ZodOptional<z.ZodString>;
|
|
24
24
|
role: z.ZodUnion<[z.ZodEnum<["Owner", "Administrator", "Writer", "Manager", "Readonly"]>, z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodEnum<["Owner", "Administrator", "Writer", "Manager", "Readonly"]>>>]>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
27
26
|
domain: string;
|
|
27
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
28
28
|
name?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
31
30
|
domain: string;
|
|
31
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
32
32
|
name?: string | undefined;
|
|
33
33
|
}>, "many">;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -39,8 +39,8 @@ export declare const profileResponse: z.ZodObject<{
|
|
|
39
39
|
lastName: string;
|
|
40
40
|
superPower: boolean;
|
|
41
41
|
repositories: {
|
|
42
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
43
42
|
domain: string;
|
|
43
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
44
44
|
name?: string | undefined;
|
|
45
45
|
}[];
|
|
46
46
|
}, {
|
|
@@ -51,8 +51,8 @@ export declare const profileResponse: z.ZodObject<{
|
|
|
51
51
|
lastName: string;
|
|
52
52
|
superPower: boolean;
|
|
53
53
|
repositories: {
|
|
54
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
55
54
|
domain: string;
|
|
55
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
56
56
|
name?: string | undefined;
|
|
57
57
|
}[];
|
|
58
58
|
}>;
|
|
@@ -66,8 +66,8 @@ export declare function useProfile(): {
|
|
|
66
66
|
lastName: string;
|
|
67
67
|
superPower: boolean;
|
|
68
68
|
repositories: {
|
|
69
|
-
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
70
69
|
domain: string;
|
|
70
|
+
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
71
71
|
name?: string | undefined;
|
|
72
72
|
}[];
|
|
73
73
|
};
|
|
@@ -88,32 +88,32 @@ export declare function useImageField(props: useImageFieldProps): {
|
|
|
88
88
|
}) | undefined;
|
|
89
89
|
onClear: () => void;
|
|
90
90
|
uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
|
|
91
|
-
id: string;
|
|
92
|
-
kind: string;
|
|
93
|
-
url: string;
|
|
94
|
-
size: number;
|
|
95
91
|
tags: {
|
|
96
|
-
id: string;
|
|
97
92
|
name: string;
|
|
98
|
-
|
|
93
|
+
id: string;
|
|
99
94
|
created_at: number;
|
|
95
|
+
last_modified: number;
|
|
100
96
|
count: number;
|
|
101
97
|
uploader_id?: string | undefined;
|
|
102
98
|
}[];
|
|
103
|
-
|
|
99
|
+
id: string;
|
|
100
|
+
url: string;
|
|
101
|
+
kind: string;
|
|
102
|
+
size: number;
|
|
104
103
|
last_modified: number;
|
|
105
|
-
|
|
104
|
+
filename: string;
|
|
106
105
|
width?: number | undefined;
|
|
107
|
-
|
|
106
|
+
height?: number | undefined;
|
|
107
|
+
credits?: string | undefined;
|
|
108
108
|
alt?: string | undefined;
|
|
109
|
-
uploader_id?: string | undefined;
|
|
110
109
|
notes?: string | undefined;
|
|
111
|
-
|
|
110
|
+
uploader_id?: string | undefined;
|
|
111
|
+
extension?: string | undefined;
|
|
112
112
|
search_highlight?: {
|
|
113
|
-
|
|
113
|
+
credits?: string | undefined;
|
|
114
114
|
alt?: string | undefined;
|
|
115
115
|
notes?: string | undefined;
|
|
116
|
-
|
|
116
|
+
filename?: string | undefined;
|
|
117
117
|
} | undefined;
|
|
118
118
|
}, Error, File, unknown>;
|
|
119
119
|
isUploadingImage: boolean;
|
|
@@ -4,32 +4,32 @@ interface UseImageFieldImageUploadArgs {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function useImageFieldImageUpload(args: UseImageFieldImageUploadArgs): {
|
|
6
6
|
uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
|
|
7
|
-
id: string;
|
|
8
|
-
kind: string;
|
|
9
|
-
url: string;
|
|
10
|
-
size: number;
|
|
11
7
|
tags: {
|
|
12
|
-
id: string;
|
|
13
8
|
name: string;
|
|
14
|
-
|
|
9
|
+
id: string;
|
|
15
10
|
created_at: number;
|
|
11
|
+
last_modified: number;
|
|
16
12
|
count: number;
|
|
17
13
|
uploader_id?: string | undefined;
|
|
18
14
|
}[];
|
|
19
|
-
|
|
15
|
+
id: string;
|
|
16
|
+
url: string;
|
|
17
|
+
kind: string;
|
|
18
|
+
size: number;
|
|
20
19
|
last_modified: number;
|
|
21
|
-
|
|
20
|
+
filename: string;
|
|
22
21
|
width?: number | undefined;
|
|
23
|
-
|
|
22
|
+
height?: number | undefined;
|
|
23
|
+
credits?: string | undefined;
|
|
24
24
|
alt?: string | undefined;
|
|
25
|
-
uploader_id?: string | undefined;
|
|
26
25
|
notes?: string | undefined;
|
|
27
|
-
|
|
26
|
+
uploader_id?: string | undefined;
|
|
27
|
+
extension?: string | undefined;
|
|
28
28
|
search_highlight?: {
|
|
29
|
-
|
|
29
|
+
credits?: string | undefined;
|
|
30
30
|
alt?: string | undefined;
|
|
31
31
|
notes?: string | undefined;
|
|
32
|
-
|
|
32
|
+
filename?: string | undefined;
|
|
33
33
|
} | undefined;
|
|
34
34
|
}, Error, File, unknown>;
|
|
35
35
|
isUploadingImage: boolean;
|
|
@@ -21,6 +21,7 @@ export declare function useDocuments(params: {
|
|
|
21
21
|
last_modified_date: Date;
|
|
22
22
|
custom_type_label: string;
|
|
23
23
|
author: {
|
|
24
|
+
id?: string | undefined;
|
|
24
25
|
first_name?: string | undefined;
|
|
25
26
|
last_name?: string | undefined;
|
|
26
27
|
email?: string | undefined;
|
|
@@ -42,9 +43,9 @@ export declare function useDocuments(params: {
|
|
|
42
43
|
tags: string[];
|
|
43
44
|
version_id: string;
|
|
44
45
|
last_modified_date: Date;
|
|
45
|
-
custom_type_id?: string | undefined;
|
|
46
46
|
preview_image?: string | undefined;
|
|
47
47
|
uid?: string | undefined;
|
|
48
|
+
custom_type_id?: string | undefined;
|
|
48
49
|
summary?: string | undefined;
|
|
49
50
|
author_ids?: string[] | undefined;
|
|
50
51
|
highlights?: {
|
|
@@ -76,6 +77,7 @@ export declare function useDocuments(params: {
|
|
|
76
77
|
last_modified_date: Date;
|
|
77
78
|
custom_type_label: string;
|
|
78
79
|
author: {
|
|
80
|
+
id?: string | undefined;
|
|
79
81
|
first_name?: string | undefined;
|
|
80
82
|
last_name?: string | undefined;
|
|
81
83
|
email?: string | undefined;
|
|
@@ -97,9 +99,9 @@ export declare function useDocuments(params: {
|
|
|
97
99
|
tags: string[];
|
|
98
100
|
version_id: string;
|
|
99
101
|
last_modified_date: Date;
|
|
100
|
-
custom_type_id?: string | undefined;
|
|
101
102
|
preview_image?: string | undefined;
|
|
102
103
|
uid?: string | undefined;
|
|
104
|
+
custom_type_id?: string | undefined;
|
|
103
105
|
summary?: string | undefined;
|
|
104
106
|
author_ids?: string[] | undefined;
|
|
105
107
|
highlights?: {
|
|
@@ -16,7 +16,7 @@ interface GetFieldIconArgs {
|
|
|
16
16
|
selectType?: FieldSelectType;
|
|
17
17
|
displayTextEnabled?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "
|
|
19
|
+
export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "description" | "link" | "notes" | "public";
|
|
20
20
|
interface FilledLinkFieldProps {
|
|
21
21
|
id?: string;
|
|
22
22
|
appearance?: LinkFieldAppearance;
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
component: import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any>;
|
|
4
4
|
converter: {
|
|
5
5
|
fromPrismic(schema: Schema<any, any>): (list: {
|
|
6
|
-
type: "image" | "
|
|
6
|
+
type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
7
7
|
content: {
|
|
8
8
|
text: string;
|
|
9
9
|
} & {
|
|
@@ -56,7 +56,7 @@ declare const _default: {
|
|
|
56
56
|
} | {
|
|
57
57
|
start: number;
|
|
58
58
|
end: number;
|
|
59
|
-
type: "
|
|
59
|
+
type: "strong" | "em" | "list-item";
|
|
60
60
|
})[] | undefined;
|
|
61
61
|
};
|
|
62
62
|
} & {
|
|
@@ -64,7 +64,7 @@ declare const _default: {
|
|
|
64
64
|
direction?: string | undefined;
|
|
65
65
|
}) => ProsemirrorNode | undefined;
|
|
66
66
|
toPrismic(node: ProsemirrorNode, nodeType: "list-item" | "o-list-item"): readonly ({
|
|
67
|
-
type: "image" | "
|
|
67
|
+
type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
68
68
|
content: {
|
|
69
69
|
text: string;
|
|
70
70
|
} & {
|
|
@@ -117,7 +117,7 @@ declare const _default: {
|
|
|
117
117
|
} | {
|
|
118
118
|
start: number;
|
|
119
119
|
end: number;
|
|
120
|
-
type: "
|
|
120
|
+
type: "strong" | "em" | "list-item";
|
|
121
121
|
})[] | undefined;
|
|
122
122
|
};
|
|
123
123
|
} & {
|
|
@@ -20,32 +20,32 @@ export declare function useImageView(props: useImageViewProps): {
|
|
|
20
20
|
updateContent: (content?: ImageBlockData) => void;
|
|
21
21
|
onClear: () => void;
|
|
22
22
|
uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
|
|
23
|
-
id: string;
|
|
24
|
-
kind: string;
|
|
25
|
-
url: string;
|
|
26
|
-
size: number;
|
|
27
23
|
tags: {
|
|
28
|
-
id: string;
|
|
29
24
|
name: string;
|
|
30
|
-
|
|
25
|
+
id: string;
|
|
31
26
|
created_at: number;
|
|
27
|
+
last_modified: number;
|
|
32
28
|
count: number;
|
|
33
29
|
uploader_id?: string | undefined;
|
|
34
30
|
}[];
|
|
35
|
-
|
|
31
|
+
id: string;
|
|
32
|
+
url: string;
|
|
33
|
+
kind: string;
|
|
34
|
+
size: number;
|
|
36
35
|
last_modified: number;
|
|
37
|
-
|
|
36
|
+
filename: string;
|
|
38
37
|
width?: number | undefined;
|
|
39
|
-
|
|
38
|
+
height?: number | undefined;
|
|
39
|
+
credits?: string | undefined;
|
|
40
40
|
alt?: string | undefined;
|
|
41
|
-
uploader_id?: string | undefined;
|
|
42
41
|
notes?: string | undefined;
|
|
43
|
-
|
|
42
|
+
uploader_id?: string | undefined;
|
|
43
|
+
extension?: string | undefined;
|
|
44
44
|
search_highlight?: {
|
|
45
|
-
|
|
45
|
+
credits?: string | undefined;
|
|
46
46
|
alt?: string | undefined;
|
|
47
47
|
notes?: string | undefined;
|
|
48
|
-
|
|
48
|
+
filename?: string | undefined;
|
|
49
49
|
} | undefined;
|
|
50
50
|
}, Error, File, unknown>;
|
|
51
51
|
isUploadingImage: boolean;
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
import { TableExtension } from "../../models";
|
|
2
|
+
declare module "@tiptap/core" {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
Table: {
|
|
5
|
+
/**
|
|
6
|
+
* Add a row at the end of the table
|
|
7
|
+
* @returns True if the command was successful, otherwise false
|
|
8
|
+
* @example editor.commands.addRowEnd()
|
|
9
|
+
*/
|
|
10
|
+
addRowEnd: () => ReturnType;
|
|
11
|
+
/**
|
|
12
|
+
* Add a column at the end of the table
|
|
13
|
+
* @returns True if the command was successful, otherwise false
|
|
14
|
+
* @example editor.commands.addColumnEnd()
|
|
15
|
+
*/
|
|
16
|
+
addColumnEnd: () => ReturnType;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
2
20
|
export declare const Table: TableExtension;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
2
|
+
import { TableContent } from "@prismicio/types-internal/lib/content";
|
|
3
3
|
import { type Table } from "@prismicio/types-internal/lib/customtypes";
|
|
4
4
|
interface Props {
|
|
5
5
|
id: string;
|