@clevertask/scribe 0.0.11 → 0.0.12
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/assets/index.css +1 -1
- package/dist/components/Menu/BubbleMenu.js +1 -1
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts +6 -0
- package/dist/components/Menu/Mobile/ListOptionBar.js +40 -0
- package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
- package/dist/components/Scribe/extension/extension-link.js +240 -244
- package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
- package/dist/components/Scribe/extension/index.d.ts +1 -1
- package/dist/components/Scribe/extension/index.js +24 -25
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +5 -5
- package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +2 -2
- package/dist/components/Scribe/index.d.ts +1 -0
- package/dist/components/Scribe/index.js +83 -60
- package/dist/index-B0pieAxt.js +160 -0
- package/dist/{index-CasgquAq.js → index-CCS9HOYd.js} +16838 -5188
- package/dist/{index-DeZ8laak.js → index-DoNRu1rY.js} +1573 -1513
- package/dist/index-VneQGVTd.js +2385 -0
- package/dist/main.css +4 -4
- package/dist/marked.esm-BS_MmRZC.js +1566 -0
- package/dist/purify.es-BGaRrCfO.js +553 -0
- package/dist/turndown.browser.es-RmA_HBaI.js +649 -0
- package/dist/utils/create-scribe-editor.js +7 -6
- package/dist/utils/html-to-markdown.js +7 -6
- package/dist/utils/markdown-to-html.js +4 -3
- package/package.json +13 -12
- package/dist/browser-BJWkU9cc.js +0 -2106
- package/dist/components/Scribe/extension/math-extension.d.ts +0 -2
- package/dist/components/Scribe/extension/math-extension.js +0 -11770
- package/dist/index-BqFHWqw6.js +0 -156
- package/dist/index-C_aWB8qt.js +0 -2291
- package/dist/turndown.browser.es-C1wFFc_i.js +0 -1172
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { B as o } from "../../index-
|
|
2
|
+
import { B as o } from "../../index-VneQGVTd.js";
|
|
3
3
|
const l = ({ editor: n }) => /* @__PURE__ */ e(o, { className: "bubble-menu-wrapper", editor: n, children: /* @__PURE__ */ e("div", { className: "menu-item-wrapper", children: [
|
|
4
4
|
{
|
|
5
5
|
ariaLabel: "Heading 1",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsxs as e, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { u as r } from "../../../index-VneQGVTd.js";
|
|
3
|
+
const c = ({ editor: t }) => {
|
|
4
|
+
const i = r({
|
|
5
|
+
editor: t,
|
|
6
|
+
selector: ({ editor: n }) => n ? {
|
|
7
|
+
isInsideList: n.isActive("bulletList") || n.isActive("orderedList")
|
|
8
|
+
} : null
|
|
9
|
+
});
|
|
10
|
+
return i != null && i.isInsideList ? /* @__PURE__ */ e(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
style: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
justifyContent: "space-between",
|
|
16
|
+
padding: "1rem",
|
|
17
|
+
paddingTop: "0rem"
|
|
18
|
+
},
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ s(
|
|
21
|
+
"button",
|
|
22
|
+
{
|
|
23
|
+
onClick: () => t.chain().focus().liftListItem("listItem").run(),
|
|
24
|
+
children: "← Outdent"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ s(
|
|
28
|
+
"button",
|
|
29
|
+
{
|
|
30
|
+
onClick: () => t.chain().focus().sinkListItem("listItem").run(),
|
|
31
|
+
children: "Indent →"
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
) : null;
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
c as ListOptionBar
|
|
40
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as s, t as a } from "../../../../index-
|
|
1
|
+
import { R as s, t as a } from "../../../../index-VneQGVTd.js";
|
|
2
2
|
import { EmojiList as c } from "./EmojiList.js";
|
|
3
3
|
const m = ({ darkMode: i }) => ({
|
|
4
4
|
items: ({ editor: t, query: r }) => t.storage.emoji.emojis.filter(({ shortcodes: e, tags: o }) => e.find((n) => n.startsWith(r.toLowerCase())) || o.find((n) => n.startsWith(r.toLowerCase()))).slice(0, 5),
|