react-grab 0.0.48 → 0.0.50
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 +37 -0
- package/dist/chunk-73DWLENH.js +6232 -0
- package/dist/chunk-V3NBFNRU.cjs +6240 -0
- package/dist/core.cjs +34 -0
- package/dist/core.d.cts +157 -0
- package/dist/core.d.ts +157 -0
- package/dist/core.js +1 -0
- package/dist/index.cjs +33 -1902
- package/dist/index.d.cts +3 -65
- package/dist/index.d.ts +3 -65
- package/dist/index.global.js +30 -29
- package/dist/index.js +5 -1900
- package/dist/styles.css +2 -0
- package/package.json +20 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,65 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
allowActivationInsideInput?: boolean;
|
|
5
|
-
onActivate?: () => void;
|
|
6
|
-
onDeactivate?: () => void;
|
|
7
|
-
playCopySound?: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface ReactGrabAPI {
|
|
10
|
-
activate: () => void;
|
|
11
|
-
deactivate: () => void;
|
|
12
|
-
toggle: () => void;
|
|
13
|
-
isActive: () => boolean;
|
|
14
|
-
dispose: () => void;
|
|
15
|
-
}
|
|
16
|
-
interface OverlayBounds {
|
|
17
|
-
borderRadius: string;
|
|
18
|
-
height: number;
|
|
19
|
-
transform: string;
|
|
20
|
-
width: number;
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
}
|
|
24
|
-
interface ReactGrabRendererProps {
|
|
25
|
-
selectionVisible?: boolean;
|
|
26
|
-
selectionBounds?: OverlayBounds;
|
|
27
|
-
dragVisible?: boolean;
|
|
28
|
-
dragBounds?: OverlayBounds;
|
|
29
|
-
grabbedBoxes?: Array<{
|
|
30
|
-
id: string;
|
|
31
|
-
bounds: OverlayBounds;
|
|
32
|
-
createdAt: number;
|
|
33
|
-
}>;
|
|
34
|
-
successLabels?: Array<{
|
|
35
|
-
id: string;
|
|
36
|
-
text: string;
|
|
37
|
-
}>;
|
|
38
|
-
labelVariant?: "hover" | "processing" | "success";
|
|
39
|
-
labelText?: string;
|
|
40
|
-
labelX?: number;
|
|
41
|
-
labelY?: number;
|
|
42
|
-
labelVisible?: boolean;
|
|
43
|
-
labelZIndex?: number;
|
|
44
|
-
labelShowHint?: boolean;
|
|
45
|
-
progressVisible?: boolean;
|
|
46
|
-
progress?: number;
|
|
47
|
-
mouseX?: number;
|
|
48
|
-
mouseY?: number;
|
|
49
|
-
crosshairVisible?: boolean;
|
|
50
|
-
inputVisible?: boolean;
|
|
51
|
-
inputX?: number;
|
|
52
|
-
inputY?: number;
|
|
53
|
-
inputValue?: string;
|
|
54
|
-
onInputChange?: (value: string) => void;
|
|
55
|
-
onInputSubmit?: () => void;
|
|
56
|
-
onInputCancel?: () => void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare const init: (rawOptions?: Options) => ReactGrabAPI;
|
|
60
|
-
|
|
61
|
-
declare const playCopySound: () => void;
|
|
62
|
-
|
|
63
|
-
declare const getGlobalApi: () => ReactGrabAPI | null;
|
|
64
|
-
|
|
65
|
-
export { type Options, type OverlayBounds, type ReactGrabAPI, type ReactGrabRendererProps, getGlobalApi, init, playCopySound };
|
|
1
|
+
export { DEFAULT_THEME, D as DragRect, G as GrabbedBox, Options, OverlayBounds, P as Position, ReactGrabAPI, R as ReactGrabState, c as Rect, b as RenderData, a as RenderType, T as Theme, formatStack, getHTMLPreview, getNearestComponentName, getStack, init } from './core.cjs';
|
|
2
|
+
export { isInstrumentationActive } from 'bippy';
|
|
3
|
+
import 'bippy/source';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,65 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
allowActivationInsideInput?: boolean;
|
|
5
|
-
onActivate?: () => void;
|
|
6
|
-
onDeactivate?: () => void;
|
|
7
|
-
playCopySound?: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface ReactGrabAPI {
|
|
10
|
-
activate: () => void;
|
|
11
|
-
deactivate: () => void;
|
|
12
|
-
toggle: () => void;
|
|
13
|
-
isActive: () => boolean;
|
|
14
|
-
dispose: () => void;
|
|
15
|
-
}
|
|
16
|
-
interface OverlayBounds {
|
|
17
|
-
borderRadius: string;
|
|
18
|
-
height: number;
|
|
19
|
-
transform: string;
|
|
20
|
-
width: number;
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
}
|
|
24
|
-
interface ReactGrabRendererProps {
|
|
25
|
-
selectionVisible?: boolean;
|
|
26
|
-
selectionBounds?: OverlayBounds;
|
|
27
|
-
dragVisible?: boolean;
|
|
28
|
-
dragBounds?: OverlayBounds;
|
|
29
|
-
grabbedBoxes?: Array<{
|
|
30
|
-
id: string;
|
|
31
|
-
bounds: OverlayBounds;
|
|
32
|
-
createdAt: number;
|
|
33
|
-
}>;
|
|
34
|
-
successLabels?: Array<{
|
|
35
|
-
id: string;
|
|
36
|
-
text: string;
|
|
37
|
-
}>;
|
|
38
|
-
labelVariant?: "hover" | "processing" | "success";
|
|
39
|
-
labelText?: string;
|
|
40
|
-
labelX?: number;
|
|
41
|
-
labelY?: number;
|
|
42
|
-
labelVisible?: boolean;
|
|
43
|
-
labelZIndex?: number;
|
|
44
|
-
labelShowHint?: boolean;
|
|
45
|
-
progressVisible?: boolean;
|
|
46
|
-
progress?: number;
|
|
47
|
-
mouseX?: number;
|
|
48
|
-
mouseY?: number;
|
|
49
|
-
crosshairVisible?: boolean;
|
|
50
|
-
inputVisible?: boolean;
|
|
51
|
-
inputX?: number;
|
|
52
|
-
inputY?: number;
|
|
53
|
-
inputValue?: string;
|
|
54
|
-
onInputChange?: (value: string) => void;
|
|
55
|
-
onInputSubmit?: () => void;
|
|
56
|
-
onInputCancel?: () => void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare const init: (rawOptions?: Options) => ReactGrabAPI;
|
|
60
|
-
|
|
61
|
-
declare const playCopySound: () => void;
|
|
62
|
-
|
|
63
|
-
declare const getGlobalApi: () => ReactGrabAPI | null;
|
|
64
|
-
|
|
65
|
-
export { type Options, type OverlayBounds, type ReactGrabAPI, type ReactGrabRendererProps, getGlobalApi, init, playCopySound };
|
|
1
|
+
export { DEFAULT_THEME, D as DragRect, G as GrabbedBox, Options, OverlayBounds, P as Position, ReactGrabAPI, R as ReactGrabState, c as Rect, b as RenderData, a as RenderType, T as Theme, formatStack, getHTMLPreview, getNearestComponentName, getStack, init } from './core.js';
|
|
2
|
+
export { isInstrumentationActive } from 'bippy';
|
|
3
|
+
import 'bippy/source';
|