@googlemaps/extended-component-library
Advanced tools
Comparing version 0.6.6 to 0.6.7
@@ -7,4 +7,4 @@ /** | ||
/** Package version of this component library. */ | ||
export declare const LIBRARY_VERSION = "0.6.6"; | ||
export declare const LIBRARY_VERSION = "0.6.7"; | ||
/** Identifier of where this component library is sourced from. */ | ||
export declare const ATTRIBUTION_SOURCE_ID = "GIT"; | ||
export declare const ATTRIBUTION_SOURCE_ID = "NPM"; |
@@ -7,5 +7,5 @@ /** | ||
/** Package version of this component library. */ | ||
export const LIBRARY_VERSION = '0.6.6'; // x-release-please-version | ||
export const LIBRARY_VERSION = '0.6.7'; // x-release-please-version | ||
/** Identifier of where this component library is sourced from. */ | ||
export const ATTRIBUTION_SOURCE_ID = 'NPM'; | ||
//# sourceMappingURL=constants.js.map |
@@ -82,3 +82,3 @@ /** | ||
case 'hasWheelchairAccessibleEntrance': | ||
return place.hasWheelchairAccessibleEntrance; | ||
return place.accessibilityOptions?.hasWheelchairAccessibleEntrance; | ||
case 'isReservable': | ||
@@ -143,12 +143,14 @@ return place.isReservable; | ||
const placeField = toPlaceBooleanField(this.field); | ||
if (placeField === 'isOpen()') { | ||
return [ | ||
'businessStatus', | ||
'openingHours', | ||
'utcOffsetMinutes', | ||
]; | ||
switch (placeField) { | ||
case 'isOpen()': | ||
return [ | ||
'businessStatus', | ||
'openingHours', | ||
'utcOffsetMinutes', | ||
]; | ||
case 'hasWheelchairAccessibleEntrance': | ||
return ['accessibilityOptions']; | ||
default: | ||
return [placeField]; | ||
} | ||
else { | ||
return [placeField]; | ||
} | ||
} | ||
@@ -155,0 +157,0 @@ placeHasData(place) { |
@@ -35,9 +35,12 @@ /** | ||
/** Updated Place class with new attribution schema. */ | ||
export declare type Place = Omit<google.maps.places.Place, 'photos' | 'reviews' | 'fetchFields'> & { | ||
export declare interface Place extends Omit<google.maps.places.Place, 'photos' | 'reviews' | 'fetchFields' | 'hasWheelchairAccessibleEntrance'> { | ||
photos?: Photo[]; | ||
reviews?: Review[]; | ||
accessibilityOptions?: { | ||
hasWheelchairAccessibleEntrance: boolean | null; | ||
} | null; | ||
fetchFields: (options: google.maps.places.FetchFieldsRequest) => Promise<{ | ||
place: Place; | ||
}>; | ||
}; | ||
} | ||
/** Places library. */ | ||
@@ -44,0 +47,0 @@ export declare interface PlacesLibrary extends Omit<google.maps.PlacesLibrary, 'Place'> { |
{ | ||
"name": "@googlemaps/extended-component-library", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"description": "Web Components for building rich experiences with the Google Maps JavaScript API.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -40,3 +40,3 @@ # Extended Component Library | ||
The components in this library make use of Google Maps Platform APIs. To start, you'll need to [sign up for Google Maps Platform and create an API key](https://console.cloud.google.com/google/maps-apis/start?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components). Then, place an API Loader element somewhere in the root of your app's HTML, specifying your API key: | ||
The components in this library make use of Google Maps Platform APIs. To start, you'll need to [sign up for Google Maps Platform and create an API key](https://console.cloud.google.com/google/maps-apis/start?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components). Then, place an API Loader element somewhere in the root of your app's HTML, specifying your API key: | ||
@@ -107,8 +107,8 @@ ```html | ||
Map and marker components can be used with the Extended Component Library, or on their own. See the [guide](https://developers.google.com/maps/documentation/web-components/overview?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components) for more information on Web Components in the Maps JS SDK. | ||
Map and marker components can be used with the Extended Component Library, or on their own. See the [guide](https://developers.google.com/maps/documentation/web-components/overview?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components) for more information on Web Components in the Maps JS SDK. | ||
| Component | Description | | ||
| ----------------------- | ---------------------------------------------- | | ||
| [`<gmp-map>`](https://developers.google.com/maps/documentation/javascript/reference/map?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components#MapElement) | The map component displays a map on a webpage, and can wrap other map-related components such as markers inside the map component in HTML. | | ||
| [`<gmp-advanced-marker>`](https://developers.google.com/maps/documentation/javascript/reference/advanced-markers?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components#AdvancedMarkerElement) | The marker component displays a pin on the map at specified coordinates. | | ||
| [`<gmp-map>`](https://developers.google.com/maps/documentation/javascript/reference/map?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components#MapElement) | The map component displays a map on a webpage, and can wrap other map-related components such as markers inside the map component in HTML. | | ||
| [`<gmp-advanced-marker>`](https://developers.google.com/maps/documentation/javascript/reference/advanced-markers?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components#AdvancedMarkerElement) | The marker component displays a pin on the map at specified coordinates. | | ||
@@ -170,3 +170,3 @@ ## Inventory of components | ||
This library uses Google Maps Platform services, and any use of Google Maps Platform is subject to the [Terms of Service](https://cloud.google.com/maps-platform/terms?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components). | ||
This library uses Google Maps Platform services, and any use of Google Maps Platform is subject to the [Terms of Service](https://cloud.google.com/maps-platform/terms?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components). | ||
@@ -181,8 +181,8 @@ For clarity, this library, and each underlying component, is not a Google Maps Platform Core Service. | ||
This library is offered via an open source license. It is not governed by the Google Maps Platform [Technical Support Services Guidelines](https://cloud.google.com/maps-platform/terms/tssg?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components), the [SLA](https://cloud.google.com/maps-platform/terms/sla?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components), or the [Deprecation Policy](https://cloud.google.com/maps-platform/terms?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components) (however, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service). | ||
This library is offered via an open source license. It is not governed by the Google Maps Platform [Technical Support Services Guidelines](https://cloud.google.com/maps-platform/terms/tssg?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components), the [SLA](https://cloud.google.com/maps-platform/terms/sla?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components), or the [Deprecation Policy](https://cloud.google.com/maps-platform/terms?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components) (however, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service). | ||
This library adheres to [semantic versioning](https://semver.org/) to indicate when backwards-incompatible changes are introduced. Accordingly, while the library is in version 0.x, backwards-incompatible changes may be introduced at any time. | ||
If you find a bug, or have a feature request, please file an issue on GitHub. If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our [developer community channels](https://developers.google.com/maps/developer-community?utm_source=github&utm_medium=documentation&utm_campaign=&utm_content=web_components). If you'd like to contribute, please check the [Contributing guide](https://github.com/googlemaps/extended-component-library/blob/main/CONTRIBUTING.md) in the GitHub repository. | ||
If you find a bug, or have a feature request, please file an issue on GitHub. If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our [developer community channels](https://developers.google.com/maps/developer-community?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components). If you'd like to contribute, please check the [Contributing guide](https://github.com/googlemaps/extended-component-library/blob/main/CONTRIBUTING.md) in the GitHub repository. | ||
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
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
1240997
12820