react-survey-builder 1.0.12 → 1.0.15
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/dist/index.js +1 -1
- package/lib/form-fields.js +2 -0
- package/package.json +8 -12
package/lib/form-fields.js
CHANGED
@@ -68,6 +68,8 @@ var ReactSurveyFormFields = function ReactSurveyFormFields(_ref) {
|
|
68
68
|
buttonClassName = _ref.buttonClassName,
|
69
69
|
formId = _ref.formId;
|
70
70
|
var methods = (0, _reactHookForm.useFormContext)();
|
71
|
+
console.log(methods);
|
72
|
+
if (!methods) return null;
|
71
73
|
|
72
74
|
//#region helper functions
|
73
75
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-survey-builder",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.15",
|
4
4
|
"description": "A complete survey builder for react.",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "types/index.d.ts",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
},
|
29
29
|
"author": "Garrett Lang",
|
30
30
|
"dependencies": {
|
31
|
-
"@hookform/error-message": "
|
31
|
+
"@hookform/error-message": "^2.0.1",
|
32
32
|
"beedle": "^0.8.1",
|
33
33
|
"classnames": "^2.2.6",
|
34
34
|
"create-react-class": "^15.7.0",
|
@@ -44,15 +44,15 @@
|
|
44
44
|
"moment": "^2.30.1",
|
45
45
|
"moment-timezone": "^0.5.44",
|
46
46
|
"prop-types": "^15.7.2",
|
47
|
-
"react-bootstrap": "
|
47
|
+
"react-bootstrap": "^2.9.2",
|
48
48
|
"react-bootstrap-range-slider": "^3.0.8",
|
49
49
|
"react-bootstrap-typeahead": "^6.3.2",
|
50
50
|
"react-dnd": "^11.1.3",
|
51
51
|
"react-dnd-html5-backend": "^11.1.3",
|
52
52
|
"react-draft-wysiwyg": "^1.15.0",
|
53
|
-
"react-hook-form": "
|
54
|
-
"react-icons": "
|
55
|
-
"react-imask": "
|
53
|
+
"react-hook-form": "^7.45.4",
|
54
|
+
"react-icons": "^5.0.1",
|
55
|
+
"react-imask": "^7.0.1",
|
56
56
|
"react-intl": "^5.24.3",
|
57
57
|
"react-select": "^5.8.0",
|
58
58
|
"react-signature-canvas": "^1.0.3",
|
@@ -60,13 +60,9 @@
|
|
60
60
|
"xss": "^1.0.8"
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|
63
|
-
"@hookform/error-message": ">=2.0.1",
|
64
63
|
"react": ">=18.2.0",
|
65
|
-
"react-
|
66
|
-
|
67
|
-
"react-hook-form": ">=7.45.4",
|
68
|
-
"react-icons": ">=5.0.1",
|
69
|
-
"react-imask": ">=7.0.1"
|
64
|
+
"react-dom": ">=18.2.0"
|
65
|
+
|
70
66
|
},
|
71
67
|
"devDependencies": {
|
72
68
|
"@babel/cli": "^7.12.10",
|