@ohhwells/bridge 0.1.60 → 0.1.61-next.172

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
@@ -44,6 +44,10 @@ interface AiSectionSettings {
44
44
  verticalPosition?: 'top' | 'center';
45
45
  overlayIntensity?: 'low' | 'medium' | 'high';
46
46
  backgroundMedia?: string;
47
+ /** Tinted band behind the section, resolved against the brand tokens. */
48
+ sectionBackground?: 'default' | 'surface' | 'accent' | 'accent-soft';
49
+ /** Vertical distribution of column content (stacked/split scaffolds). */
50
+ textDistribution?: 'top' | 'center' | 'space-between';
47
51
  }
48
52
  interface AiLayoutTree {
49
53
  schemaVersion: number;
@@ -249,7 +253,7 @@ declare function filterAvailablePages(pages: LinkPage[], existingTargets: string
249
253
 
250
254
  declare const toggleVariants: (props?: ({
251
255
  variant?: "default" | "outline" | null | undefined;
252
- size?: "default" | "sm" | "lg" | null | undefined;
256
+ size?: "default" | "lg" | "sm" | null | undefined;
253
257
  } & class_variance_authority_types.ClassProp) | undefined) => string;
254
258
  declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
255
259
 
@@ -267,7 +271,7 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
267
271
  notifyOnConnect?: boolean;
268
272
  initialScheduleId?: string | null;
269
273
  insertAfter?: string;
270
- }): react_jsx_runtime.JSX.Element | null;
274
+ }): react_jsx_runtime.JSX.Element;
271
275
 
272
276
  declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
273
277
 
@@ -406,6 +410,16 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
406
410
  hideArrow?: boolean;
407
411
  }): react_jsx_runtime.JSX.Element;
408
412
 
413
+ interface EmptySectionProps {
414
+ title: string;
415
+ homeHref?: string;
416
+ /** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
417
+ eyebrowKey?: string;
418
+ titleKey?: string;
419
+ subtitleKey?: string;
420
+ }
421
+ declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
422
+
409
423
  declare function isEditSessionActive(): boolean;
410
424
 
411
425
  type CarouselSlide = {
@@ -429,4 +443,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
429
443
  bind: Record<string, string>;
430
444
  };
431
445
 
432
- 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 };
446
+ 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
@@ -44,6 +44,10 @@ interface AiSectionSettings {
44
44
  verticalPosition?: 'top' | 'center';
45
45
  overlayIntensity?: 'low' | 'medium' | 'high';
46
46
  backgroundMedia?: string;
47
+ /** Tinted band behind the section, resolved against the brand tokens. */
48
+ sectionBackground?: 'default' | 'surface' | 'accent' | 'accent-soft';
49
+ /** Vertical distribution of column content (stacked/split scaffolds). */
50
+ textDistribution?: 'top' | 'center' | 'space-between';
47
51
  }
48
52
  interface AiLayoutTree {
49
53
  schemaVersion: number;
@@ -249,7 +253,7 @@ declare function filterAvailablePages(pages: LinkPage[], existingTargets: string
249
253
 
250
254
  declare const toggleVariants: (props?: ({
251
255
  variant?: "default" | "outline" | null | undefined;
252
- size?: "default" | "sm" | "lg" | null | undefined;
256
+ size?: "default" | "lg" | "sm" | null | undefined;
253
257
  } & class_variance_authority_types.ClassProp) | undefined) => string;
254
258
  declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
255
259
 
@@ -267,7 +271,7 @@ declare function SchedulingWidget({ notifyOnConnect, initialScheduleId, insertAf
267
271
  notifyOnConnect?: boolean;
268
272
  initialScheduleId?: string | null;
269
273
  insertAfter?: string;
270
- }): react_jsx_runtime.JSX.Element | null;
274
+ }): react_jsx_runtime.JSX.Element;
271
275
 
272
276
  declare const DragHandle: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
273
277
 
@@ -406,6 +410,16 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
406
410
  hideArrow?: boolean;
407
411
  }): react_jsx_runtime.JSX.Element;
408
412
 
413
+ interface EmptySectionProps {
414
+ title: string;
415
+ homeHref?: string;
416
+ /** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
417
+ eyebrowKey?: string;
418
+ titleKey?: string;
419
+ subtitleKey?: string;
420
+ }
421
+ declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
422
+
409
423
  declare function isEditSessionActive(): boolean;
410
424
 
411
425
  type CarouselSlide = {
@@ -429,4 +443,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
429
443
  bind: Record<string, string>;
430
444
  };
431
445
 
432
- 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 };
446
+ 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 };