@uniformdev/canvas-react 19.115.1-alpha.7 → 19.116.0

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.esm.js CHANGED
@@ -311,7 +311,7 @@ function getCanvasInContextEmbedScriptUrl() {
311
311
  return scriptUrl;
312
312
  }
313
313
  function isInContextEditingMode() {
314
- if (typeof window === "undefined" || typeof window.location === "undefined") {
314
+ if (typeof window === "undefined") {
315
315
  return false;
316
316
  }
317
317
  const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
package/dist/index.js CHANGED
@@ -343,7 +343,7 @@ function getCanvasInContextEmbedScriptUrl() {
343
343
  return scriptUrl;
344
344
  }
345
345
  function isInContextEditingMode() {
346
- if (typeof window === "undefined" || typeof window.location === "undefined") {
346
+ if (typeof window === "undefined") {
347
347
  return false;
348
348
  }
349
349
  const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
package/dist/index.mjs CHANGED
@@ -311,7 +311,7 @@ function getCanvasInContextEmbedScriptUrl() {
311
311
  return scriptUrl;
312
312
  }
313
313
  function isInContextEditingMode() {
314
- if (typeof window === "undefined" || typeof window.location === "undefined") {
314
+ if (typeof window === "undefined") {
315
315
  return false;
316
316
  }
317
317
  const isOpenedByInContextEditor = new URLSearchParams(window.location.search).has(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-react",
3
- "version": "19.115.1-alpha.7+529dffacba",
3
+ "version": "19.116.0",
4
4
  "description": "React SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -45,10 +45,10 @@
45
45
  "document": "api-extractor run --local"
46
46
  },
47
47
  "dependencies": {
48
- "@uniformdev/canvas": "19.115.1-alpha.7+529dffacba",
49
- "@uniformdev/context": "19.115.1-alpha.7+529dffacba",
50
- "@uniformdev/context-react": "19.115.1-alpha.7+529dffacba",
51
- "@uniformdev/richtext": "19.115.1-alpha.7+529dffacba"
48
+ "@uniformdev/canvas": "19.116.0",
49
+ "@uniformdev/context": "19.116.0",
50
+ "@uniformdev/context-react": "19.116.0",
51
+ "@uniformdev/richtext": "19.116.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": ">= 16 || 17 || 18",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "529dffacba6d44ce172509a18e5571868297d5eb"
68
+ "gitHead": "eb2d8d8485cd6c1d4cb6ea5ad1d4d230405ede2e"
69
69
  }