poro-editor 1.5.1 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +13 -1
- package/dist/i18n/en.d.ts +129 -53
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/ja.d.ts +129 -53
- package/dist/i18n/zh.d.ts +129 -53
- package/dist/poro-editor.css +1 -1
- package/dist/poro-editor.js +20910 -16135
- package/dist/poro-editor.js.map +1 -1
- package/dist/poro-editor.umd.cjs +682 -139
- package/dist/poro-editor.umd.cjs.map +1 -1
- package/dist/theme/basicCSS.d.ts +1 -0
- package/dist/ui/ai/AIBubbleMenu.d.ts +5 -0
- package/dist/ui/ai/AIDialog.d.ts +8 -0
- package/dist/ui/ai/AIMenu.d.ts +6 -0
- package/dist/ui/ai/aiService.d.ts +81 -0
- package/dist/ui/export/ExportMenu.d.ts +6 -0
- package/dist/ui/import/ImportMenu.d.ts +6 -0
- package/dist/ui/menubar/FormatPainter.d.ts +5 -0
- package/package.json +6 -2
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const MENU_BAR_ITEMS: string[];
|
|
2
|
-
export const BUBBLE_MENU_ITEMS: string[];
|
|
2
|
+
export const BUBBLE_MENU_ITEMS: (string | undefined)[];
|
|
3
3
|
export const FLOATING_MENU_ITEMS: string[];
|
|
4
4
|
export namespace DEFAULT_UPLOAD_CONFIG {
|
|
5
5
|
let uploadUrl: string;
|
|
@@ -26,6 +26,16 @@ export namespace DEFAULT_VARIABLE_CONFIG {
|
|
|
26
26
|
export let prefix: string;
|
|
27
27
|
export let suffix: string;
|
|
28
28
|
}
|
|
29
|
+
export namespace DEFAULT_AI_CONFIG {
|
|
30
|
+
let enabled: boolean;
|
|
31
|
+
let apiKey: string;
|
|
32
|
+
let baseURL: string;
|
|
33
|
+
let model: string;
|
|
34
|
+
let maxTokens: number;
|
|
35
|
+
let temperature: number;
|
|
36
|
+
let stream: boolean;
|
|
37
|
+
let customHandler: null;
|
|
38
|
+
}
|
|
29
39
|
export namespace DEFAULT_CONFIG {
|
|
30
40
|
export { MENU_BAR_ITEMS as menuBar };
|
|
31
41
|
export { BUBBLE_MENU_ITEMS as bubbleMenu };
|
|
@@ -38,4 +48,6 @@ export namespace DEFAULT_CONFIG {
|
|
|
38
48
|
export let showCharCount: boolean;
|
|
39
49
|
export let readonly: boolean;
|
|
40
50
|
export { DEFAULT_VARIABLE_CONFIG as variables };
|
|
51
|
+
export { DEFAULT_AI_CONFIG as ai };
|
|
52
|
+
export let injectStyles: boolean;
|
|
41
53
|
}
|
package/dist/i18n/en.d.ts
CHANGED
|
@@ -1,45 +1,92 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export namespace toolbar {
|
|
3
|
-
let undo: string;
|
|
4
|
-
let redo: string;
|
|
5
|
-
let bold: string;
|
|
6
|
-
let italic: string;
|
|
7
|
-
let underline: string;
|
|
8
|
-
let strike: string;
|
|
9
|
-
let code: string;
|
|
10
|
-
let heading: string;
|
|
11
|
-
let heading1: string;
|
|
12
|
-
let heading2: string;
|
|
13
|
-
let heading3: string;
|
|
14
|
-
let heading4: string;
|
|
15
|
-
let heading5: string;
|
|
16
|
-
let heading6: string;
|
|
17
|
-
let paragraph: string;
|
|
18
|
-
let fontSize: string;
|
|
19
|
-
let textColor: string;
|
|
20
|
-
let bgColor: string;
|
|
21
|
-
let bulletList: string;
|
|
22
|
-
let orderedList: string;
|
|
23
|
-
let codeBlock: string;
|
|
24
|
-
let blockquote: string;
|
|
25
|
-
let link: string;
|
|
26
|
-
let horizontalRule: string;
|
|
27
|
-
let align: string;
|
|
28
|
-
let alignLeft: string;
|
|
29
|
-
let alignCenter: string;
|
|
30
|
-
let alignRight: string;
|
|
31
|
-
let alignJustify: string;
|
|
32
|
-
let image: string;
|
|
33
|
-
let table: string;
|
|
34
|
-
let hardBreak: string;
|
|
35
|
-
let variable: string;
|
|
36
|
-
let outline: string;
|
|
37
|
-
let sourceCode: string;
|
|
38
|
-
let htmlPreview: string;
|
|
39
|
-
let clearFormat: string;
|
|
40
|
-
let
|
|
3
|
+
export let undo: string;
|
|
4
|
+
export let redo: string;
|
|
5
|
+
export let bold: string;
|
|
6
|
+
export let italic: string;
|
|
7
|
+
export let underline: string;
|
|
8
|
+
export let strike: string;
|
|
9
|
+
export let code: string;
|
|
10
|
+
export let heading: string;
|
|
11
|
+
export let heading1: string;
|
|
12
|
+
export let heading2: string;
|
|
13
|
+
export let heading3: string;
|
|
14
|
+
export let heading4: string;
|
|
15
|
+
export let heading5: string;
|
|
16
|
+
export let heading6: string;
|
|
17
|
+
export let paragraph: string;
|
|
18
|
+
export let fontSize: string;
|
|
19
|
+
export let textColor: string;
|
|
20
|
+
export let bgColor: string;
|
|
21
|
+
export let bulletList: string;
|
|
22
|
+
export let orderedList: string;
|
|
23
|
+
export let codeBlock: string;
|
|
24
|
+
export let blockquote: string;
|
|
25
|
+
export let link: string;
|
|
26
|
+
export let horizontalRule: string;
|
|
27
|
+
export let align: string;
|
|
28
|
+
export let alignLeft: string;
|
|
29
|
+
export let alignCenter: string;
|
|
30
|
+
export let alignRight: string;
|
|
31
|
+
export let alignJustify: string;
|
|
32
|
+
export let image: string;
|
|
33
|
+
export let table: string;
|
|
34
|
+
export let hardBreak: string;
|
|
35
|
+
export let variable: string;
|
|
36
|
+
export let outline: string;
|
|
37
|
+
export let sourceCode: string;
|
|
38
|
+
export let htmlPreview: string;
|
|
39
|
+
export let clearFormat: string;
|
|
40
|
+
export let formatPainter: string;
|
|
41
|
+
export let formatPainterActive: string;
|
|
42
|
+
let _export: string;
|
|
43
|
+
export { _export as export };
|
|
44
|
+
let _import: string;
|
|
45
|
+
export { _import as import };
|
|
46
|
+
export let emoji: string;
|
|
41
47
|
}
|
|
42
|
-
export namespace
|
|
48
|
+
export namespace _import_1 {
|
|
49
|
+
let title: string;
|
|
50
|
+
let html: string;
|
|
51
|
+
let markdown: string;
|
|
52
|
+
let json: string;
|
|
53
|
+
let text: string;
|
|
54
|
+
let word: string;
|
|
55
|
+
let pdf: string;
|
|
56
|
+
let success: string;
|
|
57
|
+
let error: string;
|
|
58
|
+
let unsupportedFormat: string;
|
|
59
|
+
let mammothNotSupported: string;
|
|
60
|
+
let pdfNotSupported: string;
|
|
61
|
+
let docNotSupported: string;
|
|
62
|
+
}
|
|
63
|
+
export { _import_1 as import };
|
|
64
|
+
export namespace _export_1 {
|
|
65
|
+
let title_1: string;
|
|
66
|
+
export { title_1 as title };
|
|
67
|
+
let html_1: string;
|
|
68
|
+
export { html_1 as html };
|
|
69
|
+
let markdown_1: string;
|
|
70
|
+
export { markdown_1 as markdown };
|
|
71
|
+
let json_1: string;
|
|
72
|
+
export { json_1 as json };
|
|
73
|
+
let text_1: string;
|
|
74
|
+
export { text_1 as text };
|
|
75
|
+
let pdf_1: string;
|
|
76
|
+
export { pdf_1 as pdf };
|
|
77
|
+
let word_1: string;
|
|
78
|
+
export { word_1 as word };
|
|
79
|
+
let image_1: string;
|
|
80
|
+
export { image_1 as image };
|
|
81
|
+
let success_1: string;
|
|
82
|
+
export { success_1 as success };
|
|
83
|
+
let error_1: string;
|
|
84
|
+
export { error_1 as error };
|
|
85
|
+
export let exporting: string;
|
|
86
|
+
export let imageNotSupported: string;
|
|
87
|
+
}
|
|
88
|
+
export { _export_1 as export };
|
|
89
|
+
export namespace image_2 {
|
|
43
90
|
export let upload: string;
|
|
44
91
|
export let url: string;
|
|
45
92
|
export let uploadPlaceholder: string;
|
|
@@ -65,7 +112,7 @@ declare namespace _default {
|
|
|
65
112
|
export let uploading: string;
|
|
66
113
|
export let uploadFailed: string;
|
|
67
114
|
}
|
|
68
|
-
export {
|
|
115
|
+
export { image_2 as image };
|
|
69
116
|
export namespace table_1 {
|
|
70
117
|
let insertTable: string;
|
|
71
118
|
let insertRowAbove: string;
|
|
@@ -84,7 +131,8 @@ declare namespace _default {
|
|
|
84
131
|
}
|
|
85
132
|
export { table_1 as table };
|
|
86
133
|
export namespace link_1 {
|
|
87
|
-
|
|
134
|
+
let title_2: string;
|
|
135
|
+
export { title_2 as title };
|
|
88
136
|
export let placeholder: string;
|
|
89
137
|
let insert_1: string;
|
|
90
138
|
export { insert_1 as insert };
|
|
@@ -92,22 +140,26 @@ declare namespace _default {
|
|
|
92
140
|
}
|
|
93
141
|
export { link_1 as link };
|
|
94
142
|
export namespace sourceCode_1 {
|
|
95
|
-
let
|
|
96
|
-
export {
|
|
97
|
-
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
export
|
|
143
|
+
let title_3: string;
|
|
144
|
+
export { title_3 as title };
|
|
145
|
+
let html_2: string;
|
|
146
|
+
export { html_2 as html };
|
|
147
|
+
let json_2: string;
|
|
148
|
+
export { json_2 as json };
|
|
149
|
+
let markdown_2: string;
|
|
150
|
+
export { markdown_2 as markdown };
|
|
151
|
+
let text_2: string;
|
|
152
|
+
export { text_2 as text };
|
|
101
153
|
}
|
|
102
154
|
export { sourceCode_1 as sourceCode };
|
|
103
155
|
export namespace htmlPreview_1 {
|
|
104
|
-
let
|
|
105
|
-
export {
|
|
156
|
+
let title_4: string;
|
|
157
|
+
export { title_4 as title };
|
|
106
158
|
}
|
|
107
159
|
export { htmlPreview_1 as htmlPreview };
|
|
108
160
|
export namespace variable_1 {
|
|
109
|
-
let
|
|
110
|
-
export {
|
|
161
|
+
let title_5: string;
|
|
162
|
+
export { title_5 as title };
|
|
111
163
|
export let avatar: string;
|
|
112
164
|
export let nickname: string;
|
|
113
165
|
export let email: string;
|
|
@@ -117,8 +169,8 @@ declare namespace _default {
|
|
|
117
169
|
}
|
|
118
170
|
export { variable_1 as variable };
|
|
119
171
|
export namespace outline_1 {
|
|
120
|
-
let
|
|
121
|
-
export {
|
|
172
|
+
let title_6: string;
|
|
173
|
+
export { title_6 as title };
|
|
122
174
|
export let empty: string;
|
|
123
175
|
let _delete_1: string;
|
|
124
176
|
export { _delete_1 as delete };
|
|
@@ -153,5 +205,29 @@ declare namespace _default {
|
|
|
153
205
|
}
|
|
154
206
|
}
|
|
155
207
|
export { emoji_1 as emoji };
|
|
208
|
+
export namespace ai {
|
|
209
|
+
let title_7: string;
|
|
210
|
+
export { title_7 as title };
|
|
211
|
+
export let openDialog: string;
|
|
212
|
+
export let quickActions: string;
|
|
213
|
+
export let polish: string;
|
|
214
|
+
export let explain: string;
|
|
215
|
+
export let translate: string;
|
|
216
|
+
export let summarize: string;
|
|
217
|
+
export let expand: string;
|
|
218
|
+
export let fixGrammar: string;
|
|
219
|
+
export let send: string;
|
|
220
|
+
export let apply: string;
|
|
221
|
+
export let replace: string;
|
|
222
|
+
export let clear: string;
|
|
223
|
+
let placeholder_1: string;
|
|
224
|
+
export { placeholder_1 as placeholder };
|
|
225
|
+
export let inputPlaceholder: string;
|
|
226
|
+
export let noText: string;
|
|
227
|
+
export let noSelection: string;
|
|
228
|
+
let error_2: string;
|
|
229
|
+
export { error_2 as error };
|
|
230
|
+
export let processing: string;
|
|
231
|
+
}
|
|
156
232
|
}
|
|
157
233
|
export default _default;
|
package/dist/i18n/index.d.ts
CHANGED
package/dist/i18n/ja.d.ts
CHANGED
|
@@ -1,45 +1,92 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
export namespace toolbar {
|
|
3
|
-
let undo: string;
|
|
4
|
-
let redo: string;
|
|
5
|
-
let bold: string;
|
|
6
|
-
let italic: string;
|
|
7
|
-
let underline: string;
|
|
8
|
-
let strike: string;
|
|
9
|
-
let code: string;
|
|
10
|
-
let heading: string;
|
|
11
|
-
let heading1: string;
|
|
12
|
-
let heading2: string;
|
|
13
|
-
let heading3: string;
|
|
14
|
-
let heading4: string;
|
|
15
|
-
let heading5: string;
|
|
16
|
-
let heading6: string;
|
|
17
|
-
let paragraph: string;
|
|
18
|
-
let fontSize: string;
|
|
19
|
-
let textColor: string;
|
|
20
|
-
let bgColor: string;
|
|
21
|
-
let bulletList: string;
|
|
22
|
-
let orderedList: string;
|
|
23
|
-
let codeBlock: string;
|
|
24
|
-
let blockquote: string;
|
|
25
|
-
let link: string;
|
|
26
|
-
let horizontalRule: string;
|
|
27
|
-
let align: string;
|
|
28
|
-
let alignLeft: string;
|
|
29
|
-
let alignCenter: string;
|
|
30
|
-
let alignRight: string;
|
|
31
|
-
let alignJustify: string;
|
|
32
|
-
let image: string;
|
|
33
|
-
let table: string;
|
|
34
|
-
let hardBreak: string;
|
|
35
|
-
let variable: string;
|
|
36
|
-
let outline: string;
|
|
37
|
-
let sourceCode: string;
|
|
38
|
-
let htmlPreview: string;
|
|
39
|
-
let clearFormat: string;
|
|
40
|
-
let
|
|
3
|
+
export let undo: string;
|
|
4
|
+
export let redo: string;
|
|
5
|
+
export let bold: string;
|
|
6
|
+
export let italic: string;
|
|
7
|
+
export let underline: string;
|
|
8
|
+
export let strike: string;
|
|
9
|
+
export let code: string;
|
|
10
|
+
export let heading: string;
|
|
11
|
+
export let heading1: string;
|
|
12
|
+
export let heading2: string;
|
|
13
|
+
export let heading3: string;
|
|
14
|
+
export let heading4: string;
|
|
15
|
+
export let heading5: string;
|
|
16
|
+
export let heading6: string;
|
|
17
|
+
export let paragraph: string;
|
|
18
|
+
export let fontSize: string;
|
|
19
|
+
export let textColor: string;
|
|
20
|
+
export let bgColor: string;
|
|
21
|
+
export let bulletList: string;
|
|
22
|
+
export let orderedList: string;
|
|
23
|
+
export let codeBlock: string;
|
|
24
|
+
export let blockquote: string;
|
|
25
|
+
export let link: string;
|
|
26
|
+
export let horizontalRule: string;
|
|
27
|
+
export let align: string;
|
|
28
|
+
export let alignLeft: string;
|
|
29
|
+
export let alignCenter: string;
|
|
30
|
+
export let alignRight: string;
|
|
31
|
+
export let alignJustify: string;
|
|
32
|
+
export let image: string;
|
|
33
|
+
export let table: string;
|
|
34
|
+
export let hardBreak: string;
|
|
35
|
+
export let variable: string;
|
|
36
|
+
export let outline: string;
|
|
37
|
+
export let sourceCode: string;
|
|
38
|
+
export let htmlPreview: string;
|
|
39
|
+
export let clearFormat: string;
|
|
40
|
+
export let formatPainter: string;
|
|
41
|
+
export let formatPainterActive: string;
|
|
42
|
+
let _export: string;
|
|
43
|
+
export { _export as export };
|
|
44
|
+
let _import: string;
|
|
45
|
+
export { _import as import };
|
|
46
|
+
export let emoji: string;
|
|
41
47
|
}
|
|
42
|
-
export namespace
|
|
48
|
+
export namespace _import_1 {
|
|
49
|
+
let title: string;
|
|
50
|
+
let html: string;
|
|
51
|
+
let markdown: string;
|
|
52
|
+
let json: string;
|
|
53
|
+
let text: string;
|
|
54
|
+
let word: string;
|
|
55
|
+
let pdf: string;
|
|
56
|
+
let success: string;
|
|
57
|
+
let error: string;
|
|
58
|
+
let unsupportedFormat: string;
|
|
59
|
+
let mammothNotSupported: string;
|
|
60
|
+
let pdfNotSupported: string;
|
|
61
|
+
let docNotSupported: string;
|
|
62
|
+
}
|
|
63
|
+
export { _import_1 as import };
|
|
64
|
+
export namespace _export_1 {
|
|
65
|
+
let title_1: string;
|
|
66
|
+
export { title_1 as title };
|
|
67
|
+
let html_1: string;
|
|
68
|
+
export { html_1 as html };
|
|
69
|
+
let markdown_1: string;
|
|
70
|
+
export { markdown_1 as markdown };
|
|
71
|
+
let json_1: string;
|
|
72
|
+
export { json_1 as json };
|
|
73
|
+
let text_1: string;
|
|
74
|
+
export { text_1 as text };
|
|
75
|
+
let pdf_1: string;
|
|
76
|
+
export { pdf_1 as pdf };
|
|
77
|
+
let word_1: string;
|
|
78
|
+
export { word_1 as word };
|
|
79
|
+
let image_1: string;
|
|
80
|
+
export { image_1 as image };
|
|
81
|
+
let success_1: string;
|
|
82
|
+
export { success_1 as success };
|
|
83
|
+
let error_1: string;
|
|
84
|
+
export { error_1 as error };
|
|
85
|
+
export let exporting: string;
|
|
86
|
+
export let imageNotSupported: string;
|
|
87
|
+
}
|
|
88
|
+
export { _export_1 as export };
|
|
89
|
+
export namespace image_2 {
|
|
43
90
|
export let upload: string;
|
|
44
91
|
export let url: string;
|
|
45
92
|
export let uploadPlaceholder: string;
|
|
@@ -65,7 +112,7 @@ declare namespace _default {
|
|
|
65
112
|
export let uploading: string;
|
|
66
113
|
export let uploadFailed: string;
|
|
67
114
|
}
|
|
68
|
-
export {
|
|
115
|
+
export { image_2 as image };
|
|
69
116
|
export namespace table_1 {
|
|
70
117
|
let insertTable: string;
|
|
71
118
|
let insertRowAbove: string;
|
|
@@ -84,7 +131,8 @@ declare namespace _default {
|
|
|
84
131
|
}
|
|
85
132
|
export { table_1 as table };
|
|
86
133
|
export namespace link_1 {
|
|
87
|
-
|
|
134
|
+
let title_2: string;
|
|
135
|
+
export { title_2 as title };
|
|
88
136
|
export let placeholder: string;
|
|
89
137
|
let insert_1: string;
|
|
90
138
|
export { insert_1 as insert };
|
|
@@ -92,22 +140,26 @@ declare namespace _default {
|
|
|
92
140
|
}
|
|
93
141
|
export { link_1 as link };
|
|
94
142
|
export namespace sourceCode_1 {
|
|
95
|
-
let
|
|
96
|
-
export {
|
|
97
|
-
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
export
|
|
143
|
+
let title_3: string;
|
|
144
|
+
export { title_3 as title };
|
|
145
|
+
let html_2: string;
|
|
146
|
+
export { html_2 as html };
|
|
147
|
+
let json_2: string;
|
|
148
|
+
export { json_2 as json };
|
|
149
|
+
let markdown_2: string;
|
|
150
|
+
export { markdown_2 as markdown };
|
|
151
|
+
let text_2: string;
|
|
152
|
+
export { text_2 as text };
|
|
101
153
|
}
|
|
102
154
|
export { sourceCode_1 as sourceCode };
|
|
103
155
|
export namespace htmlPreview_1 {
|
|
104
|
-
let
|
|
105
|
-
export {
|
|
156
|
+
let title_4: string;
|
|
157
|
+
export { title_4 as title };
|
|
106
158
|
}
|
|
107
159
|
export { htmlPreview_1 as htmlPreview };
|
|
108
160
|
export namespace variable_1 {
|
|
109
|
-
let
|
|
110
|
-
export {
|
|
161
|
+
let title_5: string;
|
|
162
|
+
export { title_5 as title };
|
|
111
163
|
export let avatar: string;
|
|
112
164
|
export let nickname: string;
|
|
113
165
|
export let email: string;
|
|
@@ -117,8 +169,8 @@ declare namespace _default {
|
|
|
117
169
|
}
|
|
118
170
|
export { variable_1 as variable };
|
|
119
171
|
export namespace outline_1 {
|
|
120
|
-
let
|
|
121
|
-
export {
|
|
172
|
+
let title_6: string;
|
|
173
|
+
export { title_6 as title };
|
|
122
174
|
export let empty: string;
|
|
123
175
|
let _delete_1: string;
|
|
124
176
|
export { _delete_1 as delete };
|
|
@@ -153,5 +205,29 @@ declare namespace _default {
|
|
|
153
205
|
}
|
|
154
206
|
}
|
|
155
207
|
export { emoji_1 as emoji };
|
|
208
|
+
export namespace ai {
|
|
209
|
+
let title_7: string;
|
|
210
|
+
export { title_7 as title };
|
|
211
|
+
export let openDialog: string;
|
|
212
|
+
export let quickActions: string;
|
|
213
|
+
export let polish: string;
|
|
214
|
+
export let explain: string;
|
|
215
|
+
export let translate: string;
|
|
216
|
+
export let summarize: string;
|
|
217
|
+
export let expand: string;
|
|
218
|
+
export let fixGrammar: string;
|
|
219
|
+
export let send: string;
|
|
220
|
+
export let apply: string;
|
|
221
|
+
export let replace: string;
|
|
222
|
+
export let clear: string;
|
|
223
|
+
let placeholder_1: string;
|
|
224
|
+
export { placeholder_1 as placeholder };
|
|
225
|
+
export let inputPlaceholder: string;
|
|
226
|
+
export let noText: string;
|
|
227
|
+
export let noSelection: string;
|
|
228
|
+
let error_2: string;
|
|
229
|
+
export { error_2 as error };
|
|
230
|
+
export let processing: string;
|
|
231
|
+
}
|
|
156
232
|
}
|
|
157
233
|
export default _default;
|