@popmelt.com/core 0.33.0 → 0.33.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 (85) hide show
  1. package/claude-plugin/.claude-plugin/plugin.json +1 -1
  2. package/codex-plugin/.codex-plugin/plugin.json +1 -1
  3. package/dist/ExploreAttachment-VKCCEIM7.mjs +1 -0
  4. package/dist/ParticipantRuntime-YS5SIZUQ.mjs +1 -0
  5. package/dist/PopmeltTasteConnectedPane-FKIJM3C7.mjs +1 -215
  6. package/dist/PreviewRuntime-LFPK56NW.mjs +1 -2
  7. package/dist/QueuedReplies-ZYUDSTS2.mjs +1 -46
  8. package/dist/SuppliedContext-RWN6UR3K.mjs +1 -2
  9. package/dist/ThreadErrorCard-7J62GD5W.mjs +1 -2
  10. package/dist/ThreadPanel-KVNM67WO.mjs +1 -0
  11. package/dist/adapter-react-three-fiber.mjs +1 -2
  12. package/dist/bridge-entry.mjs +1 -1
  13. package/dist/bridge-recovery-3IQN3U6D.mjs +1 -2
  14. package/dist/bridgeSSEStream-NEYI73TC.mjs +1 -4
  15. package/dist/bridgeWebSocketStream-H3DCP4T3.mjs +1 -2
  16. package/dist/browser-runtime-AP35S5MK.mjs +1 -0
  17. package/dist/browser.mjs +1 -2
  18. package/dist/canvas-chat-note-NHYL3T6J.mjs +1 -2
  19. package/dist/checkFixture-MWBOYIM2.mjs +1 -0
  20. package/dist/chunk-27ADDVGC.mjs +1 -3
  21. package/dist/chunk-2IASPT6L.mjs +1 -2
  22. package/dist/chunk-2P2NUZW7.mjs +1 -2
  23. package/dist/chunk-2VCHBI7Y.mjs +1 -11
  24. package/dist/chunk-2ZJ4FBTG.mjs +1 -2
  25. package/dist/chunk-4LHTPRFY.mjs +1 -2
  26. package/dist/chunk-5K7SACPW.mjs +1 -2
  27. package/dist/chunk-6V2VCKPG.mjs +1 -53
  28. package/dist/chunk-6VXFTT5U.mjs +1 -2
  29. package/dist/chunk-75PQGTKX.mjs +1 -2
  30. package/dist/chunk-BVTLSUQT.mjs +1 -2
  31. package/dist/chunk-CPOYMGYY.mjs +1 -2
  32. package/dist/chunk-DNOKP3JS.mjs +1 -2
  33. package/dist/chunk-EAV2VV2V.mjs +1 -2
  34. package/dist/chunk-EX63NVDN.mjs +1 -2
  35. package/dist/chunk-F5XSNRGT.mjs +1 -2
  36. package/dist/chunk-GASEZICN.mjs +1 -2
  37. package/dist/chunk-H7XMDLGU.mjs +30 -0
  38. package/dist/{chunk-C5WXW6VL.mjs → chunk-HVD5ZG6W.mjs} +1 -1
  39. package/dist/chunk-J3UIBBU2.mjs +1 -2
  40. package/dist/chunk-J4WDYITA.mjs +1 -2
  41. package/dist/chunk-JMMP5JSP.mjs +1 -2
  42. package/dist/chunk-LVEMYZOA.mjs +1 -2
  43. package/dist/chunk-N2QUNHV6.mjs +1 -0
  44. package/dist/chunk-N2ZEZCHO.mjs +1 -2
  45. package/dist/{chunk-HNCV37XO.mjs → chunk-N6JTX4PD.mjs} +1 -1
  46. package/dist/chunk-O4HZP3RP.mjs +1 -2
  47. package/dist/chunk-ODIGT4YJ.mjs +1 -17
  48. package/dist/chunk-PQT5FYN5.mjs +1 -2
  49. package/dist/chunk-PSSHCTJ2.mjs +1 -8
  50. package/dist/chunk-RESPUCV7.mjs +1 -0
  51. package/dist/chunk-SHAIHRV2.mjs +1 -0
  52. package/dist/chunk-V2I7PSJW.mjs +1 -2
  53. package/dist/{chunk-H2UYAUX3.mjs → chunk-VPPVURBR.mjs} +1 -1
  54. package/dist/chunk-W5NIRROD.mjs +1 -7
  55. package/dist/chunk-WHJEKDNP.mjs +1 -2
  56. package/dist/chunk-XKD2ABCO.mjs +1 -7
  57. package/dist/chunk-XTOCFTVW.mjs +1 -2
  58. package/dist/chunk-YLKEDOII.mjs +31 -0
  59. package/dist/chunk-ZHJZPC7U.mjs +1 -2
  60. package/dist/cli.mjs +1 -1
  61. package/dist/codex-note-context-4JYQ437H.mjs +2 -0
  62. package/dist/{codex-project-7VYHYTWO.mjs → codex-project-FA4EK6VR.mjs} +1 -1
  63. package/dist/focus-inspection-VBS5656D.mjs +1 -2
  64. package/dist/index.mjs +1 -2
  65. package/dist/media.mjs +1 -2
  66. package/dist/{peer-client-MTWZG2FB.mjs → peer-client-KJCPXT76.mjs} +1 -1
  67. package/dist/plugin-astro.mjs +1 -1
  68. package/dist/plugin-nuxt.mjs +1 -1
  69. package/dist/plugin-vite.mjs +1 -1
  70. package/dist/server.mjs +1 -1
  71. package/dist/taste-proposal-session-XU4N7RUV.mjs +1 -2
  72. package/dist/workspace-snapshot-RTTXNNUX.mjs +1 -2
  73. package/package.json +1 -1
  74. package/dist/ExploreAttachment-CLFSAWKM.mjs +0 -260
  75. package/dist/ParticipantRuntime-HW3MOZI5.mjs +0 -139
  76. package/dist/ThreadPanel-RJIHV3P6.mjs +0 -197
  77. package/dist/browser-runtime-JJHSKIKD.mjs +0 -2
  78. package/dist/checkFixture-TJDFGPQI.mjs +0 -2
  79. package/dist/chunk-7IJGE5AK.mjs +0 -31
  80. package/dist/chunk-I63OQTCF.mjs +0 -347
  81. package/dist/chunk-J5SC3R5L.mjs +0 -2
  82. package/dist/chunk-PHKDIU3X.mjs +0 -30
  83. package/dist/chunk-XMKYGH62.mjs +0 -142
  84. package/dist/codex-note-context-YHKPQ4WP.mjs +0 -2
  85. /package/dist/{chunk-DMWB3IRD.mjs → chunk-QOJCTLQW.mjs} +0 -0
