@ohhwells/bridge 0.1.30 → 0.1.31-next.30

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
@@ -7,12 +7,6 @@ import { Toggle as Toggle$1 } from 'radix-ui';
7
7
 
8
8
  declare function OhhwellsBridge(): React__default.ReactPortal | null;
9
9
 
10
- type ParentScroll = {
11
- iframeOffsetTop: number;
12
- headerH: number;
13
- canvasH: number;
14
- };
15
-
16
10
  type LinkPage = {
17
11
  path: string;
18
12
  title: string;
@@ -43,11 +37,12 @@ type SelectedSection = {
43
37
  };
44
38
 
45
39
  type LinkPopoverProps = LinkModalProps & {
46
- rect: DOMRect;
47
- parentScroll: ParentScroll | null;
48
40
  panelRef?: Ref<HTMLDivElement>;
41
+ /** Visible iframe viewport shell — keeps the dialog centered in the preview pane, not the full page. */
42
+ portalContainer?: HTMLElement | null;
49
43
  };
50
- declare function LinkPopover({ rect, parentScroll, panelRef, ...editorProps }: LinkPopoverProps): react_jsx_runtime.JSX.Element;
44
+ /** Centered link editor dialog (shadcn Dialog + Radix). */
45
+ declare function LinkPopover({ open, panelRef, portalContainer, onClose, ...editorProps }: LinkPopoverProps): react_jsx_runtime.JSX.Element;
51
46
 
52
47
  /** Link destination editor body — Figma node 8365:7616 / 8382:4161 */
53
48
  declare function LinkEditorPanel({ open, mode, pages, sections, sectionsByPath, initialTarget, existingTargets, onClose, onSubmit, }: LinkModalProps): react_jsx_runtime.JSX.Element;
@@ -89,4 +84,8 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
89
84
  insertAfter?: string;
90
85
  }): react_jsx_runtime.JSX.Element | null;
91
86
 
92
- export { LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, Toggle, ToggleGroup, ToggleGroupItem, buildTarget, filterAvailablePages, getEditModeInitialState, isValidUrl, parseTarget, toggleVariants, validateUrlInput };
87
+ declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
88
+
89
+ declare function isEditSessionActive(): boolean;
90
+
91
+ export { DragHandle, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, Toggle, ToggleGroup, ToggleGroupItem, buildTarget, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isValidUrl, parseTarget, toggleVariants, validateUrlInput };
package/dist/index.d.ts CHANGED
@@ -7,12 +7,6 @@ import { Toggle as Toggle$1 } from 'radix-ui';
7
7
 
8
8
  declare function OhhwellsBridge(): React__default.ReactPortal | null;
9
9
 
10
- type ParentScroll = {
11
- iframeOffsetTop: number;
12
- headerH: number;
13
- canvasH: number;
14
- };
15
-
16
10
  type LinkPage = {
17
11
  path: string;
18
12
  title: string;
@@ -43,11 +37,12 @@ type SelectedSection = {
43
37
  };
44
38
 
45
39
  type LinkPopoverProps = LinkModalProps & {
46
- rect: DOMRect;
47
- parentScroll: ParentScroll | null;
48
40
  panelRef?: Ref<HTMLDivElement>;
41
+ /** Visible iframe viewport shell — keeps the dialog centered in the preview pane, not the full page. */
42
+ portalContainer?: HTMLElement | null;
49
43
  };
50
- declare function LinkPopover({ rect, parentScroll, panelRef, ...editorProps }: LinkPopoverProps): react_jsx_runtime.JSX.Element;
44
+ /** Centered link editor dialog (shadcn Dialog + Radix). */
45
+ declare function LinkPopover({ open, panelRef, portalContainer, onClose, ...editorProps }: LinkPopoverProps): react_jsx_runtime.JSX.Element;
51
46
 
52
47
  /** Link destination editor body — Figma node 8365:7616 / 8382:4161 */
53
48
  declare function LinkEditorPanel({ open, mode, pages, sections, sectionsByPath, initialTarget, existingTargets, onClose, onSubmit, }: LinkModalProps): react_jsx_runtime.JSX.Element;
@@ -89,4 +84,8 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
89
84
  insertAfter?: string;
90
85
  }): react_jsx_runtime.JSX.Element | null;
91
86
 
92
- export { LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, Toggle, ToggleGroup, ToggleGroupItem, buildTarget, filterAvailablePages, getEditModeInitialState, isValidUrl, parseTarget, toggleVariants, validateUrlInput };
87
+ declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
88
+
89
+ declare function isEditSessionActive(): boolean;
90
+
91
+ export { DragHandle, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, Toggle, ToggleGroup, ToggleGroupItem, buildTarget, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isValidUrl, parseTarget, toggleVariants, validateUrlInput };