@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.
Files changed (31) hide show
  1. package/README.md +64 -19
  2. package/dist/components/editor/editor-base-kit.d.ts.map +1 -1
  3. package/dist/components/editor/editor-kit.d.ts.map +1 -1
  4. package/dist/components/editor/plugins/block-placeholder-kit.d.ts.map +1 -1
  5. package/dist/components/editor/plugins/media-base-kit.d.ts.map +1 -1
  6. package/dist/components/editor/plugins/media-kit.d.ts.map +1 -1
  7. package/dist/components/editor/plugins/suggestion-kit.d.ts.map +1 -1
  8. package/dist/components/editor/transforms.d.ts.map +1 -1
  9. package/dist/components/ui/caption.d.ts.map +1 -1
  10. package/dist/components/ui/comment.d.ts.map +1 -1
  11. package/dist/components/ui/insert-image-url-toolbar-button.d.ts.map +1 -1
  12. package/dist/components/ui/media-picker-toolbar-trigger.d.ts.map +1 -1
  13. package/dist/components/ui/table-node.d.ts.map +1 -1
  14. package/dist/components/ui/turn-into-toolbar-button.d.ts.map +1 -1
  15. package/dist/contexts/media-picker-context.d.ts.map +1 -1
  16. package/dist/contexts/media-picker-provider.d.ts.map +1 -1
  17. package/dist/index.js +835 -837
  18. package/dist/index.js.map +1 -1
  19. package/dist/lib/uploadthing.d.ts +4 -0
  20. package/dist/lib/uploadthing.d.ts.map +1 -0
  21. package/dist/lib/user-id.d.ts +10 -0
  22. package/dist/lib/user-id.d.ts.map +1 -0
  23. package/dist/lib/utils.d.ts +3 -0
  24. package/dist/lib/utils.d.ts.map +1 -0
  25. package/package.json +4 -11
  26. package/dist/demo/MockMediaPicker.d.ts +0 -6
  27. package/dist/demo/MockMediaPicker.d.ts.map +0 -1
  28. package/dist/demo/discussions.d.ts +0 -3
  29. package/dist/demo/discussions.d.ts.map +0 -1
  30. package/dist/demo/value.d.ts +0 -3
  31. package/dist/demo/value.d.ts.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { FileRouter } from 'uploadthing/next';
2
+ export declare const ourFileRouter: FileRouter;
3
+ export type OurFileRouter = typeof ourFileRouter;
4
+ //# sourceMappingURL=uploadthing.d.ts.map
@@ -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,3 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -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.5",
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.575.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.23",
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": "^3.5.2",
108
+ "vite-plugin-css-injected-by-js": "^4.0.1",
116
109
  "vite-plugin-dts": "^4.5.4"
117
110
  },
118
111
  "peerDependencies": {
@@ -1,6 +0,0 @@
1
- export declare function MockMediaPicker({ onSelect, }: {
2
- onSelect: (data: {
3
- url: string;
4
- }) => void;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=MockMediaPicker.d.ts.map
@@ -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,3 +0,0 @@
1
- import { TDiscussion } from '../components/editor/plugins/discussion-kit';
2
- export declare const discussionsData: TDiscussion[];
3
- //# sourceMappingURL=discussions.d.ts.map
@@ -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"}
@@ -1,3 +0,0 @@
1
- import { Value } from 'platejs';
2
- export declare const value: Value;
3
- //# sourceMappingURL=value.d.ts.map
@@ -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"}