Skip to content

Commit

Permalink
Fixed esm build
Browse files Browse the repository at this point in the history
Issue: #1105
  • Loading branch information
xdan committed Apr 9, 2024
1 parent 8cb952a commit fa3ce81
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
14 changes: 9 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
> - :house: [Internal]
> - :nail_care: [Polish]
## 4.1.7

- [Wrong generation of es5 bundle - polyfills missing #1105](https://github.com/xdan/jodit/issues/1105)

## 4.1.1

- Added plugin AI Assistant. https://github.com/xdan/jodit/pull/1088 Thanks @huizarmx
Expand Down Expand Up @@ -2533,11 +2537,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
- @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
modeClassName="select")
- ex: [
- { value: "", text: "" },
- { value: "val1", text: "text1" },
- { value: "val2", text: "text2" },
- { value: "val3", text: "text3" }
- ]
- { value: "", text: "" },
- { value: "val1", text: "text1" },
- { value: "val2", text: "text2" },
- { value: "val3", text: "text3" }
- ]
PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
##### New option `statusbar: boolean = true`
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import * as constants from './core/constants';
import * as decorators from './core/decorators';
import * as Modules from './modules/';
import * as Icons from './styles/icons/';
// JODIT-SECTION-END:POLYFILLS
import { Jodit as DefaultJodit } from './jodit';
import Languages from './languages';

Expand All @@ -35,6 +34,8 @@ if (
require('./polyfills');
}

// JODIT-SECTION-END:POLYFILLS

// copy constants in Jodit
Object.keys(constants).forEach((key: string) => {
(DefaultJodit as any)[key] = (constants as any)[key];
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/ai-assistant/ai-assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/

/**
* [[include:plugins/jodit-ai/README.md]]
* [[include:plugins/ai-assistant/README.md]]
* @packageDocumentation
* @module plugins/joditai
* @module plugins/ai-assistant
*/

import type { IJodit } from 'jodit/types';
Expand Down
13 changes: 7 additions & 6 deletions src/plugins/ai-assistant/ui/ui-ai-assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/

/**
* @module plugins/ai-assistant
*/

import type { IJodit, IUIButton } from 'jodit/types';
import { component } from 'jodit/core/decorators/component/component';
import watch from 'jodit/core/decorators/watch/watch';
Expand Down Expand Up @@ -75,12 +79,9 @@ export class UiAiAssistant extends UIElement<IJodit> {
onSubmit
);

this.__tryAgainButton = Button(
jodit,
'update',
'',
'initial'
).onAction(onSubmit);
this.__tryAgainButton = Button(jodit, 'update', '', 'initial').onAction(
onSubmit
);

this.promptInput = new UITextArea(jodit, {
name: 'prompt',
Expand Down

0 comments on commit fa3ce81

Please sign in to comment.