react-grab 0.1.48-dev.a036acc → 0.1.48-dev.ac9f548

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.
Files changed (41) hide show
  1. package/README.md +1 -1
  2. package/dist/{copy-content-BPB8MmpL.d.cts → copy-content-3sDfOP1b.d.ts} +54 -34
  3. package/dist/{copy-content-C7lFyXsY.d.ts → copy-content-TZDC2S2A.d.cts} +54 -34
  4. package/dist/core/index.cjs +1 -1
  5. package/dist/core/index.d.cts +2 -2
  6. package/dist/core/index.d.ts +2 -2
  7. package/dist/core/index.js +1 -1
  8. package/dist/core-B0lTGjhs.cjs +14 -0
  9. package/dist/core-F4U8oWT_.js +14 -0
  10. package/dist/errors-BEgowzRA.d.ts +29 -0
  11. package/dist/errors-CTlIFDQs.d.cts +29 -0
  12. package/dist/execute-context-menu-action-Cqp9WXtB.js +9 -0
  13. package/dist/execute-context-menu-action-fTmac_ns.cjs +9 -0
  14. package/dist/freeze-updates-BVSfZssI.js +51 -0
  15. package/dist/freeze-updates-D2h3w4xO.cjs +51 -0
  16. package/dist/{index-DMyJsiaz.d.cts → index-DDf5jObx.d.cts} +1 -1
  17. package/dist/{index-VkohC_Hw.d.ts → index-DWvC_uKW.d.ts} +1 -1
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.cts +10 -7
  20. package/dist/index.d.ts +10 -7
  21. package/dist/index.global.js +20 -19
  22. package/dist/index.js +1 -1
  23. package/dist/open-file-B_sRLFmL.js +29 -0
  24. package/dist/open-file-BrBrRUg0.cjs +20 -0
  25. package/dist/primitives.cjs +2 -2
  26. package/dist/primitives.d.cts +3 -2
  27. package/dist/primitives.d.ts +3 -2
  28. package/dist/primitives.js +2 -2
  29. package/dist/renderer-Czij1mfU.cjs +9 -0
  30. package/dist/renderer-DGTM0iNN.js +9 -0
  31. package/package.json +3 -3
  32. package/dist/copy-content-HtjEd7D4.js +0 -10
  33. package/dist/copy-content-i_57jcU1.cjs +0 -10
  34. package/dist/core-Cs4nKfRj.cjs +0 -14
  35. package/dist/core-DtDBp7P-.js +0 -14
  36. package/dist/create-pointer-move-prompt-handoff-D4JZbeiE.cjs +0 -9
  37. package/dist/create-pointer-move-prompt-handoff-DRZp7pT5.js +0 -9
  38. package/dist/freeze-updates-2TTw39qB.js +0 -51
  39. package/dist/freeze-updates-m7dy-Od3.cjs +0 -51
  40. package/dist/renderer-D07SadMO.cjs +0 -9
  41. package/dist/renderer-DhsYpO42.js +0 -9
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Copy any UI element for your agent.
7
7
 
