@clevertask/scribe 0.0.0

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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +167 -0
  3. package/dist/SlashCommandList-DYKFukY8.js +3734 -0
  4. package/dist/components/Menu/BarMenu.d.ts +7 -0
  5. package/dist/components/Menu/BarMenu.js +119 -0
  6. package/dist/components/Menu/BubbleMenu.d.ts +7 -0
  7. package/dist/components/Menu/BubbleMenu.js +176 -0
  8. package/dist/components/Scribe/extension/extension-link.d.ts +2 -0
  9. package/dist/components/Scribe/extension/extension-link.js +934 -0
  10. package/dist/components/Scribe/extension/extension-selectedText.d.ts +12 -0
  11. package/dist/components/Scribe/extension/extension-selectedText.js +13 -0
  12. package/dist/components/Scribe/extension/index.d.ts +2 -0
  13. package/dist/components/Scribe/extension/index.js +1647 -0
  14. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts +5 -0
  15. package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +10 -0
  16. package/dist/components/Scribe/extension/slashCommand/index.d.ts +4 -0
  17. package/dist/components/Scribe/extension/slashCommand/index.js +154 -0
  18. package/dist/components/Scribe/extension/slashCommand/items.d.ts +23 -0
  19. package/dist/components/Scribe/extension/slashCommand/items.js +159 -0
  20. package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts +8 -0
  21. package/dist/components/Scribe/extension/slashCommand/renderItems.js +38 -0
  22. package/dist/components/Scribe/index.d.ts +28 -0
  23. package/dist/components/Scribe/index.js +92 -0
  24. package/dist/index-Cu10LNOZ.js +2505 -0
  25. package/dist/index-CzwFCNeI.js +12114 -0
  26. package/dist/main.css +1134 -0
  27. package/dist/main.d.ts +2 -0
  28. package/dist/main.js +10 -0
  29. package/dist/marked.esm-DIt7dqAB.js +1574 -0
  30. package/dist/purify.es-Bzg5nW_L.js +524 -0
  31. package/dist/turndown.browser.es-DwgPoVx0.js +646 -0
  32. package/dist/utils/html-to-markdown.d.ts +1 -0
  33. package/dist/utils/html-to-markdown.js +11 -0
  34. package/dist/utils/index.d.ts +3 -0
  35. package/dist/utils/index.js +8 -0
  36. package/dist/utils/is-in-viewport.d.ts +1 -0
  37. package/dist/utils/is-in-viewport.js +7 -0
  38. package/dist/utils/markdown-to-html.d.ts +1 -0
  39. package/dist/utils/markdown-to-html.js +6 -0
  40. package/dist/vite-env.d.js +1 -0
  41. package/package.json +95 -0
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "@clevertask/scribe",
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
+ "author": "CleverTask",
5
+ "private": false,
6
+ "version": "0.0.0",
7
+ "type": "module",
8
+ "main": "dist/main.js",
9
+ "types": "dist/main.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "keywords": [
14
+ "react",
15
+ "javascript",
16
+ "editor",
17
+ "typescript",
18
+ "prosemirror",
19
+ "wysiwyg",
20
+ "rich-text-editor",
21
+ "notion",
22
+ "block-based",
23
+ "tiptap"
24
+ ],
25
+ "license": "MIT",
26
+ "homepage": "https://github.com/clevertask/scribe",
27
+ "bugs": {
28
+ "url": "https://github.com/clevertask/scribe/issues"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/clevertask/scribe.git"
33
+ },
34
+ "scripts": {
35
+ "dev": "vite",
36
+ "build": "tsc --p ./tsconfig-build.json && 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
+ "peerDependencies": {
44
+ "react": "^18.0.0",
45
+ "react-dom": "^18.0.0"
46
+ },
47
+ "devDependencies": {
48
+ "@tailwindcss/typography": "^0.5.15",
49
+ "@types/lodash": "^4.14.201",
50
+ "@types/node": "^22.10.1",
51
+ "@types/react": "^18.3.12",
52
+ "@types/react-dom": "^18.3.1",
53
+ "@types/turndown": "^5.0.5",
54
+ "@typescript-eslint/eslint-plugin": "^8.16.0",
55
+ "@typescript-eslint/parser": "^8.16.0",
56
+ "@vitejs/plugin-react": "^4.3.4",
57
+ "autoprefixer": "^10.4.20",
58
+ "eslint": "^9.16.0",
59
+ "eslint-plugin-react-hooks": "^5.0.0",
60
+ "eslint-plugin-react-refresh": "^0.4.14",
61
+ "glob": "^11.0.0",
62
+ "lodash": "^4.17.21",
63
+ "postcss": "^8.4.49",
64
+ "postcss-cli": "^11.0.0",
65
+ "prettier": "3.4.2",
66
+ "tailwindcss": "^3.4.15",
67
+ "typescript": "^5.7.2",
68
+ "vite": "^6.0.2",
69
+ "vite-plugin-dts": "^4.3.0",
70
+ "vite-plugin-lib-inject-css": "^2.1.1"
71
+ },
72
+ "prepublishOnly": "npm run build",
73
+ "publishConfig": {
74
+ "access": "public",
75
+ "registry": "https://registry.npmjs.org/"
76
+ },
77
+ "dependencies": {
78
+ "@tiptap/core": "^2.10.3",
79
+ "@tiptap/extension-focus": "^2.10.3",
80
+ "@tiptap/extension-highlight": "^2.10.3",
81
+ "@tiptap/extension-image": "^2.10.3",
82
+ "@tiptap/extension-link": "^2.10.3",
83
+ "@tiptap/extension-placeholder": "^2.10.3",
84
+ "@tiptap/extension-task-item": "^2.10.3",
85
+ "@tiptap/extension-task-list": "^2.10.3",
86
+ "@tiptap/pm": "^2.10.3",
87
+ "@tiptap/react": "^2.10.3",
88
+ "@tiptap/starter-kit": "^2.10.3",
89
+ "@tiptap/suggestion": "^2.10.3",
90
+ "clsx": "^2.1.1",
91
+ "dompurify": "^3.2.2",
92
+ "marked": "^15.0.3",
93
+ "turndown": "^7.2.0"
94
+ }
95
+ }