@oyat/editor 1.6.4 → 1.7.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 (92) hide show
  1. package/README.md +53 -36
  2. package/dist/components/editor/editor-base-kit.d.ts +283 -1
  3. package/dist/components/editor/editor-base-kit.d.ts.map +1 -1
  4. package/dist/components/editor/editor-kit.d.ts +592 -1
  5. package/dist/components/editor/editor-kit.d.ts.map +1 -1
  6. package/dist/components/editor/plate-editor.d.ts +4 -1
  7. package/dist/components/editor/plate-editor.d.ts.map +1 -1
  8. package/dist/components/editor/plugins/media-base-kit.d.ts +2 -2
  9. package/dist/components/editor/plugins/media-base-kit.d.ts.map +1 -1
  10. package/dist/components/editor/plugins/media-kit.d.ts +2 -2
  11. package/dist/components/editor/plugins/media-kit.d.ts.map +1 -1
  12. package/dist/components/ui/callout-node-static.d.ts +4 -0
  13. package/dist/components/ui/callout-node-static.d.ts.map +1 -1
  14. package/dist/components/ui/caption.d.ts +11 -0
  15. package/dist/components/ui/caption.d.ts.map +1 -0
  16. package/dist/components/ui/code-block-node-static.d.ts +7 -0
  17. package/dist/components/ui/code-block-node-static.d.ts.map +1 -1
  18. package/dist/components/ui/column-node-static.d.ts +8 -0
  19. package/dist/components/ui/column-node-static.d.ts.map +1 -1
  20. package/dist/components/ui/editor.d.ts +1 -1
  21. package/dist/components/ui/equation-node-static.d.ts +10 -0
  22. package/dist/components/ui/equation-node-static.d.ts.map +1 -1
  23. package/dist/components/ui/fixed-toolbar-buttons.d.ts.map +1 -1
  24. package/dist/components/ui/floating-toolbar-buttons.d.ts.map +1 -1
  25. package/dist/components/ui/font-color-toolbar-button.d.ts +23 -0
  26. package/dist/components/ui/font-color-toolbar-button.d.ts.map +1 -0
  27. package/dist/components/ui/insert-image-url-toolbar-button.d.ts +2 -0
  28. package/dist/components/ui/insert-image-url-toolbar-button.d.ts.map +1 -0
  29. package/dist/components/ui/insert-toolbar-button.d.ts.map +1 -1
  30. package/dist/components/ui/media-picker-toolbar-trigger.d.ts +2 -0
  31. package/dist/components/ui/media-picker-toolbar-trigger.d.ts.map +1 -0
  32. package/dist/components/ui/more-toolbar-button.d.ts.map +1 -1
  33. package/dist/components/ui/toc-node-static.d.ts +5 -0
  34. package/dist/components/ui/toc-node-static.d.ts.map +1 -1
  35. package/dist/components/ui/turn-into-toolbar-button.d.ts.map +1 -1
  36. package/dist/contexts/media-picker-context.d.ts +14 -0
  37. package/dist/contexts/media-picker-context.d.ts.map +1 -0
  38. package/dist/contexts/media-picker-provider.d.ts +8 -0
  39. package/dist/contexts/media-picker-provider.d.ts.map +1 -0
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +840 -841
  43. package/dist/index.js.map +1 -1
  44. package/package.json +37 -50
  45. package/dist/components/editor/plate-types.d.ts +0 -85
  46. package/dist/components/editor/plate-types.d.ts.map +0 -1
  47. package/dist/components/editor/plugins/basic-nodes-kit.d.ts +0 -24
  48. package/dist/components/editor/plugins/basic-nodes-kit.d.ts.map +0 -1
  49. package/dist/components/editor/plugins/emoji-kit.d.ts +0 -6
  50. package/dist/components/editor/plugins/emoji-kit.d.ts.map +0 -1
  51. package/dist/components/editor/settings-dialog.d.ts +0 -8
  52. package/dist/components/editor/settings-dialog.d.ts.map +0 -1
  53. package/dist/components/editor/use-chat.d.ts +0 -64
  54. package/dist/components/editor/use-chat.d.ts.map +0 -1
  55. package/dist/components/ui/ai-chat-editor.d.ts +0 -5
  56. package/dist/components/ui/ai-chat-editor.d.ts.map +0 -1
  57. package/dist/components/ui/ai-menu.d.ts +0 -8
  58. package/dist/components/ui/ai-menu.d.ts.map +0 -1
  59. package/dist/components/ui/ai-node.d.ts +0 -4
  60. package/dist/components/ui/ai-node.d.ts.map +0 -1
  61. package/dist/components/ui/ai-toolbar-button.d.ts +0 -4
  62. package/dist/components/ui/ai-toolbar-button.d.ts.map +0 -1
  63. package/dist/components/ui/comment-toolbar-button.d.ts +0 -2
  64. package/dist/components/ui/comment-toolbar-button.d.ts.map +0 -1
  65. package/dist/components/ui/editor-static.d.ts +0 -9
  66. package/dist/components/ui/editor-static.d.ts.map +0 -1
  67. package/dist/components/ui/emoji-node.d.ts +0 -3
  68. package/dist/components/ui/emoji-node.d.ts.map +0 -1
  69. package/dist/components/ui/equation-toolbar-button.d.ts +0 -4
  70. package/dist/components/ui/equation-toolbar-button.d.ts.map +0 -1
  71. package/dist/components/ui/export-toolbar-button.d.ts +0 -3
  72. package/dist/components/ui/export-toolbar-button.d.ts.map +0 -1
  73. package/dist/components/ui/font-size-toolbar-button.d.ts +0 -2
  74. package/dist/components/ui/font-size-toolbar-button.d.ts.map +0 -1
  75. package/dist/components/ui/ghost-text.d.ts +0 -2
  76. package/dist/components/ui/ghost-text.d.ts.map +0 -1
  77. package/dist/components/ui/import-toolbar-button.d.ts +0 -3
  78. package/dist/components/ui/import-toolbar-button.d.ts.map +0 -1
  79. package/dist/components/ui/line-height-toolbar-button.d.ts +0 -3
  80. package/dist/components/ui/line-height-toolbar-button.d.ts.map +0 -1
  81. package/dist/components/ui/media-embed-node.d.ts +0 -5
  82. package/dist/components/ui/media-embed-node.d.ts.map +0 -1
  83. package/dist/components/ui/media-video-node-static.d.ts +0 -4
  84. package/dist/components/ui/media-video-node-static.d.ts.map +0 -1
  85. package/dist/components/ui/media-video-node.d.ts +0 -5
  86. package/dist/components/ui/media-video-node.d.ts.map +0 -1
  87. package/dist/components/ui/mode-toolbar-button.d.ts +0 -3
  88. package/dist/components/ui/mode-toolbar-button.d.ts.map +0 -1
  89. package/dist/components/ui/suggestion-toolbar-button.d.ts +0 -2
  90. package/dist/components/ui/suggestion-toolbar-button.d.ts.map +0 -1
  91. package/dist/components/ui/toggle-toolbar-button.d.ts +0 -4
  92. package/dist/components/ui/toggle-toolbar-button.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,39 +1,7 @@
