Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit db685a3

Browse files
authored
fix: ecl shimming (#1717)
1 parent 2fada55 commit db685a3

4 files changed

Lines changed: 6 additions & 37 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"dependencies": {
8787
"@fortawesome/fontawesome-svg-core": "^6.3.0",
8888
"@fortawesome/free-solid-svg-icons": "^6.5.1",
89-
"@googlemaps/extended-component-library": "^0.6.10",
89+
"@googlemaps/extended-component-library": "^0.6.11",
9090
"@googlemaps/js-api-loader": "^1.15.1",
9191
"@googlemaps/markerclusterer": "2.3.1",
9292
"@googlemaps/react-wrapper": "^1.1.35",

samples/rgm-college-picker/index.tsx

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,6 @@ import * as GMPX from '@googlemaps/extended-component-library/react';
1212
import { OverlayLayout } from '@googlemaps/extended-component-library/overlay_layout.js';
1313
import { PlacePicker } from '@googlemaps/extended-component-library/place_picker.js';
1414

15-
/* Google Maps JS SDK typings, which are
16-
* published as `@types/google.maps`. However, sometimes there is a delay
17-
* in published typings. Components should use types from this file so we
18-
* can centrally shim/unshim them when necessary.
19-
*/
20-
21-
export declare interface AuthorAttribution {
22-
displayName: string;
23-
photoURI: string|null;
24-
uri: string|null;
25-
}
26-
27-
export declare type Photo = Omit<google.maps.places.Photo, 'attributions'>& {
28-
authorAttributions: AuthorAttribution[];
29-
};
30-
31-
export declare type Review =
32-
Omit<google.maps.places.Review, 'author'|'authorURI'|'authorPhotoURI'>& {
33-
authorAttribution: AuthorAttribution|null;
34-
};
35-
36-
export declare interface Place extends Omit<
37-
google.maps.places.Place,
38-
'photos'|'reviews'|'fetchFields'|'accessibilityOptions'> {
39-
photos?: Photo[];
40-
reviews?: Review[];
41-
accessibilityOptions?: {hasWheelchairAccessibleEntrance: boolean|null}|null;
42-
fetchFields: (options: google.maps.places.FetchFieldsRequest) =>
43-
Promise<{place: Place}>;
44-
}
45-
4615
const API_KEY =
4716
globalThis.GOOGLE_MAPS_API_KEY ?? ("YOUR_API_KEY");
4817
const DEFAULT_CENTER = { lat: -34.397, lng: 150.644 };
@@ -55,7 +24,7 @@ const DEFAULT_ZOOM_WITH_LOCATION = 16;
5524
const App = () => {
5625
const overlayLayoutRef = useRef<OverlayLayout>(null);
5726
const pickerRef = useRef<PlacePicker>(null);
58-
const [college, setCollege] = useState<Place | undefined>(undefined);
27+
const [college, setCollege] = useState<google.maps.places.Place | undefined>(undefined);
5928

6029
return (
6130
<div className="App">

samples/rgm-college-picker/rgm-college-picker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"title": "React Google Maps - College Picker Appd",
2+
"title": "React Google Maps - College Picker App",
33
"libraries": [],
44
"version": "weekly",
55
"tag": "rgm_college_picker",

0 commit comments

Comments
 (0)