@popmelt.com/core 0.8.4 → 0.8.6

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
@@ -23,14 +23,16 @@ type PopmeltProviderProps = PropsWithChildren<{
23
23
  declare function PopmeltProvider({ children, enabled, bridgeUrl, projectId: projectIdProp, navigate: navigateProp, }: PopmeltProviderProps): react.JSX.Element;
24
24
  declare function usePopmelt(): PopmeltContextValue;
25
25
 
26
- type AnnotationLifecycleStatus = 'pending' | 'in_flight' | 'resolved' | 'needs_review' | 'dismissed' | 'waiting_input';
26
+ type AnnotationLifecycleStatus = 'pending' | 'sending' | 'in_flight' | 'resolved' | 'needs_review' | 'dismissed' | 'waiting_input' | 'failed';
27
27
  type ScopeBreadth = 'instance' | 'pattern';
28
28
  type ScopeTarget = 'element' | 'component' | 'token';
29
29
  type Scope = {
30
30
  breadth: ScopeBreadth;
31
31
  target: ScopeTarget;
32
32
  };
33
- type ToolType = 'freehand' | 'line' | 'rectangle' | 'circle' | 'text' | 'inspector' | 'hand' | 'eval' | 'model';
33
+ declare const TOOL_TYPES: readonly ["freehand", "line", "rectangle", "circle", "inspector", "hand", "eval", "model"];
34
+ type ToolType = (typeof TOOL_TYPES)[number];
35
+ type AnnotationType = ToolType | 'text';
34
36
  type Point = {
35
37
  x: number;
36
38
  y: number;
@@ -109,7 +111,7 @@ type SpacingTokenChange = {
109
111
  };
110
112
  type Annotation = {
111
113
  id: string;
112
- type: ToolType;
114
+ type: AnnotationType;
113
115
  points: Point[];
114
116
  color: string;
115
117
  strokeWidth: number;
@@ -123,6 +125,7 @@ type Annotation = {
123
125
  resolutionSummary?: string;
124
126
  scope?: Scope | null;
125
127
  replyCount?: number;
128
+ replyJobIds?: string[];
126
129
  threadId?: string;
127
130
  pathname?: string;
128
131
  elements?: ElementInfo[];
@@ -175,4 +178,4 @@ type FeedbackData = {
175
178
  spacingTokenChanges?: SpacingTokenChange[];
176
179
  };
177
180
 
178
- export { type Annotation, type BridgeEvent, type BridgeStatus, type ClaudeResponse, type ElementInfo, type FeedbackData, type Point, PopmeltProvider, type StyleChange, type StyleModification, type ToolType, usePopmelt };
181
+ export { type Annotation, type AnnotationType, type BridgeEvent, type BridgeStatus, type ClaudeResponse, type ElementInfo, type FeedbackData, type Point, PopmeltProvider, type StyleChange, type StyleModification, type ToolType, usePopmelt };