survey-js-ui 2.5.34 → 2.5.35

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-js-ui",
3
- "version": "2.5.34",
3
+ "version": "2.5.35",
4
4
  "license": "MIT",
5
5
  "description": "A free MIT-licensed UI component that renders dynamic, interactive JSON-based forms and surveys in apps built with HTML, CSS, and JavaScript. You can use it to collect responses from users and send them to your own database.",
6
6
  "homepage": "https://surveyjs.io/",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {},
55
55
  "peerDependencies": {
56
- "survey-core": "2.5.34",
56
+ "survey-core": "2.5.35",
57
57
  "@types/react-dom": "*",
58
58
  "@types/react": "*"
59
59
  }
package/survey-js-ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.5.34
2
+ * surveyjs - Survey JavaScript library v2.5.35
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
  */
@@ -6403,7 +6403,15 @@
6403
6403
  return null;
6404
6404
  var className = this.model.getItemClass(this.item);
6405
6405
  var itemContent = this.item.component || this.model.itemComponent;
6406
- var newElement = ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
6406
+ var itemData = this.item.data;
6407
+ var newElement = ReactElementFactory.Instance.createElement(itemContent, {
6408
+ item: this.item,
6409
+ key: this.item.id,
6410
+ model: this.model,
6411
+ itemData: itemData,
6412
+ survey: itemData === null || itemData === void 0 ? void 0 : itemData.survey,
6413
+ page: itemData === null || itemData === void 0 ? void 0 : itemData.page
6414
+ });
6407
6415
  var contentWrap = _$1("div", { ref: this.elementRef, style: this.model.getItemStyle(this.item), className: this.model.cssClasses.itemBody, title: this.item.getTooltip(), onMouseOver: function (event) { _this.model.onItemHover(_this.item); }, onMouseLeave: function (event) { _this.model.onItemLeave(_this.item); } }, newElement);
6408
6416
  var separator = this.item.needSeparator ? _$1("div", { className: this.model.cssClasses.itemSeparator }) : null;
6409
6417
  var isVisible = this.model.isItemVisible(this.item);
@@ -7988,7 +7996,7 @@
7988
7996
  }
7989
7997
  };
7990
7998
  var preact = React;
7991
- surveyCore.checkLibraryVersion("".concat("2.5.34"), "survey-js-ui");
7999
+ surveyCore.checkLibraryVersion("".concat("2.5.35"), "survey-js-ui");
7992
8000
 
7993
8001
  Object.defineProperty(exports, 'Model', {
7994
8002
  enumerable: true,