@ada-support/embed2 1.0.32 → 1.0.37

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.
@@ -12,5 +12,5 @@ interface TriggerCampaignImplParams {
12
12
  messageService: MessageService;
13
13
  }
14
14
  export declare function triggerCampaignImpl({ adaSettings, chatterToken, campaign, ignoreStatus, ignoreFrequency, clearCampaignToTrigger, messageService, }: TriggerCampaignImplParams): void;
15
- export declare const getCampaignToTrigger: (adaSettings: StartOptions, chatterToken: string, marketingCampaigns: MarketingCampaign[], options: EvaluateCampaignParams) => MarketingCampaign;
15
+ export declare const getCampaignToTrigger: (adaSettings: StartOptions, marketingCampaigns: MarketingCampaign[] | undefined, options: EvaluateCampaignParams, onlyBasic: boolean) => MarketingCampaign;
16
16
  export {};
@@ -3,5 +3,6 @@ export declare const CHATTER_CREATED_STORAGE_KEY = "ada-embed_chatter-created";
3
3
  export declare const IN_LIVE_CHAT_STORAGE_KEY = "inLiveChat";
4
4
  export declare const ZD_SESSION_STORAGE_KEY = "ada-embed_zd-session-id";
5
5
  export declare const ZD_PREVIOUS_TAGS_STORAGE_KEY = "ada-embed_zd-previous-tags";
6
+ export declare const IS_DRAWER_OPEN_STORAGE_KEY = "ada-embed_is-drawer-open";
6
7
  /** @deprecated - Use CHATTER_TOKEN_STORAGE_KEY */
7
8
  export declare const CHATTER_STORAGE_KEY = "chatter";
@@ -722,7 +722,7 @@ var browserPerformanceTimeOrigin = (function () {
722
722
 
723
723
  /***/ }),
724
724
 
725
- /***/ 2396:
725
+ /***/ 7054:
726
726
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
727
727
 
728
728
  "use strict";
@@ -1738,7 +1738,7 @@ var States;
1738
1738
  * Thenable class that behaves like a Promise and follows it's interface
1739
1739
  * but is not async internally
1740
1740
  */
