Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@googlemaps/extended-component-library

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@googlemaps/extended-component-library - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

2

lib/api_loader/api_loader.d.ts

@@ -107,2 +107,3 @@ /**

* be loaded.
* @nocollapse
*/

@@ -116,3 +117,4 @@ static importLibrary(library: string, consumer?: HTMLElement): Promise<google.maps.CoreLibrary | google.maps.MapsLibrary | google.maps.PlacesLibrary | google.maps.GeocodingLibrary | google.maps.RoutesLibrary | google.maps.MarkerLibrary | google.maps.GeometryLibrary | google.maps.ElevationLibrary | google.maps.StreetViewLibrary | google.maps.JourneySharingLibrary | google.maps.DrawingLibrary | google.maps.VisualizationLibrary>;

static reset(): void;
/** @nocollapse */
private static pollForGoogleMaps;
}

@@ -139,2 +139,3 @@ /**

* be loaded.
* @nocollapse
*/

@@ -161,2 +162,3 @@ static async importLibrary(library, consumer) {

}
/** @nocollapse */
static pollForGoogleMaps(numRetries, interval, logger, pollCount = 0) {

@@ -163,0 +165,0 @@ const googleMaps = getGoogleMaps();

4

lib/base/constants.d.ts

@@ -7,4 +7,4 @@ /**

/** Package version of this component library. */
export declare const LIBRARY_VERSION = "0.6.7";
export declare const LIBRARY_VERSION = "0.6.8";
/** Identifier of where this component library is sourced from. */
export declare const ATTRIBUTION_SOURCE_ID = "NPM";
export declare const ATTRIBUTION_SOURCE_ID = "GIT";

@@ -7,5 +7,5 @@ /**

/** Package version of this component library. */
export const LIBRARY_VERSION = '0.6.7'; // x-release-please-version
export const LIBRARY_VERSION = '0.6.8'; // x-release-please-version
/** Identifier of where this component library is sourced from. */
export const ATTRIBUTION_SOURCE_ID = 'NPM';
//# sourceMappingURL=constants.js.map

@@ -19,2 +19,9 @@ /**

import { PlaceDataConsumer } from '../place_data_consumer.js';
/**
* Maximum width/height of a Place Photo that can be requested, in pixels; see:
* https://developers.google.com/maps/documentation/places/web-service/place-photos#maxheightpx-and-maxwidthpx.
*/
const MAX_PHOTO_SIZE_PX = 4800;
/** Maximum width/height of a Place Photo to display as tile, in pixels. */
const MAX_TILE_PHOTO_SIZE_PX = 1200;
/** Spacing for margins and paddings based on baseline font size. */

@@ -47,4 +54,10 @@ const SPACING_BASE = css `calc(${GMPX_FONT_SIZE_BASE} * 0.5)`;

return {
uri: photo.getURI(),
tileUri: photo.getURI(tilePhotoOptions),
uri: photo.getURI({
maxHeight: MAX_PHOTO_SIZE_PX,
maxWidth: MAX_PHOTO_SIZE_PX,
}),
tileUri: photo.getURI({
maxHeight: tilePhotoOptions.maxHeight || MAX_TILE_PHOTO_SIZE_PX,
maxWidth: tilePhotoOptions.maxWidth || MAX_TILE_PHOTO_SIZE_PX,
}),
attributions: photo.authorAttributions,

@@ -51,0 +64,0 @@ };

@@ -15,4 +15,4 @@ /**

displayName: string;
photoURI?: string;
uri?: string;
photoURI: string | null;
uri: string | null;
}

@@ -25,3 +25,3 @@ /** Place Photo object. */

export declare type Review = Omit<google.maps.places.Review, 'author' | 'authorURI' | 'authorPhotoURI'> & {
authorAttribution?: AuthorAttribution;
authorAttribution: AuthorAttribution | null;
};

@@ -32,3 +32,4 @@ /** Search by text request. */

fields: string[];
locationBias?: google.maps.LatLngLiteral | google.maps.LatLngBounds;
locationBias?: LatLng | LatLngLiteral | LatLngBounds | LatLngBoundsLiteral;
locationRestriction?: LatLngBounds | LatLngBoundsLiteral;
includedType?: string;

@@ -38,3 +39,3 @@ region?: string;

/** Updated Place class with new attribution schema. */
export declare interface Place extends Omit<google.maps.places.Place, 'photos' | 'reviews' | 'fetchFields' | 'hasWheelchairAccessibleEntrance'> {
export declare interface Place extends Omit<google.maps.places.Place, 'photos' | 'reviews' | 'fetchFields' | 'accessibilityOptions'> {
photos?: Photo[];

@@ -41,0 +42,0 @@ reviews?: Review[];

{
"name": "@googlemaps/extended-component-library",
"version": "0.6.7",
"version": "0.6.8",
"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=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:
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:

@@ -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=npm&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=github&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=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. |
| [`<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. |

@@ -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=npm&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=github&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=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 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 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=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.
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.

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc