survey-react-ui 1.12.9 → 1.12.11

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-react-ui",
3
- "version": "1.12.9",
3
+ "version": "1.12.11",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "typings": "./typings/src/entries/react-ui.d.ts",
23
23
  "peerDependencies": {
24
- "survey-core": "1.12.9",
24
+ "survey-core": "1.12.11",
25
25
  "react": "^16.5.0 || ^17.0.1 || ^18.2.0",
26
26
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0"
27
27
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.9
2
+ * surveyjs - Survey JavaScript library v1.12.11
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1301,11 +1301,11 @@ var popup_Popup = /** @class */ (function (_super) {
1301
1301
  return this.model;
1302
1302
  };
1303
1303
  Popup.prototype.createModel = function () {
1304
- this.popup = Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["createPopupViewModel"])(this.props.model, undefined);
1304
+ this.popup = Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["createPopupViewModel"])(this.props.model);
1305
1305
  };
1306
1306
  Popup.prototype.setTargetElement = function () {
1307
1307
  var container = this.containerRef.current;
1308
- this.popup.setComponentElement(container, this.props.getTarget ? this.props.getTarget(container) : undefined, this.props.getArea ? this.props.getArea(container) : undefined);
1308
+ this.popup.setComponentElement(container);
1309
1309
  };
1310
1310
  Popup.prototype.componentDidMount = function () {
1311
1311
  _super.prototype.componentDidMount.call(this);
@@ -1479,7 +1479,7 @@ var action_bar_item_dropdown_SurveyActionBarItemDropdown = /** @class */ (functi
1479
1479
  var button = _super.prototype.renderInnerButton.call(this);
1480
1480
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null,
1481
1481
  button,
1482
- external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popup_Popup, { model: this.item.popupModel, getTarget: external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["getActionDropdownButtonTarget"] })));
1482
+ external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(popup_Popup, { model: this.item.popupModel })));
1483
1483
  };
1484
1484
  SurveyActionBarItemDropdown.prototype.componentDidMount = function () {
1485
1485
  this.viewModel = new external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["ActionDropdownViewModel"](this.item);
@@ -1549,17 +1549,14 @@ var action_bar_SurveyActionBar = /** @class */ (function (_super) {
1549
1549
  };
1550
1550
  SurveyActionBar.prototype.componentWillUnmount = function () {
1551
1551
  _super.prototype.componentWillUnmount.call(this);
1552
- if (!!this.model.hasActions) {
1553
- this.model.resetResponsivityManager();
1554
- }
1552
+ this.model.resetResponsivityManager();
1555
1553
  };
1556
1554
  SurveyActionBar.prototype.componentDidUpdate = function (prevProps, prevState) {
1557
1555
  _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
1558
- if (prevProps.model == this.props.model) {
1559
- return;
1556
+ if (prevProps.model != this.props.model) {
1557
+ prevProps.model.resetResponsivityManager();
1560
1558
  }
1561
1559
  if (!!this.model.hasActions) {
1562
- this.model.resetResponsivityManager();
1563
1560
  var container = this.rootRef.current;
1564
1561
  if (!!container) {
1565
1562
  this.model.initResponsivityManager(container, function (callback) { setTimeout(callback); });
@@ -9425,7 +9422,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
9425
9422
 
9426
9423
 
9427
9424
 
9428
- Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.9", "survey-react-ui");
9425
+ Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.11", "survey-react-ui");
9429
9426
 
9430
9427
 
9431
9428
  /***/ }),