survey-react-ui 2.5.16 → 2.5.17

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/index.html CHANGED
@@ -17,7 +17,7 @@
17
17
  <div id="surveyElement" style="position: fixed; top: 0; left: 0; bottom: 0; right: 0;"></div>
18
18
  <div id="surveyResultElement"></div>
19
19
  <script type="text/babel" src="./index.js"></script>
20
- <script defer src="survey-react-ui.js"></script>
20
+ <script defer src="./build/survey-react-ui.js"></script>
21
21
  </body>
22
22
 
23
23
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react-ui",
3
- "version": "2.5.16",
3
+ "version": "2.5.17",
4
4
  "license": "MIT",
5
5
  "author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
6
6
  "homepage": "https://surveyjs.io/",
@@ -51,7 +51,7 @@
51
51
  }
52
52
  },
53
53
  "peerDependencies": {
54
- "survey-core": "2.5.16",
54
+ "survey-core": "2.5.17",
55
55
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
56
56
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
57
57
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.5.16
2
+ * surveyjs - Survey JavaScript library v2.5.17
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -6494,6 +6494,10 @@
6494
6494
  this.question.setValueFromClick(event.target.value);
6495
6495
  this.setState({ value: this.question.value });
6496
6496
  };
6497
+ SurveyQuestionRating.prototype.componentDidMount = function () {
6498
+ _super.prototype.componentDidMount.call(this);
6499
+ this.setState({ value: this.question.value });
6500
+ };
6497
6501
  SurveyQuestionRating.prototype.renderItem = function (item, index) {
6498
6502
  var renderedItem = ReactElementFactory.Instance.createElement(this.question.itemComponent, {
6499
6503
  question: this.question,
@@ -7204,6 +7208,13 @@
7204
7208
  }
7205
7209
  return res;
7206
7210
  };
7211
+ SurveyQuestionCustom.prototype.getRenderedElements = function () {
7212
+ var res = _super.prototype.getRenderedElements.call(this);
7213
+ if (!!this.question.contentQuestion) {
7214
+ res.push(this.question.contentQuestion);
7215
+ }
7216
+ return res;
7217
+ };
7207
7218
  SurveyQuestionCustom.prototype.renderElement = function () {
7208
7219
  return SurveyQuestion.renderQuestionBody(this.creator, this.question.contentQuestion);
7209
7220
  };
@@ -7799,7 +7810,7 @@
7799
7810
  return React__namespace.createElement(SurveyLocStringEditor, props);
7800
7811
  });
7801
7812
 
7802
- surveyCore.checkLibraryVersion("".concat("2.5.16"), "survey-react-ui");
7813
+ surveyCore.checkLibraryVersion("".concat("2.5.17"), "survey-react-ui");
7803
7814
 
7804
7815
  Object.defineProperty(exports, "Model", {
7805
7816
  enumerable: true,