@remarkablejames/editor 0.0.3 → 0.0.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 (140) hide show
  1. package/lib/{ActionMenuButton-D5HLfRzv.js → ActionMenuButton-BUtJUsfO.js} +1 -1
  2. package/lib/{ActionMenuButton-DN6VHLkp.cjs → ActionMenuButton-M55VtCZ5.cjs} +1 -1
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +165 -130
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +1 -1
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +1 -1
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +1 -1
  11. package/lib/Callout.cjs +1 -1
  12. package/lib/Callout.js +3 -3
  13. package/lib/Clear.cjs +1 -1
  14. package/lib/Clear.js +1 -1
  15. package/lib/Code.cjs +1 -1
  16. package/lib/Code.js +1 -1
  17. package/lib/CodeBlock.cjs +1 -1
  18. package/lib/CodeBlock.js +2 -2
  19. package/lib/CodeView.cjs +1 -1
  20. package/lib/CodeView.js +1 -1
  21. package/lib/Color.cjs +1 -1
  22. package/lib/Color.js +2 -2
  23. package/lib/Column.cjs +1 -1
  24. package/lib/Column.js +1 -1
  25. package/lib/{Drawer-BN0lYcnJ.cjs → Drawer-CdQBnwUs.cjs} +1 -1
  26. package/lib/{Drawer-B9l1SoRJ.js → Drawer-mlmJ2nCT.js} +2 -2
  27. package/lib/Drawer.cjs +1 -1
  28. package/lib/Drawer.js +2 -2
  29. package/lib/Emoji.cjs +1 -1
  30. package/lib/Emoji.js +3 -3
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +1 -1
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +1 -1
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +1 -1
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +4 -4
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +4 -4
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +4 -4
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +2 -2
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +1 -1
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +1 -1
  49. package/lib/{Iframe-CXFk3GEq.cjs → Iframe-B_a_AoZc.cjs} +1 -1
  50. package/lib/{Iframe-MjeJ2OOI.js → Iframe-CYgR99Ny.js} +1 -1
  51. package/lib/Iframe.cjs +1 -1
  52. package/lib/Iframe.js +1 -1
  53. package/lib/Image.cjs +1 -1
  54. package/lib/Image.js +1 -1
  55. package/lib/ImageGif.cjs +1 -1
  56. package/lib/ImageGif.js +3 -3
  57. package/lib/ImportWord.cjs +1 -1
  58. package/lib/ImportWord.js +2 -2
  59. package/lib/{Indent-BPX9XRos.cjs → Indent-BAcoFdaq.cjs} +1 -1
  60. package/lib/{Indent-CgwDItIf.js → Indent-BMz2ILRl.js} +1 -1
  61. package/lib/Indent.cjs +1 -1
  62. package/lib/Indent.js +1 -1
  63. package/lib/Italic.cjs +1 -1
  64. package/lib/Italic.js +1 -1
  65. package/lib/{Katex-CZ4g3vA9.js → Katex-DOlb4iTP.js} +3 -3
  66. package/lib/{Katex-DIgsR_dS.cjs → Katex-bIhj82VV.cjs} +1 -1
  67. package/lib/Katex.cjs +1 -1
  68. package/lib/Katex.js +1 -1
  69. package/lib/LineHeight.cjs +1 -1
  70. package/lib/LineHeight.js +3 -3
  71. package/lib/Link.cjs +1 -1
  72. package/lib/Link.js +1 -1
  73. package/lib/{LinkEditBlock-B2bU0Mcr.cjs → LinkEditBlock-Cqs5RxjV.cjs} +1 -1
  74. package/lib/{LinkEditBlock-CaDV3Vq5.js → LinkEditBlock-xnokk4G7.js} +3 -3
  75. package/lib/{Mermaid-EhYj_ICn.js → Mermaid-Bs3pIGc6.js} +2 -2
  76. package/lib/{Mermaid-B9h7XKFo.cjs → Mermaid-DiOdgQv1.cjs} +1 -1
  77. package/lib/Mermaid.cjs +1 -1
  78. package/lib/Mermaid.js +1 -1
  79. package/lib/MoreMark.cjs +1 -1
  80. package/lib/MoreMark.js +2 -2
  81. package/lib/OrderedList.cjs +1 -1
  82. package/lib/OrderedList.js +1 -1
  83. package/lib/SearchAndReplace.cjs +1 -1
  84. package/lib/SearchAndReplace.js +3 -3
  85. package/lib/SlashCommand.cjs +1 -1
  86. package/lib/SlashCommand.js +3 -3
  87. package/lib/SlashCommandNodeView-CLimjqhb.cjs +1 -0
  88. package/lib/{SlashCommandNodeView-CY3peX5x.js → SlashCommandNodeView-CYcf7mVz.js} +78 -88
  89. package/lib/Strike.cjs +1 -1
  90. package/lib/Strike.js +1 -1
  91. package/lib/{Table-Bw7rLue7.js → Table-bz1Wcojf.js} +3 -3
  92. package/lib/{Table-DLrtX6T7.cjs → Table-dlXTKKwJ.cjs} +1 -1
  93. package/lib/Table.cjs +1 -1
  94. package/lib/Table.js +1 -1
  95. package/lib/TaskList.cjs +1 -1
  96. package/lib/TaskList.js +1 -1
  97. package/lib/TextAlign.cjs +1 -1
  98. package/lib/TextAlign.js +2 -2
  99. package/lib/TextDirection.cjs +1 -1
  100. package/lib/TextDirection.js +2 -2
  101. package/lib/TextUnderline.cjs +1 -1
  102. package/lib/TextUnderline.js +1 -1
  103. package/lib/{Twitter-pM0y5Z-L.js → Twitter-CNTXzgt0.js} +3 -3
  104. package/lib/{Twitter-Ck6vGefg.cjs → Twitter-DhEnGg6P.cjs} +1 -1
  105. package/lib/Twitter.cjs +1 -1
  106. package/lib/Twitter.js +1 -1
  107. package/lib/Video.cjs +1 -1
  108. package/lib/Video.js +2 -2
  109. package/lib/bubble.cjs +1 -1
  110. package/lib/bubble.js +16 -16
  111. package/lib/{dropdown-menu-nX-u8e2w.js → dropdown-menu-BuSlU2uN.js} +1 -1
  112. package/lib/{dropdown-menu-DwR8tTs9.cjs → dropdown-menu-CfWNst4v.cjs} +1 -1
  113. package/lib/extensions/Attachment/Attachment.d.ts +22 -2
  114. package/lib/{index-_WrFM-Fk.js → index-8B00E8e4.js} +303 -302
  115. package/lib/index-BrxL7y9p.cjs +1 -0
  116. package/lib/{index-Dib4cXXf.cjs → index-Bt9LiArC.cjs} +2 -2
  117. package/lib/{index-4Q5IhypJ.js → index-DZfkCNKr.js} +15 -9
  118. package/lib/index.cjs +1 -1
  119. package/lib/index.js +1 -1
  120. package/lib/locale-bundle.cjs +1 -1
  121. package/lib/locale-bundle.js +1 -1
  122. package/lib/locales/en.d.ts +189 -188
  123. package/lib/locales/fi.d.ts +189 -188
  124. package/lib/locales/hu.d.ts +189 -188
  125. package/lib/locales/index.d.ts +1134 -1128
  126. package/lib/locales/pt-br.d.ts +189 -188
  127. package/lib/locales/vi.d.ts +189 -188
  128. package/lib/locales/zh-cn.d.ts +189 -188
  129. package/lib/{popover-BY7j9SiD.cjs → popover-51mwx3UY.cjs} +1 -1
  130. package/lib/{popover-CSvY4C-l.js → popover-DMPRgXD3.js} +1 -1
  131. package/lib/{select-Bu-5iIA9.cjs → select-B7v1Scb-.cjs} +1 -1
  132. package/lib/{select-BelNLNvT.js → select-BxFDMaZi.js} +1 -1
  133. package/lib/{separator-Br5kcIJa.js → separator-CpqX9KQC.js} +3 -3
  134. package/lib/{separator-Cp9Lg3HU.cjs → separator-kB9YUfeO.cjs} +1 -1
  135. package/lib/style.css +1 -1
  136. package/lib/{textarea-Ceev4t42.js → textarea-C5DsgzSy.js} +1 -1
  137. package/lib/{textarea-DfqvYaA6.cjs → textarea-bQSzjqg3.cjs} +1 -1
  138. package/package.json +1 -1
  139. package/lib/SlashCommandNodeView-COlWSlnE.cjs +0 -1
  140. package/lib/index-bVGIXhRg.cjs +0 -1
