react-grab 0.1.13 → 0.1.15

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/react.d.cts CHANGED
@@ -92,6 +92,13 @@ interface ReactGrabState {
92
92
  bounds: OverlayBounds;
93
93
  createdAt: number;
94
94
  }>;
95
+ labelInstances: Array<{
96
+ id: string;
97
+ status: SelectionLabelStatus;
98
+ tagName: string;
99
+ componentName?: string;
100
+ createdAt: number;
101
+ }>;
95
102
  selectionFilePath: string | null;
96
103
  toolbarState: ToolbarState | null;
97
104
  }
@@ -316,6 +323,7 @@ interface OverlayBounds {
316
323
  x: number;
317
324
  y: number;
318
325
  }
326
+ type SelectionLabelStatus = "idle" | "copying" | "copied" | "fading" | "error";
319
327
  interface DragRect {
320
328
  x: number;
321
329
  y: number;
@@ -328,7 +336,6 @@ declare global {
328
336
  __REACT_GRAB__?: ReactGrabAPI;
329
337
  }
330
338
  }
331
- type ReactGrabProps = Options;
332
- declare const ReactGrab: (props: ReactGrabProps) => null;
339
+ declare const ReactGrab: (props: Options) => null;
333
340
 
334
341
  export { ReactGrab };
package/dist/react.d.ts CHANGED
@@ -92,6 +92,13 @@ interface ReactGrabState {
92
92
  bounds: OverlayBounds;
93
93
  createdAt: number;
94
94
  }>;
95
+ labelInstances: Array<{
96
+ id: string;
97
+ status: SelectionLabelStatus;
98
+ tagName: string;
99
+ componentName?: string;
100
+ createdAt: number;
101
+ }>;
95
102
  selectionFilePath: string | null;
96
103
  toolbarState: ToolbarState | null;
97
104
  }
@@ -316,6 +323,7 @@ interface OverlayBounds {
316
323
  x: number;
317
324
  y: number;
318
325
  }
326
+ type SelectionLabelStatus = "idle" | "copying" | "copied" | "fading" | "error";
319
327
  interface DragRect {
320
328
  x: number;
321
329
  y: number;
@@ -328,7 +336,6 @@ declare global {
328
336
  __REACT_GRAB__?: ReactGrabAPI;
329
337
  }
330
338
  }
331
- type ReactGrabProps = Options;
332
- declare const ReactGrab: (props: ReactGrabProps) => null;
339
+ declare const ReactGrab: (props: Options) => null;
333
340
 
334
341
  export { ReactGrab };