@uploadcare/file-uploader 1.24.3 → 1.24.5

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/dist/index.d.ts CHANGED
@@ -107,6 +107,7 @@ declare class ModalManager {
107
107
  type CommonEventType = InternalEventKey | EventKey;
108
108
  type TelemetryState = TelemetryRequest & {
109
109
  eventTimestamp: number;
110
+ location: string;
110
111
  };
111
112
  type TelemetryEventBody = Partial<Pick<TelemetryState, 'payload' | 'config'>> & {
112
113
  modalId?: string;
@@ -138,6 +139,7 @@ declare class TelemetryManager {
138
139
  private get _timestamp();
139
140
  private get _solution();
140
141
  private get _activity();
142
+ private get _location();
141
143
  }
142
144
 
143
145
  declare class Block extends BaseComponent<any> {
package/dist/index.js CHANGED
@@ -1217,7 +1217,7 @@ import { TelemetryAPIService } from "@uploadcare/quality-insights";
1217
1217
  import { Queue as Queue2 } from "@uploadcare/upload-client";
1218
1218
 
1219
1219
  // package.json
1220
- var version = "1.24.3";
1220
+ var version = "1.24.5";
1221
1221
 
1222
1222
  // src/env.ts
1223
1223
  var PACKAGE_NAME = "blocks";
@@ -1279,6 +1279,7 @@ var TelemetryManager = class {
1279
1279
  eventType: result.eventType ?? "",
1280
1280
  eventTimestamp: this._timestamp,
1281
1281
  payload: {
1282
+ location: this._location,
1282
1283
  ...payload
1283
1284
  }
1284
1285
  };
@@ -1378,6 +1379,9 @@ var TelemetryManager = class {
1378
1379
  }
1379
1380
  return this._block.$["*currentActivity"] ?? null;
1380
1381
  }
1382
+ get _location() {
1383
+ return location.origin;
1384
+ }
1381
1385
  };
1382
1386
 
1383
1387
  // src/abstract/sharedConfigKey.ts