@clevertask/scribe 0.1.3 → 0.1.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 (32) hide show
  1. package/dist/{BarMenu-DaKIz3zZ.js → BarMenu-BNk2I0zi.js} +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/Menu/BarMenu.js +2 -2
  4. package/dist/components/Menu/BubbleMenu.js +378 -1445
  5. package/dist/components/Menu/Mobile/ListOptionBar.d.ts +1 -1
  6. package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -1
  7. package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
  8. package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
  9. package/dist/components/Scribe/extension/extension-link.js +1 -1
  10. package/dist/components/Scribe/extension/extension-markdown-paste.js +2 -2
  11. package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
  12. package/dist/components/Scribe/extension/index.js +5735 -3383
  13. package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
  14. package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
  15. package/dist/components/Scribe/extension/tableOfContents.js +1 -1
  16. package/dist/components/Scribe/index.js +5 -5
  17. package/dist/{extension-link-Ch_T7WWG.js → extension-link-P1rro4zO.js} +247 -218
  18. package/dist/floating-ui.dom-ZRy7FSVk.js +1246 -0
  19. package/dist/{index-DxF-1P4n.js → index-BMISMQrG.js} +168 -147
  20. package/dist/{index-CqzMmrnw.js → index-ByyiiYsp.js} +1 -1
  21. package/dist/{index-BiBV5TQx.js → index-CnKS-BY2.js} +2644 -2323
  22. package/dist/index-CnQHDObA.js +539 -0
  23. package/dist/main.js +1 -1
  24. package/dist/{markdown-to-html-pL7ckd-m.js → markdown-to-html-Bw9L43K6.js} +1 -1
  25. package/dist/purify.es-DC1iJOxX.js +864 -0
  26. package/dist/utils/create-scribe-editor.js +3 -3
  27. package/dist/utils/html-to-markdown.js +1 -1
  28. package/dist/utils/index.js +1 -1
  29. package/dist/utils/markdown-to-html.js +2 -2
  30. package/package.json +31 -31
  31. package/dist/index-V-gN11Y9.js +0 -249
  32. package/dist/purify.es-exIQuqhb.js +0 -595
@@ -1,5 +1,5 @@
1
- import "../../../../index-BiBV5TQx.js";
2
- import { a as o, s as e } from "../../../../index-V-gN11Y9.js";
1
+ import "../../../../index-CnKS-BY2.js";
2
+ import { a as o, s as e } from "../../../../index-CnQHDObA.js";
3
3
  export {
4
4
  o as SlashCommand,
5
5
  e as slashMenuPluginKey
@@ -1,4 +1,4 @@
1
- import { R as o } from "../../../../index-DxF-1P4n.js";
1
+ import { R as o } from "../../../../index-BMISMQrG.js";
2
2
  import { t as s } from "../../../../tippy.esm-DLHdsnfG.js";
3
3
  import { getPopupMountTarget as a } from "../getPopupMountTarget.js";
4
4
  import { SlashCommandList as l } from "./SlashCommandList.js";
@@ -1,4 +1,4 @@
1
- import { P as v, a as C, b as w } from "../../../index-BiBV5TQx.js";
1
+ import { P as v, a as C, b as w } from "../../../index-CnKS-BY2.js";
2
2
  const u = "scribeTableOfContents", S = new v("scribeTableOfContents"), T = 10, b = (e) => e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "heading", m = (e, t) => {
3
3
  const n = t[t.length - 1], s = [...t].reverse().find((r) => r.originalLevel <= e.node.attrs.level)?.level || 1;
4
4
  return e.node.attrs.level > (n?.originalLevel || 1) ? (n?.level || 1) + 1 : e.node.attrs.level < (n?.originalLevel || 1) ? s : n?.level || 1;
@@ -1,12 +1,12 @@
1
1
  import { jsxs as I, jsx as a } from "react/jsx-runtime";
2
- import { B as A, c as b } from "../../BarMenu-DaKIz3zZ.js";
2
+ import { B as A, c as b } from "../../BarMenu-BNk2I0zi.js";
3
3
  import { html2md as N } from "../../utils/html-to-markdown.js";
4
- import "../../markdown-to-html-pL7ckd-m.js";
5
- import "../../purify.es-exIQuqhb.js";
6
- import { E as F } from "../../index-BiBV5TQx.js";
4
+ import "../../markdown-to-html-Bw9L43K6.js";
5
+ import "../../purify.es-DC1iJOxX.js";
6
+ import { E as F } from "../../index-CnKS-BY2.js";
7
7
  import { initExtensions as J } from "./extension/index.js";
8
8
  import { SCRIBE_TABLE_OF_CONTENTS_META as U } from "./extension/tableOfContents.js";
9
- import { E as V } from "../../index-DxF-1P4n.js";
9
+ import { E as V } from "../../index-BMISMQrG.js";
10
10
  import { forwardRef as K, useRef as E, useEffect as c, useCallback as r, useState as q, useImperativeHandle as G } from "react";
11
11
  import { ListOptionBar as Q } from "../Menu/Mobile/ListOptionBar.js";
12
12
  import { SuggestionItemType as mt } from "./extension/slashCommand/items.js";