@coframe/sdk 1.1.31 → 1.1.32

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.
@@ -991,7 +991,13 @@ function isDebugToolsSessionEnabled(allowed) {
991
991
  clearDebugToolsSession();
992
992
  return false;
993
993
  }
994
- const enabledByUrl = resolveDebugToolsEntry().kind !== 'none';
994
+ const entry = resolveDebugToolsEntry();
995
+ const enabledByUrl = entry.kind !== 'none';
996
+ const annotationUrlEntry = entry.kind === 'tool' && entry.toolId === 'annotations';
997
+ if (annotationUrlEntry) {
998
+ clearDebugToolsSession();
999
+ return true;
1000
+ }
995
1001
  if (enabledByUrl) {
996
1002
  enableDebugToolsSession();
997
1003
  return true;
@@ -999,6 +1005,8 @@ function isDebugToolsSessionEnabled(allowed) {
999
1005
  try {
1000
1006
  const enabled = window.sessionStorage.getItem(COFRAME_DEBUG_TOOLS_SESSION_STORAGE_KEY) ===
1001
1007
  ENABLED_VALUE;
1008
+ if (!enabled)
1009
+ clearDebugToolsSession();
1002
1010
  return enabled;
1003
1011
  }
1004
1012
  catch (_a) {
@@ -989,7 +989,13 @@ function isDebugToolsSessionEnabled(allowed) {
989
989
  clearDebugToolsSession();
990
990
  return false;
991
991
  }
992
- const enabledByUrl = resolveDebugToolsEntry().kind !== 'none';
992
+ const entry = resolveDebugToolsEntry();
993
+ const enabledByUrl = entry.kind !== 'none';
994
+ const annotationUrlEntry = entry.kind === 'tool' && entry.toolId === 'annotations';
995
+ if (annotationUrlEntry) {
996
+ clearDebugToolsSession();
997
+ return true;
998
+ }
993
999
  if (enabledByUrl) {
994
1000
  enableDebugToolsSession();
995
1001
  return true;
@@ -997,6 +1003,8 @@ function isDebugToolsSessionEnabled(allowed) {
997
1003
  try {
998
1004
  const enabled = window.sessionStorage.getItem(COFRAME_DEBUG_TOOLS_SESSION_STORAGE_KEY) ===
999
1005
  ENABLED_VALUE;
1006
+ if (!enabled)
1007
+ clearDebugToolsSession();
1000
1008
  return enabled;
1001
1009
  }
1002
1010
  catch (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coframe/sdk",
3
- "version": "1.1.31",
3
+ "version": "1.1.32",
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",