@yiitap/vue 1.2.3 → 1.3.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 (50) hide show
  1. package/dist/index.cjs +80 -46
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +80 -46
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +15129 -13400
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/vue.css +1 -1
  8. package/package.json +23 -18
  9. package/types/components/YiiEditor.vue.d.ts +331 -124
  10. package/types/components/buttons/OAiBtn.vue.d.ts +20 -0
  11. package/types/components/common/OBlockList.vue.d.ts +26 -0
  12. package/types/components/common/OBlockListItem.vue.d.ts +16 -0
  13. package/types/components/common/OBlockPopover.vue.d.ts +46 -4
  14. package/types/components/common/OBlockToolbar.vue.d.ts +28 -4
  15. package/types/components/common/OCommandBtn.vue.d.ts +2 -2
  16. package/types/components/common/OCommonBtn.vue.d.ts +22 -4
  17. package/types/components/common/OContextMenu.vue.d.ts +28 -4
  18. package/types/components/common/ODocToc.vue.d.ts +38 -5
  19. package/types/components/common/OMenubarBtn.vue.d.ts +100 -2
  20. package/types/components/common/OToast.d.ts +11 -0
  21. package/types/components/index.d.ts +5 -0
  22. package/types/components/menus/OAiMenu.vue.d.ts +27 -0
  23. package/types/components/menus/OBubbleMenu.vue.d.ts +1 -1
  24. package/types/components/menus/OFloatingMenu.vue.d.ts +1 -1
  25. package/types/components/ui/OBtn.vue.d.ts +36 -0
  26. package/types/components/ui/OBtnGroup.vue.d.ts +100 -0
  27. package/types/components/ui/OIcon.vue.d.ts +19 -1
  28. package/types/components/ui/OInput.vue.d.ts +23 -1
  29. package/types/components/ui/OPopover.vue.d.ts +38 -0
  30. package/types/constants/ai.d.ts +6 -0
  31. package/types/constants/block.d.ts +2 -0
  32. package/types/constants/data.d.ts +4 -0
  33. package/types/constants/index.d.ts +4 -0
  34. package/types/extensions/ai-block/index.d.ts +3 -0
  35. package/types/extensions/ai-block/view.vue.d.ts +92 -0
  36. package/types/extensions/char-command/emoji/suggestion.d.ts +5 -9
  37. package/types/extensions/char-command/slash/suggestion.d.ts +5 -9
  38. package/types/extensions/char-command/slash/view.vue.d.ts +1 -1
  39. package/types/extensions/dynamic.d.ts +1 -1
  40. package/types/extensions/index.d.ts +48 -23
  41. package/types/hooks/index.d.ts +2 -0
  42. package/types/hooks/useAi.d.ts +6 -0
  43. package/types/hooks/useI18n.d.ts +1 -0
  44. package/types/hooks/useNodeView.d.ts +6 -0
  45. package/types/i18n/messages/en.d.ts +47 -0
  46. package/types/i18n/messages/zh-hans.d.ts +45 -0
  47. package/types/i18n/messages/zh-hant.d.ts +1 -0
  48. package/types/index.d.ts +3 -2
  49. package/types/utils/convert.d.ts +1 -0
  50. package/types/constants/demo-article.d.ts +0 -7
@@ -25,6 +25,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
25
25
  type: PropType<[number, number]>;
26
26
  default: () => [number, number];
27
27
  };
28
+ /**
29
+ * Placement
30
+ *
31
+ * @see https://atomiks.github.io/tippyjs/#placements
32
+ */
28
33
  placement: {
29
34
  type: StringConstructor;
30
35
  default: string;
@@ -37,6 +42,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
37
42
  type: StringConstructor;
38
43
  default: string;
39
44
  };
45
+ contentClass: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
40
49
  event: {
41
50
  type: ObjectConstructor;
42
51
  default: () => {};
@@ -67,6 +76,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
67
76
  type: PropType<[number, number]>;
68
77
  default: () => [number, number];
69
78
  };
