@hazem3500/palette 0.9.119 → 0.9.121
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/NODE.md +12 -0
- package/README.md +3 -2
- package/dist/{account-tokens-ZXA2HQS4.js → account-tokens-W2SBGBUW.js} +1 -1
- package/dist/api.d.ts +2 -0
- package/dist/chunk-HC3P6VXJ.js +1 -0
- package/dist/chunk-HHUTDVTM.js +1 -0
- package/dist/index.js +1 -1
- package/dist/node.mjs +35 -5
- package/dist/{onboarding-6OSADOWE.js → onboarding-WNFR5RLQ.js} +1 -1
- package/dist/postgres/009_user_share_comments.sql +2 -0
- package/dist/react.js +1 -1
- package/dist/server.js +33 -4
- package/dist/setup.js +1 -1
- package/dist/shell-mode-I5OAFZVD.js +1 -0
- package/dist/shell-mode.d.ts +4 -3
- package/dist/types.d.ts +11 -0
- package/package.json +1 -1
- package/server/index.ts +42 -3
- package/server/migrations/0023_user_share_comments.sql +3 -0
- package/server/setup-client.txt +81 -72
- package/server/webhooks.ts +2 -0
- package/src/types.ts +9 -0
- package/dist/chunk-DU7H4TEX.js +0 -1
- package/dist/chunk-UCK64LMS.js +0 -1
- package/dist/shell-mode-RPV7AVA4.js +0 -1
|
@@ -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 l(e,o,l,r){try{let n=sessionStorage.getItem("palette:shell-off");if(n)return r(n);if(o&&!confirm(`Reload in Frame?\n\nUnsaved app changes${l?" and unposted Design changes":""} will be lost.`))return r("Reload cancelled.");let s=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:s,origin:location.origin})),location.replace(a(location.href,s))}catch{return r("Storage blocked.")}setTimeout(r,3e3,"Reload cancelled.")}function r(e,t){try{let o=e.location.href,l=a(o,t);o.startsWith(location.origin)&&l!==location.href&&history.replaceState(history.state,"",l)}catch{}}export{l as enterShell,o as leaveShellPage,a as shellUrl,r as syncShell};
|