survey-creator-react 3.2.2 → 3.2.3
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.2.
|
|
3
|
+
"version": "3.2.3",
|
|
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.2.
|
|
71
|
-
"survey-react-ui": "3.2.
|
|
72
|
-
"survey-creator-core": "3.2.
|
|
70
|
+
"survey-core": "3.2.3",
|
|
71
|
+
"survey-react-ui": "3.2.3",
|
|
72
|
+
"survey-creator-core": "3.2.3"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"ace-builds": {
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v3.2.
|
|
2
|
+
* SurveyJS Creator v3.2.3
|
|
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
|
|
@@ -917,12 +917,16 @@
|
|
|
917
917
|
}
|
|
918
918
|
renderContent() {
|
|
919
919
|
if (!this.model.needRenderContent) {
|
|
920
|
-
return React__namespace.createElement("div", { className:
|
|
920
|
+
return React__namespace.createElement("div", { className: this.model.loadingContentCss },
|
|
921
921
|
React__namespace.createElement(surveyReactUi.LoadingIndicatorComponent, null));
|
|
922
922
|
}
|
|
923
923
|
return (React__namespace.createElement(PageElementContent, { page: this.props.page, survey: this.props.survey, creator: this.props.creator }));
|
|
924
924
|
}
|
|
925
925
|
renderHeader() {
|
|
926
|
+
// The loading placeholder renders no header and no footer: reading their action containers builds them
|
|
927
|
+
// (and fires onElementGetActions / onPageGetFooterActions) for every page, rendered or not.
|
|
928
|
+
if (!this.model.needRenderContent)
|
|
929
|
+
return null;
|
|
926
930
|
const actions = (React__namespace.createElement("div", { className: "svc-page__content-actions" },
|
|
927
931
|
React__namespace.createElement(surveyReactUi.SurveyActionBar, { model: this.model.actionContainer }),
|
|
928
932
|
(this.model.topActionContainer.hasActions ? React__namespace.createElement(surveyReactUi.SurveyActionBar, { model: this.model.topActionContainer }) : null)));
|
|
@@ -934,6 +938,8 @@
|
|
|
934
938
|
actions));
|
|
935
939
|
}
|
|
936
940
|
renderFooter() {
|
|
941
|
+
if (!this.model.needRenderContent)
|
|
942
|
+
return null;
|
|
937
943
|
return React__namespace.createElement(surveyReactUi.SurveyActionBar, { model: this.model.footerActionsBar });
|
|
938
944
|
}
|
|
939
945
|
}
|
|
@@ -2524,7 +2530,7 @@
|
|
|
2524
2530
|
const errors = React__namespace.createElement(TabJsonEditorErrorsComponent, { data: this.model });
|
|
2525
2531
|
return (React__namespace.createElement("div", { className: "svc-creator-tab__content" },
|
|
2526
2532
|
React__namespace.createElement("div", { className: "svc-json-editor-tab__content" },
|
|
2527
|
-
React__namespace.createElement("textarea", { ref: input => (setControl(input)), className: "svc-json-editor-tab__content-area", value: this.model.text, onChange: (e) =>
|
|
2533
|
+
React__namespace.createElement("textarea", { ref: input => (setControl(input)), className: "svc-json-editor-tab__content-area", value: this.model.text, onChange: (e) => this.model.onTextInput(e.target.value), onKeyDown: (e) => this.model.checkKey(e, e), disabled: this.model.readOnly, "aria-label": this.model.ariaLabel }),
|
|
2528
2534
|
errors)));
|
|
2529
2535
|
}
|
|
2530
2536
|
}
|
|
@@ -3215,8 +3221,8 @@
|
|
|
3215
3221
|
});
|
|
3216
3222
|
|
|
3217
3223
|
exports.Version = void 0;
|
|
3218
|
-
exports.Version = `${"3.2.
|
|
3219
|
-
surveyCore.checkLibraryVersion(`${"3.2.
|
|
3224
|
+
exports.Version = `${"3.2.3"}`;
|
|
3225
|
+
surveyCore.checkLibraryVersion(`${"3.2.3"}`, "survey-creator-react");
|
|
3220
3226
|
|
|
3221
3227
|
Object.defineProperty(exports, "PropertyGridEditorCollection", {
|
|
3222
3228
|
enumerable: true,
|