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

@mapbox/search-js-react

Package Overview
Dependencies
Maintainers
28
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/search-js-react - npm Package Compare versions

Comparing version 1.0.0-beta.15 to 1.0.0-beta.16

coverage/lcov-report/src/hooks/useSearchBoxCore.tsx.html

10

coverage/coverage-final.json

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

{"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/index.ts": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}},"1":{"start":{"line":1,"column":7},"end":{"line":1,"column":null}},"2":{"start":{"line":2,"column":23},"end":{"line":2,"column":null}},"3":{"start":{"line":4,"column":32},"end":{"line":4,"column":null}},"4":{"start":{"line":5,"column":26},"end":{"line":5,"column":null}},"5":{"start":{"line":6,"column":31},"end":{"line":6,"column":null}},"6":{"start":{"line":8,"column":27},"end":{"line":8,"column":null}},"7":{"start":{"line":9,"column":34},"end":{"line":9,"column":null}},"8":{"start":{"line":10,"column":32},"end":{"line":10,"column":null}},"9":{"start":{"line":11,"column":33},"end":{"line":11,"column":null}},"10":{"start":{"line":12,"column":34},"end":{"line":12,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}}},"branchMap":{},"s":{"0":20,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":4,"10":4},"f":{"0":12},"b":{}}
{"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/index.ts": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}},"1":{"start":{"line":1,"column":7},"end":{"line":1,"column":null}},"2":{"start":{"line":2,"column":23},"end":{"line":2,"column":null}},"3":{"start":{"line":4,"column":32},"end":{"line":4,"column":null}},"4":{"start":{"line":5,"column":26},"end":{"line":5,"column":null}},"5":{"start":{"line":6,"column":31},"end":{"line":6,"column":null}},"6":{"start":{"line":8,"column":27},"end":{"line":8,"column":null}},"7":{"start":{"line":12,"column":7},"end":{"line":12,"column":null}},"8":{"start":{"line":13,"column":33},"end":{"line":13,"column":null}},"9":{"start":{"line":14,"column":33},"end":{"line":14,"column":null}},"10":{"start":{"line":15,"column":34},"end":{"line":15,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}}},"branchMap":{},"s":{"0":20,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":4,"10":4},"f":{"0":12},"b":{}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/components/AddressAutofill.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/components/AddressAutofill.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":3,"column":62},"end":{"line":3,"column":null}},"2":{"start":{"line":174,"column":31},"end":{"line":302,"column":null}},"3":{"start":{"line":189,"column":8},"end":{"line":189,"column":null}},"4":{"start":{"line":190,"column":16},"end":{"line":190,"column":null}},"5":{"start":{"line":192,"column":4},"end":{"line":195,"column":null}},"6":{"start":{"line":192,"column":40},"end":{"line":195,"column":null}},"7":{"start":{"line":194,"column":8},"end":{"line":194,"column":null}},"8":{"start":{"line":194,"column":25},"end":{"line":194,"column":null}},"9":{"start":{"line":195,"column":8},"end":{"line":195,"column":null}},"10":{"start":{"line":200,"column":4},"end":{"line":202,"column":null}},"11":{"start":{"line":201,"column":6},"end":{"line":201,"column":null}},"12":{"start":{"line":201,"column":23},"end":{"line":201,"column":null}},"13":{"start":{"line":205,"column":4},"end":{"line":207,"column":null}},"14":{"start":{"line":206,"column":6},"end":{"line":206,"column":null}},"15":{"start":{"line":206,"column":23},"end":{"line":206,"column":null}},"16":{"start":{"line":210,"column":4},"end":{"line":212,"column":null}},"17":{"start":{"line":211,"column":6},"end":{"line":211,"column":null}},"18":{"start":{"line":211,"column":23},"end":{"line":211,"column":null}},"19":{"start":{"line":215,"column":4},"end":{"line":217,"column":null}},"20":{"start":{"line":216,"column":6},"end":{"line":216,"column":null}},"21":{"start":{"line":216,"column":23},"end":{"line":216,"column":null}},"22":{"start":{"line":220,"column":4},"end":{"line":223,"column":null}},"23":{"start":{"line":221,"column":6},"end":{"line":222,"column":null}},"24":{"start":{"line":222,"column":8},"end":{"line":222,"column":null}},"25":{"start":{"line":226,"column":4},"end":{"line":229,"column":null}},"26":{"start":{"line":227,"column":6},"end":{"line":228,"column":null}},"27":{"start":{"line":228,"column":8},"end":{"line":228,"column":null}},"28":{"start":{"line":232,"column":4},"end":{"line":245,"column":null}},"29":{"start":{"line":233,"column":19},"end":{"line":233,"column":null}},"30":{"start":{"line":234,"column":6},"end":{"line":234,"column":null}},"31":{"start":{"line":234,"column":17},"end":{"line":234,"column":null}},"32":{"start":{"line":236,"column":6},"end":{"line":236,"column":null}},"33":{"start":{"line":236,"column":22},"end":{"line":236,"column":null}},"34":{"start":{"line":238,"column":17},"end":{"line":239,"column":null}},"35":{"start":{"line":239,"column":8},"end":{"line":239,"column":null}},"36":{"start":{"line":241,"column":6},"end":{"line":241,"column":null}},"37":{"start":{"line":242,"column":6},"end":{"line":243,"column":null}},"38":{"start":{"line":243,"column":8},"end":{"line":243,"column":null}},"39":{"start":{"line":248,"column":4},"end":{"line":260,"column":null}},"40":{"start":{"line":249,"column":19},"end":{"line":249,"column":null}},"41":{"start":{"line":250,"column":6},"end":{"line":250,"column":null}},"42":{"start":{"line":250,"column":17},"end":{"line":250,"column":null}},"43":{"start":{"line":252,"column":6},"end":{"line":252,"column":null}},"44":{"start":{"line":252,"column":27},"end":{"line":252,"column":null}},"45":{"start":{"line":254,"column":17},"end":{"line":254,"column":null}},"46":{"start":{"line":254,"column":48},"end":{"line":254,"column":null}},"47":{"start":{"line":256,"column":6},"end":{"line":256,"column":null}},"48":{"start":{"line":257,"column":6},"end":{"line":258,"column":null}},"49":{"start":{"line":258,"column":8},"end":{"line":258,"column":null}},"50":{"start":{"line":263,"column":4},"end":{"line":276,"column":null}},"51":{"start":{"line":264,"column":19},"end":{"line":264,"column":null}},"52":{"start":{"line":265,"column":6},"end":{"line":265,"column":null}},"53":{"start":{"line":265,"column":17},"end":{"line":265,"column":null}},"54":{"start":{"line":267,"column":6},"end":{"line":267,"column":null}},"55":{"start":{"line":267,"column":23},"end":{"line":267,"column":null}},"56":{"start":{"line":269,"column":17},"end":{"line":270,"column":null}},"57":{"start":{"line":270,"column":8},"end":{"line":270,"column":null}},"58":{"start":{"line":272,"column":6},"end":{"line":272,"column":null}},"59":{"start":{"line":273,"column":6},"end":{"line":274,"column":null}},"60":{"start":{"line":274,"column":8},"end":{"line":274,"column":null}},"61":{"start":{"line":279,"column":4},"end":{"line":294,"column":null}},"62":{"start":{"line":280,"column":19},"end":{"line":280,"column":null}},"63":{"start":{"line":281,"column":6},"end":{"line":281,"column":null}},"64":{"start":{"line":281,"column":17},"end":{"line":281,"column":null}},"65":{"start":{"line":283,"column":6},"end":{"line":283,"column":null}},"66":{"start":{"line":283,"column":21},"end":{"line":283,"column":null}},"67":{"start":{"line":285,"column":17},"end":{"line":287,"column":null}},"68":{"start":{"line":286,"column":8},"end":{"line":286,"column":null}},"69":{"start":{"line":286,"column":42},"end":{"line":286,"column":null}},"70":{"start":{"line":287,"column":8},"end":{"line":287,"column":null}},"71":{"start":{"line":290,"column":6},"end":{"line":290,"column":null}},"72":{"start":{"line":291,"column":6},"end":{"line":292,"column":null}},"73":{"start":{"line":292,"column":8},"end":{"line":292,"column":null}},"74":{"start":{"line":297,"column":4},"end":{"line":299,"column":null}},"75":{"start":{"line":298,"column":6},"end":{"line":298,"column":null}},"76":{"start":{"line":298,"column":23},"end":{"line":298,"column":null}},"77":{"start":{"line":301,"column":4},"end":{"line":302,"column":null}}},"fnMap":{"0":{"name":"(anonymous_8)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"(anonymous_9)","decl":{"start":{"line":175,"column":2},"end":{"line":175,"column":3}},"loc":{"start":{"line":175,"column":64},"end":{"line":302,"column":null}}},"2":{"name":"(anonymous_10)","decl":{"start":{"line":192,"column":33},"end":{"line":192,"column":40}},"loc":{"start":{"line":192,"column":40},"end":{"line":195,"column":null}}},"3":{"name":"(anonymous_11)","decl":{"start":{"line":193,"column":13},"end":{"line":193,"column":19}},"loc":{"start":{"line":193,"column":19},"end":{"line":195,"column":null}}},"4":{"name":"(anonymous_12)","decl":{"start":{"line":200,"column":14},"end":{"line":200,"column":20}},"loc":{"start":{"line":200,"column":20},"end":{"line":201,"column":null}}},"5":{"name":"(anonymous_13)","decl":{"start":{"line":205,"column":14},"end":{"line":205,"column":20}},"loc":{"start":{"line":205,"column":20},"end":{"line":206,"column":null}}},"6":{"name":"(anonymous_14)","decl":{"start":{"line":210,"column":14},"end":{"line":210,"column":20}},"loc":{"start":{"line":210,"column":20},"end":{"line":211,"column":null}}},"7":{"name":"(anonymous_15)","decl":{"start":{"line":215,"column":14},"end":{"line":215,"column":20}},"loc":{"start":{"line":215,"column":20},"end":{"line":216,"column":null}}},"8":{"name":"(anonymous_16)","decl":{"start":{"line":220,"column":14},"end":{"line":220,"column":20}},"loc":{"start":{"line":220,"column":20},"end":{"line":222,"column":null}}},"9":{"name":"(anonymous_17)","decl":{"start":{"line":226,"column":14},"end":{"line":226,"column":20}},"loc":{"start":{"line":226,"column":20},"end":{"line":228,"column":null}}},"10":{"name":"(anonymous_18)","decl":{"start":{"line":232,"column":14},"end":{"line":232,"column":20}},"loc":{"start":{"line":232,"column":20},"end":{"line":243,"column":null}}},"11":{"name":"(anonymous_19)","decl":{"start":{"line":238,"column":17},"end":{"line":238,"column":18}},"loc":{"start":{"line":239,"column":8},"end":{"line":239,"column":null}}},"12":{"name":"(anonymous_20)","decl":{"start":{"line":242,"column":13},"end":{"line":242,"column":19}},"loc":{"start":{"line":242,"column":19},"end":{"line":243,"column":null}}},"13":{"name":"(anonymous_21)","decl":{"start":{"line":248,"column":14},"end":{"line":248,"column":20}},"loc":{"start":{"line":248,"column":20},"end":{"line":258,"column":null}}},"14":{"name":"(anonymous_22)","decl":{"start":{"line":254,"column":17},"end":{"line":254,"column":18}},"loc":{"start":{"line":254,"column":48},"end":{"line":254,"column":null}}},"15":{"name":"(anonymous_23)","decl":{"start":{"line":257,"column":13},"end":{"line":257,"column":19}},"loc":{"start":{"line":257,"column":19},"end":{"line":258,"column":null}}},"16":{"name":"(anonymous_24)","decl":{"start":{"line":263,"column":14},"end":{"line":263,"column":20}},"loc":{"start":{"line":263,"column":20},"end":{"line":274,"column":null}}},"17":{"name":"(anonymous_25)","decl":{"start":{"line":269,"column":17},"end":{"line":269,"column":18}},"loc":{"start":{"line":270,"column":8},"end":{"line":270,"column":null}}},"18":{"name":"(anonymous_26)","decl":{"start":{"line":273,"column":13},"end":{"line":273,"column":19}},"loc":{"start":{"line":273,"column":19},"end":{"line":274,"column":null}}},"19":{"name":"(anonymous_27)","decl":{"start":{"line":279,"column":14},"end":{"line":279,"column":20}},"loc":{"start":{"line":279,"column":20},"end":{"line":292,"column":null}}},"20":{"name":"(anonymous_28)","decl":{"start":{"line":285,"column":17},"end":{"line":285,"column":18}},"loc":{"start":{"line":285,"column":49},"end":{"line":287,"column":null}}},"21":{"name":"(anonymous_29)","decl":{"start":{"line":291,"column":13},"end":{"line":291,"column":19}},"loc":{"start":{"line":291,"column":19},"end":{"line":292,"column":null}}},"22":{"name":"(anonymous_30)","decl":{"start":{"line":297,"column":14},"end":{"line":297,"column":20}},"loc":{"start":{"line":297,"column":20},"end":{"line":298,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":194,"column":8},"end":{"line":194,"column":null}},"type":"if","locations":[{"start":{"line":194,"column":8},"end":{"line":194,"column":null}}]},"1":{"loc":{"start":{"line":201,"column":6},"end":{"line":201,"column":null}},"type":"if","locations":[{"start":{"line":201,"column":6},"end":{"line":201,"column":null}}]},"2":{"loc":{"start":{"line":206,"column":6},"end":{"line":206,"column":null}},"type":"if","locations":[{"start":{"line":206,"column":6},"end":{"line":206,"column":null}}]},"3":{"loc":{"start":{"line":211,"column":6},"end":{"line":211,"column":null}},"type":"if","locations":[{"start":{"line":211,"column":6},"end":{"line":211,"column":null}}]},"4":{"loc":{"start":{"line":216,"column":6},"end":{"line":216,"column":null}},"type":"if","locations":[{"start":{"line":216,"column":6},"end":{"line":216,"column":null}}]},"5":{"loc":{"start":{"line":221,"column":6},"end":{"line":222,"column":null}},"type":"if","locations":[{"start":{"line":221,"column":6},"end":{"line":222,"column":null}}]},"6":{"loc":{"start":{"line":227,"column":6},"end":{"line":228,"column":null}},"type":"if","locations":[{"start":{"line":227,"column":6},"end":{"line":228,"column":null}}]},"7":{"loc":{"start":{"line":234,"column":6},"end":{"line":234,"column":null}},"type":"if","locations":[{"start":{"line":234,"column":6},"end":{"line":234,"column":null}}]},"8":{"loc":{"start":{"line":236,"column":6},"end":{"line":236,"column":null}},"type":"if","locations":[{"start":{"line":236,"column":6},"end":{"line":236,"column":null}}]},"9":{"loc":{"start":{"line":250,"column":6},"end":{"line":250,"column":null}},"type":"if","locations":[{"start":{"line":250,"column":6},"end":{"line":250,"column":null}}]},"10":{"loc":{"start":{"line":252,"column":6},"end":{"line":252,"column":null}},"type":"if","locations":[{"start":{"line":252,"column":6},"end":{"line":252,"column":null}}]},"11":{"loc":{"start":{"line":265,"column":6},"end":{"line":265,"column":null}},"type":"if","locations":[{"start":{"line":265,"column":6},"end":{"line":265,"column":null}}]},"12":{"loc":{"start":{"line":267,"column":6},"end":{"line":267,"column":null}},"type":"if","locations":[{"start":{"line":267,"column":6},"end":{"line":267,"column":null}}]},"13":{"loc":{"start":{"line":281,"column":6},"end":{"line":281,"column":null}},"type":"if","locations":[{"start":{"line":281,"column":6},"end":{"line":281,"column":null}}]},"14":{"loc":{"start":{"line":283,"column":6},"end":{"line":283,"column":null}},"type":"if","locations":[{"start":{"line":283,"column":6},"end":{"line":283,"column":null}}]},"15":{"loc":{"start":{"line":286,"column":8},"end":{"line":286,"column":null}},"type":"if","locations":[{"start":{"line":286,"column":8},"end":{"line":286,"column":null}}]},"16":{"loc":{"start":{"line":298,"column":6},"end":{"line":298,"column":null}},"type":"if","locations":[{"start":{"line":298,"column":6},"end":{"line":298,"column":null}}]}},"s":{"0":10,"1":4,"2":4,"3":2,"4":2,"5":2,"6":2,"7":2,"8":1,"9":1,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":2,"27":2,"28":2,"29":2,"30":2,"31":0,"32":2,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":2,"40":2,"41":2,"42":0,"43":2,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":2,"51":2,"52":2,"53":0,"54":2,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":2,"62":2,"63":2,"64":0,"65":2,"66":1,"67":1,"68":5,"69":2,"70":3,"71":1,"72":1,"73":1,"74":2,"75":2,"76":2,"77":2},"f":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":1,"12":1,"13":2,"14":1,"15":1,"16":2,"17":1,"18":1,"19":2,"20":5,"21":1,"22":2},"b":{"0":[1],"1":[2],"2":[2],"3":[2],"4":[2],"5":[2],"6":[2],"7":[0],"8":[1],"9":[0],"10":[1],"11":[0],"12":[1],"13":[0],"14":[1],"15":[2],"16":[2]}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/components/AddressMinimap.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/components/AddressMinimap.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":3,"column":41},"end":{"line":3,"column":null}},"2":{"start":{"line":161,"column":6},"end":{"line":161,"column":null}},"3":{"start":{"line":162,"column":14},"end":{"line":162,"column":null}},"4":{"start":{"line":165,"column":2},"end":{"line":172,"column":null}},"5":{"start":{"line":166,"column":4},"end":{"line":166,"column":null}},"6":{"start":{"line":166,"column":22},"end":{"line":166,"column":null}},"7":{"start":{"line":167,"column":4},"end":{"line":170,"column":null}},"8":{"start":{"line":168,"column":6},"end":{"line":168,"column":null}},"9":{"start":{"line":170,"column":6},"end":{"line":170,"column":null}},"10":{"start":{"line":175,"column":2},"end":{"line":177,"column":null}},"11":{"start":{"line":176,"column":4},"end":{"line":176,"column":null}},"12":{"start":{"line":176,"column":21},"end":{"line":176,"column":null}},"13":{"start":{"line":180,"column":2},"end":{"line":182,"column":null}},"14":{"start":{"line":181,"column":4},"end":{"line":181,"column":null}},"15":{"start":{"line":181,"column":21},"end":{"line":181,"column":null}},"16":{"start":{"line":185,"column":2},"end":{"line":187,"column":null}},"17":{"start":{"line":186,"column":4},"end":{"line":186,"column":null}},"18":{"start":{"line":186,"column":21},"end":{"line":186,"column":null}},"19":{"start":{"line":190,"column":2},"end":{"line":193,"column":null}},"20":{"start":{"line":191,"column":4},"end":{"line":191,"column":null}},"21":{"start":{"line":191,"column":37},"end":{"line":191,"column":null}},"22":{"start":{"line":192,"column":4},"end":{"line":192,"column":null}},"23":{"start":{"line":192,"column":21},"end":{"line":192,"column":null}},"24":{"start":{"line":196,"column":2},"end":{"line":199,"column":null}},"25":{"start":{"line":197,"column":4},"end":{"line":197,"column":null}},"26":{"start":{"line":197,"column":35},"end":{"line":197,"column":null}},"27":{"start":{"line":198,"column":4},"end":{"line":198,"column":null}},"28":{"start":{"line":198,"column":21},"end":{"line":198,"column":null}},"29":{"start":{"line":202,"column":2},"end":{"line":205,"column":null}},"30":{"start":{"line":203,"column":4},"end":{"line":203,"column":null}},"31":{"start":{"line":203,"column":37},"end":{"line":203,"column":null}},"32":{"start":{"line":204,"column":4},"end":{"line":204,"column":null}},"33":{"start":{"line":204,"column":21},"end":{"line":204,"column":null}},"34":{"start":{"line":208,"column":2},"end":{"line":210,"column":null}},"35":{"start":{"line":209,"column":4},"end":{"line":209,"column":null}},"36":{"start":{"line":209,"column":21},"end":{"line":209,"column":null}},"37":{"start":{"line":213,"column":2},"end":{"line":216,"column":null}},"38":{"start":{"line":214,"column":4},"end":{"line":214,"column":null}},"39":{"start":{"line":214,"column":30},"end":{"line":214,"column":null}},"40":{"start":{"line":215,"column":4},"end":{"line":215,"column":null}},"41":{"start":{"line":215,"column":21},"end":{"line":215,"column":null}},"42":{"start":{"line":219,"column":2},"end":{"line":221,"column":null}},"43":{"start":{"line":220,"column":4},"end":{"line":220,"column":null}},"44":{"start":{"line":220,"column":21},"end":{"line":220,"column":null}},"45":{"start":{"line":224,"column":2},"end":{"line":226,"column":null}},"46":{"start":{"line":225,"column":4},"end":{"line":225,"column":null}},"47":{"start":{"line":225,"column":21},"end":{"line":225,"column":null}},"48":{"start":{"line":228,"column":2},"end":{"line":234,"column":null}}},"fnMap":{"0":{"name":"(anonymous_8)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"AddressMinimap","decl":{"start":{"line":141,"column":7},"end":{"line":141,"column":31}},"loc":{"start":{"line":141,"column":79},"end":{"line":234,"column":null}}},"2":{"name":"(anonymous_10)","decl":{"start":{"line":165,"column":12},"end":{"line":165,"column":18}},"loc":{"start":{"line":165,"column":18},"end":{"line":170,"column":null}}},"3":{"name":"(anonymous_11)","decl":{"start":{"line":175,"column":12},"end":{"line":175,"column":18}},"loc":{"start":{"line":175,"column":18},"end":{"line":176,"column":null}}},"4":{"name":"(anonymous_12)","decl":{"start":{"line":180,"column":12},"end":{"line":180,"column":18}},"loc":{"start":{"line":180,"column":18},"end":{"line":181,"column":null}}},"5":{"name":"(anonymous_13)","decl":{"start":{"line":185,"column":12},"end":{"line":185,"column":18}},"loc":{"start":{"line":185,"column":18},"end":{"line":186,"column":null}}},"6":{"name":"(anonymous_14)","decl":{"start":{"line":190,"column":12},"end":{"line":190,"column":18}},"loc":{"start":{"line":190,"column":18},"end":{"line":192,"column":null}}},"7":{"name":"(anonymous_15)","decl":{"start":{"line":196,"column":12},"end":{"line":196,"column":18}},"loc":{"start":{"line":196,"column":18},"end":{"line":198,"column":null}}},"8":{"name":"(anonymous_16)","decl":{"start":{"line":202,"column":12},"end":{"line":202,"column":18}},"loc":{"start":{"line":202,"column":18},"end":{"line":204,"column":null}}},"9":{"name":"(anonymous_17)","decl":{"start":{"line":208,"column":12},"end":{"line":208,"column":18}},"loc":{"start":{"line":208,"column":18},"end":{"line":209,"column":null}}},"10":{"name":"(anonymous_18)","decl":{"start":{"line":213,"column":12},"end":{"line":213,"column":18}},"loc":{"start":{"line":213,"column":18},"end":{"line":215,"column":null}}},"11":{"name":"(anonymous_19)","decl":{"start":{"line":219,"column":12},"end":{"line":219,"column":18}},"loc":{"start":{"line":219,"column":18},"end":{"line":220,"column":null}}},"12":{"name":"(anonymous_20)","decl":{"start":{"line":224,"column":12},"end":{"line":224,"column":18}},"loc":{"start":{"line":224,"column":18},"end":{"line":225,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":143,"column":4},"end":{"line":143,"column":null}},"type":"default-arg","locations":[{"start":{"line":143,"column":22},"end":{"line":143,"column":null}}]},"1":{"loc":{"start":{"line":144,"column":4},"end":{"line":144,"column":null}},"type":"default-arg","locations":[{"start":{"line":144,"column":25},"end":{"line":144,"column":null}}]},"2":{"loc":{"start":{"line":145,"column":4},"end":{"line":145,"column":null}},"type":"default-arg","locations":[{"start":{"line":145,"column":19},"end":{"line":145,"column":null}}]},"3":{"loc":{"start":{"line":148,"column":4},"end":{"line":148,"column":null}},"type":"default-arg","locations":[{"start":{"line":148,"column":11},"end":{"line":148,"column":null}}]},"4":{"loc":{"start":{"line":150,"column":4},"end":{"line":150,"column":null}},"type":"default-arg","locations":[{"start":{"line":150,"column":14},"end":{"line":150,"column":null}}]},"5":{"loc":{"start":{"line":156,"column":4},"end":{"line":156,"column":null}},"type":"default-arg","locations":[{"start":{"line":156,"column":22},"end":{"line":156,"column":null}}]},"6":{"loc":{"start":{"line":158,"column":4},"end":{"line":158,"column":null}},"type":"default-arg","locations":[{"start":{"line":158,"column":19},"end":{"line":158,"column":null}}]},"7":{"loc":{"start":{"line":159,"column":4},"end":{"line":159,"column":null}},"type":"default-arg","locations":[{"start":{"line":159,"column":22},"end":{"line":159,"column":null}}]},"8":{"loc":{"start":{"line":166,"column":4},"end":{"line":166,"column":null}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":166,"column":null}}]},"9":{"loc":{"start":{"line":167,"column":4},"end":{"line":170,"column":null}},"type":"if","locations":[{"start":{"line":167,"column":4},"end":{"line":170,"column":null}},{"start":{"line":169,"column":11},"end":{"line":170,"column":null}}]},"10":{"loc":{"start":{"line":176,"column":4},"end":{"line":176,"column":null}},"type":"if","locations":[{"start":{"line":176,"column":4},"end":{"line":176,"column":null}}]},"11":{"loc":{"start":{"line":181,"column":4},"end":{"line":181,"column":null}},"type":"if","locations":[{"start":{"line":181,"column":4},"end":{"line":181,"column":null}}]},"12":{"loc":{"start":{"line":181,"column":43},"end":{"line":181,"column":null}},"type":"cond-expr","locations":[{"start":{"line":181,"column":50},"end":{"line":181,"column":60}},{"start":{"line":181,"column":60},"end":{"line":181,"column":null}}]},"13":{"loc":{"start":{"line":186,"column":4},"end":{"line":186,"column":null}},"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":null}}]},"14":{"loc":{"start":{"line":191,"column":4},"end":{"line":191,"column":null}},"type":"if","locations":[{"start":{"line":191,"column":4},"end":{"line":191,"column":null}}]},"15":{"loc":{"start":{"line":192,"column":4},"end":{"line":192,"column":null}},"type":"if","locations":[{"start":{"line":192,"column":4},"end":{"line":192,"column":null}}]},"16":{"loc":{"start":{"line":197,"column":4},"end":{"line":197,"column":null}},"type":"if","locations":[{"start":{"line":197,"column":4},"end":{"line":197,"column":null}}]},"17":{"loc":{"start":{"line":198,"column":4},"end":{"line":198,"column":null}},"type":"if","locations":[{"start":{"line":198,"column":4},"end":{"line":198,"column":null}}]},"18":{"loc":{"start":{"line":203,"column":4},"end":{"line":203,"column":null}},"type":"if","locations":[{"start":{"line":203,"column":4},"end":{"line":203,"column":null}}]},"19":{"loc":{"start":{"line":204,"column":4},"end":{"line":204,"column":null}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":null}}]},"20":{"loc":{"start":{"line":209,"column":4},"end":{"line":209,"column":null}},"type":"if","locations":[{"start":{"line":209,"column":4},"end":{"line":209,"column":null}}]},"21":{"loc":{"start":{"line":214,"column":4},"end":{"line":214,"column":null}},"type":"if","locations":[{"start":{"line":214,"column":4},"end":{"line":214,"column":null}}]},"22":{"loc":{"start":{"line":215,"column":4},"end":{"line":215,"column":null}},"type":"if","locations":[{"start":{"line":215,"column":4},"end":{"line":215,"column":null}}]},"23":{"loc":{"start":{"line":220,"column":4},"end":{"line":220,"column":null}},"type":"if","locations":[{"start":{"line":220,"column":4},"end":{"line":220,"column":null}}]},"24":{"loc":{"start":{"line":225,"column":4},"end":{"line":225,"column":null}},"type":"if","locations":[{"start":{"line":225,"column":4},"end":{"line":225,"column":null}}]}},"s":{"0":16,"1":4,"2":8,"3":8,"4":8,"5":7,"6":0,"7":7,"8":5,"9":2,"10":8,"11":7,"12":7,"13":8,"14":7,"15":7,"16":8,"17":7,"18":7,"19":8,"20":7,"21":6,"22":1,"23":1,"24":8,"25":7,"26":6,"27":1,"28":1,"29":8,"30":7,"31":6,"32":1,"33":1,"34":8,"35":8,"36":8,"37":8,"38":8,"39":3,"40":5,"41":5,"42":8,"43":7,"44":7,"45":8,"46":7,"47":7,"48":8},"f":{"0":8,"1":8,"2":7,"3":7,"4":7,"5":7,"6":7,"7":7,"8":7,"9":8,"10":8,"11":7,"12":7},"b":{"0":[3],"1":[8],"2":[8],"3":[1],"4":[1],"5":[8],"6":[8],"7":[8],"8":[0],"9":[5,2],"10":[7],"11":[7],"12":[5,2],"13":[7],"14":[6],"15":[1],"16":[6],"17":[1],"18":[6],"19":[1],"20":[8],"21":[3],"22":[5],"23":[7],"24":[7]}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/components/SearchBox.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/components/SearchBox.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":3,"column":62},"end":{"line":3,"column":null}},"2":{"start":{"line":136,"column":25},"end":{"line":265,"column":null}},"3":{"start":{"line":150,"column":8},"end":{"line":150,"column":null}},"4":{"start":{"line":151,"column":16},"end":{"line":151,"column":null}},"5":{"start":{"line":153,"column":4},"end":{"line":156,"column":null}},"6":{"start":{"line":153,"column":40},"end":{"line":156,"column":null}},"7":{"start":{"line":155,"column":8},"end":{"line":155,"column":null}},"8":{"start":{"line":155,"column":25},"end":{"line":155,"column":null}},"9":{"start":{"line":156,"column":8},"end":{"line":156,"column":null}},"10":{"start":{"line":161,"column":4},"end":{"line":163,"column":null}},"11":{"start":{"line":162,"column":6},"end":{"line":162,"column":null}},"12":{"start":{"line":162,"column":23},"end":{"line":162,"column":null}},"13":{"start":{"line":166,"column":4},"end":{"line":168,"column":null}},"14":{"start":{"line":167,"column":6},"end":{"line":167,"column":null}},"15":{"start":{"line":167,"column":23},"end":{"line":167,"column":null}},"16":{"start":{"line":171,"column":4},"end":{"line":173,"column":null}},"17":{"start":{"line":172,"column":6},"end":{"line":172,"column":null}},"18":{"start":{"line":172,"column":23},"end":{"line":172,"column":null}},"19":{"start":{"line":176,"column":4},"end":{"line":178,"column":null}},"20":{"start":{"line":177,"column":6},"end":{"line":177,"column":null}},"21":{"start":{"line":177,"column":23},"end":{"line":177,"column":null}},"22":{"start":{"line":181,"column":4},"end":{"line":183,"column":null}},"23":{"start":{"line":182,"column":6},"end":{"line":182,"column":null}},"24":{"start":{"line":182,"column":23},"end":{"line":182,"column":null}},"25":{"start":{"line":186,"column":4},"end":{"line":194,"column":null}},"26":{"start":{"line":187,"column":19},"end":{"line":187,"column":null}},"27":{"start":{"line":188,"column":6},"end":{"line":188,"column":null}},"28":{"start":{"line":188,"column":17},"end":{"line":188,"column":null}},"29":{"start":{"line":190,"column":6},"end":{"line":190,"column":null}},"30":{"start":{"line":191,"column":6},"end":{"line":192,"column":null}},"31":{"start":{"line":192,"column":8},"end":{"line":192,"column":null}},"32":{"start":{"line":197,"column":4},"end":{"line":210,"column":null}},"33":{"start":{"line":198,"column":19},"end":{"line":198,"column":null}},"34":{"start":{"line":199,"column":6},"end":{"line":199,"column":null}},"35":{"start":{"line":199,"column":17},"end":{"line":199,"column":null}},"36":{"start":{"line":201,"column":6},"end":{"line":201,"column":null}},"37":{"start":{"line":201,"column":22},"end":{"line":201,"column":null}},"38":{"start":{"line":203,"column":17},"end":{"line":204,"column":null}},"39":{"start":{"line":204,"column":8},"end":{"line":204,"column":null}},"40":{"start":{"line":206,"column":6},"end":{"line":206,"column":null}},"41":{"start":{"line":207,"column":6},"end":{"line":208,"column":null}},"42":{"start":{"line":208,"column":8},"end":{"line":208,"column":null}},"43":{"start":{"line":213,"column":4},"end":{"line":225,"column":null}},"44":{"start":{"line":214,"column":19},"end":{"line":214,"column":null}},"45":{"start":{"line":215,"column":6},"end":{"line":215,"column":null}},"46":{"start":{"line":215,"column":17},"end":{"line":215,"column":null}},"47":{"start":{"line":217,"column":6},"end":{"line":217,"column":null}},"48":{"start":{"line":217,"column":27},"end":{"line":217,"column":null}},"49":{"start":{"line":219,"column":17},"end":{"line":219,"column":null}},"50":{"start":{"line":219,"column":48},"end":{"line":219,"column":null}},"51":{"start":{"line":221,"column":6},"end":{"line":221,"column":null}},"52":{"start":{"line":222,"column":6},"end":{"line":223,"column":null}},"53":{"start":{"line":223,"column":8},"end":{"line":223,"column":null}},"54":{"start":{"line":228,"column":4},"end":{"line":240,"column":null}},"55":{"start":{"line":229,"column":19},"end":{"line":229,"column":null}},"56":{"start":{"line":230,"column":6},"end":{"line":230,"column":null}},"57":{"start":{"line":230,"column":17},"end":{"line":230,"column":null}},"58":{"start":{"line":232,"column":6},"end":{"line":232,"column":null}},"59":{"start":{"line":232,"column":23},"end":{"line":232,"column":null}},"60":{"start":{"line":234,"column":17},"end":{"line":234,"column":null}},"61":{"start":{"line":234,"column":59},"end":{"line":234,"column":null}},"62":{"start":{"line":236,"column":6},"end":{"line":236,"column":null}},"63":{"start":{"line":237,"column":6},"end":{"line":238,"column":null}},"64":{"start":{"line":238,"column":8},"end":{"line":238,"column":null}},"65":{"start":{"line":243,"column":4},"end":{"line":258,"column":null}},"66":{"start":{"line":244,"column":19},"end":{"line":244,"column":null}},"67":{"start":{"line":245,"column":6},"end":{"line":245,"column":null}},"68":{"start":{"line":245,"column":17},"end":{"line":245,"column":null}},"69":{"start":{"line":247,"column":6},"end":{"line":247,"column":null}},"70":{"start":{"line":247,"column":21},"end":{"line":247,"column":null}},"71":{"start":{"line":249,"column":17},"end":{"line":251,"column":null}},"72":{"start":{"line":250,"column":8},"end":{"line":250,"column":null}},"73":{"start":{"line":250,"column":42},"end":{"line":250,"column":null}},"74":{"start":{"line":251,"column":8},"end":{"line":251,"column":null}},"75":{"start":{"line":254,"column":6},"end":{"line":254,"column":null}},"76":{"start":{"line":255,"column":6},"end":{"line":256,"column":null}},"77":{"start":{"line":256,"column":8},"end":{"line":256,"column":null}},"78":{"start":{"line":261,"column":4},"end":{"line":263,"column":null}},"79":{"start":{"line":262,"column":6},"end":{"line":262,"column":null}},"80":{"start":{"line":262,"column":23},"end":{"line":262,"column":null}},"81":{"start":{"line":265,"column":4},"end":{"line":265,"column":null}}},"fnMap":{"0":{"name":"(anonymous_8)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"(anonymous_9)","decl":{"start":{"line":137,"column":2},"end":{"line":137,"column":3}},"loc":{"start":{"line":137,"column":58},"end":{"line":265,"column":null}}},"2":{"name":"(anonymous_10)","decl":{"start":{"line":153,"column":33},"end":{"line":153,"column":40}},"loc":{"start":{"line":153,"column":40},"end":{"line":156,"column":null}}},"3":{"name":"(anonymous_11)","decl":{"start":{"line":154,"column":13},"end":{"line":154,"column":19}},"loc":{"start":{"line":154,"column":19},"end":{"line":156,"column":null}}},"4":{"name":"(anonymous_12)","decl":{"start":{"line":161,"column":14},"end":{"line":161,"column":20}},"loc":{"start":{"line":161,"column":20},"end":{"line":162,"column":null}}},"5":{"name":"(anonymous_13)","decl":{"start":{"line":166,"column":14},"end":{"line":166,"column":20}},"loc":{"start":{"line":166,"column":20},"end":{"line":167,"column":null}}},"6":{"name":"(anonymous_14)","decl":{"start":{"line":171,"column":14},"end":{"line":171,"column":20}},"loc":{"start":{"line":171,"column":20},"end":{"line":172,"column":null}}},"7":{"name":"(anonymous_15)","decl":{"start":{"line":176,"column":14},"end":{"line":176,"column":20}},"loc":{"start":{"line":176,"column":20},"end":{"line":177,"column":null}}},"8":{"name":"(anonymous_16)","decl":{"start":{"line":181,"column":14},"end":{"line":181,"column":20}},"loc":{"start":{"line":181,"column":20},"end":{"line":182,"column":null}}},"9":{"name":"(anonymous_17)","decl":{"start":{"line":186,"column":14},"end":{"line":186,"column":20}},"loc":{"start":{"line":186,"column":20},"end":{"line":192,"column":null}}},"10":{"name":"(anonymous_18)","decl":{"start":{"line":191,"column":13},"end":{"line":191,"column":19}},"loc":{"start":{"line":191,"column":19},"end":{"line":192,"column":null}}},"11":{"name":"(anonymous_19)","decl":{"start":{"line":197,"column":14},"end":{"line":197,"column":20}},"loc":{"start":{"line":197,"column":20},"end":{"line":208,"column":null}}},"12":{"name":"(anonymous_20)","decl":{"start":{"line":203,"column":17},"end":{"line":203,"column":18}},"loc":{"start":{"line":204,"column":8},"end":{"line":204,"column":null}}},"13":{"name":"(anonymous_21)","decl":{"start":{"line":207,"column":13},"end":{"line":207,"column":19}},"loc":{"start":{"line":207,"column":19},"end":{"line":208,"column":null}}},"14":{"name":"(anonymous_22)","decl":{"start":{"line":213,"column":14},"end":{"line":213,"column":20}},"loc":{"start":{"line":213,"column":20},"end":{"line":223,"column":null}}},"15":{"name":"(anonymous_23)","decl":{"start":{"line":219,"column":17},"end":{"line":219,"column":18}},"loc":{"start":{"line":219,"column":48},"end":{"line":219,"column":null}}},"16":{"name":"(anonymous_24)","decl":{"start":{"line":222,"column":13},"end":{"line":222,"column":19}},"loc":{"start":{"line":222,"column":19},"end":{"line":223,"column":null}}},"17":{"name":"(anonymous_25)","decl":{"start":{"line":228,"column":14},"end":{"line":228,"column":20}},"loc":{"start":{"line":228,"column":20},"end":{"line":238,"column":null}}},"18":{"name":"(anonymous_26)","decl":{"start":{"line":234,"column":17},"end":{"line":234,"column":18}},"loc":{"start":{"line":234,"column":59},"end":{"line":234,"column":null}}},"19":{"name":"(anonymous_27)","decl":{"start":{"line":237,"column":13},"end":{"line":237,"column":19}},"loc":{"start":{"line":237,"column":19},"end":{"line":238,"column":null}}},"20":{"name":"(anonymous_28)","decl":{"start":{"line":243,"column":14},"end":{"line":243,"column":20}},"loc":{"start":{"line":243,"column":20},"end":{"line":256,"column":null}}},"21":{"name":"(anonymous_29)","decl":{"start":{"line":249,"column":17},"end":{"line":249,"column":18}},"loc":{"start":{"line":249,"column":49},"end":{"line":251,"column":null}}},"22":{"name":"(anonymous_30)","decl":{"start":{"line":255,"column":13},"end":{"line":255,"column":19}},"loc":{"start":{"line":255,"column":19},"end":{"line":256,"column":null}}},"23":{"name":"(anonymous_31)","decl":{"start":{"line":261,"column":14},"end":{"line":261,"column":20}},"loc":{"start":{"line":261,"column":20},"end":{"line":262,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":155,"column":8},"end":{"line":155,"column":null}},"type":"if","locations":[{"start":{"line":155,"column":8},"end":{"line":155,"column":null}}]},"1":{"loc":{"start":{"line":162,"column":6},"end":{"line":162,"column":null}},"type":"if","locations":[{"start":{"line":162,"column":6},"end":{"line":162,"column":null}}]},"2":{"loc":{"start":{"line":167,"column":6},"end":{"line":167,"column":null}},"type":"if","locations":[{"start":{"line":167,"column":6},"end":{"line":167,"column":null}}]},"3":{"loc":{"start":{"line":172,"column":6},"end":{"line":172,"column":null}},"type":"if","locations":[{"start":{"line":172,"column":6},"end":{"line":172,"column":null}}]},"4":{"loc":{"start":{"line":177,"column":6},"end":{"line":177,"column":null}},"type":"if","locations":[{"start":{"line":177,"column":6},"end":{"line":177,"column":null}}]},"5":{"loc":{"start":{"line":182,"column":6},"end":{"line":182,"column":null}},"type":"if","locations":[{"start":{"line":182,"column":6},"end":{"line":182,"column":null}}]},"6":{"loc":{"start":{"line":188,"column":6},"end":{"line":188,"column":null}},"type":"if","locations":[{"start":{"line":188,"column":6},"end":{"line":188,"column":null}}]},"7":{"loc":{"start":{"line":199,"column":6},"end":{"line":199,"column":null}},"type":"if","locations":[{"start":{"line":199,"column":6},"end":{"line":199,"column":null}}]},"8":{"loc":{"start":{"line":201,"column":6},"end":{"line":201,"column":null}},"type":"if","locations":[{"start":{"line":201,"column":6},"end":{"line":201,"column":null}}]},"9":{"loc":{"start":{"line":215,"column":6},"end":{"line":215,"column":null}},"type":"if","locations":[{"start":{"line":215,"column":6},"end":{"line":215,"column":null}}]},"10":{"loc":{"start":{"line":217,"column":6},"end":{"line":217,"column":null}},"type":"if","locations":[{"start":{"line":217,"column":6},"end":{"line":217,"column":null}}]},"11":{"loc":{"start":{"line":230,"column":6},"end":{"line":230,"column":null}},"type":"if","locations":[{"start":{"line":230,"column":6},"end":{"line":230,"column":null}}]},"12":{"loc":{"start":{"line":232,"column":6},"end":{"line":232,"column":null}},"type":"if","locations":[{"start":{"line":232,"column":6},"end":{"line":232,"column":null}}]},"13":{"loc":{"start":{"line":245,"column":6},"end":{"line":245,"column":null}},"type":"if","locations":[{"start":{"line":245,"column":6},"end":{"line":245,"column":null}}]},"14":{"loc":{"start":{"line":247,"column":6},"end":{"line":247,"column":null}},"type":"if","locations":[{"start":{"line":247,"column":6},"end":{"line":247,"column":null}}]},"15":{"loc":{"start":{"line":250,"column":8},"end":{"line":250,"column":null}},"type":"if","locations":[{"start":{"line":250,"column":8},"end":{"line":250,"column":null}}]},"16":{"loc":{"start":{"line":262,"column":6},"end":{"line":262,"column":null}},"type":"if","locations":[{"start":{"line":262,"column":6},"end":{"line":262,"column":null}}]}},"s":{"0":10,"1":4,"2":4,"3":2,"4":2,"5":2,"6":1,"7":2,"8":1,"9":1,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":2,"27":2,"28":0,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"35":0,"36":2,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":2,"44":2,"45":2,"46":0,"47":2,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":2,"55":2,"56":2,"57":0,"58":2,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":2,"66":2,"67":2,"68":0,"69":2,"70":1,"71":1,"72":5,"73":2,"74":3,"75":1,"76":1,"77":1,"78":2,"79":2,"80":2,"81":2},"f":{"0":2,"1":2,"2":1,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":2,"12":1,"13":1,"14":2,"15":1,"16":1,"17":2,"18":1,"19":1,"20":2,"21":5,"22":1,"23":2},"b":{"0":[1],"1":[2],"2":[2],"3":[2],"4":[2],"5":[2],"6":[0],"7":[0],"8":[1],"9":[0],"10":[1],"11":[0],"12":[1],"13":[0],"14":[1],"15":[2],"16":[2]}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/components/SearchBox.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/components/SearchBox.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":3,"column":62},"end":{"line":3,"column":null}},"2":{"start":{"line":136,"column":25},"end":{"line":266,"column":null}},"3":{"start":{"line":150,"column":8},"end":{"line":150,"column":null}},"4":{"start":{"line":151,"column":16},"end":{"line":151,"column":null}},"5":{"start":{"line":153,"column":4},"end":{"line":156,"column":null}},"6":{"start":{"line":153,"column":40},"end":{"line":156,"column":null}},"7":{"start":{"line":155,"column":8},"end":{"line":155,"column":null}},"8":{"start":{"line":155,"column":25},"end":{"line":155,"column":null}},"9":{"start":{"line":156,"column":8},"end":{"line":156,"column":null}},"10":{"start":{"line":161,"column":4},"end":{"line":163,"column":null}},"11":{"start":{"line":162,"column":6},"end":{"line":162,"column":null}},"12":{"start":{"line":162,"column":23},"end":{"line":162,"column":null}},"13":{"start":{"line":166,"column":4},"end":{"line":168,"column":null}},"14":{"start":{"line":167,"column":6},"end":{"line":167,"column":null}},"15":{"start":{"line":167,"column":23},"end":{"line":167,"column":null}},"16":{"start":{"line":171,"column":4},"end":{"line":173,"column":null}},"17":{"start":{"line":172,"column":6},"end":{"line":172,"column":null}},"18":{"start":{"line":172,"column":23},"end":{"line":172,"column":null}},"19":{"start":{"line":176,"column":4},"end":{"line":178,"column":null}},"20":{"start":{"line":177,"column":6},"end":{"line":177,"column":null}},"21":{"start":{"line":177,"column":23},"end":{"line":177,"column":null}},"22":{"start":{"line":181,"column":4},"end":{"line":183,"column":null}},"23":{"start":{"line":182,"column":6},"end":{"line":182,"column":null}},"24":{"start":{"line":182,"column":23},"end":{"line":182,"column":null}},"25":{"start":{"line":186,"column":4},"end":{"line":194,"column":null}},"26":{"start":{"line":187,"column":19},"end":{"line":187,"column":null}},"27":{"start":{"line":188,"column":6},"end":{"line":188,"column":null}},"28":{"start":{"line":188,"column":17},"end":{"line":188,"column":null}},"29":{"start":{"line":190,"column":6},"end":{"line":190,"column":null}},"30":{"start":{"line":191,"column":6},"end":{"line":192,"column":null}},"31":{"start":{"line":192,"column":8},"end":{"line":192,"column":null}},"32":{"start":{"line":197,"column":4},"end":{"line":210,"column":null}},"33":{"start":{"line":198,"column":19},"end":{"line":198,"column":null}},"34":{"start":{"line":199,"column":6},"end":{"line":199,"column":null}},"35":{"start":{"line":199,"column":17},"end":{"line":199,"column":null}},"36":{"start":{"line":201,"column":6},"end":{"line":201,"column":null}},"37":{"start":{"line":201,"column":22},"end":{"line":201,"column":null}},"38":{"start":{"line":203,"column":17},"end":{"line":204,"column":null}},"39":{"start":{"line":204,"column":8},"end":{"line":204,"column":null}},"40":{"start":{"line":206,"column":6},"end":{"line":206,"column":null}},"41":{"start":{"line":207,"column":6},"end":{"line":208,"column":null}},"42":{"start":{"line":208,"column":8},"end":{"line":208,"column":null}},"43":{"start":{"line":213,"column":4},"end":{"line":225,"column":null}},"44":{"start":{"line":214,"column":19},"end":{"line":214,"column":null}},"45":{"start":{"line":215,"column":6},"end":{"line":215,"column":null}},"46":{"start":{"line":215,"column":17},"end":{"line":215,"column":null}},"47":{"start":{"line":217,"column":6},"end":{"line":217,"column":null}},"48":{"start":{"line":217,"column":27},"end":{"line":217,"column":null}},"49":{"start":{"line":219,"column":17},"end":{"line":219,"column":null}},"50":{"start":{"line":219,"column":48},"end":{"line":219,"column":null}},"51":{"start":{"line":221,"column":6},"end":{"line":221,"column":null}},"52":{"start":{"line":222,"column":6},"end":{"line":223,"column":null}},"53":{"start":{"line":223,"column":8},"end":{"line":223,"column":null}},"54":{"start":{"line":228,"column":4},"end":{"line":241,"column":null}},"55":{"start":{"line":229,"column":19},"end":{"line":229,"column":null}},"56":{"start":{"line":230,"column":6},"end":{"line":230,"column":null}},"57":{"start":{"line":230,"column":17},"end":{"line":230,"column":null}},"58":{"start":{"line":232,"column":6},"end":{"line":232,"column":null}},"59":{"start":{"line":232,"column":23},"end":{"line":232,"column":null}},"60":{"start":{"line":234,"column":17},"end":{"line":235,"column":null}},"61":{"start":{"line":235,"column":8},"end":{"line":235,"column":null}},"62":{"start":{"line":237,"column":6},"end":{"line":237,"column":null}},"63":{"start":{"line":238,"column":6},"end":{"line":239,"column":null}},"64":{"start":{"line":239,"column":8},"end":{"line":239,"column":null}},"65":{"start":{"line":244,"column":4},"end":{"line":259,"column":null}},"66":{"start":{"line":245,"column":19},"end":{"line":245,"column":null}},"67":{"start":{"line":246,"column":6},"end":{"line":246,"column":null}},"68":{"start":{"line":246,"column":17},"end":{"line":246,"column":null}},"69":{"start":{"line":248,"column":6},"end":{"line":248,"column":null}},"70":{"start":{"line":248,"column":21},"end":{"line":248,"column":null}},"71":{"start":{"line":250,"column":17},"end":{"line":252,"column":null}},"72":{"start":{"line":251,"column":8},"end":{"line":251,"column":null}},"73":{"start":{"line":251,"column":42},"end":{"line":251,"column":null}},"74":{"start":{"line":252,"column":8},"end":{"line":252,"column":null}},"75":{"start":{"line":255,"column":6},"end":{"line":255,"column":null}},"76":{"start":{"line":256,"column":6},"end":{"line":257,"column":null}},"77":{"start":{"line":257,"column":8},"end":{"line":257,"column":null}},"78":{"start":{"line":262,"column":4},"end":{"line":264,"column":null}},"79":{"start":{"line":263,"column":6},"end":{"line":263,"column":null}},"80":{"start":{"line":263,"column":23},"end":{"line":263,"column":null}},"81":{"start":{"line":266,"column":4},"end":{"line":266,"column":null}}},"fnMap":{"0":{"name":"(anonymous_8)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"(anonymous_9)","decl":{"start":{"line":137,"column":2},"end":{"line":137,"column":3}},"loc":{"start":{"line":137,"column":58},"end":{"line":266,"column":null}}},"2":{"name":"(anonymous_10)","decl":{"start":{"line":153,"column":33},"end":{"line":153,"column":40}},"loc":{"start":{"line":153,"column":40},"end":{"line":156,"column":null}}},"3":{"name":"(anonymous_11)","decl":{"start":{"line":154,"column":13},"end":{"line":154,"column":19}},"loc":{"start":{"line":154,"column":19},"end":{"line":156,"column":null}}},"4":{"name":"(anonymous_12)","decl":{"start":{"line":161,"column":14},"end":{"line":161,"column":20}},"loc":{"start":{"line":161,"column":20},"end":{"line":162,"column":null}}},"5":{"name":"(anonymous_13)","decl":{"start":{"line":166,"column":14},"end":{"line":166,"column":20}},"loc":{"start":{"line":166,"column":20},"end":{"line":167,"column":null}}},"6":{"name":"(anonymous_14)","decl":{"start":{"line":171,"column":14},"end":{"line":171,"column":20}},"loc":{"start":{"line":171,"column":20},"end":{"line":172,"column":null}}},"7":{"name":"(anonymous_15)","decl":{"start":{"line":176,"column":14},"end":{"line":176,"column":20}},"loc":{"start":{"line":176,"column":20},"end":{"line":177,"column":null}}},"8":{"name":"(anonymous_16)","decl":{"start":{"line":181,"column":14},"end":{"line":181,"column":20}},"loc":{"start":{"line":181,"column":20},"end":{"line":182,"column":null}}},"9":{"name":"(anonymous_17)","decl":{"start":{"line":186,"column":14},"end":{"line":186,"column":20}},"loc":{"start":{"line":186,"column":20},"end":{"line":192,"column":null}}},"10":{"name":"(anonymous_18)","decl":{"start":{"line":191,"column":13},"end":{"line":191,"column":19}},"loc":{"start":{"line":191,"column":19},"end":{"line":192,"column":null}}},"11":{"name":"(anonymous_19)","decl":{"start":{"line":197,"column":14},"end":{"line":197,"column":20}},"loc":{"start":{"line":197,"column":20},"end":{"line":208,"column":null}}},"12":{"name":"(anonymous_20)","decl":{"start":{"line":203,"column":17},"end":{"line":203,"column":18}},"loc":{"start":{"line":204,"column":8},"end":{"line":204,"column":null}}},"13":{"name":"(anonymous_21)","decl":{"start":{"line":207,"column":13},"end":{"line":207,"column":19}},"loc":{"start":{"line":207,"column":19},"end":{"line":208,"column":null}}},"14":{"name":"(anonymous_22)","decl":{"start":{"line":213,"column":14},"end":{"line":213,"column":20}},"loc":{"start":{"line":213,"column":20},"end":{"line":223,"column":null}}},"15":{"name":"(anonymous_23)","decl":{"start":{"line":219,"column":17},"end":{"line":219,"column":18}},"loc":{"start":{"line":219,"column":48},"end":{"line":219,"column":null}}},"16":{"name":"(anonymous_24)","decl":{"start":{"line":222,"column":13},"end":{"line":222,"column":19}},"loc":{"start":{"line":222,"column":19},"end":{"line":223,"column":null}}},"17":{"name":"(anonymous_25)","decl":{"start":{"line":228,"column":14},"end":{"line":228,"column":20}},"loc":{"start":{"line":228,"column":20},"end":{"line":239,"column":null}}},"18":{"name":"(anonymous_26)","decl":{"start":{"line":234,"column":17},"end":{"line":234,"column":18}},"loc":{"start":{"line":235,"column":8},"end":{"line":235,"column":null}}},"19":{"name":"(anonymous_27)","decl":{"start":{"line":238,"column":13},"end":{"line":238,"column":19}},"loc":{"start":{"line":238,"column":19},"end":{"line":239,"column":null}}},"20":{"name":"(anonymous_28)","decl":{"start":{"line":244,"column":14},"end":{"line":244,"column":20}},"loc":{"start":{"line":244,"column":20},"end":{"line":257,"column":null}}},"21":{"name":"(anonymous_29)","decl":{"start":{"line":250,"column":17},"end":{"line":250,"column":18}},"loc":{"start":{"line":250,"column":49},"end":{"line":252,"column":null}}},"22":{"name":"(anonymous_30)","decl":{"start":{"line":256,"column":13},"end":{"line":256,"column":19}},"loc":{"start":{"line":256,"column":19},"end":{"line":257,"column":null}}},"23":{"name":"(anonymous_31)","decl":{"start":{"line":262,"column":14},"end":{"line":262,"column":20}},"loc":{"start":{"line":262,"column":20},"end":{"line":263,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":155,"column":8},"end":{"line":155,"column":null}},"type":"if","locations":[{"start":{"line":155,"column":8},"end":{"line":155,"column":null}}]},"1":{"loc":{"start":{"line":162,"column":6},"end":{"line":162,"column":null}},"type":"if","locations":[{"start":{"line":162,"column":6},"end":{"line":162,"column":null}}]},"2":{"loc":{"start":{"line":167,"column":6},"end":{"line":167,"column":null}},"type":"if","locations":[{"start":{"line":167,"column":6},"end":{"line":167,"column":null}}]},"3":{"loc":{"start":{"line":172,"column":6},"end":{"line":172,"column":null}},"type":"if","locations":[{"start":{"line":172,"column":6},"end":{"line":172,"column":null}}]},"4":{"loc":{"start":{"line":177,"column":6},"end":{"line":177,"column":null}},"type":"if","locations":[{"start":{"line":177,"column":6},"end":{"line":177,"column":null}}]},"5":{"loc":{"start":{"line":182,"column":6},"end":{"line":182,"column":null}},"type":"if","locations":[{"start":{"line":182,"column":6},"end":{"line":182,"column":null}}]},"6":{"loc":{"start":{"line":188,"column":6},"end":{"line":188,"column":null}},"type":"if","locations":[{"start":{"line":188,"column":6},"end":{"line":188,"column":null}}]},"7":{"loc":{"start":{"line":199,"column":6},"end":{"line":199,"column":null}},"type":"if","locations":[{"start":{"line":199,"column":6},"end":{"line":199,"column":null}}]},"8":{"loc":{"start":{"line":201,"column":6},"end":{"line":201,"column":null}},"type":"if","locations":[{"start":{"line":201,"column":6},"end":{"line":201,"column":null}}]},"9":{"loc":{"start":{"line":215,"column":6},"end":{"line":215,"column":null}},"type":"if","locations":[{"start":{"line":215,"column":6},"end":{"line":215,"column":null}}]},"10":{"loc":{"start":{"line":217,"column":6},"end":{"line":217,"column":null}},"type":"if","locations":[{"start":{"line":217,"column":6},"end":{"line":217,"column":null}}]},"11":{"loc":{"start":{"line":230,"column":6},"end":{"line":230,"column":null}},"type":"if","locations":[{"start":{"line":230,"column":6},"end":{"line":230,"column":null}}]},"12":{"loc":{"start":{"line":232,"column":6},"end":{"line":232,"column":null}},"type":"if","locations":[{"start":{"line":232,"column":6},"end":{"line":232,"column":null}}]},"13":{"loc":{"start":{"line":246,"column":6},"end":{"line":246,"column":null}},"type":"if","locations":[{"start":{"line":246,"column":6},"end":{"line":246,"column":null}}]},"14":{"loc":{"start":{"line":248,"column":6},"end":{"line":248,"column":null}},"type":"if","locations":[{"start":{"line":248,"column":6},"end":{"line":248,"column":null}}]},"15":{"loc":{"start":{"line":251,"column":8},"end":{"line":251,"column":null}},"type":"if","locations":[{"start":{"line":251,"column":8},"end":{"line":251,"column":null}}]},"16":{"loc":{"start":{"line":263,"column":6},"end":{"line":263,"column":null}},"type":"if","locations":[{"start":{"line":263,"column":6},"end":{"line":263,"column":null}}]}},"s":{"0":10,"1":4,"2":4,"3":2,"4":2,"5":2,"6":1,"7":2,"8":1,"9":1,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":2,"27":2,"28":0,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"35":0,"36":2,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":2,"44":2,"45":2,"46":0,"47":2,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":2,"55":2,"56":2,"57":0,"58":2,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":2,"66":2,"67":2,"68":0,"69":2,"70":1,"71":1,"72":5,"73":2,"74":3,"75":1,"76":1,"77":1,"78":2,"79":2,"80":2,"81":2},"f":{"0":2,"1":2,"2":1,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":2,"12":1,"13":1,"14":2,"15":1,"16":1,"17":2,"18":1,"19":1,"20":2,"21":5,"22":1,"23":2},"b":{"0":[1],"1":[2],"2":[2],"3":[2],"4":[2],"5":[2],"6":[0],"7":[0],"8":[1],"9":[0],"10":[1],"11":[0],"12":[1],"13":[0],"14":[1],"15":[2],"16":[2]}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useAddressAutofillCore.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useAddressAutofillCore.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":1,"column":35},"end":{"line":1,"column":null}},"2":{"start":{"line":5,"column":7},"end":{"line":5,"column":null}},"3":{"start":{"line":7,"column":17},"end":{"line":7,"column":null}},"4":{"start":{"line":19,"column":19},"end":{"line":21,"column":null}},"5":{"start":{"line":20,"column":4},"end":{"line":20,"column":null}},"6":{"start":{"line":23,"column":2},"end":{"line":30,"column":null}},"7":{"start":{"line":24,"column":44},"end":{"line":24,"column":null}},"8":{"start":{"line":25,"column":4},"end":{"line":25,"column":null}},"9":{"start":{"line":26,"column":4},"end":{"line":28,"column":null}},"10":{"start":{"line":32,"column":2},"end":{"line":32,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}},"1":{"name":"useAddressAutofillCore","decl":{"start":{"line":16,"column":7},"end":{"line":16,"column":null}},"loc":{"start":{"line":18,"column":23},"end":{"line":32,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":19,"column":27},"end":{"line":19,"column":33}},"loc":{"start":{"line":19,"column":33},"end":{"line":20,"column":null}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":23,"column":12},"end":{"line":23,"column":18}},"loc":{"start":{"line":23,"column":18},"end":{"line":28,"column":null}}}},"branchMap":{},"s":{"0":15,"1":5,"2":5,"3":5,"4":5,"5":2,"6":5,"7":5,"8":5,"9":5,"10":5},"f":{"0":5,"1":5,"2":2,"3":5},"b":{}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useConfirmAddress.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useConfirmAddress.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},"1":{"start":{"line":1,"column":32},"end":{"line":1,"column":null}},"2":{"start":{"line":7,"column":7},"end":{"line":7,"column":null}},"3":{"start":{"line":25,"column":18},"end":{"line":25,"column":null}},"4":{"start":{"line":26,"column":2},"end":{"line":31,"column":null}},"5":{"start":{"line":27,"column":4},"end":{"line":29,"column":null}},"6":{"start":{"line":29,"column":25},"end":{"line":29,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}}},"1":{"name":"useConfirmAddress","decl":{"start":{"line":22,"column":7},"end":{"line":22,"column":null}},"loc":{"start":{"line":24,"column":27},"end":{"line":31,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":26,"column":17},"end":{"line":26,"column":23}},"loc":{"start":{"line":26,"column":23},"end":{"line":29,"column":null}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":29,"column":19},"end":{"line":29,"column":25}},"loc":{"start":{"line":29,"column":25},"end":{"line":29,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":null}},"type":"default-arg","locations":[{"start":{"line":23,"column":38},"end":{"line":23,"column":null}}]}},"s":{"0":12,"1":5,"2":5,"3":2,"4":2,"5":2,"6":2},"f":{"0":2,"1":2,"2":2,"3":2},"b":{"0":[1]}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useEvented.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useEvented.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},"1":{"start":{"line":1,"column":34},"end":{"line":1,"column":null}},"2":{"start":{"line":14,"column":16},"end":{"line":14,"column":null}},"3":{"start":{"line":15,"column":2},"end":{"line":16,"column":null}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":null}},"5":{"start":{"line":19,"column":2},"end":{"line":28,"column":null}},"6":{"start":{"line":20,"column":4},"end":{"line":20,"column":null}},"7":{"start":{"line":20,"column":18},"end":{"line":20,"column":null}},"8":{"start":{"line":22,"column":15},"end":{"line":22,"column":null}},"9":{"start":{"line":22,"column":34},"end":{"line":22,"column":null}},"10":{"start":{"line":23,"column":4},"end":{"line":23,"column":null}},"11":{"start":{"line":25,"column":4},"end":{"line":26,"column":null}},"12":{"start":{"line":26,"column":6},"end":{"line":26,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}}},"1":{"name":"useEvented","decl":{"start":{"line":9,"column":7},"end":{"line":9,"column":null}},"loc":{"start":{"line":13,"column":8},"end":{"line":28,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":15,"column":12},"end":{"line":15,"column":18}},"loc":{"start":{"line":15,"column":18},"end":{"line":16,"column":null}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":19,"column":12},"end":{"line":19,"column":18}},"loc":{"start":{"line":19,"column":18},"end":{"line":26,"column":null}}},"4":{"name":"(anonymous_10)","decl":{"start":{"line":22,"column":15},"end":{"line":22,"column":16}},"loc":{"start":{"line":22,"column":34},"end":{"line":22,"column":null}}},"5":{"name":"(anonymous_11)","decl":{"start":{"line":25,"column":11},"end":{"line":25,"column":17}},"loc":{"start":{"line":25,"column":17},"end":{"line":26,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":4},"end":{"line":20,"column":null}},"type":"if","locations":[{"start":{"line":20,"column":4},"end":{"line":20,"column":null}}]}},"s":{"0":13,"1":5,"2":3,"3":3,"4":3,"5":3,"6":2,"7":1,"8":1,"9":2,"10":1,"11":1,"12":1},"f":{"0":3,"1":3,"2":3,"3":2,"4":2,"5":1},"b":{"0":[1]}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useMapboxAutofill.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useMapboxAutofill.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":1,"column":35},"end":{"line":1,"column":null}},"2":{"start":{"line":2,"column":48},"end":{"line":2,"column":null}},"3":{"start":{"line":4,"column":17},"end":{"line":4,"column":null}},"4":{"start":{"line":16,"column":19},"end":{"line":18,"column":null}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"6":{"start":{"line":20,"column":2},"end":{"line":27,"column":null}},"7":{"start":{"line":21,"column":44},"end":{"line":21,"column":null}},"8":{"start":{"line":22,"column":4},"end":{"line":22,"column":null}},"9":{"start":{"line":23,"column":4},"end":{"line":25,"column":null}},"10":{"start":{"line":29,"column":2},"end":{"line":29,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}},"1":{"name":"useMapboxAutofill","decl":{"start":{"line":13,"column":7},"end":{"line":13,"column":null}},"loc":{"start":{"line":15,"column":18},"end":{"line":29,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":33}},"loc":{"start":{"line":16,"column":33},"end":{"line":17,"column":null}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":20,"column":12},"end":{"line":20,"column":18}},"loc":{"start":{"line":20,"column":18},"end":{"line":25,"column":null}}}},"branchMap":{},"s":{"0":15,"1":5,"2":5,"3":5,"4":5,"5":2,"6":5,"7":5,"8":5,"9":5,"10":5},"f":{"0":5,"1":5,"2":2,"3":5},"b":{}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useMapboxSearch.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useMapboxSearch.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":1,"column":35},"end":{"line":1,"column":null}},"2":{"start":{"line":2,"column":38},"end":{"line":2,"column":null}},"3":{"start":{"line":4,"column":17},"end":{"line":4,"column":null}},"4":{"start":{"line":16,"column":17},"end":{"line":18,"column":null}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"6":{"start":{"line":20,"column":2},"end":{"line":27,"column":null}},"7":{"start":{"line":21,"column":44},"end":{"line":21,"column":null}},"8":{"start":{"line":22,"column":4},"end":{"line":22,"column":null}},"9":{"start":{"line":23,"column":4},"end":{"line":25,"column":null}},"10":{"start":{"line":29,"column":2},"end":{"line":29,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}},"1":{"name":"useMapboxSearch","decl":{"start":{"line":13,"column":7},"end":{"line":13,"column":null}},"loc":{"start":{"line":15,"column":16},"end":{"line":29,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":16,"column":25},"end":{"line":16,"column":31}},"loc":{"start":{"line":16,"column":31},"end":{"line":17,"column":null}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":20,"column":12},"end":{"line":20,"column":18}},"loc":{"start":{"line":20,"column":18},"end":{"line":25,"column":null}}}},"branchMap":{},"s":{"0":15,"1":5,"2":5,"3":5,"4":5,"5":2,"6":5,"7":5,"8":5,"9":5,"10":5},"f":{"0":5,"1":5,"2":2,"3":5},"b":{}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useSearchSession.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useSearchSession.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":13,"column":7},"end":{"line":13,"column":null}},"2":{"start":{"line":14,"column":24},"end":{"line":14,"column":null}},"3":{"start":{"line":43,"column":24},"end":{"line":46,"column":null}},"4":{"start":{"line":45,"column":4},"end":{"line":45,"column":null}},"5":{"start":{"line":48,"column":2},"end":{"line":51,"column":null}},"6":{"start":{"line":49,"column":4},"end":{"line":49,"column":null}},"7":{"start":{"line":51,"column":4},"end":{"line":51,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"useSearchSession","decl":{"start":{"line":40,"column":0},"end":{"line":40,"column":null}},"loc":{"start":{"line":42,"column":49},"end":{"line":51,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":43,"column":32},"end":{"line":43,"column":38}},"loc":{"start":{"line":43,"column":38},"end":{"line":45,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":48,"column":2},"end":{"line":51,"column":null}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":51,"column":null}},{"start":{"line":50,"column":9},"end":{"line":51,"column":null}}]}},"s":{"0":12,"1":5,"2":5,"3":2,"4":2,"5":2,"6":1,"7":1},"f":{"0":2,"1":2,"2":2},"b":{"0":[1,1]}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useSearchBoxCore.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useSearchBoxCore.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":1,"column":35},"end":{"line":1,"column":null}},"2":{"start":{"line":2,"column":48},"end":{"line":2,"column":null}},"3":{"start":{"line":4,"column":17},"end":{"line":4,"column":null}},"4":{"start":{"line":16,"column":17},"end":{"line":18,"column":null}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":null}},"6":{"start":{"line":20,"column":2},"end":{"line":27,"column":null}},"7":{"start":{"line":21,"column":44},"end":{"line":21,"column":null}},"8":{"start":{"line":22,"column":4},"end":{"line":22,"column":null}},"9":{"start":{"line":23,"column":4},"end":{"line":25,"column":null}},"10":{"start":{"line":29,"column":2},"end":{"line":29,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}}},"1":{"name":"useSearchBoxCore","decl":{"start":{"line":13,"column":7},"end":{"line":13,"column":null}},"loc":{"start":{"line":15,"column":17},"end":{"line":29,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":16,"column":25},"end":{"line":16,"column":31}},"loc":{"start":{"line":16,"column":31},"end":{"line":17,"column":null}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":20,"column":12},"end":{"line":20,"column":18}},"loc":{"start":{"line":20,"column":18},"end":{"line":25,"column":null}}}},"branchMap":{},"s":{"0":15,"1":5,"2":5,"3":5,"4":5,"5":2,"6":5,"7":5,"8":5,"9":5,"10":5},"f":{"0":5,"1":5,"2":2,"3":5},"b":{}}
,"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useSearchSession.tsx": {"path":"/Users/markpothier/Documents/mapbox-code/search-js/packages/react/src/hooks/useSearchSession.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":13,"column":7},"end":{"line":13,"column":null}},"2":{"start":{"line":14,"column":24},"end":{"line":14,"column":null}},"3":{"start":{"line":45,"column":24},"end":{"line":48,"column":null}},"4":{"start":{"line":47,"column":4},"end":{"line":47,"column":null}},"5":{"start":{"line":50,"column":2},"end":{"line":53,"column":null}},"6":{"start":{"line":51,"column":4},"end":{"line":51,"column":null}},"7":{"start":{"line":53,"column":4},"end":{"line":53,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}}},"1":{"name":"useSearchSession","decl":{"start":{"line":42,"column":0},"end":{"line":42,"column":null}},"loc":{"start":{"line":44,"column":56},"end":{"line":53,"column":null}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":45,"column":32},"end":{"line":45,"column":38}},"loc":{"start":{"line":45,"column":38},"end":{"line":47,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":50,"column":2},"end":{"line":53,"column":null}},"type":"if","locations":[{"start":{"line":50,"column":2},"end":{"line":53,"column":null}},{"start":{"line":52,"column":9},"end":{"line":53,"column":null}}]}},"s":{"0":12,"1":5,"2":5,"3":2,"4":2,"5":2,"6":1,"7":1},"f":{"0":2,"1":2,"2":2},"b":{"0":[1,1]}}
}
import React from 'react';
import { AutofillOptions, AutofillSuggestionResponse, AutofillRetrieveResponse } from '@mapbox/search-js-core';
import { AddressAutofillOptions, AddressAutofillSuggestionResponse, AddressAutofillRetrieveResponse } from '@mapbox/search-js-core';
import { MapboxAddressAutofill, Theme, AddressConfirmOptions, PopoverOptions } from '@mapbox/search-js-web';

