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.1 to 0.6.2

2

lib/base/constants.d.ts

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

/** Package version of this component library. */
export declare const LIBRARY_VERSION = "0.6.1";
export declare const LIBRARY_VERSION = "0.6.2";
/** 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.1'; // x-release-please-version
export const LIBRARY_VERSION = '0.6.2'; // x-release-please-version
/** Identifier of where this component library is sourced from. */
export const ATTRIBUTION_SOURCE_ID = 'NPM';
//# sourceMappingURL=constants.js.map

@@ -63,8 +63,8 @@ [Extended Component Library](../../README.md)

| Attribute | Property | Property type | Description | Default | [Reflects?](https://open-wc.org/guides/knowledge/attributes-and-properties/#attribute-and-property-reflection) |
| ------------- | ------------ | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------- |
| `feature-set` | `featureSet` | `FeatureSet` | Chooses the capabilities of this store locator:<br/><br/>* `'basic'` shows a list of locations with pins on a map.<br/><br/>* `'intermediate'` adds a search input so users can find the location closest to them.<br/><br/>* `'advanced'` brings in a Place details view to show photos, hours, and reviews for each location. | | ✅ |
| `map-id` | `mapId` | `string \| undefined` | The Map ID of the map. See the [Map ID documentation](https://developers.google.com/maps/documentation/get-map-id?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components) for more information. | | ✅ |
| `listings` | `listings` | `StoreLocatorListing[] \| undefined` | List of locations to display in the store locator. | | ❌ |
| `mapOptions` | `mapOptions` | `Partial<google.maps.MapOptions> \| undefined` | Overrides for the map options. Provide values for `center` and `zoom` to display a map when `listings` is empty. | | ❌ |
| Attribute | Property | Property type | Description | Default | [Reflects?](https://open-wc.org/guides/knowledge/attributes-and-properties/#attribute-and-property-reflection) |
| ------------- | ------------ | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
| `feature-set` | `featureSet` | `FeatureSet` | Chooses the capabilities of this store locator:<br/><br/>* `'basic'` shows a list of locations with pins on a map.<br/><br/>* `'intermediate'` adds a search input so users can find the location closest to them.<br/><br/>* `'advanced'` brings in a Place details view to show photos, hours, and reviews for each location. | | ✅ |
| `map-id` | `mapId` | `string \| undefined` | The Map ID of the map. See the [Map ID documentation](https://developers.google.com/maps/documentation/get-map-id?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components) for more information. | | ✅ |
| | `listings` | `StoreLocatorListing[] \| undefined` | List of locations to display in the store locator. | | ❌ |
| | `mapOptions` | `Partial<google.maps.MapOptions> \| undefined` | Overrides for the map options. Provide values for `center` and `zoom` to display a map when `listings` is empty. | `{ mapTypeControl: false, maxZoom: 17, streetViewControl: false }` | ❌ |

@@ -71,0 +71,0 @@ ## Methods

@@ -138,3 +138,3 @@ /**

*/
protected shouldUpdate(): boolean;
protected shouldUpdate(changedProperties: Map<string, unknown>): boolean;
/**

@@ -141,0 +141,0 @@ * Notes on willUpdate():

@@ -28,2 +28,7 @@ /**

import { storeLocatorStyles } from './store_locator_styles.js';
const DEFAULT_MAP_OPTIONS = {
mapTypeControl: false,
maxZoom: 17,
streetViewControl: false
};
/**

@@ -110,2 +115,7 @@ * The store locator component displays an experience where your website's users

this.featureSet = FeatureSet.ADVANCED;
/**
* Overrides for the map options. Provide values for `center` and `zoom` to
* display a map when `listings` is empty.
*/
this.mapOptions = DEFAULT_MAP_OPTIONS;
this.internalListings = [];

@@ -124,3 +134,3 @@ this.initialized = false;

*/
shouldUpdate() {
shouldUpdate(changedProperties) {
return this.initialized;

@@ -472,7 +482,7 @@ }

__decorate([
property(),
property({ attribute: false }),
__metadata("design:type", Array)
], StoreLocator.prototype, "listings", void 0);
__decorate([
property(),
property({ attribute: false }),
__metadata("design:type", Object)

@@ -479,0 +489,0 @@ ], StoreLocator.prototype, "mapOptions", void 0);

{
"name": "@googlemaps/extended-component-library",
"version": "0.6.1",
"version": "0.6.2",
"description": "Web Components for building rich experiences with the Google Maps JavaScript API.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

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

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