New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@what3words/javascript-components

Package Overview
Dependencies
Maintainers
8
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@what3words/javascript-components - npm Package Compare versions

Comparing version 4.1.3 to 4.1.4-alpha.1

dist/cjs/app-globals-0bb3439f.js

5

dist/cjs/index.cjs.js

@@ -5,8 +5,7 @@ 'use strict';

const index = require('./index-41890552.js');
const index = require('./index-9f56178a.js');
exports.initService = index.initService;
exports.initServiceClient = index.initServiceClient;
exports.sdk = index.sdk;
exports.what3wordsClients = index.what3wordsClients;

8

dist/cjs/loader.cjs.js

@@ -6,5 +6,5 @@ 'use strict';

const index = require('./index-a1becbb3.js');
const appGlobals = require('./app-globals-20c2f5c2.js');
require('./index-41890552.js');
require('./utils-1c9372be.js');
const appGlobals = require('./app-globals-0bb3439f.js');
require('./index-9f56178a.js');
require('./utils-b89cea2a.js');

@@ -22,3 +22,3 @@ /*

appGlobals.globalScripts();
return index.bootstrapLazy([["what3words-autosuggest_3.cjs",[[4,"what3words-autosuggest",{"callback":[1],"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"name":[1],"initial_value":[1025],"variant":[1],"typeahead_delay":[2],"invalid_address_error_message":[1],"strict":[4],"language":[1],"autosuggest_focus":[1],"n_focus_results":[2],"clip_to_country":[1],"clip_to_bounding_box":[1],"clip_to_circle":[1],"clip_to_polygon":[1],"return_coordinates":[4],"options":[16],"rawInput":[32],"value":[32],"input":[32],"latInput":[32],"lngInput":[32],"suggestions":[32],"selectedSuggestion":[32],"showSuggestions":[32],"hasFocus":[32],"latitude":[32],"longitude":[32],"apiRequest":[32],"loading":[32],"hoverIndex":[32],"error":[32],"errorTimeout":[32],"serviceClients":[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"words":[1],"map_provider":[1],"map_api_key":[1],"version":[1],"libraries":[16],"language":[1],"region":[1],"lat":[1026],"lng":[1026],"tilt":[2],"disable_default_ui":[4],"zoom":[2],"zoom_control":[4],"zoom_control_position":[2],"map_type_id":[1],"map_type_control":[4],"map_type_control_position":[2],"scale_control":[4],"street_view_control":[4],"street_view_control_position":[2],"rotate_control":[4],"rotate_control_position":[2],"fullscreen_control":[4],"fullscreen_control_position":[2],"search_control_position":[2],"current_location_control_position":[2],"selected_zoom":[2],"current_location":[4],"watch_location":[4],"marker_icon":[1],"reset_zoom_on_select":[4],"searchControlSlot":[32],"currentLocationControlSlot":[32],"zoomControlSlot":[32],"mapTypeControlSlot":[32],"mapLoaded":[32],"input":[32],"autosuggest":[32],"placesSuggestions":[32],"request":[32],"watch_id":[32],"provider":[32],"current_location_coordinates":[32],"w3wLanguage":[32],"serviceClients":[32],"setApiKey":[64],"setBaseUrl":[64],"setHeaders":[64],"setApiVersion":[64],"setWords":[64],"clearGrid":[64],"getLat":[64],"setCoordinates":[64],"getLng":[64],"setZoom":[64],"getZoom":[64],"getBounds":[64],"panTo":[64],"setMapTypeId":[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{"color":[1],"size":[2]}]]],["what3words-address.cjs",[[0,"what3words-address",{"words":[1],"iconColor":[1,"icon-color"],"textColor":[1,"text-color"],"size":[2],"target":[1],"link":[4],"tooltip":[4],"tooltipLocation":[1,"tooltip-location"],"showTooltip":[4,"show-tooltip"]}]]]], options);
return index.bootstrapLazy([["what3words-autosuggest_3.cjs",[[4,"what3words-autosuggest",{"callback":[1],"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"name":[1],"initial_value":[1025],"variant":[1],"typeahead_delay":[2],"invalid_address_error_message":[1],"strict":[4],"language":[1],"autosuggest_focus":[1],"n_focus_results":[2],"clip_to_country":[1],"clip_to_bounding_box":[1],"clip_to_circle":[1],"clip_to_polygon":[1],"return_coordinates":[4],"options":[16],"rawInput":[32],"value":[32],"input":[32],"latInput":[32],"lngInput":[32],"suggestions":[32],"selectedSuggestion":[32],"showSuggestions":[32],"hasFocus":[32],"latitude":[32],"longitude":[32],"apiRequest":[32],"loading":[32],"hoverIndex":[32],"error":[32],"errorTimeout":[32],"clients":[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"words":[1],"map_provider":[1],"map_api_key":[1],"version":[1],"libraries":[16],"language":[1],"region":[1],"lat":[1026],"lng":[1026],"tilt":[2],"disable_default_ui":[4],"zoom":[2],"zoom_control":[4],"zoom_control_position":[2],"map_type_id":[1],"map_type_control":[4],"map_type_control_position":[2],"scale_control":[4],"street_view_control":[4],"street_view_control_position":[2],"rotate_control":[4],"rotate_control_position":[2],"fullscreen_control":[4],"fullscreen_control_position":[2],"search_control_position":[2],"current_location_control_position":[2],"selected_zoom":[2],"current_location":[4],"watch_location":[4],"marker_icon":[1],"reset_zoom_on_select":[4],"searchControlSlot":[32],"currentLocationControlSlot":[32],"zoomControlSlot":[32],"mapTypeControlSlot":[32],"mapLoaded":[32],"input":[32],"autosuggest":[32],"placesSuggestions":[32],"request":[32],"watch_id":[32],"provider":[32],"current_location_coordinates":[32],"w3wLanguage":[32],"clients":[32],"setApiKey":[64],"setBaseUrl":[64],"setHeaders":[64],"setApiVersion":[64],"setWords":[64],"clearGrid":[64],"getLat":[64],"setCoordinates":[64],"getLng":[64],"setZoom":[64],"getZoom":[64],"getBounds":[64],"panTo":[64],"setMapTypeId":[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{"color":[1],"size":[2]}]]],["what3words-address.cjs",[[0,"what3words-address",{"words":[1],"iconColor":[1,"icon-color"],"textColor":[1,"text-color"],"size":[2],"target":[1],"link":[4],"tooltip":[4],"tooltipLocation":[1,"tooltip-location"],"showTooltip":[4,"show-tooltip"]}]]]], options);
});

@@ -25,0 +25,0 @@ };

@@ -6,3 +6,3 @@ 'use strict';

const index = require('./index-a1becbb3.js');
const index$1 = require('./index-41890552.js');
const index$1 = require('./index-9f56178a.js');

@@ -9,0 +9,0 @@ const addressCss = "what3words-address{display:inline-block;font-family:\"Source Sans Pro\", sans-serif}.what3words-address{color:#333;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none;-ms-flex-direction:column;flex-direction:column}.what3words-address_container{display:-ms-flexbox;display:flex}.what3words-address_text{white-space:nowrap}.what3words-tooltip-container{height:0;width:0;position:relative;-ms-flex-item-align:center;align-self:center}.what3words-tooltip{position:absolute;display:none;width:160px;background-color:#333333;border-radius:3px;bottom:10px;left:-88px;font-size:12px;padding:8px;z-index:1;color:#ffffff;-webkit-box-shadow:0 0 16px rgba(0, 0, 0, 0.5);box-shadow:0 0 16px rgba(0, 0, 0, 0.5)}.what3words-address:hover .what3words-tooltip,.what3words-address_tooltip .what3words-tooltip{display:block}.what3words-tooltip:after{bottom:-13px;left:50%;content:\"\";height:0;width:0;position:absolute;border:7px solid transparent;margin-left:-7px;border-top-color:#333333;z-index:1}.what3words-tooltip:before{content:\"\";position:absolute;width:100%;height:10px;bottom:-10px;left:0}.what3words-tooltip a{color:#ffffff}";

@@ -6,5 +6,5 @@ 'use strict';

const index = require('./index-a1becbb3.js');
const appGlobals = require('./app-globals-20c2f5c2.js');
require('./index-41890552.js');
require('./utils-1c9372be.js');
const appGlobals = require('./app-globals-0bb3439f.js');
require('./index-9f56178a.js');
require('./utils-b89cea2a.js');

@@ -28,5 +28,5 @@ /*

appGlobals.globalScripts();
return index.bootstrapLazy([["what3words-autosuggest_3.cjs",[[4,"what3words-autosuggest",{"callback":[1],"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"name":[1],"initial_value":[1025],"variant":[1],"typeahead_delay":[2],"invalid_address_error_message":[1],"strict":[4],"language":[1],"autosuggest_focus":[1],"n_focus_results":[2],"clip_to_country":[1],"clip_to_bounding_box":[1],"clip_to_circle":[1],"clip_to_polygon":[1],"return_coordinates":[4],"options":[16],"rawInput":[32],"value":[32],"input":[32],"latInput":[32],"lngInput":[32],"suggestions":[32],"selectedSuggestion":[32],"showSuggestions":[32],"hasFocus":[32],"latitude":[32],"longitude":[32],"apiRequest":[32],"loading":[32],"hoverIndex":[32],"error":[32],"errorTimeout":[32],"serviceClients":[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"words":[1],"map_provider":[1],"map_api_key":[1],"version":[1],"libraries":[16],"language":[1],"region":[1],"lat":[1026],"lng":[1026],"tilt":[2],"disable_default_ui":[4],"zoom":[2],"zoom_control":[4],"zoom_control_position":[2],"map_type_id":[1],"map_type_control":[4],"map_type_control_position":[2],"scale_control":[4],"street_view_control":[4],"street_view_control_position":[2],"rotate_control":[4],"rotate_control_position":[2],"fullscreen_control":[4],"fullscreen_control_position":[2],"search_control_position":[2],"current_location_control_position":[2],"selected_zoom":[2],"current_location":[4],"watch_location":[4],"marker_icon":[1],"reset_zoom_on_select":[4],"searchControlSlot":[32],"currentLocationControlSlot":[32],"zoomControlSlot":[32],"mapTypeControlSlot":[32],"mapLoaded":[32],"input":[32],"autosuggest":[32],"placesSuggestions":[32],"request":[32],"watch_id":[32],"provider":[32],"current_location_coordinates":[32],"w3wLanguage":[32],"serviceClients":[32],"setApiKey":[64],"setBaseUrl":[64],"setHeaders":[64],"setApiVersion":[64],"setWords":[64],"clearGrid":[64],"getLat":[64],"setCoordinates":[64],"getLng":[64],"setZoom":[64],"getZoom":[64],"getBounds":[64],"panTo":[64],"setMapTypeId":[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{"color":[1],"size":[2]}]]],["what3words-address.cjs",[[0,"what3words-address",{"words":[1],"iconColor":[1,"icon-color"],"textColor":[1,"text-color"],"size":[2],"target":[1],"link":[4],"tooltip":[4],"tooltipLocation":[1,"tooltip-location"],"showTooltip":[4,"show-tooltip"]}]]]], options);
return index.bootstrapLazy([["what3words-autosuggest_3.cjs",[[4,"what3words-autosuggest",{"callback":[1],"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"name":[1],"initial_value":[1025],"variant":[1],"typeahead_delay":[2],"invalid_address_error_message":[1],"strict":[4],"language":[1],"autosuggest_focus":[1],"n_focus_results":[2],"clip_to_country":[1],"clip_to_bounding_box":[1],"clip_to_circle":[1],"clip_to_polygon":[1],"return_coordinates":[4],"options":[16],"rawInput":[32],"value":[32],"input":[32],"latInput":[32],"lngInput":[32],"suggestions":[32],"selectedSuggestion":[32],"showSuggestions":[32],"hasFocus":[32],"latitude":[32],"longitude":[32],"apiRequest":[32],"loading":[32],"hoverIndex":[32],"error":[32],"errorTimeout":[32],"clients":[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"words":[1],"map_provider":[1],"map_api_key":[1],"version":[1],"libraries":[16],"language":[1],"region":[1],"lat":[1026],"lng":[1026],"tilt":[2],"disable_default_ui":[4],"zoom":[2],"zoom_control":[4],"zoom_control_position":[2],"map_type_id":[1],"map_type_control":[4],"map_type_control_position":[2],"scale_control":[4],"street_view_control":[4],"street_view_control_position":[2],"rotate_control":[4],"rotate_control_position":[2],"fullscreen_control":[4],"fullscreen_control_position":[2],"search_control_position":[2],"current_location_control_position":[2],"selected_zoom":[2],"current_location":[4],"watch_location":[4],"marker_icon":[1],"reset_zoom_on_select":[4],"searchControlSlot":[32],"currentLocationControlSlot":[32],"zoomControlSlot":[32],"mapTypeControlSlot":[32],"mapLoaded":[32],"input":[32],"autosuggest":[32],"placesSuggestions":[32],"request":[32],"watch_id":[32],"provider":[32],"current_location_coordinates":[32],"w3wLanguage":[32],"clients":[32],"setApiKey":[64],"setBaseUrl":[64],"setHeaders":[64],"setApiVersion":[64],"setWords":[64],"clearGrid":[64],"getLat":[64],"setCoordinates":[64],"getLng":[64],"setZoom":[64],"getZoom":[64],"getBounds":[64],"panTo":[64],"setMapTypeId":[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{"color":[1],"size":[2]}]]],["what3words-address.cjs",[[0,"what3words-address",{"words":[1],"iconColor":[1,"icon-color"],"textColor":[1,"text-color"],"size":[2],"target":[1],"link":[4],"tooltip":[4],"tooltipLocation":[1,"tooltip-location"],"showTooltip":[4,"show-tooltip"]}]]]], options);
});
exports.setNonce = index.setNonce;
import { h, Host, } from '@stencil/core';
import { axiosTransport, ApiVersion, } from '@what3words/api';
import { version } from '../../../package.json';
import { DEFAULTS, SELECTORS, W3W_REGEX, convertToCoordinates, initServiceClient, isEmpty, parseCoordinates, } from '../../lib';
import { DEFAULTS, SELECTORS, W3W_REGEX, convertToCoordinates, isEmpty, parseCoordinates, what3wordsClients, } from '../../lib';
import { ErrorMessage } from './components/error-message';

@@ -65,3 +65,3 @@ import { Status } from './components/status';

this.errorTimeout = DEFAULTS.null;
this.serviceClients = undefined;
this.clients = {};
}

@@ -73,3 +73,3 @@ /**

setApiKey(key) {
Object.values(this.serviceClients).forEach(client => client.apiKey(key));
Object.values(this.clients).forEach(client => client.apiKey(key));
}

@@ -81,3 +81,3 @@ /**

setBaseUrl(host) {
Object.values(this.serviceClients).forEach(client => client.config({ host }));
Object.values(this.clients).forEach(client => client.config({ host }));
}

@@ -88,4 +88,4 @@ /**

*/
setApiVersion(apiVersion) {
Object.values(this.serviceClients).forEach(client => client.config({ apiVersion }));
setApiVersion(api_version) {
Object.values(this.clients).forEach(client => client.config({ apiVersion: api_version }));
}

@@ -99,3 +99,3 @@ /**

const injectedHeaders = typeof value === 'string' ? JSON.parse(value) : value;
Object.values(this.serviceClients).forEach(client => client.config({ headers: Object.assign(Object.assign({}, injectedHeaders), componentHeaders) }));
Object.values(this.clients).forEach(client => client.config({ headers: Object.assign(Object.assign({}, injectedHeaders), componentHeaders) }));
}

@@ -327,2 +327,9 @@ setCustomOptions(options) {

/**
* Emit an error and pass
* @param {Error} error
*/
emitError(error) {
this.__error.emit({ error });
}
/**
* Emits the invalid three word address error

@@ -352,3 +359,3 @@ */

const options = this.getRequestOptions(value);
return this.serviceClients.autosuggest.run(options);
return this.clients.autosuggest.run(options);
}

