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
@@ -1,6 +1,6 @@
1
1
  import { useCallback as m } from "react";
2
- import { b as d, S as c, y as h, v as n } from "./index-BG0kQamI.js";
3
- const b = "en", L = 20, S = 1e5, D = 16, E = 10, w = 10, B = 2, N = [
2
+ import { b as a, S as c, y as h, v as n } from "./index-BG0kQamI.js";
3
+ const b = "en", D = 20, L = 1e5, w = 16, E = 10, B = 10, N = 2, R = [
4
4
  "#000000",
5
5
  "#262626",
6
6
  "#595959",
@@ -88,7 +88,7 @@ const b = "en", L = 20, S = 1e5, D = 16, E = 10, w = 10, B = 2, N = [
88
88
  "Lucida Console",
89
89
  "Monaco",
90
90
  "monospace"
91
- ], R = [
91
+ ], W = [
92
92
  "Default",
93
93
  "10px",
94
94
  "11px",
@@ -106,7 +106,7 @@ const b = "en", L = 20, S = 1e5, D = 16, E = 10, w = 10, B = 2, N = [
106
106
  "72px"
107
107
  ];
108
108
  var k = /* @__PURE__ */ ((t) => (t[t["size-small"] = 200] = "size-small", t[t["size-medium"] = 500] = "size-medium", t["size-large"] = "100%", t))(k || {}), f = /* @__PURE__ */ ((t) => (t[t["size-small"] = 480] = "size-small", t[t["size-medium"] = 640] = "size-medium", t["size-large"] = "100%", t))(f || {});
109
- const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1, 2, 3, 4, 5, 6], y = {
109
+ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], U = ["Paragraph", 1, 2, 3, 4, 5, 6], y = {
110
110
  "editor.remove": "Remove",
111
111
  "editor.copy": "Copy",
112
112
  "editor.words": "WORDS",
@@ -498,7 +498,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
498
498
  "editor.callout.type.important": "Tärkeä",
499
499
  "editor.callout.type.warning": "Varoitus",
500
500
  "editor.callout.type.caution": "Varovaisuus"
501
- }, C = {
501
+ }, x = {
502
502
  "editor.remove": "Eltávolítás",
503
503
  "editor.copy": "Másolás",
504
504
  "editor.words": "SZAVAK",
@@ -694,7 +694,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
694
694
  "editor.callout.type.important": "Fontos",
695
695
  "editor.callout.type.warning": "Figyelmeztetés",
696
696
  "editor.callout.type.caution": "Óvatosan"
697
- }, z = {
697
+ }, C = {
698
698
  "editor.remove": "Remover",
699
699
  "editor.copy": "Copiar",
700
700
  "editor.words": "PALAVRAS",
@@ -890,7 +890,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
890
890
  "editor.callout.type.important": "Importante",
891
891
  "editor.callout.type.warning": "Aviso",
892
892
  "editor.callout.type.caution": "Cuidado"
893
- }, x = {
893
+ }, z = {
894
894
  "editor.remove": "Xóa",
895
895
  "editor.copy": "Sao chép",
896
896
  "editor.words": "TỪ",
@@ -1282,26 +1282,223 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
1282
1282
  "editor.callout.type.important": "重要",
1283
1283
  "editor.callout.type.warning": "警告",
1284
1284
  "editor.callout.type.caution": "注意"
1285
+ }, F = {
1286
+ "editor.remove": "削除",
1287
+ "editor.copy": "コピー",
1288
+ "editor.words": "単語数",
1289
+ "editor.characters": "文字数",
1290
+ "editor.default": "デフォルト",
1291
+ "editor.recent": "最近使用した項目",
1292
+ "editor.nofill": "塗りなし",
1293
+ "editor.format": "書式のコピー",
1294
+ "editor.delete": "削除",
1295
+ "editor.edit": "編集",
1296
+ "editor.settings": "設定",
1297
+ "editor.table_of_content": "目次",
1298
+ "editor.draghandle.tooltip": "変更",
1299
+ "editor.draghandle.insertBlock": "ブロックを挿入",
1300
+ "editor.draghandle.grip": "クリックでオプション、長押しでドラッグ",
1301
+ "editor.copyToClipboard": "クリップボードにコピー",
1302
+ "editor.slash": "「/」でコマンドを表示",
1303
+ "editor.slash.empty": "該当なし",
1304
+ "editor.slash.format": "書式",
1305
+ "editor.slash.insert": "挿入",
1306
+ "editor.slash.embed": "埋め込みサービス",
1307
+ "editor.content": "内容を入力してください",
1308
+ "editor.fontFamily.tooltip": "フォント",
1309
+ "editor.fontFamily.default.tooltip": "デフォルト",
1310
+ "editor.moremark": "その他のテキストスタイル",
1311
+ "editor.size.small.tooltip": "小",
1312
+ "editor.size.medium.tooltip": "中",
1313
+ "editor.size.large.tooltip": "カバー",
1314
+ "editor.bold.tooltip": "太字",
1315
+ "editor.italic.tooltip": "斜体",
1316
+ "editor.underline.tooltip": "下線",
1317
+ "editor.strike.tooltip": "取り消し線",
1318
+ "editor.color.tooltip": "文字色",
1319
+ "editor.color.more": "その他の色",
1320
+ "editor.highlight.tooltip": "ハイライト",
1321
+ "editor.lineheight.tooltip": "行間",
1322
+ "editor.heading.tooltip": "見出し",
1323
+ "editor.heading.h1.tooltip": "見出し1",
1324
+ "editor.heading.h2.tooltip": "見出し2",
1325
+ "editor.heading.h3.tooltip": "見出し3",
1326
+ "editor.heading.h4.tooltip": "見出し4",
1327
+ "editor.heading.h5.tooltip": "見出し5",
1328
+ "editor.heading.h6.tooltip": "見出し6",
1329
+ "editor.paragraph.tooltip": "段落",
1330
+ "editor.textalign.tooltip": "配置",
1331
+ "editor.textalign.left.tooltip": "左揃え",
1332
+ "editor.textalign.center.tooltip": "中央揃え",
1333
+ "editor.textalign.right.tooltip": "右揃え",
1334
+ "editor.textalign.justify.tooltip": "両端揃え",
1335
+ "editor.indent": "インデント",
1336
+ "editor.indent.indent": "インデントを増やす",
1337
+ "editor.indent.outdent": "インデントを減らす",
1338
+ "editor.fontSize.tooltip": "フォントサイズ",
1339
+ "editor.fontSize.default.tooltip": "デフォルト",
1340
+ "editor.superscript.tooltip": "上付き",
1341
+ "editor.subscript.tooltip": "下付き",
1342
+ "editor.bulletlist.tooltip": "箇条書き",
1343
+ "editor.orderedlist.tooltip": "番号付きリスト",
1344
+ "editor.tasklist.tooltip": "タスクリスト",
1345
+ "editor.indent.tooltip": "インデント",
1346
+ "editor.outdent.tooltip": "アウトデント",
1347
+ "editor.columns.tooltip": "列",
1348
+ "editor.link.tooltip": "リンク",
1349
+ "editor.link.unlink.tooltip": "リンク解除",
1350
+ "editor.link.open.tooltip": "リンクを開く",
1351
+ "editor.link.edit.tooltip": "リンクを編集",
1352
+ "editor.link.dialog.title": "リンクを挿入",
1353
+ "editor.link.dialog.link": "リンク",
1354
+ "editor.link.dialog.text": "テキスト",
1355
+ "editor.link.dialog.openInNewTab": "新しいタブで開く",
1356
+ "editor.link.dialog.link.placeholder": "リンク先URL",
1357
+ "editor.link.dialog.text.placeholder": "説明を追加",
1358
+ "editor.link.dialog.button.apply": "適用",
1359
+ "editor.link.dialog.button.cancel": "キャンセル",
1360
+ "editor.image.tooltip": "画像",
1361
+ "editor.image.dragger.tooltip": "クリックするか、画像をドラッグしてアップロード",
1362
+ "editor.image.float.left.tooltip": "左寄せ",
1363
+ "editor.image.float.none.tooltip": "回り込みなし",
1364
+ "editor.image.float.right.tooltip": "右寄せ",
1365
+ "editor.image.dialog.title": "画像を追加",
1366
+ "editor.image.dialog.tab.url": "URL",
1367
+ "editor.image.dialog.tab.upload": "アップロード",
1368
+ "editor.image.dialog.tab.uploadCrop": "アップロードしてトリミング",
1369
+ "editor.image.dialog.uploading": "アップロード中",
1370
+ "editor.link.dialog.inline": "インライン",
1371
+ "editor.image.dialog.form.link": "リンク",
1372
+ "editor.image.dialog.placeholder": "リンク",
1373
+ "editor.image.dialog.form.alt": "代替テキスト",
1374
+ "editor.image.dialog.form.aspectRatio": "元の縦横比を維持",
1375
+ "editor.image.dialog.form.file": "ファイル",
1376
+ "editor.image.dialog.button.apply": "適用",
1377
+ "editor.video.tooltip": "動画",
1378
+ "editor.video.dialog.tab.upload": "アップロード",
1379
+ "editor.video.dialog.uploading": "アップロード中",
1380
+ "editor.video.dialog.title": "動画を埋め込むかアップロード",
1381
+ "editor.video.dialog.link": "リンク",
1382
+ "editor.video.dialog.placeholder": "リンク",
1383
+ "editor.video.dialog.button.apply": "適用",
1384
+ "editor.table.tooltip": "表",
1385
+ "editor.table.menu.insert_table": "表を挿入",
1386
+ "editor.table.menu.insert_table.with_header_row": "ヘッダー行あり",
1387
+ "editor.table.menu.add_column_before": "左に列を追加",
1388
+ "editor.table.menu.add_column_after": "右に列を追加",
1389
+ "editor.table.menu.delete_column": "列を削除",
1390
+ "editor.table.menu.add_row_before": "上に行を追加",
1391
+ "editor.table.menu.add_row_after": "下に行を追加",
1392
+ "editor.table.menu.delete_row": "行を削除",
1393
+ "editor.table.menu.merge_or_split_cells": "セルを結合/分割",
1394
+ "editor.table.menu.delete_table": "表を削除",
1395
+ "editor.blockquote.tooltip": "引用",
1396
+ "editor.horizontalrule.tooltip": "区切り線",
1397
+ "editor.code.tooltip": "コード",
1398
+ "editor.codeblock.tooltip": "コードブロック",
1399
+ "editor.clear.tooltip": "書式をクリア",
1400
+ "editor.undo.tooltip": "元に戻す",
1401
+ "editor.redo.tooltip": "やり直す",
1402
+ "editor.fullscreen.tooltip.fullscreen": "全画面表示",
1403
+ "editor.fullscreen.tooltip.exit": "全画面を終了",
1404
+ "editor.imageUpload.cancel": "キャンセル",
1405
+ "editor.imageUpload.crop": "トリミング",
1406
+ "editor.imageUpload.uploading": "アップロード中…",
1407
+ "editor.imageUpload.alt": "代替テキスト",
1408
+ "editor.imageUpload.fileTypeNotSupported": "このファイル形式はサポートされていません",
1409
+ "editor.imageUpload.fileSizeTooBig": "ファイルサイズが大きすぎます。上限は次のとおりです",
1410
+ "editor.table.menu.insertColumnBefore": "列を前に挿入",
1411
+ "editor.table.menu.insertColumnAfter": "列を後に挿入",
1412
+ "editor.table.menu.deleteColumn": "列を削除",
1413
+ "editor.table.menu.insertRowAbove": "行を上に挿入",
1414
+ "editor.table.menu.insertRowBelow": "行を下に挿入",
1415
+ "editor.table.menu.deleteRow": "行を削除",
1416
+ "editor.table.menu.mergeCells": "セルを結合",
1417
+ "editor.table.menu.splitCells": "セルを分割",
1418
+ "editor.table.menu.deleteTable": "表を削除",
1419
+ "editor.table.menu.setCellsBgColor": "セルの背景色",
1420
+ "editor.emoji.tooltip": "絵文字",
1421
+ "editor.iframe.tooltip": "iframe",
1422
+ "editor.searchAndReplace.tooltip": "検索と置換",
1423
+ "editor.search.dialog.text": "検索",
1424
+ "editor.replace.dialog.text": "置換",
1425
+ "editor.replaceAll.dialog.text": "すべて置換",
1426
+ "editor.previous.dialog.text": "前へ",
1427
+ "editor.next.dialog.text": "次へ",
1428
+ no_result_found: "結果が見つかりません",
1429
+ "Smileys & People": "顔文字と人",
1430
+ "Animals & Nature": "動物と自然",
1431
+ "Food & Drink": "食べ物と飲み物",
1432
+ Activity: "活動",
1433
+ "Travel & Places": "旅行と場所",
1434
+ Object: "物",
1435
+ Symbol: "記号",
1436
+ Flags: "旗",
1437
+ "Frequently used": "よく使う項目",
1438
+ "editor.formula.dialog.text": "数式",
1439
+ "editor.katex.tooltip": "数式(KaTeX)",
1440
+ "editor.exportPdf.tooltip": "PDFに書き出す",
1441
+ "editor.exportWord.tooltip": "Wordに書き出す",
1442
+ "editor.importWord.tooltip": "Wordを取り込む",
1443
+ "editor.importWord.limitSize": "ファイルサイズは次の上限を超えられません",
1444
+ "editor.importWord.converting": "Word文書を変換しています。しばらくお待ちください…",
1445
+ "editor.importWord.convertError": "Word文書の解析中にエラーが発生しました",
1446
+ "editor.importWord.importError": "Word文書の取り込み中にエラーが発生しました",
1447
+ "editor.textDirection.tooltip": "文字の向き",
1448
+ "editor.textDirection.auto.tooltip": "自動",
1449
+ "editor.textDirection.ltr.tooltip": "左から右",
1450
+ "editor.textDirection.rtl.tooltip": "右から左",
1451
+ "editor.textDirection.unset.tooltip": "未設定",
1452
+ "editor.attachment.tooltip": "添付ファイル",
1453
+ "editor.attachment.uploading": "アップロード中",
1454
+ "editor.attachment.please_upload": "ファイルをアップロードしてください",
1455
+ "editor.imageGif.tooltip": "GIF",
1456
+ "editor.replace.caseSensitive": "大文字と小文字を区別",
1457
+ "editor.mermaid.tooltip": "Mermaid",
1458
+ "editor.twitter.tooltip": "Twitter",
1459
+ "editor.codeView.tooltip": "コードビュー",
1460
+ "editor.tooltip.flipX": "左右反転",
1461
+ "editor.tooltip.flipY": "上下反転",
1462
+ "editor.upload.fileTypeNotSupported": "{fileName} のファイル形式はサポートされていません",
1463
+ "editor.upload.fileSizeTooBig": "{fileName} のサイズが大きすぎます。上限は {size}MB です",
1464
+ "editor.upload.error": "ファイルのアップロード中にエラーが発生しました",
1465
+ "editor.callout.tooltip": "コールアウト",
1466
+ "editor.callout.dialog.title": "コールアウトを挿入",
1467
+ "editor.callout.dialog.type": "コールアウトの種類",
1468
+ "editor.callout.dialog.type.placeholder": "種類を選択",
1469
+ "editor.callout.dialog.title.label": "タイトル",
1470
+ "editor.callout.dialog.title.placeholder": "タイトルを入力(任意)",
1471
+ "editor.callout.dialog.body.label": "本文",
1472
+ "editor.callout.dialog.body.placeholder": "本文を入力(任意)",
1473
+ "editor.callout.dialog.button.apply": "挿入",
1474
+ "editor.callout.dialog.button.cancel": "キャンセル",
1475
+ "editor.callout.edit.title": "コールアウトを編集",
1476
+ "editor.callout.type.note": "注記",
1477
+ "editor.callout.type.tip": "ヒント",
1478
+ "editor.callout.type.important": "重要",
1479
+ "editor.callout.type.warning": "警告",
1480
+ "editor.callout.type.caution": "注意"
1285
1481
  }, p = {
1286
1482
  currentLang: b,
1287
1483
  message: {
1288
1484
  en: y,
1289
- hu_HU: C,
1290
- vi: x,
1485
+ hu_HU: x,
1486
+ vi: z,
1291
1487
  zh_CN: T,
1292
- pt_BR: z,
1293
- fi: v
1488
+ pt_BR: C,
1489
+ fi: v,
1490
+ ja: F
1294
1491
  }
1295
1492
  }, i = h({
1296
1493
  currentLang: p.currentLang,
1297
1494
  message: p.message
1298
1495
  });
1299
1496
  function I() {
1300
- const t = d(i).currentLang, o = d(i).message, e = c(i), s = m(
1301
- (l, a) => {
1497
+ const t = a(i).currentLang, o = a(i).message, e = c(i), s = m(
1498
+ (l, d) => {
1302
1499
  try {
1303
1500
  let r = (o[t] || {})[l] || l;
1304
- return a && Object.entries(a).forEach(([u, g]) => {
1501
+ return d && Object.entries(d).forEach(([u, g]) => {
1305
1502
  r = r.replace(new RegExp(`\\{${u}\\}`, "g"), String(g));
1306
1503
  }), r;
1307
1504
  } catch {
@@ -1316,7 +1513,7 @@ function I() {
1316
1513
  t: s
1317
1514
  };
1318
1515
  }
1319
- const U = {
1516
+ const M = {
1320
1517
  setLang: (t) => {
1321
1518
  n(i).setValue((o) => ({
1322
1519
  ...o,
@@ -1337,25 +1534,26 @@ const U = {
1337
1534
  }
1338
1535
  };
1339
1536
  export {
1340
- N as C,
1537
+ R as C,
1341
1538
  j as D,
1342
- W as H,
1343
- S as I,
1344
- w as T,
1539
+ U as H,
1540
+ L as I,
1541
+ B as T,
1345
1542
  f as V,
1346
1543
  v as a,
1347
- C as b,
1348
- U as c,
1349
- z as d,
1350
- x as e,
1351
- T as f,
1352
- R as g,
1353
- P as h,
1354
- D as i,
1355
- L as j,
1356
- E as k,
1544
+ x as b,
1545
+ F as c,
1546
+ M as d,
1547
+ C as e,
1548
+ z as f,
1549
+ T as g,
1550
+ W as h,
1551
+ P as i,
1552
+ w as j,
1553
+ D as k,
1357
1554
  y as l,
1358
- B as m,
1359
- k as n,
1555
+ E as m,
1556
+ N as n,
1557
+ k as o,
1360
1558
  I as u
1361
1559
  };
@@ -1,17 +1,17 @@
1
- import { M as y, m as p, E as l } from "./index-D0EmqTpe.js";
2
- var d = 20, u = (t, e = 0) => {
1
+ import { M as y, m as d, E as s, g as l } from "./index-BblvcbTH.js";
2
+ var p = 20, a = (t, e = 0) => {
3
3
  const r = [];
4
- return !t.children.length || e > d || Array.from(t.children).forEach((o) => {
5
- o.tagName === "SPAN" ? r.push(o) : o.children.length && r.push(...u(o, e + 1));
4
+ return !t.children.length || e > p || Array.from(t.children).forEach((n) => {
5
+ n.tagName === "SPAN" ? r.push(n) : n.children.length && r.push(...a(n, e + 1));
6
6
  }), r;
7
7
  }, f = (t) => {
8
8
  if (!t.children.length)
9
9
  return;
10
- const e = u(t);
10
+ const e = a(t);
11
11
  e && e.forEach((r) => {
12
- var o, n;
13
- const s = r.getAttribute("style"), i = (n = (o = r.parentElement) == null ? void 0 : o.closest("span")) == null ? void 0 : n.getAttribute("style");
14
- r.setAttribute("style", `${i};${s}`);
12
+ var n, o;
13
+ const i = r.getAttribute("style"), u = (o = (n = r.parentElement) == null ? void 0 : n.closest("span")) == null ? void 0 : o.getAttribute("style");
14
+ r.setAttribute("style", `${u};${i}`);
15
15
  });
16
16
  }, c = y.create({
17
17
  name: "textStyle",
@@ -32,22 +32,22 @@ var d = 20, u = (t, e = 0) => {
32
32
  ];
33
33
  },
34
34
  renderHTML({ HTMLAttributes: t }) {
35
- return ["span", p(this.options.HTMLAttributes, t), 0];
35
+ return ["span", d(this.options.HTMLAttributes, t), 0];
36
36
  },
37
37
  addCommands() {
38
38
  return {
39
39
  toggleTextStyle: (t) => ({ commands: e }) => e.toggleMark(this.name, t),
40
40
  removeEmptyTextStyle: () => ({ tr: t }) => {
41
41
  const { selection: e } = t;
42
- return t.doc.nodesBetween(e.from, e.to, (r, o) => {
42
+ return t.doc.nodesBetween(e.from, e.to, (r, n) => {
43
43
  if (r.isTextblock)
44
44
  return !0;
45
- r.marks.filter((n) => n.type === this.type).some((n) => Object.values(n.attrs).some((s) => !!s)) || t.removeMark(o, o + r.nodeSize, this.type);
45
+ r.marks.filter((o) => o.type === this.type).some((o) => Object.values(o.attrs).some((i) => !!i)) || t.removeMark(n, n + r.nodeSize, this.type);
46
46
  }), !0;
47
47
  }
48
48
  };
49
49
  }
50
- }), m = l.create({
50
+ }), h = s.create({
51
51
  name: "backgroundColor",
52
52
  addOptions() {
53
53
  return {
@@ -63,19 +63,8 @@ var d = 20, u = (t, e = 0) => {
63
63
  default: null,
64
64
  parseHTML: (t) => {
65
65
  var e;
66
- const r = t.getAttribute("style");
67
- if (r) {
68
- const o = r.split(";").map((n) => n.trim()).filter(Boolean);
69
- for (let n = o.length - 1; n >= 0; n -= 1) {
70
- const s = o[n].split(":");
71
- if (s.length >= 2) {
72
- const i = s[0].trim().toLowerCase(), a = s.slice(1).join(":").trim();
73
- if (i === "background-color")
74
- return a.replace(/['"]+/g, "");
75
- }
76
- }
77
- }
78
- return (e = t.style.backgroundColor) == null ? void 0 : e.replace(/['"]+/g, "");
66
+ const r = (e = l(t, "background-color")) != null ? e : t.style.backgroundColor;
67
+ return r == null ? void 0 : r.replace(/['"]+/g, "");
79
68
  },
80
69
  renderHTML: (t) => t.backgroundColor ? {
81
70
  style: `background-color: ${t.backgroundColor}`
@@ -91,7 +80,7 @@ var d = 20, u = (t, e = 0) => {
91
80
  unsetBackgroundColor: () => ({ chain: t }) => t().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
92
81
  };
93
82
  }
94
- }), g = l.create({
83
+ }), S = s.create({
95
84
  name: "color",
96
85
  addOptions() {
97
86
  return {
@@ -107,19 +96,8 @@ var d = 20, u = (t, e = 0) => {
107
96
  default: null,
108
97
  parseHTML: (t) => {
109
98
  var e;
110
- const r = t.getAttribute("style");
111
- if (r) {
112
- const o = r.split(";").map((n) => n.trim()).filter(Boolean);
113
- for (let n = o.length - 1; n >= 0; n -= 1) {
114
- const s = o[n].split(":");
115
- if (s.length >= 2) {
116
- const i = s[0].trim().toLowerCase(), a = s.slice(1).join(":").trim();
117
- if (i === "color")
118
- return a.replace(/['"]+/g, "");
119
- }
120
- }
121
- }
122
- return (e = t.style.color) == null ? void 0 : e.replace(/['"]+/g, "");
99
+ const r = (e = l(t, "color")) != null ? e : t.style.color;
100
+ return r == null ? void 0 : r.replace(/['"]+/g, "");
123
101
  },
124
102
  renderHTML: (t) => t.color ? {
125
103
  style: `color: ${t.color}`
@@ -135,7 +113,7 @@ var d = 20, u = (t, e = 0) => {
135
113
  unsetColor: () => ({ chain: t }) => t().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
136
114
  };
137
115
  }
138
- }), h = l.create({
116
+ }), g = s.create({
139
117
  name: "fontFamily",
140
118
  addOptions() {
141
119
  return {
@@ -149,7 +127,14 @@ var d = 20, u = (t, e = 0) => {
149
127
  attributes: {
150
128
  fontFamily: {
151
129
  default: null,
152
- parseHTML: (t) => t.style.fontFamily,
130
+ // Prefer the raw inline `style` attribute so unquoted or
131
+ // single-quoted multi-word names are preserved instead of being
132
+ // canonicalized by `element.style.fontFamily`, which forces double
133
+ // quotes that then get HTML-encoded to `"` on serialization.
134
+ parseHTML: (t) => {
135
+ var e;
136
+ return (e = l(t, "font-family")) != null ? e : t.style.fontFamily;
137
+ },
153
138
  renderHTML: (t) => t.fontFamily ? {
154
139
  style: `font-family: ${t.fontFamily}`
155
140
  } : {}
@@ -164,7 +149,7 @@ var d = 20, u = (t, e = 0) => {
164
149
  unsetFontFamily: () => ({ chain: t }) => t().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
165
150
  };
166
151
  }
167
- }), S = l.create({
152
+ }), m = s.create({
168
153
  name: "fontSize",
169
154
  addOptions() {
170
155
  return {
@@ -178,7 +163,13 @@ var d = 20, u = (t, e = 0) => {
178
163
  attributes: {
179
164
  fontSize: {
180
165
  default: null,
181
- parseHTML: (t) => t.style.fontSize,
166
+ // Prefer the raw inline `style` attribute so the original format
167
+ // is preserved instead of the canonicalized value returned by
168
+ // `element.style.fontSize`.
169
+ parseHTML: (t) => {
170
+ var e;
171
+ return (e = l(t, "font-size")) != null ? e : t.style.fontSize;
172
+ },
182
173
  renderHTML: (t) => t.fontSize ? {
183
174
  style: `font-size: ${t.fontSize}`
184
175
  } : {}
@@ -193,7 +184,7 @@ var d = 20, u = (t, e = 0) => {
193
184
  unsetFontSize: () => ({ chain: t }) => t().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
194
185
  };
195
186
  }
196
- }), b = l.create({
187
+ }), x = s.create({
197
188
  name: "lineHeight",
198
189
  addOptions() {
199
190
  return {
@@ -207,7 +198,13 @@ var d = 20, u = (t, e = 0) => {
207
198
  attributes: {
208
199
  lineHeight: {
209
200
  default: null,
210
- parseHTML: (t) => t.style.lineHeight,
201
+ // Prefer the raw inline `style` attribute so the original format
202
+ // is preserved instead of the canonicalized value returned by
203
+ // `element.style.lineHeight`.
204
+ parseHTML: (t) => {
205
+ var e;
206
+ return (e = l(t, "line-height")) != null ? e : t.style.lineHeight;
207
+ },
211
208
  renderHTML: (t) => t.lineHeight ? {
212
209
  style: `line-height: ${t.lineHeight}`
213
210
  } : {}
@@ -223,15 +220,15 @@ var d = 20, u = (t, e = 0) => {
223
220
  };
224
221
  }
225
222
  });
226
- l.create({
223
+ s.create({
227
224
  name: "textStyleKit",
228
225
  addExtensions() {
229
226
  const t = [];
230
- return this.options.backgroundColor !== !1 && t.push(m.configure(this.options.backgroundColor)), this.options.color !== !1 && t.push(g.configure(this.options.color)), this.options.fontFamily !== !1 && t.push(h.configure(this.options.fontFamily)), this.options.fontSize !== !1 && t.push(S.configure(this.options.fontSize)), this.options.lineHeight !== !1 && t.push(b.configure(this.options.lineHeight)), this.options.textStyle !== !1 && t.push(c.configure(this.options.textStyle)), t;
227
+ return this.options.backgroundColor !== !1 && t.push(h.configure(this.options.backgroundColor)), this.options.color !== !1 && t.push(S.configure(this.options.color)), this.options.fontFamily !== !1 && t.push(g.configure(this.options.fontFamily)), this.options.fontSize !== !1 && t.push(m.configure(this.options.fontSize)), this.options.lineHeight !== !1 && t.push(x.configure(this.options.lineHeight)), this.options.textStyle !== !1 && t.push(c.configure(this.options.textStyle)), t;
231
228
  }
232
229
  });
233
230
  export {
234
- g as C,
235
- h as F,
236
- b as L
231
+ S as C,
232
+ g as F,
233
+ x as L
237
234
  };
package/lib/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),C=require("./clsx-DSAWW32g.cjs"),l=require("react"),d=require("./index-83hp1lZH.cjs"),f=require("./theme.cjs"),M=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),C=require("./clsx-D6gYQn3o.cjs"),l=require("react"),d=require("./index-deubsx3z.cjs"),f=require("./theme.cjs"),M=`
2
2
  .reactjs-tiptap-editor {
3
3
  button,
4
4
  input:where([type=button]),
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, Fragment as f, jsxs as T } from "react/jsx-runtime";
2
- import { E as j } from "./clsx-Bg-2aTKh.js";
2
+ import { E as j } from "./clsx-0OU6n9va.js";
3
3
  import { useEffect as l, useId as M } from "react";
4
- import { N as P, R as A, O, S as $ } from "./index-BfHAqkoX.js";
4
+ import { N as P, R as A, O, S as $ } from "./index-BrsJsbds.js";
5
5
  import { useTheme as D, THEME as m } from "./theme.js";
6
6
  const H = `
7
7
  .reactjs-tiptap-editor {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C4aGVY2E.cjs");exports.en=e.locale;exports.fi=e.locale$1;exports.hu_HU=e.locale$2;exports.localeActions=e.localeActions;exports.pt_BR=e.locale$3;exports.useLocale=e.useLocale;exports.vi=e.locale$4;exports.zh_CN=e.locale$5;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CWw4s87s.cjs");exports.en=e.locale;exports.fi=e.locale$1;exports.hu_HU=e.locale$2;exports.ja=e.locale$3;exports.localeActions=e.localeActions;exports.pt_BR=e.locale$4;exports.useLocale=e.useLocale;exports.vi=e.locale$5;exports.zh_CN=e.locale$6;
@@ -1,11 +1,12 @@
1
- import { l as e, a as o, b as c, c as l, d as f, u as i, e as t, f as u } from "./index-DtVRewGA.js";
1
+ import { l as e, a as o, b as c, c as l, d as f, e as i, u as t, f as u, g as _ } from "./index-oj858lQO.js";
2
2
  export {
3
3
  e as en,
4
4
  o as fi,
5
5
  c as hu_HU,
6
- l as localeActions,
7
- f as pt_BR,
8
- i as useLocale,
9
- t as vi,
10
- u as zh_CN
6
+ l as ja,
7
+ f as localeActions,
8
+ i as pt_BR,
9
+ t as useLocale,
10
+ u as vi,
11
+ _ as zh_CN
11
12
  };