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/README.md +32 -10
- package/dist/chunk-CRY4UGGA.js +112 -0
- package/dist/chunk-EFUDUWZJ.cjs +112 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/{index-CNwr6CHX.d.cts → index-BR6gp9du.d.cts} +55 -1
- package/dist/{index-CNwr6CHX.d.ts → index-BR6gp9du.d.ts} +55 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +37 -32
- package/dist/index.js +1 -1
- package/dist/react.cjs +1940 -482
- package/dist/react.d.cts +9 -2
- package/dist/react.d.ts +9 -2
- package/dist/react.js +1940 -482
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/dist/chunk-2T22V7DM.cjs +0 -107
- package/dist/chunk-VR2ILUMN.js +0 -107
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
|
-
|
|
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
|
-
|
|
332
|
-
declare const ReactGrab: (props: ReactGrabProps) => null;
|
|
339
|
+
declare const ReactGrab: (props: Options) => null;
|
|
333
340
|
|
|
334
341
|
export { ReactGrab };
|