@mdxeditor/editor 0.0.0-development → 0.0.4-development

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 (103) hide show
  1. package/dist/MDXEditor.d.ts +11 -0
  2. package/dist/MDXEditor.js +3 -1
  3. package/dist/exportMarkdownFromLexical.d.ts +6 -1
  4. package/dist/exportMarkdownFromLexical.js +43 -6
  5. package/dist/gurx/realmFactory.d.ts +1 -1
  6. package/dist/icons/add_column.svg.js +1 -1
  7. package/dist/icons/add_photo.svg.js +1 -1
  8. package/dist/icons/add_row.svg.js +1 -1
  9. package/dist/icons/admonition.svg.js +1 -1
  10. package/dist/icons/arrow_drop_down.svg.js +1 -1
  11. package/dist/icons/check.svg.js +1 -1
  12. package/dist/icons/close.svg.js +1 -1
  13. package/dist/icons/code.svg.js +1 -1
  14. package/dist/icons/content_copy.svg.js +1 -1
  15. package/dist/icons/delete_big.svg.js +1 -1
  16. package/dist/icons/delete_small.svg.js +1 -1
  17. package/dist/icons/difference.svg.js +1 -1
  18. package/dist/icons/edit.svg.js +1 -1
  19. package/dist/icons/format_align_center.svg.js +1 -1
  20. package/dist/icons/format_align_left.svg.js +1 -1
  21. package/dist/icons/format_align_right.svg.js +1 -1
  22. package/dist/icons/format_bold.svg.js +1 -1
  23. package/dist/icons/format_italic.svg.js +1 -1
  24. package/dist/icons/format_list_bulleted.svg.js +1 -3
  25. package/dist/icons/format_list_checked.svg.js +1 -1
  26. package/dist/icons/format_list_numbered.svg.js +1 -1
  27. package/dist/icons/format_underlined.svg.js +1 -1
  28. package/dist/icons/frame_source.svg.js +5 -0
  29. package/dist/icons/frontmatter.svg.js +1 -1
  30. package/dist/icons/horizontal_rule.svg.js +1 -1
  31. package/dist/icons/insert_col_left.svg.js +1 -1
  32. package/dist/icons/insert_col_right.svg.js +1 -1
  33. package/dist/icons/insert_row_above.svg.js +1 -1
  34. package/dist/icons/insert_row_below.svg.js +1 -1
  35. package/dist/icons/link.svg.js +1 -1
  36. package/dist/icons/link_off.svg.js +1 -1
  37. package/dist/icons/markdown.svg.js +1 -1
  38. package/dist/icons/more_horiz.svg.js +1 -1
  39. package/dist/icons/more_vert.svg.js +1 -1
  40. package/dist/icons/open_in_new.svg.js +1 -1
  41. package/dist/icons/redo.svg.js +1 -1
  42. package/dist/icons/rich_text.svg.js +1 -1
  43. package/dist/icons/sandpack.svg.js +1 -1
  44. package/dist/icons/settings.svg.js +1 -3
  45. package/dist/icons/table.svg.js +1 -1
  46. package/dist/icons/undo.svg.js +1 -1
  47. package/dist/importMarkdownToLexical.d.ts +10 -0
  48. package/dist/importMarkdownToLexical.js +31 -7
  49. package/dist/index.d.ts +8 -0
  50. package/dist/index.js +41 -3
  51. package/dist/plugins/codeblock/index.d.ts +92 -2
  52. package/dist/plugins/codemirror/index.d.ts +128 -2
  53. package/dist/plugins/core/GenericHTMLNode.d.ts +38 -0
  54. package/dist/plugins/core/GenericHTMLNode.js +117 -0
  55. package/dist/plugins/core/Icon.d.ts +1 -1
  56. package/dist/plugins/core/Icon.js +2 -4
  57. package/dist/plugins/core/LexicalGenericHTMLNodeVisitor.d.ts +4 -0
  58. package/dist/plugins/core/LexicalGenericHTMLNodeVisitor.js +15 -0
  59. package/dist/plugins/core/LexicalTextVisitor.js +18 -1
  60. package/dist/plugins/core/MdastHTMLNode.d.ts +13 -0
  61. package/dist/plugins/core/MdastHTMLNode.js +122 -0
  62. package/dist/plugins/core/MdastHTMLVisitor.d.ts +3 -0
  63. package/dist/plugins/core/MdastHTMLVisitor.js +12 -0
  64. package/dist/plugins/core/NestedLexicalEditor.js +14 -9
  65. package/dist/plugins/core/index.d.ts +80 -3
  66. package/dist/plugins/core/index.js +90 -20
  67. package/dist/plugins/diff-source/DiffSourceWrapper.js +4 -1
  68. package/dist/plugins/diff-source/SourceEditor.js +7 -1
  69. package/dist/plugins/diff-source/index.d.ts +94 -4
  70. package/dist/plugins/diff-source/index.js +3 -4
  71. package/dist/plugins/directives/index.d.ts +92 -2
  72. package/dist/plugins/frontmatter/index.d.ts +92 -2
  73. package/dist/plugins/headings/index.d.ts +92 -2
  74. package/dist/plugins/image/index.d.ts +92 -2
  75. package/dist/plugins/jsx/LexicalJsxVisitor.js +12 -0
  76. package/dist/plugins/jsx/index.d.ts +114 -23
  77. package/dist/plugins/jsx/index.js +4 -0
  78. package/dist/plugins/link/index.d.ts +9 -0
  79. package/dist/plugins/link-dialog/index.d.ts +79 -5
  80. package/dist/plugins/link-dialog/index.js +2 -8
  81. package/dist/plugins/lists/index.d.ts +92 -2
  82. package/dist/plugins/lists/index.js +3 -0
  83. package/dist/plugins/markdown-shortcut/index.d.ts +9 -0
  84. package/dist/plugins/quote/index.d.ts +65 -2
  85. package/dist/plugins/sandpack/index.d.ts +128 -2
  86. package/dist/plugins/table/index.d.ts +92 -2
  87. package/dist/plugins/thematic-break/index.d.ts +92 -2
  88. package/dist/plugins/toolbar/components/ChangeAdmonitionType.js +1 -1
  89. package/dist/plugins/toolbar/components/InsertCodeBlock.js +1 -1
  90. package/dist/plugins/toolbar/index.d.ts +74 -2
  91. package/dist/style.css +210 -195
  92. package/dist/styles/ui.module.css.js +105 -102
  93. package/dist/utils/fp.js +31 -1
  94. package/dist/utils/lexicalHelpers.js +20 -2
  95. package/dist/utils/makeHslTransparent.d.ts +1 -0
  96. package/dist/utils/makeHslTransparent.js +6 -0
  97. package/dist/utils/mergeStyleAttributes.d.ts +1 -0
  98. package/dist/utils/mergeStyleAttributes.js +22 -0
  99. package/dist/utils/whitespaceConversion.d.ts +2 -0
  100. package/dist/utils/whitespaceConversion.js +9 -0
  101. package/package.json +17 -11
  102. package/dist/icons/check_small.svg.js +0 -5
  103. package/dist/icons/code_block.svg.js +0 -5
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgFrontmatter = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M15.38,1.25H8.62C8.28,1.25,8,0.97,8,0.62S8.28,0,8.62,0h6.75C15.72,0,16,0.28,16,0.62S15.72,1.25,15.38,1.25z" })), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M15.38,4.94H8.62C8.28,4.94,8,4.66,8,4.31s0.28-0.62,0.62-0.62h6.75c0.34,0,0.62,0.28,0.62,0.62S15.72,4.94,15.38,4.94z" })), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M15.38,8.62H8.62C8.28,8.62,8,8.35,8,8s0.28-0.62,0.62-0.62h6.75C15.72,7.38,16,7.65,16,8S15.72,8.62,15.38,8.62z" })), /* @__PURE__ */ React.createElement("path", { d: "M4.24,3.65H1.25v-2.4h2.99c0.35,0,0.62-0.28,0.62-0.62S4.58,0,4.24,0H0.62C0.28,0,0,0.28,0,0.62V8 c0,0.35,0.28,0.62,0.62,0.62S1.25,8.35,1.25,8V4.9h2.99c0.35,0,0.62-0.28,0.62-0.62S4.58,3.65,4.24,3.65z" }), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M15.38,12.31H0.62C0.28,12.31,0,12.03,0,11.69s0.28-0.62,0.62-0.62h14.75c0.34,0,0.62,0.28,0.62,0.62 S15.72,12.31,15.38,12.31z" })), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M15.38,16H0.62C0.28,16,0,15.72,0,15.38s0.28-0.62,0.62-0.62h14.75c0.34,0,0.62,0.28,0.62,0.62S15.72,16,15.38,16z" })));
2
+ const SvgFrontmatter = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("rect", { x: 8, width: 8, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { x: 8, y: 3.75, width: 8, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { x: 8, y: 7.25, width: 8, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { y: 11, width: 16, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { y: 14.75, width: 16, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { width: 5, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { y: 3.75, width: 5, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { width: 1.25, height: 8.75, rx: 0.625, fill: "currentColor" }));
3
3
  export {
4
4
  SvgFrontmatter as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgHorizontalRule = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M15.38,8.62H0.63C0.29,8.62,0.01,8.34,0.01,8c0-0.34,0.28-0.62,0.62-0.62h14.75c0.34,0,0.62,0.28,0.62,0.62 C16.01,8.34,15.73,8.62,15.38,8.62z" })));
2
+ const SvgHorizontalRule = (props) => /* @__PURE__ */ React.createElement("svg", { width: 17, height: 2, viewBox: "0 0 17 2", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 0.974976C0 0.629798 0.279822 0.349976 0.625 0.349976H15.425C15.7702 0.349976 16.05 0.629798 16.05 0.974976C16.05 1.32015 15.7702 1.59998 15.425 1.59998H0.625C0.279822 1.59998 0 1.32015 0 0.974976Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgHorizontalRule as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgInsertColLeft = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M10.84,8c0,0.34,0.27,0.62,0.62,0.62h1.34v1.34c0,0.34,0.28,0.62,0.62,0.62s0.62-0.28,0.62-0.62V8.62h1.34 C15.72,8.62,16,8.35,16,8c0-0.35-0.28-0.62-0.63-0.63h-1.34V6.03c0-0.34-0.29-0.62-0.63-0.62s-0.62,0.27-0.62,0.62v1.35h-1.34 C11.09,7.38,10.84,7.66,10.84,8z" }), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M0,14.39L0,1.61C0,0.73,0.73,0,1.61,0l10.81,0c0.89,0,1.61,0.73,1.61,1.61v0.98c0,0.35-0.29,0.62-0.63,0.62 c-0.34,0-0.62-0.27-0.62-0.62V1.61c0-0.2-0.16-0.36-0.36-0.36H1.62c-0.2,0-0.36,0.16-0.36,0.36v12.78c0,0.2,0.16,0.36,0.36,0.36 h10.81c0.2,0,0.36-0.16,0.36-0.36v-0.98c0-0.34,0.28-0.62,0.62-0.62c0.34,0,0.62,0.28,0.62,0.62v0.98c0,0.89-0.72,1.61-1.61,1.61 H1.61C0.73,16,0,15.27,0,14.39z" })));
2
+ const SvgInsertColLeft = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_536_789)" }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.3076 10.4846C12.3076 10.8245 12.5831 11.1 12.923 11.1C13.2629 11.1 13.5384 10.8245 13.5384 10.4846V8.63843H15.3846C15.7245 8.63843 16 8.36291 16 8.02304C16 7.68318 15.7245 7.40766 15.3846 7.40766H13.5384V5.56151C13.5384 5.22165 13.2629 4.94613 12.923 4.94613C12.5831 4.94613 12.3076 5.22165 12.3076 5.56151V7.40766H10.4615C10.1217 7.40766 9.84615 7.68318 9.84615 8.02304C9.84615 8.36291 10.1217 8.63843 10.4615 8.63843H12.3076V10.4846Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M1.58046 16H11.9198C12.8086 16 13.5 15.3086 13.5 14.4198V13.5926C13.5 13.2963 13.2037 13 12.9074 13C12.6111 13 12.3148 13.2963 12.3148 13.5926V14.4198C12.3148 14.6173 12.1173 14.8148 11.9198 14.8148H1.58046C1.38293 14.8148 1.1854 14.6173 1.1854 14.4198V1.58025C1.1854 1.38272 1.38293 1.18519 1.58046 1.18519H11.9198C12.1173 1.18519 12.3148 1.38272 12.3148 1.58025V2.40741C12.3148 2.80247 12.5123 3.075 12.9074 3.075C13.3025 3.075 13.5 2.80247 13.5 2.40741V1.58025C13.5 0.691358 12.8086 0 11.9198 0H1.58046C0.69157 0 0.000210762 0.691358 0.000210762 1.58025V14.4198C0.000210762 15.3086 0.69157 16 1.58046 16Z", fill: "currentColor" })), /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("clipPath", { id: "clip0_536_789" }, /* @__PURE__ */ React.createElement("rect", { width: 16, height: 16, fill: "white", transform: "matrix(-1 0 0 1 16 0)" }))));
3
3
  export {
4
4
  SvgInsertColLeft as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgInsertColRight = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M4.56,7.38H3.22V6.03c0-0.35-0.28-0.62-0.62-0.62S1.97,5.69,1.97,6.03v1.34H0.63C0.28,7.38,0,7.65,0,8s0.28,0.62,0.62,0.62 h1.34v1.34c0,0.34,0.28,0.62,0.62,0.62s0.62-0.28,0.62-0.62V8.62h1.34c0.35,0,0.62-0.28,0.62-0.62S4.91,7.38,4.56,7.38z" }), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M14.39,16H3.58c-0.89,0-1.61-0.72-1.61-1.61v-0.98c0-0.34,0.28-0.62,0.62-0.62s0.62,0.28,0.62,0.62v0.98 c0,0.2,0.16,0.36,0.36,0.36h10.81c0.2,0,0.36-0.16,0.36-0.36V1.61c0-0.2-0.16-0.36-0.36-0.36H3.58c-0.2,0-0.36,0.16-0.36,0.36v0.98 c0,0.35-0.28,0.62-0.62,0.62S1.97,2.94,1.97,2.59V1.61C1.97,0.73,2.69,0,3.58,0h10.81C15.27,0,16,0.73,16,1.61v12.78 C16,15.27,15.27,16,14.39,16z" })));
