@ohhwells/bridge 0.1.119-next.331 → 0.1.120
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 +5439 -7323
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -46
- package/dist/index.d.ts +2 -46
- package/dist/index.js +5459 -7342
- package/dist/index.js.map +1 -1
- package/dist/styles.css +8 -125
- 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
|
@@ -72,21 +72,6 @@ interface AiLayoutTree {
|
|
|
72
72
|
align?: 'top' | 'center' | 'bottom' | 'stretch';
|
|
73
73
|
}>;
|
|
74
74
|
}
|
|
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
75
|
/** One uploaded weight file for a custom font family. */
|
|
91
76
|
interface AiCustomFontWeight {
|
|
92
77
|
weight: number;
|
|
@@ -120,20 +105,7 @@ interface AiBrandKit {
|
|
|
120
105
|
heading: string;
|
|
121
106
|
body: string;
|
|
122
107
|
};
|
|
123
|
-
/** Absent on a kit saved before OHH-791 — renderer falls back to today's hardcoded button look. */
|
|
124
|
-
buttons?: ButtonStyles;
|
|
125
108
|
customFonts?: AiCustomFont[];
|
|
126
|
-
/** Which parts the user actually set. Absent (kits saved before this field) = both, as ever;
|
|
127
|
-
* an unset part is a carried-over template snapshot and must not be written onto the page. */
|
|
128
|
-
touched?: {
|
|
129
|
-
palette?: boolean;
|
|
130
|
-
fonts?: boolean;
|
|
131
|
-
/** Per variant, the button fields the user set (fill, textColor, style, radius, size). */
|
|
132
|
-
buttons?: {
|
|
133
|
-
primary?: (keyof ButtonStyle)[];
|
|
134
|
-
secondary?: (keyof ButtonStyle)[];
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
109
|
}
|
|
138
110
|
/**
|
|
139
111
|
* Shape, padding and typography measured off a host-template CTA, so generated buttons read as the
|
|
@@ -468,15 +440,9 @@ type ItemInteractionLayerProps = {
|
|
|
468
440
|
chromeGap?: number;
|
|
469
441
|
/** Toolbar alignment over the element; forms hang theirs on the left edge (OHH-642). */
|
|
470
442
|
toolbarAlign?: 'center' | 'left';
|
|
471
|
-
/**
|
|
472
|
-
* Parent-scroll hide. `applyToolbarPos` sets `display:none` on this node when the
|
|
473
|
-
* selection leaves the canvas; React will not clear that on the next selection unless
|
|
474
|
-
* we own `display` here (same node, same `display:block` in the prev VDOM).
|
|
475
|
-
*/
|
|
476
|
-
hidden?: boolean;
|
|
477
443
|
className?: string;
|
|
478
444
|
};
|
|
479
|
-
declare function ItemInteractionLayer({ rect, state, elRef, toolbar, toolbarBelowRect, toolbarBelowEl, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, onItemPointerDown, onItemClick, itemDragSurface, chromeGap, toolbarAlign,
|
|
445
|
+
declare function ItemInteractionLayer({ rect, state, elRef, toolbar, toolbarBelowRect, toolbarBelowEl, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, onItemPointerDown, onItemClick, itemDragSurface, chromeGap, toolbarAlign, className, }: ItemInteractionLayerProps): react_jsx_runtime.JSX.Element | null;
|
|
480
446
|
|
|
481
447
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
482
448
|
/**
|
|
@@ -512,16 +478,6 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
|
|
|
512
478
|
hideArrow?: boolean;
|
|
513
479
|
}): react_jsx_runtime.JSX.Element;
|
|
514
480
|
|
|
515
|
-
interface EmptySectionProps {
|
|
516
|
-
title: string;
|
|
517
|
-
homeHref?: string;
|
|
518
|
-
/** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
|
|
519
|
-
eyebrowKey?: string;
|
|
520
|
-
titleKey?: string;
|
|
521
|
-
subtitleKey?: string;
|
|
522
|
-
}
|
|
523
|
-
declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
|
|
524
|
-
|
|
525
481
|
declare function isEditSessionActive(): boolean;
|
|
526
482
|
|
|
527
483
|
type CarouselSlide = {
|
|
@@ -545,4 +501,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
|
|
|
545
501
|
bind: Record<string, string>;
|
|
546
502
|
};
|
|
547
503
|
|
|
548
|
-
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,
|
|
504
|
+
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
|
@@ -72,21 +72,6 @@ interface AiLayoutTree {
|
|
|
72
72
|
align?: 'top' | 'center' | 'bottom' | 'stretch';
|
|
73
73
|
}>;
|
|
74
74
|
}
|
|
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
75
|
/** One uploaded weight file for a custom font family. */
|
|
91
76
|
interface AiCustomFontWeight {
|
|
92
77
|
weight: number;
|
|
@@ -120,20 +105,7 @@ interface AiBrandKit {
|
|
|
120
105
|
heading: string;
|
|
121
106
|
body: string;
|
|
122
107
|
};
|
|
123
|
-
/** Absent on a kit saved before OHH-791 — renderer falls back to today's hardcoded button look. */
|
|
124
|
-
buttons?: ButtonStyles;
|
|
125
108
|
customFonts?: AiCustomFont[];
|
|
126
|
-
/** Which parts the user actually set. Absent (kits saved before this field) = both, as ever;
|
|
127
|
-
* an unset part is a carried-over template snapshot and must not be written onto the page. */
|
|
128
|
-
touched?: {
|
|
129
|
-
palette?: boolean;
|
|
130
|
-
fonts?: boolean;
|
|
131
|
-
/** Per variant, the button fields the user set (fill, textColor, style, radius, size). */
|
|
132
|
-
buttons?: {
|
|
133
|
-
primary?: (keyof ButtonStyle)[];
|
|
134
|
-
secondary?: (keyof ButtonStyle)[];
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
109
|
}
|
|
138
110
|
/**
|
|
139
111
|
* Shape, padding and typography measured off a host-template CTA, so generated buttons read as the
|
|
@@ -468,15 +440,9 @@ type ItemInteractionLayerProps = {
|
|
|
468
440
|
chromeGap?: number;
|
|
469
441
|
/** Toolbar alignment over the element; forms hang theirs on the left edge (OHH-642). */
|
|
470
442
|
toolbarAlign?: 'center' | 'left';
|
|
471
|
-
/**
|
|
472
|
-
* Parent-scroll hide. `applyToolbarPos` sets `display:none` on this node when the
|
|
473
|
-
* selection leaves the canvas; React will not clear that on the next selection unless
|
|
474
|
-
* we own `display` here (same node, same `display:block` in the prev VDOM).
|
|
475
|
-
*/
|
|
476
|
-
hidden?: boolean;
|
|
477
443
|
className?: string;
|
|
478
444
|
};
|
|
479
|
-
declare function ItemInteractionLayer({ rect, state, elRef, toolbar, toolbarBelowRect, toolbarBelowEl, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, onItemPointerDown, onItemClick, itemDragSurface, chromeGap, toolbarAlign,
|
|
445
|
+
declare function ItemInteractionLayer({ rect, state, elRef, toolbar, toolbarBelowRect, toolbarBelowEl, showHandle, dragDisabled, dragHandleLabel, onDragHandleDragStart, onDragHandleDragEnd, onItemPointerDown, onItemClick, itemDragSurface, chromeGap, toolbarAlign, className, }: ItemInteractionLayerProps): react_jsx_runtime.JSX.Element | null;
|
|
480
446
|
|
|
481
447
|
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
482
448
|
/**
|
|
@@ -512,16 +478,6 @@ declare function TooltipContent({ className, sideOffset, side, children, hideArr
|
|
|
512
478
|
hideArrow?: boolean;
|
|
513
479
|
}): react_jsx_runtime.JSX.Element;
|
|
514
480
|
|
|
515
|
-
interface EmptySectionProps {
|
|
516
|
-
title: string;
|
|
517
|
-
homeHref?: string;
|
|
518
|
-
/** data-ohw-key values for the editable text nodes — omit a key to leave that node non-editable. */
|
|
519
|
-
eyebrowKey?: string;
|
|
520
|
-
titleKey?: string;
|
|
521
|
-
subtitleKey?: string;
|
|
522
|
-
}
|
|
523
|
-
declare function EmptySection({ title, homeHref, eyebrowKey, titleKey, subtitleKey }: EmptySectionProps): react_jsx_runtime.JSX.Element;
|
|
524
|
-
|
|
525
481
|
declare function isEditSessionActive(): boolean;
|
|
526
482
|
|
|
527
483
|
type CarouselSlide = {
|
|
@@ -545,4 +501,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
|
|
|
545
501
|
bind: Record<string, string>;
|
|
546
502
|
};
|
|
547
503
|
|
|
548
|
-
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,
|
|
504
|
+
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 };
|