@@ -408,5 +415,5 @@ onValueChanged({ detail: { value } }) {

this.clearErrorMessage();
await this.serviceClients.autosuggest
await this.clients.autosuggest
.onSelected(suggestion)
.catch(error => this.__error.emit({ error }));
.catch(error => this.emitError(error));
if (this.return_coordinates) {

@@ -416,7 +423,9 @@ clearTimeout(this.apiRequest);

try {
const { coordinates } = (await this.serviceClients.convertToCoordinates.run(suggestion.words));
const { coordinates } = (await this.clients.convertToCoordinates.run({
words: suggestion.words,
}));
return this.coordinates_changed.emit({ coordinates });
}
catch (_a) {
return this.emitFatalError();
catch (error) {
return this.emitError(error);
}

@@ -630,14 +639,11 @@ }, 0);

// Configure service clients
const opts = {
api_key: this.api_key,
config: {
apiVersion: this.api_version,
headers: Object.assign(Object.assign({}, this.getComponentHeaders()), JSON.parse(this.headers)),
host: this.base_url,
},
transport: axiosTransport(),
const config = {
apiVersion: this.api_version,
headers: Object.assign(Object.assign({}, this.getComponentHeaders()), JSON.parse(this.headers)),
host: this.base_url,
};
this.serviceClients = {
autosuggest: initServiceClient('autosuggest', opts),
convertToCoordinates: initServiceClient('convertToCoordinates', opts),
const transport = axiosTransport();
this.clients = {
autosuggest: what3wordsClients.autosuggest(this.api_key, config, transport),
convertToCoordinates: what3wordsClients.convertToCoordinates(this.api_key, config, transport),
};

@@ -1096,3 +1102,3 @@ }

"errorTimeout": {},
"serviceClients": {}
"clients": {}
};

@@ -1099,0 +1105,0 @@ }

