@sensiblestats/widget-react 0.88.0 → 0.89.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/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.89.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3b75853: The widget sends its version in an X-SS-Client header (widget-react/<version>) so the operator panel can show which version each brand runs. The SDK takes an optional `client` option and sends no header without it.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [3b75853]
|
|
12
|
+
- @sensiblestats/widget-sdk@0.59.0
|
|
13
|
+
|
|
3
14
|
## 0.88.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1006,6 +1006,9 @@ function isEnglishLocale(locale) {
|
|
|
1006
1006
|
return lang === "en" || !Object.prototype.hasOwnProperty.call(STRINGS, lang);
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
+
// src/version.generated.ts
|
|
1010
|
+
var WIDGET_REACT_VERSION = "0.89.0";
|
|
1011
|
+
|
|
1009
1012
|
// src/config.ts
|
|
1010
1013
|
function normalizeUi(cfg) {
|
|
1011
1014
|
const strings = resolveLocaleStrings(cfg.locale);
|
|
@@ -1238,7 +1241,7 @@ function normalizeUi(cfg) {
|
|
|
1238
1241
|
};
|
|
1239
1242
|
}
|
|
1240
1243
|
function toClientOptions(cfg) {
|
|
1241
|
-
const opts = { operatorId: cfg.operatorId, publicKey: cfg.publicKey };
|
|
1244
|
+
const opts = { operatorId: cfg.operatorId, publicKey: cfg.publicKey, client: `widget-react/${WIDGET_REACT_VERSION}` };
|
|
1242
1245
|
if (cfg.baseUrl !== void 0) opts.baseUrl = cfg.baseUrl;
|
|
1243
1246
|
return opts;
|
|
1244
1247
|
}
|