@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.
- package/dist/{BarMenu-DaKIz3zZ.js → BarMenu-BNk2I0zi.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/Menu/BarMenu.js +2 -2
- package/dist/components/Menu/BubbleMenu.js +378 -1445
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts +1 -1
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -1
- package/dist/components/Menu/Mobile/ListOptionBar.js +1 -1
- package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
- package/dist/components/Scribe/extension/extension-link.js +1 -1
- package/dist/components/Scribe/extension/extension-markdown-paste.js +2 -2
- package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
- package/dist/components/Scribe/extension/index.js +5735 -3383
- package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
- package/dist/components/Scribe/extension/tableOfContents.js +1 -1
- package/dist/components/Scribe/index.js +5 -5
- package/dist/{extension-link-Ch_T7WWG.js → extension-link-P1rro4zO.js} +247 -218
- package/dist/floating-ui.dom-ZRy7FSVk.js +1246 -0
- package/dist/{index-DxF-1P4n.js → index-BMISMQrG.js} +168 -147
- package/dist/{index-CqzMmrnw.js → index-ByyiiYsp.js} +1 -1
- package/dist/{index-BiBV5TQx.js → index-CnKS-BY2.js} +2644 -2323
- package/dist/index-CnQHDObA.js +539 -0
- package/dist/main.js +1 -1
- package/dist/{markdown-to-html-pL7ckd-m.js → markdown-to-html-Bw9L43K6.js} +1 -1
- package/dist/purify.es-DC1iJOxX.js +864 -0
- package/dist/utils/create-scribe-editor.js +3 -3
- package/dist/utils/html-to-markdown.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/markdown-to-html.js +2 -2
- package/package.json +31 -31
- package/dist/index-V-gN11Y9.js +0 -249
- 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
|
|
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,
|
|
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-
|
|
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-
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { P as d, a as u, b as f } from "../../../index-
|
|
2
|
-
import { m as h, g as m } from "../../../markdown-to-html-
|
|
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;
|