@hazem3500/palette 0.9.113 → 0.9.115

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.
@@ -1 +0,0 @@
1
- var e="palette-shell",t="palette:shell";function a(t,a){let o=new URL(t,location.href);return o.searchParams.delete("komo-shell"),a?o.searchParams.set(e,a):o.searchParams.delete(e),o.href}function o(e,o=""){try{sessionStorage.removeItem(t),sessionStorage.removeItem("komo:shell"),o&&sessionStorage.setItem("palette:shell-off",o)}catch{}location.replace(a(e,""))}function r(e,o,r,n){if(o&&!confirm(`Reload so the app runs once, in the frame?\n\nUnsaved changes in the app are lost${r?", and so are design changes you haven't posted":""}. Cancel keeps a second copy instead.`))return n();try{let o=Array.from(crypto.getRandomValues(new Uint8Array(16)),e=>e.toString(16).padStart(2,"0")).join("");sessionStorage.setItem(t,JSON.stringify({v:1,project:e,nonce:o,origin:location.origin})),location.replace(a(location.href,o))}catch{return n()}setTimeout(n,3e3)}function n(e,t){try{let o=e.location.href,r=a(o,t);o.startsWith(location.origin)&&r!==location.href&&history.replaceState(history.state,"",r)}catch{}}export{r as enterShell,o as leaveShellPage,a as shellUrl,n as syncShell};