jodit-pro 4.11.26 → 4.11.28
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/CHANGELOG.md +115 -1
- package/es2015/jodit.css +32 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +6 -6
- package/es2015/jodit.js +39 -9
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +105 -3
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +4 -4
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +58 -7
- package/es2015/plugins/style/style.min.js +2 -2
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +6 -6
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +23 -23
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +2 -2
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +32 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +6 -6
- package/es2021/jodit.js +39 -8
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +105 -3
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +5 -5
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +56 -5
- package/es2021/plugins/style/style.min.js +2 -2
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +32 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +6 -6
- package/es2021.en/jodit.js +39 -8
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +105 -3
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +26 -26
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +56 -5
- package/es2021.en/plugins/style/style.min.js +2 -2
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +37 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +43 -9
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +169 -3
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +114 -25
- package/es5/plugins/style/style.min.js +2 -2
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.d.ts +2 -0
- package/esm/plugins/ai-assistant-pro/ai-assistant-pro.d.ts +3 -0
- package/esm/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
- package/esm/plugins/ai-assistant-pro/config.js +1 -1
- package/esm/plugins/ai-assistant-pro/interface/options.d.ts +40 -0
- package/esm/plugins/ai-assistant-pro/providers/jodit-ai-adapter.js +1 -1
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/config.d.ts +2 -1
- package/esm/plugins/autocomplete/config.js +1 -1
- package/esm/plugins/autocomplete/interface.d.ts +1 -0
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +3 -1
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/ui/item.d.ts +2 -0
- package/esm/plugins/autocomplete/ui/item.js +1 -1
- package/esm/plugins/style/helpers/apply-style.js +1 -1
- package/esm/plugins/style/helpers/detect-active-style.js +1 -1
- package/esm/plugins/style/interface.d.ts +2 -1
- package/esm/plugins/style/ui/style-popup.js +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +2 -0
- package/types/plugins/ai-assistant-pro/ai-assistant-pro.d.ts +3 -0
- package/types/plugins/ai-assistant-pro/interface/options.d.ts +40 -0
- package/types/plugins/autocomplete/config.d.ts +2 -1
- package/types/plugins/autocomplete/interface.d.ts +1 -0
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +3 -1
- package/types/plugins/autocomplete/ui/item.d.ts +2 -0
- package/types/plugins/style/interface.d.ts +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.11.
|
|
4
|
+
* Version: v4.11.28
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -318,7 +318,7 @@ var aiAssistantPro = /*#__PURE__*/ function(Plugin) {
|
|
|
318
318
|
name: 'aiCommandsPro',
|
|
319
319
|
group: 'insert'
|
|
320
320
|
}
|
|
321
|
-
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "__initedPromise", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "__openedMode", null);
|
|
321
|
+
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "textAutocompleteSource", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "textAutocompleteCache", new Map()), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "__initedPromise", null), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "__openedMode", null);
|
|
322
322
|
return _this;
|
|
323
323
|
}
|
|
324
324
|
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_3__._)(aiAssistantPro, [
|
|
@@ -394,6 +394,107 @@ var aiAssistantPro = /*#__PURE__*/ function(Plugin) {
|
|
|
394
394
|
return dialog;
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
|
+
{
|
|
398
|
+
key: "setupTextAutocomplete",
|
|
399
|
+
value: function setupTextAutocomplete() {
|
|
400
|
+
var _this_j_o_aiAssistantPro = this.j.o.aiAssistantPro, textAutocompleteEnabled = _this_j_o_aiAssistantPro.textAutocompleteEnabled, textAutocompleteApiRequest = _this_j_o_aiAssistantPro.textAutocompleteApiRequest, textAutocompleteMinQueryLength = _this_j_o_aiAssistantPro.textAutocompleteMinQueryLength, textAutocompleteMaxSuggestions = _this_j_o_aiAssistantPro.textAutocompleteMaxSuggestions, textAutocompleteDebounceMs = _this_j_o_aiAssistantPro.textAutocompleteDebounceMs, textAutocompleteCacheTTL = _this_j_o_aiAssistantPro.textAutocompleteCacheTTL, textAutocompleteCacheMaxSize = _this_j_o_aiAssistantPro.textAutocompleteCacheMaxSize;
|
|
401
|
+
if (!textAutocompleteEnabled || !textAutocompleteApiRequest) {
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
// Shallow copy to avoid mutating prototype
|
|
405
|
+
this.j.o.autocomplete = (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_8__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_7__._)({}, this.j.o.autocomplete), {
|
|
406
|
+
displayMode: 'inline'
|
|
407
|
+
});
|
|
408
|
+
var _$cache = this.textAutocompleteCache;
|
|
409
|
+
var debounceTimer = null;
|
|
410
|
+
this.textAutocompleteSource = function(query) {
|
|
411
|
+
if (query.length < textAutocompleteMinQueryLength) {
|
|
412
|
+
return [];
|
|
413
|
+
}
|
|
414
|
+
var cacheKey = "".concat(query, ":").concat(textAutocompleteMaxSuggestions);
|
|
415
|
+
if (textAutocompleteCacheTTL > 0) {
|
|
416
|
+
var cached = _$cache.get(cacheKey);
|
|
417
|
+
if (cached && Date.now() - cached.ts < textAutocompleteCacheTTL) {
|
|
418
|
+
return cached.data.map(function(s) {
|
|
419
|
+
return {
|
|
420
|
+
value: s,
|
|
421
|
+
title: s
|
|
422
|
+
};
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
if (debounceTimer) {
|
|
427
|
+
clearTimeout(debounceTimer);
|
|
428
|
+
}
|
|
429
|
+
var controller = new AbortController();
|
|
430
|
+
return new Promise(function(resolve) {
|
|
431
|
+
debounceTimer = setTimeout(function() {
|
|
432
|
+
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
|
|
433
|
+
var suggestions, result, oldest, unused;
|
|
434
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_13__._)(this, function(_state) {
|
|
435
|
+
switch(_state.label){
|
|
436
|
+
case 0:
|
|
437
|
+
_state.trys.push([
|
|
438
|
+
0,
|
|
439
|
+
2,
|
|
440
|
+
,
|
|
441
|
+
3
|
|
442
|
+
]);
|
|
443
|
+
return [
|
|
444
|
+
4,
|
|
445
|
+
textAutocompleteApiRequest(query, textAutocompleteMaxSuggestions, controller.signal)
|
|
446
|
+
];
|
|
447
|
+
case 1:
|
|
448
|
+
suggestions = _state.sent();
|
|
449
|
+
if (Array.isArray(suggestions)) {
|
|
450
|
+
result = suggestions.slice(0, textAutocompleteMaxSuggestions);
|
|
451
|
+
if (textAutocompleteCacheTTL > 0) {
|
|
452
|
+
if (_$cache.size >= textAutocompleteCacheMaxSize) {
|
|
453
|
+
oldest = _$cache.keys().next().value;
|
|
454
|
+
if (oldest != null) {
|
|
455
|
+
_$cache.delete(oldest);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
_$cache.set(cacheKey, {
|
|
459
|
+
ts: Date.now(),
|
|
460
|
+
data: result
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
resolve(result.map(function(s) {
|
|
464
|
+
return {
|
|
465
|
+
value: s,
|
|
466
|
+
title: s
|
|
467
|
+
};
|
|
468
|
+
}));
|
|
469
|
+
return [
|
|
470
|
+
2
|
|
471
|
+
];
|
|
472
|
+
}
|
|
473
|
+
resolve([]);
|
|
474
|
+
return [
|
|
475
|
+
3,
|
|
476
|
+
3
|
|
477
|
+
];
|
|
478
|
+
case 2:
|
|
479
|
+
unused = _state.sent();
|
|
480
|
+
resolve([]);
|
|
481
|
+
return [
|
|
482
|
+
3,
|
|
483
|
+
3
|
|
484
|
+
];
|
|
485
|
+
case 3:
|
|
486
|
+
return [
|
|
487
|
+
2
|
|
488
|
+
];
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
})();
|
|
492
|
+
}, textAutocompleteDebounceMs);
|
|
493
|
+
});
|
|
494
|
+
};
|
|
495
|
+
this.j.e.fire('registerAutocompleteSource', this.textAutocompleteSource);
|
|
496
|
+
}
|
|
497
|
+
},
|
|
397
498
|
{
|
|
398
499
|
key: "afterInit",
|
|
399
500
|
value: function afterInit() {
|
|
@@ -402,6 +503,8 @@ var aiAssistantPro = /*#__PURE__*/ function(Plugin) {
|
|
|
402
503
|
(0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_25__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_22__);
|
|
403
504
|
// Setup event listeners
|
|
404
505
|
this.setupEventListeners();
|
|
506
|
+
// Setup text autocomplete if enabled
|
|
507
|
+
this.setupTextAutocomplete();
|
|
405
508
|
// Auto-open assistant if configured
|
|
406
509
|
this.j.async.promise(function(resolve) {
|
|
407
510
|
var _this_j_o_aiAssistantPro = _this.j.o.aiAssistantPro, initiallyOpened = _this_j_o_aiAssistantPro.initiallyOpened, persistOpenState = _this_j_o_aiAssistantPro.persistOpenState;
|
|
@@ -2043,6 +2146,11 @@ var aiAssistantPro = /*#__PURE__*/ function(Plugin) {
|
|
|
2043
2146
|
key: "beforeDestruct",
|
|
2044
2147
|
value: function beforeDestruct() {
|
|
2045
2148
|
var _cached, _cached1, _cached2, _cached3, _cached4, _cached5, _cached_close, _cached6;
|
|
2149
|
+
if (this.textAutocompleteSource) {
|
|
2150
|
+
this.j.e.fire('unregisterAutocompleteSource', this.textAutocompleteSource);
|
|
2151
|
+
this.textAutocompleteSource = null;
|
|
2152
|
+
}
|
|
2153
|
+
this.textAutocompleteCache.clear();
|
|
2046
2154
|
this.__closeFlightMode();
|
|
2047
2155
|
(_cached = (0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_24__.cached)(this, 'toolRegistry')) === null || _cached === void 0 ? void 0 : _cached.destruct();
|
|
2048
2156
|
(_cached1 = (0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_24__.cached)(this, 'permissionManager')) === null || _cached1 === void 0 ? void 0 : _cached1.destruct();
|
|
@@ -2057,7 +2165,8 @@ var aiAssistantPro = /*#__PURE__*/ function(Plugin) {
|
|
|
2057
2165
|
return aiAssistantPro;
|
|
2058
2166
|
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_11__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_27__.Plugin));
|
|
2059
2167
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(aiAssistantPro, "requires", [
|
|
2060
|
-
'license'
|
|
2168
|
+
'license',
|
|
2169
|
+
'autocomplete'
|
|
2061
2170
|
]);
|
|
2062
2171
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_12__.__decorate)([
|
|
2063
2172
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_24__.cache
|
|
@@ -2278,6 +2387,14 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_15__.Config.prototype.aiAssistantPro =
|
|
|
2278
2387
|
closeAfterInsert: false,
|
|
2279
2388
|
enableSoundNotifications: false,
|
|
2280
2389
|
debug: false,
|
|
2390
|
+
// ===== Text Autocomplete Settings =====
|
|
2391
|
+
textAutocompleteEnabled: false,
|
|
2392
|
+
textAutocompleteApiRequest: null,
|
|
2393
|
+
textAutocompleteMinQueryLength: 3,
|
|
2394
|
+
textAutocompleteMaxSuggestions: 3,
|
|
2395
|
+
textAutocompleteDebounceMs: 500,
|
|
2396
|
+
textAutocompleteCacheTTL: 30000,
|
|
2397
|
+
textAutocompleteCacheMaxSize: 50,
|
|
2281
2398
|
// ===== Quick Commands Settings =====
|
|
2282
2399
|
quickCommandsSilentMode: false,
|
|
2283
2400
|
quickCommandsDisplayMode: 'flight',
|
|
@@ -6331,6 +6448,55 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6331
6448
|
return {
|
|
6332
6449
|
apiMode: 'incremental',
|
|
6333
6450
|
maxRetries: 0,
|
|
6451
|
+
textAutocompleteEnabled: true,
|
|
6452
|
+
textAutocompleteApiRequest: function textAutocompleteApiRequest(query, maxSuggestions, signal) {
|
|
6453
|
+
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_1__._)(function() {
|
|
6454
|
+
var _data_result, ajax, response, data;
|
|
6455
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_6__._)(this, function(_state) {
|
|
6456
|
+
switch(_state.label){
|
|
6457
|
+
case 0:
|
|
6458
|
+
ajax = new jodit_esm_core_request_ajax__WEBPACK_IMPORTED_MODULE_8__.Ajax({
|
|
6459
|
+
url: "".concat(url, "/ai/autocomplete?query=").concat(encodeURIComponent(query), "&key=").concat(encodeURIComponent(config.apiKey)),
|
|
6460
|
+
method: 'POST',
|
|
6461
|
+
contentType: 'application/json',
|
|
6462
|
+
data: {
|
|
6463
|
+
provider: provider,
|
|
6464
|
+
context: {
|
|
6465
|
+
maxSuggestions: maxSuggestions
|
|
6466
|
+
}
|
|
6467
|
+
}
|
|
6468
|
+
});
|
|
6469
|
+
signal.addEventListener('abort', function() {
|
|
6470
|
+
return ajax.abort();
|
|
6471
|
+
}, {
|
|
6472
|
+
once: true
|
|
6473
|
+
});
|
|
6474
|
+
return [
|
|
6475
|
+
4,
|
|
6476
|
+
ajax.send()
|
|
6477
|
+
];
|
|
6478
|
+
case 1:
|
|
6479
|
+
response = _state.sent();
|
|
6480
|
+
return [
|
|
6481
|
+
4,
|
|
6482
|
+
response.json()
|
|
6483
|
+
];
|
|
6484
|
+
case 2:
|
|
6485
|
+
data = _state.sent();
|
|
6486
|
+
if (data.success && ((_data_result = data.result) === null || _data_result === void 0 ? void 0 : _data_result.suggestions)) {
|
|
6487
|
+
return [
|
|
6488
|
+
2,
|
|
6489
|
+
data.result.suggestions
|
|
6490
|
+
];
|
|
6491
|
+
}
|
|
6492
|
+
return [
|
|
6493
|
+
2,
|
|
6494
|
+
[]
|
|
6495
|
+
];
|
|
6496
|
+
}
|
|
6497
|
+
});
|
|
6498
|
+
})();
|
|
6499
|
+
},
|
|
6334
6500
|
apiRequest: function apiRequest(context, signal) {
|
|
6335
6501
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_1__._)(function() {
|
|
6336
6502
|
var ajax, response, data, sseStream;
|