@coframe/sdk 1.1.43 → 1.1.44

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.
@@ -4422,6 +4422,12 @@ function startReplayIfEnabled(coframe, project, nonce) {
4422
4422
  var _a;
4423
4423
  const consent = readReplayConsent(settings);
4424
4424
  if (consent.state === 'allowed') {
4425
+ try {
4426
+ queueMonitoringEvent(coframe, createMonitoringPayload(coframe, 'replay_consent_allowed', {
4427
+ source: consent.source,
4428
+ }));
4429
+ }
4430
+ catch (_b) { }
4425
4431
  insertReplayScript(coframe, settings, consent.source, nonce);
4426
4432
  }
4427
4433
  else if (consent.state === 'denied') {
@@ -4443,7 +4449,7 @@ function startReplayIfEnabled(coframe, project, nonce) {
4443
4449
  loadFeatures.call(window.Shopify, [{ name: 'consent-tracking-api', version: '0.1' }], () => { });
4444
4450
  }
4445
4451
  }
4446
- catch (_b) { }
4452
+ catch (_c) { }
4447
4453
  }
4448
4454
  waited += CONSENT_POLL_MS;
4449
4455
  window.setTimeout(decide, CONSENT_POLL_MS);
@@ -4420,6 +4420,12 @@ function startReplayIfEnabled(coframe, project, nonce) {
4420
4420
  var _a;
4421
4421
  const consent = readReplayConsent(settings);
4422
4422
  if (consent.state === 'allowed') {
4423
+ try {
4424
+ queueMonitoringEvent(coframe, createMonitoringPayload(coframe, 'replay_consent_allowed', {
4425
+ source: consent.source,
4426
+ }));
4427
+ }
4428
+ catch (_b) { }
4423
4429
  insertReplayScript(coframe, settings, consent.source, nonce);
4424
4430
  }
4425
4431
  else if (consent.state === 'denied') {
@@ -4441,7 +4447,7 @@ function startReplayIfEnabled(coframe, project, nonce) {
4441
4447
  loadFeatures.call(window.Shopify, [{ name: 'consent-tracking-api', version: '0.1' }], () => { });
4442
4448
  }
4443
4449
  }
4444
- catch (_b) { }
4450
+ catch (_c) { }
4445
4451
  }
4446
4452
  waited += CONSENT_POLL_MS;
4447
4453
  window.setTimeout(decide, CONSENT_POLL_MS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coframe/sdk",
3
- "version": "1.1.43",
3
+ "version": "1.1.44",
4
4
  "description": "Coframe optimizes your website using generative AI to deliver maximum impact to your audience and allow your site to improve itself as you sleep. Learn more at coframe.com.",
5
5
  "main": "dist/pkg/cf.cjs.js",
6
6
  "module": "dist/pkg/cf.esm.mjs",