@oyat/editor 1.2.2 → 1.3.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 (66) hide show
  1. package/dist/components/editor/editor-base-kit.d.ts +2 -0
  2. package/dist/components/editor/editor-base-kit.d.ts.map +1 -0
  3. package/dist/components/editor/editor-kit.d.ts +6 -0
  4. package/dist/components/editor/editor-kit.d.ts.map +1 -0
  5. package/dist/components/editor/plugins/suggestion-kit.d.ts +1 -1
  6. package/dist/components/editor/plugins/suggestion-kit.d.ts.map +1 -1
  7. package/dist/components/editor/use-chat.d.ts.map +1 -1
  8. package/dist/components/ui/block-list-static.d.ts.map +1 -1
  9. package/dist/components/ui/block-suggestion.d.ts +1 -4
  10. package/dist/components/ui/block-suggestion.d.ts.map +1 -1
  11. package/dist/components/ui/blockquote-node-static.d.ts +1 -1
  12. package/dist/components/ui/blockquote-node-static.d.ts.map +1 -1
  13. package/dist/components/ui/calendar.d.ts.map +1 -1
  14. package/dist/components/ui/callout-node-static.d.ts +1 -1
  15. package/dist/components/ui/callout-node-static.d.ts.map +1 -1
  16. package/dist/components/ui/code-block-node-static.d.ts +2 -1
  17. package/dist/components/ui/code-block-node-static.d.ts.map +1 -1
  18. package/dist/components/ui/code-node-static.d.ts +1 -1
  19. package/dist/components/ui/code-node-static.d.ts.map +1 -1
  20. package/dist/components/ui/column-node-static.d.ts +2 -1
  21. package/dist/components/ui/column-node-static.d.ts.map +1 -1
  22. package/dist/components/ui/comment-node-static.d.ts +2 -1
  23. package/dist/components/ui/comment-node-static.d.ts.map +1 -1
  24. package/dist/components/ui/date-node-static.d.ts +2 -1
  25. package/dist/components/ui/date-node-static.d.ts.map +1 -1
  26. package/dist/components/ui/editor-static.d.ts +1 -1
  27. package/dist/components/ui/editor-static.d.ts.map +1 -1
  28. package/dist/components/ui/equation-node-static.d.ts +2 -1
  29. package/dist/components/ui/equation-node-static.d.ts.map +1 -1
  30. package/dist/components/ui/export-toolbar-button.d.ts.map +1 -1
  31. package/dist/components/ui/heading-node-static.d.ts +1 -1
  32. package/dist/components/ui/heading-node-static.d.ts.map +1 -1
  33. package/dist/components/ui/highlight-node-static.d.ts +1 -1
  34. package/dist/components/ui/highlight-node-static.d.ts.map +1 -1
  35. package/dist/components/ui/hr-node-static.d.ts +1 -1
  36. package/dist/components/ui/hr-node-static.d.ts.map +1 -1
  37. package/dist/components/ui/kbd-node-static.d.ts +1 -1
  38. package/dist/components/ui/kbd-node-static.d.ts.map +1 -1
  39. package/dist/components/ui/link-node-static.d.ts +2 -1
  40. package/dist/components/ui/link-node-static.d.ts.map +1 -1
  41. package/dist/components/ui/media-audio-node-static.d.ts +2 -1
  42. package/dist/components/ui/media-audio-node-static.d.ts.map +1 -1
  43. package/dist/components/ui/media-file-node-static.d.ts +2 -1
  44. package/dist/components/ui/media-file-node-static.d.ts.map +1 -1
  45. package/dist/components/ui/media-image-node-static.d.ts +2 -1
  46. package/dist/components/ui/media-image-node-static.d.ts.map +1 -1
  47. package/dist/components/ui/media-video-node-static.d.ts +2 -1
  48. package/dist/components/ui/media-video-node-static.d.ts.map +1 -1
  49. package/dist/components/ui/mention-node-static.d.ts +2 -1
  50. package/dist/components/ui/mention-node-static.d.ts.map +1 -1
  51. package/dist/components/ui/paragraph-node-static.d.ts +1 -1
  52. package/dist/components/ui/paragraph-node-static.d.ts.map +1 -1
  53. package/dist/components/ui/suggestion-node-static.d.ts +2 -1
  54. package/dist/components/ui/suggestion-node-static.d.ts.map +1 -1
  55. package/dist/components/ui/suggestion-node.d.ts.map +1 -1
  56. package/dist/components/ui/table-node-static.d.ts +2 -1
  57. package/dist/components/ui/table-node-static.d.ts.map +1 -1
  58. package/dist/components/ui/toc-node-static.d.ts +1 -1
  59. package/dist/components/ui/toc-node-static.d.ts.map +1 -1
  60. package/dist/components/ui/toggle-node-static.d.ts +1 -1
  61. package/dist/components/ui/toggle-node-static.d.ts.map +1 -1
  62. package/dist/index.d.ts +2 -2
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +829 -12696
  65. package/dist/index.js.map +1 -1
  66. package/package.json +63 -63
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oyat/editor",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "A powerful, feature-rich Plate.js editor component with AI integration, collaboration features, and extensive customization options",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,16 +17,12 @@
17
17
  "README.md"
