@popmelt.com/core 0.24.0 → 0.24.2

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 (34) 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/ParticipantRuntime-6QPULJPO.mjs +139 -0
  4. package/dist/{PreviewRuntime-2SCFCGWC.mjs → PreviewRuntime-NGTLOEX3.mjs} +1 -1
  5. package/dist/adapter-react-three-fiber.d.mts +1 -1
  6. package/dist/bridge-entry.mjs +78 -78
  7. package/dist/{browser-runtime-3Z4U66AP.mjs → browser-runtime-3UZPA2SA.mjs} +1 -1
  8. package/dist/browser.d.mts +4 -4
  9. package/dist/browser.mjs +1 -1
  10. package/dist/chunk-3XSTOVWX.mjs +2 -0
  11. package/dist/chunk-D4ZJC7OV.mjs +301 -0
  12. package/dist/chunk-ENERPQJN.mjs +2 -0
  13. package/dist/{chunk-DHAOAIKK.mjs → chunk-NV55QGKG.mjs} +1 -1
  14. package/dist/{chunk-EUDGPGCQ.mjs → chunk-TJVWZRAF.mjs} +1 -1
  15. package/dist/chunk-ZL4X7KBW.mjs +413 -0
  16. package/dist/cli.mjs +97 -97
  17. package/dist/index.d.mts +5 -5
  18. package/dist/index.mjs +1 -1
  19. package/dist/media.d.mts +3 -3
  20. package/dist/{participantBootstrap-Dqu2h47B.d.mts → participantBootstrap-BQHbHI4r.d.mts} +2 -2
  21. package/dist/plugin-astro.mjs +1 -1
  22. package/dist/plugin-nuxt.mjs +1 -1
  23. package/dist/plugin-vite.mjs +1 -1
  24. package/dist/server-M6OXW7FE.mjs +228 -0
  25. package/dist/server.mjs +81 -81
  26. package/dist/{subjects-DzjWdlAk.d.mts → subjects-BM3Smdow.d.mts} +6 -1
  27. package/dist/{video-adapter-CCLbp86L.d.mts → video-adapter-Gm5gmoiz.d.mts} +1 -1
  28. package/package.json +25 -23
  29. package/dist/ParticipantRuntime-PTBGXKSH.mjs +0 -139
  30. package/dist/chunk-6URDGUIL.mjs +0 -2
  31. package/dist/chunk-BYLH3WFB.mjs +0 -2
  32. package/dist/chunk-C4ONFAGF.mjs +0 -399
  33. package/dist/chunk-M3HCNQ4T.mjs +0 -250
  34. package/dist/server-T4EMCHVP.mjs +0 -228
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as react from 'react';
2
2
  import { PropsWithChildren } from 'react';
3
- import { P as PopmeltOptions, C as CommentMeta } from './participantBootstrap-Dqu2h47B.mjs';
4
- export { a as CommentMetaContext, b as CommentMetaValue, G as GetCommentMeta, c as PopmeltExtension, d as PopmeltExtensionRuntime, i as isPopmeltPreview } from './participantBootstrap-Dqu2h47B.mjs';
5
- import { I as ImageSubjectAdapterOptions, V as VideoSubjectAdapterOptions } from './video-adapter-CCLbp86L.mjs';
6
- import { P as PopmeltSubjectAdapter, A as Annotation, E as ElementInfo, a as AnnotationAttachment, S as SubjectFeedbackAttachment, b as StyleModification, T as TextModification, D as DomModification, c as SpacingTokenChange } from './subjects-DzjWdlAk.mjs';
7
- export { d as AnnotationType, B as BridgeStatus, C as ClaudeResponse, I as ImageObjectContext, O as OpaqueTargetReference, e as Point, f as PopmeltSubject, g as PopmeltSubjectBounds, h as PopmeltSubjectCreationSession, i as PopmeltSubjectOutlinePoint, j as PopmeltSubjectTrackingAnchor, k as PopmeltSurfaceSnapshot, R as ReactSourceLocation, l as StyleChange, m as ToolType, V as VideoObjectContext } from './subjects-DzjWdlAk.mjs';
3
+ import { P as PopmeltOptions, C as CommentMeta } from './participantBootstrap-BQHbHI4r.mjs';
4
+ export { a as CommentMetaContext, b as CommentMetaValue, G as GetCommentMeta, c as PopmeltExtension, d as PopmeltExtensionRuntime, i as isPopmeltPreview } from './participantBootstrap-BQHbHI4r.mjs';
5
+ import { I as ImageSubjectAdapterOptions, V as VideoSubjectAdapterOptions } from './video-adapter-Gm5gmoiz.mjs';
6
+ import { P as PopmeltSubjectAdapter, A as Annotation, E as ElementInfo, a as AnnotationAttachment, S as SubjectFeedbackAttachment, b as StyleModification, T as TextModification, D as DomModification, c as SpacingTokenChange } from './subjects-BM3Smdow.mjs';
7
+ export { d as AnnotationType, B as BridgeStatus, C as ClaudeResponse, I as ImageObjectContext, O as OpaqueTargetReference, e as Point, f as PopmeltSubject, g as PopmeltSubjectBounds, h as PopmeltSubjectCreationSession, i as PopmeltSubjectOutlinePoint, j as PopmeltSubjectTrackingAnchor, k as PopmeltSurfaceSnapshot, R as ReactSourceLocation, l as StyleChange, m as ToolType, V as VideoObjectContext } from './subjects-BM3Smdow.mjs';
8
8
 
