survey-creator-react 1.9.86 → 1.9.88
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.9.
|
|
4
|
-
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
|
|
3
|
+
"version": "1.9.88",
|
|
4
|
+
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
7
7
|
"Survey Creator",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"ace-builds": "^1.4.12"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"survey-core": "1.9.
|
|
33
|
-
"survey-react-ui": "1.9.
|
|
34
|
-
"survey-creator-core": "1.9.
|
|
32
|
+
"survey-core": "1.9.88",
|
|
33
|
+
"survey-react-ui": "1.9.88",
|
|
34
|
+
"survey-creator-core": "1.9.88",
|
|
35
35
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
36
36
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
37
37
|
},
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.9.
|
|
2
|
+
* SurveyJS Creator React v1.9.88
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -1417,7 +1417,7 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1417
1417
|
var control = null;
|
|
1418
1418
|
if (this.locString.hasHtml) {
|
|
1419
1419
|
var htmlValue = { __html: this.baseModel.focused && this.baseModel.editAsText && this.locString.text || this.locString.renderedHtml };
|
|
1420
|
-
control = (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
1420
|
+
control = (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor sv-string-editor--html", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
1421
1421
|
// style={this.style}
|
|
1422
1422
|
dangerouslySetInnerHTML: htmlValue, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onMouseUp: this.onMouseUp, onClick: this.edit }));
|
|
1423
1423
|
}
|
|
@@ -2409,6 +2409,24 @@ var QuestionImageAdornerComponent = /** @class */ (function (_super) {
|
|
|
2409
2409
|
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-question-controls" }, this.model.allowEdit && !this.model.isUploading ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-question-controls__button svc-image-question-controls__choose-file", onClick: function () { return _this.imageModel.chooseFile(_this.imageModel); } },
|
|
2410
2410
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-file" }))) : null));
|
|
2411
2411
|
};
|
|
2412
|
+
QuestionImageAdornerComponent.prototype.getStateElements = function () {
|
|
2413
|
+
return [this.model, this.imageModel.filePresentationModel];
|
|
2414
|
+
};
|
|
2415
|
+
QuestionImageAdornerComponent.prototype.renderElementContent = function () {
|
|
2416
|
+
if (this.imageModel.isEmptyImageLink) {
|
|
2417
|
+
var fileQuestion = survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactQuestionFactory"].Instance.createQuestion("file", {
|
|
2418
|
+
creator: this.imageModel.question.survey,
|
|
2419
|
+
isDisplayMode: false,
|
|
2420
|
+
question: this.imageModel.filePresentationModel
|
|
2421
|
+
});
|
|
2422
|
+
return fileQuestion;
|
|
2423
|
+
}
|
|
2424
|
+
else {
|
|
2425
|
+
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null,
|
|
2426
|
+
this.props.element,
|
|
2427
|
+
this.renderElementPlaceholder()));
|
|
2428
|
+
}
|
|
2429
|
+
};
|
|
2412
2430
|
return QuestionImageAdornerComponent;
|
|
2413
2431
|
}(_Question__WEBPACK_IMPORTED_MODULE_4__["QuestionAdornerComponent"]));
|
|
2414
2432
|
|
|
@@ -3033,7 +3051,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3033
3051
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3034
3052
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_47___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_47__);
|
|
3035
3053
|
var Version;
|
|
3036
|
-
Version = "".concat("1.9.
|
|
3054
|
+
Version = "".concat("1.9.88");
|
|
3037
3055
|
// import "@survey/creator/survey-creator-core.css";
|
|
3038
3056
|
|
|
3039
3057
|
|
|
@@ -3090,7 +3108,7 @@ Version = "".concat("1.9.86");
|
|
|
3090
3108
|
|
|
3091
3109
|
|
|
3092
3110
|
|
|
3093
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_47__["checkLibraryVersion"])("".concat("1.9.
|
|
3111
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_47__["checkLibraryVersion"])("".concat("1.9.88"), "survey-creator-react");
|
|
3094
3112
|
|
|
3095
3113
|
|
|
3096
3114
|
/***/ }),
|