survey-creator-react 3.1.0 → 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.0",
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.0",
71
- "survey-react-ui": "3.1.0",
72
- "survey-creator-core": "3.1.0"
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.0
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
  }
@@ -2830,6 +2825,17 @@
2830
2825
  return React__namespace.createElement(ComponentContainer, props);
2831
2826
  });
2832
2827
 
2828
+ class VariablesViewerComponent extends React__namespace.Component {
2829
+ render() {
2830
+ const model = this.props.model;
2831
+ return (React__namespace.createElement("div", { className: "svc-variables-viewer" },
2832
+ React__namespace.createElement("textarea", { className: "svc-variables-viewer__text", value: model.text, readOnly: true, spellCheck: false, "aria-label": model.ariaLabel })));
2833
+ }
2834
+ }
2835
+ surveyReactUi.ReactElementFactory.Instance.registerElement("svc-variables-viewer", (props) => {
2836
+ return React__namespace.createElement(VariablesViewerComponent, props);
2837
+ });
2838
+
2833
2839
  class IconItem extends React__namespace.Component {
2834
2840
  render() {
2835
2841
  const item = this.props.item;
@@ -3170,8 +3176,8 @@
3170
3176
  });
3171
3177
 
3172
3178
  exports.Version = void 0;
3173
- exports.Version = `${"3.1.0"}`;
3174
- surveyCore.checkLibraryVersion(`${"3.1.0"}`, "survey-creator-react");
3179
+ exports.Version = `${"3.1.2"}`;
3180
+ surveyCore.checkLibraryVersion(`${"3.1.2"}`, "survey-creator-react");
3175
3181
 
3176
3182
  Object.defineProperty(exports, "PropertyGridEditorCollection", {
3177
3183
  enumerable: true,
@@ -3280,6 +3286,7 @@
3280
3286
  exports.TranslationDropdownQuestionComponent = TranslationDropdownQuestionComponent;
3281
3287
  exports.TranslationLineSkeleton = TranslationLineSkeleton;
3282
3288
  exports.TranslationLocaleItemComponent = TranslationLocaleItemComponent;
3289
+ exports.VariablesViewerComponent = VariablesViewerComponent;
3283
3290
 
3284
3291
  }));
3285
3292
  //# sourceMappingURL=survey-creator-react.js.map