@clevertask/scribe 0.0.1 → 0.0.2
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/{SlashCommandList-DYKFukY8.js → SlashCommandList-D_Ndw6pj.js} +272 -273
- package/dist/browser-D3_ToIiA.js +2110 -0
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +4 -5
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +1 -1
- package/dist/components/Scribe/index.js +8 -9
- package/dist/main.d.ts +1 -0
- package/dist/turndown.browser.es-CeowJDZ0.js +1168 -0
- package/dist/utils/html-to-markdown.js +4 -5
- package/dist/utils/markdown-to-html.js +3 -4
- package/package.json +2 -2
- package/dist/marked.esm-DIt7dqAB.js +0 -1574
- package/dist/purify.es-Bzg5nW_L.js +0 -524
- package/dist/turndown.browser.es-DwgPoVx0.js +0 -646
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { S } from "../../../../SlashCommandList-
|
|
2
|
+
import { S as s } from "../../../../SlashCommandList-D_Ndw6pj.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../../../
|
|
5
|
-
import "../../../../
|
|
6
|
-
import "../../../../marked.esm-DIt7dqAB.js";
|
|
4
|
+
import "../../../../turndown.browser.es-CeowJDZ0.js";
|
|
5
|
+
import "../../../../browser-D3_ToIiA.js";
|
|
7
6
|
import "../../../../utils/is-in-viewport.js";
|
|
8
7
|
export {
|
|
9
|
-
|
|
8
|
+
s as SlashCommandList
|
|
10
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as l, t as c } from "../../../../index-Cu10LNOZ.js";
|
|
2
|
-
import { l as a, S as d } from "../../../../SlashCommandList-
|
|
2
|
+
import { l as a, S as d } from "../../../../SlashCommandList-D_Ndw6pj.js";
|
|
3
3
|
const m = () => {
|
|
4
4
|
let n, t = [], r, i = !a.isEmpty(t);
|
|
5
5
|
return {
|
|
@@ -4,27 +4,26 @@ import { initExtensions as S } from "./extension/index.js";
|
|
|
4
4
|
import { forwardRef as B, useCallback as M, useImperativeHandle as k, useEffect as i } from "react";
|
|
5
5
|
import A from "../Menu/BarMenu.js";
|
|
6
6
|
import { html2md as H } from "../../utils/html-to-markdown.js";
|
|
7
|
-
import "../../
|
|
8
|
-
|
|
9
|
-
function p(t) {
|
|
7
|
+
import "../../browser-D3_ToIiA.js";
|
|
8
|
+
function d(t) {
|
|
10
9
|
var r, o, e = "";
|
|
11
10
|
if (typeof t == "string" || typeof t == "number") e += t;
|
|
12
11
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
13
12
|
var s = t.length;
|
|
14
|
-
for (r = 0; r < s; r++) t[r] && (o =
|
|
13
|
+
for (r = 0; r < s; r++) t[r] && (o = d(t[r])) && (e && (e += " "), e += o);
|
|
15
14
|
} else for (o in t) t[o] && (e && (e += " "), e += o);
|
|
16
15
|
return e;
|
|
17
16
|
}
|
|
18
17
|
function m() {
|
|
19
|
-
for (var t, r, o = 0, e = "", s = arguments.length; o < s; o++) (t = arguments[o]) && (r =
|
|
18
|
+
for (var t, r, o = 0, e = "", s = arguments.length; o < s; o++) (t = arguments[o]) && (r = d(t)) && (e && (e += " "), e += r);
|
|
20
19
|
return e;
|
|
21
20
|
}
|
|
22
|
-
const
|
|
21
|
+
const O = B((t, r) => {
|
|
23
22
|
const {
|
|
24
23
|
autoFocus: o = !1,
|
|
25
24
|
content: e,
|
|
26
25
|
editable: s = !0,
|
|
27
|
-
editorProps:
|
|
26
|
+
editorProps: p,
|
|
28
27
|
extensions: C,
|
|
29
28
|
onContentChange: l,
|
|
30
29
|
showBarMenu: b = !0,
|
|
@@ -48,7 +47,7 @@ const R = B((t, r) => {
|
|
|
48
47
|
attributes: {
|
|
49
48
|
class: "scribe"
|
|
50
49
|
},
|
|
51
|
-
...
|
|
50
|
+
...p
|
|
52
51
|
}
|
|
53
52
|
},
|
|
54
53
|
[]
|
|
@@ -88,5 +87,5 @@ const R = B((t, r) => {
|
|
|
88
87
|
);
|
|
89
88
|
});
|
|
90
89
|
export {
|
|
91
|
-
|
|
90
|
+
O as Scribe
|
|
92
91
|
};
|
package/dist/main.d.ts
CHANGED