grab 0.1.2 → 0.1.4

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.
@@ -1 +1 @@
1
- 'use strict';var chunkDQF5UPS7_cjs=require('../chunk-DQF5UPS7.cjs');require('../chunk-RL2PALRF.cjs');Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.j}});Object.defineProperty(exports,"copyContent",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.d}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.c}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.e}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.o}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.a}});
1
+ 'use strict';var chunk2LFTY2FS_cjs=require('../chunk-2LFTY2FS.cjs');Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.j}});Object.defineProperty(exports,"copyContent",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.d}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.c}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.e}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.o}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.a}});
@@ -1 +1 @@
1
- export{j as DEFAULT_THEME,d as copyContent,c as formatElementInfo,e as generateSnippet,b as getStack,o as init,a as isInstrumentationActive}from'../chunk-BUGEJDSS.js';import'../chunk-AUCTCQDK.js';
1
+ export{j as DEFAULT_THEME,d as copyContent,c as formatElementInfo,e as generateSnippet,b as getStack,o as init,a as isInstrumentationActive}from'../chunk-K236UQQU.js';
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var chunkUBNTNO5I_cjs=require('./chunk-UBNTNO5I.cjs'),chunkDQF5UPS7_cjs=require('./chunk-DQF5UPS7.cjs');require('./chunk-RL2PALRF.cjs');/**
1
+ 'use strict';var chunk2LFTY2FS_cjs=require('./chunk-2LFTY2FS.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,x=()=>typeof window>"u"?e:window.__REACT_GRAB__??e??null,R=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=chunkDQF5UPS7_cjs.o(),window.__REACT_GRAB__=e),window.dispatchEvent(new CustomEvent("react-grab:init",{detail:e})));Object.defineProperty(exports,"renderDesignSystemPreview",{enumerable:true,get:function(){return chunkUBNTNO5I_cjs.a}});Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.j}});Object.defineProperty(exports,"captureElementScreenshot",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.g}});Object.defineProperty(exports,"combineBounds",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.f}});Object.defineProperty(exports,"commentPlugin",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.n}});Object.defineProperty(exports,"copyHtmlPlugin",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.l}});Object.defineProperty(exports,"copyImageToClipboard",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.h}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.c}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.e}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.o}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.a}});Object.defineProperty(exports,"isScreenshotSupported",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.i}});Object.defineProperty(exports,"openPlugin",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.m}});Object.defineProperty(exports,"screenshotPlugin",{enumerable:true,get:function(){return chunkDQF5UPS7_cjs.k}});exports.getGlobalApi=x;exports.setGlobalApi=R;
9
+ var e=null,R=()=>typeof window>"u"?e:window.__REACT_GRAB__??e??null,g=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=chunk2LFTY2FS_cjs.o(),window.__REACT_GRAB__=e),window.dispatchEvent(new CustomEvent("react-grab:init",{detail:e})));Object.defineProperty(exports,"DEFAULT_THEME",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.j}});Object.defineProperty(exports,"captureElementScreenshot",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.g}});Object.defineProperty(exports,"combineBounds",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.f}});Object.defineProperty(exports,"commentPlugin",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.n}});Object.defineProperty(exports,"copyHtmlPlugin",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.l}});Object.defineProperty(exports,"copyImageToClipboard",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.h}});Object.defineProperty(exports,"formatElementInfo",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.c}});Object.defineProperty(exports,"generateSnippet",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.e}});Object.defineProperty(exports,"getStack",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.b}});Object.defineProperty(exports,"init",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.o}});Object.defineProperty(exports,"isInstrumentationActive",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.a}});Object.defineProperty(exports,"isScreenshotSupported",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.i}});Object.defineProperty(exports,"openPlugin",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.m}});Object.defineProperty(exports,"screenshotPlugin",{enumerable:true,get:function(){return chunk2LFTY2FS_cjs.k}});exports.getGlobalApi=R;exports.setGlobalApi=g;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { P as Plugin, R as ReactGrabAPI } from './index-CNwr6CHX.cjs';
2
2
  export { v as ActionContext, w 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, x as PluginConfig, y as PluginHooks, k as PromptModeContext, c as ReactGrabState, h as Rect, r as SettableOptions, S as SourceInfo, T as Theme, d as ToolbarState, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './index-CNwr6CHX.cjs';
3
- export { renderDesignSystemPreview } from './design-system.cjs';
4
3
  export { isInstrumentationActive } from 'bippy';
5
4
  import 'bippy/source';
6
5
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { P as Plugin, R as ReactGrabAPI } from './index-CNwr6CHX.js';
2
2
  export { v as ActionContext, w 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, x as PluginConfig, y as PluginHooks, k as PromptModeContext, c as ReactGrabState, h as Rect, r as SettableOptions, S as SourceInfo, T as Theme, d as ToolbarState, a as formatElementInfo, b as generateSnippet, g as getStack, i as init } from './index-CNwr6CHX.js';
3
- export { renderDesignSystemPreview } from './design-system.js';
4
3
  export { isInstrumentationActive } from 'bippy';
5
4
  import 'bippy/source';
6
5