8
- React Grab points agents to the actual source behind each selection. Agents are [**2× faster**](https://www.react-grab.com/benchmarks) and more accurate when using React Grab.
8
+ React Grab points agents to the actual source behind each selection. Agents are [**2× faster**](https://react-grab.com/benchmarks) and more accurate when using React Grab.
9
9
 
10
10
  [**Website →**](https://react-grab.com)
11
11
 
@@ -6,6 +6,8 @@
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
+ import { ReactNode } from "react";
10
+
9
11
  //#region ../../node_modules/.pnpm/solid-js@1.9.12/node_modules/solid-js/types/reactive/observable.d.ts
10
12
  declare global {
11
13
  interface SymbolConstructor {
@@ -138,11 +140,13 @@ interface AgentContext<T = unknown> {
138
140
  sessionId?: string;
139
141
  }
140
142
  type ActivationMode = "toggle" | "hold";
141
- interface ActionContextHooks {
142
- transformHtmlContent: (html: string, elements: Element[]) => Promise<string>;
143
+ interface OpenFileActionHooks {
143
144
  onOpenFile: (filePath: string, lineNumber?: number) => boolean | void;
144
145
  transformOpenFileUrl: (url: string, filePath: string, lineNumber?: number) => string;
145
146
  }
147
+ interface ActionContextHooks extends OpenFileActionHooks {
148
+ transformHtmlContent: (html: string, elements: Element[]) => Promise<string>;
149
+ }
146
150
  interface ActionContext {
147
151
  element: Element;
148
152
  elements: Element[];
@@ -258,24 +262,24 @@ interface HierarchyState {
258
262
  activeIndex: number;
259
263
  }
260
264
  interface PluginHooks {
261
- onActivate?: () => void;
262
- onDeactivate?: () => void;
263
- onElementHover?: (element: Element) => void;
265
+ onActivate?: () => void | Promise<void>;
266
+ onDeactivate?: () => void | Promise<void>;
267
+ onElementHover?: (element: Element) => void | Promise<void>;
264
268
  onElementSelect?: (element: Element) => boolean | void | Promise<boolean>;
265
- onDragStart?: (startX: number, startY: number) => void;
266
- onDragEnd?: (elements: Element[], bounds: DragRect) => void;
269
+ onDragStart?: (startX: number, startY: number) => void | Promise<void>;
270
+ onDragEnd?: (elements: Element[], bounds: DragRect) => void | Promise<void>;
267
271
  onBeforeCopy?: (elements: Element[]) => void | Promise<void>;
268
272
  transformCopyContent?: (content: string, elements: Element[]) => string | Promise<string>;
269
- onAfterCopy?: (elements: Element[], success: boolean) => void;
270
- onCopySuccess?: (elements: Element[], content: string) => void;
271
- onCopyError?: (error: Error) => void;
272
- onStateChange?: (state: ReactGrabState) => void;
273
- onPromptModeChange?: (isPromptMode: boolean, context: PromptModeContext) => void;
274
- onSelectionBox?: (visible: boolean, bounds: OverlayBounds | null, element: Element | null) => void;
275
- onDragBox?: (visible: boolean, bounds: OverlayBounds | null) => void;
276
- onGrabbedBox?: (bounds: OverlayBounds, element: Element) => void;
277
- onElementLabel?: (visible: boolean, variant: ElementLabelVariant, context: ElementLabelContext) => void;
278
- onContextMenu?: (element: Element, position: Position) => void;
273
+ onAfterCopy?: (elements: Element[], success: boolean) => void | Promise<void>;
274
+ onCopySuccess?: (elements: Element[], content: string) => void | Promise<void>;
275
+ onCopyError?: (error: Error) => void | Promise<void>;
276
+ onStateChange?: (state: ReactGrabState) => void | Promise<void>;
277
+ onPromptModeChange?: (isPromptMode: boolean, context: PromptModeContext) => void | Promise<void>;
278
+ onSelectionBox?: (visible: boolean, bounds: OverlayBounds | null, element: Element | null) => void | Promise<void>;
279
+ onDragBox?: (visible: boolean, bounds: OverlayBounds | null) => void | Promise<void>;
280
+ onGrabbedBox?: (bounds: OverlayBounds, element: Element) => void | Promise<void>;
281
+ onElementLabel?: (visible: boolean, variant: ElementLabelVariant, context: ElementLabelContext) => void | Promise<void>;
282
+ onContextMenu?: (element: Element, position: Position) => void | Promise<void>;
279
283
  onOpenFile?: (filePath: string, lineNumber?: number) => boolean | void;
280
284
  transformHtmlContent?: (html: string, elements: Element[]) => string | Promise<string>;
281
285
  transformAgentContext?: (context: AgentContext, elements: Element[]) => AgentContext | Promise<AgentContext>;
@@ -287,7 +291,7 @@ interface PluginConfig {
287
291
  options?: SettableOptions;
288
292
  actions?: ContextMenuAction[];
289
293
  hooks?: PluginHooks;
290
- cleanup?: () => void;
294
+ cleanup?: () => undefined;
291
295
  }
292
296
  interface Plugin {
293
297
  name: string;
@@ -430,13 +434,19 @@ interface FrozenLabelEntry {
430
434
  bounds: OverlayBounds;
431
435
  mouseX?: number;
432
436
  }
437
+ interface FrozenLabelEntryAccessor {
438
+ read: () => FrozenLabelEntry | null;
439
+ }
440
+ interface SelectionLabelInstanceAccessor {
441
+ read: () => SelectionLabelInstance | null;
442
+ }
433
443
  interface ReactGrabRendererProps {
434
444
  selectionVisible?: boolean;
435
445
  selectionBounds?: OverlayBounds;
436
446
  selectionBoundsMultiple?: OverlayBounds[];
437
447
  selectionShouldSnap?: boolean;
438
448
  selectionElementsCount?: number;
439
- frozenLabelEntries?: FrozenLabelEntry[];
449
+ frozenLabelEntryAccessors?: FrozenLabelEntryAccessor[];
440
450
  pendingShiftPreviewEntry?: FrozenLabelEntry;
441
451
  selectionFilePath?: string;
442
452
  selectionLineNumber?: number;
@@ -447,6 +457,7 @@ interface ReactGrabRendererProps {
447
457
  hierarchyState?: HierarchyState;
448
458
  hierarchyMenuPosition?: DropdownAnchor | null;
449
459
  labelInstances?: SelectionLabelInstance[];
460
+ labelInstanceAccessors?: SelectionLabelInstanceAccessor[];
450
461
  dragVisible?: boolean;
451
462
  dragBounds?: OverlayBounds;
452
463
  grabbedBoxes?: Array<{
@@ -467,6 +478,7 @@ interface ReactGrabRendererProps {
467
478
  onToggleExpand?: () => void;
468
479
  selectionLabelShakeCount?: number;
469
480
  onConfirmDismiss?: () => void;
481
+ onOpenSelectionFile?: () => void;
470
482
  discardPrompt?: SelectionDiscardPrompt;
471
483
  toolbarVisible?: boolean;
472
484
  isActive?: boolean;
@@ -548,7 +560,7 @@ interface ReactGrabEntry {
548
560
  frames?: ReactGrabStackFrame[];
549
561
  }
550
562
  //#endregion
551
- //#region ../../node_modules/.pnpm/bippy@0.5.43_react@19.2.6/node_modules/bippy/dist/core.d.ts
563
+ //#region ../../node_modules/.pnpm/bippy@0.6.0_react@19.2.6/node_modules/bippy/dist/unsubscribe.d.ts
552
564
  type Flags = number;
553
565
  type Lanes = number;
554
566
  type TypeOfMode = number;
@@ -638,6 +650,14 @@ interface Effect {
638
650
  interface Family {
639
651
  current: unknown;
640
652
  }
653
+ /**
654
+ * React 19 flight metadata for a server component owner (ReactComponentInfo).
655
+ * Unlike client owners it has no `tag`; the owner chain continues via `owner`.
656
+ */
657
+ interface RendererRefreshUpdate {
658
+ staleFamilies: Set<Family>;
659
+ updatedFamilies: Set<Family>;
660
+ }
641
661
  /**
642
662
  * Represents a react-internal Fiber node.
643
663
  */
@@ -688,6 +708,7 @@ interface ReactDevToolsGlobalHook {
688
708
  onCommitFiberRoot: (rendererID: number, root: FiberRoot, priority: number | void) => void;
689
709
  onCommitFiberUnmount: (rendererID: number, fiber: Fiber) => void;
690
710
  onPostCommitFiberRoot: (rendererID: number, root: FiberRoot) => void;
711
+ onScheduleFiberRoot?: (rendererID: number, root: FiberRoot, children: ReactNode) => void;
691
712
  renderers: Map<number, ReactRenderer>;
692
713
  supportsFiber: boolean;
693
714
  supportsFlight: boolean;
@@ -706,10 +727,7 @@ interface ReactRenderer {
706
727
  overridePropsRenamePath?: (fiber: Fiber, oldPath: Array<number | string>, newPath: Array<number | string>) => void;
707
728
  reconcilerVersion: string;
708
729
  rendererPackageName: string;
709
- scheduleRefresh?: (root: FiberRoot, update: {
710
- staleFamilies: Set<Family>;
711
- updatedFamilies: Set<Family>;
712
- }) => void;
730
+ scheduleRefresh?: (root: FiberRoot, update: RendererRefreshUpdate) => void;
713
731
  scheduleRoot?: (root: FiberRoot, element: React.ReactNode) => void;
714
732
  scheduleUpdate?: (fiber: Fiber) => void;
715
733
  setErrorHandler?: (newShouldErrorImpl: (fiber: Fiber) => boolean) => void;
@@ -720,28 +738,30 @@ interface ReactRenderer {
720
738
  declare global {
721
739
  var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
722
740
  } //#endregion
723
- //#region src/rdt-hook.d.ts
724
- /**
725
- * Returns `true` if bippy's instrumentation is active.
726
- */
727
- declare const isInstrumentationActive: () => boolean;
728
- /**
729
- * Returns the latest fiber (since it may be double-buffered).
730
- */
741
+ //#region src/unsubscribe.d.ts
731
742
  //#endregion
732
- //#region ../../node_modules/.pnpm/bippy@0.5.43_react@19.2.6/node_modules/bippy/dist/source.d.ts
743
+ //#region ../../node_modules/.pnpm/bippy@0.6.0_react@19.2.6/node_modules/bippy/dist/source.d.ts
733
744
  //#region src/source/parse-stack.d.ts
734
745
  interface StackFrame {
735
746
  args?: unknown[];
736
747
  columnNumber?: number;
737
748
  lineNumber?: number;
749
+ enclosingLineNumber?: number;
750
+ enclosingColumnNumber?: number;
738
751
  fileName?: string;
739
752
  functionName?: string;
740
753
  source?: string;
741
754
  isServer?: boolean;
742
755
  isSymbolicated?: boolean;
756
+ isIgnoreListed?: boolean;
743
757
  }
744
758
  //#endregion
759
+ //#region ../../node_modules/.pnpm/bippy@0.6.0_react@19.2.6/node_modules/bippy/dist/core.d.ts
760
+ /**
761
+ * Returns `true` if bippy's instrumentation is active.
762
+ */
763
+ declare const isInstrumentationActive: () => boolean;
764
+ //#endregion
745
765
  //#region src/utils/copy-content.d.ts
746
766
  interface CopyContentOptions {
747
767
  componentName?: string;
@@ -751,4 +771,4 @@ interface CopyContentOptions {
751
771
  }
752
772
  declare const copyContent: (content: string, options?: CopyContentOptions) => boolean;
753
773
  //#endregion
754
- export { SourceInfo as A, PromptModeContext as C, Rect as D, ReactGrabState as E, ToolbarState as M, SelectedElementPayload as O, Position as S, ReactGrabRendererProps as T, Options as _, ActionContext as a, PluginConfig as b, AgentContext as c, DeepPartial as d, DragRect as f, GrabbedBox as g, ElementSelectedEventDetail as h, isInstrumentationActive as i, Theme as j, SettableOptions as k, ContextMenuAction as l, ElementLabelVariant as m, StackFrame as n, ActionContextHooks as o, ElementLabelContext as p, Fiber as r, ActivationMode as s, copyContent as t, ContextMenuActionContext as u, OverlayBounds as v, ReactGrabAPI as w, PluginHooks as x, Plugin as y };
774
+ export { SettableOptions as A, Position as C, ReactGrabState as D, ReactGrabRendererProps as E, Theme as M, ToolbarState as N, Rect as O, PluginHooks as S, ReactGrabAPI as T, OpenFileActionHooks as _, ActionContext as a, Plugin as b, AgentContext as c, DeepPartial as d, DragRect as f, GrabbedBox as g, ElementSelectedEventDetail as h, Fiber as i, SourceInfo as j, SelectedElementPayload as k, ContextMenuAction as l, ElementLabelVariant as m, isInstrumentationActive as n, ActionContextHooks as o, ElementLabelContext as p, StackFrame as r, ActivationMode as s, copyContent as t, ContextMenuActionContext as u, Options as v, PromptModeContext as w, PluginConfig as x, OverlayBounds as y };
@@ -6,6 +6,8 @@
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
+ import { ReactNode } from "react";
10
+
9
11
  //#region ../../node_modules/.pnpm/solid-js@1.9.12/node_modules/solid-js/types/reactive/observable.d.ts
10
12
  declare global {
11
13
  interface SymbolConstructor {
@@ -138,11 +140,13 @@ interface AgentContext<T = unknown> {
138
140
  sessionId?: string;
139
141
  }
140
142
  type ActivationMode = "toggle" | "hold";
141
- interface ActionContextHooks {
142
- transformHtmlContent: (html: string, elements: Element[]) => Promise<string>;
143
+ interface OpenFileActionHooks {
143
144
  onOpenFile: (filePath: string, lineNumber?: number) => boolean | void;
144
145
  transformOpenFileUrl: (url: string, filePath: string, lineNumber?: number) => string;
145
146
  }
147
+ interface ActionContextHooks extends OpenFileActionHooks {
148
+ transformHtmlContent: (html: string, elements: Element[]) => Promise<string>;
149
+ }
146
150
  interface ActionContext {
147
151
  element: Element;
148
152
  elements: Element[];
@@ -258,24 +262,24 @@ interface HierarchyState {
258
262
  activeIndex: number;
259
263
  }
260
264
  interface PluginHooks {
261
- onActivate?: () => void;
262
- onDeactivate?: () => void;
263
- onElementHover?: (element: Element) => void;
265
+ onActivate?: () => void | Promise<void>;
266
+ onDeactivate?: () => void | Promise<void>;
267
+ onElementHover?: (element: Element) => void | Promise<void>;
264
268
  onElementSelect?: (element: Element) => boolean | void | Promise<boolean>;
265
- onDragStart?: (startX: number, startY: number) => void;
266
- onDragEnd?: (elements: Element[], bounds: DragRect) => void;
269
+ onDragStart?: (startX: number, startY: number) => void | Promise<void>;
270
+ onDragEnd?: (elements: Element[], bounds: DragRect) => void | Promise<void>;
267
271
  onBeforeCopy?: (elements: Element[]) => void | Promise<void>;
268
272
  transformCopyContent?: (content: string, elements: Element[]) => string | Promise<string>;
269
- onAfterCopy?: (elements: Element[], success: boolean) => void;
270
- onCopySuccess?: (elements: Element[], content: string) => void;
271
- onCopyError?: (error: Error) => void;
272
- onStateChange?: (state: ReactGrabState) => void;
273
- onPromptModeChange?: (isPromptMode: boolean, context: PromptModeContext) => void;
274
- onSelectionBox?: (visible: boolean, bounds: OverlayBounds | null, element: Element | null) => void;
275
- onDragBox?: (visible: boolean, bounds: OverlayBounds | null) => void;
276
- onGrabbedBox?: (bounds: OverlayBounds, element: Element) => void;
277
- onElementLabel?: (visible: boolean, variant: ElementLabelVariant, context: ElementLabelContext) => void;
278
- onContextMenu?: (element: Element, position: Position) => void;
273
+ onAfterCopy?: (elements: Element[], success: boolean) => void | Promise<void>;
274
+ onCopySuccess?: (elements: Element[], content: string) => void | Promise<void>;
275
+ onCopyError?: (error: Error) => void | Promise<void>;
276
+ onStateChange?: (state: ReactGrabState) => void | Promise<void>;
277
+ onPromptModeChange?: (isPromptMode: boolean, context: PromptModeContext) => void | Promise<void>;
278
+ onSelectionBox?: (visible: boolean, bounds: OverlayBounds | null, element: Element | null) => void | Promise<void>;
279
+ onDragBox?: (visible: boolean, bounds: OverlayBounds | null) => void | Promise<void>;
280
+ onGrabbedBox?: (bounds: OverlayBounds, element: Element) => void | Promise<void>;
281
+ onElementLabel?: (visible: boolean, variant: ElementLabelVariant, context: ElementLabelContext) => void | Promise<void>;
282
+ onContextMenu?: (element: Element, position: Position) => void | Promise<void>;
279
283
  onOpenFile?: (filePath: string, lineNumber?: number) => boolean | void;
280
284
  transformHtmlContent?: (html: string, elements: Element[]) => string | Promise<string>;
281
285
  transformAgentContext?: (context: AgentContext, elements: Element[]) => AgentContext | Promise<AgentContext>;
@@ -287,7 +291,7 @@ interface PluginConfig {
287
291
  options?: SettableOptions;
288
292
  actions?: ContextMenuAction[];
289
293
  hooks?: PluginHooks;
290
- cleanup?: () => void;
294
+ cleanup?: () => undefined;
291
295
  }
292
296
  interface Plugin {
293
297
  name: string;
@@ -430,13 +434,19 @@ interface FrozenLabelEntry {
430
434
  bounds: OverlayBounds;
431
435
  mouseX?: number;
432
436
  }
437
+ interface FrozenLabelEntryAccessor {
438
+ read: () => FrozenLabelEntry | null;
439
+ }
440
+ interface SelectionLabelInstanceAccessor {
441
+ read: () => SelectionLabelInstance | null;
442
+ }
433
443
  interface ReactGrabRendererProps {
434
444
  selectionVisible?: boolean;
435
445
  selectionBounds?: OverlayBounds;
436
446
  selectionBoundsMultiple?: OverlayBounds[];
437
447
  selectionShouldSnap?: boolean;
438
448
  selectionElementsCount?: number;
439
- frozenLabelEntries?: FrozenLabelEntry[];
449
+ frozenLabelEntryAccessors?: FrozenLabelEntryAccessor[];
440
450
  pendingShiftPreviewEntry?: FrozenLabelEntry;
441
451
  selectionFilePath?: string;
442
452
  selectionLineNumber?: number;
@@ -447,6 +457,7 @@ interface ReactGrabRendererProps {
447
457
  hierarchyState?: HierarchyState;
448
458
  hierarchyMenuPosition?: DropdownAnchor | null;
449
459
  labelInstances?: SelectionLabelInstance[];
460
+ labelInstanceAccessors?: SelectionLabelInstanceAccessor[];
450
461
  dragVisible?: boolean;
451
462
  dragBounds?: OverlayBounds;
452
463
  grabbedBoxes?: Array<{
@@ -467,6 +478,7 @@ interface ReactGrabRendererProps {
467
478
  onToggleExpand?: () => void;
468
479
  selectionLabelShakeCount?: number;
469
480
  onConfirmDismiss?: () => void;
481
+ onOpenSelectionFile?: () => void;
470
482
  discardPrompt?: SelectionDiscardPrompt;
471
483
  toolbarVisible?: boolean;
472
484
  isActive?: boolean;
@@ -548,7 +560,7 @@ interface ReactGrabEntry {
548
560
  frames?: ReactGrabStackFrame[];
549
561
  }
550
562
  //#endregion
551
- //#region ../../node_modules/.pnpm/bippy@0.5.43_react@19.2.6/node_modules/bippy/dist/core.d.ts
563
+ //#region ../../node_modules/.pnpm/bippy@0.6.0_react@19.2.6/node_modules/bippy/dist/unsubscribe.d.ts
552
564
  type Flags = number;
553
565
  type Lanes = number;
554
566
  type TypeOfMode = number;
@@ -638,6 +650,14 @@ interface Effect {
638
650
  interface Family {
639
651
  current: unknown;
640
652
  }
653
+ /**
654
+ * React 19 flight metadata for a server component owner (ReactComponentInfo).
655
+ * Unlike client owners it has no `tag`; the owner chain continues via `owner`.
656
+ */
657
+ interface RendererRefreshUpdate {
658
+ staleFamilies: Set<Family>;
659
+ updatedFamilies: Set<Family>;
660
+ }
641
661
  /**
642
662
  * Represents a react-internal Fiber node.
643
663
  */
@@ -688,6 +708,7 @@ interface ReactDevToolsGlobalHook {
688
708
  onCommitFiberRoot: (rendererID: number, root: FiberRoot, priority: number | void) => void;
689
709
  onCommitFiberUnmount: (rendererID: number, fiber: Fiber) => void;
690
710
  onPostCommitFiberRoot: (rendererID: number, root: FiberRoot) => void;
711
+ onScheduleFiberRoot?: (rendererID: number, root: FiberRoot, children: ReactNode) => void;
691
712
  renderers: Map<number, ReactRenderer>;
692
713
  supportsFiber: boolean;
693
714
  supportsFlight: boolean;
@@ -706,10 +727,7 @@ interface ReactRenderer {
706
727
  overridePropsRenamePath?: (fiber: Fiber, oldPath: Array<number | string>, newPath: Array<number | string>) => void;
707
728
  reconcilerVersion: string;
708
729
  rendererPackageName: string;
709
- scheduleRefresh?: (root: FiberRoot, update: {
710
- staleFamilies: Set<Family>;
711
- updatedFamilies: Set<Family>;
712
- }) => void;
730
+ scheduleRefresh?: (root: FiberRoot, update: RendererRefreshUpdate) => void;
713
731
  scheduleRoot?: (root: FiberRoot, element: React.ReactNode) => void;
714
732
  scheduleUpdate?: (fiber: Fiber) => void;
715
733
  setErrorHandler?: (newShouldErrorImpl: (fiber: Fiber) => boolean) => void;
@@ -720,28 +738,30 @@ interface ReactRenderer {
720
738
  declare global {
721
739
  var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
722
740
  } //#endregion
723
- //#region src/rdt-hook.d.ts
724
- /**
725
- * Returns `true` if bippy's instrumentation is active.
726
- */
727
- declare const isInstrumentationActive: () => boolean;
728
- /**
729
- * Returns the latest fiber (since it may be double-buffered).
730
- */
741
+ //#region src/unsubscribe.d.ts
731
742
  //#endregion
732
- //#region ../../node_modules/.pnpm/bippy@0.5.43_react@19.2.6/node_modules/bippy/dist/source.d.ts
743
+ //#region ../../node_modules/.pnpm/bippy@0.6.0_react@19.2.6/node_modules/bippy/dist/source.d.ts
733
744
  //#region src/source/parse-stack.d.ts
734
745
  interface StackFrame {
735
746
  args?: unknown[];
736
747
  columnNumber?: number;
737
748
  lineNumber?: number;
749
+ enclosingLineNumber?: number;
750
+ enclosingColumnNumber?: number;
738
751
  fileName?: string;
739
752
  functionName?: string;
740
753
  source?: string;
741
754
  isServer?: boolean;
742
755
  isSymbolicated?: boolean;
756
+ isIgnoreListed?: boolean;
743
757
  }
744
758
  //#endregion
759
+ //#region ../../node_modules/.pnpm/bippy@0.6.0_react@19.2.6/node_modules/bippy/dist/core.d.ts
760
+ /**
761
+ * Returns `true` if bippy's instrumentation is active.
762
+ */
763
+ declare const isInstrumentationActive: () => boolean;
764
+ //#endregion
745
765
  //#region src/utils/copy-content.d.ts
746
766
  interface CopyContentOptions {
747
767
  componentName?: string;
@@ -751,4 +771,4 @@ interface CopyContentOptions {
751
771
  }
752
772
  declare const copyContent: (content: string, options?: CopyContentOptions) => boolean;
753
773
  //#endregion
754
- export { SourceInfo as A, PromptModeContext as C, Rect as D, ReactGrabState as E, ToolbarState as M, SelectedElementPayload as O, Position as S, ReactGrabRendererProps as T, Options as _, ActionContext as a, PluginConfig as b, AgentContext as c, DeepPartial as d, DragRect as f, GrabbedBox as g, ElementSelectedEventDetail as h, isInstrumentationActive as i, Theme as j, SettableOptions as k, ContextMenuAction as l, ElementLabelVariant as m, StackFrame as n, ActionContextHooks as o, ElementLabelContext as p, Fiber as r, ActivationMode as s, copyContent as t, ContextMenuActionContext as u, OverlayBounds as v, ReactGrabAPI as w, PluginHooks as x, Plugin as y };
774
+ export { SettableOptions as A, Position as C, ReactGrabState as D, ReactGrabRendererProps as E, Theme as M, ToolbarState as N, Rect as O, PluginHooks as S, ReactGrabAPI as T, OpenFileActionHooks as _, ActionContext as a, Plugin as b, AgentContext as c, DeepPartial as d, DragRect as f, GrabbedBox as g, ElementSelectedEventDetail as h, Fiber as i, SourceInfo as j, SelectedElementPayload as k, ContextMenuAction as l, ElementLabelVariant as m, isInstrumentationActive as n, ActionContextHooks as o, ElementLabelContext as p, StackFrame as r, ActivationMode as s, copyContent as t, ContextMenuActionContext as u, Options as v, PromptModeContext as w, PluginConfig as x, OverlayBounds as y };
@@ -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
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../core-Cs4nKfRj.cjs`),t=require(`../freeze-updates-m7dy-Od3.cjs`),n=require(`../copy-content-i_57jcU1.cjs`);exports.DEFAULT_THEME=e.a,exports.copyContent=n.t,exports.formatElementInfo=n.n,exports.generateSnippet=e.n,exports.getStack=n.o,exports.init=e.t,exports.isInstrumentationActive=t.N;
9
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../core-B0lTGjhs.cjs`),t=require(`../freeze-updates-D2h3w4xO.cjs`),n=require(`../open-file-BrBrRUg0.cjs`);exports.DEFAULT_THEME=e.a,exports.copyContent=n.n,exports.formatElementInfo=n.r,exports.generateSnippet=e.n,exports.getStack=n.s,exports.init=e.t,exports.isInstrumentationActive=t.L;
@@ -6,6 +6,6 @@
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
- import { A as SourceInfo, T as ReactGrabRendererProps, _ as Options, a as ActionContext, b as PluginConfig, c as AgentContext, i as isInstrumentationActive, k as SettableOptions, l as ContextMenuAction, t as copyContent, v as OverlayBounds, w as ReactGrabAPI, x as PluginHooks, y as Plugin } from "../copy-content-BPB8MmpL.cjs";
10
- import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "../index-DMyJsiaz.cjs";
9
+ import { A as SettableOptions, E as ReactGrabRendererProps, S as PluginHooks, T as ReactGrabAPI, a as ActionContext, b as Plugin, c as AgentContext, j as SourceInfo, l as ContextMenuAction, n as isInstrumentationActive, t as copyContent, v as Options, x as PluginConfig, y as OverlayBounds } from "../copy-content-TZDC2S2A.cjs";
10
+ import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "../index-DDf5jObx.cjs";
11
11
  export { ActionContext, AgentContext, ContextMenuAction, DEFAULT_THEME, Options, OverlayBounds, Plugin, PluginConfig, PluginHooks, ReactGrabAPI, ReactGrabRendererProps, SettableOptions, SourceInfo, copyContent, formatElementInfo, generateSnippet, getStack, init, isInstrumentationActive };
@@ -6,6 +6,6 @@
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
- import { A as SourceInfo, T as ReactGrabRendererProps, _ as Options, a as ActionContext, b as PluginConfig, c as AgentContext, i as isInstrumentationActive, k as SettableOptions, l as ContextMenuAction, t as copyContent, v as OverlayBounds, w as ReactGrabAPI, x as PluginHooks, y as Plugin } from "../copy-content-C7lFyXsY.js";
10
- import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "../index-VkohC_Hw.js";
9
+ import { A as SettableOptions, E as ReactGrabRendererProps, S as PluginHooks, T as ReactGrabAPI, a as ActionContext, b as Plugin, c as AgentContext, j as SourceInfo, l as ContextMenuAction, n as isInstrumentationActive, t as copyContent, v as Options, x as PluginConfig, y as OverlayBounds } from "../copy-content-3sDfOP1b.js";
10
+ import { a as getStack, i as formatElementInfo, n as generateSnippet, r as DEFAULT_THEME, t as init } from "../index-DWvC_uKW.js";
11
11
  export { ActionContext, AgentContext, ContextMenuAction, DEFAULT_THEME, Options, OverlayBounds, Plugin, PluginConfig, PluginHooks, ReactGrabAPI, ReactGrabRendererProps, SettableOptions, SourceInfo, copyContent, formatElementInfo, generateSnippet, getStack, init, isInstrumentationActive };
@@ -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
- import{a as e,n as t,t as n}from"../core-DtDBp7P-.js";import{N as r}from"../freeze-updates-2TTw39qB.js";import{n as i,o as a,t as o}from"../copy-content-HtjEd7D4.js";export{e as DEFAULT_THEME,o as copyContent,i as formatElementInfo,t as generateSnippet,a as getStack,n as init,r as isInstrumentationActive};
9
+ import{a as e,n as t,t as n}from"../core-F4U8oWT_.js";import{L as r}from"../freeze-updates-BVSfZssI.js";import{n as i,r as a,s as o}from"../open-file-B_sRLFmL.js";export{e as DEFAULT_THEME,i as copyContent,a as formatElementInfo,t as generateSnippet,o as getStack,n as init,r as isInstrumentationActive};