@ohhwells/bridge 0.1.29 → 0.1.31
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 +362 -304
- package/dist/index.cjs +1834 -325
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.js +1807 -299
- package/dist/index.js.map +1 -1
- package/dist/styles.css +505 -14
- package/package.json +48 -47
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
|
-
|
|
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;
|
|
@@ -83,4 +78,10 @@ declare function ToggleGroupItem({ className, value, children, ...props }: {
|
|
|
83
78
|
children: React.ReactNode;
|
|
84
79
|
} & Omit<React.ComponentProps<typeof Toggle>, 'pressed' | 'onPressedChange'>): react_jsx_runtime.JSX.Element;
|
|
85
80
|
|
|
86
|
-
|
|
81
|
+
declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAfter: insertAfterProp }: {
|
|
82
|
+
notifyOnConnect?: boolean;
|
|
83
|
+
initialScheduleId?: string | null;
|
|
84
|
+
insertAfter?: string;
|
|
85
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
86
|
+
|
|
87
|
+
export { LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, Toggle, ToggleGroup, ToggleGroupItem, buildTarget, filterAvailablePages, getEditModeInitialState, 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
|
-
|
|
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;
|
|
@@ -83,4 +78,10 @@ declare function ToggleGroupItem({ className, value, children, ...props }: {
|
|
|
83
78
|
children: React.ReactNode;
|
|
84
79
|
} & Omit<React.ComponentProps<typeof Toggle>, 'pressed' | 'onPressedChange'>): react_jsx_runtime.JSX.Element;
|
|
85
80
|
|
|
86
|
-
|
|
81
|
+
declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAfter: insertAfterProp }: {
|
|
82
|
+
notifyOnConnect?: boolean;
|
|
83
|
+
initialScheduleId?: string | null;
|
|
84
|
+
insertAfter?: string;
|
|
85
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
86
|
+
|
|
87
|
+
export { LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, Toggle, ToggleGroup, ToggleGroupItem, buildTarget, filterAvailablePages, getEditModeInitialState, isValidUrl, parseTarget, toggleVariants, validateUrlInput };
|