survey-react-ui 2.5.3 → 2.5.4

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.3",
3
+ "version": "2.5.4",
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.3",
54
+ "survey-core": "2.5.4",
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.3
2
+ * surveyjs - Survey JavaScript library v2.5.4
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
  */
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
28
28
  /* harmony export */ icons: () => (/* binding */ iconsV1)
29
29
  /* harmony export */ });
30
30
  /*!
31
- * surveyjs - Survey JavaScript library v2.5.3
31
+ * surveyjs - Survey JavaScript library v2.5.4
32
32
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
33
33
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
34
34
  */
@@ -114,7 +114,7 @@ __webpack_require__.r(__webpack_exports__);
114
114
  /* harmony export */ icons: () => (/* binding */ iconsV2)
115
115
  /* harmony export */ });
116
116
  /*!
117
- * surveyjs - Survey JavaScript library v2.5.3
117
+ * surveyjs - Survey JavaScript library v2.5.4
118
118
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
119
119
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
120
120
  */
@@ -6888,29 +6888,33 @@ _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.regis
6888
6888
  });
6889
6889
  function attachKey2click(element, viewModel, options) {
6890
6890
  if (options === void 0) { options = { processEsc: true, disableTabStop: false }; }
6891
+ var props = {};
6891
6892
  if ((!!viewModel && viewModel.disableTabStop) || (!!options && options.disableTabStop)) {
6892
- return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(element, { tabIndex: -1 });
6893
+ props = { tabIndex: -1 };
6893
6894
  }
6894
- options = __assign({}, options);
6895
- return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(element, {
6896
- tabIndex: 0,
6897
- onPointerUp: function (evt) {
6898
- if (evt.pointerType === "pen") {
6895
+ else {
6896
+ options = __assign({}, options);
6897
+ props = {
6898
+ tabIndex: 0,
6899
+ onKeyUp: function (evt) {
6899
6900
  evt.preventDefault();
6900
6901
  evt.stopPropagation();
6901
- var element_1 = evt.target;
6902
- if (element_1 === null || element_1 === void 0 ? void 0 : element_1.click)
6903
- element_1.click();
6904
- }
6905
- },
6906
- onKeyUp: function (evt) {
6902
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.doKey2ClickUp)(evt, options);
6903
+ },
6904
+ onKeyDown: function (evt) { return (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.doKey2ClickDown)(evt, options); },
6905
+ onBlur: function (evt) { return (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.doKey2ClickBlur)(evt); },
6906
+ };
6907
+ }
6908
+ props["onPointerUp"] = function (evt) {
6909
+ if (evt.pointerType === "pen") {
6907
6910
  evt.preventDefault();
6908
6911
  evt.stopPropagation();
6909
- (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.doKey2ClickUp)(evt, options);
6910
- },
6911
- onKeyDown: function (evt) { return (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.doKey2ClickDown)(evt, options); },
6912
- onBlur: function (evt) { return (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.doKey2ClickBlur)(evt); },
6913
- });
6912
+ var element_1 = evt.target;
6913
+ if (element_1 === null || element_1 === void 0 ? void 0 : element_1.click)
6914
+ element_1.click();
6915
+ }
6916
+ };
6917
+ return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(element, props);
6914
6918
  }
6915
6919
 
6916
6920
 
@@ -12118,7 +12122,7 @@ __webpack_require__.r(__webpack_exports__);
12118
12122
 
12119
12123
 
12120
12124
 
12121
- (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.5.3"), "survey-react-ui");
12125
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.5.4"), "survey-react-ui");
12122
12126
 
12123
12127
  })();
12124
12128