survey-react-ui 1.9.87 → 1.9.88

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": "1.9.87",
3
+ "version": "1.9.88",
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",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "typings": "survey-react-ui.d.ts",
23
23
  "dependencies": {
24
- "survey-core": "1.9.87",
24
+ "survey-core": "1.9.88",
25
25
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
26
26
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
27
27
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.87
2
+ * surveyjs - Survey JavaScript library v1.9.88
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1189,7 +1189,7 @@ __webpack_require__.r(__webpack_exports__);
1189
1189
 
1190
1190
 
1191
1191
 
1192
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.87", "survey-react-ui");
1192
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.88", "survey-react-ui");
1193
1193
 
1194
1194
 
1195
1195
  /***/ }),
@@ -2556,7 +2556,7 @@ var NotifierComponent = /** @class */ (function (_super) {
2556
2556
  if (!this.notifier.isDisplayed)
2557
2557
  return null;
2558
2558
  var style = { visibility: this.notifier.active ? "visible" : "hidden" };
2559
- return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.notifier.css, style: style },
2559
+ return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.notifier.css, style: style, role: "alert", "aria-live": "polite" },
2560
2560
  react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null, this.notifier.message),
2561
2561
  react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_3__["SurveyActionBar"], { model: this.notifier.actionBar })));
2562
2562
  };
@@ -7712,6 +7712,7 @@ __webpack_require__.r(__webpack_exports__);
7712
7712
  /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
7713
7713
  /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
7714
7714
  /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
7715
+ /* harmony import */ var _reactSurvey__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./reactSurvey */ "./src/react/reactSurvey.tsx");
7715
7716
  var __extends = (undefined && undefined.__extends) || (function () {
7716
7717
  var extendStatics = function (d, b) {
7717
7718
  extendStatics = Object.setPrototypeOf ||
@@ -7732,6 +7733,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
7732
7733
 
7733
7734
 
7734
7735
 
7736
+
7735
7737
  var SurveyQuestionFile = /** @class */ (function (_super) {
7736
7738
  __extends(SurveyQuestionFile, _super);
7737
7739
  function SurveyQuestionFile(props) {
@@ -7769,7 +7771,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
7769
7771
  var questionCss = this.question.cssClasses;
7770
7772
  var noFileChosen = null;
7771
7773
  var chooseFile = null;
7772
- chooseFile = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { role: "button", tabIndex: 0, className: this.question.getChooseFileCss(), htmlFor: this.question.inputId, "aria-label": this.question.chooseButtonCaption },
7774
+ chooseFile = Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_5__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { role: "button", tabIndex: 0, className: this.question.getChooseFileCss(), htmlFor: this.question.inputId, "aria-label": this.question.chooseButtonCaption },
7773
7775
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.question.chooseButtonCaption),
7774
7776
  (!!this.question.cssClasses.chooseFileIconId) ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { title: this.question.chooseButtonCaption, iconName: this.question.cssClasses.chooseFileIconId, size: "auto" }) : null));
7775
7777
  if (this.question.isEmpty()) {
@@ -10420,9 +10422,6 @@ var SurveyQuestionTagboxItem = /** @class */ (function (_super) {
10420
10422
  function SurveyQuestionTagboxItem(props) {
10421
10423
  return _super.call(this, props) || this;
10422
10424
  }
10423
- SurveyQuestionTagboxItem.prototype.getStateElement = function () {
10424
- return this.item;
10425
- };
10426
10425
  Object.defineProperty(SurveyQuestionTagboxItem.prototype, "question", {
10427
10426
  get: function () {
10428
10427
  return this.props.question;
@@ -11474,7 +11473,7 @@ function mergeValues(src, dest) {
11474
11473
  return;
11475
11474
  for (var key in src) {
11476
11475
  var value = src[key];
11477
- if (value && typeof value === "object") {
11476
+ if (!Array.isArray(value) && value && typeof value === "object") {
11478
11477
  if (!dest[key] || typeof dest[key] !== "object")
11479
11478
  dest[key] = {};
11480
11479
  mergeValues(value, dest[key]);