authscape 1.0.148 → 1.0.150
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/index.js
CHANGED
|
@@ -747,6 +747,7 @@ var AutoCompleteDialog = function AutoCompleteDialog(_ref) {
|
|
|
747
747
|
onSelected = _ref.onSelected,
|
|
748
748
|
defaultValue = _ref.defaultValue,
|
|
749
749
|
react_hook_form_Control = _ref.react_hook_form_Control,
|
|
750
|
+
react_hook_form_errors = _ref.react_hook_form_errors,
|
|
750
751
|
onChange = _ref.onChange;
|
|
751
752
|
var txtAddressField = (0, _react.useRef)(null);
|
|
752
753
|
var dismissSuggestions = function dismissSuggestions() {
|
|
@@ -1066,6 +1067,7 @@ var GooglePlacesModal = function GooglePlacesModal(_ref4) {
|
|
|
1066
1067
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_system.Box, null, /*#__PURE__*/_react["default"].createElement(AutoCompleteDialog, {
|
|
1067
1068
|
placeholder: "Address",
|
|
1068
1069
|
react_hook_form_Control: react_hook_form_Control,
|
|
1070
|
+
react_hook_form_errors: react_hook_form_errors,
|
|
1069
1071
|
defaultValue: address,
|
|
1070
1072
|
onSelected: function onSelected(data) {
|
|
1071
1073
|
setAddress(data.address);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "authscape",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.150",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"query-string": "^7.1.1",
|
|
41
41
|
"react-cool-onclickoutside": "^1.7.0",
|
|
42
42
|
"react-data-table-component": "^7.5.2",
|
|
43
|
+
"react-hook-form": "^7.44.2",
|
|
43
44
|
"use-places-autocomplete": "^4.0.0"
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -19,7 +19,7 @@ import usePlacesAutocomplete, {
|
|
|
19
19
|
getLatLng,
|
|
20
20
|
} from "use-places-autocomplete";
|
|
21
21
|
|
|
22
|
-
const AutoCompleteDialog = ({placeholder, onSelected, defaultValue, react_hook_form_Control, onChange}) => {
|
|
22
|
+
const AutoCompleteDialog = ({placeholder, onSelected, defaultValue, react_hook_form_Control, react_hook_form_errors, onChange}) => {
|
|
23
23
|
|
|
24
24
|
const txtAddressField = useRef(null);
|
|
25
25
|
|
|
@@ -388,6 +388,7 @@ export const GooglePlacesModal = ({
|
|
|
388
388
|
<AutoCompleteDialog
|
|
389
389
|
placeholder={"Address"}
|
|
390
390
|
react_hook_form_Control={react_hook_form_Control}
|
|
391
|
+
react_hook_form_errors={react_hook_form_errors}
|
|
391
392
|
defaultValue={address}
|
|
392
393
|
onSelected={(data) => {
|
|
393
394
|
setAddress(data.address);
|