@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.
Files changed (40) hide show
  1. package/README.md +80 -4
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/Menu/BarMenu.js +21 -21
  4. package/dist/components/Menu/BubbleMenu.js +1 -1
  5. package/dist/components/Menu/Mobile/ListOptionBar.d.ts +6 -0
  6. package/dist/components/Menu/Mobile/ListOptionBar.js +37 -0
  7. package/dist/components/Scribe/extension/emoji/suggest.js +5 -6
  8. package/dist/components/Scribe/extension/extension-link.js +240 -244
  9. package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
  10. package/dist/components/Scribe/extension/index.d.ts +1 -1
  11. package/dist/components/Scribe/extension/index.js +24 -25
  12. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +5 -5
  13. package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
  14. package/dist/components/Scribe/extension/slashCommand/items.js +6 -7
  15. package/dist/components/Scribe/extension/slashCommand/renderItems.js +10 -11
  16. package/dist/components/Scribe/index.d.ts +1 -0
  17. package/dist/components/Scribe/index.js +101 -79
  18. package/dist/index-BfaHEr44.js +159 -0
  19. package/dist/index-Bvgjhwaj.js +2349 -0
  20. package/dist/{index-CasgquAq.js → index-CWvaDN_2.js} +16838 -5196
  21. package/dist/{index-DeZ8laak.js → index-flsxByQS.js} +1587 -1527
  22. package/dist/main.css +4 -4
  23. package/dist/main.js +8 -6
  24. package/dist/marked.esm-H7n4rMcO.js +1554 -0
  25. package/dist/purify.es-DcWaZU6I.js +552 -0
  26. package/dist/turndown.browser.es-RmA_HBaI.js +649 -0
  27. package/dist/utils/convert-legacy-math-delimiters.d.ts +1 -0
  28. package/dist/utils/convert-legacy-math-delimiters.js +13 -0
  29. package/dist/utils/create-scribe-editor.js +7 -6
  30. package/dist/utils/html-to-markdown.js +7 -6
  31. package/dist/utils/index.d.ts +1 -0
  32. package/dist/utils/index.js +8 -6
  33. package/dist/utils/markdown-to-html.js +4 -3
  34. package/package.json +57 -53
  35. package/dist/browser-BJWkU9cc.js +0 -2106
  36. package/dist/components/Scribe/extension/math-extension.d.ts +0 -2
  37. package/dist/components/Scribe/extension/math-extension.js +0 -11770
  38. package/dist/index-BqFHWqw6.js +0 -156
  39. package/dist/index-C_aWB8qt.js +0 -2291
  40. package/dist/turndown.browser.es-C1wFFc_i.js +0 -1172
@@ -1,6 +1,7 @@
1
- import { T as o, p as i } from "../turndown.browser.es-C1wFFc_i.js";
2
- const u = (a) => {
3
- const e = new o({
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 c = (t) => t.replace(/<span([^>]+data-type="latex"[^>]*)><\/span>/g, "<span$1>•</span>");
30
- return e.turndown(i.sanitize(c(a)));
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
- u as html2md
34
+ p as html2md
34
35
  };
@@ -1,4 +1,5 @@
1
1
  export * from './html-to-markdown';
2
2
  export * from './markdown-to-html';
3
3
  export * from './is-in-viewport';
4
+ export * from './convert-legacy-math-delimiters';
4
5
  export * from './create-scribe-editor';
@@ -1,10 +1,12 @@
1
- import { html2md as t } from "./html-to-markdown.js";
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 f } from "./is-in-viewport.js";
4
- import { createScribeEditor as x } from "./create-scribe-editor.js";
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 createScribeEditor,
7
- t as html2md,
8
- f as isInViewport,
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 { D as s, m } from "../browser-BJWkU9cc.js";
2
- const e = (a) => s.sanitize(m.parse(a, { async: !1 }));
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
- e as md2html
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.11",
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": "^18.3.1",
45
- "react-dom": "^18.3.1"
35
+ "react": ">=18.3.1 <20.0.0",
36
+ "react-dom": ">=18.3.1 <20.0.0"
46
37
  },
47
38
  "devDependencies": {
48
- "@tailwindcss/typography": "^0.5.16",
49
- "@types/lodash": "^4.17.20",
50
- "@types/node": "^22.16.0",
51
- "@types/react": "^18.3.23",
52
- "@types/react-dom": "^18.3.7",
53
- "@types/turndown": "^5.0.5",
54
- "@typescript-eslint/eslint-plugin": "^8.35.1",
55
- "@typescript-eslint/parser": "^8.35.1",
56
- "@vitejs/plugin-react": "^4.6.0",
57
- "autoprefixer": "^10.4.21",
58
- "eslint": "^9.30.1",
59
- "eslint-plugin-react-hooks": "^5.2.0",
60
- "eslint-plugin-react-refresh": "^0.4.20",
61
- "glob": "^11.0.3",
62
- "lodash": "^4.17.21",
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.17",
67
- "typescript": "^5.8.3",
68
- "vite": "^6.3.5",
69
- "vite-plugin-dts": "^4.5.4",
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.25.0",
79
- "@tiptap/extension-emoji": "^2.25.0",
80
- "@tiptap/extension-focus": "^2.25.0",
81
- "@tiptap/extension-highlight": "^2.25.0",
82
- "@tiptap/extension-image": "^2.25.0",
83
- "@tiptap/extension-link": "^2.25.0",
84
- "@tiptap/extension-placeholder": "^2.25.0",
85
- "@tiptap/extension-table": "^2.25.0",
86
- "@tiptap/extension-table-cell": "^2.25.0",
87
- "@tiptap/extension-table-header": "^2.25.0",
88
- "@tiptap/extension-table-row": "^2.25.0",
89
- "@tiptap/extension-task-item": "^2.25.0",
90
- "@tiptap/extension-task-list": "^2.25.0",
91
- "@tiptap/extension-typography": "^2.25.0",
92
- "@tiptap/pm": "^2.25.0",
93
- "@tiptap/react": "^2.25.0",
94
- "@tiptap/starter-kit": "^2.25.0",
95
- "@tiptap/suggestion": "^2.25.0",
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
- "isomorphic-dompurify": "^2.25.0",
98
- "katex": "^0.16.22",
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.0"
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
+ }