2
+ const SvgInsertColRight = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_496_873)" }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.69238 10.4846C3.69238 10.8245 3.41687 11.1 3.077 11.1C2.73713 11.1 2.46161 10.8245 2.46161 10.4846V8.63843H0.615385C0.275517 8.63843 0 8.36291 0 8.02304C0 7.68318 0.275517 7.40766 0.615385 7.40766H2.46161V5.56151C2.46161 5.22165 2.73713 4.94613 3.077 4.94613C3.41687 4.94613 3.69238 5.22165 3.69238 5.56151V7.40766H5.53846C5.87833 7.40766 6.15385 7.68318 6.15385 8.02304C6.15385 8.36291 5.87833 8.63843 5.53846 8.63843H3.69238V10.4846Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M14.4195 16H4.08025C3.19136 16 2.5 15.3086 2.5 14.4198V13.5926C2.5 13.2963 2.7963 13 3.09259 13C3.38889 13 3.68519 13.2963 3.68519 13.5926V14.4198C3.68519 14.6173 3.88272 14.8148 4.08025 14.8148H14.4195C14.6171 14.8148 14.8146 14.6173 14.8146 14.4198V1.58025C14.8146 1.38272 14.6171 1.18519 14.4195 1.18519H4.08025C3.88272 1.18519 3.68519 1.38272 3.68519 1.58025V2.40741C3.68519 2.80247 3.48765 3.075 3.09259 3.075C2.69753 3.075 2.5 2.80247 2.5 2.40741V1.58025C2.5 0.691358 3.19136 0 4.08025 0H14.4195C15.3084 0 15.9998 0.691358 15.9998 1.58025V14.4198C15.9998 15.3086 15.3084 16 14.4195 16Z", fill: "currentColor" })), /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("clipPath", { id: "clip0_496_873" }, /* @__PURE__ */ React.createElement("rect", { width: 16, height: 16, fill: "white" }))));
3
3
  export {
4
4
  SvgInsertColRight as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgInsertRowAbove = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M17.01,2.63v9.47c0,1.31-1.07,2.38-2.38,2.38c-0.34,0-0.62-0.28-0.62-0.62s0.28-0.62,0.62-0.62c0.62,0,1.12-0.5,1.12-1.12 V2.65c0-0.76-0.62-1.38-1.38-1.38H2.64c-0.76,0-1.38,0.62-1.38,1.38v9.47c0,0.62,0.5,1.12,1.12,1.12c0.35,0,0.63,0.3,0.63,0.64 S2.74,14.5,2.39,14.5c-1.31,0-2.38-1.07-2.38-2.38V2.64c0-1.44,1.17-2.62,2.62-2.62h11.73C15.81,0.02,16.99,1.19,17.01,2.63z" })), /* @__PURE__ */ React.createElement("path", { d: "M11.62,13.86c0-0.34-0.28-0.62-0.62-0.62H9.12v-1.88c0-0.34-0.28-0.62-0.62-0.62s-0.62,0.27-0.62,0.62v1.88H6 c-0.35,0-0.62,0.29-0.62,0.63S5.65,14.49,6,14.49h1.88v1.88c0,0.34,0.28,0.62,0.62,0.62s0.62-0.27,0.62-0.62v-1.88H11 C11.34,14.49,11.62,14.2,11.62,13.86z" }));
2
+ const SvgInsertRowAbove = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.36912 12.9231C8.36912 13.2629 8.64464 13.5385 8.9845 13.5385H13.4153C14.8428 13.5385 15.9999 12.3813 15.9999 10.9538V2.58461C15.9999 1.15716 14.8428 -9.53674e-06 13.4153 -9.53674e-06H5.04604C3.61892 -9.53674e-06 2.46143 1.15605 2.46143 2.58382V7.09536C2.46143 7.43523 2.73694 7.71075 3.07681 7.71075C3.41668 7.71075 3.6922 7.43523 3.6922 7.09536V2.58382C3.6922 1.83643 4.29801 1.23076 5.04604 1.23076H13.4153C14.163 1.23076 14.7692 1.8369 14.7692 2.58461V10.9538C14.7692 11.7015 14.163 12.3077 13.4153 12.3077H8.9845C8.64464 12.3077 8.36912 12.5832 8.36912 12.9231Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.69231 15.3846C3.69231 15.7245 3.41679 16 3.07692 16C2.73706 16 2.46154 15.7245 2.46154 15.3846V13.5385H0.615385C0.275517 13.5385 0 13.2629 0 12.9231C0 12.5832 0.275517 12.3077 0.615385 12.3077H2.46154V10.4615C2.46154 10.1217 2.73706 9.84615 3.07692 9.84615C3.41679 9.84615 3.69231 10.1217 3.69231 10.4615V12.3077H5.53846C5.87833 12.3077 6.15385 12.5832 6.15385 12.9231C6.15385 13.2629 5.87833 13.5385 5.53846 13.5385H3.69231V15.3846Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgInsertRowAbove as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgInsertRowBelow = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M14.36,16.99H2.63c-1.45,0-2.62-1.18-2.62-2.62V4.89c0-1.31,1.07-2.38,2.38-2.38c0.35,0,0.62,0.28,0.62,0.62 S2.73,3.77,2.38,3.77c-0.62,0-1.12,0.5-1.12,1.12v9.47c0,0.76,0.62,1.38,1.38,1.38h11.73c0.76,0,1.38-0.62,1.38-1.38V4.89 c0-0.62-0.5-1.12-1.12-1.12c-0.34,0-0.62-0.28-0.62-0.62s0.28-0.62,0.62-0.62c1.31,0,2.38,1.07,2.38,2.38v9.47 C16.99,15.82,15.81,16.99,14.36,16.99z" })), /* @__PURE__ */ React.createElement("path", { d: "M11,2.52H9.12V0.64c0-0.35-0.28-0.62-0.62-0.62S7.88,0.3,7.88,0.64v1.88H6c-0.35,0-0.62,0.28-0.62,0.62S5.65,3.77,6,3.77 h1.88v1.88c0,0.35,0.28,0.62,0.62,0.62s0.62-0.28,0.62-0.62V3.77H11c0.34,0,0.62-0.28,0.62-0.62S11.34,2.52,11,2.52z" }));
2
+ const SvgInsertRowBelow = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.36912 3.07693C8.36912 2.73706 8.64464 2.46155 8.9845 2.46155H13.4153C14.8428 2.46155 15.9999 3.61872 15.9999 5.04616V13.4154C15.9999 14.8428 14.8428 16 13.4153 16H5.04604C3.61892 16 2.46143 14.8439 2.46143 13.4162V8.90464C2.46143 8.56477 2.73694 8.28925 3.07681 8.28925C3.41668 8.28925 3.6922 8.56477 3.6922 8.90464V13.4162C3.6922 14.1636 4.29801 14.7692 5.04604 14.7692H13.4153C14.163 14.7692 14.7692 14.1631 14.7692 13.4154V5.04616C14.7692 4.29845 14.163 3.69232 13.4153 3.69232H8.9845C8.64464 3.69232 8.36912 3.4168 8.36912 3.07693Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.69231 0.615385C3.69231 0.275517 3.41679 0 3.07692 0C2.73706 0 2.46154 0.275517 2.46154 0.615385V2.46154H0.615385C0.275517 2.46154 0 2.73706 0 3.07692C0 3.41679 0.275517 3.69231 0.615385 3.69231H2.46154V5.53846C2.46154 5.87833 2.73706 6.15385 3.07692 6.15385C3.41679 6.15385 3.69231 5.87833 3.69231 5.53846V3.69231H5.53846C5.87833 3.69231 6.15385 3.41679 6.15385 3.07692C6.15385 2.73706 5.87833 2.46154 5.53846 2.46154H3.69231V0.615385Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgInsertRowBelow as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgLink = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M6.38,11.17c-0.12,0-0.24-0.03-0.34-0.1c-0.22-0.14-0.42-0.31-0.61-0.5c-1.52-1.52-1.52-3.98,0-5.5l3.89-3.89 c1.52-1.51,3.98-1.52,5.5,0c1.51,1.52,1.51,3.98,0,5.5L13.7,7.8c-0.24,0.24-0.64,0.24-0.88,0c-0.24-0.24-0.25-0.64,0-0.88 l1.12-1.12c0.5-0.5,0.77-1.16,0.77-1.86c0-0.7-0.27-1.37-0.77-1.86c-1.03-1.03-2.7-1.03-3.73,0L6.32,5.96 c-1.03,1.03-1.03,2.7,0,3.73c0.13,0.13,0.27,0.24,0.41,0.34c0.29,0.19,0.37,0.58,0.18,0.87C6.79,11.07,6.59,11.17,6.38,11.17z" })), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M3.93,15.96c-1,0-1.99-0.38-2.75-1.14c-1.52-1.52-1.52-3.98,0-5.5L2.3,8.2c0.24-0.24,0.64-0.25,0.88,0s0.24,0.64,0,0.88 l-1.12,1.12c-1.03,1.03-1.03,2.7,0,3.73c1,1,2.73,1,3.73,0l3.89-3.89c0.5-0.5,0.77-1.16,0.77-1.86c0-0.7-0.27-1.37-0.77-1.86 C9.55,6.19,9.41,6.07,9.25,5.97C8.96,5.78,8.88,5.39,9.07,5.1c0.19-0.29,0.58-0.37,0.87-0.18c0.23,0.15,0.44,0.32,0.63,0.51 c0.73,0.73,1.14,1.71,1.14,2.75s-0.4,2.01-1.14,2.75l-3.89,3.89C5.92,15.58,4.92,15.96,3.93,15.96z" })));
2
+ const SvgLink = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.9685 2.0315C12.9365 0.999453 11.2522 0.999453 10.2201 2.0315L6.30689 5.94474C5.27484 6.97679 5.27484 8.66106 6.30689 9.69311C6.43991 9.82613 6.57903 9.94034 6.72412 10.0371C7.01304 10.2297 7.09111 10.62 6.8985 10.909C6.70588 11.1979 6.31552 11.276 6.0266 11.0833C5.80954 10.9386 5.60662 10.7712 5.41773 10.5823C3.89461 9.05915 3.89461 6.5787 5.41773 5.05557L9.33097 1.14234C10.8541 -0.38078 13.3345 -0.38078 14.8577 1.14234C16.3808 2.66546 16.3808 5.14592 14.8577 6.66904L13.731 7.79573C13.4854 8.04126 13.0873 8.04126 12.8418 7.79573C12.5963 7.55019 12.5963 7.1521 12.8418 6.90657L13.9685 5.77988C15.0006 4.74783 15.0006 3.06355 13.9685 2.0315Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.07294 5.09398C9.25836 4.80039 9.64668 4.71271 9.94027 4.89813C10.178 5.04828 10.395 5.23043 10.5823 5.4177C12.1054 6.94083 12.1054 9.42128 10.5823 10.9444L6.66904 14.8576C5.14592 16.3808 2.66546 16.3808 1.14234 14.8576C-0.38078 13.3345 -0.38078 10.8541 1.14234 9.33094L2.26903 8.20425C2.51457 7.95871 2.91266 7.95871 3.15819 8.20425C3.40373 8.44979 3.40373 8.84788 3.15819 9.09341L2.0315 10.2201C0.999454 11.2522 0.999454 12.9364 2.0315 13.9685C3.06355 15.0005 4.74783 15.0005 5.77988 13.9685L9.69311 10.0552C10.7252 9.02319 10.7252 7.33892 9.69311 6.30687C9.55847 6.17223 9.41333 6.05259 9.26879 5.9613C8.9752 5.77588 8.88752 5.38757 9.07294 5.09398Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgLink as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgLinkOff = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("path", { className: "st0", d: "M7.48,4.84l2.74-2.74c1.03-1.03,2.7-1.03,3.72,0c0.5,0.5,0.77,1.16,0.77,1.86c0,0.7-0.27,1.36-0.77,1.86 l-1.12,1.12c-0.24,0.24-0.24,0.64,0,0.88c0.24,0.24,0.64,0.24,0.88,0l1.12-1.12c0.73-0.73,1.14-1.71,1.14-2.74 c0-1.04-0.4-2.01-1.14-2.74c-1.51-1.51-3.97-1.51-5.49,0L6.59,3.96L7.48,4.84z" }), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { className: "st0", d: "M15.79,14.92l-4.67-4.67c0,0,0,0,0,0L10.2,9.33c0,0,0,0,0,0L6.59,5.72l0,0L5.71,4.84l0,0L1.13,0.26 c-0.24-0.24-0.64-0.24-0.88,0C0,0.5,0,0.9,0.24,1.14L4.9,5.8c-0.93,1.5-0.75,3.49,0.54,4.79c0.19,0.19,0.39,0.35,0.61,0.5 c0.11,0.07,0.23,0.1,0.34,0.1c0.2,0,0.4-0.1,0.52-0.28c0.19-0.29,0.11-0.67-0.18-0.86C6.6,9.95,6.46,9.83,6.33,9.71 c-0.5-0.5-0.77-1.16-0.77-1.86c0-0.4,0.1-0.78,0.26-1.13l3.61,3.61l-3.63,3.63c-1.03,1.03-2.7,1.03-3.72,0 c-0.5-0.5-0.77-1.16-0.77-1.86c0-0.7,0.27-1.36,0.77-1.86L3.2,9.11c0.24-0.24,0.24-0.64,0-0.88c-0.24-0.24-0.64-0.24-0.88,0 L1.2,9.35c-1.51,1.51-1.51,3.97,0,5.49c0.76,0.76,1.75,1.13,2.74,1.13s1.99-0.38,2.74-1.13l3.63-3.63l4.59,4.59 c0.12,0.12,0.28,0.18,0.44,0.18s0.32-0.06,0.44-0.18C16.03,15.56,16.03,15.16,15.79,14.92z" }), /* @__PURE__ */ React.createElement("path", { className: "st0", d: "M9.26,5.99c0.16,0.1,0.3,0.22,0.43,0.35c0.4,0.4,0.64,0.9,0.73,1.44l1.21,1.21c0.05-0.26,0.08-0.52,0.08-0.79 c0-1.04-0.4-2.01-1.14-2.74c-0.19-0.19-0.4-0.36-0.63-0.51C9.66,4.76,9.27,4.84,9.08,5.13C8.89,5.42,8.98,5.81,9.26,5.99z" })));
2
+ const SvgLinkOff = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_496_879)" }, /* @__PURE__ */ React.createElement("path", { d: "M7.50608 4.83951L10.1727 2.17284C11.1604 1.18519 12.8394 1.18519 13.8271 2.17284C14.3209 2.66667 14.6172 3.35803 14.6172 4.04938C14.6172 4.74074 14.3209 5.4321 13.8271 5.92593L12.7406 6.91358C12.5431 7.11111 12.5431 7.50617 12.7406 7.80247C12.9382 8 13.3332 8 13.6295 7.80247L14.716 6.71605C15.4073 6.02469 15.8024 5.03704 15.8024 4.04938C15.8024 3.06173 15.4073 2.07408 14.716 1.38272C13.2345 -0.0987639 10.7653 -0.0987639 9.28385 1.38272L6.61719 4.04938L7.50608 4.83951Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M15.536 14.5736L11.1604 10.2716L10.2715 9.38271L6.61722 5.72839L5.72833 4.8395L1.08635 0.197526C0.888823 -5.27501e-06 0.493761 -5.27501e-06 0.197465 0.197526C-6.63102e-05 0.395056 -6.63102e-05 0.790118 0.197465 1.08641L4.9382 5.82715C4.04932 7.30864 4.14808 9.28394 5.43203 10.5679C5.62956 10.7654 5.82709 10.963 6.02462 11.0617C6.12339 11.1605 6.22216 11.1605 6.32092 11.1605C6.51845 11.1605 6.71598 11.0617 6.81475 10.8642C7.01228 10.5679 6.91351 10.1728 6.61722 9.9753C6.51845 9.87654 6.32092 9.77777 6.22216 9.67901C5.82709 9.18518 5.62956 8.49382 5.62956 7.80246C5.62956 7.4074 5.72833 7.01234 5.92586 6.71604L9.48141 10.2716L5.92586 13.8272C4.9382 14.8148 3.25919 14.8148 2.27154 13.8272C1.77771 13.3333 1.48142 12.642 1.48142 11.9506C1.48142 11.2593 1.77771 10.5679 2.27154 10.0741L3.35796 8.98765C3.55549 8.79012 3.55549 8.39506 3.35796 8.09876C3.16043 7.80246 2.76537 7.90123 2.46907 8.09876L1.28388 9.38271C-0.197597 10.8642 -0.197597 13.3333 1.28388 14.8148C2.07401 15.6049 3.06166 15.9012 3.95055 15.9012C4.83944 15.9012 5.92586 15.5062 6.61722 14.8148L10.1728 11.2593L14.578 15.577C15.0749 16.0882 15.4774 16.0921 15.829 15.7242C16.1315 15.3644 15.986 15.0236 15.536 14.5736Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M9.2837 6.0247C9.48123 6.12347 9.57999 6.22223 9.67876 6.321C10.0738 6.71606 10.2714 7.20989 10.3701 7.70371L11.5553 8.8889C11.6541 8.5926 11.6541 8.39507 11.6541 8.09877C11.6541 7.11112 11.259 6.12347 10.5676 5.43211C10.3701 5.23458 10.1726 5.03705 9.97506 4.93828C9.67876 4.83952 9.2837 4.83952 9.08617 5.13581C8.88863 5.43211 8.9874 5.82717 9.2837 6.0247Z", fill: "currentColor" })), /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("clipPath", { id: "clip0_496_879" }, /* @__PURE__ */ React.createElement("rect", { width: 16, height: 16, fill: "white" }))));
3
3
  export {
4
4
  SvgLinkOff as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgMarkdown = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M15.75,9.92c-0.24-0.24-0.64-0.24-0.88,0l-3.94,3.94V2.73c0-1.5-1.22-2.73-2.73-2.73h-5.4c-1.5,0-2.73,1.22-2.73,2.73v3.7 c0,0.35,0.28,0.62,0.62,0.62s0.62-0.28,0.62-0.62v-3.7c0-0.81,0.66-1.48,1.48-1.48h5.4c0.81,0,1.48,0.66,1.48,1.48v11.12L5.74,9.92 c-0.24-0.24-0.64-0.24-0.88,0c-0.24,0.24-0.24,0.64,0,0.88l5,5c0.02,0.02,0.06,0.04,0.08,0.06c0.04,0.03,0.07,0.06,0.12,0.08 c0.08,0.03,0.16,0.05,0.24,0.05s0.16-0.02,0.24-0.05c0.04-0.02,0.08-0.05,0.12-0.08c0.03-0.02,0.06-0.03,0.08-0.06l5-5 C16,10.56,16,10.17,15.75,9.92z" }));
2
+ const SvgMarkdown = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.25 3.39063C1.25 2.20549 2.20549 1.25 3.39063 1.25H7.41922C8.60435 1.25 9.55984 2.20549 9.55984 3.39063V13.8591L5.6388 9.94534C5.3945 9.70149 4.99877 9.70186 4.75492 9.94616C4.51106 10.1905 4.51143 10.5862 4.75573 10.83L9.6848 15.75C9.79883 15.9018 9.98037 16 10.1848 16C10.3903 16 10.5727 15.9008 10.6866 15.7477L15.6047 10.8296C15.8488 10.5856 15.8488 10.1898 15.6047 9.94575C15.3606 9.70168 14.9649 9.70168 14.7208 9.94575L10.8098 13.8567V3.39063C10.8098 1.51513 9.29471 0 7.41922 0H3.39063C1.51513 0 0 1.51513 0 3.39063V6.15625C0 6.50143 0.279822 6.78125 0.625 6.78125C0.970178 6.78125 1.25 6.50143 1.25 6.15625V3.39063Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgMarkdown as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgMoreHoriz = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("circle", { cx: 4, cy: 8, r: 1 }), /* @__PURE__ */ React.createElement("circle", { cx: 12, cy: 8, r: 1 }), /* @__PURE__ */ React.createElement("circle", { cx: 8, cy: 8, r: 1 }));
2
+ const SvgMoreHoriz = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("circle", { cx: 4, cy: 8, r: 1, fill: "currentColor" }), /* @__PURE__ */ React.createElement("circle", { cx: 12, cy: 8, r: 1, fill: "currentColor" }), /* @__PURE__ */ React.createElement("circle", { cx: 8, cy: 8, r: 1, fill: "currentColor" }));
3
3
  export {
4
4
  SvgMoreHoriz as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgMoreVert = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("circle", { cx: 8, cy: 4, r: 1 }), /* @__PURE__ */ React.createElement("circle", { cx: 8, cy: 12, r: 1 }), /* @__PURE__ */ React.createElement("circle", { cx: 8, cy: 8, r: 1 }));
