@uniformdev/canvas-vue 20.74.6-alpha.2 → 20.74.7-alpha.12

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
@@ -260,8 +260,7 @@ var useUniformContextualEditing = ({
260
260
  };
261
261
  };
262
262
  function getCanvasInContextEmbedScriptUrl() {
263
- const scriptUrl = `${window.document.referrer}files/canvas-in-context-embed/index.js`;
264
- return scriptUrl;
263
+ return new URL("/files/canvas-in-context-embed/index.js", window.document.referrer).toString();
265
264
  }
266
265
  function isInContextEditingMode() {
267
266
  if (typeof window === "undefined") {
package/dist/index.js CHANGED
@@ -295,8 +295,7 @@ var useUniformContextualEditing = ({
295
295
  };
296
296
  };
297
297
  function getCanvasInContextEmbedScriptUrl() {
298
- const scriptUrl = `${window.document.referrer}files/canvas-in-context-embed/index.js`;
299
- return scriptUrl;
298
+ return new URL("/files/canvas-in-context-embed/index.js", window.document.referrer).toString();
300
299
  }
301
300
  function isInContextEditingMode() {
302
301
  if (typeof window === "undefined") {
package/dist/index.mjs CHANGED
@@ -260,8 +260,7 @@ var useUniformContextualEditing = ({
260
260
  };
261
261
  };
262
262
  function getCanvasInContextEmbedScriptUrl() {
263
- const scriptUrl = `${window.document.referrer}files/canvas-in-context-embed/index.js`;
264
- return scriptUrl;
263
+ return new URL("/files/canvas-in-context-embed/index.js", window.document.referrer).toString();
265
264
  }
266
265
  function isInContextEditingMode() {
267
266
  if (typeof window === "undefined") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-vue",
3
- "version": "20.74.6-alpha.2+d9426e9b81",
3
+ "version": "20.74.7-alpha.12+f93a44837e",
4
4
  "description": "Vue SDK for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -29,9 +29,9 @@
29
29
  "apidocs-extract": "api-extractor run --local"
30
30
  },
31
31
  "dependencies": {
32
- "@uniformdev/canvas": "20.74.6-alpha.2+d9426e9b81",
33
- "@uniformdev/context-vue": "20.74.6-alpha.2+d9426e9b81",
34
- "@uniformdev/richtext": "20.74.6-alpha.2+d9426e9b81"
32
+ "@uniformdev/canvas": "20.74.7-alpha.12+f93a44837e",
33
+ "@uniformdev/context-vue": "20.74.7-alpha.12+f93a44837e",
34
+ "@uniformdev/richtext": "20.74.7-alpha.12+f93a44837e"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "vue": ">=3.0.0"
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "d9426e9b81a6943318d903c723f23f3c0cbb17ad"
61
+ "gitHead": "f93a44837e168f8ece4f56657a29a6f72467c1cb"
62
62
  }