survey-creator-react 3.2.5 → 3.2.6

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-creator-react",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "description": "Embeddable SurveyJS drag-and-drop form builder for JSON-based forms in React. Create dynamic surveys, polls, quizzes, and other forms, configure conditional logic and validation, and customize the editor UI.",
5
5
  "author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
6
6
  "homepage": "https://surveyjs.io/",
@@ -67,9 +67,9 @@
67
67
  "ace-builds": "^1.4.12",
68
68
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
69
69
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
70
- "survey-core": "3.2.5",
71
- "survey-react-ui": "3.2.5",
72
- "survey-creator-core": "3.2.5"
70
+ "survey-core": "3.2.6",
71
+ "survey-react-ui": "3.2.6",
72
+ "survey-creator-core": "3.2.6"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v3.2.5
2
+ * SurveyJS Creator v3.2.6
3
3
  * (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -911,7 +911,7 @@
911
911
  renderElement() {
912
912
  if (!this.props.page)
913
913
  return null;
914
- return (surveyReactUi.attachKey2click(React__namespace.createElement("div", { ref: this.rootRef, id: this.props.page.renderedId, "data-sv-drop-target-survey-page": this.model.dropTargetName, className: "svc-page__content " + this.model.css, onClick: (e) => {
914
+ return (surveyReactUi.attachKey2click(React__namespace.createElement("div", { ref: this.rootRef, id: this.props.page.renderedId, "data-sv-drop-target-survey-page": this.model.dropTargetName, className: "svc-page__content " + this.model.css, role: this.model.ariaRole, "aria-label": this.model.ariaLabel, onClick: (e) => {
915
915
  return this.model.select(this.model, new ReactMouseEvent(e));
916
916
  }, onDoubleClick: e => this.model.dblclick(e.nativeEvent), onMouseLeave: (e) => this.model.hover(e.nativeEvent, e.currentTarget), onMouseOver: (e) => this.model.hover(e.nativeEvent, e.currentTarget) },
917
917
  React__namespace.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
@@ -919,7 +919,7 @@
919
919
  this.renderContent(),
920
920
  this.renderPlaceholder(),
921
921
  this.renderHeader(),
922
- this.renderFooter())));
922
+ this.renderFooter()), undefined, { disableTabStop: true }));
923
923
  }
924
924
  renderPlaceholder() {
925
925
  if (!this.model.showPlaceholder)
@@ -974,12 +974,14 @@
974
974
  return React__namespace.createElement("div", { className: this.item.cssClasses.itemTypeSelector }, surveyReactUi.ReactElementFactory.Instance.createElement("sv-action-bar-item-dropdown", { item: this.model.questionTypeSelectorModel }));
975
975
  }
976
976
  renderElement() {
977
- return React__namespace.createElement(React__namespace.Fragment, null, surveyReactUi.attachKey2click(React__namespace.createElement("div", { className: this.item.getActionBarItemCss(), onClick: (e) => {
978
- e.stopPropagation();
979
- this.model.addNewQuestion(this.model, new ReactMouseEvent(e));
980
- }, onMouseOver: (e) => this.model.hoverStopper && this.model.hoverStopper(e.nativeEvent, e.currentTarget) },
981
- React__namespace.createElement("span", { className: this.item.getActionBarItemTitleCss() }, this.model.addNewQuestionText),
982
- this.renderTypeSelector())));
977
+ return React__namespace.createElement(React__namespace.Fragment, null,
978
+ React__namespace.createElement("div", { className: this.item.getActionBarItemCss(), onClick: (e) => {
979
+ e.stopPropagation();
980
+ this.model.addNewQuestion(this.model, new ReactMouseEvent(e));
981
+ }, onMouseOver: (e) => this.model.hoverStopper && this.model.hoverStopper(e.nativeEvent, e.currentTarget) },
982
+ React__namespace.createElement("button", { type: "button", className: "svc-surface-btn__title-button" },
983
+ React__namespace.createElement("span", { className: this.item.getActionBarItemTitleCss() }, this.model.addNewQuestionText)),
984
+ this.renderTypeSelector()));
983
985
  }
984
986
  }
985
987
  surveyReactUi.ReactElementFactory.Instance.registerElement("svc-add-new-question-btn", (props) => {
@@ -1055,7 +1057,7 @@
1055
1057
  React__namespace.createElement(surveyReactUi.LogoImage, { data: this.props.data.survey }));
1056
1058
  }
1057
1059
  renderPlaceHolder() {
1058
- return this.model.allowEdit && !this.model.isUploading ? surveyReactUi.attachKey2click(React__namespace.createElement("div", { className: "svc-logo-image-placeholder", onClick: () => this.model.chooseFile(this.model) },
1060
+ return this.model.allowEdit && !this.model.isUploading ? surveyReactUi.attachKey2click(React__namespace.createElement("div", { className: "svc-logo-image-placeholder", role: "button", "aria-label": this.model.chooseLogoAriaLabel, onClick: () => this.model.chooseFile(this.model) },
1059
1061
  React__namespace.createElement("svg", null,
1060
1062
  React__namespace.createElement("use", { xlinkHref: "#icon-image-48x48" })))) : null;
1061
1063
  }
@@ -1513,7 +1515,7 @@
1513
1515
  model: this.model,
1514
1516
  isCompact: this.isCompact
1515
1517
  });
1516
- return (React__namespace.createElement("div", { className: item.css, key: item.id, ref: this.rootRef },
1518
+ return (React__namespace.createElement("div", { className: item.css, key: item.id, ref: this.rootRef, role: this.model.ariaRole },
1517
1519
  (item.needSeparator && !this.creator.toolbox.showCategoryTitles) ? (React__namespace.createElement("div", { className: "svc-toolbox__category-separator" })) : null,
1518
1520
  React__namespace.createElement("div", { className: "svc-toolbox__tool-content", onPointerDown: (event) => {
1519
1521
  event.persist();
@@ -1695,7 +1697,7 @@
1695
1697
  if (!this.model || !this.model.renderElements)
1696
1698
  return null;
1697
1699
  const items = this.renderItems();
1698
- return (React__namespace.createElement("div", { className: this.model.cssClasses.root }, items));
1700
+ return (React__namespace.createElement("div", { className: this.model.cssClasses.root, role: "list" }, items));
1699
1701
  }
1700
1702
  renderItems() {
1701
1703
  const items = this.model.renderedActions;
@@ -1805,7 +1807,7 @@
1805
1807
  search,
1806
1808
  placeholder,
1807
1809
  React__namespace.createElement(surveyReactUi.Scroll, null, (this.toolbox.showInSingleCategory) ?
1808
- (React__namespace.createElement("div", { className: "svc-toolbox__category" }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)))
1810
+ (React__namespace.createElement("div", { className: "svc-toolbox__category", role: "list", "aria-label": this.toolbox.toolboxAriaLabel }, this.renderItems(this.toolbox.renderedActions, this.toolbox.isCompactRendered)))
1809
1811
  : this.renderCategories()))));
1810
1812
  }
1811
1813
  }
@@ -3231,8 +3233,8 @@
3231
3233
  });
3232
3234
 
3233
3235
  exports.Version = void 0;
3234
- exports.Version = `${"3.2.5"}`;
3235
- surveyCore.checkLibraryVersion(`${"3.2.5"}`, "survey-creator-react");
3236
+ exports.Version = `${"3.2.6"}`;
3237
+ surveyCore.checkLibraryVersion(`${"3.2.6"}`, "survey-creator-react");
3236
3238
 
3237
3239
  Object.defineProperty(exports, "PropertyGridEditorCollection", {
3238
3240
  enumerable: true,