@popmelt.com/core 0.26.0 → 0.27.1

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.
Files changed (37) hide show
  1. package/README.md +8 -0
  2. package/claude-plugin/.claude-plugin/plugin.json +1 -1
  3. package/codex-plugin/.codex-plugin/plugin.json +1 -1
  4. package/dist/{ParticipantRuntime-5WM2XJT7.mjs → ParticipantRuntime-TWGYNKIS.mjs} +4 -4
  5. package/dist/{PopmeltTasteConnectedPane-IXJ2KAPX.mjs → PopmeltTasteConnectedPane-WDF556E2.mjs} +6 -6
  6. package/dist/{PreviewRuntime-ATSECGMB.mjs → PreviewRuntime-KGLZJGUN.mjs} +1 -1
  7. package/dist/adapter-react-three-fiber.d.mts +1 -1
  8. package/dist/adapter-three.d.mts +6 -0
  9. package/dist/bridge-entry.mjs +2 -2
  10. package/dist/{browser-runtime-O5GITMZB.mjs → browser-runtime-PFJI3VEQ.mjs} +1 -1
  11. package/dist/browser.d.mts +4 -4
  12. package/dist/browser.mjs +1 -1
  13. package/dist/chunk-3PVLCKSV.mjs +370 -0
  14. package/dist/chunk-7MGWRICI.mjs +77 -0
  15. package/dist/{chunk-FRHGK5ZV.mjs → chunk-7YCLSSQA.mjs} +1 -1
  16. package/dist/{chunk-7IVK4FEU.mjs → chunk-CLDWTCKX.mjs} +1 -1
  17. package/dist/chunk-D7HY2EDH.mjs +2 -0
  18. package/dist/{chunk-NXMPY7RX.mjs → chunk-TSY2K45H.mjs} +1 -1
  19. package/dist/{chunk-MGIH5NQE.mjs → chunk-YC7B37F6.mjs} +1 -1
  20. package/dist/chunk-YMCTJKYN.mjs +345 -0
  21. package/dist/cli.mjs +2 -2
  22. package/dist/index.d.mts +5 -5
  23. package/dist/index.mjs +1 -1
  24. package/dist/media.d.mts +3 -3
  25. package/dist/{participantBootstrap-BQHbHI4r.d.mts → participantBootstrap-QZ3wuqi1.d.mts} +2 -2
  26. package/dist/plugin-astro.mjs +1 -1
  27. package/dist/plugin-nuxt.mjs +1 -1
  28. package/dist/plugin-vite.mjs +1 -1
  29. package/dist/{server-QHSVIUQW.mjs → server-J5NV3BMT.mjs} +2 -2
  30. package/dist/server.mjs +30 -30
  31. package/dist/{subjects-BM3Smdow.d.mts → subjects-CG6UyWFr.d.mts} +6 -0
  32. package/dist/{video-adapter-Gm5gmoiz.d.mts → video-adapter-DrTI5cRl.d.mts} +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunk-CWVRJOGB.mjs +0 -370
  35. package/dist/chunk-EH5Y2F4E.mjs +0 -77
  36. package/dist/chunk-J2OX47QB.mjs +0 -345
  37. package/dist/chunk-ZJPPZLXU.mjs +0 -2
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{b as m,a as e}from"./chunk-CWVRJOGB.mjs";import"./chunk-EX63NVDN.mjs";import"./chunk-N2ZEZCHO.mjs";import"./chunk-J3UIBBU2.mjs";import"./chunk-J2OX47QB.mjs";import"./chunk-EH5Y2F4E.mjs";import"./chunk-NXMPY7RX.mjs";import"./chunk-ZJPPZLXU.mjs";import{createElement as i}from"react";import{createRoot as p}from"react-dom/client";function n(o,t){let r=p(o);return r.render(i(m,t)),()=>{r.unmount(),e()}}export{n as mountBrowserRuntime};
2
+ import{b as m,a as e}from"./chunk-3PVLCKSV.mjs";import"./chunk-EX63NVDN.mjs";import"./chunk-N2ZEZCHO.mjs";import"./chunk-J3UIBBU2.mjs";import"./chunk-YMCTJKYN.mjs";import"./chunk-7MGWRICI.mjs";import"./chunk-TSY2K45H.mjs";import"./chunk-D7HY2EDH.mjs";import{createElement as i}from"react";import{createRoot as p}from"react-dom/client";function n(o,t){let r=p(o);return r.render(i(m,t)),()=>{r.unmount(),e()}}export{n as mountBrowserRuntime};
@@ -1,7 +1,7 @@
1
- import { P as PopmeltOptions } from './participantBootstrap-BQHbHI4r.mjs';
2
- export { i as isPopmeltPreview } from './participantBootstrap-BQHbHI4r.mjs';
3
- import './subjects-BM3Smdow.mjs';
4
- import './video-adapter-Gm5gmoiz.mjs';
1
+ import { P as PopmeltOptions } from './participantBootstrap-QZ3wuqi1.mjs';
2
+ export { i as isPopmeltPreview } from './participantBootstrap-QZ3wuqi1.mjs';
3
+ import './subjects-CG6UyWFr.mjs';
4
+ import './video-adapter-DrTI5cRl.mjs';
5
5
 
