@decocms/blocks 7.44.0 → 7.46.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/blocks",
3
- "version": "7.44.0",
3
+ "version": "7.46.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24"
@@ -39,10 +39,11 @@ function LiveControlsScript() {
39
39
  if (window.__DECO_LIVE_CONTROLS__) return;
40
40
  window.__DECO_LIVE_CONTROLS__ = true;
41
41
 
42
- var TRUSTED_ORIGINS = ["https://deco.cx", "https://admin.deco.cx", "https://play.deco.cx"];
42
+ var TRUSTED_ORIGINS = ["https://deco.cx", "https://admin.deco.cx", "https://play.deco.cx", "https://decocms.com", "https://studio.decocms.com"];
43
43
  function isTrustedOrigin(origin) {
44
44
  return TRUSTED_ORIGINS.indexOf(origin) !== -1 ||
45
45
  (origin.startsWith("https://") && origin.endsWith(".deco.cx")) ||
46
+ (origin.startsWith("https://") && origin.endsWith(".decocms.com")) ||
46
47
  origin === window.location.origin;
47
48
  }
48
49
 
@@ -100,12 +101,12 @@ function LiveControlsScript() {
100
101
  var pageId = (window.LIVE.page && window.LIVE.page.id) || "";
101
102
  var pathTemplate = (window.LIVE.page && window.LIVE.page.pathTemplate) || "/*";
102
103
 
103
- var href = new URL("/choose-editor", "https://admin.deco.cx");
104
+ var href = new URL("/choose-editor", "https://studio.decocms.com");
104
105
  href.searchParams.set("site", siteName);
105
106
  href.searchParams.set("domain", window.location.origin);
106
107
  if (pageId) href.searchParams.set("pageId", pageId);
107
- href.searchParams.set("path", encodeURIComponent(window.location.pathname + window.location.search));
108
- href.searchParams.set("pathTemplate", encodeURIComponent(pathTemplate));
108
+ href.searchParams.set("path", window.location.pathname + window.location.search);
109
+ href.searchParams.set("pathTemplate", pathTemplate);
109
110
 
110
111
  if ((e.ctrlKey || e.metaKey) && e.key === ".") {
111
112
  window.open(href.toString(), "_blank");