reactjs-tiptap-editor 1.0.22 → 1.0.24

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 (159) hide show
  1. package/lib/{ActionMenuButton-BBDqKvKg.cjs → ActionMenuButton-B8NhVw5m.cjs} +1 -1
  2. package/lib/{ActionMenuButton-B1067mIC.js → ActionMenuButton-HYlhmRvw.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +4 -4
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +2 -2
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +2 -2
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +2 -2
  11. package/lib/{Callout-lBlBlK_w.cjs → Callout-B-S2f0Qo.cjs} +1 -1
  12. package/lib/{Callout-V2mO6s2Y.js → Callout-CF7Y9yJ7.js} +4 -4
  13. package/lib/Callout.cjs +1 -1
  14. package/lib/Callout.js +4 -4
  15. package/lib/Clear.cjs +1 -1
  16. package/lib/Clear.js +2 -2
  17. package/lib/Code.cjs +1 -1
  18. package/lib/Code.js +6 -6
  19. package/lib/CodeBlock.cjs +1 -1
  20. package/lib/CodeBlock.js +27 -27
  21. package/lib/CodeView.cjs +1 -1
  22. package/lib/CodeView.js +2 -2
  23. package/lib/Color.cjs +1 -1
  24. package/lib/Color.js +3 -3
  25. package/lib/Column.cjs +1 -1
  26. package/lib/Column.js +7 -7
  27. package/lib/{Drawer-Cyv27orn.js → Drawer-CaXVhxo4.js} +21 -21
  28. package/lib/{Drawer-BeYo9jAG.cjs → Drawer-Was4hxYH.cjs} +1 -1
  29. package/lib/Drawer.cjs +1 -1
  30. package/lib/Drawer.js +4 -4
  31. package/lib/Emoji.cjs +1 -1
  32. package/lib/Emoji.js +4312 -1860
  33. package/lib/Excalidraw.cjs +1 -1
  34. package/lib/Excalidraw.js +3 -3
  35. package/lib/ExportPdf.cjs +1 -1
  36. package/lib/ExportPdf.js +2 -2
  37. package/lib/ExportWord.cjs +1 -1
  38. package/lib/ExportWord.js +2 -2
  39. package/lib/FontFamily.cjs +1 -1
  40. package/lib/FontFamily.js +5 -5
  41. package/lib/FontSize.cjs +1 -1
  42. package/lib/FontSize.js +9 -9
  43. package/lib/Heading.cjs +1 -1
  44. package/lib/Heading.js +5 -5
  45. package/lib/Highlight.cjs +1 -1
  46. package/lib/Highlight.js +69 -46
  47. package/lib/History.cjs +1 -1
  48. package/lib/History.js +556 -418
  49. package/lib/HorizontalRule.cjs +1 -1
  50. package/lib/HorizontalRule.js +2 -2
  51. package/lib/{Iframe-Bx-VDxSB.cjs → Iframe-BI0sq6pd.cjs} +1 -1
  52. package/lib/{Iframe-D9JVKzO0.js → Iframe-Bp986fj0.js} +3 -3
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +3 -3
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +3 -3
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +47 -47
  59. package/lib/ImportWord.cjs +1 -1
  60. package/lib/ImportWord.js +3 -3
  61. package/lib/{Indent-B5tQ5Wfg.js → Indent-E6B8DkyN.js} +4 -4
  62. package/lib/{Indent-CCLO0KpG.cjs → Indent-FvM52kjA.cjs} +1 -1
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +2 -2
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +2 -2
  67. package/lib/{Katex-rtfVV2pl.cjs → Katex-DP6EjdKz.cjs} +1 -1
  68. package/lib/{Katex-w_c6vAMd.js → Katex-pzwyyiFJ.js} +5 -5
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +3 -3
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +4 -4
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +2 -2
  75. package/lib/LinkEditBlock-Cmkmp2fW.cjs +5 -0
  76. package/lib/{LinkEditBlock-CTlU8YnO.js → LinkEditBlock-OjN4F2rM.js} +222 -224
  77. package/lib/MarkdownPaste.cjs +1 -1
  78. package/lib/MarkdownPaste.js +1 -1
  79. package/lib/Mention.cjs +1 -1
  80. package/lib/Mention.js +8 -8
  81. package/lib/Mermaid.cjs +1 -1
  82. package/lib/Mermaid.js +34 -34
  83. package/lib/MoreMark.cjs +1 -1
  84. package/lib/MoreMark.js +3 -3
  85. package/lib/OrderedList.cjs +1 -1
  86. package/lib/OrderedList.js +2 -2
  87. package/lib/SearchAndReplace.cjs +1 -1
  88. package/lib/SearchAndReplace.js +4 -4
  89. package/lib/SlashCommand.cjs +1 -1
  90. package/lib/SlashCommand.js +7 -7
  91. package/lib/{SlashCommandNodeView-CVKjpS6r.cjs → SlashCommandNodeView-DarAytvt.cjs} +1 -1
  92. package/lib/{SlashCommandNodeView-DNkpJuM3.js → SlashCommandNodeView-o323V8li.js} +2 -2
  93. package/lib/Strike.cjs +1 -1
  94. package/lib/Strike.js +2 -2
  95. package/lib/Table-CC9uNHPL.js +1984 -0
  96. package/lib/Table-Clnz-i4l.cjs +9 -0
  97. package/lib/Table.cjs +1 -1
  98. package/lib/Table.js +1 -1
  99. package/lib/TaskList.cjs +1 -1
  100. package/lib/TaskList.js +2 -2
  101. package/lib/TextAlign.cjs +1 -1
  102. package/lib/TextAlign.js +3 -3
  103. package/lib/TextDirection.cjs +1 -1
  104. package/lib/TextDirection.js +3 -3
  105. package/lib/TextUnderline.cjs +1 -1
  106. package/lib/TextUnderline.js +2 -2
  107. package/lib/{Twitter-BJjt8vv_.cjs → Twitter-0kmrijjL.cjs} +1 -1
  108. package/lib/{Twitter-CKm0M53B.js → Twitter-BVnXL8we.js} +5 -5
  109. package/lib/Twitter.cjs +1 -1
  110. package/lib/Twitter.js +3 -3
  111. package/lib/Video.cjs +1 -1
  112. package/lib/Video.js +3 -3
  113. package/lib/bubble.cjs +6 -6
  114. package/lib/bubble.js +1573 -1561
  115. package/lib/{clsx-Bg-2aTKh.js → clsx-0OU6n9va.js} +379 -353
  116. package/lib/clsx-D6gYQn3o.cjs +33 -0
  117. package/lib/{dropdown-menu-Dre693DD.cjs → dropdown-menu-BIGvxqiu.cjs} +1 -1
  118. package/lib/{dropdown-menu-AhMKS9PQ.js → dropdown-menu-BW2M6saA.js} +1 -1
  119. package/lib/index-BAb_UADw.cjs +1 -0
  120. package/lib/index-BF3EVCB1.cjs +2 -0
  121. package/lib/{index-D0EmqTpe.js → index-BblvcbTH.js} +1130 -1064
  122. package/lib/index-Bcj8cyOO.cjs +24 -0
  123. package/lib/{index-BfHAqkoX.js → index-BrsJsbds.js} +3 -3
  124. package/lib/index-CGjT-a9h.js +1377 -0
  125. package/lib/index-CPTpXLfX.cjs +11 -0
  126. package/lib/{index-C3dgmjIF.cjs → index-CUvjYuRp.cjs} +1 -1
  127. package/lib/{index-C4aGVY2E.cjs → index-CWw4s87s.cjs} +1 -1
  128. package/lib/{index-DXtVL0al.js → index-Cal5SPfB.js} +189 -134
  129. package/lib/{index-CjLxMm5d.js → index-D-Ouz0vF.js} +1 -1
  130. package/lib/{index-83hp1lZH.cjs → index-deubsx3z.cjs} +1 -1
  131. package/lib/{index-DtVRewGA.js → index-oj858lQO.js} +229 -31
  132. package/lib/{index-CbkpBnTX.js → index-zw-Kd38i.js} +47 -50
  133. package/lib/index.cjs +1 -1
  134. package/lib/index.js +2 -2
  135. package/lib/locale-bundle.cjs +1 -1
  136. package/lib/locale-bundle.js +7 -6
  137. package/lib/locales/index.d.ts +199 -1
  138. package/lib/locales/ja.d.ts +198 -0
  139. package/lib/{popover-B1ptDngu.js → popover-BIVHT1W9.js} +1 -1
  140. package/lib/{popover-D7w_FVSV.cjs → popover-DoSfJsFS.cjs} +1 -1
  141. package/lib/{renderNodeView-CbxCTni3.js → renderNodeView-CfWJK4rG.js} +2 -2
  142. package/lib/{renderNodeView-DFVrJy0l.cjs → renderNodeView-D--fDFov.cjs} +1 -1
  143. package/lib/{separator-C_7KkuoG.cjs → separator-SRbPfmGa.cjs} +1 -1
  144. package/lib/{separator-CDoF4Z4Z.js → separator-b-qOPJmp.js} +3 -3
  145. package/lib/{textarea-CNzZnjjW.js → textarea-CpxXPky_.js} +1 -1
  146. package/lib/{textarea-CEtXap1b.cjs → textarea-DbGw9oCU.cjs} +1 -1
  147. package/lib/updatePosition-BwzAsiY0.js +16 -0
  148. package/lib/{updatePosition-CQE1ct18.cjs → updatePosition-DGPtRfWN.cjs} +1 -1
  149. package/package.json +60 -60
  150. package/lib/LinkEditBlock-_41zgSyl.cjs +0 -5
  151. package/lib/Table-BFiU40iW.cjs +0 -9
  152. package/lib/Table-yZtD5Qo1.js +0 -1945
  153. package/lib/clsx-DSAWW32g.cjs +0 -33
  154. package/lib/index-C4WLt4NA.cjs +0 -24
  155. package/lib/index-DlxZt4_j.cjs +0 -1
  156. package/lib/index-P5_MyY0i.js +0 -1362
  157. package/lib/index-TcJ2UKnv.cjs +0 -1
  158. package/lib/index-fbGGohBT.cjs +0 -12
  159. package/lib/updatePosition-BGD41Hbg.js +0 -16
@@ -4,6 +4,7 @@ import { default as hu_HU } from './hu';
4
4
  import { default as pt_BR } from './pt-br';
5
5
  import { default as vi } from './vi';
6
6
  import { default as zh_CN } from './zh-cn';
7
+ import { default as ja } from './ja';
7
8
  declare const LANG: {
8
9
  currentLang: string;
9
10
  message: {
@@ -1189,6 +1190,203 @@ declare const LANG: {
1189
1190
  'editor.callout.type.warning': string;
1190
1191
  'editor.callout.type.caution': string;
1191
1192
  };
1193
+ ja: {
1194
+ 'editor.remove': string;
1195
+ 'editor.copy': string;
1196
+ 'editor.words': string;
1197
+ 'editor.characters': string;
1198
+ 'editor.default': string;
1199
+ 'editor.recent': string;
1200
+ 'editor.nofill': string;
1201
+ 'editor.format': string;
1202
+ 'editor.delete': string;
1203
+ 'editor.edit': string;
1204
+ 'editor.settings': string;
1205
+ 'editor.table_of_content': string;
1206
+ 'editor.draghandle.tooltip': string;
1207
+ 'editor.draghandle.insertBlock': string;
1208
+ 'editor.draghandle.grip': string;
1209
+ 'editor.copyToClipboard': string;
1210
+ 'editor.slash': string;
1211
+ 'editor.slash.empty': string;
1212
+ 'editor.slash.format': string;
1213
+ 'editor.slash.insert': string;
1214
+ 'editor.slash.embed': string;
1215
+ 'editor.content': string;
1216
+ 'editor.fontFamily.tooltip': string;
1217
+ 'editor.fontFamily.default.tooltip': string;
1218
+ 'editor.moremark': string;
1219
+ 'editor.size.small.tooltip': string;
1220
+ 'editor.size.medium.tooltip': string;
1221
+ 'editor.size.large.tooltip': string;
1222
+ 'editor.bold.tooltip': string;
1223
+ 'editor.italic.tooltip': string;
1224
+ 'editor.underline.tooltip': string;
1225
+ 'editor.strike.tooltip': string;
1226
+ 'editor.color.tooltip': string;
1227
+ 'editor.color.more': string;
1228
+ 'editor.highlight.tooltip': string;
1229
+ 'editor.lineheight.tooltip': string;
1230
+ 'editor.heading.tooltip': string;
1231
+ 'editor.heading.h1.tooltip': string;
1232
+ 'editor.heading.h2.tooltip': string;
1233
+ 'editor.heading.h3.tooltip': string;
1234
+ 'editor.heading.h4.tooltip': string;
1235
+ 'editor.heading.h5.tooltip': string;
1236
+ 'editor.heading.h6.tooltip': string;
1237
+ 'editor.paragraph.tooltip': string;
1238
+ 'editor.textalign.tooltip': string;
1239
+ 'editor.textalign.left.tooltip': string;
1240
+ 'editor.textalign.center.tooltip': string;
1241
+ 'editor.textalign.right.tooltip': string;
1242
+ 'editor.textalign.justify.tooltip': string;
1243
+ 'editor.indent': string;
1244
+ 'editor.indent.indent': string;
1245
+ 'editor.indent.outdent': string;
1246
+ 'editor.fontSize.tooltip': string;
1247
+ 'editor.fontSize.default.tooltip': string;
1248
+ 'editor.superscript.tooltip': string;
1249
+ 'editor.subscript.tooltip': string;
1250
+ 'editor.bulletlist.tooltip': string;
1251
+ 'editor.orderedlist.tooltip': string;
1252
+ 'editor.tasklist.tooltip': string;
1253
+ 'editor.indent.tooltip': string;
1254
+ 'editor.outdent.tooltip': string;
1255
+ 'editor.columns.tooltip': string;
1256
+ 'editor.link.tooltip': string;
1257
+ 'editor.link.unlink.tooltip': string;
1258
+ 'editor.link.open.tooltip': string;
1259
+ 'editor.link.edit.tooltip': string;
1260
+ 'editor.link.dialog.title': string;
1261
+ 'editor.link.dialog.link': string;
1262
+ 'editor.link.dialog.text': string;
1263
+ 'editor.link.dialog.openInNewTab': string;
1264
+ 'editor.link.dialog.link.placeholder': string;
1265
+ 'editor.link.dialog.text.placeholder': string;
1266
+ 'editor.link.dialog.button.apply': string;
1267
+ 'editor.link.dialog.button.cancel': string;
1268
+ 'editor.image.tooltip': string;
1269
+ 'editor.image.dragger.tooltip': string;
1270
+ 'editor.image.float.left.tooltip': string;
1271
+ 'editor.image.float.none.tooltip': string;
1272
+ 'editor.image.float.right.tooltip': string;
1273
+ 'editor.image.dialog.title': string;
1274
+ 'editor.image.dialog.tab.url': string;
1275
+ 'editor.image.dialog.tab.upload': string;
1276
+ 'editor.image.dialog.tab.uploadCrop': string;
1277
+ 'editor.image.dialog.uploading': string;
1278
+ 'editor.link.dialog.inline': string;
1279
+ 'editor.image.dialog.form.link': string;
1280
+ 'editor.image.dialog.placeholder': string;
1281
+ 'editor.image.dialog.form.alt': string;
1282
+ 'editor.image.dialog.form.aspectRatio': string;
1283
+ 'editor.image.dialog.form.file': string;
1284
+ 'editor.image.dialog.button.apply': string;
1285
+ 'editor.video.tooltip': string;
1286
+ 'editor.video.dialog.tab.upload': string;
1287
+ 'editor.video.dialog.uploading': string;
1288
+ 'editor.video.dialog.title': string;
1289
+ 'editor.video.dialog.link': string;
1290
+ 'editor.video.dialog.placeholder': string;
1291
+ 'editor.video.dialog.button.apply': string;
1292
+ 'editor.table.tooltip': string;
1293
+ 'editor.table.menu.insert_table': string;
1294
+ 'editor.table.menu.insert_table.with_header_row': string;
1295
+ 'editor.table.menu.add_column_before': string;
1296
+ 'editor.table.menu.add_column_after': string;
1297
+ 'editor.table.menu.delete_column': string;
1298
+ 'editor.table.menu.add_row_before': string;
1299
+ 'editor.table.menu.add_row_after': string;
1300
+ 'editor.table.menu.delete_row': string;
1301
+ 'editor.table.menu.merge_or_split_cells': string;
1302
+ 'editor.table.menu.delete_table': string;
1303
+ 'editor.blockquote.tooltip': string;
1304
+ 'editor.horizontalrule.tooltip': string;
1305
+ 'editor.code.tooltip': string;
1306
+ 'editor.codeblock.tooltip': string;
1307
+ 'editor.clear.tooltip': string;
1308
+ 'editor.undo.tooltip': string;
1309
+ 'editor.redo.tooltip': string;
1310
+ 'editor.fullscreen.tooltip.fullscreen': string;
1311
+ 'editor.fullscreen.tooltip.exit': string;
1312
+ 'editor.imageUpload.cancel': string;
1313
+ 'editor.imageUpload.crop': string;
1314
+ 'editor.imageUpload.uploading': string;
1315
+ 'editor.imageUpload.alt': string;
1316
+ 'editor.imageUpload.fileTypeNotSupported': string;
1317
+ 'editor.imageUpload.fileSizeTooBig': string;
1318
+ 'editor.table.menu.insertColumnBefore': string;
1319
+ 'editor.table.menu.insertColumnAfter': string;
1320
+ 'editor.table.menu.deleteColumn': string;
1321
+ 'editor.table.menu.insertRowAbove': string;
1322
+ 'editor.table.menu.insertRowBelow': string;
1323
+ 'editor.table.menu.deleteRow': string;
1324
+ 'editor.table.menu.mergeCells': string;
1325
+ 'editor.table.menu.splitCells': string;
1326
+ 'editor.table.menu.deleteTable': string;
1327
+ 'editor.table.menu.setCellsBgColor': string;
1328
+ 'editor.emoji.tooltip': string;
1329
+ 'editor.iframe.tooltip': string;
1330
+ 'editor.searchAndReplace.tooltip': string;
1331
+ 'editor.search.dialog.text': string;
1332
+ 'editor.replace.dialog.text': string;
1333
+ 'editor.replaceAll.dialog.text': string;
1334
+ 'editor.previous.dialog.text': string;
1335
+ 'editor.next.dialog.text': string;
1336
+ no_result_found: string;
1337
+ 'Smileys & People': string;
1338
+ 'Animals & Nature': string;
1339
+ 'Food & Drink': string;
1340
+ Activity: string;
1341
+ 'Travel & Places': string;
1342
+ Object: string;
1343
+ Symbol: string;
1344
+ Flags: string;
1345
+ 'Frequently used': string;
1346
+ 'editor.formula.dialog.text': string;
1347
+ 'editor.katex.tooltip': string;
1348
+ 'editor.exportPdf.tooltip': string;
1349
+ 'editor.exportWord.tooltip': string;
1350
+ 'editor.importWord.tooltip': string;
1351
+ 'editor.importWord.limitSize': string;
1352
+ 'editor.importWord.converting': string;
1353
+ 'editor.importWord.convertError': string;
1354
+ 'editor.importWord.importError': string;
1355
+ 'editor.textDirection.tooltip': string;
1356
+ 'editor.textDirection.auto.tooltip': string;
1357
+ 'editor.textDirection.ltr.tooltip': string;
1358
+ 'editor.textDirection.rtl.tooltip': string;
1359
+ 'editor.textDirection.unset.tooltip': string;
1360
+ 'editor.attachment.tooltip': string;
1361
+ 'editor.attachment.uploading': string;
1362
+ 'editor.attachment.please_upload': string;
1363
+ 'editor.imageGif.tooltip': string;
1364
+ 'editor.replace.caseSensitive': string;
1365
+ 'editor.mermaid.tooltip': string;
1366
+ 'editor.twitter.tooltip': string;
1367
+ 'editor.codeView.tooltip': string;
1368
+ 'editor.tooltip.flipX': string;
1369
+ 'editor.tooltip.flipY': string;
1370
+ 'editor.upload.fileTypeNotSupported': string;
1371
+ 'editor.upload.fileSizeTooBig': string;
1372
+ 'editor.upload.error': string;
1373
+ 'editor.callout.tooltip': string;
1374
+ 'editor.callout.dialog.title': string;
1375
+ 'editor.callout.dialog.type': string;
1376
+ 'editor.callout.dialog.type.placeholder': string;
1377
+ 'editor.callout.dialog.title.label': string;
1378
+ 'editor.callout.dialog.title.placeholder': string;
1379
+ 'editor.callout.dialog.body.label': string;
1380
+ 'editor.callout.dialog.body.placeholder': string;
1381
+ 'editor.callout.dialog.button.apply': string;
1382
+ 'editor.callout.dialog.button.cancel': string;
1383
+ 'editor.callout.edit.title': string;
1384
+ 'editor.callout.type.note': string;
1385
+ 'editor.callout.type.tip': string;
1386
+ 'editor.callout.type.important': string;
1387
+ 'editor.callout.type.warning': string;
1388
+ 'editor.callout.type.caution': string;
1389
+ };
1192
1390
  };
1193
1391
  };
1194
1392
  type MessageKeysType = keyof typeof en;
@@ -1207,4 +1405,4 @@ declare const localeActions: {
1207
1405
  setMessage: (lang: LanguageType | (string & {}), messages: Partial<Record<keyof typeof LANG.message.en, string>>) => void;
1208
1406
  };
1209
1407
  export { localeActions, useLocale };
1210
- export { en, hu_HU, vi, zh_CN, pt_BR, fi };
1408
+ export { en, hu_HU, vi, zh_CN, pt_BR, fi, ja };
@@ -0,0 +1,198 @@
1
+ declare const locale: {
2
+ 'editor.remove': string;
3
+ 'editor.copy': string;
4
+ 'editor.words': string;
5
+ 'editor.characters': string;
6
+ 'editor.default': string;
7
+ 'editor.recent': string;
8
+ 'editor.nofill': string;
9
+ 'editor.format': string;
10
+ 'editor.delete': string;
11
+ 'editor.edit': string;
12
+ 'editor.settings': string;
13
+ 'editor.table_of_content': string;
14
+ 'editor.draghandle.tooltip': string;
15
+ 'editor.draghandle.insertBlock': string;
16
+ 'editor.draghandle.grip': string;
17
+ 'editor.copyToClipboard': string;
18
+ 'editor.slash': string;
19
+ 'editor.slash.empty': string;
20
+ 'editor.slash.format': string;
21
+ 'editor.slash.insert': string;
22
+ 'editor.slash.embed': string;
23
+ 'editor.content': string;
24
+ 'editor.fontFamily.tooltip': string;
25
+ 'editor.fontFamily.default.tooltip': string;
26
+ 'editor.moremark': string;
27
+ 'editor.size.small.tooltip': string;
28
+ 'editor.size.medium.tooltip': string;
29
+ 'editor.size.large.tooltip': string;
30
+ 'editor.bold.tooltip': string;
31
+ 'editor.italic.tooltip': string;
32
+ 'editor.underline.tooltip': string;
33
+ 'editor.strike.tooltip': string;
34
+ 'editor.color.tooltip': string;
35
+ 'editor.color.more': string;
36
+ 'editor.highlight.tooltip': string;
37
+ 'editor.lineheight.tooltip': string;
38
+ 'editor.heading.tooltip': string;
39
+ 'editor.heading.h1.tooltip': string;
40
+ 'editor.heading.h2.tooltip': string;
41
+ 'editor.heading.h3.tooltip': string;
42
+ 'editor.heading.h4.tooltip': string;
43
+ 'editor.heading.h5.tooltip': string;
44
+ 'editor.heading.h6.tooltip': string;
45
+ 'editor.paragraph.tooltip': string;
46
+ 'editor.textalign.tooltip': string;
47
+ 'editor.textalign.left.tooltip': string;
48
+ 'editor.textalign.center.tooltip': string;
49
+ 'editor.textalign.right.tooltip': string;
50
+ 'editor.textalign.justify.tooltip': string;
51
+ 'editor.indent': string;
52
+ 'editor.indent.indent': string;
53
+ 'editor.indent.outdent': string;
54
+ 'editor.fontSize.tooltip': string;
55
+ 'editor.fontSize.default.tooltip': string;
56
+ 'editor.superscript.tooltip': string;
57
+ 'editor.subscript.tooltip': string;
58
+ 'editor.bulletlist.tooltip': string;
59
+ 'editor.orderedlist.tooltip': string;
60
+ 'editor.tasklist.tooltip': string;
61
+ 'editor.indent.tooltip': string;
62
+ 'editor.outdent.tooltip': string;
63
+ 'editor.columns.tooltip': string;
64
+ 'editor.link.tooltip': string;
65
+ 'editor.link.unlink.tooltip': string;
66
+ 'editor.link.open.tooltip': string;
67
+ 'editor.link.edit.tooltip': string;
68
+ 'editor.link.dialog.title': string;
69
+ 'editor.link.dialog.link': string;
70
+ 'editor.link.dialog.text': string;
71
+ 'editor.link.dialog.openInNewTab': string;
72
+ 'editor.link.dialog.link.placeholder': string;
73
+ 'editor.link.dialog.text.placeholder': string;
74
+ 'editor.link.dialog.button.apply': string;
75
+ 'editor.link.dialog.button.cancel': string;
76
+ 'editor.image.tooltip': string;
77
+ 'editor.image.dragger.tooltip': string;
78
+ 'editor.image.float.left.tooltip': string;
79
+ 'editor.image.float.none.tooltip': string;
80
+ 'editor.image.float.right.tooltip': string;
81
+ 'editor.image.dialog.title': string;
82
+ 'editor.image.dialog.tab.url': string;
83
+ 'editor.image.dialog.tab.upload': string;
84
+ 'editor.image.dialog.tab.uploadCrop': string;
85
+ 'editor.image.dialog.uploading': string;
86
+ 'editor.link.dialog.inline': string;
87
+ 'editor.image.dialog.form.link': string;
88
+ 'editor.image.dialog.placeholder': string;
89
+ 'editor.image.dialog.form.alt': string;
90
+ 'editor.image.dialog.form.aspectRatio': string;
91
+ 'editor.image.dialog.form.file': string;
92
+ 'editor.image.dialog.button.apply': string;
93
+ 'editor.video.tooltip': string;
94
+ 'editor.video.dialog.tab.upload': string;
95
+ 'editor.video.dialog.uploading': string;
96
+ 'editor.video.dialog.title': string;
97
+ 'editor.video.dialog.link': string;
98
+ 'editor.video.dialog.placeholder': string;
99
+ 'editor.video.dialog.button.apply': string;
100
+ 'editor.table.tooltip': string;
101
+ 'editor.table.menu.insert_table': string;
102
+ 'editor.table.menu.insert_table.with_header_row': string;
103
+ 'editor.table.menu.add_column_before': string;
104
+ 'editor.table.menu.add_column_after': string;
105
+ 'editor.table.menu.delete_column': string;
106
+ 'editor.table.menu.add_row_before': string;
107
+ 'editor.table.menu.add_row_after': string;
108
+ 'editor.table.menu.delete_row': string;
109
+ 'editor.table.menu.merge_or_split_cells': string;
110
+ 'editor.table.menu.delete_table': string;
111
+ 'editor.blockquote.tooltip': string;
112
+ 'editor.horizontalrule.tooltip': string;
113
+ 'editor.code.tooltip': string;
114
+ 'editor.codeblock.tooltip': string;
115
+ 'editor.clear.tooltip': string;
116
+ 'editor.undo.tooltip': string;
117
+ 'editor.redo.tooltip': string;
118
+ 'editor.fullscreen.tooltip.fullscreen': string;
119
+ 'editor.fullscreen.tooltip.exit': string;
120
+ 'editor.imageUpload.cancel': string;
121
+ 'editor.imageUpload.crop': string;
122
+ 'editor.imageUpload.uploading': string;
123
+ 'editor.imageUpload.alt': string;
124
+ 'editor.imageUpload.fileTypeNotSupported': string;
125
+ 'editor.imageUpload.fileSizeTooBig': string;
126
+ 'editor.table.menu.insertColumnBefore': string;
127
+ 'editor.table.menu.insertColumnAfter': string;
128
+ 'editor.table.menu.deleteColumn': string;
129
+ 'editor.table.menu.insertRowAbove': string;
130
+ 'editor.table.menu.insertRowBelow': string;
131
+ 'editor.table.menu.deleteRow': string;
132
+ 'editor.table.menu.mergeCells': string;
133
+ 'editor.table.menu.splitCells': string;
134
+ 'editor.table.menu.deleteTable': string;
135
+ 'editor.table.menu.setCellsBgColor': string;
136
+ 'editor.emoji.tooltip': string;
137
+ 'editor.iframe.tooltip': string;
138
+ 'editor.searchAndReplace.tooltip': string;
139
+ 'editor.search.dialog.text': string;
140
+ 'editor.replace.dialog.text': string;
141
+ 'editor.replaceAll.dialog.text': string;
142
+ 'editor.previous.dialog.text': string;
143
+ 'editor.next.dialog.text': string;
144
+ no_result_found: string;
145
+ 'Smileys & People': string;
146
+ 'Animals & Nature': string;
147
+ 'Food & Drink': string;
148
+ Activity: string;
149
+ 'Travel & Places': string;
150
+ Object: string;
151
+ Symbol: string;
152
+ Flags: string;
153
+ 'Frequently used': string;
154
+ 'editor.formula.dialog.text': string;
155
+ 'editor.katex.tooltip': string;
156
+ 'editor.exportPdf.tooltip': string;
157
+ 'editor.exportWord.tooltip': string;
158
+ 'editor.importWord.tooltip': string;
159
+ 'editor.importWord.limitSize': string;
160
+ 'editor.importWord.converting': string;
161
+ 'editor.importWord.convertError': string;
162
+ 'editor.importWord.importError': string;
163
+ 'editor.textDirection.tooltip': string;
164
+ 'editor.textDirection.auto.tooltip': string;
165
+ 'editor.textDirection.ltr.tooltip': string;
166
+ 'editor.textDirection.rtl.tooltip': string;
167
+ 'editor.textDirection.unset.tooltip': string;
168
+ 'editor.attachment.tooltip': string;
169
+ 'editor.attachment.uploading': string;
170
+ 'editor.attachment.please_upload': string;
171
+ 'editor.imageGif.tooltip': string;
172
+ 'editor.replace.caseSensitive': string;
173
+ 'editor.mermaid.tooltip': string;
174
+ 'editor.twitter.tooltip': string;
175
+ 'editor.codeView.tooltip': string;
176
+ 'editor.tooltip.flipX': string;
177
+ 'editor.tooltip.flipY': string;
178
+ 'editor.upload.fileTypeNotSupported': string;
179
+ 'editor.upload.fileSizeTooBig': string;
180
+ 'editor.upload.error': string;
181
+ 'editor.callout.tooltip': string;
182
+ 'editor.callout.dialog.title': string;
183
+ 'editor.callout.dialog.type': string;
184
+ 'editor.callout.dialog.type.placeholder': string;
185
+ 'editor.callout.dialog.title.label': string;
186
+ 'editor.callout.dialog.title.placeholder': string;
187
+ 'editor.callout.dialog.body.label': string;
188
+ 'editor.callout.dialog.body.placeholder': string;
189
+ 'editor.callout.dialog.button.apply': string;
190
+ 'editor.callout.dialog.button.cancel': string;
191
+ 'editor.callout.edit.title': string;
192
+ 'editor.callout.type.note': string;
193
+ 'editor.callout.type.tip': string;
194
+ 'editor.callout.type.important': string;
195
+ 'editor.callout.type.warning': string;
196
+ 'editor.callout.type.caution': string;
197
+ };
198
+ export default locale;
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import * as t from "@radix-ui/react-popover";
3
3
  import * as c from "react";
4
- import { c as s } from "./index-BfHAqkoX.js";
4
+ import { c as s } from "./index-BrsJsbds.js";
5
5
  const x = t.Root, p = t.Trigger, n = c.forwardRef(({ className: o, align: r = "center", sideOffset: i = 4, ...a }, d) => /* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(
6
6
  t.Content,
7
7
  {
@@ -1 +1 @@
1
- "use strict";const a=require("react/jsx-runtime"),d=require("@radix-ui/react-popover"),p=require("react"),h=require("./index-83hp1lZH.cjs");function n(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const o=n(d),l=n(p),x=o.Root,m=o.Trigger,c=l.forwardRef(({className:t,align:r="center",sideOffset:e=4,...i},s)=>a.jsx(o.Portal,{children:a.jsx(o.Content,{align:r,"data-richtext-portal":!0,ref:s,sideOffset:e,className:h.cn("richtext-z-50 richtext-w-72 richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...i})}));c.displayName=o.Content.displayName;exports.Popover=x;exports.PopoverContent=c;exports.PopoverTrigger=m;
1
+ "use strict";const a=require("react/jsx-runtime"),d=require("@radix-ui/react-popover"),p=require("react"),h=require("./index-deubsx3z.cjs");function n(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const o=n(d),l=n(p),x=o.Root,m=o.Trigger,c=l.forwardRef(({className:t,align:r="center",sideOffset:e=4,...i},s)=>a.jsx(o.Portal,{children:a.jsx(o.Content,{align:r,"data-richtext-portal":!0,ref:s,sideOffset:e,className:h.cn("richtext-z-50 richtext-w-72 richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...i})}));c.displayName=o.Content.displayName;exports.Popover=x;exports.PopoverContent=c;exports.PopoverTrigger=m;
@@ -1,5 +1,5 @@
1
- import { R as i } from "./clsx-Bg-2aTKh.js";
2
- import { u as r } from "./updatePosition-BGD41Hbg.js";
1
+ import { R as i } from "./clsx-0OU6n9va.js";
2
+ import { u as r } from "./updatePosition-BwzAsiY0.js";
3
3
  function l(o) {
4
4
  return () => {
5
5
  let e;
@@ -1 +1 @@
1
- "use strict";const i=require("./clsx-DSAWW32g.cjs"),r=require("./updatePosition-CQE1ct18.cjs");function d(o){return()=>{let e;return{onStart:t=>{t.clientRect&&(e=new i.ReactRenderer(o,{props:t,editor:t.editor}),e.element.style.position="absolute",document.body.appendChild(e.element),r.updatePosition(t.editor,e.element))},onUpdate(t){e.updateProps(t),t.clientRect&&r.updatePosition(t.editor,e.element)},onKeyDown(t){var n;return t.event.key==="Escape"?(e.destroy(),e.element.remove(),!0):(n=e.ref)==null?void 0:n.onKeyDown(t)},onExit(){e.destroy(),e.element.remove()}}}}exports.renderNodeViewClosure=d;
1
+ "use strict";const i=require("./clsx-D6gYQn3o.cjs"),r=require("./updatePosition-DGPtRfWN.cjs");function d(o){return()=>{let e;return{onStart:t=>{t.clientRect&&(e=new i.ReactRenderer(o,{props:t,editor:t.editor}),e.element.style.position="absolute",document.body.appendChild(e.element),r.updatePosition(t.editor,e.element))},onUpdate(t){e.updateProps(t),t.clientRect&&r.updatePosition(t.editor,e.element)},onKeyDown(t){var n;return t.event.key==="Escape"?(e.destroy(),e.element.remove(),!0):(n=e.ref)==null?void 0:n.onKeyDown(t)},onExit(){e.destroy(),e.element.remove()}}}}exports.renderNodeViewClosure=d;
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),E=require("lucide-react"),n=require("react"),P=require("react-colorful"),j=require("./index-83hp1lZH.cjs");require("./theme.cjs");const C=require("./index-C4aGVY2E.cjs"),v=require("./popover-D7w_FVSV.cjs"),O=require("@radix-ui/react-separator");function N(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const c in t)if(c!=="default"){const h=Object.getOwnPropertyDescriptor(t,c);Object.defineProperty(r,c,h.get?h:{enumerable:!0,get:()=>t[c]})}}return r.default=t,Object.freeze(r)}const y=N(n),z=N(O);function R(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:e.jsx("path",{fill:"currentColor",d:"M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z"})})}const w=typeof window>"u";function L(t,r,c=window){const h=n.useRef(void 0);n.useEffect(()=>{h.current=r},[r]),n.useEffect(()=>{if(!(c&&c.addEventListener))return;const f=x=>{h.current&&h.current(x)};return c.addEventListener(t,f),()=>{c.removeEventListener(t,f)}},[t,c])}function _(t,r,c={}){const{initializeWithValue:h=!0}=c,i=n.useCallback(o=>c.serializer?c.serializer(o):JSON.stringify(o),[c]),f=n.useCallback(o=>{if(c.deserializer)return c.deserializer(o);if(o==="undefined")return;const l=r instanceof Function?r():r;let s;try{s=JSON.parse(o)}catch(a){return console.error("Error parsing JSON:",a),l}return s},[c,r]),x=n.useCallback(()=>{const o=r instanceof Function?r():r;if(w)return o;try{const l=window.localStorage.getItem(t);return l?f(l):o}catch(l){return console.warn(`Error reading localStorage key “${t}”:`,l),o}},[r,t,f]),[d,p]=n.useState(()=>h?x():r instanceof Function?r():r),b=n.useCallback(o=>{w&&console.warn(`Tried setting localStorage key “${t}” even though environment is not a client`);try{const l=o instanceof Function?o(x()):o;window.localStorage.setItem(t,i(l)),p(l),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))}catch(l){console.warn(`Error setting localStorage key “${t}”:`,l)}},[t,i,x]),g=n.useCallback(()=>{w&&console.warn(`Tried removing localStorage key “${t}” even though environment is not a client`);const o=r instanceof Function?r():r;window.localStorage.removeItem(t),p(o),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))},[t,r]);n.useEffect(()=>{p(x())},[t]);const m=n.useCallback(o=>{o.key&&o.key!==t||p(x())},[t,x]);return L("storage",m),L("local-storage",m),[d,b,g]}function q(t){const{t:r}=C.useLocale(),{disabled:c=!1,value:h,onChange:i,colors:f=C.COLORS_LIST,highlight:x}=t,[d,p]=n.useState(!1),b=n.useMemo(()=>{const s=f,a=[];for(let u=0;u<s.length;u+=10)a.push(s.slice(u,u+10));return a},[f]),[g,m]=_(x?"richtext-recent-highlight":"richtext-recent-colors",[]),o=s=>{const a=[...g],u=a.indexOf(s);u!==-1&&a.splice(u,1),a.unshift(s),a.length>10&&a.pop(),m(a)};function l(s){if(s===void 0){i==null||i(s),p(!1);return}/^#([\da-f]{3}){1,2}$/i.test(s)&&(i==null||i(s),o(s),p(!1))}return e.jsxs(v.Popover,{modal:!0,onOpenChange:p,open:d,children:[e.jsx(v.PopoverTrigger,{asChild:!0,className:"!richtext-p-0",disabled:c,children:t==null?void 0:t.children}),e.jsx(v.PopoverContent,{align:"start",className:"richtext-size-full !richtext-p-2",hideWhenDetached:!0,side:"bottom",children:e.jsxs("div",{className:"richtext-flex richtext-flex-col",children:[e.jsxs("div",{className:"rd-1 richtext-flex richtext-cursor-pointer richtext-items-center richtext-gap-[4px] richtext-p-1 hover:richtext-bg-accent",onClick:()=>{l(void 0)},children:[e.jsx(R,{}),e.jsx("span",{className:"richtext-ml-1 richtext-text-sm",children:r(x?"editor.nofill":"editor.default")})]}),b.map((s,a)=>e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-p-0 last:richtext-pb-2",children:s.map((u,k)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-solid !richtext-border-transparent richtext-p-0.5 hover:!richtext-border-border",onClick:()=>l(u),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px]",style:{backgroundColor:u},children:u===h?e.jsx("svg",{className:"richtext-absolute -richtext-top-px richtext-left-px richtext-block richtext-size-3",viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})}):e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-${k}`))},`color-row-${a}`)),e.jsxs("div",{children:[e.jsx("div",{className:"richtext-my-1 richtext-text-sm",children:r("editor.recent")}),e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-flex-wrap richtext-p-0 last:richtext-pb-2",children:g==null?void 0:g.map((s,a)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-transparent richtext-p-0.5 hover:richtext-border-border hover:richtext-shadow-sm",onClick:()=>l(s),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px] richtext-border-transparent",style:{backgroundColor:s},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-recent-${a}`))})]}),e.jsx(M,{setColor:l})]})})]})}function M({setColor:t}){const{t:r}=C.useLocale(),[c,h]=n.useState(!1),[i,f]=n.useState("#000000"),x=n.useCallback(d=>{f(d)},[]);return e.jsxs(v.Popover,{onOpenChange:h,open:c,children:[e.jsx(v.PopoverTrigger,{asChild:!0,children:e.jsxs("div",{className:"richtext-p-1.5 richtext-text-sm hover:richtext-cursor-pointer hover:richtext-bg-accent",children:[r("editor.color.more"),"..."]})}),e.jsxs(v.PopoverContent,{children:[e.jsxs("div",{className:"richtext-flex richtext-flex-col richtext-items-center richtext-justify-center",children:[e.jsx(P.HexColorPicker,{color:i,onChange:d=>{x(d)}}),e.jsx(j.Input,{className:"richtext-mt-[8px] richtext-w-full",type:"text",value:i.replace("#",""),onChange:d=>{d.preventDefault(),d.stopPropagation(),x(`#${d.target.value}`)}})]}),e.jsx(S,{className:"richtext-my-[10px]"}),e.jsx(j.Button,{className:"richtext-w-full",onClick:d=>{d.preventDefault(),d.stopPropagation(),t(i),h(!1)},children:e.jsx(E.Plus,{size:16})})]})]})}const S=y.forwardRef(({className:t,orientation:r="horizontal",decorative:c=!0,...h},i)=>e.jsx(z.Root,{ref:i,decorative:c,orientation:r,className:j.cn("richtext-shrink-0 richtext-bg-border",r==="horizontal"?"richtext-h-[1px] richtext-w-full":"richtext-h-full richtext-w-[1px]",t),...h}));S.displayName=z.Root.displayName;exports.ColorPicker=q;exports.Separator=S;
1
+ "use strict";const e=require("react/jsx-runtime"),E=require("lucide-react"),n=require("react"),P=require("react-colorful"),j=require("./index-deubsx3z.cjs");require("./theme.cjs");const C=require("./index-CWw4s87s.cjs"),v=require("./popover-DoSfJsFS.cjs"),O=require("@radix-ui/react-separator");function N(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const c in t)if(c!=="default"){const h=Object.getOwnPropertyDescriptor(t,c);Object.defineProperty(r,c,h.get?h:{enumerable:!0,get:()=>t[c]})}}return r.default=t,Object.freeze(r)}const y=N(n),z=N(O);function R(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:e.jsx("path",{fill:"currentColor",d:"M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z"})})}const w=typeof window>"u";function L(t,r,c=window){const h=n.useRef(void 0);n.useEffect(()=>{h.current=r},[r]),n.useEffect(()=>{if(!(c&&c.addEventListener))return;const f=x=>{h.current&&h.current(x)};return c.addEventListener(t,f),()=>{c.removeEventListener(t,f)}},[t,c])}function _(t,r,c={}){const{initializeWithValue:h=!0}=c,i=n.useCallback(o=>c.serializer?c.serializer(o):JSON.stringify(o),[c]),f=n.useCallback(o=>{if(c.deserializer)return c.deserializer(o);if(o==="undefined")return;const l=r instanceof Function?r():r;let s;try{s=JSON.parse(o)}catch(a){return console.error("Error parsing JSON:",a),l}return s},[c,r]),x=n.useCallback(()=>{const o=r instanceof Function?r():r;if(w)return o;try{const l=window.localStorage.getItem(t);return l?f(l):o}catch(l){return console.warn(`Error reading localStorage key “${t}”:`,l),o}},[r,t,f]),[d,p]=n.useState(()=>h?x():r instanceof Function?r():r),b=n.useCallback(o=>{w&&console.warn(`Tried setting localStorage key “${t}” even though environment is not a client`);try{const l=o instanceof Function?o(x()):o;window.localStorage.setItem(t,i(l)),p(l),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))}catch(l){console.warn(`Error setting localStorage key “${t}”:`,l)}},[t,i,x]),g=n.useCallback(()=>{w&&console.warn(`Tried removing localStorage key “${t}” even though environment is not a client`);const o=r instanceof Function?r():r;window.localStorage.removeItem(t),p(o),window.dispatchEvent(new StorageEvent("local-storage",{key:t}))},[t,r]);n.useEffect(()=>{p(x())},[t]);const m=n.useCallback(o=>{o.key&&o.key!==t||p(x())},[t,x]);return L("storage",m),L("local-storage",m),[d,b,g]}function q(t){const{t:r}=C.useLocale(),{disabled:c=!1,value:h,onChange:i,colors:f=C.COLORS_LIST,highlight:x}=t,[d,p]=n.useState(!1),b=n.useMemo(()=>{const s=f,a=[];for(let u=0;u<s.length;u+=10)a.push(s.slice(u,u+10));return a},[f]),[g,m]=_(x?"richtext-recent-highlight":"richtext-recent-colors",[]),o=s=>{const a=[...g],u=a.indexOf(s);u!==-1&&a.splice(u,1),a.unshift(s),a.length>10&&a.pop(),m(a)};function l(s){if(s===void 0){i==null||i(s),p(!1);return}/^#([\da-f]{3}){1,2}$/i.test(s)&&(i==null||i(s),o(s),p(!1))}return e.jsxs(v.Popover,{modal:!0,onOpenChange:p,open:d,children:[e.jsx(v.PopoverTrigger,{asChild:!0,className:"!richtext-p-0",disabled:c,children:t==null?void 0:t.children}),e.jsx(v.PopoverContent,{align:"start",className:"richtext-size-full !richtext-p-2",hideWhenDetached:!0,side:"bottom",children:e.jsxs("div",{className:"richtext-flex richtext-flex-col",children:[e.jsxs("div",{className:"rd-1 richtext-flex richtext-cursor-pointer richtext-items-center richtext-gap-[4px] richtext-p-1 hover:richtext-bg-accent",onClick:()=>{l(void 0)},children:[e.jsx(R,{}),e.jsx("span",{className:"richtext-ml-1 richtext-text-sm",children:r(x?"editor.nofill":"editor.default")})]}),b.map((s,a)=>e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-p-0 last:richtext-pb-2",children:s.map((u,k)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-solid !richtext-border-transparent richtext-p-0.5 hover:!richtext-border-border",onClick:()=>l(u),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px]",style:{backgroundColor:u},children:u===h?e.jsx("svg",{className:"richtext-absolute -richtext-top-px richtext-left-px richtext-block richtext-size-3",viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})}):e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-${k}`))},`color-row-${a}`)),e.jsxs("div",{children:[e.jsx("div",{className:"richtext-my-1 richtext-text-sm",children:r("editor.recent")}),e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-flex-wrap richtext-p-0 last:richtext-pb-2",children:g==null?void 0:g.map((s,a)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-transparent richtext-p-0.5 hover:richtext-border-border hover:richtext-shadow-sm",onClick:()=>l(s),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px] richtext-border-transparent",style:{backgroundColor:s},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-recent-${a}`))})]}),e.jsx(M,{setColor:l})]})})]})}function M({setColor:t}){const{t:r}=C.useLocale(),[c,h]=n.useState(!1),[i,f]=n.useState("#000000"),x=n.useCallback(d=>{f(d)},[]);return e.jsxs(v.Popover,{onOpenChange:h,open:c,children:[e.jsx(v.PopoverTrigger,{asChild:!0,children:e.jsxs("div",{className:"richtext-p-1.5 richtext-text-sm hover:richtext-cursor-pointer hover:richtext-bg-accent",children:[r("editor.color.more"),"..."]})}),e.jsxs(v.PopoverContent,{children:[e.jsxs("div",{className:"richtext-flex richtext-flex-col richtext-items-center richtext-justify-center",children:[e.jsx(P.HexColorPicker,{color:i,onChange:d=>{x(d)}}),e.jsx(j.Input,{className:"richtext-mt-[8px] richtext-w-full",type:"text",value:i.replace("#",""),onChange:d=>{d.preventDefault(),d.stopPropagation(),x(`#${d.target.value}`)}})]}),e.jsx(S,{className:"richtext-my-[10px]"}),e.jsx(j.Button,{className:"richtext-w-full",onClick:d=>{d.preventDefault(),d.stopPropagation(),t(i),h(!1)},children:e.jsx(E.Plus,{size:16})})]})]})}const S=y.forwardRef(({className:t,orientation:r="horizontal",decorative:c=!0,...h},i)=>e.jsx(z.Root,{ref:i,decorative:c,orientation:r,className:j.cn("richtext-shrink-0 richtext-bg-border",r==="horizontal"?"richtext-h-[1px] richtext-w-full":"richtext-h-full richtext-w-[1px]",t),...h}));S.displayName=z.Root.displayName;exports.ColorPicker=q;exports.Separator=S;
@@ -3,10 +3,10 @@ import { Plus as k } from "lucide-react";
3
3
  import * as $ from "react";
4
4
  import { useCallback as m, useState as w, useEffect as L, useRef as M, useMemo as B } from "react";
5
5
  import { HexColorPicker as F } from "react-colorful";
6
- import { j as I, B as _, c as T } from "./index-BfHAqkoX.js";
6
+ import { j as I, B as _, c as T } from "./index-BrsJsbds.js";
7
7
  import "./theme.js";
8
- import { u as N, C as j } from "./index-DtVRewGA.js";
9
- import { P as z, a as E, b as y } from "./popover-B1ptDngu.js";
8
+ import { u as N, C as j } from "./index-oj858lQO.js";
9
+ import { P as z, a as E, b as y } from "./popover-BIVHT1W9.js";
10
10
  import * as R from "@radix-ui/react-separator";
11
11
  function D() {
12
12
  return /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ t(
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as c from "react";
3
- import { c as o } from "./index-BfHAqkoX.js";
3
+ import { c as o } from "./index-BrsJsbds.js";
4
4
  const x = c.forwardRef(
5
5
  ({ className: t, ...e }, r) => /* @__PURE__ */ i(
6
6
  "textarea",
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./index-83hp1lZH.cjs");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const x=s(o),c=x.forwardRef(({className:e,...r},t)=>n.jsx("textarea",{ref:t,className:a.cn("richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",e),...r}));c.displayName="Textarea";exports.Textarea=c;
1
+ "use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./index-deubsx3z.cjs");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const x=s(o),c=x.forwardRef(({className:e,...r},t)=>n.jsx("textarea",{ref:t,className:a.cn("richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",e),...r}));c.displayName="Textarea";exports.Textarea=c;
@@ -0,0 +1,16 @@
1
+ import { c as a, s as n, f as l } from "./index-CGjT-a9h.js";
2
+ import { f as p } from "./index-BblvcbTH.js";
3
+ function m(o, t) {
4
+ a({
5
+ getBoundingClientRect: () => p(o.view, o.state.selection.from, o.state.selection.to)
6
+ }, t, {
7
+ placement: "bottom-start",
8
+ strategy: "absolute",
9
+ middleware: [n(), l()]
10
+ }).then(({ x: s, y: i, strategy: e }) => {
11
+ t.style.width = "max-content", t.style.position = e, t.style.left = `${s}px`, t.style.top = `${i}px`;
12
+ });
13
+ }
14
+ export {
15
+ m as u
16
+ };
@@ -1 +1 @@
1
- "use strict";const e=require("./index-TcJ2UKnv.cjs"),a=require("./index-C4WLt4NA.cjs");function l(o,t){const i={getBoundingClientRect:()=>a.posToDOMRect(o.view,o.state.selection.from,o.state.selection.to)};e.computePosition(i,t,{placement:"bottom-start",strategy:"absolute",middleware:[e.shift(),e.flip()]}).then(({x:s,y:n,strategy:c})=>{t.style.width="max-content",t.style.position=c,t.style.left=`${s}px`,t.style.top=`${n}px`})}exports.updatePosition=l;
1
+ "use strict";const e=require("./index-BF3EVCB1.cjs"),a=require("./index-Bcj8cyOO.cjs");function l(o,t){const i={getBoundingClientRect:()=>a.posToDOMRect(o.view,o.state.selection.from,o.state.selection.to)};e.computePosition(i,t,{placement:"bottom-start",strategy:"absolute",middleware:[e.shift(),e.flip()]}).then(({x:s,y:n,strategy:c})=>{t.style.width="max-content",t.style.position=c,t.style.left=`${s}px`,t.style.top=`${n}px`})}exports.updatePosition=l;