6
6
  type PopmeltMount = {
7
7
  /** Remove this integration's UI and subscriptions; saved work is retained. */
package/dist/browser.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{a as isPopmeltPreview}from"./chunk-EX63NVDN.mjs";var m={unmount(){}},u="[data-popmelt-browser-host]";async function p(o={}){if(!o.enabled||typeof document>"u")return m;if(document.querySelector(`${u}, [data-popmelt-top-layer-host]`))throw new Error("Popmelt is already mounted. Unmount it before mounting again.");let e=document.createElement("div");e.setAttribute("data-popmelt-browser-host",""),e.setAttribute("data-devtools",""),document.documentElement.appendChild(e);let d=[["__POPMELT_PROJECT_ID__",o.projectId],["__POPMELT_BRIDGE_URL__",o.bridgeUrl]].flatMap(([t,r])=>{if(r===void 0)return[];let n=Object.prototype.hasOwnProperty.call(window,t),l=window[t],i=r??void 0;return window[t]=i,[()=>{window[t]===i&&(n?window[t]=l:delete window[t])}]}),a=()=>{e.remove();for(let t of d)t()};try{let{mountBrowserRuntime:t}=await import("./browser-runtime-O5GITMZB.mjs");if(!e.isConnected)throw new Error("Popmelt mount was removed before startup.");let r=t(e,o),n=!0;return{unmount(){if(n){n=!1;try{r()}finally{a()}}}}}catch(t){throw a(),t}}export{p as mountPopmelt};
2
+ export{a as isPopmeltPreview}from"./chunk-EX63NVDN.mjs";var m={unmount(){}},u="[data-popmelt-browser-host]";async function p(o={}){if(!o.enabled||typeof document>"u")return m;if(document.querySelector(`${u}, [data-popmelt-top-layer-host]`))throw new Error("Popmelt is already mounted. Unmount it before mounting again.");let e=document.createElement("div");e.setAttribute("data-popmelt-browser-host",""),e.setAttribute("data-devtools",""),document.documentElement.appendChild(e);let d=[["__POPMELT_PROJECT_ID__",o.projectId],["__POPMELT_BRIDGE_URL__",o.bridgeUrl]].flatMap(([t,r])=>{if(r===void 0)return[];let n=Object.prototype.hasOwnProperty.call(window,t),l=window[t],i=r??void 0;return window[t]=i,[()=>{window[t]===i&&(n?window[t]=l:delete window[t])}]}),a=()=>{e.remove();for(let t of d)t()};try{let{mountBrowserRuntime:t}=await import("./browser-runtime-PFJI3VEQ.mjs");if(!e.isConnected)throw new Error("Popmelt mount was removed before startup.");let r=t(e,o),n=!0;return{unmount(){if(n){n=!1;try{r()}finally{a()}}}}}catch(t){throw a(),t}}export{p as mountPopmelt};