survey-react-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-react-ui",
3
- "version": "2.5.34",
3
+ "version": "2.5.35",
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.34",
54
+ "survey-core": "2.5.35",
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.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
  */
@@ -6323,7 +6323,15 @@
6323
6323
  return null;
6324
6324
  var className = this.model.getItemClass(this.item);
6325
6325
  var itemContent = this.item.component || this.model.itemComponent;
6326
- var newElement = ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
6326
+ var itemData = this.item.data;
6327
+ var newElement = ReactElementFactory.Instance.createElement(itemContent, {
6328
+ item: this.item,
6329
+ key: this.item.id,
6330
+ model: this.model,
6331
+ itemData: itemData,
6332
+ survey: itemData === null || itemData === void 0 ? void 0 : itemData.survey,
6333
+ page: itemData === null || itemData === void 0 ? void 0 : itemData.page
6334
+ });
6327
6335
  var contentWrap = React__namespace.createElement("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);
6328
6336
  var separator = this.item.needSeparator ? React__namespace.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
6329
6337
  var isVisible = this.model.isItemVisible(this.item);
@@ -7856,7 +7864,7 @@
7856
7864
  return React__namespace.createElement(SurveyLocStringEditor, props);
7857
7865
  });
7858
7866
 
7859
- surveyCore.checkLibraryVersion("".concat("2.5.34"), "survey-react-ui");
7867
+ surveyCore.checkLibraryVersion("".concat("2.5.35"), "survey-react-ui");
7860
7868
 
7861
7869
  Object.defineProperty(exports, "Model", {
7862
7870
  enumerable: true,