@ohhwells/bridge 0.1.152 → 0.1.153-next.417
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 +1188 -882
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +1251 -931
- package/dist/index.js.map +1 -1
- package/dist/pages.cjs +1 -1
- package/dist/pages.cjs.map +1 -1
- package/dist/pages.js +1 -1
- package/dist/pages.js.map +1 -1
- package/dist/styles.css +116 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -926,6 +926,36 @@ declare function shouldFetchContentForPath(subdomain: string, path: string): boo
|
|
|
926
926
|
/** Test seam: the cache is module state that would otherwise leak between cases. */
|
|
927
927
|
declare function resetOverriddenPathsCache(): void;
|
|
928
928
|
|
|
929
|
+
/** One entry of the parent's `ow:site-pages` payload (title is unused here). */
|
|
930
|
+
type SitePageEntry = {
|
|
931
|
+
path: string;
|
|
932
|
+
kind?: string | null;
|
|
933
|
+
collection?: string | null;
|
|
934
|
+
};
|
|
935
|
+
type CollectionItemHit = {
|
|
936
|
+
/** The page path as the editor knows it, not as the anchor spelled it. */
|
|
937
|
+
path: string;
|
|
938
|
+
/** Route segment of the owning collection, e.g. `blog`. */
|
|
939
|
+
collection: string;
|
|
940
|
+
};
|
|
941
|
+
/** Normalized item path → the hit to post. Empty on a site with no collections. */
|
|
942
|
+
type CollectionItemIndex = Map<string, CollectionItemHit>;
|
|
943
|
+
declare function indexCollectionItems(pages: readonly SitePageEntry[]): CollectionItemIndex;
|
|
944
|
+
/**
|
|
945
|
+
* Resolve an edit-mode click to the collection item it belongs to, or null to leave the click
|
|
946
|
+
* alone.
|
|
947
|
+
*
|
|
948
|
+
* Only clicks on *editable text* are intercepted. Media inside a post card stays replaceable
|
|
949
|
+
* from the listing page, so this removes exactly the inline text editing the Post panel
|
|
950
|
+
* replaces and nothing else.
|
|
951
|
+
*
|
|
952
|
+
* A CTA link is left alone too. `professional-services` links each `/team/${slug}` from a
|
|
953
|
+
* `data-ohw-role="button"` "View profile →" anchor rather than wrapping the whole card, and that
|
|
954
|
+
* label is the listing page's own copy — editing it has nothing to do with the item it points at.
|
|
955
|
+
* The role is the site tagger's CTA marker (see `cta-button.ts`), so this holds on any template.
|
|
956
|
+
*/
|
|
957
|
+
declare function matchCollectionItemClick(target: Element | null, index: CollectionItemIndex): CollectionItemHit | null;
|
|
958
|
+
|
|
929
959
|
declare function isStickySearchParam(name: string): boolean;
|
|
930
960
|
/**
|
|
931
961
|
* Copy the sticky params of `currentSearch` onto `target`, and report whether anything changed.
|
|
@@ -970,4 +1000,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
|
|
|
970
1000
|
bind: Record<string, string>;
|
|
971
1001
|
};
|
|
972
1002
|
|
|
973
|
-
export { AI_DEFAULT_BRAND, AI_FOOTER_KEY, AI_TREE_SCHEMA_VERSIONS, AI_TREE_TOKENS, type AiBlockNode, type AiBrandKit, type AiFooterBottomBar, type AiFooterColumn, type AiFooterLayoutTree, AiFooterRenderer, type AiFooterRendererProps, type AiLayoutTree, AiTreeRenderer, type AiTreeRendererProps, BRAND_TITLE_KEY, type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptySection, type EmptySectionProps, FOOTER_COLUMN_BLOCKS, FOOTER_COLUMN_SPANS, FOOTER_SOCIAL_PLATFORMS, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OHW_LOADER_PREHYDRATE_SCRIPT, OHW_LOADER_STYLE, OhhwellsBridge, OhwLoaderSpinner, OhwLoaderSurface, SITE_OG_IMAGE_KEY, SchedulingWidget, type SectionScaffold, type SiteLegalLinks, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, addFooterLinkColumn, appendFooterSocial, applyBrandChrome, applyStickySearchParams, buildDefaultFooterTree, buildTarget, dropIndicatorVariants, ensureFooterTree, filterAvailablePages, foldAlignIntoTrees, getEditModeInitialState, hasMountedContentNodes, insertFooterHours, isEditSessionActive, isPlainLeftClick, isRenderableFooterTree, isRenderableTree, isStickySearchParam, isValidUrl, nextViableSlide, parseAiFooterState, parseAiSectionsState, parseTarget, recordOverriddenPaths, removeFooterBlock, resetOverriddenPathsCache, resolveFooterCopyright, resolveStickyNavigation, serializeAiFooterState, shouldFetchContentForPath, stepViableSlide, stripTextAlignCss, toggleVariants, useOhwCarousel, validateUrlInput, viableSlides };
|
|
1003
|
+
export { AI_DEFAULT_BRAND, AI_FOOTER_KEY, AI_TREE_SCHEMA_VERSIONS, AI_TREE_TOKENS, type AiBlockNode, type AiBrandKit, type AiFooterBottomBar, type AiFooterColumn, type AiFooterLayoutTree, AiFooterRenderer, type AiFooterRendererProps, type AiLayoutTree, AiTreeRenderer, type AiTreeRendererProps, BRAND_TITLE_KEY, type CarouselSlide, type CollectionItemHit, type CollectionItemIndex, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptySection, type EmptySectionProps, FOOTER_COLUMN_BLOCKS, FOOTER_COLUMN_SPANS, FOOTER_SOCIAL_PLATFORMS, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OHW_LOADER_PREHYDRATE_SCRIPT, OHW_LOADER_STYLE, OhhwellsBridge, OhwLoaderSpinner, OhwLoaderSurface, SITE_OG_IMAGE_KEY, SchedulingWidget, type SectionScaffold, type SiteLegalLinks, type SitePageEntry, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, addFooterLinkColumn, appendFooterSocial, applyBrandChrome, applyStickySearchParams, buildDefaultFooterTree, buildTarget, dropIndicatorVariants, ensureFooterTree, filterAvailablePages, foldAlignIntoTrees, getEditModeInitialState, hasMountedContentNodes, indexCollectionItems, insertFooterHours, isEditSessionActive, isPlainLeftClick, isRenderableFooterTree, isRenderableTree, isStickySearchParam, isValidUrl, matchCollectionItemClick, nextViableSlide, parseAiFooterState, parseAiSectionsState, parseTarget, recordOverriddenPaths, removeFooterBlock, resetOverriddenPathsCache, resolveFooterCopyright, resolveStickyNavigation, serializeAiFooterState, shouldFetchContentForPath, stepViableSlide, stripTextAlignCss, toggleVariants, useOhwCarousel, validateUrlInput, viableSlides };
|
package/dist/index.d.ts
CHANGED
|
@@ -926,6 +926,36 @@ declare function shouldFetchContentForPath(subdomain: string, path: string): boo
|
|
|
926
926
|
/** Test seam: the cache is module state that would otherwise leak between cases. */
|
|
927
927
|
declare function resetOverriddenPathsCache(): void;
|
|
928
928
|
|
|
929
|
+
/** One entry of the parent's `ow:site-pages` payload (title is unused here). */
|
|
930
|
+
type SitePageEntry = {
|
|
931
|
+
path: string;
|
|
932
|
+
kind?: string | null;
|
|
933
|
+
collection?: string | null;
|
|
934
|
+
};
|
|
935
|
+
type CollectionItemHit = {
|
|
936
|
+
/** The page path as the editor knows it, not as the anchor spelled it. */
|
|
937
|
+
path: string;
|
|
938
|
+
/** Route segment of the owning collection, e.g. `blog`. */
|
|
939
|
+
collection: string;
|
|
940
|
+
};
|
|
941
|
+
/** Normalized item path → the hit to post. Empty on a site with no collections. */
|
|
942
|
+
type CollectionItemIndex = Map<string, CollectionItemHit>;
|
|
943
|
+
declare function indexCollectionItems(pages: readonly SitePageEntry[]): CollectionItemIndex;
|
|
944
|
+
/**
|
|
945
|
+
* Resolve an edit-mode click to the collection item it belongs to, or null to leave the click
|
|
946
|
+
* alone.
|
|
947
|
+
*
|
|
948
|
+
* Only clicks on *editable text* are intercepted. Media inside a post card stays replaceable
|
|
949
|
+
* from the listing page, so this removes exactly the inline text editing the Post panel
|
|
950
|
+
* replaces and nothing else.
|
|
951
|
+
*
|
|
952
|
+
* A CTA link is left alone too. `professional-services` links each `/team/${slug}` from a
|
|
953
|
+
* `data-ohw-role="button"` "View profile →" anchor rather than wrapping the whole card, and that
|
|
954
|
+
* label is the listing page's own copy — editing it has nothing to do with the item it points at.
|
|
955
|
+
* The role is the site tagger's CTA marker (see `cta-button.ts`), so this holds on any template.
|
|
956
|
+
*/
|
|
957
|
+
declare function matchCollectionItemClick(target: Element | null, index: CollectionItemIndex): CollectionItemHit | null;
|
|
958
|
+
|
|
929
959
|
declare function isStickySearchParam(name: string): boolean;
|
|
930
960
|
/**
|
|
931
961
|
* Copy the sticky params of `currentSearch` onto `target`, and report whether anything changed.
|
|
@@ -970,4 +1000,4 @@ declare function useOhwCarousel(key: string, initial: CarouselSlide[]): {
|
|
|
970
1000
|
bind: Record<string, string>;
|
|
971
1001
|
};
|
|
972
1002
|
|
|
973
|
-
export { AI_DEFAULT_BRAND, AI_FOOTER_KEY, AI_TREE_SCHEMA_VERSIONS, AI_TREE_TOKENS, type AiBlockNode, type AiBrandKit, type AiFooterBottomBar, type AiFooterColumn, type AiFooterLayoutTree, AiFooterRenderer, type AiFooterRendererProps, type AiLayoutTree, AiTreeRenderer, type AiTreeRendererProps, BRAND_TITLE_KEY, type CarouselSlide, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptySection, type EmptySectionProps, FOOTER_COLUMN_BLOCKS, FOOTER_COLUMN_SPANS, FOOTER_SOCIAL_PLATFORMS, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OHW_LOADER_PREHYDRATE_SCRIPT, OHW_LOADER_STYLE, OhhwellsBridge, OhwLoaderSpinner, OhwLoaderSurface, SITE_OG_IMAGE_KEY, SchedulingWidget, type SectionScaffold, type SiteLegalLinks, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, addFooterLinkColumn, appendFooterSocial, applyBrandChrome, applyStickySearchParams, buildDefaultFooterTree, buildTarget, dropIndicatorVariants, ensureFooterTree, filterAvailablePages, foldAlignIntoTrees, getEditModeInitialState, hasMountedContentNodes, insertFooterHours, isEditSessionActive, isPlainLeftClick, isRenderableFooterTree, isRenderableTree, isStickySearchParam, isValidUrl, nextViableSlide, parseAiFooterState, parseAiSectionsState, parseTarget, recordOverriddenPaths, removeFooterBlock, resetOverriddenPathsCache, resolveFooterCopyright, resolveStickyNavigation, serializeAiFooterState, shouldFetchContentForPath, stepViableSlide, stripTextAlignCss, toggleVariants, useOhwCarousel, validateUrlInput, viableSlides };
|
|
1003
|
+
export { AI_DEFAULT_BRAND, AI_FOOTER_KEY, AI_TREE_SCHEMA_VERSIONS, AI_TREE_TOKENS, type AiBlockNode, type AiBrandKit, type AiFooterBottomBar, type AiFooterColumn, type AiFooterLayoutTree, AiFooterRenderer, type AiFooterRendererProps, type AiLayoutTree, AiTreeRenderer, type AiTreeRendererProps, BRAND_TITLE_KEY, type CarouselSlide, type CollectionItemHit, type CollectionItemIndex, CustomToolbar, CustomToolbarButton, CustomToolbarDivider, DragHandle, DropIndicator, type DropIndicatorProps, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptySection, type EmptySectionProps, FOOTER_COLUMN_BLOCKS, FOOTER_COLUMN_SPANS, FOOTER_SOCIAL_PLATFORMS, ItemActionToolbar, type ItemActionToolbarProps, ItemInteractionLayer, type ItemInteractionLayerProps, type ItemInteractionState, LinkEditorPanel, type LinkModalMode, type LinkModalProps, type LinkPage, LinkPopover, type LinkSection, OHW_LOADER_PREHYDRATE_SCRIPT, OHW_LOADER_STYLE, OhhwellsBridge, OhwLoaderSpinner, OhwLoaderSurface, SITE_OG_IMAGE_KEY, SchedulingWidget, type SectionScaffold, type SiteLegalLinks, type SitePageEntry, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, addFooterLinkColumn, appendFooterSocial, applyBrandChrome, applyStickySearchParams, buildDefaultFooterTree, buildTarget, dropIndicatorVariants, ensureFooterTree, filterAvailablePages, foldAlignIntoTrees, getEditModeInitialState, hasMountedContentNodes, indexCollectionItems, insertFooterHours, isEditSessionActive, isPlainLeftClick, isRenderableFooterTree, isRenderableTree, isStickySearchParam, isValidUrl, matchCollectionItemClick, nextViableSlide, parseAiFooterState, parseAiSectionsState, parseTarget, recordOverriddenPaths, removeFooterBlock, resetOverriddenPathsCache, resolveFooterCopyright, resolveStickyNavigation, serializeAiFooterState, shouldFetchContentForPath, stepViableSlide, stripTextAlignCss, toggleVariants, useOhwCarousel, validateUrlInput, viableSlides };
|