@blocknote/core 0.13.2 → 0.13.4

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 (163) hide show
  1. package/dist/blocknote.js +5730 -2891
  2. package/dist/blocknote.js.map +1 -1
  3. package/dist/blocknote.umd.cjs +7 -7
  4. package/dist/blocknote.umd.cjs.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/webpack-stats.json +1 -1
  7. package/package.json +2 -2
  8. package/src/api/exporters/html/__snapshots__/file/basic/external.html +1 -0
  9. package/src/api/exporters/html/__snapshots__/file/basic/internal.html +1 -0
  10. package/src/api/exporters/html/__snapshots__/file/button/external.html +1 -0
  11. package/src/api/exporters/html/__snapshots__/file/button/internal.html +1 -0
  12. package/src/api/exporters/html/__snapshots__/file/nested/external.html +1 -0
  13. package/src/api/exporters/html/__snapshots__/file/nested/internal.html +1 -0
  14. package/src/api/exporters/html/__snapshots__/file/noCaption/external.html +1 -0
  15. package/src/api/exporters/html/__snapshots__/file/noCaption/internal.html +1 -0
  16. package/src/api/exporters/html/__snapshots__/file/noName/external.html +1 -0
  17. package/src/api/exporters/html/__snapshots__/file/noName/internal.html +1 -0
  18. package/src/api/exporters/html/__snapshots__/image/basic/external.html +1 -1
  19. package/src/api/exporters/html/__snapshots__/image/basic/internal.html +1 -1
  20. package/src/api/exporters/html/__snapshots__/image/button/external.html +1 -1
  21. package/src/api/exporters/html/__snapshots__/image/button/internal.html +1 -1
  22. package/src/api/exporters/html/__snapshots__/image/nested/external.html +1 -1
  23. package/src/api/exporters/html/__snapshots__/image/nested/internal.html +1 -1
  24. package/src/api/exporters/html/__snapshots__/image/noCaption/external.html +1 -0
  25. package/src/api/exporters/html/__snapshots__/image/noCaption/internal.html +1 -0
  26. package/src/api/exporters/html/__snapshots__/image/noName/external.html +1 -0
  27. package/src/api/exporters/html/__snapshots__/image/noName/internal.html +1 -0
  28. package/src/api/exporters/html/__snapshots__/image/noPreview/external.html +1 -0
  29. package/src/api/exporters/html/__snapshots__/image/noPreview/internal.html +1 -0
  30. package/src/api/exporters/html/__snapshots__/lists/basic/external.html +1 -0
  31. package/src/api/exporters/html/__snapshots__/lists/basic/internal.html +1 -0
  32. package/src/api/exporters/html/__snapshots__/lists/nested/external.html +1 -0
  33. package/src/api/exporters/html/__snapshots__/lists/nested/internal.html +1 -0
  34. package/src/api/exporters/html/__snapshots__/simpleFile/basic/external.html +1 -0
  35. package/src/api/exporters/html/__snapshots__/simpleFile/basic/internal.html +1 -0
  36. package/src/api/exporters/html/__snapshots__/simpleFile/button/external.html +1 -0
  37. package/src/api/exporters/html/__snapshots__/simpleFile/button/internal.html +1 -0
  38. package/src/api/exporters/html/__snapshots__/simpleFile/nested/external.html +1 -0
  39. package/src/api/exporters/html/__snapshots__/simpleFile/nested/internal.html +1 -0
  40. package/src/api/exporters/html/__snapshots__/simpleImage/basic/external.html +1 -1
  41. package/src/api/exporters/html/__snapshots__/simpleImage/basic/internal.html +1 -1
  42. package/src/api/exporters/html/__snapshots__/simpleImage/button/external.html +1 -1
  43. package/src/api/exporters/html/__snapshots__/simpleImage/button/internal.html +1 -1
  44. package/src/api/exporters/html/__snapshots__/simpleImage/nested/external.html +1 -1
  45. package/src/api/exporters/html/__snapshots__/simpleImage/nested/internal.html +1 -1
  46. package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/external.html +1 -0
  47. package/src/api/exporters/html/__snapshots__/simpleImage/noCaption/internal.html +1 -0
  48. package/src/api/exporters/html/__snapshots__/simpleImage/noName/external.html +1 -0
  49. package/src/api/exporters/html/__snapshots__/simpleImage/noName/internal.html +1 -0
  50. package/src/api/exporters/html/__snapshots__/simpleImage/noPreview/external.html +1 -0
  51. package/src/api/exporters/html/__snapshots__/simpleImage/noPreview/internal.html +1 -0
  52. package/src/api/exporters/html/externalHTMLExporter.ts +4 -3
  53. package/src/api/exporters/html/util/simplifyBlocksRehypePlugin.ts +1 -1
  54. package/src/api/exporters/markdown/__snapshots__/file/basic/markdown.md +3 -0
  55. package/src/api/exporters/markdown/__snapshots__/file/button/markdown.md +1 -0
  56. package/src/api/exporters/markdown/__snapshots__/file/nested/markdown.md +7 -0
  57. package/src/api/exporters/markdown/__snapshots__/file/noCaption/markdown.md +1 -0
  58. package/src/api/exporters/markdown/__snapshots__/file/noName/markdown.md +3 -0
  59. package/src/api/exporters/markdown/__snapshots__/image/basic/markdown.md +1 -1
  60. package/src/api/exporters/markdown/__snapshots__/image/button/markdown.md +1 -1
  61. package/src/api/exporters/markdown/__snapshots__/image/nested/markdown.md +2 -2
  62. package/src/api/exporters/markdown/__snapshots__/image/noCaption/markdown.md +1 -0
  63. package/src/api/exporters/markdown/__snapshots__/image/noName/markdown.md +3 -0
  64. package/src/api/exporters/markdown/__snapshots__/image/noPreview/markdown.md +3 -0
  65. package/src/api/exporters/markdown/__snapshots__/lists/basic/markdown.md +8 -0
  66. package/src/api/exporters/markdown/__snapshots__/lists/nested/markdown.md +10 -0
  67. package/src/api/exporters/markdown/__snapshots__/simpleFile/basic/markdown.md +3 -0
  68. package/src/api/exporters/markdown/__snapshots__/simpleFile/button/markdown.md +1 -0
  69. package/src/api/exporters/markdown/__snapshots__/simpleFile/nested/markdown.md +7 -0
  70. package/src/api/exporters/markdown/__snapshots__/simpleImage/basic/markdown.md +3 -1
  71. package/src/api/exporters/markdown/__snapshots__/simpleImage/button/markdown.md +1 -0
  72. package/src/api/exporters/markdown/__snapshots__/simpleImage/nested/markdown.md +6 -2
  73. package/src/api/exporters/markdown/__snapshots__/simpleImage/noCaption/markdown.md +1 -0
  74. package/src/api/exporters/markdown/__snapshots__/simpleImage/noName/markdown.md +3 -0
  75. package/src/api/exporters/markdown/__snapshots__/simpleImage/noPreview/markdown.md +3 -0
  76. package/src/api/exporters/markdown/markdownExporter.ts +2 -0
  77. package/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.ts +42 -0
  78. package/src/api/nodeConversions/__snapshots__/nodeConversions.test.ts.snap +262 -4
  79. package/src/api/parsers/html/__snapshots__/paste/list-test.json +74 -2
  80. package/src/api/parsers/html/__snapshots__/paste/parse-basic-block-types.json +3 -1
  81. package/src/api/parsers/html/__snapshots__/paste/parse-fake-image-caption.json +3 -1
  82. package/src/api/parsers/html/__snapshots__/paste/parse-mixed-nested-lists.json +135 -10
  83. package/src/api/parsers/html/__snapshots__/paste/parse-nested-lists-with-paragraphs.json +132 -7
  84. package/src/api/parsers/html/__snapshots__/paste/parse-nested-lists.json +111 -3
  85. package/src/api/parsers/html/parseHTML.test.ts +166 -95
  86. package/src/api/testUtil/cases/customBlocks.ts +82 -33
  87. package/src/api/testUtil/cases/customInlineContent.ts +1 -1
  88. package/src/api/testUtil/cases/customStyles.ts +1 -1
  89. package/src/api/testUtil/cases/defaultSchema.ts +185 -4
  90. package/src/blocks/AudioBlockContent/AudioBlockContent.ts +163 -0
  91. package/src/blocks/AudioBlockContent/audioBlockHelpers.ts +5 -0
  92. package/src/blocks/FileBlockContent/FileBlockContent.ts +120 -0
  93. package/src/blocks/FileBlockContent/fileBlockHelpers.ts +377 -0
  94. package/src/blocks/ImageBlockContent/ImageBlockContent.ts +134 -354
  95. package/src/blocks/ImageBlockContent/imageBlockHelpers.ts +6 -0
  96. package/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts +3 -0
  97. package/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.ts +266 -0
  98. package/src/blocks/ListItemBlockContent/ListItemKeyboardShortcuts.ts +2 -1
  99. package/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts +1 -0
  100. package/src/blocks/VideoBlockContent/VideoBlockContent.ts +181 -0
  101. package/src/blocks/VideoBlockContent/videoBlockHelpers.ts +6 -0
  102. package/src/blocks/defaultBlockTypeGuards.ts +53 -1
  103. package/src/blocks/defaultBlocks.ts +11 -2
  104. package/src/editor/Block.css +89 -27
  105. package/src/editor/BlockNoteEditor.ts +24 -10
  106. package/src/editor/BlockNoteSchema.ts +12 -3
  107. package/src/editor/transformPasted.ts +2 -1
  108. package/src/extensions/{ImagePanel/ImageToolbarPlugin.ts → FilePanel/FilePanelPlugin.ts} +22 -25
  109. package/src/extensions/FormattingToolbar/FormattingToolbarPlugin.ts +14 -2
  110. package/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts +72 -2
  111. package/src/extensions/TableHandles/TableHandlesPlugin.ts +27 -27
  112. package/src/extensions/TextAlignment/TextAlignmentExtension.ts +7 -1
  113. package/src/i18n/locales/en.ts +117 -11
  114. package/src/i18n/locales/fr.ts +118 -11
  115. package/src/i18n/locales/index.ts +8 -2
  116. package/src/i18n/locales/is.ts +295 -0
  117. package/src/i18n/locales/ja.ts +323 -0
  118. package/src/i18n/locales/ko.ts +307 -0
  119. package/src/i18n/locales/nl.ts +108 -8
  120. package/src/i18n/locales/pl.ts +287 -0
  121. package/src/i18n/locales/pt.ts +295 -0
  122. package/src/i18n/locales/vi.ts +295 -0
  123. package/src/i18n/locales/zh.ts +123 -8
  124. package/src/index.ts +9 -2
  125. package/src/pm-nodes/BlockContainer.ts +18 -6
  126. package/src/schema/blocks/createSpec.ts +1 -0
  127. package/src/schema/blocks/internal.ts +10 -0
  128. package/src/schema/blocks/types.ts +40 -5
  129. package/src/util/string.ts +12 -0
  130. package/types/src/api/exporters/markdown/util/addSpacesToCheckboxesRehypePlugin.d.ts +7 -0
  131. package/types/src/api/testUtil/cases/customBlocks.d.ts +272 -54
  132. package/types/src/api/testUtil/cases/customInlineContent.d.ts +222 -16
  133. package/types/src/api/testUtil/cases/customStyles.d.ts +222 -16
  134. package/types/src/blocks/AudioBlockContent/AudioBlockContent.d.ts +101 -0
  135. package/types/src/blocks/AudioBlockContent/audioBlockHelpers.d.ts +3 -0
  136. package/types/src/blocks/FileBlockContent/FileBlockContent.d.ts +93 -0
  137. package/types/src/blocks/FileBlockContent/fileBlockHelpers.d.ts +30 -0
  138. package/types/src/blocks/ImageBlockContent/ImageBlockContent.d.ts +50 -14
  139. package/types/src/blocks/ImageBlockContent/imageBlockHelpers.d.ts +4 -0
  140. package/types/src/blocks/ListItemBlockContent/CheckListItemBlockContent/CheckListItemBlockContent.d.ts +55 -0
  141. package/types/src/blocks/VideoBlockContent/VideoBlockContent.d.ts +129 -0
  142. package/types/src/blocks/VideoBlockContent/videoBlockHelpers.d.ts +4 -0
  143. package/types/src/blocks/defaultBlockTypeGuards.d.ts +6 -1
  144. package/types/src/blocks/defaultBlocks.d.ts +444 -32
  145. package/types/src/editor/BlockNoteEditor.d.ts +12 -5
  146. package/types/src/extensions/{ImagePanel/ImageToolbarPlugin.d.ts → FilePanel/FilePanelPlugin.d.ts} +9 -12
  147. package/types/src/extensions/TableHandles/TableHandlesPlugin.d.ts +1 -1
  148. package/types/src/i18n/locales/en.d.ts +56 -7
  149. package/types/src/i18n/locales/fr.d.ts +2 -184
  150. package/types/src/i18n/locales/index.d.ts +7 -1
  151. package/types/src/i18n/locales/is.d.ts +2 -0
  152. package/types/src/i18n/locales/ja.d.ts +2 -0
  153. package/types/src/i18n/locales/ko.d.ts +2 -0
  154. package/types/src/i18n/locales/pl.d.ts +2 -0
  155. package/types/src/i18n/locales/pt.d.ts +2 -0
  156. package/types/src/i18n/locales/vi.d.ts +2 -0
  157. package/types/src/index.d.ts +8 -2
  158. package/types/src/pm-nodes/BlockContainer.d.ts +1 -1
  159. package/types/src/schema/blocks/internal.d.ts +1 -1
  160. package/types/src/schema/blocks/types.d.ts +25 -1
  161. package/types/src/util/string.d.ts +1 -0
  162. /package/src/blocks/{ImageBlockContent → FileBlockContent}/uploadToTmpFilesDotOrg_DEV_ONLY.ts +0 -0
  163. /package/types/src/blocks/{ImageBlockContent → FileBlockContent}/uploadToTmpFilesDotOrg_DEV_ONLY.d.ts +0 -0