1
1
  {
2
2
  "name": "@oyat/editor",
3
- "version": "1.6.4",
4
- "description": "A powerful, feature-rich Plate.js editor component with AI integration, collaboration features, and extensive customization options",
3
+ "version": "1.7.0",
5
4
  "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
- },
15
- "files": [
16
- "dist",
17
- "README.md"
18
- ],
19
- "keywords": [
20
- "oyat",
21
- "plate",
22
- "editor",
23
- "rich-text",
24
- "react",
25
- "typescript"
26
- ],
27
- "author": "OYAT <oyat.app@gmail.com>",
28
- "license": "MIT",
29
- "repository": {
30
- "type": "git",
31
- "url": "git+https://github.com/oyat-app/oyat-editor.git"
32
- },
33
- "bugs": {
34
- "url": "https://github.com/oyat-app/oyat-editor/issues"
35
- },
36
- "homepage": "https://github.com/oyat-app/oyat-editor#readme",
37
5
  "scripts": {
38
6
  "dev": "vite",
39
7
  "build": "tsc -b && vite build",
@@ -44,10 +12,8 @@
44
12
  "type-check": "tsc --noEmit"
45
13
  },
46
14
  "dependencies": {
47
- "@ai-sdk/react": "2.0.28",
48
15
  "@ariakit/react": "^0.4.21",
49
16
  "@emoji-mart/data": "1.2.1",
50
- "@faker-js/faker": "^10.3.0",
51
17
  "@platejs/ai": "^52.1.0",
52
18
  "@platejs/autoformat": "^52.0.11",
53
19
  "@platejs/basic-nodes": "^52.0.11",
@@ -69,7 +35,6 @@
69
35
  "@platejs/layout": "^52.0.11",
70
36
  "@platejs/link": "^52.0.11",
71
37
  "@platejs/list": "^52.0.11",
72
- "@platejs/markdown": "^52.1.0",
73
38
  "@platejs/math": "^52.0.11",
74
39
  "@platejs/media": "^52.0.11",
75
40
  "@platejs/mention": "^52.0.15",
@@ -91,20 +56,16 @@
91
56
  "@radix-ui/react-slot": "^1.2.4",
92
57
  "@radix-ui/react-toolbar": "^1.1.11",
93
58
  "@radix-ui/react-tooltip": "^1.2.8",
94
- "@tailwindcss/vite": "^4.1.18",
59
+ "@tailwindcss/vite": "^4.2.0",
95
60
  "@udecode/cn": "^52.0.11",
96
61
  "@uploadthing/react": "7.3.3",
97
- "ai": "5.0.28",
98
62
  "class-variance-authority": "^0.7.1",
99
63
  "clsx": "^2.1.1",
100
64
  "cmdk": "^1.1.1",
101
65
  "date-fns": "^4.1.0",
102
- "dedent": "1.0.0",
103
- "html2canvas-pro": "^1.6.7",
104
66
  "lodash": "^4.17.23",
105
67
  "lowlight": "^3.3.0",
106
- "lucide-react": "^0.564.0",
107
- "pdf-lib": "^1.17.1",
68
+ "lucide-react": "^0.575.0",
108
69
  "platejs": "^52.0.17",
109
70
  "radix-ui": "^1.4.3",
110
71
  "react": "^19.2.0",
@@ -112,16 +73,11 @@
112
73
  "react-dnd": "^16.0.1",
113
74
  "react-dnd-html5-backend": "^16.0.1",
114
75
  "react-dom": "^19.2.0",
115
- "react-lite-youtube-embed": "^3.3.3",
116
- "react-player": "3.3.1",
117
76
  "react-textarea-autosize": "^8.5.9",
118
- "react-tweet": "^3.3.0",
119
- "remark-gfm": "^4.0.1",
120
- "remark-math": "^6.0.0",
121
77
  "sonner": "^2.0.7",
122
- "tailwind-merge": "^3.4.1",
78
+ "tailwind-merge": "^3.5.0",
123
79
  "tailwind-scrollbar-hide": "^4.0.0",
124
- "tailwindcss": "^4.1.18",
80
+ "tailwindcss": "^4.2.0",
125
81
  "uploadthing": "7.7.4",
126
82
  "use-file-picker": "2.1.2",
127
83
  "zod": "^4.3.6"
@@ -161,5 +117,36 @@
161
117
  "react-dom": {
162
118
  "optional": false
163
119
  }
164
- }
120
+ },
121
+ "main": "./dist/index.js",
122
+ "module": "./dist/index.js",
123
+ "types": "./dist/index.d.ts",
124
+ "exports": {
125
+ ".": {
126
+ "import": "./dist/index.js",
127
+ "types": "./dist/index.d.ts"
128
+ }
129
+ },
130
+ "files": [
131
+ "dist",
132
+ "README.md"
133
+ ],
134
+ "keywords": [
135
+ "oyat",
136
+ "plate",
137
+ "editor",
138
+ "rich-text",
139
+ "react",
140
+ "typescript"
141
+ ],
142
+ "author": "OYAT <oyat.app@gmail.com>",
143
+ "license": "MIT",
144
+ "repository": {
145
+ "type": "git",
146
+ "url": "git+https://github.com/oyat-app/oyat-editor.git"
147
+ },
148
+ "bugs": {
149
+ "url": "https://github.com/oyat-app/oyat-editor/issues"
150
+ },
151
+ "homepage": "https://github.com/oyat-app/oyat-editor#readme"
165
152
  }
