@blocknote/core 0.48.1 → 0.50.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.
Files changed (115) hide show
  1. package/dist/blocknote.cjs +1 -1
  2. package/dist/blocknote.js +3 -3
  3. package/dist/{blocks-BEvIOzln.cjs → blocks-BFnTypT-.cjs} +3 -3
  4. package/dist/blocks-BFnTypT-.cjs.map +1 -0
  5. package/dist/{blocks-DYl7UTS4.js → blocks-UU7EM-QM.js} +601 -570
  6. package/dist/blocks-UU7EM-QM.js.map +1 -0
  7. package/dist/blocks.cjs +1 -1
  8. package/dist/blocks.js +1 -1
  9. package/dist/comments.cjs +1 -1
  10. package/dist/comments.cjs.map +1 -1
  11. package/dist/comments.js +19 -16
  12. package/dist/comments.js.map +1 -1
  13. package/dist/{en-QsSI16s5.js → en-B9hMApn4.js} +4 -2
  14. package/dist/en-B9hMApn4.js.map +1 -0
  15. package/dist/{en-C4ykW581.cjs → en-Cj5r8sW_.cjs} +2 -2
  16. package/dist/en-Cj5r8sW_.cjs.map +1 -0
  17. package/dist/extensions-CYsFi5Is.cjs +2 -0
  18. package/dist/extensions-CYsFi5Is.cjs.map +1 -0
  19. package/dist/{extensions-3nf9PPhA.js → extensions-CkLT--Nc.js} +244 -250
  20. package/dist/extensions-CkLT--Nc.js.map +1 -0
  21. package/dist/extensions.cjs +1 -1
  22. package/dist/extensions.js +2 -2
  23. package/dist/locales.cjs +1 -1
  24. package/dist/locales.cjs.map +1 -1
  25. package/dist/locales.js +67 -23
  26. package/dist/locales.js.map +1 -1
  27. package/dist/src-DsJ6yzs9.cjs +5 -0
  28. package/dist/src-DsJ6yzs9.cjs.map +1 -0
  29. package/dist/{src-Hjv1f5lc.js → src-SVFpMAWE.js} +754 -366
  30. package/dist/src-SVFpMAWE.js.map +1 -0
  31. package/dist/style.css +1 -1
  32. package/dist/webpack-stats.json +1 -1
  33. package/dist/yjs.cjs +1 -1
  34. package/dist/yjs.js +1 -1
  35. package/package.json +6 -8
  36. package/src/api/clipboard/toClipboard/copyExtension.ts +21 -16
  37. package/src/blocks/ListItem/NumberedListItem/IndexingPlugin.test.ts +14 -1
  38. package/src/blocks/Quote/block.ts +9 -0
  39. package/src/blocks/Table/TableExtension.ts +38 -9
  40. package/src/blocks/Table/block.ts +26 -0
  41. package/src/blocks/defaultBlocks.ts +34 -1
  42. package/src/comments/extension.ts +35 -11
  43. package/src/comments/threadstore/yjs/YjsThreadStore.test.ts +3 -2
  44. package/src/comments/threadstore/yjs/YjsThreadStore.ts +4 -4
  45. package/src/editor/Block.css +14 -18
  46. package/src/editor/BlockNoteEditor.ts +84 -5
  47. package/src/editor/editor.css +5 -0
  48. package/src/editor/managers/ExtensionManager/extensions.ts +8 -27
  49. package/src/editor/managers/StyleManager.ts +90 -10
  50. package/src/extensions/FormattingToolbar/FormattingToolbar.ts +23 -16
  51. package/src/extensions/LinkToolbar/LinkToolbar.ts +30 -75
  52. package/src/extensions/Placeholder/Placeholder.ts +2 -2
  53. package/src/extensions/SideMenu/SideMenu.ts +2 -2
  54. package/src/extensions/TableHandles/TableHandles.ts +2 -0
  55. package/src/extensions/tiptap-extensions/Link/helpers/autolink.ts +179 -0
  56. package/src/extensions/tiptap-extensions/Link/helpers/clickHandler.ts +82 -0
  57. package/src/extensions/tiptap-extensions/Link/helpers/linkDetector.ts +414 -0
  58. package/src/extensions/tiptap-extensions/Link/helpers/pasteHandler.ts +53 -0
  59. package/src/extensions/tiptap-extensions/Link/helpers/tlds.ts +7 -0
  60. package/src/extensions/tiptap-extensions/Link/helpers/whitespace.ts +13 -0
  61. package/src/extensions/tiptap-extensions/Link/index.ts +2 -0
  62. package/src/extensions/tiptap-extensions/Link/link.test.ts +941 -0
  63. package/src/extensions/tiptap-extensions/Link/link.ts +238 -0
  64. package/src/extensions/tiptap-extensions/UniqueID/UniqueID.ts +3 -5
  65. package/src/i18n/locales/ar.ts +3 -1
  66. package/src/i18n/locales/de.ts +3 -1
  67. package/src/i18n/locales/en.ts +3 -1
  68. package/src/i18n/locales/es.ts +3 -1
  69. package/src/i18n/locales/fa.ts +3 -1
  70. package/src/i18n/locales/fr.ts +3 -1
  71. package/src/i18n/locales/he.ts +3 -1
  72. package/src/i18n/locales/hr.ts +3 -1
  73. package/src/i18n/locales/is.ts +3 -1
  74. package/src/i18n/locales/it.ts +3 -1
  75. package/src/i18n/locales/ja.ts +3 -1
  76. package/src/i18n/locales/ko.ts +3 -1
  77. package/src/i18n/locales/nl.ts +3 -1
  78. package/src/i18n/locales/no.ts +3 -1
  79. package/src/i18n/locales/pl.ts +3 -1
  80. package/src/i18n/locales/pt.ts +3 -1
  81. package/src/i18n/locales/ru.ts +3 -1
  82. package/src/i18n/locales/sk.ts +3 -1
  83. package/src/i18n/locales/uk.ts +3 -1
  84. package/src/i18n/locales/uz.ts +3 -1
  85. package/src/i18n/locales/vi.ts +3 -1
  86. package/src/i18n/locales/zh-tw.ts +3 -1
  87. package/src/i18n/locales/zh.ts +3 -1
  88. package/src/schema/inlineContent/types.ts +1 -1
  89. package/types/src/comments/extension.d.ts +2 -1
  90. package/types/src/editor/BlockNoteEditor.d.ts +69 -3
  91. package/types/src/editor/managers/StyleManager.d.ts +22 -0
  92. package/types/src/extensions/LinkToolbar/LinkToolbar.d.ts +28 -7
  93. package/types/src/extensions/tiptap-extensions/Link/helpers/autolink.d.ts +13 -0
  94. package/types/src/extensions/tiptap-extensions/Link/helpers/clickHandler.d.ts +12 -0
  95. package/types/src/extensions/tiptap-extensions/Link/helpers/linkDetector.d.ts +32 -0
  96. package/types/src/extensions/tiptap-extensions/Link/helpers/pasteHandler.d.ts +12 -0
  97. package/types/src/extensions/tiptap-extensions/Link/helpers/tlds.d.ts +1 -0
  98. package/types/src/extensions/tiptap-extensions/Link/helpers/whitespace.d.ts +4 -0
  99. package/types/src/extensions/tiptap-extensions/Link/index.d.ts +2 -0
  100. package/types/src/extensions/tiptap-extensions/Link/link.d.ts +25 -0
  101. package/types/src/extensions/tiptap-extensions/Link/link.test.d.ts +1 -0
  102. package/types/src/i18n/locales/en.d.ts +2 -0
  103. package/types/src/i18n/locales/fa.d.ts +2 -0
  104. package/types/src/i18n/locales/sk.d.ts +2 -0
  105. package/types/src/schema/inlineContent/types.d.ts +1 -2
  106. package/dist/blocks-BEvIOzln.cjs.map +0 -1
  107. package/dist/blocks-DYl7UTS4.js.map +0 -1
  108. package/dist/en-C4ykW581.cjs.map +0 -1
  109. package/dist/en-QsSI16s5.js.map +0 -1
  110. package/dist/extensions-3nf9PPhA.js.map +0 -1
  111. package/dist/extensions-D9y6evn6.cjs +0 -2
  112. package/dist/extensions-D9y6evn6.cjs.map +0 -1
  113. package/dist/src-BKJH7Jla.cjs +0 -5
  114. package/dist/src-BKJH7Jla.cjs.map +0 -1
  115. package/dist/src-Hjv1f5lc.js.map +0 -1
