@prismicio/editor-fields 0.4.62 → 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/documentsData.d.ts +8 -8
- 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 +3 -3
- 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 +11 -11
- 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/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/index.cjs.js +37 -37
- package/dist/index.es.js +7237 -7220
- package/package.json +26 -27
|
@@ -45,8 +45,8 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
45
45
|
} | {
|
|
46
46
|
status: "archived";
|
|
47
47
|
}) & {
|
|
48
|
-
version_id: string;
|
|
49
48
|
tags: string[];
|
|
49
|
+
version_id: string;
|
|
50
50
|
last_modified_date: Date;
|
|
51
51
|
custom_type_label: string;
|
|
52
52
|
author: {
|
|
@@ -77,13 +77,13 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
77
77
|
} | {
|
|
78
78
|
status: "archived";
|
|
79
79
|
}) & {
|
|
80
|
-
version_id: string;
|
|
81
80
|
tags: string[];
|
|
81
|
+
version_id: string;
|
|
82
82
|
last_modified_date: Date;
|
|
83
|
-
|
|
83
|
+
custom_type_id?: string | undefined;
|
|
84
84
|
preview_image?: string | undefined;
|
|
85
85
|
uid?: string | undefined;
|
|
86
|
-
|
|
86
|
+
summary?: string | undefined;
|
|
87
87
|
author_ids?: string[] | undefined;
|
|
88
88
|
highlights?: {
|
|
89
89
|
uid?: string | undefined;
|
|
@@ -131,8 +131,8 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
131
131
|
} | {
|
|
132
132
|
status: "archived";
|
|
133
133
|
}) & {
|
|
134
|
-
version_id: string;
|
|
135
134
|
tags: string[];
|
|
135
|
+
version_id: string;
|
|
136
136
|
last_modified_date: Date;
|
|
137
137
|
custom_type_label: string;
|
|
138
138
|
author: {
|
|
@@ -163,13 +163,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
163
163
|
} | {
|
|
164
164
|
status: "archived";
|
|
165
165
|
}) & {
|
|
166
|
-
version_id: string;
|
|
167
166
|
tags: string[];
|
|
167
|
+
version_id: string;
|
|
168
168
|
last_modified_date: Date;
|
|
169
|
-
|
|
169
|
+
custom_type_id?: string | undefined;
|
|
170
170
|
preview_image?: string | undefined;
|
|
171
171
|
uid?: string | undefined;
|
|
172
|
-
|
|
172
|
+
summary?: string | undefined;
|
|
173
173
|
author_ids?: string[] | undefined;
|
|
174
174
|
highlights?: {
|
|
175
175
|
uid?: string | undefined;
|
|
@@ -197,8 +197,8 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
197
197
|
} | {
|
|
198
198
|
status: "archived";
|
|
199
199
|
}) & {
|
|
200
|
-
version_id: string;
|
|
201
200
|
tags: string[];
|
|
201
|
+
version_id: string;
|
|
202
202
|
last_modified_date: Date;
|
|
203
203
|
custom_type_label: string;
|
|
204
204
|
author: {
|
|
@@ -229,13 +229,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
229
229
|
} | {
|
|
230
230
|
status: "archived";
|
|
231
231
|
}) & {
|
|
232
|
-
version_id: string;
|
|
233
232
|
tags: string[];
|
|
233
|
+
version_id: string;
|
|
234
234
|
last_modified_date: Date;
|
|
235
|
-
|
|
235
|
+
custom_type_id?: string | undefined;
|
|
236
236
|
preview_image?: string | undefined;
|
|
237
237
|
uid?: string | undefined;
|
|
238
|
-
|
|
238
|
+
summary?: string | undefined;
|
|
239
239
|
author_ids?: string[] | undefined;
|
|
240
240
|
highlights?: {
|
|
241
241
|
uid?: string | undefined;
|
|
@@ -285,8 +285,8 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
285
285
|
} | {
|
|
286
286
|
status: "archived";
|
|
287
287
|
}) & {
|
|
288
|
-
version_id: string;
|
|
289
288
|
tags: string[];
|
|
289
|
+
version_id: string;
|
|
290
290
|
last_modified_date: Date;
|
|
291
291
|
custom_type_label: string;
|
|
292
292
|
author: {
|
|
@@ -317,13 +317,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
317
317
|
} | {
|
|
318
318
|
status: "archived";
|
|
319
319
|
}) & {
|
|
320
|
-
version_id: string;
|
|
321
320
|
tags: string[];
|
|
321
|
+
version_id: string;
|
|
322
322
|
last_modified_date: Date;
|
|
323
|
-
|
|
323
|
+
custom_type_id?: string | undefined;
|
|
324
324
|
preview_image?: string | undefined;
|
|
325
325
|
uid?: string | undefined;
|
|
326
|
-
|
|
326
|
+
summary?: string | undefined;
|
|
327
327
|
author_ids?: string[] | undefined;
|
|
328
328
|
highlights?: {
|
|
329
329
|
uid?: string | undefined;
|
|
@@ -374,8 +374,8 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
374
374
|
} | {
|
|
375
375
|
status: "archived";
|
|
376
376
|
}) & {
|
|
377
|
-
version_id: string;
|
|
378
377
|
tags: string[];
|
|
378
|
+
version_id: string;
|
|
379
379
|
last_modified_date: Date;
|
|
380
380
|
custom_type_label: string;
|
|
381
381
|
author: {
|
|
@@ -406,13 +406,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
406
406
|
} | {
|
|
407
407
|
status: "archived";
|
|
408
408
|
}) & {
|
|
409
|
-
version_id: string;
|
|
410
409
|
tags: string[];
|
|
410
|
+
version_id: string;
|
|
411
411
|
last_modified_date: Date;
|
|
412
|
-
|
|
412
|
+
custom_type_id?: string | undefined;
|
|
413
413
|
preview_image?: string | undefined;
|
|
414
414
|
uid?: string | undefined;
|
|
415
|
-
|
|
415
|
+
summary?: string | undefined;
|
|
416
416
|
author_ids?: string[] | undefined;
|
|
417
417
|
highlights?: {
|
|
418
418
|
uid?: string | undefined;
|
|
@@ -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
|
-
name: string;
|
|
41
40
|
id: string;
|
|
41
|
+
name: string;
|
|
42
42
|
is_master?: boolean | undefined;
|
|
43
43
|
}, {
|
|
44
|
-
name: string;
|
|
45
44
|
id: string;
|
|
45
|
+
name: 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
|
-
name: string;
|
|
53
52
|
id: string;
|
|
53
|
+
name: 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
|
-
name: string;
|
|
61
60
|
id: string;
|
|
61
|
+
name: 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
|
-
name: string;
|
|
130
129
|
id: string;
|
|
130
|
+
name: 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
|
-
name: string;
|
|
179
178
|
id: string;
|
|
179
|
+
name: 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
|
-
name: string;
|
|
17
16
|
id: string;
|
|
17
|
+
name: 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
|
-
name: string;
|
|
23
22
|
id: string;
|
|
23
|
+
name: 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
|
-
name: string;
|
|
55
54
|
id: string;
|
|
55
|
+
name: 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
|
-
name: string;
|
|
61
60
|
id: string;
|
|
61
|
+
name: 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
|
-
name: string;
|
|
69
68
|
id: string;
|
|
69
|
+
name: 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
|
-
name: string;
|
|
77
76
|
id: string;
|
|
77
|
+
name: 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
|
-
name: string;
|
|
93
92
|
id: string;
|
|
93
|
+
name: 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
|
-
name: string;
|
|
100
99
|
id: string;
|
|
100
|
+
name: 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
|
-
name: string;
|
|
108
107
|
id: string;
|
|
108
|
+
name: 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
|
-
name: string;
|
|
118
117
|
id: string;
|
|
118
|
+
name: 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
|
-
domain: string;
|
|
27
26
|
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
27
|
+
domain: string;
|
|
28
28
|
name?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
domain: string;
|
|
31
30
|
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
31
|
+
domain: string;
|
|
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
|
-
domain: string;
|
|
43
42
|
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
43
|
+
domain: string;
|
|
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
|
-
domain: string;
|
|
55
54
|
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
55
|
+
domain: string;
|
|
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
|
-
domain: string;
|
|
70
69
|
role: "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | Record<string, "Manager" | "Writer" | "Readonly" | "Owner" | "Administrator" | undefined>;
|
|
70
|
+
domain: string;
|
|
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
|
-
kind: string;
|
|
92
91
|
id: string;
|
|
92
|
+
kind: string;
|
|
93
93
|
url: string;
|
|
94
94
|
size: number;
|
|
95
95
|
tags: {
|
|
96
|
-
name: string;
|
|
97
96
|
id: string;
|
|
98
|
-
|
|
97
|
+
name: string;
|
|
99
98
|
last_modified: number;
|
|
99
|
+
created_at: number;
|
|
100
100
|
count: number;
|
|
101
101
|
uploader_id?: string | undefined;
|
|
102
102
|
}[];
|
|
103
|
-
last_modified: number;
|
|
104
103
|
filename: string;
|
|
104
|
+
last_modified: number;
|
|
105
105
|
height?: number | undefined;
|
|
106
106
|
width?: number | undefined;
|
|
107
|
-
|
|
107
|
+
extension?: string | undefined;
|
|
108
108
|
alt?: string | undefined;
|
|
109
|
-
notes?: string | undefined;
|
|
110
109
|
uploader_id?: string | undefined;
|
|
111
|
-
|
|
110
|
+
notes?: string | undefined;
|
|
111
|
+
credits?: string | undefined;
|
|
112
112
|
search_highlight?: {
|
|
113
|
-
|
|
113
|
+
filename?: string | undefined;
|
|
114
114
|
alt?: string | undefined;
|
|
115
115
|
notes?: string | undefined;
|
|
116
|
-
|
|
116
|
+
credits?: 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
|
-
kind: string;
|
|
8
7
|
id: string;
|
|
8
|
+
kind: string;
|
|
9
9
|
url: string;
|
|
10
10
|
size: number;
|
|
11
11
|
tags: {
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
14
|
-
|
|
13
|
+
name: string;
|
|
15
14
|
last_modified: number;
|
|
15
|
+
created_at: number;
|
|
16
16
|
count: number;
|
|
17
17
|
uploader_id?: string | undefined;
|
|
18
18
|
}[];
|
|
19
|
-
last_modified: number;
|
|
20
19
|
filename: string;
|
|
20
|
+
last_modified: number;
|
|
21
21
|
height?: number | undefined;
|
|
22
22
|
width?: number | undefined;
|
|
23
|
-
|
|
23
|
+
extension?: string | undefined;
|
|
24
24
|
alt?: string | undefined;
|
|
25
|
-
notes?: string | undefined;
|
|
26
25
|
uploader_id?: string | undefined;
|
|
27
|
-
|
|
26
|
+
notes?: string | undefined;
|
|
27
|
+
credits?: string | undefined;
|
|
28
28
|
search_highlight?: {
|
|
29
|
-
|
|
29
|
+
filename?: string | undefined;
|
|
30
30
|
alt?: string | undefined;
|
|
31
31
|
notes?: string | undefined;
|
|
32
|
-
|
|
32
|
+
credits?: string | undefined;
|
|
33
33
|
} | undefined;
|
|
34
34
|
}, Error, File, unknown>;
|
|
35
35
|
isUploadingImage: boolean;
|
|
@@ -16,8 +16,8 @@ export declare function useDocuments(params: {
|
|
|
16
16
|
} | {
|
|
17
17
|
status: "archived";
|
|
18
18
|
}) & {
|
|
19
|
-
version_id: string;
|
|
20
19
|
tags: string[];
|
|
20
|
+
version_id: string;
|
|
21
21
|
last_modified_date: Date;
|
|
22
22
|
custom_type_label: string;
|
|
23
23
|
author: {
|
|
@@ -39,13 +39,13 @@ export declare function useDocuments(params: {
|
|
|
39
39
|
} | {
|
|
40
40
|
status: "archived";
|
|
41
41
|
}) & {
|
|
42
|
-
version_id: string;
|
|
43
42
|
tags: string[];
|
|
43
|
+
version_id: string;
|
|
44
44
|
last_modified_date: Date;
|
|
45
|
-
|
|
45
|
+
custom_type_id?: string | undefined;
|
|
46
46
|
preview_image?: string | undefined;
|
|
47
47
|
uid?: string | undefined;
|
|
48
|
-
|
|
48
|
+
summary?: string | undefined;
|
|
49
49
|
author_ids?: string[] | undefined;
|
|
50
50
|
highlights?: {
|
|
51
51
|
uid?: string | undefined;
|
|
@@ -71,8 +71,8 @@ export declare function useDocuments(params: {
|
|
|
71
71
|
} | {
|
|
72
72
|
status: "archived";
|
|
73
73
|
}) & {
|
|
74
|
-
version_id: string;
|
|
75
74
|
tags: string[];
|
|
75
|
+
version_id: string;
|
|
76
76
|
last_modified_date: Date;
|
|
77
77
|
custom_type_label: string;
|
|
78
78
|
author: {
|
|
@@ -94,13 +94,13 @@ export declare function useDocuments(params: {
|
|
|
94
94
|
} | {
|
|
95
95
|
status: "archived";
|
|
96
96
|
}) & {
|
|
97
|
-
version_id: string;
|
|
98
97
|
tags: string[];
|
|
98
|
+
version_id: string;
|
|
99
99
|
last_modified_date: Date;
|
|
100
|
-
|
|
100
|
+
custom_type_id?: string | undefined;
|
|
101
101
|
preview_image?: string | undefined;
|
|
102
102
|
uid?: string | undefined;
|
|
103
|
-
|
|
103
|
+
summary?: string | undefined;
|
|
104
104
|
author_ids?: string[] | undefined;
|
|
105
105
|
highlights?: {
|
|
106
106
|
uid?: string | undefined;
|
|
@@ -16,7 +16,7 @@ interface GetFieldIconArgs {
|
|
|
16
16
|
selectType?: FieldSelectType;
|
|
17
17
|
displayTextEnabled?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare function getFieldIcon(args: GetFieldIconArgs): "
|
|
19
|
+
export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "notes" | "description" | "public" | "link";
|
|
20
20
|
interface FilledLinkFieldProps {
|
|
21
21
|
id?: string;
|
|
22
22
|
appearance?: LinkFieldAppearance;
|
|
@@ -11,7 +11,7 @@ interface useLinkFieldParams {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function useLinkField(params: useLinkFieldParams): {
|
|
13
13
|
contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
|
|
14
|
-
selectType: "
|
|
14
|
+
selectType: "web" | "document" | "media" | "any" | undefined;
|
|
15
15
|
fieldValue: string;
|
|
16
16
|
onDisplayTextChange: (displayText: string) => void;
|
|
17
17
|
onValueChange: (value: string, options?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Node as ProsemirrorNode, Schema } from "
|
|
1
|
+
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
2
2
|
declare function splitTextToNodes(schema: Schema, text: string): (textToNode: (strText: string) => ProsemirrorNode) => ProsemirrorNode[];
|
|
3
3
|
declare const EditorHardBreak: {
|
|
4
4
|
name: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Node as ProsemirrorNode, Schema } from "
|
|
1
|
+
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
2
2
|
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: "
|
|
6
|
+
type: "image" | "em" | "embed" | "strong" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
7
7
|
content: {
|
|
8
8
|
text: string;
|
|
9
9
|
} & {
|
|
@@ -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: "
|
|
67
|
+
type: "image" | "em" | "embed" | "strong" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
68
68
|
content: {
|
|
69
69
|
text: string;
|
|
70
70
|
} & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TextBlock } from "@prismicio/types-internal/lib/content";
|
|
2
2
|
import type { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
-
import type { Node as ProsemirrorNode, Schema } from "
|
|
3
|
+
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
4
4
|
import type { Direction } from "../globalExtensions/TextDirection";
|
|
5
5
|
export declare const prismicToProsemirrorMark: {
|
|
6
6
|
strong: "bold";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mark } from "@tiptap/core";
|
|
2
|
-
import type { Mark as ProsemirrorMark, Schema } from "
|
|
2
|
+
import type { Mark as ProsemirrorMark, Schema } from "@tiptap/pm/model";
|
|
3
3
|
import { ExtensionType } from "../../models";
|
|
4
4
|
import type { ExtendedRichTextNodeType } from "../../types";
|
|
5
5
|
export declare class BoldExtension {
|
|
@@ -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;
|
|
23
27
|
tags: {
|
|
24
|
-
name: string;
|
|
25
28
|
id: string;
|
|
29
|
+
name: string;
|
|
26
30
|
last_modified: number;
|
|
27
31
|
created_at: number;
|
|
28
32
|
count: number;
|
|
29
33
|
uploader_id?: string | undefined;
|
|
30
34
|
}[];
|
|
31
|
-
size: number;
|
|
32
|
-
id: string;
|
|
33
|
-
kind: string;
|
|
34
|
-
url: string;
|
|
35
35
|
filename: string;
|
|
36
36
|
last_modified: number;
|
|
37
|
-
notes?: string | undefined;
|
|
38
|
-
width?: number | undefined;
|
|
39
37
|
height?: number | undefined;
|
|
40
|
-
|
|
41
|
-
alt?: string | undefined;
|
|
38
|
+
width?: number | undefined;
|
|
42
39
|
extension?: string | undefined;
|
|
40
|
+
alt?: string | undefined;
|
|
43
41
|
uploader_id?: string | undefined;
|
|
42
|
+
notes?: string | undefined;
|
|
43
|
+
credits?: string | undefined;
|
|
44
44
|
search_highlight?: {
|
|
45
|
+
filename?: string | undefined;
|
|
46
|
+
alt?: string | undefined;
|
|
45
47
|
notes?: string | undefined;
|
|
46
48
|
credits?: string | undefined;
|
|
47
|
-
alt?: string | undefined;
|
|
48
|
-
filename?: string | undefined;
|
|
49
49
|
} | undefined;
|
|
50
50
|
}, Error, File, unknown>;
|
|
51
51
|
isUploadingImage: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mark } from "@tiptap/core";
|
|
2
|
-
import type { Mark as ProsemirrorMark, Schema } from "
|
|
2
|
+
import type { Mark as ProsemirrorMark, Schema } from "@tiptap/pm/model";
|
|
3
3
|
import { ExtensionType } from "../../models";
|
|
4
4
|
import type { ExtendedRichTextNodeType } from "../../types";
|
|
5
5
|
export declare class ItalicExtension {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mark } from "@tiptap/core";
|
|
2
|
-
import type { Mark as ProsemirrorMark, Schema } from "
|
|
2
|
+
import type { Mark as ProsemirrorMark, Schema } from "@tiptap/pm/model";
|
|
3
3
|
import { ExtensionType } from "../../models";
|
|
4
4
|
import type { ExtendedRichTextNodeType } from "../../types";
|
|
5
5
|
export declare class LabelExtension {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Attrs } from "
|
|
1
|
+
import type { Attrs } from "@tiptap/pm/model";
|
|
2
2
|
import type { MediaAssetOrExternalImage } from "../../../../core/MediaLibrary/hooks/mediaLibraryData";
|
|
3
3
|
import { type FileLinkData, type ImageLinkData, type LinkElementData, LinkExtension } from "./LinkModel";
|
|
4
4
|
export interface LinkProtocolOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mark } from "@tiptap/core";
|
|
2
|
-
import type { Mark as ProsemirrorMark, Schema } from "
|
|
2
|
+
import type { Mark as ProsemirrorMark, Schema } from "@tiptap/pm/model";
|
|
3
3
|
import { ExtensionType } from "../../models";
|
|
4
4
|
import type { ExtendedRichTextNodeType } from "../../types";
|
|
5
5
|
export declare class LinkExtension {
|
|
@@ -12,7 +12,7 @@ import { Link } from "./Link/Link";
|
|
|
12
12
|
import { default as OrderedList } from "./OrderedList/OrderedList";
|
|
13
13
|
import { default as Paragraph } from "./Paragraph/Paragraph";
|
|
14
14
|
import { Table } from "./Table/Table";
|
|
15
|
-
export declare const MarkExtensions: (import("./
|
|
15
|
+
export declare const MarkExtensions: (import("./Bold/BoldModel").BoldExtension | import("./Italic/ItalicModel").ItalicExtension | import("./Link/LinkModel").LinkExtension | import("./Label/LabelModel").LabelExtension)[];
|
|
16
16
|
export type MarkExtensionName = (typeof MarkExtensions)[number]["name"];
|
|
17
17
|
export declare function getAllExtensions(nodeTypes?: Set<ExtendedRichTextNodeType>): WidgetExtension[];
|
|
18
18
|
export { Bold, BulletList, CodeBlock, Embed, Heading, Image, Italic, Label, Link, OrderedList, Paragraph, Table, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TextBlock } from "@prismicio/types-internal/lib/content";
|
|
2
2
|
import { Extension } from "@tiptap/core";
|
|
3
|
-
import type { Node as ProsemirrorNode } from "
|
|
3
|
+
import type { Node as ProsemirrorNode } from "@tiptap/pm/model";
|
|
4
4
|
export type Direction = "ltr" | "rtl";
|
|
5
5
|
export declare const leftToRight: Direction;
|
|
6
6
|
export declare const rightToLeft: Direction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EmbedBlock, ImageBlock, TextBlock } from "@prismicio/types-internal/lib/content";
|
|
2
2
|
import type { Node } from "@tiptap/core";
|
|
3
|
-
import type { Node as ProsemirrorNode, Schema } from "
|
|
3
|
+
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
4
4
|
import type { BoldExtension } from "../extensions/Bold/BoldModel";
|
|
5
5
|
import type { Level } from "../extensions/Heading/Heading";
|
|
6
6
|
import type { ItalicExtension } from "../extensions/Italic/ItalicModel";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Mark as ProsemirrorMark, Node as ProsemirrorNode } from "
|
|
1
|
+
import type { Mark as ProsemirrorMark, Node as ProsemirrorNode } from "@tiptap/pm/model";
|
|
2
2
|
export declare const NodeUtils: {
|
|
3
3
|
isHardBreak(node: ProsemirrorNode): boolean;
|
|
4
4
|
children: {
|