@clevertask/scribe 0.1.4 → 0.1.5
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/README.md +3 -0
- package/dist/BarMenu-V1uRL3bt.js +272 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Menu/BarMenu.d.ts.map +1 -1
- package/dist/components/Menu/BarMenu.js +2 -10
- package/dist/components/Menu/BubbleMenu.d.ts.map +1 -1
- package/dist/components/Menu/BubbleMenu.js +165 -1023
- package/dist/components/Menu/LinkBubbleMenu.d.ts +8 -0
- package/dist/components/Menu/LinkBubbleMenu.d.ts.map +1 -0
- package/dist/components/Menu/LinkBubbleMenu.js +78 -0
- package/dist/components/Menu/LinkEditor.d.ts +14 -0
- package/dist/components/Menu/LinkEditor.d.ts.map +1 -0
- package/dist/components/Menu/LinkEditor.js +140 -0
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -1
- package/dist/components/Menu/Mobile/ListOptionBar.js +38 -44
- package/dist/components/Menu/linkBubbleMenuPlugin.d.ts +5 -0
- package/dist/components/Menu/linkBubbleMenuPlugin.d.ts.map +1 -0
- package/dist/components/Menu/linkBubbleMenuPlugin.js +7 -0
- package/dist/components/Menu/linkUrl.d.ts +2 -0
- package/dist/components/Menu/linkUrl.d.ts.map +1 -0
- package/dist/components/Menu/linkUrl.js +21 -0
- package/dist/components/Scribe/extension/emoji/EmojiList.js +58 -45
- package/dist/components/Scribe/extension/emoji/suggest.d.ts +2 -2
- package/dist/components/Scribe/extension/emoji/suggest.d.ts.map +1 -1
- package/dist/components/Scribe/extension/emoji/suggest.js +39 -43
- package/dist/components/Scribe/extension/extension-link.d.ts.map +1 -1
- package/dist/components/Scribe/extension/extension-link.js +2 -4
- package/dist/components/Scribe/extension/extension-markdown-paste.d.ts.map +1 -1
- package/dist/components/Scribe/extension/extension-markdown-paste.js +50 -45
- package/dist/components/Scribe/extension/extension-selectedText.d.ts.map +1 -1
- package/dist/components/Scribe/extension/extension-selectedText.js +10 -12
- package/dist/components/Scribe/extension/getPopupMountTarget.d.ts.map +1 -1
- package/dist/components/Scribe/extension/getPopupMountTarget.js +12 -15
- package/dist/components/Scribe/extension/index.d.ts +4 -4
- package/dist/components/Scribe/extension/index.d.ts.map +1 -1
- package/dist/components/Scribe/extension/index.js +2 -39521
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +3369 -3731
- package/dist/components/Scribe/extension/slashCommand/index.js +2 -6
- package/dist/components/Scribe/extension/slashCommand/items.d.ts.map +1 -1
- package/dist/components/Scribe/extension/slashCommand/items.js +177 -176
- package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts.map +1 -1
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +35 -41
- package/dist/components/Scribe/extension/tableOfContents.js +153 -180
- package/dist/components/Scribe/index.d.ts.map +1 -1
- package/dist/components/Scribe/index.js +113 -153
- package/dist/dist-BQjH-i-q.js +7016 -0
- package/dist/dist-CnXCIcnl.js +3506 -0
- package/dist/dist-RuuEA1GJ.js +686 -0
- package/dist/extension-CZOsheCI.js +56236 -0
- package/dist/extension-link-DZID_SYl.js +908 -0
- package/dist/floating-ui.dom-rih69525.js +928 -0
- package/dist/html-to-markdown-CrNOkSye.js +497 -0
- package/dist/icons/ToolbarIcons.d.ts.map +1 -1
- package/dist/icons/ToolbarIcons.js +76 -135
- package/dist/main.css +10 -0
- package/dist/main.js +7 -15
- package/dist/markdown-to-html-DEczPfuq.js +1458 -0
- package/dist/menus-CzX7kyXn.js +633 -0
- package/dist/purify.es-DF9CW1cl.js +767 -0
- package/dist/rolldown-runtime-B8UxIWdF.js +7 -0
- package/dist/slashCommand-B7CRIaKG.js +429 -0
- package/dist/tables-CjOC70rm.js +1345 -0
- package/dist/tippy.esm-D9LL2xiE.js +1713 -0
- package/dist/utils/convert-legacy-math-delimiters.d.ts.map +1 -1
- package/dist/utils/convert-legacy-math-delimiters.js +7 -13
- package/dist/utils/create-scribe-editor.js +2 -31
- package/dist/utils/html-to-markdown.d.ts.map +1 -1
- package/dist/utils/html-to-markdown.js +2 -600
- package/dist/utils/index.js +24 -12
- package/dist/utils/is-in-viewport.d.ts.map +1 -1
- package/dist/utils/is-in-viewport.js +6 -6
- package/dist/utils/markdown-to-html.d.ts.map +1 -1
- package/dist/utils/markdown-to-html.js +2 -5
- package/dist/vite-env.d.js +0 -1
- package/package.json +36 -34
- package/dist/BarMenu-BNk2I0zi.js +0 -327
- package/dist/extension-link-P1rro4zO.js +0 -1059
- package/dist/floating-ui.dom-ZRy7FSVk.js +0 -1246
- package/dist/index-BMISMQrG.js +0 -855
- package/dist/index-ByyiiYsp.js +0 -1410
- package/dist/index-CnKS-BY2.js +0 -13834
- package/dist/index-CnQHDObA.js +0 -539
- package/dist/markdown-to-html-Bw9L43K6.js +0 -1135
- package/dist/purify.es-DC1iJOxX.js +0 -864
- package/dist/tippy.esm-DLHdsnfG.js +0 -1711
|
@@ -1,135 +1,76 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
fill: C
|
|
78
|
-
}
|
|
79
|
-
)), x = o("LinkIcon", (C) => /* @__PURE__ */ n(t, { children: [
|
|
80
|
-
/* @__PURE__ */ L(
|
|
81
|
-
"path",
|
|
82
|
-
{
|
|
83
|
-
d: "M22.2813 8.225C21.9329 7.8754 21.5189 7.59801 21.0631 7.40874C20.6073 7.21947 20.1186 7.12204 19.625 7.12204C19.1315 7.12204 18.6428 7.21947 18.187 7.40874C17.7312 7.59801 17.3172 7.8754 16.9688 8.225L17.8563 9.1125C18.089 8.87981 18.3652 8.69523 18.6692 8.56931C18.9733 8.44338 19.2991 8.37856 19.6282 8.37856C19.9572 8.37856 20.2831 8.44338 20.5871 8.56931C20.8911 8.69523 21.1674 8.87981 21.4 9.1125C21.6327 9.34518 21.8173 9.62142 21.9432 9.92544C22.0692 10.2295 22.134 10.5553 22.134 10.8844C22.134 11.2134 22.0692 11.5393 21.9432 11.8433C21.8173 12.1473 21.6327 12.4236 21.4 12.6562L16.4 17.6562C15.9309 18.1262 15.2944 18.3905 14.6304 18.3911C13.9664 18.3917 13.3293 18.1285 12.8594 17.6594C12.3895 17.1903 12.1252 16.5537 12.1246 15.8897C12.124 15.2257 12.3872 14.5887 12.8563 14.1187L13.7375 13.2312L12.8563 12.3437L11.9688 13.2312C11.6192 13.5796 11.3418 13.9936 11.1525 14.4494C10.9633 14.9052 10.8658 15.3939 10.8658 15.8875C10.8658 16.381 10.9633 16.8697 11.1525 17.3256C11.3418 17.7814 11.6192 18.1954 11.9688 18.5437C12.676 19.2419 13.6313 19.6308 14.625 19.625C15.1205 19.627 15.6114 19.5309 16.0695 19.3421C16.5276 19.1533 16.9437 18.8756 17.2938 18.525L22.2938 13.525C22.9944 12.8202 23.3866 11.8662 23.3842 10.8724C23.3819 9.87866 22.9852 8.92647 22.2813 8.225Z",
|
|
84
|
-
fill: C
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
/* @__PURE__ */ L(
|
|
88
|
-
"path",
|
|
89
|
-
{
|
|
90
|
-
d: "M6.61879 19.5125C6.38541 19.2802 6.20022 19.0041 6.07386 18.7C5.94749 18.3959 5.88244 18.0699 5.88244 17.7406C5.88244 17.4113 5.94749 17.0853 6.07386 16.7812C6.20022 16.4772 6.38541 16.201 6.61879 15.9687L11.6188 10.9687C11.8511 10.7354 12.1272 10.5502 12.4313 10.4238C12.7353 10.2974 13.0614 10.2324 13.3907 10.2324C13.7199 10.2324 14.046 10.2974 14.3501 10.4238C14.6541 10.5502 14.9302 10.7354 15.1625 10.9687C15.3944 11.2029 15.577 11.4812 15.6994 11.7871C15.8218 12.0931 15.8815 12.4205 15.875 12.75C15.8769 13.0805 15.8133 13.4081 15.6878 13.7138C15.5623 14.0196 15.3774 14.2974 15.1438 14.5312L13.8188 15.875L14.7063 16.7625L16.0313 15.4375C16.7366 14.7322 17.1328 13.7756 17.1328 12.7781C17.1328 11.7807 16.7366 10.8241 16.0313 10.1187C15.326 9.41344 14.3694 9.0172 13.3719 9.0172C12.3745 9.0172 11.4179 9.41344 10.7125 10.1187L5.71254 15.1187C5.362 15.4672 5.08382 15.8816 4.89399 16.338C4.70417 16.7944 4.60645 17.2838 4.60645 17.7781C4.60645 18.2724 4.70417 18.7618 4.89399 19.2182C5.08382 19.6746 5.362 20.089 5.71254 20.4375C6.42431 21.1303 7.38185 21.5124 8.37504 21.5C9.37698 21.501 10.3386 21.1055 11.05 20.4L10.1625 19.5125C9.93025 19.7459 9.65413 19.9311 9.35006 20.0574C9.04599 20.1838 8.71995 20.2488 8.39067 20.2488C8.06138 20.2488 7.73534 20.1838 7.43127 20.0574C7.1272 19.9311 6.85109 19.7459 6.61879 19.5125Z",
|
|
91
|
-
fill: C
|
|
92
|
-
}
|
|
93
|
-
)
|
|
94
|
-
] })), v = o("ImageIcon", (C) => /* @__PURE__ */ n(t, { children: [
|
|
95
|
-
/* @__PURE__ */ L(
|
|
96
|
-
"path",
|
|
97
|
-
{
|
|
98
|
-
d: "M15.875 12.75C16.2458 12.75 16.6084 12.64 16.9167 12.434C17.225 12.228 17.4654 11.9351 17.6073 11.5925C17.7492 11.2499 17.7863 10.8729 17.714 10.5092C17.6416 10.1455 17.463 9.8114 17.2008 9.54917C16.9386 9.28695 16.6045 9.10837 16.2408 9.03603C15.8771 8.96368 15.5001 9.00081 15.1575 9.14273C14.8149 9.28464 14.522 9.52496 14.316 9.83331C14.11 10.1416 14 10.5042 14 10.875C14 11.3723 14.1975 11.8492 14.5492 12.2008C14.9008 12.5525 15.3777 12.75 15.875 12.75ZM15.875 10.25C15.9986 10.25 16.1195 10.2867 16.2222 10.3553C16.325 10.424 16.4051 10.5216 16.4524 10.6358C16.4997 10.75 16.5121 10.8757 16.488 10.9969C16.4639 11.1182 16.4044 11.2295 16.3169 11.3169C16.2295 11.4043 16.1182 11.4639 15.9969 11.488C15.8757 11.5121 15.75 11.4997 15.6358 11.4524C15.5216 11.4051 15.424 11.325 15.3553 11.2222C15.2867 11.1195 15.25 10.9986 15.25 10.875C15.25 10.7092 15.3158 10.5503 15.4331 10.4331C15.5503 10.3158 15.7092 10.25 15.875 10.25Z",
|
|
99
|
-
fill: C
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
/* @__PURE__ */ L(
|
|
103
|
-
"path",
|
|
104
|
-
{
|
|
105
|
-
d: "M20.25 6.5H7.75C7.41848 6.5 7.10054 6.6317 6.86612 6.86612C6.6317 7.10054 6.5 7.41848 6.5 7.75V20.25C6.5 20.5815 6.6317 20.8995 6.86612 21.1339C7.10054 21.3683 7.41848 21.5 7.75 21.5H20.25C20.5815 21.5 20.8995 21.3683 21.1339 21.1339C21.3683 20.8995 21.5 20.5815 21.5 20.25V7.75C21.5 7.41848 21.3683 7.10054 21.1339 6.86612C20.8995 6.6317 20.5815 6.5 20.25 6.5ZM20.25 20.25H7.75V16.5L10.875 13.375L14.3688 16.8687C14.603 17.1016 14.9198 17.2322 15.25 17.2322C15.5802 17.2322 15.897 17.1016 16.1313 16.8687L17.125 15.875L20.25 19V20.25ZM20.25 17.2312L18.0063 14.9875C17.772 14.7547 17.4552 14.624 17.125 14.624C16.7948 14.624 16.478 14.7547 16.2437 14.9875L15.25 15.9812L11.7562 12.4875C11.522 12.2547 11.2052 12.124 10.875 12.124C10.5448 12.124 10.228 12.2547 9.99375 12.4875L7.75 14.7312V7.75H20.25V17.2312Z",
|
|
106
|
-
fill: C
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
] })), E = o("CodeBlockIcon", (C) => /* @__PURE__ */ L(
|
|
110
|
-
"path",
|
|
111
|
-
{
|
|
112
|
-
d: "M23.375 14L19 18.375L18.1187 17.4937L21.6063 14L18.1187 10.5062L19 9.625L23.375 14ZM4.625 14L9 9.625L9.88125 10.5062L6.39375 14L9.88125 17.4937L9 18.375L4.625 14ZM11.7625 19.9275L15.025 7.75L16.2325 8.07313L12.97 20.25L11.7625 19.9275Z",
|
|
113
|
-
fill: C
|
|
114
|
-
}
|
|
115
|
-
)), T = o("BlockQuoteIcon", (C) => /* @__PURE__ */ L(
|
|
116
|
-
"path",
|
|
117
|
-
{
|
|
118
|
-
d: "M11.5 13.375H7.81875C7.93491 12.6015 8.21112 11.8607 8.62974 11.1999C9.04837 10.5391 9.6002 9.97295 10.25 9.5375L11.3688 8.7875L10.6812 7.75L9.5625 8.5C8.6208 9.12755 7.84857 9.97785 7.31433 10.9755C6.7801 11.9731 6.50038 13.0871 6.5 14.2188V18.375C6.5 18.7065 6.6317 19.0245 6.86612 19.2589C7.10054 19.4933 7.41848 19.625 7.75 19.625H11.5C11.8315 19.625 12.1495 19.4933 12.3839 19.2589C12.6183 19.0245 12.75 18.7065 12.75 18.375V14.625C12.75 14.2935 12.6183 13.9755 12.3839 13.7411C12.1495 13.5067 11.8315 13.375 11.5 13.375ZM20.25 13.375H16.5688C16.6849 12.6015 16.9611 11.8607 17.3797 11.1999C17.7984 10.5391 18.3502 9.97295 19 9.5375L20.1188 8.7875L19.4375 7.75L18.3125 8.5C17.3708 9.12755 16.5986 9.97785 16.0643 10.9755C15.5301 11.9731 15.2504 13.0871 15.25 14.2188V18.375C15.25 18.7065 15.3817 19.0245 15.6161 19.2589C15.8505 19.4933 16.1685 19.625 16.5 19.625H20.25C20.5815 19.625 20.8995 19.4933 21.1339 19.2589C21.3683 19.0245 21.5 18.7065 21.5 18.375V14.625C21.5 14.2935 21.3683 13.9755 21.1339 13.7411C20.8995 13.5067 20.5815 13.375 20.25 13.375Z",
|
|
119
|
-
fill: C
|
|
120
|
-
}
|
|
121
|
-
)), U = o("HorizontalLineIcon", (C) => /* @__PURE__ */ L("rect", { x: "6.5", y: "13.375", width: "15", height: "1.25", fill: C }));
|
|
122
|
-
export {
|
|
123
|
-
T as BlockQuoteIcon,
|
|
124
|
-
p as BoldIcon,
|
|
125
|
-
E as CodeBlockIcon,
|
|
126
|
-
k as HighlightIcon,
|
|
127
|
-
U as HorizontalLineIcon,
|
|
128
|
-
v as ImageIcon,
|
|
129
|
-
B as InlineCodeIcon,
|
|
130
|
-
g as ItalicIcon,
|
|
131
|
-
x as LinkIcon,
|
|
132
|
-
u as OrderedListIcon,
|
|
133
|
-
m as StrikeIcon,
|
|
134
|
-
w as UnorderedListIcon
|
|
135
|
-
};
|
|
1
|
+
import { forwardRef as e } from "react";
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
//#region lib/icons/ToolbarIcons.tsx
|
|
4
|
+
var i = "18", a = "4 4 20 20", o = (t, r, o = a) => {
|
|
5
|
+
let s = e(function({ color: e = "currentColor", width: t = i, height: a = i, viewBox: s = o, ...c }, l) {
|
|
6
|
+
return /* @__PURE__ */ n("svg", {
|
|
7
|
+
"aria-hidden": "true",
|
|
8
|
+
fill: "none",
|
|
9
|
+
width: t,
|
|
10
|
+
height: a,
|
|
11
|
+
viewBox: s,
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
...c,
|
|
14
|
+
ref: l,
|
|
15
|
+
children: r(e)
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
return s.displayName = t, s;
|
|
19
|
+
}, s = o("BoldIcon", (e) => /* @__PURE__ */ n("path", {
|
|
20
|
+
d: "M15.4062 19.625H9.625V8.375H14.9375C15.5639 8.37504 16.1771 8.55435 16.7048 8.89174C17.2325 9.22914 17.6526 9.71052 17.9155 10.279C18.1784 10.8475 18.2731 11.4794 18.1884 12.1C18.1037 12.7206 17.8431 13.304 17.4375 13.7812C17.9673 14.205 18.3528 14.7825 18.5408 15.4344C18.7289 16.0862 18.7102 16.7803 18.4875 17.4211C18.2647 18.0619 17.8488 18.6179 17.297 19.0126C16.7452 19.4073 16.0847 19.6213 15.4062 19.625ZM11.5 17.75H15.3937C15.5784 17.75 15.7613 17.7136 15.9319 17.643C16.1025 17.5723 16.2575 17.4687 16.3881 17.3381C16.5187 17.2075 16.6223 17.0525 16.693 16.8819C16.7636 16.7113 16.8 16.5284 16.8 16.3438C16.8 16.1591 16.7636 15.9762 16.693 15.8056C16.6223 15.635 16.5187 15.48 16.3881 15.3494C16.2575 15.2188 16.1025 15.1152 15.9319 15.0445C15.7613 14.9739 15.5784 14.9375 15.3937 14.9375H11.5V17.75ZM11.5 13.0625H14.9375C15.1222 13.0625 15.305 13.0261 15.4756 12.9555C15.6463 12.8848 15.8013 12.7812 15.9319 12.6506C16.0625 12.52 16.166 12.365 16.2367 12.1944C16.3074 12.0238 16.3438 11.8409 16.3438 11.6562C16.3438 11.4716 16.3074 11.2887 16.2367 11.1181C16.166 10.9475 16.0625 10.7925 15.9319 10.6619C15.8013 10.5313 15.6463 10.4277 15.4756 10.357C15.305 10.2864 15.1222 10.25 14.9375 10.25H11.5V13.0625Z",
|
|
21
|
+
fill: e
|
|
22
|
+
})), c = o("ItalicIcon", (e) => /* @__PURE__ */ n("path", {
|
|
23
|
+
d: "M19.625 9.625V8.375H11.5V9.625H14.7125L11.9813 18.375H8.375V19.625H16.5V18.375H13.2875L16.0187 9.625H19.625Z",
|
|
24
|
+
fill: e
|
|
25
|
+
})), l = o("StrikeIcon", (e) => /* @__PURE__ */ n("path", {
|
|
26
|
+
d: "M21.5 13.375H15.2225C14.945 13.3004 14.6662 13.2306 14.3863 13.1656C12.6312 12.7506 11.6388 12.4469 11.6388 11.0263C11.6245 10.781 11.6608 10.5355 11.7454 10.3049C11.83 10.0742 11.9612 9.86347 12.1306 9.68564C12.6615 9.24908 13.3264 9.00852 14.0137 9.00439C15.7825 8.96064 16.5981 9.56064 17.265 10.4731L18.2744 9.73564C17.8019 9.05711 17.1578 8.51617 16.4078 8.16808C15.6578 7.81999 14.8288 7.67723 14.0056 7.75439C12.9944 7.76085 12.0189 8.12911 11.2556 8.79252C10.9663 9.08595 10.7402 9.43554 10.5913 9.81971C10.4423 10.2039 10.3736 10.6145 10.3894 11.0263C10.362 11.4768 10.4466 11.9271 10.6357 12.337C10.8248 12.7469 11.1125 13.1035 11.4731 13.375H6.5V14.625H15.0325C16.2619 14.9813 16.9969 15.445 17.0156 16.7238C17.0359 16.9969 16.9985 17.2713 16.9056 17.529C16.8128 17.7867 16.6667 18.0219 16.4769 18.2194C15.8155 18.7407 14.9938 19.0166 14.1519 19C13.5234 18.9818 12.9074 18.8209 12.3503 18.5296C11.7932 18.2382 11.3097 17.8239 10.9362 17.3181L9.97812 18.1206C10.4636 18.7676 11.0899 19.2955 11.8097 19.6645C12.5295 20.0334 13.3238 20.2336 14.1325 20.25H14.195C15.3492 20.2633 16.4695 19.8596 17.35 19.1131C17.6625 18.7981 17.9054 18.421 18.0632 18.0062C18.2209 17.5914 18.2898 17.1481 18.2656 16.705C18.289 15.947 18.0332 15.2069 17.5469 14.625H21.5V13.375Z",
|
|
27
|
+
fill: e
|
|
28
|
+
})), u = o("InlineCodeIcon", (e) => /* @__PURE__ */ n("path", {
|
|
29
|
+
d: "M23.375 14L19 18.375L18.1187 17.4938L21.6063 14L18.1187 10.5062L19 9.625L23.375 14ZM4.625 14L9 9.625L9.88125 10.5062L6.39375 14L9.88125 17.4938L9 18.375L4.625 14Z",
|
|
30
|
+
fill: e
|
|
31
|
+
})), d = o("HighlightIcon", (e) => /* @__PURE__ */ n("path", {
|
|
32
|
+
d: "M22.3988 14.3575L17.4081 9.36625C17.1736 9.13187 16.8556 9.00021 16.5241 9.00021C16.1925 9.00021 15.8745 9.13187 15.64 9.36625L12.2912 12.715L9.625 5.25H8.375L5.25 14H6.5L7.12438 12.125H10.8744L11.3763 13.63L6.86625 18.14C6.75012 18.2561 6.658 18.3939 6.59515 18.5456C6.5323 18.6973 6.49995 18.8599 6.49995 19.0241C6.49995 19.1883 6.5323 19.3508 6.59515 19.5025C6.658 19.6542 6.75012 19.792 6.86625 19.9081L9.7075 22.75H15.7013L22.3988 16.0519C22.5101 15.9406 22.5984 15.8085 22.6587 15.6631C22.719 15.5177 22.75 15.3618 22.75 15.2044C22.75 15.047 22.719 14.8911 22.6587 14.7457C22.5984 14.6003 22.5101 14.4681 22.3988 14.3569V14.3575ZM7.54063 10.875L8.9975 6.5L10.4575 10.875H7.54063ZM15.1844 21.5H10.225L7.75 19.0238L11.695 15.0794L16.65 20.0337L15.1844 21.5ZM17.5344 19.15L12.5794 14.1956L16.5244 10.25L21.4788 15.2044L17.5344 19.15Z",
|
|
33
|
+
fill: e
|
|
34
|
+
})), f = o("UnorderedListIcon", (e) => /* @__PURE__ */ r(t, { children: [
|
|
35
|
+
/* @__PURE__ */ n("path", {
|
|
36
|
+
d: "M8.375 11.5C9.41053 11.5 10.25 10.6605 10.25 9.625C10.25 8.58947 9.41053 7.75 8.375 7.75C7.33947 7.75 6.5 8.58947 6.5 9.625C6.5 10.6605 7.33947 11.5 8.375 11.5Z",
|
|
37
|
+
fill: e
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ n("path", {
|
|
40
|
+
d: "M8.375 20.25C9.41053 20.25 10.25 19.4105 10.25 18.375C10.25 17.3395 9.41053 16.5 8.375 16.5C7.33947 16.5 6.5 17.3395 6.5 18.375C6.5 19.4105 7.33947 20.25 8.375 20.25Z",
|
|
41
|
+
fill: e
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ n("path", {
|
|
44
|
+
d: "M14 17.75H22.75V19H14V17.75ZM14 9H22.75V10.25H14V9Z",
|
|
45
|
+
fill: e
|
|
46
|
+
})
|
|
47
|
+
] })), p = o("OrderedListIcon", (e) => /* @__PURE__ */ n("path", {
|
|
48
|
+
d: "M14 17.75H22.75V19H14V17.75ZM14 9H22.75V10.25H14V9ZM9 11.5V6.5H7.75V7.125H6.5V8.375H7.75V11.5H6.5V12.75H10.25V11.5H9ZM10.25 21.5H6.5V19C6.5 18.6685 6.6317 18.3505 6.86612 18.1161C7.10054 17.8817 7.41848 17.75 7.75 17.75H9V16.5H6.5V15.25H9C9.33152 15.25 9.64946 15.3817 9.88388 15.6161C10.1183 15.8505 10.25 16.1685 10.25 16.5V17.75C10.25 18.0815 10.1183 18.3995 9.88388 18.6339C9.64946 18.8683 9.33152 19 9 19H7.75V20.25H10.25V21.5Z",
|
|
49
|
+
fill: e
|
|
50
|
+
})), m = o("LinkIcon", (e) => /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("path", {
|
|
51
|
+
d: "M22.2813 8.225C21.9329 7.8754 21.5189 7.59801 21.0631 7.40874C20.6073 7.21947 20.1186 7.12204 19.625 7.12204C19.1315 7.12204 18.6428 7.21947 18.187 7.40874C17.7312 7.59801 17.3172 7.8754 16.9688 8.225L17.8563 9.1125C18.089 8.87981 18.3652 8.69523 18.6692 8.56931C18.9733 8.44338 19.2991 8.37856 19.6282 8.37856C19.9572 8.37856 20.2831 8.44338 20.5871 8.56931C20.8911 8.69523 21.1674 8.87981 21.4 9.1125C21.6327 9.34518 21.8173 9.62142 21.9432 9.92544C22.0692 10.2295 22.134 10.5553 22.134 10.8844C22.134 11.2134 22.0692 11.5393 21.9432 11.8433C21.8173 12.1473 21.6327 12.4236 21.4 12.6562L16.4 17.6562C15.9309 18.1262 15.2944 18.3905 14.6304 18.3911C13.9664 18.3917 13.3293 18.1285 12.8594 17.6594C12.3895 17.1903 12.1252 16.5537 12.1246 15.8897C12.124 15.2257 12.3872 14.5887 12.8563 14.1187L13.7375 13.2312L12.8563 12.3437L11.9688 13.2312C11.6192 13.5796 11.3418 13.9936 11.1525 14.4494C10.9633 14.9052 10.8658 15.3939 10.8658 15.8875C10.8658 16.381 10.9633 16.8697 11.1525 17.3256C11.3418 17.7814 11.6192 18.1954 11.9688 18.5437C12.676 19.2419 13.6313 19.6308 14.625 19.625C15.1205 19.627 15.6114 19.5309 16.0695 19.3421C16.5276 19.1533 16.9437 18.8756 17.2938 18.525L22.2938 13.525C22.9944 12.8202 23.3866 11.8662 23.3842 10.8724C23.3819 9.87866 22.9852 8.92647 22.2813 8.225Z",
|
|
52
|
+
fill: e
|
|
53
|
+
}), /* @__PURE__ */ n("path", {
|
|
54
|
+
d: "M6.61879 19.5125C6.38541 19.2802 6.20022 19.0041 6.07386 18.7C5.94749 18.3959 5.88244 18.0699 5.88244 17.7406C5.88244 17.4113 5.94749 17.0853 6.07386 16.7812C6.20022 16.4772 6.38541 16.201 6.61879 15.9687L11.6188 10.9687C11.8511 10.7354 12.1272 10.5502 12.4313 10.4238C12.7353 10.2974 13.0614 10.2324 13.3907 10.2324C13.7199 10.2324 14.046 10.2974 14.3501 10.4238C14.6541 10.5502 14.9302 10.7354 15.1625 10.9687C15.3944 11.2029 15.577 11.4812 15.6994 11.7871C15.8218 12.0931 15.8815 12.4205 15.875 12.75C15.8769 13.0805 15.8133 13.4081 15.6878 13.7138C15.5623 14.0196 15.3774 14.2974 15.1438 14.5312L13.8188 15.875L14.7063 16.7625L16.0313 15.4375C16.7366 14.7322 17.1328 13.7756 17.1328 12.7781C17.1328 11.7807 16.7366 10.8241 16.0313 10.1187C15.326 9.41344 14.3694 9.0172 13.3719 9.0172C12.3745 9.0172 11.4179 9.41344 10.7125 10.1187L5.71254 15.1187C5.362 15.4672 5.08382 15.8816 4.89399 16.338C4.70417 16.7944 4.60645 17.2838 4.60645 17.7781C4.60645 18.2724 4.70417 18.7618 4.89399 19.2182C5.08382 19.6746 5.362 20.089 5.71254 20.4375C6.42431 21.1303 7.38185 21.5124 8.37504 21.5C9.37698 21.501 10.3386 21.1055 11.05 20.4L10.1625 19.5125C9.93025 19.7459 9.65413 19.9311 9.35006 20.0574C9.04599 20.1838 8.71995 20.2488 8.39067 20.2488C8.06138 20.2488 7.73534 20.1838 7.43127 20.0574C7.1272 19.9311 6.85109 19.7459 6.61879 19.5125Z",
|
|
55
|
+
fill: e
|
|
56
|
+
})] })), h = o("ImageIcon", (e) => /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("path", {
|
|
57
|
+
d: "M15.875 12.75C16.2458 12.75 16.6084 12.64 16.9167 12.434C17.225 12.228 17.4654 11.9351 17.6073 11.5925C17.7492 11.2499 17.7863 10.8729 17.714 10.5092C17.6416 10.1455 17.463 9.8114 17.2008 9.54917C16.9386 9.28695 16.6045 9.10837 16.2408 9.03603C15.8771 8.96368 15.5001 9.00081 15.1575 9.14273C14.8149 9.28464 14.522 9.52496 14.316 9.83331C14.11 10.1416 14 10.5042 14 10.875C14 11.3723 14.1975 11.8492 14.5492 12.2008C14.9008 12.5525 15.3777 12.75 15.875 12.75ZM15.875 10.25C15.9986 10.25 16.1195 10.2867 16.2222 10.3553C16.325 10.424 16.4051 10.5216 16.4524 10.6358C16.4997 10.75 16.5121 10.8757 16.488 10.9969C16.4639 11.1182 16.4044 11.2295 16.3169 11.3169C16.2295 11.4043 16.1182 11.4639 15.9969 11.488C15.8757 11.5121 15.75 11.4997 15.6358 11.4524C15.5216 11.4051 15.424 11.325 15.3553 11.2222C15.2867 11.1195 15.25 10.9986 15.25 10.875C15.25 10.7092 15.3158 10.5503 15.4331 10.4331C15.5503 10.3158 15.7092 10.25 15.875 10.25Z",
|
|
58
|
+
fill: e
|
|
59
|
+
}), /* @__PURE__ */ n("path", {
|
|
60
|
+
d: "M20.25 6.5H7.75C7.41848 6.5 7.10054 6.6317 6.86612 6.86612C6.6317 7.10054 6.5 7.41848 6.5 7.75V20.25C6.5 20.5815 6.6317 20.8995 6.86612 21.1339C7.10054 21.3683 7.41848 21.5 7.75 21.5H20.25C20.5815 21.5 20.8995 21.3683 21.1339 21.1339C21.3683 20.8995 21.5 20.5815 21.5 20.25V7.75C21.5 7.41848 21.3683 7.10054 21.1339 6.86612C20.8995 6.6317 20.5815 6.5 20.25 6.5ZM20.25 20.25H7.75V16.5L10.875 13.375L14.3688 16.8687C14.603 17.1016 14.9198 17.2322 15.25 17.2322C15.5802 17.2322 15.897 17.1016 16.1313 16.8687L17.125 15.875L20.25 19V20.25ZM20.25 17.2312L18.0063 14.9875C17.772 14.7547 17.4552 14.624 17.125 14.624C16.7948 14.624 16.478 14.7547 16.2437 14.9875L15.25 15.9812L11.7562 12.4875C11.522 12.2547 11.2052 12.124 10.875 12.124C10.5448 12.124 10.228 12.2547 9.99375 12.4875L7.75 14.7312V7.75H20.25V17.2312Z",
|
|
61
|
+
fill: e
|
|
62
|
+
})] })), g = o("CodeBlockIcon", (e) => /* @__PURE__ */ n("path", {
|
|
63
|
+
d: "M23.375 14L19 18.375L18.1187 17.4937L21.6063 14L18.1187 10.5062L19 9.625L23.375 14ZM4.625 14L9 9.625L9.88125 10.5062L6.39375 14L9.88125 17.4937L9 18.375L4.625 14ZM11.7625 19.9275L15.025 7.75L16.2325 8.07313L12.97 20.25L11.7625 19.9275Z",
|
|
64
|
+
fill: e
|
|
65
|
+
})), _ = o("BlockQuoteIcon", (e) => /* @__PURE__ */ n("path", {
|
|
66
|
+
d: "M11.5 13.375H7.81875C7.93491 12.6015 8.21112 11.8607 8.62974 11.1999C9.04837 10.5391 9.6002 9.97295 10.25 9.5375L11.3688 8.7875L10.6812 7.75L9.5625 8.5C8.6208 9.12755 7.84857 9.97785 7.31433 10.9755C6.7801 11.9731 6.50038 13.0871 6.5 14.2188V18.375C6.5 18.7065 6.6317 19.0245 6.86612 19.2589C7.10054 19.4933 7.41848 19.625 7.75 19.625H11.5C11.8315 19.625 12.1495 19.4933 12.3839 19.2589C12.6183 19.0245 12.75 18.7065 12.75 18.375V14.625C12.75 14.2935 12.6183 13.9755 12.3839 13.7411C12.1495 13.5067 11.8315 13.375 11.5 13.375ZM20.25 13.375H16.5688C16.6849 12.6015 16.9611 11.8607 17.3797 11.1999C17.7984 10.5391 18.3502 9.97295 19 9.5375L20.1188 8.7875L19.4375 7.75L18.3125 8.5C17.3708 9.12755 16.5986 9.97785 16.0643 10.9755C15.5301 11.9731 15.2504 13.0871 15.25 14.2188V18.375C15.25 18.7065 15.3817 19.0245 15.6161 19.2589C15.8505 19.4933 16.1685 19.625 16.5 19.625H20.25C20.5815 19.625 20.8995 19.4933 21.1339 19.2589C21.3683 19.0245 21.5 18.7065 21.5 18.375V14.625C21.5 14.2935 21.3683 13.9755 21.1339 13.7411C20.8995 13.5067 20.5815 13.375 20.25 13.375Z",
|
|
67
|
+
fill: e
|
|
68
|
+
})), v = o("HorizontalLineIcon", (e) => /* @__PURE__ */ n("rect", {
|
|
69
|
+
x: "6.5",
|
|
70
|
+
y: "13.375",
|
|
71
|
+
width: "15",
|
|
72
|
+
height: "1.25",
|
|
73
|
+
fill: e
|
|
74
|
+
}));
|
|
75
|
+
//#endregion
|
|
76
|
+
export { _ as BlockQuoteIcon, s as BoldIcon, g as CodeBlockIcon, d as HighlightIcon, v as HorizontalLineIcon, h as ImageIcon, u as InlineCodeIcon, c as ItalicIcon, m as LinkIcon, p as OrderedListIcon, l as StrikeIcon, f as UnorderedListIcon };
|
package/dist/main.css
CHANGED
|
@@ -192,6 +192,16 @@
|
|
|
192
192
|
padding: 8px;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
.scribe-link-popover {
|
|
196
|
+
background: var(--color-panel-solid);
|
|
197
|
+
border: 1px solid var(--gray-6);
|
|
198
|
+
border-radius: 12px;
|
|
199
|
+
box-shadow:
|
|
200
|
+
0 18px 38px -24px rgba(15, 23, 42, 0.35),
|
|
201
|
+
0 10px 20px -18px rgba(15, 23, 42, 0.35);
|
|
202
|
+
padding: 16px;
|
|
203
|
+
}
|
|
204
|
+
|
|
195
205
|
.scribe-inline-menu-icon {
|
|
196
206
|
display: block;
|
|
197
207
|
fill: transparent;
|
package/dist/main.js
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
|
+
import { t as e } from "./html-to-markdown-CrNOkSye.js";
|
|
2
|
+
import { t } from "./markdown-to-html-DEczPfuq.js";
|
|
3
|
+
import { isInViewport as n } from "./utils/is-in-viewport.js";
|
|
4
|
+
import { convertLegacyMathDelimiters as r } from "./utils/convert-legacy-math-delimiters.js";
|
|
5
|
+
import { SuggestionItemType as i } from "./components/Scribe/extension/slashCommand/items.js";
|
|
6
|
+
import { createScribeEditor as a } from "./utils/index.js";
|
|
1
7
|
import { Scribe as o } from "./components/Scribe/index.js";
|
|
2
|
-
|
|
3
|
-
import { m as i } from "./markdown-to-html-Bw9L43K6.js";
|
|
4
|
-
import { isInViewport as x } from "./utils/is-in-viewport.js";
|
|
5
|
-
import { convertLegacyMathDelimiters as a } from "./utils/convert-legacy-math-delimiters.js";
|
|
6
|
-
import { createScribeEditor as d } from "./utils/create-scribe-editor.js";
|
|
7
|
-
import { SuggestionItemType as h } from "./components/Scribe/extension/slashCommand/items.js";
|
|
8
|
-
export {
|
|
9
|
-
o as Scribe,
|
|
10
|
-
h as SuggestionItemType,
|
|
11
|
-
a as convertLegacyMathDelimiters,
|
|
12
|
-
d as createScribeEditor,
|
|
13
|
-
m as html2md,
|
|
14
|
-
x as isInViewport,
|
|
15
|
-
i as md2html
|
|
16
|
-
};
|
|
8
|
+
export { o as Scribe, i as SuggestionItemType, r as convertLegacyMathDelimiters, a as createScribeEditor, e as html2md, n as isInViewport, t as md2html };
|