import { h, Host, } from '@stencil/core';
import { axiosTransport, ApiVersion, } from '@what3words/api';
import { AUTOSUGGEST_SELECTOR, CURRENT_LOCATION_CONTROL_SELECTOR, DEFAULTS, DEFAULT_LIBS, MAP_SELECTOR, MAP_TYPE_CONTROL_SELECTOR, MARKER_SRC, MIN_GRID_ZOOM_LEVEL, SEARCH_CONTROL_SELECTOR, SELECTED_ZOOM_LEVEL, SELECTORS, TOP_LEFT, ZOOM_CONTROL_SELECTOR, W3W_REGEX, initServiceClient, } from '../../lib';
import { AUTOSUGGEST_SELECTOR, CURRENT_LOCATION_CONTROL_SELECTOR, DEFAULTS, DEFAULT_LIBS, MAP_SELECTOR, MAP_TYPE_CONTROL_SELECTOR, MARKER_SRC, MIN_GRID_ZOOM_LEVEL, SEARCH_CONTROL_SELECTOR, SELECTED_ZOOM_LEVEL, SELECTORS, TOP_LEFT, ZOOM_CONTROL_SELECTOR, W3W_REGEX, what3wordsClients, } from '../../lib';
import { GoogleMaps } from './providers/google';

@@ -56,9 +56,9 @@ import { version } from '../../../package.json';

this.w3wLanguage = this.language;
this.serviceClients = undefined;
this.clients = {};
}
async setApiKey(key) {
Object.values(this.serviceClients).forEach(client => client.apiKey(key));
Object.values(this.clients).forEach(client => client.apiKey(key));
}
async setBaseUrl(host) {
Object.values(this.serviceClients).forEach(client => client.config({ host }));
Object.values(this.clients).forEach(client => client.config({ host }));
}

@@ -68,6 +68,6 @@ async setHeaders(value) {

const injectedHeaders = typeof value === 'string' ? JSON.parse(value) : value;
Object.values(this.serviceClients).forEach(client => client.config({ headers: Object.assign(Object.assign({}, injectedHeaders), componentHeaders) }));
Object.values(this.clients).forEach(client => client.config({ headers: Object.assign(Object.assign({}, injectedHeaders), componentHeaders) }));
}
async setApiVersion(api_version) {
Object.values(this.serviceClients).forEach(client => client.config({ apiVersion: api_version }));
Object.values(this.clients).forEach(client => client.config({ apiVersion: api_version }));
}