@@ -29,3 +29,3 @@ declare global {

/**
* Options to pass to the underlying {@link MapboxAutofill} interface.
* Options to pass to the underlying {@link AddressAutofillCore} interface.
* @example

@@ -39,3 +39,3 @@ * ```typescript

*/
options?: Partial<AutofillOptions>;
options?: Partial<AddressAutofillOptions>;
/**

@@ -102,7 +102,7 @@ * The {@link Theme} to use for styling the autofill and confirmation dialog

* Fired when the user is typing in the input and provides a list of suggestions.
* The underlying response from {@link MapboxAutofill} is passed.
* The underlying response from {@link AddressAutofillCore} is passed.
*/
onSuggest?: (res: AutofillSuggestionResponse) => void;
onSuggest?: (res: AddressAutofillSuggestionResponse) => void;
/**
* Fired when {@link MapboxAutofill} has errored providing a list of suggestions.
* Fired when {@link AddressAutofillCore} has errored providing a list of suggestions.
* The underlying error is passed.

@@ -113,5 +113,5 @@ */

* Fired when the user has selected a suggestion, before the form is autofilled.
* The underlying response from {@link MapboxAutofill} is passed.
* The underlying response from {@link AddressAutofillCore} is passed.
*/
onRetrieve?: (res: AutofillRetrieveResponse) => void;
onRetrieve?: (res: AddressAutofillRetrieveResponse) => void;
/**

@@ -118,0 +118,0 @@ * A callback providing the opportunity to validate and/or manipulate the input text before it triggers a search, for example by using a regular expression.

/// <reference types="mapbox-gl" />
import React from 'react';
import { Options, SuggestionResponse, RetrieveResponse } from '@mapbox/search-js-core';
import { SearchBoxOptions, SearchBoxSuggestionResponse, SearchBoxRetrieveResponse } from '@mapbox/search-js-core';
import { MapboxSearchBox, Theme, PopoverOptions } from '@mapbox/search-js-web';

@@ -30,3 +30,3 @@ declare global {

/**
* Options to pass to the underlying {@link MapboxSearch} interface.
* Options to pass to the underlying {@link SearchBoxCore} interface.
* @example

@@ -40,3 +40,3 @@ * ```typescript

*/
options?: Partial<Options>;
options?: Partial<SearchBoxOptions>;
/**

@@ -80,7 +80,7 @@ * The {@link Theme} to use for styling the search box.

* Fired when the user is typing in the input and provides a list of suggestions.
* The underlying response from {@link MapboxSearch} is passed.
* The underlying response from {@link SearchBoxCore} is passed.
*/
onSuggest?: (res: SuggestionResponse) => void;
onSuggest?: (res: SearchBoxSuggestionResponse) => void;
/**
* Fired when {@link MapboxSearch} has errored providing a list of suggestions.
* Fired when {@link SearchBoxCore} has errored providing a list of suggestions.
* The underlying error is passed.

@@ -91,5 +91,5 @@ */

* Fired when the user has selected a suggestion.
* The underlying response from {@link MapboxSearch} is passed.
* The underlying response from {@link SearchBoxCore} is passed.
*/
onRetrieve?: (res: RetrieveResponse) => void;
onRetrieve?: (res: SearchBoxRetrieveResponse) => void;
/**

@@ -103,3 +103,3 @@ * A callback providing the opportunity to validate and/or manipulate the input text before it triggers a search, for example by using a regular expression.

* `<SearchBox>` is a React component that provides an interactive search box,
* powered by the Mapbox Search API.
* powered by the Mapbox Search Box API.
*

@@ -106,0 +106,0 @@ * To use this element, you must have a [Mapbox access token](https://www.mapbox.com/help/create-api-access-token/).

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

import { AutofillOptions, AutofillRetrieveResponse, AutofillSuggestion, AutofillSuggestionResponse, MapboxAutofill, MapboxSearch, Options, RetrieveResponse, SearchSession, Suggestion, SuggestionResponse } from '@mapbox/search-js-core';
export declare type SearchSessionType = SearchSession<Options, Suggestion, SuggestionResponse, RetrieveResponse>;
export declare type AutofillSearchSessionType = SearchSession<AutofillOptions, AutofillSuggestion, AutofillSuggestionResponse, AutofillRetrieveResponse>;
declare function useSearchSession(search: MapboxSearch): SearchSessionType;
declare function useSearchSession(autofill: MapboxAutofill): AutofillSearchSessionType;
import { AddressAutofillOptions, AddressAutofillRetrieveResponse, AddressAutofillSuggestion, AddressAutofillSuggestionResponse, AddressAutofillCore, SearchBoxCore, SearchBoxOptions, SearchBoxRetrieveResponse, SearchBoxSuggestion, SearchBoxSuggestionResponse, SearchSession } from '@mapbox/search-js-core';
export declare type SearchSessionType = SearchSession<SearchBoxOptions, SearchBoxSuggestion, SearchBoxSuggestionResponse, SearchBoxRetrieveResponse>;
export declare type AddressAutofillSearchSessionType = SearchSession<AddressAutofillOptions, AddressAutofillSuggestion, AddressAutofillSuggestionResponse, AddressAutofillRetrieveResponse>;
declare function useSearchSession(search: SearchBoxCore): SearchSessionType;
declare function useSearchSession(autofill: AddressAutofillCore): AddressAutofillSearchSessionType;
export { useSearchSession };

@@ -62,6 +62,7 @@ var __create = Object.create;

config: () => import_search_js_web3.config,
useAddressAutofillCore: () => useAddressAutofillCore,
useConfirmAddress: () => useConfirmAddress,
useEvented: () => useEvented,
useMapboxAutofill: () => useMapboxAutofill,
useMapboxSearch: () => useMapboxSearch,
useMapboxAutofill: () => useAddressAutofillCore,
useSearchBoxCore: () => useSearchBoxCore,
useSearchSession: () => useSearchSession

@@ -401,9 +402,9 @@ });

// src/hooks/useMapboxAutofill.tsx
// src/hooks/useAddressAutofillCore.tsx
var import_react5 = require("react");
var import_search_js_core = require("@mapbox/search-js-core");
var DEFAULTS = import_search_js_core.MapboxAutofill.defaults;
function useMapboxAutofill(options) {
var DEFAULTS = import_search_js_core.AddressAutofillCore.defaults;
function useAddressAutofillCore(options) {
const autofill = (0, import_react5.useMemo)(() => {
return new import_search_js_core.MapboxAutofill();
return new import_search_js_core.AddressAutofillCore();
}, []);

@@ -418,9 +419,9 @@ (0, import_react5.useEffect)(() => {

// src/hooks/useMapboxSearch.tsx
// src/hooks/useSearchBoxCore.tsx
var import_react6 = require("react");
var import_search_js_core2 = require("@mapbox/search-js-core");
var DEFAULTS2 = import_search_js_core2.MapboxSearch.defaults;
function useMapboxSearch(options) {
var DEFAULTS2 = import_search_js_core2.SearchBoxCore.defaults;
function useSearchBoxCore(options) {
const search = (0, import_react6.useMemo)(() => {
return new import_search_js_core2.MapboxSearch();
return new import_search_js_core2.SearchBoxCore();
}, []);

@@ -442,3 +443,3 @@ (0, import_react6.useEffect)(() => {

}, [search]);
if (search instanceof import_search_js_core3.MapboxSearch) {
if (search instanceof import_search_js_core3.SearchBoxCore) {
return searchSession;

@@ -445,0 +446,0 @@ } else {

@@ -363,9 +363,11 @@ var __defProp = Object.defineProperty;

// src/hooks/useMapboxAutofill.tsx
// src/hooks/useAddressAutofillCore.tsx
import { useEffect as useEffect5, useMemo } from "react";
import { MapboxAutofill } from "@mapbox/search-js-core";
var DEFAULTS = MapboxAutofill.defaults;
function useMapboxAutofill(options) {
import {
AddressAutofillCore
} from "@mapbox/search-js-core";
var DEFAULTS = AddressAutofillCore.defaults;
function useAddressAutofillCore(options) {
const autofill = useMemo(() => {
return new MapboxAutofill();
return new AddressAutofillCore();
}, []);

@@ -380,9 +382,9 @@ useEffect5(() => {

// src/hooks/useMapboxSearch.tsx
// src/hooks/useSearchBoxCore.tsx
import { useEffect as useEffect6, useMemo as useMemo2 } from "react";
import { MapboxSearch } from "@mapbox/search-js-core";
var DEFAULTS2 = MapboxSearch.defaults;
function useMapboxSearch(options) {
import { SearchBoxCore } from "@mapbox/search-js-core";
var DEFAULTS2 = SearchBoxCore.defaults;
function useSearchBoxCore(options) {
const search = useMemo2(() => {
return new MapboxSearch();
return new SearchBoxCore();
}, []);

@@ -399,3 +401,3 @@ useEffect6(() => {

import {
MapboxSearch as MapboxSearch2,
SearchBoxCore as SearchBoxCore2,
SearchSession

@@ -408,3 +410,3 @@ } from "@mapbox/search-js-core";

}, [search]);
if (search instanceof MapboxSearch2) {
if (search instanceof SearchBoxCore2) {
return searchSession;

@@ -435,8 +437,9 @@ } else {

config,
useAddressAutofillCore,
useConfirmAddress,
useEvented,
useMapboxAutofill,
useMapboxSearch,
useAddressAutofillCore as useMapboxAutofill,
useSearchBoxCore,
useSearchSession
};
//# sourceMappingURL=index-esm.js.map

@@ -7,5 +7,5 @@ import '@mapbox/search-js-web';

export { useEvented } from './hooks/useEvented';
export { useMapboxAutofill } from './hooks/useMapboxAutofill';
export { useMapboxSearch } from './hooks/useMapboxSearch';
export { useAddressAutofillCore, useAddressAutofillCore as useMapboxAutofill } from './hooks/useAddressAutofillCore';
export { useSearchBoxCore } from './hooks/useSearchBoxCore';
export { useSearchSession } from './hooks/useSearchSession';
export { useConfirmAddress } from './hooks/useConfirmAddress';

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

var W=Object.create;var b=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,_=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var H=(e,n,o)=>n in e?b(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o,M=(e,n)=>{for(var o in n||(n={}))w.call(n,o)&&H(e,o,n[o]);if(E)for(var o of E(n))j.call(n,o)&&H(e,o,n[o]);return e};var F=e=>b(e,"__esModule",{value:!0});var R=(e,n)=>{var o={};for(var u in e)w.call(e,u)&&n.indexOf(u)<0&&(o[u]=e[u]);if(e!=null&&E)for(var u of E(e))n.indexOf(u)<0&&j.call(e,u)&&(o[u]=e[u]);return o};var $=(e,n)=>{for(var o in n)b(e,o,{get:n[o],enumerable:!0})},I=(e,n,o,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of Z(n))!w.call(e,c)&&(o||c!=="default")&&b(e,c,{get:()=>n[c],enumerable:!(u=Y(n,c))||u.enumerable});return e},B=(e,n)=>I(F(b(e!=null?W(_(e)):{},"default",!n&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),ee=(e=>(n,o)=>e&&e.get(n)||(o=I(F({}),n,1),e&&e.set(n,o),o))(typeof WeakMap!="undefined"?new WeakMap:0);var ne={};$(ne,{AddressAutofill:()=>J,AddressMinimap:()=>U,SearchBox:()=>K,config:()=>V.config,useConfirmAddress:()=>Q,useEvented:()=>X,useMapboxAutofill:()=>D,useMapboxSearch:()=>G,useSearchSession:()=>z});var Oe=require("@mapbox/search-js-web"),V=require("@mapbox/search-js-web");var a=B(require("react")),J=a.default.forwardRef((e,n)=>{let{accessToken:o,options:u,theme:c,popoverOptions:l,confirmOnBrowserAutofill:x,browserAutofillEnabled:A,children:g,onChange:d,onSuggest:m,onSuggestError:S,onRetrieve:h,interceptSearch:s}=e,t=(0,a.useRef)();return(0,a.useImperativeHandle)(n,()=>({focus:()=>{if(t.current)return t.current.focus();throw new Error("AddressAutofill is not mounted")}})),(0,a.useEffect)(()=>{t.current&&(t.current.options=u)},[t.current,u]),(0,a.useEffect)(()=>{t.current&&(t.current.interceptSearch=s)},[t.current,u]),(0,a.useEffect)(()=>{t.current&&(t.current.theme=c)},[t.current,c]),(0,a.useEffect)(()=>{t.current&&(t.current.popoverOptions=l)},[t.current,l]),(0,a.useEffect)(()=>{t.current&&(t.current.confirmOnBrowserAutofill=x)},[t.current,x]),(0,a.useEffect)(()=>{t.current&&(t.current.browserAutofillEnabled=A)},[t.current,A]),(0,a.useEffect)(()=>{let i=t.current;if(!i||!m)return;let r=v=>m(v.detail);return i.addEventListener("suggest",r),()=>{i.removeEventListener("suggest",r)}},[t.current,m]),(0,a.useEffect)(()=>{let i=t.current;if(!i||!S)return;let r=v=>S(v.detail);return i.addEventListener("suggesterror",r),()=>{i.removeEventListener("suggesterror",r)}},[t.current,S]),(0,a.useEffect)(()=>{let i=t.current;if(!i||!h)return;let r=v=>h(v.detail);return i.addEventListener("retrieve",r),()=>{i.removeEventListener("retrieve",r)}},[t.current,h]),(0,a.useEffect)(()=>{let i=t.current;if(!i||!d)return;let r=v=>{v.target===v.currentTarget&&d(v.detail)};return i.addEventListener("input",r),()=>{i.removeEventListener("input",r)}},[t.current,d]),(0,a.useEffect)(()=>{t.current&&(t.current.accessToken=o)},[t.current,o]),a.default.createElement("mapbox-address-autofill",{ref:t},g)});var f=B(require("react")),K=f.default.forwardRef((e,n)=>{let{accessToken:o,options:u,theme:c,popoverOptions:l,map:x,value:A,onChange:g,onSuggest:d,onSuggestError:m,onRetrieve:S,interceptSearch:h}=e,s=(0,f.useRef)();return(0,f.useImperativeHandle)(n,()=>({focus:()=>{if(s.current)return s.current.focus();throw new Error("SearchBox is not mounted")}})),(0,f.useEffect)(()=>{s.current&&(s.current.options=u)},[s.current,u]),(0,f.useEffect)(()=>{s.current&&(s.current.interceptSearch=h)},[s.current,u]),(0,f.useEffect)(()=>{s.current&&(s.current.theme=c)},[s.current,c]),(0,f.useEffect)(()=>{s.current&&(s.current.popoverOptions=l)},[s.current,l]),(0,f.useEffect)(()=>{s.current&&(s.current.value=A)},[s.current,A]),(0,f.useEffect)(()=>{let t=s.current;if(!!t)return t.bindMap(x),()=>{t.unbindMap()}},[s.current,x]),(0,f.useEffect)(()=>{let t=s.current;if(!t||!d)return;let i=r=>d(r.detail);return t.addEventListener("suggest",i),()=>{t.removeEventListener("suggest",i)}},[s.current,d]),(0,f.useEffect)(()=>{let t=s.current;if(!t||!m)return;let i=r=>m(r.detail);return t.addEventListener("suggesterror",i),()=>{t.removeEventListener("suggesterror",i)}},[s.current,m]),(0,f.useEffect)(()=>{let t=s.current;if(!t||!S)return;let i=r=>S(r.detail);return t.addEventListener("retrieve",i),()=>{t.removeEventListener("retrieve",i)}},[s.current,S]),(0,f.useEffect)(()=>{let t=s.current;if(!t||!g)return;let i=r=>{r.target===r.currentTarget&&g(r.detail)};return t.addEventListener("input",i),()=>{t.removeEventListener("input",i)}},[s.current,g]),(0,f.useEffect)(()=>{s.current&&(s.current.accessToken=o)},[s.current,o]),f.default.createElement("mapbox-search-box",{ref:s})});var p=B(require("react"));function U(e){let{canAdjustMarker:n=!1,keepMarkerCentered:o=!1,markerAnchor:u="bottom",onSaveMarkerLocation:c,show:l=!1,accessToken:x,feature:A=null,adjustBtnText:g,saveBtnText:d,cancelBtnText:m,satelliteToggle:S=!1,theme:h,mapStyleMode:s="default",defaultMapStyle:t=["mapbox","streets-v11"],footer:i}=e,r=(0,p.useRef)();return(0,p.useEffect)(()=>{!r.current||(l?r.current.show():r.current.hide())},[r.current,l]),(0,p.useEffect)(()=>{r.current&&(r.current.theme=h)},[r.current,h]),(0,p.useEffect)(()=>{r.current&&(r.current.feature=l?A:null)},[r.current,A,l]),(0,p.useEffect)(()=>{r.current&&(r.current.mapStyleMode=s)},[r.current,s]),(0,p.useEffect)(()=>{g!==void 0&&r.current&&(r.current.adjustBtnText=g)},[r.current,g]),(0,p.useEffect)(()=>{d!==void 0&&r.current&&(r.current.saveBtnText=d)},[r.current,d]),(0,p.useEffect)(()=>{m!==void 0&&r.current&&(r.current.cancelBtnText=m)},[r.current,m]),(0,p.useEffect)(()=>{r.current&&(r.current.defaultMapStyle=t)},[r.current,t]),(0,p.useEffect)(()=>{i!==void 0&&r.current&&(r.current.footer=i)},[r.current,i]),(0,p.useEffect)(()=>{r.current&&(r.current.accessToken=x)},[r.current,x]),(0,p.useEffect)(()=>{r.current&&(r.current.onSaveMarkerLocation=c)},[r.current,c]),p.default.createElement("mapbox-address-minimap",{ref:r,"can-adjust-marker":n,"keep-marker-centered":o,"marker-anchor":u,"satellite-toggle":S})}var T=require("react");function X(e,n,o){let u=(0,T.useRef)(o);(0,T.useEffect)(()=>{u.current=o}),(0,T.useEffect)(()=>{if(!e)return;let c=l=>u.current(l);return e.addEventListener(n,c),()=>{e.removeEventListener(n,c)}},[e,n,u])}var O=require("react"),C=require("@mapbox/search-js-core"),re=C.MapboxAutofill.defaults;function D(e){let n=(0,O.useMemo)(()=>new C.MapboxAutofill,[]);return(0,O.useEffect)(()=>{let c=e,{accessToken:o}=c,u=R(c,["accessToken"]);n.accessToken=o,n.defaults=M(M({},re),u)},[e]),n}var L=require("react"),P=require("@mapbox/search-js-core"),te=P.MapboxSearch.defaults;function G(e){let n=(0,L.useMemo)(()=>new P.MapboxSearch,[]);return(0,L.useEffect)(()=>{let c=e,{accessToken:o}=c,u=R(c,["accessToken"]);n.accessToken=o,n.defaults=M(M({},te),u)},[e]),n}var k=require("@mapbox/search-js-core"),q=require("react");function z(e){let n=(0,q.useMemo)(()=>new k.SearchSession(e),[e]);return e instanceof k.MapboxSearch,n}var y=require("react"),N=require("@mapbox/search-js-web");function Q(e={}){let n=(0,y.useRef)(null);return(0,y.useMemo)(()=>({formRef:n,showConfirm:()=>(0,N.confirmAddress)(n.current,e)}),[n,e])}module.exports=ee(ne);
var W=Object.create;var E=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,_=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var j=(e,o,n)=>o in e?E(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,T=(e,o)=>{for(var n in o||(o={}))k.call(o,n)&&j(e,n,o[n]);if(R)for(var n of R(o))F.call(o,n)&&j(e,n,o[n]);return e};var I=e=>E(e,"__esModule",{value:!0});var b=(e,o)=>{var n={};for(var u in e)k.call(e,u)&&o.indexOf(u)<0&&(n[u]=e[u]);if(e!=null&&R)for(var u of R(e))o.indexOf(u)<0&&F.call(e,u)&&(n[u]=e[u]);return n};var $=(e,o)=>{for(var n in o)E(e,n,{get:o[n],enumerable:!0})},J=(e,o,n,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of Z(o))!k.call(e,c)&&(n||c!=="default")&&E(e,c,{get:()=>o[c],enumerable:!(u=Y(o,c))||u.enumerable});return e},y=(e,o)=>J(I(E(e!=null?W(_(e)):{},"default",!o&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),ee=(e=>(o,n)=>e&&e.get(o)||(n=J(I({}),o,1),e&&e.set(o,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var oe={};$(oe,{AddressAutofill:()=>K,AddressMinimap:()=>X,SearchBox:()=>U,config:()=>V.config,useAddressAutofillCore:()=>P,useConfirmAddress:()=>Q,useEvented:()=>D,useMapboxAutofill:()=>P,useSearchBoxCore:()=>G,useSearchSession:()=>z});var Be=require("@mapbox/search-js-web"),V=require("@mapbox/search-js-web");var a=y(require("react")),K=a.default.forwardRef((e,o)=>{let{accessToken:n,options:u,theme:c,popoverOptions:p,confirmOnBrowserAutofill:x,browserAutofillEnabled:h,children:S,onChange:l,onSuggest:m,onSuggestError:A,onRetrieve:v,interceptSearch:s}=e,t=(0,a.useRef)();return(0,a.useImperativeHandle)(o,()=>({focus:()=>{if(t.current)return t.current.focus();throw new Error("AddressAutofill is not mounted")}})),(0,a.useEffect)(()=>{t.current&&(t.current.options=u)},[t.current,u]),(0,a.useEffect)(()=>{t.current&&(t.current.interceptSearch=s)},[t.current,u]),(0,a.useEffect)(()=>{t.current&&(t.current.theme=c)},[t.current,c]),(0,a.useEffect)(()=>{t.current&&(t.current.popoverOptions=p)},[t.current,p]),(0,a.useEffect)(()=>{t.current&&(t.current.confirmOnBrowserAutofill=x)},[t.current,x]),(0,a.useEffect)(()=>{t.current&&(t.current.browserAutofillEnabled=h)},[t.current,h]),(0,a.useEffect)(()=>{let i=t.current;if(!i||!m)return;let r=g=>m(g.detail);return i.addEventListener("suggest",r),()=>{i.removeEventListener("suggest",r)}},[t.current,m]),(0,a.useEffect)(()=>{let i=t.current;if(!i||!A)return;let r=g=>A(g.detail);return i.addEventListener("suggesterror",r),()=>{i.removeEventListener("suggesterror",r)}},[t.current,A]),(0,a.useEffect)(()=>{let i=t.current;if(!i||!v)return;let r=g=>v(g.detail);return i.addEventListener("retrieve",r),()=>{i.removeEventListener("retrieve",r)}},[t.current,v]),(0,a.useEffect)(()=>{let i=t.current;if(!i||!l)return;let r=g=>{g.target===g.currentTarget&&l(g.detail)};return i.addEventListener("input",r),()=>{i.removeEventListener("input",r)}},[t.current,l]),(0,a.useEffect)(()=>{t.current&&(t.current.accessToken=n)},[t.current,n]),a.default.createElement("mapbox-address-autofill",{ref:t},S)});var f=y(require("react")),U=f.default.forwardRef((e,o)=>{let{accessToken:n,options:u,theme:c,popoverOptions:p,map:x,value:h,onChange:S,onSuggest:l,onSuggestError:m,onRetrieve:A,interceptSearch:v}=e,s=(0,f.useRef)();return(0,f.useImperativeHandle)(o,()=>({focus:()=>{if(s.current)return s.current.focus();throw new Error("SearchBox is not mounted")}})),(0,f.useEffect)(()=>{s.current&&(s.current.options=u)},[s.current,u]),(0,f.useEffect)(()=>{s.current&&(s.current.interceptSearch=v)},[s.current,u]),(0,f.useEffect)(()=>{s.current&&(s.current.theme=c)},[s.current,c]),(0,f.useEffect)(()=>{s.current&&(s.current.popoverOptions=p)},[s.current,p]),(0,f.useEffect)(()=>{s.current&&(s.current.value=h)},[s.current,h]),(0,f.useEffect)(()=>{let t=s.current;if(!!t)return t.bindMap(x),()=>{t.unbindMap()}},[s.current,x]),(0,f.useEffect)(()=>{let t=s.current;if(!t||!l)return;let i=r=>l(r.detail);return t.addEventListener("suggest",i),()=>{t.removeEventListener("suggest",i)}},[s.current,l]),(0,f.useEffect)(()=>{let t=s.current;if(!t||!m)return;let i=r=>m(r.detail);return t.addEventListener("suggesterror",i),()=>{t.removeEventListener("suggesterror",i)}},[s.current,m]),(0,f.useEffect)(()=>{let t=s.current;if(!t||!A)return;let i=r=>A(r.detail);return t.addEventListener("retrieve",i),()=>{t.removeEventListener("retrieve",i)}},[s.current,A]),(0,f.useEffect)(()=>{let t=s.current;if(!t||!S)return;let i=r=>{r.target===r.currentTarget&&S(r.detail)};return t.addEventListener("input",i),()=>{t.removeEventListener("input",i)}},[s.current,S]),(0,f.useEffect)(()=>{s.current&&(s.current.accessToken=n)},[s.current,n]),f.default.createElement("mapbox-search-box",{ref:s})});var d=y(require("react"));function X(e){let{canAdjustMarker:o=!1,keepMarkerCentered:n=!1,markerAnchor:u="bottom",onSaveMarkerLocation:c,show:p=!1,accessToken:x,feature:h=null,adjustBtnText:S,saveBtnText:l,cancelBtnText:m,satelliteToggle:A=!1,theme:v,mapStyleMode:s="default",defaultMapStyle:t=["mapbox","streets-v11"],footer:i}=e,r=(0,d.useRef)();return(0,d.useEffect)(()=>{!r.current||(p?r.current.show():r.current.hide())},[r.current,p]),(0,d.useEffect)(()=>{r.current&&(r.current.theme=v)},[r.current,v]),(0,d.useEffect)(()=>{r.current&&(r.current.feature=p?h:null)},[r.current,h,p]),(0,d.useEffect)(()=>{r.current&&(r.current.mapStyleMode=s)},[r.current,s]),(0,d.useEffect)(()=>{S!==void 0&&r.current&&(r.current.adjustBtnText=S)},[r.current,S]),(0,d.useEffect)(()=>{l!==void 0&&r.current&&(r.current.saveBtnText=l)},[r.current,l]),(0,d.useEffect)(()=>{m!==void 0&&r.current&&(r.current.cancelBtnText=m)},[r.current,m]),(0,d.useEffect)(()=>{r.current&&(r.current.defaultMapStyle=t)},[r.current,t]),(0,d.useEffect)(()=>{i!==void 0&&r.current&&(r.current.footer=i)},[r.current,i]),(0,d.useEffect)(()=>{r.current&&(r.current.accessToken=x)},[r.current,x]),(0,d.useEffect)(()=>{r.current&&(r.current.onSaveMarkerLocation=c)},[r.current,c]),d.default.createElement("mapbox-address-minimap",{ref:r,"can-adjust-marker":o,"keep-marker-centered":n,"marker-anchor":u,"satellite-toggle":A})}var M=require("react");function D(e,o,n){let u=(0,M.useRef)(n);(0,M.useEffect)(()=>{u.current=n}),(0,M.useEffect)(()=>{if(!e)return;let c=p=>u.current(p);return e.addEventListener(o,c),()=>{e.removeEventListener(o,c)}},[e,o,u])}var B=require("react"),w=require("@mapbox/search-js-core"),re=w.AddressAutofillCore.defaults;function P(e){let o=(0,B.useMemo)(()=>new w.AddressAutofillCore,[]);return(0,B.useEffect)(()=>{let c=e,{accessToken:n}=c,u=b(c,["accessToken"]);o.accessToken=n,o.defaults=T(T({},re),u)},[e]),o}var O=require("react"),H=require("@mapbox/search-js-core"),te=H.SearchBoxCore.defaults;function G(e){let o=(0,O.useMemo)(()=>new H.SearchBoxCore,[]);return(0,O.useEffect)(()=>{let c=e,{accessToken:n}=c,u=b(c,["accessToken"]);o.accessToken=n,o.defaults=T(T({},te),u)},[e]),o}var C=require("@mapbox/search-js-core"),q=require("react");function z(e){let o=(0,q.useMemo)(()=>new C.SearchSession(e),[e]);return e instanceof C.SearchBoxCore,o}var L=require("react"),N=require("@mapbox/search-js-web");function Q(e={}){let o=(0,L.useRef)(null);return(0,L.useMemo)(()=>({formRef:o,showConfirm:()=>(0,N.confirmAddress)(o.current,e)}),[o,e])}module.exports=ee(oe);
//# sourceMappingURL=index.js.map
{
"name": "@mapbox/search-js-react",
"version": "1.0.0-beta.15",
"version": "1.0.0-beta.16",
"description": "Search React components with form autocomplete.",

@@ -19,4 +19,4 @@ "main": "dist/index.js",

"dependencies": {
"@mapbox/search-js-core": "^1.0.0-beta.15",
"@mapbox/search-js-web": "^1.0.0-beta.15",
"@mapbox/search-js-core": "^1.0.0-beta.16",
"@mapbox/search-js-web": "^1.0.0-beta.16",
"@types/geojson": "^7946.0.8",

@@ -23,0 +23,0 @@ "@types/react": "^17.0.43"

@@ -9,5 +9,8 @@ import '@mapbox/search-js-web';

export { useEvented } from './hooks/useEvented';
export { useMapboxAutofill } from './hooks/useMapboxAutofill';
export { useMapboxSearch } from './hooks/useMapboxSearch';
export {
useAddressAutofillCore,
useAddressAutofillCore as useMapboxAutofill // alias for backward compatibility
} from './hooks/useAddressAutofillCore';
export { useSearchBoxCore } from './hooks/useSearchBoxCore';
export { useSearchSession } from './hooks/useSearchSession';
export { useConfirmAddress } from './hooks/useConfirmAddress';
import {
MapboxAutofill,
MapboxSearch,
AddressAutofillCore,
SearchBoxCore,
SearchSession

@@ -9,4 +9,4 @@ } from '@mapbox/search-js-core';

const AUTOFILL = new MapboxAutofill();
const SEARCH = new MapboxSearch();
const AUTOFILL = new AddressAutofillCore();
const SEARCHBOX = new SearchBoxCore();

@@ -25,3 +25,3 @@ test('useSearchSession', () => {

act(() => {
rerender({ search: SEARCH });
rerender({ search: SEARCHBOX });
});

@@ -31,5 +31,5 @@

expect(two).toEqual(expect.any(SearchSession));
expect(two.search).toEqual(SEARCH);
expect(two.search).toEqual(SEARCHBOX);
expect(one).not.toBe(two);
});

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

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

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

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

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

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

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