2
+ const SvgMoreVert = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("circle", { cx: 8, cy: 12, r: 1, transform: "rotate(-90 8 12)", fill: "currentColor" }), /* @__PURE__ */ React.createElement("circle", { cx: 8, cy: 4, r: 1, transform: "rotate(-90 8 4)", fill: "currentColor" }), /* @__PURE__ */ React.createElement("circle", { cx: 8, cy: 8, r: 1, transform: "rotate(-90 8 8)", fill: "currentColor" }));
3
3
  export {
4
4
  SvgMoreVert as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgOpenInNew = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M14.39,16H1.61C0.72,16,0,15.28,0,14.39V1.61C0,0.72,0.72,0,1.61,0h3.93c0.35,0,0.63,0.28,0.63,0.63S5.89,1.25,5.54,1.25 H1.61c-0.2,0-0.36,0.16-0.36,0.36v12.78c0,0.2,0.16,0.36,0.36,0.36h12.78c0.2,0,0.36-0.16,0.36-0.36v-3.93 c0-0.35,0.28-0.63,0.63-0.63c0.35,0,0.63,0.28,0.63,0.63v3.93C16,15.28,15.28,16,14.39,16z" })), /* @__PURE__ */ React.createElement("path", { d: "M15.53,0.48C15.53,0.48,15.53,0.47,15.53,0.48c-0.01-0.01-0.01-0.01-0.01-0.01C15.23,0.18,14.83,0,14.39,0H9.47 C9.13,0,8.85,0.28,8.85,0.63s0.28,0.63,0.63,0.63h4.39L7.41,7.71c-0.24,0.24-0.24,0.64,0,0.89c0.12,0.12,0.28,0.18,0.44,0.18 c0.16,0,0.32-0.06,0.44-0.18l6.45-6.45v4.39c0,0.35,0.28,0.63,0.63,0.63c0.35,0,0.63-0.28,0.63-0.63V1.61 C16,1.17,15.82,0.77,15.53,0.48z" })));
2
+ const SvgOpenInNew = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M15.4074 9.87654C15.1111 9.87654 14.8148 10.1728 14.8148 10.4691V14.4198C14.8148 14.6173 14.6173 14.8148 14.4198 14.8148H1.58025C1.38272 14.8148 1.18519 14.6173 1.18519 14.4198V1.58025C1.18519 1.38272 1.38272 1.18519 1.58025 1.18519H5.53086C5.92593 1.18519 6.12346 0.987654 6.12346 0.592593C6.12346 0.197531 5.92593 0 5.53086 0H1.58025C0.691358 0 0 0.691358 0 1.58025V14.4198C0 15.3086 0.691358 16 1.58025 16H14.4198C15.3086 16 16 15.3086 16 14.4198V10.4691C16 10.1728 15.8025 9.87654 15.4074 9.87654Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M15.605 0.493827C15.3087 0.197531 14.9136 0 14.4198 0H9.4815C9.1852 0 8.88891 0.296296 8.88891 0.592593C8.88891 0.888889 9.1852 1.18519 9.4815 1.18519H13.9259L7.40743 7.7037C7.20989 7.90123 7.20989 8.2963 7.40743 8.59259C7.60496 8.69136 7.70372 8.79012 7.90125 8.79012C8.09878 8.79012 8.19755 8.69136 8.29631 8.59259L14.8148 2.07407V6.51852C14.8148 6.81481 15.1111 7.11111 15.4074 7.11111C15.7037 7.11111 16 6.81481 16 6.51852V1.58025C16 1.18519 15.9013 0.790123 15.605 0.493827Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgOpenInNew as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgRedo = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M-0.01,10c0,3.31,2.7,6,6.01,6h6.9c0.35,0,0.63-0.27,0.63-0.62s-0.28-0.63-0.63-0.63h-6.9c-2.62,0-4.75-2.13-4.75-4.75 s2.13-4.75,4.75-4.75h7.86l-2.93,2.94c-0.24,0.24-0.24,0.64,0,0.88c0.12,0.13,0.28,0.19,0.44,0.19c0.16,0,0.32-0.06,0.44-0.19 l4.01-4c0.06-0.05,0.11-0.12,0.14-0.2c0.06-0.15,0.06-0.33,0-0.48c-0.04-0.07-0.08-0.14-0.14-0.2l-4.01-4 c-0.25-0.24-0.65-0.24-0.89,0s-0.24,0.64,0,0.88L13.86,4H6.02C2.69,4-0.01,6.69-0.01,10z" }));
2
+ const SvgRedo = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.9331 1.06694C10.689 0.822864 10.689 0.427136 10.9331 0.183058C11.1771 -0.0610194 11.5729 -0.0610194 11.8169 0.183058L15.8169 4.18306C15.9402 4.30637 16.0013 4.46838 16 4.62999C16 4.63166 16 4.63333 16 4.63501C16 4.84154 15.8998 5.02467 15.7454 5.13846L11.8169 9.06694C11.5729 9.31102 11.1771 9.31102 10.9331 9.06694C10.689 8.82286 10.689 8.42714 10.9331 8.18306L13.8561 5.26001H6.015C3.39018 5.26001 1.27 7.38019 1.27 10.005C1.27 12.6298 3.39018 14.75 6.015 14.75H12.905C13.2502 14.75 13.53 15.0298 13.53 15.375C13.53 15.7202 13.2502 16 12.905 16H6.015C2.69982 16 0.0199995 13.3202 0.0199995 10.005C0.0199995 6.68983 2.69982 4.01001 6.015 4.01001H13.8761L10.9331 1.06694Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgRedo as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgRichText = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M15.35,1.26H0.64c-0.35,0-0.62-0.28-0.62-0.62s0.28-0.62,0.62-0.62h14.71c0.34,0,0.62,0.28,0.62,0.62 S15.69,1.26,15.35,1.26z" })), /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement("path", { d: "M5.53,5.42h-4.9c-0.35,0-0.62-0.28-0.62-0.62s0.28-0.62,0.62-0.62h4.9c0.35,0,0.62,0.28,0.62,0.62S5.88,5.42,5.53,5.42z" })), /* @__PURE__ */ React.createElement("path", { d: "M14.5,6.55l-5.52,5.52c-0.34,0.34-0.9,0.34-1.24,0l-1.9-1.89c-0.34-0.34-0.9-0.34-1.24,0L0.25,14.5 C-0.3,15.06,0.12,16,0.9,16h14.22c0.48,0,0.88-0.39,0.88-0.88V7.17C16,6.39,15.06,6,14.5,6.55z" }));
2
+ const SvgRichText = (props) => /* @__PURE__ */ React.createElement("svg", { width: 17, height: 16, viewBox: "0 0 17 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("rect", { y: 6, width: 8, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { y: 3, width: 16, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("rect", { width: 16, height: 1.25, rx: 0.625, fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M14.5499 6.94291L8.99503 12.2279C8.66006 12.5536 8.11109 12.5536 7.76682 12.2279L5.88729 10.4135C5.55233 10.0879 5.00336 10.0879 4.65909 10.4135L0.285929 14.5727C-0.263042 15.103 0.127751 16.0056 0.900032 16.0056H15.164C15.6385 16.0056 16.0293 15.6334 16.0293 15.1682V7.5384C16.0293 6.79403 15.0988 6.42185 14.5499 6.94291Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgRichText as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgSandpack = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M15.36,3.02H8.62V0.64C8.62,0.3,8.35,0.02,8,0.02H0.64c-0.35,0-0.62,0.28-0.62,0.62v11.71c0,0.34,0.28,0.62,0.62,0.62h6.73 v2.38c0,0.34,0.28,0.62,0.62,0.62h7.36c0.34,0,0.62-0.28,0.62-0.62V3.64C15.98,3.3,15.7,3.02,15.36,3.02z M1.27,11.73V1.27h6.11 v10.46H1.27z M14.73,14.73H8.62V4.27h6.11V14.73z" }));
2
+ const SvgSandpack = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.625 0C0.279822 0 0 0.279822 0 0.625V12.625C0 12.9702 0.279822 13.25 0.625 13.25H7.3999V15.375C7.3999 15.7202 7.67972 16 8.0249 16H15.3849C15.7301 16 16.0099 15.7202 16.0099 15.375V3.375C16.0099 3.02982 15.7301 2.75 15.3849 2.75H8.61V0.625C8.61 0.279822 8.33018 0 7.985 0H0.625ZM1.25 12V1.25H7.36V12H1.25ZM8.6499 14.75V4H14.7599V14.75H8.6499Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgSandpack as default
5
5
  };
