@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 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 and only logs the payload.
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 (console.log only).
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 (console.log only).
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) => this.logger.log(...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,