survey-react 1.12.52 → 1.12.53

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/defaultV2.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.52
2
+ * surveyjs - Survey JavaScript library v1.12.53
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/defaultV2.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.52
2
+ * surveyjs - Survey JavaScript library v1.12.53
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.52
2
+ * surveyjs - Survey JavaScript library v1.12.53
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.52
2
+ * surveyjs - Survey JavaScript library v1.12.53
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react",
3
- "version": "1.12.52",
3
+ "version": "1.12.53",
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",
package/survey.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.52
2
+ * surveyjs - Survey JavaScript library v1.12.53
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.52
2
+ * surveyjs - Survey JavaScript library v1.12.53
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.react.d.ts CHANGED
@@ -12456,7 +12456,7 @@ declare module "packages/survey-core/src/survey" {
12456
12456
  private reduceFirstName;
12457
12457
  private isClearingUnsedValues;
12458
12458
  private clearUnusedValues;
12459
- hasVisibleQuestionByValueName(valueName: string): boolean;
12459
+ hasVisibleQuestionByValueName(question: IQuestion): boolean;
12460
12460
  questionsByValueName(valueName: string): Array<IQuestion>;
12461
12461
  private clearInvisibleQuestionValues;
12462
12462
  /**
@@ -15234,7 +15234,7 @@ declare module "packages/survey-core/src/base-interfaces" {
15234
15234
  focusQuestionByInstance(question: IQuestion, onError: boolean): boolean;
15235
15235
  validateQuestion(question: IQuestion): SurveyError;
15236
15236
  validatePanel(panel: IPanel): SurveyError;
15237
- hasVisibleQuestionByValueName(valueName: string): boolean;
15237
+ hasVisibleQuestionByValueName(question: IQuestion): boolean;
15238
15238
  questionsByValueName(valueName: string): Array<IQuestion>;
15239
15239
  processHtml(html: string, reason: string): string;
15240
15240
  getSurveyMarkdownHtml(element: Base, text: string, name: string): string;
package/survey.react.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.52
2
+ * surveyjs - Survey JavaScript library v1.12.53
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -21076,7 +21076,7 @@ var question_Question = /** @class */ (function (_super) {
21076
21076
  return false;
21077
21077
  if (!this.survey)
21078
21078
  return true;
21079
- return !this.survey.hasVisibleQuestionByValueName(this.getValueName());
21079
+ return !this.survey.hasVisibleQuestionByValueName(this);
21080
21080
  };
21081
21081
  Object.defineProperty(Question.prototype, "isParentVisible", {
21082
21082
  /**
@@ -47897,13 +47897,14 @@ var survey_SurveyModel = /** @class */ (function (_super) {
47897
47897
  this.clearInvisibleQuestionValues();
47898
47898
  this.isClearingUnsedValues = false;
47899
47899
  };
47900
- SurveyModel.prototype.hasVisibleQuestionByValueName = function (valueName) {
47901
- var questions = this.getQuestionsByValueName(valueName);
47902
- if (!questions)
47900
+ SurveyModel.prototype.hasVisibleQuestionByValueName = function (question) {
47901
+ var checkQ = question;
47902
+ var qs = this.getQuestionsByValueName(checkQ.getValueName());
47903
+ if (!Array.isArray(qs) || qs.length < 2)
47903
47904
  return false;
47904
- for (var i = 0; i < questions.length; i++) {
47905
- var q = questions[i];
47906
- if (q.isVisible && q.isParentVisible && !q.parentQuestion)
47905
+ for (var i = 0; i < qs.length; i++) {
47906
+ var q = qs[i];
47907
+ if (q !== checkQ && q.isVisible && q.isParentVisible && !q.parentQuestion && q.parentQuestion === checkQ.parentQuestion)
47907
47908
  return true;
47908
47909
  }
47909
47910
  return false;
@@ -73355,9 +73356,9 @@ Serializer.addClass("currencymask", [
73355
73356
 
73356
73357
  var Version;
73357
73358
  var ReleaseDate;
73358
- Version = "" + "1.12.52";
73359
+ Version = "" + "1.12.53";
73359
73360
  settings.version = Version;
73360
- ReleaseDate = "" + "2025-09-02";
73361
+ ReleaseDate = "" + "2025-09-09";
73361
73362
  function checkLibraryVersion(ver, libraryName) {
73362
73363
  if (Version != ver) {
73363
73364
  var str = "survey-core has version '" + Version + "' and " + libraryName