jodit-pro 4.11.17 → 4.11.22
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/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +18 -15
- package/es2015/jodit.js +52 -17
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +7 -7
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +239 -168
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +693 -140
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +42 -39
- 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 +10 -4
- package/es2015/plugins/finder/finder.min.js +2 -2
- 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 +6 -2
- 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 +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- 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 +6 -2
- 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 +18 -15
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +7 -7
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +49 -46
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +19 -16
- package/es2021/jodit.js +52 -17
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +7 -7
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +239 -168
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +686 -137
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +24 -21
- 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 +9 -4
- package/es2021/plugins/finder/finder.min.js +2 -2
- 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 +6 -2
- 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 +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- 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 +6 -2
- 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 +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -16
- package/es2021.en/jodit.js +52 -17
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +7 -7
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +239 -168
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +681 -136
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +24 -21
- 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 +9 -4
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- 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 +6 -2
- 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 +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- 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 +6 -2
- 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 +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +52 -17
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +239 -168
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +863 -176
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- 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 +10 -5
- package/es5/plugins/finder/finder.min.js +2 -2
- 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 +6 -2
- 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 +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- 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 +6 -2
- 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 +4 -4
- package/es5/polyfills.min.js +1 -1
- package/esm/core/ui/helpers/index.d.ts +4 -2
- package/esm/core/ui/helpers/list-reconciler.d.ts +4 -2
- package/esm/core/ui/helpers/reconcilable-ui-list.d.ts +4 -2
- package/esm/plugins/ai-assistant-pro/ai-assistant-pro.d.ts +10 -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/core/ai-response-handler.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/arg-utils.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/block-utils.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/conversation.d.ts +15 -1
- package/esm/plugins/ai-assistant-pro/core/conversation.js +1 -1
- package/esm/plugins/ai-assistant-pro/core/event-handlers.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/message-builder.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/panel-resize.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/selection-context.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/storage-helpers.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/theme.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/core/tool-execution.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/helpers/api-client.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/helpers/base64tofile.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/helpers/permission-manager.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/helpers/state-manager.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/helpers/storage/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/helpers/storage/webstorage-storage.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/helpers/tool-registry.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/icons/chevron-right.svg.js +1 -0
- package/esm/plugins/ai-assistant-pro/icons/shield.svg.js +1 -0
- package/esm/plugins/ai-assistant-pro/icons/tool-bolt.svg.js +1 -0
- package/esm/plugins/ai-assistant-pro/interface/artifacts.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/conversations.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/events.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/messages.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/options.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/requests.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/state.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/storage.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/tools.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/interface/types.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/langs/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/apply-format/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/apply-format/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/apply-format/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/insert-html/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/insert-html/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/read-blocks/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/read-blocks/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/read-document/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/read-document/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/read-document/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/read-selection/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/read-selection/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/replace-block/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/replace-block/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/replace-block/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/replace-in-document/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/replace-in-document/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/replace-selection/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/replace-selection/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/write-document/definition.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/tools/write-document/executor.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/conversation-list/conversation-list-item.d.ts +11 -1
- package/esm/plugins/ai-assistant-pro/ui/conversation-list/conversation-list-item.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/conversation-list/conversation-list.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/input-area/input-area.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/main-panel/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +11 -0
- package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.js +2 -2
- package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/message-list/item/message-list-item.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/message-list/item/message-list-item.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/permission-request/permission-request.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/permission-request/permission-request.js +7 -4
- package/esm/plugins/ai-assistant-pro/ui/settings-button/index.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +5 -0
- package/esm/plugins/ai-assistant-pro/ui/welcome-screen/welcome-screen.d.ts +5 -0
- package/esm/plugins/all.d.ts +2 -2
- package/esm/plugins/finder/helpers/loading-manager.js +1 -1
- package/esm/plugins/highlight-signature/config.d.ts +5 -0
- package/esm/plugins/index.d.ts +2 -2
- package/esm/plugins/translate/replace-text-fragments.d.ts +5 -0
- package/examples/assets/app.js +3 -3
- package/package.json +1 -1
- package/types/core/ui/helpers/index.d.ts +4 -2
- package/types/core/ui/helpers/list-reconciler.d.ts +4 -2
- package/types/core/ui/helpers/reconcilable-ui-list.d.ts +4 -2
- package/types/plugins/ai-assistant-pro/ai-assistant-pro.d.ts +10 -0
- package/types/plugins/ai-assistant-pro/core/ai-response-handler.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/arg-utils.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/block-utils.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/conversation.d.ts +15 -1
- package/types/plugins/ai-assistant-pro/core/event-handlers.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/message-builder.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/panel-resize.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/selection-context.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/storage-helpers.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/theme.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/core/tool-execution.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/helpers/api-client.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/helpers/base64tofile.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/helpers/permission-manager.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/helpers/state-manager.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/helpers/storage/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/helpers/storage/webstorage-storage.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/helpers/tool-registry.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/artifacts.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/conversations.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/events.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/messages.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/options.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/requests.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/state.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/storage.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/tools.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/interface/types.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/langs/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/apply-format/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/apply-format/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/apply-format/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/insert-html/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/insert-html/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/read-blocks/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/read-blocks/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/read-document/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/read-document/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/read-document/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/read-selection/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/read-selection/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/replace-block/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/replace-block/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/replace-block/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/replace-in-document/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/replace-in-document/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/replace-selection/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/replace-selection/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/write-document/definition.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/tools/write-document/executor.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/conversation-list/conversation-list-item.d.ts +11 -1
- package/types/plugins/ai-assistant-pro/ui/conversation-list/conversation-list.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/main-panel/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +11 -0
- package/types/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/message-list/item/message-list-item.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/permission-request/permission-request.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/settings-button/index.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +5 -0
- package/types/plugins/ai-assistant-pro/ui/welcome-screen/welcome-screen.d.ts +5 -0
- package/types/plugins/highlight-signature/config.d.ts +5 -0
- package/types/plugins/index.d.ts +2 -2
- package/types/plugins/translate/replace-text-fragments.d.ts +5 -0
|
@@ -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.22
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -39,6 +39,13 @@ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\
|
|
|
39
39
|
|
|
40
40
|
/***/ }),
|
|
41
41
|
|
|
42
|
+
/***/ 83207:
|
|
43
|
+
/***/ (function(module) {
|
|
44
|
+
|
|
45
|
+
module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path d=\"M9 18l6-6-6-6\"/> </svg>"
|
|
46
|
+
|
|
47
|
+
/***/ }),
|
|
48
|
+
|
|
42
49
|
/***/ 99219:
|
|
43
50
|
/***/ (function(module) {
|
|
44
51
|
|
|
@@ -46,6 +53,20 @@ module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\
|
|
|
46
53
|
|
|
47
54
|
/***/ }),
|
|
48
55
|
|
|
56
|
+
/***/ 63674:
|
|
57
|
+
/***/ (function(module) {
|
|
58
|
+
|
|
59
|
+
module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"/> </svg>"
|
|
60
|
+
|
|
61
|
+
/***/ }),
|
|
62
|
+
|
|
63
|
+
/***/ 4133:
|
|
64
|
+
/***/ (function(module) {
|
|
65
|
+
|
|
66
|
+
module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path d=\"M13 2L4 14h6l-1 8 9-12h-6z\"/> </svg>"
|
|
67
|
+
|
|
68
|
+
/***/ }),
|
|
69
|
+
|
|
49
70
|
/***/ 62357:
|
|
50
71
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
51
72
|
|
|
@@ -188,7 +209,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
188
209
|
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2692);
|
|
189
210
|
/* harmony import */ var jodit_pro_traits_flight_position_flight_position__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(18549);
|
|
190
211
|
/* harmony import */ var jodit_pro_traits_resize_resize__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(54747);
|
|
191
|
-
|
|
212
|
+
/*!
|
|
213
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
214
|
+
* See LICENSE.md in the project root for license information.
|
|
215
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
216
|
+
*/
|
|
192
217
|
|
|
193
218
|
|
|
194
219
|
|
|
@@ -300,6 +325,25 @@ class aiAssistantPro extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_15__
|
|
|
300
325
|
// Just for init getter
|
|
301
326
|
this.mainPanel.setMod('ready', true);
|
|
302
327
|
await (0,_core__WEBPACK_IMPORTED_MODULE_9__.loadInitialData)(this.j, this.storage, this.stateManager);
|
|
328
|
+
// Restore pending tool calls from stored conversation
|
|
329
|
+
await this.restorePendingToolCalls();
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Restore pending tool calls after loading a conversation from storage.
|
|
333
|
+
* Scans messages for tool calls with non-terminal status and
|
|
334
|
+
* re-runs handleToolCalls to show the permission dialog.
|
|
335
|
+
*/ async restorePendingToolCalls() {
|
|
336
|
+
const conversation = this.stateManager.getCurrentConversation();
|
|
337
|
+
if (!conversation) {
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
const messagesWithPending = (0,_core__WEBPACK_IMPORTED_MODULE_9__.findMessagesWithPendingToolCalls)(conversation);
|
|
341
|
+
if (messagesWithPending.length === 0) {
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
for (const message of messagesWithPending){
|
|
345
|
+
await this.handleToolCalls(message.id);
|
|
346
|
+
}
|
|
303
347
|
}
|
|
304
348
|
/**
|
|
305
349
|
* Setup event listeners
|
|
@@ -327,6 +371,11 @@ class aiAssistantPro extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_15__
|
|
|
327
371
|
await this.__loadData();
|
|
328
372
|
await this.deleteConversation(id);
|
|
329
373
|
});
|
|
374
|
+
// Rename conversation
|
|
375
|
+
this.j.e.on('renameConversation.ai-assistant-pro', async (id, newTitle)=>{
|
|
376
|
+
await this.__loadData();
|
|
377
|
+
await this.renameConversation(id, newTitle);
|
|
378
|
+
});
|
|
330
379
|
// Back to list
|
|
331
380
|
this.j.e.on('backToList.ai-assistant-pro', async ()=>{
|
|
332
381
|
await this.__loadData();
|
|
@@ -726,6 +775,27 @@ ${selectedText}`.trim();
|
|
|
726
775
|
await this.__loadData();
|
|
727
776
|
await (0,_core__WEBPACK_IMPORTED_MODULE_9__.deleteConversationWithCleanup)(this.j, conversationId, this.storage, this.stateManager, this.permissionManager);
|
|
728
777
|
}
|
|
778
|
+
/**
|
|
779
|
+
* Rename conversation
|
|
780
|
+
*/ async renameConversation(conversationId, newTitle) {
|
|
781
|
+
const conversation = await this.storage.get(conversationId);
|
|
782
|
+
if (!conversation) {
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
785
|
+
const updated = {
|
|
786
|
+
...conversation,
|
|
787
|
+
title: newTitle,
|
|
788
|
+
updated: Date.now()
|
|
789
|
+
};
|
|
790
|
+
await this.storage.save(updated);
|
|
791
|
+
// Update current conversation if it's the one being renamed
|
|
792
|
+
if (this.state.currentConversation?.id === conversationId) {
|
|
793
|
+
this.stateManager.setCurrentConversation(updated);
|
|
794
|
+
}
|
|
795
|
+
// Refresh conversation list
|
|
796
|
+
const conversations = await this.storage.list();
|
|
797
|
+
this.stateManager.setConversations(conversations);
|
|
798
|
+
}
|
|
729
799
|
/**
|
|
730
800
|
* Search conversations
|
|
731
801
|
*/ async searchConversations(query) {
|
|
@@ -747,8 +817,13 @@ ${selectedText}`.trim();
|
|
|
747
817
|
if (!toolCalls || toolCalls.length === 0) {
|
|
748
818
|
return;
|
|
749
819
|
}
|
|
750
|
-
|
|
751
|
-
|
|
820
|
+
// Filter out tool calls that already have a terminal status
|
|
821
|
+
// This makes handleToolCalls safe to call on restored conversations
|
|
822
|
+
const nonTerminalToolCalls = toolCalls.filter((tc)=>!(0,_core__WEBPACK_IMPORTED_MODULE_9__.isTerminalToolCallStatus)(tc.status));
|
|
823
|
+
if (nonTerminalToolCalls.length === 0) {
|
|
824
|
+
return;
|
|
825
|
+
}
|
|
826
|
+
const { approved, needsPermission } = this.permissionManager.filterToolCalls(nonTerminalToolCalls, conversation.permissions);
|
|
752
827
|
// Set pending tool calls for UI
|
|
753
828
|
this.stateManager.setPendingToolCalls(needsPermission);
|
|
754
829
|
// Execute approved tools (pass depth)
|
|
@@ -759,7 +834,6 @@ ${selectedText}`.trim();
|
|
|
759
834
|
/**
|
|
760
835
|
* Execute a tool call
|
|
761
836
|
*/ async executeToolCall(messageId, toolCall, depth = 0) {
|
|
762
|
-
await this.__loadData();
|
|
763
837
|
let conversation = this.stateManager.getCurrentConversation();
|
|
764
838
|
if (!conversation) {
|
|
765
839
|
return;
|
|
@@ -1003,13 +1077,26 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_16__.JoditPro.plugins.add('aiAssist
|
|
|
1003
1077
|
/* harmony import */ var _icons_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_icons_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2__);
|
|
1004
1078
|
/* harmony import */ var _icons_ai_commands_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75966);
|
|
1005
1079
|
/* harmony import */ var _icons_ai_commands_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_icons_ai_commands_svg__WEBPACK_IMPORTED_MODULE_3__);
|
|
1006
|
-
/* harmony import */ var
|
|
1007
|
-
/* harmony import */ var
|
|
1008
|
-
/* harmony import */ var
|
|
1009
|
-
/* harmony import */ var
|
|
1010
|
-
/* harmony import */ var
|
|
1011
|
-
/* harmony import */ var
|
|
1012
|
-
/* harmony import */ var
|
|
1080
|
+
/* harmony import */ var _icons_chevron_right_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83207);
|
|
1081
|
+
/* harmony import */ var _icons_chevron_right_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_icons_chevron_right_svg__WEBPACK_IMPORTED_MODULE_4__);
|
|
1082
|
+
/* harmony import */ var _icons_send_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(99219);
|
|
1083
|
+
/* harmony import */ var _icons_send_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_icons_send_svg__WEBPACK_IMPORTED_MODULE_5__);
|
|
1084
|
+
/* harmony import */ var _icons_shield_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63674);
|
|
1085
|
+
/* harmony import */ var _icons_shield_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_icons_shield_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
1086
|
+
/* harmony import */ var _icons_tool_bolt_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4133);
|
|
1087
|
+
/* harmony import */ var _icons_tool_bolt_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_icons_tool_bolt_svg__WEBPACK_IMPORTED_MODULE_7__);
|
|
1088
|
+
/* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(53835);
|
|
1089
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(6441);
|
|
1090
|
+
/* harmony import */ var jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(12153);
|
|
1091
|
+
/* harmony import */ var jodit_esm_plugins_ai_assistant_config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(31974);
|
|
1092
|
+
/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(72573);
|
|
1093
|
+
/*!
|
|
1094
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1095
|
+
* See LICENSE.md in the project root for license information.
|
|
1096
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1097
|
+
*/
|
|
1098
|
+
|
|
1099
|
+
|
|
1013
1100
|
|
|
1014
1101
|
|
|
1015
1102
|
|
|
@@ -1021,9 +1108,9 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_16__.JoditPro.plugins.add('aiAssist
|
|
|
1021
1108
|
|
|
1022
1109
|
|
|
1023
1110
|
// Register icons
|
|
1024
|
-
|
|
1111
|
+
jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__.Icon.set('ai-assistant-pro', (_icons_ai_assistant_svg__WEBPACK_IMPORTED_MODULE_2___default())).set('ai-commands-pro', (_icons_ai_commands_svg__WEBPACK_IMPORTED_MODULE_3___default())).set('ai-add-context', (_icons_add_context_svg__WEBPACK_IMPORTED_MODULE_1___default())).set('send', (_icons_send_svg__WEBPACK_IMPORTED_MODULE_5___default())).set('tool-bolt', (_icons_tool_bolt_svg__WEBPACK_IMPORTED_MODULE_7___default())).set('chevron-right', (_icons_chevron_right_svg__WEBPACK_IMPORTED_MODULE_4___default())).set('shield', (_icons_shield_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
1025
1112
|
// Default configuration
|
|
1026
|
-
|
|
1113
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_9__.Config.prototype.aiAssistantPro = {
|
|
1027
1114
|
// ===== Display Settings =====
|
|
1028
1115
|
displayMode: 'right',
|
|
1029
1116
|
panelWidth: 400,
|
|
@@ -1039,7 +1126,7 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.aiAssistantPro =
|
|
|
1039
1126
|
retryDelay: 1000,
|
|
1040
1127
|
maxRecursionToolCallDepth: 1000,
|
|
1041
1128
|
// ===== Tools Configuration =====
|
|
1042
|
-
enabledTools: (0,
|
|
1129
|
+
enabledTools: (0,_tools__WEBPACK_IMPORTED_MODULE_8__.getToolNames)(),
|
|
1043
1130
|
customTools: [],
|
|
1044
1131
|
toolPermissions: {},
|
|
1045
1132
|
// ===== Permission Settings =====
|
|
@@ -1078,7 +1165,7 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.aiAssistantPro =
|
|
|
1078
1165
|
},
|
|
1079
1166
|
formatMessageContent: (content, role)=>{
|
|
1080
1167
|
// For user and assistant messages, use markdown
|
|
1081
|
-
return
|
|
1168
|
+
return marked__WEBPACK_IMPORTED_MODULE_12__.marked.parse(content, {
|
|
1082
1169
|
breaks: true,
|
|
1083
1170
|
gfm: true
|
|
1084
1171
|
});
|
|
@@ -1147,7 +1234,7 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.aiAssistantPro =
|
|
|
1147
1234
|
};
|
|
1148
1235
|
/**
|
|
1149
1236
|
* Main AI Assistant Pro control for toolbar
|
|
1150
|
-
*/
|
|
1237
|
+
*/ jodit_esm_config__WEBPACK_IMPORTED_MODULE_9__.Config.prototype.controls.aiAssistantPro = {
|
|
1151
1238
|
icon: 'ai-assistant-pro',
|
|
1152
1239
|
tooltip: 'AI Assistant',
|
|
1153
1240
|
/**
|
|
@@ -1182,7 +1269,7 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.aiAssistantPro =
|
|
|
1182
1269
|
};
|
|
1183
1270
|
/**
|
|
1184
1271
|
* Add Context control for context menu (adds selection to AI context)
|
|
1185
|
-
*/
|
|
1272
|
+
*/ jodit_esm_config__WEBPACK_IMPORTED_MODULE_9__.Config.prototype.controls.aiAddContext = {
|
|
1186
1273
|
icon: 'ai-add-context',
|
|
1187
1274
|
tooltip: 'Add to AI Context',
|
|
1188
1275
|
/**
|
|
@@ -1204,7 +1291,7 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.aiAssistantPro =
|
|
|
1204
1291
|
};
|
|
1205
1292
|
/**
|
|
1206
1293
|
* AI Commands control - quick AI commands dropdown
|
|
1207
|
-
*/
|
|
1294
|
+
*/ jodit_esm_config__WEBPACK_IMPORTED_MODULE_9__.Config.prototype.controls.aiCommandsPro = {
|
|
1208
1295
|
icon: 'ai-commands-pro',
|
|
1209
1296
|
tooltip: 'AI Commands',
|
|
1210
1297
|
/**
|
|
@@ -1214,7 +1301,7 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.aiAssistantPro =
|
|
|
1214
1301
|
},
|
|
1215
1302
|
/**
|
|
1216
1303
|
* Default list of commands (can be overridden via quickCommands config)
|
|
1217
|
-
*/ list:
|
|
1304
|
+
*/ list: jodit_esm_plugins_ai_assistant_config__WEBPACK_IMPORTED_MODULE_11__.aiAssitentCommands,
|
|
1218
1305
|
/**
|
|
1219
1306
|
* Execute handler - fires event with command name
|
|
1220
1307
|
*/ exec (editor, event, { control }) {
|
|
@@ -1223,7 +1310,7 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.aiAssistantPro =
|
|
|
1223
1310
|
};
|
|
1224
1311
|
/**
|
|
1225
1312
|
* Extend tune-block popup to include "Add to AI Context" option
|
|
1226
|
-
*/ const originalTuneBlockPopup =
|
|
1313
|
+
*/ const originalTuneBlockPopup = jodit_esm_config__WEBPACK_IMPORTED_MODULE_9__.Config.prototype.tuneBlock?.popup || {};
|
|
1227
1314
|
// Add AI context option to all block types
|
|
1228
1315
|
const tuneBlockExtension = {};
|
|
1229
1316
|
// Common block types
|
|
@@ -1264,8 +1351,8 @@ blockTypes.forEach((tag)=>{
|
|
|
1264
1351
|
];
|
|
1265
1352
|
});
|
|
1266
1353
|
// Merge with existing tune-block configuration
|
|
1267
|
-
if (
|
|
1268
|
-
|
|
1354
|
+
if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_9__.Config.prototype.tuneBlock) {
|
|
1355
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_9__.Config.prototype.tuneBlock.popup = {
|
|
1269
1356
|
...originalTuneBlockPopup,
|
|
1270
1357
|
...tuneBlockExtension
|
|
1271
1358
|
};
|
|
@@ -1282,7 +1369,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1282
1369
|
/* harmony export */ throwIfAborted: function() { return /* binding */ throwIfAborted; }
|
|
1283
1370
|
/* harmony export */ });
|
|
1284
1371
|
/* harmony import */ var jodit_esm_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93661);
|
|
1285
|
-
|
|
1372
|
+
/*!
|
|
1373
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1374
|
+
* See LICENSE.md in the project root for license information.
|
|
1375
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1376
|
+
*/
|
|
1286
1377
|
/**
|
|
1287
1378
|
* Throw AbortError if signal is already aborted.
|
|
1288
1379
|
*/ function throwIfAborted(signal) {
|
|
@@ -1304,7 +1395,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1304
1395
|
/* harmony export */ processStreamingResponse: function() { return /* binding */ processStreamingResponse; }
|
|
1305
1396
|
/* harmony export */ });
|
|
1306
1397
|
/* harmony import */ var _message_builder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61558);
|
|
1307
|
-
|
|
1398
|
+
/*!
|
|
1399
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1400
|
+
* See LICENSE.md in the project root for license information.
|
|
1401
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1402
|
+
*/
|
|
1308
1403
|
/**
|
|
1309
1404
|
* Process streaming AI response
|
|
1310
1405
|
*/ async function processStreamingResponse(stateManager, result, conversation) {
|
|
@@ -1420,7 +1515,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1420
1515
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1421
1516
|
/* harmony export */ requireString: function() { return /* binding */ requireString; }
|
|
1422
1517
|
/* harmony export */ });
|
|
1423
|
-
|
|
1518
|
+
/*!
|
|
1519
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1520
|
+
* See LICENSE.md in the project root for license information.
|
|
1521
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1522
|
+
*/ /**
|
|
1424
1523
|
* Ensure argument exists and is a string. Throws with a consistent message.
|
|
1425
1524
|
*/ function requireString(args, name, options = {}) {
|
|
1426
1525
|
const value = args[name];
|
|
@@ -1442,7 +1541,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1442
1541
|
/* harmony export */ resolveBlock: function() { return /* binding */ resolveBlock; }
|
|
1443
1542
|
/* harmony export */ });
|
|
1444
1543
|
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22732);
|
|
1445
|
-
|
|
1544
|
+
/*!
|
|
1545
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1546
|
+
* See LICENSE.md in the project root for license information.
|
|
1547
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1548
|
+
*/
|
|
1446
1549
|
/**
|
|
1447
1550
|
* Resolve block element either by selector or by index within the editor root.
|
|
1448
1551
|
* Throws descriptive errors for invalid input or missing elements.
|
|
@@ -1498,10 +1601,16 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1498
1601
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1499
1602
|
/* harmony export */ areAllToolCallsExecuted: function() { return /* binding */ areAllToolCallsExecuted; },
|
|
1500
1603
|
/* harmony export */ createNewConversation: function() { return /* binding */ createNewConversation; },
|
|
1501
|
-
/* harmony export */
|
|
1604
|
+
/* harmony export */ findMessagesWithPendingToolCalls: function() { return /* binding */ findMessagesWithPendingToolCalls; },
|
|
1605
|
+
/* harmony export */ findParentMessageId: function() { return /* binding */ findParentMessageId; },
|
|
1606
|
+
/* harmony export */ isTerminalToolCallStatus: function() { return /* binding */ isTerminalToolCallStatus; }
|
|
1502
1607
|
/* harmony export */ });
|
|
1503
1608
|
/* harmony import */ var _helpers_storage_webstorage_storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21064);
|
|
1504
|
-
|
|
1609
|
+
/*!
|
|
1610
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1611
|
+
* See LICENSE.md in the project root for license information.
|
|
1612
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1613
|
+
*/
|
|
1505
1614
|
/**
|
|
1506
1615
|
* Create new conversation
|
|
1507
1616
|
*/ function createNewConversation(jodit, defaultModel, defaultTemperature, messages = []) {
|
|
@@ -1531,6 +1640,16 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1531
1640
|
}
|
|
1532
1641
|
return null;
|
|
1533
1642
|
}
|
|
1643
|
+
const TERMINAL_STATUSES = new Set([
|
|
1644
|
+
'executed',
|
|
1645
|
+
'denied',
|
|
1646
|
+
'error'
|
|
1647
|
+
]);
|
|
1648
|
+
/**
|
|
1649
|
+
* Check if a tool call status is terminal (no further action needed)
|
|
1650
|
+
*/ function isTerminalToolCallStatus(status) {
|
|
1651
|
+
return TERMINAL_STATUSES.has(status);
|
|
1652
|
+
}
|
|
1534
1653
|
/**
|
|
1535
1654
|
* Check if all tool calls have been executed
|
|
1536
1655
|
*/ function areAllToolCallsExecuted(conversation) {
|
|
@@ -1538,7 +1657,13 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1538
1657
|
if (!lastMessage?.toolCalls) {
|
|
1539
1658
|
return false;
|
|
1540
1659
|
}
|
|
1541
|
-
return lastMessage.toolCalls.every((tc)=>tc.status
|
|
1660
|
+
return lastMessage.toolCalls.every((tc)=>isTerminalToolCallStatus(tc.status));
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* Find messages that have tool calls with non-terminal status
|
|
1664
|
+
* Used to restore pending tool call state after page refresh
|
|
1665
|
+
*/ function findMessagesWithPendingToolCalls(conversation) {
|
|
1666
|
+
return conversation.messages.filter((msg)=>msg.toolCalls && msg.toolCalls.length > 0 && msg.toolCalls.some((tc)=>!isTerminalToolCallStatus(tc.status)));
|
|
1542
1667
|
}
|
|
1543
1668
|
|
|
1544
1669
|
|
|
@@ -1557,7 +1682,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1557
1682
|
/* harmony export */ });
|
|
1558
1683
|
/* harmony import */ var _tool_execution__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(79078);
|
|
1559
1684
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
|
|
1560
|
-
|
|
1685
|
+
/*!
|
|
1686
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1687
|
+
* See LICENSE.md in the project root for license information.
|
|
1688
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1689
|
+
*/
|
|
1561
1690
|
|
|
1562
1691
|
// import { setToolCallDenied } from './tool-execution';
|
|
1563
1692
|
/**
|
|
@@ -1691,6 +1820,7 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1691
1820
|
/* harmony export */ createUserMessage: function() { return /* reexport safe */ _message_builder__WEBPACK_IMPORTED_MODULE_3__.createUserMessage; },
|
|
1692
1821
|
/* harmony export */ deleteConversationWithCleanup: function() { return /* reexport safe */ _storage_helpers__WEBPACK_IMPORTED_MODULE_6__.deleteConversationWithCleanup; },
|
|
1693
1822
|
/* harmony export */ executeToolCall: function() { return /* reexport safe */ _tool_execution__WEBPACK_IMPORTED_MODULE_8__.executeToolCall; },
|
|
1823
|
+
/* harmony export */ findMessagesWithPendingToolCalls: function() { return /* reexport safe */ _conversation__WEBPACK_IMPORTED_MODULE_1__.findMessagesWithPendingToolCalls; },
|
|
1694
1824
|
/* harmony export */ findParentMessageId: function() { return /* reexport safe */ _conversation__WEBPACK_IMPORTED_MODULE_1__.findParentMessageId; },
|
|
1695
1825
|
/* harmony export */ getCurrentSelectionContext: function() { return /* reexport safe */ _selection_context__WEBPACK_IMPORTED_MODULE_5__.getCurrentSelectionContext; },
|
|
1696
1826
|
/* harmony export */ handleBackToList: function() { return /* reexport safe */ _event_handlers__WEBPACK_IMPORTED_MODULE_2__.handleBackToList; },
|
|
@@ -1699,6 +1829,7 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1699
1829
|
/* harmony export */ handleToolApproval: function() { return /* reexport safe */ _event_handlers__WEBPACK_IMPORTED_MODULE_2__.handleToolApproval; },
|
|
1700
1830
|
/* harmony export */ handleToolDenial: function() { return /* reexport safe */ _event_handlers__WEBPACK_IMPORTED_MODULE_2__.handleToolDenial; },
|
|
1701
1831
|
/* harmony export */ invertMode: function() { return /* reexport safe */ _panel_resize__WEBPACK_IMPORTED_MODULE_4__.invertMode; },
|
|
1832
|
+
/* harmony export */ isTerminalToolCallStatus: function() { return /* reexport safe */ _conversation__WEBPACK_IMPORTED_MODULE_1__.isTerminalToolCallStatus; },
|
|
1702
1833
|
/* harmony export */ loadInitialData: function() { return /* reexport safe */ _storage_helpers__WEBPACK_IMPORTED_MODULE_6__.loadInitialData; },
|
|
1703
1834
|
/* harmony export */ processArtifacts: function() { return /* reexport safe */ _ai_response_handler__WEBPACK_IMPORTED_MODULE_0__.processArtifacts; },
|
|
1704
1835
|
/* harmony export */ processFinalResponse: function() { return /* reexport safe */ _ai_response_handler__WEBPACK_IMPORTED_MODULE_0__.processFinalResponse; },
|
|
@@ -1715,7 +1846,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1715
1846
|
/* harmony import */ var _storage_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(56110);
|
|
1716
1847
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53014);
|
|
1717
1848
|
/* harmony import */ var _tool_execution__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(79078);
|
|
1718
|
-
|
|
1849
|
+
/*!
|
|
1850
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1851
|
+
* See LICENSE.md in the project root for license information.
|
|
1852
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1853
|
+
*/
|
|
1719
1854
|
|
|
1720
1855
|
|
|
1721
1856
|
|
|
@@ -1739,7 +1874,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1739
1874
|
/* harmony export */ uploadArtifacts: function() { return /* binding */ uploadArtifacts; }
|
|
1740
1875
|
/* harmony export */ });
|
|
1741
1876
|
/* harmony import */ var _helpers_storage_webstorage_storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21064);
|
|
1742
|
-
|
|
1877
|
+
/*!
|
|
1878
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1879
|
+
* See LICENSE.md in the project root for license information.
|
|
1880
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1881
|
+
*/
|
|
1743
1882
|
/**
|
|
1744
1883
|
* Create user message
|
|
1745
1884
|
*/ function createUserMessage(content) {
|
|
@@ -1799,7 +1938,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1799
1938
|
/* harmony export */ resizeInPanelView: function() { return /* binding */ resizeInPanelView; }
|
|
1800
1939
|
/* harmony export */ });
|
|
1801
1940
|
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41180);
|
|
1802
|
-
|
|
1941
|
+
/*!
|
|
1942
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1943
|
+
* See LICENSE.md in the project root for license information.
|
|
1944
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1945
|
+
*/
|
|
1803
1946
|
/**
|
|
1804
1947
|
* Invert panel mode (left <-> right, top <-> bottom)
|
|
1805
1948
|
*/ function invertMode(mode) {
|
|
@@ -1839,7 +1982,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1839
1982
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1840
1983
|
/* harmony export */ getCurrentSelectionContext: function() { return /* binding */ getCurrentSelectionContext; }
|
|
1841
1984
|
/* harmony export */ });
|
|
1842
|
-
|
|
1985
|
+
/*!
|
|
1986
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1987
|
+
* See LICENSE.md in the project root for license information.
|
|
1988
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1989
|
+
*/ /**
|
|
1843
1990
|
* Add current selection to context
|
|
1844
1991
|
*/ function getCurrentSelectionContext(jodit) {
|
|
1845
1992
|
if (jodit.s.isCollapsed()) {
|
|
@@ -1870,7 +2017,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1870
2017
|
/* harmony export */ loadInitialData: function() { return /* binding */ loadInitialData; }
|
|
1871
2018
|
/* harmony export */ });
|
|
1872
2019
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
1873
|
-
|
|
2020
|
+
/*!
|
|
2021
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2022
|
+
* See LICENSE.md in the project root for license information.
|
|
2023
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
2024
|
+
*/
|
|
1874
2025
|
/**
|
|
1875
2026
|
* Delete conversation from storage and update state
|
|
1876
2027
|
*/ async function deleteConversationWithCleanup(jodit, conversationId, storage, stateManager, permissionManager) {
|
|
@@ -1946,7 +2097,11 @@ if (jodit_esm_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.tuneBlock) {
|
|
|
1946
2097
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1947
2098
|
/* harmony export */ applyTheme: function() { return /* binding */ applyTheme; }
|
|
1948
2099
|
/* harmony export */ });
|
|
1949
|
-
|
|
2100
|
+
/*!
|
|
2101
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2102
|
+
* See LICENSE.md in the project root for license information.
|
|
2103
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
2104
|
+
*/ const DARK_THEME = [
|
|
1950
2105
|
'jodit_theme_dark',
|
|
1951
2106
|
'jodit-ai-assistant-pro_theme_dark',
|
|
1952
2107
|
'jodit-dialog_theme_dark'
|
|
@@ -1991,7 +2146,11 @@ const LIGHT_THEME = [
|
|
|
1991
2146
|
/* harmony export */ executeToolCall: function() { return /* binding */ executeToolCall; },
|
|
1992
2147
|
/* harmony export */ updateToolCallInMessage: function() { return /* binding */ updateToolCallInMessage; }
|
|
1993
2148
|
/* harmony export */ });
|
|
1994
|
-
|
|
2149
|
+
/*!
|
|
2150
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2151
|
+
* See LICENSE.md in the project root for license information.
|
|
2152
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
2153
|
+
*/ /**
|
|
1995
2154
|
* Execute a tool call and add result to conversation
|
|
1996
2155
|
*/ async function executeToolCall(jodit, toolCall, toolRegistry) {
|
|
1997
2156
|
let newToolCall;
|
|
@@ -2051,7 +2210,11 @@ function updateToolCallInMessage(message, updatedToolCall) {
|
|
|
2051
2210
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
2052
2211
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82758);
|
|
2053
2212
|
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
2054
|
-
|
|
2213
|
+
/*!
|
|
2214
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2215
|
+
* See LICENSE.md in the project root for license information.
|
|
2216
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
2217
|
+
*/
|
|
2055
2218
|
|
|
2056
2219
|
|
|
2057
2220
|
/**
|
|
@@ -2289,8 +2452,12 @@ function updateToolCallInMessage(message, updatedToolCall) {
|
|
|
2289
2452
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2290
2453
|
/* harmony export */ base64ToFile: function() { return /* binding */ base64ToFile; }
|
|
2291
2454
|
/* harmony export */ });
|
|
2292
|
-
|
|
2293
|
-
|
|
2455
|
+
/*!
|
|
2456
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2457
|
+
* See LICENSE.md in the project root for license information.
|
|
2458
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
2459
|
+
*/ function base64ToFile(base64, filename, mimeType = 'image/png') {
|
|
2460
|
+
const binary = atob(base64);
|
|
2294
2461
|
const len = binary.length;
|
|
2295
2462
|
const bytes = new Uint8Array(len);
|
|
2296
2463
|
for(let i = 0; i < len; i++){
|
|
@@ -2319,7 +2486,11 @@ function base64ToFile(base64, filename, mimeType = 'image/png') {
|
|
|
2319
2486
|
/* harmony export */ PermissionManager: function() { return /* binding */ PermissionManager; }
|
|
2320
2487
|
/* harmony export */ });
|
|
2321
2488
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
2322
|
-
|
|
2489
|
+
/*!
|
|
2490
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2491
|
+
* See LICENSE.md in the project root for license information.
|
|
2492
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
2493
|
+
*/
|
|
2323
2494
|
/**
|
|
2324
2495
|
* Permission Manager - handles tool execution permissions
|
|
2325
2496
|
*/ class PermissionManager {
|
|
@@ -2546,7 +2717,11 @@ function base64ToFile(base64, filename, mimeType = 'image/png') {
|
|
|
2546
2717
|
/* harmony export */ StateManager: function() { return /* binding */ StateManager; }
|
|
2547
2718
|
/* harmony export */ });
|
|
2548
2719
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
2549
|
-
|
|
2720
|
+
/*!
|
|
2721
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2722
|
+
* See LICENSE.md in the project root for license information.
|
|
2723
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
2724
|
+
*/
|
|
2550
2725
|
/**
|
|
2551
2726
|
* State Manager - reactive state management
|
|
2552
2727
|
*/ class StateManager {
|
|
@@ -2825,7 +3000,11 @@ function base64ToFile(base64, filename, mimeType = 'image/png') {
|
|
|
2825
3000
|
/* harmony export */ createStorageProvider: function() { return /* reexport safe */ _webstorage_storage__WEBPACK_IMPORTED_MODULE_0__.createStorageProvider; }
|
|
2826
3001
|
/* harmony export */ });
|
|
2827
3002
|
/* harmony import */ var _webstorage_storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21064);
|
|
2828
|
-
|
|
3003
|
+
/*!
|
|
3004
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3005
|
+
* See LICENSE.md in the project root for license information.
|
|
3006
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3007
|
+
*/
|
|
2829
3008
|
|
|
2830
3009
|
|
|
2831
3010
|
/***/ }),
|
|
@@ -2843,7 +3022,11 @@ function base64ToFile(base64, filename, mimeType = 'image/png') {
|
|
|
2843
3022
|
/* unused harmony export generateToolCallId */
|
|
2844
3023
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
2845
3024
|
/* harmony import */ var jodit_esm_core_storage_async_storage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(97333);
|
|
2846
|
-
|
|
3025
|
+
/*!
|
|
3026
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3027
|
+
* See LICENSE.md in the project root for license information.
|
|
3028
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3029
|
+
*/
|
|
2847
3030
|
|
|
2848
3031
|
/**
|
|
2849
3032
|
* Unified web storage implementation using Jodit's storage providers
|
|
@@ -3084,7 +3267,11 @@ function base64ToFile(base64, filename, mimeType = 'image/png') {
|
|
|
3084
3267
|
/* harmony export */ });
|
|
3085
3268
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
3086
3269
|
/* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53835);
|
|
3087
|
-
|
|
3270
|
+
/*!
|
|
3271
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3272
|
+
* See LICENSE.md in the project root for license information.
|
|
3273
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3274
|
+
*/
|
|
3088
3275
|
|
|
3089
3276
|
/**
|
|
3090
3277
|
* Tool Registry - manages available tools and their execution
|
|
@@ -3244,7 +3431,11 @@ function base64ToFile(base64, filename, mimeType = 'image/png') {
|
|
|
3244
3431
|
/***/ 26612:
|
|
3245
3432
|
/***/ (function(module) {
|
|
3246
3433
|
|
|
3247
|
-
|
|
3434
|
+
/*!
|
|
3435
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3436
|
+
* See LICENSE.md in the project root for license information.
|
|
3437
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3438
|
+
*/ module.exports = {
|
|
3248
3439
|
// Plugin name
|
|
3249
3440
|
'AI Assistant': 'AI Assistant',
|
|
3250
3441
|
'AI Assistant Pro': 'AI Assistant Pro',
|
|
@@ -3336,7 +3527,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3336
3527
|
/* harmony import */ var _en_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_en_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
3337
3528
|
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41324);
|
|
3338
3529
|
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
3339
|
-
|
|
3530
|
+
/*!
|
|
3531
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3532
|
+
* See LICENSE.md in the project root for license information.
|
|
3533
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3534
|
+
*/
|
|
3340
3535
|
|
|
3341
3536
|
|
|
3342
3537
|
|
|
@@ -3354,7 +3549,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3354
3549
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
3355
3550
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
3356
3551
|
/* harmony export */ });
|
|
3357
|
-
|
|
3552
|
+
/*!
|
|
3553
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3554
|
+
* See LICENSE.md in the project root for license information.
|
|
3555
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3556
|
+
*/ const name = 'applyFormat';
|
|
3358
3557
|
const description = 'Apply or remove inline formatting to the current selection (bold, italic, underline, etc.) or to a specific block';
|
|
3359
3558
|
const parameters = [
|
|
3360
3559
|
{
|
|
@@ -3403,7 +3602,11 @@ const requiresPermission = true;
|
|
|
3403
3602
|
/* harmony export */ });
|
|
3404
3603
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
3405
3604
|
/* harmony import */ var _core_block_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44526);
|
|
3406
|
-
|
|
3605
|
+
/*!
|
|
3606
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3607
|
+
* See LICENSE.md in the project root for license information.
|
|
3608
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3609
|
+
*/
|
|
3407
3610
|
|
|
3408
3611
|
/**
|
|
3409
3612
|
* Apply or remove inline formatting to the current selection or specific block
|
|
@@ -3464,7 +3667,11 @@ const requiresPermission = true;
|
|
|
3464
3667
|
"use strict";
|
|
3465
3668
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73943);
|
|
3466
3669
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19127);
|
|
3467
|
-
|
|
3670
|
+
/*!
|
|
3671
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3672
|
+
* See LICENSE.md in the project root for license information.
|
|
3673
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3674
|
+
*/
|
|
3468
3675
|
|
|
3469
3676
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
3470
3677
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -3492,7 +3699,11 @@ const requiresPermission = true;
|
|
|
3492
3699
|
/* harmony import */ var _replace_in_document__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12570);
|
|
3493
3700
|
/* harmony import */ var _replace_selection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(95323);
|
|
3494
3701
|
/* harmony import */ var _write_document__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97603);
|
|
3495
|
-
|
|
3702
|
+
/*!
|
|
3703
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3704
|
+
* See LICENSE.md in the project root for license information.
|
|
3705
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3706
|
+
*/
|
|
3496
3707
|
|
|
3497
3708
|
|
|
3498
3709
|
|
|
@@ -3548,7 +3759,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3548
3759
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
3549
3760
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
3550
3761
|
/* harmony export */ });
|
|
3551
|
-
|
|
3762
|
+
/*!
|
|
3763
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3764
|
+
* See LICENSE.md in the project root for license information.
|
|
3765
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3766
|
+
*/ const name = 'insertHTML';
|
|
3552
3767
|
const description = 'Insert or replace HTML content at the current cursor position in the editor';
|
|
3553
3768
|
const parameters = [
|
|
3554
3769
|
{
|
|
@@ -3579,7 +3794,11 @@ const requiresPermission = true;
|
|
|
3579
3794
|
/* harmony export */ });
|
|
3580
3795
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
3581
3796
|
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
3582
|
-
|
|
3797
|
+
/*!
|
|
3798
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3799
|
+
* See LICENSE.md in the project root for license information.
|
|
3800
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3801
|
+
*/
|
|
3583
3802
|
|
|
3584
3803
|
/**
|
|
3585
3804
|
* Insert or replace HTML at cursor position
|
|
@@ -3623,7 +3842,11 @@ const requiresPermission = true;
|
|
|
3623
3842
|
"use strict";
|
|
3624
3843
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56732);
|
|
3625
3844
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39592);
|
|
3626
|
-
|
|
3845
|
+
/*!
|
|
3846
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3847
|
+
* See LICENSE.md in the project root for license information.
|
|
3848
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3849
|
+
*/
|
|
3627
3850
|
|
|
3628
3851
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
3629
3852
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -3644,7 +3867,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3644
3867
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
3645
3868
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
3646
3869
|
/* harmony export */ });
|
|
3647
|
-
|
|
3870
|
+
/*!
|
|
3871
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3872
|
+
* See LICENSE.md in the project root for license information.
|
|
3873
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3874
|
+
*/ const name = 'readBlocks';
|
|
3648
3875
|
const description = 'Read blocks from the editor with optional filtering and pagination';
|
|
3649
3876
|
const parameters = [
|
|
3650
3877
|
{
|
|
@@ -3681,7 +3908,11 @@ const requiresPermission = false;
|
|
|
3681
3908
|
/* harmony export */ });
|
|
3682
3909
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
3683
3910
|
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
3684
|
-
|
|
3911
|
+
/*!
|
|
3912
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3913
|
+
* See LICENSE.md in the project root for license information.
|
|
3914
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3915
|
+
*/
|
|
3685
3916
|
|
|
3686
3917
|
/**
|
|
3687
3918
|
* Read blocks from the editor with optional filtering and pagination
|
|
@@ -3730,7 +3961,11 @@ const requiresPermission = false;
|
|
|
3730
3961
|
"use strict";
|
|
3731
3962
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75352);
|
|
3732
3963
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91140);
|
|
3733
|
-
|
|
3964
|
+
/*!
|
|
3965
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3966
|
+
* See LICENSE.md in the project root for license information.
|
|
3967
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3968
|
+
*/
|
|
3734
3969
|
|
|
3735
3970
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
3736
3971
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -3751,7 +3986,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3751
3986
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
3752
3987
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
3753
3988
|
/* harmony export */ });
|
|
3754
|
-
|
|
3989
|
+
/*!
|
|
3990
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3991
|
+
* See LICENSE.md in the project root for license information.
|
|
3992
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3993
|
+
*/ const name = 'readDocument';
|
|
3755
3994
|
const description = 'Read the entire content of the editor document in HTML format';
|
|
3756
3995
|
const parameters = [
|
|
3757
3996
|
{
|
|
@@ -3789,7 +4028,11 @@ const requiresPermission = false;
|
|
|
3789
4028
|
/* harmony export */ });
|
|
3790
4029
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
3791
4030
|
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22732);
|
|
3792
|
-
|
|
4031
|
+
/*!
|
|
4032
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4033
|
+
* See LICENSE.md in the project root for license information.
|
|
4034
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4035
|
+
*/
|
|
3793
4036
|
|
|
3794
4037
|
/**
|
|
3795
4038
|
* Read entire editor content in HTML format
|
|
@@ -3839,7 +4082,11 @@ const requiresPermission = false;
|
|
|
3839
4082
|
"use strict";
|
|
3840
4083
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93809);
|
|
3841
4084
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28157);
|
|
3842
|
-
|
|
4085
|
+
/*!
|
|
4086
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4087
|
+
* See LICENSE.md in the project root for license information.
|
|
4088
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4089
|
+
*/
|
|
3843
4090
|
|
|
3844
4091
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
3845
4092
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -3860,7 +4107,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3860
4107
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
3861
4108
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
3862
4109
|
/* harmony export */ });
|
|
3863
|
-
|
|
4110
|
+
/*!
|
|
4111
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4112
|
+
* See LICENSE.md in the project root for license information.
|
|
4113
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4114
|
+
*/ const name = 'readSelection';
|
|
3864
4115
|
const description = 'Get information about the current selection including HTML content and optional context';
|
|
3865
4116
|
const parameters = [
|
|
3866
4117
|
{
|
|
@@ -3891,7 +4142,11 @@ const requiresPermission = false;
|
|
|
3891
4142
|
/* harmony export */ execute: function() { return /* binding */ execute; }
|
|
3892
4143
|
/* harmony export */ });
|
|
3893
4144
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
3894
|
-
|
|
4145
|
+
/*!
|
|
4146
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4147
|
+
* See LICENSE.md in the project root for license information.
|
|
4148
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4149
|
+
*/
|
|
3895
4150
|
/**
|
|
3896
4151
|
* Get current selection information with optional context
|
|
3897
4152
|
*/ async function execute(jodit, args, signal) {
|
|
@@ -3938,7 +4193,11 @@ const requiresPermission = false;
|
|
|
3938
4193
|
"use strict";
|
|
3939
4194
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52826);
|
|
3940
4195
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85130);
|
|
3941
|
-
|
|
4196
|
+
/*!
|
|
4197
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4198
|
+
* See LICENSE.md in the project root for license information.
|
|
4199
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4200
|
+
*/
|
|
3942
4201
|
|
|
3943
4202
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
3944
4203
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -3959,7 +4218,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3959
4218
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
3960
4219
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
3961
4220
|
/* harmony export */ });
|
|
3962
|
-
|
|
4221
|
+
/*!
|
|
4222
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4223
|
+
* See LICENSE.md in the project root for license information.
|
|
4224
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4225
|
+
*/ const name = 'replaceBlock';
|
|
3963
4226
|
const description = 'Replace a specific block in the document by its index or CSS selector with new HTML content';
|
|
3964
4227
|
const parameters = [
|
|
3965
4228
|
{
|
|
@@ -3997,7 +4260,11 @@ const requiresPermission = true;
|
|
|
3997
4260
|
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
3998
4261
|
/* harmony import */ var _core_block_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44526);
|
|
3999
4262
|
/* harmony import */ var jodit_esm_core_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22732);
|
|
4000
|
-
|
|
4263
|
+
/*!
|
|
4264
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4265
|
+
* See LICENSE.md in the project root for license information.
|
|
4266
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4267
|
+
*/
|
|
4001
4268
|
|
|
4002
4269
|
|
|
4003
4270
|
|
|
@@ -4045,7 +4312,11 @@ const requiresPermission = true;
|
|
|
4045
4312
|
"use strict";
|
|
4046
4313
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96675);
|
|
4047
4314
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3091);
|
|
4048
|
-
|
|
4315
|
+
/*!
|
|
4316
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4317
|
+
* See LICENSE.md in the project root for license information.
|
|
4318
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4319
|
+
*/
|
|
4049
4320
|
|
|
4050
4321
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
4051
4322
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -4066,7 +4337,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4066
4337
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
4067
4338
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
4068
4339
|
/* harmony export */ });
|
|
4069
|
-
|
|
4340
|
+
/*!
|
|
4341
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4342
|
+
* See LICENSE.md in the project root for license information.
|
|
4343
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4344
|
+
*/ const name = 'replaceInDocument';
|
|
4070
4345
|
const description = 'Find and replace text or HTML patterns throughout the entire document';
|
|
4071
4346
|
const parameters = [
|
|
4072
4347
|
{
|
|
@@ -4109,7 +4384,11 @@ const requiresPermission = true;
|
|
|
4109
4384
|
/* harmony export */ });
|
|
4110
4385
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
4111
4386
|
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
4112
|
-
|
|
4387
|
+
/*!
|
|
4388
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4389
|
+
* See LICENSE.md in the project root for license information.
|
|
4390
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4391
|
+
*/
|
|
4113
4392
|
|
|
4114
4393
|
function replaceInSelectedElements(jodit, search, replace, useRegex, useSelector, signal) {
|
|
4115
4394
|
const elements = jodit.editor.querySelectorAll(useSelector);
|
|
@@ -4227,7 +4506,11 @@ function replaceInDocument(jodit, content, search, replace, useRegex, signal) {
|
|
|
4227
4506
|
"use strict";
|
|
4228
4507
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62553);
|
|
4229
4508
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56293);
|
|
4230
|
-
|
|
4509
|
+
/*!
|
|
4510
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4511
|
+
* See LICENSE.md in the project root for license information.
|
|
4512
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4513
|
+
*/
|
|
4231
4514
|
|
|
4232
4515
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
4233
4516
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -4248,7 +4531,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4248
4531
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
4249
4532
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
4250
4533
|
/* harmony export */ });
|
|
4251
|
-
|
|
4534
|
+
/*!
|
|
4535
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4536
|
+
* See LICENSE.md in the project root for license information.
|
|
4537
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4538
|
+
*/ const name = 'replaceSelection';
|
|
4252
4539
|
const description = 'Replace the current selection with new HTML content';
|
|
4253
4540
|
const parameters = [
|
|
4254
4541
|
{
|
|
@@ -4279,7 +4566,11 @@ const requiresPermission = true;
|
|
|
4279
4566
|
/* harmony export */ });
|
|
4280
4567
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
4281
4568
|
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
4282
|
-
|
|
4569
|
+
/*!
|
|
4570
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4571
|
+
* See LICENSE.md in the project root for license information.
|
|
4572
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4573
|
+
*/
|
|
4283
4574
|
|
|
4284
4575
|
/**
|
|
4285
4576
|
* Replace the current selection with new HTML content
|
|
@@ -4316,7 +4607,11 @@ const requiresPermission = true;
|
|
|
4316
4607
|
"use strict";
|
|
4317
4608
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70750);
|
|
4318
4609
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36142);
|
|
4319
|
-
|
|
4610
|
+
/*!
|
|
4611
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4612
|
+
* See LICENSE.md in the project root for license information.
|
|
4613
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4614
|
+
*/
|
|
4320
4615
|
|
|
4321
4616
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
4322
4617
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -4337,7 +4632,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4337
4632
|
/* harmony export */ parameters: function() { return /* binding */ parameters; },
|
|
4338
4633
|
/* harmony export */ requiresPermission: function() { return /* binding */ requiresPermission; }
|
|
4339
4634
|
/* harmony export */ });
|
|
4340
|
-
|
|
4635
|
+
/*!
|
|
4636
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4637
|
+
* See LICENSE.md in the project root for license information.
|
|
4638
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4639
|
+
*/ const name = 'writeDocument';
|
|
4341
4640
|
const description = 'Write (replace) the entire document content with new HTML';
|
|
4342
4641
|
const parameters = [
|
|
4343
4642
|
{
|
|
@@ -4361,7 +4660,11 @@ const requiresPermission = true;
|
|
|
4361
4660
|
/* harmony export */ });
|
|
4362
4661
|
/* harmony import */ var _core_abort_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6689);
|
|
4363
4662
|
/* harmony import */ var _core_arg_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49459);
|
|
4364
|
-
|
|
4663
|
+
/*!
|
|
4664
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4665
|
+
* See LICENSE.md in the project root for license information.
|
|
4666
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4667
|
+
*/
|
|
4365
4668
|
|
|
4366
4669
|
/**
|
|
4367
4670
|
* Set Document Tool Executor
|
|
@@ -4393,7 +4696,11 @@ const requiresPermission = true;
|
|
|
4393
4696
|
"use strict";
|
|
4394
4697
|
/* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(90022);
|
|
4395
4698
|
/* harmony import */ var _executor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79766);
|
|
4396
|
-
|
|
4699
|
+
/*!
|
|
4700
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4701
|
+
* See LICENSE.md in the project root for license information.
|
|
4702
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4703
|
+
*/
|
|
4397
4704
|
|
|
4398
4705
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
4399
4706
|
..._definition__WEBPACK_IMPORTED_MODULE_0__,
|
|
@@ -4415,8 +4722,12 @@ const requiresPermission = true;
|
|
|
4415
4722
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65478);
|
|
4416
4723
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
4417
4724
|
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62843);
|
|
4418
|
-
/* harmony import */ var
|
|
4419
|
-
|
|
4725
|
+
/* harmony import */ var jodit_esm_modules_context_menu_context_menu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80870);
|
|
4726
|
+
/*!
|
|
4727
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4728
|
+
* See LICENSE.md in the project root for license information.
|
|
4729
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4730
|
+
*/
|
|
4420
4731
|
|
|
4421
4732
|
|
|
4422
4733
|
|
|
@@ -4453,6 +4764,7 @@ class UIConversationListItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_
|
|
|
4453
4764
|
const content = this.j.c.div('jodit-ui-conversation-list__item-content');
|
|
4454
4765
|
const title = this.j.c.div('jodit-ui-conversation-list__item-title');
|
|
4455
4766
|
title.textContent = this.conversation.title;
|
|
4767
|
+
this.titleElement = title;
|
|
4456
4768
|
content.appendChild(title);
|
|
4457
4769
|
if (this.opts.showTimestamps) {
|
|
4458
4770
|
const meta = this.j.c.div('jodit-ui-conversation-list__item-meta');
|
|
@@ -4467,48 +4779,121 @@ class UIConversationListItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_
|
|
|
4467
4779
|
contentWrapper.appendChild(badge);
|
|
4468
4780
|
}
|
|
4469
4781
|
item.appendChild(contentWrapper);
|
|
4470
|
-
//
|
|
4471
|
-
if (!this.
|
|
4472
|
-
this.
|
|
4782
|
+
// Actions "..." button
|
|
4783
|
+
if (!this.actionsButton) {
|
|
4784
|
+
this.actionsButton = new jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_4__.UIButton(this.j, {
|
|
4473
4785
|
icon: {
|
|
4474
|
-
name: '
|
|
4786
|
+
name: 'dots'
|
|
4475
4787
|
},
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4788
|
+
tooltip: 'Actions',
|
|
4789
|
+
name: 'conversationActions',
|
|
4790
|
+
size: 'tiny'
|
|
4479
4791
|
});
|
|
4480
|
-
this.
|
|
4481
|
-
this.
|
|
4792
|
+
this.actionsButton.container.classList.add('jodit-ui-conversation-list__item-actions');
|
|
4793
|
+
this.actionsButton.onAction((e)=>{
|
|
4482
4794
|
e.stopPropagation();
|
|
4483
|
-
this.
|
|
4795
|
+
this.showActionsMenu(e);
|
|
4484
4796
|
});
|
|
4485
4797
|
}
|
|
4486
|
-
item.appendChild(this.
|
|
4798
|
+
item.appendChild(this.actionsButton.container);
|
|
4487
4799
|
}
|
|
4488
4800
|
onClick() {
|
|
4801
|
+
if (this.isRenaming) {
|
|
4802
|
+
return;
|
|
4803
|
+
}
|
|
4489
4804
|
this.j.e.fire('selectConversation.ai-assistant-pro', this.conversation.id);
|
|
4490
4805
|
}
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4806
|
+
showActionsMenu(event) {
|
|
4807
|
+
if (!this.contextMenu || !this.actionsButton) return;
|
|
4808
|
+
const actions = [
|
|
4809
|
+
{
|
|
4810
|
+
title: 'Rename',
|
|
4811
|
+
icon: 'pencil',
|
|
4812
|
+
exec: ()=>{
|
|
4813
|
+
this.startInlineRename();
|
|
4814
|
+
}
|
|
4815
|
+
},
|
|
4816
|
+
{
|
|
4817
|
+
title: 'Delete',
|
|
4818
|
+
icon: 'bin',
|
|
4819
|
+
exec: ()=>{
|
|
4820
|
+
this.onDelete();
|
|
4821
|
+
}
|
|
4822
|
+
}
|
|
4823
|
+
];
|
|
4824
|
+
const buttonRect = this.actionsButton.container.getBoundingClientRect();
|
|
4825
|
+
this.contextMenu.show(buttonRect.left, buttonRect.bottom, actions);
|
|
4826
|
+
event.stopPropagation();
|
|
4827
|
+
}
|
|
4828
|
+
startInlineRename() {
|
|
4829
|
+
if (this.isRenaming || !this.titleElement) {
|
|
4830
|
+
return;
|
|
4831
|
+
}
|
|
4832
|
+
this.isRenaming = true;
|
|
4833
|
+
const titleEl = this.titleElement;
|
|
4834
|
+
const currentTitle = this.conversation.title;
|
|
4835
|
+
const input = this.j.c.element('input');
|
|
4836
|
+
input.type = 'text';
|
|
4837
|
+
input.value = currentTitle;
|
|
4838
|
+
input.className = 'jodit-ui-conversation-list__item-title-input';
|
|
4839
|
+
titleEl.textContent = '';
|
|
4840
|
+
titleEl.appendChild(input);
|
|
4841
|
+
input.focus();
|
|
4842
|
+
input.select();
|
|
4843
|
+
const commit = ()=>{
|
|
4844
|
+
if (!this.isRenaming) {
|
|
4845
|
+
return;
|
|
4846
|
+
}
|
|
4847
|
+
const newTitle = input.value.trim();
|
|
4848
|
+
this.isRenaming = false;
|
|
4849
|
+
if (newTitle && newTitle !== currentTitle) {
|
|
4850
|
+
titleEl.textContent = newTitle;
|
|
4851
|
+
this.j.e.fire('renameConversation.ai-assistant-pro', this.conversation.id, newTitle);
|
|
4852
|
+
} else {
|
|
4853
|
+
titleEl.textContent = currentTitle;
|
|
4495
4854
|
}
|
|
4855
|
+
};
|
|
4856
|
+
this.j.e.on(input, 'blur', commit);
|
|
4857
|
+
this.j.e.on(input, 'keydown', (e)=>{
|
|
4858
|
+
if (e.key === 'Enter') {
|
|
4859
|
+
e.preventDefault();
|
|
4860
|
+
input.blur();
|
|
4861
|
+
}
|
|
4862
|
+
if (e.key === 'Escape') {
|
|
4863
|
+
this.isRenaming = false;
|
|
4864
|
+
titleEl.textContent = currentTitle;
|
|
4865
|
+
}
|
|
4866
|
+
});
|
|
4867
|
+
// Prevent click on input from navigating to conversation
|
|
4868
|
+
this.j.e.on(input, 'click', (e)=>{
|
|
4869
|
+
e.stopPropagation();
|
|
4496
4870
|
});
|
|
4497
4871
|
}
|
|
4872
|
+
onDelete() {
|
|
4873
|
+
this.j.e.fire('deleteConversation.ai-assistant-pro', this.conversation.id);
|
|
4874
|
+
}
|
|
4498
4875
|
destruct() {
|
|
4499
|
-
this.
|
|
4876
|
+
this.actionsButton?.destruct();
|
|
4877
|
+
this.contextMenu?.destruct();
|
|
4500
4878
|
super.destruct();
|
|
4501
4879
|
}
|
|
4502
4880
|
constructor(view, conversation, isActive = false, opts){
|
|
4503
|
-
super(view), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "opts", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "conversation", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "isActive", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "
|
|
4881
|
+
super(view), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "opts", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "conversation", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "isActive", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "actionsButton", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "contextMenu", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "titleElement", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "isRenaming", void 0), this.opts = opts, this.actionsButton = null, this.contextMenu = null, this.titleElement = null, this.isRenaming = false;
|
|
4504
4882
|
this.conversation = conversation;
|
|
4505
4883
|
this.isActive = isActive;
|
|
4884
|
+
this.contextMenu = new jodit_esm_modules_context_menu_context_menu__WEBPACK_IMPORTED_MODULE_5__.ContextMenu(this.j);
|
|
4506
4885
|
this.updateContent();
|
|
4507
4886
|
}
|
|
4508
4887
|
}
|
|
4509
4888
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
4510
4889
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('container:click')
|
|
4511
4890
|
], UIConversationListItem.prototype, "onClick", null);
|
|
4891
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
4892
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
4893
|
+
], UIConversationListItem.prototype, "showActionsMenu", null);
|
|
4894
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
4895
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
4896
|
+
], UIConversationListItem.prototype, "startInlineRename", null);
|
|
4512
4897
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
4513
4898
|
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
4514
4899
|
], UIConversationListItem.prototype, "onDelete", null);
|
|
@@ -4533,7 +4918,11 @@ UIConversationListItem = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1_
|
|
|
4533
4918
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65478);
|
|
4534
4919
|
/* harmony import */ var jodit_esm_core_ui_form_inputs_input_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80256);
|
|
4535
4920
|
/* harmony import */ var jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62405);
|
|
4536
|
-
|
|
4921
|
+
/*!
|
|
4922
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4923
|
+
* See LICENSE.md in the project root for license information.
|
|
4924
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
4925
|
+
*/
|
|
4537
4926
|
|
|
4538
4927
|
|
|
4539
4928
|
|
|
@@ -4690,7 +5079,11 @@ UIConversationList = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__
|
|
|
4690
5079
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67510);
|
|
4691
5080
|
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62843);
|
|
4692
5081
|
/* harmony import */ var jodit_esm_core_ui_form_inputs_area_area__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85120);
|
|
4693
|
-
|
|
5082
|
+
/*!
|
|
5083
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
5084
|
+
* See LICENSE.md in the project root for license information.
|
|
5085
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5086
|
+
*/
|
|
4694
5087
|
|
|
4695
5088
|
|
|
4696
5089
|
|
|
@@ -4747,7 +5140,7 @@ class UIInputArea extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__.UIEleme
|
|
|
4747
5140
|
icon: {
|
|
4748
5141
|
name: 'send'
|
|
4749
5142
|
},
|
|
4750
|
-
variant: '
|
|
5143
|
+
variant: 'initial',
|
|
4751
5144
|
size: 'middle'
|
|
4752
5145
|
});
|
|
4753
5146
|
// Stop button
|
|
@@ -4905,7 +5298,11 @@ UIInputArea = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorat
|
|
|
4905
5298
|
/* harmony export */ UIMainPanel: function() { return /* reexport safe */ _main_panel__WEBPACK_IMPORTED_MODULE_0__.UIMainPanel; }
|
|
4906
5299
|
/* harmony export */ });
|
|
4907
5300
|
/* harmony import */ var _main_panel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51251);
|
|
4908
|
-
|
|
5301
|
+
/*!
|
|
5302
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
5303
|
+
* See LICENSE.md in the project root for license information.
|
|
5304
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5305
|
+
*/
|
|
4909
5306
|
|
|
4910
5307
|
|
|
4911
5308
|
/***/ }),
|
|
@@ -4929,6 +5326,12 @@ UIInputArea = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorat
|
|
|
4929
5326
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(2748);
|
|
4930
5327
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(67510);
|
|
4931
5328
|
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62843);
|
|
5329
|
+
/* harmony import */ var jodit_esm_modules_context_menu_context_menu__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(80870);
|
|
5330
|
+
/*!
|
|
5331
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
5332
|
+
* See LICENSE.md in the project root for license information.
|
|
5333
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5334
|
+
*/
|
|
4932
5335
|
|
|
4933
5336
|
|
|
4934
5337
|
|
|
@@ -4971,8 +5374,10 @@ class UIMainPanel extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__.UIElem
|
|
|
4971
5374
|
addResize() {}
|
|
4972
5375
|
afterRender() {
|
|
4973
5376
|
this.content = this.getElm('content');
|
|
5377
|
+
this.headerContextMenu = new jodit_esm_modules_context_menu_context_menu__WEBPACK_IMPORTED_MODULE_12__.ContextMenu(this.j);
|
|
4974
5378
|
this.createComponents();
|
|
4975
5379
|
this.createHeaderButtons();
|
|
5380
|
+
this.setupConversationRenameHandler();
|
|
4976
5381
|
this.__updateView('welcome');
|
|
4977
5382
|
}
|
|
4978
5383
|
async __onChangeView() {
|
|
@@ -5006,6 +5411,18 @@ class UIMainPanel extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__.UIElem
|
|
|
5006
5411
|
this.j.e.fire('backToList.ai-assistant-pro');
|
|
5007
5412
|
});
|
|
5008
5413
|
headerLeft.appendChild(backButton.container);
|
|
5414
|
+
// Conversation actions "..." button (visible only in conversation view)
|
|
5415
|
+
this.conversationActionsButton = new jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_11__.UIButton(this.j, {
|
|
5416
|
+
icon: {
|
|
5417
|
+
name: 'dots'
|
|
5418
|
+
},
|
|
5419
|
+
size: 'small',
|
|
5420
|
+
tooltip: 'Conversation actions',
|
|
5421
|
+
variant: 'initial'
|
|
5422
|
+
});
|
|
5423
|
+
this.conversationActionsButton.container.classList.add(this.getFullElName('conversation-actions-button'));
|
|
5424
|
+
this.conversationActionsButton.onAction(this.showConversationActionsMenu);
|
|
5425
|
+
headerRight.appendChild(this.conversationActionsButton.container);
|
|
5009
5426
|
// New conversation button
|
|
5010
5427
|
const newButton = new jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_11__.UIButton(this.j, {
|
|
5011
5428
|
icon: {
|
|
@@ -5049,6 +5466,70 @@ class UIMainPanel extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__.UIElem
|
|
|
5049
5466
|
});
|
|
5050
5467
|
headerRight.appendChild(closeButton.container);
|
|
5051
5468
|
}
|
|
5469
|
+
setupConversationRenameHandler() {
|
|
5470
|
+
// no-op: rename is handled inline in conversation list items
|
|
5471
|
+
}
|
|
5472
|
+
showConversationActionsMenu(event) {
|
|
5473
|
+
if (!this.headerContextMenu || !this.state.currentConversation) {
|
|
5474
|
+
return;
|
|
5475
|
+
}
|
|
5476
|
+
const conv = this.state.currentConversation;
|
|
5477
|
+
const actions = [
|
|
5478
|
+
{
|
|
5479
|
+
title: 'Rename',
|
|
5480
|
+
icon: 'pencil',
|
|
5481
|
+
exec: ()=>{
|
|
5482
|
+
this.showRenamePrompt(conv.id, conv.title || this.j.i18n('Conversation'));
|
|
5483
|
+
}
|
|
5484
|
+
},
|
|
5485
|
+
{
|
|
5486
|
+
title: 'Delete',
|
|
5487
|
+
icon: 'bin',
|
|
5488
|
+
exec: ()=>{
|
|
5489
|
+
this.j.e.fire('deleteConversation.ai-assistant-pro', conv.id);
|
|
5490
|
+
}
|
|
5491
|
+
}
|
|
5492
|
+
];
|
|
5493
|
+
const buttonRect = this.conversationActionsButton.container.getBoundingClientRect();
|
|
5494
|
+
this.headerContextMenu.show(buttonRect.left, buttonRect.bottom, actions);
|
|
5495
|
+
event.stopPropagation();
|
|
5496
|
+
}
|
|
5497
|
+
showRenamePrompt(id, currentTitle) {
|
|
5498
|
+
if (this.isEditingTitle) {
|
|
5499
|
+
return;
|
|
5500
|
+
}
|
|
5501
|
+
this.isEditingTitle = true;
|
|
5502
|
+
const headerTitle = this.getElm('header-title');
|
|
5503
|
+
const input = this.j.c.element('input');
|
|
5504
|
+
input.type = 'text';
|
|
5505
|
+
input.value = currentTitle;
|
|
5506
|
+
input.className = this.getFullElName('header-title-input');
|
|
5507
|
+
headerTitle.textContent = '';
|
|
5508
|
+
headerTitle.appendChild(input);
|
|
5509
|
+
input.focus();
|
|
5510
|
+
input.select();
|
|
5511
|
+
const commit = ()=>{
|
|
5512
|
+
const newTitle = input.value.trim();
|
|
5513
|
+
this.isEditingTitle = false;
|
|
5514
|
+
if (newTitle && newTitle !== currentTitle) {
|
|
5515
|
+
this.j.e.fire('renameConversation.ai-assistant-pro', id, newTitle);
|
|
5516
|
+
headerTitle.textContent = newTitle;
|
|
5517
|
+
} else {
|
|
5518
|
+
headerTitle.textContent = currentTitle;
|
|
5519
|
+
}
|
|
5520
|
+
};
|
|
5521
|
+
this.j.e.on(input, 'blur', commit);
|
|
5522
|
+
this.j.e.on(input, 'keydown', (e)=>{
|
|
5523
|
+
if (e.key === 'Enter') {
|
|
5524
|
+
e.preventDefault();
|
|
5525
|
+
input.blur();
|
|
5526
|
+
}
|
|
5527
|
+
if (e.key === 'Escape') {
|
|
5528
|
+
this.isEditingTitle = false;
|
|
5529
|
+
headerTitle.textContent = currentTitle;
|
|
5530
|
+
}
|
|
5531
|
+
});
|
|
5532
|
+
}
|
|
5052
5533
|
/**
|
|
5053
5534
|
* Check if current display mode is flight
|
|
5054
5535
|
*/ isFlightMode() {
|
|
@@ -5146,10 +5627,12 @@ class UIMainPanel extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__.UIElem
|
|
|
5146
5627
|
this.inputArea?.destruct();
|
|
5147
5628
|
this.permissionRequest?.destruct();
|
|
5148
5629
|
this.settingsButton?.destruct();
|
|
5630
|
+
this.conversationActionsButton?.destruct();
|
|
5631
|
+
this.headerContextMenu?.destruct();
|
|
5149
5632
|
super.destruct();
|
|
5150
5633
|
}
|
|
5151
5634
|
constructor(view, state, options, updateConversation){
|
|
5152
|
-
super(view), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "updateConversation", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "permissionRequest", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "settingsButton", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "content", void 0), this.state = state, this.options = options, this.updateConversation = updateConversation, this.permissionRequest = null, this.settingsButton = null;
|
|
5635
|
+
super(view), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "updateConversation", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "permissionRequest", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "settingsButton", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "content", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "isEditingTitle", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "conversationActionsButton", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "headerContextMenu", void 0), this.state = state, this.options = options, this.updateConversation = updateConversation, this.permissionRequest = null, this.settingsButton = null, this.isEditingTitle = false, this.conversationActionsButton = null, this.headerContextMenu = null;
|
|
5153
5636
|
}
|
|
5154
5637
|
}
|
|
5155
5638
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
@@ -5161,6 +5644,12 @@ class UIMainPanel extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_10__.UIElem
|
|
|
5161
5644
|
'state.currentConversation'
|
|
5162
5645
|
])
|
|
5163
5646
|
], UIMainPanel.prototype, "__onChangeView", null);
|
|
5647
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
5648
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_8__.autobind
|
|
5649
|
+
], UIMainPanel.prototype, "showConversationActionsMenu", null);
|
|
5650
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
5651
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_8__.autobind
|
|
5652
|
+
], UIMainPanel.prototype, "showRenamePrompt", null);
|
|
5164
5653
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
5165
5654
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_8__.watch)('state.currentConversation')
|
|
5166
5655
|
], UIMainPanel.prototype, "onChangeCurrentConversation", null);
|
|
@@ -5195,7 +5684,11 @@ UIMainPanel = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorat
|
|
|
5195
5684
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(65478);
|
|
5196
5685
|
/* harmony import */ var jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29960);
|
|
5197
5686
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67510);
|
|
5198
|
-
|
|
5687
|
+
/*!
|
|
5688
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
5689
|
+
* See LICENSE.md in the project root for license information.
|
|
5690
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5691
|
+
*/
|
|
5199
5692
|
|
|
5200
5693
|
|
|
5201
5694
|
|
|
@@ -5474,7 +5967,13 @@ UIArtifact = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate
|
|
|
5474
5967
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67510);
|
|
5475
5968
|
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62843);
|
|
5476
5969
|
/* harmony import */ var jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62405);
|
|
5477
|
-
/* harmony import */ var
|
|
5970
|
+
/* harmony import */ var jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12153);
|
|
5971
|
+
/* harmony import */ var jodit_esm_modules_context_menu_context_menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(80870);
|
|
5972
|
+
/*!
|
|
5973
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
5974
|
+
* See LICENSE.md in the project root for license information.
|
|
5975
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5976
|
+
*/
|
|
5478
5977
|
|
|
5479
5978
|
|
|
5480
5979
|
|
|
@@ -5492,7 +5991,7 @@ class UIMessageListItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__.U
|
|
|
5492
5991
|
}
|
|
5493
5992
|
onReady() {
|
|
5494
5993
|
this.updateContent();
|
|
5495
|
-
this.contextMenu = new
|
|
5994
|
+
this.contextMenu = new jodit_esm_modules_context_menu_context_menu__WEBPACK_IMPORTED_MODULE_8__.ContextMenu(this.j);
|
|
5496
5995
|
}
|
|
5497
5996
|
updateContent() {
|
|
5498
5997
|
const container = this.container;
|
|
@@ -5645,7 +6144,7 @@ class UIMessageListItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__.U
|
|
|
5645
6144
|
const header = this.j.c.div(this.getFullElName('tool-header'));
|
|
5646
6145
|
const icon = this.j.c.div(this.getFullElName('tool-icon'));
|
|
5647
6146
|
icon.classList.add(this.getFullElName('tool-icon', toolCall.status, true));
|
|
5648
|
-
icon.
|
|
6147
|
+
icon.innerHTML = jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_7__.Icon.get('tool-bolt') || '';
|
|
5649
6148
|
const name = this.j.c.div(this.getFullElName('tool-name'));
|
|
5650
6149
|
name.textContent = this.j.i18n(toolCall.name);
|
|
5651
6150
|
const status = this.j.c.div(this.getFullElName('tool-status'));
|
|
@@ -5673,7 +6172,12 @@ class UIMessageListItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__.U
|
|
|
5673
6172
|
type: 'button',
|
|
5674
6173
|
class: this.getFullElName('tool-expandable-toggle')
|
|
5675
6174
|
});
|
|
5676
|
-
|
|
6175
|
+
const chevronSpan = this.j.c.span(this.getFullElName('tool-expandable-chevron'));
|
|
6176
|
+
chevronSpan.innerHTML = jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_7__.Icon.get('chevron-right') || '';
|
|
6177
|
+
const titleSpan = this.j.c.span();
|
|
6178
|
+
titleSpan.textContent = this.j.i18n(title);
|
|
6179
|
+
toggle.appendChild(chevronSpan);
|
|
6180
|
+
toggle.appendChild(titleSpan);
|
|
5677
6181
|
const contentEl = this.j.c.element('pre', {
|
|
5678
6182
|
class: this.getFullElName('tool-expandable-content')
|
|
5679
6183
|
});
|
|
@@ -5683,10 +6187,10 @@ class UIMessageListItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__.U
|
|
|
5683
6187
|
const isCurrentlyExpanded = contentEl.style.display !== 'none';
|
|
5684
6188
|
if (isCurrentlyExpanded) {
|
|
5685
6189
|
contentEl.style.display = 'none';
|
|
5686
|
-
toggle.
|
|
6190
|
+
toggle.classList.remove('expanded');
|
|
5687
6191
|
} else {
|
|
5688
6192
|
contentEl.style.display = 'block';
|
|
5689
|
-
toggle.
|
|
6193
|
+
toggle.classList.add('expanded');
|
|
5690
6194
|
}
|
|
5691
6195
|
});
|
|
5692
6196
|
section.appendChild(toggle);
|
|
@@ -5697,14 +6201,14 @@ class UIMessageListItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__.U
|
|
|
5697
6201
|
* Get tool status text
|
|
5698
6202
|
*/ getToolStatusText(status) {
|
|
5699
6203
|
const statusMap = {
|
|
5700
|
-
pending: '
|
|
5701
|
-
approved: '
|
|
5702
|
-
denied: '
|
|
5703
|
-
executing: '
|
|
5704
|
-
executed: '
|
|
5705
|
-
error: '
|
|
6204
|
+
pending: 'pending',
|
|
6205
|
+
approved: 'approved',
|
|
6206
|
+
denied: 'denied',
|
|
6207
|
+
executing: 'running',
|
|
6208
|
+
executed: 'done',
|
|
6209
|
+
error: 'error'
|
|
5706
6210
|
};
|
|
5707
|
-
return statusMap[status] ||
|
|
6211
|
+
return statusMap[status] || status;
|
|
5708
6212
|
}
|
|
5709
6213
|
/**
|
|
5710
6214
|
* Format message content using custom formatter
|
|
@@ -5758,7 +6262,11 @@ UIMessageListItem = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__d
|
|
|
5758
6262
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65478);
|
|
5759
6263
|
/* harmony import */ var jodit_esm_core_ui_group_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62405);
|
|
5760
6264
|
/* harmony import */ var jodit_pro_core_ui_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31356);
|
|
5761
|
-
|
|
6265
|
+
/*!
|
|
6266
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6267
|
+
* See LICENSE.md in the project root for license information.
|
|
6268
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6269
|
+
*/
|
|
5762
6270
|
|
|
5763
6271
|
|
|
5764
6272
|
|
|
@@ -5895,6 +6403,12 @@ UIMessageList = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decor
|
|
|
5895
6403
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
5896
6404
|
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62843);
|
|
5897
6405
|
/* harmony import */ var jodit_esm_core_ui_form_inputs_select_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(12234);
|
|
6406
|
+
/* harmony import */ var jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12153);
|
|
6407
|
+
/*!
|
|
6408
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6409
|
+
* See LICENSE.md in the project root for license information.
|
|
6410
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6411
|
+
*/
|
|
5898
6412
|
|
|
5899
6413
|
|
|
5900
6414
|
|
|
@@ -5922,31 +6436,38 @@ class UIPermissionRequest extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__
|
|
|
5922
6436
|
<div class="&__title">~Permission Required~</div>
|
|
5923
6437
|
</div>
|
|
5924
6438
|
<div class="&__tool-info"></div>
|
|
5925
|
-
<div class="&__actions"
|
|
6439
|
+
<div class="&__actions">
|
|
6440
|
+
<div class="&__actions-buttons"></div>
|
|
6441
|
+
<div class="&__actions-scope"></div>
|
|
6442
|
+
</div>
|
|
5926
6443
|
</div>`;
|
|
5927
6444
|
}
|
|
5928
6445
|
afterRender() {
|
|
6446
|
+
// Set icon
|
|
6447
|
+
const iconEl = this.getElm('icon');
|
|
6448
|
+
if (iconEl) {
|
|
6449
|
+
iconEl.innerHTML = jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_6__.Icon.get('shield') || '';
|
|
6450
|
+
}
|
|
5929
6451
|
this.createControls();
|
|
5930
6452
|
this.updateContent();
|
|
5931
6453
|
}
|
|
5932
6454
|
createControls() {
|
|
5933
|
-
const
|
|
6455
|
+
const buttonsContainer = this.getElm('actions-buttons');
|
|
6456
|
+
const scopeContainer = this.getElm('actions-scope');
|
|
5934
6457
|
// Deny button
|
|
5935
6458
|
this.denyButton = new jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_4__.UIButton(this.j, {
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
size: 'small'
|
|
6459
|
+
text: this.j.i18n('Deny'),
|
|
6460
|
+
variant: 'initial',
|
|
6461
|
+
size: 'small',
|
|
6462
|
+
name: 'deny-permission'
|
|
5941
6463
|
});
|
|
5942
6464
|
this.j.e.on(this.denyButton, 'click', this.onDeny);
|
|
5943
6465
|
// Approve button
|
|
5944
6466
|
this.approveButton = new jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_4__.UIButton(this.j, {
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
size: 'small'
|
|
6467
|
+
text: this.j.i18n('Allow'),
|
|
6468
|
+
variant: 'initial',
|
|
6469
|
+
size: 'small',
|
|
6470
|
+
name: 'approve-permission'
|
|
5950
6471
|
});
|
|
5951
6472
|
this.j.e.on(this.approveButton, 'click', this.onApprove);
|
|
5952
6473
|
// Scope select
|
|
@@ -5968,9 +6489,9 @@ class UIPermissionRequest extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__
|
|
|
5968
6489
|
]
|
|
5969
6490
|
});
|
|
5970
6491
|
this.scopeSelect.value = this.state.defaultPermissionScope;
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
6492
|
+
buttonsContainer.appendChild(this.denyButton.container);
|
|
6493
|
+
buttonsContainer.appendChild(this.approveButton.container);
|
|
6494
|
+
scopeContainer.appendChild(this.scopeSelect.container);
|
|
5974
6495
|
}
|
|
5975
6496
|
updateContent() {
|
|
5976
6497
|
if (!this.toolCall) return;
|
|
@@ -6024,7 +6545,11 @@ UIPermissionRequest = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._
|
|
|
6024
6545
|
/* harmony export */ UISettingsButton: function() { return /* reexport safe */ _settings_button__WEBPACK_IMPORTED_MODULE_0__.UISettingsButton; }
|
|
6025
6546
|
/* harmony export */ });
|
|
6026
6547
|
/* harmony import */ var _settings_button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76697);
|
|
6027
|
-
|
|
6548
|
+
/*!
|
|
6549
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6550
|
+
* See LICENSE.md in the project root for license information.
|
|
6551
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6552
|
+
*/
|
|
6028
6553
|
|
|
6029
6554
|
|
|
6030
6555
|
/***/ }),
|
|
@@ -6043,7 +6568,11 @@ UIPermissionRequest = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__._
|
|
|
6043
6568
|
/* harmony import */ var jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37133);
|
|
6044
6569
|
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(48538);
|
|
6045
6570
|
/* harmony import */ var jodit_esm_modules_toolbar_button_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78644);
|
|
6046
|
-
|
|
6571
|
+
/*!
|
|
6572
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6573
|
+
* See LICENSE.md in the project root for license information.
|
|
6574
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6575
|
+
*/
|
|
6047
6576
|
|
|
6048
6577
|
|
|
6049
6578
|
|
|
@@ -6109,7 +6638,11 @@ UISettingsButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__de
|
|
|
6109
6638
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
6110
6639
|
/* harmony import */ var jodit_esm_core_ui_form_inputs_select_select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12234);
|
|
6111
6640
|
/* harmony import */ var jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62357);
|
|
6112
|
-
|
|
6641
|
+
/*!
|
|
6642
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6643
|
+
* See LICENSE.md in the project root for license information.
|
|
6644
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6645
|
+
*/
|
|
6113
6646
|
|
|
6114
6647
|
|
|
6115
6648
|
|
|
@@ -6250,7 +6783,11 @@ UIDialogSettings = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__de
|
|
|
6250
6783
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
6251
6784
|
/* harmony import */ var jodit_esm_core_ui_form_inputs_input_input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80256);
|
|
6252
6785
|
/* harmony import */ var jodit_esm_core_ui_form_inputs_select_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(12234);
|
|
6253
|
-
|
|
6786
|
+
/*!
|
|
6787
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6788
|
+
* See LICENSE.md in the project root for license information.
|
|
6789
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6790
|
+
*/
|
|
6254
6791
|
|
|
6255
6792
|
|
|
6256
6793
|
|
|
@@ -6436,7 +6973,11 @@ UIGlobalSettings = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__de
|
|
|
6436
6973
|
/* harmony import */ var _global_settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71102);
|
|
6437
6974
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65478);
|
|
6438
6975
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67510);
|
|
6439
|
-
|
|
6976
|
+
/*!
|
|
6977
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
6978
|
+
* See LICENSE.md in the project root for license information.
|
|
6979
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6980
|
+
*/
|
|
6440
6981
|
|
|
6441
6982
|
|
|
6442
6983
|
|
|
@@ -6538,7 +7079,11 @@ UISettingsPopup = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__dec
|
|
|
6538
7079
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
6539
7080
|
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
6540
7081
|
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67510);
|
|
6541
|
-
|
|
7082
|
+
/*!
|
|
7083
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
7084
|
+
* See LICENSE.md in the project root for license information.
|
|
7085
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
7086
|
+
*/
|
|
6542
7087
|
|
|
6543
7088
|
|
|
6544
7089
|
class UIWelcomeScreen extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__.UIElement {
|