79
+ /**
80
+ * Placement
81
+ *
82
+ * @see https://atomiks.github.io/tippyjs/#placements
83
+ */
70
84
  placement: {
71
85
  type: StringConstructor;
72
86
  default: string;
@@ -79,6 +93,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
79
93
  type: StringConstructor;
80
94
  default: string;
81
95
  };
96
+ contentClass: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
82
100
  event: {
83
101
  type: ObjectConstructor;
84
102
  default: () => {};
@@ -100,6 +118,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
100
118
  placement: string;
101
119
  trigger: string;
102
120
  tippyClass: string;
121
+ contentClass: string;
103
122
  event: Record<string, any>;
104
123
  delay: number;
105
124
  duration: number;
@@ -117,6 +136,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
117
136
  type: PropType<[number, number]>;
118
137
  default: () => [number, number];
119
138
  };
139
+ /**
140
+ * Placement
141
+ *
142
+ * @see https://atomiks.github.io/tippyjs/#placements
143
+ */
120
144
  placement: {
121
145
  type: StringConstructor;
122
146
  default: string;
@@ -129,6 +153,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
129
153
  type: StringConstructor;
130
154
  default: string;
131
155
  };
156
+ contentClass: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
132
160
  event: {
133
161
  type: ObjectConstructor;
134
162
  default: () => {};
@@ -158,6 +186,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
158
186
  type: PropType<[number, number]>;
159
187
  default: () => [number, number];
160
188
  };
189
+ /**
190
+ * Placement
191
+ *
192
+ * @see https://atomiks.github.io/tippyjs/#placements
193
+ */
161
194
  placement: {
162
195
  type: StringConstructor;
163
196
  default: string;
@@ -170,6 +203,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
170
203
  type: StringConstructor;
171
204
  default: string;
172
205
  };