@@ -1,6 +1,6 @@
1
1
  import { useCallback as g } from "react";
2
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 = [
3
+ const b = "en", L = 20, S = 1e5, D = 16, w = 10, E = 10, B = 2, N = [
4
4
  "#000000",
5
5
  "#262626",
6
6
  "#595959",
@@ -274,6 +274,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
274
274
  "editor.attachment.tooltip": "Attachment",
275
275
  "editor.attachment.uploading": "Uploading",
276
276
  "editor.attachment.please_upload": "Please upload the file",
277
+ "editor.attachment.download": "Download",
277
278
  "editor.imageGif.tooltip": "Gif",
278
279
  "editor.replace.caseSensitive": "Case Sensitive",
279
280
  "editor.mermaid.tooltip": "Mermaid",
@@ -468,6 +469,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
468
469
  "editor.attachment.tooltip": "Liite",
469
470
  "editor.attachment.uploading": "Ladataan",
470
471
  "editor.attachment.please_upload": "Lataa tiedosto",
472
+ "editor.attachment.download": "Lataa",
471
473
  "editor.imageGif.tooltip": "Gif",
472
474
  "editor.replace.caseSensitive": "Huomioi isot ja pienet kirjaimet",
473
475
  "editor.mermaid.tooltip": "Mermaid",
@@ -662,6 +664,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
662
664
  "editor.attachment.tooltip": "Csatolmány",
663
665
  "editor.attachment.uploading": "Feltöltés alatt",
664
666
  "editor.attachment.please_upload": "Töltse fel a fájlt",
667
+ "editor.attachment.download": "Letöltés",
665
668
  "editor.imageGif.tooltip": "Gif",
666
669
  "editor.replace.caseSensitive": "Kisbetű-nagybetű érzékenység",
667
670
  "editor.mermaid.tooltip": "Mermaid",
@@ -856,6 +859,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
856
859
  "editor.attachment.tooltip": "Anexo",
857
860
  "editor.attachment.uploading": "Enviando",
858
861
  "editor.attachment.please_upload": "Por favor, envie o arquivo",
862
+ "editor.attachment.download": "Baixar",
859
863
  "editor.imageGif.tooltip": "Gif",
860
864
  "editor.replace.caseSensitive": "Sensível a maiúsculas e minúsculas",
861
865
  "editor.mermaid.tooltip": "Mermaid",
@@ -882,7 +886,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
882
886
  "editor.callout.type.important": "Importante",
883
887
  "editor.callout.type.warning": "Aviso",
884
888
  "editor.callout.type.caution": "Cuidado"
885
- }, z = {
889
+ }, T = {
886
890
  "editor.remove": "Xóa",
887
891
  "editor.copy": "Sao chép",
888
892
  "editor.words": "TỪ",
@@ -1050,6 +1054,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
1050
1054
  "editor.attachment.tooltip": "Đính kèm",
1051
1055
  "editor.attachment.uploading": "Đang tải lên",
1052
1056
  "editor.attachment.please_upload": "Vui lòng tải lên tệp",
1057
+ "editor.attachment.download": "Tải xuống",
1053
1058
  "editor.imageGif.tooltip": "Gif",
1054
1059
  "editor.replace.caseSensitive": "Phân biệt chữ hoa chữ thường",
1055
1060
  "editor.mermaid.tooltip": "Mermaid",
@@ -1076,7 +1081,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
1076
1081
  "editor.callout.type.important": "Quan trọng",
1077
1082
  "editor.callout.type.warning": "Cảnh báo",
1078
1083
  "editor.callout.type.caution": "Thận trọng"
1079
- }, T = {
1084
+ }, z = {
1080
1085
  "editor.remove": "移除",
1081
1086
  "editor.copy": "复制",
1082
1087
  "editor.words": "字数",
@@ -1244,6 +1249,7 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
1244
1249
  "editor.attachment.tooltip": "附件",
1245
1250
  "editor.attachment.uploading": "上传中",
1246
1251
  "editor.attachment.please_upload": "请上传文件",
1252
+ "editor.attachment.download": "下载",
1247
1253
  "editor.imageGif.tooltip": "Gif",
1248
1254
  "editor.replace.caseSensitive": "区分大小写",
1249
1255
  "editor.mermaid.tooltip": "Mermaid",
@@ -1275,8 +1281,8 @@ const P = ["Default", "1.5", "2", "2.5", "3", "3.5", "4"], W = ["Paragraph", 1,
1275
1281
  message: {
1276
1282
  en: y,
1277
1283
  hu_HU: C,
1278
- vi: z,
1279
- zh_CN: T,
1284
+ vi: T,
1285
+ zh_CN: z,
1280
1286
  pt_BR: x,
1281
1287
  fi: v
1282
1288
  }
@@ -1329,19 +1335,19 @@ export {
1329
1335
  R as D,
1330
1336
  W as H,
1331
1337
  S as I,
1332
- w as T,
1338
+ E as T,
1333
1339
  f as V,
1334
1340
  y as a,
1335
1341
  C as b,
1336
- z as c,
1337
- T as d,
1342
+ T as c,
1343
+ z as d,
1338
1344
  x as e,
1339
1345
  v as f,
1340
1346
  j as g,
1341
1347
  P as h,
1342
1348
  D as i,
1343
1349
  L as j,
1344
- E as k,
1350
+ w as k,
1345
1351
  U as l,
1346
1352
  B as m,
1347
1353
  k as n,
package/lib/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),q=require("./clsx-CXbNJWDD.cjs"),l=require("react"),a=require("./index-Dib4cXXf.cjs"),_=require("@radix-ui/react-toast"),$=require("lucide-react"),f=require("./theme.cjs");function j(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const x=j(l),s=j(_),V=s.Provider,w=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Viewport,{ref:e,className:a.cn("richtext-fixed richtext-top-0 richtext-z-[100] richtext-flex richtext-max-h-screen richtext-w-full richtext-flex-col-reverse richtext-p-4 sm:richtext-bottom-0 sm:richtext-right-0 sm:richtext-top-auto sm:richtext-flex-col md:richtext-max-w-[420px]",t),...r}));w.displayName=s.Viewport.displayName;const z=a.cva("richtext-group richtext-pointer-events-auto richtext-relative richtext-flex richtext-w-full richtext-items-center richtext-justify-between richtext-space-x-4 richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-p-6 richtext-pr-8 richtext-shadow-lg richtext-transition-all data-[swipe=cancel]:richtext-translate-x-0 data-[swipe=end]:richtext-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:richtext-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:richtext-transition-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[swipe=end]:richtext-animate-out data-[state=closed]:richtext-fade-out-80 data-[state=closed]:richtext-slide-out-to-right-full data-[state=open]:richtext-slide-in-from-top-full data-[state=open]:sm:richtext-slide-in-from-bottom-full",{variants:{variant:{default:"richtext-border richtext-bg-background richtext-text-foreground",destructive:"richtext-destructive richtext-group richtext-border-destructive richtext-bg-destructive richtext-text-destructive-foreground"}},defaultVariants:{variant:"default"}}),N=x.forwardRef(({className:t,variant:r,...e},n)=>i.jsx(s.Root,{ref:n,className:a.cn(z({variant:r}),t),...e}));N.displayName=s.Root.displayName;const H=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Action,{ref:e,className:a.cn("richtext-inline-flex richtext-h-8 richtext-shrink-0 richtext-items-center richtext-justify-center richtext-rounded-md !richtext-border richtext-bg-transparent richtext-px-3 richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-secondary focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 group-[.destructive]:richtext-border-muted/40 group-[.destructive]:hover:richtext-border-destructive/30 group-[.destructive]:hover:richtext-bg-destructive group-[.destructive]:hover:richtext-text-destructive-foreground group-[.destructive]:focus:richtext-ring-destructive",t),...r}));H.displayName=s.Action.displayName;const T=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Close,{ref:e,className:a.cn("richtext-absolute richtext-right-2 richtext-top-2 richtext-rounded-md richtext-p-1 richtext-text-foreground/50 richtext-opacity-0 richtext-transition-opacity hover:richtext-text-foreground focus:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 group-hover:richtext-opacity-100 group-[.destructive]:richtext-text-red-300 group-[.destructive]:hover:richtext-text-red-50 group-[.destructive]:focus:richtext-ring-red-400 group-[.destructive]:focus:richtext-ring-offset-red-600",t),"toast-close":"",...r,children:i.jsx($.X,{className:"richtext-h-4 richtext-w-4"})}));T.displayName=s.Close.displayName;const E=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Title,{ref:e,className:a.cn("richtext-text-sm richtext-font-semibold",t),...r}));E.displayName=s.Title.displayName;const R=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Description,{ref:e,className:a.cn("richtext-text-sm richtext-opacity-90",t),...r}));R.displayName=s.Description.displayName;function L(){const{toasts:t}=a.useToast();return i.jsxs(V,{children:[t.map(({id:r,title:e,description:n,action:o,...u})=>i.jsxs(N,{...u,children:[i.jsxs("div",{className:"richtext-grid richtext-gap-1",children:[e&&i.jsx(E,{children:e}),n&&i.jsx(R,{children:n})]}),o,i.jsx(T,{})]},r)),i.jsx(w,{})]})}const F=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),q=require("./clsx-CXbNJWDD.cjs"),l=require("react"),a=require("./index-Bt9LiArC.cjs"),_=require("@radix-ui/react-toast"),$=require("lucide-react"),f=require("./theme.cjs");function j(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const x=j(l),s=j(_),V=s.Provider,w=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Viewport,{ref:e,className:a.cn("richtext-fixed richtext-top-0 richtext-z-[100] richtext-flex richtext-max-h-screen richtext-w-full richtext-flex-col-reverse richtext-p-4 sm:richtext-bottom-0 sm:richtext-right-0 sm:richtext-top-auto sm:richtext-flex-col md:richtext-max-w-[420px]",t),...r}));w.displayName=s.Viewport.displayName;const z=a.cva("richtext-group richtext-pointer-events-auto richtext-relative richtext-flex richtext-w-full richtext-items-center richtext-justify-between richtext-space-x-4 richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-p-6 richtext-pr-8 richtext-shadow-lg richtext-transition-all data-[swipe=cancel]:richtext-translate-x-0 data-[swipe=end]:richtext-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:richtext-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:richtext-transition-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[swipe=end]:richtext-animate-out data-[state=closed]:richtext-fade-out-80 data-[state=closed]:richtext-slide-out-to-right-full data-[state=open]:richtext-slide-in-from-top-full data-[state=open]:sm:richtext-slide-in-from-bottom-full",{variants:{variant:{default:"richtext-border richtext-bg-background richtext-text-foreground",destructive:"richtext-destructive richtext-group richtext-border-destructive richtext-bg-destructive richtext-text-destructive-foreground"}},defaultVariants:{variant:"default"}}),N=x.forwardRef(({className:t,variant:r,...e},n)=>i.jsx(s.Root,{ref:n,className:a.cn(z({variant:r}),t),...e}));N.displayName=s.Root.displayName;const H=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Action,{ref:e,className:a.cn("richtext-inline-flex richtext-h-8 richtext-shrink-0 richtext-items-center richtext-justify-center richtext-rounded-md !richtext-border richtext-bg-transparent richtext-px-3 richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-secondary focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 group-[.destructive]:richtext-border-muted/40 group-[.destructive]:hover:richtext-border-destructive/30 group-[.destructive]:hover:richtext-bg-destructive group-[.destructive]:hover:richtext-text-destructive-foreground group-[.destructive]:focus:richtext-ring-destructive",t),...r}));H.displayName=s.Action.displayName;const T=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Close,{ref:e,className:a.cn("richtext-absolute richtext-right-2 richtext-top-2 richtext-rounded-md richtext-p-1 richtext-text-foreground/50 richtext-opacity-0 richtext-transition-opacity hover:richtext-text-foreground focus:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 group-hover:richtext-opacity-100 group-[.destructive]:richtext-text-red-300 group-[.destructive]:hover:richtext-text-red-50 group-[.destructive]:focus:richtext-ring-red-400 group-[.destructive]:focus:richtext-ring-offset-red-600",t),"toast-close":"",...r,children:i.jsx($.X,{className:"richtext-h-4 richtext-w-4"})}));T.displayName=s.Close.displayName;const E=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Title,{ref:e,className:a.cn("richtext-text-sm richtext-font-semibold",t),...r}));E.displayName=s.Title.displayName;const R=x.forwardRef(({className:t,...r},e)=>i.jsx(s.Description,{ref:e,className:a.cn("richtext-text-sm richtext-opacity-90",t),...r}));R.displayName=s.Description.displayName;function L(){const{toasts:t}=a.useToast();return i.jsxs(V,{children:[t.map(({id:r,title:e,description:n,action:o,...u})=>i.jsxs(N,{...u,children:[i.jsxs("div",{className:"richtext-grid richtext-gap-1",children:[e&&i.jsx(E,{children:e}),n&&i.jsx(R,{children:n})]}),o,i.jsx(T,{})]},r)),i.jsx(w,{})]})}const F=`
2
2
  .remarkablejames-editor {
3
3
  button,
4
4
  input:where([type=button]),
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as f, Fragment as m } from "react/jsx-runtime";
2
2
  import { K as O } from "./clsx-CDyrfCnw.js";
3
3
  import * as u from "react";
4
4
  import { useEffect as x, useId as z } from "react";
5
- import { c as l, S as H, r as L, U as Q, V as _, W as I, X as K } from "./index-_WrFM-Fk.js";
5
+ import { c as l, S as H, r as L, U as Q, V as _, W as I, X as K } from "./index-8B00E8e4.js";
6
6
  import * as c from "@radix-ui/react-toast";
7
7
  import { X as Y } from "lucide-react";
8
8
  import { useTheme as q, THEME as y } from "./theme.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-bVGIXhRg.cjs");exports.en=e.locale;exports.fi=e.locale$5;exports.hu_HU=e.locale$1;exports.localeActions=e.localeActions;exports.pt_BR=e.locale$4;exports.useLocale=e.useLocale;exports.vi=e.locale$2;exports.zh_CN=e.locale$3;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BrxL7y9p.cjs");exports.en=e.locale;exports.fi=e.locale$5;exports.hu_HU=e.locale$1;exports.localeActions=e.localeActions;exports.pt_BR=e.locale$4;exports.useLocale=e.useLocale;exports.vi=e.locale$2;exports.zh_CN=e.locale$3;
@@ -1,4 +1,4 @@
1
- import { a as e, f as o, b as c, l, e as f, u as i, c as t, d as u } from "./index-4Q5IhypJ.js";
1
+ import { a as e, f as o, b as c, l, e as f, u as i, c as t, d as u } from "./index-DZfkCNKr.js";
2
2
  export {
3
3
  e as en,
4
4
  o as fi,
@@ -1,196 +1,197 @@
1
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.copyToClipboard': string;
16
- 'editor.slash': string;
17
- 'editor.slash.empty': string;
18
- 'editor.slash.format': string;
19
- 'editor.slash.insert': string;
20
- 'editor.slash.embed': string;
21
- 'editor.content': string;
22
- 'editor.fontFamily.tooltip': string;
23
- 'editor.fontFamily.default.tooltip': string;
24
- 'editor.moremark': string;
25
- 'editor.size.small.tooltip': string;
26
- 'editor.size.medium.tooltip': string;
27
- 'editor.size.large.tooltip': string;
28
- 'editor.bold.tooltip': string;
29
- 'editor.italic.tooltip': string;
30
- 'editor.underline.tooltip': string;
31
- 'editor.strike.tooltip': string;
32
- 'editor.color.tooltip': string;
33
- 'editor.color.more': string;
34
- 'editor.highlight.tooltip': string;
35
- 'editor.lineheight.tooltip': string;
36
- 'editor.heading.tooltip': string;
37
- 'editor.heading.h1.tooltip': string;
38
- 'editor.heading.h2.tooltip': string;
39
- 'editor.heading.h3.tooltip': string;
40
- 'editor.heading.h4.tooltip': string;
41
- 'editor.heading.h5.tooltip': string;
42
- 'editor.heading.h6.tooltip': string;
43
- 'editor.paragraph.tooltip': string;
44
- 'editor.textalign.tooltip': string;
45
- 'editor.textalign.left.tooltip': string;
46
- 'editor.textalign.center.tooltip': string;
47
- 'editor.textalign.right.tooltip': string;
48
- 'editor.textalign.justify.tooltip': string;
49
- 'editor.indent': string;
50
- 'editor.indent.indent': string;
51
- 'editor.indent.outdent': string;
52
- 'editor.fontSize.tooltip': string;
53
- 'editor.fontSize.default.tooltip': string;
54
- 'editor.superscript.tooltip': string;
55
- 'editor.subscript.tooltip': string;
56
- 'editor.bulletlist.tooltip': string;
57
- 'editor.orderedlist.tooltip': string;
58
- 'editor.tasklist.tooltip': string;
59
- 'editor.indent.tooltip': string;
60
- 'editor.outdent.tooltip': string;
61
- 'editor.columns.tooltip': string;
62
- 'editor.link.tooltip': string;
63
- 'editor.link.unlink.tooltip': string;
64
- 'editor.link.open.tooltip': string;
65
- 'editor.link.edit.tooltip': string;
66
- 'editor.link.dialog.title': string;
67
- 'editor.link.dialog.link': string;
68
- 'editor.link.dialog.text': string;
69
- 'editor.link.dialog.openInNewTab': string;
70
- 'editor.link.dialog.link.placeholder': string;
71
- 'editor.link.dialog.text.placeholder': string;
72
- 'editor.link.dialog.button.apply': string;
73
- 'editor.link.dialog.button.cancel': string;
74
- 'editor.image.tooltip': string;
75
- 'editor.image.dragger.tooltip': string;
76
- 'editor.image.float.left.tooltip': string;
77
- 'editor.image.float.none.tooltip': string;
78
- 'editor.image.float.right.tooltip': string;
79
- 'editor.image.dialog.title': string;
80
- 'editor.image.dialog.tab.url': string;
81
- 'editor.image.dialog.tab.upload': string;
82
- 'editor.image.dialog.tab.uploadCrop': string;
83
- 'editor.image.dialog.uploading': string;
84
- 'editor.link.dialog.inline': string;
85
- 'editor.image.dialog.form.link': string;
86
- 'editor.image.dialog.placeholder': string;
87
- 'editor.image.dialog.form.alt': string;
88
- 'editor.image.dialog.form.aspectRatio': string;
89
- 'editor.image.dialog.form.file': string;
90
- 'editor.image.dialog.button.apply': string;
91
- 'editor.video.tooltip': string;
92
- 'editor.video.dialog.tab.upload': string;
93
- 'editor.video.dialog.uploading': string;
94
- 'editor.video.dialog.title': string;
95
- 'editor.video.dialog.link': string;
96
- 'editor.video.dialog.placeholder': string;
97
- 'editor.video.dialog.button.apply': string;
98
- 'editor.table.tooltip': string;
99
- 'editor.table.menu.insert_table': string;
100
- 'editor.table.menu.insert_table.with_header_row': string;
101
- 'editor.table.menu.add_column_before': string;
102
- 'editor.table.menu.add_column_after': string;
103
- 'editor.table.menu.delete_column': string;
104
- 'editor.table.menu.add_row_before': string;
105
- 'editor.table.menu.add_row_after': string;
106
- 'editor.table.menu.delete_row': string;
107
- 'editor.table.menu.merge_or_split_cells': string;
108
- 'editor.table.menu.delete_table': string;
109
- 'editor.blockquote.tooltip': string;
110
- 'editor.horizontalrule.tooltip': string;
111
- 'editor.code.tooltip': string;
112
- 'editor.codeblock.tooltip': string;
113
- 'editor.clear.tooltip': string;
114
- 'editor.undo.tooltip': string;
115
- 'editor.redo.tooltip': string;
116
- 'editor.fullscreen.tooltip.fullscreen': string;
117
- 'editor.fullscreen.tooltip.exit': string;
118
- 'editor.imageUpload.cancel': string;
119
- 'editor.imageUpload.crop': string;
120
- 'editor.imageUpload.uploading': string;
121
- 'editor.imageUpload.alt': string;
122
- 'editor.imageUpload.fileTypeNotSupported': string;
123
- 'editor.imageUpload.fileSizeTooBig': string;
124
- 'editor.table.menu.insertColumnBefore': string;
125
- 'editor.table.menu.insertColumnAfter': string;
126
- 'editor.table.menu.deleteColumn': string;
127
- 'editor.table.menu.insertRowAbove': string;
128
- 'editor.table.menu.insertRowBelow': string;
129
- 'editor.table.menu.deleteRow': string;
130
- 'editor.table.menu.mergeCells': string;
131
- 'editor.table.menu.splitCells': string;
132
- 'editor.table.menu.deleteTable': string;
133
- 'editor.table.menu.setCellsBgColor': string;
134
- 'editor.emoji.tooltip': string;
135
- 'editor.iframe.tooltip': string;
136
- 'editor.searchAndReplace.tooltip': string;
137
- 'editor.search.dialog.text': string;
138
- 'editor.replace.dialog.text': string;
139
- 'editor.replaceAll.dialog.text': string;
140
- 'editor.previous.dialog.text': string;
141
- 'editor.next.dialog.text': string;
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.copyToClipboard": string;
16
+ "editor.slash": string;
17
+ "editor.slash.empty": string;
18
+ "editor.slash.format": string;
19
+ "editor.slash.insert": string;
20
+ "editor.slash.embed": string;
21
+ "editor.content": string;
22
+ "editor.fontFamily.tooltip": string;
23
+ "editor.fontFamily.default.tooltip": string;
24
+ "editor.moremark": string;
25
+ "editor.size.small.tooltip": string;
26
+ "editor.size.medium.tooltip": string;
27
+ "editor.size.large.tooltip": string;
28
+ "editor.bold.tooltip": string;
29
+ "editor.italic.tooltip": string;
30
+ "editor.underline.tooltip": string;
31
+ "editor.strike.tooltip": string;
32
+ "editor.color.tooltip": string;
33
+ "editor.color.more": string;
34
+ "editor.highlight.tooltip": string;
35
+ "editor.lineheight.tooltip": string;
36
+ "editor.heading.tooltip": string;
37
+ "editor.heading.h1.tooltip": string;
38
+ "editor.heading.h2.tooltip": string;
39
+ "editor.heading.h3.tooltip": string;
40
+ "editor.heading.h4.tooltip": string;
41
+ "editor.heading.h5.tooltip": string;
42
+ "editor.heading.h6.tooltip": string;
43
+ "editor.paragraph.tooltip": string;
44
+ "editor.textalign.tooltip": string;
45
+ "editor.textalign.left.tooltip": string;
46
+ "editor.textalign.center.tooltip": string;
47
+ "editor.textalign.right.tooltip": string;
48
+ "editor.textalign.justify.tooltip": string;
49
+ "editor.indent": string;
50
+ "editor.indent.indent": string;
51
+ "editor.indent.outdent": string;
52
+ "editor.fontSize.tooltip": string;
53
+ "editor.fontSize.default.tooltip": string;
54
+ "editor.superscript.tooltip": string;
55
+ "editor.subscript.tooltip": string;
56
+ "editor.bulletlist.tooltip": string;
57
+ "editor.orderedlist.tooltip": string;
58
+ "editor.tasklist.tooltip": string;
59
+ "editor.indent.tooltip": string;
60
+ "editor.outdent.tooltip": string;
61
+ "editor.columns.tooltip": string;
62
+ "editor.link.tooltip": string;
63
+ "editor.link.unlink.tooltip": string;
64
+ "editor.link.open.tooltip": string;
65
+ "editor.link.edit.tooltip": string;
66
+ "editor.link.dialog.title": string;
67
+ "editor.link.dialog.link": string;
68
+ "editor.link.dialog.text": string;
69
+ "editor.link.dialog.openInNewTab": string;
70
+ "editor.link.dialog.link.placeholder": string;
71
+ "editor.link.dialog.text.placeholder": string;
72
+ "editor.link.dialog.button.apply": string;
73
+ "editor.link.dialog.button.cancel": string;
74
+ "editor.image.tooltip": string;
75
+ "editor.image.dragger.tooltip": string;
76
+ "editor.image.float.left.tooltip": string;
77
+ "editor.image.float.none.tooltip": string;
78
+ "editor.image.float.right.tooltip": string;
79
+ "editor.image.dialog.title": string;
80
+ "editor.image.dialog.tab.url": string;
81
+ "editor.image.dialog.tab.upload": string;
82
+ "editor.image.dialog.tab.uploadCrop": string;
83
+ "editor.image.dialog.uploading": string;
84
+ "editor.link.dialog.inline": string;
85
+ "editor.image.dialog.form.link": string;
86
+ "editor.image.dialog.placeholder": string;
87
+ "editor.image.dialog.form.alt": string;
88
+ "editor.image.dialog.form.aspectRatio": string;
89
+ "editor.image.dialog.form.file": string;
90
+ "editor.image.dialog.button.apply": string;
91
+ "editor.video.tooltip": string;
92
+ "editor.video.dialog.tab.upload": string;
93
+ "editor.video.dialog.uploading": string;
94
+ "editor.video.dialog.title": string;
95
+ "editor.video.dialog.link": string;
96
+ "editor.video.dialog.placeholder": string;
97
+ "editor.video.dialog.button.apply": string;
98
+ "editor.table.tooltip": string;
99
+ "editor.table.menu.insert_table": string;
100
+ "editor.table.menu.insert_table.with_header_row": string;
101
+ "editor.table.menu.add_column_before": string;
102
+ "editor.table.menu.add_column_after": string;
103
+ "editor.table.menu.delete_column": string;
104
+ "editor.table.menu.add_row_before": string;
105
+ "editor.table.menu.add_row_after": string;
106
+ "editor.table.menu.delete_row": string;
107
+ "editor.table.menu.merge_or_split_cells": string;
108
+ "editor.table.menu.delete_table": string;
109
+ "editor.blockquote.tooltip": string;
110
+ "editor.horizontalrule.tooltip": string;
111
+ "editor.code.tooltip": string;
112
+ "editor.codeblock.tooltip": string;
113
+ "editor.clear.tooltip": string;
114
+ "editor.undo.tooltip": string;
115
+ "editor.redo.tooltip": string;
116
+ "editor.fullscreen.tooltip.fullscreen": string;
117
+ "editor.fullscreen.tooltip.exit": string;
118
+ "editor.imageUpload.cancel": string;
119
+ "editor.imageUpload.crop": string;
120
+ "editor.imageUpload.uploading": string;
121
+ "editor.imageUpload.alt": string;
122
+ "editor.imageUpload.fileTypeNotSupported": string;
123
+ "editor.imageUpload.fileSizeTooBig": string;
124
+ "editor.table.menu.insertColumnBefore": string;
125
+ "editor.table.menu.insertColumnAfter": string;
126
+ "editor.table.menu.deleteColumn": string;
127
+ "editor.table.menu.insertRowAbove": string;
128
+ "editor.table.menu.insertRowBelow": string;
129
+ "editor.table.menu.deleteRow": string;
130
+ "editor.table.menu.mergeCells": string;
131
+ "editor.table.menu.splitCells": string;
132
+ "editor.table.menu.deleteTable": string;
133
+ "editor.table.menu.setCellsBgColor": string;
134
+ "editor.emoji.tooltip": string;
135
+ "editor.iframe.tooltip": string;
136
+ "editor.searchAndReplace.tooltip": string;
137
+ "editor.search.dialog.text": string;
138
+ "editor.replace.dialog.text": string;
139
+ "editor.replaceAll.dialog.text": string;
140
+ "editor.previous.dialog.text": string;
141
+ "editor.next.dialog.text": string;
142
142
  no_result_found: string;
143
- 'Smileys & People': string;
144
- 'Animals & Nature': string;
145
- 'Food & Drink': string;
143
+ "Smileys & People": string;
144
+ "Animals & Nature": string;
145
+ "Food & Drink": string;
146
146
  Activity: string;
147
- 'Travel & Places': string;
147
+ "Travel & Places": string;
148
148
  Object: string;
149
149
  Symbol: string;
150
150
  Flags: string;
151
- 'Frequently used': string;
152
- 'editor.formula.dialog.text': string;
153
- 'editor.katex.tooltip': string;
154
- 'editor.exportPdf.tooltip': string;
155
- 'editor.exportWord.tooltip': string;
156
- 'editor.importWord.tooltip': string;
157
- 'editor.importWord.limitSize': string;
158
- 'editor.importWord.converting': string;
159
- 'editor.importWord.convertError': string;
160
- 'editor.importWord.importError': string;
161
- 'editor.textDirection.tooltip': string;
162
- 'editor.textDirection.auto.tooltip': string;
163
- 'editor.textDirection.ltr.tooltip': string;
164
- 'editor.textDirection.rtl.tooltip': string;
165
- 'editor.textDirection.unset.tooltip': string;
166
- 'editor.attachment.tooltip': string;
167
- 'editor.attachment.uploading': string;
168
- 'editor.attachment.please_upload': string;
169
- 'editor.imageGif.tooltip': string;
170
- 'editor.replace.caseSensitive': string;
171
- 'editor.mermaid.tooltip': string;
172
- 'editor.twitter.tooltip': string;
173
- 'editor.codeView.tooltip': string;
174
- 'editor.tooltip.flipX': string;
175
- 'editor.tooltip.flipY': string;
176
- 'editor.upload.fileTypeNotSupported': string;
177
- 'editor.upload.fileSizeTooBig': string;
178
- 'editor.upload.error': string;
179
- 'editor.callout.tooltip': string;
180
- 'editor.callout.dialog.title': string;
181
- 'editor.callout.dialog.type': string;
182
- 'editor.callout.dialog.type.placeholder': string;
183
- 'editor.callout.dialog.title.label': string;
184
- 'editor.callout.dialog.title.placeholder': string;
185
- 'editor.callout.dialog.body.label': string;
186
- 'editor.callout.dialog.body.placeholder': string;
187
- 'editor.callout.dialog.button.apply': string;
188
- 'editor.callout.dialog.button.cancel': string;
189
- 'editor.callout.edit.title': string;
190
- 'editor.callout.type.note': string;
191
- 'editor.callout.type.tip': string;
192
- 'editor.callout.type.important': string;
193
- 'editor.callout.type.warning': string;
194
- 'editor.callout.type.caution': string;
151
+ "Frequently used": string;
152
+ "editor.formula.dialog.text": string;
153
+ "editor.katex.tooltip": string;
154
+ "editor.exportPdf.tooltip": string;
155
+ "editor.exportWord.tooltip": string;
156
+ "editor.importWord.tooltip": string;
157
+ "editor.importWord.limitSize": string;
158
+ "editor.importWord.converting": string;
159
+ "editor.importWord.convertError": string;
160
+ "editor.importWord.importError": string;
161
+ "editor.textDirection.tooltip": string;
162
+ "editor.textDirection.auto.tooltip": string;
163
+ "editor.textDirection.ltr.tooltip": string;
164
+ "editor.textDirection.rtl.tooltip": string;
165
+ "editor.textDirection.unset.tooltip": string;
166
+ "editor.attachment.tooltip": string;
167
+ "editor.attachment.uploading": string;
168
+ "editor.attachment.please_upload": string;
169
+ "editor.attachment.download": string;
170
+ "editor.imageGif.tooltip": string;
171
+ "editor.replace.caseSensitive": string;
172
+ "editor.mermaid.tooltip": string;
173
+ "editor.twitter.tooltip": string;
174
+ "editor.codeView.tooltip": string;
175
+ "editor.tooltip.flipX": string;
176
+ "editor.tooltip.flipY": string;
177
+ "editor.upload.fileTypeNotSupported": string;
178
+ "editor.upload.fileSizeTooBig": string;
179
+ "editor.upload.error": string;
180
+ "editor.callout.tooltip": string;
181
+ "editor.callout.dialog.title": string;
182
+ "editor.callout.dialog.type": string;
183
+ "editor.callout.dialog.type.placeholder": string;
184
+ "editor.callout.dialog.title.label": string;
185
+ "editor.callout.dialog.title.placeholder": string;
186
+ "editor.callout.dialog.body.label": string;
187
+ "editor.callout.dialog.body.placeholder": string;
188
+ "editor.callout.dialog.button.apply": string;
189
+ "editor.callout.dialog.button.cancel": string;
190
+ "editor.callout.edit.title": string;
191
+ "editor.callout.type.note": string;
192
+ "editor.callout.type.tip": string;
193
+ "editor.callout.type.important": string;
194
+ "editor.callout.type.warning": string;
195
+ "editor.callout.type.caution": string;
195
196
  };
196
197
  export default locale;