@clevertask/scribe 0.0.9 → 0.0.11

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 (32) hide show
  1. package/README.md +23 -0
  2. package/dist/browser-BJWkU9cc.js +2106 -0
  3. package/dist/clsx-OuTLNxxd.js +16 -0
  4. package/dist/components/Menu/BarMenu.d.ts +1 -0
  5. package/dist/components/Menu/BarMenu.js +38 -36
  6. package/dist/components/Menu/BubbleMenu.js +1 -1
  7. package/dist/components/Scribe/extension/emoji/EmojiList.d.ts +1 -0
  8. package/dist/components/Scribe/extension/emoji/EmojiList.js +35 -0
  9. package/dist/components/Scribe/extension/emoji/suggest.d.ts +16 -0
  10. package/dist/components/Scribe/extension/emoji/suggest.js +40 -0
  11. package/dist/components/Scribe/extension/extension-link.js +208 -200
  12. package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
  13. package/dist/components/Scribe/extension/index.js +30 -24
  14. package/dist/components/Scribe/extension/math-extension.js +1 -1
  15. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +7 -5
  16. package/dist/components/Scribe/extension/slashCommand/index.js +4 -153
  17. package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts +1 -1
  18. package/dist/components/Scribe/extension/slashCommand/renderItems.js +14 -14
  19. package/dist/components/Scribe/index.d.ts +1 -0
  20. package/dist/components/Scribe/index.js +69 -75
  21. package/dist/index-BqFHWqw6.js +156 -0
  22. package/dist/{index-C3_lI_rP.js → index-C_aWB8qt.js} +449 -427
  23. package/dist/index-CasgquAq.js +39381 -0
  24. package/dist/{index-Gm-3o3nq.js → index-DeZ8laak.js} +1124 -1083
  25. package/dist/main.css +95 -5
  26. package/dist/{turndown.browser.es-BSoGafvq.js → turndown.browser.es-C1wFFc_i.js} +342 -334
  27. package/dist/utils/create-scribe-editor.js +2 -2
  28. package/dist/utils/html-to-markdown.js +1 -1
  29. package/dist/utils/markdown-to-html.js +1 -1
  30. package/package.json +33 -31
  31. package/dist/browser-DEobZXxB.js +0 -2099
  32. package/dist/index-NRgJVTH-.js +0 -7576
@@ -1,7 +1,7 @@
1
- import { E as i } from "../index-Gm-3o3nq.js";
1
+ import { E as i } from "../index-DeZ8laak.js";
2
2
  import { initExtensions as n } from "../components/Scribe/extension/index.js";
3
3
  import { html2md as s } from "./html-to-markdown.js";
4
- import "../browser-DEobZXxB.js";
4
+ import "../browser-BJWkU9cc.js";
5
5
  function c({ content: r = "", editable: e = !1, onContentChange: o }) {
6
6
  return new i({
7
7
  content: r,
@@ -1,4 +1,4 @@
1
- import { T as o, p as i } from "../turndown.browser.es-BSoGafvq.js";
1
+ import { T as o, p as i } from "../turndown.browser.es-C1wFFc_i.js";
2
2
  const u = (a) => {
3
3
  const e = new o({
4
4
  headingStyle: "atx",
@@ -1,4 +1,4 @@
1
- import { D as s, m } from "../browser-DEobZXxB.js";
1
+ import { D as s, m } from "../browser-BJWkU9cc.js";
2
2
  const e = (a) => s.sanitize(m.parse(a, { async: !1 }));
3
3
  export {
4
4
  e as md2html
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.9",
6
+ "version": "0.0.11",
7
7
  "type": "module",
8
8
  "main": "dist/main.js",
9
9
  "types": "dist/main.d.ts",
@@ -46,27 +46,27 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tailwindcss/typography": "^0.5.16",
49
- "@types/lodash": "^4.17.16",
50
- "@types/node": "^22.15.3",
51
- "@types/react": "^18.3.20",
49
+ "@types/lodash": "^4.17.20",
50
+ "@types/node": "^22.16.0",
51
+ "@types/react": "^18.3.23",
52
52
  "@types/react-dom": "^18.3.7",
53
53
  "@types/turndown": "^5.0.5",
54
- "@typescript-eslint/eslint-plugin": "^8.31.1",
55
- "@typescript-eslint/parser": "^8.31.1",
56
- "@vitejs/plugin-react": "^4.4.1",
54
+ "@typescript-eslint/eslint-plugin": "^8.35.1",
55
+ "@typescript-eslint/parser": "^8.35.1",
56
+ "@vitejs/plugin-react": "^4.6.0",
57
57
  "autoprefixer": "^10.4.21",
58
- "eslint": "^9.25.1",
58
+ "eslint": "^9.30.1",
59
59
  "eslint-plugin-react-hooks": "^5.2.0",
60
60
  "eslint-plugin-react-refresh": "^0.4.20",
61
- "glob": "^11.0.2",
61
+ "glob": "^11.0.3",
62
62
  "lodash": "^4.17.21",
63
- "postcss": "^8.5.3",
63
+ "postcss": "^8.5.6",
64
64
  "postcss-cli": "^11.0.1",
65
65
  "prettier": "3.4.2",
66
66
  "tailwindcss": "^3.4.17",
67
67
  "typescript": "^5.8.3",
68
- "vite": "^6.3.4",
69
- "vite-plugin-dts": "^4.5.3",
68
+ "vite": "^6.3.5",
69
+ "vite-plugin-dts": "^4.5.4",
70
70
  "vite-plugin-lib-inject-css": "^2.2.2"
71
71
  },
72
72
  "prepublishOnly": "npm run build",
@@ -75,27 +75,29 @@
75
75
  "registry": "https://registry.npmjs.org/"
76
76
  },
77
77
  "dependencies": {
78
- "@tiptap/core": "^2.11.9",
79
- "@tiptap/extension-focus": "^2.11.9",
80
- "@tiptap/extension-highlight": "^2.11.9",
81
- "@tiptap/extension-image": "^2.11.9",
82
- "@tiptap/extension-link": "^2.11.9",
83
- "@tiptap/extension-placeholder": "^2.11.9",
84
- "@tiptap/extension-table": "^2.11.9",
85
- "@tiptap/extension-table-cell": "^2.11.9",
86
- "@tiptap/extension-table-header": "^2.11.9",
87
- "@tiptap/extension-table-row": "^2.11.9",
88
- "@tiptap/extension-task-item": "^2.11.9",
89
- "@tiptap/extension-task-list": "^2.11.9",
90
- "@tiptap/extension-typography": "^2.11.9",
91
- "@tiptap/pm": "^2.11.9",
92
- "@tiptap/react": "^2.11.9",
93
- "@tiptap/starter-kit": "^2.11.9",
94
- "@tiptap/suggestion": "^2.11.9",
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",
95
96
  "clsx": "^2.1.1",
96
- "isomorphic-dompurify": "^2.24.0",
97
+ "isomorphic-dompurify": "^2.25.0",
97
98
  "katex": "^0.16.22",
98
- "marked": "^15.0.11",
99
+ "marked": "^15.0.12",
100
+ "tippy.js": "^6.3.7",
99
101
  "turndown": "^7.2.0"
100
102
  }
101
103
  }