@clevertask/scribe 0.0.11 → 0.0.13
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 +80 -4
- package/dist/assets/index.css +1 -1
- package/dist/components/Menu/BarMenu.js +21 -21
- 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 +37 -0
- package/dist/components/Scribe/extension/emoji/suggest.js +5 -6
- 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/items.js +6 -7
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +10 -11
- package/dist/components/Scribe/index.d.ts +1 -0
- package/dist/components/Scribe/index.js +101 -79
- package/dist/index-BfaHEr44.js +159 -0
- package/dist/index-Bvgjhwaj.js +2349 -0
- package/dist/{index-CasgquAq.js → index-CWvaDN_2.js} +16838 -5196
- package/dist/{index-DeZ8laak.js → index-flsxByQS.js} +1587 -1527
- package/dist/main.css +4 -4
- package/dist/main.js +8 -6
- package/dist/marked.esm-H7n4rMcO.js +1554 -0
- package/dist/purify.es-DcWaZU6I.js +552 -0
- package/dist/turndown.browser.es-RmA_HBaI.js +649 -0
- package/dist/utils/convert-legacy-math-delimiters.d.ts +1 -0
- package/dist/utils/convert-legacy-math-delimiters.js +13 -0
- package/dist/utils/create-scribe-editor.js +7 -6
- package/dist/utils/html-to-markdown.js +7 -6
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +8 -6
- package/dist/utils/markdown-to-html.js +4 -3
- package/package.json +57 -53
- 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,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { p as c } from "../purify.es-DcWaZU6I.js";
|
|
2
|
+
import { T as i } from "../turndown.browser.es-RmA_HBaI.js";
|
|
3
|
+
const p = (a) => {
|
|
4
|
+
const e = new i({
|
|
4
5
|
headingStyle: "atx",
|
|
5
6
|
hr: "---",
|
|
6
7
|
bulletListMarker: "-",
|
|
@@ -26,9 +27,9 @@ $$
|
|
|
26
27
|
return "~~" + t + "~~";
|
|
27
28
|
}
|
|
28
29
|
});
|
|
29
|
-
const
|
|
30
|
-
return e.turndown(
|
|
30
|
+
const o = (t) => t.replace(/<span([^>]+data-type="latex"[^>]*)><\/span>/g, "<span$1>•</span>");
|
|
31
|
+
return e.turndown(c.sanitize(o(a)));
|
|
31
32
|
};
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
p as html2md
|
|
34
35
|
};
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { html2md as
|
|
1
|
+
import { html2md as o } from "./html-to-markdown.js";
|
|
2
2
|
import { md2html as m } from "./markdown-to-html.js";
|
|
3
|
-
import { isInViewport as
|
|
4
|
-
import {
|
|
3
|
+
import { isInViewport as p } from "./is-in-viewport.js";
|
|
4
|
+
import { convertLegacyMathDelimiters as x } from "./convert-legacy-math-delimiters.js";
|
|
5
|
+
import { createScribeEditor as a } from "./create-scribe-editor.js";
|
|
5
6
|
export {
|
|
6
|
-
x as
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
x as convertLegacyMathDelimiters,
|
|
8
|
+
a as createScribeEditor,
|
|
9
|
+
o as html2md,
|
|
10
|
+
p as isInViewport,
|
|
9
11
|
m as md2html
|
|
10
12
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { m as r } from "../marked.esm-H7n4rMcO.js";
|
|
2
|
+
import { p as a } from "../purify.es-DcWaZU6I.js";
|
|
3
|
+
const p = (m) => a.sanitize(r.parse(m, { async: !1 }));
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
+
p as md2html
|
|
5
6
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A Tiptap-based rich text editor with a Notion-style block interface for viewing and creating content. Perfect for diverse needs like notes, documents, AI chat, Markdown parsing, and comments.",
|
|
4
4
|
"author": "CleverTask",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.13",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/main.js",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -31,42 +31,36 @@
|
|
|
31
31
|
"type": "git",
|
|
32
32
|
"url": "git+https://github.com/clevertask/scribe.git"
|
|
33
33
|
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"dev": "vite",
|
|
36
|
-
"build": "vite build && npm run build:style",
|
|
37
|
-
"build:style": "postcss ./lib/styles/main.css -o ./dist/main.css",
|
|
38
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
39
|
-
"preview": "vite preview",
|
|
40
|
-
"prettier:lint": "npx prettier . --check",
|
|
41
|
-
"prettier:format": "npx prettier . --write"
|
|
42
|
-
},
|
|
43
34
|
"peerDependencies": {
|
|
44
|
-
"react": "
|
|
45
|
-
"react-dom": "
|
|
35
|
+
"react": ">=18.3.1 <20.0.0",
|
|
36
|
+
"react-dom": ">=18.3.1 <20.0.0"
|
|
46
37
|
},
|
|
47
38
|
"devDependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@types/
|
|
51
|
-
"@types/
|
|
52
|
-
"@types/react
|
|
53
|
-
"@types/
|
|
54
|
-
"@
|
|
55
|
-
"@typescript-eslint/
|
|
56
|
-
"@
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"eslint
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
39
|
+
"@eslint/js": "^9.39.3",
|
|
40
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
41
|
+
"@types/lodash": "^4.17.23",
|
|
42
|
+
"@types/node": "^24.10.13",
|
|
43
|
+
"@types/react": "^19.2.14",
|
|
44
|
+
"@types/react-dom": "^19.2.3",
|
|
45
|
+
"@types/turndown": "^5.0.6",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
47
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
48
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
49
|
+
"autoprefixer": "^10.4.24",
|
|
50
|
+
"eslint": "^9.39.3",
|
|
51
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
52
|
+
"eslint-plugin-react-refresh": "^0.5.0",
|
|
53
|
+
"glob": "^13.0.6",
|
|
54
|
+
"globals": "^17.3.0",
|
|
55
|
+
"lodash": "^4.17.23",
|
|
63
56
|
"postcss": "^8.5.6",
|
|
64
57
|
"postcss-cli": "^11.0.1",
|
|
65
58
|
"prettier": "3.4.2",
|
|
66
|
-
"tailwindcss": "^3.4.
|
|
67
|
-
"typescript": "
|
|
68
|
-
"
|
|
69
|
-
"
|
|
59
|
+
"tailwindcss": "^3.4.19",
|
|
60
|
+
"typescript": "~5.9.3",
|
|
61
|
+
"typescript-eslint": "^8.56.0",
|
|
62
|
+
"unplugin-dts": "1.0.0-beta.6",
|
|
63
|
+
"vite": "^7.3.1",
|
|
70
64
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
71
65
|
},
|
|
72
66
|
"prepublishOnly": "npm run build",
|
|
@@ -75,29 +69,39 @@
|
|
|
75
69
|
"registry": "https://registry.npmjs.org/"
|
|
76
70
|
},
|
|
77
71
|
"dependencies": {
|
|
78
|
-
"@tiptap/core": "^2.
|
|
79
|
-
"@tiptap/extension-emoji": "^2.
|
|
80
|
-
"@tiptap/extension-focus": "^2.
|
|
81
|
-
"@tiptap/extension-highlight": "^2.
|
|
82
|
-
"@tiptap/extension-image": "^2.
|
|
83
|
-
"@tiptap/extension-link": "^2.
|
|
84
|
-
"@tiptap/extension-
|
|
85
|
-
"@tiptap/extension-
|
|
86
|
-
"@tiptap/extension-table
|
|
87
|
-
"@tiptap/extension-table-
|
|
88
|
-
"@tiptap/extension-table-
|
|
89
|
-
"@tiptap/extension-
|
|
90
|
-
"@tiptap/extension-task-
|
|
91
|
-
"@tiptap/extension-
|
|
92
|
-
"@tiptap/
|
|
93
|
-
"@tiptap/
|
|
94
|
-
"@tiptap/
|
|
95
|
-
"@tiptap/
|
|
72
|
+
"@tiptap/core": "^2.27.2",
|
|
73
|
+
"@tiptap/extension-emoji": "^2.27.2",
|
|
74
|
+
"@tiptap/extension-focus": "^2.27.2",
|
|
75
|
+
"@tiptap/extension-highlight": "^2.27.2",
|
|
76
|
+
"@tiptap/extension-image": "^2.27.2",
|
|
77
|
+
"@tiptap/extension-link": "^2.27.2",
|
|
78
|
+
"@tiptap/extension-mathematics": "^3.20.0",
|
|
79
|
+
"@tiptap/extension-placeholder": "^2.27.2",
|
|
80
|
+
"@tiptap/extension-table": "^2.27.2",
|
|
81
|
+
"@tiptap/extension-table-cell": "^2.27.2",
|
|
82
|
+
"@tiptap/extension-table-header": "^2.27.2",
|
|
83
|
+
"@tiptap/extension-table-row": "^2.27.2",
|
|
84
|
+
"@tiptap/extension-task-item": "^2.27.2",
|
|
85
|
+
"@tiptap/extension-task-list": "^2.27.2",
|
|
86
|
+
"@tiptap/extension-typography": "^2.27.2",
|
|
87
|
+
"@tiptap/pm": "^2.27.2",
|
|
88
|
+
"@tiptap/react": "^2.27.2",
|
|
89
|
+
"@tiptap/starter-kit": "^2.27.2",
|
|
90
|
+
"@tiptap/suggestion": "^2.27.2",
|
|
96
91
|
"clsx": "^2.1.1",
|
|
97
|
-
"
|
|
98
|
-
"katex": "^0.16.
|
|
92
|
+
"dompurify": "^3.3.1",
|
|
93
|
+
"katex": "^0.16.28",
|
|
99
94
|
"marked": "^15.0.12",
|
|
100
95
|
"tippy.js": "^6.3.7",
|
|
101
|
-
"turndown": "^7.2.
|
|
96
|
+
"turndown": "^7.2.2"
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"dev": "vite",
|
|
100
|
+
"build": "vite build && npm run build:style",
|
|
101
|
+
"build:style": "postcss ./lib/styles/main.css -o ./dist/main.css",
|
|
102
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
103
|
+
"preview": "vite preview",
|
|
104
|
+
"prettier:lint": "npx prettier . --check",
|
|
105
|
+
"prettier:format": "npx prettier . --write"
|
|
102
106
|
}
|
|
103
|
-
}
|
|
107
|
+
}
|