@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
@@ -2,6 +2,6 @@ import { Editor } from "@tiptap/core";
2
2
  type ListOptionBarProps = {
3
3
  editor: Editor;
4
4
  };
5
- export declare const ListOptionBar: ({ editor }: ListOptionBarProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export declare const ListOptionBar: ({ editor }: ListOptionBarProps) => import("react").JSX.Element | null;
6
6
  export {};
7
7
  //# sourceMappingURL=ListOptionBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListOptionBar.d.ts","sourceRoot":"","sources":["../../../../lib/components/Menu/Mobile/ListOptionBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,kBAAkB,mDAiD3D,CAAC"}
1
+ {"version":3,"file":"ListOptionBar.d.ts","sourceRoot":"","sources":["../../../../lib/components/Menu/Mobile/ListOptionBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,kBAAkB,uCAiD3D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
2
  import { Flex as a, Button as r } from "@radix-ui/themes";
3
- import { u } from "../../../index-DxF-1P4n.js";
3
+ import { u } from "../../../index-BMISMQrG.js";
4
4
  import { useCallback as c } from "react";
5
5
  const p = ({ editor: e }) => {
6
6
  const i = u({
@@ -1,5 +1,5 @@
1
1
  import { t as i } from "../../../../tippy.esm-DLHdsnfG.js";
2
- import { R as a } from "../../../../index-DxF-1P4n.js";
2
+ import { R as a } from "../../../../index-BMISMQrG.js";
3
3
  import { getPopupMountTarget as s } from "../getPopupMountTarget.js";
4
4
  import { EmojiList as c } from "./EmojiList.js";
5
5
  const u = () => ({
@@ -1,4 +1,4 @@
1
- import { a as f } from "../../../extension-link-Ch_T7WWG.js";
1
+ import { a as f } from "../../../extension-link-P1rro4zO.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
- import { P as d, a as u, b as f } from "../../../index-BiBV5TQx.js";
2
- import { m as h, g as m } from "../../../markdown-to-html-pL7ckd-m.js";
1
+ import { P as d, a as u, b as f } from "../../../index-CnKS-BY2.js";
2
+ import { m as h, g as m } from "../../../markdown-to-html-Bw9L43K6.js";
3
3
  const p = new d("markdownPaste"), k = /* @__PURE__ */ new Set(["blockquote", "code", "heading", "hr", "list", "table"]), y = /* @__PURE__ */ new Set(["codespan", "del", "em", "strong"]), T = (e) => e.type === "image" ? e.raw.startsWith("![") : e.type === "link" ? e.raw.startsWith("[") : !1, i = (e) => e.some((t) => k.has(t.type) || y.has(t.type) || T(t) || "tokens" in t && Array.isArray(t.tokens) && i(t.tokens) ? !0 : "items" in t && Array.isArray(t.items) ? t.items.some((s) => i(s.tokens)) : !1), b = (e) => {
4
4
  const t = e.trim();
5
5
  return t ? i(m.lexer(t)) : !1;
@@ -1,4 +1,4 @@
1
- import { a as o } from "../../../index-BiBV5TQx.js";
1
+ import { a as o } from "../../../index-CnKS-BY2.js";
2
2
  const s = o.create({
3
3
  name: "SelectedText",
4
4
  addCommands: () => ({