@@ -1,85 +0,0 @@
1
- import { EmptyText, KEYS, PlainText, TBasicMarks, TCaptionProps, TComboboxInputElement, TCommentText, TElement, TFontMarks, TImageElement, TLineHeightProps, TLinkElement, TListProps, TMediaEmbedElement, TMentionElement, TResizableProps, TTableElement, TText, TTextAlignProps } from 'platejs';
2
- export interface MyBlockElement extends TElement, TListProps {
3
- id?: string;
4
- }
5
- export interface MyTextBlockElement extends TElement, TLineHeightProps, TTextAlignProps {
6
- children: (MyLinkElement | MyMentionElement | MyMentionInputElement | RichText)[];
7
- }
8
- export interface MyBlockquoteElement extends MyTextBlockElement {
9
- type: typeof KEYS.blockquote;
10
- }
11
- export interface MyCodeBlockElement extends MyBlockElement {
12
- children: MyCodeLineElement[];
13
- type: typeof KEYS.codeBlock;
14
- }
15
- export interface MyCodeLineElement extends TElement {
16
- children: PlainText[];
17
- type: typeof KEYS.codeLine;
18
- }
19
- export interface MyH1Element extends MyTextBlockElement {
20
- type: typeof KEYS.h1;
21
- }
22
- export interface MyH2Element extends MyTextBlockElement {
23
- type: typeof KEYS.h2;
24
- }
25
- /** Block props */
26
- export interface MyH3Element extends MyTextBlockElement {
27
- type: typeof KEYS.h3;
28
- }
29
- export interface MyH4Element extends MyTextBlockElement {
30
- type: typeof KEYS.h4;
31
- }
32
- export interface MyH5Element extends MyTextBlockElement {
33
- type: typeof KEYS.h5;
34
- }
35
- export interface MyH6Element extends MyTextBlockElement {
36
- type: typeof KEYS.h6;
37
- }
38
- export interface MyHrElement extends MyBlockElement {
39
- children: [EmptyText];
40
- type: typeof KEYS.hr;
41
- }
42
- export interface MyImageElement extends MyBlockElement, TCaptionProps, TImageElement, TResizableProps {
43
- children: [EmptyText];
44
- type: typeof KEYS.img;
45
- }
46
- export interface MyLinkElement extends TLinkElement {
47
- children: RichText[];
48
- type: typeof KEYS.link;
49
- }
50
- export interface MyMediaEmbedElement extends MyBlockElement, TCaptionProps, TMediaEmbedElement, TResizableProps {
51
- children: [EmptyText];
52
- type: typeof KEYS.mediaEmbed;
53
- }
54
- export interface MyMentionElement extends TMentionElement {
55
- children: [EmptyText];
56
- type: typeof KEYS.mention;
57
- }
58
- export interface MyMentionInputElement extends TComboboxInputElement {
59
- children: [PlainText];
60
- type: typeof KEYS.mentionInput;
61
- }
62
- export type MyNestableBlock = MyParagraphElement;
63
- export interface MyParagraphElement extends MyTextBlockElement {
64
- type: typeof KEYS.p;
65
- }
66
- export interface MyTableCellElement extends TElement {
67
- children: MyNestableBlock[];
68
- type: typeof KEYS.td;
69
- }
70
- export interface MyTableElement extends MyBlockElement, TTableElement {
71
- children: MyTableRowElement[];
72
- type: typeof KEYS.table;
73
- }
74
- export interface MyTableRowElement extends TElement {
75
- children: MyTableCellElement[];
76
- type: typeof KEYS.tr;
77
- }
78
- export interface MyToggleElement extends MyTextBlockElement {
79
- type: typeof KEYS.toggle;
80
- }
81
- export interface RichText extends TBasicMarks, TCommentText, TFontMarks, TText {
82
- kbd?: boolean;
83
- }
84
- export type MyValue = (MyBlockquoteElement | MyCodeBlockElement | MyH1Element | MyH2Element | MyH3Element | MyH4Element | MyH5Element | MyH6Element | MyHrElement | MyImageElement | MyMediaEmbedElement | MyParagraphElement | MyTableElement | MyToggleElement)[];
85
- //# sourceMappingURL=plate-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plate-types.d.ts","sourceRoot":"","sources":["../../../src/components/editor/plate-types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EACT,IAAI,EACJ,SAAS,EACT,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,QAAQ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CAAC,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc,EAAE,aAAa;IACnE,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,IAAI,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC;CACzB;AAED,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,IAAI,EAAE,OAAO,IAAI,CAAC,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,IAAI,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,QAAS,SAAQ,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK;IAC5E,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,MAAM,OAAO,GAAG,CAClB,mBAAmB,GACnB,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,cAAc,GACd,eAAe,CAClB,EAAE,CAAC"}
@@ -1,24 +0,0 @@
1
- export declare const BasicNodesKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"p", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<any, {}, {}, Record<any, {
2
- toggle: () => void;
3
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"blockquote", {}, {}, Record<"blockquote", {
4
- toggle: () => void;
5
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"hr", {}, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"bold", {}, {}, Record<"bold", {
6
- toggle: () => void;
7
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"italic", {}, {}, Record<"italic", {
8
- toggle: () => void;
9
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"underline", {}, {}, Record<"underline", {
10
- toggle: () => void;
11
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"code", {}, {}, Record<"code", {
12
- toggle: () => void;
13
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"strikethrough", {}, {}, Record<"strikethrough", {
14
- toggle: () => void;
15
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"subscript", {}, {}, Record<"subscript", {
16
- toggle: () => void;
17
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"superscript", {}, {}, Record<"superscript", {
18
- toggle: () => void;
19
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"highlight", {}, {}, Record<"highlight", {
20
- toggle: () => void;
21
- }>, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"kbd", {}, {}, Record<"kbd", {
22
- toggle: () => void;
23
- }>, {}>>)[];
24
- //# sourceMappingURL=basic-nodes-kit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"basic-nodes-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/basic-nodes-kit.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;WAAwC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { default as emojiMartData } from '@emoji-mart/data';
2
- export declare const EmojiKit: (import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"emoji", {
3
- data?: emojiMartData.EmojiMartData;
4
- createEmojiNode?: (emoji: emojiMartData.Emoji) => import('platejs').Descendant;
5
- } & import('@platejs/combobox').TriggerComboboxPluginOptions, {}, {}, {}>> | import('platejs/react').PlatePlugin<import('platejs').PluginConfig<"emoji_input", {}, {}, {}, {}>>)[];
6
- //# sourceMappingURL=emoji-kit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"emoji-kit.d.ts","sourceRoot":"","sources":["../../../../src/components/editor/plugins/emoji-kit.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAK7C,eAAO,MAAM,QAAQ;;;kLAKpB,CAAC"}
@@ -1,8 +0,0 @@
1
- type Model = {
2
- label: string;
3
- value: string;
4
- };
5
- export declare const models: Model[];
6
- export declare function SettingsDialog(): import("react/jsx-runtime").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=settings-dialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/editor/settings-dialog.tsx"],"names":[],"mappings":"AA6CA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,EAqKzB,CAAC;AAEF,wBAAgB,cAAc,4CA+N7B"}
@@ -1,64 +0,0 @@
1
- import { UseChatHelpers } from '@ai-sdk/react';
2
- import { UIMessage } from 'ai';
3
- export type ToolName = 'comment' | 'edit' | 'generate';
4
- export type TComment = {
5
- comment: {
6
- blockId: string;
7
- comment: string;
8
- content: string;
9
- } | null;
10
- status: 'finished' | 'streaming';
11
- };
12
- export type TTableCellUpdate = {
13
- cellUpdate: {
14
- content: string;
15
- id: string;
16
- } | null;
17
- status: 'finished' | 'streaming';
18
- };
19
- export type MessageDataPart = {
20
- toolName: ToolName;
21
- comment?: TComment;
22
- table?: TTableCellUpdate;
23
- };
24
- export type Chat = UseChatHelpers<ChatMessage>;
25
- export type ChatMessage = UIMessage<{}, MessageDataPart>;
26
- export declare const useChat: () => {
27
- _abortFakeStream: () => void;
28
- id: string;
29
- setMessages: (messages: ChatMessage[] | ((messages: ChatMessage[]) => ChatMessage[])) => void;
30
- error: Error | undefined;
31
- stop: () => Promise<void>;
32
- status: import('ai').ChatStatus;
33
- sendMessage: (message?: (Omit<ChatMessage, "id" | "role"> & {
34
- id?: string | undefined;
35
- role?: "user" | "system" | "assistant" | undefined;
36
- } & {
37
- text?: never;
38
- files?: never;
39
- messageId?: string;
40
- }) | {
41
- text: string;
42
- files?: FileList | import('ai').FileUIPart[];
43
- metadata?: {} | undefined;
44
- parts?: never;
45
- messageId?: string;
46
- } | {
47
- files: FileList | import('ai').FileUIPart[];
48
- metadata?: {} | undefined;
49
- parts?: never;
50
- messageId?: string;
51
- } | undefined, options?: import('ai').ChatRequestOptions) => Promise<void>;
52
- regenerate: ({ messageId, ...options }?: {
53
- messageId?: string;
54
- } & import('ai').ChatRequestOptions) => Promise<void>;
55
- resumeStream: (options?: import('ai').ChatRequestOptions) => Promise<void>;
56
- addToolResult: <TOOL extends string>({ tool, toolCallId, output, }: {
57
- tool: TOOL;
58
- toolCallId: string;
59
- output: unknown;
60
- }) => Promise<void>;
61
- messages: ChatMessage[];
62
- clearError: () => void;
63
- };
64
- //# sourceMappingURL=use-chat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-chat.d.ts","sourceRoot":"","sources":["../../../src/components/editor/use-chat.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,eAAe,CAAC;AAU5E,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,IAAI,CAAC;AAS1D,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAEvD,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,UAAU,GAAG,WAAW,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,UAAU,GAAG,WAAW,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;8BA6jDkklH,GAAI,SAAS,CAAC;iBAAqB,CAAC;;0BAA0J,CAAC;;;;;;;;CAx2CpxlH,CAAC"}
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export declare const AIChatEditor: React.NamedExoticComponent<{
3
- content: string;
4
- }>;
5
- //# sourceMappingURL=ai-chat-editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-chat-editor.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ai-chat-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,eAAO,MAAM,YAAY;aAGd,MAAM;EASf,CAAC"}
@@ -1,8 +0,0 @@
1
- export declare function AIMenu(): import("react/jsx-runtime").JSX.Element | null;
2
- export declare const AIMenuItems: ({ input, setInput, setValue, }: {
3
- input: string;
4
- setInput: (value: string) => void;
5
- setValue: (value: string) => void;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export declare function AILoadingBar(): import("react/jsx-runtime").JSX.Element | null;
8
- //# sourceMappingURL=ai-menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ai-menu.tsx"],"names":[],"mappings":"AAgEA,wBAAgB,MAAM,mDAuLrB;AAyTD,eAAO,MAAM,WAAW,GAAI,gCAIzB;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,4CAoDA,CAAC;AAEF,wBAAgB,YAAY,mDAoG3B"}
@@ -1,4 +0,0 @@
1
- import { PlateElementProps, PlateTextProps } from 'platejs/react';
2
- export declare function AILeaf(props: PlateTextProps): import("react/jsx-runtime").JSX.Element;
3
- export declare function AIAnchorElement(props: PlateElementProps): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=ai-node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-node.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ai-node.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAIpB,MAAM,eAAe,CAAC;AAIvB,wBAAgB,MAAM,CAAC,KAAK,EAAE,cAAc,2CAoB3C;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,2CAMvD"}
@@ -1,4 +0,0 @@
1
- import { ToolbarButton } from './toolbar';
2
- import * as React from 'react';
3
- export declare function AIToolbarButton(props: React.ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=ai-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ai-toolbar-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,2CAelD"}
@@ -1,2 +0,0 @@
1
- export declare function CommentToolbarButton(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=comment-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comment-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/comment-toolbar-button.tsx"],"names":[],"mappings":"AAWA,wBAAgB,oBAAoB,4CAcnC"}
@@ -1,9 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import { PlateStaticProps } from 'platejs/static';
3
- export declare const editorVariants: (props?: ({
4
- disabled?: boolean | null | undefined;
5
- focused?: boolean | null | undefined;
6
- variant?: "select" | "none" | "default" | "aiChat" | "ai" | "demo" | "fullWidth" | null | undefined;
7
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
- export declare function EditorStatic({ className, variant, ...props }: PlateStaticProps & VariantProps<typeof editorVariants>): import("react/jsx-runtime").JSX.Element;
9
- //# sourceMappingURL=editor-static.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/editor-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,EAAE,KAAK,gBAAgB,EAAe,MAAM,gBAAgB,CAAC;AAIpE,eAAO,MAAM,cAAc;;;;8EAgC1B,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,2CAOxD"}
@@ -1,3 +0,0 @@
1
- import { PlateElementProps } from 'platejs/react';
2
- export declare function EmojiInputElement(props: PlateElementProps): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=emoji-node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"emoji-node.d.ts","sourceRoot":"","sources":["../../../src/components/ui/emoji-node.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAmBvD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,2CA+CzD"}
@@ -1,4 +0,0 @@
1
- import { ToolbarButton } from './toolbar';
2
- import * as React from 'react';
3
- export declare function InlineEquationToolbarButton(props: React.ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=equation-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equation-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/equation-toolbar-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,2CAelD"}
@@ -1,3 +0,0 @@
1
- import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
2
- export declare function ExportToolbarButton(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=export-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/export-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAsBvE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,2CAqJ3D"}
@@ -1,2 +0,0 @@
1
- export declare function FontSizeToolbarButton(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=font-size-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"font-size-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/font-size-toolbar-button.tsx"],"names":[],"mappings":"AA8CA,wBAAgB,qBAAqB,4CA2GpC"}
@@ -1,2 +0,0 @@
1
- export declare function GhostText(): import("react/jsx-runtime").JSX.Element | null;
2
- //# sourceMappingURL=ghost-text.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ghost-text.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ghost-text.tsx"],"names":[],"mappings":"AAOA,wBAAgB,SAAS,mDAYxB"}
@@ -1,3 +0,0 @@
1
- import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
2
- export declare function ImportToolbarButton(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=import-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/import-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAoBvE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,2CA0E3D"}
@@ -1,3 +0,0 @@
1
- import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
2
- export declare function LineHeightToolbarButton(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=line-height-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"line-height-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/line-height-toolbar-button.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAiBvE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,2CAgD/D"}
@@ -1,5 +0,0 @@
1
- import { TMediaEmbedElement } from 'platejs';
2
- import { PlateElementProps } from 'platejs/react';
3
- import * as React from 'react';
4
- export declare const MediaEmbedElement: React.ForwardRefExoticComponent<Omit<PlateElementProps<TMediaEmbedElement>, "ref"> & React.RefAttributes<unknown>>;
5
- //# sourceMappingURL=media-embed-node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media-embed-node.d.ts","sourceRoot":"","sources":["../../../src/components/ui/media-embed-node.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAiBvD,eAAO,MAAM,iBAAiB,oHAiH7B,CAAC"}
@@ -1,4 +0,0 @@
1
- import { TCaptionElement, TResizableProps, TVideoElement } from 'platejs';
2
- import { SlateElementProps } from 'platejs/static';
3
- export declare function VideoElementStatic(props: SlateElementProps<TVideoElement & TCaptionElement & TResizableProps>): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=media-video-node-static.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media-video-node-static.d.ts","sourceRoot":"","sources":["../../../src/components/ui/media-video-node-static.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAKxD,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,iBAAiB,CAAC,aAAa,GAAG,eAAe,GAAG,eAAe,CAAC,2CAsB5E"}
@@ -1,5 +0,0 @@
1
- import { TResizableProps, TVideoElement } from 'platejs';
2
- import { PlateElementProps } from 'platejs/react';
3
- import * as React from 'react';
4
- export declare const VideoElement: React.ForwardRefExoticComponent<Omit<PlateElementProps<TVideoElement & TResizableProps>, "ref"> & React.RefAttributes<unknown>>;
5
- //# sourceMappingURL=media-video-node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media-video-node.d.ts","sourceRoot":"","sources":["../../../src/components/ui/media-video-node.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAiBvD,eAAO,MAAM,YAAY,iIAkGxB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
2
- export declare function ModeToolbarButton(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=mode-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mode-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/mode-toolbar-button.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,+BAA+B,CAAC;AAcvC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,2CA4FzD"}
@@ -1,2 +0,0 @@
1
- export declare function SuggestionToolbarButton(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=suggestion-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"suggestion-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/suggestion-toolbar-button.tsx"],"names":[],"mappings":"AAYA,wBAAgB,uBAAuB,4CActC"}
@@ -1,4 +0,0 @@
1
- import { ToolbarButton } from './toolbar';
2
- import * as React from 'react';
3
- export declare function ToggleToolbarButton(props: React.ComponentProps<typeof ToolbarButton>): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=toggle-toolbar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle-toolbar-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle-toolbar-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,2CAUlD"}