@@ -1,7 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgSettings = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "currentColor", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 24, height: 24, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
- maskType: "alpha"
4
- } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h24v24H0z" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "m9.25 22-.4-3.2a3.79 3.79 0 0 1-.613-.3 8.266 8.266 0 0 1-.562-.375L4.7 19.375l-2.75-4.75 2.575-1.95a2.387 2.387 0 0 1-.025-.338v-.675c0-.108.008-.22.025-.337L1.95 9.375l2.75-4.75 2.975 1.25c.183-.133.375-.258.575-.375.2-.117.4-.217.6-.3l.4-3.2h5.5l.4 3.2c.217.083.42.183.612.3.192.117.38.242.563.375l2.975-1.25 2.75 4.75-2.575 1.95c.017.117.025.23.025.338v.675c0 .108-.017.22-.05.337l2.575 1.95-2.75 4.75-2.95-1.25a6.842 6.842 0 0 1-.575.375c-.2.117-.4.217-.6.3l-.4 3.2h-5.5Zm2.8-6.5c.967 0 1.792-.342 2.475-1.025A3.372 3.372 0 0 0 15.55 12c0-.967-.342-1.792-1.025-2.475A3.373 3.373 0 0 0 12.05 8.5c-.983 0-1.813.342-2.488 1.025A3.393 3.393 0 0 0 8.55 12c0 .967.337 1.792 1.012 2.475.676.683 1.505 1.025 2.488 1.025Zm0-2c-.417 0-.77-.146-1.063-.438A1.446 1.446 0 0 1 10.55 12c0-.417.146-.77.438-1.063a1.446 1.446 0 0 1 1.062-.437c.417 0 .77.146 1.063.438.291.291.437.645.437 1.062 0 .417-.146.77-.438 1.063a1.447 1.447 0 0 1-1.062.437ZM11 20h1.975l.35-2.65a5.61 5.61 0 0 0 1.438-.588c.441-.258.845-.57 1.212-.937l2.475 1.025.975-1.7-2.15-1.625c.083-.233.142-.48.175-.738a6.153 6.153 0 0 0 0-1.575 3.535 3.535 0 0 0-.175-.737l2.15-1.625-.975-1.7-2.475 1.05a5.556 5.556 0 0 0-1.213-.962 5.607 5.607 0 0 0-1.437-.588L13 4h-1.975l-.35 2.65c-.517.133-.996.33-1.438.587a6.015 6.015 0 0 0-1.212.938L5.55 7.15l-.975 1.7 2.15 1.6c-.083.25-.142.5-.175.75a6.122 6.122 0 0 0 0 1.575c.033.25.092.5.175.75l-2.15 1.625.975 1.7 2.475-1.05c.367.383.77.704 1.212.962.442.259.921.455 1.438.588L11 20Z" })));
2
+ const SvgSettings = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_538_820)" }, /* @__PURE__ */ React.createElement("path", { d: "M9.4 12H6.6C6.3 12 6 11.7 6 11.4C6 11.1 6.3 10.8 6.6 10.8H9.4C9.7 10.8 10 11.1 10 11.4C10 11.7 9.7 12 9.4 12Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M7.9999 9.8C7.6999 9.8 7.3999 9.5 7.3999 9.2V0.6C7.3999 0.3 7.6999 0 7.9999 0C8.2999 0 8.5999 0.3 8.5999 0.6V9.1C8.5999 9.5 8.2999 9.8 7.9999 9.8Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M7.9999 16C7.6999 16 7.3999 15.7 7.3999 15.4V13.6C7.3999 13.3 7.6999 13 7.9999 13C8.2999 13 8.5999 13.3 8.5999 13.6V15.4C8.5999 15.7 8.2999 16 7.9999 16Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M3.4 8.60002H0.6C0.3 8.60002 0 8.30002 0 8.00002C0 7.70002 0.3 7.40002 0.6 7.40002H3.4C3.7 7.40002 4 7.70002 4 8.00002C4 8.30002 3.7 8.60002 3.4 8.60002Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M1.9999 6.4C1.6999 6.4 1.3999 6.1 1.3999 5.8V0.6C1.3999 0.3 1.6999 0 1.9999 0C2.2999 0 2.5999 0.3 2.5999 0.6V5.7C2.5999 6.1 2.2999 6.4 1.9999 6.4Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M1.9999 16C1.6999 16 1.3999 15.7 1.3999 15.4V10.3C1.3999 10 1.6999 9.70001 1.9999 9.70001C2.2999 9.70001 2.5999 10 2.5999 10.3V15.4C2.5999 15.7 2.2999 16 1.9999 16Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M12.6 4H15.4C15.7 4 16 4.3 16 4.6C16 4.9 15.7 5.2 15.4 5.2H12.6C12.3 5.2 12 5 12 4.6C12 4.3 12.3 4 12.6 4Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M13.9999 6.20001C14.2999 6.20001 14.5999 6.50001 14.5999 6.80001V15.3C14.5999 15.6 14.2999 15.9 13.9999 15.9C13.6999 15.9 13.3999 15.6 13.3999 15.3V6.90001C13.3999 6.50001 13.6999 6.20001 13.9999 6.20001Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M13.9999 0C14.2999 0 14.5999 0.3 14.5999 0.6V2.4C14.5999 2.7 14.2999 3 13.9999 3C13.6999 3 13.3999 2.7 13.3999 2.4V0.6C13.3999 0.3 13.6999 0 13.9999 0Z", fill: "currentColor" })), /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("clipPath", { id: "clip0_538_820" }, /* @__PURE__ */ React.createElement("rect", { width: 16, height: 16, fill: "white" }))));
5
3
  export {
6
4
  SvgSettings as default
7
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgTable = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M15.38,0H0.62C0.28,0,0,0.28,0,0.62v14.75C0,15.72,0.28,16,0.62,16h14.75c0.34,0,0.62-0.28,0.62-0.62V0.62 C16,0.28,15.72,0,15.38,0z M14.75,4.92h-3.67V1.25h3.67V4.92z M6.17,9.83V6.17h3.67v3.67H6.17z M9.83,11.08v3.67H6.17v-3.67H9.83z M4.92,9.83H1.25V6.17h3.67V9.83z M6.17,4.92V1.25h3.67v3.67H6.17z M11.08,6.17h3.67v3.67h-3.67V6.17z M4.92,1.25v3.67H1.25V1.25 H4.92z M1.25,11.08h3.67v3.67H1.25V11.08z M11.08,14.75v-3.67h3.67v3.67H11.08z" }));
2
+ const SvgTable = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 0.625C0 0.279822 0.279822 0 0.625 0H15.375C15.7202 0 16 0.279822 16 0.625V15.375C16 15.7202 15.7202 16 15.375 16H0.625C0.279822 16 0 15.7202 0 15.375V0.625ZM1.25 1.25V4.91998H4.91992V1.25H1.25ZM1.25 9.84003V6.16998H4.91992V9.84003H1.25ZM1.25 11.09V14.75H4.91992V11.09H1.25ZM6.16992 11.09V14.75H9.83984V11.09H6.16992ZM11.0898 11.09V14.75H14.75V11.09H11.0898ZM14.75 9.84003H11.0898V6.16998H14.75V9.84003ZM9.83984 9.84003H6.16992V6.16998H9.83984V9.84003ZM11.0898 4.91998H14.75V1.25H11.0898V4.91998ZM6.16992 4.91998H9.83984V1.25H6.16992V4.91998Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgTable as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- const SvgUndo = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, x: "0px", y: "0px", viewBox: "0 0 16 16", fill: "currentColor", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M9.99,4H2.14l2.94-2.93c0.24-0.24,0.24-0.64,0-0.88s-0.64-0.24-0.89,0l-4.01,4c-0.06,0.06-0.1,0.13-0.14,0.2 c-0.06,0.15-0.06,0.33,0,0.48c0.03,0.08,0.08,0.15,0.14,0.2l4.01,4C4.31,9.2,4.47,9.26,4.63,9.26S4.95,9.2,5.07,9.07 c0.24-0.24,0.24-0.64,0-0.88L2.14,5.25h7.86c2.62,0,4.75,2.13,4.75,4.75c0,2.62-2.13,4.75-4.75,4.75H3.1 c-0.35,0-0.63,0.28-0.63,0.63S2.75,16,3.1,16h6.9c3.31,0,6.01-2.69,6.01-6S13.31,4,9.99,4z" }));
2
+ const SvgUndo = (props) => /* @__PURE__ */ React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.06694 1.06694C5.31102 0.822864 5.31102 0.427136 5.06694 0.183058C4.82286 -0.0610194 4.42714 -0.0610194 4.18306 0.183058L0.183058 4.18306C0.0597513 4.30637 -0.00126157 4.46838 1.9767e-05 4.62999C6.59717e-06 4.63166 0 4.63333 0 4.63501C0 4.84154 0.100172 5.02467 0.254579 5.13846L4.18306 9.06694C4.42714 9.31102 4.82286 9.31102 5.06694 9.06694C5.31102 8.82286 5.31102 8.42714 5.06694 8.18306L2.14389 5.26001H9.985C12.6098 5.26001 14.73 7.38019 14.73 10.005C14.73 12.6298 12.6098 14.75 9.985 14.75H3.095C2.74982 14.75 2.47 15.0298 2.47 15.375C2.47 15.7202 2.74982 16 3.095 16H9.985C13.3002 16 15.98 13.3202 15.98 10.005C15.98 6.68983 13.3002 4.01001 9.985 4.01001H2.12387L5.06694 1.06694Z", fill: "currentColor" }));
3
3
  export {
4
4
  SvgUndo as default
5
5
  };
@@ -59,6 +59,10 @@ export interface MdastImportVisitor<UN extends Mdast.Content> {
59
59
  * The function that is called when the node is visited. See {@link MdastVisitParams} for details.
60
60
  */
61
61
  visitNode(params: MdastVisitParams<UN>): void;
62
+ /**
63
+ * Default 0, optional, sets the priority of the visitor. The higher the number, the earlier it will be called.
64
+ */
65
+ priority?: number;
62
66
  }
63
67
  /**
64
68
  * The options of the tree import utility. Not meant to be used directly.
@@ -85,6 +89,12 @@ export type MdastExtension = NonNullable<MdastExtensions>[number];
85
89
  * @internal
86
90
  */
87
91
  export type SyntaxExtension = MarkdownParseOptions['syntaxExtensions'][number];
92
+ export declare class MarkdownParseError extends Error {
93
+ constructor(message: string, cause: unknown);
94
+ }
95
+ export declare class UnrecognizedMarkdownConstructError extends Error {
96
+ constructor(message: string);
97
+ }
88
98
  /** @internal */
89
99
  export declare function importMarkdownToLexical({ root, markdown, visitors, syntaxExtensions, mdastExtensions }: MarkdownParseOptions): void;
90
100
  /** @internal */
@@ -1,13 +1,36 @@
1
1
  import { fromMarkdown } from "mdast-util-from-markdown";
2
+ import { toMarkdown } from "mdast-util-to-markdown";
2
3
  function isParent(node) {
3
4
  return node.children instanceof Array;
4
5
  }
6
+ class MarkdownParseError extends Error {
7
+ constructor(message, cause) {
8
+ super(message);
9
+ this.name = "MarkdownParseError";
10
+ this.cause = cause;
11
+ }
12
+ }
13
+ class UnrecognizedMarkdownConstructError extends Error {
14
+ constructor(message) {
15
+ super(message);
16
+ this.name = "UnrecognizedMarkdownConstructError";
17
+ }
18
+ }
5
19
  function importMarkdownToLexical({ root, markdown, visitors, syntaxExtensions, mdastExtensions }) {
6
20
  var _a;
7
- const mdastRoot = fromMarkdown(markdown, {
8
- extensions: syntaxExtensions,
9
- mdastExtensions
10
- });
21
+ let mdastRoot;
22
+ try {
23
+ mdastRoot = fromMarkdown(markdown, {
24
+ extensions: syntaxExtensions,
25
+ mdastExtensions
26
+ });
27
+ } catch (e) {
28
+ if (e instanceof Error) {
29
+ throw new MarkdownParseError(`Error parsing markdown: ${e.message}`, e);
30
+ } else {
31
+ throw new MarkdownParseError(`Error parsing markdown: ${e}`, e);
32
+ }
33
+ }
11
34
  if (mdastRoot.children.length === 0) {
12
35
  mdastRoot.children.push({ type: "paragraph", children: [] });
13
36
  }
@@ -18,6 +41,7 @@ function importMarkdownToLexical({ root, markdown, visitors, syntaxExtensions, m
18
41
  }
19
42
  function importMdastTreeToLexical({ root, mdastRoot, visitors }) {
20
43
  const formattingMap = /* @__PURE__ */ new WeakMap();
44
+ visitors = visitors.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
21
45
  function visitChildren(mdastNode, lexicalParent) {
22
46
  if (!isParent(mdastNode)) {
23
47
  throw new Error("Attempting to visit children of a non-parent");
@@ -32,9 +56,7 @@ function importMdastTreeToLexical({ root, mdastRoot, visitors }) {
32
56
  return visitor2.testNode(mdastNode);
33
57
  });
34
58
  if (!visitor) {
35
- throw new Error(`no MdastImportVisitor found for ${mdastNode.type} ${JSON.stringify(mdastNode)}`, {
36
- cause: mdastNode
37
- });
59
+ throw new UnrecognizedMarkdownConstructError(`Unsupported markdown syntax: ${toMarkdown(mdastNode)}`);
38
60
  }
39
61
  visitor.visitNode({
40
62
  //@ts-expect-error root type is glitching
@@ -64,6 +86,8 @@ function importMdastTreeToLexical({ root, mdastRoot, visitors }) {
64
86
  visit(mdastRoot, root, null);
65
87
  }
66
88
  export {
89
+ MarkdownParseError,
90
+ UnrecognizedMarkdownConstructError,
67
91
  importMarkdownToLexical,
68
92
  importMdastTreeToLexical
69
93
  };
package/dist/index.d.ts CHANGED
@@ -51,4 +51,12 @@ export * from './plugins/toolbar/primitives/TooltipWrap';
51
51
  export * from './plugins/toolbar/primitives/select';
52
52
  export * from './plugins/core/NestedLexicalEditor';
53
53
  export * from './plugins/core/PropertyPopover';
54
+ export * from './utils/detectMac';
55
+ export * from './utils/fp';
56
+ export * from './utils/isPartOftheEditorUI';
57
+ export * from './utils/lexicalHelpers';
58
+ export * from './utils/makeHslTransparent';
59
+ export * from './utils/uuid4';
60
+ export * from './utils/voidEmitter';
61
+ export * from './utils/whitespaceConversion';
54
62
  export * from './gurx';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./styles/globals.css.js";
2
2
  import { MDXEditor } from "./MDXEditor.js";
3
- import { importMarkdownToLexical, importMdastTreeToLexical } from "./importMarkdownToLexical.js";
3
+ import { MarkdownParseError, UnrecognizedMarkdownConstructError, importMarkdownToLexical, importMdastTreeToLexical } from "./importMarkdownToLexical.js";
4
4
  import { exportLexicalTreeToMdast, exportMarkdownFromLexical } from "./exportMarkdownFromLexical.js";
5
5
  import { NESTED_EDITOR_UPDATED_COMMAND, corePlugin, corePluginHooks, coreSystem } from "./plugins/core/index.js";
6
6
  import { headingsPlugin, headingsPluginHooks, headingsSystem } from "./plugins/headings/index.js";
@@ -11,7 +11,7 @@ import { linkPlugin } from "./plugins/link/index.js";
11
11
  import { INSERT_IMAGE_COMMAND, imagePlugin, imagePluginHooks, imageSystem } from "./plugins/image/index.js";
12
12
  import { frontmatterPlugin, frontmatterPluginHooks, frontmatterSystem } from "./plugins/frontmatter/index.js";
13
13
  import { quotePlugin, quotePluginHooks } from "./plugins/quote/index.js";
14
- import { jsxPlugin, jsxPluginHooks, jsxSystem } from "./plugins/jsx/index.js";
14
+ import { isMdastJsxNode, jsxPlugin, jsxPluginHooks, jsxSystem } from "./plugins/jsx/index.js";
15
15
  import { GenericJsxEditor } from "./jsx-editors/GenericJsxEditor.js";
16
16
  import { sandpackPlugin, sandpackPluginHooks, sandpackSystem } from "./plugins/sandpack/index.js";
17
17
  import { codeMirrorHooks, codeMirrorPlugin, codeMirrorSystem } from "./plugins/codemirror/index.js";
@@ -48,13 +48,24 @@ import { TooltipWrap } from "./plugins/toolbar/primitives/TooltipWrap.js";
48
48
  import { Select, SelectButtonTrigger, SelectContent, SelectItem, SelectTrigger } from "./plugins/toolbar/primitives/select.js";
49
49
  import { NestedEditorsContext, NestedLexicalEditor, useLexicalNodeRemove, useMdastNodeUpdater, useNestedEditorContext } from "./plugins/core/NestedLexicalEditor.js";
50
50
  import { PropertyPopover } from "./plugins/core/PropertyPopover.js";
51
+ import { CAN_USE_DOM, IS_APPLE, controlOrMeta } from "./utils/detectMac.js";
52
+ import { always, call, compose, curry1to0, curry2to1, joinProc, noop, prop, tap, thrush } from "./utils/fp.js";
53
+ import { isPartOftheEditorUI } from "./utils/isPartOftheEditorUI.js";
54
+ import { fromWithinEditorRead, getSelectedNode, getSelectionRectangle, getStateAsMarkdown } from "./utils/lexicalHelpers.js";
55
+ import { makeHslTransparent } from "./utils/makeHslTransparent.js";
56
+ import { uuidv4 } from "./utils/uuid4.js";
57
+ import { voidEmitter } from "./utils/voidEmitter.js";
58
+ import { WHITESPACE_MARKER, replaceWhitespace } from "./utils/whitespaceConversion.js";
59
+ import { $createGenericHTMLNode, $isGenericHTMLNode, GenericHTMLNode } from "./plugins/core/GenericHTMLNode.js";
51
60
  import { $createImageNode, $isImageNode, ImageNode } from "./plugins/image/ImageNode.js";
52
61
  import { useCodeBlockEditorContext } from "./plugins/codeblock/CodeBlockNode.js";
53
62
  import { RefCount, defaultComparator, realm } from "./gurx/realm.js";
54
63
  import { RealmPluginInitializer, RequirePlugin, realmFactoryToComponent, realmPlugin, sysHooks, useHasPlugin } from "./gurx/react.js";
55
64
  import { getRealmFactory, realmFactory, system } from "./gurx/realmFactory.js";
56
65
  export {
66
+ $createGenericHTMLNode,
57
67
  $createImageNode,
68
+ $isGenericHTMLNode,
58
69
  $isImageNode,
59
70
  ADMONITION_TYPES,
60
71
  AdmonitionDirectiveDescriptor,
@@ -63,6 +74,7 @@ export {
63
74
  Button,
64
75
  ButtonOrDropdownButton,
65
76
  ButtonWithTooltip,
77
+ CAN_USE_DOM,
66
78
  ChangeAdmonitionType,
67
79
  ChangeCodeMirrorLanguage,
68
80
  CodeMirrorEditor,
@@ -72,8 +84,10 @@ export {
72
84
  DialogButton,
73
85
  DiffSourceToggleWrapper,
74
86
  GenericDirectiveEditor,
87
+ GenericHTMLNode,
75
88
  GenericJsxEditor,
76
89
  INSERT_IMAGE_COMMAND,
90
+ IS_APPLE,
77
91
  ImageNode,
78
92
  InsertAdmonition,
79
93
  InsertCodeBlock,
@@ -85,6 +99,7 @@ export {
85
99
  KitchenSinkToolbar,
86
100
  ListsToggle,
87
101
  MDXEditor,
102
+ MarkdownParseError,
88
103
  MultipleChoiceToggleGroup,
89
104
  NESTED_EDITOR_UPDATED_COMMAND,
90
105
  NestedEditorsContext,
@@ -107,15 +122,23 @@ export {
107
122
  ToolbarToggleItem,
108
123
  TooltipWrap,
109
124
  UndoRedo,
125
+ UnrecognizedMarkdownConstructError,
126
+ WHITESPACE_MARKER,
127
+ always,
128
+ call,
110
129
  codeBlockPlugin,
111
130
  codeBlockPluginHooks,
112
131
  codeBlockSystem,
113
132
  codeMirrorHooks,
114
133
  codeMirrorPlugin,
115
134
  codeMirrorSystem,
135
+ compose,
136
+ controlOrMeta,
116
137
  corePlugin,
117
138
  corePluginHooks,
118
139
  coreSystem,
140
+ curry1to0,
141
+ curry2to1,
119
142
  defaultComparator,
120
143
  diffSourcePlugin,
121
144
  diffSourcePluginHooks,
@@ -125,10 +148,14 @@ export {
125
148
  directivesSystem,
126
149
  exportLexicalTreeToMdast,
127
150
  exportMarkdownFromLexical,
151
+ fromWithinEditorRead,
128
152
  frontmatterPlugin,
129
153
  frontmatterPluginHooks,
130
154
  frontmatterSystem,
131
155
  getRealmFactory,
156
+ getSelectedNode,
157
+ getSelectionRectangle,
158
+ getStateAsMarkdown,
132
159
  headingsPlugin,
133
160
  headingsPluginHooks,
134
161
  headingsSystem,
@@ -137,6 +164,9 @@ export {
137
164
  imageSystem,
138
165
  importMarkdownToLexical,
139
166
  importMdastTreeToLexical,
167
+ isMdastJsxNode,
168
+ isPartOftheEditorUI,
169
+ joinProc,
140
170
  jsxPlugin,
141
171
  jsxPluginHooks,
142
172
  jsxSystem,
@@ -146,13 +176,17 @@ export {
146
176
  listsPlugin,
147
177
  listsPluginHooks,
148
178
  listsSystem,
179
+ makeHslTransparent,
149
180
  markdownShortcutPlugin,
181
+ noop,
182
+ prop,
150
183
  quotePlugin,
151
184
  quotePluginHooks,
152
185
  realm,
153
186
  realmFactory,
154
187
  realmFactoryToComponent,
155
188
  realmPlugin,
189
+ replaceWhitespace,
156
190
  sandpackPlugin,
157
191
  sandpackPluginHooks,
158
192
  sandpackSystem,
@@ -161,9 +195,11 @@ export {
161
195
  tablePlugin,
162
196
  tablePluginHooks,
163
197
  tableSystem,
198
+ tap,
164
199
  thematicBreakPlugin,
165
200
  thematicBreakPluginHooks,
166
201
  thematicBreakSystem,
202
+ thrush,
167
203
  toolbarPlugin,
168
204
  toolbarPluginHooks,
169
205
  toolbarSystem,
@@ -171,5 +207,7 @@ export {
171
207
  useHasPlugin,
172
208
  useLexicalNodeRemove,
173
209
  useMdastNodeUpdater,
174
- useNestedEditorContext
210
+ useNestedEditorContext,
211
+ uuidv4,
212
+ voidEmitter
175
213
  };