@@ -77,3 +77,3 @@ async setWords(words) {

return;
const response = (await this.serviceClients.convertToCoordinates
const response = (await this.clients.convertToCoordinates
.run({ words })

@@ -229,3 +229,3 @@ .catch(this.__error.emit.bind(this)));

return;
const response = (await this.serviceClients.convertTo3wa.run({
const response = (await this.clients.convertTo3wa.run({
coordinates: { lat, lng },

@@ -380,3 +380,3 @@ language: this.w3wLanguage,

this.request = setTimeout(async () => {
const grid = (await this.serviceClients.gridSection.run(gridSectionOpt));
const grid = (await this.clients.gridSection.run(gridSectionOpt));
this.provider.clearGrid();

@@ -401,3 +401,3 @@ this.provider.plotGrid(grid, coordinates => {

// convert coordinates to 3wa
const response = (await this.serviceClients.convertToCoordinates.run({
const response = (await this.clients.convertToCoordinates.run({
words,

@@ -559,15 +559,12 @@ }));

// Configure service clients
const opts = {
api_key: this.api_key,
config: {
apiVersion: this.api_version,
headers: Object.assign(Object.assign({}, this.getComponentHeaders()), JSON.parse(this.headers)),
host: this.base_url,
},
transport: axiosTransport(),
const config = {
apiVersion: this.api_version,
headers: Object.assign(Object.assign({}, this.getComponentHeaders()), JSON.parse(this.headers)),
host: this.base_url,
};
this.serviceClients = {
convertToCoordinates: initServiceClient('convertToCoordinates', opts),
convertTo3wa: initServiceClient('convertTo3wa', opts),
gridSection: initServiceClient('gridSection', opts),
const transport = axiosTransport();
this.clients = {
convertToCoordinates: what3wordsClients.convertToCoordinates(this.api_key, config, transport),
convertTo3wa: what3wordsClients.convertTo3wa(this.api_key, config, transport),
gridSection: what3wordsClients.gridSection(this.api_key, config, transport),
};

@@ -1252,3 +1249,3 @@ }

"w3wLanguage": {},
"serviceClients": {}
"clients": {}
};

@@ -1255,0 +1252,0 @@ }

@@ -0,3 +1,3 @@

import { v4 } from 'uuid';
import { getScriptInitOptions, ScriptInitParameter, sdk } from '../lib';
import { v4 } from 'uuid';
/**

@@ -22,12 +22,19 @@ * This is the initialization function that gets called when the SDK is first loaded. This is actually the entrypoint

return;
const { w3w = {} } = win;
const { callback, key, host, version, headers } = w3w;
const options = getScriptInitOptions();
if (options[ScriptInitParameter.KEY]) {
sdk.api.setApiKey(options[ScriptInitParameter.KEY]);
if (key || options[ScriptInitParameter.KEY]) {
sdk.api.setApiKey(key || options[ScriptInitParameter.KEY]);
}
if (options[ScriptInitParameter.BASEURL]) {
sdk.api.setConfig({ host: options[ScriptInitParameter.BASEURL] });
if (host || options[ScriptInitParameter.BASEURL]) {
sdk.api.setConfig({ host: host || options[ScriptInitParameter.BASEURL] });
}
if (options[ScriptInitParameter.VERSION]) {
sdk.api.setConfig({ apiVersion: options[ScriptInitParameter.VERSION] });
if (version || options[ScriptInitParameter.VERSION]) {
sdk.api.setConfig({
apiVersion: version || options[ScriptInitParameter.VERSION],
});
}
if (headers) {
sdk.api.setConfig({ headers });
}
/**

@@ -54,2 +61,5 @@ * The next few lines attach to the global window the JS api wrapper and the script session ID. This should be

// If a callback has been specified and exists then call it here.
if (callback && typeof win[callback] === 'function') {
win[callback](sdk);
}
if (options[ScriptInitParameter.CALLBACK] &&

@@ -56,0 +66,0 @@ typeof win[options[ScriptInitParameter.CALLBACK]] === 'function') {

@@ -1,1 +0,1 @@

export { initService, initServiceClient, sdk } from './lib';
export { what3wordsClients, sdk } from './lib';
import what3words, { axiosTransport, ApiVersion, AutosuggestClient, AvailableLanguagesClient, ConvertToCoordinatesClient, ConvertTo3waClient, GridSectionClient, } from '@what3words/api';
import { W3W_REGEX } from './constants';
export const initService = (...config) => what3words(...config);
const api = what3words('', { apiVersion: ApiVersion.Version3 }, { transport: axiosTransport() });
const utils = {
validAddress: v => W3W_REGEX.test(v),
};
const initClient = (clientName, client) => {
return (apiKey, config, transport) => {
let clientApiKey;
if (apiKey) {
clientApiKey = apiKey;
}
else {
console.warn('Use of sdk script credentials is deprecated! Please pass the `api_key` attribute to components. https://developer.what3words.com/tutorial/javascript-autosuggest-component-v4');
clientApiKey = api.clients[clientName]._apiKey;
}
return new client(clientApiKey, config, transport);
};
};
export const what3wordsClients = {
autosuggest: initClient('autosuggest', AutosuggestClient),
availableLanguages: initClient('availableLanguages', AvailableLanguagesClient),
convertTo3wa: initClient('convertTo3wa', ConvertTo3waClient),
convertToCoordinates: initClient('convertToCoordinates', ConvertToCoordinatesClient),
gridSection: initClient('gridSection', GridSectionClient),
};
export const sdk = {
api: initService('', { apiVersion: ApiVersion.Version3 }, { transport: axiosTransport() }),
utils: {
validAddress: v => W3W_REGEX.test(v),
},
api,
utils,
};
export function initServiceClient(name, opts) {
const clients = {
autosuggest: AutosuggestClient,
availableLanguages: AvailableLanguagesClient,
convertTo3wa: ConvertTo3waClient,
convertToCoordinates: ConvertToCoordinatesClient,
gridSection: GridSectionClient,
};
const clientConstructor = clients[name];
if (clientConstructor) {
return new clientConstructor(opts.api_key, opts.config, opts.transport); // TODO: cleaner type assertion needed
}
}

@@ -1,1 +0,1 @@

export{i as initService,c as initServiceClient,s as sdk}from"./index-1a833cca.js";
export{s as sdk,w as what3wordsClients}from"./index-36108503.js";

@@ -1,1 +0,1 @@

import{p as promiseResolve,b as bootstrapLazy}from"./index-49550bab.js";export{s as setNonce}from"./index-49550bab.js";import{g as globalScripts}from"./app-globals-2e5bf868.js";import"./index-1a833cca.js";import"./utils-ae3c6d6d.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(o,e){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["what3words-autosuggest_3",[[4,"what3words-autosuggest",{callback:[1],api_key:[1],headers:[1],base_url:[1],api_version:[1],name:[1],initial_value:[1025],variant:[1],typeahead_delay:[2],invalid_address_error_message:[1],strict:[4],language:[1],autosuggest_focus:[1],n_focus_results:[2],clip_to_country:[1],clip_to_bounding_box:[1],clip_to_circle:[1],clip_to_polygon:[1],return_coordinates:[4],options:[16],rawInput:[32],value:[32],input:[32],latInput:[32],lngInput:[32],suggestions:[32],selectedSuggestion:[32],showSuggestions:[32],hasFocus:[32],latitude:[32],longitude:[32],apiRequest:[32],loading:[32],hoverIndex:[32],error:[32],errorTimeout:[32],serviceClients:[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{api_key:[1],headers:[1],base_url:[1],api_version:[1],words:[1],map_provider:[1],map_api_key:[1],version:[1],libraries:[16],language:[1],region:[1],lat:[1026],lng:[1026],tilt:[2],disable_default_ui:[4],zoom:[2],zoom_control:[4],zoom_control_position:[2],map_type_id:[1],map_type_control:[4],map_type_control_position:[2],scale_control:[4],street_view_control:[4],street_view_control_position:[2],rotate_control:[4],rotate_control_position:[2],fullscreen_control:[4],fullscreen_control_position:[2],search_control_position:[2],current_location_control_position:[2],selected_zoom:[2],current_location:[4],watch_location:[4],marker_icon:[1],reset_zoom_on_select:[4],searchControlSlot:[32],currentLocationControlSlot:[32],zoomControlSlot:[32],mapTypeControlSlot:[32],mapLoaded:[32],input:[32],autosuggest:[32],placesSuggestions:[32],request:[32],watch_id:[32],provider:[32],current_location_coordinates:[32],w3wLanguage:[32],serviceClients:[32],setApiKey:[64],setBaseUrl:[64],setHeaders:[64],setApiVersion:[64],setWords:[64],clearGrid:[64],getLat:[64],setCoordinates:[64],getLng:[64],setZoom:[64],getZoom:[64],getBounds:[64],panTo:[64],setMapTypeId:[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{color:[1],size:[2]}]]],["what3words-address",[[0,"what3words-address",{words:[1],iconColor:[1,"icon-color"],textColor:[1,"text-color"],size:[2],target:[1],link:[4],tooltip:[4],tooltipLocation:[1,"tooltip-location"],showTooltip:[4,"show-tooltip"]}]]]],e)}))};export{defineCustomElements};
import{p as promiseResolve,b as bootstrapLazy}from"./index-49550bab.js";export{s as setNonce}from"./index-49550bab.js";import{g as globalScripts}from"./app-globals-3e8da4e5.js";import"./index-36108503.js";import"./utils-0270afe2.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(o,e){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["what3words-autosuggest_3",[[4,"what3words-autosuggest",{callback:[1],api_key:[1],headers:[1],base_url:[1],api_version:[1],name:[1],initial_value:[1025],variant:[1],typeahead_delay:[2],invalid_address_error_message:[1],strict:[4],language:[1],autosuggest_focus:[1],n_focus_results:[2],clip_to_country:[1],clip_to_bounding_box:[1],clip_to_circle:[1],clip_to_polygon:[1],return_coordinates:[4],options:[16],rawInput:[32],value:[32],input:[32],latInput:[32],lngInput:[32],suggestions:[32],selectedSuggestion:[32],showSuggestions:[32],hasFocus:[32],latitude:[32],longitude:[32],apiRequest:[32],loading:[32],hoverIndex:[32],error:[32],errorTimeout:[32],clients:[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{api_key:[1],headers:[1],base_url:[1],api_version:[1],words:[1],map_provider:[1],map_api_key:[1],version:[1],libraries:[16],language:[1],region:[1],lat:[1026],lng:[1026],tilt:[2],disable_default_ui:[4],zoom:[2],zoom_control:[4],zoom_control_position:[2],map_type_id:[1],map_type_control:[4],map_type_control_position:[2],scale_control:[4],street_view_control:[4],street_view_control_position:[2],rotate_control:[4],rotate_control_position:[2],fullscreen_control:[4],fullscreen_control_position:[2],search_control_position:[2],current_location_control_position:[2],selected_zoom:[2],current_location:[4],watch_location:[4],marker_icon:[1],reset_zoom_on_select:[4],searchControlSlot:[32],currentLocationControlSlot:[32],zoomControlSlot:[32],mapTypeControlSlot:[32],mapLoaded:[32],input:[32],autosuggest:[32],placesSuggestions:[32],request:[32],watch_id:[32],provider:[32],current_location_coordinates:[32],w3wLanguage:[32],clients:[32],setApiKey:[64],setBaseUrl:[64],setHeaders:[64],setApiVersion:[64],setWords:[64],clearGrid:[64],getLat:[64],setCoordinates:[64],getLng:[64],setZoom:[64],getZoom:[64],getBounds:[64],panTo:[64],setMapTypeId:[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{color:[1],size:[2]}]]],["what3words-address",[[0,"what3words-address",{words:[1],iconColor:[1,"icon-color"],textColor:[1,"text-color"],size:[2],target:[1],link:[4],tooltip:[4],tooltipLocation:[1,"tooltip-location"],showTooltip:[4,"show-tooltip"]}]]]],e)}))};export{defineCustomElements};

@@ -1,1 +0,1 @@

import{r as registerInstance,h}from"./index-49550bab.js";import{D as DEFAULTS}from"./index-1a833cca.js";var addressCss='what3words-address{display:inline-block;font-family:"Source Sans Pro", sans-serif}.what3words-address{color:#333;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none;-ms-flex-direction:column;flex-direction:column}.what3words-address_container{display:-ms-flexbox;display:flex}.what3words-address_text{white-space:nowrap}.what3words-tooltip-container{height:0;width:0;position:relative;-ms-flex-item-align:center;align-self:center}.what3words-tooltip{position:absolute;display:none;width:160px;background-color:#333333;border-radius:3px;bottom:10px;left:-88px;font-size:12px;padding:8px;z-index:1;color:#ffffff;-webkit-box-shadow:0 0 16px rgba(0, 0, 0, 0.5);box-shadow:0 0 16px rgba(0, 0, 0, 0.5)}.what3words-address:hover .what3words-tooltip,.what3words-address_tooltip .what3words-tooltip{display:block}.what3words-tooltip:after{bottom:-13px;left:50%;content:"";height:0;width:0;position:absolute;border:7px solid transparent;margin-left:-7px;border-top-color:#333333;z-index:1}.what3words-tooltip:before{content:"";position:absolute;width:100%;height:10px;bottom:-10px;left:0}.what3words-tooltip a{color:#ffffff}';var What3wordsAddress=function(){function t(t){registerInstance(this,t);this.words=undefined;this.iconColor=DEFAULTS.iconColor;this.textColor=DEFAULTS.textColor;this.size=DEFAULTS.addressSize;this.target=DEFAULTS.target;this.link=DEFAULTS.true;this.tooltip=DEFAULTS.true;this.tooltipLocation=DEFAULTS.tooltipLocation;this.showTooltip=DEFAULTS.false}t.prototype.render=function(){var t="https://map.what3words.com/".concat(this.words);var o=this.link?{href:t,target:this.target}:{};return h("a",Object.assign({},o,{class:"what3words-address notranslate ".concat(this.showTooltip?"what3words-address_tooltip":""),style:{fontSize:"".concat(this.size,"px")}}),this.tooltip&&h("div",{class:"what3words-tooltip-container"},h("div",{class:"what3words-tooltip"},"what3words gives every 3m x 3m in the world a unique 3 word address. This one describes the precise ",this.tooltipLocation,"."," ",h("a",{href:t,target:this.target},"View on map"))),h("div",{class:"what3words-address_container"},h("what3words-symbol",{size:this.size*1.25,color:this.iconColor}),h("span",{class:"what3words-address_text",style:{color:this.textColor}},this.words)))};return t}();What3wordsAddress.style=addressCss;export{What3wordsAddress as what3words_address};
import{r as registerInstance,h}from"./index-49550bab.js";import{D as DEFAULTS}from"./index-36108503.js";var addressCss='what3words-address{display:inline-block;font-family:"Source Sans Pro", sans-serif}.what3words-address{color:#333;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none;-ms-flex-direction:column;flex-direction:column}.what3words-address_container{display:-ms-flexbox;display:flex}.what3words-address_text{white-space:nowrap}.what3words-tooltip-container{height:0;width:0;position:relative;-ms-flex-item-align:center;align-self:center}.what3words-tooltip{position:absolute;display:none;width:160px;background-color:#333333;border-radius:3px;bottom:10px;left:-88px;font-size:12px;padding:8px;z-index:1;color:#ffffff;-webkit-box-shadow:0 0 16px rgba(0, 0, 0, 0.5);box-shadow:0 0 16px rgba(0, 0, 0, 0.5)}.what3words-address:hover .what3words-tooltip,.what3words-address_tooltip .what3words-tooltip{display:block}.what3words-tooltip:after{bottom:-13px;left:50%;content:"";height:0;width:0;position:absolute;border:7px solid transparent;margin-left:-7px;border-top-color:#333333;z-index:1}.what3words-tooltip:before{content:"";position:absolute;width:100%;height:10px;bottom:-10px;left:0}.what3words-tooltip a{color:#ffffff}';var What3wordsAddress=function(){function t(t){registerInstance(this,t);this.words=undefined;this.iconColor=DEFAULTS.iconColor;this.textColor=DEFAULTS.textColor;this.size=DEFAULTS.addressSize;this.target=DEFAULTS.target;this.link=DEFAULTS.true;this.tooltip=DEFAULTS.true;this.tooltipLocation=DEFAULTS.tooltipLocation;this.showTooltip=DEFAULTS.false}t.prototype.render=function(){var t="https://map.what3words.com/".concat(this.words);var o=this.link?{href:t,target:this.target}:{};return h("a",Object.assign({},o,{class:"what3words-address notranslate ".concat(this.showTooltip?"what3words-address_tooltip":""),style:{fontSize:"".concat(this.size,"px")}}),this.tooltip&&h("div",{class:"what3words-tooltip-container"},h("div",{class:"what3words-tooltip"},"what3words gives every 3m x 3m in the world a unique 3 word address. This one describes the precise ",this.tooltipLocation,"."," ",h("a",{href:t,target:this.target},"View on map"))),h("div",{class:"what3words-address_container"},h("what3words-symbol",{size:this.size*1.25,color:this.iconColor}),h("span",{class:"what3words-address_text",style:{color:this.textColor}},this.words)))};return t}();What3wordsAddress.style=addressCss;export{What3wordsAddress as what3words_address};

@@ -1,1 +0,1 @@

import{p as promiseResolve,b as bootstrapLazy}from"./index-49550bab.js";export{s as setNonce}from"./index-49550bab.js";import{g as globalScripts}from"./app-globals-2e5bf868.js";import"./index-1a833cca.js";import"./utils-ae3c6d6d.js";var patchBrowser=function(){var o=import.meta.url;var e={};if(o!==""){e.resourcesUrl=new URL(".",o).href}return promiseResolve(e)};patchBrowser().then((function(o){globalScripts();return bootstrapLazy([["what3words-autosuggest_3",[[4,"what3words-autosuggest",{callback:[1],api_key:[1],headers:[1],base_url:[1],api_version:[1],name:[1],initial_value:[1025],variant:[1],typeahead_delay:[2],invalid_address_error_message:[1],strict:[4],language:[1],autosuggest_focus:[1],n_focus_results:[2],clip_to_country:[1],clip_to_bounding_box:[1],clip_to_circle:[1],clip_to_polygon:[1],return_coordinates:[4],options:[16],rawInput:[32],value:[32],input:[32],latInput:[32],lngInput:[32],suggestions:[32],selectedSuggestion:[32],showSuggestions:[32],hasFocus:[32],latitude:[32],longitude:[32],apiRequest:[32],loading:[32],hoverIndex:[32],error:[32],errorTimeout:[32],serviceClients:[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{api_key:[1],headers:[1],base_url:[1],api_version:[1],words:[1],map_provider:[1],map_api_key:[1],version:[1],libraries:[16],language:[1],region:[1],lat:[1026],lng:[1026],tilt:[2],disable_default_ui:[4],zoom:[2],zoom_control:[4],zoom_control_position:[2],map_type_id:[1],map_type_control:[4],map_type_control_position:[2],scale_control:[4],street_view_control:[4],street_view_control_position:[2],rotate_control:[4],rotate_control_position:[2],fullscreen_control:[4],fullscreen_control_position:[2],search_control_position:[2],current_location_control_position:[2],selected_zoom:[2],current_location:[4],watch_location:[4],marker_icon:[1],reset_zoom_on_select:[4],searchControlSlot:[32],currentLocationControlSlot:[32],zoomControlSlot:[32],mapTypeControlSlot:[32],mapLoaded:[32],input:[32],autosuggest:[32],placesSuggestions:[32],request:[32],watch_id:[32],provider:[32],current_location_coordinates:[32],w3wLanguage:[32],serviceClients:[32],setApiKey:[64],setBaseUrl:[64],setHeaders:[64],setApiVersion:[64],setWords:[64],clearGrid:[64],getLat:[64],setCoordinates:[64],getLng:[64],setZoom:[64],getZoom:[64],getBounds:[64],panTo:[64],setMapTypeId:[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{color:[1],size:[2]}]]],["what3words-address",[[0,"what3words-address",{words:[1],iconColor:[1,"icon-color"],textColor:[1,"text-color"],size:[2],target:[1],link:[4],tooltip:[4],tooltipLocation:[1,"tooltip-location"],showTooltip:[4,"show-tooltip"]}]]]],o)}));
import{p as promiseResolve,b as bootstrapLazy}from"./index-49550bab.js";export{s as setNonce}from"./index-49550bab.js";import{g as globalScripts}from"./app-globals-3e8da4e5.js";import"./index-36108503.js";import"./utils-0270afe2.js";var patchBrowser=function(){var o=import.meta.url;var e={};if(o!==""){e.resourcesUrl=new URL(".",o).href}return promiseResolve(e)};patchBrowser().then((function(o){globalScripts();return bootstrapLazy([["what3words-autosuggest_3",[[4,"what3words-autosuggest",{callback:[1],api_key:[1],headers:[1],base_url:[1],api_version:[1],name:[1],initial_value:[1025],variant:[1],typeahead_delay:[2],invalid_address_error_message:[1],strict:[4],language:[1],autosuggest_focus:[1],n_focus_results:[2],clip_to_country:[1],clip_to_bounding_box:[1],clip_to_circle:[1],clip_to_polygon:[1],return_coordinates:[4],options:[16],rawInput:[32],value:[32],input:[32],latInput:[32],lngInput:[32],suggestions:[32],selectedSuggestion:[32],showSuggestions:[32],hasFocus:[32],latitude:[32],longitude:[32],apiRequest:[32],loading:[32],hoverIndex:[32],error:[32],errorTimeout:[32],clients:[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{api_key:[1],headers:[1],base_url:[1],api_version:[1],words:[1],map_provider:[1],map_api_key:[1],version:[1],libraries:[16],language:[1],region:[1],lat:[1026],lng:[1026],tilt:[2],disable_default_ui:[4],zoom:[2],zoom_control:[4],zoom_control_position:[2],map_type_id:[1],map_type_control:[4],map_type_control_position:[2],scale_control:[4],street_view_control:[4],street_view_control_position:[2],rotate_control:[4],rotate_control_position:[2],fullscreen_control:[4],fullscreen_control_position:[2],search_control_position:[2],current_location_control_position:[2],selected_zoom:[2],current_location:[4],watch_location:[4],marker_icon:[1],reset_zoom_on_select:[4],searchControlSlot:[32],currentLocationControlSlot:[32],zoomControlSlot:[32],mapTypeControlSlot:[32],mapLoaded:[32],input:[32],autosuggest:[32],placesSuggestions:[32],request:[32],watch_id:[32],provider:[32],current_location_coordinates:[32],w3wLanguage:[32],clients:[32],setApiKey:[64],setBaseUrl:[64],setHeaders:[64],setApiVersion:[64],setWords:[64],clearGrid:[64],getLat:[64],setCoordinates:[64],getLng:[64],setZoom:[64],getZoom:[64],getBounds:[64],panTo:[64],setMapTypeId:[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{color:[1],size:[2]}]]],["what3words-address",[[0,"what3words-address",{words:[1],iconColor:[1,"icon-color"],textColor:[1,"text-color"],size:[2],target:[1],link:[4],tooltip:[4],tooltipLocation:[1,"tooltip-location"],showTooltip:[4,"show-tooltip"]}]]]],o)}));

@@ -1,1 +0,1 @@

export { i as initService, c as initServiceClient, s as sdk } from './index-1a833cca.js';
export { s as sdk, w as what3wordsClients } from './index-36108503.js';
import { p as promiseResolve, b as bootstrapLazy } from './index-49550bab.js';
export { s as setNonce } from './index-49550bab.js';
import { g as globalScripts } from './app-globals-2e5bf868.js';
import './index-1a833cca.js';
import './utils-ae3c6d6d.js';
import { g as globalScripts } from './app-globals-3e8da4e5.js';
import './index-36108503.js';
import './utils-0270afe2.js';

@@ -18,3 +18,3 @@ /*

globalScripts();
return bootstrapLazy([["what3words-autosuggest_3",[[4,"what3words-autosuggest",{"callback":[1],"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"name":[1],"initial_value":[1025],"variant":[1],"typeahead_delay":[2],"invalid_address_error_message":[1],"strict":[4],"language":[1],"autosuggest_focus":[1],"n_focus_results":[2],"clip_to_country":[1],"clip_to_bounding_box":[1],"clip_to_circle":[1],"clip_to_polygon":[1],"return_coordinates":[4],"options":[16],"rawInput":[32],"value":[32],"input":[32],"latInput":[32],"lngInput":[32],"suggestions":[32],"selectedSuggestion":[32],"showSuggestions":[32],"hasFocus":[32],"latitude":[32],"longitude":[32],"apiRequest":[32],"loading":[32],"hoverIndex":[32],"error":[32],"errorTimeout":[32],"serviceClients":[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"words":[1],"map_provider":[1],"map_api_key":[1],"version":[1],"libraries":[16],"language":[1],"region":[1],"lat":[1026],"lng":[1026],"tilt":[2],"disable_default_ui":[4],"zoom":[2],"zoom_control":[4],"zoom_control_position":[2],"map_type_id":[1],"map_type_control":[4],"map_type_control_position":[2],"scale_control":[4],"street_view_control":[4],"street_view_control_position":[2],"rotate_control":[4],"rotate_control_position":[2],"fullscreen_control":[4],"fullscreen_control_position":[2],"search_control_position":[2],"current_location_control_position":[2],"selected_zoom":[2],"current_location":[4],"watch_location":[4],"marker_icon":[1],"reset_zoom_on_select":[4],"searchControlSlot":[32],"currentLocationControlSlot":[32],"zoomControlSlot":[32],"mapTypeControlSlot":[32],"mapLoaded":[32],"input":[32],"autosuggest":[32],"placesSuggestions":[32],"request":[32],"watch_id":[32],"provider":[32],"current_location_coordinates":[32],"w3wLanguage":[32],"serviceClients":[32],"setApiKey":[64],"setBaseUrl":[64],"setHeaders":[64],"setApiVersion":[64],"setWords":[64],"clearGrid":[64],"getLat":[64],"setCoordinates":[64],"getLng":[64],"setZoom":[64],"getZoom":[64],"getBounds":[64],"panTo":[64],"setMapTypeId":[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{"color":[1],"size":[2]}]]],["what3words-address",[[0,"what3words-address",{"words":[1],"iconColor":[1,"icon-color"],"textColor":[1,"text-color"],"size":[2],"target":[1],"link":[4],"tooltip":[4],"tooltipLocation":[1,"tooltip-location"],"showTooltip":[4,"show-tooltip"]}]]]], options);
return bootstrapLazy([["what3words-autosuggest_3",[[4,"what3words-autosuggest",{"callback":[1],"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"name":[1],"initial_value":[1025],"variant":[1],"typeahead_delay":[2],"invalid_address_error_message":[1],"strict":[4],"language":[1],"autosuggest_focus":[1],"n_focus_results":[2],"clip_to_country":[1],"clip_to_bounding_box":[1],"clip_to_circle":[1],"clip_to_polygon":[1],"return_coordinates":[4],"options":[16],"rawInput":[32],"value":[32],"input":[32],"latInput":[32],"lngInput":[32],"suggestions":[32],"selectedSuggestion":[32],"showSuggestions":[32],"hasFocus":[32],"latitude":[32],"longitude":[32],"apiRequest":[32],"loading":[32],"hoverIndex":[32],"error":[32],"errorTimeout":[32],"clients":[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"words":[1],"map_provider":[1],"map_api_key":[1],"version":[1],"libraries":[16],"language":[1],"region":[1],"lat":[1026],"lng":[1026],"tilt":[2],"disable_default_ui":[4],"zoom":[2],"zoom_control":[4],"zoom_control_position":[2],"map_type_id":[1],"map_type_control":[4],"map_type_control_position":[2],"scale_control":[4],"street_view_control":[4],"street_view_control_position":[2],"rotate_control":[4],"rotate_control_position":[2],"fullscreen_control":[4],"fullscreen_control_position":[2],"search_control_position":[2],"current_location_control_position":[2],"selected_zoom":[2],"current_location":[4],"watch_location":[4],"marker_icon":[1],"reset_zoom_on_select":[4],"searchControlSlot":[32],"currentLocationControlSlot":[32],"zoomControlSlot":[32],"mapTypeControlSlot":[32],"mapLoaded":[32],"input":[32],"autosuggest":[32],"placesSuggestions":[32],"request":[32],"watch_id":[32],"provider":[32],"current_location_coordinates":[32],"w3wLanguage":[32],"clients":[32],"setApiKey":[64],"setBaseUrl":[64],"setHeaders":[64],"setApiVersion":[64],"setWords":[64],"clearGrid":[64],"getLat":[64],"setCoordinates":[64],"getLng":[64],"setZoom":[64],"getZoom":[64],"getBounds":[64],"panTo":[64],"setMapTypeId":[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{"color":[1],"size":[2]}]]],["what3words-address",[[0,"what3words-address",{"words":[1],"iconColor":[1,"icon-color"],"textColor":[1,"text-color"],"size":[2],"target":[1],"link":[4],"tooltip":[4],"tooltipLocation":[1,"tooltip-location"],"showTooltip":[4,"show-tooltip"]}]]]], options);
});

@@ -21,0 +21,0 @@ };

import { r as registerInstance, h } from './index-49550bab.js';
import { D as DEFAULTS } from './index-1a833cca.js';
import { D as DEFAULTS } from './index-36108503.js';

@@ -4,0 +4,0 @@ const addressCss = "what3words-address{display:inline-block;font-family:\"Source Sans Pro\", sans-serif}.what3words-address{color:#333;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none;-ms-flex-direction:column;flex-direction:column}.what3words-address_container{display:-ms-flexbox;display:flex}.what3words-address_text{white-space:nowrap}.what3words-tooltip-container{height:0;width:0;position:relative;-ms-flex-item-align:center;align-self:center}.what3words-tooltip{position:absolute;display:none;width:160px;background-color:#333333;border-radius:3px;bottom:10px;left:-88px;font-size:12px;padding:8px;z-index:1;color:#ffffff;-webkit-box-shadow:0 0 16px rgba(0, 0, 0, 0.5);box-shadow:0 0 16px rgba(0, 0, 0, 0.5)}.what3words-address:hover .what3words-tooltip,.what3words-address_tooltip .what3words-tooltip{display:block}.what3words-tooltip:after{bottom:-13px;left:50%;content:\"\";height:0;width:0;position:absolute;border:7px solid transparent;margin-left:-7px;border-top-color:#333333;z-index:1}.what3words-tooltip:before{content:\"\";position:absolute;width:100%;height:10px;bottom:-10px;left:0}.what3words-tooltip a{color:#ffffff}";

import { p as promiseResolve, b as bootstrapLazy } from './index-49550bab.js';
export { s as setNonce } from './index-49550bab.js';
import { g as globalScripts } from './app-globals-2e5bf868.js';
import './index-1a833cca.js';
import './utils-ae3c6d6d.js';
import { g as globalScripts } from './app-globals-3e8da4e5.js';
import './index-36108503.js';
import './utils-0270afe2.js';

@@ -24,3 +24,3 @@ /*

globalScripts();
return bootstrapLazy([["what3words-autosuggest_3",[[4,"what3words-autosuggest",{"callback":[1],"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"name":[1],"initial_value":[1025],"variant":[1],"typeahead_delay":[2],"invalid_address_error_message":[1],"strict":[4],"language":[1],"autosuggest_focus":[1],"n_focus_results":[2],"clip_to_country":[1],"clip_to_bounding_box":[1],"clip_to_circle":[1],"clip_to_polygon":[1],"return_coordinates":[4],"options":[16],"rawInput":[32],"value":[32],"input":[32],"latInput":[32],"lngInput":[32],"suggestions":[32],"selectedSuggestion":[32],"showSuggestions":[32],"hasFocus":[32],"latitude":[32],"longitude":[32],"apiRequest":[32],"loading":[32],"hoverIndex":[32],"error":[32],"errorTimeout":[32],"serviceClients":[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"words":[1],"map_provider":[1],"map_api_key":[1],"version":[1],"libraries":[16],"language":[1],"region":[1],"lat":[1026],"lng":[1026],"tilt":[2],"disable_default_ui":[4],"zoom":[2],"zoom_control":[4],"zoom_control_position":[2],"map_type_id":[1],"map_type_control":[4],"map_type_control_position":[2],"scale_control":[4],"street_view_control":[4],"street_view_control_position":[2],"rotate_control":[4],"rotate_control_position":[2],"fullscreen_control":[4],"fullscreen_control_position":[2],"search_control_position":[2],"current_location_control_position":[2],"selected_zoom":[2],"current_location":[4],"watch_location":[4],"marker_icon":[1],"reset_zoom_on_select":[4],"searchControlSlot":[32],"currentLocationControlSlot":[32],"zoomControlSlot":[32],"mapTypeControlSlot":[32],"mapLoaded":[32],"input":[32],"autosuggest":[32],"placesSuggestions":[32],"request":[32],"watch_id":[32],"provider":[32],"current_location_coordinates":[32],"w3wLanguage":[32],"serviceClients":[32],"setApiKey":[64],"setBaseUrl":[64],"setHeaders":[64],"setApiVersion":[64],"setWords":[64],"clearGrid":[64],"getLat":[64],"setCoordinates":[64],"getLng":[64],"setZoom":[64],"getZoom":[64],"getBounds":[64],"panTo":[64],"setMapTypeId":[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{"color":[1],"size":[2]}]]],["what3words-address",[[0,"what3words-address",{"words":[1],"iconColor":[1,"icon-color"],"textColor":[1,"text-color"],"size":[2],"target":[1],"link":[4],"tooltip":[4],"tooltipLocation":[1,"tooltip-location"],"showTooltip":[4,"show-tooltip"]}]]]], options);
return bootstrapLazy([["what3words-autosuggest_3",[[4,"what3words-autosuggest",{"callback":[1],"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"name":[1],"initial_value":[1025],"variant":[1],"typeahead_delay":[2],"invalid_address_error_message":[1],"strict":[4],"language":[1],"autosuggest_focus":[1],"n_focus_results":[2],"clip_to_country":[1],"clip_to_bounding_box":[1],"clip_to_circle":[1],"clip_to_polygon":[1],"return_coordinates":[4],"options":[16],"rawInput":[32],"value":[32],"input":[32],"latInput":[32],"lngInput":[32],"suggestions":[32],"selectedSuggestion":[32],"showSuggestions":[32],"hasFocus":[32],"latitude":[32],"longitude":[32],"apiRequest":[32],"loading":[32],"hoverIndex":[32],"error":[32],"errorTimeout":[32],"clients":[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{"api_key":[1],"headers":[1],"base_url":[1],"api_version":[1],"words":[1],"map_provider":[1],"map_api_key":[1],"version":[1],"libraries":[16],"language":[1],"region":[1],"lat":[1026],"lng":[1026],"tilt":[2],"disable_default_ui":[4],"zoom":[2],"zoom_control":[4],"zoom_control_position":[2],"map_type_id":[1],"map_type_control":[4],"map_type_control_position":[2],"scale_control":[4],"street_view_control":[4],"street_view_control_position":[2],"rotate_control":[4],"rotate_control_position":[2],"fullscreen_control":[4],"fullscreen_control_position":[2],"search_control_position":[2],"current_location_control_position":[2],"selected_zoom":[2],"current_location":[4],"watch_location":[4],"marker_icon":[1],"reset_zoom_on_select":[4],"searchControlSlot":[32],"currentLocationControlSlot":[32],"zoomControlSlot":[32],"mapTypeControlSlot":[32],"mapLoaded":[32],"input":[32],"autosuggest":[32],"placesSuggestions":[32],"request":[32],"watch_id":[32],"provider":[32],"current_location_coordinates":[32],"w3wLanguage":[32],"clients":[32],"setApiKey":[64],"setBaseUrl":[64],"setHeaders":[64],"setApiVersion":[64],"setWords":[64],"clearGrid":[64],"getLat":[64],"setCoordinates":[64],"getLng":[64],"setZoom":[64],"getZoom":[64],"getBounds":[64],"panTo":[64],"setMapTypeId":[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{"color":[1],"size":[2]}]]],["what3words-address",[[0,"what3words-address",{"words":[1],"iconColor":[1,"icon-color"],"textColor":[1,"text-color"],"size":[2],"target":[1],"link":[4],"tooltip":[4],"tooltipLocation":[1,"tooltip-location"],"showTooltip":[4,"show-tooltip"]}]]]], options);
});

@@ -61,3 +61,3 @@ /// <reference types="node" />

private errorTimeout;
private serviceClients;
private clients;
private value_changed;

@@ -88,3 +88,3 @@ private value_valid;

*/
setApiVersion(apiVersion: ApiVersion): void;
setApiVersion(api_version: ApiVersion): void;
/**

@@ -212,2 +212,7 @@ * Watches for changes to the headers property

/**
* Emit an error and pass
* @param {Error} error
*/
private emitError;
/**
* Emits the invalid three word address error

@@ -214,0 +219,0 @@ */

@@ -76,3 +76,3 @@ /// <reference types="googlemaps" />

private w3wLanguage;
private serviceClients;
private clients;
setApiKey(key: string): Promise<void>;

@@ -79,0 +79,0 @@ setBaseUrl(host: string): Promise<void>;

@@ -0,5 +1,16 @@

import { ApiVersion } from '@what3words/api';
import { SDK } from '../lib';
declare global {
interface Window {
what3words: object;
what3words: SDK;
what3words_session_id: string;
w3w?: {
callback?: string;
key?: string;
host?: string;
version?: `${ApiVersion}`;
headers?: {
[key: string]: string;
};
};
}

@@ -6,0 +17,0 @@ }

export { Components, JSX } from './components';
export { initService, initServiceClient, sdk, SDK } from './lib';
export { what3wordsClients, What3wordsClients, sdk, SDK } from './lib';

@@ -1,2 +0,2 @@

import { ApiClientConfiguration, What3wordsService, Transport } from '@what3words/api';
import { What3wordsService, ApiClientConfiguration, Transport } from '@what3words/api';
export interface SDK {

@@ -8,12 +8,10 @@ api: What3wordsService;

}
export interface serviceClientOpts {
api_key?: string;
config?: ApiClientConfiguration;
transport?: Transport;
}
export type serviceClientNames = 'autosuggest' | 'availableLanguages' | 'convertTo3wa' | 'convertToCoordinates' | 'gridSection';
export declare const initService: (apiKey?: string, config?: ApiClientConfiguration, opts?: {
transport: Transport;
}) => What3wordsService;
export declare const what3wordsClients: {
autosuggest: (apiKey?: string, config?: ApiClientConfiguration, transport?: Transport) => any;
availableLanguages: (apiKey?: string, config?: ApiClientConfiguration, transport?: Transport) => any;
convertTo3wa: (apiKey?: string, config?: ApiClientConfiguration, transport?: Transport) => any;
convertToCoordinates: (apiKey?: string, config?: ApiClientConfiguration, transport?: Transport) => any;
gridSection: (apiKey?: string, config?: ApiClientConfiguration, transport?: Transport) => any;
};
export type What3wordsClients = typeof what3wordsClients;
export declare const sdk: SDK;
export declare function initServiceClient<T>(name: serviceClientNames, opts: serviceClientOpts): T;

@@ -1,1 +0,1 @@

export{i as initService,c as initServiceClient,s as sdk}from"./p-539221e9.js";
export{s as sdk,w as what3wordsClients}from"./p-a16164b2.js";

@@ -1,1 +0,1 @@

import{p as o,b as e}from"./p-c116b7e1.js";export{s as setNonce}from"./p-c116b7e1.js";import{g as t}from"./p-97033b7b.js";import"./p-539221e9.js";import"./p-82a61ea9.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),o(t)})().then((o=>(t(),e([["p-ec5e851e",[[4,"what3words-autosuggest",{callback:[1],api_key:[1],headers:[1],base_url:[1],api_version:[1],name:[1],initial_value:[1025],variant:[1],typeahead_delay:[2],invalid_address_error_message:[1],strict:[4],language:[1],autosuggest_focus:[1],n_focus_results:[2],clip_to_country:[1],clip_to_bounding_box:[1],clip_to_circle:[1],clip_to_polygon:[1],return_coordinates:[4],options:[16],rawInput:[32],value:[32],input:[32],latInput:[32],lngInput:[32],suggestions:[32],selectedSuggestion:[32],showSuggestions:[32],hasFocus:[32],latitude:[32],longitude:[32],apiRequest:[32],loading:[32],hoverIndex:[32],error:[32],errorTimeout:[32],serviceClients:[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{api_key:[1],headers:[1],base_url:[1],api_version:[1],words:[1],map_provider:[1],map_api_key:[1],version:[1],libraries:[16],language:[1],region:[1],lat:[1026],lng:[1026],tilt:[2],disable_default_ui:[4],zoom:[2],zoom_control:[4],zoom_control_position:[2],map_type_id:[1],map_type_control:[4],map_type_control_position:[2],scale_control:[4],street_view_control:[4],street_view_control_position:[2],rotate_control:[4],rotate_control_position:[2],fullscreen_control:[4],fullscreen_control_position:[2],search_control_position:[2],current_location_control_position:[2],selected_zoom:[2],current_location:[4],watch_location:[4],marker_icon:[1],reset_zoom_on_select:[4],searchControlSlot:[32],currentLocationControlSlot:[32],zoomControlSlot:[32],mapTypeControlSlot:[32],mapLoaded:[32],input:[32],autosuggest:[32],placesSuggestions:[32],request:[32],watch_id:[32],provider:[32],current_location_coordinates:[32],w3wLanguage:[32],serviceClients:[32],setApiKey:[64],setBaseUrl:[64],setHeaders:[64],setApiVersion:[64],setWords:[64],clearGrid:[64],getLat:[64],setCoordinates:[64],getLng:[64],setZoom:[64],getZoom:[64],getBounds:[64],panTo:[64],setMapTypeId:[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{color:[1],size:[2]}]]],["p-cebe9f80",[[0,"what3words-address",{words:[1],iconColor:[1,"icon-color"],textColor:[1,"text-color"],size:[2],target:[1],link:[4],tooltip:[4],tooltipLocation:[1,"tooltip-location"],showTooltip:[4,"show-tooltip"]}]]]],o))));
import{p as o,b as e}from"./p-c116b7e1.js";export{s as setNonce}from"./p-c116b7e1.js";import{g as t}from"./p-9802b414.js";import"./p-a16164b2.js";import"./p-deeb83a6.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),o(t)})().then((o=>(t(),e([["p-550344ba",[[4,"what3words-autosuggest",{callback:[1],api_key:[1],headers:[1],base_url:[1],api_version:[1],name:[1],initial_value:[1025],variant:[1],typeahead_delay:[2],invalid_address_error_message:[1],strict:[4],language:[1],autosuggest_focus:[1],n_focus_results:[2],clip_to_country:[1],clip_to_bounding_box:[1],clip_to_circle:[1],clip_to_polygon:[1],return_coordinates:[4],options:[16],rawInput:[32],value:[32],input:[32],latInput:[32],lngInput:[32],suggestions:[32],selectedSuggestion:[32],showSuggestions:[32],hasFocus:[32],latitude:[32],longitude:[32],apiRequest:[32],loading:[32],hoverIndex:[32],error:[32],errorTimeout:[32],clients:[32]},[[3,"value_changed","onValueChanged"],[3,"value_valid","onValueValid"],[0,"value_invalid","onValueInvalid"],[3,"suggestions_changed","onSuggestionsChanged"],[3,"selected_suggestion","onSelectedSuggestion"],[3,"selected_custom_option","_onSelectedCustomOption"],[3,"coordinates_changed","_onCoordinatesChanged"],[3,"__hover","_onHover"],[3,"__focus","_onFocus"],[3,"__blur","_onBlur"],[3,"__error","_onError"],[3,"input","onInput"],[2,"paste","onPaste"],[3,"blur","onBlur"],[3,"focus","onFocus"],[2,"keyup","onKeyUp"]]],[4,"what3words-map",{api_key:[1],headers:[1],base_url:[1],api_version:[1],words:[1],map_provider:[1],map_api_key:[1],version:[1],libraries:[16],language:[1],region:[1],lat:[1026],lng:[1026],tilt:[2],disable_default_ui:[4],zoom:[2],zoom_control:[4],zoom_control_position:[2],map_type_id:[1],map_type_control:[4],map_type_control_position:[2],scale_control:[4],street_view_control:[4],street_view_control_position:[2],rotate_control:[4],rotate_control_position:[2],fullscreen_control:[4],fullscreen_control_position:[2],search_control_position:[2],current_location_control_position:[2],selected_zoom:[2],current_location:[4],watch_location:[4],marker_icon:[1],reset_zoom_on_select:[4],searchControlSlot:[32],currentLocationControlSlot:[32],zoomControlSlot:[32],mapTypeControlSlot:[32],mapLoaded:[32],input:[32],autosuggest:[32],placesSuggestions:[32],request:[32],watch_id:[32],provider:[32],current_location_coordinates:[32],w3wLanguage:[32],clients:[32],setApiKey:[64],setBaseUrl:[64],setHeaders:[64],setApiVersion:[64],setWords:[64],clearGrid:[64],getLat:[64],setCoordinates:[64],getLng:[64],setZoom:[64],getZoom:[64],getBounds:[64],panTo:[64],setMapTypeId:[64]},[[0,"__load","onLoad"],[3,"coordinates_changed","onSelectedCoordinates"]]],[0,"what3words-symbol",{color:[1],size:[2]}]]],["p-14816731",[[0,"what3words-address",{words:[1],iconColor:[1,"icon-color"],textColor:[1,"text-color"],size:[2],target:[1],link:[4],tooltip:[4],tooltipLocation:[1,"tooltip-location"],showTooltip:[4,"show-tooltip"]}]]]],o))));
{
"name": "@what3words/javascript-components",
"version": "4.1.3",
"version": "4.1.4-alpha.1",
"description": "what3words javascript sdk and web components",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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