@ohhwells/bridge 0.1.117-next.321 → 0.1.118

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
@@ -20,14 +20,7 @@ declare function OhhwellsBridge(): react_jsx_runtime.JSX.Element;
20
20
  */
21
21
  declare const AI_TREE_SCHEMA_VERSIONS: readonly [1];
22
22
  type SectionScaffold = 'stacked' | 'split' | 'overlay';
23
- type AiBlockType = 'text' | 'button' | 'media' | 'media-list' | 'rating' | 'divider' | 'input' | 'section-header' | 'button-row' | 'card' | 'collection' | 'accordion' | 'media-strip' | 'form' | 'embed' | 'schedule-widget' | 'group';
24
- /** media-strip's `items[]` entry shape (rn-mobile-backend's `itemFields` for that block). */
25
- interface MediaStripItem {
26
- assetId: string;
27
- alt: string;
28
- href?: string;
29
- linkTarget?: 'new-tab' | 'same-tab';
30
- }
23
+ type AiBlockType = 'text' | 'button' | 'media' | 'media-list' | 'rating' | 'divider' | 'input' | 'section-header' | 'button-row' | 'card' | 'collection' | 'accordion' | 'form' | 'embed' | 'schedule-widget' | 'group';
31
24
  interface AiBlockNode {
32
25
  type: AiBlockType;
33
26
  span: number;
@@ -35,12 +28,10 @@ interface AiBlockNode {
35
28
  align?: 'left' | 'center' | 'right';
36
29
  slots?: Record<string, unknown>;
37
30
  children?: AiBlockNode[];
38
- /** Shape is per-block-type, defined by the backend's `BlockDef.itemFields` (accordion's
39
- * question/answer, media-strip's assetId/alt/href/linkTarget). */
40
31
  items?: Array<{
41
32
  question: string;
42
33
  answer: string;
43
- } | MediaStripItem>;
34
+ }>;
44
35
  animation?: {
45
36
  effect: 'fade-in' | 'fade-in-up' | 'slide-in-left' | 'slide-in-right' | 'zoom-in';
46
37
  trigger: 'on-scroll' | 'on-load' | 'on-hover';
@@ -72,21 +63,6 @@ interface AiLayoutTree {
72
63
  align?: 'top' | 'center' | 'bottom' | 'stretch';
73
64
  }>;
74
65
  }
75
- declare const BUTTON_FILL_TOKENS: readonly ["dark", "primary", "accent", "light"];
76
- declare const BUTTON_STYLES: readonly ["solid", "outline", "ghost"];
77
- declare const BUTTON_RADII: readonly ["square", "rounded", "pill"];
78
- declare const BUTTON_SIZES: readonly ["s", "m", "l"];
79
- interface ButtonStyle {
80
- fill: (typeof BUTTON_FILL_TOKENS)[number];
81
- textColor: (typeof BUTTON_FILL_TOKENS)[number];
82
- style: (typeof BUTTON_STYLES)[number];
83
- radius: (typeof BUTTON_RADII)[number];
84
- size: (typeof BUTTON_SIZES)[number];
85
- }
86
- interface ButtonStyles {
87
- primary: ButtonStyle;
88
- secondary: ButtonStyle;
89
- }
90
66
  /** One uploaded weight file for a custom font family. */
91
67
  interface AiCustomFontWeight {
92
68
  weight: number;
@@ -120,8 +96,6 @@ interface AiBrandKit {
120
96
  heading: string;
121
97
  body: string;
122
98
  };
123
- /** Absent on a kit saved before OHH-791 — renderer falls back to today's hardcoded button look. */
124
- buttons?: ButtonStyles;
125
99
  customFonts?: AiCustomFont[];
126
100
  }
127
101
  /**
@@ -495,16 +469,6 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
495
469
  hideArrow?: boolean;
496
470
  }): react_jsx_runtime.JSX.Element;
497
471
 
498
- interface EmptySectionProps {
499
- title: string;
500
- homeHref?: string;
501
- /** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
502
- eyebrowKey?: string;
503
- titleKey?: string;
504
- subtitleKey?: string;
505
- }
506
- declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
507
-
508
472
  declare function isEditSessionActive(): boolean;
509
473
 
510
474
  type CarouselSlide = {
@@ -528,4 +492,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
528
492
  bind: Record<string, string>;
529
493
  };
530
494
 
531
- 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 };
495
+ 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
@@ -20,14 +20,7 @@ declare function OhhwellsBridge(): react_jsx_runtime.JSX.Element;
20
20
  */
21
21
  declare const AI_TREE_SCHEMA_VERSIONS: readonly [1];
22
22
  type SectionScaffold = 'stacked' | 'split' | 'overlay';
23
- type AiBlockType = 'text' | 'button' | 'media' | 'media-list' | 'rating' | 'divider' | 'input' | 'section-header' | 'button-row' | 'card' | 'collection' | 'accordion' | 'media-strip' | 'form' | 'embed' | 'schedule-widget' | 'group';
24
- /** media-strip's `items[]` entry shape (rn-mobile-backend's `itemFields` for that block). */
25
- interface MediaStripItem {
26
- assetId: string;
27
- alt: string;
28
- href?: string;
29
- linkTarget?: 'new-tab' | 'same-tab';
30
- }
23
+ type AiBlockType = 'text' | 'button' | 'media' | 'media-list' | 'rating' | 'divider' | 'input' | 'section-header' | 'button-row' | 'card' | 'collection' | 'accordion' | 'form' | 'embed' | 'schedule-widget' | 'group';
31
24
  interface AiBlockNode {
32
25
  type: AiBlockType;
33
26
  span: number;
@@ -35,12 +28,10 @@ interface AiBlockNode {
35
28
  align?: 'left' | 'center' | 'right';
36
29
  slots?: Record<string, unknown>;
37
30
  children?: AiBlockNode[];
38
- /** Shape is per-block-type, defined by the backend's `BlockDef.itemFields` (accordion's
39
- * question/answer, media-strip's assetId/alt/href/linkTarget). */
40
31
  items?: Array<{
41
32
  question: string;
42
33
  answer: string;
43
- } | MediaStripItem>;
34
+ }>;
44
35
  animation?: {
45
36
  effect: 'fade-in' | 'fade-in-up' | 'slide-in-left' | 'slide-in-right' | 'zoom-in';
46
37
  trigger: 'on-scroll' | 'on-load' | 'on-hover';
@@ -72,21 +63,6 @@ interface AiLayoutTree {
72
63
  align?: 'top' | 'center' | 'bottom' | 'stretch';
73
64
  }>;
74
65
  }
75
- declare const BUTTON_FILL_TOKENS: readonly ["dark", "primary", "accent", "light"];
76
- declare const BUTTON_STYLES: readonly ["solid", "outline", "ghost"];
77
- declare const BUTTON_RADII: readonly ["square", "rounded", "pill"];
78
- declare const BUTTON_SIZES: readonly ["s", "m", "l"];
79
- interface ButtonStyle {
80
- fill: (typeof BUTTON_FILL_TOKENS)[number];
81
- textColor: (typeof BUTTON_FILL_TOKENS)[number];
82
- style: (typeof BUTTON_STYLES)[number];
83
- radius: (typeof BUTTON_RADII)[number];
84
- size: (typeof BUTTON_SIZES)[number];
85
- }
86
- interface ButtonStyles {
87
- primary: ButtonStyle;
88
- secondary: ButtonStyle;
89
- }
90
66
  /** One uploaded weight file for a custom font family. */
91
67
  interface AiCustomFontWeight {
92
68
  weight: number;
@@ -120,8 +96,6 @@ interface AiBrandKit {
120
96
  heading: string;
121
97
  body: string;
122
98
  };
123
- /** Absent on a kit saved before OHH-791 — renderer falls back to today's hardcoded button look. */
124
- buttons?: ButtonStyles;
125
99
  customFonts?: AiCustomFont[];
126
100
  }
127
101
  /**
@@ -495,16 +469,6 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
495
469
  hideArrow?: boolean;
496
470
  }): react_jsx_runtime.JSX.Element;
497
471
 
498
- interface EmptySectionProps {
499
- title: string;
500
- homeHref?: string;
501
- /** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
502
- eyebrowKey?: string;
503
- titleKey?: string;
504
- subtitleKey?: string;
505
- }
506
- declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
507
-
508
472
  declare function isEditSessionActive(): boolean;
509
473
 
510
474
  type CarouselSlide = {
@@ -528,4 +492,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
528
492
  bind: Record<string, string>;
529
493
  };
530
494
 
531
- 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 };
495
+ 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 };