survey-creator-react 2.1.1 → 2.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-react",
3
- "version": "2.1.1",
3
+ "version": "2.2.1",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -37,9 +37,9 @@
37
37
  "ace-builds": "^1.4.12",
38
38
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
39
39
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
40
- "survey-core": "2.1.1",
41
- "survey-react-ui": "2.1.1",
42
- "survey-creator-core": "2.1.1"
40
+ "survey-core": "2.2.1",
41
+ "survey-react-ui": "2.2.1",
42
+ "survey-creator-core": "2.2.1"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v2.1.1
2
+ * SurveyJS Creator React v2.2.1
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1293,6 +1293,7 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
1293
1293
  _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
1294
1294
  this.baseModel.setLocString(this.locString);
1295
1295
  this.baseModel.afterRender();
1296
+ this.locString.onStringChanged.add(this.onChangedHandler);
1296
1297
  };
1297
1298
  SurveyLocStringEditor.prototype.componentWillUnmount = function () {
1298
1299
  _super.prototype.componentWillUnmount.call(this);
@@ -1331,12 +1332,12 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
1331
1332
  if (this.htmlValue.__html !== this.locString.renderedHtml) {
1332
1333
  this.htmlValue = { __html: this.locString.renderedHtml };
1333
1334
  }
1334
- control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor sv-string-editor--html", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
1335
+ control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor sv-string-editor--html", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true, tabIndex: this.baseModel.tabIndex,
1335
1336
  // style={this.style}
1336
1337
  dangerouslySetInnerHTML: this.htmlValue, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onMouseUp: this.onMouseUp, onClick: this.edit }));
1337
1338
  }
1338
1339
  else {
1339
- control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
1340
+ control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, tabIndex: this.baseModel.tabIndex, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
1340
1341
  // style={this.style}
1341
1342
  key: this.locString.renderedHtml, onBlur: this.onBlur, onInput: this.onInput, onPaste: this.onPaste, onCompositionStart: this.onCompositionStart, onCompositionEnd: this.onCompositionEnd, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, onMouseUp: this.onMouseUp, onClick: this.edit }, this.locString.renderedHtml));
1342
1343
  }
@@ -3353,7 +3354,7 @@ __webpack_require__.r(__webpack_exports__);
3353
3354
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
3354
3355
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
3355
3356
  var Version;
3356
- Version = "".concat("2.1.1");
3357
+ Version = "".concat("2.2.1");
3357
3358
  // import "@survey/creator/survey-creator-core.css";
3358
3359
 
3359
3360
 
@@ -3425,7 +3426,7 @@ Version = "".concat("2.1.1");
3425
3426
 
3426
3427
 
3427
3428
 
3428
- (0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.1.1"), "survey-creator-react");
3429
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.2.1"), "survey-creator-react");
3429
3430
 
3430
3431
 
3431
3432
  /***/ }),