@oyat/editor 1.0.5
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/README.md +213 -0
- package/dist/editor.css +1 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.js +11906 -0
- package/dist/index.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +162 -0
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oyat/editor",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "A powerful, feature-rich Plate.js editor component with AI integration, collaboration features, and extensive customization options",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./styles": "./dist/oyat-editor.css"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"plate",
|
|
22
|
+
"editor",
|
|
23
|
+
"rich-text",
|
|
24
|
+
"wysiwyg",
|
|
25
|
+
"react",
|
|
26
|
+
"typescript",
|
|
27
|
+
"slate",
|
|
28
|
+
"collaborative",
|
|
29
|
+
"ai",
|
|
30
|
+
"markdown"
|
|
31
|
+
],
|
|
32
|
+
"author": "OYAT <oyat.app@gmail.com>",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/oyat/oyat-editor.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/oyat/oyat-editor/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/oyat/oyat-editor#readme",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"dev": "vite",
|
|
44
|
+
"build": "tsc && vite build",
|
|
45
|
+
"build:lib": "vite build --config vite.config.lib.ts && cp src/index.d.ts dist/index.d.ts",
|
|
46
|
+
"lint": "eslint .",
|
|
47
|
+
"preview": "vite preview",
|
|
48
|
+
"prepublishOnly": "npm run build:lib",
|
|
49
|
+
"type-check": "tsc --noEmit"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"react": ">=18.0.0",
|
|
53
|
+
"react-dom": ">=18.0.0",
|
|
54
|
+
"platejs": "^49.0.0"
|
|
55
|
+
},
|
|
56
|
+
"peerDependenciesMeta": {
|
|
57
|
+
"react": {
|
|
58
|
+
"optional": false
|
|
59
|
+
},
|
|
60
|
+
"react-dom": {
|
|
61
|
+
"optional": false
|
|
62
|
+
},
|
|
63
|
+
"platejs": {
|
|
64
|
+
"optional": false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@ai-sdk/google": "2.0.11",
|
|
69
|
+
"@ai-sdk/openai": "2.0.23",
|
|
70
|
+
"@ai-sdk/react": "2.0.28",
|
|
71
|
+
"@ariakit/react": "^0.4.19",
|
|
72
|
+
"@emoji-mart/data": "1.2.1",
|
|
73
|
+
"@faker-js/faker": "^10.0.0",
|
|
74
|
+
"@platejs/ai": "^50.3.4",
|
|
75
|
+
"@platejs/autoformat": "^49.0.0",
|
|
76
|
+
"@platejs/basic-nodes": "^49.0.0",
|
|
77
|
+
"@platejs/basic-styles": "^49.0.0",
|
|
78
|
+
"@platejs/callout": "^49.0.0",
|
|
79
|
+
"@platejs/caption": "^49.0.0",
|
|
80
|
+
"@platejs/code-block": "^49.0.0",
|
|
81
|
+
"@platejs/combobox": "^49.0.0",
|
|
82
|
+
"@platejs/comment": "^50.2.0",
|
|
83
|
+
"@platejs/date": "^49.0.2",
|
|
84
|
+
"@platejs/dnd": "^50.3.1",
|
|
85
|
+
"@platejs/docx": "^49.0.0",
|
|
86
|
+
"@platejs/emoji": "^49.0.0",
|
|
87
|
+
"@platejs/excalidraw": "^50.3.0",
|
|
88
|
+
"@platejs/floating": "^50.3.2",
|
|
89
|
+
"@platejs/indent": "^49.0.0",
|
|
90
|
+
"@platejs/juice": "^49.0.0",
|
|
91
|
+
"@platejs/layout": "^49.2.1",
|
|
92
|
+
"@platejs/link": "^50.3.2",
|
|
93
|
+
"@platejs/list": "^50.2.0",
|
|
94
|
+
"@platejs/markdown": "^50.2.0",
|
|
95
|
+
"@platejs/math": "^49.0.0",
|
|
96
|
+
"@platejs/media": "^49.0.0",
|
|
97
|
+
"@platejs/mention": "^49.0.0",
|
|
98
|
+
"@platejs/resizable": "^49.0.0",
|
|
99
|
+
"@platejs/selection": "^50.3.4",
|
|
100
|
+
"@platejs/slash-command": "^49.0.0",
|
|
101
|
+
"@platejs/suggestion": "^50.3.3",
|
|
102
|
+
"@platejs/table": "^49.1.13",
|
|
103
|
+
"@platejs/toc": "^49.0.0",
|
|
104
|
+
"@platejs/toggle": "^49.0.0",
|
|
105
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
106
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
107
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
108
|
+
"@radix-ui/react-context-menu": "^2.2.16",
|
|
109
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
110
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
111
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
112
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
113
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
114
|
+
"@radix-ui/react-toolbar": "^1.1.11",
|
|
115
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
116
|
+
"@udecode/cn": "^49.0.15",
|
|
117
|
+
"@uploadthing/react": "7.3.3",
|
|
118
|
+
"ai": "5.0.28",
|
|
119
|
+
"class-variance-authority": "^0.7.1",
|
|
120
|
+
"clsx": "^2.1.1",
|
|
121
|
+
"cmdk": "^1.1.1",
|
|
122
|
+
"date-fns": "^4.1.0",
|
|
123
|
+
"html2canvas-pro": "^1.5.11",
|
|
124
|
+
"lodash": "^4.17.21",
|
|
125
|
+
"lowlight": "^3.3.0",
|
|
126
|
+
"lucide-react": "^0.545.0",
|
|
127
|
+
"pdf-lib": "^1.17.1",
|
|
128
|
+
"react-day-picker": "^9.11.0",
|
|
129
|
+
"react-dnd": "^16.0.1",
|
|
130
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
131
|
+
"react-lite-youtube-embed": "^2.5.6",
|
|
132
|
+
"react-player": "3.3.1",
|
|
133
|
+
"react-textarea-autosize": "^8.5.9",
|
|
134
|
+
"react-tweet": "^3.2.2",
|
|
135
|
+
"remark-gfm": "^4.0.1",
|
|
136
|
+
"remark-math": "^6.0.0",
|
|
137
|
+
"sonner": "^2.0.7",
|
|
138
|
+
"tailwind-merge": "^3.3.1",
|
|
139
|
+
"tailwind-scrollbar-hide": "^4.0.0",
|
|
140
|
+
"uploadthing": "7.7.4",
|
|
141
|
+
"use-file-picker": "2.1.2",
|
|
142
|
+
"zod": "^4.1.12"
|
|
143
|
+
},
|
|
144
|
+
"devDependencies": {
|
|
145
|
+
"@eslint/js": "^9.36.0",
|
|
146
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
147
|
+
"@types/node": "^24.6.0",
|
|
148
|
+
"@types/react": "^19.1.16",
|
|
149
|
+
"@types/react-dom": "^19.1.9",
|
|
150
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
151
|
+
"eslint": "^9.36.0",
|
|
152
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
153
|
+
"eslint-plugin-react-refresh": "^0.4.22",
|
|
154
|
+
"globals": "^16.4.0",
|
|
155
|
+
"tailwindcss": "^4.1.14",
|
|
156
|
+
"tw-animate-css": "^1.4.0",
|
|
157
|
+
"typescript": "~5.9.3",
|
|
158
|
+
"typescript-eslint": "^8.45.0",
|
|
159
|
+
"vite": "^7.1.7",
|
|
160
|
+
"vite-plugin-dts": "^4.3.0"
|
|
161
|
+
}
|
|
162
|
+
}
|