@oyat/editor 1.7.5 → 1.7.7
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 +64 -19
- package/dist/components/editor/editor-base-kit.d.ts.map +1 -1
- package/dist/components/editor/editor-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/autoformat-kit.d.ts +1 -1
- package/dist/components/editor/plugins/autoformat-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/block-placeholder-kit.d.ts +15 -1
- package/dist/components/editor/plugins/block-placeholder-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/exit-break-kit.d.ts +4 -1
- package/dist/components/editor/plugins/exit-break-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/media-base-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/media-kit.d.ts.map +1 -1
- package/dist/components/editor/plugins/suggestion-kit.d.ts.map +1 -1
- package/dist/components/editor/transforms.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/avatar.d.ts +1 -1
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts +5 -3
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/caption.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts +2 -2
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/comment.d.ts.map +1 -1
- package/dist/components/ui/context-menu.d.ts +12 -6
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +7 -3
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/input-group.d.ts +17 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/insert-image-url-toolbar-button.d.ts.map +1 -1
- package/dist/components/ui/media-picker-toolbar-trigger.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/table-node.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/turn-into-toolbar-button.d.ts.map +1 -1
- package/dist/contexts/media-picker-context.d.ts.map +1 -1
- package/dist/contexts/media-picker-provider.d.ts.map +1 -1
- package/dist/index.js +569 -568
- package/dist/index.js.map +1 -1
- package/dist/lib/uploadthing.d.ts +4 -0
- package/dist/lib/uploadthing.d.ts.map +1 -0
- package/dist/lib/user-id.d.ts +10 -0
- package/dist/lib/user-id.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/package.json +16 -19
- package/dist/demo/MockMediaPicker.d.ts +0 -6
- package/dist/demo/MockMediaPicker.d.ts.map +0 -1
- package/dist/demo/discussions.d.ts +0 -3
- package/dist/demo/discussions.d.ts.map +0 -1
- package/dist/demo/value.d.ts +0 -3
- package/dist/demo/value.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadthing.d.ts","sourceRoot":"","sources":["../../src/lib/uploadthing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,eAAO,MAAM,aAAa,EAAE,UAUN,CAAC;AAEvB,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a userId string in "id:name" format.
|
|
3
|
+
* e.g. "id123:Orcun Yuksel" → { id: "id123", name: "Orcun Yuksel" }
|
|
4
|
+
* Fallback: if no ":", return { id: userId, name: userId }
|
|
5
|
+
*/
|
|
6
|
+
export declare function parseUserId(userId: string): {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=user-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-id.d.ts","sourceRoot":"","sources":["../../src/lib/user-id.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAUxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oyat/editor",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
7
7
|
"build": "tsc -b && vite build",
|
|
8
8
|
"lint": "eslint .",
|
|
9
|
+
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
|
10
|
+
"typecheck": "tsc --noEmit",
|
|
9
11
|
"preview": "vite preview",
|
|
10
12
|
"build:lib": "vite build --config vite.config.lib.ts",
|
|
11
|
-
"prepublishOnly": "npm run build:lib"
|
|
12
|
-
"type-check": "tsc --noEmit"
|
|
13
|
+
"prepublishOnly": "npm run build:lib"
|
|
13
14
|
},
|
|
14
15
|
"dependencies": {
|
|
15
16
|
"@ai-sdk/react": "2.0.28",
|
|
16
|
-
"@ariakit/react": "^0.4.
|
|
17
|
+
"@ariakit/react": "^0.4.23",
|
|
17
18
|
"@emoji-mart/data": "1.2.1",
|
|
18
19
|
"@faker-js/faker": "^10.3.0",
|
|
20
|
+
"@fontsource-variable/geist": "^5.2.8",
|
|
19
21
|
"@platejs/ai": "^52.3.1",
|
|
20
|
-
"@platejs/autoformat": "^52.
|
|
22
|
+
"@platejs/autoformat": "^52.3.4",
|
|
21
23
|
"@platejs/basic-nodes": "^52.0.11",
|
|
22
24
|
"@platejs/basic-styles": "^52.0.11",
|
|
23
25
|
"@platejs/callout": "^52.0.11",
|
|
@@ -49,19 +51,12 @@
|
|
|
49
51
|
"@platejs/table": "^52.0.11",
|
|
50
52
|
"@platejs/toc": "^52.0.11",
|
|
51
53
|
"@platejs/toggle": "^52.0.11",
|
|
52
|
-
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
53
|
-
"@radix-ui/react-avatar": "^1.1.11",
|
|
54
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
55
|
-
"@radix-ui/react-context-menu": "^2.2.16",
|
|
56
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
57
54
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
58
55
|
"@radix-ui/react-popover": "^1.1.15",
|
|
59
|
-
"@radix-ui/react-separator": "^1.1.8",
|
|
60
|
-
"@radix-ui/react-slot": "^1.2.4",
|
|
61
56
|
"@radix-ui/react-toolbar": "^1.1.11",
|
|
62
57
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
63
58
|
"@tailwindcss/vite": "^4.1.17",
|
|
64
|
-
"@udecode/cn": "^52.
|
|
59
|
+
"@udecode/cn": "^52.3.4",
|
|
65
60
|
"@uploadthing/react": "7.3.3",
|
|
66
61
|
"ai": "5.0.28",
|
|
67
62
|
"class-variance-authority": "^0.7.1",
|
|
@@ -72,9 +67,9 @@
|
|
|
72
67
|
"html2canvas-pro": "^2.0.2",
|
|
73
68
|
"lodash": "^4.17.23",
|
|
74
69
|
"lowlight": "^3.3.0",
|
|
75
|
-
"lucide-react": "^0.
|
|
70
|
+
"lucide-react": "^0.577.0",
|
|
76
71
|
"pdf-lib": "^1.17.1",
|
|
77
|
-
"platejs": "^52.3.
|
|
72
|
+
"platejs": "^52.3.4",
|
|
78
73
|
"radix-ui": "^1.4.3",
|
|
79
74
|
"react": "^19.2.0",
|
|
80
75
|
"react-day-picker": "^9.14.0",
|
|
@@ -87,17 +82,19 @@
|
|
|
87
82
|
"react-tweet": "^3.3.0",
|
|
88
83
|
"remark-gfm": "^4.0.1",
|
|
89
84
|
"remark-math": "^6.0.0",
|
|
85
|
+
"shadcn": "^4.0.5",
|
|
90
86
|
"sonner": "^2.0.7",
|
|
91
87
|
"tailwind-merge": "^3.5.0",
|
|
92
88
|
"tailwind-scrollbar-hide": "^4.0.0",
|
|
93
89
|
"tailwindcss": "^4.1.17",
|
|
90
|
+
"tw-animate-css": "^1.4.0",
|
|
94
91
|
"uploadthing": "7.7.4",
|
|
95
92
|
"use-file-picker": "2.1.2",
|
|
96
93
|
"zod": "^4.3.6"
|
|
97
94
|
},
|
|
98
95
|
"devDependencies": {
|
|
99
96
|
"@eslint/js": "^9.39.1",
|
|
100
|
-
"@types/lodash": "^4.17.
|
|
97
|
+
"@types/lodash": "^4.17.24",
|
|
101
98
|
"@types/node": "^24.10.1",
|
|
102
99
|
"@types/react": "^19.2.5",
|
|
103
100
|
"@types/react-dom": "^19.2.3",
|
|
@@ -106,13 +103,13 @@
|
|
|
106
103
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
107
104
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
108
105
|
"globals": "^16.5.0",
|
|
109
|
-
"
|
|
106
|
+
"prettier": "^3.8.1",
|
|
107
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
110
108
|
"terser": "^5.46.0",
|
|
111
|
-
"tw-animate-css": "^1.4.0",
|
|
112
109
|
"typescript": "~5.9.3",
|
|
113
110
|
"typescript-eslint": "^8.46.4",
|
|
114
111
|
"vite": "^7.2.4",
|
|
115
|
-
"vite-plugin-css-injected-by-js": "^
|
|
112
|
+
"vite-plugin-css-injected-by-js": "^4.0.1",
|
|
116
113
|
"vite-plugin-dts": "^4.5.4"
|
|
117
114
|
},
|
|
118
115
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MockMediaPicker.d.ts","sourceRoot":"","sources":["../../src/demo/MockMediaPicker.tsx"],"names":[],"mappings":"AAYA,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC3C,2CAsCA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discussions.d.ts","sourceRoot":"","sources":["../../src/demo/discussions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAE9E,eAAO,MAAM,eAAe,EA4BvB,WAAW,EAAE,CAAC"}
|
package/dist/demo/value.d.ts
DELETED
package/dist/demo/value.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../src/demo/value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,KAAK,EAAE,KAwjClB,CAAC"}
|