@sensiblestats/widget-react 0.160.0 → 0.161.0
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.
- package/CHANGELOG.md +11 -0
- package/README.md +3 -3
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1383,7 +1383,7 @@ function parseCustomTotal(text2, format2) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
1385
|
// src/version.generated.ts
|
|
1386
|
-
var WIDGET_REACT_VERSION = "0.
|
|
1386
|
+
var WIDGET_REACT_VERSION = "0.161.0";
|
|
1387
1387
|
|
|
1388
1388
|
// src/config.ts
|
|
1389
1389
|
var COLOR_KEYS = ["accent", "cta", "surface", "ink"];
|
|
@@ -1790,8 +1790,7 @@ function normalizeUi(cfg, loaded) {
|
|
|
1790
1790
|
};
|
|
1791
1791
|
}
|
|
1792
1792
|
function toClientOptions(cfg) {
|
|
1793
|
-
const opts = { operatorId: cfg.operatorId, publicKey: cfg.publicKey, client: `${cfg.transport?.client ?? "widget-react"}/${WIDGET_REACT_VERSION}` };
|
|
1794
|
-
if (cfg.baseUrl !== void 0) opts.baseUrl = cfg.baseUrl;
|
|
1793
|
+
const opts = { operatorId: cfg.operatorId, publicKey: cfg.publicKey, baseUrl: cfg.baseUrl, client: `${cfg.transport?.client ?? "widget-react"}/${WIDGET_REACT_VERSION}` };
|
|
1795
1794
|
if (cfg.transport?.fetch !== void 0) opts.fetch = cfg.transport.fetch;
|
|
1796
1795
|
const timeZone = validZone(cfg.timeZone);
|
|
1797
1796
|
if (timeZone !== void 0) opts.timeZone = timeZone;
|