18
18
  ],
19
19
  "keywords": [
20
+ "oyat",
20
21
  "plate",
21
22
  "editor",
22
23
  "rich-text",
23
- "wysiwyg",
24
24
  "react",
25
- "typescript",
26
- "slate",
27
- "collaborative",
28
- "ai",
29
- "markdown"
25
+ "typescript"
30
26
  ],
31
27
  "author": "OYAT <oyat.app@gmail.com>",
32
28
  "license": "MIT",
@@ -48,18 +44,18 @@
48
44
  "type-check": "tsc --noEmit"
49
45
  },
50
46
  "peerDependencies": {
51
- "platejs": "^49.0.0",
47
+ "platejs": "^51.0.0",
52
48
  "react": ">=18.0.0",
53
49
  "react-dom": ">=18.0.0"
54
50
  },
55
51
  "peerDependenciesMeta": {
56
- "react": {
52
+ "platejs": {
57
53
  "optional": false
58
54
  },
59
- "react-dom": {
55
+ "react": {
60
56
  "optional": false
61
57
  },
62
- "platejs": {
58
+ "react-dom": {
63
59
  "optional": false
64
60
  }
65
61
  },
@@ -68,49 +64,50 @@
68
64
  "@ariakit/react": "^0.4.19",
69
65
  "@emoji-mart/data": "1.2.1",
70
66
  "@faker-js/faker": "^10.1.0",
71
- "@platejs/ai": "^50.3.5",
72
- "@platejs/autoformat": "^49.0.0",
73
- "@platejs/basic-nodes": "^49.0.0",
74
- "@platejs/basic-styles": "^49.0.0",
75
- "@platejs/callout": "^49.0.0",
76
- "@platejs/caption": "^49.0.0",
77
- "@platejs/code-block": "^49.0.0",
78
- "@platejs/combobox": "^49.0.0",
79
- "@platejs/comment": "^50.2.0",
80
- "@platejs/date": "^49.0.2",
81
- "@platejs/diff": "^50.2.0",
82
- "@platejs/dnd": "^50.3.1",
83
- "@platejs/docx": "^49.0.0",
84
- "@platejs/emoji": "^49.0.0",
85
- "@platejs/excalidraw": "^50.3.0",
86
- "@platejs/floating": "^50.3.2",
87
- "@platejs/indent": "^49.0.0",
88
- "@platejs/juice": "^49.0.0",
89
- "@platejs/layout": "^49.2.1",
90
- "@platejs/link": "^50.3.2",
91
- "@platejs/list": "^50.2.0",
92
- "@platejs/markdown": "^50.2.0",
93
- "@platejs/math": "^49.0.0",
94
- "@platejs/media": "^49.0.0",
95
- "@platejs/mention": "^49.0.0",
96
- "@platejs/resizable": "^49.0.0",
97
- "@platejs/selection": "^50.3.4",
98
- "@platejs/slash-command": "^49.0.0",
99
- "@platejs/suggestion": "^50.3.3",
100
- "@platejs/table": "^49.1.13",
101
- "@platejs/toc": "^49.0.0",
102
- "@platejs/toggle": "^49.0.0",
67
+ "@platejs/ai": "^51.0.1",
68
+ "@platejs/autoformat": "^51.0.0",
69
+ "@platejs/basic-nodes": "^51.0.0",
70
+ "@platejs/basic-styles": "^51.0.0",
71
+ "@platejs/callout": "^51.0.0",
72
+ "@platejs/caption": "^51.0.0",
73
+ "@platejs/code-block": "^51.0.0",
74
+ "@platejs/combobox": "^51.0.0",
75
+ "@platejs/comment": "^51.0.0",
76
+ "@platejs/date": "^51.0.0",
77
+ "@platejs/diff": "^51.0.0",
78
+ "@platejs/dnd": "^51.0.0",
79
+ "@platejs/docx": "^51.0.0",
80
+ "@platejs/emoji": "^51.0.0",
81
+ "@platejs/excalidraw": "^51.0.0",
82
+ "@platejs/floating": "^51.0.0",
83
+ "@platejs/indent": "^51.0.0",
84
+ "@platejs/juice": "^51.0.0",
85
+ "@platejs/layout": "^51.0.0",
86
+ "@platejs/link": "^51.0.0",
87
+ "@platejs/list": "^51.0.0",
88
+ "@platejs/markdown": "^51.0.0",
89
+ "@platejs/math": "^51.0.0",
90
+ "@platejs/media": "^51.0.0",
91
+ "@platejs/mention": "^51.0.0",
92
+ "@platejs/resizable": "^51.0.0",
93
+ "@platejs/selection": "^51.0.0",
94
+ "@platejs/slash-command": "^51.0.0",
95
+ "@platejs/suggestion": "^51.0.0",
96
+ "@platejs/table": "^51.0.0",
97
+ "@platejs/toc": "^51.0.0",
98
+ "@platejs/toggle": "^51.0.0",
103
99
  "@radix-ui/react-alert-dialog": "^1.1.15",
104
- "@radix-ui/react-avatar": "^1.1.10",
100
+ "@radix-ui/react-avatar": "^1.1.11",
105
101
  "@radix-ui/react-checkbox": "^1.3.3",
106
102
  "@radix-ui/react-context-menu": "^2.2.16",
107
103
  "@radix-ui/react-dialog": "^1.1.15",
108
104
  "@radix-ui/react-dropdown-menu": "^2.1.16",
109
105
  "@radix-ui/react-popover": "^1.1.15",
110
- "@radix-ui/react-separator": "^1.1.7",
111
- "@radix-ui/react-slot": "^1.2.3",
106
+ "@radix-ui/react-separator": "^1.1.8",
107
+ "@radix-ui/react-slot": "^1.2.4",
112
108
  "@radix-ui/react-toolbar": "^1.1.11",
113
109
  "@radix-ui/react-tooltip": "^1.2.8",
110
+ "@tailwindcss/vite": "^4.1.17",
114
111
  "@udecode/cn": "^49.0.15",
115
112
  "@uploadthing/react": "7.3.3",
116
113
  "ai": "5.0.28",
@@ -119,14 +116,17 @@
119
116
  "cmdk": "^1.1.1",
120
117
  "date-fns": "^4.1.0",
121
118
  "dedent": "1.0.0",
122
- "html2canvas-pro": "^1.5.12",
119
+ "html2canvas-pro": "^1.5.13",
123
120
  "lodash": "^4.17.21",
124
121
  "lowlight": "^3.3.0",
125
- "lucide-react": "^0.545.0",
122
+ "lucide-react": "^0.553.0",
126
123
  "pdf-lib": "^1.17.1",
124
+ "platejs": "^51.0.0",
125
+ "react": "^19.2.0",
127
126
  "react-day-picker": "^9.11.1",
128
127
  "react-dnd": "^16.0.1",
129
128
  "react-dnd-html5-backend": "^16.0.1",
129
+ "react-dom": "^19.2.0",
130
130
  "react-lite-youtube-embed": "^2.5.6",
131
131
  "react-player": "3.3.1",
132
132
  "react-textarea-autosize": "^8.5.9",
@@ -134,30 +134,30 @@
134
134
  "remark-gfm": "^4.0.1",
135
135
  "remark-math": "^6.0.0",
136
136
  "sonner": "^2.0.7",
137
- "tailwind-merge": "^3.3.1",
137
+ "tailwind-merge": "^3.4.0",
138
138
  "tailwind-scrollbar-hide": "^4.0.0",
139
+ "tailwindcss": "^4.1.17",
139
140
  "uploadthing": "7.7.4",
140
141
  "use-file-picker": "2.1.2",
141
142
  "zod": "^4.1.12"
142
143
  },
143
144
  "devDependencies": {
144
- "@eslint/js": "^9.36.0",
145
- "@tailwindcss/vite": "^4.1.14",
146
- "@types/node": "^24.6.0",
147
- "@types/react": "^19.1.16",
148
- "@types/react-dom": "^19.1.9",
149
- "@vitejs/plugin-react": "^5.0.4",
150
- "eslint": "^9.36.0",
145
+ "@eslint/js": "^9.39.1",
146
+ "@types/lodash": "^4.17.20",
147
+ "@types/node": "^24.10.0",
148
+ "@types/react": "^19.2.2",
149
+ "@types/react-dom": "^19.2.2",
150
+ "@vitejs/plugin-react": "^5.1.0",
151
+ "eslint": "^9.39.1",
151
152
  "eslint-plugin-react-hooks": "^5.2.0",
152
- "eslint-plugin-react-refresh": "^0.4.22",
153
- "globals": "^16.4.0",
154
- "tailwindcss": "^4.1.14",
155
- "terser": "^5.44.0",
153
+ "eslint-plugin-react-refresh": "^0.4.24",
154
+ "globals": "^16.5.0",
155
+ "terser": "^5.44.1",
156
156
  "tw-animate-css": "^1.4.0",
157
157
  "typescript": "~5.9.3",
158
- "typescript-eslint": "^8.45.0",
159
- "vite": "^7.1.7",
158
+ "typescript-eslint": "^8.46.3",
159
+ "vite": "^7.2.2",
160
160
  "vite-plugin-css-injected-by-js": "^3.5.2",
161
- "vite-plugin-dts": "^4.3.0"
161
+ "vite-plugin-dts": "^4.5.4"
162
162
  }
163
163
  }