react-grab 0.1.24 → 0.1.26
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 +109 -7
- package/dist/chunk-447CSJVY.js +26 -0
- package/dist/chunk-EMBZHHMN.js +101 -0
- package/dist/chunk-GGMYMQUS.cjs +101 -0
- package/dist/chunk-LCM4WNAK.cjs +26 -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-BurXddDF.d.cts → index-CN8HkCli.d.cts} +2 -2
- package/dist/{index-BurXddDF.d.ts → index-CN8HkCli.d.ts} +2 -2
- 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 -37
- package/dist/index.js +1 -1
- package/dist/primitives.cjs +2 -2
- package/dist/primitives.d.cts +6 -2
- package/dist/primitives.d.ts +6 -2
- package/dist/primitives.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +3 -13
- package/dist/chunk-CHTY5GHQ.cjs +0 -26
- package/dist/chunk-UERZTOK6.js +0 -101
- package/dist/chunk-XWSK4QRO.cjs +0 -101
- package/dist/chunk-Z5IMKMDB.js +0 -26
- package/dist/react.cjs +0 -19239
- package/dist/react.d.cts +0 -345
- package/dist/react.d.ts +0 -345
- package/dist/react.js +0 -19225
package/dist/core/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkLCM4WNAK_cjs=require('../chunk-LCM4WNAK.cjs'),chunkGGMYMQUS_cjs=require('../chunk-GGMYMQUS.cjs');Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.c}});Object.defineProperty(exports,"copyContent",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.a}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.f}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunkGGMYMQUS_cjs.Aa}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunkGGMYMQUS_cjs.va}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunkGGMYMQUS_cjs.pa}});
|
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-CN8HkCli.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-CN8HkCli.js';
|
|
2
2
|
export { isInstrumentationActive } from 'bippy';
|
|
3
3
|
import 'bippy/source';
|
package/dist/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as DEFAULT_THEME,a as copyContent,b as generateSnippet,f as init}from'../chunk-
|
|
1
|
+
export{c as DEFAULT_THEME,a as copyContent,b as generateSnippet,f as init}from'../chunk-447CSJVY.js';export{Aa as formatElementInfo,va as getStack,pa as isInstrumentationActive}from'../chunk-EMBZHHMN.js';
|
|
@@ -149,7 +149,7 @@ interface AgentSession {
|
|
|
149
149
|
componentName?: string;
|
|
150
150
|
error?: string;
|
|
151
151
|
}
|
|
152
|
-
interface AgentProvider<T =
|
|
152
|
+
interface AgentProvider<T = unknown> {
|
|
153
153
|
send: (context: AgentContext<T>, signal: AbortSignal) => AsyncIterable<string>;
|
|
154
154
|
resume?: (sessionId: string, signal: AbortSignal, storage: AgentSessionStorage) => AsyncIterable<string>;
|
|
155
155
|
abort?: (sessionId: string) => Promise<void>;
|
|
@@ -171,7 +171,7 @@ interface AgentSessionStorage {
|
|
|
171
171
|
interface AgentCompleteResult {
|
|
172
172
|
error?: string;
|
|
173
173
|
}
|
|
174
|
-
interface AgentOptions<T =
|
|
174
|
+
interface AgentOptions<T = unknown> {
|
|
175
175
|
provider?: AgentProvider<T>;
|
|
176
176
|
storage?: AgentSessionStorage | null;
|
|
177
177
|
getOptions?: () => T;
|
|
@@ -149,7 +149,7 @@ interface AgentSession {
|
|
|
149
149
|
componentName?: string;
|
|
150
150
|
error?: string;
|
|
151
151
|
}
|
|
152
|
-
interface AgentProvider<T =
|
|
152
|
+
interface AgentProvider<T = unknown> {
|
|
153
153
|
send: (context: AgentContext<T>, signal: AbortSignal) => AsyncIterable<string>;
|
|
154
154
|
resume?: (sessionId: string, signal: AbortSignal, storage: AgentSessionStorage) => AsyncIterable<string>;
|
|
155
155
|
abort?: (sessionId: string) => Promise<void>;
|
|
@@ -171,7 +171,7 @@ interface AgentSessionStorage {
|
|
|
171
171
|
interface AgentCompleteResult {
|
|
172
172
|
error?: string;
|
|
173
173
|
}
|
|
174
|
-
interface AgentOptions<T =
|
|
174
|
+
interface AgentOptions<T = unknown> {
|
|
175
175
|
provider?: AgentProvider<T>;
|
|
176
176
|
storage?: AgentSessionStorage | null;
|
|
177
177
|
getOptions?: () => T;
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkLCM4WNAK_cjs=require('./chunk-LCM4WNAK.cjs'),chunkGGMYMQUS_cjs=require('./chunk-GGMYMQUS.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=chunkLCM4WNAK_cjs.f(),window.__REACT_GRAB__=e),window.dispatchEvent(new CustomEvent("react-grab:init",{detail:e})));Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.c}});Object.defineProperty(exports,"commentPlugin",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.d}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.f}});Object.defineProperty(exports,"openPlugin",{enumerable:true,get:function(){return chunkLCM4WNAK_cjs.e}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunkGGMYMQUS_cjs.Aa}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunkGGMYMQUS_cjs.va}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunkGGMYMQUS_cjs.pa}});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-CN8HkCli.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-CN8HkCli.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-CN8HkCli.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-CN8HkCli.js';
|
|
3
3
|
export { isInstrumentationActive } from 'bippy';
|
|
4
4
|
import 'bippy/source';
|
|
5
5
|
|