@ohhwells/bridge 0.1.38-next.63 → 0.1.38-next.66

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/index.d.cts CHANGED
@@ -183,10 +183,14 @@ type ItemInteractionLayerProps = {
183
183
  dragHandleLabel?: string;
184
184
  onDragHandleDragStart?: (e: React.DragEvent<HTMLButtonElement>) => void;
185
185
  onDragHandleDragEnd?: (e: React.DragEvent<HTMLButtonElement>) => void;
186
+ /** Press on the item chrome (not handle/toolbar) — starts press-to-drag. */
187
+ onItemPointerDown?: (e: React.PointerEvent<HTMLDivElement>) => void;
188
+ /** Click on chrome without a drag — typically enter text edit. */
189
+ onItemClick?: (clientX: number, clientY: number) => void;
186
190
  chromeGap?: number;
187
191
  className?: string;
188
192
  };
189
- declare function ItemInteractionLayer({ rect, state, elRef, toolbar, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, chromeGap, className, }: ItemInteractionLayerProps): react_jsx_runtime.JSX.Element | null;
193
+ declare function ItemInteractionLayer({ rect, state, elRef, toolbar, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, onItemPointerDown, onItemClick, chromeGap, className, }: ItemInteractionLayerProps): react_jsx_runtime.JSX.Element | null;
190
194
 
191
195
  declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
192
196
  declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -183,10 +183,14 @@ type ItemInteractionLayerProps = {
183
183
  dragHandleLabel?: string;
184
184
  onDragHandleDragStart?: (e: React.DragEvent<HTMLButtonElement>) => void;
185
185
  onDragHandleDragEnd?: (e: React.DragEvent<HTMLButtonElement>) => void;
186
+ /** Press on the item chrome (not handle/toolbar) — starts press-to-drag. */
187
+ onItemPointerDown?: (e: React.PointerEvent<HTMLDivElement>) => void;
188
+ /** Click on chrome without a drag — typically enter text edit. */
189
+ onItemClick?: (clientX: number, clientY: number) => void;
186
190
  chromeGap?: number;
187
191
  className?: string;
188
192
  };
189
- declare function ItemInteractionLayer({ rect, state, elRef, toolbar, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, chromeGap, className, }: ItemInteractionLayerProps): react_jsx_runtime.JSX.Element | null;
193
+ declare function ItemInteractionLayer({ rect, state, elRef, toolbar, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, onItemPointerDown, onItemClick, chromeGap, className, }: ItemInteractionLayerProps): react_jsx_runtime.JSX.Element | null;
190
194
 
191
195
  declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
192
196
  declare function Tooltip({ ...props }: React.ComponentProps<typeof Tooltip$1.Root>): react_jsx_runtime.JSX.Element;