@yiitap/vue 1.2.4 → 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 (43) 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 +14916 -13330
  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 +19 -0
  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 +18 -0
  14. package/types/components/common/OCommonBtn.vue.d.ts +20 -2
  15. package/types/components/common/OMenubarBtn.vue.d.ts +99 -1
  16. package/types/components/common/OToast.d.ts +11 -0
  17. package/types/components/index.d.ts +5 -0
  18. package/types/components/menus/OAiMenu.vue.d.ts +27 -0
  19. package/types/components/menus/OBubbleMenu.vue.d.ts +1 -1
  20. package/types/components/menus/OFloatingMenu.vue.d.ts +1 -1
  21. package/types/components/ui/OBtn.vue.d.ts +36 -0
  22. package/types/components/ui/OBtnGroup.vue.d.ts +100 -0
  23. package/types/components/ui/OInput.vue.d.ts +23 -1
  24. package/types/constants/ai.d.ts +6 -0
  25. package/types/constants/block.d.ts +2 -0
  26. package/types/constants/data.d.ts +4 -0
  27. package/types/constants/index.d.ts +2 -0
  28. package/types/extensions/ai-block/index.d.ts +3 -0
  29. package/types/extensions/ai-block/view.vue.d.ts +92 -0
  30. package/types/extensions/char-command/emoji/suggestion.d.ts +5 -9
  31. package/types/extensions/char-command/slash/suggestion.d.ts +5 -9
  32. package/types/extensions/dynamic.d.ts +1 -1
  33. package/types/extensions/index.d.ts +48 -23
  34. package/types/hooks/index.d.ts +2 -0
  35. package/types/hooks/useAi.d.ts +6 -0
  36. package/types/hooks/useI18n.d.ts +1 -0
  37. package/types/hooks/useNodeView.d.ts +6 -0
  38. package/types/i18n/messages/en.d.ts +44 -0
  39. package/types/i18n/messages/zh-hans.d.ts +42 -0
  40. package/types/i18n/messages/zh-hant.d.ts +1 -0
  41. package/types/index.d.ts +0 -1
  42. package/types/utils/convert.d.ts +1 -0
  43. package/types/constants/demo-article.d.ts +0 -7
@@ -1,5 +1,5 @@
1
1
  import OIcon from './OIcon.vue';
2
- declare const emit: (event: "blur" | "update:modelValue", ...args: any[]) => void;
2
+ declare const emit: (event: "blur" | "focus" | "update:modelValue", ...args: any[]) => void;
3
3
  declare const input: import("vue").Ref<HTMLInputElement, HTMLInputElement>;
4
4
  declare const value: import("vue").WritableComputedRef<string, string>;
5
5
  declare function focus(): void;
@@ -16,6 +16,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
16
16
  type: StringConstructor;
17
17
  default: string;
18
18
  };
19
+ placeholder: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
19
23
  clearable: {
20
24
  type: BooleanConstructor;
21
25
  default: boolean;
@@ -32,12 +36,17 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
32
36
  clear: typeof clear;
33
37
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
38
  blur: (...args: any[]) => void;
39
+ focus: (...args: any[]) => void;
35
40
  "update:modelValue": (...args: any[]) => void;
36
41
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
37
42
  modelValue: {
38
43
  type: StringConstructor;
39
44
  default: string;
40
45
  };
46
+ placeholder: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
41
50
  clearable: {
42
51
  type: BooleanConstructor;
43
52
  default: boolean;
@@ -48,9 +57,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
48
57
  };
49
58
  }>> & Readonly<{
50
59
  onBlur?: (...args: any[]) => any;
60
+ onFocus?: (...args: any[]) => any;
51
61
  "onUpdate:modelValue"?: (...args: any[]) => any;
52
62
  }>, {
53
63
  type: string;
64
+ placeholder: string;
54
65
  modelValue: string;
55
66
  clearable: boolean;
56
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -59,6 +70,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
59
70
  type: StringConstructor;
60
71
  default: string;
61
72
  };
