mesurer 0.2.5 → 0.2.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.cts CHANGED
@@ -56,6 +56,15 @@ type CommentTarget = {
56
56
  rect: Rect;
57
57
  documentPoint: Point$1;
58
58
  anchor?: Point$1;
59
+ /** The address of the page the element was on when it was commented on. */
60
+ url?: string;
61
+ /** The size, in CSS px, of the window that page was in. */
62
+ viewport?: {
63
+ width: number;
64
+ height: number;
65
+ };
66
+ /** That window was a responsive preview of this size, not the page itself. */
67
+ preview?: boolean;
59
68
  };
60
69
  type CommentThread = {
61
70
  id: string;
@@ -276,6 +285,7 @@ type MesurerFeatures = {
276
285
  screenshot?: boolean;
277
286
  rulers?: boolean;
278
287
  settings?: boolean;
288
+ responsive?: boolean;
279
289
  };
280
290
 
281
291
  type ExtensionRecordingSession = {
@@ -357,7 +367,7 @@ type MesurerProps = {
357
367
  };
358
368
  };
359
369
 
360
- declare function Mesurer({ highlightColor, guideColor, arrowColor, guideHighlightEnabled, hoverHighlightEnabled, layoutDetailsEnabled, persistOnReload, persistSession, shortcutsEnabled, theme, portalTarget, persistKey, colorPickerFormats, colorPickerClickFormat, snapEnabled, snapGuidesEnabled, snapArrowsEnabled, arrowClickToPlace, selectNewGuideEnabled, multiMeasureEnabled, guideStyle, rulerSettings, textStyle, persistence, onPersistenceError, captureVisibleTab, extensionRecording, extensionRecordingPlayer, features, initialState, }: MesurerProps): react_jsx_runtime.JSX.Element | null;
370
+ declare function Mesurer(props: MesurerProps): react_jsx_runtime.JSX.Element;
361
371
 
362
372
  type TypographyRow = {
363
373
  label: string;
package/dist/index.d.ts CHANGED
@@ -56,6 +56,15 @@ type CommentTarget = {
56
56
  rect: Rect;
57
57
  documentPoint: Point$1;
58
58
  anchor?: Point$1;
59
+ /** The address of the page the element was on when it was commented on. */
60
+ url?: string;
61
+ /** The size, in CSS px, of the window that page was in. */
62
+ viewport?: {
63
+ width: number;
64
+ height: number;
65
+ };
66
+ /** That window was a responsive preview of this size, not the page itself. */
67
+ preview?: boolean;
59
68
  };
60
69
  type CommentThread = {
61
70
  id: string;
@@ -276,6 +285,7 @@ type MesurerFeatures = {
276
285
  screenshot?: boolean;
277
286
  rulers?: boolean;
278
287
  settings?: boolean;
288
+ responsive?: boolean;
279
289
  };
280
290
 
281
291
  type ExtensionRecordingSession = {
@@ -357,7 +367,7 @@ type MesurerProps = {
357
367
  };
358
368
  };
359
369
 
360
- declare function Mesurer({ highlightColor, guideColor, arrowColor, guideHighlightEnabled, hoverHighlightEnabled, layoutDetailsEnabled, persistOnReload, persistSession, shortcutsEnabled, theme, portalTarget, persistKey, colorPickerFormats, colorPickerClickFormat, snapEnabled, snapGuidesEnabled, snapArrowsEnabled, arrowClickToPlace, selectNewGuideEnabled, multiMeasureEnabled, guideStyle, rulerSettings, textStyle, persistence, onPersistenceError, captureVisibleTab, extensionRecording, extensionRecordingPlayer, features, initialState, }: MesurerProps): react_jsx_runtime.JSX.Element | null;
370
+ declare function Mesurer(props: MesurerProps): react_jsx_runtime.JSX.Element;
361
371
 
362
372
  type TypographyRow = {
363
373
  label: string;