206
+ contentClass: {
207
+ type: StringConstructor;
208
+ default: string;
209
+ };
173
210
  event: {
174
211
  type: ObjectConstructor;
175
212
  default: () => {};
@@ -191,6 +228,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
191
228
  placement: string;
192
229
  trigger: string;
193
230
  tippyClass: string;
231
+ contentClass: string;
194
232
  event: Record<string, any>;
195
233
  delay: number;
196
234
  duration: number;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * AI
3
+ */
4
+ export declare const AiProviders: Indexable;
5
+ export declare const getProviderProp: (name: string, prop: string) => any;
6
+ export declare const Prompts: Indexable;
@@ -3,3 +3,5 @@ export declare const StyleBlocks: BlockOption[];
3
3
  export declare const CommonBlocks: BlockOption[];
4
4
  export declare const Blocks: BlockOption[];
5
5
  export declare const BlockMenus: BlockOption[];
6
+ export declare const AskAiBlocks: BlockOption[];
7
+ export declare const AiBlocks: BlockOption[];
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Empty Blocks
3
+ */
4
+ export declare const AiMessageChunks: string[];
@@ -0,0 +1,4 @@
1
+ export * from './ai';
2
+ export * from './block';
3
+ export * from './color';
4
+ export * from './menu';
@@ -0,0 +1,3 @@
1
+ import type { AiBlockOptions } from '@yiitap/extension-ai-block';
2
+ declare const OAiBlock: import("@tiptap/vue-3").Node<AiBlockOptions, any>;
3
+ export default OAiBlock;
@@ -0,0 +1,92 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ editor: {
3
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["editor"]>;
4
+ required: true;
5
+ };
6
+ node: {
7
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["node"]>;
8
+ required: true;
9
+ };
10
+ decorations: {
11
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["decorations"]>;
12
+ required: true;
13
+ };
14
+ selected: {
15
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["selected"]>;
16
+ required: true;
17
+ };
18
+ extension: {
19
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["extension"]>;
20
+ required: true;
21
+ };
22
+ getPos: {
23
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["getPos"]>;
24
+ required: true;
25
+ };
26
+ updateAttributes: {
27
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["updateAttributes"]>;
28
+ required: true;
29
+ };
30
+ deleteNode: {
31
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["deleteNode"]>;
32
+ required: true;
33
+ };
34
+ view: {
35
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["view"]>;
36
+ required: true;
37
+ };
38
+ innerDecorations: {
39
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["innerDecorations"]>;
40
+ required: true;
41
+ };
42
+ HTMLAttributes: {
43
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["HTMLAttributes"]>;
44
+ required: true;
45
+ };
46
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
+ editor: {
48
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["editor"]>;
49
+ required: true;
50
+ };
51
+ node: {
52
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["node"]>;
53
+ required: true;
54
+ };
55
+ decorations: {
56
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["decorations"]>;
57
+ required: true;
58
+ };
59
+ selected: {
60
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["selected"]>;
61
+ required: true;
62
+ };
63
+ extension: {
64
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["extension"]>;
65
+ required: true;
66
+ };
67
+ getPos: {
68
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["getPos"]>;
69
+ required: true;
70
+ };
71
+ updateAttributes: {
72
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["updateAttributes"]>;
73
+ required: true;
74
+ };
75
+ deleteNode: {
76
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["deleteNode"]>;
77
+ required: true;
78
+ };
79
+ view: {
80
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["view"]>;
81
+ required: true;
82
+ };
83
+ innerDecorations: {
84
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["innerDecorations"]>;
85
+ required: true;
86
+ };
87
+ HTMLAttributes: {
88
+ type: import("vue").PropType<import("@tiptap/vue-3").NodeViewProps["HTMLAttributes"]>;
89
+ required: true;
90
+ };
91
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
+ export default _default;
@@ -1,17 +1,13 @@
1
- import type { Editor } from '@tiptap/core';
2
- export interface SuggestionOptions {
3
- editor: Editor;
4
- event: KeyboardEvent;
5
- clientRect?: (() => DOMRect | null) | null;
6
- }
1
+ import { type SuggestionProps, type SuggestionKeyDownProps } from '@tiptap/suggestion';
2
+ import { type MentionNodeAttrs } from '@tiptap/extension-mention';
7
3
  declare const _default: {
8
4
  items: ({ query }: {
9
5
  query: string;
10
6
  }) => never[];
11
7
  render: () => {
12
- onStart: (props: SuggestionOptions) => void;
13
- onUpdate(props: SuggestionOptions): void;
14
- onKeyDown(props: SuggestionOptions): any;
8
+ onStart: (props: SuggestionProps<any, MentionNodeAttrs>) => void;
9
+ onUpdate(props: SuggestionProps): void;
10
+ onKeyDown(props: SuggestionKeyDownProps): any;
15
11
  onExit(): void;
16
12
  };
17
13
  };
@@ -1,17 +1,13 @@
1
- import type { Editor } from '@tiptap/core';
2
- export interface SuggestionOptions {
3
- editor: Editor;
4
- event: KeyboardEvent;
5
- clientRect?: (() => DOMRect | null) | null;
6
- }
1
+ import { type SuggestionProps, type SuggestionKeyDownProps } from '@tiptap/suggestion';
2
+ import { type MentionNodeAttrs } from '@tiptap/extension-mention';
7
3
  declare const _default: {
8
4
  items: ({ query }: {
9
5
  query: string;
10
6
  }) => BlockOption[];
11
7
  render: () => {
12
- onStart: (props: SuggestionOptions) => void;
13
- onUpdate(props: SuggestionOptions): void;
14
- onKeyDown(props: SuggestionOptions): any;
8
+ onStart: (props: SuggestionProps<any, MentionNodeAttrs>) => void;
9
+ onUpdate(props: SuggestionProps): void;
10
+ onKeyDown(props: SuggestionKeyDownProps): any;
15
11
  onExit(): void;
16
12
  };
17
13
  };
@@ -92,8 +92,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
92
92
  };
