@clevertask/scribe 0.0.13 → 0.0.14
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/BarMenu.d.ts +3 -2
- package/dist/components/Menu/BarMenu.d.ts.map +1 -0
- package/dist/components/Menu/BubbleMenu.d.ts +3 -2
- package/dist/components/Menu/BubbleMenu.d.ts.map +1 -0
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts +2 -1
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -0
- 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/suggest.d.ts +1 -0
- package/dist/components/Scribe/extension/emoji/suggest.d.ts.map +1 -0
- 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-selectedText.d.ts +2 -1
- package/dist/components/Scribe/extension/extension-selectedText.d.ts.map +1 -0
- 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 +1 -1
- 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 +2 -2
- 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/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 +1 -1
- 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 +1 -1
- package/dist/{index-CWvaDN_2.js → index-DAuPG8ME.js} +5299 -5403
- package/dist/main.d.ts +4 -3
- package/dist/main.d.ts.map +1 -0
- package/dist/{purify.es-DcWaZU6I.js → purify.es-BRDuGiV2.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 +2 -1
- package/dist/utils/create-scribe-editor.d.ts.map +1 -0
- package/dist/utils/create-scribe-editor.js +1 -1
- 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 +5 -4
- package/dist/utils/index.d.ts.map +1 -0
- 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 +1 -1
- package/package.json +14 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Editor } from
|
|
1
|
+
import { Editor } from "@tiptap/core";
|
|
2
2
|
export type CreateEditorOptions = {
|
|
3
3
|
content?: string;
|
|
4
4
|
editable?: boolean;
|
|
@@ -9,3 +9,4 @@ export type CreateEditorOptions = {
|
|
|
9
9
|
}) => void;
|
|
10
10
|
};
|
|
11
11
|
export declare function createScribeEditor({ content, editable, onContentChange }: CreateEditorOptions): Editor;
|
|
12
|
+
//# sourceMappingURL=create-scribe-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-scribe-editor.d.ts","sourceRoot":"","sources":["../../lib/utils/create-scribe-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,GAAG,CAAC;QAAC,eAAe,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACzG,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EAAE,OAAY,EAAE,QAAgB,EAAE,eAAe,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAoBnH"}
|
|
@@ -2,7 +2,7 @@ import { E as i } from "../index-flsxByQS.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
4
|
import "../marked.esm-H7n4rMcO.js";
|
|
5
|
-
import "../purify.es-
|
|
5
|
+
import "../purify.es-BRDuGiV2.js";
|
|
6
6
|
function d({ content: r = "", editable: e = !1, onContentChange: o }) {
|
|
7
7
|
return new i({
|
|
8
8
|
content: r,
|
|
@@ -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
|
|
1
|
+
export * from "./html-to-markdown";
|
|
2
|
+
export * from "./markdown-to-html";
|
|
3
|
+
export * from "./is-in-viewport";
|
|
4
4
|
export * from './convert-legacy-math-delimiters';
|
|
5
|
-
export * from
|
|
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"}
|
|
@@ -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"}
|
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.14",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/main.js",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -36,30 +36,27 @@
|
|
|
36
36
|
"react-dom": ">=18.3.1 <20.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@eslint/js": "^9.39.
|
|
39
|
+
"@eslint/js": "^9.39.4",
|
|
40
40
|
"@tailwindcss/typography": "^0.5.19",
|
|
41
|
-
"@types/lodash": "^4.17.
|
|
42
|
-
"@types/node": "^24.
|
|
41
|
+
"@types/lodash": "^4.17.24",
|
|
42
|
+
"@types/node": "^24.12.0",
|
|
43
43
|
"@types/react": "^19.2.14",
|
|
44
44
|
"@types/react-dom": "^19.2.3",
|
|
45
45
|
"@types/turndown": "^5.0.6",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
47
|
-
"@typescript-eslint/parser": "^8.56.0",
|
|
48
46
|
"@vitejs/plugin-react": "^5.1.4",
|
|
49
|
-
"autoprefixer": "^10.4.
|
|
50
|
-
"eslint": "^9.39.
|
|
47
|
+
"autoprefixer": "^10.4.27",
|
|
48
|
+
"eslint": "^9.39.4",
|
|
51
49
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
52
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
50
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
53
51
|
"glob": "^13.0.6",
|
|
54
|
-
"globals": "^17.
|
|
52
|
+
"globals": "^17.4.0",
|
|
55
53
|
"lodash": "^4.17.23",
|
|
56
|
-
"postcss": "^8.5.
|
|
54
|
+
"postcss": "^8.5.8",
|
|
57
55
|
"postcss-cli": "^11.0.1",
|
|
58
56
|
"prettier": "3.4.2",
|
|
59
57
|
"tailwindcss": "^3.4.19",
|
|
60
58
|
"typescript": "~5.9.3",
|
|
61
|
-
"typescript-eslint": "^8.
|
|
62
|
-
"unplugin-dts": "1.0.0-beta.6",
|
|
59
|
+
"typescript-eslint": "^8.57.0",
|
|
63
60
|
"vite": "^7.3.1",
|
|
64
61
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
65
62
|
},
|
|
@@ -75,7 +72,7 @@
|
|
|
75
72
|
"@tiptap/extension-highlight": "^2.27.2",
|
|
76
73
|
"@tiptap/extension-image": "^2.27.2",
|
|
77
74
|
"@tiptap/extension-link": "^2.27.2",
|
|
78
|
-
"@tiptap/extension-mathematics": "^3.20.
|
|
75
|
+
"@tiptap/extension-mathematics": "^3.20.1",
|
|
79
76
|
"@tiptap/extension-placeholder": "^2.27.2",
|
|
80
77
|
"@tiptap/extension-table": "^2.27.2",
|
|
81
78
|
"@tiptap/extension-table-cell": "^2.27.2",
|
|
@@ -89,15 +86,15 @@
|
|
|
89
86
|
"@tiptap/starter-kit": "^2.27.2",
|
|
90
87
|
"@tiptap/suggestion": "^2.27.2",
|
|
91
88
|
"clsx": "^2.1.1",
|
|
92
|
-
"dompurify": "^3.3.
|
|
93
|
-
"katex": "^0.16.
|
|
89
|
+
"dompurify": "^3.3.2",
|
|
90
|
+
"katex": "^0.16.38",
|
|
94
91
|
"marked": "^15.0.12",
|
|
95
92
|
"tippy.js": "^6.3.7",
|
|
96
93
|
"turndown": "^7.2.2"
|
|
97
94
|
},
|
|
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",
|