@blocknote/core 0.25.2 → 0.26.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/blocknote.cjs +7 -7
- package/dist/blocknote.cjs.map +1 -1
- package/dist/blocknote.js +759 -618
- package/dist/blocknote.js.map +1 -1
- package/dist/comments.cjs +1 -1
- package/dist/comments.cjs.map +1 -1
- package/dist/comments.js +45 -44
- package/dist/comments.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +2 -2
- package/src/api/nodeConversions/nodeToBlock.ts +1 -0
- package/src/api/parsers/html/__snapshots__/parse-2-tables.json +129 -0
- package/src/api/parsers/html/parseHTML.test.ts +35 -0
- package/src/comments/threadstore/yjs/YjsThreadStore.ts +1 -0
- package/src/comments/threadstore/yjs/yjsHelpers.ts +3 -1
- package/src/comments/types.ts +4 -0
- package/src/editor/Block.css +1 -1
- package/src/editor/BlockNoteEditor.ts +1 -1
- package/src/editor/BlockNoteTipTapEditor.ts +18 -7
- package/src/extensions/Comments/CommentsPlugin.ts +76 -29
- package/src/extensions/SideMenu/dragging.ts +13 -0
- package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +6 -2
- package/src/extensions/TableHandles/TableHandlesPlugin.ts +24 -23
- package/src/i18n/locales/ar.ts +4 -0
- package/src/i18n/locales/de.ts +15 -1
- package/src/i18n/locales/en.ts +4 -0
- package/src/i18n/locales/es.ts +15 -1
- package/src/i18n/locales/fr.ts +4 -0
- package/src/i18n/locales/hr.ts +21 -4
- package/src/i18n/locales/is.ts +4 -0
- package/src/i18n/locales/it.ts +15 -1
- package/src/i18n/locales/ja.ts +4 -0
- package/src/i18n/locales/ko.ts +4 -0
- package/src/i18n/locales/nl.ts +4 -0
- package/src/i18n/locales/no.ts +4 -0
- package/src/i18n/locales/pl.ts +4 -0
- package/src/i18n/locales/pt.ts +4 -0
- package/src/i18n/locales/ru.ts +4 -0
- package/src/i18n/locales/uk.ts +4 -0
- package/src/i18n/locales/vi.ts +4 -0
- package/src/i18n/locales/zh.ts +4 -0
- package/types/src/comments/types.d.ts +4 -0
- package/types/src/editor/BlockNoteTipTapEditor.d.ts +2 -1
- package/types/src/extensions/Comments/CommentsPlugin.d.ts +16 -1
- package/types/src/extensions/Comments/threadstore/DefaultThreadStoreAuth.d.ts +47 -0
- package/types/src/extensions/Comments/threadstore/ThreadStore.d.ts +121 -0
- package/types/src/extensions/Comments/threadstore/ThreadStoreAuth.d.ts +12 -0
- package/types/src/extensions/Comments/threadstore/TipTapThreadStore.d.ts +97 -0
- package/types/src/extensions/Comments/threadstore/yjs/RESTYjsThreadStore.d.ts +83 -0
- package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStore.d.ts +79 -0
- package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStore.test.d.ts +1 -0
- package/types/src/extensions/Comments/threadstore/yjs/YjsThreadStoreBase.d.ts +15 -0
- package/types/src/extensions/Comments/threadstore/yjs/yjsHelpers.d.ts +13 -0
- package/types/src/extensions/Comments/types.d.ts +109 -0
- package/types/src/i18n/locales/de.d.ts +2 -304
- package/types/src/i18n/locales/en.d.ts +4 -0
- package/types/src/i18n/locales/es.d.ts +2 -269
- package/types/src/i18n/locales/hr.d.ts +2 -266
- package/types/src/i18n/locales/it.d.ts +2 -269
- package/types/src/models/User.d.ts +5 -0
- package/types/src/blocks/CodeBlockContent/shiki.bundle.d.ts +0 -82
|
@@ -1,266 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
heading: {
|
|
4
|
-
title: string;
|
|
5
|
-
subtext: string;
|
|
6
|
-
aliases: string[];
|
|
7
|
-
group: string;
|
|
8
|
-
};
|
|
9
|
-
heading_2: {
|
|
10
|
-
title: string;
|
|
11
|
-
subtext: string;
|
|
12
|
-
aliases: string[];
|
|
13
|
-
group: string;
|
|
14
|
-
};
|
|
15
|
-
heading_3: {
|
|
16
|
-
title: string;
|
|
17
|
-
subtext: string;
|
|
18
|
-
aliases: string[];
|
|
19
|
-
group: string;
|
|
20
|
-
};
|
|
21
|
-
numbered_list: {
|
|
22
|
-
title: string;
|
|
23
|
-
subtext: string;
|
|
24
|
-
aliases: string[];
|
|
25
|
-
group: string;
|
|
26
|
-
};
|
|
27
|
-
bullet_list: {
|
|
28
|
-
title: string;
|
|
29
|
-
subtext: string;
|
|
30
|
-
aliases: string[];
|
|
31
|
-
group: string;
|
|
32
|
-
};
|
|
33
|
-
check_list: {
|
|
34
|
-
title: string;
|
|
35
|
-
subtext: string;
|
|
36
|
-
aliases: string[];
|
|
37
|
-
group: string;
|
|
38
|
-
};
|
|
39
|
-
paragraph: {
|
|
40
|
-
title: string;
|
|
41
|
-
subtext: string;
|
|
42
|
-
aliases: string[];
|
|
43
|
-
group: string;
|
|
44
|
-
};
|
|
45
|
-
table: {
|
|
46
|
-
title: string;
|
|
47
|
-
subtext: string;
|
|
48
|
-
aliases: string[];
|
|
49
|
-
group: string;
|
|
50
|
-
};
|
|
51
|
-
page_break: {
|
|
52
|
-
title: string;
|
|
53
|
-
subtext: string;
|
|
54
|
-
aliases: string[];
|
|
55
|
-
group: string;
|
|
56
|
-
};
|
|
57
|
-
image: {
|
|
58
|
-
title: string;
|
|
59
|
-
subtext: string;
|
|
60
|
-
aliases: string[];
|
|
61
|
-
group: string;
|
|
62
|
-
};
|
|
63
|
-
video: {
|
|
64
|
-
title: string;
|
|
65
|
-
subtext: string;
|
|
66
|
-
aliases: string[];
|
|
67
|
-
group: string;
|
|
68
|
-
};
|
|
69
|
-
audio: {
|
|
70
|
-
title: string;
|
|
71
|
-
subtext: string;
|
|
72
|
-
aliases: string[];
|
|
73
|
-
group: string;
|
|
74
|
-
};
|
|
75
|
-
file: {
|
|
76
|
-
title: string;
|
|
77
|
-
subtext: string;
|
|
78
|
-
aliases: string[];
|
|
79
|
-
group: string;
|
|
80
|
-
};
|
|
81
|
-
emoji: {
|
|
82
|
-
title: string;
|
|
83
|
-
subtext: string;
|
|
84
|
-
aliases: string[];
|
|
85
|
-
group: string;
|
|
86
|
-
};
|
|
87
|
-
comment: {
|
|
88
|
-
tooltip: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
placeholders: {
|
|
92
|
-
default: string;
|
|
93
|
-
heading: string;
|
|
94
|
-
bulletListItem: string;
|
|
95
|
-
numberedListItem: string;
|
|
96
|
-
checkListItem: string;
|
|
97
|
-
new_comment: string;
|
|
98
|
-
edit_comment: string;
|
|
99
|
-
comment_reply: string;
|
|
100
|
-
};
|
|
101
|
-
file_blocks: {
|
|
102
|
-
image: {
|
|
103
|
-
add_button_text: string;
|
|
104
|
-
};
|
|
105
|
-
video: {
|
|
106
|
-
add_button_text: string;
|
|
107
|
-
};
|
|
108
|
-
audio: {
|
|
109
|
-
add_button_text: string;
|
|
110
|
-
};
|
|
111
|
-
file: {
|
|
112
|
-
add_button_text: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
side_menu: {
|
|
116
|
-
add_block_label: string;
|
|
117
|
-
drag_handle_label: string;
|
|
118
|
-
};
|
|
119
|
-
drag_handle: {
|
|
120
|
-
delete_menuitem: string;
|
|
121
|
-
colors_menuitem: string;
|
|
122
|
-
};
|
|
123
|
-
table_handle: {
|
|
124
|
-
delete_column_menuitem: string;
|
|
125
|
-
delete_row_menuitem: string;
|
|
126
|
-
add_left_menuitem: string;
|
|
127
|
-
add_right_menuitem: string;
|
|
128
|
-
add_above_menuitem: string;
|
|
129
|
-
add_below_menuitem: string;
|
|
130
|
-
};
|
|
131
|
-
suggestion_menu: {
|
|
132
|
-
no_items_title: string;
|
|
133
|
-
loading: string;
|
|
134
|
-
};
|
|
135
|
-
color_picker: {
|
|
136
|
-
text_title: string;
|
|
137
|
-
background_title: string;
|
|
138
|
-
colors: {
|
|
139
|
-
default: string;
|
|
140
|
-
gray: string;
|
|
141
|
-
brown: string;
|
|
142
|
-
red: string;
|
|
143
|
-
orange: string;
|
|
144
|
-
yellow: string;
|
|
145
|
-
green: string;
|
|
146
|
-
blue: string;
|
|
147
|
-
purple: string;
|
|
148
|
-
pink: string;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
formatting_toolbar: {
|
|
152
|
-
bold: {
|
|
153
|
-
tooltip: string;
|
|
154
|
-
secondary_tooltip: string;
|
|
155
|
-
};
|
|
156
|
-
italic: {
|
|
157
|
-
tooltip: string;
|
|
158
|
-
secondary_tooltip: string;
|
|
159
|
-
};
|
|
160
|
-
underline: {
|
|
161
|
-
tooltip: string;
|
|
162
|
-
secondary_tooltip: string;
|
|
163
|
-
};
|
|
164
|
-
strike: {
|
|
165
|
-
tooltip: string;
|
|
166
|
-
secondary_tooltip: string;
|
|
167
|
-
};
|
|
168
|
-
code: {
|
|
169
|
-
tooltip: string;
|
|
170
|
-
secondary_tooltip: string;
|
|
171
|
-
};
|
|
172
|
-
colors: {
|
|
173
|
-
tooltip: string;
|
|
174
|
-
};
|
|
175
|
-
link: {
|
|
176
|
-
tooltip: string;
|
|
177
|
-
secondary_tooltip: string;
|
|
178
|
-
};
|
|
179
|
-
file_caption: {
|
|
180
|
-
tooltip: string;
|
|
181
|
-
input_placeholder: string;
|
|
182
|
-
};
|
|
183
|
-
file_replace: {
|
|
184
|
-
tooltip: Record<string, string>;
|
|
185
|
-
};
|
|
186
|
-
file_rename: {
|
|
187
|
-
tooltip: Record<string, string>;
|
|
188
|
-
input_placeholder: Record<string, string>;
|
|
189
|
-
};
|
|
190
|
-
file_download: {
|
|
191
|
-
tooltip: Record<string, string>;
|
|
192
|
-
};
|
|
193
|
-
file_delete: {
|
|
194
|
-
tooltip: Record<string, string>;
|
|
195
|
-
};
|
|
196
|
-
file_preview_toggle: {
|
|
197
|
-
tooltip: string;
|
|
198
|
-
};
|
|
199
|
-
nest: {
|
|
200
|
-
tooltip: string;
|
|
201
|
-
secondary_tooltip: string;
|
|
202
|
-
};
|
|
203
|
-
unnest: {
|
|
204
|
-
tooltip: string;
|
|
205
|
-
secondary_tooltip: string;
|
|
206
|
-
};
|
|
207
|
-
align_left: {
|
|
208
|
-
tooltip: string;
|
|
209
|
-
};
|
|
210
|
-
align_center: {
|
|
211
|
-
tooltip: string;
|
|
212
|
-
};
|
|
213
|
-
align_right: {
|
|
214
|
-
tooltip: string;
|
|
215
|
-
};
|
|
216
|
-
align_justify: {
|
|
217
|
-
tooltip: string;
|
|
218
|
-
};
|
|
219
|
-
comment: {
|
|
220
|
-
tooltip: string;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
file_panel: {
|
|
224
|
-
upload: {
|
|
225
|
-
title: string;
|
|
226
|
-
file_placeholder: Record<string, string>;
|
|
227
|
-
upload_error: string;
|
|
228
|
-
};
|
|
229
|
-
embed: {
|
|
230
|
-
title: string;
|
|
231
|
-
embed_button: Record<string, string>;
|
|
232
|
-
url_placeholder: string;
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
link_toolbar: {
|
|
236
|
-
delete: {
|
|
237
|
-
tooltip: string;
|
|
238
|
-
};
|
|
239
|
-
edit: {
|
|
240
|
-
text: string;
|
|
241
|
-
tooltip: string;
|
|
242
|
-
};
|
|
243
|
-
open: {
|
|
244
|
-
tooltip: string;
|
|
245
|
-
};
|
|
246
|
-
form: {
|
|
247
|
-
title_placeholder: string;
|
|
248
|
-
url_placeholder: string;
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
comments: {
|
|
252
|
-
actions: {
|
|
253
|
-
add_reaction: string;
|
|
254
|
-
resolve: string;
|
|
255
|
-
edit_comment: string;
|
|
256
|
-
delete_comment: string;
|
|
257
|
-
more_actions: string;
|
|
258
|
-
};
|
|
259
|
-
reactions: {
|
|
260
|
-
reacted_by: string;
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
generic: {
|
|
264
|
-
ctrl_shortcut: string;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
1
|
+
import { Dictionary } from "../dictionary.js";
|
|
2
|
+
export declare const hr: Dictionary;
|
|
@@ -1,269 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
heading: {
|
|
4
|
-
title: string;
|
|
5
|
-
subtext: string;
|
|
6
|
-
aliases: string[];
|
|
7
|
-
group: string;
|
|
8
|
-
};
|
|
9
|
-
heading_2: {
|
|
10
|
-
title: string;
|
|
11
|
-
subtext: string;
|
|
12
|
-
aliases: string[];
|
|
13
|
-
group: string;
|
|
14
|
-
};
|
|
15
|
-
heading_3: {
|
|
16
|
-
title: string;
|
|
17
|
-
subtext: string;
|
|
18
|
-
aliases: string[];
|
|
19
|
-
group: string;
|
|
20
|
-
};
|
|
21
|
-
numbered_list: {
|
|
22
|
-
title: string;
|
|
23
|
-
subtext: string;
|
|
24
|
-
aliases: string[];
|
|
25
|
-
group: string;
|
|
26
|
-
};
|
|
27
|
-
bullet_list: {
|
|
28
|
-
title: string;
|
|
29
|
-
subtext: string;
|
|
30
|
-
aliases: string[];
|
|
31
|
-
group: string;
|
|
32
|
-
};
|
|
33
|
-
check_list: {
|
|
34
|
-
title: string;
|
|
35
|
-
subtext: string;
|
|
36
|
-
aliases: string[];
|
|
37
|
-
group: string;
|
|
38
|
-
};
|
|
39
|
-
paragraph: {
|
|
40
|
-
title: string;
|
|
41
|
-
subtext: string;
|
|
42
|
-
aliases: string[];
|
|
43
|
-
group: string;
|
|
44
|
-
};
|
|
45
|
-
code_block: {
|
|
46
|
-
title: string;
|
|
47
|
-
subtext: string;
|
|
48
|
-
aliases: string[];
|
|
49
|
-
group: string;
|
|
50
|
-
};
|
|
51
|
-
page_break: {
|
|
52
|
-
title: string;
|
|
53
|
-
subtext: string;
|
|
54
|
-
aliases: string[];
|
|
55
|
-
group: string;
|
|
56
|
-
};
|
|
57
|
-
table: {
|
|
58
|
-
title: string;
|
|
59
|
-
subtext: string;
|
|
60
|
-
aliases: string[];
|
|
61
|
-
group: string;
|
|
62
|
-
};
|
|
63
|
-
image: {
|
|
64
|
-
title: string;
|
|
65
|
-
subtext: string;
|
|
66
|
-
aliases: string[];
|
|
67
|
-
group: string;
|
|
68
|
-
};
|
|
69
|
-
video: {
|
|
70
|
-
title: string;
|
|
71
|
-
subtext: string;
|
|
72
|
-
aliases: string[];
|
|
73
|
-
group: string;
|
|
74
|
-
};
|
|
75
|
-
audio: {
|
|
76
|
-
title: string;
|
|
77
|
-
subtext: string;
|
|
78
|
-
aliases: string[];
|
|
79
|
-
group: string;
|
|
80
|
-
};
|
|
81
|
-
file: {
|
|
82
|
-
title: string;
|
|
83
|
-
subtext: string;
|
|
84
|
-
aliases: string[];
|
|
85
|
-
group: string;
|
|
86
|
-
};
|
|
87
|
-
emoji: {
|
|
88
|
-
title: string;
|
|
89
|
-
subtext: string;
|
|
90
|
-
aliases: string[];
|
|
91
|
-
group: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
placeholders: {
|
|
95
|
-
default: string;
|
|
96
|
-
heading: string;
|
|
97
|
-
bulletListItem: string;
|
|
98
|
-
numberedListItem: string;
|
|
99
|
-
checkListItem: string;
|
|
100
|
-
new_comment: string;
|
|
101
|
-
edit_comment: string;
|
|
102
|
-
comment_reply: string;
|
|
103
|
-
};
|
|
104
|
-
file_blocks: {
|
|
105
|
-
image: {
|
|
106
|
-
add_button_text: string;
|
|
107
|
-
};
|
|
108
|
-
video: {
|
|
109
|
-
add_button_text: string;
|
|
110
|
-
};
|
|
111
|
-
audio: {
|
|
112
|
-
add_button_text: string;
|
|
113
|
-
};
|
|
114
|
-
file: {
|
|
115
|
-
add_button_text: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
side_menu: {
|
|
119
|
-
add_block_label: string;
|
|
120
|
-
drag_handle_label: string;
|
|
121
|
-
};
|
|
122
|
-
drag_handle: {
|
|
123
|
-
delete_menuitem: string;
|
|
124
|
-
colors_menuitem: string;
|
|
125
|
-
};
|
|
126
|
-
table_handle: {
|
|
127
|
-
delete_column_menuitem: string;
|
|
128
|
-
delete_row_menuitem: string;
|
|
129
|
-
add_left_menuitem: string;
|
|
130
|
-
add_right_menuitem: string;
|
|
131
|
-
add_above_menuitem: string;
|
|
132
|
-
add_below_menuitem: string;
|
|
133
|
-
};
|
|
134
|
-
suggestion_menu: {
|
|
135
|
-
no_items_title: string;
|
|
136
|
-
loading: string;
|
|
137
|
-
};
|
|
138
|
-
color_picker: {
|
|
139
|
-
text_title: string;
|
|
140
|
-
background_title: string;
|
|
141
|
-
colors: {
|
|
142
|
-
default: string;
|
|
143
|
-
gray: string;
|
|
144
|
-
brown: string;
|
|
145
|
-
red: string;
|
|
146
|
-
orange: string;
|
|
147
|
-
yellow: string;
|
|
148
|
-
green: string;
|
|
149
|
-
blue: string;
|
|
150
|
-
purple: string;
|
|
151
|
-
pink: string;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
formatting_toolbar: {
|
|
155
|
-
bold: {
|
|
156
|
-
tooltip: string;
|
|
157
|
-
secondary_tooltip: string;
|
|
158
|
-
};
|
|
159
|
-
italic: {
|
|
160
|
-
tooltip: string;
|
|
161
|
-
secondary_tooltip: string;
|
|
162
|
-
};
|
|
163
|
-
underline: {
|
|
164
|
-
tooltip: string;
|
|
165
|
-
secondary_tooltip: string;
|
|
166
|
-
};
|
|
167
|
-
strike: {
|
|
168
|
-
tooltip: string;
|
|
169
|
-
secondary_tooltip: string;
|
|
170
|
-
};
|
|
171
|
-
code: {
|
|
172
|
-
tooltip: string;
|
|
173
|
-
secondary_tooltip: string;
|
|
174
|
-
};
|
|
175
|
-
colors: {
|
|
176
|
-
tooltip: string;
|
|
177
|
-
};
|
|
178
|
-
link: {
|
|
179
|
-
tooltip: string;
|
|
180
|
-
secondary_tooltip: string;
|
|
181
|
-
};
|
|
182
|
-
file_caption: {
|
|
183
|
-
tooltip: string;
|
|
184
|
-
input_placeholder: string;
|
|
185
|
-
};
|
|
186
|
-
file_replace: {
|
|
187
|
-
tooltip: Record<string, string>;
|
|
188
|
-
};
|
|
189
|
-
file_rename: {
|
|
190
|
-
tooltip: Record<string, string>;
|
|
191
|
-
input_placeholder: Record<string, string>;
|
|
192
|
-
};
|
|
193
|
-
file_download: {
|
|
194
|
-
tooltip: Record<string, string>;
|
|
195
|
-
};
|
|
196
|
-
file_delete: {
|
|
197
|
-
tooltip: Record<string, string>;
|
|
198
|
-
};
|
|
199
|
-
file_preview_toggle: {
|
|
200
|
-
tooltip: string;
|
|
201
|
-
};
|
|
202
|
-
nest: {
|
|
203
|
-
tooltip: string;
|
|
204
|
-
secondary_tooltip: string;
|
|
205
|
-
};
|
|
206
|
-
unnest: {
|
|
207
|
-
tooltip: string;
|
|
208
|
-
secondary_tooltip: string;
|
|
209
|
-
};
|
|
210
|
-
align_left: {
|
|
211
|
-
tooltip: string;
|
|
212
|
-
};
|
|
213
|
-
align_center: {
|
|
214
|
-
tooltip: string;
|
|
215
|
-
};
|
|
216
|
-
align_right: {
|
|
217
|
-
tooltip: string;
|
|
218
|
-
};
|
|
219
|
-
align_justify: {
|
|
220
|
-
tooltip: string;
|
|
221
|
-
};
|
|
222
|
-
comment: {
|
|
223
|
-
tooltip: string;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
file_panel: {
|
|
227
|
-
upload: {
|
|
228
|
-
title: string;
|
|
229
|
-
file_placeholder: Record<string, string>;
|
|
230
|
-
upload_error: string;
|
|
231
|
-
};
|
|
232
|
-
embed: {
|
|
233
|
-
title: string;
|
|
234
|
-
embed_button: Record<string, string>;
|
|
235
|
-
url_placeholder: string;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
link_toolbar: {
|
|
239
|
-
delete: {
|
|
240
|
-
tooltip: string;
|
|
241
|
-
};
|
|
242
|
-
edit: {
|
|
243
|
-
text: string;
|
|
244
|
-
tooltip: string;
|
|
245
|
-
};
|
|
246
|
-
open: {
|
|
247
|
-
tooltip: string;
|
|
248
|
-
};
|
|
249
|
-
form: {
|
|
250
|
-
title_placeholder: string;
|
|
251
|
-
url_placeholder: string;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
comments: {
|
|
255
|
-
actions: {
|
|
256
|
-
add_reaction: string;
|
|
257
|
-
resolve: string;
|
|
258
|
-
edit_comment: string;
|
|
259
|
-
delete_comment: string;
|
|
260
|
-
more_actions: string;
|
|
261
|
-
};
|
|
262
|
-
reactions: {
|
|
263
|
-
reacted_by: string;
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
generic: {
|
|
267
|
-
ctrl_shortcut: string;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
1
|
+
import { Dictionary } from "../dictionary.js";
|
|
2
|
+
export declare const it: Dictionary;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import type { DynamicImportThemeRegistration, HighlighterGeneric } from "@shikijs/types";
|
|
2
|
-
type BundledLanguage = keyof typeof bundledLanguages;
|
|
3
|
-
type BundledTheme = "github-dark";
|
|
4
|
-
type Highlighter = HighlighterGeneric<BundledLanguage, BundledTheme>;
|
|
5
|
-
declare const bundledLanguages: {
|
|
6
|
-
c: () => Promise<typeof import("@shikijs/langs-precompiled/c")>;
|
|
7
|
-
cpp: () => Promise<typeof import("@shikijs/langs-precompiled/cpp")>;
|
|
8
|
-
"c++": () => Promise<typeof import("@shikijs/langs-precompiled/cpp")>;
|
|
9
|
-
css: () => Promise<typeof import("@shikijs/langs-precompiled/css")>;
|
|
10
|
-
glsl: () => Promise<typeof import("@shikijs/langs-precompiled/glsl")>;
|
|
11
|
-
graphql: () => Promise<typeof import("@shikijs/langs-precompiled/graphql")>;
|
|
12
|
-
gql: () => Promise<typeof import("@shikijs/langs-precompiled/graphql")>;
|
|
13
|
-
haml: () => Promise<typeof import("@shikijs/langs-precompiled/haml")>;
|
|
14
|
-
html: () => Promise<typeof import("@shikijs/langs-precompiled/html")>;
|
|
15
|
-
java: () => Promise<typeof import("@shikijs/langs-precompiled/java")>;
|
|
16
|
-
javascript: () => Promise<typeof import("@shikijs/langs-precompiled/javascript")>;
|
|
17
|
-
js: () => Promise<typeof import("@shikijs/langs-precompiled/javascript")>;
|
|
18
|
-
json: () => Promise<typeof import("@shikijs/langs-precompiled/json")>;
|
|
19
|
-
jsonc: () => Promise<typeof import("@shikijs/langs-precompiled/jsonc")>;
|
|
20
|
-
jsonl: () => Promise<typeof import("@shikijs/langs-precompiled/jsonl")>;
|
|
21
|
-
jsx: () => Promise<typeof import("@shikijs/langs-precompiled/jsx")>;
|
|
22
|
-
julia: () => Promise<typeof import("@shikijs/langs-precompiled/julia")>;
|
|
23
|
-
jl: () => Promise<typeof import("@shikijs/langs-precompiled/julia")>;
|
|
24
|
-
less: () => Promise<typeof import("@shikijs/langs-precompiled/less")>;
|
|
25
|
-
markdown: () => Promise<typeof import("@shikijs/langs-precompiled/markdown")>;
|
|
26
|
-
md: () => Promise<typeof import("@shikijs/langs-precompiled/markdown")>;
|
|
27
|
-
mdx: () => Promise<typeof import("@shikijs/langs-precompiled/mdx")>;
|
|
28
|
-
php: () => Promise<typeof import("@shikijs/langs-precompiled/php")>;
|
|
29
|
-
postcss: () => Promise<typeof import("@shikijs/langs-precompiled/postcss")>;
|
|
30
|
-
pug: () => Promise<typeof import("@shikijs/langs-precompiled/pug")>;
|
|
31
|
-
jade: () => Promise<typeof import("@shikijs/langs-precompiled/pug")>;
|
|
32
|
-
python: () => Promise<typeof import("@shikijs/langs-precompiled/python")>;
|
|
33
|
-
py: () => Promise<typeof import("@shikijs/langs-precompiled/python")>;
|
|
34
|
-
r: () => Promise<typeof import("@shikijs/langs-precompiled/r")>;
|
|
35
|
-
regexp: () => Promise<typeof import("@shikijs/langs-precompiled/regexp")>;
|
|
36
|
-
regex: () => Promise<typeof import("@shikijs/langs-precompiled/regexp")>;
|
|
37
|
-
sass: () => Promise<typeof import("@shikijs/langs-precompiled/sass")>;
|
|
38
|
-
scss: () => Promise<typeof import("@shikijs/langs-precompiled/scss")>;
|
|
39
|
-
shellscript: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
40
|
-
bash: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
41
|
-
sh: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
42
|
-
shell: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
43
|
-
zsh: () => Promise<typeof import("@shikijs/langs-precompiled/shellscript")>;
|
|
44
|
-
sql: () => Promise<typeof import("@shikijs/langs-precompiled/sql")>;
|
|
45
|
-
svelte: () => Promise<typeof import("@shikijs/langs-precompiled/svelte")>;
|
|
46
|
-
typescript: () => Promise<typeof import("@shikijs/langs-precompiled/typescript")>;
|
|
47
|
-
ts: () => Promise<typeof import("@shikijs/langs-precompiled/typescript")>;
|
|
48
|
-
vue: () => Promise<typeof import("@shikijs/langs-precompiled/vue")>;
|
|
49
|
-
"vue-html": () => Promise<typeof import("@shikijs/langs-precompiled/vue-html")>;
|
|
50
|
-
wasm: () => Promise<typeof import("@shikijs/langs-precompiled/wasm")>;
|
|
51
|
-
wgsl: () => Promise<typeof import("@shikijs/langs-precompiled/wgsl")>;
|
|
52
|
-
xml: () => Promise<typeof import("@shikijs/langs-precompiled/xml")>;
|
|
53
|
-
yaml: () => Promise<typeof import("@shikijs/langs-precompiled/yaml")>;
|
|
54
|
-
yml: () => Promise<typeof import("@shikijs/langs-precompiled/yaml")>;
|
|
55
|
-
tsx: () => Promise<typeof import("@shikijs/langs-precompiled/tsx")>;
|
|
56
|
-
typescriptreact: () => Promise<typeof import("@shikijs/langs-precompiled/tsx")>;
|
|
57
|
-
haskell: () => Promise<typeof import("@shikijs/langs-precompiled/haskell")>;
|
|
58
|
-
hs: () => Promise<typeof import("@shikijs/langs-precompiled/haskell")>;
|
|
59
|
-
"c#": () => Promise<typeof import("@shikijs/langs-precompiled/csharp")>;
|
|
60
|
-
csharp: () => Promise<typeof import("@shikijs/langs-precompiled/csharp")>;
|
|
61
|
-
cs: () => Promise<typeof import("@shikijs/langs-precompiled/csharp")>;
|
|
62
|
-
latex: () => Promise<typeof import("@shikijs/langs-precompiled/latex")>;
|
|
63
|
-
lua: () => Promise<typeof import("@shikijs/langs-precompiled/lua")>;
|
|
64
|
-
mermaid: () => Promise<typeof import("@shikijs/langs-precompiled/mermaid")>;
|
|
65
|
-
mmd: () => Promise<typeof import("@shikijs/langs-precompiled/mermaid")>;
|
|
66
|
-
ruby: () => Promise<typeof import("@shikijs/langs-precompiled/ruby")>;
|
|
67
|
-
rb: () => Promise<typeof import("@shikijs/langs-precompiled/ruby")>;
|
|
68
|
-
rust: () => Promise<typeof import("@shikijs/langs-precompiled/rust")>;
|
|
69
|
-
rs: () => Promise<typeof import("@shikijs/langs-precompiled/rust")>;
|
|
70
|
-
scala: () => Promise<typeof import("@shikijs/langs-precompiled/scala")>;
|
|
71
|
-
swift: () => Promise<typeof import("@shikijs/langs/swift")>;
|
|
72
|
-
kotlin: () => Promise<typeof import("@shikijs/langs-precompiled/kotlin")>;
|
|
73
|
-
kt: () => Promise<typeof import("@shikijs/langs-precompiled/kotlin")>;
|
|
74
|
-
kts: () => Promise<typeof import("@shikijs/langs-precompiled/kotlin")>;
|
|
75
|
-
"objective-c": () => Promise<typeof import("@shikijs/langs-precompiled/objective-c")>;
|
|
76
|
-
objc: () => Promise<typeof import("@shikijs/langs-precompiled/objective-c")>;
|
|
77
|
-
};
|
|
78
|
-
declare const bundledThemes: Record<"github-dark", DynamicImportThemeRegistration>;
|
|
79
|
-
declare const createHighlighter: import("@shikijs/types").CreateHighlighterFactory<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">;
|
|
80
|
-
declare const codeToHtml: (code: string, options: import("@shikijs/types").CodeToHastOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">) => Promise<string>, codeToHast: (code: string, options: import("@shikijs/types").CodeToHastOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">) => Promise<import("hast").Root>, codeToTokensBase: (code: string, options: import("@shikijs/types").RequireKeys<import("@shikijs/types").CodeToTokensBaseOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">, "theme" | "lang">) => Promise<import("@shikijs/types").ThemedToken[][]>, codeToTokens: (code: string, options: import("@shikijs/types").CodeToTokensOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">) => Promise<import("@shikijs/types").TokensResult>, codeToTokensWithThemes: (code: string, options: import("@shikijs/types").RequireKeys<import("@shikijs/types").CodeToTokensWithThemesOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">, "lang" | "themes">) => Promise<import("@shikijs/types").ThemedTokenWithVariants[][]>, getSingletonHighlighter: (options?: Partial<import("@shikijs/types").BundledHighlighterOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">> | undefined) => Promise<HighlighterGeneric<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">>, getLastGrammarState: ((element: import("hast").Root | import("@shikijs/types").ThemedToken[][]) => import("@shikijs/types").GrammarState) | ((code: string, options: import("@shikijs/types").CodeToTokensBaseOptions<"html" | "ruby" | "rb" | "javascript" | "yaml" | "markdown" | "c" | "cpp" | "c++" | "css" | "glsl" | "graphql" | "gql" | "haml" | "java" | "js" | "json" | "jsonc" | "jsonl" | "jsx" | "julia" | "jl" | "less" | "md" | "mdx" | "php" | "postcss" | "pug" | "jade" | "python" | "py" | "r" | "regexp" | "regex" | "sass" | "scss" | "shellscript" | "bash" | "sh" | "shell" | "zsh" | "sql" | "svelte" | "typescript" | "ts" | "vue" | "vue-html" | "wasm" | "wgsl" | "xml" | "yml" | "tsx" | "typescriptreact" | "haskell" | "hs" | "csharp" | "c#" | "cs" | "latex" | "lua" | "mermaid" | "mmd" | "rust" | "rs" | "scala" | "swift" | "kotlin" | "kt" | "kts" | "objective-c" | "objc", "github-dark">) => Promise<import("@shikijs/types").GrammarState>);
|
|
81
|
-
export { bundledLanguages, bundledThemes, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createHighlighter, getLastGrammarState, getSingletonHighlighter, };
|
|
82
|
-
export type { BundledLanguage, BundledTheme, Highlighter };
|