@eshal-bot/chat-widget 0.2.22 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export{e as default}from"./chat-widget-index-CiaYbZwv.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
1
+ export{e as default}from"./chat-widget-index-CM9IkUEC.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
@@ -12582,14 +12582,12 @@
12582
12582
  } = await Promise.resolve().then(function () { return index; });
12583
12583
  const tracer = new UserTrace({
12584
12584
  cache: true,
12585
- // Capture the visitor's precise location via the browser Geolocation
12586
- // API (behind the native permission prompt) and reverse-geocode it
12587
- // into profile.geo, so "Traffic by location" reflects the real city
12588
- // instead of the coarse/wrong IP-gateway city. Granted → accurate
12589
- // GPS; denied/dismissed/plain-HTTP → graceful IP fallback. Set
12590
- // explicitly (not relying on the SDK default) so the behavior is
12591
- // durable even if @eshal-tracker/sdk changes its default later.
12592
- geoFromBrowser: true,
12585
+ // 26 Oct 2026 (owner review): never ask a website visitor for their
12586
+ // GPS location. The area comes from their IP, resolved on our server
12587
+ // (services/widgetVisitorLocation.ts); the SDK's own IP lookup below
12588
+ // is only a fallback for when the server finds nothing. Set
12589
+ // explicitly because the SDK's default is `true` (prompt on init).
12590
+ geoFromBrowser: false,
12593
12591
  // EV-2167: freeipapi.com 302-redirects and fails in some environments;
12594
12592
  // prefer ipwho.is which responds directly with no redirect.
12595
12593
  preferredProvider: "ipwho.is",
@@ -21905,7 +21903,7 @@
21905
21903
  * value by its own test (that constant sat at 0.1.113 while this package was
21906
21904
  * at 0.2.2 precisely because nothing enforced it - EV-2431).
21907
21905
  */
21908
- const WIDGET_VERSION = '0.2.22';
21906
+ const WIDGET_VERSION = '0.2.23';
21909
21907
 
21910
21908
  /**
21911
21909
  * API utility functions