react-grab 0.1.20 → 0.1.21
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/chunk-A4P2NQ77.cjs +118 -0
- package/dist/chunk-GYJRJR7H.js +118 -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-BgQgrh_y.d.cts → index-BurXddDF.d.cts} +11 -0
- package/dist/{index-BgQgrh_y.d.ts → index-BurXddDF.d.ts} +11 -0
- 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 +35 -35
- package/dist/index.js +1 -1
- package/dist/react.cjs +752 -350
- package/dist/react.js +752 -350
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-5NNTSQ2N.js +0 -118
- package/dist/chunk-DHDUZ7MT.cjs +0 -118
package/dist/core/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkA4P2NQ77_cjs=require('../chunk-A4P2NQ77.cjs');Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.f}});Object.defineProperty(exports,"copyContent",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.d}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.c}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.e}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.i}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.a}});
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { x as ActionContext, q as AgentCompleteResult, A as AgentContext, p as AgentOptions, n as AgentProvider, m as AgentSession, o as AgentSessionStorage, t as ContextMenuAction, D as DEFAULT_THEME, O as Options, e as OverlayBounds, P as Plugin, z as PluginConfig, B as PluginHooks, R as ReactGrabAPI, F as ReactGrabRendererProps, r as SettableOptions, S as SourceInfo, H as copyContent, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from '../index-
|
|
1
|
+
export { x as ActionContext, q as AgentCompleteResult, A as AgentContext, p as AgentOptions, n as AgentProvider, m as AgentSession, o as AgentSessionStorage, t as ContextMenuAction, D as DEFAULT_THEME, O as Options, e as OverlayBounds, P as Plugin, z as PluginConfig, B as PluginHooks, R as ReactGrabAPI, F as ReactGrabRendererProps, r as SettableOptions, S as SourceInfo, H as copyContent, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from '../index-BurXddDF.cjs';
|
|
2
2
|
export { isInstrumentationActive } from 'bippy';
|
|
3
3
|
import 'bippy/source';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { x as ActionContext, q as AgentCompleteResult, A as AgentContext, p as AgentOptions, n as AgentProvider, m as AgentSession, o as AgentSessionStorage, t as ContextMenuAction, D as DEFAULT_THEME, O as Options, e as OverlayBounds, P as Plugin, z as PluginConfig, B as PluginHooks, R as ReactGrabAPI, F as ReactGrabRendererProps, r as SettableOptions, S as SourceInfo, H as copyContent, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from '../index-
|
|
1
|
+
export { x as ActionContext, q as AgentCompleteResult, A as AgentContext, p as AgentOptions, n as AgentProvider, m as AgentSession, o as AgentSessionStorage, t as ContextMenuAction, D as DEFAULT_THEME, O as Options, e as OverlayBounds, P as Plugin, z as PluginConfig, B as PluginHooks, R as ReactGrabAPI, F as ReactGrabRendererProps, r as SettableOptions, S as SourceInfo, H as copyContent, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from '../index-BurXddDF.js';
|
|
2
2
|
export { isInstrumentationActive } from 'bippy';
|
|
3
3
|
import 'bippy/source';
|
package/dist/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{f as DEFAULT_THEME,d as copyContent,c as formatElementInfo,e as generateSnippet,b as getStack,i as init,a as isInstrumentationActive}from'../chunk-
|
|
1
|
+
export{f as DEFAULT_THEME,d as copyContent,c as formatElementInfo,e as generateSnippet,b as getStack,i as init,a as isInstrumentationActive}from'../chunk-GYJRJR7H.js';
|
|
@@ -225,6 +225,15 @@ interface ActionCycleState {
|
|
|
225
225
|
activeIndex: number | null;
|
|
226
226
|
isVisible: boolean;
|
|
227
227
|
}
|
|
228
|
+
interface ArrowNavigationItem {
|
|
229
|
+
tagName: string;
|
|
230
|
+
componentName?: string;
|
|
231
|
+
}
|
|
232
|
+
interface ArrowNavigationState {
|
|
233
|
+
items: ArrowNavigationItem[];
|
|
234
|
+
activeIndex: number;
|
|
235
|
+
isVisible: boolean;
|
|
236
|
+
}
|
|
228
237
|
interface PluginHooks {
|
|
229
238
|
onActivate?: () => void;
|
|
230
239
|
onDeactivate?: () => void;
|
|
@@ -393,6 +402,8 @@ interface ReactGrabRendererProps {
|
|
|
393
402
|
selectionLabelVisible?: boolean;
|
|
394
403
|
selectionLabelStatus?: SelectionLabelStatus;
|
|
395
404
|
selectionActionCycleState?: ActionCycleState;
|
|
405
|
+
selectionArrowNavigationState?: ArrowNavigationState;
|
|
406
|
+
onArrowNavigationSelect?: (index: number) => void;
|
|
396
407
|
labelInstances?: SelectionLabelInstance[];
|
|
397
408
|
dragVisible?: boolean;
|
|
398
409
|
dragBounds?: OverlayBounds;
|
|
@@ -225,6 +225,15 @@ interface ActionCycleState {
|
|
|
225
225
|
activeIndex: number | null;
|
|
226
226
|
isVisible: boolean;
|
|
227
227
|
}
|
|
228
|
+
interface ArrowNavigationItem {
|
|
229
|
+
tagName: string;
|
|
230
|
+
componentName?: string;
|
|
231
|
+
}
|
|
232
|
+
interface ArrowNavigationState {
|
|
233
|
+
items: ArrowNavigationItem[];
|
|
234
|
+
activeIndex: number;
|
|
235
|
+
isVisible: boolean;
|
|
236
|
+
}
|
|
228
237
|
interface PluginHooks {
|
|
229
238
|
onActivate?: () => void;
|
|
230
239
|
onDeactivate?: () => void;
|
|
@@ -393,6 +402,8 @@ interface ReactGrabRendererProps {
|
|
|
393
402
|
selectionLabelVisible?: boolean;
|
|
394
403
|
selectionLabelStatus?: SelectionLabelStatus;
|
|
395
404
|
selectionActionCycleState?: ActionCycleState;
|
|
405
|
+
selectionArrowNavigationState?: ArrowNavigationState;
|
|
406
|
+
onArrowNavigationSelect?: (index: number) => void;
|
|
396
407
|
labelInstances?: SelectionLabelInstance[];
|
|
397
408
|
dragVisible?: boolean;
|
|
398
409
|
dragBounds?: OverlayBounds;
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkA4P2NQ77_cjs=require('./chunk-A4P2NQ77.cjs');/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2025 Aiden Bai
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
var e=null,d=()=>typeof window>"u"?e:window.__REACT_GRAB__??e??null,c=t=>{e=t,typeof window<"u"&&(t?window.__REACT_GRAB__=t:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?e=window.__REACT_GRAB__:(e=
|
|
9
|
+
var e=null,d=()=>typeof window>"u"?e:window.__REACT_GRAB__??e??null,c=t=>{e=t,typeof window<"u"&&(t?window.__REACT_GRAB__=t:delete window.__REACT_GRAB__);};typeof window<"u"&&(window.__REACT_GRAB__?e=window.__REACT_GRAB__:(e=chunkA4P2NQ77_cjs.i(),window.__REACT_GRAB__=e),window.dispatchEvent(new CustomEvent("react-grab:init",{detail:e})));Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.f}});Object.defineProperty(exports,"commentPlugin",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.g}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.c}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.e}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.i}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.a}});Object.defineProperty(exports,"openPlugin",{enumerable:true,get:function(){return chunkA4P2NQ77_cjs.h}});exports.getGlobalApi=d;exports.setGlobalApi=c;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Plugin, R as ReactGrabAPI } from './index-
|
|
2
|
-
export { x as ActionContext, y as ActionContextHooks, s as ActivationMode, q as AgentCompleteResult, A as AgentContext, p as AgentOptions, n as AgentProvider, m as AgentSession, o as AgentSessionStorage, t as ContextMenuAction, u as ContextMenuActionContext, C as CrosshairContext, D as DEFAULT_THEME, j as DeepPartial, f as DragRect, l as ElementLabelContext, E as ElementLabelVariant, G as GrabbedBox, O as Options, e as OverlayBounds, w as PluginAction, z as PluginConfig, B as PluginHooks, k as PromptModeContext, c as ReactGrabState, h as Rect, r as SettableOptions, S as SourceInfo, T as Theme, v as ToolbarMenuAction, d as ToolbarState, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './index-
|
|
1
|
+
import { P as Plugin, R as ReactGrabAPI } from './index-BurXddDF.cjs';
|
|
2
|
+
export { x as ActionContext, y as ActionContextHooks, s as ActivationMode, q as AgentCompleteResult, A as AgentContext, p as AgentOptions, n as AgentProvider, m as AgentSession, o as AgentSessionStorage, t as ContextMenuAction, u as ContextMenuActionContext, C as CrosshairContext, D as DEFAULT_THEME, j as DeepPartial, f as DragRect, l as ElementLabelContext, E as ElementLabelVariant, G as GrabbedBox, O as Options, e as OverlayBounds, w as PluginAction, z as PluginConfig, B as PluginHooks, k as PromptModeContext, c as ReactGrabState, h as Rect, r as SettableOptions, S as SourceInfo, T as Theme, v as ToolbarMenuAction, d as ToolbarState, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './index-BurXddDF.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 { P as Plugin, R as ReactGrabAPI } from './index-
|
|
2
|
-
export { x as ActionContext, y as ActionContextHooks, s as ActivationMode, q as AgentCompleteResult, A as AgentContext, p as AgentOptions, n as AgentProvider, m as AgentSession, o as AgentSessionStorage, t as ContextMenuAction, u as ContextMenuActionContext, C as CrosshairContext, D as DEFAULT_THEME, j as DeepPartial, f as DragRect, l as ElementLabelContext, E as ElementLabelVariant, G as GrabbedBox, O as Options, e as OverlayBounds, w as PluginAction, z as PluginConfig, B as PluginHooks, k as PromptModeContext, c as ReactGrabState, h as Rect, r as SettableOptions, S as SourceInfo, T as Theme, v as ToolbarMenuAction, d as ToolbarState, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './index-
|
|
1
|
+
import { P as Plugin, R as ReactGrabAPI } from './index-BurXddDF.js';
|
|
2
|
+
export { x as ActionContext, y as ActionContextHooks, s as ActivationMode, q as AgentCompleteResult, A as AgentContext, p as AgentOptions, n as AgentProvider, m as AgentSession, o as AgentSessionStorage, t as ContextMenuAction, u as ContextMenuActionContext, C as CrosshairContext, D as DEFAULT_THEME, j as DeepPartial, f as DragRect, l as ElementLabelContext, E as ElementLabelVariant, G as GrabbedBox, O as Options, e as OverlayBounds, w as PluginAction, z as PluginConfig, B as PluginHooks, k as PromptModeContext, c as ReactGrabState, h as Rect, r as SettableOptions, S as SourceInfo, T as Theme, v as ToolbarMenuAction, d as ToolbarState, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './index-BurXddDF.js';
|
|
3
3
|
export { isInstrumentationActive } from 'bippy';
|
|
4
4
|
import 'bippy/source';
|
|
5
5
|
|