@clevertask/scribe 0.0.13 → 0.0.15
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 +5 -10
- package/dist/assets/index.css +1 -1
- package/dist/components/Menu/BarMenu.d.ts +3 -2
- package/dist/components/Menu/BarMenu.d.ts.map +1 -0
- package/dist/components/Menu/BarMenu.js +39 -18
- package/dist/components/Menu/BubbleMenu.d.ts +3 -2
- package/dist/components/Menu/BubbleMenu.d.ts.map +1 -0
- package/dist/components/Menu/BubbleMenu.js +1 -1
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts +2 -1
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -0
- package/dist/components/Menu/Mobile/ListOptionBar.js +3 -15
- package/dist/components/Scribe/extension/emoji/EmojiList.d.ts +2 -1
- package/dist/components/Scribe/extension/emoji/EmojiList.d.ts.map +1 -0
- package/dist/components/Scribe/extension/emoji/EmojiList.js +25 -14
- package/dist/components/Scribe/extension/emoji/suggest.d.ts +1 -0
- package/dist/components/Scribe/extension/emoji/suggest.d.ts.map +1 -0
- package/dist/components/Scribe/extension/emoji/suggest.js +1 -1
- package/dist/components/Scribe/extension/extension-link.d.ts +2 -1
- package/dist/components/Scribe/extension/extension-link.d.ts.map +1 -0
- package/dist/components/Scribe/extension/extension-link.js +2 -4
- package/dist/components/Scribe/extension/extension-markdown-paste.d.ts +4 -0
- package/dist/components/Scribe/extension/extension-markdown-paste.d.ts.map +1 -0
- package/dist/components/Scribe/extension/extension-markdown-paste.js +46 -0
- package/dist/components/Scribe/extension/extension-selectedText.d.ts +2 -1
- package/dist/components/Scribe/extension/extension-selectedText.d.ts.map +1 -0
- package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
- package/dist/components/Scribe/extension/index.d.ts +3 -2
- package/dist/components/Scribe/extension/index.d.ts.map +1 -0
- package/dist/components/Scribe/extension/index.js +25 -23
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts +3 -2
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts.map +1 -0
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +6 -5
- package/dist/components/Scribe/extension/slashCommand/index.d.ts +3 -2
- package/dist/components/Scribe/extension/slashCommand/index.d.ts.map +1 -0
- package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
- package/dist/components/Scribe/extension/slashCommand/items.d.ts +3 -2
- package/dist/components/Scribe/extension/slashCommand/items.d.ts.map +1 -0
- package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts +2 -1
- package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts.map +1 -0
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +2 -2
- package/dist/components/Scribe/index.d.ts +6 -4
- package/dist/components/Scribe/index.d.ts.map +1 -0
- package/dist/components/Scribe/index.js +34 -44
- package/dist/{index-flsxByQS.js → index-BKFDqQPh.js} +9 -3
- package/dist/{index-BfaHEr44.js → index-CL2WLiGu.js} +1 -1
- package/dist/{index-CWvaDN_2.js → index-Cxf4VEm1.js} +5252 -5318
- package/dist/{index-Bvgjhwaj.js → index-PzbCrHp0.js} +1 -1
- package/dist/main.css +3 -0
- package/dist/main.d.ts +4 -3
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +1 -1
- package/dist/{marked.esm-H7n4rMcO.js → markdown-to-html-__93dwok.js} +50 -47
- package/dist/{purify.es-DcWaZU6I.js → purify.es-BPDBzHtc.js} +114 -114
- package/dist/utils/convert-legacy-math-delimiters.d.ts +1 -0
- package/dist/utils/convert-legacy-math-delimiters.d.ts.map +1 -0
- package/dist/utils/create-scribe-editor.d.ts +3 -2
- package/dist/utils/create-scribe-editor.d.ts.map +1 -0
- package/dist/utils/create-scribe-editor.js +8 -4
- package/dist/utils/html-to-markdown.d.ts +1 -0
- package/dist/utils/html-to-markdown.d.ts.map +1 -0
- package/dist/utils/html-to-markdown.js +1 -1
- package/dist/utils/index.d.ts +6 -5
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +3 -3
- package/dist/utils/is-in-viewport.d.ts +1 -0
- package/dist/utils/is-in-viewport.d.ts.map +1 -0
- package/dist/utils/markdown-to-html.d.ts +1 -0
- package/dist/utils/markdown-to-html.d.ts.map +1 -0
- package/dist/utils/markdown-to-html.js +3 -4
- package/package.json +53 -56
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { E as i } from "../index-
|
|
1
|
+
import { E as i } from "../index-BKFDqQPh.js";
|
|
2
2
|
import { initExtensions as n } from "../components/Scribe/extension/index.js";
|
|
3
3
|
import { html2md as m } from "./html-to-markdown.js";
|
|
4
|
-
import "../
|
|
5
|
-
import "../purify.es-
|
|
6
|
-
function d({
|
|
4
|
+
import "../markdown-to-html-__93dwok.js";
|
|
5
|
+
import "../purify.es-BPDBzHtc.js";
|
|
6
|
+
function d({
|
|
7
|
+
content: r = "",
|
|
8
|
+
editable: e = !1,
|
|
9
|
+
onContentChange: o
|
|
10
|
+
}) {
|
|
7
11
|
return new i({
|
|
8
12
|
content: r,
|
|
9
13
|
editable: e,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-to-markdown.d.ts","sourceRoot":"","sources":["../../lib/utils/html-to-markdown.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,WAkCnC,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./html-to-markdown";
|
|
2
|
+
export * from "./markdown-to-html";
|
|
3
|
+
export * from "./is-in-viewport";
|
|
4
|
+
export * from "./convert-legacy-math-delimiters";
|
|
5
|
+
export * from "./create-scribe-editor";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { html2md as o } from "./html-to-markdown.js";
|
|
2
|
-
import {
|
|
2
|
+
import { m } from "../markdown-to-html-__93dwok.js";
|
|
3
3
|
import { isInViewport as p } from "./is-in-viewport.js";
|
|
4
4
|
import { convertLegacyMathDelimiters as x } from "./convert-legacy-math-delimiters.js";
|
|
5
|
-
import { createScribeEditor as
|
|
5
|
+
import { createScribeEditor as c } from "./create-scribe-editor.js";
|
|
6
6
|
export {
|
|
7
7
|
x as convertLegacyMathDelimiters,
|
|
8
|
-
|
|
8
|
+
c as createScribeEditor,
|
|
9
9
|
o as html2md,
|
|
10
10
|
p as isInViewport,
|
|
11
11
|
m as md2html
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-in-viewport.d.ts","sourceRoot":"","sources":["../../lib/utils/is-in-viewport.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,KAAK,WAAW,EAAE,WAAW,WAAW,YASpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-to-html.d.ts","sourceRoot":"","sources":["../../lib/utils/markdown-to-html.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,GAAI,IAAI,MAAM,WAA2D,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
import
|
|
3
|
-
const p = (m) => a.sanitize(r.parse(m, { async: !1 }));
|
|
1
|
+
import { m as t } from "../markdown-to-html-__93dwok.js";
|
|
2
|
+
import "../purify.es-BPDBzHtc.js";
|
|
4
3
|
export {
|
|
5
|
-
|
|
4
|
+
t as md2html
|
|
6
5
|
};
|
package/package.json
CHANGED
|
@@ -1,69 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clevertask/scribe",
|
|
3
|
-
"
|
|
4
|
-
"author": "CleverTask",
|
|
3
|
+
"version": "0.0.15",
|
|
5
4
|
"private": false,
|
|
6
|
-
"
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "dist/main.js",
|
|
9
|
-
"types": "dist/main.d.ts",
|
|
10
|
-
"files": [
|
|
11
|
-
"dist"
|
|
12
|
-
],
|
|
5
|
+
"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.",
|
|
13
6
|
"keywords": [
|
|
14
|
-
"
|
|
15
|
-
"javascript",
|
|
7
|
+
"block-based",
|
|
16
8
|
"editor",
|
|
17
|
-
"
|
|
9
|
+
"javascript",
|
|
10
|
+
"notion",
|
|
18
11
|
"prosemirror",
|
|
19
|
-
"
|
|
12
|
+
"react",
|
|
20
13
|
"rich-text-editor",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
14
|
+
"tiptap",
|
|
15
|
+
"typescript",
|
|
16
|
+
"wysiwyg"
|
|
24
17
|
],
|
|
25
|
-
"license": "MIT",
|
|
26
18
|
"homepage": "https://github.com/clevertask/scribe#readme",
|
|
27
19
|
"bugs": {
|
|
28
20
|
"url": "https://github.com/clevertask/scribe/issues"
|
|
29
21
|
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": "CleverTask",
|
|
30
24
|
"repository": {
|
|
31
25
|
"type": "git",
|
|
32
26
|
"url": "git+https://github.com/clevertask/scribe.git"
|
|
33
27
|
},
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
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",
|
|
56
|
-
"postcss": "^8.5.6",
|
|
57
|
-
"postcss-cli": "^11.0.1",
|
|
58
|
-
"prettier": "3.4.2",
|
|
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",
|
|
64
|
-
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
65
|
-
},
|
|
66
|
-
"prepublishOnly": "npm run build",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"main": "dist/main.js",
|
|
33
|
+
"types": "dist/main.d.ts",
|
|
67
34
|
"publishConfig": {
|
|
68
35
|
"access": "public",
|
|
69
36
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -75,7 +42,7 @@
|
|
|
75
42
|
"@tiptap/extension-highlight": "^2.27.2",
|
|
76
43
|
"@tiptap/extension-image": "^2.27.2",
|
|
77
44
|
"@tiptap/extension-link": "^2.27.2",
|
|
78
|
-
"@tiptap/extension-mathematics": "^3.
|
|
45
|
+
"@tiptap/extension-mathematics": "^3.21.0",
|
|
79
46
|
"@tiptap/extension-placeholder": "^2.27.2",
|
|
80
47
|
"@tiptap/extension-table": "^2.27.2",
|
|
81
48
|
"@tiptap/extension-table-cell": "^2.27.2",
|
|
@@ -89,19 +56,49 @@
|
|
|
89
56
|
"@tiptap/starter-kit": "^2.27.2",
|
|
90
57
|
"@tiptap/suggestion": "^2.27.2",
|
|
91
58
|
"clsx": "^2.1.1",
|
|
92
|
-
"dompurify": "^3.3.
|
|
93
|
-
"katex": "^0.16.
|
|
59
|
+
"dompurify": "^3.3.3",
|
|
60
|
+
"katex": "^0.16.44",
|
|
94
61
|
"marked": "^15.0.12",
|
|
95
62
|
"tippy.js": "^6.3.7",
|
|
96
63
|
"turndown": "^7.2.2"
|
|
97
64
|
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@eslint/js": "^9.39.4",
|
|
67
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
68
|
+
"@types/lodash": "^4.17.24",
|
|
69
|
+
"@types/node": "^24.12.0",
|
|
70
|
+
"@types/react": "^19.2.14",
|
|
71
|
+
"@types/react-dom": "^19.2.3",
|
|
72
|
+
"@types/turndown": "^5.0.6",
|
|
73
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
74
|
+
"autoprefixer": "^10.4.27",
|
|
75
|
+
"eslint": "^9.39.4",
|
|
76
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
77
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
78
|
+
"glob": "^13.0.6",
|
|
79
|
+
"globals": "^17.4.0",
|
|
80
|
+
"lodash": "^4.17.23",
|
|
81
|
+
"oxfmt": "^0.37.0",
|
|
82
|
+
"postcss": "^8.5.8",
|
|
83
|
+
"postcss-cli": "^11.0.1",
|
|
84
|
+
"tailwindcss": "^3.4.19",
|
|
85
|
+
"typescript": "~5.9.3",
|
|
86
|
+
"typescript-eslint": "^8.57.2",
|
|
87
|
+
"vite": "^7.3.1",
|
|
88
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
89
|
+
},
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"react": ">=18.3.1 <20.0.0",
|
|
92
|
+
"react-dom": ">=18.3.1 <20.0.0"
|
|
93
|
+
},
|
|
94
|
+
"prepublishOnly": "npm run build",
|
|
98
95
|
"scripts": {
|
|
99
96
|
"dev": "vite",
|
|
100
|
-
"build": "vite build && npm run build:style",
|
|
97
|
+
"build": "vite build && npm run build:style && tsc -p tsconfig.types.json --noCheck",
|
|
101
98
|
"build:style": "postcss ./lib/styles/main.css -o ./dist/main.css",
|
|
102
99
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
103
100
|
"preview": "vite preview",
|
|
104
|
-
"
|
|
105
|
-
"
|
|
101
|
+
"fmt": "oxfmt",
|
|
102
|
+
"fmt:check": "oxfmt --check"
|
|
106
103
|
}
|
|
107
104
|
}
|