jodit 4.2.37 → 4.2.39

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +39 -5
  2. package/es2015/jodit.css +4 -3
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +43 -6
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +2 -2
  8. package/es2015/plugins/debug/debug.js +1 -1
  9. package/es2015/plugins/debug/debug.min.js +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  13. package/es2018/jodit.css +4 -3
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +2 -2
  16. package/es2018/jodit.js +43 -6
  17. package/es2018/jodit.min.css +1 -1
  18. package/es2018/jodit.min.js +2 -2
  19. package/es2018/plugins/debug/debug.js +1 -1
  20. package/es2018/plugins/debug/debug.min.js +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  22. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  23. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  24. package/es2021/jodit.css +4 -3
  25. package/es2021/jodit.fat.min.css +1 -1
  26. package/es2021/jodit.fat.min.js +2 -2
  27. package/es2021/jodit.js +42 -6
  28. package/es2021/jodit.min.css +1 -1
  29. package/es2021/jodit.min.js +2 -2
  30. package/es2021/plugins/debug/debug.js +1 -1
  31. package/es2021/plugins/debug/debug.min.js +1 -1
  32. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  33. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  34. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  35. package/es2021.en/jodit.css +4 -3
  36. package/es2021.en/jodit.fat.min.css +1 -1
  37. package/es2021.en/jodit.fat.min.js +2 -2
  38. package/es2021.en/jodit.js +42 -6
  39. package/es2021.en/jodit.min.css +1 -1
  40. package/es2021.en/jodit.min.js +2 -2
  41. package/es2021.en/plugins/debug/debug.js +1 -1
  42. package/es2021.en/plugins/debug/debug.min.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  45. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  46. package/es5/164.fat.min.js +2 -2
  47. package/es5/164.js +6 -6
  48. package/es5/164.min.js +2 -2
  49. package/es5/5.fat.min.js +1 -1
  50. package/es5/5.min.js +1 -1
  51. package/es5/jodit.css +4 -4
  52. package/es5/jodit.fat.min.css +1 -1
  53. package/es5/jodit.fat.min.js +2 -2
  54. package/es5/jodit.js +45 -6
  55. package/es5/jodit.min.css +3 -3
  56. package/es5/jodit.min.js +2 -2
  57. package/es5/plugins/debug/debug.js +1 -1
  58. package/es5/plugins/debug/debug.min.js +1 -1
  59. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  60. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  61. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  62. package/esm/core/constants.js +1 -1
  63. package/esm/core/ui/form/form.js +1 -0
  64. package/esm/core/ui/form/inputs/input/input.d.ts +1 -0
  65. package/esm/core/ui/form/inputs/input/input.js +13 -1
  66. package/package.json +1 -1
  67. package/types/core/ui/form/inputs/input/input.d.ts +1 -0
package/es2018/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.2.37
4
+ * Version: v4.2.39
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1735,7 +1735,7 @@ __webpack_require__.r(__webpack_exports__);
1735
1735
  * Released under MIT see LICENSE.txt in the project root for license information.
1736
1736
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1737
1737
  */
1738
- const APP_VERSION = "4.2.37";
1738
+ const APP_VERSION = "4.2.39";
1739
1739
  // prettier-ignore
1740
1740
  const ES = "es2018";
1741
1741
  const IS_ES_MODERN = true;
@@ -13887,6 +13887,7 @@ let UIForm = class UIForm extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
13887
13887
  const form = this.j.c.element('form');
13888
13888
  form.classList.add(this.componentName);
13889
13889
  (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
13890
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
13890
13891
  return form;
13891
13892
  }
13892
13893
  constructor(...args) {
@@ -14317,7 +14318,20 @@ let UIInput = UIInput_1 = class UIInput extends jodit_core_ui_element__WEBPACK_I
14317
14318
  }
14318
14319
  validate() {
14319
14320
  this.error = '';
14320
- return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
14321
+ const validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
14322
+ this.__markInputInvalid();
14323
+ return validate;
14324
+ }
14325
+ __markInputInvalid() {
14326
+ var _a, _b, _c, _d;
14327
+ if (this.error) {
14328
+ this.nativeInput.setAttribute('aria-invalid', 'true');
14329
+ (_b = (_a = this.nativeInput).setCustomValidity) === null || _b === void 0 ? void 0 : _b.call(_a, this.error);
14330
+ }
14331
+ else {
14332
+ this.nativeInput.removeAttribute('aria-invalid');
14333
+ (_d = (_c = this.nativeInput).setCustomValidity) === null || _d === void 0 ? void 0 : _d.call(_c, '');
14334
+ }
14321
14335
  }
14322
14336
  /** @override **/
14323
14337
  createContainer(options) {
@@ -44097,7 +44111,7 @@ module.exports = {assert(){}};;
44097
44111
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44098
44112
  /* harmony export */ Cg: function() { return /* binding */ __decorate; }
44099
44113
  /* harmony export */ });
44100
- /* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources */
44114
+ /* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension */
44101
44115
  /******************************************************************************
44102
44116
  Copyright (c) Microsoft Corporation.
44103
44117
 
@@ -44363,10 +44377,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
44363
44377
  o["default"] = v;
44364
44378
  };
44365
44379
 
44380
+ var ownKeys = function(o) {
44381
+ ownKeys = Object.getOwnPropertyNames || function (o) {
44382
+ var ar = [];
44383
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
44384
+ return ar;
44385
+ };
44386
+ return ownKeys(o);
44387
+ };
44388
+
44366
44389
  function __importStar(mod) {
44367
44390
  if (mod && mod.__esModule) return mod;
44368
44391
  var result = {};
44369
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
44392
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44370
44393
  __setModuleDefault(result, mod);
44371
44394
  return result;
44372
44395
  }
@@ -44447,12 +44470,25 @@ function __disposeResources(env) {
44447
44470
  return next();
44448
44471
  }
44449
44472
 
44473
+ function __rewriteRelativeImportExtension(path, preserveJsx) {
44474
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
44475
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
44476
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
44477
+ });
44478
+ }
44479
+ return path;
44480
+ }
44481
+
44450
44482
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
44451
44483
  __extends,
44452
44484
  __assign,
44453
44485
  __rest,
44454
44486
  __decorate,
44455
44487
  __param,
44488
+ __esDecorate,
44489
+ __runInitializers,
44490
+ __propKey,
44491
+ __setFunctionName,
44456
44492
  __metadata,
44457
44493
  __awaiter,
44458
44494
  __generator,
@@ -44475,6 +44511,7 @@ function __disposeResources(env) {
44475
44511
  __classPrivateFieldIn,
44476
44512
  __addDisposableResource,
44477
44513
  __disposeResources,
44514
+ __rewriteRelativeImportExtension,
44478
44515
  });
44479
44516
 
44480
44517
 
@@ -44641,7 +44678,7 @@ function __disposeResources(env) {
44641
44678
  /******/
44642
44679
  /************************************************************************/
44643
44680
  var __webpack_exports__ = {};
44644
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
44681
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
44645
44682
  !function() {
44646
44683
  "use strict";
44647
44684
  __webpack_require__.r(__webpack_exports__);