@ohhwells/bridge 0.1.114-next.307 → 0.1.115

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
@@ -63,42 +63,6 @@ interface AiLayoutTree {
63
63
  align?: 'top' | 'center' | 'bottom' | 'stretch';
64
64
  }>;
65
65
  }
66
- declare const BUTTON_FILL_TOKENS: readonly ["dark", "primary", "accent", "light"];
67
- declare const BUTTON_STYLES: readonly ["solid", "outline", "ghost"];
68
- declare const BUTTON_RADII: readonly ["square", "rounded", "pill"];
69
- declare const BUTTON_SIZES: readonly ["s", "m", "l"];
70
- interface ButtonStyle {
71
- fill: (typeof BUTTON_FILL_TOKENS)[number];
72
- textColor: (typeof BUTTON_FILL_TOKENS)[number];
73
- style: (typeof BUTTON_STYLES)[number];
74
- radius: (typeof BUTTON_RADII)[number];
75
- size: (typeof BUTTON_SIZES)[number];
76
- }
77
- interface ButtonStyles {
78
- primary: ButtonStyle;
79
- secondary: ButtonStyle;
80
- }
81
- /** One uploaded weight file for a custom font family. */
82
- interface AiCustomFontWeight {
83
- weight: number;
84
- /** Present when the file is a variable font with a `wght` axis — `weight` is the axis min,
85
- * `weightEnd` the axis max, together spanning every weight the one file actually covers. */
86
- weightEnd?: number;
87
- url: string;
88
- format: 'woff2' | 'woff' | 'truetype' | 'opentype';
89
- }
90
- /**
91
- * A custom (non-Google) font family, grouped by its uploaded weight files so a bold heading
92
- * actually resolves to a real bold file instead of the browser synthesizing fake bold from
93
- * whichever single weight happens to be present.
94
- */
95
- interface AiCustomFont {
96
- /** Collision-proof internal family name — what `fonts.heading`/`fonts.body` actually reference. */
97
- family: string;
98
- /** Human-readable name shown in the picker; hidden everywhere the internal `family` is used. */
99
- label: string;
100
- weights: AiCustomFontWeight[];
101
- }
102
66
  /** The site brand kit the renderer styles from (editor Brand settings). */
103
67
  interface AiBrandKit {
104
68
  palette: {
@@ -111,9 +75,6 @@ interface AiBrandKit {
111
75
  heading: string;
112
76
  body: string;
113
77
  };
114
- /** Absent on a kit saved before OHH-791 — renderer falls back to today's hardcoded button look. */
115
- buttons?: ButtonStyles;
116
- customFonts?: AiCustomFont[];
117
78
  }
118
79
  /**
119
80
  * Shape, padding and typography measured off a host-template CTA, so generated buttons read as the
@@ -486,16 +447,6 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
486
447
  hideArrow?: boolean;
487
448
  }): react_jsx_runtime.JSX.Element;
488
449
 
489
- interface EmptySectionProps {
490
- title: string;
491
- homeHref?: string;
492
- /** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
493
- eyebrowKey?: string;
494
- titleKey?: string;
495
- subtitleKey?: string;
496
- }
497
- declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
498
-
499
450
  declare function isEditSessionActive(): boolean;
500
451
 
501
452
  type CarouselSlide = {
@@ -519,4 +470,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
519
470
  bind: Record<string, string>;
520
471
  };
521
472
 
522
- 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 };
473
+ 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
@@ -63,42 +63,6 @@ interface AiLayoutTree {
63
63
  align?: 'top' | 'center' | 'bottom' | 'stretch';
64
64
  }>;
65
65
  }
66
- declare const BUTTON_FILL_TOKENS: readonly ["dark", "primary", "accent", "light"];
67
- declare const BUTTON_STYLES: readonly ["solid", "outline", "ghost"];
68
- declare const BUTTON_RADII: readonly ["square", "rounded", "pill"];
69
- declare const BUTTON_SIZES: readonly ["s", "m", "l"];
70
- interface ButtonStyle {
71
- fill: (typeof BUTTON_FILL_TOKENS)[number];
72
- textColor: (typeof BUTTON_FILL_TOKENS)[number];
73
- style: (typeof BUTTON_STYLES)[number];
74
- radius: (typeof BUTTON_RADII)[number];
75
- size: (typeof BUTTON_SIZES)[number];
76
- }
77
- interface ButtonStyles {
78
- primary: ButtonStyle;
79
- secondary: ButtonStyle;
80
- }
81
- /** One uploaded weight file for a custom font family. */
82
- interface AiCustomFontWeight {
83
- weight: number;
84
- /** Present when the file is a variable font with a `wght` axis — `weight` is the axis min,
85
- * `weightEnd` the axis max, together spanning every weight the one file actually covers. */
86
- weightEnd?: number;
87
- url: string;
88
- format: 'woff2' | 'woff' | 'truetype' | 'opentype';
89
- }
90
- /**
91
- * A custom (non-Google) font family, grouped by its uploaded weight files so a bold heading
92
- * actually resolves to a real bold file instead of the browser synthesizing fake bold from
93
- * whichever single weight happens to be present.
94
- */
95
- interface AiCustomFont {
96
- /** Collision-proof internal family name — what `fonts.heading`/`fonts.body` actually reference. */
97
- family: string;
98
- /** Human-readable name shown in the picker; hidden everywhere the internal `family` is used. */
99
- label: string;
100
- weights: AiCustomFontWeight[];
101
- }
102
66
  /** The site brand kit the renderer styles from (editor Brand settings). */
103
67
  interface AiBrandKit {
104
68
  palette: {
@@ -111,9 +75,6 @@ interface AiBrandKit {
111
75
  heading: string;
112
76
  body: string;
113
77
  };
114
- /** Absent on a kit saved before OHH-791 — renderer falls back to today's hardcoded button look. */
115
- buttons?: ButtonStyles;
116
- customFonts?: AiCustomFont[];
117
78
  }
118
79
  /**
119
80
  * Shape, padding and typography measured off a host-template CTA, so generated buttons read as the
@@ -486,16 +447,6 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
486
447
  hideArrow?: boolean;
487
448
  }): react_jsx_runtime.JSX.Element;
488
449
 
489
- interface EmptySectionProps {
490
- title: string;
491
- homeHref?: string;
492
- /** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
493
- eyebrowKey?: string;
494
- titleKey?: string;
495
- subtitleKey?: string;
496
- }
497
- declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
498
-
499
450
  declare function isEditSessionActive(): boolean;
500
451
 
501
452
  type CarouselSlide = {
@@ -519,4 +470,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
519
470
  bind: Record<string, string>;
520
471
  };
521
472
 
522
- 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 };
473
+ 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 };