73
+ placeholder: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
62
77
  clearable: {
63
78
  type: BooleanConstructor;
64
79
  default: boolean;
@@ -72,12 +87,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
72
87
  focus: typeof focus;
73
88
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
74
89
  blur: (...args: any[]) => void;
90
+ focus: (...args: any[]) => void;
75
91
  "update:modelValue": (...args: any[]) => void;
76
92
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
93
  modelValue: {
78
94
  type: StringConstructor;
79
95
  default: string;
80
96
  };
97
+ placeholder: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
81
101
  clearable: {
82
102
  type: BooleanConstructor;
83
103
  default: boolean;
@@ -88,9 +108,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
88
108
  };
89
109
  }>> & Readonly<{
90
110
  onBlur?: (...args: any[]) => any;
111
+ onFocus?: (...args: any[]) => any;
91
112
  "onUpdate:modelValue"?: (...args: any[]) => any;
92
113
  }>, {
93
114
  type: string;
115
+ placeholder: string;
94
116
  modelValue: string;
95
117
  clearable: boolean;
96
118
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -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[];
@@ -1,2 +1,4 @@
1
+ export * from './ai';
1
2
  export * from './block';
3
+ export * from './color';
2
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
  };
@@ -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,6 +121,12 @@ 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;
@@ -184,5 +193,40 @@ declare const _default: {
184
193
  open: string;
185
194
  open_in_new_tab: string;
186
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
+ };
187
231
  };
188
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,6 +120,11 @@ 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;
@@ -184,5 +191,40 @@ declare const _default: {
184
191
  open: string;
185
192
  open_in_new_tab: string;
186
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
+ };
187
229
  };
