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
@@ -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
  */
@@ -1736,7 +1736,7 @@ __webpack_require__.r(__webpack_exports__);
1736
1736
  * Released under MIT see LICENSE.txt in the project root for license information.
1737
1737
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1738
1738
  */
1739
- const APP_VERSION = "4.2.37";
1739
+ const APP_VERSION = "4.2.39";
1740
1740
  // prettier-ignore
1741
1741
  const ES = "es2021";
1742
1742
  const IS_ES_MODERN = true;
@@ -13844,6 +13844,7 @@ let UIForm = class UIForm extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
13844
13844
  const form = this.j.c.element('form');
13845
13845
  form.classList.add(this.componentName);
13846
13846
  (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
13847
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
13847
13848
  return form;
13848
13849
  }
13849
13850
  constructor(...args) {
@@ -14271,7 +14272,19 @@ let UIInput = UIInput_1 = class UIInput extends jodit_core_ui_element__WEBPACK_I
14271
14272
  }
14272
14273
  validate() {
14273
14274
  this.error = '';
14274
- return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
14275
+ const validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
14276
+ this.__markInputInvalid();
14277
+ return validate;
14278
+ }
14279
+ __markInputInvalid() {
14280
+ if (this.error) {
14281
+ this.nativeInput.setAttribute('aria-invalid', 'true');
14282
+ this.nativeInput.setCustomValidity?.(this.error);
14283
+ }
14284
+ else {
14285
+ this.nativeInput.removeAttribute('aria-invalid');
14286
+ this.nativeInput.setCustomValidity?.('');
14287
+ }
14275
14288
  }
14276
14289
  /** @override **/
14277
14290
  createContainer(options) {
@@ -42105,7 +42118,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__41324__;
42105
42118
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42106
42119
  /* harmony export */ Cg: function() { return /* binding */ __decorate; }
42107
42120
  /* harmony export */ });
42108
- /* 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 */
42121
+ /* 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 */
42109
42122
  /******************************************************************************
42110
42123
  Copyright (c) Microsoft Corporation.
42111
42124
 
@@ -42371,10 +42384,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
42371
42384
  o["default"] = v;
42372
42385
  };
42373
42386
 
42387
+ var ownKeys = function(o) {
42388
+ ownKeys = Object.getOwnPropertyNames || function (o) {
42389
+ var ar = [];
42390
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
42391
+ return ar;
42392
+ };
42393
+ return ownKeys(o);
42394
+ };
42395
+
42374
42396
  function __importStar(mod) {
42375
42397
  if (mod && mod.__esModule) return mod;
42376
42398
  var result = {};
42377
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
42399
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42378
42400
  __setModuleDefault(result, mod);
42379
42401
  return result;
42380
42402
  }
@@ -42455,12 +42477,25 @@ function __disposeResources(env) {
42455
42477
  return next();
42456
42478
  }
42457
42479
 
42480
+ function __rewriteRelativeImportExtension(path, preserveJsx) {
42481
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
42482
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
42483
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
42484
+ });
42485
+ }
42486
+ return path;
42487
+ }
42488
+
42458
42489
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
42459
42490
  __extends,
42460
42491
  __assign,
42461
42492
  __rest,
42462
42493
  __decorate,
42463
42494
  __param,
42495
+ __esDecorate,
42496
+ __runInitializers,
42497
+ __propKey,
42498
+ __setFunctionName,
42464
42499
  __metadata,
42465
42500
  __awaiter,
42466
42501
  __generator,
@@ -42483,6 +42518,7 @@ function __disposeResources(env) {
42483
42518
  __classPrivateFieldIn,
42484
42519
  __addDisposableResource,
42485
42520
  __disposeResources,
42521
+ __rewriteRelativeImportExtension,
42486
42522
  });
42487
42523
 
42488
42524
 
@@ -42649,7 +42685,7 @@ function __disposeResources(env) {
42649
42685
  /******/
42650
42686
  /************************************************************************/
42651
42687
  var __webpack_exports__ = {};
42652
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
42688
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
42653
42689
  !function() {
42654
42690
  "use strict";
42655
42691
  __webpack_require__.r(__webpack_exports__);