@oyat/editor 1.7.5 → 1.7.6
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/block-placeholder-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/caption.d.ts.map +1 -1
- package/dist/components/ui/comment.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/table-node.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 +835 -837
- 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 +4 -11
- 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oyat/editor",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -49,15 +49,8 @@
|
|
|
49
49
|
"@platejs/table": "^52.0.11",
|
|
50
50
|
"@platejs/toc": "^52.0.11",
|
|
51
51
|
"@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
52
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
58
53
|
"@radix-ui/react-popover": "^1.1.15",
|
|
59
|
-
"@radix-ui/react-separator": "^1.1.8",
|
|
60
|
-
"@radix-ui/react-slot": "^1.2.4",
|
|
61
54
|
"@radix-ui/react-toolbar": "^1.1.11",
|
|
62
55
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
63
56
|
"@tailwindcss/vite": "^4.1.17",
|
|
@@ -72,7 +65,7 @@
|
|
|
72
65
|
"html2canvas-pro": "^2.0.2",
|
|
73
66
|
"lodash": "^4.17.23",
|
|
74
67
|
"lowlight": "^3.3.0",
|
|
75
|
-
"lucide-react": "^0.
|
|
68
|
+
"lucide-react": "^0.577.0",
|
|
76
69
|
"pdf-lib": "^1.17.1",
|
|
77
70
|
"platejs": "^52.3.2",
|
|
78
71
|
"radix-ui": "^1.4.3",
|
|
@@ -97,7 +90,7 @@
|
|
|
97
90
|
},
|
|
98
91
|
"devDependencies": {
|
|
99
92
|
"@eslint/js": "^9.39.1",
|
|
100
|
-
"@types/lodash": "^4.17.
|
|
93
|
+
"@types/lodash": "^4.17.24",
|
|
101
94
|
"@types/node": "^24.10.1",
|
|
102
95
|
"@types/react": "^19.2.5",
|
|
103
96
|
"@types/react-dom": "^19.2.3",
|
|
@@ -112,7 +105,7 @@
|
|
|
112
105
|
"typescript": "~5.9.3",
|
|
113
106
|
"typescript-eslint": "^8.46.4",
|
|
114
107
|
"vite": "^7.2.4",
|
|
115
|
-
"vite-plugin-css-injected-by-js": "^
|
|
108
|
+
"vite-plugin-css-injected-by-js": "^4.0.1",
|
|
116
109
|
"vite-plugin-dts": "^4.5.4"
|
|
117
110
|
},
|
|
118
111
|
"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"}
|