@@ -0,0 +1,238 @@
1
+ import type { PasteRuleMatch } from "@tiptap/core";
2
+ import { Mark, markPasteRule, mergeAttributes } from "@tiptap/core";
3
+ import type { Plugin } from "@tiptap/pm/state";
4
+ import type { BlockNoteEditor } from "../../../editor/BlockNoteEditor.js";
5
+ import { createExtension } from "../../../editor/BlockNoteExtension.js";
6
+ import { autolink } from "./helpers/autolink.js";
7
+ import { findLinks } from "./helpers/linkDetector.js";
8
+ import { clickHandler } from "./helpers/clickHandler.js";
9
+ import { pasteHandler } from "./helpers/pasteHandler.js";
10
+ import { UNICODE_WHITESPACE_REGEX_GLOBAL } from "./helpers/whitespace.js";
11
+
12
+ const DEFAULT_PROTOCOL = "https";
13
+
14
+ // Pre-compiled regex for URI protocol validation.
15
+ // Allows: http, https, ftp, ftps, mailto, tel, callto, sms, cid, xmpp
16
+ const ALLOWED_URI_REGEX =
17
+ // eslint-disable-next-line no-useless-escape
18
+ /^(?:(?:http|https|ftp|ftps|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z0-9+.\-]+(?:[^a-z+.\-:]|$))/i;
19
+
20
+ export function isAllowedUri(uri: string | undefined): boolean {
21
+ if (!uri) {
22
+ return true;
23
+ }
24
+ const cleaned = uri.replace(UNICODE_WHITESPACE_REGEX_GLOBAL, "");
25
+ return ALLOWED_URI_REGEX.test(cleaned);
26
+ }
27
+
28
+ /**
29
+ * Determine whether a detected URL should be auto-linked.
30
+ * URLs with explicit protocols are always auto-linked.
31
+ * Bare hostnames must have a TLD (no IP addresses or single words).
32
+ */
33
+ function shouldAutoLink(url: string): boolean {
34
+ const hasProtocol = /^[a-z][a-z0-9+.-]*:\/\//i.test(url);
35
+ const hasMaybeProtocol = /^[a-z][a-z0-9+.-]*:/i.test(url);
36
+
37
+ if (hasProtocol || (hasMaybeProtocol && !url.includes("@"))) {
38
+ return true;
39
+ }
40
+ // Strip userinfo (user:pass@) if present, then extract hostname
41
+ const urlWithoutUserinfo = url.includes("@") ? url.split("@").pop()! : url;
42
+ const hostname = urlWithoutUserinfo.split(/[/?#:]/)[0];
43
+
44
+ // Don't auto-link IP addresses without protocol
45
+ if (/^\d{1,3}(\.\d{1,3}){3}$/.test(hostname)) {
46
+ return false;
47
+ }
48
+ // Don't auto-link single-word hostnames without TLD (e.g., "localhost")
49
+ if (!/\./.test(hostname)) {
50
+ return false;
51
+ }
52
+ return true;
53
+ }
54
+
55
+ export type LinkOptions = {
56
+ HTMLAttributes: Record<string, any>;
57
+ editor?: BlockNoteEditor<any, any, any>;
58
+ onClick?: (
59
+ event: MouseEvent,
60
+ editor: BlockNoteEditor<any, any, any>,
61
+ ) => boolean | void;
62
+ isValidLink: (href: string) => boolean;
63
+ };
64
+
65
+ /**
66
+ * BlockNote Link mark extension.
67
+ */
68
+ export const Link = Mark.create<LinkOptions>({
69
+ name: "link",
70
+
71
+ keepOnSplit: false,
72
+
73
+ exitable: true,
74
+
75
+ inclusive: false,
76
+
77
+ addOptions() {
78
+ return {
79
+ HTMLAttributes: {
80
+ target: "_blank",
81
+ rel: "noopener noreferrer nofollow",
82
+ className: "bn-inline-content-section",
83
+ "data-inline-content-type": "link",
84
+ },
85
+ editor: undefined,
86
+ onClick: undefined,
87
+ isValidLink: isAllowedUri,
88
+ };
89
+ },
90
+
91
+ addAttributes() {
92
+ return {
93
+ href: {
94
+ default: null,
95
+ parseHTML(element) {
96
+ return element.getAttribute("href");
97
+ },
98
+ },
99
+ };
100
+ },
101
+
102
+ parseHTML() {
103
+ const isValidLink = this.options.isValidLink;
104
+ return [
105
+ {
106
+ tag: "a[href]",
107
+ getAttrs: (dom) => {
108
+ const href = (dom as HTMLElement).getAttribute("href");
109
+ if (!href || !isValidLink(href)) {
110
+ return false;
111
+ }
112
+ return null;
113
+ },
114
+ },
115
+ ];
116
+ },
117
+
118
+ renderHTML({ HTMLAttributes }) {
119
+ if (!this.options.isValidLink(HTMLAttributes.href)) {
120
+ return [
121
+ "a",
122
+ mergeAttributes(
123
+ {
124
+ ...HTMLAttributes,
125
+ href: "",
126
+ },
127
+ this.options.HTMLAttributes,
128
+ ),
129
+ 0,
130
+ ];
131
+ }
132
+
133
+ return [
134
+ "a",
135
+ mergeAttributes(HTMLAttributes, this.options.HTMLAttributes),
136
+ 0,
137
+ ];
138
+ },
139
+
140
+ addPasteRules() {
141
+ const isValidLink = this.options.isValidLink;
142
+ return [
143
+ markPasteRule({
144
+ find: (text) => {
145
+ const foundLinks: PasteRuleMatch[] = [];
146
+
147
+ if (text) {
148
+ const links = findLinks(text, {
149
+ defaultProtocol: DEFAULT_PROTOCOL,
150
+ }).filter((item) => item.isLink && isValidLink(item.value));
151
+
152
+ for (const link of links) {
153
+ if (!shouldAutoLink(link.value)) {
154
+ continue;
155
+ }
156
+
157
+ foundLinks.push({
158
+ text: link.value,
159
+ data: { href: link.href },
160
+ index: link.start,
161
+ });
162
+ }
163
+ }
164
+
165
+ return foundLinks;
166
+ },
167
+ type: this.type,
168
+ getAttributes: (match) => ({
169
+ href: match.data?.href,
170
+ }),
171
+ }),
172
+ ];
173
+ },
174
+
175
+ addProseMirrorPlugins() {
176
+ const plugins: Plugin[] = [];
177
+
178
+ plugins.push(
179
+ autolink({
180
+ type: this.type,
181
+ defaultProtocol: DEFAULT_PROTOCOL,
182
+ validate: this.options.isValidLink,
183
+ shouldAutoLink,
184
+ }),
185
+ );
186
+
187
+ plugins.push(
188
+ clickHandler({
189
+ type: this.type,
190
+ tiptapEditor: this.editor,
191
+ editor: this.options.editor,
192
+ onClick: this.options.onClick,
193
+ }),
194
+ );
195
+
196
+ plugins.push(
197
+ pasteHandler({
198
+ editor: this.editor,
199
+ defaultProtocol: DEFAULT_PROTOCOL,
200
+ type: this.type,
201
+ shouldAutoLink,
202
+ isValidLink: this.options.isValidLink,
203
+ }),
204
+ );
205
+
206
+ return plugins;
207
+ },
208
+ });
209
+
210
+ type LinkExtensionOptions = {
211
+ HTMLAttributes?: Record<string, any>;
212
+ onClick?: (
213
+ event: MouseEvent,
214
+ editor: BlockNoteEditor<any, any, any>,
215
+ ) => boolean | void;
216
+ isValidLink?: (href: string) => boolean;
217
+ };
218
+
219
+ /**
220
+ * BlockNote extension wrapping the {@link Link} TipTap mark. Wrapping the mark
221
+ * lets other extensions order their click handlers relative to the link click
222
+ * handler via `runsBefore: ["link"]`.
223
+ */
224
+ export const LinkExtension = createExtension<any, LinkExtensionOptions>(
225
+ ({ editor, options }) => {
226
+ return {
227
+ key: "link",
228
+ tiptapExtensions: [
229
+ Link.configure({
230
+ HTMLAttributes: options.HTMLAttributes ?? {},
231
+ editor,
232
+ onClick: options.onClick,
233
+ ...(options.isValidLink ? { isValidLink: options.isValidLink } : {}),
234
+ }),
235
+ ],
236
+ } as const;
237
+ },
238
+ );
@@ -6,7 +6,7 @@ import {
6
6
  } from "@tiptap/core";
7
7
  import { Fragment, Slice } from "prosemirror-model";
8
8
  import { Plugin, PluginKey } from "prosemirror-state";
9
- import { v4 } from "uuid";
9
+ import { uuidv4 } from "lib0/random";
10
10
 
11
11
  /**
12
12
  * Code from Tiptap UniqueID extension (https://tiptap.dev/api/extensions/unique-id)
@@ -51,9 +51,7 @@ const UniqueID = Extension.create({
51
51
  attributeName: "id",
52
52
  types: [],
53
53
  setIdAttribute: false,
54
- isWithinEditor: undefined as
55
- | ((element: Element) => boolean)
56
- | undefined,
54
+ isWithinEditor: undefined as ((element: Element) => boolean) | undefined,
57
55
  generateID: () => {
58
56
  // Use mock ID if tests are running.
59
57
  if (typeof window !== "undefined" && (window as any).__TEST_OPTIONS) {
@@ -67,7 +65,7 @@ const UniqueID = Extension.create({
67
65
  return testOptions.mockID.toString() as string;
68
66
  }
69
67
 
70
- return v4();
68
+ return uuidv4();
71
69
  },
72
70
  filterTransaction: null,
73
71
  };
@@ -214,7 +214,7 @@ export const ar: Dictionary = {
214
214
  text_title: "نص",
215
215
  background_title: "خلفية",
216
216
  colors: {
217
- default: "افتراضي",
217
+ default: "تلقائي",
218
218
  gray: "رمادي",
219
219
  brown: "بني",
220
220
  red: "أحمر",
@@ -369,9 +369,11 @@ export const ar: Dictionary = {
369
369
  edited: "تم التحرير",
370
370
  save_button_text: "حفظ",
371
371
  cancel_button_text: "إلغاء",
372
+ deleted_reference_text: "تم حذف المحتوى الأصلي",
372
373
  actions: {
373
374
  add_reaction: "أضف تفاعلًا",
374
375
  resolve: "حل",
376
+ reopen: "إعادة فتح",
375
377
  edit_comment: "تحرير التعليق",
376
378
  delete_comment: "حذف التعليق",
377
379
  more_actions: "المزيد من الإجراءات",
@@ -249,7 +249,7 @@ export const de: Dictionary = {
249
249
  text_title: "Text",
250
250
  background_title: "Hintergrund",
251
251
  colors: {
252
- default: "Standard",
252
+ default: "Automatisch",
253
253
  gray: "Grau",
254
254
  brown: "Braun",
255
255
  red: "Rot",
@@ -403,9 +403,11 @@ export const de: Dictionary = {
403
403
  edited: "bearbeitet",
404
404
  save_button_text: "Speichern",
405
405
  cancel_button_text: "Abbrechen",
406
+ deleted_reference_text: "Originalinhalt gelöscht",
406
407
  actions: {
407
408
  add_reaction: "Reaktion hinzufügen",
408
409
  resolve: "Lösen",
410
+ reopen: "Wieder öffnen",
409
411
  edit_comment: "Kommentar bearbeiten",
410
412
  delete_comment: "Kommentar löschen",
411
413
  more_actions: "Weitere Aktionen",
@@ -229,7 +229,7 @@ export const en = {
229
229
  text_title: "Text",
230
230
  background_title: "Background",
231
231
  colors: {
232
- default: "Default",
232
+ default: "Auto",
233
233
  gray: "Gray",
234
234
  brown: "Brown",
235
235
  red: "Red",
@@ -384,9 +384,11 @@ export const en = {
384
384
  edited: "edited",
385
385
  save_button_text: "Save",
386
386
  cancel_button_text: "Cancel",
387
+ deleted_reference_text: "Original content deleted",
387
388
  actions: {
388
389
  add_reaction: "Add reaction",
389
390
  resolve: "Resolve",
391
+ reopen: "Re-open",
390
392
  edit_comment: "Edit comment",
391
393
  delete_comment: "Delete comment",
392
394
  more_actions: "More actions",
@@ -228,7 +228,7 @@ export const es: Dictionary = {
228
228
  text_title: "Texto",
229
229
  background_title: "Fondo",
230
230
  colors: {
231
- default: "Por defecto",
231
+ default: "Automático",
232
232
  gray: "Gris",
233
233
  brown: "Marrón",
234
234
  red: "Rojo",
@@ -382,9 +382,11 @@ export const es: Dictionary = {
382
382
  edited: "editado",
383
383
  save_button_text: "Guardar",
384
384
  cancel_button_text: "Cancelar",
385
+ deleted_reference_text: "Contenido original eliminado",
385
386
  actions: {
386
387
  add_reaction: "Agregar reacción",
387
388
  resolve: "Resolver",
389
+ reopen: "Reabrir",
388
390
  edit_comment: "Editar comentario",
389
391
  delete_comment: "Eliminar comentario",
390
392
  more_actions: "Más acciones",
@@ -197,7 +197,7 @@ export const fa = {
197
197
  text_title: "متن",
198
198
  background_title: "پس‌زمینه",
199
199
  colors: {
200
- default: "پیش‌فرض",
200
+ default: "خودکار",
201
201
  gray: "خاکستری",
202
202
  brown: "قهوه‌ای",
203
203
  red: "قرمز",
@@ -352,9 +352,11 @@ export const fa = {
352
352
  edited: "ویرایش شده",
353
353
  save_button_text: "ذخیره",
354
354
  cancel_button_text: "لغو",
355
+ deleted_reference_text: "محتوای اصلی حذف شد",
355
356
  actions: {
356
357
  add_reaction: "افزودن واکنش",
357
358
  resolve: "حل کردن",
359
+ reopen: "باز کردن مجدد",
358
360
  edit_comment: "ویرایش دیدگاه",
359
361
  delete_comment: "حذف دیدگاه",
360
362
  more_actions: "اقدامات بیشتر",
@@ -275,7 +275,7 @@ export const fr: Dictionary = {
275
275
  text_title: "Texte",
276
276
  background_title: "Fond",
277
277
  colors: {
278
- default: "Défaut",
278
+ default: "Auto",
279
279
  gray: "Gris",
280
280
  brown: "Marron",
281
281
  red: "Rouge",
@@ -430,9 +430,11 @@ export const fr: Dictionary = {
430
430
  edited: "modifié",
431
431
  save_button_text: "Enregistrer",
432
432
  cancel_button_text: "Annuler",
433
+ deleted_reference_text: "Contenu d'origine supprimé",
433
434
  actions: {
434
435
  add_reaction: "Ajouter une réaction",
435
436
  resolve: "Résoudre",
437
+ reopen: "Rouvrir",
436
438
  edit_comment: "Modifier le commentaire",
437
439
  delete_comment: "Supprimer le commentaire",
438
440
  more_actions: "Plus d'actions",
@@ -230,7 +230,7 @@ export const he: Dictionary = {
230
230
  text_title: "טקסט",
231
231
  background_title: "רקע",
232
232
  colors: {
233
- default: "ברירת מחדל",
233
+ default: "אוטומטי",
234
234
  gray: "אפור",
235
235
  brown: "חום",
236
236
  red: "אדום",
@@ -384,9 +384,11 @@ export const he: Dictionary = {
384
384
  edited: "נערך",
385
385
  save_button_text: "שמור",
386
386
  cancel_button_text: "בטל",
387
+ deleted_reference_text: "התוכן המקורי נמחק",
387
388
  actions: {
388
389
  add_reaction: "הוסף תגובה",
389
390
  resolve: "סמן כפתור",
391
+ reopen: "פתח מחדש",
390
392
  edit_comment: "ערוך תגובה",
391
393
  delete_comment: "מחק תגובה",
392
394
  more_actions: "פעולות נוספות",
@@ -242,7 +242,7 @@ export const hr: Dictionary = {
242
242
  text_title: "Tekst",
243
243
  background_title: "Pozadina",
244
244
  colors: {
245
- default: "Zadano",
245
+ default: "Automatski",
246
246
  gray: "Siva",
247
247
  brown: "Smeđa",
248
248
  red: "Crvena",
@@ -397,9 +397,11 @@ export const hr: Dictionary = {
397
397
  edited: "uredio",
398
398
  save_button_text: "Spremi",
399
399
  cancel_button_text: "Odustani",
400
+ deleted_reference_text: "Originalni sadržaj je obrisan",
400
401
  actions: {
401
402
  add_reaction: "Dodaj reakciju",
402
403
  resolve: "Riješi",
404
+ reopen: "Ponovno otvori",
403
405
  edit_comment: "Uredi komentar",
404
406
  delete_comment: "Obriši komentar",
405
407
  more_actions: "Više radnji",
@@ -242,7 +242,7 @@ export const is: Dictionary = {
242
242
  text_title: "Texti",
243
243
  background_title: "Bakgrunnur",
244
244
  colors: {
245
- default: "Sjálfgefið",
245
+ default: "Sjálfvirkt",
246
246
  gray: "Grár",
247
247
  brown: "Brúnn",
248
248
  red: "Rauður",
@@ -397,9 +397,11 @@ export const is: Dictionary = {
397
397
  edited: "breytt",
398
398
  save_button_text: "Vista",
399
399
  cancel_button_text: "Hætta",
400
+ deleted_reference_text: "Upprunalegu efni eytt",
400
401
  actions: {
401
402
  add_reaction: "Bæta við viðbrögðum",
402
403
  resolve: "Leysa",
404
+ reopen: "Opna aftur",
403
405
  edit_comment: "Breyta athugasemd",
404
406
  delete_comment: "Eyða athugasemd",
405
407
  more_actions: "Fleiri aðgerðir",
@@ -251,7 +251,7 @@ export const it: Dictionary = {
251
251
  text_title: "Testo",
252
252
  background_title: "Sfondo",
253
253
  colors: {
254
- default: "Predefinito",
254
+ default: "Automatico",
255
255
  gray: "Grigio",
256
256
  brown: "Marrone",
257
257
  red: "Rosso",
@@ -406,9 +406,11 @@ export const it: Dictionary = {
406
406
  edited: "modificato",
407
407
  save_button_text: "Salva",
408
408
  cancel_button_text: "Annulla",
409
+ deleted_reference_text: "Contenuto originale eliminato",
409
410
  actions: {
410
411
  add_reaction: "Aggiungi reazione",
411
412
  resolve: "Risolvi",
413
+ reopen: "Riapri",
412
414
  edit_comment: "Modifica commento",
413
415
  delete_comment: "Elimina commento",
414
416
  more_actions: "Altre azioni",
@@ -269,7 +269,7 @@ export const ja: Dictionary = {
269
269
  text_title: "文字色",
270
270
  background_title: "背景色",
271
271
  colors: {
272
- default: "デフォルト",
272
+ default: "自動",
273
273
  gray: "グレー",
274
274
  brown: "茶色",
275
275
  red: "赤",
@@ -424,9 +424,11 @@ export const ja: Dictionary = {
424
424
  edited: "編集済み",
425
425
  save_button_text: "保存",
426
426
  cancel_button_text: "キャンセル",
427
+ deleted_reference_text: "元のコンテンツが削除されました",
427
428
  actions: {
428
429
  add_reaction: "リアクションを追加",
429
430
  resolve: "解決",
431
+ reopen: "再開",
430
432
  edit_comment: "コメントを編集",
431
433
  delete_comment: "コメントを削除",
432
434
  more_actions: "その他の操作",
@@ -242,7 +242,7 @@ export const ko: Dictionary = {
242
242
  text_title: "텍스트",
243
243
  background_title: "배경",
244
244
  colors: {
245
- default: "기본",
245
+ default: "자동",
246
246
  gray: "회색",
247
247
  brown: "갈색",
248
248
  red: "빨간색",
@@ -397,9 +397,11 @@ export const ko: Dictionary = {
397
397
  edited: "수정됨",
398
398
  save_button_text: "저장",
399
399
  cancel_button_text: "취소",
400
+ deleted_reference_text: "원본 콘텐츠 삭제됨",
400
401
  actions: {
401
402
  add_reaction: "반응 추가",
402
403
  resolve: "해결",
404
+ reopen: "다시 열기",
403
405
  edit_comment: "댓글 수정",
404
406
  delete_comment: "댓글 삭제",
405
407
  more_actions: "더 많은 작업",
@@ -230,7 +230,7 @@ export const nl: Dictionary = {
230
230
  text_title: "Tekst",
231
231
  background_title: "Achtergrond",
232
232
  colors: {
233
- default: "Standaard",
233
+ default: "Automatisch",
234
234
  gray: "Grijs",
235
235
  brown: "Bruin",
236
236
  red: "Rood",
@@ -384,9 +384,11 @@ export const nl: Dictionary = {
384
384
  edited: "bewerkt",
385
385
  save_button_text: "Opslaan",
386
386
  cancel_button_text: "Annuleren",
387
+ deleted_reference_text: "Originele inhoud verwijderd",
387
388
  actions: {
388
389
  add_reaction: "Reactie toevoegen",
389
390
  resolve: "Oplossen",
391
+ reopen: "Heropenen",
390
392
  edit_comment: "Reactie bewerken",
391
393
  delete_comment: "Reactie verwijderen",
392
394
  more_actions: "Meer acties",
@@ -247,7 +247,7 @@ export const no: Dictionary = {
247
247
  text_title: "Tekst",
248
248
  background_title: "Bakgrunn",
249
249
  colors: {
250
- default: "Standard",
250
+ default: "Automatisk",
251
251
  gray: "Grå",
252
252
  brown: "Brun",
253
253
  red: "Rød",
@@ -401,9 +401,11 @@ export const no: Dictionary = {
401
401
  edited: "redigert",
402
402
  save_button_text: "Lagre",
403
403
  cancel_button_text: "Avbryt",
404
+ deleted_reference_text: "Originalt innhold slettet",
404
405
  actions: {
405
406
  add_reaction: "Legg til reaksjon",
406
407
  resolve: "Løs",
408
+ reopen: "Gjenåpne",
407
409
  edit_comment: "Rediger kommentar",
408
410
  delete_comment: "Slett kommentar",
409
411
  more_actions: "Flere handlinger",
@@ -220,7 +220,7 @@ export const pl: Dictionary = {
220
220
  text_title: "Tekst",
221
221
  background_title: "Tło",
222
222
  colors: {
223
- default: "Domyślny",
223
+ default: "Automatyczny",
224
224
  gray: "Szary",
225
225
  brown: "Brązowy",
226
226
  red: "Czerwony",
@@ -375,9 +375,11 @@ export const pl: Dictionary = {
375
375
  edited: "edytowany",
376
376
  save_button_text: "Zapisz",
377
377
  cancel_button_text: "Anuluj",
378
+ deleted_reference_text: "Oryginalna treść usunięta",
378
379
  actions: {
379
380
  add_reaction: "Dodaj reakcję",
380
381
  resolve: "Rozwiąż",
382
+ reopen: "Otwórz ponownie",
381
383
  edit_comment: "Edytuj komentarz",
382
384
  delete_comment: "Usuń komentarz",
383
385
  more_actions: "Więcej akcji",
@@ -221,7 +221,7 @@ export const pt: Dictionary = {
221
221
  text_title: "Texto",
222
222
  background_title: "Fundo",
223
223
  colors: {
224
- default: "Padrão",
224
+ default: "Automático",
225
225
  gray: "Cinza",
226
226
  brown: "Marrom",
227
227
  red: "Vermelho",
@@ -376,9 +376,11 @@ export const pt: Dictionary = {
376
376
  edited: "editado",
377
377
  save_button_text: "Salvar",
378
378
  cancel_button_text: "Cancelar",
379
+ deleted_reference_text: "Conteúdo original excluído",
379
380
  actions: {
380
381
  add_reaction: "Adicionar reação",
381
382
  resolve: "Resolver",
383
+ reopen: "Reabrir",
382
384
  edit_comment: "Editar comentário",
383
385
  delete_comment: "Excluir comentário",
384
386
  more_actions: "Mais ações",
@@ -272,7 +272,7 @@ export const ru: Dictionary = {
272
272
  text_title: "Текст",
273
273
  background_title: "Задний фон",
274
274
  colors: {
275
- default: "По умолчанию",
275
+ default: "Авто",
276
276
  gray: "Серый",
277
277
  brown: "Коричневый",
278
278
  red: "Красный",
@@ -427,9 +427,11 @@ export const ru: Dictionary = {
427
427
  edited: "изменен",
428
428
  save_button_text: "Сохранить",
429
429
  cancel_button_text: "Отменить",
430
+ deleted_reference_text: "Исходный контент удалён",
430
431
  actions: {
431
432
  add_reaction: "Добавить реакцию",
432
433
  resolve: "Решить",
434
+ reopen: "Возобновить",
433
435
  edit_comment: "Редактировать комментарий",
434
436
  delete_comment: "Удалить комментарий",
435
437
  more_actions: "Другие действия",
@@ -228,7 +228,7 @@ export const sk = {
228
228
  text_title: "Text",
229
229
  background_title: "Pozadie",
230
230
  colors: {
231
- default: "Predvolená",
231
+ default: "Automaticky",
232
232
  gray: "Sivá",
233
233
  brown: "Hnedá",
234
234
  red: "Červená",
@@ -382,9 +382,11 @@ export const sk = {
382
382
  edited: "upravený",
383
383
  save_button_text: "Uložiť",
384
384
  cancel_button_text: "Zrušiť",
385
+ deleted_reference_text: "Pôvodný obsah odstránený",
385
386
  actions: {
386
387
  add_reaction: "Pridať reakciu",
387
388
  resolve: "Vyriešiť",
389
+ reopen: "Znovu otvoriť",
388
390
  edit_comment: "Upraviť komentár",
389
391
  delete_comment: "Vymazať komentár",
390
392
  more_actions: "Ďalšie akcie",
@@ -254,7 +254,7 @@ export const uk: Dictionary = {
254
254
  text_title: "Текст",
255
255
  background_title: "Фон",
256
256
  colors: {
257
- default: "За замовчуванням",
257
+ default: "Авто",
258
258
  gray: "Сірий",
259
259
  brown: "Коричневий",
260
260
  red: "Червоний",
@@ -408,9 +408,11 @@ export const uk: Dictionary = {
408
408
  edited: "відредаговано",
409
409
  save_button_text: "Зберегти",
410
410
  cancel_button_text: "Скасувати",
411
+ deleted_reference_text: "Оригінальний вміст видалено",
411
412
  actions: {
412
413
  add_reaction: "Додати реакцію",
413
414
  resolve: "Вирішити",
415
+ reopen: "Відкрити знову",
414
416
  edit_comment: "Редагувати коментар",
415
417
  delete_comment: "Видалити коментар",
416
418
  more_actions: "Більше дій",