@ohhwells/bridge 0.1.54 → 0.1.55-next.158
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.cjs +2557 -379
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -3
- package/dist/index.d.ts +18 -3
- package/dist/index.js +2550 -367
- package/dist/index.js.map +1 -1
- package/dist/pages.cjs +141 -0
- package/dist/pages.cjs.map +1 -0
- package/dist/pages.d.cts +45 -0
- package/dist/pages.d.ts +45 -0
- package/dist/pages.js +107 -0
- package/dist/pages.js.map +1 -0
- package/dist/styles.css +108 -0
- package/package.json +6 -1
package/dist/index.d.cts
CHANGED
|
@@ -267,7 +267,7 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
|
|
|
267
267
|
notifyOnConnect?: boolean;
|
|
268
268
|
initialScheduleId?: string | null;
|
|
269
269
|
insertAfter?: string;
|
|
270
|
-
}): react_jsx_runtime.JSX.Element
|
|
270
|
+
}): react_jsx_runtime.JSX.Element;
|
|
271
271
|
|
|
272
272
|
declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
273
273
|
|
|
@@ -306,6 +306,8 @@ declare const CustomToolbarButton: React.ForwardRefExoticComponent<React.ButtonH
|
|
|
306
306
|
type ItemActionToolbarProps = {
|
|
307
307
|
onEditLink?: () => void;
|
|
308
308
|
onAddItem?: () => void;
|
|
309
|
+
/** Opens the element's style panel — socials display for now (OHH-629). */
|
|
310
|
+
onStyle?: () => void;
|
|
309
311
|
onSelectParent?: () => void;
|
|
310
312
|
onDuplicate?: () => void;
|
|
311
313
|
/** Wired by OHH-458 — row is always shown (destructive). */
|
|
@@ -320,6 +322,9 @@ type ItemActionToolbarProps = {
|
|
|
320
322
|
showEditLink?: boolean;
|
|
321
323
|
/** Hide Add item — CTA buttons only show Edit link (prototype). */
|
|
322
324
|
showAddItem?: boolean;
|
|
325
|
+
showStyle?: boolean;
|
|
326
|
+
/** Reflects whether the style panel is open, so the button reads as a toggle. */
|
|
327
|
+
styleActive?: boolean;
|
|
323
328
|
/** Hide More — CTA buttons only show Edit link (prototype). */
|
|
324
329
|
showMore?: boolean;
|
|
325
330
|
/** Tooltip placement relative to each icon — Figma uses bottom. */
|
|
@@ -338,7 +343,7 @@ type ItemActionToolbarProps = {
|
|
|
338
343
|
onHeadingVisibleChange?: (visible: boolean) => void;
|
|
339
344
|
};
|
|
340
345
|
/** Item-action fill for Custom/Toolbar — Edit link / Add item / More (+ OHH-468 toggles). */
|
|
341
|
-
declare function ItemActionToolbar({ onEditLink, onAddItem, onSelectParent, onDuplicate, onDelete, editLinkDisabled, addItemDisabled, moreDisabled, selectParentDisabled, duplicateDisabled, deleteDisabled, showEditLink, showAddItem, showMore, tooltipSide, dropdownOpen, onDropdownOpenChange, headingVisible, onHeadingVisibleChange, }: ItemActionToolbarProps): react_jsx_runtime.JSX.Element;
|
|
346
|
+
declare function ItemActionToolbar({ onEditLink, onAddItem, onStyle, onSelectParent, onDuplicate, onDelete, editLinkDisabled, addItemDisabled, moreDisabled, selectParentDisabled, duplicateDisabled, deleteDisabled, showEditLink, showAddItem, showStyle, styleActive, showMore, tooltipSide, dropdownOpen, onDropdownOpenChange, headingVisible, onHeadingVisibleChange, }: ItemActionToolbarProps): react_jsx_runtime.JSX.Element;
|
|
342
347
|
|
|
343
348
|
type ItemInteractionState = 'default' | 'hover' | 'sibling-hint' | 'active-top' | 'active-bottom' | 'dragging';
|
|
344
349
|
type ItemInteractionLayerProps = {
|
|
@@ -401,6 +406,16 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
|
|
|
401
406
|
hideArrow?: boolean;
|
|
402
407
|
}): react_jsx_runtime.JSX.Element;
|
|
403
408
|
|
|
409
|
+
interface EmptySectionProps {
|
|
410
|
+
title: string;
|
|
411
|
+
homeHref?: string;
|
|
412
|
+
/** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
|
|
413
|
+
eyebrowKey?: string;
|
|
414
|
+
titleKey?: string;
|
|
415
|
+
subtitleKey?: string;
|
|
416
|
+
}
|
|
417
|
+
declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
|
|
418
|
+
|
|
404
419
|
declare function isEditSessionActive(): boolean;
|
|
405
420
|
|
|
406
421
|
type CarouselSlide = {
|
|
@@ -424,4 +439,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
|
|
|
424
439
|
bind: Record<string, string>;
|
|
425
440
|
};
|
|
426
441
|
|
|
427
|
-
export { AI_DEFAULT_BRAND, AI_TREE_SCHEMA_VERSIONS, AI_TREE_TOKENS, type AiBlockNode, type AiBrandKit, type AiLayoutTree, AiTreeRenderer, type AiTreeRendererProps, type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, type SectionScaffold, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buildTarget, dropIndicatorVariants, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isRenderableTree, isValidUrl, parseTarget, toggleVariants, useOhwCarousel, validateUrlInput };
|
|
442
|
+
export { AI_DEFAULT_BRAND, AI_TREE_SCHEMA_VERSIONS, AI_TREE_TOKENS, type AiBlockNode, type AiBrandKit, type AiLayoutTree, AiTreeRenderer, type AiTreeRendererProps, type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptySection, type EmptySectionProps, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, type SectionScaffold, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buildTarget, dropIndicatorVariants, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isRenderableTree, isValidUrl, parseTarget, toggleVariants, useOhwCarousel, validateUrlInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -267,7 +267,7 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
|
|
|
267
267
|
notifyOnConnect?: boolean;
|
|
268
268
|
initialScheduleId?: string | null;
|
|
269
269
|
insertAfter?: string;
|
|
270
|
-
}): react_jsx_runtime.JSX.Element
|
|
270
|
+
}): react_jsx_runtime.JSX.Element;
|
|
271
271
|
|
|
272
272
|
declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
273
273
|
|
|
@@ -306,6 +306,8 @@ declare const CustomToolbarButton: React.ForwardRefExoticComponent<React.ButtonH
|
|
|
306
306
|
type ItemActionToolbarProps = {
|
|
307
307
|
onEditLink?: () => void;
|
|
308
308
|
onAddItem?: () => void;
|
|
309
|
+
/** Opens the element's style panel — socials display for now (OHH-629). */
|
|
310
|
+
onStyle?: () => void;
|
|
309
311
|
onSelectParent?: () => void;
|
|
310
312
|
onDuplicate?: () => void;
|
|
311
313
|
/** Wired by OHH-458 — row is always shown (destructive). */
|
|
@@ -320,6 +322,9 @@ type ItemActionToolbarProps = {
|
|
|
320
322
|
showEditLink?: boolean;
|
|
321
323
|
/** Hide Add item — CTA buttons only show Edit link (prototype). */
|
|
322
324
|
showAddItem?: boolean;
|
|
325
|
+
showStyle?: boolean;
|
|
326
|
+
/** Reflects whether the style panel is open, so the button reads as a toggle. */
|
|
327
|
+
styleActive?: boolean;
|
|
323
328
|
/** Hide More — CTA buttons only show Edit link (prototype). */
|
|
324
329
|
showMore?: boolean;
|
|
325
330
|
/** Tooltip placement relative to each icon — Figma uses bottom. */
|
|
@@ -338,7 +343,7 @@ type ItemActionToolbarProps = {
|
|
|
338
343
|
onHeadingVisibleChange?: (visible: boolean) => void;
|
|
339
344
|
};
|
|
340
345
|
/** Item-action fill for Custom/Toolbar — Edit link / Add item / More (+ OHH-468 toggles). */
|
|
341
|
-
declare function ItemActionToolbar({ onEditLink, onAddItem, onSelectParent, onDuplicate, onDelete, editLinkDisabled, addItemDisabled, moreDisabled, selectParentDisabled, duplicateDisabled, deleteDisabled, showEditLink, showAddItem, showMore, tooltipSide, dropdownOpen, onDropdownOpenChange, headingVisible, onHeadingVisibleChange, }: ItemActionToolbarProps): react_jsx_runtime.JSX.Element;
|
|
346
|
+
declare function ItemActionToolbar({ onEditLink, onAddItem, onStyle, onSelectParent, onDuplicate, onDelete, editLinkDisabled, addItemDisabled, moreDisabled, selectParentDisabled, duplicateDisabled, deleteDisabled, showEditLink, showAddItem, showStyle, styleActive, showMore, tooltipSide, dropdownOpen, onDropdownOpenChange, headingVisible, onHeadingVisibleChange, }: ItemActionToolbarProps): react_jsx_runtime.JSX.Element;
|
|
342
347
|
|
|
343
348
|
type ItemInteractionState = 'default' | 'hover' | 'sibling-hint' | 'active-top' | 'active-bottom' | 'dragging';
|
|
344
349
|
type ItemInteractionLayerProps = {
|
|
@@ -401,6 +406,16 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
|
|
|
401
406
|
hideArrow?: boolean;
|
|
402
407
|
}): react_jsx_runtime.JSX.Element;
|
|
403
408
|
|
|
409
|
+
interface EmptySectionProps {
|
|
410
|
+
title: string;
|
|
411
|
+
homeHref?: string;
|
|
412
|
+
/** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
|
|
413
|
+
eyebrowKey?: string;
|
|
414
|
+
titleKey?: string;
|
|
415
|
+
subtitleKey?: string;
|
|
416
|
+
}
|
|
417
|
+
declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
|
|
418
|
+
|
|
404
419
|
declare function isEditSessionActive(): boolean;
|
|
405
420
|
|
|
406
421
|
type CarouselSlide = {
|
|
@@ -424,4 +439,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
|
|
|
424
439
|
bind: Record<string, string>;
|
|
425
440
|
};
|
|
426
441
|
|
|
427
|
-
export { AI_DEFAULT_BRAND, AI_TREE_SCHEMA_VERSIONS, AI_TREE_TOKENS, type AiBlockNode, type AiBrandKit, type AiLayoutTree, AiTreeRenderer, type AiTreeRendererProps, type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, type SectionScaffold, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buildTarget, dropIndicatorVariants, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isRenderableTree, isValidUrl, parseTarget, toggleVariants, useOhwCarousel, validateUrlInput };
|
|
442
|
+
export { AI_DEFAULT_BRAND, AI_TREE_SCHEMA_VERSIONS, AI_TREE_TOKENS, type AiBlockNode, type AiBrandKit, type AiLayoutTree, AiTreeRenderer, type AiTreeRendererProps, type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptySection, type EmptySectionProps, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OhhwellsBridge, SchedulingWidget, type SectionScaffold, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, buildTarget, dropIndicatorVariants, filterAvailablePages, getEditModeInitialState, isEditSessionActive, isRenderableTree, isValidUrl, parseTarget, toggleVariants, useOhwCarousel, validateUrlInput };
|