@popmelt.com/core 0.16.0 → 0.18.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/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { PropsWithChildren } from 'react';
3
- import { I as ImageRecognitionProvider, P as PopmeltSubjectAdapter, a as ImageSubjectAdapterOptions, A as Annotation, E as ElementInfo, b as AnnotationAttachment, S as SubjectFeedbackAttachment, c as StyleModification, T as TextModification, D as DomModification, d as SpacingTokenChange } from './image-adapter-D8L8QumX.mjs';
4
- export { e as AnnotationType, B as BridgeStatus, C as ClaudeResponse, f as ImageObjectContext, O as OpaqueTargetReference, g as Point, h as PopmeltSubject, i as PopmeltSubjectBounds, j as PopmeltSubjectCreationSession, k as PopmeltSurfaceSnapshot, R as ReactSourceLocation, l as StyleChange, m as ToolType } from './image-adapter-D8L8QumX.mjs';
3
+ import { I as ImageRecognitionProvider, V as VideoTrackingProvider, P as PopmeltSubjectAdapter, a as ImageSubjectAdapterOptions, b as VideoSubjectAdapterOptions, A as Annotation, E as ElementInfo, c as AnnotationAttachment, S as SubjectFeedbackAttachment, d as StyleModification, T as TextModification, D as DomModification, e as SpacingTokenChange } from './video-adapter-DzNtG67g.mjs';
4
+ export { f as AnnotationType, B as BridgeStatus, C as ClaudeResponse, g as ImageObjectContext, O as OpaqueTargetReference, h as Point, i as PopmeltSubject, j as PopmeltSubjectBounds, k as PopmeltSubjectCreationSession, l as PopmeltSubjectTrackingAnchor, m as PopmeltSurfaceSnapshot, R as ReactSourceLocation, n as StyleChange, o as ToolType, p as VideoObjectContext } from './video-adapter-DzNtG67g.mjs';
5
5
 
6
6
  /** Client-side envelope used for persisted and streaming bridge events. */
7
7
  type BridgeEvent = {
@@ -13,6 +13,8 @@ type BridgeEvent = {
13
13
  type PopmeltExtensionRuntime = {
14
14
  /** Optional perception contribution for Core's built-in image adapter. */
15
15
  imageRecognition?: ImageRecognitionProvider;
16
+ /** Optional perception contribution for Core's built-in video adapter. */
17
+ videoTracking?: VideoTrackingProvider;
16
18
  /** Optional non-DOM subject adapters contributed by the extension. */
17
19
  subjectAdapters?: readonly PopmeltSubjectAdapter[];
18
20
  /** Release extension-owned resources. */
@@ -29,6 +31,8 @@ type PopmeltExtension = {
29
31
 
30
32
  type ImageAnnotationOptions = Omit<ImageSubjectAdapterOptions, 'id'>;
31
33
 
34
+ type VideoAnnotationOptions = Omit<VideoSubjectAdapterOptions, 'id'>;
35
+
32
36
  declare global {
33
37
  interface Window {
34
38
  __POPMELT_BRIDGE_URL__?: string;
@@ -53,8 +57,10 @@ type PopmeltProviderProps = PropsWithChildren<{
53
57
  extensions?: readonly PopmeltExtension[];
54
58
  /** Manual image annotation is enabled by default; false disables the built-in adapter. */
55
59
  imageAnnotation?: boolean | ImageAnnotationOptions;
60
+ /** Manual video annotation is on by default; See may contribute tracking. */
61
+ videoAnnotation?: boolean | VideoAnnotationOptions;
56
62
  }>;
57
- declare function PopmeltProvider({ children, enabled, bridgeUrl, projectId: projectIdProp, navigate: navigateProp, subjectAdapters, extensions, imageAnnotation, }: PopmeltProviderProps): react.JSX.Element;
63
+ declare function PopmeltProvider({ children, enabled, bridgeUrl, projectId: projectIdProp, navigate: navigateProp, subjectAdapters, extensions, imageAnnotation, videoAnnotation, }: PopmeltProviderProps): react.JSX.Element;
58
64
  declare function usePopmelt(): PopmeltContextValue;
59
65
 
60
66
  type AnnotationData = {
@@ -68,6 +74,7 @@ type AnnotationData = {
68
74
  imageCount?: number;
69
75
  attachments?: AnnotationAttachment[];
70
76
  subjectFeedback?: SubjectFeedbackAttachment;
77
+ interactionEpisode?: Annotation['interactionEpisode'];
71
78
  };
72
79
  type FeedbackData = {
73
80
  timestamp: string;
@@ -88,4 +95,4 @@ type FeedbackData = {
88
95
  spacingTokenChanges?: SpacingTokenChange[];
89
96
  };
90
97
 
91
- export { Annotation, type BridgeEvent, ElementInfo, type FeedbackData, type ImageAnnotationOptions, type PopmeltExtension, type PopmeltExtensionRuntime, PopmeltProvider, type PopmeltProviderProps, PopmeltSubjectAdapter, StyleModification, usePopmelt };
98
+ export { Annotation, type BridgeEvent, ElementInfo, type FeedbackData, type ImageAnnotationOptions, type PopmeltExtension, type PopmeltExtensionRuntime, PopmeltProvider, type PopmeltProviderProps, PopmeltSubjectAdapter, StyleModification, type VideoAnnotationOptions, usePopmelt };