@ckeditor/ckeditor5-ai 41.3.0-alpha.4 → 41.3.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/build/ai.js +6 -6
- package/build/translations/es-co.js +1 -1
- package/lang/translations/es-co.po +53 -53
- package/package.json +4 -5
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.d.ts +1 -0
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +3 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/dist/content-index.css +0 -332
- package/dist/editor-index.css +0 -573
- package/dist/index.css +0 -1344
- package/dist/translations/af.d.ts +0 -8
- package/dist/translations/af.js +0 -23
- package/dist/translations/ar.d.ts +0 -8
- package/dist/translations/ar.js +0 -23
- package/dist/translations/bg.d.ts +0 -8
- package/dist/translations/bg.js +0 -23
- package/dist/translations/bn.d.ts +0 -8
- package/dist/translations/bn.js +0 -23
- package/dist/translations/bs.d.ts +0 -8
- package/dist/translations/bs.js +0 -23
- package/dist/translations/ca.d.ts +0 -8
- package/dist/translations/ca.js +0 -23
- package/dist/translations/cs.d.ts +0 -8
- package/dist/translations/cs.js +0 -23
- package/dist/translations/da.d.ts +0 -8
- package/dist/translations/da.js +0 -23
- package/dist/translations/de-ch.d.ts +0 -8
- package/dist/translations/de-ch.js +0 -23
- package/dist/translations/de.d.ts +0 -8
- package/dist/translations/de.js +0 -23
- package/dist/translations/el.d.ts +0 -8
- package/dist/translations/el.js +0 -23
- package/dist/translations/en-au.d.ts +0 -8
- package/dist/translations/en-au.js +0 -23
- package/dist/translations/en.d.ts +0 -8
- package/dist/translations/en.js +0 -23
- package/dist/translations/es-co.d.ts +0 -8
- package/dist/translations/es-co.js +0 -23
- package/dist/translations/es.d.ts +0 -8
- package/dist/translations/es.js +0 -23
- package/dist/translations/et.d.ts +0 -8
- package/dist/translations/et.js +0 -23
- package/dist/translations/fa.d.ts +0 -8
- package/dist/translations/fa.js +0 -23
- package/dist/translations/fi.d.ts +0 -8
- package/dist/translations/fi.js +0 -23
- package/dist/translations/fr.d.ts +0 -8
- package/dist/translations/fr.js +0 -23
- package/dist/translations/gl.d.ts +0 -8
- package/dist/translations/gl.js +0 -23
- package/dist/translations/he.d.ts +0 -8
- package/dist/translations/he.js +0 -23
- package/dist/translations/hi.d.ts +0 -8
- package/dist/translations/hi.js +0 -23
- package/dist/translations/hr.d.ts +0 -8
- package/dist/translations/hr.js +0 -23
- package/dist/translations/hu.d.ts +0 -8
- package/dist/translations/hu.js +0 -23
- package/dist/translations/id.d.ts +0 -8
- package/dist/translations/id.js +0 -23
- package/dist/translations/it.d.ts +0 -8
- package/dist/translations/it.js +0 -23
- package/dist/translations/ja.d.ts +0 -8
- package/dist/translations/ja.js +0 -23
- package/dist/translations/jv.d.ts +0 -8
- package/dist/translations/jv.js +0 -23
- package/dist/translations/ko.d.ts +0 -8
- package/dist/translations/ko.js +0 -23
- package/dist/translations/lt.d.ts +0 -8
- package/dist/translations/lt.js +0 -23
- package/dist/translations/lv.d.ts +0 -8
- package/dist/translations/lv.js +0 -23
- package/dist/translations/ms.d.ts +0 -8
- package/dist/translations/ms.js +0 -23
- package/dist/translations/nl.d.ts +0 -8
- package/dist/translations/nl.js +0 -23
- package/dist/translations/no.d.ts +0 -8
- package/dist/translations/no.js +0 -23
- package/dist/translations/pl.d.ts +0 -8
- package/dist/translations/pl.js +0 -23
- package/dist/translations/pt-br.d.ts +0 -8
- package/dist/translations/pt-br.js +0 -23
- package/dist/translations/pt.d.ts +0 -8
- package/dist/translations/pt.js +0 -23
- package/dist/translations/ro.d.ts +0 -8
- package/dist/translations/ro.js +0 -23
- package/dist/translations/ru.d.ts +0 -8
- package/dist/translations/ru.js +0 -23
- package/dist/translations/sk.d.ts +0 -8
- package/dist/translations/sk.js +0 -23
- package/dist/translations/sr-latn.d.ts +0 -8
- package/dist/translations/sr-latn.js +0 -23
- package/dist/translations/sr.d.ts +0 -8
- package/dist/translations/sr.js +0 -23
- package/dist/translations/sv.d.ts +0 -8
- package/dist/translations/sv.js +0 -23
- package/dist/translations/th.d.ts +0 -8
- package/dist/translations/th.js +0 -23
- package/dist/translations/tk.d.ts +0 -8
- package/dist/translations/tk.js +0 -23
- package/dist/translations/tr.d.ts +0 -8
- package/dist/translations/tr.js +0 -23
- package/dist/translations/ug.d.ts +0 -8
- package/dist/translations/ug.js +0 -23
- package/dist/translations/uk.d.ts +0 -8
- package/dist/translations/uk.js +0 -23
- package/dist/translations/ur.d.ts +0 -8
- package/dist/translations/ur.js +0 -23
- package/dist/translations/uz.d.ts +0 -8
- package/dist/translations/uz.js +0 -23
- package/dist/translations/vi.d.ts +0 -8
- package/dist/translations/vi.js +0 -23
- package/dist/translations/zh-cn.d.ts +0 -8
- package/dist/translations/zh-cn.js +0 -23
- package/dist/translations/zh.d.ts +0 -8
- package/dist/translations/zh.js +0 -23
- package/dist/types/adapters/aiadapter.d.ts +0 -52
- package/dist/types/adapters/aitextadapter.d.ts +0 -150
- package/dist/types/adapters/awstextadapter.d.ts +0 -182
- package/dist/types/adapters/openaitextadapter.d.ts +0 -185
- package/dist/types/aiassistant.d.ts +0 -390
- package/dist/types/aiassistantediting.d.ts +0 -50
- package/dist/types/aiassistantui.d.ts +0 -57
- package/dist/types/aiconfig.d.ts +0 -73
- package/dist/types/augmentation.d.ts +0 -31
- package/dist/types/index.d.ts +0 -17
- package/dist/types/ui/aiassistantcontroller.d.ts +0 -113
- package/dist/types/ui/dropdown/aicommandslistview.d.ts +0 -37
- package/dist/types/ui/dropdown/buttonlabelwithhighlightview.d.ts +0 -33
- package/dist/types/ui/dropdown/labelwithhighlightview.d.ts +0 -29
- package/dist/types/ui/form/aiformcontentarea.d.ts +0 -52
- package/dist/types/ui/form/aiformerrorview.d.ts +0 -30
- package/dist/types/ui/form/aiformpromptview.d.ts +0 -50
- package/dist/types/ui/form/aiformtoolbarview.d.ts +0 -62
- package/dist/types/ui/form/aiformview.d.ts +0 -145
- package/dist/types/ui/form/aihistorylistitemview.d.ts +0 -22
- package/dist/types/ui/form/aihistorylistview.d.ts +0 -39
- package/dist/types/ui/form/prompthistory.d.ts +0 -24
- package/dist/types/ui/showaiassistantcommand.d.ts +0 -44
- package/dist/types/utils/common-translations.d.ts +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){const
|
|
1
|
+
!function(e){const a=e["es-co"]=e["es-co"]||{};a.dictionary=Object.assign(a.dictionary||{},{"AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","AI is writing...":"IA está escribiendo...",AI_ERROR_CONTEXT_LENGTH:"El contenido seleccionado es demasiado largo.",AI_ERROR_FAILED:"No se puede comunicar con el servicio de IA",AI_ERROR_GET_HEADERS:"Error al preparar los encabezados de la petición",AI_ERROR_GET_PARAMETERS:"Error al preparar los parámetros de la petición",AI_ERROR_MODERATION:"La consulta solicitada no cumple las reglas de moderación",AI_ERROR_UNSUPPORTED_MODEL:'El modelo de IA solicitado ("%0") no es compatible',AI_INSERT_CONTENT:"Insertar",AI_REPLACE_CONTENT:"Reemplazar",Arabic:"Árabe","Ask AI and your prompts will be listed here for you to use later.":"Pregúntale a IA y tus prompts se listarán aquí para que puedas usarlas posteriormente.","Ask AI to edit or generate":"Pídale a IA que edite o genere","Ask AI to improve generated text":"Pídale a IA que mejore el texto generado",Business:"Negocios",Casual:"Casual","Change style":"Cambiar estilo","Change tone":"Cambiar tono",Confident:"En confianza",Continue:"Continuar",Copy:"Copiar",Direct:"Directo","Edit or review":"Editar o revisar","Empty history":"Historial vacío",English:"Inglés",French:"Francés",Friendly:"Amigable","Generate from selection":"Generar de la selección",German:"Alemán",Hindi:"Hindi",History:"Historial","Improve writing":"Mejorar escritura","Insert below":"Insertar abajo",Journalism:"Periodístico",Legal:"Legal","Make longer":"Extender","Make shorter":"Acortar","No commands available":"No hay comandos disponibles","No commands found":"No se encontraron comandos",Poetic:"Poético",Portuguese:"Portugués",Professional:"Profesional","Prompt history":"Historial de prompts","Search AI command":"Comando para buscar por IA","Simplified Chinese":"Chino simplificado","Simplify language":"Simplificar lenguaje",Spanish:"Español",Stop:"Detener",Submit:"Enviar",Summarize:"Resumir",Translate:"Traducir","Translate to %0":"Traducir al %0","Try again":"Intente nuevamente"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -19,139 +19,139 @@ msgstr ""
|
|
|
19
19
|
|
|
20
20
|
msgctxt "AI command group label for editing and reviewing."
|
|
21
21
|
msgid "Edit or review"
|
|
22
|
-
msgstr ""
|
|
22
|
+
msgstr "Editar o revisar"
|
|
23
23
|
|
|
24
24
|
msgctxt "Label for the AI command to improve the writing of content."
|
|
25
25
|
msgid "Improve writing"
|
|
26
|
-
msgstr ""
|
|
26
|
+
msgstr "Mejorar escritura"
|
|
27
27
|
|
|
28
28
|
msgctxt "Label for the AI command to make the content shorter."
|
|
29
29
|
msgid "Make shorter"
|
|
30
|
-
msgstr ""
|
|
30
|
+
msgstr "Acortar"
|
|
31
31
|
|
|
32
32
|
msgctxt "Label for the AI command to make the content longer."
|
|
33
33
|
msgid "Make longer"
|
|
34
|
-
msgstr ""
|
|
34
|
+
msgstr "Extender"
|
|
35
35
|
|
|
36
36
|
msgctxt "Label for the AI command to simplify the language of content."
|
|
37
37
|
msgid "Simplify language"
|
|
38
|
-
msgstr ""
|
|
38
|
+
msgstr "Simplificar lenguaje"
|
|
39
39
|
|
|
40
40
|
msgctxt "AI command group label for generating content from selection."
|
|
41
41
|
msgid "Generate from selection"
|
|
42
|
-
msgstr ""
|
|
42
|
+
msgstr "Generar de la selección"
|
|
43
43
|
|
|
44
44
|
msgctxt "Label for the AI command to provide a summary of content."
|
|
45
45
|
msgid "Summarize"
|
|
46
|
-
msgstr ""
|
|
46
|
+
msgstr "Resumir"
|
|
47
47
|
|
|
48
48
|
msgctxt "Label for the AI command to continue the content."
|
|
49
49
|
msgid "Continue"
|
|
50
|
-
msgstr ""
|
|
50
|
+
msgstr "Continuar"
|
|
51
51
|
|
|
52
52
|
msgctxt "AI command group label for changing the tone of content."
|
|
53
53
|
msgid "Change tone"
|
|
54
|
-
msgstr ""
|
|
54
|
+
msgstr "Cambiar tono"
|
|
55
55
|
|
|
56
56
|
msgctxt "Label for the AI command to rewrite content in a professional tone."
|
|
57
57
|
msgid "Professional"
|
|
58
|
-
msgstr ""
|
|
58
|
+
msgstr "Profesional"
|
|
59
59
|
|
|
60
60
|
msgctxt "Label for the AI command to rewrite content in a casual tone."
|
|
61
61
|
msgid "Casual"
|
|
62
|
-
msgstr ""
|
|
62
|
+
msgstr "Casual"
|
|
63
63
|
|
|
64
64
|
msgctxt "Label for the AI command to rewrite content in a direct manner."
|
|
65
65
|
msgid "Direct"
|
|
66
|
-
msgstr ""
|
|
66
|
+
msgstr "Directo"
|
|
67
67
|
|
|
68
68
|
msgctxt "Label for the AI command to rewrite content in a confident tone."
|
|
69
69
|
msgid "Confident"
|
|
70
|
-
msgstr ""
|
|
70
|
+
msgstr "En confianza"
|
|
71
71
|
|
|
72
72
|
msgctxt "Label for the AI command to rewrite content in a friendly tone."
|
|
73
73
|
msgid "Friendly"
|
|
74
|
-
msgstr ""
|
|
74
|
+
msgstr "Amigable"
|
|
75
75
|
|
|
76
76
|
msgctxt "AI command group label for changing the style of content."
|
|
77
77
|
msgid "Change style"
|
|
78
|
-
msgstr ""
|
|
78
|
+
msgstr "Cambiar estilo"
|
|
79
79
|
|
|
80
80
|
msgctxt "Label for the AI command to rewrite content in a business style."
|
|
81
81
|
msgid "Business"
|
|
82
|
-
msgstr ""
|
|
82
|
+
msgstr "Negocios"
|
|
83
83
|
|
|
84
84
|
msgctxt "Label for the AI command to rewrite content in a legal style."
|
|
85
85
|
msgid "Legal"
|
|
86
|
-
msgstr ""
|
|
86
|
+
msgstr "Legal"
|
|
87
87
|
|
|
88
88
|
msgctxt "Label for the AI command to rewrite content in a journalistic style."
|
|
89
89
|
msgid "Journalism"
|
|
90
|
-
msgstr ""
|
|
90
|
+
msgstr "Periodístico"
|
|
91
91
|
|
|
92
92
|
msgctxt "Label for the AI command to rewrite content poetically."
|
|
93
93
|
msgid "Poetic"
|
|
94
|
-
msgstr ""
|
|
94
|
+
msgstr "Poético"
|
|
95
95
|
|
|
96
96
|
msgctxt "AI command group label for translating the content."
|
|
97
97
|
msgid "Translate"
|
|
98
|
-
msgstr ""
|
|
98
|
+
msgstr "Traducir"
|
|
99
99
|
|
|
100
100
|
msgctxt "Label for the AI command. Example: (Translate to) English"
|
|
101
101
|
msgid "Translate to %0"
|
|
102
|
-
msgstr ""
|
|
102
|
+
msgstr "Traducir al %0"
|
|
103
103
|
|
|
104
104
|
msgctxt "Translate to (English)"
|
|
105
105
|
msgid "English"
|
|
106
|
-
msgstr ""
|
|
106
|
+
msgstr "Inglés"
|
|
107
107
|
|
|
108
108
|
msgctxt "Translate to (Spanish)"
|
|
109
109
|
msgid "Spanish"
|
|
110
|
-
msgstr ""
|
|
110
|
+
msgstr "Español"
|
|
111
111
|
|
|
112
112
|
msgctxt "Translate to (German)"
|
|
113
113
|
msgid "German"
|
|
114
|
-
msgstr ""
|
|
114
|
+
msgstr "Alemán"
|
|
115
115
|
|
|
116
116
|
msgctxt "Translate to (Portuguese)"
|
|
117
117
|
msgid "Portuguese"
|
|
118
|
-
msgstr ""
|
|
118
|
+
msgstr "Portugués"
|
|
119
119
|
|
|
120
120
|
msgctxt "Translate to (French)"
|
|
121
121
|
msgid "French"
|
|
122
|
-
msgstr ""
|
|
122
|
+
msgstr "Francés"
|
|
123
123
|
|
|
124
124
|
msgctxt "Translate to (Simplified Chinese)"
|
|
125
125
|
msgid "Simplified Chinese"
|
|
126
|
-
msgstr ""
|
|
126
|
+
msgstr "Chino simplificado"
|
|
127
127
|
|
|
128
128
|
msgctxt "Translate to (Hindi)"
|
|
129
129
|
msgid "Hindi"
|
|
130
|
-
msgstr ""
|
|
130
|
+
msgstr "Hindi"
|
|
131
131
|
|
|
132
132
|
msgctxt "Translate to (Arabic)"
|
|
133
133
|
msgid "Arabic"
|
|
134
|
-
msgstr ""
|
|
134
|
+
msgstr "Árabe"
|
|
135
135
|
|
|
136
136
|
msgctxt "The heading element name displayed in the AI dialog and the button tooltip that opens the dialog."
|
|
137
137
|
msgid "AI Assistant"
|
|
138
|
-
msgstr ""
|
|
138
|
+
msgstr "Asistente de IA"
|
|
139
139
|
|
|
140
140
|
msgctxt "The toolbar button tooltip for the dropdown with predefined AI commands."
|
|
141
141
|
msgid "AI Commands"
|
|
142
|
-
msgstr ""
|
|
142
|
+
msgstr "Comandos de IA"
|
|
143
143
|
|
|
144
144
|
msgctxt "The placeholder for the prompt input to obtain new content."
|
|
145
145
|
msgid "Ask AI to edit or generate"
|
|
146
|
-
msgstr ""
|
|
146
|
+
msgstr "Pídale a IA que edite o genere"
|
|
147
147
|
|
|
148
148
|
msgctxt "The placeholder for the prompt input to improve the generated content."
|
|
149
149
|
msgid "Ask AI to improve generated text"
|
|
150
|
-
msgstr ""
|
|
150
|
+
msgstr "Pídale a IA que mejore el texto generado"
|
|
151
151
|
|
|
152
152
|
msgctxt "The label for the button that copies the text from the textarea."
|
|
153
153
|
msgid "Copy"
|
|
154
|
-
msgstr ""
|
|
154
|
+
msgstr "Copiar"
|
|
155
155
|
|
|
156
156
|
msgctxt "The label for the button that submits the entered AI prompt."
|
|
157
157
|
msgid "Submit"
|
|
@@ -159,76 +159,76 @@ msgstr "Enviar"
|
|
|
159
159
|
|
|
160
160
|
msgctxt "The label for the button that inserts the generated AI response below the current selection."
|
|
161
161
|
msgid "Insert below"
|
|
162
|
-
msgstr ""
|
|
162
|
+
msgstr "Insertar abajo"
|
|
163
163
|
|
|
164
164
|
msgctxt "The label for the button that repeats the request to AI."
|
|
165
165
|
msgid "Try again"
|
|
166
|
-
msgstr ""
|
|
166
|
+
msgstr "Intente nuevamente"
|
|
167
167
|
|
|
168
168
|
msgctxt "The label for the button that stops the generating of the content by AI."
|
|
169
169
|
msgid "Stop"
|
|
170
|
-
msgstr ""
|
|
170
|
+
msgstr "Detener"
|
|
171
171
|
|
|
172
172
|
msgctxt "The label that indicates the AI is generating content."
|
|
173
173
|
msgid "AI is writing..."
|
|
174
|
-
msgstr ""
|
|
174
|
+
msgstr "IA está escribiendo..."
|
|
175
175
|
|
|
176
176
|
msgctxt "The label of the button that toggles the prompt history pane in the AI dialog."
|
|
177
177
|
msgid "History"
|
|
178
|
-
msgstr ""
|
|
178
|
+
msgstr "Historial"
|
|
179
179
|
|
|
180
180
|
msgctxt "The primary information text displayed when the prompt history is empty."
|
|
181
181
|
msgid "Empty history"
|
|
182
|
-
msgstr ""
|
|
182
|
+
msgstr "Historial vacío"
|
|
183
183
|
|
|
184
184
|
msgctxt "The secondary information text displayed when the prompt history is empty."
|
|
185
185
|
msgid "Ask AI and your prompts will be listed here for you to use later."
|
|
186
|
-
msgstr ""
|
|
186
|
+
msgstr "Pregúntale a IA y tus prompts se listarán aquí para que puedas usarlas posteriormente."
|
|
187
187
|
|
|
188
188
|
msgctxt "The label of the list group that hosts historical user prompts in the AI dialog."
|
|
189
189
|
msgid "Prompt history"
|
|
190
|
-
msgstr ""
|
|
190
|
+
msgstr "Historial de prompts"
|
|
191
191
|
|
|
192
192
|
msgctxt "The placeholder for the search input to filter the AI commands."
|
|
193
193
|
msgid "Search AI command"
|
|
194
|
-
msgstr ""
|
|
194
|
+
msgstr "Comando para buscar por IA"
|
|
195
195
|
|
|
196
196
|
msgctxt "The message displayed when the commands search input does not match any AI commands."
|
|
197
197
|
msgid "No commands found"
|
|
198
|
-
msgstr ""
|
|
198
|
+
msgstr "No se encontraron comandos"
|
|
199
199
|
|
|
200
200
|
msgctxt "The message displayed when there are no AI commands available in the commands dropdown."
|
|
201
201
|
msgid "No commands available"
|
|
202
|
-
msgstr ""
|
|
202
|
+
msgstr "No hay comandos disponibles"
|
|
203
203
|
|
|
204
204
|
msgctxt "The label for the button that replaces the selected content by the generated AI response."
|
|
205
205
|
msgid "AI_REPLACE_CONTENT"
|
|
206
|
-
msgstr ""
|
|
206
|
+
msgstr "Reemplazar"
|
|
207
207
|
|
|
208
208
|
msgctxt "The label for the button that inserts the generated AI response."
|
|
209
209
|
msgid "AI_INSERT_CONTENT"
|
|
210
|
-
msgstr ""
|
|
210
|
+
msgstr "Insertar"
|
|
211
211
|
|
|
212
212
|
msgctxt "Error message displayed when preparing request headers fails."
|
|
213
213
|
msgid "AI_ERROR_GET_HEADERS"
|
|
214
|
-
msgstr ""
|
|
214
|
+
msgstr "Error al preparar los encabezados de la petición"
|
|
215
215
|
|
|
216
216
|
msgctxt "Error message displayed when preparing request parameters fails."
|
|
217
217
|
msgid "AI_ERROR_GET_PARAMETERS"
|
|
218
|
-
msgstr ""
|
|
218
|
+
msgstr "Error al preparar los parámetros de la petición"
|
|
219
219
|
|
|
220
220
|
msgctxt "Error message displayed when the requested AI model is not supported."
|
|
221
221
|
msgid "AI_ERROR_UNSUPPORTED_MODEL"
|
|
222
|
-
msgstr ""
|
|
222
|
+
msgstr "El modelo de IA solicitado (\"%0\") no es compatible"
|
|
223
223
|
|
|
224
224
|
msgctxt "Error message displayed when the content selected for AI processing is too long"
|
|
225
225
|
msgid "AI_ERROR_CONTEXT_LENGTH"
|
|
226
|
-
msgstr ""
|
|
226
|
+
msgstr "El contenido seleccionado es demasiado largo."
|
|
227
227
|
|
|
228
228
|
msgctxt "Error message displayed when a request is abusive, harmful or hateful and was rejected due to moderation rules."
|
|
229
229
|
msgid "AI_ERROR_MODERATION"
|
|
230
|
-
msgstr ""
|
|
230
|
+
msgstr "La consulta solicitada no cumple las reglas de moderación"
|
|
231
231
|
|
|
232
232
|
msgctxt "Generic error message displayed when the request failed for unspecified reason."
|
|
233
233
|
msgid "AI_ERROR_FAILED"
|
|
234
|
-
msgstr ""
|
|
234
|
+
msgstr "No se puede comunicar con el servicio de IA"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "41.3.
|
|
3
|
+
"version": "41.3.1",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,16 +23,15 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ckeditor5": "41.3.
|
|
27
|
-
"ckeditor5-collaboration": "41.3.
|
|
26
|
+
"ckeditor5": "41.3.1",
|
|
27
|
+
"ckeditor5-collaboration": "41.3.1",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "41.3.
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "41.3.1",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
33
33
|
"main": "src/index.js",
|
|
34
34
|
"files": [
|
|
35
|
-
"dist",
|
|
36
35
|
"lang",
|
|
37
36
|
"src/**/*.js",
|
|
38
37
|
"src/**/*.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4890(_0x283565,_0x4afb65){var _0x5db129=_0x5db1();return _0x4890=function(_0x48909a,_0x5bcaef){_0x48909a=_0x48909a-0xd7;var _0x31b875=_0x5db129[_0x48909a];return _0x31b875;},_0x4890(_0x283565,_0x4afb65);}function _0x5db1(){var _0x58d053=['8bAQLQQ','aiadapter-text-adapter-not-set','pluginName','17749980EQzpZF','438105XnYYHg','2513HMbpca','577606DjJZPK','2613351caZbkB','207ILCHKZ','39008QfUxVd','AIAdapter','textAdapter','AIRequestError','5Creope','afterInit','36nwdmjc','13306018motQSa','name','19104PauCOG'];_0x5db1=function(){return _0x58d053;};return _0x5db1();}var _0xb40bde=_0x4890;(function(_0x2e1659,_0x1d1a3e){var _0x11245d=_0x4890,_0x18c4e9=_0x2e1659();while(!![]){try{var _0x21b0f9=-parseInt(_0x11245d(0xe8))/0x1*(-parseInt(_0x11245d(0xe1))/0x2)+-parseInt(_0x11245d(0xe2))/0x3+-parseInt(_0x11245d(0xdb))/0x4*(parseInt(_0x11245d(0xdf))/0x5)+-parseInt(_0x11245d(0xda))/0x6*(parseInt(_0x11245d(0xe0))/0x7)+-parseInt(_0x11245d(0xe4))/0x8*(parseInt(_0x11245d(0xe3))/0x9)+-parseInt(_0x11245d(0xde))/0xa+parseInt(_0x11245d(0xd8))/0xb*(parseInt(_0x11245d(0xd7))/0xc);if(_0x21b0f9===_0x1d1a3e)break;else _0x18c4e9['push'](_0x18c4e9['shift']());}catch(_0x150945){_0x18c4e9['push'](_0x18c4e9['shift']());}}}(_0x5db1,0xf3410));import{Plugin as _0x3b310b}from'ckeditor5/src/core.js';import{CKEditorError as _0x163675}from'ckeditor5/src/utils.js';export default class v extends _0x3b310b{static get[_0xb40bde(0xdd)](){var _0x2453d4=_0xb40bde;return _0x2453d4(0xe5);}[_0xb40bde(0xe9)](){var _0x1f21da=_0xb40bde;if(!this[_0x1f21da(0xe6)])throw new _0x163675(_0x1f21da(0xdc),null);}}export class AIRequestError extends Error{constructor(_0x49fa78){var _0x6eb0b1=_0xb40bde;super(_0x49fa78),this[_0x6eb0b1(0xd9)]=_0x6eb0b1(0xe7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dcf64=_0x4921;function _0x33ef(){const _0x3e7fd7=['resolve','error','requires','makeRequest','14140xaIuNt','AI_ERROR_GET_PARAMETERS','catch','init','1277264yiSngk','name','75418XUEENe','aborted','1744mXPVqk','get','plugins','abortController','1895532DZomQc','abort','AI_ERROR_GET_HEADERS','application/json','aitextadapter-send-request-failed','15505HObjhq','sendRequest','signal','assign','object','reject','1506RdQbFu','_prepareRequestHeaders','1467lptquk','55oDeXoA','66SSkdWm','locale','editor','textAdapter','940709IgzLEB','_prepareRequestParameters','AbortError','4BYJqPj'];_0x33ef=function(){return _0x3e7fd7;};return _0x33ef();}(function(_0xb10f4e,_0x53f74e){const _0x318c5c=_0x4921,_0x193d97=_0xb10f4e();while(!![]){try{const _0x41046e=-parseInt(_0x318c5c(0x86))/0x1*(parseInt(_0x318c5c(0x7b))/0x2)+-parseInt(_0x318c5c(0x70))/0x3*(parseInt(_0x318c5c(0x88))/0x4)+parseInt(_0x318c5c(0x91))/0x5*(-parseInt(_0x318c5c(0x74))/0x6)+parseInt(_0x318c5c(0x78))/0x7+-parseInt(_0x318c5c(0x84))/0x8+-parseInt(_0x318c5c(0x72))/0x9*(parseInt(_0x318c5c(0x80))/0xa)+parseInt(_0x318c5c(0x73))/0xb*(parseInt(_0x318c5c(0x8c))/0xc);if(_0x41046e===_0x53f74e)break;else _0x193d97['push'](_0x193d97['shift']());}catch(_0x135c09){_0x193d97['push'](_0x193d97['shift']());}}}(_0x33ef,0x1fcb9));function _0x4921(_0x543e96,_0x3638fb){const _0x33ef54=_0x33ef();return _0x4921=function(_0x4921f3,_0x112cf4){_0x4921f3=_0x4921f3-0x70;let _0x1e3a88=_0x33ef54[_0x4921f3];return _0x1e3a88;},_0x4921(_0x543e96,_0x3638fb);}import{Plugin as _0x29b59d}from'ckeditor5/src/core.js';import{CKEditorError as _0x3828b9}from'ckeditor5/src/utils.js';import{default as _0x195c66,AIRequestError as _0x55ca6}from'./aiadapter.js';import{getTranslation as _0x14a340}from'../utils/common-translations.js';export default class P extends _0x29b59d{static get[_0x5dcf64(0x7e)](){return[_0x195c66];}constructor(_0x522bec){const _0x2f94e6=_0x5dcf64;super(_0x522bec),this[_0x2f94e6(0x8b)]=new AbortController();}[_0x5dcf64(0x83)](){const _0x4f3745=_0x5dcf64;this[_0x4f3745(0x76)][_0x4f3745(0x8a)][_0x4f3745(0x89)](_0x195c66)[_0x4f3745(0x77)]=this;}[_0x5dcf64(0x8d)](){const _0x1c6760=_0x5dcf64;this[_0x1c6760(0x8b)][_0x1c6760(0x93)][_0x1c6760(0x87)]||(this[_0x1c6760(0x8b)][_0x1c6760(0x8d)](),this[_0x1c6760(0x8b)]=new AbortController());}async[_0x5dcf64(0x7f)](_0x287bdc){const _0x1a2aa7=_0x5dcf64;return this[_0x1a2aa7(0x92)](_0x287bdc)[_0x1a2aa7(0x82)](_0x3ea821=>{const _0x106eb4=_0x1a2aa7;if(_0x3ea821 instanceof _0x55ca6)return Promise[_0x106eb4(0x96)](_0x3ea821);if(_0x106eb4(0x7a)==_0x3ea821[_0x106eb4(0x85)])return Promise[_0x106eb4(0x7c)]();throw console[_0x106eb4(0x7d)](_0x3ea821),new _0x3828b9(_0x106eb4(0x90),null);});}async[_0x5dcf64(0x71)](_0x2f809f,_0x39dbd2){const _0x4ecf8f=_0x5dcf64,_0x4f0d12=this[_0x4ecf8f(0x76)][_0x4ecf8f(0x75)],_0x259c08={'Content-Type':_0x4ecf8f(0x8f)};if(_0x4ecf8f(0x95)==typeof _0x2f809f)Object[_0x4ecf8f(0x94)](_0x259c08,_0x2f809f);else{if(_0x2f809f)try{const _0x3a8b13=await _0x2f809f(_0x39dbd2);Object[_0x4ecf8f(0x94)](_0x259c08,_0x3a8b13);}catch(_0x2f816e){return Promise[_0x4ecf8f(0x96)](new _0x55ca6(_0x14a340(_0x4f0d12,_0x4ecf8f(0x8e))));}}return _0x259c08;}async[_0x5dcf64(0x79)](_0x3ffc4f,_0x4c4bc9){const _0x29f773=_0x5dcf64,_0x3650c9=this[_0x29f773(0x76)][_0x29f773(0x75)];if(_0x29f773(0x95)==typeof _0x3ffc4f)return _0x3ffc4f;try{return await _0x3ffc4f(_0x4c4bc9);}catch(_0x2db88b){return Promise[_0x29f773(0x96)](new _0x55ca6(_0x14a340(_0x3650c9,_0x29f773(0x81))));}}}
|
|
@@ -135,6 +135,7 @@ export interface AWSTextAdapterConfig {
|
|
|
135
135
|
requestHeaders?: RequestHeaders;
|
|
136
136
|
/**
|
|
137
137
|
* Additional configuration parameters for the AI service request. Use it to customize how the AI service generates responses.
|
|
138
|
+
* Note that the value you will set here will fully overwrite the default value.
|
|
138
139
|
*
|
|
139
140
|
* The exact configuration (available parameters) depends on the used model. Keep in mind that some properties are not supported by some
|
|
140
141
|
* models.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x244c43=_0x92e2;(function(_0x17f7d1,_0x20933c){const _0x34193c=_0x92e2,_0x19d42d=_0x17f7d1();while(!![]){try{const _0x1e745f=parseInt(_0x34193c(0x16d))/0x1*(-parseInt(_0x34193c(0x178))/0x2)+parseInt(_0x34193c(0x1a8))/0x3+parseInt(_0x34193c(0x179))/0x4+-parseInt(_0x34193c(0x1a1))/0x5*(-parseInt(_0x34193c(0x1a0))/0x6)+parseInt(_0x34193c(0x16c))/0x7*(-parseInt(_0x34193c(0x181))/0x8)+parseInt(_0x34193c(0x172))/0x9*(-parseInt(_0x34193c(0x17c))/0xa)+parseInt(_0x34193c(0x188))/0xb*(parseInt(_0x34193c(0x1ae))/0xc);if(_0x1e745f===_0x20933c)break;else _0x19d42d['push'](_0x19d42d['shift']());}catch(_0x1224bd){_0x19d42d['push'](_0x19d42d['shift']());}}}(_0x3727,0xc0089));import{default as _0x15f73e}from'./aitextadapter.js';import{AIRequestError as _0x2d1a9d}from'./aiadapter.js';function _0x3727(){const _0xb5febb=['_processAWSRequest','1640022SHEQCz','5qPaaaA','toString','signal','_processProxyRequest','read','generations','get','2555208LKztzt','AWSTextAdapter','join','_prepareRequestHeaders','config','parse','20424tcmyNA','completions','_getGeneratedText','application/json','ai.aws.requestParameters','send','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','sendRequest','filter','Human:\x0a','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.aws.bedrockClientConfig','meta.llama','POST','length','body','anthropic.claude-v2','data','preparePrompt','8950718kOMRIU','1481UyMuYF','locale','getReader','_bedrockClientConfig','ai.aws.requestHeaders','82791QzilvT','define','getModelFamily','ai21.j2','bytes','ai.aws.apiUrl','186sahcdP','5768704CugKeX','split','_readAsyncIterableResponse','470gjKQTf','bedrock-2023-05-31','pluginName','AI_ERROR_UNSUPPORTED_MODEL','Instruction:\x0a','8BxmrOZ','utf-8','\x0a<</SYS>>\x0a[INST]\x0a','_readStaticResponse','\x0a[/INST]','_prepareRequestParameters','_readStreamableResponse','440TDPiZp','\x0a\x0aAssistant:','from','abortController','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_requestParameters','editor','resolve','completion','json','decode','text','generation','utf8','chunk','_requestHeaders','<<SYS>>\x0a','map','anthropic.claude','_apiUrl','cohere.command','test','stringify'];_0x3727=function(){return _0xb5febb;};return _0x3727();}function _0x92e2(_0x43a2e4,_0xb8f280){const _0x372760=_0x3727();return _0x92e2=function(_0x92e2f,_0x5c4b77){_0x92e2f=_0x92e2f-0x167;let _0x5d4126=_0x372760[_0x92e2f];return _0x5d4126;},_0x92e2(_0x43a2e4,_0xb8f280);}import{BedrockRuntimeClient as _0x423077,InvokeModelCommand as _0x381b8f,InvokeModelWithResponseStreamCommand as _0x4c5066}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x44d52a}from'../utils/common-translations.js';export default class Y extends _0x15f73e{static get[_0x244c43(0x17e)](){const _0x31fbd=_0x244c43;return _0x31fbd(0x1a9);}constructor(_0x245586){const _0x372221=_0x244c43;super(_0x245586),_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b2))||_0x245586[_0x372221(0x1ac)][_0x372221(0x173)](_0x372221(0x1b2),{'model':_0x372221(0x169),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x372221(0x17d),'stream':!0x0}),this[_0x372221(0x19b)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x177)),this[_0x372221(0x170)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b9)),this[_0x372221(0x197)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x171)),this[_0x372221(0x18d)]=_0x245586[_0x372221(0x1ac)][_0x372221(0x1a7)](_0x372221(0x1b2));}async[_0x244c43(0x1b5)]({query:_0x35f619,context:_0x1fa0c4,onData:_0x5830cd,actionId:_0x21a538}){const _0x1b677b=_0x244c43,{model:_0x48094c,stream:_0x191480,..._0x337482}=await this[_0x1b677b(0x186)](this[_0x1b677b(0x18d)],_0x21a538),_0x5d8108={'prompt':await this[_0x1b677b(0x16b)](_0x35f619,_0x1fa0c4,_0x48094c,_0x21a538),..._0x337482};this[_0x1b677b(0x19b)]?await this[_0x1b677b(0x1a4)](_0x5d8108,_0x48094c,_0x191480,_0x5830cd,_0x21a538):await this[_0x1b677b(0x19f)](_0x5d8108,_0x48094c,_0x191480,_0x5830cd);}async[_0x244c43(0x16b)](_0x3b0007,_0x25a089,_0x12fbb9,_0x5c3046){const _0x1aa45b=_0x244c43;let _0x54c6b3,_0x1ae852;return _0x25a089?(_0x54c6b3=_0x1aa45b(0x1b4),_0x1ae852=_0x1aa45b(0x180)+_0x3b0007+_0x1aa45b(0x1b8)+_0x25a089):(_0x54c6b3=_0x1aa45b(0x18c),_0x1ae852=_0x3b0007),_0x1aa45b(0x1ba)==this[_0x1aa45b(0x174)](_0x12fbb9)?_0x1aa45b(0x198)+_0x54c6b3+_0x1aa45b(0x183)+_0x1ae852+_0x1aa45b(0x185):_0x1aa45b(0x1b7)+_0x54c6b3+'\x0a'+_0x1ae852+_0x1aa45b(0x189);}[_0x244c43(0x174)](_0x4a4d41){const _0x2d43c4=_0x244c43;if(/^anthropic\.claude/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x19a);if(/^ai21\.j2/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x175);if(/^cohere\.command/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x19c);if(/^meta\.llama/[_0x2d43c4(0x19d)](_0x4a4d41))return _0x2d43c4(0x1ba);throw new _0x2d1a9d(_0x44d52a(this[_0x2d43c4(0x18e)][_0x2d43c4(0x16e)],_0x2d43c4(0x17f),_0x4a4d41));}async[_0x244c43(0x1a4)](_0x3bc5af,_0x217332,_0x4c9443,_0xa040b5,_0x36e79b){const _0x56d589=_0x244c43,_0x90a180={'method':_0x56d589(0x1bb),'headers':await this[_0x56d589(0x1ab)](this[_0x56d589(0x197)],_0x36e79b),'body':JSON[_0x56d589(0x19e)]({..._0x3bc5af,'model':_0x217332,'stream':_0x4c9443}),'signal':this[_0x56d589(0x18b)][_0x56d589(0x1a3)]},_0x3da64c=await fetch(this[_0x56d589(0x19b)],_0x90a180);_0x4c9443?await this[_0x56d589(0x187)](_0x3da64c,_0x217332,_0xa040b5):await this[_0x56d589(0x184)](_0x3da64c,_0x217332,_0xa040b5);}async[_0x244c43(0x19f)](_0x3510f6,_0x18cdb9,_0x3cca76,_0x3b1fad){const _0x65ccf2=_0x244c43,_0x21d6c9=new _0x423077(this[_0x65ccf2(0x170)]),_0x4985fa={'body':JSON[_0x65ccf2(0x19e)](_0x3510f6),'contentType':_0x65ccf2(0x1b1),'accept':_0x65ccf2(0x1b1),'modelId':_0x18cdb9};let _0x31454a;if(_0x3cca76){const _0x293f19=new _0x4c5066(_0x4985fa);_0x31454a=await _0x21d6c9[_0x65ccf2(0x1b3)](_0x293f19,{'abortSignal':this[_0x65ccf2(0x18b)][_0x65ccf2(0x1a3)]}),await this[_0x65ccf2(0x17b)](_0x31454a,_0x18cdb9,_0x3b1fad);}else{const _0x15474b=new _0x381b8f(_0x4985fa);_0x31454a=await _0x21d6c9[_0x65ccf2(0x1b3)](_0x15474b,{'abortSignal':this[_0x65ccf2(0x18b)][_0x65ccf2(0x1a3)]}),await this[_0x65ccf2(0x184)](_0x31454a,_0x18cdb9,_0x3b1fad);}}async[_0x244c43(0x17b)](_0x22db5f,_0x17336c,_0x4527d2){const _0x493ad7=_0x244c43,_0x3a33fb=_0x22db5f[_0x493ad7(0x168)],_0x583999=new TextDecoder(_0x493ad7(0x182));let _0xf23c44='';for await(const _0x4a97fc of _0x3a33fb)if(_0x4a97fc[_0x493ad7(0x196)]){const _0x1d800f=_0x583999[_0x493ad7(0x192)](_0x4a97fc[_0x493ad7(0x196)][_0x493ad7(0x176)]),_0x93127d=JSON[_0x493ad7(0x1ad)](_0x1d800f);_0xf23c44+=this[_0x493ad7(0x1b0)](_0x93127d,_0x17336c),_0x4527d2(_0xf23c44);}return Promise[_0x493ad7(0x18f)]();}async[_0x244c43(0x187)](_0x28746a,_0x5a26ba,_0x441d0a){const _0x371d4c=_0x244c43,_0x4ee60c=_0x28746a[_0x371d4c(0x168)],_0x4c80bb=new TextDecoder(_0x371d4c(0x182)),_0x254bdb=_0x4ee60c[_0x371d4c(0x16f)]();let _0x8e2381='',_0x1ea0da='',_0x5c3735=!0x1;for(;!_0x5c3735;){const {done:_0x2c56bc,value:_0x3ea015}=await _0x254bdb[_0x371d4c(0x1a5)]();if(_0x5c3735=_0x2c56bc,_0x5c3735)break;const _0x2234dc=(_0x8e2381+_0x4c80bb[_0x371d4c(0x192)](_0x3ea015))[_0x371d4c(0x17a)]('\x0a')[_0x371d4c(0x199)](_0x361050=>{const _0x14afb3=_0x371d4c;try{return _0x8e2381='',JSON[_0x14afb3(0x1ad)](_0x361050);}catch(_0xf86fdb){return _0x8e2381=_0x361050,null;}})[_0x371d4c(0x1b6)](_0x49ca3a=>null!==_0x49ca3a);_0x2234dc[_0x371d4c(0x167)]&&(_0x1ea0da+=_0x2234dc[_0x371d4c(0x199)](_0x3dadf6=>this[_0x371d4c(0x1b0)](_0x3dadf6,_0x5a26ba))[_0x371d4c(0x1aa)](''),_0x441d0a(_0x1ea0da));}return Promise[_0x371d4c(0x18f)]();}async[_0x244c43(0x184)](_0x1498e2,_0x59cde9,_0x4da43d){const _0x41985b=_0x244c43;let _0x534155;return _0x534155=_0x1498e2 instanceof Response?await _0x1498e2[_0x41985b(0x191)]():JSON[_0x41985b(0x1ad)](Buffer[_0x41985b(0x18a)](_0x1498e2[_0x41985b(0x168)])[_0x41985b(0x1a2)](_0x41985b(0x195))),(_0x4da43d(this[_0x41985b(0x1b0)](_0x534155,_0x59cde9)),Promise[_0x41985b(0x18f)]());}[_0x244c43(0x1b0)](_0x30cade,_0x33afd9){const _0x4c3ae8=_0x244c43;switch(this[_0x4c3ae8(0x174)](_0x33afd9)){case _0x4c3ae8(0x19a):return _0x30cade[_0x4c3ae8(0x190)];case _0x4c3ae8(0x175):return _0x30cade[_0x4c3ae8(0x1af)][0x0][_0x4c3ae8(0x16a)][_0x4c3ae8(0x193)];case _0x4c3ae8(0x19c):return _0x30cade[_0x4c3ae8(0x1a6)][0x0][_0x4c3ae8(0x193)];case _0x4c3ae8(0x1ba):return _0x30cade[_0x4c3ae8(0x194)];}}}
|
|
@@ -139,6 +139,7 @@ export interface OpenAITextAdapterConfig {
|
|
|
139
139
|
requestHeaders?: RequestHeaders;
|
|
140
140
|
/**
|
|
141
141
|
* Additional configuration parameters for the AI service request. Use it to customize how the AI service generates responses.
|
|
142
|
+
* Note that the value you will set here will fully overwrite the default value.
|
|
142
143
|
*
|
|
143
144
|
* See [OpenAI API reference](https://platform.openai.com/docs/api-reference/chat/create) to learn more about available parameters.
|
|
144
145
|
*
|
|
@@ -160,7 +161,8 @@ export interface OpenAITextAdapterConfig {
|
|
|
160
161
|
* model: 'gpt-3.5-turbo',
|
|
161
162
|
* max_tokens: 2000,
|
|
162
163
|
* temperature: 1,
|
|
163
|
-
* top_p: 1
|
|
164
|
+
* top_p: 1,
|
|
165
|
+
* stream: true
|
|
164
166
|
* }
|
|
165
167
|
* ```
|
|
166
168
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x19d6(){const _0x4ef518=['5063049hdqLOZ','[DONE]','read','filter','json','4921384fOxjiH','locale','4qshiKK','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AI_ERROR_MODERATION','OpenAITextAdapter','map','system','includes','32169kvyNiN','pluginName','body','config','stream','split','reject','user','parse','context_length_exceeded','_prepareRequestHeaders','decode','message','_requestHeaders','AI_ERROR_CONTEXT_LENGTH','gpt-3.5-turbo','ai.openAI.requestHeaders','get','Moderation','editor','choices','signal','https://api.openai.com/v1/chat/completions','replace','_readStreamableResponse','POST','7537166oQZehh','abortController','getReader','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_isBufferIncomplete','_apiUrl','647686ricEFp','join','sendRequest','1652514PsWRpy','_prepareRequestParameters','ai.openAI.apiUrl','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_requestParameters','delta','stringify','length','data:\x20','content','prepareMessages','_cleanUpData','_readStaticResponse','define','resolve','ai.openAI.requestParameters','708380NbObiy','32nagUfZ','Instruction:\x0a','text'];_0x19d6=function(){return _0x4ef518;};return _0x19d6();}const _0xec09ca=_0x4fbb;(function(_0x11fbf6,_0xb4b9b0){const _0x4461f1=_0x4fbb,_0x48898d=_0x11fbf6();while(!![]){try{const _0x47538c=-parseInt(_0x4461f1(0xe2))/0x1+-parseInt(_0x4461f1(0xbb))/0x2*(parseInt(_0x4461f1(0xc2))/0x3)+-parseInt(_0x4461f1(0xf6))/0x4*(-parseInt(_0x4461f1(0xf5))/0x5)+parseInt(_0x4461f1(0xe5))/0x6+parseInt(_0x4461f1(0xdc))/0x7+-parseInt(_0x4461f1(0xfe))/0x8+-parseInt(_0x4461f1(0xf9))/0x9;if(_0x47538c===_0xb4b9b0)break;else _0x48898d['push'](_0x48898d['shift']());}catch(_0x4c17f7){_0x48898d['push'](_0x48898d['shift']());}}}(_0x19d6,0x9beeb));import{default as _0x40184e}from'./aitextadapter.js';import{AIRequestError as _0x5f5527}from'./aiadapter.js';function _0x4fbb(_0xce578a,_0x321261){const _0x19d64a=_0x19d6();return _0x4fbb=function(_0x4fbb17,_0x176fc6){_0x4fbb17=_0x4fbb17-0xbb;let _0x10c7dd=_0x19d64a[_0x4fbb17];return _0x10c7dd;},_0x4fbb(_0xce578a,_0x321261);}import{getTranslation as _0x1b969f}from'../utils/common-translations.js';export default class J extends _0x40184e{static get[_0xec09ca(0xc3)](){const _0x30d27b=_0xec09ca;return _0x30d27b(0xbe);}constructor(_0xa2476a){const _0x1b00a4=_0xec09ca;super(_0xa2476a),_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xf2)](_0x1b00a4(0xe7),_0x1b00a4(0xd8)),_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xf4))||_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xf2)](_0x1b00a4(0xf4),{'model':_0x1b00a4(0xd1),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1b00a4(0xe1)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xe7)),this[_0x1b00a4(0xcf)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xd2))||{},this[_0x1b00a4(0xe9)]=_0xa2476a[_0x1b00a4(0xc5)][_0x1b00a4(0xd3)](_0x1b00a4(0xf4));}async[_0xec09ca(0xe4)]({query:_0x2a5f5b,context:_0x8051a9,onData:_0x1aef71,actionId:_0x485ef5}){const _0x2eb98b=_0xec09ca,_0x176347=this[_0x2eb98b(0xd5)][_0x2eb98b(0xff)],_0x86fd8e=await this[_0x2eb98b(0xef)](_0x2a5f5b,_0x8051a9,_0x485ef5),_0x2deaea=await this[_0x2eb98b(0xcc)](this[_0x2eb98b(0xcf)],_0x485ef5),_0x192b4a=await this[_0x2eb98b(0xe6)](this[_0x2eb98b(0xe9)],_0x485ef5),_0x5e418e={'messages':_0x86fd8e,..._0x192b4a},_0xb7307f={'method':_0x2eb98b(0xdb),'headers':_0x2deaea,'body':JSON[_0x2eb98b(0xeb)](_0x5e418e),'signal':this[_0x2eb98b(0xdd)][_0x2eb98b(0xd7)]},_0x2a83a0=await fetch(this[_0x2eb98b(0xe1)],_0xb7307f);if(_0x2a83a0['ok'])return _0x192b4a[_0x2eb98b(0xc6)]?await this[_0x2eb98b(0xda)](_0x2a83a0,_0x1aef71):await this[_0x2eb98b(0xf1)](_0x2a83a0,_0x1aef71),Promise[_0x2eb98b(0xf3)]();{const _0x134b6f=await _0x2a83a0[_0x2eb98b(0xf8)]();return _0x134b6f[_0x2eb98b(0xc1)](_0x2eb98b(0xcb))?Promise[_0x2eb98b(0xc8)](new _0x5f5527(_0x1b969f(_0x176347,_0x2eb98b(0xd0)))):_0x134b6f[_0x2eb98b(0xc1)](_0x2eb98b(0xd4))?Promise[_0x2eb98b(0xc8)](new _0x5f5527(_0x1b969f(_0x176347,_0x2eb98b(0xbd)))):Promise[_0x2eb98b(0xc8)](new Error(_0x134b6f));}}async[_0xec09ca(0xef)](_0x580f32,_0x165124,_0x530539){const _0x3a4972=_0xec09ca;let _0x561ef4,_0x52f5b7;return _0x165124?(_0x561ef4=_0x3a4972(0xe8),_0x52f5b7=_0x3a4972(0xf7)+_0x580f32+_0x3a4972(0xdf)+_0x165124):(_0x561ef4=_0x3a4972(0xbc),_0x52f5b7=_0x580f32),[{'role':_0x3a4972(0xc0),'content':_0x561ef4},{'role':_0x3a4972(0xc9),'content':_0x52f5b7}];}async[_0xec09ca(0xda)](_0x113f23,_0x448bcd){const _0x4c8074=_0xec09ca,_0x666add=_0x113f23[_0x4c8074(0xc4)][_0x4c8074(0xde)](),_0x205bff=new TextDecoder();let _0x37cd27='',_0x4db665='',_0x32d910='',_0x4f00f9=!0x1;for(;!_0x4f00f9;){const {done:_0x3eac3f,value:_0x56a4ed}=await _0x666add[_0x4c8074(0xfb)](),_0x49e8a0=_0x37cd27+_0x205bff[_0x4c8074(0xcd)](_0x56a4ed);let _0x19f898='';_0x4f00f9=_0x3eac3f;try{_0x19f898=this[_0x4c8074(0xf0)](_0x49e8a0),_0x37cd27='';}catch(_0x3e1e55){_0x37cd27=_0x49e8a0;continue;}_0x4db665+=_0x19f898,!_0x4f00f9&&this[_0x4c8074(0xe0)](_0x4db665)||_0x4db665&&(_0x32d910+=_0x4db665,_0x4db665='',_0x448bcd(_0x32d910));}return Promise[_0x4c8074(0xf3)]();}async[_0xec09ca(0xf1)](_0x4c67d4,_0x4b9935){const _0x435e0b=_0xec09ca;return _0x4b9935((await _0x4c67d4[_0x435e0b(0xfd)]())[_0x435e0b(0xd6)][0x0][_0x435e0b(0xce)][_0x435e0b(0xee)]),Promise[_0x435e0b(0xf3)]();}[_0xec09ca(0xe0)](_0x20ce88){const _0x25a4b4=_0xec09ca,_0x22b2b1=_0x20ce88[_0x25a4b4(0xc7)]('<')[_0x25a4b4(0xec)]!==_0x20ce88[_0x25a4b4(0xc7)]('>')[_0x25a4b4(0xec)],_0x6423d0=_0x20ce88[_0x25a4b4(0xec)]<0x1e;return _0x22b2b1&&_0x6423d0;}[_0xec09ca(0xf0)](_0xa39ca5){const _0x3ac87f=_0xec09ca;return _0xa39ca5[_0x3ac87f(0xc7)](/\n(?![^{]*\})/g)[_0x3ac87f(0xbf)](_0x37d102=>_0x37d102[_0x3ac87f(0xd9)](_0x3ac87f(0xed),''))[_0x3ac87f(0xfc)](_0x482878=>_0x482878&&_0x482878[_0x3ac87f(0xec)]>0x0&&_0x3ac87f(0xfa)!==_0x482878)[_0x3ac87f(0xbf)](_0x9f3e6a=>{const _0x1338f3=_0x3ac87f,{choices:_0x26f792}=JSON[_0x1338f3(0xca)](_0x9f3e6a);if(_0x26f792[0x0]&&_0x26f792[0x0][_0x1338f3(0xea)]&&_0x26f792[0x0][_0x1338f3(0xea)][_0x1338f3(0xee)])return _0x26f792[0x0][_0x1338f3(0xea)][_0x1338f3(0xee)];})[_0x3ac87f(0xfc)](_0x2cdf3d=>_0x2cdf3d)[_0x3ac87f(0xe3)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5c4a98=_0x5737;(function(_0x36129d,_0x1a2074){const _0x15e031=_0x5737,_0x24a416=_0x36129d();while(!![]){try{const _0x595d10=parseInt(_0x15e031(0x15d))/0x1*(parseInt(_0x15e031(0x116))/0x2)+-parseInt(_0x15e031(0x16f))/0x3*(parseInt(_0x15e031(0x102))/0x4)+parseInt(_0x15e031(0x142))/0x5+-parseInt(_0x15e031(0x12c))/0x6+-parseInt(_0x15e031(0x13b))/0x7+-parseInt(_0x15e031(0x156))/0x8+-parseInt(_0x15e031(0x175))/0x9*(-parseInt(_0x15e031(0x140))/0xa);if(_0x595d10===_0x1a2074)break;else _0x24a416['push'](_0x24a416['shift']());}catch(_0x264dcb){_0x24a416['push'](_0x24a416['shift']());}}}(_0x2c3c,0x379da));import{CKEditorError as _0x548db8}from'ckeditor5/src/utils.js';import{Plugin as _0x4b379e}from'ckeditor5/src/core.js';function _0x5737(_0x31183b,_0x2f092c){const _0x2c3cf7=_0x2c3c();return _0x5737=function(_0x573742,_0x20fb77){_0x573742=_0x573742-0xfc;let _0x47d2f9=_0x2c3cf7[_0x573742];return _0x47d2f9;},_0x5737(_0x31183b,_0x2f092c);}import _0x536c48 from'./aiassistantui.js';import _0x455b08 from'./aiassistantediting.js';import{getTranslation as _0x3dccb1}from'./utils/common-translations.js';export default class r extends _0x4b379e{static get[_0x5c4a98(0x170)](){return[_0x536c48,_0x455b08];}static get[_0x5c4a98(0x10a)](){const _0x3d6595=_0x5c4a98;return _0x3d6595(0x14b);}constructor(_0x44e449){const _0x4dec4c=_0x5c4a98;super(_0x44e449);const _0x12ba3e=_0x44e449[_0x4dec4c(0x11e)];_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x159),getDefaultCommands(_0x44e449[_0x4dec4c(0x114)])),_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x149),[]),_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x163),[]);const _0x5257db=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x159)),_0x5a7443=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x149)),_0x3becfc=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x163));_0x5a7443[_0x4dec4c(0x121)](_0x1f26b3=>{const _0x5ee201=_0x4dec4c,_0x2a81e3=_0x5257db[_0x5ee201(0x15b)](_0x546897=>_0x546897[_0x5ee201(0x12b)]===_0x1f26b3[_0x5ee201(0x12b)]);_0x2a81e3?_0x2a81e3[_0x5ee201(0x129)]=_0x2a81e3[_0x5ee201(0x129)][_0x5ee201(0x11b)](_0x1f26b3[_0x5ee201(0x129)]):_0x5257db[_0x5ee201(0x15e)](_0x1f26b3);}),_0x5257db[_0x4dec4c(0x121)](_0x428ed7=>{const _0x4a59c5=_0x4dec4c;_0x428ed7[_0x4a59c5(0x129)]=_0x428ed7[_0x4a59c5(0x129)][_0x4a59c5(0x100)](_0xe0b010=>!_0x3becfc[_0x4a59c5(0x162)](_0xe0b010['id']));}),_0x12ba3e[_0x4dec4c(0x13e)](_0x4dec4c(0x159),_0x5257db);}[_0x5c4a98(0x157)](){const _0x39884a=_0x5c4a98,_0xd689ef=this[_0x39884a(0x128)];this[_0x39884a(0x146)]=_0xd689ef[_0x39884a(0x11e)][_0x39884a(0x138)](_0x39884a(0x146)),this[_0x39884a(0x122)]=setInterval(()=>{const _0x181f43=_0x39884a;let _0x20c458;for(const _0x416050 in _0xd689ef){const _0x3d8105=_0x416050,_0x15852c=_0xd689ef[_0x3d8105];if(_0x181f43(0x158)===_0x15852c||_0x181f43(0x150)===_0x15852c||_0x181f43(0x110)===_0x15852c||_0x181f43(0x164)===_0x15852c){delete _0xd689ef[_0x3d8105],_0x20c458=_0x15852c;break;}}if(_0x181f43(0x150)===_0x20c458)throw clearInterval(this[_0x181f43(0x122)]),new _0x548db8(_0x181f43(0x14e),null);if(_0x181f43(0x158)===_0x20c458&&console[_0x181f43(0x169)](_0x181f43(0x104)),_0x181f43(0x164)===_0x20c458)throw clearInterval(this[_0x181f43(0x122)]),new _0x548db8(_0x181f43(0x144),null);_0x181f43(0x110)===_0x20c458&&clearInterval(this[_0x181f43(0x122)]);},0x3e8);}[_0x5c4a98(0x14c)](){const _0x570544=_0x5c4a98;this[_0x570544(0x122)]&&clearInterval(this[_0x570544(0x122)]);}}export function getDefaultCommands(_0x2ff80c){const _0x481b97=_0x5c4a98;return[{'groupId':_0x481b97(0x14d),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x125)),'commands':[{'id':_0x481b97(0x108),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10c)),'prompt':_0x481b97(0x13f)},{'id':_0x481b97(0x148),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x166)),'prompt':_0x481b97(0x15c)},{'id':_0x481b97(0x173),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x145)),'prompt':_0x481b97(0x101)},{'id':_0x481b97(0x123),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10f)),'prompt':_0x481b97(0x160)}]},{'groupId':_0x481b97(0x15a),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x126)),'commands':[{'id':_0x481b97(0x168),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10d)),'prompt':_0x481b97(0xfe)},{'id':_0x481b97(0x127),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x135)),'prompt':_0x481b97(0x165)}]},{'groupId':_0x481b97(0x151),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x113)),'commands':[{'id':_0x481b97(0x152),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x115)),'prompt':_0x481b97(0x153)},{'id':_0x481b97(0x137),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x14f)),'prompt':_0x481b97(0x16e)},{'id':_0x481b97(0x117),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x154)),'prompt':_0x481b97(0x143)},{'id':_0x481b97(0x12a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x134)),'prompt':_0x481b97(0x119)},{'id':_0x481b97(0x106),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x161)),'prompt':_0x481b97(0x103)}]},{'groupId':_0x481b97(0x155),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x132)),'commands':[{'id':_0x481b97(0xfc),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x13d)),'prompt':_0x481b97(0xfd)},{'id':_0x481b97(0x16b),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x12d)),'prompt':_0x481b97(0x107)},{'id':_0x481b97(0x112),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16d)),'prompt':_0x481b97(0xff)},{'id':_0x481b97(0x130),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16a)),'prompt':_0x481b97(0x15f)}]},{'groupId':_0x481b97(0x109),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x11f)),'commands':[{'id':_0x481b97(0x10e),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x12f))]),'prompt':_0x481b97(0x136)},{'id':_0x481b97(0x139),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x118))]),'prompt':_0x481b97(0x10b)},{'id':_0x481b97(0x12e),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x111))]),'prompt':_0x481b97(0x11d)},{'id':_0x481b97(0x11a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x105))]),'prompt':_0x481b97(0x120)},{'id':_0x481b97(0x124),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x133))]),'prompt':_0x481b97(0x131)},{'id':_0x481b97(0x171),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x167))]),'prompt':_0x481b97(0x147)},{'id':_0x481b97(0x11c),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x14a))]),'prompt':_0x481b97(0x13c)},{'id':_0x481b97(0x13a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x172))]),'prompt':_0x481b97(0x141)}]}];}function _0x2c3c(){const _0x175125=['Portuguese','journalism','Change\x20tone','locale','Professional','180470hopIDP','direct','Spanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateGerman','concat','translateHindi','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','config','Translate','Translate\x20the\x20content\x20to\x20German\x20language.','forEach','_licenseKeyCheckInterval','simplifyLanguage','translateFrench','Edit\x20or\x20review','Generate\x20from\x20selection','continue','editor','commands','confident','groupId','500706Xgtecc','Legal','translatePortuguese','English','poetic','Translate\x20the\x20content\x20to\x20French\x20language.','Change\x20style','French','Confident','Continue','Translate\x20the\x20content\x20to\x20English\x20language.','casual','get','translateSpanish','translateArabic','3047905gmJXvR','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Business','set','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','1255110uoJStg','Translate\x20the\x20content\x20to\x20Arabic\x20language.','1470825xHQmXy','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','ai-trial-license-key-reached-limit-changes','Make\x20longer','licenseKey','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','makeShorter','ai.aiAssistant.extraCommandGroups','Hindi','AIAssistant','destroy','editOrReview','ai-invalid-license-key','Casual','aiLicenseKeyInvalid','changeTone','professional','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Direct','changeStyle','977864EZWZfV','init','aiLicenseKeyTrial','ai.aiAssistant.commands','generate','find','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','1fABAGG','push','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Friendly','includes','ai.aiAssistant.removeCommands','aiLicenseKeyTrialLimit:operations','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Make\x20shorter','Simplified\x20Chinese','summarize','info','Poetic','legal','Translate\x20to\x20%0','Journalism','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','1182228mcaoAV','requires','translateChinese','Arabic','makeLonger','define','63oBFhDV','business','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','filter','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','4MVvoaG','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','German','friendly','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','improveWriting','translate','pluginName','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Improve\x20writing','Summarize','translateEnglish','Simplify\x20language','aiLicenseKeyValid'];_0x2c3c=function(){return _0x175125;};return _0x2c3c();}
|
|
23
|
+
const _0x1200b9=_0x28d2;(function(_0x1d6431,_0x357055){const _0x4f0ec7=_0x28d2,_0x16cb78=_0x1d6431();while(!![]){try{const _0x2cfbd9=parseInt(_0x4f0ec7(0x198))/0x1+-parseInt(_0x4f0ec7(0x1c7))/0x2+-parseInt(_0x4f0ec7(0x1a4))/0x3*(-parseInt(_0x4f0ec7(0x1bd))/0x4)+parseInt(_0x4f0ec7(0x185))/0x5*(-parseInt(_0x4f0ec7(0x19a))/0x6)+parseInt(_0x4f0ec7(0x19e))/0x7+parseInt(_0x4f0ec7(0x1a8))/0x8+parseInt(_0x4f0ec7(0x1a0))/0x9;if(_0x2cfbd9===_0x357055)break;else _0x16cb78['push'](_0x16cb78['shift']());}catch(_0x4b86e4){_0x16cb78['push'](_0x16cb78['shift']());}}}(_0x4273,0x3c739));import{CKEditorError as _0xfb9b8e}from'ckeditor5/src/utils.js';import{Plugin as _0x5bcb2e}from'ckeditor5/src/core.js';import _0x232d62 from'./aiassistantui.js';import _0x50041a from'./aiassistantediting.js';import{getTranslation as _0x4bd074}from'./utils/common-translations.js';function _0x28d2(_0x25a4b1,_0x52acd4){const _0x427366=_0x4273();return _0x28d2=function(_0x28d21b,_0x533477){_0x28d21b=_0x28d21b-0x17c;let _0x17f234=_0x427366[_0x28d21b];return _0x17f234;},_0x28d2(_0x25a4b1,_0x52acd4);}export default class r extends _0x5bcb2e{static get[_0x1200b9(0x17f)](){return[_0x232d62,_0x50041a];}static get[_0x1200b9(0x183)](){const _0x584cd1=_0x1200b9;return _0x584cd1(0x1cc);}constructor(_0x48b913){const _0x41f432=_0x1200b9;super(_0x48b913);const _0x309427=_0x48b913[_0x41f432(0x1c3)];_0x309427[_0x41f432(0x18b)](_0x41f432(0x1f4),getDefaultCommands(_0x48b913[_0x41f432(0x19b)])),_0x309427[_0x41f432(0x18b)](_0x41f432(0x1db),[]),_0x309427[_0x41f432(0x18b)](_0x41f432(0x19d),[]);const _0x17d08f=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1f4)),_0x3fa650=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x1db)),_0x4883da=_0x309427[_0x41f432(0x1ee)](_0x41f432(0x19d));_0x3fa650[_0x41f432(0x1d0)](_0x4182da=>{const _0x5a3466=_0x41f432,_0x105f3e=_0x17d08f[_0x5a3466(0x1bb)](_0x1bb1e3=>_0x1bb1e3[_0x5a3466(0x1be)]===_0x4182da[_0x5a3466(0x1be)]);_0x105f3e?_0x105f3e[_0x5a3466(0x190)]=_0x105f3e[_0x5a3466(0x190)][_0x5a3466(0x1e0)](_0x4182da[_0x5a3466(0x190)]):_0x17d08f[_0x5a3466(0x1c8)](_0x4182da);}),_0x17d08f[_0x41f432(0x1d0)](_0x2172b1=>{const _0x10d985=_0x41f432;_0x2172b1[_0x10d985(0x190)]=_0x2172b1[_0x10d985(0x190)][_0x10d985(0x1ec)](_0x22caa7=>!_0x4883da[_0x10d985(0x1b7)](_0x22caa7['id']));}),_0x309427[_0x41f432(0x1e3)](_0x41f432(0x1f4),_0x17d08f);}[_0x1200b9(0x18a)](){const _0x23a20a=_0x1200b9,_0x584e7c=this[_0x23a20a(0x197)];this[_0x23a20a(0x17e)]=_0x584e7c[_0x23a20a(0x1c3)][_0x23a20a(0x1ee)](_0x23a20a(0x17e)),this[_0x23a20a(0x1cd)]=setInterval(()=>{const _0x5b32f8=_0x23a20a;let _0x461e6d;for(const _0x5cc777 in _0x584e7c){const _0x4a415f=_0x5cc777,_0xaff745=_0x584e7c[_0x4a415f];if(_0x5b32f8(0x1b4)===_0xaff745||_0x5b32f8(0x1a6)===_0xaff745||_0x5b32f8(0x1e4)===_0xaff745||_0x5b32f8(0x187)===_0xaff745){delete _0x584e7c[_0x4a415f],_0x461e6d=_0xaff745;break;}}if(_0x5b32f8(0x1a6)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1d8),null);if(_0x5b32f8(0x1b4)===_0x461e6d&&console[_0x5b32f8(0x1ae)](_0x5b32f8(0x1c1)),_0x5b32f8(0x187)===_0x461e6d)throw clearInterval(this[_0x5b32f8(0x1cd)]),new _0xfb9b8e(_0x5b32f8(0x1b3),null);_0x5b32f8(0x1e4)===_0x461e6d&&clearInterval(this[_0x5b32f8(0x1cd)]);},0x3e8);}[_0x1200b9(0x1a9)](){const _0x5bc6d0=_0x1200b9;this[_0x5bc6d0(0x1cd)]&&clearInterval(this[_0x5bc6d0(0x1cd)]);}}function _0x4273(){const _0x2395da=['translateArabic','93IQaeyb','changeStyle','aiLicenseKeyInvalid','direct','1695184qzUlqy','destroy','translatePortuguese','Translate\x20the\x20content\x20to\x20English\x20language.','confident','French','info','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','legal','Hindi','ai-trial-license-key-reached-limit-changes','aiLicenseKeyTrial','summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','includes','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate','find','Translate\x20the\x20content\x20to\x20Spanish\x20language.','2932VGgGdX','groupId','translateSpanish','professional','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','improveWriting','config','translateEnglish','Direct','Spanish','345360CTAMNe','push','simplifyLanguage','Confident','Journalism','AIAssistant','_licenseKeyCheckInterval','casual','continue','forEach','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateChinese','Continue','Simplify\x20language','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Edit\x20or\x20review','business','ai-invalid-license-key','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','ai.aiAssistant.extraCommandGroups','Arabic','poetic','Translate\x20the\x20content\x20to\x20German\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','concat','Change\x20style','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','set','aiLicenseKeyValid','makeShorter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','German','Business','Improve\x20writing','Simplified\x20Chinese','filter','translateGerman','get','English','Portuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateHindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','ai.aiAssistant.commands','journalism','generate','licenseKey','requires','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','friendly','changeTone','pluginName','Generate\x20from\x20selection','11185DaPhDw','Make\x20longer','aiLicenseKeyTrialLimit:operations','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20French\x20language.','init','define','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20tone','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','commands','Translate\x20to\x20%0','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Summarize','Legal','translateFrench','editor','92190KANjPr','Professional','942bLSDqD','locale','Make\x20shorter','ai.aiAssistant.removeCommands','1964732agVCEI','editOrReview','1476099evvYfo','Translate\x20the\x20content\x20to\x20Hindi\x20language.','makeLonger'];_0x4273=function(){return _0x2395da;};return _0x4273();}export function getDefaultCommands(_0x36bdd8){const _0x2fc30f=_0x1200b9;return[{'groupId':_0x2fc30f(0x19f),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d6)),'commands':[{'id':_0x2fc30f(0x1c2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ea)),'prompt':_0x2fc30f(0x1d5)},{'id':_0x2fc30f(0x1e5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x19c)),'prompt':_0x2fc30f(0x1df)},{'id':_0x2fc30f(0x1a2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x186)),'prompt':_0x2fc30f(0x1b8)},{'id':_0x2fc30f(0x1c9),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d4)),'prompt':_0x2fc30f(0x180)}]},{'groupId':_0x2fc30f(0x17d),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x184)),'commands':[{'id':_0x2fc30f(0x1b5),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x194)),'prompt':_0x2fc30f(0x1b9)},{'id':_0x2fc30f(0x1cf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d3)),'prompt':_0x2fc30f(0x1e2)}]},{'groupId':_0x2fc30f(0x182),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x18d)),'commands':[{'id':_0x2fc30f(0x1c0),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x199)),'prompt':_0x2fc30f(0x1f1)},{'id':_0x2fc30f(0x1ce),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x193)),'prompt':_0x2fc30f(0x18f)},{'id':_0x2fc30f(0x1a7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c5)),'prompt':_0x2fc30f(0x1d1)},{'id':_0x2fc30f(0x1ac),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ca)),'prompt':_0x2fc30f(0x1af)},{'id':_0x2fc30f(0x181),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1d9)),'prompt':_0x2fc30f(0x1b6)}]},{'groupId':_0x2fc30f(0x1a5),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e1)),'commands':[{'id':_0x2fc30f(0x1d7),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e9)),'prompt':_0x2fc30f(0x1da)},{'id':_0x2fc30f(0x1b1),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x195)),'prompt':_0x2fc30f(0x188)},{'id':_0x2fc30f(0x17c),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1cb)),'prompt':_0x2fc30f(0x18c)},{'id':_0x2fc30f(0x1dd),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e7)),'prompt':_0x2fc30f(0x192)}]},{'groupId':_0x2fc30f(0x18e),'groupLabel':_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ba)),'commands':[{'id':_0x2fc30f(0x1c4),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ef))]),'prompt':_0x2fc30f(0x1ab)},{'id':_0x2fc30f(0x1bf),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1c6))]),'prompt':_0x2fc30f(0x1bc)},{'id':_0x2fc30f(0x1aa),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1f0))]),'prompt':_0x2fc30f(0x1e6)},{'id':_0x2fc30f(0x1ed),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1e8))]),'prompt':_0x2fc30f(0x1de)},{'id':_0x2fc30f(0x196),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1ad))]),'prompt':_0x2fc30f(0x189)},{'id':_0x2fc30f(0x1d2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1eb))]),'prompt':_0x2fc30f(0x1b0)},{'id':_0x2fc30f(0x1f2),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1b2))]),'prompt':_0x2fc30f(0x1a1)},{'id':_0x2fc30f(0x1a3),'label':_0x4bd074(_0x36bdd8,_0x2fc30f(0x191),[_0x4bd074(_0x36bdd8,_0x2fc30f(0x1dc))]),'prompt':_0x2fc30f(0x1f3)}]}];}
|