@googlemaps/extended-component-library
Advanced tools
Comparing version 0.6.10 to 0.6.11
@@ -7,4 +7,4 @@ /** | ||
/** Package version of this component library. */ | ||
export declare const LIBRARY_VERSION = "0.6.10"; | ||
export declare const LIBRARY_VERSION = "0.6.11"; | ||
/** Identifier of where this component library is sourced from. */ | ||
export declare const ATTRIBUTION_SOURCE_ID = "GIT"; |
@@ -7,5 +7,5 @@ /** | ||
/** Package version of this component library. */ | ||
export const LIBRARY_VERSION = '0.6.10'; // x-release-please-version | ||
export const LIBRARY_VERSION = '0.6.11'; // x-release-please-version | ||
/** Identifier of where this component library is sourced from. */ | ||
export const ATTRIBUTION_SOURCE_ID = 'NPM'; | ||
//# sourceMappingURL=constants.js.map |
@@ -6,2 +6,3 @@ /** | ||
*/ | ||
/// <reference types="google.maps" /> | ||
import { PropertyValues } from 'lit'; | ||
@@ -21,3 +22,3 @@ import { BaseComponent } from '../base/base_component.js'; | ||
export declare const placeContext: { | ||
__context__: Place | undefined; | ||
__context__: google.maps.places.Place | undefined; | ||
}; | ||
@@ -24,0 +25,0 @@ export declare const placeConsumerRegistrationContext: { |
@@ -13,44 +13,10 @@ /** | ||
/** Attribution object for Place photos and reviews. */ | ||
export declare interface AuthorAttribution { | ||
displayName: string; | ||
photoURI: string | null; | ||
uri: string | null; | ||
} | ||
export type AuthorAttribution = google.maps.places.AuthorAttribution; | ||
/** Place Photo object. */ | ||
export declare type Photo = Omit<google.maps.places.Photo, 'attributions'> & { | ||
authorAttributions: AuthorAttribution[]; | ||
}; | ||
export type Photo = google.maps.places.Photo; | ||
/** Place Review object. */ | ||
export declare type Review = Omit<google.maps.places.Review, 'author' | 'authorURI' | 'authorPhotoURI'> & { | ||
authorAttribution: AuthorAttribution | null; | ||
}; | ||
/** Search by text request. */ | ||
export declare interface SearchByTextRequest { | ||
textQuery: string; | ||
fields: string[]; | ||
locationBias?: LatLng | LatLngLiteral | LatLngBounds | LatLngBoundsLiteral; | ||
locationRestriction?: LatLngBounds | LatLngBoundsLiteral; | ||
includedType?: string; | ||
region?: string; | ||
} | ||
/** Updated Place class with new attribution schema. */ | ||
export declare interface Place extends Omit<google.maps.places.Place, 'photos' | 'reviews' | 'fetchFields' | 'accessibilityOptions'> { | ||
photos?: Photo[]; | ||
reviews?: Review[]; | ||
accessibilityOptions?: { | ||
hasWheelchairAccessibleEntrance: boolean | null; | ||
} | null; | ||
fetchFields: (options: google.maps.places.FetchFieldsRequest) => Promise<{ | ||
place: Place; | ||
}>; | ||
} | ||
/** Places library. */ | ||
export declare interface PlacesLibrary extends Omit<google.maps.PlacesLibrary, 'Place'> { | ||
Place: { | ||
new (options: google.maps.places.PlaceOptions): Place; | ||
searchByText: (request: SearchByTextRequest) => Promise<{ | ||
places: Place[]; | ||
}>; | ||
}; | ||
} | ||
export type Review = google.maps.places.Review; | ||
export type SearchByTextRequest = google.maps.places.SearchByTextRequest; | ||
export type Place = google.maps.places.Place; | ||
export type PlacesLibrary = google.maps.PlacesLibrary; | ||
/** google.maps.marker.AdvancedMarkerElement. */ | ||
@@ -57,0 +23,0 @@ export type AdvancedMarkerElement = google.maps.marker.AdvancedMarkerElement; |
{ | ||
"name": "@googlemaps/extended-component-library", | ||
"version": "0.6.10", | ||
"version": "0.6.11", | ||
"description": "Web Components for building rich experiences with the Google Maps JavaScript API.", | ||
@@ -79,3 +79,3 @@ "license": "Apache-2.0", | ||
"@rollup/plugin-terser": "^0.4.3", | ||
"@types/google.maps": "~3.55.6", | ||
"@types/google.maps": "~3.55.8", | ||
"@types/jasmine": "^4.3.6", | ||
@@ -82,0 +82,0 @@ "@types/react": "^18.2.24", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1236682
12787