@ohhwells/bridge 0.1.54-next.156 → 0.1.55

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
@@ -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 | null;
271
271
 
272
272
  declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
273
273
 
@@ -306,8 +306,6 @@ 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;
311
309
  onSelectParent?: () => void;
312
310
  onDuplicate?: () => void;
313
311
  /** Wired by OHH-458 — row is always shown (destructive). */
@@ -322,9 +320,6 @@ type ItemActionToolbarProps = {
322
320
  showEditLink?: boolean;
323
321
  /** Hide Add item — CTA buttons only show Edit link (prototype). */
324
322
  showAddItem?: boolean;
325
- showStyle?: boolean;
326
- /** Reflects whether the style panel is open, so the button reads as a toggle. */
327
- styleActive?: boolean;
328
323
  /** Hide More — CTA buttons only show Edit link (prototype). */
329
324
  showMore?: boolean;
330
325
  /** Tooltip placement relative to each icon — Figma uses bottom. */
@@ -343,7 +338,7 @@ type ItemActionToolbarProps = {
343
338
  onHeadingVisibleChange?: (visible: boolean) => void;
344
339
  };
345
340
  /** Item-action fill for Custom/Toolbar — Edit link / Add item / More (+ OHH-468 toggles). */
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;
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;
347
342
 
348
343
  type ItemInteractionState = 'default' | 'hover' | 'sibling-hint' | 'active-top' | 'active-bottom' | 'dragging';
349
344
  type ItemInteractionLayerProps = {
@@ -406,16 +401,6 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
406
401
  hideArrow?: boolean;
407
402
  }): react_jsx_runtime.JSX.Element;
408
403
 
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
-
419
404
  declare function isEditSessionActive(): boolean;
420
405
 
421
406
  type CarouselSlide = {
@@ -439,4 +424,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
439
424
  bind: Record<string, string>;
440
425
  };
441
426
 
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 };
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 };
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 | null;
271
271
 
272
272
  declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
273
273
 
@@ -306,8 +306,6 @@ 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;
311
309
  onSelectParent?: () => void;
312
310
  onDuplicate?: () => void;
313
311
  /** Wired by OHH-458 — row is always shown (destructive). */
@@ -322,9 +320,6 @@ type ItemActionToolbarProps = {
322
320
  showEditLink?: boolean;
323
321
  /** Hide Add item — CTA buttons only show Edit link (prototype). */
324
322
  showAddItem?: boolean;
325
- showStyle?: boolean;
326
- /** Reflects whether the style panel is open, so the button reads as a toggle. */
327
- styleActive?: boolean;
328
323
  /** Hide More — CTA buttons only show Edit link (prototype). */
329
324
  showMore?: boolean;
330
325
  /** Tooltip placement relative to each icon — Figma uses bottom. */
@@ -343,7 +338,7 @@ type ItemActionToolbarProps = {
343
338
  onHeadingVisibleChange?: (visible: boolean) => void;
344
339
  };
345
340
  /** Item-action fill for Custom/Toolbar — Edit link / Add item / More (+ OHH-468 toggles). */
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;
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;
347
342
 
348
343
  type ItemInteractionState = 'default' | 'hover' | 'sibling-hint' | 'active-top' | 'active-bottom' | 'dragging';
349
344
  type ItemInteractionLayerProps = {
@@ -406,16 +401,6 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
406
401
  hideArrow?: boolean;
407
402
  }): react_jsx_runtime.JSX.Element;
408
403
 
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
-
419
404
  declare function isEditSessionActive(): boolean;
420
405
 
421
406
  type CarouselSlide = {
@@ -439,4 +424,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
439
424
  bind: Record<string, string>;
440
425
  };
441
426
 
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 };
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 };