@@ -1 +1 @@
1
- import{a as t,b as r,c as e,d as a}from"./chunk-DMWB3IRD.mjs";function o(o){let n=o?.basePath??"/popmelt",l={port:null,projectId:null},p="virtual:popmelt/bridge",i=`\0${p}`;return{name:"popmelt",resolveId(t){if(t===p)return i},load(t){if(t===i)return`export const bridgeUrl = ${JSON.stringify(null===l.port?null:`http://localhost:${l.port}`)}; export const projectId = ${JSON.stringify(l.projectId)};`},async configureServer(a){l=await t(o,a,5173),await r(l,a),a.middlewares.use(e(n,()=>l))},transformIndexHtml(){if(null!==l.port)return[{tag:"script",attrs:{type:"text/javascript"},children:a(l),injectTo:"head-prepend"}]}}}export{o as a};
1
+ import{a as t,b as r,c as e,d as a}from"./chunk-QOJCTLQW.mjs";function o(o){let n=o?.basePath??"/popmelt",l={port:null,projectId:null},p="virtual:popmelt/bridge",i=`\0${p}`;return{name:"popmelt",resolveId(t){if(t===p)return i},load(t){if(t===i)return`export const bridgeUrl = ${JSON.stringify(null===l.port?null:`http://localhost:${l.port}`)}; export const projectId = ${JSON.stringify(l.projectId)};`},async configureServer(a){l=await t(o,a,5173),await r(l,a),a.middlewares.use(e(n,()=>l))},transformIndexHtml(){if(null!==l.port)return[{tag:"script",attrs:{type:"text/javascript"},children:a(l),injectTo:"head-prepend"}]}}}export{o as a};
@@ -1,2 +1 @@
1
- "use client";
2
- import{createContext as r,useContext as o}from"react";var t=r(null);function n(){let e=o(t);if(!e)throw new Error("usePopmelt must be used within PopmeltProvider");return e}export{t as a,n as b};
1
+ "use client";import{createContext as r,useContext as e}from"react";var t=r(null);function o(){let r=e(t);if(!r)throw new Error("usePopmelt must be used within PopmeltProvider");return r}export{t as a,o as b};
@@ -1,2 +1 @@
1
- "use client";
2
- import{a as y}from"./chunk-4LHTPRFY.mjs";var f=6,s=256;function u(t,o){if(!Number.isFinite(o.x)||!Number.isFinite(o.y))return[...t];let r=t[t.length-1];return r&&Math.hypot(o.x-r.x,o.y-r.y)<2?[...t]:[...t.length>=s?t.filter((n,l)=>l%2===0):t,{x:o.x,y:o.y}]}function e(t){return{left:Math.min(...t.map(o=>o.x)),top:Math.min(...t.map(o=>o.y)),right:Math.max(...t.map(o=>o.x)),bottom:Math.max(...t.map(o=>o.y))}}function x(t,o){let r=!1;for(let n=0,l=o.length-1;n<o.length;l=n++){let a=o[n],i=o[l];a.y>t.y!=i.y>t.y&&t.x<(i.x-a.x)*(t.y-a.y)/(i.y-a.y)+a.x&&(r=!r)}return r}function m(t,o,r,n=Date.now()){if(t.length<3)return null;let l=e(t);return l.right-l.left<8||l.bottom-l.top<8||h(t).length===0?null:{kind:"lasso",coordinateSpace:"document",points:t.map(a=>({x:a.x+o.x,y:a.y+o.y})),viewport:r,scroll:{...o},capturedAt:n}}function h(t){if(t.length<3)return[];let o=e(t),r=[];for(let n=0;n<8;n++)for(let l=0;l<8;l++){let a={x:o.left+(l+.5)*(o.right-o.left)/8,y:o.top+(n+.5)*(o.bottom-o.top)/8};x(a,t)&&r.push(a)}return r}function p(t,o,r,n=!0){o.length<3||(t.save(),t.beginPath(),o.forEach((l,a)=>a===0?t.moveTo(l.x,l.y):t.lineTo(l.x,l.y)),t.closePath(),t.fillStyle=r,t.globalAlpha*=.07,t.fill("evenodd"),t.restore(),n&&(t.save(),t.strokeStyle=r,t.lineWidth=1,t.setLineDash([...y]),t.stroke(),t.restore()))}export{f as a,u as b,e as c,m as d,h as e,p as f};
1
+ "use client";import{a as t}from"./chunk-4LHTPRFY.mjs";var e=6;function n(t,e){if(!Number.isFinite(e.x)||!Number.isFinite(e.y))return[...t];let n=t[t.length-1];return n&&Math.hypot(e.x-n.x,e.y-n.y)<2?[...t]:[...t.length>=256?t.filter((t,e)=>e%2==0):t,{x:e.x,y:e.y}]}function o(t){return{left:Math.min(...t.map(t=>t.x)),top:Math.min(...t.map(t=>t.y)),right:Math.max(...t.map(t=>t.x)),bottom:Math.max(...t.map(t=>t.y))}}function l(t,e){let n=!1;for(let o=0,l=e.length-1;o<e.length;l=o++){let r=e[o],a=e[l];r.y>t.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(n=!n)}return n}function r(t,e,n,l=Date.now()){if(t.length<3)return null;let r=o(t);return r.right-r.left<8||r.bottom-r.top<8||0===a(t).length?null:{kind:"lasso",coordinateSpace:"document",points:t.map(t=>({x:t.x+e.x,y:t.y+e.y})),viewport:n,scroll:{...e},capturedAt:l}}function a(t){if(t.length<3)return[];let e=o(t),n=[];for(let o=0;o<8;o++)for(let r=0;r<8;r++){let a={x:e.left+(r+.5)*(e.right-e.left)/8,y:e.top+(o+.5)*(e.bottom-e.top)/8};l(a,t)&&n.push(a)}return n}function i(e,n,o,l=!0){n.length<3||(e.save(),e.beginPath(),n.forEach((t,n)=>0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)),e.closePath(),e.fillStyle=o,e.globalAlpha*=.07,e.fill("evenodd"),e.restore(),l&&(e.save(),e.strokeStyle=o,e.lineWidth=1,e.setLineDash([...t]),e.stroke(),e.restore()))}export{e as a,n as b,o as c,r as d,a as e,i as f};
@@ -1,2 +1 @@
1
- "use client";
2
- import{q as p}from"./chunk-6V2VCKPG.mjs";import{g as m}from"./chunk-DNOKP3JS.mjs";var o=!1,f=()=>o;function E(c){o=!0;let t=null,r=!1,a=e=>{let n=e.composedPath()[0];return n instanceof Element&&(n.id==="devtools-canvas"||!p(n)&&!n.closest("[data-taste-editor], [data-taste-navigation]"))},i=e=>{e.preventDefault(),e.stopImmediatePropagation()},l=e=>{t=null,!(e.button!==0||!a(e))&&(t={x:e.clientX,y:e.clientY},r=!1,i(e))},d=e=>{t&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>5&&(r=!0)},u=e=>{t&&i(e)},s=e=>{if(!a(e)||e.button!==0){t=null;return}i(e);let n=!!(t&&!r);if(t=null,!n)return;let w=m(e.clientX,e.clientY);w&&c(w)},v=()=>{t=null};return window.addEventListener("pointerdown",l,!0),window.addEventListener("pointermove",d,!0),window.addEventListener("pointerup",u,!0),window.addEventListener("pointercancel",v,!0),window.addEventListener("click",s,!0),()=>{o=!1,window.removeEventListener("pointerdown",l,!0),window.removeEventListener("pointermove",d,!0),window.removeEventListener("pointerup",u,!0),window.removeEventListener("pointercancel",v,!0),window.removeEventListener("click",s,!0)}}export{f as a,E as b};
1
+ "use client";import{q as e}from"./chunk-6V2VCKPG.mjs";import{g as n}from"./chunk-DNOKP3JS.mjs";var t=!1,i=()=>t;function o(i){t=!0;let o=null,r=!1,d=n=>{let t=n.composedPath()[0];return t instanceof Element&&("devtools-canvas"===t.id||!e(t)&&!t.closest("[data-taste-editor], [data-taste-navigation]"))},a=e=>{e.preventDefault(),e.stopImmediatePropagation()},l=e=>{o=null,0===e.button&&d(e)&&(o={x:e.clientX,y:e.clientY},r=!1,a(e))},s=e=>{o&&Math.hypot(e.clientX-o.x,e.clientY-o.y)>5&&(r=!0)},v=e=>{o&&a(e)},w=e=>{if(!d(e)||0!==e.button)return void(o=null);a(e);let t=!(!o||r);if(o=null,!t)return;let l=n(e.clientX,e.clientY);l&&i(l)},c=()=>{o=null};return window.addEventListener("pointerdown",l,!0),window.addEventListener("pointermove",s,!0),window.addEventListener("pointerup",v,!0),window.addEventListener("pointercancel",c,!0),window.addEventListener("click",w,!0),()=>{t=!1,window.removeEventListener("pointerdown",l,!0),window.removeEventListener("pointermove",s,!0),window.removeEventListener("pointerup",v,!0),window.removeEventListener("pointercancel",c,!0),window.removeEventListener("click",w,!0)}}export{i as a,o as b};
@@ -1,2 +1 @@
1
- "use client";
2
- var n=new WeakMap,a=new WeakMap;function i(t,e){e&&(n.set(t,e),a.set(e,t))}function l(t){let e=n.get(t);return e?.isConnected&&a.get(e)===t?e.getBoundingClientRect():null}export{i as a,l as b};
1
+ "use client";var e=new WeakMap,n=new WeakMap;function t(t,a){a&&(e.set(t,a),n.set(a,t))}function a(t){let a=e.get(t);return a?.isConnected&&n.get(a)===t?a.getBoundingClientRect():null}export{t as a,a as b};