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/es5/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
  */
@@ -1838,7 +1838,7 @@ __webpack_require__.r(__webpack_exports__);
1838
1838
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1839
1839
  */
1840
1840
 
1841
- var APP_VERSION = "4.2.37";
1841
+ var APP_VERSION = "4.2.39";
1842
1842
  // prettier-ignore
1843
1843
  var ES = "es5";
1844
1844
  var IS_ES_MODERN = false;
@@ -14553,6 +14553,7 @@ var UIForm = /** @class */ (function (_super) {
14553
14553
  var form = this.j.c.element('form');
14554
14554
  form.classList.add(this.componentName);
14555
14555
  (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
14556
+ (0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
14556
14557
  return form;
14557
14558
  };
14558
14559
  UIForm = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .Cg)([
@@ -15014,7 +15015,22 @@ var UIInput = /** @class */ (function (_super) {
15014
15015
  UIInput.prototype.validate = function () {
15015
15016
  var _this = this;
15016
15017
  this.error = '';
15017
- return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(function (validator) { return validator(_this); });
15018
+ var validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(function (validator) {
15019
+ return validator(_this);
15020
+ });
15021
+ this.__markInputInvalid();
15022
+ return validate;
15023
+ };
15024
+ UIInput.prototype.__markInputInvalid = function () {
15025
+ var _a, _b, _c, _d;
15026
+ if (this.error) {
15027
+ this.nativeInput.setAttribute('aria-invalid', 'true');
15028
+ (_b = (_a = this.nativeInput).setCustomValidity) === null || _b === void 0 ? void 0 : _b.call(_a, this.error);
15029
+ }
15030
+ else {
15031
+ this.nativeInput.removeAttribute('aria-invalid');
15032
+ (_d = (_c = this.nativeInput).setCustomValidity) === null || _d === void 0 ? void 0 : _d.call(_c, '');
15033
+ }
15018
15034
  };
15019
15035
  /** @override **/
15020
15036
  UIInput.prototype.createContainer = function (options) {
@@ -45800,7 +45816,7 @@ module.exports = {assert(){}};;
45800
45816
  /* harmony export */ sH: function() { return /* binding */ __awaiter; },
45801
45817
  /* harmony export */ zs: function() { return /* binding */ __read; }
45802
45818
  /* harmony export */ });
45803
- /* unused harmony exports __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __createBinding, __exportStar, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources */
45819
+ /* unused harmony exports __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __createBinding, __exportStar, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension */
45804
45820
  /******************************************************************************
45805
45821
  Copyright (c) Microsoft Corporation.
45806
45822
 
@@ -46066,10 +46082,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
46066
46082
  o["default"] = v;
46067
46083
  };
46068
46084
 
46085
+ var ownKeys = function(o) {
46086
+ ownKeys = Object.getOwnPropertyNames || function (o) {
46087
+ var ar = [];
46088
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
46089
+ return ar;
46090
+ };
46091
+ return ownKeys(o);
46092
+ };
46093
+
46069
46094
  function __importStar(mod) {
46070
46095
  if (mod && mod.__esModule) return mod;
46071
46096
  var result = {};
46072
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
46097
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
46073
46098
  __setModuleDefault(result, mod);
46074
46099
  return result;
46075
46100
  }
@@ -46150,12 +46175,25 @@ function __disposeResources(env) {
46150
46175
  return next();
46151
46176
  }
46152
46177
 
46178
+ function __rewriteRelativeImportExtension(path, preserveJsx) {
46179
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
46180
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
46181
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
46182
+ });
46183
+ }
46184
+ return path;
46185
+ }
46186
+
46153
46187
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
46154
46188
  __extends,
46155
46189
  __assign,
46156
46190
  __rest,
46157
46191
  __decorate,
46158
46192
  __param,
46193
+ __esDecorate,
46194
+ __runInitializers,
46195
+ __propKey,
46196
+ __setFunctionName,
46159
46197
  __metadata,
46160
46198
  __awaiter,
46161
46199
  __generator,
@@ -46178,6 +46216,7 @@ function __disposeResources(env) {
46178
46216
  __classPrivateFieldIn,
46179
46217
  __addDisposableResource,
46180
46218
  __disposeResources,
46219
+ __rewriteRelativeImportExtension,
46181
46220
  });
46182
46221
 
46183
46222
 
@@ -46475,7 +46514,7 @@ function __disposeResources(env) {
46475
46514
  /******/
46476
46515
  /************************************************************************/
46477
46516
  var __webpack_exports__ = {};
46478
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
46517
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
46479
46518
  !function() {
46480
46519
  "use strict";
46481
46520
  __webpack_require__.r(__webpack_exports__);