ui-sniper 3.0.7 → 3.0.9

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
@@ -149,6 +149,14 @@ interface AnnotationPopupCSSProps {
149
149
  lightMode?: boolean;
150
150
  /** Computed styles for the selected element */
151
151
  computedStyles?: Record<string, string>;
152
+ /** The specific DOM element selected, used to construct breadcrumbs */
153
+ targetElement?: HTMLElement | null;
154
+ /** Callback fired when user clicks an ancestor breadcrumb */
155
+ onRefineTarget?: (newTarget: HTMLElement) => void;
156
+ /** Optional message number to display in the header */
157
+ messageNumber?: number;
158
+ /** Base64 encoded screenshot data */
159
+ screenshotData?: string;
152
160
  }
153
161
  interface AnnotationPopupCSSHandle {
154
162
  /** Shake the popup (e.g., when user clicks outside) */
@@ -220,6 +228,9 @@ declare const IconGear: ({ size }: {
220
228
  declare const IconPauseAlt: ({ size }: {
221
229
  size?: number;
222
230
  }) => react_jsx_runtime.JSX.Element;
231
+ declare const IconTarget: ({ size }: {
232
+ size?: number;
233
+ }) => react_jsx_runtime.JSX.Element;
223
234
  declare const IconPause: ({ size }: {
224
235
  size?: number;
225
236
  }) => react_jsx_runtime.JSX.Element;
@@ -315,4 +326,4 @@ declare function getStorageKey(pathname: string): string;
315
326
  declare function loadAnnotations<T = Annotation>(pathname: string): T[];
316
327
  declare function saveAnnotations<T = Annotation>(pathname: string, annotations: T[]): void;
317
328
 
318
- export { AnimatedBunny, type Annotation, AnnotationPopupCSS, type AnnotationPopupCSSHandle, type AnnotationPopupCSSProps, type DemoAnnotation, IconChatEllipsis, IconCheck, IconCheckSmall, IconCheckSmallAnimated, IconCheckmark, IconCheckmarkCircle, IconCheckmarkLarge, IconChevronLeft, IconChevronRight, IconClose, IconCopyAlt, IconCopyAnimated, IconEdit, IconEye, IconEyeAlt, IconEyeAnimated, IconEyeClosed, IconEyeMinus, IconGear, IconHelp, IconLayout, IconListSparkle, IconMoon, IconPause, IconPauseAlt, IconPausePlayAnimated, IconPlayAlt, IconPlus, IconSendAnimated, IconSendArrow, IconSun, IconTrash, IconTrashAlt, IconXmark, IconXmarkLarge, PageFeedbackToolbarCSS, PageFeedbackToolbarCSS as UISniper, type UISniperProps, closestCrossingShadow, getElementClasses, getElementPath, getNearbyText, getShadowHost, getStorageKey, identifyAnimationElement, identifyElement, isInShadowDOM, loadAnnotations, saveAnnotations };
329
+ export { AnimatedBunny, type Annotation, AnnotationPopupCSS, type AnnotationPopupCSSHandle, type AnnotationPopupCSSProps, type DemoAnnotation, IconChatEllipsis, IconCheck, IconCheckSmall, IconCheckSmallAnimated, IconCheckmark, IconCheckmarkCircle, IconCheckmarkLarge, IconChevronLeft, IconChevronRight, IconClose, IconCopyAlt, IconCopyAnimated, IconEdit, IconEye, IconEyeAlt, IconEyeAnimated, IconEyeClosed, IconEyeMinus, IconGear, IconHelp, IconLayout, IconListSparkle, IconMoon, IconPause, IconPauseAlt, IconPausePlayAnimated, IconPlayAlt, IconPlus, IconSendAnimated, IconSendArrow, IconSun, IconTarget, IconTrash, IconTrashAlt, IconXmark, IconXmarkLarge, PageFeedbackToolbarCSS, PageFeedbackToolbarCSS as UISniper, type UISniperProps, closestCrossingShadow, getElementClasses, getElementPath, getNearbyText, getShadowHost, getStorageKey, identifyAnimationElement, identifyElement, isInShadowDOM, loadAnnotations, saveAnnotations };
package/dist/index.d.ts CHANGED
@@ -149,6 +149,14 @@ interface AnnotationPopupCSSProps {
149
149
  lightMode?: boolean;
150
150
  /** Computed styles for the selected element */
151
151
  computedStyles?: Record<string, string>;
152
+ /** The specific DOM element selected, used to construct breadcrumbs */
153
+ targetElement?: HTMLElement | null;
154
+ /** Callback fired when user clicks an ancestor breadcrumb */
155
+ onRefineTarget?: (newTarget: HTMLElement) => void;
156
+ /** Optional message number to display in the header */
157
+ messageNumber?: number;
158
+ /** Base64 encoded screenshot data */
159
+ screenshotData?: string;
152
160
  }
153
161
  interface AnnotationPopupCSSHandle {
154
162
  /** Shake the popup (e.g., when user clicks outside) */
@@ -220,6 +228,9 @@ declare const IconGear: ({ size }: {
220
228
  declare const IconPauseAlt: ({ size }: {
221
229
  size?: number;
222
230
  }) => react_jsx_runtime.JSX.Element;
231
+ declare const IconTarget: ({ size }: {
232
+ size?: number;
233
+ }) => react_jsx_runtime.JSX.Element;
223
234
  declare const IconPause: ({ size }: {
224
235
  size?: number;
225
236
  }) => react_jsx_runtime.JSX.Element;
@@ -315,4 +326,4 @@ declare function getStorageKey(pathname: string): string;
315
326
  declare function loadAnnotations<T = Annotation>(pathname: string): T[];
316
327
  declare function saveAnnotations<T = Annotation>(pathname: string, annotations: T[]): void;
317
328
 
318
- export { AnimatedBunny, type Annotation, AnnotationPopupCSS, type AnnotationPopupCSSHandle, type AnnotationPopupCSSProps, type DemoAnnotation, IconChatEllipsis, IconCheck, IconCheckSmall, IconCheckSmallAnimated, IconCheckmark, IconCheckmarkCircle, IconCheckmarkLarge, IconChevronLeft, IconChevronRight, IconClose, IconCopyAlt, IconCopyAnimated, IconEdit, IconEye, IconEyeAlt, IconEyeAnimated, IconEyeClosed, IconEyeMinus, IconGear, IconHelp, IconLayout, IconListSparkle, IconMoon, IconPause, IconPauseAlt, IconPausePlayAnimated, IconPlayAlt, IconPlus, IconSendAnimated, IconSendArrow, IconSun, IconTrash, IconTrashAlt, IconXmark, IconXmarkLarge, PageFeedbackToolbarCSS, PageFeedbackToolbarCSS as UISniper, type UISniperProps, closestCrossingShadow, getElementClasses, getElementPath, getNearbyText, getShadowHost, getStorageKey, identifyAnimationElement, identifyElement, isInShadowDOM, loadAnnotations, saveAnnotations };
329
+ export { AnimatedBunny, type Annotation, AnnotationPopupCSS, type AnnotationPopupCSSHandle, type AnnotationPopupCSSProps, type DemoAnnotation, IconChatEllipsis, IconCheck, IconCheckSmall, IconCheckSmallAnimated, IconCheckmark, IconCheckmarkCircle, IconCheckmarkLarge, IconChevronLeft, IconChevronRight, IconClose, IconCopyAlt, IconCopyAnimated, IconEdit, IconEye, IconEyeAlt, IconEyeAnimated, IconEyeClosed, IconEyeMinus, IconGear, IconHelp, IconLayout, IconListSparkle, IconMoon, IconPause, IconPauseAlt, IconPausePlayAnimated, IconPlayAlt, IconPlus, IconSendAnimated, IconSendArrow, IconSun, IconTarget, IconTrash, IconTrashAlt, IconXmark, IconXmarkLarge, PageFeedbackToolbarCSS, PageFeedbackToolbarCSS as UISniper, type UISniperProps, closestCrossingShadow, getElementClasses, getElementPath, getNearbyText, getShadowHost, getStorageKey, identifyAnimationElement, identifyElement, isInShadowDOM, loadAnnotations, saveAnnotations };