survey-creator-react 1.10.6 → 1.11.2

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": "1.10.6",
3
+ "version": "1.11.2",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -29,9 +29,9 @@
29
29
  "ace-builds": "^1.4.12",
30
30
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
31
31
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0",
32
- "survey-core": "1.10.6",
33
- "survey-react-ui": "1.10.6",
34
- "survey-creator-core": "1.10.6"
32
+ "survey-core": "1.11.2",
33
+ "survey-react-ui": "1.11.2",
34
+ "survey-creator-core": "1.11.2"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v1.10.6
2
+ * SurveyJS Creator React v1.11.2
3
3
  * (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -2103,6 +2103,9 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
2103
2103
  return _this;
2104
2104
  }
2105
2105
  CreatorSurveyPageComponent.prototype.createModel = function (props) {
2106
+ if (this.model) {
2107
+ this.model.dispose();
2108
+ }
2106
2109
  this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_3__["PageAdorner"](props.creator, props.page);
2107
2110
  };
2108
2111
  CreatorSurveyPageComponent.prototype.getUpdatedModelProps = function () {
@@ -2123,7 +2126,6 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
2123
2126
  CreatorSurveyPageComponent.prototype.componentWillUnmount = function () {
2124
2127
  _super.prototype.componentWillUnmount.call(this);
2125
2128
  this.model.onPageSelectedCallback = undefined;
2126
- this.model.dispose();
2127
2129
  };
2128
2130
  CreatorSurveyPageComponent.prototype.canRender = function () {
2129
2131
  return (!!this.model &&
@@ -3431,7 +3433,7 @@ __webpack_require__.r(__webpack_exports__);
3431
3433
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! survey-core */ "survey-core");
3432
3434
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_53___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_53__);
3433
3435
  var Version;
3434
- Version = "".concat("1.10.6");
3436
+ Version = "".concat("1.11.2");
3435
3437
  // import "@survey/creator/survey-creator-core.css";
3436
3438
 
3437
3439
 
@@ -3494,7 +3496,7 @@ Version = "".concat("1.10.6");
3494
3496
 
3495
3497
 
3496
3498
 
3497
- Object(survey_core__WEBPACK_IMPORTED_MODULE_53__["checkLibraryVersion"])("".concat("1.10.6"), "survey-creator-react");
3499
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_53__["checkLibraryVersion"])("".concat("1.11.2"), "survey-creator-react");
3498
3500
 
3499
3501
 
3500
3502
  /***/ }),