93
93
  }>> & Readonly<{}>, {
94
94
  name: string;
95
- color: string;
96
95
  small: boolean;
96
+ color: string;
97
97
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
98
98
  OList: {
99
99
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
@@ -4,4 +4,4 @@ declare class DynamicClass {
4
4
  export default DynamicClass;
5
5
  export declare const getDynamicExtension: (name: string) => DynamicClass;
6
6
  export declare const TableExtensions: import("@tiptap/core").Node<any, any>[];
7
- export declare const TableExtensions0: import("@tiptap/core").Node<import("@tiptap/extension-table-cell").TableCellOptions, any>[];
7
+ export declare const DefaultTableExtensions: import("@tiptap/core").Node<import("@tiptap/extension-table-cell").TableCellOptions, any>[];
@@ -1,23 +1,48 @@
1
- export { default as OColorHighlighter } from '@yiitap/extension-color-highlighter';
2
- export { default as OFocus } from '@yiitap/extension-focus';
3
- export { default as OPlaceholder } from '@yiitap/extension-placeholder';
4
- export { default as OTable } from '@yiitap/extension-table';
5
- export { default as OTrailingNode } from '@yiitap/extension-trailing-node';
6
- export { default as OUniqueID } from '@yiitap/extension-unique-id';
7
- export { ColonCommand as OColonCommand, SlashCommand as OSlashCommand, SlashZhCommand as OSlashZhCommand, } from '@yiitap/extension-char-command';
8
- export { default as OBlockquote } from './blockquote';
9
- export { default as OCallout } from './callout';
10
- export { default as OCodeBlock } from './code-block';
11
- export { default as OHeading } from './heading';
12
- export { default as OHorizontalRule } from './horizontal-rule';
13
- export { default as OImage } from './image';
14
- export { default as OLink } from './link';
15
- export { default as OParagraph } from './paragraph';
16
- export { default as OTableCell } from './table-cell';
17
- export { default as OTableHeader } from './table-header';
18
- export { default as OTableWrapper } from './table-wrapper';
19
- export { default as OVideo } from './video';
20
- export declare const DefaultExtensions: string[];
21
- export declare const TipTapExtensions: string[];
22
- export declare const ExtendedExtensions: string[];
23
- export declare const BuiltinExtensions: string[];
1
+ import BackColor from '@tiptap/extension-highlight';
2
+ import Document from '@tiptap/extension-document';
3
+ import Focus from '@tiptap/extension-focus';
4
+ import FontFamily from '@tiptap/extension-font-family';
5
+ import ForeColor from '@tiptap/extension-color';
6
+ import Image from '@tiptap/extension-image';
7
+ import Link from '@tiptap/extension-link';
8
+ import Mention from '@tiptap/extension-mention';
9
+ import TaskItem from '@tiptap/extension-task-item';
10
+ import TaskList from '@tiptap/extension-task-list';
11
+ import TextAlign from '@tiptap/extension-text-align';
12
+ import Typography from '@tiptap/extension-typography';
13
+ import Underline from '@tiptap/extension-underline';
14
+ import Table from '@tiptap/extension-table';
15
+ import TableCell from '@tiptap/extension-table-cell';
16
+ import TableHeader from '@tiptap/extension-table-header';
17
+ import TableRow from '@tiptap/extension-table-row';
18
+ import Text from '@tiptap/extension-text';
19
+ import OColorHighlighter from '@yiitap/extension-color-highlighter';
20
+ import OFocus from '@yiitap/extension-focus';
21
+ import OPlaceholder from '@yiitap/extension-placeholder';
22
+ import OTable from '@yiitap/extension-table';
23
+ import OTrailingNode from '@yiitap/extension-trailing-node';
24
+ import OUniqueID from '@yiitap/extension-unique-id';
25
+ import OCharCommand from '@yiitap/extension-char-command';
26
+ import { ColonCommand as OColonCommand, SlashCommand as OSlashCommand, SlashZhCommand as OSlashZhCommand } from '@yiitap/extension-char-command';
27
+ import OAiBlock from './ai-block';
28
+ import OBlockquote from './blockquote';
29
+ import OCallout from './callout';
30
+ import OCodeBlock from './code-block';
31
+ import OHeading from './heading';
32
+ import OHorizontalRule from './horizontal-rule';
33
+ import OImage from './image';
34
+ import OLink from './link';
35
+ import OParagraph from './paragraph';
36
+ import OTableCell from './table-cell';
37
+ import OTableHeader from './table-header';
38
+ import OTableWrapper from './table-wrapper';
39
+ import OVideo from './video';
40
+ /**
41
+ * Enable by default
42
+ */
43
+ export declare const DefaultExtensionNames: string[];
44
+ export declare const TiptapExtensionNames: string[];
45
+ export declare const YiitapExtensionNames: string[];
46
+ export declare const BuiltinExtensionNames: string[];
47
+ export declare const BuiltinExtensions: (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Mark<import("@tiptap/extension-underline").UnderlineOptions, any> | import("@tiptap/core").Extension<any, any>)[];
48
+ export { Document, BackColor, Focus, FontFamily, ForeColor, Image, Link, Mention, TaskItem, TaskList, TextAlign, Typography, Underline, Table, TableHeader, TableCell, TableRow, Text, OAiBlock, OBlockquote, OCallout, OCharCommand, OCodeBlock, OColonCommand, OColorHighlighter, OFocus, OSlashCommand, OSlashZhCommand, OHeading, OHorizontalRule, OImage, OLink, OParagraph, OPlaceholder, OTable, OTableCell, OTableHeader, OTableWrapper, OTrailingNode, OUniqueID, OVideo, };
@@ -1,3 +1,5 @@
1
+ export { default as useAi } from './useAi';
2
+ export { default as useNodeView } from './useNodeView';
1
3
  export { default as useI18n } from './useI18n';
2
4
  export { default as useTheme } from './useTheme';
3
5
  export { default as useTiptap } from './useTiptap';
@@ -0,0 +1,6 @@
1
+ import { type Ref } from 'vue';
2
+ export default function (): {
3
+ md: any;
4
+ aiOption: Ref<AiOption, AiOption>;
5
+ createStreamingChatCompletion: (messages: ChatMessage[], onProgress: (chunk: string) => void) => Promise<string>;
6
+ };
@@ -1,4 +1,5 @@
1
1
  export default function (): {
2
+ languageName: import("vue").ComputedRef<any>;
2
3
  locale: {
3
4
  value: string;
4
5
  };
@@ -0,0 +1,6 @@
1
+ export default function (): {
2
+ isFocused: import("vue").Ref<boolean, boolean>;
3
+ bind: (props: any) => void;
4
+ unbind: () => void;
5
+ checkFocus: () => void;
6
+ };
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  isoName: string;
3
+ name: string;
3
4
  nativeName: string;
4
5
  diagram: {
5
6
  name: string;
@@ -82,12 +83,14 @@ declare const _default: {
82
83
  noColor: string;
83
84
  delete: string;
84
85
  duplicate: string;
86
+ aiBlock: string;
85
87
  };
86
88
  label: {
87
89
  ai: string;
88
90
  cancel: string;
89
91
  color: string;
90
92
  edit: string;
93
+ write: string;
91
94
  link: string;
92
95
  linkAddress: string;
93
96
  ok: string;
@@ -118,16 +121,25 @@ declare const _default: {
118
121
  copy: string;
119
122
  cut: string;
120
123
  search: string;
124
+ think: string;
125
+ suggested: string;
126
+ noResults: string;
127
+ generate: string;
128
+ generatedBy: string;
129
+ update: string;
121
130
  };
122
131
  table: {
123
132
  cellBackground: string;
124
133
  insert: string;
125
134
  remove: string;
126
135
  addColumn: string;
136
+ selectColumn: string;
127
137
  removeColumn: string;
128
138
  addRow: string;
139
+ selectRow: string;
129
140
  removeRow: string;
130
141
  merge: string;
142
+ split: string;
131
143
  };
132
144
  image: {
133
145
  preferences: string;
@@ -181,5 +193,40 @@ declare const _default: {
181
193
  open: string;
182
194
  open_in_new_tab: string;
183
195
  };
196
+ ai: {
197
+ askAi: string;
198
+ tellAi: string;
199
+ improve_writing: string;
200
+ fix_spelling_grammar: string;
201
+ enrich_with_emoji: string;
202
+ translate: string;
203
+ make_longer: string;
204
+ make_shorter: string;
205
+ continuation: string;
206
+ change_tone: string;
207
+ write: string;
208
+ explain: string;
209
+ summarize: string;
210
+ error: string;
211
+ tone: {
212
+ formal: string;
213
+ casual: string;
214
+ friendly: string;
215
+ enthusiastic: string;
216
+ authoritative: string;
217
+ humorous: string;
218
+ inspirational: string;
219
+ empathetic: string;
220
+ mysterious: string;
221
+ };
222
+ };
223
+ language: {
224
+ chinese_simplified: string;
225
+ chinese_traditional: string;
226
+ german: string;
227
+ french: string;
228
+ japanese: string;
229
+ korean: string;
230
+ };
184
231
  };
185
232
  export default _default;
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  isoName: string;
3
+ name: string;
3
4
  nativeName: string;
4
5
  diagram: {
5
6
  name: string;
@@ -82,6 +83,7 @@ declare const _default: {
82
83
  noColor: string;
83
84
  delete: string;
84
85
  duplicate: string;
86
+ aiBlock: string;
85
87
  };
86
88
  label: {
87
89
  ai: string;
@@ -118,16 +120,24 @@ declare const _default: {
118
120
  copy: string;
119
121
  cut: string;
120
122
  search: string;
123
+ think: string;
124
+ noResults: string;
125
+ generate: string;
126
+ generatedBy: string;
127
+ update: string;
121
128
  };
122
129
  table: {
123
130
  cellBackground: string;
124
131
  insert: string;
125
132
  remove: string;
126
133
  addColumn: string;
134
+ selectColumn: string;
127
135
  removeColumn: string;
128
136
  addRow: string;
137
+ selectRow: string;
129
138
  removeRow: string;
130
139
  merge: string;
140
+ split: string;
131
141
  };
132
142
  image: {
133
143
  preferences: string;
@@ -181,5 +191,40 @@ declare const _default: {
181
191
  open: string;
182
192
  open_in_new_tab: string;
183
193
  };
194
+ ai: {
195
+ askAi: string;
196
+ tellAi: string;
197
+ improve_writing: string;
198
+ fix_spelling_grammar: string;
199
+ enrich_with_emoji: string;
200
+ translate: string;
201
+ make_longer: string;
202
+ make_shorter: string;
203
+ continuation: string;
204
+ change_tone: string;
205
+ write: string;
206
+ explain: string;
207
+ summarize: string;
208
+ error: string;
209
+ tone: {
210
+ formal: string;
211
+ casual: string;
212
+ friendly: string;
213
+ enthusiastic: string;
214
+ authoritative: string;
215
+ humorous: string;
216
+ inspirational: string;
217
+ empathetic: string;
218
+ mysterious: string;
219
+ };
220
+ };
221
+ language: {
222
+ chinese_simplified: string;
223
+ chinese_traditional: string;
224
+ german: string;
225
+ french: string;
226
+ japanese: string;
227
+ korean: string;
228
+ };
184
229
  };
185
230
  export default _default;
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  isoName: string;
3
+ name: string;
3
4
  nativeName: string;
4
5
  diagram: {
5
6
  name: string;
package/types/index.d.ts CHANGED
@@ -6,5 +6,6 @@ declare const YiiEditorPlugin: {
6
6
  install(app: App): void;
7
7
  };
8
8
  export { YiiEditor, YiiEditorPlugin };
9
- export * from './components/index';
10
- export * from './hooks/index';
9
+ export * from './components';
10
+ export * from './constants';
11
+ export * from './hooks';
@@ -0,0 +1 @@
1
+ export declare const toJSON: (html: string) => Record<string, any>;