9
9
  /** Client-side envelope used for persisted and streaming bridge events. */
10
10
  type BridgeEvent = {
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{b as PopmeltProvider}from"./chunk-M3HCNQ4T.mjs";export{a as isPopmeltPreview}from"./chunk-EX63NVDN.mjs";import"./chunk-N2ZEZCHO.mjs";export{b as usePopmelt}from"./chunk-J3UIBBU2.mjs";import"./chunk-C4ONFAGF.mjs";import"./chunk-6URDGUIL.mjs";
2
+ export{b as PopmeltProvider}from"./chunk-D4ZJC7OV.mjs";export{a as isPopmeltPreview}from"./chunk-EX63NVDN.mjs";import"./chunk-N2ZEZCHO.mjs";export{b as usePopmelt}from"./chunk-J3UIBBU2.mjs";import"./chunk-ZL4X7KBW.mjs";import"./chunk-ENERPQJN.mjs";
package/dist/media.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { d as ImageObjectBox, e as VideoSubjectStore, f as VideoObjectBox } from './video-adapter-CCLbp86L.mjs';
2
- export { B as BrowserImageSubjectStoreOptions, g as ImageContentHasher, h as ImageObjectObservation, a as ImageRecognitionProvider, i as ImageSubjectAdapter, I as ImageSubjectAdapterOptions, j as ImageSubjectStore, P as PersistedImageAnalysis, k as PersistedImageSubject, l as PersistedImageSuppression, m as PersistedVideoAnalysis, n as PersistedVideoTrack, o as VideoBackwardAnalysisOptions, p as VideoBackwardAnalysisResult, q as VideoMotionAttempt, r as VideoMotionPolicy, s as VideoMotionPresenceDecision, t as VideoMotionState, u as VideoSegmentationObservation, v as VideoSegmentationPoint, c as VideoSegmentationProvider, w as VideoSubjectAdapter, V as VideoSubjectAdapterOptions, x as VideoTrackKeyframe, y as VideoTrackObservation, z as VideoTrackSegment, A as VideoTrackSmoother, C as VideoTrackingAnchor, D as VideoTrackingAttempt, b as VideoTrackingProvider, E as VideoTrackingSeed, F as VideoTrackingSession, G as createBrowserImageSubjectStore, H as createImageSubjectAdapter, J as createMemoryImageSubjectStore, K as createVideoSubjectAdapter } from './video-adapter-CCLbp86L.mjs';
3
- import { g as PopmeltSubjectBounds } from './subjects-DzjWdlAk.mjs';
1
+ import { d as ImageObjectBox, e as VideoSubjectStore, f as VideoObjectBox } from './video-adapter-Gm5gmoiz.mjs';
2
+ export { B as BrowserImageSubjectStoreOptions, g as ImageContentHasher, h as ImageObjectObservation, a as ImageRecognitionProvider, i as ImageSubjectAdapter, I as ImageSubjectAdapterOptions, j as ImageSubjectStore, P as PersistedImageAnalysis, k as PersistedImageSubject, l as PersistedImageSuppression, m as PersistedVideoAnalysis, n as PersistedVideoTrack, o as VideoBackwardAnalysisOptions, p as VideoBackwardAnalysisResult, q as VideoMotionAttempt, r as VideoMotionPolicy, s as VideoMotionPresenceDecision, t as VideoMotionState, u as VideoSegmentationObservation, v as VideoSegmentationPoint, c as VideoSegmentationProvider, w as VideoSubjectAdapter, V as VideoSubjectAdapterOptions, x as VideoTrackKeyframe, y as VideoTrackObservation, z as VideoTrackSegment, A as VideoTrackSmoother, C as VideoTrackingAnchor, D as VideoTrackingAttempt, b as VideoTrackingProvider, E as VideoTrackingSeed, F as VideoTrackingSession, G as createBrowserImageSubjectStore, H as createImageSubjectAdapter, J as createMemoryImageSubjectStore, K as createVideoSubjectAdapter } from './video-adapter-Gm5gmoiz.mjs';
3
+ import { g as PopmeltSubjectBounds } from './subjects-BM3Smdow.mjs';
4
4
 
5
5
  declare function unprojectImagePoint(image: HTMLImageElement, clientPoint: {
6
6
  x: number;
@@ -1,5 +1,5 @@
1
- import { A as Annotation, P as PopmeltSubjectAdapter } from './subjects-DzjWdlAk.mjs';
2
- import { a as ImageRecognitionProvider, b as VideoTrackingProvider, c as VideoSegmentationProvider, I as ImageSubjectAdapterOptions, V as VideoSubjectAdapterOptions } from './video-adapter-CCLbp86L.mjs';
1
+ import { A as Annotation, P as PopmeltSubjectAdapter } from './subjects-BM3Smdow.mjs';
2
+ import { a as ImageRecognitionProvider, b as VideoTrackingProvider, c as VideoSegmentationProvider, I as ImageSubjectAdapterOptions, V as VideoSubjectAdapterOptions } from './video-adapter-Gm5gmoiz.mjs';
3
3
 
4
4
  type CommentMetaValue = null | boolean | number | string | CommentMetaValue[] | {
5
5
  [key: string]: CommentMetaValue;
@@ -1,4 +1,4 @@
1
- import{a as o}from"./chunk-DHAOAIKK.mjs";import"./chunk-EUDGPGCQ.mjs";import"./chunk-NOHXTT24.mjs";import{fileURLToPath as d}from"url";function c(t={}){return{name:"popmelt",hooks:{"astro:config:setup"({command:r,config:i,updateConfig:n,injectScript:p}){if(r!=="dev")return;let{client:e=!0,multiplayer:a=!1,...s}=t;n({vite:{plugins:[o({...s,projectRoot:t.projectRoot??d(i.root)})],optimizeDeps:{include:e?["react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client","lucide-react"]:[]}}}),p("page",e?l(a):`
1
+ import{a as o}from"./chunk-NV55QGKG.mjs";import"./chunk-TJVWZRAF.mjs";import"./chunk-NOHXTT24.mjs";import{fileURLToPath as d}from"url";function c(t={}){return{name:"popmelt",hooks:{"astro:config:setup"({command:r,config:i,updateConfig:n,injectScript:p}){if(r!=="dev")return;let{client:e=!0,multiplayer:a=!1,...s}=t;n({vite:{plugins:[o({...s,projectRoot:t.projectRoot??d(i.root)})],optimizeDeps:{include:e?["react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client","lucide-react"]:[]}}}),p("page",e?l(a):`
2
2
  import { bridgeUrl, projectId } from 'virtual:popmelt/bridge';
3
3
  if (bridgeUrl) window.__POPMELT_BRIDGE_URL__ = bridgeUrl;
4
4
  if (projectId) window.__POPMELT_PROJECT_ID__ = projectId;
@@ -1,4 +1,4 @@
1
- import{a as s,b as l}from"./chunk-EUDGPGCQ.mjs";import{b as i}from"./chunk-NOHXTT24.mjs";import{addPluginTemplate as d,defineNuxtModule as m}from"nuxt/kit";var a=m({meta:{name:"@popmelt.com/core/nuxt",configKey:"popmelt"},async setup(o,e){if(!e.options.dev)return;let n={config:{server:e.options.devServer},middlewares:{use(){}}},t=await s({...o,projectRoot:o.projectRoot??e.options.rootDir},n,3e3);if(t.port===null)return;e.hook("vite:extend",({config:p})=>{p.optimizeDeps??={},p.optimizeDeps.include=[...new Set([...p.optimizeDeps.include??[],"react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client","lucide-react"])]});let r=await l(t,n),u=r?i(r):void 0;e.hook("close",async()=>{u?.(),await r?.release()}),d({filename:"popmelt.client.mjs",mode:"client",getContents:()=>`import { defineNuxtPlugin } from '#app';
1
+ import{a as s,b as l}from"./chunk-TJVWZRAF.mjs";import{b as i}from"./chunk-NOHXTT24.mjs";import{addPluginTemplate as d,defineNuxtModule as m}from"nuxt/kit";var a=m({meta:{name:"@popmelt.com/core/nuxt",configKey:"popmelt"},async setup(o,e){if(!e.options.dev)return;let n={config:{server:e.options.devServer},middlewares:{use(){}}},t=await s({...o,projectRoot:o.projectRoot??e.options.rootDir},n,3e3);if(t.port===null)return;e.hook("vite:extend",({config:p})=>{p.optimizeDeps??={},p.optimizeDeps.include=[...new Set([...p.optimizeDeps.include??[],"react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client","lucide-react"])]});let r=await l(t,n),u=r?i(r):void 0;e.hook("close",async()=>{u?.(),await r?.release()}),d({filename:"popmelt.client.mjs",mode:"client",getContents:()=>`import { defineNuxtPlugin } from '#app';
2
2
  export default defineNuxtPlugin((nuxtApp) => {
3
3
  let disposed = false;
4
4
  let mounting;
@@ -1 +1 @@
1
- import{a}from"./chunk-DHAOAIKK.mjs";import"./chunk-EUDGPGCQ.mjs";import"./chunk-NOHXTT24.mjs";export{a as popmelt};
1
+ import{a}from"./chunk-NV55QGKG.mjs";import"./chunk-TJVWZRAF.mjs";import"./chunk-NOHXTT24.mjs";export{a as popmelt};