survey-creator-js 2.5.21 → 2.5.23

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.5.21
2
+ * SurveyJS Creator v2.5.23
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-js",
3
- "version": "2.5.21",
3
+ "version": "2.5.23",
4
4
  "description": "A white-label drag-and-drop form builder for HTML, CSS, and JavaScript apps. It generates JSON schemas for rendering dynamic forms with SurveyJS Form Library. Design complex, interactive forms and surveys without writing code.",
5
5
  "author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
6
6
  "homepage": "https://surveyjs.io/",
@@ -46,9 +46,9 @@
46
46
  "typings": "./typings/survey-creator-js/entries/index.d.ts",
47
47
  "peerDependencies": {
48
48
  "ace-builds": "^1.4.12",
49
- "survey-core": "2.5.21",
50
- "survey-js-ui": "2.5.21",
51
- "survey-creator-core": "2.5.21",
49
+ "survey-core": "2.5.23",
50
+ "survey-js-ui": "2.5.23",
51
+ "survey-creator-core": "2.5.23",
52
52
  "@types/react-dom": "*",
53
53
  "@types/react": "*"
54
54
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.5.21
2
+ * SurveyJS Creator v2.5.23
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
@@ -2763,10 +2763,8 @@
2763
2763
  };
2764
2764
  SurveyPageNavigator.prototype.componentDidMount = function () {
2765
2765
  _super.prototype.componentDidMount.call(this);
2766
- if (this.props.pageEditMode !== "bypage") {
2767
- var el = this.containerRef.current;
2768
- this.model.attachToUI(el);
2769
- }
2766
+ var el = this.containerRef.current;
2767
+ this.model.attachToUI(el);
2770
2768
  };
2771
2769
  SurveyPageNavigator.prototype.componentWillUnmount = function () {
2772
2770
  _super.prototype.componentWillUnmount.call(this);
@@ -3159,6 +3157,12 @@
3159
3157
  return React__namespace.createElement(TabLogicComponent, props);
3160
3158
  });
3161
3159
 
3160
+ function simulatorShellStyle(overlayHeight) {
3161
+ var _a;
3162
+ return overlayHeight
3163
+ ? (_a = {}, _a["--sv-popup-overlay-height"] = overlayHeight, _a)
3164
+ : {};
3165
+ }
3162
3166
  var SurveySimulator = /** @class */ (function (_super) {
3163
3167
  __extends(SurveySimulator, _super);
3164
3168
  function SurveySimulator() {
@@ -3174,9 +3178,22 @@
3174
3178
  SurveySimulator.prototype.getStateElement = function () {
3175
3179
  return this.model;
3176
3180
  };
3181
+ SurveySimulator.prototype.componentDidMount = function () {
3182
+ _super.prototype.componentDidMount.call(this);
3183
+ this.model.queueSurveyLayoutRefresh();
3184
+ };
3185
+ SurveySimulator.prototype.componentDidUpdate = function (prevProps, prevState) {
3186
+ _super.prototype.componentDidUpdate.call(this, prevProps, prevState);
3187
+ this.model.queueSurveyLayoutRefresh();
3188
+ };
3189
+ SurveySimulator.prototype.componentWillUnmount = function () {
3190
+ this.model.cancelSurveyLayoutRefresh();
3191
+ _super.prototype.componentWillUnmount.call(this);
3192
+ };
3177
3193
  SurveySimulator.prototype.renderElement = function () {
3178
3194
  var _this = this;
3179
3195
  var mainSimulatorClass = this.model.getRootCss();
3196
+ var shellStyle = simulatorShellStyle(this.model.popupOverlayHeight);
3180
3197
  if (!this.model.survey) {
3181
3198
  return React__namespace.createElement("div", { className: mainSimulatorClass });
3182
3199
  }
@@ -3193,12 +3210,12 @@
3193
3210
  this.model.simulatorFrame.scale +
3194
3211
  ") translate(-50%, -50%)"
3195
3212
  } },
3196
- React__namespace.createElement("div", { className: "svd-simulator-content" },
3213
+ React__namespace.createElement("div", { className: "svd-simulator-content", style: shellStyle },
3197
3214
  React__namespace.createElement(surveyReactUi.Survey, { model: this.model.survey }))))));
3198
3215
  }
3199
3216
  else {
3200
3217
  return (React__namespace.createElement("div", { className: mainSimulatorClass },
3201
- React__namespace.createElement("div", { className: "svd-simulator-content" },
3218
+ React__namespace.createElement("div", { className: "svd-simulator-content", style: shellStyle },
3202
3219
  React__namespace.createElement(surveyReactUi.Survey, { model: this.model.survey }))));
3203
3220
  }
3204
3221
  };
@@ -3732,8 +3749,8 @@
3732
3749
  surveyCore.RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
3733
3750
 
3734
3751
  exports.Version = void 0;
3735
- exports.Version = "".concat("2.5.21");
3736
- surveyCore.checkLibraryVersion("".concat("2.5.21"), "survey-creator-react");
3752
+ exports.Version = "".concat("2.5.23");
3753
+ surveyCore.checkLibraryVersion("".concat("2.5.23"), "survey-creator-react");
3737
3754
 
3738
3755
  function renderSurveyCreator(creator, element, props) {
3739
3756
  if (props === void 0) { props = {}; }