react-survey-builder 1.0.11 → 1.0.12

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/lib/index.js CHANGED
@@ -93,7 +93,8 @@ var ReactSurveyBuilder = exports.ReactSurveyBuilder = /*#__PURE__*/function (_Re
93
93
  key: "render",
94
94
  value: function render() {
95
95
  var _this$props$surveyNam,
96
- _this2 = this;
96
+ _this2 = this,
97
+ _this$props$saveSurve;
97
98
  var toolbarProps = {
98
99
  showDescription: this.props.showDescription
99
100
  };
@@ -138,7 +139,7 @@ var ReactSurveyBuilder = exports.ReactSurveyBuilder = /*#__PURE__*/function (_Re
138
139
  onClick: function onClick() {
139
140
  _this2.saveFormData();
140
141
  }
141
- }, "Save Survey")), /*#__PURE__*/_react["default"].createElement(_toolbar["default"], (0, _extends2["default"])({}, toolbarProps, {
142
+ }, (_this$props$saveSurve = this.props.saveSurveyName) !== null && _this$props$saveSurve !== void 0 ? _this$props$saveSurve : 'Save Survey')), /*#__PURE__*/_react["default"].createElement(_toolbar["default"], (0, _extends2["default"])({}, toolbarProps, {
142
143
  customItems: this.props.customToolbarItems
143
144
  }))))))));
144
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-survey-builder",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "A complete survey builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",
package/types/index.d.ts CHANGED
@@ -124,6 +124,7 @@ export type ToolbarItem = {
124
124
 
125
125
  export interface SurveyBuilderProps {
126
126
  surveyName?: string;
127
+ saveSurveyName?: string;
127
128
  toolbarItems?: ToolbarItem[];
128
129
  files?: any[];
129
130
  url?: string;