survey-creator-react 2.0.0 → 2.0.1

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": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -26,13 +26,20 @@
26
26
  "node": ">=0.10.0"
27
27
  },
28
28
  "typings": "./typings/entries/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./typings/entries/index.d.ts",
32
+ "import": "./fesm/survey-creator-react.js",
33
+ "require": "./survey-creator-react.js"
34
+ }
35
+ },
29
36
  "peerDependencies": {
30
37
  "ace-builds": "^1.4.12",
31
38
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
32
39
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
33
- "survey-core": "2.0.0",
34
- "survey-react-ui": "2.0.0",
35
- "survey-creator-core": "2.0.0"
40
+ "survey-core": "2.0.1",
41
+ "survey-react-ui": "2.0.1",
42
+ "survey-creator-core": "2.0.1"
36
43
  },
37
44
  "peerDependenciesMeta": {
38
45
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v2.0.0
2
+ * SurveyJS Creator React v2.0.1
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -848,7 +848,7 @@ var QuestionEditorContentComponent = /** @class */ (function (_super) {
848
848
  };
849
849
  QuestionEditorContentComponent.prototype.render = function () {
850
850
  var question = this.survey.getAllQuestions()[0];
851
- return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
851
+ return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { style: this.props.style },
852
852
  react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_1__.SurveyQuestion, { creator: this, element: question })));
853
853
  };
854
854
  return QuestionEditorContentComponent;
@@ -1936,9 +1936,9 @@ var CreatorSurveyPageComponent = /** @class */ (function (_super) {
1936
1936
  }, onDoubleClick: function (e) { return _this.model.dblclick(e.nativeEvent); }, onMouseLeave: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); } },
1937
1937
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
1938
1938
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
1939
- this.renderHeader(),
1940
1939
  this.renderContent(),
1941
1940
  this.renderPlaceholder(),
1941
+ this.renderHeader(),
1942
1942
  this.renderFooter())));
1943
1943
  };
1944
1944
  CreatorSurveyPageComponent.prototype.renderPlaceholder = function () {
@@ -3776,11 +3776,13 @@ var TabButtonComponent = /** @class */ (function (_super) {
3776
3776
  return this.props.model;
3777
3777
  };
3778
3778
  TabButtonComponent.prototype.renderElement = function () {
3779
- var _this = this;
3780
- var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.props.model.buttonClassName, title: this.props.model.tooltip, onClick: function () { _this.props.model.action(); } },
3779
+ var model = this.props.model;
3780
+ if (!model.visible)
3781
+ return null;
3782
+ var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: model.buttonClassName, title: model.tooltip, onClick: function () { model.action(); } },
3781
3783
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action__icon" },
3782
3784
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action__icon-container" },
3783
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.props.model.iconName, size: "auto" })))), this.props.model);
3785
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: model.iconName, size: "auto" })))), model);
3784
3786
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-menu-action" }, button));
3785
3787
  };
3786
3788
  return TabButtonComponent;
@@ -5544,7 +5546,7 @@ __webpack_require__.r(__webpack_exports__);
5544
5546
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
5545
5547
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
5546
5548
  var Version;
5547
- Version = "".concat("2.0.0");
5549
+ Version = "".concat("2.0.1");
5548
5550
  // import "@survey/creator/survey-creator-core.css";
5549
5551
 
5550
5552
 
@@ -5616,7 +5618,7 @@ Version = "".concat("2.0.0");
5616
5618
 
5617
5619
 
5618
5620
 
5619
- (0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.0.0"), "survey-creator-react");
5621
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.0.1"), "survey-creator-react");
5620
5622
 
5621
5623
  })();
5622
5624