@mapbox/search-js-web
Advanced tools
Comparing version 1.0.0-beta.12 to 1.0.0-beta.13
@@ -65,2 +65,8 @@ import { ValidateOptions, AutofillFeatureSuggestion } from '@mapbox/search-js-core'; | ||
skipConfirmModal?: (feature: AutofillFeatureSuggestion) => boolean; | ||
/** | ||
* Custom footer text appearing at the bottom of the confirmation modal dialog. | ||
* If `true` or left undefined, the default footer text will be used. | ||
* If `false`, the footer will not be shown. | ||
*/ | ||
footer?: boolean | string; | ||
} | ||
@@ -67,0 +73,0 @@ export declare type AddressConfirmationEventTypes = { |
@@ -20,2 +20,3 @@ import { AutofillFeatureSuggestion } from '@mapbox/search-js-core'; | ||
set theme(theme: Theme); | ||
set footer(val: boolean | string); | ||
minimap: boolean | ConfirmationMinimapOptions; | ||
@@ -22,0 +23,0 @@ accessToken: string; |
@@ -12,3 +12,3 @@ import { HTMLScopedElement } from './HTMLScopedElement'; | ||
* | ||
* The goal of `MapboxAddressMinimap` is to reduce delivery error in shipping and | ||
* The goal of `MapboxAddressMinimap` is to reduce delivery or geolocation error in shipping and | ||
* local dispatching contexts. | ||
@@ -165,2 +165,14 @@ * | ||
set defaultMapStyle(style: [string, string]); | ||
/** | ||
* Custom footer text appearing below the map, when marker adjustment is enabled. | ||
* If `true` or left undefined, the default footer text will be used. | ||
* If `false`, the footer will not be shown. | ||
* | ||
* @name footer | ||
* @instance | ||
* @memberof MapboxAddressMinimap | ||
* @type {boolean | string} | ||
*/ | ||
get footer(): boolean | string; | ||
set footer(val: boolean | string); | ||
get container(): HTMLElement | null; | ||
@@ -167,0 +179,0 @@ set container(newContainer: HTMLElement | null); |
{ | ||
"name": "@mapbox/search-js-web", | ||
"version": "1.0.0-beta.12", | ||
"version": "1.0.0-beta.13", | ||
"description": "Search web component with form autocomplete.", | ||
@@ -23,3 +23,3 @@ "main": "dist/index.js", | ||
"@floating-ui/dom": "^0.5.2", | ||
"@mapbox/search-js-core": "^1.0.0-beta.12", | ||
"@mapbox/search-js-core": "^1.0.0-beta.13", | ||
"@mapbox/sphericalmercator": "^1.2.0", | ||
@@ -26,0 +26,0 @@ "focus-trap": "^6.7.3", |
@@ -96,2 +96,3 @@ import mapboxgl from 'mapbox-gl'; | ||
}; | ||
minimap.footer = 'My custom footer'; | ||
@@ -163,3 +164,4 @@ if (window.location.pathname === '/minimap.html') { | ||
skipConfirmModal: (feature) => | ||
['exact', 'high'].includes(feature.properties.match_code.confidence) | ||
['exact', 'high'].includes(feature.properties.match_code.confidence), | ||
footer: false | ||
}); | ||
@@ -166,0 +168,0 @@ |
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 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 too big to display
Sorry, the diff of this file is not supported yet
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2874063
12134
6