@dfds-ui/google-places 2.2.0-alpha.f8b06f5f → 2.2.0-alpha.f8ef65bc
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/GooglePlaces.js +2 -2
- package/cjs/GooglePlaces.js +2 -2
- package/package.json +8 -8
package/GooglePlaces.js
CHANGED
|
@@ -72,7 +72,7 @@ export var useAddressPredictions = function useAddressPredictions(input, _ref2)
|
|
|
72
72
|
setPredictions = _useState4[1];
|
|
73
73
|
var _useGooglePlacesAPI = useGooglePlacesAPI(),
|
|
74
74
|
available = _useGooglePlacesAPI.available;
|
|
75
|
-
var autocomplete = useRef();
|
|
75
|
+
var autocomplete = useRef(undefined);
|
|
76
76
|
if (!autocomplete.current && available && typeof window !== 'undefined') {
|
|
77
77
|
autocomplete.current = new google.maps.places.AutocompleteService();
|
|
78
78
|
}
|
|
@@ -104,7 +104,7 @@ export var useAddressPredictions = function useAddressPredictions(input, _ref2)
|
|
|
104
104
|
if (input !== '') {
|
|
105
105
|
void getPlacePredictions(input);
|
|
106
106
|
}
|
|
107
|
-
// eslint-disable-next-line react
|
|
107
|
+
// eslint-disable-next-line @eslint-react/exhaustive-deps
|
|
108
108
|
}, [input]);
|
|
109
109
|
return {
|
|
110
110
|
available: available,
|
package/cjs/GooglePlaces.js
CHANGED
|
@@ -68,7 +68,7 @@ const useAddressPredictions = (input, {
|
|
|
68
68
|
const {
|
|
69
69
|
available
|
|
70
70
|
} = useGooglePlacesAPI();
|
|
71
|
-
const autocomplete = (0, _react.useRef)();
|
|
71
|
+
const autocomplete = (0, _react.useRef)(undefined);
|
|
72
72
|
if (!autocomplete.current && available && typeof window !== 'undefined') {
|
|
73
73
|
autocomplete.current = new google.maps.places.AutocompleteService();
|
|
74
74
|
}
|
|
@@ -96,7 +96,7 @@ const useAddressPredictions = (input, {
|
|
|
96
96
|
if (input !== '') {
|
|
97
97
|
void getPlacePredictions(input);
|
|
98
98
|
}
|
|
99
|
-
// eslint-disable-next-line react
|
|
99
|
+
// eslint-disable-next-line @eslint-react/exhaustive-deps
|
|
100
100
|
}, [input]);
|
|
101
101
|
return {
|
|
102
102
|
available,
|
package/package.json
CHANGED
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
"description": "Components using Google places",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.2.0-alpha.
|
|
6
|
+
"version": "2.2.0-alpha.f8ef65bc",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
10
10
|
"esnext": "./index.js",
|
|
11
11
|
"typings": "./index.d.ts",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"react": ">=
|
|
14
|
-
"react-dom": ">=
|
|
13
|
+
"react": ">= 19.0.0",
|
|
14
|
+
"react-dom": ">= 19.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@dfds-ui/colors": "2.2.0-alpha.
|
|
18
|
-
"@dfds-ui/hooks": "2.2.0-alpha.
|
|
19
|
-
"@dfds-ui/icons": "2.2.0-alpha.
|
|
20
|
-
"@dfds-ui/react-components": "2.2.0-alpha.
|
|
17
|
+
"@dfds-ui/colors": "2.2.0-alpha.f8ef65bc",
|
|
18
|
+
"@dfds-ui/hooks": "2.2.0-alpha.f8ef65bc",
|
|
19
|
+
"@dfds-ui/icons": "2.2.0-alpha.f8ef65bc",
|
|
20
|
+
"@dfds-ui/react-components": "2.2.0-alpha.f8ef65bc",
|
|
21
21
|
"@types/googlemaps": "3.43.3",
|
|
22
22
|
"@types/lodash.debounce": "^4.0.9",
|
|
23
23
|
"lodash.debounce": "^4.0.8"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "f8ef65bc9f4ec820302f575df163f9a47f0e4bf8",
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
}
|