188
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
@@ -8,5 +8,4 @@ declare const YiiEditorPlugin: {
8
8
  export { YiiEditor, YiiEditorPlugin };
9
9
  export * from './components';
10
10
  export * from './constants';
11
- export * from './extensions';
12
11
  export * from './hooks';
@@ -0,0 +1 @@
1
+ export declare const toJSON: (html: string) => Record<string, any>;
@@ -1,7 +0,0 @@
1
- /**
2
- * Demo: Article
3
- */
4
- export declare const BasicFeaturesArticle = "\n<h1 id=\"heading-1\">Introduction</h1><p><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://github.com/donotebase/quasar-tiptap\"><span style=\"color: rgb(24, 144, 255)\"><strong>YiitapEditor</strong></span></a><span style=\"color: rgb(24, 144, 255)\"><strong><em> </em></strong></span>is a WYSIWYG rich-text block-based editor built on top of <span style=\"font-family: Arial Black\">tiptap</span>&nbsp;and Quasar.\uD83D\uDD25</p><h2 id=\"heading-2\">Callout</h2><div icon=\"\uD83C\uDF3E\" data-type=\"callout\"><p><strong>Announcement</strong></p><p>Make writing stand out.</p></div><h2 id=\"heading-3\">Blockquote</h2><blockquote><p><span style=\"font-family: Roboto, -apple-system, Helvetica Neue, Helvetica, Arial, sans-serif; color: rgb(0, 0, 0)\">A gentleman should constantly strike to become stronger just like the evolution of the universe.</span><br><span style=\"font-family: Roboto, -apple-system, Helvetica Neue, Helvetica, Arial, sans-serif; color: rgb(0, 0, 0)\">A gentleman should generously cultivate to become tolerant just like the earth bears everything on it.</span></p></blockquote><h2 id=\"heading-4\">Table</h2><table-wrapper><table><tbody><tr><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Th1</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Th2</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Th3</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p>Th3</p></th></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>List</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><ul data-type=\"taskList\"><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Task 1</p></div></li><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Task 2</p></div></li></ul></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><ul><li><p>List item 1</p></li><li><p>List item 2</p></li></ul></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><ol><li><p>Number one</p></li><li><p>Number two</p></li></ol></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Text</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Text</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Text</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Text</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"#1890ff\"><p><span style=\"color: #ffffff\">Cell Background</span></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td><td colspan=\"2\" rowspan=\"1\" background=\"\"><p>Merged Cell</p></td></tr></tbody></table></table-wrapper><h2 id=\"heading-5\">Image</h2><blockquote><p>A picture is worth a thousand of words.</p></blockquote><img src=\"https://www.donote.info/statics/logo.png\" alt=\"Caption\" title=\"Title\" size=\"large\" ratio=\"5/1\"><h2 id=\"heading-6\">Video</h2><video><source src=\"https://dhweb-app.oss-cn-hangzhou.aliyuncs.com/video/An-225.mp4\"></source></video><h2 id=\"heading-7\">Model View</h2><model-viewer src=\"https://dhweb-app.oss-cn-hangzhou.aliyuncs.com/models/NeilArmstrong.glb\"></model-viewer><h2 id=\"heading-8\">List</h2><h3 id=\"heading-9\">Unordered List</h3><ul><li><p>List Item 1</p><ul><li><p>List Item 1.1</p></li><li><p>List Item 1.21</p></li></ul></li><li><p>List Item 2</p></li><li><p>List Item 3</p></li></ul><h3 id=\"heading-10\">Ordered List</h3><blockquote><p>PDCA</p></blockquote><ol><li><p>Plan</p><ol><li><p>Plan 1</p></li><li><p>Plan 2</p></li></ol></li><li><p>Do</p></li><li><p>Check</p></li><li><p>Adust</p></li></ol><h3 id=\"heading-11\">Task</h3><ul data-type=\"taskList\"><li data-checked=\"true\" data-type=\"taskItem\"><label><input type=\"checkbox\" checked=\"checked\"><span></span></label><div><p>Model Viewer</p></div></li><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Diagram</p></div></li><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Math Formula</p></div></li><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Draggable handler for all blocks</p></div></li></ul><h2 id=\"heading-12\">Diagram</h2><p></p><pre><code class=\"language-bash\">ls ll</code></pre><p></p><div data-type=\"draggable-item\"><p>Draggable</p></div><h2 id=\"heading-13\">Math</h2><blockquote><p><span style=\"font-family: Roboto, -apple-system, Helvetica Neue, Helvetica, Arial, sans-serif\">Write inline formula, such as&nbsp;</span>\uFF0Cor block formula:</p></blockquote><p></p><p></p><h2 id=\"heading-14\">Code Block</h2><blockquote><p>Friendly to developer, with syntax highlight.</p></blockquote><h3 id=\"heading-15\">Bash</h3><pre><code class=\"language-javascript\">const name = 'JavaScript';\nconsole.log('Hello, world', name);</code></pre><h3 id=\"heading-16\">Go</h3><pre><code class=\"language-go\">package main\n\nimport \"fmt\"\n\nfunc main() {\n fmt.Println(\"Hello, world!\")\n}</code></pre><h2 id=\"heading-17\">Markdown</h2><table-wrapper><table><tbody><tr><th colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p style=\"text-align: center\">Title</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Shortcut</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Remarks</p></th></tr><tr><td colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p>Heading</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>#</code> <code>##</code> <code>###</code> <code>####</code> <code>#####</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p>Blockquote</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>&gt;</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p>Code</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>``</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p>Code Block</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>```</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td></tr></tbody></table></table-wrapper><h2 id=\"heading-18\">Typography</h2><h3 id=\"heading-19\">Heading 3</h3><p>abcde</p><h4 id=\"heading-20\">Heading 4</h4><p>aaa</p><h3 id=\"heading-21\">Paragraph</h3><p>Youth is not a time of life; it is a state of mind; it is not a matter of rosy cheeks, red lips and supple knees; it is a matter of the will, a quality of the imagination, a vigor of the emotions; it is the freshness of the deep springs of life.</p><p style=\"text-align: start\">Youth means a temperamental predominance of courage over timidity, of the appetite for adventure over the love of ease. This often exists in a man of 60 more than a boy of 20. Nobody grows old merely by a number of years. We grow old by deserting our ideals.</p><p style=\"text-align: start\">Years may wrinkle the skin, but to give up enthusiasm wrinkles the soul. Worry, fear, self-distrust bows the heart and turns the spirit back to dust.</p><p style=\"text-align: start\">Whether 60 or 16, there is in every human being\u2019s heart the lure of wonder, the unfailing childlike appetite of what\u2019s next and the joy of the game of living. In the center of your heart and my heart there is a wireless station: so long as it receives messages of beauty, hope, cheer, courage and power from men and from the Infinite, so long are you young.</p><p style=\"text-align: start\">When the aerials are down, and your spirit is covered with snows of cynicism and the ice of pessimism, then you are grown old, even at 20, but as long as your aerials are up, to catch waves of optimism, there is hope you may die young at 80.</p><h3 id=\"heading-22\">Smart</h3><table-wrapper><table><tbody><tr><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Title</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Input</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Remarks</p></th></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Copyright</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>(c)</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u00A9</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Right</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>(r)</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u00AE</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Arrow</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>&gt;&gt;</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u00BB</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Arrow</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>-&gt;</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u2192</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Not equal</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>!=</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u2260</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>1/2</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u00BD</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Dash</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>--</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u2014</p></td></tr></tbody></table></table-wrapper><h2 id=\"heading-23\">Text</h2><p><span style=\"font-family: Arial Black\"><strong>Bold text</strong></span></p><p><em>Italic text</em></p><p><u>Underline text</u></p><p><s>Strike through text</s></p><p><code>Inline code</code></p><p><span style=\"color: rgb(255, 77, 79)\">Text with color</span></p><p>Text with highlight background</p><p>Text with indent</p><p></p>\n";
5
- export declare const BasicFeaturesArticleZh = "\n<h1 id=\"heading-1\">Yiitap</h1><p><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://github.com/donotebase/quasar-tiptap\"><span style=\"color: rgb(24, 144, 255)\"><strong>YiitapEditor</strong></span></a><span style=\"color: rgb(24, 144, 255)\"><strong><em> </em></strong></span>is a WYSIWYG rich-text block-based editor built on top of <span style=\"font-family: Arial Black\">tiptap</span>&nbsp;and Quasar.\uD83D\uDD25</p><h2 id=\"heading-2\">\u9AD8\u4EAE\u5757</h2><div icon=\"\uD83C\uDF3E\" data-type=\"callout\"><p><strong>\u901A\u77E5</strong></p><p>\u7740\u91CD\u5F3A\u8C03\u3002</p></div><h2 id=\"heading-3\">\u5F15\u7528</h2><blockquote><p>\u5929\u884C\u5065\uFF0C\u541B\u5B50\u4EE5\u81EA\u5F3A\u4E0D\u606F\uFF1B<br>\u5730\u52BF\u5764\uFF0C\u541B\u5B50\u4EE5\u539A\u5FB7\u8F7D\u7269\u3002</p></blockquote><h2 id=\"heading-4\">\u8868\u683C</h2><table-wrapper><table><tbody><tr><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Th1</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Th2</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Th3</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p>Th3</p></th></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>List</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><ul data-type=\"taskList\"><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Task 1</p></div></li><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Task 2</p></div></li></ul></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><ul><li><p>List item 1</p></li><li><p>List item 2</p></li></ul></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><ol><li><p>Number one</p></li><li><p>Number two</p></li></ol></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Text</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Text</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Text</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Text</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"#1890ff\"><p><span style=\"color: rgb(255, 255, 255)\">\u5355\u5143\u683C\u80CC\u666F</span></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td><td colspan=\"2\" rowspan=\"1\" background=\"\"><p>\u5408\u5E76\u5355\u5143\u683C</p></td></tr></tbody></table></table-wrapper><h2 id=\"heading-5\">\u56FE\u7247</h2><blockquote><p>\u4E00\u56FE\u80DC\u5343\u8A00\u3002</p></blockquote><p><img src=\"https://dhweb-app.oss-cn-hangzhou.aliyuncs.com/images/M42.jpg\" alt=\"Caption\" title=\"Title\" size=\"large\" ratio=\"5/1\"></p><h2 id=\"heading-6\">\u89C6\u9891</h2><video><source src=\"https://dhweb-app.oss-cn-hangzhou.aliyuncs.com/video/An-225.mp4\"></source></video><h2 id=\"heading-7\">3D\u6A21\u578B</h2><model-viewer src=\"https://dhweb-app.oss-cn-hangzhou.aliyuncs.com/models/NeilArmstrong.glb\"></model-viewer><h2 id=\"heading-8\">\u5217\u8868</h2><h3 id=\"heading-9\">\u65E0\u5E8F\u5217\u8868</h3><ul><li><p>List Item 1</p><ul><li><p>List Item 1.1</p></li><li><p>List Item 1.21</p></li></ul></li><li><p>List Item 2</p></li><li><p>List Item 3</p></li></ul><h3 id=\"heading-10\">\u6709\u5E8F\u5217\u8868</h3><blockquote><p>PDCA</p></blockquote><ol><li><p>Plan</p><ol><li><p>Plan 1</p></li><li><p>Plan 2</p></li></ol></li><li><p>Do</p></li><li><p>Check</p></li><li><p>Adust</p></li></ol><h3 id=\"heading-11\">\u4EFB\u52A1</h3><ul data-type=\"taskList\"><li data-checked=\"true\" data-type=\"taskItem\"><label><input type=\"checkbox\" checked=\"checked\"><span></span></label><div><p>Model Viewer</p></div></li><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Diagram</p></div></li><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Math Formula</p></div></li><li data-checked=\"false\" data-type=\"taskItem\"><label><input type=\"checkbox\"><span></span></label><div><p>Draggable handler for all blocks</p></div></li></ul><h2 id=\"heading-12\">\u56FE\u8868</h2><p></p><pre><code class=\"language-bash\">ls ll</code></pre><p></p><div data-type=\"draggable-item\"><p>Draggable</p></div><h2 id=\"heading-13\">\u6570\u5B66\u516C\u5F0F</h2><blockquote><p><span style=\"font-family: Roboto, -apple-system, Helvetica Neue, Helvetica, Arial, sans-serif\">Write inline formula, such as&nbsp;</span>\uFF0Cor block formula:</p></blockquote><p></p><p></p><h2 id=\"heading-14\">\u4EE3\u7801\u5757</h2><blockquote><p>Friendly to developer, with syntax highlight.</p></blockquote><h3 id=\"heading-15\">Bash</h3><pre><code class=\"language-javascript\">const name = 'JavaScript';\nconsole.log('Hello, world', name);</code></pre><h3 id=\"heading-16\">Go</h3><pre><code class=\"language-go\">package main\n\nimport \"fmt\"\n\nfunc main() {\n fmt.Println(\"Hello, world!\")\n}</code></pre><h2 id=\"heading-17\">Markdown</h2><table-wrapper><table><tbody><tr><th colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p style=\"text-align: center\">Title</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Shortcut</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Remarks</p></th></tr><tr><td colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p>Heading</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>#</code> <code>##</code> <code>###</code> <code>####</code> <code>#####</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p>Blockquote</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>&gt;</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p>Code</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>``</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" colwidth=\"290\" background=\"\"><p>Code Block</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>```</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td></tr></tbody></table></table-wrapper><h2 id=\"heading-18\">\u6392\u7248</h2><h3 id=\"heading-19\">\u6807\u9898 3</h3><p></p><h4 id=\"heading-20\">\u6807\u9898 4</h4><p>aaa</p><h3 id=\"heading-21\">\u6BB5\u843D</h3><p>\u9752\u6625\u4E0D\u662F\u5E74\u534E\uFF0C\u800C\u662F\u5FC3\u5883\uFF1B\u9752\u6625\u4E0D\u662F\u6843\u9762\u3001\u4E39\u5507\u3001\u67D4\u819D\uFF0C\u800C\u662F\u6DF1\u6C89\u7684\u610F\u5FD7\uFF0C\u6062\u5B8F\u7684\u60F3\u8C61\uFF0C\u7099\u70ED\u7684\u611F\u60C5\uFF1B\u9752\u6625\u662F\u751F\u547D\u7684\u6DF1\u6CC9\u5728\u6D8C\u6D41\u3002</p><p style=\"text-align: start\">\u9752\u6625\u6C14\u8D2F\u957F\u8679\uFF0C\u52C7\u9510\u76D6\u8FC7\u602F\u5F31\uFF0C\u8FDB\u53D6\u538B\u5012\u82DF\u5B89\u3002\u5982\u6B64\u9510\u6C14\uFF0C\u4E8C\u5341\u540E\u751F\u800C\u6709\u4E4B\uFF0C\u516D\u65EC\u7537\u5B50\u5219\u66F4\u591A\u89C1\u3002\u5E74\u5C81\u6709\u52A0\uFF0C\u5E76\u975E\u5782\u8001\uFF0C\u7406\u60F3\u4E22\u5F03\uFF0C\u65B9\u5815\u66AE\u5E74\u3002</p><p style=\"text-align: start\">\u5C81\u6708\u60A0\u60A0\uFF0C\u8870\u5FAE\u53EA\u53CA\u808C\u80A4\uFF1B\u70ED\u5FF1\u629B\u5374\uFF0C\u9893\u5E9F\u5FC5\u81F4\u7075\u9B42\u3002\u5FE7\u70E6\uFF0C\u60F6\u6050\uFF0C\u4E27\u5931\u81EA\u4FE1\uFF0C\u5B9A\u4F7F\u5FC3\u7075\u626D\u66F2\uFF0C\u610F\u6C14\u5982\u7070\u3002</p><p style=\"text-align: start\">\u65E0\u8BBA\u5E74\u5C4A\u82B1\u7532\uFF0C\u6291\u6216\u4E8C\u516B\u82B3\u9F84\uFF0C\u5FC3\u4E2D\u7686\u6709\u751F\u547D\u4E4B\u6B22\u4E50\uFF0C\u5947\u8FF9\u4E4B\u8BF1\u60D1\uFF0C\u5B69\u7AE5\u822C\u5929\u771F\u4E45\u76DB\u4E0D\u8870\u3002\u4EBA\u4EBA\u5FC3\u4E2D\u7686\u6709\u4E00\u53F0\u5929\u7EBF\uFF0C\u53EA\u8981\u4F60\u4ECE\u5929\u4E0A\u4EBA\u95F4\u63A5\u53D7\u7F8E\u597D\u3001\u5E0C\u671B\u3001\u6B22\u4E50\u3001\u52C7\u6C14\u548C\u529B\u91CF\u7684\u4FE1\u53F7\uFF0C\u4F60\u5C31\u9752\u6625\u6C38\u9A7B\uFF0C\u98CE\u534E\u5E38\u5B58\u3002</p><p style=\"text-align: start\">\u4E00\u65E6\u5929\u7EBF\u4E0B\u964D\uFF0C\u9510\u6C14\u4FBF\u88AB\u51B0\u96EA\u8986\u76D6\uFF0C\u73A9\u4E16\u4E0D\u606D\u3001\u81EA\u66B4\u81EA\u5F03\u6CB9\u7136\u800C\u751F\uFF0C\u5373\u4F7F\u5E74\u65B9\u4E8C\u5341\uFF0C\u5B9E\u5DF2\u5782\u5782\u8001\u77E3\uFF1B\u7136\u5219\u53EA\u8981\u6811\u8D77\u5929\u7EBF\uFF0C\u6355\u6349\u4E50\u89C2\u4FE1\u53F7\uFF0C\u4F60\u5C31\u6709\u671B\u5728\u516B\u5341\u9AD8\u9F84\u544A\u522B\u5C18\u5BF0\u65F6\u4ECD\u89C9\u5E74\u8F7B\u3002</p><h3 id=\"heading-22\">\u5FEB\u6377\u8F93\u5165</h3><table-wrapper><table><tbody><tr><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Title</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Input</p></th><th colspan=\"1\" rowspan=\"1\" background=\"\"><p style=\"text-align: center\">Remarks</p></th></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Copyright</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>(c)</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u00A9</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Right</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>(r)</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u00AE</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Arrow</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>&gt;&gt;</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u00BB</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Arrow</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>-&gt;</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u2192</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Not equal</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>!=</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u2260</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>1/2</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u00BD</p></td></tr><tr><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>Dash</p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p><code>--</code></p></td><td colspan=\"1\" rowspan=\"1\" background=\"\"><p>\u2014</p></td></tr></tbody></table></table-wrapper><h2 id=\"heading-23\">\u6587\u672C</h2><p><span style=\"font-family: Arial Black\"><strong>Bold text</strong></span></p><p><em>Italic text</em></p><p><u>Underline text</u></p><p><s>Strike through text</s></p><p><code>Inline code</code></p><p><span style=\"color: rgb(255, 77, 79)\">Text with color</span></p><p>Text with highlight background</p><p>Text with indent</p><p></p>\n";
6
- export declare const BasicFeaturesArticleJson = "\n{\"type\":\"doc\",\"content\":[{\"type\":\"title\",\"content\":[{\"type\":\"text\",\"text\":\"quasar-tiptap\"}]},{\"type\":\"heading\",\"attrs\":{\"textAlign\":\"\",\"indent\":0,\"lineHeight\":\"\",\"level\":\"2\",\"id\":\"d5fb3c\"},\"content\":[{\"type\":\"text\",\"text\":\"Introduction\"}]},{\"type\":\"paragraph\",\"attrs\":{\"textAlign\":null,\"indent\":null,\"lineHeight\":null}}]}\n";
7
- export declare const FullFeaturedArticle = "\n<h1>quasar-tiptap</h1><h2 id=\"d5fb3c\" level=\"2\">Introduction</h2><blockquote><p><strong><span style=\"color: #1890ff\">Quasar Tiptap Editor</span></strong>&nbsp;is a WYSIWYG rich-text editor built on top of tiptap&nbsp;and Quasar.\uD83D\uDD25</p></blockquote><p></p><h2 id=\"ce7176\" level=\"2\">Diagram</h2><p></p><diagram src=\"graph TD\nA[Christmas] -->|Get money| B(Go shopping)\nB --> C{Let me think}\nC -->|One| D[Laptop]\nC -->|Two| E[iPhonee]\nC -->|Three| F[Cars]\"></diagram><h2 id=\"a4baf0\" level=\"2\">Math</h2><p><span style=\"color: rgb(0, 0, 0)\"><span style=\"font-family: Roboto, -apple-system, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif\">Write inline formula, such as&nbsp;</span></span><ki src=\"\\Gamma(n) = (n-1)!\\quad\\forall n\\in\\mathbb N\"></ki>\uFF0Cor block formula:</p><p></p><katex src=\"E=mc^2\"></katex><p></p><katex src=\"e^x=\\lim_{n\\to\\infty} \\left( 1+\\frac{x}{n} \\right)^n\"></katex><h2 id=\"2c1e92\" level=\"2\">Code</h2><blockquote></blockquote><pre><code>const name = 'JavaScript'\nconsole.log('Hello, world', name)</code></pre><pre><code>package main\n\nimport \"fmt\"\n\nfunc main() {\n fmt.Println(\"Hello, world!\")\n}</code></pre><h2 id=\"f0df1b\" level=\"2\">Table</h2><table><tbody><tr><th><p data-text-align=\"center\">Title</p></th><th><p data-text-align=\"center\">Name</p></th><th><p data-text-align=\"center\">Description</p></th></tr><tr><td><p data-text-align=\"center\">1</p></td><td><p data-text-align=\"center\">2</p></td><td><p>3</p></td></tr><tr><td><p data-text-align=\"right\">a</p></td><td><p data-text-align=\"right\">b</p></td><td><p data-text-align=\"right\">c</p></td></tr></tbody></table><p></p><h2 id=\"3b0d30\" level=\"2\">Text</h2><p><strong><span style=\"font-family: Arial Black\">Bold text</span></strong></p><p><em>Italic text</em></p><p><u>Underline text</u></p><p><s>Strike through text</s></p><p><code>Inline code</code></p><p><span style=\"color: #ff4d4f\">Text with color</span></p><p><span style=\"background: #ffec3d\">Text with </span><span style=\"color: #ffffff\"><span style=\"background: #52c41a\">highlight</span></span><span style=\"background: #ffec3d\"> background</span></p><p data-indent=\"1\">Text with indent</p><h2 id=\"f0df1b\" level=\"2\">Image</h2><p data-text-align=\"center\"><img src=\"https://www.donote.info/statics/logo.png\"></p><p></p><h2 id=\"5aced7\" level=\"2\">List</h2><h3 id=\"55b8b4\" level=\"3\">Unordered List</h3><ul><li><p>List Item 1</p></li><li><p>List Item 2</p></li><li><p>List Item 3</p></li></ul><h3 id=\"f7d0cf\" level=\"3\">Ordered List</h3><ol><li><p>Item 1</p></li><li><p>Item 2</p></li><li><p>Item 3</p></li></ol><h3 id=\"6572ee\" level=\"3\">Todo List</h3><ul data-type=\"todo_list\"><li data-type=\"todo_item\" data-done=\"false\"><span class=\"todo-checkbox\" contenteditable=\"false\"></span><div class=\"todo-content\"><p>Task 1</p></div></li><li data-type=\"todo_item\" data-done=\"false\"><span class=\"todo-checkbox\" contenteditable=\"false\"></span><div class=\"todo-content\"><p>Task 2</p></div></li><li data-type=\"todo_item\" data-done=\"true\"><span class=\"todo-checkbox\" contenteditable=\"false\"></span><div class=\"todo-content\"><p>Task 3, done</p></div></li></ul><p></p>\n";