survey-creator-react 1.9.92 → 1.9.94
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/README.md +34 -0
- package/package.json +4 -4
- package/survey-creator-react.js +7 -5
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +2 -2
package/README.md
CHANGED
|
@@ -18,6 +18,40 @@ To get started with Survey Creator / Form Builder for React, refer to the follow
|
|
|
18
18
|
- [Live Examples](https://surveyjs.io/Examples/Survey-Creator)
|
|
19
19
|
- [What's New](https://surveyjs.io/WhatsNew)
|
|
20
20
|
|
|
21
|
+
## Build Survey Creator / Form Builder for React from Sources
|
|
22
|
+
|
|
23
|
+
If you want to build the library yourself, do the following:
|
|
24
|
+
|
|
25
|
+
1. **Build `survey-library` and `survey-creator-core`**\
|
|
26
|
+
Refer to the following instructions:
|
|
27
|
+
|
|
28
|
+
- [Build the SurveyJS Form Library from Sources](https://github.com/surveyjs/survey-library#build-the-surveyjs-form-library-from-sources)
|
|
29
|
+
- [Build the Survey Creator Model from Sources](https://github.com/surveyjs/survey-creator/tree/master/packages/survey-creator-core#build-the-survey-creator-model-from-sources)
|
|
30
|
+
|
|
31
|
+
> NOTE: Make sure that folders with cloned `survey-library` and `survey-creator` repositories are in the same directory.
|
|
32
|
+
|
|
33
|
+
1. **Install build dependencies for Survey Creator / Form Builder for React**
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
cd survey-creator/packages/survey-creator-react
|
|
37
|
+
npm install
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
1. **Build the library**
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
npm run build
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can find the built library in the "build" directory.
|
|
47
|
+
|
|
48
|
+
1. **Run unit tests**
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
npm test
|
|
52
|
+
```
|
|
53
|
+
This command runs unit tests using [Karma](https://karma-runner.github.io/0.13/index.html).
|
|
54
|
+
|
|
21
55
|
## Licensing
|
|
22
56
|
|
|
23
57
|
Survey Creator is **not available for free commercial usage**. If you want to integrate it into your application, you must purchase a [commercial license](https://surveyjs.io/licensing). However, you can [use Survey Creator online](https://surveyjs.io/create-survey) to produce survey JSON configurations and run them with [SurveyJS Form Library](https://surveyjs.io/form-library/documentation/overview) in your application free of charge.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.94",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -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.94",
|
|
33
|
+
"survey-react-ui": "1.9.94",
|
|
34
|
+
"survey-creator-core": "1.9.94",
|
|
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.94
|
|
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
|
|
@@ -229,8 +229,10 @@ var ImageItemValueAdornerComponent = /** @class */ (function (_super) {
|
|
|
229
229
|
else {
|
|
230
230
|
content = (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null,
|
|
231
231
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-item-value__item" }, this.props.element),
|
|
232
|
-
|
|
233
|
-
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(
|
|
232
|
+
this.model.isDraggable ?
|
|
233
|
+
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-context-button svc-image-item-value-controls__drag-area-indicator", onPointerDown: function (event) { return _this.model.onPointerDown(event); } },
|
|
234
|
+
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-drag-area-indicator" }))
|
|
235
|
+
: null,
|
|
234
236
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-context-container svc-image-item-value-controls" },
|
|
235
237
|
this.model.allowRemove && !this.model.isUploading ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-context-button", onClick: function () { return _this.model.chooseFile(_this.model); } },
|
|
236
238
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-file" }))) : null,
|
|
@@ -3202,7 +3204,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3202
3204
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3203
3205
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_50__);
|
|
3204
3206
|
var Version;
|
|
3205
|
-
Version = "".concat("1.9.
|
|
3207
|
+
Version = "".concat("1.9.94");
|
|
3206
3208
|
// import "@survey/creator/survey-creator-core.css";
|
|
3207
3209
|
|
|
3208
3210
|
|
|
@@ -3262,7 +3264,7 @@ Version = "".concat("1.9.92");
|
|
|
3262
3264
|
|
|
3263
3265
|
|
|
3264
3266
|
|
|
3265
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_50__["checkLibraryVersion"])("".concat("1.9.
|
|
3267
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_50__["checkLibraryVersion"])("".concat("1.9.94"), "survey-creator-react");
|
|
3266
3268
|
|
|
3267
3269
|
|
|
3268
3270
|
/***/ }),
|