1741
- var syncpromise_SyncPromise = /** @class */ (function () {
1741
+ var SyncPromise = /** @class */ (function () {
1742
1742
  function SyncPromise(executor) {
1743
1743
  var _this = this;
1744
1744
  this._state = States.PENDING;
@@ -2287,7 +2287,7 @@ var Scope = /** @class */ (function () {
2287
2287
  Scope.prototype._notifyEventProcessors = function (processors, event, hint, index) {
2288
2288
  var _this = this;
2289
2289
  if (index === void 0) { index = 0; }
2290
- return new syncpromise_SyncPromise(function (resolve, reject) {
2290
+ return new SyncPromise(function (resolve, reject) {
2291
2291
  var processor = processors[index];
2292
2292
  if (event === null || typeof processor !== 'function') {
2293
2293
  resolve(event);
@@ -3818,7 +3818,7 @@ function makeMain(hub) {
3818
3818
  * contains a more recent version, it replaces the registered version.
3819
3819
  * Otherwise, the currently registered hub will be returned.
3820
3820
  */
3821
- function hub_getCurrentHub() {
3821
+ function getCurrentHub() {
3822
3822
  // Get main carrier (global for every environment)
3823
3823
  var registry = getMainCarrier();
3824
3824
  // If there's no hub, or its an old API, assign a new one
@@ -3924,7 +3924,7 @@ var InboundFilters = /** @class */ (function () {
3924
3924
  */
3925
3925
  InboundFilters.prototype.setupOnce = function () {
3926
3926
  addGlobalEventProcessor(function (event) {
3927
- var hub = hub_getCurrentHub();
3927
+ var hub = getCurrentHub();
3928
3928
  if (!hub) {
3929
3929
  return event;
3930
3930
  }
@@ -5186,7 +5186,7 @@ function eventFromException(options, exception, hint) {
5186
5186
  if (hint && hint.event_id) {
5187
5187
  event.event_id = hint.event_id;
5188
5188
  }
5189
- return syncpromise_SyncPromise.resolve(event);
5189
+ return SyncPromise.resolve(event);
5190
5190
  }
5191
5191
  /**
5192
5192
  * Builds and Event from a Message
@@ -5202,7 +5202,7 @@ function eventFromMessage(options, message, level, hint) {
5202
5202
  if (hint && hint.event_id) {
5203
5203
  event.event_id = hint.event_id;
5204
5204
  }
5205
- return syncpromise_SyncPromise.resolve(event);
5205
+ return SyncPromise.resolve(event);
5206
5206
  }
5207
5207
  /**
5208
5208
  * @hidden
@@ -5512,7 +5512,7 @@ function callOnHub(method) {
5512
5512
  for (var _i = 1; _i < arguments.length; _i++) {
5513
5513
  args[_i - 1] = arguments[_i];
5514
5514
  }
5515
- var hub = hub_getCurrentHub();
5515
+ var hub = getCurrentHub();
5516
5516
  if (hub && hub[method]) {
5517
5517
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5518
5518
  return hub[method].apply(hub, minimal_node_modules_tslib_tslib_es6_spread(args));
@@ -6172,7 +6172,7 @@ var GlobalHandlers = /** @class */ (function () {
6172
6172
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6173
6173
  callback: function (data) {
6174
6174
  var error = data.error;
6175
- var currentHub = hub_getCurrentHub();
6175
+ var currentHub = getCurrentHub();
6176
6176
  var hasIntegration = currentHub.getIntegration(GlobalHandlers);
6177
6177
  var isFailedOwnDelivery = error && error.__sentry_own_request__ === true;
6178
6178
  if (!hasIntegration || shouldIgnoreOnError() || isFailedOwnDelivery) {
@@ -6226,7 +6226,7 @@ var GlobalHandlers = /** @class */ (function () {
6226
6226
  catch (_oO) {
6227
6227
  // no-empty
6228
6228
  }
6229
- var currentHub = hub_getCurrentHub();
6229
+ var currentHub = getCurrentHub();
6230
6230
  var hasIntegration = currentHub.getIntegration(GlobalHandlers);
6231
6231
  var isFailedOwnDelivery = error && error.__sentry_own_request__ === true;
6232
6232
  if (!hasIntegration || shouldIgnoreOnError() || isFailedOwnDelivery) {
@@ -6588,7 +6588,7 @@ var Breadcrumbs = /** @class */ (function () {
6588
6588
  if (!this._options.sentry) {
6589
6589
  return;
6590
6590
  }
6591
- hub_getCurrentHub().addBreadcrumb({
6591
+ getCurrentHub().addBreadcrumb({
6592
6592
  category: "sentry." + (event.type === 'transaction' ? 'transaction' : 'event'),
6593
6593
  event_id: event.event_id,
6594
6594
  level: event.level,
@@ -6692,7 +6692,7 @@ var Breadcrumbs = /** @class */ (function () {
6692
6692
  return;
6693
6693
  }
6694
6694
  }
6695
- hub_getCurrentHub().addBreadcrumb(breadcrumb, {
6695
+ getCurrentHub().addBreadcrumb(breadcrumb, {
6696
6696
  input: handlerData.args,
6697
6697
  level: handlerData.level,
6698
6698
  });
@@ -6719,7 +6719,7 @@ var Breadcrumbs = /** @class */ (function () {
6719
6719
  if (target.length === 0) {
6720
6720
  return;
6721
6721
  }
6722
- hub_getCurrentHub().addBreadcrumb({
6722
+ getCurrentHub().addBreadcrumb({
6723
6723
  category: "ui." + handlerData.name,
6724
6724
  message: target,
6725
6725
  }, {
@@ -6739,7 +6739,7 @@ var Breadcrumbs = /** @class */ (function () {
6739
6739
  return;
6740
6740
  }
6741
6741
  var _a = handlerData.xhr.__sentry_xhr__ || {}, method = _a.method, url = _a.url, status_code = _a.status_code, body = _a.body;
6742
- hub_getCurrentHub().addBreadcrumb({
6742
+ getCurrentHub().addBreadcrumb({
6743
6743
  category: 'xhr',
6744
6744
  data: {
6745
6745
  method: method,
@@ -6768,7 +6768,7 @@ var Breadcrumbs = /** @class */ (function () {
6768
6768
  return;
6769
6769
  }
6770
6770
  if (handlerData.error) {
6771
- hub_getCurrentHub().addBreadcrumb({
6771
+ getCurrentHub().addBreadcrumb({
6772
6772
  category: 'fetch',
6773
6773
  data: handlerData.fetchData,
6774
6774
  level: Severity.Error,
@@ -6779,7 +6779,7 @@ var Breadcrumbs = /** @class */ (function () {
6779
6779
  });
6780
6780
  }
6781
6781
  else {
6782
- hub_getCurrentHub().addBreadcrumb({
6782
+ getCurrentHub().addBreadcrumb({
6783
6783
  category: 'fetch',
6784
6784
  data: tslib_es6_assign(tslib_es6_assign({}, handlerData.fetchData), { status_code: handlerData.response.status }),
6785
6785
  type: 'http',
@@ -6812,7 +6812,7 @@ var Breadcrumbs = /** @class */ (function () {
6812
6812
  if (parsedLoc.protocol === parsedFrom.protocol && parsedLoc.host === parsedFrom.host) {
6813
6813
  from = parsedFrom.relative;
6814
6814
  }
6815
- hub_getCurrentHub().addBreadcrumb({
6815
+ getCurrentHub().addBreadcrumb({
6816
6816
  category: 'navigation',
6817
6817
  data: {
6818
6818
  from: from,
@@ -6855,7 +6855,7 @@ var LinkedErrors = /** @class */ (function () {
6855
6855
  */
6856
6856
  LinkedErrors.prototype.setupOnce = function () {
6857
6857
  addGlobalEventProcessor(function (event, hint) {
6858
- var self = hub_getCurrentHub().getIntegration(LinkedErrors);
6858
+ var self = getCurrentHub().getIntegration(LinkedErrors);
6859
6859
  if (self) {
6860
6860
  var handler = self._handler && self._handler.bind(self);
6861
6861
  return typeof handler === 'function' ? handler(event, hint) : event;
@@ -6913,7 +6913,7 @@ var UserAgent = /** @class */ (function () {
6913
6913
  UserAgent.prototype.setupOnce = function () {
6914
6914
  addGlobalEventProcessor(function (event) {
6915
6915
  var _a, _b, _c;
6916
- if (hub_getCurrentHub().getIntegration(UserAgent)) {
6916
+ if (getCurrentHub().getIntegration(UserAgent)) {
6917
6917
  // if none of the information we want exists, don't bother
6918
6918
  if (!useragent_global.navigator && !useragent_global.location && !useragent_global.document) {
6919
6919
  return event;
@@ -7176,7 +7176,7 @@ function setupIntegration(integration) {
7176
7176
  if (installedIntegrations.indexOf(integration.name) !== -1) {
7177
7177
  return;
7178
7178
  }
7179
- integration.setupOnce(addGlobalEventProcessor, hub_getCurrentHub);
7179
+ integration.setupOnce(addGlobalEventProcessor, getCurrentHub);
7180
7180
  installedIntegrations.push(integration.name);
7181
7181
  logger_logger.log("Integration installed: " + integration.name);
7182
7182
  }
@@ -7420,7 +7420,7 @@ var BaseClient = /** @class */ (function () {
7420
7420
  */
7421
7421
  BaseClient.prototype._isClientDoneProcessing = function (timeout) {
7422
7422
  var _this = this;
7423
- return new syncpromise_SyncPromise(function (resolve) {
7423
+ return new SyncPromise(function (resolve) {
7424
7424
  var ticked = 0;
7425
7425
  var tick = 1;
7426
7426
  var interval = setInterval(function () {
@@ -7473,7 +7473,7 @@ var BaseClient = /** @class */ (function () {
7473
7473
  finalScope = Scope.clone(finalScope).update(hint.captureContext);
7474
7474
  }
7475
7475
  // We prepare the result here with a resolved Event.
7476
- var result = syncpromise_SyncPromise.resolve(prepared);
7476
+ var result = SyncPromise.resolve(prepared);
7477
7477
  // This should be the last thing called, since we want that
7478
7478
  // {@link Hub.addEventProcessor} gets the finished prepared event.
7479
7479
  if (finalScope) {
@@ -7609,14 +7609,14 @@ var BaseClient = /** @class */ (function () {
7609
7609
  // eslint-disable-next-line @typescript-eslint/unbound-method
7610
7610
  var _a = this.getOptions(), beforeSend = _a.beforeSend, sampleRate = _a.sampleRate;
7611
7611
  if (!this._isEnabled()) {
7612
- return syncpromise_SyncPromise.reject(new SentryError('SDK not enabled, will not capture event.'));
7612
+ return SyncPromise.reject(new SentryError('SDK not enabled, will not capture event.'));
7613
7613
  }
7614
7614
  var isTransaction = event.type === 'transaction';
7615
7615
  // 1.0 === 100% events are sent
7616
7616
  // 0.0 === 0% events are sent
7617
7617
  // Sampling for transaction happens somewhere else
7618
7618
  if (!isTransaction && typeof sampleRate === 'number' && Math.random() > sampleRate) {
7619
- return syncpromise_SyncPromise.reject(new SentryError("Discarding event because it's not included in the random sample (sampling rate = " + sampleRate + ")"));
7619
+ return SyncPromise.reject(new SentryError("Discarding event because it's not included in the random sample (sampling rate = " + sampleRate + ")"));
7620
7620
  }
7621
7621
  return this._prepareEvent(event, scope, hint)
7622
7622
  .then(function (prepared) {
@@ -7747,7 +7747,7 @@ var NoopTransport = /** @class */ (function () {
7747
7747
  * @inheritDoc
7748
7748
  */
7749
7749
  NoopTransport.prototype.sendEvent = function (_) {
7750
- return syncpromise_SyncPromise.resolve({
7750
+ return SyncPromise.resolve({
7751
7751
  reason: "NoopTransport: Event has been skipped because no Dsn is configured.",
7752
7752
  status: Status.Skipped,
7753
7753
  });
@@ -7756,7 +7756,7 @@ var NoopTransport = /** @class */ (function () {
7756
7756
  * @inheritDoc
7757
7757
  */
7758
7758
  NoopTransport.prototype.close = function (_) {
7759
- return syncpromise_SyncPromise.resolve(true);
7759
+ return SyncPromise.resolve(true);
7760
7760
  };
7761
7761
  return NoopTransport;
7762
7762
  }());
@@ -7937,7 +7937,7 @@ var PromiseBuffer = /** @class */ (function () {
7937
7937
  PromiseBuffer.prototype.add = function (taskProducer) {
7938
7938
  var _this = this;
7939
7939
  if (!this.isReady()) {
7940
- return syncpromise_SyncPromise.reject(new SentryError('Not adding Promise due to buffer limit reached.'));
7940
+ return SyncPromise.reject(new SentryError('Not adding Promise due to buffer limit reached.'));
7941
7941
  }
7942
7942
  // start the task and add its promise to the queue
7943
7943
  var task = taskProducer();
@@ -7983,7 +7983,7 @@ var PromiseBuffer = /** @class */ (function () {
7983
7983
  */
7984
7984
  PromiseBuffer.prototype.drain = function (timeout) {
7985
7985
  var _this = this;
7986
- return new syncpromise_SyncPromise(function (resolve) {
7986
+ return new SyncPromise(function (resolve) {
7987
7987
  // wait for `timeout` ms and then resolve to `false` (if not cancelled first)
7988
7988
  var capturedSetTimeout = setTimeout(function () {
7989
7989
  if (timeout && timeout > 0) {
@@ -7991,7 +7991,7 @@ var PromiseBuffer = /** @class */ (function () {
7991
7991
  }
7992
7992
  }, timeout);
7993
7993
  // if all promises resolve in time, cancel the timer and resolve to `true`
7994
- void syncpromise_SyncPromise.all(_this._buffer)
7994
+ void SyncPromise.all(_this._buffer)
7995
7995
  .then(function () {
7996
7996
  clearTimeout(capturedSetTimeout);
7997
7997
  resolve(true);
@@ -8253,7 +8253,7 @@ var FetchTransport = /** @class */ (function (_super) {
8253
8253
  options.headers = this.options.headers;
8254
8254
  }
8255
8255
  return this._buffer.add(function () {
8256
- return new syncpromise_SyncPromise(function (resolve, reject) {
8256
+ return new SyncPromise(function (resolve, reject) {
8257
8257
  void _this._fetch(sentryRequest.url, options)
8258
8258
  .then(function (response) {
8259
8259
  var headers = {
@@ -8314,7 +8314,7 @@ var XHRTransport = /** @class */ (function (_super) {
8314
8314
  });
8315
8315
  }
8316
8316
  return this._buffer.add(function () {
8317
- return new syncpromise_SyncPromise(function (resolve, reject) {
8317
+ return new SyncPromise(function (resolve, reject) {
8318
8318
  var request = new XMLHttpRequest();
8319
8319
  request.onreadystatechange = function () {
8320
8320
  if (request.readyState === 4) {
@@ -8492,7 +8492,7 @@ var client = new error_tracker_BrowserClient({
8492
8492
  return event;
8493
8493
  },
8494
8494
  environment: "production",
8495
- release: "b927fbc53de55016366277a4933b82a271d7aa9b",
8495
+ release: "26ba329763628125ccd447c10be0476c80863a64",
8496
8496
  sampleRate: 0.25,
8497
8497
  autoSessionTracking: false,
8498
8498
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -9176,7 +9176,7 @@ function getEmbedURL(_ref) {
9176
9176
  polyfillVersionString = "legacy";
9177
9177
  }
9178
9178
 
9179
- return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "b927fbc", "/index.html");
9179
+ return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "26ba329", "/index.html");
9180
9180
  }
9181
9181
  /**
9182
9182
  * Generate the Chat / API URL
@@ -9331,63 +9331,10 @@ var CHATTER_CREATED_STORAGE_KEY = "ada-embed_chatter-created";
9331
9331
  var IN_LIVE_CHAT_STORAGE_KEY = "inLiveChat";
9332
9332
  var ZD_SESSION_STORAGE_KEY = "ada-embed_zd-session-id";
9333
9333
  var ZD_PREVIOUS_TAGS_STORAGE_KEY = "ada-embed_zd-previous-tags";
9334
+ var IS_DRAWER_OPEN_STORAGE_KEY = "ada-embed_is-drawer-open";
9334
9335
  /** @deprecated - Use CHATTER_TOKEN_STORAGE_KEY */
9335
9336
 
9336
9337
  var CHATTER_STORAGE_KEY = CHATTER_TOKEN_STORAGE_KEY;
9337
- ;// CONCATENATED MODULE: ./src/frames/lib/frame-fc.ts
9338
-
9339
- var frameName = null;
9340
- /* harmony default export */ var frame_fc = (new FC(frameName, window.parent));
9341
- ;// CONCATENATED MODULE: ./src/frames/helpers/frame-init.ts
9342
-
9343
-
9344
-
9345
-
9346
- function initializeFrame() {
9347
- var waitForOtherFrames = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
9348
- var initialState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9349
-
9350
- if (!waitForOtherFrames) {
9351
- return promise_default().resolve(true);
9352
- }
9353
-
9354
- return new (promise_default())(function (resolve) {
9355
- var timeout;
9356
- var handlerRef;
9357
-
9358
- var initMessageHandler = function initMessageHandler(type) {
9359
- if (type === ALL_FRAMES_LOADED) {
9360
- frame_fc.removeEventListener(handlerRef);
9361
- clearTimeout(timeout);
9362
- resolve(true);
9363
- }
9364
- };
9365
-
9366
- timeout = window.setTimeout(function () {
9367
- frame_fc.removeEventListener(handlerRef);
9368
- (0,errors/* warn */.Z)("".concat(null, " frame never received all frames loaded"));
9369
- resolve(false);
9370
- }, DEFAULT_CONNECTION_TIMEOUT);
9371
- handlerRef = frame_fc.addEventListener(initMessageHandler);
9372
- frame_fc.postMessage("".concat(null, "_INIT"), initialState);
9373
- });
9374
- }
9375
- function addCustomStyles(styles, hasUICustomization) {
9376
- if (!styles) {
9377
- return;
9378
- }
9379
-
9380
- if (!hasUICustomization) {
9381
- warn("UI Customization is not available in your feature set.");
9382
- return;
9383
- }
9384
-
9385
- var styleSheet = document.createElement("style");
9386
- styleSheet.type = "text/css";
9387
- styleSheet.appendChild(document.createTextNode(styles)); // Append the stylesheet to the head of the document
9388
-
9389
- document.head.appendChild(styleSheet);
9390
- }
9391
9338
  ;// CONCATENATED MODULE: ./src/frames/lib/safe-storage/index.ts
9392
9339
 
9393
9340
 
@@ -9494,501 +9441,6 @@ var SafeStorage = /*#__PURE__*/function () {
9494
9441
  }();
9495
9442
  var safeLocalStorage = new SafeStorage(StorageTypes.Local);
9496
9443
  var safeSessionStorage = new SafeStorage(StorageTypes.Session);
9497
- ;// CONCATENATED MODULE: ./src/frames/helpers/storage/index.ts
9498
-
9499
- var PERSISTENCE_NORMAL = "normal";
9500
- var PERSISTENCE_SESSION = "session";
9501
- /**
9502
- * Retrieves items from local or session storage, depending on the client's
9503
- * persistence setting. If privateMode is set, it returns null.
9504
- */
9505
-
9506
- function retrieveStorage(key, client, privateMode) {
9507
- var persistence = client.persistence;
9508
-
9509
- if (privateMode) {
9510
- return null;
9511
- }
9512
-
9513
- if (persistence === PERSISTENCE_NORMAL) {
9514
- return safeLocalStorage.getItem(key);
9515
- }
9516
-
9517
- if (persistence === PERSISTENCE_SESSION) {
9518
- return safeSessionStorage.getItem(key);
9519
- }
9520
-
9521
- return null;
9522
- }
9523
- ;// CONCATENATED MODULE: ./src/frames/lib/store-proxy.ts
9524
-
9525
-
9526
- var store = {
9527
- get: function get(key) {
9528
- return frame_fc.fetch(GET_EVENT, GET_RESPONSE_EVENT, {
9529
- key: key
9530
- });
9531
- },
9532
- getState: function getState() {
9533
- return frame_fc.fetch(GET_STATE_EVENT, GET_STATE_RESPONSE_EVENT);
9534
- },
9535
- dispatch: function dispatch(actionKey, payload) {
9536
- return frame_fc.fetch(DISPATCH_EVENT, DISPATCH_RESPONSE_EVENT, {
9537
- actionKey: actionKey,
9538
- payload: payload
9539
- });
9540
- },
9541
- subscribe: function subscribe(callback) {
9542
- frame_fc.addEventListener(function (type, payload) {
9543
- if (type === STATE_CHANGE_EVENT) {
9544
- callback(payload);
9545
- }
9546
- });
9547
- }
9548
- };
9549
- ;// CONCATENATED MODULE: ./node_modules/@sentry/core/esm/sdk.js
9550
-
9551
-
9552
- /**
9553
- * Internal function to create a new SDK client instance. The client is
9554
- * installed and then bound to the current scope.
9555
- *
9556
- * @param clientClass The client class to instantiate.
9557
- * @param options Options to pass to the client.
9558
- */
9559
- function initAndBind(clientClass, options) {
9560
- var _a;
9561
- if (options.debug === true) {
9562
- logger_logger.enable();
9563
- }
9564
- var hub = hub_getCurrentHub();
9565
- (_a = hub.getScope()) === null || _a === void 0 ? void 0 : _a.update(options.initialScope);
9566
- var client = new clientClass(options);
9567
- hub.bindClient(client);
9568
- }
9569
- //# sourceMappingURL=sdk.js.map
9570
- ;// CONCATENATED MODULE: ./node_modules/@sentry/browser/esm/sdk.js
9571
-
9572
-
9573
-
9574
-
9575
-
9576
-
9577
- var defaultIntegrations = [
9578
- new InboundFilters(),
9579
- new FunctionToString(),
9580
- new TryCatch(),
9581
- new Breadcrumbs(),
9582
- new GlobalHandlers(),
9583
- new LinkedErrors(),
9584
- new Dedupe(),
9585
- new UserAgent(),
9586
- ];
9587
- /**
9588
- * The Sentry Browser SDK Client.
9589
- *
9590
- * To use this SDK, call the {@link init} function as early as possible when
9591
- * loading the web page. To set context information or send manual events, use
9592
- * the provided methods.
9593
- *
9594
- * @example
9595
- *
9596
- * ```
9597
- *
9598
- * import { init } from '@sentry/browser';
9599
- *
9600
- * init({
9601
- * dsn: '__DSN__',
9602
- * // ...
9603
- * });
9604
- * ```
9605
- *
9606
- * @example
9607
- * ```
9608
- *
9609
- * import { configureScope } from '@sentry/browser';
9610
- * configureScope((scope: Scope) => {
9611
- * scope.setExtra({ battery: 0.7 });
9612
- * scope.setTag({ user_mode: 'admin' });
9613
- * scope.setUser({ id: '4711' });
9614
- * });
9615
- * ```
9616
- *
9617
- * @example
9618
- * ```
9619
- *
9620
- * import { addBreadcrumb } from '@sentry/browser';
9621
- * addBreadcrumb({
9622
- * message: 'My Breadcrumb',
9623
- * // ...
9624
- * });
9625
- * ```
9626
- *
9627
- * @example
9628
- *
9629
- * ```
9630
- *
9631
- * import * as Sentry from '@sentry/browser';
9632
- * Sentry.captureMessage('Hello, world!');
9633
- * Sentry.captureException(new Error('Good bye'));
9634
- * Sentry.captureEvent({
9635
- * message: 'Manual',
9636
- * stacktrace: [
9637
- * // ...
9638
- * ],
9639
- * });
9640
- * ```
9641
- *
9642
- * @see {@link BrowserOptions} for documentation on configuration options.
9643
- */
9644
- function init(options) {
9645
- if (options === void 0) { options = {}; }
9646
- if (options.defaultIntegrations === undefined) {
9647
- options.defaultIntegrations = defaultIntegrations;
9648
- }
9649
- if (options.release === undefined) {
9650
- var window_1 = (0,misc/* getGlobalObject */.Rf)();
9651
- // This supports the variable that sentry-webpack-plugin injects
9652
- if (window_1.SENTRY_RELEASE && window_1.SENTRY_RELEASE.id) {
9653
- options.release = window_1.SENTRY_RELEASE.id;
9654
- }
9655
- }
9656
- if (options.autoSessionTracking === undefined) {
9657
- options.autoSessionTracking = true;
9658
- }
9659
- initAndBind(BrowserClient, options);
9660
- if (options.autoSessionTracking) {
9661
- startSessionTracking();
9662
- }
9663
- }
9664
- /**
9665
- * Present the user with a report dialog.
9666
- *
9667
- * @param options Everything is optional, we try to fetch all info need from the global scope.
9668
- */
9669
- function showReportDialog(options) {
9670
- if (options === void 0) { options = {}; }
9671
- var hub = getCurrentHub();
9672
- var scope = hub.getScope();
9673
- if (scope) {
9674
- options.user = __assign(__assign({}, scope.getUser()), options.user);
9675
- }
9676
- if (!options.eventId) {
9677
- options.eventId = hub.lastEventId();
9678
- }
9679
- var client = hub.getClient();
9680
- if (client) {
9681
- client.showReportDialog(options);
9682
- }
9683
- }
9684
- /**
9685
- * This is the getter for lastEventId.
9686
- *
9687
- * @returns The last event id of a captured event.
9688
- */
9689
- function lastEventId() {
9690
- return getCurrentHub().lastEventId();
9691
- }
9692
- /**
9693
- * This function is here to be API compatible with the loader.
9694
- * @hidden
9695
- */
9696
- function forceLoad() {
9697
- // Noop
9698
- }
9699
- /**
9700
- * This function is here to be API compatible with the loader.
9701
- * @hidden
9702
- */
9703
- function onLoad(callback) {
9704
- callback();
9705
- }
9706
- /**
9707
- * Call `flush()` on the current client, if there is one. See {@link Client.flush}.
9708
- *
9709
- * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause
9710
- * the client to wait until all events are sent before resolving the promise.
9711
- * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it
9712
- * doesn't (or if there's no client defined).
9713
- */
9714
- function flush(timeout) {
9715
- var client = getCurrentHub().getClient();
9716
- if (client) {
9717
- return client.flush(timeout);
9718
- }
9719
- logger.warn('Cannot flush events. No client defined.');
9720
- return SyncPromise.resolve(false);
9721
- }
9722
- /**
9723
- * Call `close()` on the current client, if there is one. See {@link Client.close}.
9724
- *
9725
- * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this
9726
- * parameter will cause the client to wait until all events are sent before disabling itself.
9727
- * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it
9728
- * doesn't (or if there's no client defined).
9729
- */
9730
- function sdk_close(timeout) {
9731
- var client = getCurrentHub().getClient();
9732
- if (client) {
9733
- return client.close(timeout);
9734
- }
9735
- logger.warn('Cannot flush events and disable SDK. No client defined.');
9736
- return SyncPromise.resolve(false);
9737
- }
9738
- /**
9739
- * Wrap code within a try/catch block so the SDK is able to capture errors.
9740
- *
9741
- * @param fn A function to wrap.
9742
- *
9743
- * @returns The result of wrapped function call.
9744
- */
9745
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9746
- function sdk_wrap(fn) {
9747
- return internalWrap(fn)();
9748
- }
9749
- /**
9750
- * Enable automatic Session Tracking for the initial page load.
9751
- */
9752
- function startSessionTracking() {
9753
- var window = (0,misc/* getGlobalObject */.Rf)();
9754
- var document = window.document;
9755
- if (typeof document === 'undefined') {
9756
- logger_logger.warn('Session tracking in non-browser environment with @sentry/browser is not supported.');
9757
- return;
9758
- }
9759
- var hub = hub_getCurrentHub();
9760
- // The only way for this to be false is for there to be a version mismatch between @sentry/browser (>= 6.0.0) and
9761
- // @sentry/hub (< 5.27.0). In the simple case, there won't ever be such a mismatch, because the two packages are
9762
- // pinned at the same version in package.json, but there are edge cases where it's possible. See
9763
- // https://github.com/getsentry/sentry-javascript/issues/3207 and
9764
- // https://github.com/getsentry/sentry-javascript/issues/3234 and
9765
- // https://github.com/getsentry/sentry-javascript/issues/3278.
9766
- if (typeof hub.startSession !== 'function' || typeof hub.captureSession !== 'function') {
9767
- return;
9768
- }
9769
- // The session duration for browser sessions does not track a meaningful
9770
- // concept that can be used as a metric.
9771
- // Automatically captured sessions are akin to page views, and thus we
9772
- // discard their duration.
9773
- hub.startSession({ ignoreDuration: true });
9774
- hub.captureSession();
9775
- // We want to create a session for every navigation as well
9776
- addInstrumentationHandler({
9777
- callback: function (_a) {
9778
- var from = _a.from, to = _a.to;
9779
- // Don't create an additional session for the initial route or if the location did not change
9780
- if (from === undefined || from === to) {
9781
- return;
9782
- }
9783
- hub.startSession({ ignoreDuration: true });
9784
- hub.captureSession();
9785
- },
9786
- type: 'history',
9787
- });
9788
- }
9789
- //# sourceMappingURL=sdk.js.map
9790
- ;// CONCATENATED MODULE: ./src/frames/lib/error-tracker.ts
9791
- var _window$location$host;
9792
-
9793
-
9794
-
9795
- var IGNORED_ERRORS = [// This error most likely comes from a browser extension
9796
- /ceCurrentVideo\.currentTime/];
9797
- init({
9798
- dsn: null,
9799
- environment: "production",
9800
- release: "b927fbc53de55016366277a4933b82a271d7aa9b",
9801
- ignoreErrors: IGNORED_ERRORS,
9802
- tracesSampleRate: 0.1,
9803
- autoSessionTracking: false
9804
- });
9805
- setTag("client", (_window$location$host = window.location.hostname) === null || _window$location$host === void 0 ? void 0 : _window$location$host.split(".")[0]);
9806
- setTag("Embed2 Component", null);
9807
- var error_tracker_errorTracker = {
9808
- trackException: function trackException(error) {
9809
- (0,errors/* warn */.Z)(error.message);
9810
- captureException(error);
9811
- },
9812
- addBreadCrumb: function addBreadCrumb(category, message, data) {
9813
- var level = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Severity.Info;
9814
- addBreadcrumb({
9815
- category: category,
9816
- message: message,
9817
- data: data,
9818
- level: level
9819
- });
9820
- }
9821
- };
9822
- /* harmony default export */ var lib_error_tracker = ((/* unused pure expression or super */ null && (error_tracker_errorTracker)));
9823
- ;// CONCATENATED MODULE: ./src/frames/components/x-storage/index.ts
9824
-
9825
-
9826
-
9827
-
9828
-
9829
-
9830
-
9831
-
9832
-
9833
-
9834
-
9835
- var LIVE_CHAT_PENDING_STORAGE_KEY = "liveChatPending";
9836
- var IS_DRAWER_OPEN_STORAGE_KEY = "ada-embed_is-drawer-open";
9837
- var lastDrawerState;
9838
- /**
9839
- * NOTE: If you import this file into any other file
9840
- * it will trigger the init() function below - may cause errors!
9841
- */
9842
-
9843
- /**
9844
- * Auto-opens the chat door if crossWindowPersistence is one, the chatter is in
9845
- * a live chat, and if the drawer was previously opened.
9846
- */
9847
-
9848
- function setIsDrawerOpen() {
9849
- return _setIsDrawerOpen.apply(this, arguments);
9850
- }
9851
- /**
9852
- * Retrieves the chatter token from storage.
9853
- */
9854
-
9855
- function _setIsDrawerOpen() {
9856
- _setIsDrawerOpen = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2() {
9857
- var _yield$store$getState, crossWindowPersistence, client, privateMode, isDrawerOpen, liveChatPending, inLiveChat, liveChatActive;
9858
-
9859
- return regenerator_default().wrap(function _callee2$(_context2) {
9860
- while (1) {
9861
- switch (_context2.prev = _context2.next) {
9862
- case 0:
9863
- _context2.next = 2;
9864
- return store.getState();
9865
-
9866
- case 2:
9867
- _yield$store$getState = _context2.sent;
9868
- crossWindowPersistence = _yield$store$getState.crossWindowPersistence;
9869
- client = _yield$store$getState.client;
9870
- privateMode = _yield$store$getState.privateMode;
9871
- isDrawerOpen = safeSessionStorage.getItem(IS_DRAWER_OPEN_STORAGE_KEY);
9872
- liveChatPending = retrieveStorage(LIVE_CHAT_PENDING_STORAGE_KEY, client, privateMode);
9873
- inLiveChat = retrieveStorage(IN_LIVE_CHAT_STORAGE_KEY, client, privateMode);
9874
- liveChatActive = inLiveChat || liveChatPending;
9875
-
9876
- if (crossWindowPersistence && isDrawerOpen && liveChatActive) {
9877
- store.dispatch(ActionCreators.TOGGLE_CHAT_ACTION);
9878
- }
9879
-
9880
- case 11:
9881
- case "end":
9882
- return _context2.stop();
9883
- }
9884
- }
9885
- }, _callee2);
9886
- }));
9887
- return _setIsDrawerOpen.apply(this, arguments);
9888
- }
9889
-
9890
- function getChatterFromStorage() {
9891
- return _getChatterFromStorage.apply(this, arguments);
9892
- }
9893
- /**
9894
- * Initialization
9895
- */
9896
-
9897
-
9898
- function _getChatterFromStorage() {
9899
- _getChatterFromStorage = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee3() {
9900
- var _yield$store$getState2, privateMode, client;
9901
-
9902
- return regenerator_default().wrap(function _callee3$(_context3) {
9903
- while (1) {
9904
- switch (_context3.prev = _context3.next) {
9905
- case 0:
9906
- _context3.next = 2;
9907
- return store.getState();
9908
-
9909
- case 2:
9910
- _yield$store$getState2 = _context3.sent;
9911
- privateMode = _yield$store$getState2.privateMode;
9912
- client = _yield$store$getState2.client;
9913
- return _context3.abrupt("return", retrieveStorage(CHATTER_STORAGE_KEY, client, Boolean(privateMode)));
9914
-
9915
- case 6:
9916
- case "end":
9917
- return _context3.stop();
9918
- }
9919
- }
9920
- }, _callee3);
9921
- }));
9922
- return _getChatterFromStorage.apply(this, arguments);
9923
- }
9924
-
9925
- (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee() {
9926
- var chatterFromStorage, frameInitialized;
9927
- return regenerator_default().wrap(function _callee$(_context) {
9928
- while (1) {
9929
- switch (_context.prev = _context.next) {
9930
- case 0:
9931
- _context.next = 2;
9932
- return getChatterFromStorage();
9933
-
9934
- case 2:
9935
- chatterFromStorage = _context.sent;
9936
- _context.next = 5;
9937
- return initializeFrame(true, {
9938
- chatterToken: chatterFromStorage || undefined
9939
- });
9940
-
9941
- case 5:
9942
- frameInitialized = _context.sent;
9943
-
9944
- if (frameInitialized) {
9945
- _context.next = 8;
9946
- break;
9947
- }
9948
-
9949
- return _context.abrupt("return");
9950
-
9951
- case 8:
9952
- setIsDrawerOpen();
9953
- /**
9954
- * Listen for FC events
9955
- */
9956
-
9957
- frame_fc.addEventListener(function (type) {
9958
- switch (type) {
9959
- case DELETE_HISTORY_EVENT:
9960
- {
9961
- safeLocalStorage.removeItem(CHATTER_STORAGE_KEY);
9962
- safeSessionStorage.removeItem(CHATTER_STORAGE_KEY);
9963
- safeLocalStorage.removeItem(IN_LIVE_CHAT_STORAGE_KEY);
9964
- safeSessionStorage.removeItem(IN_LIVE_CHAT_STORAGE_KEY);
9965
- break;
9966
- }
9967
-
9968
- default:
9969
- break;
9970
- }
9971
- });
9972
- /**
9973
- * Listen for store changes
9974
- */
9975
-
9976
- store.subscribe(function (state) {
9977
- /**
9978
- * Store isDrawerOpen state in sessionStorage if crossWindowPersistence is enabled
9979
- */
9980
- if (state.isDrawerOpen !== lastDrawerState && state.crossWindowPersistence) {
9981
- safeSessionStorage.setItem(IS_DRAWER_OPEN_STORAGE_KEY, state.isDrawerOpen);
9982
- }
9983
- });
9984
-
9985
- case 11:
9986
- case "end":
9987
- return _context.stop();
9988
- }
9989
- }
9990
- }, _callee);
9991
- }))();
9992
9444
  ;// CONCATENATED MODULE: ./src/client/store/mutations/index.ts
9993
9445
 
9994
9446
 
@@ -10872,7 +10324,7 @@ function triggerCampaignImpl(_ref) {
10872
10324
  });
10873
10325
  }
10874
10326
  }
10875
- var getCampaignToTrigger = function getCampaignToTrigger(adaSettings, chatterToken, marketingCampaigns, options) {
10327
+ var getCampaignToTrigger = function getCampaignToTrigger(adaSettings, marketingCampaigns, options, onlyBasic) {
10876
10328
  var _options$ignoreStatus = options.ignoreStatus,
10877
10329
  ignoreStatus = _options$ignoreStatus === void 0 ? false : _options$ignoreStatus,
10878
10330
  _options$ignoreFreque = options.ignoreFrequency,
@@ -10881,6 +10333,10 @@ var getCampaignToTrigger = function getCampaignToTrigger(adaSettings, chatterTok
10881
10333
  return marketingCampaigns === null || marketingCampaigns === void 0 ? void 0 : find_default()(marketingCampaigns).call(marketingCampaigns, function (campaign) {
10882
10334
  if (campaign.status !== "active" && !ignoreStatus) {
10883
10335
  return false;
10336
+ }
10337
+
10338
+ if (onlyBasic && !campaign.message_text) {
10339
+ return false;
10884
10340
  } // Campaigns with no trigger conditions can only be triggered manually
10885
10341
 
10886
10342
 
@@ -11397,6 +10853,32 @@ var INTRO_IFRAME = "intro";
11397
10853
  var BUTTON_IFRAME = "button";
11398
10854
  var MASK_IFRAME = "drawer-mask";
11399
10855
  var XSTORAGE_IFRAME = "x-storage";
10856
+ ;// CONCATENATED MODULE: ./src/frames/helpers/storage/index.ts
10857
+
10858
+ var PERSISTENCE_NORMAL = "normal";
10859
+ var PERSISTENCE_SESSION = "session";
10860
+ /**
10861
+ * Retrieves items from local or session storage, depending on the client's
10862
+ * persistence setting. If privateMode is set, it returns null.
10863
+ */
10864
+
10865
+ function retrieveStorage(key, client, privateMode) {
10866
+ var persistence = client.persistence;
10867
+
10868
+ if (privateMode) {
10869
+ return null;
10870
+ }
10871
+
10872
+ if (persistence === PERSISTENCE_NORMAL) {
10873
+ return safeLocalStorage.getItem(key);
10874
+ }
10875
+
10876
+ if (persistence === PERSISTENCE_SESSION) {
10877
+ return safeSessionStorage.getItem(key);
10878
+ }
10879
+
10880
+ return null;
10881
+ }
11400
10882
  // EXTERNAL MODULE: ./src/services/logger/index.ts
11401
10883
  var services_logger = __webpack_require__(9517);
11402
10884
  ;// CONCATENATED MODULE: ./src/client/components/IFrame/index.tsx
@@ -11687,13 +11169,15 @@ var ButtonFrame = /*#__PURE__*/function (_Component) {
11687
11169
  return "";
11688
11170
  }
11689
11171
 
11690
- var delayedIsShown = this.state.delayedIsShown; // 56 = (SHADOW BLUR=48) + (2 * SPREAD=8)
11172
+ var delayedIsShown = this.state.delayedIsShown; // 48 = (SHADOW BLUR=40) + (2 * SPREAD=8)
11691
11173
 
11692
- var BOX_SHADOW_BUFFER = client.features.chat_ui_v2 ? 56 : 8;
11174
+ var BOX_SHADOW_BUFFER = client.features.chat_ui_v2 ? 48 : 8;
11693
11175
  var POSITION_FROM_SCREEN_EDGE = 24;
11694
11176
  var buttonSizeWithBuffer = buttonSize + BOX_SHADOW_BUFFER;
11695
11177
  var buttonPosition = POSITION_FROM_SCREEN_EDGE - BOX_SHADOW_BUFFER / 2;
11696
- var frameHeight = buttonSize + BOX_SHADOW_BUFFER;
11178
+ var roundFrameHeight = buttonSize + BOX_SHADOW_BUFFER; // text button has a fixed height of 44px
11179
+
11180
+ var textFrameHeight = 44 + BOX_SHADOW_BUFFER;
11697
11181
  var stylesForHiding = "\n top: -9999px !important;\n left: -9999px !important;\n ";
11698
11182
 
11699
11183
  var styles = concat_default()(_context2 = concat_default()(_context3 = concat_default()(_context4 = concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "\n position: fixed;\n bottom: ".concat(buttonPosition, "px;\n ")).call(_context7, getAlignment(adaSettings), ": ")).call(_context6, buttonPosition, "px;\n z-index: 10000;\n height: ")).call(_context5, buttonSizeWithBuffer, "px;\n width: ")).call(_context4, buttonSizeWithBuffer, "px;\n overflow: hidden;\n visibility: ")).call(_context3, this.isShown ? "visible" : "hidden", ";\n opacity: ")).call(_context2, this.isShown ? "1" : "0", ";\n transition: visibility 200ms ease, opacity 200ms ease;\n ");
@@ -11706,11 +11190,11 @@ var ButtonFrame = /*#__PURE__*/function (_Component) {
11706
11190
  if (buttonStyle === "text") {
11707
11191
  var _context9;
11708
11192
 
11709
- styles += concat_default()(_context9 = "\n width: ".concat(frameWidth, "px;\n height: ")).call(_context9, frameHeight, "px;\n ");
11193
+ styles += concat_default()(_context9 = "\n width: ".concat(frameWidth, "px;\n height: ")).call(_context9, textFrameHeight, "px;\n ");
11710
11194
  } else {
11711
11195
  var _context10;
11712
11196
 
11713
- styles += concat_default()(_context10 = "\n width: ".concat(frameHeight, "px;\n height: ")).call(_context10, frameHeight, "px;\n ");
11197
+ styles += concat_default()(_context10 = "\n width: ".concat(roundFrameHeight, "px;\n height: ")).call(_context10, roundFrameHeight, "px;\n ");
11714
11198
  }
11715
11199
  }
11716
11200
 
@@ -11992,7 +11476,7 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
11992
11476
  adaSettings = _this$props5.adaSettings; // delta is used to determine how much of the button's height should be ignored
11993
11477
  // when spacing the proactive message
11994
11478
 
11995
- var delta = 14;
11479
+ var delta = 3;
11996
11480
  var TEXT_BUTTON_HEIGHT = 44;
11997
11481
  var bottomOffset = (client === null || client === void 0 ? void 0 : (_client$ui_settings3 = client.ui_settings) === null || _client$ui_settings3 === void 0 ? void 0 : (_client$ui_settings3$ = _client$ui_settings3.embed) === null || _client$ui_settings3$ === void 0 ? void 0 : _client$ui_settings3$.style) === "text" ? TEXT_BUTTON_HEIGHT - delta : (client === null || client === void 0 ? void 0 : (_client$chat_button = client.chat_button) === null || _client$chat_button === void 0 ? void 0 : _client$chat_button.size) - delta;
11998
11482
  return concat_default()(_context15 = concat_default()(_context16 = concat_default()(_context17 = "\n box-shadow: none;\n background: none;\n height: ".concat(chatDimensions === null || chatDimensions === void 0 ? void 0 : chatDimensions.height, "px !important;\n width: ")).call(_context17, chatDimensions === null || chatDimensions === void 0 ? void 0 : chatDimensions.width, "px !important;\n ")).call(_context16, getAlignment(adaSettings), ": 0;\n bottom: ")).call(_context15, bottomOffset, "px;\n z-index: 9999;\n ");
@@ -13115,14 +12599,13 @@ var Container = /*#__PURE__*/function (_Component) {
13115
12599
  var useDelay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
13116
12600
  var _this$props8 = this.props,
13117
12601
  adaSettings = _this$props8.adaSettings,
13118
- chatterToken = _this$props8.chatterToken,
13119
12602
  client = _this$props8.client;
13120
12603
 
13121
12604
  if (!hasCampaignsEnabled(client)) {
13122
12605
  return;
13123
12606
  }
13124
12607
 
13125
- var campaignToTrigger = getCampaignToTrigger(adaSettings, chatterToken, client.marketing_campaigns, params);
12608
+ var campaignToTrigger = getCampaignToTrigger(adaSettings, client.marketing_campaigns, params, !client.features.afm_proactive_messaging);
13126
12609
 
13127
12610
  if (campaignToTrigger) {
13128
12611
  if (useDelay) {
@@ -14365,7 +13848,7 @@ window.__AdaEmbedConstructor = Embed;
14365
13848
  /* harmony export */ });
14366
13849
  var isModern = new RegExp("((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(14|(1[5-9]|[2-9]\\d|\\d{3,}))[_.]\\d+(?:[_.]\\d+)?)|((Chromium|Chrome)\\/(92|(9[3-9]|\\d{3,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(14|(1[5-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(91|(9[2-9]|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(91|(9[2-9]|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
14367
13850
  var isProduction = "production" === "production";
14368
- var embed2Version = "b927fbc";
13851
+ var embed2Version = "26ba329";
14369
13852
 
14370
13853
  /***/ }),
14371
13854
 
@@ -23762,7 +23245,7 @@ function _loadEmbed() {
23762
23245
  polyfillVersionString = "legacy";
23763
23246
  }
23764
23247
 
23765
- embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "b927fbc", "/index.js");
23248
+ embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "26ba329", "/index.js");
23766
23249
  }
23767
23250
 
23768
23251
  clientScriptExists = Boolean( true || // The client script is bundled with npm module
@@ -23889,10 +23372,10 @@ function createEmbedObject() {
23889
23372
  handle: adaSettings.handle,
23890
23373
  embedVersion: 2,
23891
23374
  embedSettings: adaSettings,
23892
- version: "1.0.32",
23375
+ version: "1.0.37",
23893
23376
  isNpm: true,
23894
23377
  hostPage: window.location.href,
23895
- commitHash: "b927fbc"
23378
+ commitHash: "26ba329"
23896
23379
  }, {
23897
23380
  sampleRate: 0.01 // 1% of logs will go through
23898
23381
 
@@ -24307,7 +23790,7 @@ function createEmbedObject() {
24307
23790
  }
24308
23791
  ;// CONCATENATED MODULE: ./src/index-npm.ts
24309
23792
 
24310
- Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2396));
23793
+ Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 7054));
24311
23794
  /* harmony default export */ var index_npm = (createEmbedObject());
24312
23795
  }();
24313
23796
  module.exports = __webpack_exports__;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.0.32",
3
+ "version": "1.0.37",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",
@@ -46,7 +46,8 @@
46
46
  "bundle-report-intro:modern": "webpack-bundle-analyzer --port 4204 dist/embed/modern/intro/local/stats.json dist/embed/modern/intro/local",
47
47
  "bundle-report-x-storage:modern": "webpack-bundle-analyzer --port 4205 dist/embed/modern/x-storage/local/stats.json dist/embed/modern/x-storage/local",
48
48
  "bundle-report:modern": "yarn build && run-p bundle-report-entry bundle-report-button:modern bundle-report-client:modern bundle-report-mask:modern bundle-report-intro:modern bundle-report-x-storage:modern",
49
- "prepare": "husky install"
49
+ "prepare": "husky install",
50
+ "check-package-version": "./check-package-version.sh"
50
51
  },
51
52
  "keywords": [],
52
53
  "author": "",