survey-creator-react 3.1.1 → 3.1.2

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.1.1",
3
+ "version": "3.1.2",
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.1.1",
71
- "survey-react-ui": "3.1.1",
72
- "survey-creator-core": "3.1.1"
70
+ "survey-core": "3.1.2",
71
+ "survey-react-ui": "3.1.2",
72
+ "survey-creator-core": "3.1.2"
73
73
  },
74
74
  "peerDependenciesMeta": {
75
75
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v3.1.1
2
+ * SurveyJS Creator v3.1.2
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
@@ -545,12 +545,7 @@
545
545
 
546
546
  class ActionButton extends surveyReactUi.SurveyElementBase {
547
547
  renderElement() {
548
- const classes = new surveyCore.CssClassBuilder()
549
- .append(this.props.classes)
550
- .append("svc-action-button")
551
- .append("svc-action-button--selected", !!this.props.selected)
552
- .append("svc-action-button--disabled", !!this.props.disabled)
553
- .toString();
548
+ const classes = surveyCore.toCssClasses(this.props.classes, "svc-action-button", !!this.props.selected && "svc-action-button--selected", !!this.props.disabled && "svc-action-button--disabled");
554
549
  if (this.props.iconName) {
555
550
  return this.renderIcon(classes);
556
551
  }
@@ -3181,8 +3176,8 @@
3181
3176
  });
3182
3177
 
3183
3178
  exports.Version = void 0;
3184
- exports.Version = `${"3.1.1"}`;
3185
- surveyCore.checkLibraryVersion(`${"3.1.1"}`, "survey-creator-react");
3179
+ exports.Version = `${"3.1.2"}`;
3180
+ surveyCore.checkLibraryVersion(`${"3.1.2"}`, "survey-creator-react");
3186
3181
 
3187
3182
  Object.defineProperty(exports, "PropertyGridEditorCollection", {
3188
3183
  enumerable: true,