react-grab 0.0.67 → 0.0.69
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 +57 -5
- package/dist/{chunk-IZU7ETT6.cjs → chunk-IOHFY7DR.cjs} +256 -120
- package/dist/{chunk-YPAQIOAG.js → chunk-IXLVOV7G.js} +257 -120
- package/dist/{core-CZmmuMr9.d.cts → core-CnnkNbYQ.d.cts} +1 -85
- package/dist/{core-CZmmuMr9.d.ts → core-CnnkNbYQ.d.ts} +1 -85
- package/dist/core.cjs +7 -11
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +26 -26
- package/dist/index.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,6 @@ interface Theme {
|
|
|
17
17
|
hue?: number;
|
|
18
18
|
/**
|
|
19
19
|
* The highlight box that appears when hovering over an element before selecting it
|
|
20
|
-
* @default true
|
|
21
20
|
*/
|
|
22
21
|
selectionBox?: {
|
|
23
22
|
/**
|
|
@@ -25,22 +24,9 @@ interface Theme {
|
|
|
25
24
|
* @default true
|
|
26
25
|
*/
|
|
27
26
|
enabled?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The border/outline color of the selection box.
|
|
30
|
-
* When undefined, falls back to grab-purple (rgb(210, 57, 192)) with opacity modifiers (50% border, 8% fill).
|
|
31
|
-
* When set, this color is used as the base for both the border and fill with the same opacity modifiers.
|
|
32
|
-
* @default undefined
|
|
33
|
-
*/
|
|
34
|
-
color?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Rounded corners of the selection box (e.g., "4px")
|
|
37
|
-
* @default 0px
|
|
38
|
-
*/
|
|
39
|
-
borderRadius?: string;
|
|
40
27
|
};
|
|
41
28
|
/**
|
|
42
29
|
* The rectangular selection area that appears when clicking and dragging to select multiple elements
|
|
43
|
-
* @default true
|
|
44
30
|
*/
|
|
45
31
|
dragBox?: {
|
|
46
32
|
/**
|
|
@@ -48,17 +34,9 @@ interface Theme {
|
|
|
48
34
|
* @default true
|
|
49
35
|
*/
|
|
50
36
|
enabled?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* The fill color and border of the drag rectangle.
|
|
53
|
-
* When undefined, falls back to grab-purple (rgb(210, 57, 192)) with opacity modifiers (40% border, 5% fill).
|
|
54
|
-
* When set, this color is used as the base for both the border and fill with the same opacity modifiers.
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
57
|
-
color?: string;
|
|
58
37
|
};
|
|
59
38
|
/**
|
|
60
39
|
* Brief flash/highlight boxes that appear on elements immediately after they're successfully grabbed/copied
|
|
61
|
-
* @default true
|
|
62
40
|
*/
|
|
63
41
|
grabbedBoxes?: {
|
|
64
42
|
/**
|
|
@@ -66,17 +44,9 @@ interface Theme {
|
|
|
66
44
|
* @default true
|
|
67
45
|
*/
|
|
68
46
|
enabled?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* The color of the flash boxes.
|
|
71
|
-
* When undefined, falls back to grab-purple (rgb(210, 57, 192)) with opacity modifiers (100% border, 8% fill).
|
|
72
|
-
* When set, this color is used as the base for both the border and fill with the same opacity modifiers.
|
|
73
|
-
* @default undefined
|
|
74
|
-
*/
|
|
75
|
-
color?: string;
|
|
76
47
|
};
|
|
77
48
|
/**
|
|
78
49
|
* The floating label that follows the cursor showing information about the currently hovered element
|
|
79
|
-
* @default true
|
|
80
50
|
*/
|
|
81
51
|
elementLabel?: {
|
|
82
52
|
/**
|
|
@@ -84,35 +54,9 @@ interface Theme {
|
|
|
84
54
|
* @default true
|
|
85
55
|
*/
|
|
86
56
|
enabled?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Background color of the label box
|
|
89
|
-
* @default #fde7f7 (grab-pink-light)
|
|
90
|
-
*/
|
|
91
|
-
backgroundColor?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Color of the text inside the label
|
|
94
|
-
* @default #b21c8e (grab-pink)
|
|
95
|
-
*/
|
|
96
|
-
textColor?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Border color around the label
|
|
99
|
-
* @default #f7c5ec (grab-pink-border)
|
|
100
|
-
*/
|
|
101
|
-
borderColor?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Internal spacing of the label (e.g., "4px 8px")
|
|
104
|
-
* @default "2px 6px"
|
|
105
|
-
*/
|
|
106
|
-
padding?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Distance in pixels the label appears from the cursor
|
|
109
|
-
* @default 14
|
|
110
|
-
*/
|
|
111
|
-
cursorOffset?: number;
|
|
112
57
|
};
|
|
113
58
|
/**
|
|
114
59
|
* Text labels that appear after successful operations (like "Copied!" messages)
|
|
115
|
-
* @default true
|
|
116
60
|
*/
|
|
117
61
|
successLabels?: {
|
|
118
62
|
/**
|
|
@@ -123,7 +67,6 @@ interface Theme {
|
|
|
123
67
|
};
|
|
124
68
|
/**
|
|
125
69
|
* The crosshair cursor overlay that helps with precise element targeting
|
|
126
|
-
* @default true
|
|
127
70
|
*/
|
|
128
71
|
crosshair?: {
|
|
129
72
|
/**
|
|
@@ -131,22 +74,6 @@ interface Theme {
|
|
|
131
74
|
* @default true
|
|
132
75
|
*/
|
|
133
76
|
enabled?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Color of the crosshair lines
|
|
136
|
-
* @default rgba(210, 57, 192) (grab-purple)
|
|
137
|
-
*/
|
|
138
|
-
color?: string;
|
|
139
|
-
};
|
|
140
|
-
/**
|
|
141
|
-
* An input field overlay that can appear for text entry during selection
|
|
142
|
-
* @default true
|
|
143
|
-
*/
|
|
144
|
-
inputOverlay?: {
|
|
145
|
-
/**
|
|
146
|
-
* Whether to show the input overlay when needed
|
|
147
|
-
* @default true
|
|
148
|
-
*/
|
|
149
|
-
enabled?: boolean;
|
|
150
77
|
};
|
|
151
78
|
}
|
|
152
79
|
interface ReactGrabState {
|
|
@@ -177,11 +104,6 @@ interface ElementLabelContext {
|
|
|
177
104
|
y: number;
|
|
178
105
|
content: string;
|
|
179
106
|
}
|
|
180
|
-
type RenderType = "selectionBox" | "dragBox" | "grabbedBox" | "elementLabel" | "successLabel" | "crosshair" | "inputOverlay";
|
|
181
|
-
interface RenderData {
|
|
182
|
-
ref: HTMLElement | undefined;
|
|
183
|
-
props: Record<string, unknown>;
|
|
184
|
-
}
|
|
185
107
|
interface ActivationKey {
|
|
186
108
|
key?: string;
|
|
187
109
|
metaKey?: boolean;
|
|
@@ -248,7 +170,6 @@ interface Options {
|
|
|
248
170
|
onCopySuccess?: (elements: Element[], content: string) => void;
|
|
249
171
|
onCopyError?: (error: Error) => void;
|
|
250
172
|
onStateChange?: (state: ReactGrabState) => void;
|
|
251
|
-
onRender?: (type: RenderType, data: RenderData) => void;
|
|
252
173
|
onInputModeChange?: (isInputMode: boolean, context: InputModeContext) => void;
|
|
253
174
|
onSuccessLabel?: (text: string, type: SuccessLabelType, context: SuccessLabelContext) => void;
|
|
254
175
|
onSelectionBox?: (visible: boolean, bounds: OverlayBounds | null, element: Element | null) => void;
|
|
@@ -348,17 +269,12 @@ interface DragRect {
|
|
|
348
269
|
width: number;
|
|
349
270
|
height: number;
|
|
350
271
|
}
|
|
351
|
-
interface Position {
|
|
352
|
-
left: number;
|
|
353
|
-
top: number;
|
|
354
|
-
}
|
|
355
272
|
|
|
356
273
|
declare const getStack: (element: Element) => Promise<StackFrame[] | null>;
|
|
357
274
|
interface GetElementContextOptions {
|
|
358
275
|
maxLines?: number;
|
|
359
276
|
}
|
|
360
277
|
declare const getElementContext: (element: Element, options?: GetElementContextOptions) => Promise<string>;
|
|
361
|
-
declare const getFileName: (stack: Array<StackFrame>) => string | null;
|
|
362
278
|
|
|
363
279
|
declare const DEFAULT_THEME: Required<Theme>;
|
|
364
280
|
|
|
@@ -369,4 +285,4 @@ declare const generateSnippet: (elements: Element[], options?: GenerateSnippetOp
|
|
|
369
285
|
|
|
370
286
|
declare const init: (rawOptions?: Options) => ReactGrabAPI;
|
|
371
287
|
|
|
372
|
-
export { type AgentContext as A, type CrosshairContext as C, DEFAULT_THEME as D, type ElementLabelVariant as E, type GrabbedBox as G, type InputModeContext as I, type Options as O, type
|
|
288
|
+
export { type AgentContext as A, type CrosshairContext as C, DEFAULT_THEME as D, type ElementLabelVariant as E, type GrabbedBox as G, type InputModeContext as I, type Options as O, type ReactGrabAPI as R, type SuccessLabelType as S, type Theme as T, getElementContext as a, generateSnippet as b, type ReactGrabState as c, type OverlayBounds as d, type DragRect as e, type Rect as f, getStack as g, type DeepPartial as h, init as i, type SuccessLabelContext as j, type ElementLabelContext as k, type AgentSession as l, type AgentProvider as m, type AgentSessionStorage as n, type AgentOptions as o, type ReactGrabRendererProps as p };
|
|
@@ -17,7 +17,6 @@ interface Theme {
|
|
|
17
17
|
hue?: number;
|
|
18
18
|
/**
|
|
19
19
|
* The highlight box that appears when hovering over an element before selecting it
|
|
20
|
-
* @default true
|
|
21
20
|
*/
|
|
22
21
|
selectionBox?: {
|
|
23
22
|
/**
|
|
@@ -25,22 +24,9 @@ interface Theme {
|
|
|
25
24
|
* @default true
|
|
26
25
|
*/
|
|
27
26
|
enabled?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The border/outline color of the selection box.
|
|
30
|
-
* When undefined, falls back to grab-purple (rgb(210, 57, 192)) with opacity modifiers (50% border, 8% fill).
|
|
31
|
-
* When set, this color is used as the base for both the border and fill with the same opacity modifiers.
|
|
32
|
-
* @default undefined
|
|
33
|
-
*/
|
|
34
|
-
color?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Rounded corners of the selection box (e.g., "4px")
|
|
37
|
-
* @default 0px
|
|
38
|
-
*/
|
|
39
|
-
borderRadius?: string;
|
|
40
27
|
};
|
|
41
28
|
/**
|
|
42
29
|
* The rectangular selection area that appears when clicking and dragging to select multiple elements
|
|
43
|
-
* @default true
|
|
44
30
|
*/
|
|
45
31
|
dragBox?: {
|
|
46
32
|
/**
|
|
@@ -48,17 +34,9 @@ interface Theme {
|
|
|
48
34
|
* @default true
|
|
49
35
|
*/
|
|
50
36
|
enabled?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* The fill color and border of the drag rectangle.
|
|
53
|
-
* When undefined, falls back to grab-purple (rgb(210, 57, 192)) with opacity modifiers (40% border, 5% fill).
|
|
54
|
-
* When set, this color is used as the base for both the border and fill with the same opacity modifiers.
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
57
|
-
color?: string;
|
|
58
37
|
};
|
|
59
38
|
/**
|
|
60
39
|
* Brief flash/highlight boxes that appear on elements immediately after they're successfully grabbed/copied
|
|
61
|
-
* @default true
|
|
62
40
|
*/
|
|
63
41
|
grabbedBoxes?: {
|
|
64
42
|
/**
|
|
@@ -66,17 +44,9 @@ interface Theme {
|
|
|
66
44
|
* @default true
|
|
67
45
|
*/
|
|
68
46
|
enabled?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* The color of the flash boxes.
|
|
71
|
-
* When undefined, falls back to grab-purple (rgb(210, 57, 192)) with opacity modifiers (100% border, 8% fill).
|
|
72
|
-
* When set, this color is used as the base for both the border and fill with the same opacity modifiers.
|
|
73
|
-
* @default undefined
|
|
74
|
-
*/
|
|
75
|
-
color?: string;
|
|
76
47
|
};
|
|
77
48
|
/**
|
|
78
49
|
* The floating label that follows the cursor showing information about the currently hovered element
|
|
79
|
-
* @default true
|
|
80
50
|
*/
|
|
81
51
|
elementLabel?: {
|
|
82
52
|
/**
|
|
@@ -84,35 +54,9 @@ interface Theme {
|
|
|
84
54
|
* @default true
|
|
85
55
|
*/
|
|
86
56
|
enabled?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Background color of the label box
|
|
89
|
-
* @default #fde7f7 (grab-pink-light)
|
|
90
|
-
*/
|
|
91
|
-
backgroundColor?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Color of the text inside the label
|
|
94
|
-
* @default #b21c8e (grab-pink)
|
|
95
|
-
*/
|
|
96
|
-
textColor?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Border color around the label
|
|
99
|
-
* @default #f7c5ec (grab-pink-border)
|
|
100
|
-
*/
|
|
101
|
-
borderColor?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Internal spacing of the label (e.g., "4px 8px")
|
|
104
|
-
* @default "2px 6px"
|
|
105
|
-
*/
|
|
106
|
-
padding?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Distance in pixels the label appears from the cursor
|
|
109
|
-
* @default 14
|
|
110
|
-
*/
|
|
111
|
-
cursorOffset?: number;
|
|
112
57
|
};
|
|
113
58
|
/**
|
|
114
59
|
* Text labels that appear after successful operations (like "Copied!" messages)
|
|
115
|
-
* @default true
|
|
116
60
|
*/
|
|
117
61
|
successLabels?: {
|
|
118
62
|
/**
|
|
@@ -123,7 +67,6 @@ interface Theme {
|
|
|
123
67
|
};
|
|
124
68
|
/**
|
|
125
69
|
* The crosshair cursor overlay that helps with precise element targeting
|
|
126
|
-
* @default true
|
|
127
70
|
*/
|
|
128
71
|
crosshair?: {
|
|
129
72
|
/**
|
|
@@ -131,22 +74,6 @@ interface Theme {
|
|
|
131
74
|
* @default true
|
|
132
75
|
*/
|
|
133
76
|
enabled?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Color of the crosshair lines
|
|
136
|
-
* @default rgba(210, 57, 192) (grab-purple)
|
|
137
|
-
*/
|
|
138
|
-
color?: string;
|
|
139
|
-
};
|
|
140
|
-
/**
|
|
141
|
-
* An input field overlay that can appear for text entry during selection
|
|
142
|
-
* @default true
|
|
143
|
-
*/
|
|
144
|
-
inputOverlay?: {
|
|
145
|
-
/**
|
|
146
|
-
* Whether to show the input overlay when needed
|
|
147
|
-
* @default true
|
|
148
|
-
*/
|
|
149
|
-
enabled?: boolean;
|
|
150
77
|
};
|
|
151
78
|
}
|
|
152
79
|
interface ReactGrabState {
|
|
@@ -177,11 +104,6 @@ interface ElementLabelContext {
|
|
|
177
104
|
y: number;
|
|
178
105
|
content: string;
|
|
179
106
|
}
|
|
180
|
-
type RenderType = "selectionBox" | "dragBox" | "grabbedBox" | "elementLabel" | "successLabel" | "crosshair" | "inputOverlay";
|
|
181
|
-
interface RenderData {
|
|
182
|
-
ref: HTMLElement | undefined;
|
|
183
|
-
props: Record<string, unknown>;
|
|
184
|
-
}
|
|
185
107
|
interface ActivationKey {
|
|
186
108
|
key?: string;
|
|
187
109
|
metaKey?: boolean;
|
|
@@ -248,7 +170,6 @@ interface Options {
|
|
|
248
170
|
onCopySuccess?: (elements: Element[], content: string) => void;
|
|
249
171
|
onCopyError?: (error: Error) => void;
|
|
250
172
|
onStateChange?: (state: ReactGrabState) => void;
|
|
251
|
-
onRender?: (type: RenderType, data: RenderData) => void;
|
|
252
173
|
onInputModeChange?: (isInputMode: boolean, context: InputModeContext) => void;
|
|
253
174
|
onSuccessLabel?: (text: string, type: SuccessLabelType, context: SuccessLabelContext) => void;
|
|
254
175
|
onSelectionBox?: (visible: boolean, bounds: OverlayBounds | null, element: Element | null) => void;
|
|
@@ -348,17 +269,12 @@ interface DragRect {
|
|
|
348
269
|
width: number;
|
|
349
270
|
height: number;
|
|
350
271
|
}
|
|
351
|
-
interface Position {
|
|
352
|
-
left: number;
|
|
353
|
-
top: number;
|
|
354
|
-
}
|
|
355
272
|
|
|
356
273
|
declare const getStack: (element: Element) => Promise<StackFrame[] | null>;
|
|
357
274
|
interface GetElementContextOptions {
|
|
358
275
|
maxLines?: number;
|
|
359
276
|
}
|
|
360
277
|
declare const getElementContext: (element: Element, options?: GetElementContextOptions) => Promise<string>;
|
|
361
|
-
declare const getFileName: (stack: Array<StackFrame>) => string | null;
|
|
362
278
|
|
|
363
279
|
declare const DEFAULT_THEME: Required<Theme>;
|
|
364
280
|
|
|
@@ -369,4 +285,4 @@ declare const generateSnippet: (elements: Element[], options?: GenerateSnippetOp
|
|
|
369
285
|
|
|
370
286
|
declare const init: (rawOptions?: Options) => ReactGrabAPI;
|
|
371
287
|
|
|
372
|
-
export { type AgentContext as A, type CrosshairContext as C, DEFAULT_THEME as D, type ElementLabelVariant as E, type GrabbedBox as G, type InputModeContext as I, type Options as O, type
|
|
288
|
+
export { type AgentContext as A, type CrosshairContext as C, DEFAULT_THEME as D, type ElementLabelVariant as E, type GrabbedBox as G, type InputModeContext as I, type Options as O, type ReactGrabAPI as R, type SuccessLabelType as S, type Theme as T, getElementContext as a, generateSnippet as b, type ReactGrabState as c, type OverlayBounds as d, type DragRect as e, type Rect as f, getStack as g, type DeepPartial as h, init as i, type SuccessLabelContext as j, type ElementLabelContext as k, type AgentSession as l, type AgentProvider as m, type AgentSessionStorage as n, type AgentOptions as o, type ReactGrabRendererProps as p };
|
package/dist/core.cjs
CHANGED
|
@@ -1,34 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIOHFY7DR_cjs = require('./chunk-IOHFY7DR.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "DEFAULT_THEME", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkIOHFY7DR_cjs.DEFAULT_THEME; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "formatElementInfo", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkIOHFY7DR_cjs.getElementContext; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "generateSnippet", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "getFileName", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkIZU7ETT6_cjs.getFileName; }
|
|
17
|
+
get: function () { return chunkIOHFY7DR_cjs.generateSnippet; }
|
|
22
18
|
});
|
|
23
19
|
Object.defineProperty(exports, "getStack", {
|
|
24
20
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkIOHFY7DR_cjs.getStack; }
|
|
26
22
|
});
|
|
27
23
|
Object.defineProperty(exports, "init", {
|
|
28
24
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkIOHFY7DR_cjs.init; }
|
|
30
26
|
});
|
|
31
27
|
Object.defineProperty(exports, "isInstrumentationActive", {
|
|
32
28
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkIOHFY7DR_cjs.Ee; }
|
|
34
30
|
});
|
package/dist/core.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AgentContext,
|
|
1
|
+
export { A as AgentContext, m as AgentProvider, l as AgentSession, n as AgentSessionStorage, D as DEFAULT_THEME, O as Options, d as OverlayBounds, R as ReactGrabAPI, p as ReactGrabRendererProps, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './core-CnnkNbYQ.cjs';
|
|
2
2
|
export { isInstrumentationActive } from 'bippy';
|
|
3
3
|
import 'bippy/source';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AgentContext,
|
|
1
|
+
export { A as AgentContext, m as AgentProvider, l as AgentSession, n as AgentSessionStorage, D as DEFAULT_THEME, O as Options, d as OverlayBounds, R as ReactGrabAPI, p as ReactGrabRendererProps, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './core-CnnkNbYQ.js';
|
|
2
2
|
export { isInstrumentationActive } from 'bippy';
|
|
3
3
|
import 'bippy/source';
|
package/dist/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DEFAULT_THEME, getElementContext as formatElementInfo, generateSnippet,
|
|
1
|
+
export { DEFAULT_THEME, getElementContext as formatElementInfo, generateSnippet, getStack, init, Ee as isInstrumentationActive } from './chunk-IXLVOV7G.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIOHFY7DR_cjs = require('./chunk-IOHFY7DR.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @license MIT
|
|
@@ -31,7 +31,7 @@ if (typeof window !== "undefined") {
|
|
|
31
31
|
if (window.__REACT_GRAB__) {
|
|
32
32
|
globalApi = window.__REACT_GRAB__;
|
|
33
33
|
} else {
|
|
34
|
-
globalApi =
|
|
34
|
+
globalApi = chunkIOHFY7DR_cjs.init();
|
|
35
35
|
window.__REACT_GRAB__ = globalApi;
|
|
36
36
|
window.dispatchEvent(
|
|
37
37
|
new CustomEvent("react-grab:init", { detail: globalApi })
|
|
@@ -41,27 +41,27 @@ if (typeof window !== "undefined") {
|
|
|
41
41
|
|
|
42
42
|
Object.defineProperty(exports, "DEFAULT_THEME", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkIOHFY7DR_cjs.DEFAULT_THEME; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "formatElementInfo", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkIOHFY7DR_cjs.getElementContext; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "generateSnippet", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkIOHFY7DR_cjs.generateSnippet; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "getStack", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkIOHFY7DR_cjs.getStack; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "init", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkIOHFY7DR_cjs.init; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "isInstrumentationActive", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkIOHFY7DR_cjs.Ee; }
|
|
65
65
|
});
|
|
66
66
|
exports.getGlobalApi = getGlobalApi;
|
|
67
67
|
exports.setGlobalApi = setGlobalApi;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ReactGrabAPI } from './core-
|
|
2
|
-
export { A as AgentContext,
|
|
1
|
+
import { R as ReactGrabAPI } from './core-CnnkNbYQ.cjs';
|
|
2
|
+
export { A as AgentContext, o as AgentOptions, m as AgentProvider, l as AgentSession, n as AgentSessionStorage, C as CrosshairContext, D as DEFAULT_THEME, h as DeepPartial, e as DragRect, k as ElementLabelContext, E as ElementLabelVariant, G as GrabbedBox, I as InputModeContext, O as Options, d as OverlayBounds, c as ReactGrabState, f as Rect, j as SuccessLabelContext, S as SuccessLabelType, T as Theme, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './core-CnnkNbYQ.cjs';
|
|
3
3
|
export { isInstrumentationActive } from 'bippy';
|
|
4
4
|
import 'bippy/source';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ReactGrabAPI } from './core-
|
|
2
|
-
export { A as AgentContext,
|
|
1
|
+
import { R as ReactGrabAPI } from './core-CnnkNbYQ.js';
|
|
2
|
+
export { A as AgentContext, o as AgentOptions, m as AgentProvider, l as AgentSession, n as AgentSessionStorage, C as CrosshairContext, D as DEFAULT_THEME, h as DeepPartial, e as DragRect, k as ElementLabelContext, E as ElementLabelVariant, G as GrabbedBox, I as InputModeContext, O as Options, d as OverlayBounds, c as ReactGrabState, f as Rect, j as SuccessLabelContext, S as SuccessLabelType, T as Theme, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './core-CnnkNbYQ.js';
|
|
3
3
|
export { isInstrumentationActive } from 'bippy';
|
|
4
4
|
import 'bippy/source';
|
|
5
5
|
|