@coframe/sdk 1.1.51 → 1.1.52

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.
@@ -4806,6 +4806,14 @@ function readReplayConsent(settings) {
4806
4806
  if (shopify === undefined) {
4807
4807
  if (readUsPrivacy() === 'denied')
4808
4808
  return { state: 'denied', reason: 'consent_denied' };
4809
+ if (isWaitingForCookies()) {
4810
+ const signal = readClientCommand();
4811
+ if (signal === 'granted')
4812
+ return { state: 'allowed', source: 'client' };
4813
+ if (signal === 'denied')
4814
+ return { state: 'denied', reason: 'consent_denied' };
4815
+ return { state: 'pending', detected: true };
4816
+ }
4809
4817
  const readers = [
4810
4818
  [readClientCommand, 'client'],
4811
4819
  [readOneTrust, 'onetrust'],
@@ -4804,6 +4804,14 @@ function readReplayConsent(settings) {
4804
4804
  if (shopify === undefined) {
4805
4805
  if (readUsPrivacy() === 'denied')
4806
4806
  return { state: 'denied', reason: 'consent_denied' };
4807
+ if (isWaitingForCookies()) {
4808
+ const signal = readClientCommand();
4809
+ if (signal === 'granted')
4810
+ return { state: 'allowed', source: 'client' };
4811
+ if (signal === 'denied')
4812
+ return { state: 'denied', reason: 'consent_denied' };
4813
+ return { state: 'pending', detected: true };
4814
+ }
4807
4815
  const readers = [
4808
4816
  [readClientCommand, 'client'],
4809
4817
  [readOneTrust, 'onetrust'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coframe/sdk",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
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",