survey-creator-react 2.0.0-rc.3 → 2.0.0-rc.4

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-rc.3",
3
+ "version": "2.0.0-rc.4",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -30,9 +30,9 @@
30
30
  "ace-builds": "^1.4.12",
31
31
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
32
32
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
33
- "survey-core": "2.0.0-rc.3",
34
- "survey-react-ui": "2.0.0-rc.3",
35
- "survey-creator-core": "2.0.0-rc.3"
33
+ "survey-core": "2.0.0-rc.4",
34
+ "survey-react-ui": "2.0.0-rc.4",
35
+ "survey-creator-core": "2.0.0-rc.4"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v2.0.0-rc.3
2
+ * SurveyJS Creator React v2.0.0-rc.4
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
@@ -3987,7 +3987,7 @@ var TabDesignerComponent = /** @class */ (function (_super) {
3987
3987
  TabDesignerComponent.prototype.renderTabContent = function () {
3988
3988
  var survey = this.creator.survey;
3989
3989
  var surveyHeader = this.renderHeader(this.creator.allowEditSurveyTitle);
3990
- var style = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, this.model.surveyThemeVariables);
3990
+ var style = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, this.model.surfaceCssVariables);
3991
3991
  style.maxWidth = survey.renderedWidth;
3992
3992
  var tabTools = this.renderTabTools();
3993
3993
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
@@ -4278,11 +4278,13 @@ var TabLogicComponent = /** @class */ (function (_super) {
4278
4278
  var logicTabClassName = "svc-plugin-tab__content svc-logic-tab svc-logic-tab__content " + (this.model.hasItems ? "" : "svc-logic-tab--empty");
4279
4279
  var addLogic = !this.model.readOnly ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(TabLogicAddButtonComponent, { button: this.model.addNewButton }) : undefined;
4280
4280
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
4281
- react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: logicTabClassName },
4282
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.itemsSurvey }),
4283
- this.model.hasItems ? null : (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-logic-tab__content-empty" },
4284
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_3__.SurfacePlaceholder, { name: "logic", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText }))),
4285
- addLogic)));
4281
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: logicTabClassName }, this.model.hasItems ?
4282
+ (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
4283
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.itemsSurvey }),
4284
+ addLogic))
4285
+ : (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-logic-tab__content-empty" },
4286
+ react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_3__.SurfacePlaceholder, { name: "logic", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText }),
4287
+ addLogic)))));
4286
4288
  };
4287
4289
  return TabLogicComponent;
4288
4290
  }(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
@@ -4365,8 +4367,7 @@ var TabPreviewSurveyComponent = /** @class */ (function (_super) {
4365
4367
  return this.model;
4366
4368
  };
4367
4369
  TabPreviewSurveyComponent.prototype.renderPlaceholder = function () {
4368
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-test-tab--empty" },
4369
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_5__.SurfacePlaceholder, { name: "preview", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText })));
4370
+ return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_5__.SurfacePlaceholder, { name: "preview", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText });
4370
4371
  };
4371
4372
  TabPreviewSurveyComponent.prototype.renderSimulator = function () {
4372
4373
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-plugin-tab__content" },
@@ -4506,8 +4507,7 @@ var TabThemeSurveyComponent = /** @class */ (function (_super) {
4506
4507
  return this.model;
4507
4508
  };
4508
4509
  TabThemeSurveyComponent.prototype.renderPlaceholder = function () {
4509
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-test-tab--empty" },
4510
- react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_5__.SurfacePlaceholder, { name: "theme", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText })));
4510
+ return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_5__.SurfacePlaceholder, { name: "theme", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText });
4511
4511
  };
4512
4512
  TabThemeSurveyComponent.prototype.renderSimulator = function () {
4513
4513
  return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-plugin-tab__content" },
@@ -5545,7 +5545,7 @@ __webpack_require__.r(__webpack_exports__);
5545
5545
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
5546
5546
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
5547
5547
  var Version;
5548
- Version = "".concat("2.0.0-rc.3");
5548
+ Version = "".concat("2.0.0-rc.4");
5549
5549
  // import "@survey/creator/survey-creator-core.css";
5550
5550
 
5551
5551
 
@@ -5618,7 +5618,7 @@ Version = "".concat("2.0.0-rc.3");
5618
5618
 
5619
5619
 
5620
5620
 
5621
- (0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.0.0-rc.3"), "survey-creator-react");
5621
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.0.0-rc.4"), "survey-creator-react");
5622
5622
 
5623
5623
  })();
5624
5624