@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.cjs +992 -3567
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -50
- package/dist/index.d.ts +1 -50
- package/dist/index.js +890 -3464
- package/dist/index.js.map +1 -1
- package/dist/styles.css +65 -147
- package/package.json +3 -8
- package/dist/pages.cjs +0 -141
- package/dist/pages.cjs.map +0 -1
- package/dist/pages.d.cts +0 -45
- package/dist/pages.d.ts +0 -45
- package/dist/pages.js +0 -107
- package/dist/pages.js.map +0 -1
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,
|
|
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,
|
|
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 };
|