@popmelt.com/core 0.25.0 → 0.27.0
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/README.md +8 -0
- package/claude-plugin/.claude-plugin/plugin.json +1 -1
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/dist/{ParticipantRuntime-WZLITXXM.mjs → ParticipantRuntime-AD3YD4FW.mjs} +4 -4
- package/dist/{PopmeltTasteConnectedPane-77Z23N6Y.mjs → PopmeltTasteConnectedPane-HLCTVPJP.mjs} +6 -6
- package/dist/{PreviewRuntime-ATSECGMB.mjs → PreviewRuntime-KGLZJGUN.mjs} +1 -1
- package/dist/adapter-react-three-fiber.d.mts +1 -1
- package/dist/adapter-three.d.mts +6 -0
- package/dist/bridge-entry.mjs +61 -61
- package/dist/{browser-runtime-PC2NODES.mjs → browser-runtime-3JZGB3P2.mjs} +1 -1
- package/dist/browser.d.mts +4 -4
- package/dist/browser.mjs +1 -1
- package/dist/{chunk-FRHGK5ZV.mjs → chunk-7YCLSSQA.mjs} +1 -1
- package/dist/chunk-7YIQQYRU.mjs +77 -0
- package/dist/{chunk-YMJHG3Q6.mjs → chunk-C5Q6LDAS.mjs} +1 -1
- package/dist/chunk-D7HY2EDH.mjs +2 -0
- package/dist/chunk-MDJYUX5S.mjs +370 -0
- package/dist/{chunk-VUJWDJ6C.mjs → chunk-MTRUVFH7.mjs} +1 -1
- package/dist/chunk-TFPKDKDO.mjs +345 -0
- package/dist/{chunk-NXMPY7RX.mjs → chunk-TSY2K45H.mjs} +1 -1
- package/dist/cli.mjs +81 -81
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +1 -1
- package/dist/media.d.mts +3 -3
- package/dist/{participantBootstrap-BQHbHI4r.d.mts → participantBootstrap-QZ3wuqi1.d.mts} +2 -2
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-nuxt.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/{server-6X5YVYKP.mjs → server-MJF4KF26.mjs} +64 -64
- package/dist/server.mjs +64 -64
- package/dist/{subjects-BM3Smdow.d.mts → subjects-CG6UyWFr.d.mts} +6 -0
- package/dist/{video-adapter-Gm5gmoiz.d.mts → video-adapter-DrTI5cRl.d.mts} +1 -1
- package/package.json +25 -23
- package/dist/chunk-RLCNRGNJ.mjs +0 -77
- package/dist/chunk-XIWFG3E4.mjs +0 -345
- package/dist/chunk-YHITBHLH.mjs +0 -370
- package/dist/chunk-ZJPPZLXU.mjs +0 -2
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-
|
|
4
|
-
export { a as CommentMetaContext, b as CommentMetaValue, G as GetCommentMeta, c as PopmeltExtension, d as PopmeltExtensionRuntime, i as isPopmeltPreview } from './participantBootstrap-
|
|
5
|
-
import { I as ImageSubjectAdapterOptions, V as VideoSubjectAdapterOptions } from './video-adapter-
|
|
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-
|
|
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-
|
|
3
|
+
import { P as PopmeltOptions, C as CommentMeta } from './participantBootstrap-QZ3wuqi1.mjs';
|
|
4
|
+
export { a as CommentMetaContext, b as CommentMetaValue, G as GetCommentMeta, c as PopmeltExtension, d as PopmeltExtensionRuntime, i as isPopmeltPreview } from './participantBootstrap-QZ3wuqi1.mjs';
|
|
5
|
+
import { I as ImageSubjectAdapterOptions, V as VideoSubjectAdapterOptions } from './video-adapter-DrTI5cRl.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-CG6UyWFr.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-CG6UyWFr.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-
|
|
2
|
+
export{b as PopmeltProvider}from"./chunk-MDJYUX5S.mjs";export{a as isPopmeltPreview}from"./chunk-EX63NVDN.mjs";import"./chunk-N2ZEZCHO.mjs";export{b as usePopmelt}from"./chunk-J3UIBBU2.mjs";import"./chunk-TFPKDKDO.mjs";import"./chunk-7YIQQYRU.mjs";import"./chunk-TSY2K45H.mjs";import"./chunk-D7HY2EDH.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-
|
|
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-
|
|
3
|
-
import { g as PopmeltSubjectBounds } from './subjects-
|
|
1
|
+
import { d as ImageObjectBox, e as VideoSubjectStore, f as VideoObjectBox } from './video-adapter-DrTI5cRl.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-DrTI5cRl.mjs';
|
|
3
|
+
import { g as PopmeltSubjectBounds } from './subjects-CG6UyWFr.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-
|
|
2
|
-
import { a as ImageRecognitionProvider, b as VideoTrackingProvider, c as VideoSegmentationProvider, I as ImageSubjectAdapterOptions, V as VideoSubjectAdapterOptions } from './video-adapter-
|
|
1
|
+
import { A as Annotation, P as PopmeltSubjectAdapter } from './subjects-CG6UyWFr.mjs';
|
|
2
|
+
import { a as ImageRecognitionProvider, b as VideoTrackingProvider, c as VideoSegmentationProvider, I as ImageSubjectAdapterOptions, V as VideoSubjectAdapterOptions } from './video-adapter-DrTI5cRl.mjs';
|
|
3
3
|
|
|
4
4
|
type CommentMetaValue = null | boolean | number | string | CommentMetaValue[] | {
|
|
5
5
|
[key: string]: CommentMetaValue;
|
package/dist/plugin-astro.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-C5Q6LDAS.mjs";import"./chunk-MTRUVFH7.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;
|
package/dist/plugin-nuxt.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as s,b as l}from"./chunk-
|
|
1
|
+
import{a as s,b as l}from"./chunk-MTRUVFH7.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;
|
package/dist/plugin-vite.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-C5Q6LDAS.mjs";import"./chunk-MTRUVFH7.mjs";import"./chunk-NOHXTT24.mjs";export{a as popmelt};
|