@popmelt.com/core 0.18.0 → 0.18.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.
- package/README.md +99 -0
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/dist/adapter-react-three-fiber.d.mts +36 -0
- package/dist/adapter-react-three-fiber.mjs +2 -0
- package/dist/adapter-three.d.mts +2 -0
- package/dist/adapter-three.mjs +1 -1
- package/dist/bridge-entry.mjs +54 -54
- package/dist/chunk-J3UIBBU2.mjs +2 -0
- package/dist/{chunk-RS3XXK26.mjs → chunk-RH6W4F2W.mjs} +1 -1
- package/dist/{chunk-GQOEG3E5.mjs → chunk-UC34UP4S.mjs} +1 -1
- package/dist/cli.mjs +74 -74
- package/dist/index.d.mts +36 -8
- package/dist/index.mjs +40 -40
- package/dist/media.d.mts +3 -2
- package/dist/media.mjs +1 -1
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-vite.mjs +1 -1
- package/dist/{server-MUVH7FWR.mjs → server-PV5AVWEM.mjs} +56 -56
- package/dist/server.d.mts +2 -2
- package/dist/server.mjs +56 -56
- package/dist/{video-adapter-DzNtG67g.d.mts → subjects-CeqtFged.d.mts} +1 -337
- package/dist/video-adapter-Gq8saCDn.d.mts +339 -0
- package/package.json +14 -4
package/dist/media.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { c as ImageObjectBox, d as VideoSubjectStore, e as VideoObjectBox } from './video-adapter-Gq8saCDn.mjs';
|
|
2
|
+
export { B as BrowserImageSubjectStoreOptions, f as ImageContentHasher, g as ImageObjectObservation, I as ImageRecognitionProvider, h as ImageSubjectAdapter, a as ImageSubjectAdapterOptions, i as ImageSubjectStore, P as PersistedImageAnalysis, j as PersistedImageSubject, k as PersistedImageSuppression, l as PersistedVideoAnalysis, m as PersistedVideoTrack, n as VideoBackwardAnalysisOptions, o as VideoBackwardAnalysisResult, p as VideoMotionAttempt, q as VideoMotionPolicy, r as VideoMotionPresenceDecision, s as VideoMotionState, t as VideoSubjectAdapter, b as VideoSubjectAdapterOptions, u as VideoTrackKeyframe, v as VideoTrackObservation, w as VideoTrackSegment, x as VideoTrackSmoother, y as VideoTrackingAnchor, z as VideoTrackingAttempt, V as VideoTrackingProvider, A as VideoTrackingSeed, C as VideoTrackingSession, D as createBrowserImageSubjectStore, E as createImageSubjectAdapter, F as createMemoryImageSubjectStore, G as createVideoSubjectAdapter } from './video-adapter-Gq8saCDn.mjs';
|
|
3
|
+
import { g as PopmeltSubjectBounds } from './subjects-CeqtFged.mjs';
|
|
3
4
|
|
|
4
5
|
declare function unprojectImagePoint(image: HTMLImageElement, clientPoint: {
|
|
5
6
|
x: number;
|
package/dist/media.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as e,b as o,c as t,d as r,e as i,f as a,g as c,h as d,i as p,j as s,k as n,l as m,m as S,n as j}from"./chunk-
|
|
2
|
+
import{a as e,b as o,c as t,d as r,e as i,f as a,g as c,h as d,i as p,j as s,k as n,l as m,m as S,n as j}from"./chunk-RH6W4F2W.mjs";export{a as ImageSubjectAdapter,n as VideoSubjectAdapter,r as createBrowserImageSubjectStore,S as createBrowserVideoSubjectStore,c as createImageSubjectAdapter,i as createMemoryImageSubjectStore,j as createMemoryVideoSubjectStore,m as createVideoSubjectAdapter,t as projectImageObjectBox,p as projectVideoObjectBox,o as unprojectImageObjectBounds,e as unprojectImagePoint,s as unprojectVideoObjectBounds,d as unprojectVideoPoint};
|
package/dist/plugin-astro.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p,b as d,c as l,d as g}from"./chunk-
|
|
1
|
+
import{a as p,b as d,c as l,d as g}from"./chunk-UC34UP4S.mjs";import"./chunk-NOHXTT24.mjs";import{Buffer as c}from"buffer";function u(e){return typeof e=="string"?e:e instanceof Uint8Array?c.from(e).toString("utf8"):String(e??"")}function m(e,t,r){let o=e.url||"";if(r.port===null||!(e.headers.accept?.includes("text/html")||o==="/"||o.endsWith(".html")))return;let a=t.write.bind(t),s=t.end.bind(t),n="";t.write=(i=>(n+=u(i),!0)),t.end=(i=>(i!==void 0&&(n+=u(i)),n=n.replace("<head>",`<head><script type="text/javascript">${g(r)}</script>`),t.getHeader("content-length")&&t.setHeader("content-length",c.byteLength(n)),a(n,"utf8"),s()))}function y(e){let t=e?.basePath??"/popmelt",r={port:null,projectId:null};return{name:"popmelt",hooks:{async"astro:server:setup"({server:o}){r=await p(e,o,4321),await d(r,o);let a=l(t,()=>r);o.middlewares.use((s,n,i)=>{if((s.url||"").startsWith(t))return a(s,n,i);m(s,n,r),i()})}}}}export{y as popmelt};
|
package/dist/plugin-vite.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n,b as i,c as o,d as a}from"./chunk-
|
|
1
|
+
import{a as n,b as i,c as o,d as a}from"./chunk-UC34UP4S.mjs";import"./chunk-NOHXTT24.mjs";function s(r){let d=r?.basePath??"/popmelt",e={port:null,projectId:null};return{name:"popmelt",async configureServer(t){e=await n(r,t,5173),await i(e,t),t.middlewares.use(o(d,()=>e))},transformIndexHtml(){if(e.port!==null)return[{tag:"script",attrs:{type:"text/javascript"},children:a(e),injectTo:"head-prepend"}]}}}export{s as popmelt};
|