@@ -8,7 +8,13 @@ export const TextAlignmentExtension = Extension.create({
8
8
  {
9
9
  // Attribute is applied to block content instead of container so that child blocks don't inherit the text
10
10
  // alignment styling.
11
- types: ["paragraph", "heading", "bulletListItem", "numberedListItem"],
11
+ types: [
12
+ "paragraph",
13
+ "heading",
14
+ "bulletListItem",
15
+ "numberedListItem",
16
+ "checkListItem",
17
+ ],
12
18
  attributes: {
13
19
  textAlignment: {
14
20
  default: "left",
@@ -30,6 +30,20 @@ export const en = {
30
30
  aliases: ["ul", "li", "list", "bulletlist", "bullet list"],
31
31
  group: "Basic blocks",
32
32
  },
33
+ check_list: {
34
+ title: "Check List",
35
+ subtext: "Used to display a list with checkboxes",
36
+ aliases: [
37
+ "ul",
38
+ "li",
39
+ "list",
40
+ "checklist",
41
+ "check list",
42
+ "checked list",
43
+ "checkbox",
44
+ ],
45
+ group: "Basic blocks",
46
+ },
33
47
  paragraph: {
34
48
  title: "Paragraph",
35
49
  subtext: "Used for the body of your document",
@@ -38,7 +52,7 @@ export const en = {
38
52
  },
39
53
  table: {
40
54
  title: "Table",
41
- subtext: "Used for for tables",
55
+ subtext: "Used for tables",
42
56
  aliases: ["table"],
43
57
  group: "Advanced",
44
58
  },
@@ -53,20 +67,64 @@ export const en = {
53
67
  "picture",
54
68
  "media",
55
69
  "url",
56
- "drive",
57
- "dropbox",
58
70
  ],
59
71
  group: "Media",
60
72
  },
73
+ video: {
74
+ title: "Video",
75
+ subtext: "Insert a video",
76
+ aliases: [
77
+ "video",
78
+ "videoUpload",
79
+ "upload",
80
+ "mp4",
81
+ "film",
82
+ "media",
83
+ "url",
84
+ ],
85
+ group: "Media",
86
+ },
87
+ audio: {
88
+ title: "Audio",
89
+ subtext: "Insert audio",
90
+ aliases: [
91
+ "audio",
92
+ "audioUpload",
93
+ "upload",
94
+ "mp3",
95
+ "sound",
96
+ "media",
97
+ "url",
98
+ ],
99
+ group: "Media",
100
+ },
101
+ file: {
102
+ title: "File",
103
+ subtext: "Insert a file",
104
+ aliases: ["file", "upload", "embed", "media", "url"],
105
+ group: "Media",
106
+ },
61
107
  },
62
108
  placeholders: {
63
109
  default: "Enter text or type '/' for commands",
64
110
  heading: "Heading",
65
111
  bulletListItem: "List",
66
112
  numberedListItem: "List",
113
+ checkListItem: "List",
67
114
  },
68
- image: {
69
- add_button: "Add Image",
115
+ file_blocks: {
116
+ image: {
117
+ add_button_text: "Add image",
118
+ },
119
+ video: {
120
+ add_button_text: "Add video",
121
+ },
122
+ audio: {
123
+ add_button_text: "Add audio",
124
+ },
125
+ file: {
126
+ add_button_text: "Add file",
127
+ },
70
128
  },
71
129
  // from react package:
72
130
  side_menu: {
@@ -134,12 +192,50 @@ export const en = {
134
192
  tooltip: "Create link",
135
193
  secondary_tooltip: "Mod+K",
136
194
  },
137
- image_caption: {
195
+ file_caption: {
138
196
  tooltip: "Edit caption",
139
197
  input_placeholder: "Edit caption",
140
198
  },
141
- image_replace: {
142
- tooltip: "Replace image",
199
+ file_replace: {
200
+ tooltip: {
201
+ image: "Replace image",
202
+ video: "Replace video",
203
+ audio: "Replace audio",
204
+ file: "Replace file",
205
+ } as Record<string, string>,
206
+ },
207
+ file_rename: {
208
+ tooltip: {
209
+ image: "Rename image",
210
+ video: "Rename video",
211
+ audio: "Rename audio",
212
+ file: "Rename file",
213
+ } as Record<string, string>,
214
+ input_placeholder: {
215
+ image: "Rename image",
216
+ video: "Rename video",
217
+ audio: "Rename audio",
218
+ file: "Rename file",
219
+ } as Record<string, string>,
220
+ },
221
+ file_download: {
222
+ tooltip: {
223
+ image: "Download image",
224
+ video: "Download video",
225
+ audio: "Download audio",
226
+ file: "Download file",
227
+ } as Record<string, string>,
228
+ },
229
+ file_delete: {
230
+ tooltip: {
231
+ image: "Delete image",
232
+ video: "Delete video",
233
+ audio: "Delete audio",
234
+ file: "Delete file",
235
+ } as Record<string, string>,
236
+ },
237
+ file_preview_toggle: {
238
+ tooltip: "Toggle preview",
143
239
  },
144
240
  nest: {
145
241
  tooltip: "Nest block",
@@ -162,15 +258,25 @@ export const en = {
162
258
  tooltip: "Justify text",
163
259
  },
164
260
  },
165
- image_panel: {
261
+ file_panel: {
166
262
  upload: {
167
263
  title: "Upload",
168
- file_placeholder: "Upload image",
264
+ file_placeholder: {
265
+ image: "Upload image",
266
+ video: "Upload video",
267
+ audio: "Upload audio",
268
+ file: "Upload file",
269
+ } as Record<string, string>,
169
270
  upload_error: "Error: Upload failed",
170
271
  },
171
272
  embed: {
172
273
  title: "Embed",
173
- embed_button: "Embed image",
274
+ embed_button: {
275
+ image: "Embed image",
276
+ video: "Embed video",
277
+ audio: "Embed audio",
278
+ file: "Embed file",
279
+ } as Record<string, string>,
174
280
  url_placeholder: "Enter URL",
175
281
  },
176
282
  },
@@ -1,4 +1,6 @@
1
- export const fr = {
1
+ import { Dictionary } from "../dictionary";
2
+
3
+ export const fr: Dictionary = {
2
4
  slash_menu: {
3
5
  heading: {
4
6
  title: "Titre 1",
@@ -30,6 +32,19 @@ export const fr = {
30
32
  aliases: ["ul", "li", "liste", "listeàpuces", "liste à puces"],
31
33
  group: "Blocs de base",
32
34
  },
35
+ check_list: {
36
+ title: "Liste de vérification",
37
+ subtext: "Utilisé pour afficher une liste avec des cases à cocher",
38
+ aliases: [
39
+ "ul",
40
+ "li",
41
+ "liste",
42
+ "liste de vérification",
43
+ "liste cochée",
44
+ "case à cocher",
45
+ ],
46
+ group: "Blocs de base",
47
+ },
33
48
  paragraph: {
34
49
  title: "Paragraphe",
35
50
  subtext: "Utilisé pour le corps de votre document",
@@ -53,20 +68,64 @@ export const fr = {
53
68
  "photo",
54
69
  "média",
55
70
  "url",
56
- "drive",
57
- "dropbox",
58
71
  ],
59
72
  group: "Médias",
60
73
  },
74
+ video: {
75
+ title: "Vidéo",
76
+ subtext: "Insérer une vidéo",
77
+ aliases: [
78
+ "vidéo",
79
+ "téléchargerVidéo",
80
+ "téléverser",
81
+ "mp4",
82
+ "film",
83
+ "média",
84
+ "url",
85
+ ],
86
+ group: "Média",
87
+ },
88
+ audio: {
89
+ title: "Audio",
90
+ subtext: "Insérer un audio",
91
+ aliases: [
92
+ "audio",
93
+ "téléchargerAudio",
94
+ "téléverser",
95
+ "mp3",
96
+ "son",
97
+ "média",
98
+ "url",
99
+ ],
100
+ group: "Média",
101
+ },
102
+ file: {
103
+ title: "Fichier",
104
+ subtext: "Insérer un fichier",
105
+ aliases: ["fichier", "téléverser", "intégrer", "média", "url"],
106
+ group: "Média",
107
+ },
61
108
  },
62
109
  placeholders: {
63
110
  default: "Entrez du texte ou tapez '/' pour les commandes",
64
111
  heading: "Titre",
65
112
  bulletListItem: "Liste",
66
113
  numberedListItem: "Liste",
114
+ checkListItem: "Liste",
67
115
  },
68
- image: {
69
- add_button: "Ajouter une Image",
116
+ file_blocks: {
117
+ image: {
118
+ add_button_text: "Ajouter une image",
119
+ },
120
+ video: {
121
+ add_button_text: "Ajouter une vidéo",
122
+ },
123
+ audio: {
124
+ add_button_text: "Ajouter un audio",
125
+ },
126
+ file: {
127
+ add_button_text: "Ajouter un fichier",
128
+ },
70
129
  },
71
130
  // from react package:
72
131
  side_menu: {
@@ -134,12 +193,50 @@ export const fr = {
134
193
  tooltip: "Créer un lien",
135
194
  secondary_tooltip: "Mod+K",
136
195
  },
137
- image_caption: {
196
+ file_caption: {
138
197
  tooltip: "Modifier la légende",
139
198
  input_placeholder: "Modifier la légende",
140
199
  },
141
- image_replace: {
142
- tooltip: "Remplacer l'image",
200
+ file_replace: {
201
+ tooltip: {
202
+ image: "Remplacer l'image",
203
+ video: "Remplacer la vidéo",
204
+ audio: "Remplacer l'audio",
205
+ file: "Remplacer le fichier",
206
+ },
207
+ },
208
+ file_rename: {
209
+ tooltip: {
210
+ image: "Renommer l'image",
211
+ video: "Renommer la vidéo",
212
+ audio: "Renommer l'audio",
213
+ file: "Renommer le fichier",
214
+ },
215
+ input_placeholder: {
216
+ image: "Renommer l'image",
217
+ video: "Renommer la vidéo",
218
+ audio: "Renommer l'audio",
219
+ file: "Renommer le fichier",
220
+ },
221
+ },
222
+ file_download: {
223
+ tooltip: {
224
+ image: "Télécharger l'image",
225
+ video: "Télécharger la vidéo",
226
+ audio: "Télécharger l'audio",
227
+ file: "Télécharger le fichier",
228
+ },
229
+ },
230
+ file_delete: {
231
+ tooltip: {
232
+ image: "Supprimer l'image",
233
+ video: "Supprimer la vidéo",
234
+ audio: "Supprimer l'audio",
235
+ file: "Supprimer le fichier",
236
+ },
237
+ },
238
+ file_preview_toggle: {
239
+ tooltip: "Basculer l'aperçu",
143
240
  },
144
241
  nest: {
145
242
  tooltip: "Emboîter le bloc",
@@ -162,15 +259,25 @@ export const fr = {
162
259
  tooltip: "Justifier le texte",
163
260
  },
164
261
  },
165
- image_panel: {
262
+ file_panel: {
166
263
  upload: {
167
264
  title: "Télécharger",
168
- file_placeholder: "Télécharger l'image",
265
+ file_placeholder: {
266
+ image: "Télécharger une image",
267
+ video: "Télécharger une vidéo",
268
+ audio: "Télécharger un fichier audio",
269
+ file: "Télécharger un fichier",
270
+ },
169
271
  upload_error: "Erreur : Échec du téléchargement",
170
272
  },
171
273
  embed: {
172
274
  title: "Intégrer",
173
- embed_button: "Intégrer l'image",
275
+ embed_button: {
276
+ image: "Intégrer une image",
277
+ video: "Intégrer une vidéo",
278
+ audio: "Intégrer un fichier audio",
279
+ file: "Intégrer un fichier",
280
+ },
174
281
  url_placeholder: "Entrez l'URL",
175
282
  },
176
283
  },
@@ -1,4 +1,10 @@
1
1
  export * from "./en";
2
- export * from "./nl";
3
- export * from "./zh";
4
2
  export * from "./fr";
3
+ export * from "./is";
4
+ export * from "./ja";
5
+ export * from "./ko";
6
+ export * from "./nl";
7
+ export * from "./pl";
8
+ export * from "./pt";
9
+ export * from "./vi";
10
+ export * from "./zh";
@@ -0,0 +1,295 @@
1
+ import type { Dictionary } from "../dictionary";
2
+
3
+ export const is: Dictionary = {
4
+ slash_menu: {
5
+ heading: {
6
+ title: "Fyrirsögn 1",
7
+ subtext: "Notað fyrir efstu fyrirsögn",
8
+ aliases: ["h", "fyrirsogn1", "h1"],
9
+ group: "Fyrirsagnir",
10
+ },
11
+ heading_2: {
12
+ title: "Fyrirsögn 2",
13
+ subtext: "Notað fyrir lykilhluta",
14
+ aliases: ["h2", "fyrirsogn2", "undirfyrirsogn"],
15
+ group: "Fyrirsagnir",
16
+ },
17
+ heading_3: {
18
+ title: "Fyrirsögn 3",
19
+ subtext: "Notað fyrir undirhluta og hópfyrirsagnir",
20
+ aliases: ["h3", "fyrirsogn3", "undirfyrirsogn"],
21
+ group: "Fyrirsagnir",
22
+ },
23
+ numbered_list: {
24
+ title: "Númeruð listi",
25
+ subtext: "Notað til að birta númeraðan lista",
26
+ aliases: ["ol", "li", "listi", "numeradurlisti"],
27
+ group: "Grunnblokkar",
28
+ },
29
+ bullet_list: {
30
+ title: "Punktalisti",
31
+ subtext: "Notað til að birta óraðaðan lista",
32
+ aliases: ["ul", "li", "listi", "punktalisti"],
33
+ group: "Grunnblokkar",
34
+ },
35
+ check_list: {
36
+ title: "Athugunarlisti",
37
+ subtext: "Notað til að sýna lista með gátreitum",
38
+ aliases: ["ul", "li", "listi", "athugunarlisti", "merktur listi"],
39
+ group: "Grunnblokkar",
40
+ },
41
+ paragraph: {
42
+ title: "Málsgrein",
43
+ subtext: "Notað fyrir meginmál skjalsins",
44
+ aliases: ["p", "malsgrein"],
45
+ group: "Grunnblokkar",
46
+ },
47
+ table: {
48
+ title: "Tafla",
49
+ subtext: "Notað fyrir töflur",
50
+ aliases: ["tafla"],
51
+ group: "Ítarlegt",
52
+ },
53
+ image: {
54
+ title: "Mynd",
55
+ subtext: "Settu inn mynd",
56
+ aliases: [
57
+ "mynd",
58
+ "myndaupphlaed",
59
+ "upphlaed",
60
+ "img",
61
+ "mynd",
62
+ "media",
63
+ "url",
64
+ ],
65
+ group: "Miðlar",
66
+ },
67
+ video: {
68
+ title: "Myndband",
69
+ subtext: "Setja inn myndband",
70
+ aliases: [
71
+ "myndband",
72
+ "videoUpphala",
73
+ "hlaða upp",
74
+ "mp4",
75
+ "kvikmynd",
76
+ "miðill",
77
+ "url",
78
+ ],
79
+ group: "Miðill",
80
+ },
81
+ audio: {
82
+ title: "Hljóð",
83
+ subtext: "Setja inn hljóð",
84
+ aliases: [
85
+ "hljóð",
86
+ "audioUpphala",
87
+ "hlaða upp",
88
+ "mp3",
89
+ "hljóð",
90
+ "miðill",
91
+ "url",
92
+ ],
93
+ group: "Miðlar",
94
+ },
95
+ file: {
96
+ title: "Skrá",
97
+ subtext: "Setja inn skrá",
98
+ aliases: ["skrá", "hlaða upp", "fella inn", "miðill", "url"],
99
+ group: "Miðlar",
100
+ },
101
+ },
102
+ placeholders: {
103
+ default: "Sláðu inn texta eða skrifaðu '/' fyrir skipanir",
104
+ heading: "Fyrirsögn",
105
+ bulletListItem: "Listi",
106
+ numberedListItem: "Listi",
107
+ checkListItem: "Listi",
108
+ },
109
+ file_blocks: {
110
+ image: {
111
+ add_button_text: "Bæta við mynd",
112
+ },
113
+ video: {
114
+ add_button_text: "Bæta við myndbandi",
115
+ },
116
+ audio: {
117
+ add_button_text: "Bæta við hljóði",
118
+ },
119
+ file: {
120
+ add_button_text: "Bæta við skrá",
121
+ },
122
+ },
123
+ side_menu: {
124
+ add_block_label: "Bæta við blokki",
125
+ drag_handle_label: "Opna blokkarvalmynd",
126
+ },
127
+ drag_handle: {
128
+ delete_menuitem: "Eyða",
129
+ colors_menuitem: "Litir",
130
+ },
131
+ table_handle: {
132
+ delete_column_menuitem: "Eyða dálki",
133
+ delete_row_menuitem: "Eyða röð",
134
+ add_left_menuitem: "Bæta dálki við til vinstri",
135
+ add_right_menuitem: "Bæta dálki við til hægri",
136
+ add_above_menuitem: "Bæta röð við fyrir ofan",
137
+ add_below_menuitem: "Bæta röð við fyrir neðan",
138
+ },
139
+ suggestion_menu: {
140
+ no_items_title: "Engir hlutir fundust",
141
+ loading: "Hleður…",
142
+ },
143
+ color_picker: {
144
+ text_title: "Texti",
145
+ background_title: "Bakgrunnur",
146
+ colors: {
147
+ default: "Sjálfgefið",
148
+ gray: "Grár",
149
+ brown: "Brúnn",
150
+ red: "Rauður",
151
+ orange: "Appelsínugulur",
152
+ yellow: "Gulur",
153
+ green: "Grænn",
154
+ blue: "Blár",
155
+ purple: "Fjólublár",
156
+ pink: "Bleikur",
157
+ },
158
+ },
159
+
160
+ formatting_toolbar: {
161
+ bold: {
162
+ tooltip: "Feitletrað",
163
+ secondary_tooltip: "Mod+B",
164
+ },
165
+ italic: {
166
+ tooltip: "Skáletrað",
167
+ secondary_tooltip: "Mod+I",
168
+ },
169
+ underline: {
170
+ tooltip: "Undirstrikað",
171
+ secondary_tooltip: "Mod+U",
172
+ },
173
+ strike: {
174
+ tooltip: "Yfirstrikað",
175
+ secondary_tooltip: "Mod+Shift+X",
176
+ },
177
+ code: {
178
+ tooltip: "Kóði",
179
+ secondary_tooltip: "",
180
+ },
181
+ colors: {
182
+ tooltip: "Litir",
183
+ },
184
+ link: {
185
+ tooltip: "Búa til tengil",
186
+ secondary_tooltip: "Mod+K",
187
+ },
188
+ file_caption: {
189
+ tooltip: "Breyta myndatexta",
190
+ input_placeholder: "Breyta myndatexta",
191
+ },
192
+ file_replace: {
193
+ tooltip: {
194
+ image: "Skipta um mynd",
195
+ video: "Skipta um myndband",
196
+ audio: "Skipta um hljóð",
197
+ file: "Skipta um skrá",
198
+ },
199
+ },
200
+ file_rename: {
201
+ tooltip: {
202
+ image: "Endurnefna mynd",
203
+ video: "Endurnefna myndband",
204
+ audio: "Endurnefna hljóð",
205
+ file: "Endurnefna skrá",
206
+ },
207
+ input_placeholder: {
208
+ image: "Endurnefna mynd",
209
+ video: "Endurnefna myndband",
210
+ audio: "Endurnefna hljóð",
211
+ file: "Endurnefna skrá",
212
+ },
213
+ },
214
+ file_download: {
215
+ tooltip: {
216
+ image: "Sækja mynd",
217
+ video: "Sækja myndband",
218
+ audio: "Sækja hljóð",
219
+ file: "Sækja skrá",
220
+ },
221
+ },
222
+ file_delete: {
223
+ tooltip: {
224
+ image: "Eyða mynd",
225
+ video: "Eyða myndbandi",
226
+ audio: "Eyða hljóði",
227
+ file: "Eyða skrá",
228
+ },
229
+ },
230
+ file_preview_toggle: {
231
+ tooltip: "Skipta um forskoðun",
232
+ },
233
+ nest: {
234
+ tooltip: "Fella blokk saman",
235
+ secondary_tooltip: "Tab",
236
+ },
237
+ unnest: {
238
+ tooltip: "Afþýða blokk",
239
+ secondary_tooltip: "Shift+Tab",
240
+ },
241
+ align_left: {
242
+ tooltip: "Vinstrijafna texta",
243
+ },
244
+ align_center: {
245
+ tooltip: "Miðjustilla texta",
246
+ },
247
+ align_right: {
248
+ tooltip: "Hægrijafna texta",
249
+ },
250
+ align_justify: {
251
+ tooltip: "Jafna texta",
252
+ },
253
+ },
254
+ file_panel: {
255
+ upload: {
256
+ title: "Hlaða upp",
257
+ file_placeholder: {
258
+ image: "Hlaða upp mynd",
259
+ video: "Hlaða upp myndband",
260
+ audio: "Hlaða upp hljóð",
261
+ file: "Hlaða upp skrá",
262
+ },
263
+ upload_error: "Villa: Upphleðsla mistókst",
264
+ },
265
+ embed: {
266
+ title: "Innsetja",
267
+ embed_button: {
268
+ image: "Innsetja mynd",
269
+ video: "Innsetja myndband",
270
+ audio: "Innsetja hljóð",
271
+ file: "Innsetja skrá",
272
+ },
273
+ url_placeholder: "Sláðu inn URL",
274
+ },
275
+ },
276
+ link_toolbar: {
277
+ delete: {
278
+ tooltip: "Fjarlægja tengil",
279
+ },
280
+ edit: {
281
+ text: "Breyta tengli",
282
+ tooltip: "Breyta",
283
+ },
284
+ open: {
285
+ tooltip: "Opna í nýjum flipa",
286
+ },
287
+ form: {
288
+ title_placeholder: "Breyta titli",
289
+ url_placeholder: "Breyta URL",
290
+ },
291
+ },
292
+ generic: {
293
+ ctrl_shortcut: "Ctrl",
294
+ },
295
+ };