@magicfeedback/popup-sdk 1.8.3 → 1.8.4
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/README.md +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react-native.d.mts +2 -1
- package/dist/react-native.d.ts +2 -1
- package/dist/react-native.js +3 -1
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +3 -1
- package/dist/react-native.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,7 +121,8 @@ Config fields:
|
|
|
121
121
|
- `logger?: DeepdotsLogger` — replaces `console` for SDK logs
|
|
122
122
|
- `trackingEnabled?: boolean` — starts analytics on (default) or off, for consent flows
|
|
123
123
|
- `analytics?: { publicKey: string; integration: string }` — enables the real analytics
|
|
124
|
-
delivery. Without it the analytics channel stays in dry-run
|
|
124
|
+
delivery. Without it the analytics channel stays in dry-run: nothing is sent, and the
|
|
125
|
+
payload is only logged when `debug` is on.
|
|
125
126
|
- `geolocation?: boolean` — IP geolocation (country/city) for analytics, default `true`. It
|
|
126
127
|
calls third-party services (`ipapi.co`, then `ipwho.is`, then `ipinfo.io` as fallbacks, 3 s
|
|
127
128
|
timeout each, stopping at the first answer). It only runs when `analytics` is set, tracking
|
package/dist/index.d.mts
CHANGED
|
@@ -257,7 +257,8 @@ interface DeepdotsInitParams {
|
|
|
257
257
|
device?: DeviceInfo;
|
|
258
258
|
/**
|
|
259
259
|
* Analytics channel keys (`POST /sdk/feedback`). If provided, analytics is SENT
|
|
260
|
-
* to the configured integration; if missing, it stays in dry-run mode
|
|
260
|
+
* to the configured integration; if missing, it stays in dry-run mode: nothing is sent, and the payload is only
|
|
261
|
+
* logged when `debug` is true.
|
|
261
262
|
*/
|
|
262
263
|
analytics?: AnalyticsKeys;
|
|
263
264
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -257,7 +257,8 @@ interface DeepdotsInitParams {
|
|
|
257
257
|
device?: DeviceInfo;
|
|
258
258
|
/**
|
|
259
259
|
* Analytics channel keys (`POST /sdk/feedback`). If provided, analytics is SENT
|
|
260
|
-
* to the configured integration; if missing, it stays in dry-run mode
|
|
260
|
+
* to the configured integration; if missing, it stays in dry-run mode: nothing is sent, and the payload is only
|
|
261
|
+
* logged when `debug` is true.
|
|
261
262
|
*/
|
|
262
263
|
analytics?: AnalyticsKeys;
|
|
263
264
|
/**
|
package/dist/index.js
CHANGED
|
@@ -7611,7 +7611,9 @@ var DeepdotsPopups = class {
|
|
|
7611
7611
|
onSessionReset: () => {
|
|
7612
7612
|
this.analyticsFeedbackSessionId = void 0;
|
|
7613
7613
|
}
|
|
7614
|
-
}) : createDryRunSink((...a) =>
|
|
7614
|
+
}) : createDryRunSink((...a) => {
|
|
7615
|
+
if (this.config?.debug) this.logger.log(...a);
|
|
7616
|
+
});
|
|
7615
7617
|
const device = config.device ?? collectDeviceInfo(config.appVersion);
|
|
7616
7618
|
this.language = resolveLanguage({
|
|
7617
7619
|
explicit: config.language,
|