@ckeditor/ckeditor5-ai 41.3.0-alpha.3 → 41.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.
- 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.0
|
|
3
|
+
"version": "41.3.0",
|
|
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.0
|
|
27
|
-
"ckeditor5-collaboration": "41.3.0
|
|
26
|
+
"ckeditor5": "41.3.0",
|
|
27
|
+
"ckeditor5-collaboration": "41.3.0",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "41.3.0
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "41.3.0",
|
|
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
|
+
var _0x4ea116=_0x14b1;(function(_0x2a5570,_0x54de47){var _0x3dff64=_0x14b1,_0x27e4cd=_0x2a5570();while(!![]){try{var _0x3253d9=parseInt(_0x3dff64(0xeb))/0x1*(-parseInt(_0x3dff64(0xde))/0x2)+-parseInt(_0x3dff64(0xe6))/0x3*(-parseInt(_0x3dff64(0xec))/0x4)+-parseInt(_0x3dff64(0xdd))/0x5*(-parseInt(_0x3dff64(0xe3))/0x6)+-parseInt(_0x3dff64(0xe8))/0x7+-parseInt(_0x3dff64(0xdf))/0x8+parseInt(_0x3dff64(0xea))/0x9*(parseInt(_0x3dff64(0xe7))/0xa)+parseInt(_0x3dff64(0xe1))/0xb*(parseInt(_0x3dff64(0xe2))/0xc);if(_0x3253d9===_0x54de47)break;else _0x27e4cd['push'](_0x27e4cd['shift']());}catch(_0x2a07e0){_0x27e4cd['push'](_0x27e4cd['shift']());}}}(_0x555c,0x209f6));import{Plugin as _0x5c7d91}from'ckeditor5/src/core.js';import{CKEditorError as _0x279425}from'ckeditor5/src/utils.js';function _0x14b1(_0x19b64c,_0x2d6a12){var _0x555ce0=_0x555c();return _0x14b1=function(_0x14b176,_0x2f6cb2){_0x14b176=_0x14b176-0xdd;var _0x179e41=_0x555ce0[_0x14b176];return _0x179e41;},_0x14b1(_0x19b64c,_0x2d6a12);}function _0x555c(){var _0x3c9b48=['5CfJcLU','2PdbSTc','1448008apHSVu','textAdapter','66kesmQM','805092EsBTez','1447962gYcHOS','name','AIAdapter','1338vDdqPQ','20NfMnWj','1541925JtsGaX','aiadapter-text-adapter-not-set','214506rqkvzv','252533fQagrc','860lCVDkc','AIRequestError','pluginName','afterInit'];_0x555c=function(){return _0x3c9b48;};return _0x555c();}export default class v extends _0x5c7d91{static get[_0x4ea116(0xee)](){var _0x48d770=_0x4ea116;return _0x48d770(0xe5);}[_0x4ea116(0xef)](){var _0x3ccf5c=_0x4ea116;if(!this[_0x3ccf5c(0xe0)])throw new _0x279425(_0x3ccf5c(0xe9),null);}}export class AIRequestError extends Error{constructor(_0x50249c){var _0x101bb3=_0x4ea116;super(_0x50249c),this[_0x101bb3(0xe4)]=_0x101bb3(0xed);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xa5ef(_0x46bdc2,_0x732d9){const _0x1a20db=_0x1a20();return _0xa5ef=function(_0xa5ef75,_0x498e77){_0xa5ef75=_0xa5ef75-0xf0;let _0xa05d89=_0x1a20db[_0xa5ef75];return _0xa05d89;},_0xa5ef(_0x46bdc2,_0x732d9);}const _0x119a77=_0xa5ef;(function(_0x13a53c,_0x2391d9){const _0x4a35eb=_0xa5ef,_0x4820c5=_0x13a53c();while(!![]){try{const _0x1b0a26=-parseInt(_0x4a35eb(0x107))/0x1*(-parseInt(_0x4a35eb(0x105))/0x2)+parseInt(_0x4a35eb(0xf8))/0x3*(parseInt(_0x4a35eb(0x114))/0x4)+parseInt(_0x4a35eb(0xfc))/0x5*(parseInt(_0x4a35eb(0xf5))/0x6)+parseInt(_0x4a35eb(0x118))/0x7*(-parseInt(_0x4a35eb(0xf1))/0x8)+-parseInt(_0x4a35eb(0x10a))/0x9*(parseInt(_0x4a35eb(0xf0))/0xa)+-parseInt(_0x4a35eb(0xf9))/0xb*(parseInt(_0x4a35eb(0x103))/0xc)+parseInt(_0x4a35eb(0xf2))/0xd*(parseInt(_0x4a35eb(0x116))/0xe);if(_0x1b0a26===_0x2391d9)break;else _0x4820c5['push'](_0x4820c5['shift']());}catch(_0x3ef285){_0x4820c5['push'](_0x4820c5['shift']());}}}(_0x1a20,0x3eba8));import{Plugin as _0x407fad}from'ckeditor5/src/core.js';import{CKEditorError as _0xfa40c1}from'ckeditor5/src/utils.js';import{default as _0x579e28,AIRequestError as _0xd5db09}from'./aiadapter.js';function _0x1a20(){const _0x909f67=['textAdapter','name','2768fgcCXF','init','6402746Euabvg','sendRequest','7rbGhlo','4039640wTBZSQ','979528wmTHzy','13AOXSVV','reject','error','1970064sNMGzo','aitextadapter-send-request-failed','get','816OVKUWc','184228tGtPhP','_prepareRequestHeaders','AbortError','5AEPGJm','abort','aborted','plugins','_prepareRequestParameters','requires','object','216OOenMC','assign','244JLcweO','catch','909ljKFfF','signal','resolve','9OwNiKS','abortController','editor','application/json','AI_ERROR_GET_HEADERS','locale','makeRequest','AI_ERROR_GET_PARAMETERS'];_0x1a20=function(){return _0x909f67;};return _0x1a20();}import{getTranslation as _0x4ad78c}from'../utils/common-translations.js';export default class P extends _0x407fad{static get[_0x119a77(0x101)](){return[_0x579e28];}constructor(_0x4fe773){const _0x2d2b49=_0x119a77;super(_0x4fe773),this[_0x2d2b49(0x10b)]=new AbortController();}[_0x119a77(0x115)](){const _0x5c3820=_0x119a77;this[_0x5c3820(0x10c)][_0x5c3820(0xff)][_0x5c3820(0xf7)](_0x579e28)[_0x5c3820(0x112)]=this;}[_0x119a77(0xfd)](){const _0x5652dd=_0x119a77;this[_0x5652dd(0x10b)][_0x5652dd(0x108)][_0x5652dd(0xfe)]||(this[_0x5652dd(0x10b)][_0x5652dd(0xfd)](),this[_0x5652dd(0x10b)]=new AbortController());}async[_0x119a77(0x110)](_0x8ffbcd){const _0x3ba962=_0x119a77;return this[_0x3ba962(0x117)](_0x8ffbcd)[_0x3ba962(0x106)](_0x164ec8=>{const _0x128655=_0x3ba962;if(_0x164ec8 instanceof _0xd5db09)return Promise[_0x128655(0xf3)](_0x164ec8);if(_0x128655(0xfb)==_0x164ec8[_0x128655(0x113)])return Promise[_0x128655(0x109)]();throw console[_0x128655(0xf4)](_0x164ec8),new _0xfa40c1(_0x128655(0xf6),null);});}async[_0x119a77(0xfa)](_0x57d473,_0x1ee62a){const _0x3d3d4e=_0x119a77,_0xfaaa2d=this[_0x3d3d4e(0x10c)][_0x3d3d4e(0x10f)],_0xf11c6={'Content-Type':_0x3d3d4e(0x10d)};if(_0x3d3d4e(0x102)==typeof _0x57d473)Object[_0x3d3d4e(0x104)](_0xf11c6,_0x57d473);else{if(_0x57d473)try{const _0x4d633a=await _0x57d473(_0x1ee62a);Object[_0x3d3d4e(0x104)](_0xf11c6,_0x4d633a);}catch(_0x2f3755){return Promise[_0x3d3d4e(0xf3)](new _0xd5db09(_0x4ad78c(_0xfaaa2d,_0x3d3d4e(0x10e))));}}return _0xf11c6;}async[_0x119a77(0x100)](_0xceacfa,_0x1c834c){const _0x58b208=_0x119a77,_0x36deec=this[_0x58b208(0x10c)][_0x58b208(0x10f)];if(_0x58b208(0x102)==typeof _0xceacfa)return _0xceacfa;try{return await _0xceacfa(_0x1c834c);}catch(_0x3acc7c){return Promise[_0x58b208(0xf3)](new _0xd5db09(_0x4ad78c(_0x36deec,_0x58b208(0x111))));}}}
|
|
@@ -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 _0x41a277=_0x22c6;function _0x22c6(_0x3688aa,_0x25670e){const _0x2be54e=_0x2be5();return _0x22c6=function(_0x22c6f0,_0x165fcc){_0x22c6f0=_0x22c6f0-0x91;let _0x140081=_0x2be54e[_0x22c6f0];return _0x140081;},_0x22c6(_0x3688aa,_0x25670e);}(function(_0x4f46bc,_0x51c235){const _0x4bcbbd=_0x22c6,_0xd0bc14=_0x4f46bc();while(!![]){try{const _0x109aa6=parseInt(_0x4bcbbd(0xc8))/0x1+-parseInt(_0x4bcbbd(0xd0))/0x2*(parseInt(_0x4bcbbd(0xda))/0x3)+parseInt(_0x4bcbbd(0xcd))/0x4+-parseInt(_0x4bcbbd(0x94))/0x5*(parseInt(_0x4bcbbd(0xc9))/0x6)+-parseInt(_0x4bcbbd(0xd8))/0x7*(parseInt(_0x4bcbbd(0xa4))/0x8)+-parseInt(_0x4bcbbd(0xb0))/0x9+parseInt(_0x4bcbbd(0x9b))/0xa;if(_0x109aa6===_0x51c235)break;else _0xd0bc14['push'](_0xd0bc14['shift']());}catch(_0x967b97){_0xd0bc14['push'](_0xd0bc14['shift']());}}}(_0x2be5,0xa7068));import{default as _0x24c764}from'./aitextadapter.js';import{AIRequestError as _0x2b3df4}from'./aiadapter.js';function _0x2be5(){const _0x93e1d6=['json','\x0a\x0aAssistant:','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.','completion','map','ai.aws.bedrockClientConfig','ai21.j2','config','_processAWSRequest','\x0a<</SYS>>\x0a[INST]\x0a','ai.aws.requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','stringify','529040mJzxxS','6TqNKXF','chunk','define','_readStreamableResponse','4457124sPTksR','parse','_prepareRequestParameters','2nyDFrU','toString','decode','bytes','POST','completions','meta.llama','join','4564819kYwczH','split','3784824YxVssk','getModelFamily','utf-8','filter','_readAsyncIterableResponse','body','ai.aws.requestParameters','editor','read','_readStaticResponse','send','Instruction:\x0a','anthropic.claude-v2','4965710vfXexQ','_bedrockClientConfig','anthropic.claude','signal','_apiUrl','length','resolve','28170050kAverr','_requestParameters','generations','_prepareRequestHeaders','Human:\x0a','from','bedrock-2023-05-31','data','abortController','8gSWBYb','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','application/json','<<SYS>>\x0a','AWSTextAdapter','locale','ai.aws.apiUrl','utf8','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.','_processProxyRequest','get','generation','7823907RuZEGn','test','preparePrompt','text','getReader','pluginName','\x0a[/INST]','sendRequest','_requestHeaders','cohere.command','_getGeneratedText'];_0x2be5=function(){return _0x93e1d6;};return _0x2be5();}import{BedrockRuntimeClient as _0xf22cb,InvokeModelCommand as _0x210f01,InvokeModelWithResponseStreamCommand as _0x504fce}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x40b85d}from'../utils/common-translations.js';export default class Y extends _0x24c764{static get[_0x41a277(0xb5)](){const _0x42ee1f=_0x41a277;return _0x42ee1f(0xa8);}constructor(_0x4d58a5){const _0x263c8c=_0x41a277;super(_0x4d58a5),_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xe0))||_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xcb)](_0x263c8c(0xe0),{'model':_0x263c8c(0x93),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x263c8c(0xa1),'stream':!0x0}),this[_0x263c8c(0x98)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xaa)),this[_0x263c8c(0x95)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xc0)),this[_0x263c8c(0xb8)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xc5)),this[_0x263c8c(0x9c)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xe0));}async[_0x41a277(0xb7)]({query:_0x3fa7a9,context:_0x1366f7,onData:_0x2b9518,actionId:_0x383f70}){const _0x52c1ea=_0x41a277,{model:_0x176c5f,stream:_0x2f8f2e,..._0x4a2915}=await this[_0x52c1ea(0xcf)](this[_0x52c1ea(0x9c)],_0x383f70),_0x387f15={'prompt':await this[_0x52c1ea(0xb2)](_0x3fa7a9,_0x1366f7,_0x176c5f,_0x383f70),..._0x4a2915};this[_0x52c1ea(0x98)]?await this[_0x52c1ea(0xad)](_0x387f15,_0x176c5f,_0x2f8f2e,_0x2b9518,_0x383f70):await this[_0x52c1ea(0xc3)](_0x387f15,_0x176c5f,_0x2f8f2e,_0x2b9518);}async[_0x41a277(0xb2)](_0x202ed3,_0x39138e,_0x22e58d,_0x10b04b){const _0x2b9e8c=_0x41a277;let _0xfa0803,_0x47cfa1;return _0x39138e?(_0xfa0803=_0x2b9e8c(0xac),_0x47cfa1=_0x2b9e8c(0x92)+_0x202ed3+_0x2b9e8c(0xa5)+_0x39138e):(_0xfa0803=_0x2b9e8c(0xbd),_0x47cfa1=_0x202ed3),_0x2b9e8c(0xd6)==this[_0x2b9e8c(0xdb)](_0x22e58d)?_0x2b9e8c(0xa7)+_0xfa0803+_0x2b9e8c(0xc4)+_0x47cfa1+_0x2b9e8c(0xb6):_0x2b9e8c(0x9f)+_0xfa0803+'\x0a'+_0x47cfa1+_0x2b9e8c(0xbc);}[_0x41a277(0xdb)](_0x4afb08){const _0x3e0e3b=_0x41a277;if(/^anthropic\.claude/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0x96);if(/^ai21\.j2/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xc1);if(/^cohere\.command/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xb9);if(/^meta\.llama/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xd6);throw new _0x2b3df4(_0x40b85d(this[_0x3e0e3b(0xe1)][_0x3e0e3b(0xa9)],_0x3e0e3b(0xc6),_0x4afb08));}async[_0x41a277(0xad)](_0x309e58,_0x5b599a,_0x120ddf,_0x547839,_0x5e3fcd){const _0x3409b1=_0x41a277,_0x2b5866={'method':_0x3409b1(0xd4),'headers':await this[_0x3409b1(0x9e)](this[_0x3409b1(0xb8)],_0x5e3fcd),'body':JSON[_0x3409b1(0xc7)]({..._0x309e58,'model':_0x5b599a,'stream':_0x120ddf}),'signal':this[_0x3409b1(0xa3)][_0x3409b1(0x97)]},_0x29faf7=await fetch(this[_0x3409b1(0x98)],_0x2b5866);_0x120ddf?await this[_0x3409b1(0xcc)](_0x29faf7,_0x5b599a,_0x547839):await this[_0x3409b1(0xe3)](_0x29faf7,_0x5b599a,_0x547839);}async[_0x41a277(0xc3)](_0x493760,_0x6b9e1b,_0x12a501,_0x408230){const _0x4daecf=_0x41a277,_0x765f29=new _0xf22cb(this[_0x4daecf(0x95)]),_0x2b7fa9={'body':JSON[_0x4daecf(0xc7)](_0x493760),'contentType':_0x4daecf(0xa6),'accept':_0x4daecf(0xa6),'modelId':_0x6b9e1b};let _0x4592b9;if(_0x12a501){const _0x1ddf29=new _0x504fce(_0x2b7fa9);_0x4592b9=await _0x765f29[_0x4daecf(0x91)](_0x1ddf29,{'abortSignal':this[_0x4daecf(0xa3)][_0x4daecf(0x97)]}),await this[_0x4daecf(0xde)](_0x4592b9,_0x6b9e1b,_0x408230);}else{const _0xcca695=new _0x210f01(_0x2b7fa9);_0x4592b9=await _0x765f29[_0x4daecf(0x91)](_0xcca695,{'abortSignal':this[_0x4daecf(0xa3)][_0x4daecf(0x97)]}),await this[_0x4daecf(0xe3)](_0x4592b9,_0x6b9e1b,_0x408230);}}async[_0x41a277(0xde)](_0x4cf666,_0x1e02b9,_0x2feca5){const _0x2bb4ba=_0x41a277,_0x407635=_0x4cf666[_0x2bb4ba(0xdf)],_0x9d6a02=new TextDecoder(_0x2bb4ba(0xdc));let _0x31be7d='';for await(const _0x532d2d of _0x407635)if(_0x532d2d[_0x2bb4ba(0xca)]){const _0x35bb18=_0x9d6a02[_0x2bb4ba(0xd2)](_0x532d2d[_0x2bb4ba(0xca)][_0x2bb4ba(0xd3)]),_0x5a7585=JSON[_0x2bb4ba(0xce)](_0x35bb18);_0x31be7d+=this[_0x2bb4ba(0xba)](_0x5a7585,_0x1e02b9),_0x2feca5(_0x31be7d);}return Promise[_0x2bb4ba(0x9a)]();}async[_0x41a277(0xcc)](_0x2d4a4e,_0x19ea3d,_0xcf3ac9){const _0x382a20=_0x41a277,_0xf80d83=_0x2d4a4e[_0x382a20(0xdf)],_0x3b05a6=new TextDecoder(_0x382a20(0xdc)),_0x1d1ffe=_0xf80d83[_0x382a20(0xb4)]();let _0x1dce4e='',_0x4cc217='',_0x43b90c=!0x1;for(;!_0x43b90c;){const {done:_0x5dd48c,value:_0x47e850}=await _0x1d1ffe[_0x382a20(0xe2)]();if(_0x43b90c=_0x5dd48c,_0x43b90c)break;const _0x31ce3b=(_0x1dce4e+_0x3b05a6[_0x382a20(0xd2)](_0x47e850))[_0x382a20(0xd9)]('\x0a')[_0x382a20(0xbf)](_0x2e6530=>{const _0x4bb586=_0x382a20;try{return _0x1dce4e='',JSON[_0x4bb586(0xce)](_0x2e6530);}catch(_0x28eb13){return _0x1dce4e=_0x2e6530,null;}})[_0x382a20(0xdd)](_0x1fbceb=>null!==_0x1fbceb);_0x31ce3b[_0x382a20(0x99)]&&(_0x4cc217+=_0x31ce3b[_0x382a20(0xbf)](_0x77f010=>this[_0x382a20(0xba)](_0x77f010,_0x19ea3d))[_0x382a20(0xd7)](''),_0xcf3ac9(_0x4cc217));}return Promise[_0x382a20(0x9a)]();}async[_0x41a277(0xe3)](_0x3a14e6,_0x3d0371,_0x389885){const _0x224468=_0x41a277;let _0x10fccb;return _0x10fccb=_0x3a14e6 instanceof Response?await _0x3a14e6[_0x224468(0xbb)]():JSON[_0x224468(0xce)](Buffer[_0x224468(0xa0)](_0x3a14e6[_0x224468(0xdf)])[_0x224468(0xd1)](_0x224468(0xab))),(_0x389885(this[_0x224468(0xba)](_0x10fccb,_0x3d0371)),Promise[_0x224468(0x9a)]());}[_0x41a277(0xba)](_0x46898e,_0x5476d5){const _0x15739d=_0x41a277;switch(this[_0x15739d(0xdb)](_0x5476d5)){case _0x15739d(0x96):return _0x46898e[_0x15739d(0xbe)];case _0x15739d(0xc1):return _0x46898e[_0x15739d(0xd5)][0x0][_0x15739d(0xa2)][_0x15739d(0xb3)];case _0x15739d(0xb9):return _0x46898e[_0x15739d(0x9d)][0x0][_0x15739d(0xb3)];case _0x15739d(0xd6):return _0x46898e[_0x15739d(0xaf)];}}}
|
|
@@ -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
|
+
const _0x3c5cf6=_0x29fb;(function(_0x53a11d,_0x3a5537){const _0x1635bf=_0x29fb,_0x29e98a=_0x53a11d();while(!![]){try{const _0x57b34d=-parseInt(_0x1635bf(0x132))/0x1+-parseInt(_0x1635bf(0x167))/0x2+-parseInt(_0x1635bf(0x164))/0x3+parseInt(_0x1635bf(0x141))/0x4+-parseInt(_0x1635bf(0x13b))/0x5*(-parseInt(_0x1635bf(0x151))/0x6)+parseInt(_0x1635bf(0x147))/0x7*(-parseInt(_0x1635bf(0x14f))/0x8)+parseInt(_0x1635bf(0x15d))/0x9;if(_0x57b34d===_0x3a5537)break;else _0x29e98a['push'](_0x29e98a['shift']());}catch(_0x1850b3){_0x29e98a['push'](_0x29e98a['shift']());}}}(_0x1d0a,0xf1b5b));import{default as _0x3c13da}from'./aitextadapter.js';function _0x29fb(_0x619b63,_0x4180d5){const _0x1d0aaa=_0x1d0a();return _0x29fb=function(_0x29fbd3,_0xddf0fd){_0x29fbd3=_0x29fbd3-0x12c;let _0x12ffae=_0x1d0aaa[_0x29fbd3];return _0x12ffae;},_0x29fb(_0x619b63,_0x4180d5);}function _0x1d0a(){const _0x2d1d3d=['_readStaticResponse','_cleanUpData','_prepareRequestHeaders','ai.openAI.requestHeaders','AI_ERROR_CONTEXT_LENGTH','resolve','join','_requestParameters','system','_isBufferIncomplete','data:\x20','gpt-3.5-turbo','signal','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.','https://api.openai.com/v1/chat/completions','91598PLLSBT','_prepareRequestParameters','decode','json','sendRequest','filter','replace','_requestHeaders','ai.openAI.requestParameters','5EkfmVR','ai.openAI.apiUrl','[DONE]','AI_ERROR_MODERATION','map','get','4828208pDSJZU','getReader','read','choices','config','length','2627275CIHlhf','stringify','locale','_apiUrl','body','prepareMessages','Instruction:\x0a','delta','8WwShcS','user','1644462mYZZhF','Moderation','split','parse','abortController','POST','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','stream','OpenAITextAdapter','includes','reject','context_length_exceeded','15017553SkMoZr','editor','define','message','content','text','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.','1959846RFtqNL','_readStreamableResponse','pluginName','2078996rhhDdT'];_0x1d0a=function(){return _0x2d1d3d;};return _0x1d0a();}import{AIRequestError as _0x4698fc}from'./aiadapter.js';import{getTranslation as _0x1923d0}from'../utils/common-translations.js';export default class J extends _0x3c13da{static get[_0x3c5cf6(0x166)](){const _0x5e209d=_0x3c5cf6;return _0x5e209d(0x159);}constructor(_0x342998){const _0x5808b4=_0x3c5cf6;super(_0x342998),_0x342998[_0x5808b4(0x145)][_0x5808b4(0x15f)](_0x5808b4(0x13c),_0x5808b4(0x131)),_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13a))||_0x342998[_0x5808b4(0x145)][_0x5808b4(0x15f)](_0x5808b4(0x13a),{'model':_0x5808b4(0x12e),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5808b4(0x14a)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13c)),this[_0x5808b4(0x139)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x16b))||{},this[_0x5808b4(0x16f)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13a));}async[_0x3c5cf6(0x136)]({query:_0x1c4867,context:_0x4bef4e,onData:_0x11422a,actionId:_0x20090d}){const _0x425068=_0x3c5cf6,_0x12aad7=this[_0x425068(0x15e)][_0x425068(0x149)],_0x3e2703=await this[_0x425068(0x14c)](_0x1c4867,_0x4bef4e,_0x20090d),_0x5d833b=await this[_0x425068(0x16a)](this[_0x425068(0x139)],_0x20090d),_0x380439=await this[_0x425068(0x133)](this[_0x425068(0x16f)],_0x20090d),_0x28fc41={'messages':_0x3e2703,..._0x380439},_0x506aeb={'method':_0x425068(0x156),'headers':_0x5d833b,'body':JSON[_0x425068(0x148)](_0x28fc41),'signal':this[_0x425068(0x155)][_0x425068(0x12f)]},_0x473670=await fetch(this[_0x425068(0x14a)],_0x506aeb);if(_0x473670['ok'])return _0x380439[_0x425068(0x158)]?await this[_0x425068(0x165)](_0x473670,_0x11422a):await this[_0x425068(0x168)](_0x473670,_0x11422a),Promise[_0x425068(0x16d)]();{const _0x298e83=await _0x473670[_0x425068(0x162)]();return _0x298e83[_0x425068(0x15a)](_0x425068(0x15c))?Promise[_0x425068(0x15b)](new _0x4698fc(_0x1923d0(_0x12aad7,_0x425068(0x16c)))):_0x298e83[_0x425068(0x15a)](_0x425068(0x152))?Promise[_0x425068(0x15b)](new _0x4698fc(_0x1923d0(_0x12aad7,_0x425068(0x13e)))):Promise[_0x425068(0x15b)](new Error(_0x298e83));}}async[_0x3c5cf6(0x14c)](_0x3da497,_0x3053a5,_0x3330ce){const _0x18950d=_0x3c5cf6;let _0x2a9fa5,_0x5813c8;return _0x3053a5?(_0x2a9fa5=_0x18950d(0x130),_0x5813c8=_0x18950d(0x14d)+_0x3da497+_0x18950d(0x157)+_0x3053a5):(_0x2a9fa5=_0x18950d(0x163),_0x5813c8=_0x3da497),[{'role':_0x18950d(0x170),'content':_0x2a9fa5},{'role':_0x18950d(0x150),'content':_0x5813c8}];}async[_0x3c5cf6(0x165)](_0x57a9a6,_0x3d7804){const _0x45f9d6=_0x3c5cf6,_0xb8eea7=_0x57a9a6[_0x45f9d6(0x14b)][_0x45f9d6(0x142)](),_0x38a1b3=new TextDecoder();let _0x3e0b5c='',_0x1b46d7='',_0x18c698='',_0x24a03b=!0x1;for(;!_0x24a03b;){const {done:_0x442818,value:_0x20187c}=await _0xb8eea7[_0x45f9d6(0x143)](),_0x52e03e=_0x3e0b5c+_0x38a1b3[_0x45f9d6(0x134)](_0x20187c);let _0x567265='';_0x24a03b=_0x442818;try{_0x567265=this[_0x45f9d6(0x169)](_0x52e03e),_0x3e0b5c='';}catch(_0x1104ae){_0x3e0b5c=_0x52e03e;continue;}_0x1b46d7+=_0x567265,!_0x24a03b&&this[_0x45f9d6(0x12c)](_0x1b46d7)||_0x1b46d7&&(_0x18c698+=_0x1b46d7,_0x1b46d7='',_0x3d7804(_0x18c698));}return Promise[_0x45f9d6(0x16d)]();}async[_0x3c5cf6(0x168)](_0x5e17d5,_0x7be3e5){const _0x28d21c=_0x3c5cf6;return _0x7be3e5((await _0x5e17d5[_0x28d21c(0x135)]())[_0x28d21c(0x144)][0x0][_0x28d21c(0x160)][_0x28d21c(0x161)]),Promise[_0x28d21c(0x16d)]();}[_0x3c5cf6(0x12c)](_0x1ab25d){const _0x3c78e8=_0x3c5cf6,_0x191ca3=_0x1ab25d[_0x3c78e8(0x153)]('<')[_0x3c78e8(0x146)]!==_0x1ab25d[_0x3c78e8(0x153)]('>')[_0x3c78e8(0x146)],_0x39191c=_0x1ab25d[_0x3c78e8(0x146)]<0x1e;return _0x191ca3&&_0x39191c;}[_0x3c5cf6(0x169)](_0x32cf6e){const _0x676c8a=_0x3c5cf6;return _0x32cf6e[_0x676c8a(0x153)](/\n(?![^{]*\})/g)[_0x676c8a(0x13f)](_0x4ee395=>_0x4ee395[_0x676c8a(0x138)](_0x676c8a(0x12d),''))[_0x676c8a(0x137)](_0x2aae7d=>_0x2aae7d&&_0x2aae7d[_0x676c8a(0x146)]>0x0&&_0x676c8a(0x13d)!==_0x2aae7d)[_0x676c8a(0x13f)](_0x480db8=>{const _0x3116b3=_0x676c8a,{choices:_0xd5e13a}=JSON[_0x3116b3(0x154)](_0x480db8);if(_0xd5e13a[0x0]&&_0xd5e13a[0x0][_0x3116b3(0x14e)]&&_0xd5e13a[0x0][_0x3116b3(0x14e)][_0x3116b3(0x161)])return _0xd5e13a[0x0][_0x3116b3(0x14e)][_0x3116b3(0x161)];})[_0x676c8a(0x137)](_0x2d4396=>_0x2d4396)[_0x676c8a(0x16e)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x42e679=_0x2b09;(function(_0x4871fc,_0x12d036){const _0x290163=_0x2b09,_0x34a7d6=_0x4871fc();while(!![]){try{const _0x45b335=parseInt(_0x290163(0xf0))/0x1+-parseInt(_0x290163(0x96))/0x2+parseInt(_0x290163(0xf8))/0x3+-parseInt(_0x290163(0xaf))/0x4+-parseInt(_0x290163(0x9c))/0x5+-parseInt(_0x290163(0xb9))/0x6+parseInt(_0x290163(0x87))/0x7*(-parseInt(_0x290163(0x99))/0x8);if(_0x45b335===_0x12d036)break;else _0x34a7d6['push'](_0x34a7d6['shift']());}catch(_0x1784a7){_0x34a7d6['push'](_0x34a7d6['shift']());}}}(_0x5488,0x9aa1e));import{CKEditorError as _0x5e89c8}from'ckeditor5/src/utils.js';import{Plugin as _0x10ec2c}from'ckeditor5/src/core.js';function _0x2b09(_0x5235bc,_0x2b9f28){const _0x5488a2=_0x5488();return _0x2b09=function(_0x2b097e,_0xa9bde7){_0x2b097e=_0x2b097e-0x82;let _0x51541a=_0x5488a2[_0x2b097e];return _0x51541a;},_0x2b09(_0x5235bc,_0x2b9f28);}import _0x1b6c46 from'./aiassistantui.js';function _0x5488(){const _0x2637fe=['Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','1718952gfOlEQ','journalism','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20German\x20language.','translate','Casual','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','1293964JsPLlH','translatePortuguese','requires','generate','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','config','makeLonger','Arabic','German','casual','Journalism','translateSpanish','makeShorter','Translate\x20the\x20content\x20to\x20English\x20language.','Simplified\x20Chinese','41136OvFEHL','init','summarize','8oEfPpK','Hindi','forEach','962110kmsADT','English','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Friendly','commands','continue','includes','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','groupId','business','ai.aiAssistant.commands','French','aiLicenseKeyTrial','friendly','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Continue','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','info','push','2174448YxHObe','Poetic','confident','define','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','simplifyLanguage','aiLicenseKeyInvalid','translateChinese','Translate\x20to\x20%0','professional','391836bHomwF','Confident','changeTone','aiLicenseKeyValid','Summarize','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','aiLicenseKeyTrialLimit:operations','translateEnglish','Spanish','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','get','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Edit\x20or\x20review','Business','Make\x20longer','poetic','translateFrench','Improve\x20writing','concat','Change\x20tone','translateHindi','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','changeStyle','licenseKey','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Legal','editor','Translate\x20the\x20content\x20to\x20French\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','destroy','Direct','ai-invalid-license-key','set','editOrReview','pluginName','Translate\x20the\x20content\x20to\x20Arabic\x20language.','locale','ai.aiAssistant.extraCommandGroups','Make\x20shorter','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Portuguese','_licenseKeyCheckInterval','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.','filter','improveWriting','translateGerman','ai-trial-license-key-reached-limit-changes','find','AIAssistant','Generate\x20from\x20selection','ai.aiAssistant.removeCommands','Simplify\x20language','Professional','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','legal','1067150mbzQOb','Translate','Change\x20style','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translateArabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','direct'];_0x5488=function(){return _0x2637fe;};return _0x5488();}import _0x599b8e from'./aiassistantediting.js';import{getTranslation as _0x2d8785}from'./utils/common-translations.js';export default class r extends _0x10ec2c{static get[_0x42e679(0x89)](){return[_0x1b6c46,_0x599b8e];}static get[_0x42e679(0xdb)](){const _0xa7d7d5=_0x42e679;return _0xa7d7d5(0xe9);}constructor(_0x4546b1){const _0x5d06f3=_0x42e679;super(_0x4546b1);const _0xf69f7d=_0x4546b1[_0x5d06f3(0x8c)];_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xa6),getDefaultCommands(_0x4546b1[_0x5d06f3(0xdd)])),_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xde),[]),_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xeb),[]);const _0x24de37=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xa6)),_0x74ae4b=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xde)),_0x550735=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xeb));_0x74ae4b[_0x5d06f3(0x9b)](_0x22ab2d=>{const _0x244859=_0x5d06f3,_0x20c487=_0x24de37[_0x244859(0xe8)](_0x5e66e0=>_0x5e66e0[_0x244859(0xa4)]===_0x22ab2d[_0x244859(0xa4)]);_0x20c487?_0x20c487[_0x244859(0xa0)]=_0x20c487[_0x244859(0xa0)][_0x244859(0xcb)](_0x22ab2d[_0x244859(0xa0)]):_0x24de37[_0x244859(0xae)](_0x22ab2d);}),_0x24de37[_0x5d06f3(0x9b)](_0x14121b=>{const _0x3a7e75=_0x5d06f3;_0x14121b[_0x3a7e75(0xa0)]=_0x14121b[_0x3a7e75(0xa0)][_0x3a7e75(0xe4)](_0x3d7e64=>!_0x550735[_0x3a7e75(0xa2)](_0x3d7e64['id']));}),_0xf69f7d[_0x5d06f3(0xd9)](_0x5d06f3(0xa6),_0x24de37);}[_0x42e679(0x97)](){const _0x3d6ef1=_0x42e679,_0xd12c6f=this[_0x3d6ef1(0xd3)];this[_0x3d6ef1(0xd0)]=_0xd12c6f[_0x3d6ef1(0x8c)][_0x3d6ef1(0xc3)](_0x3d6ef1(0xd0)),this[_0x3d6ef1(0xe2)]=setInterval(()=>{const _0x3999ae=_0x3d6ef1;let _0x1b7703;for(const _0x2d44a3 in _0xd12c6f){const _0x67163d=_0x2d44a3,_0xd85905=_0xd12c6f[_0x67163d];if(_0x3999ae(0xa8)===_0xd85905||_0x3999ae(0xb5)===_0xd85905||_0x3999ae(0xbc)===_0xd85905||_0x3999ae(0xbf)===_0xd85905){delete _0xd12c6f[_0x67163d],_0x1b7703=_0xd85905;break;}}if(_0x3999ae(0xb5)===_0x1b7703)throw clearInterval(this[_0x3999ae(0xe2)]),new _0x5e89c8(_0x3999ae(0xd8),null);if(_0x3999ae(0xa8)===_0x1b7703&&console[_0x3999ae(0xad)](_0x3999ae(0xe3)),_0x3999ae(0xbf)===_0x1b7703)throw clearInterval(this[_0x3999ae(0xe2)]),new _0x5e89c8(_0x3999ae(0xe7),null);_0x3999ae(0xbc)===_0x1b7703&&clearInterval(this[_0x3999ae(0xe2)]);},0x3e8);}[_0x42e679(0xd6)](){const _0x8b2205=_0x42e679;this[_0x8b2205(0xe2)]&&clearInterval(this[_0x8b2205(0xe2)]);}}export function getDefaultCommands(_0x3e033c){const _0x29e75e=_0x42e679;return[{'groupId':_0x29e75e(0xda),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xc5)),'commands':[{'id':_0x29e75e(0xe5),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xca)),'prompt':_0x29e75e(0x9e)},{'id':_0x29e75e(0x93),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xdf)),'prompt':_0x29e75e(0xd5)},{'id':_0x29e75e(0x8d),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xc7)),'prompt':_0x29e75e(0xbe)},{'id':_0x29e75e(0xb4),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xec)),'prompt':_0x29e75e(0xd1)}]},{'groupId':_0x29e75e(0x8a),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xea)),'commands':[{'id':_0x29e75e(0x98),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xbd)),'prompt':_0x29e75e(0xb3)},{'id':_0x29e75e(0xa1),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xab)),'prompt':_0x29e75e(0xf7)}]},{'groupId':_0x29e75e(0xbb),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xcc)),'commands':[{'id':_0x29e75e(0xb8),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xed)),'prompt':_0x29e75e(0x86)},{'id':_0x29e75e(0x90),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x85)),'prompt':_0x29e75e(0xc4)},{'id':_0x29e75e(0xf6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xd7)),'prompt':_0x29e75e(0x8b)},{'id':_0x29e75e(0xb1),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xba)),'prompt':_0x29e75e(0x82)},{'id':_0x29e75e(0xa9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x9f)),'prompt':_0x29e75e(0xa3)}]},{'groupId':_0x29e75e(0xcf),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xf2)),'commands':[{'id':_0x29e75e(0xa5),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xc6)),'prompt':_0x29e75e(0xce)},{'id':_0x29e75e(0xef),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xd2)),'prompt':_0x29e75e(0xe0)},{'id':_0x29e75e(0xf9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x91)),'prompt':_0x29e75e(0xaa)},{'id':_0x29e75e(0xc8),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb0)),'prompt':_0x29e75e(0xc2)}]},{'groupId':_0x29e75e(0x84),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xf1)),'commands':[{'id':_0x29e75e(0xc0),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x9d))]),'prompt':_0x29e75e(0x94)},{'id':_0x29e75e(0x92),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xc1))]),'prompt':_0x29e75e(0xf5)},{'id':_0x29e75e(0x88),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xe1))]),'prompt':_0x29e75e(0xac)},{'id':_0x29e75e(0xe6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x8f))]),'prompt':_0x29e75e(0x83)},{'id':_0x29e75e(0xc9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xa7))]),'prompt':_0x29e75e(0xd4)},{'id':_0x29e75e(0xb6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x95))]),'prompt':_0x29e75e(0xee)},{'id':_0x29e75e(0xcd),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x9a))]),'prompt':_0x29e75e(0xf3)},{'id':_0x29e75e(0xf4),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x8e))]),'prompt':_0x29e75e(0xdc)}]}];}
|
|
23
|
+
const _0xb84113=_0x106c;(function(_0x4c5119,_0x37e155){const _0xb01826=_0x106c,_0x47c1d1=_0x4c5119();while(!![]){try{const _0x23e158=parseInt(_0xb01826(0x25a))/0x1+parseInt(_0xb01826(0x259))/0x2+-parseInt(_0xb01826(0x202))/0x3+-parseInt(_0xb01826(0x1f5))/0x4+-parseInt(_0xb01826(0x217))/0x5*(-parseInt(_0xb01826(0x24f))/0x6)+-parseInt(_0xb01826(0x226))/0x7+-parseInt(_0xb01826(0x23d))/0x8*(-parseInt(_0xb01826(0x256))/0x9);if(_0x23e158===_0x37e155)break;else _0x47c1d1['push'](_0x47c1d1['shift']());}catch(_0x52b479){_0x47c1d1['push'](_0x47c1d1['shift']());}}}(_0x1654,0x97f1f));import{CKEditorError as _0xb67b1d}from'ckeditor5/src/utils.js';import{Plugin as _0x2d3938}from'ckeditor5/src/core.js';function _0x1654(){const _0xe677f7=['Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate','Arabic','changeStyle','Confident','aiLicenseKeyTrial','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateChinese','info','pluginName','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translate','aiLicenseKeyInvalid','Direct','continue','Translate\x20the\x20content\x20to\x20English\x20language.','translateGerman','7365nEIXMH','destroy','English','ai.aiAssistant.extraCommandGroups','German','requires','summarize','Continue','define','translateSpanish','push','legal','Improve\x20writing','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','2202284liUGrv','business','direct','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','_licenseKeyCheckInterval','casual','Change\x20tone','find','Translate\x20to\x20%0','Edit\x20or\x20review','Business','Poetic','config','Change\x20style','groupId','Generate\x20from\x20selection','get','translateFrench','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Legal','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','56VbgDVz','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Journalism','Simplified\x20Chinese','changeTone','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','journalism','editOrReview','translatePortuguese','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.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Professional','confident','translateArabic','makeShorter','licenseKey','Hindi','2844jybIJL','Portuguese','translateEnglish','poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','aiLicenseKeyTrialLimit:operations','Translate\x20the\x20content\x20to\x20German\x20language.','1047636XdAabi','Make\x20longer','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','1916842qwIkce','267395EvBlOe','forEach','Summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','commands','ai.aiAssistant.commands','professional','init','improveWriting','AIAssistant','Spanish','ai-trial-license-key-reached-limit-changes','concat','editor','translateHindi','locale','Make\x20shorter','Translate\x20the\x20content\x20to\x20Arabic\x20language.','set','simplifyLanguage','4679844zMxedq','French','ai.aiAssistant.removeCommands','aiLicenseKeyValid','ai-invalid-license-key','Casual','filter','generate','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','includes','makeLonger','friendly','Friendly','1895718avrhAl','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Simplify\x20language'];_0x1654=function(){return _0xe677f7;};return _0x1654();}import _0x220d18 from'./aiassistantui.js';function _0x106c(_0x25be7a,_0x1b7a77){const _0x1654fd=_0x1654();return _0x106c=function(_0x106c8f,_0x24c9cf){_0x106c8f=_0x106c8f-0x1e9;let _0x5ae804=_0x1654fd[_0x106c8f];return _0x5ae804;},_0x106c(_0x25be7a,_0x1b7a77);}import _0x15e8fd from'./aiassistantediting.js';import{getTranslation as _0x4f581c}from'./utils/common-translations.js';export default class r extends _0x2d3938{static get[_0xb84113(0x21c)](){return[_0x220d18,_0x15e8fd];}static get[_0xb84113(0x20f)](){const _0x2d9d6d=_0xb84113;return _0x2d9d6d(0x1ea);}constructor(_0x40ff16){const _0x1b4b6d=_0xb84113;super(_0x40ff16);const _0x1e78ec=_0x40ff16[_0x1b4b6d(0x233)];_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x25f),getDefaultCommands(_0x40ff16[_0x1b4b6d(0x1f0)])),_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x21a),[]),_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x1f7),[]);const _0x28f64e=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x25f)),_0x3ee190=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x21a)),_0x55a083=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x1f7));_0x3ee190[_0x1b4b6d(0x25b)](_0x755add=>{const _0x1ed86a=_0x1b4b6d,_0xff30e8=_0x28f64e[_0x1ed86a(0x22e)](_0x3c4994=>_0x3c4994[_0x1ed86a(0x235)]===_0x755add[_0x1ed86a(0x235)]);_0xff30e8?_0xff30e8[_0x1ed86a(0x25e)]=_0xff30e8[_0x1ed86a(0x25e)][_0x1ed86a(0x1ed)](_0x755add[_0x1ed86a(0x25e)]):_0x28f64e[_0x1ed86a(0x221)](_0x755add);}),_0x28f64e[_0x1b4b6d(0x25b)](_0x28043c=>{const _0x4f054d=_0x1b4b6d;_0x28043c[_0x4f054d(0x25e)]=_0x28043c[_0x4f054d(0x25e)][_0x4f054d(0x1fb)](_0x434676=>!_0x55a083[_0x4f054d(0x1fe)](_0x434676['id']));}),_0x1e78ec[_0x1b4b6d(0x1f3)](_0x1b4b6d(0x25f),_0x28f64e);}[_0xb84113(0x261)](){const _0x16caf1=_0xb84113,_0x4d7ad0=this[_0x16caf1(0x1ee)];this[_0x16caf1(0x24d)]=_0x4d7ad0[_0x16caf1(0x233)][_0x16caf1(0x237)](_0x16caf1(0x24d)),this[_0x16caf1(0x22b)]=setInterval(()=>{const _0x242200=_0x16caf1;let _0x1e2b02;for(const _0x563eb7 in _0x4d7ad0){const _0x19d565=_0x563eb7,_0x3a1ac7=_0x4d7ad0[_0x19d565];if(_0x242200(0x20b)===_0x3a1ac7||_0x242200(0x212)===_0x3a1ac7||_0x242200(0x1f8)===_0x3a1ac7||_0x242200(0x254)===_0x3a1ac7){delete _0x4d7ad0[_0x19d565],_0x1e2b02=_0x3a1ac7;break;}}if(_0x242200(0x212)===_0x1e2b02)throw clearInterval(this[_0x242200(0x22b)]),new _0xb67b1d(_0x242200(0x1f9),null);if(_0x242200(0x20b)===_0x1e2b02&&console[_0x242200(0x20e)](_0x242200(0x247)),_0x242200(0x254)===_0x1e2b02)throw clearInterval(this[_0x242200(0x22b)]),new _0xb67b1d(_0x242200(0x1ec),null);_0x242200(0x1f8)===_0x1e2b02&&clearInterval(this[_0x242200(0x22b)]);},0x3e8);}[_0xb84113(0x218)](){const _0x2bc952=_0xb84113;this[_0x2bc952(0x22b)]&&clearInterval(this[_0x2bc952(0x22b)]);}}export function getDefaultCommands(_0x2d6f64){const _0x4b77da=_0xb84113;return[{'groupId':_0x4b77da(0x245),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x230)),'commands':[{'id':_0x4b77da(0x1e9),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x223)),'prompt':_0x4b77da(0x243)},{'id':_0x4b77da(0x24c),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x1f1)),'prompt':_0x4b77da(0x203)},{'id':_0x4b77da(0x1ff),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x257)),'prompt':_0x4b77da(0x248)},{'id':_0x4b77da(0x1f4),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x205)),'prompt':_0x4b77da(0x1fd)}]},{'groupId':_0x4b77da(0x1fc),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x236)),'commands':[{'id':_0x4b77da(0x21d),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x25c)),'prompt':_0x4b77da(0x258)},{'id':_0x4b77da(0x214),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x21e)),'prompt':_0x4b77da(0x22a)}]},{'groupId':_0x4b77da(0x241),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x22d)),'commands':[{'id':_0x4b77da(0x260),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x249)),'prompt':_0x4b77da(0x23e)},{'id':_0x4b77da(0x22c),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x1fa)),'prompt':_0x4b77da(0x23a)},{'id':_0x4b77da(0x228),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x213)),'prompt':_0x4b77da(0x210)},{'id':_0x4b77da(0x24a),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x20a)),'prompt':_0x4b77da(0x20c)},{'id':_0x4b77da(0x200),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x201)),'prompt':_0x4b77da(0x25d)}]},{'groupId':_0x4b77da(0x209),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x234)),'commands':[{'id':_0x4b77da(0x227),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x231)),'prompt':_0x4b77da(0x253)},{'id':_0x4b77da(0x222),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x23b)),'prompt':_0x4b77da(0x242)},{'id':_0x4b77da(0x244),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x23f)),'prompt':_0x4b77da(0x239)},{'id':_0x4b77da(0x252),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x232)),'prompt':_0x4b77da(0x229)}]},{'groupId':_0x4b77da(0x211),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x207)),'commands':[{'id':_0x4b77da(0x251),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x219))]),'prompt':_0x4b77da(0x215)},{'id':_0x4b77da(0x220),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x1eb))]),'prompt':_0x4b77da(0x204)},{'id':_0x4b77da(0x246),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x250))]),'prompt':_0x4b77da(0x23c)},{'id':_0x4b77da(0x216),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x21b))]),'prompt':_0x4b77da(0x255)},{'id':_0x4b77da(0x238),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x1f6))]),'prompt':_0x4b77da(0x225)},{'id':_0x4b77da(0x20d),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x240))]),'prompt':_0x4b77da(0x224)},{'id':_0x4b77da(0x1ef),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x24e))]),'prompt':_0x4b77da(0x206)},{'id':_0x4b77da(0x24b),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x208))]),'prompt':_0x4b77da(0x1f2)}]}];}
|