docthub-core-components 2.78.0 → 2.79.0

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.
@@ -50,8 +50,7 @@ export declare const FOOTER_ROUTES_QA: FooterRoutes;
50
50
  */
51
51
  export declare const FOOTER_ROUTES_PROD: FooterRoutes;
52
52
  /**
53
- * Resolves footer URLs for the current runtime (hostname or `VITE_NAV_ENV`).
54
- * Prefer calling from React render so resolution runs when `window` is available
55
- * (see `footer-env` / `routing-env`).
53
+ * Active footer routes resolved by nav-env (hostname or VITE_NAV_ENV).
54
+ * Same resolution as navigation menu; QA/prod switch together.
56
55
  */
57
- export declare function getFooterRoutes(): FooterRoutes;
56
+ export declare const FOOTER_ROUTES: FooterRoutes;
@@ -1,5 +1,2 @@
1
1
  export { DoctFooter } from './doct-footer';
2
- export { isProdFooter, isQaFooter, resolveFooterEnv } from './footer-env';
3
- export type { FooterRoutes } from './footer-routes';
4
- export { FOOTER_ROUTES_PROD, FOOTER_ROUTES_QA, getFooterRoutes, } from './footer-routes';
5
2
  export type { DoctFooterProps, FooterAppLink, FooterBrand, FooterColumn, FooterLink, FooterSection, FooterSocialLink, } from './types';
@@ -1,8 +1,6 @@
1
- import { FooterRoutes } from './footer-routes';
2
1
  import { FooterBrand, FooterColumn, FooterLink } from './types';
3
2
  export declare const consumerFooterBrand: FooterBrand;
4
- /** Default consumer footer columns — pass routes from {@link getFooterRoutes} at render time. */
5
- export declare function createConsumerFooterColumns(routes: FooterRoutes): FooterColumn[];
6
- export declare function createConsumerFooterPlatformPolicies(routes: FooterRoutes): FooterLink[];
7
- export declare function createConsumerFooterEnterprisePolicies(routes: FooterRoutes): FooterLink[];
3
+ export declare const consumerFooterColumns: FooterColumn[];
4
+ export declare const consumerFooterPlatformPolicies: FooterLink[];
5
+ export declare const consumerFooterEnterprisePolicies: FooterLink[];
8
6
  export declare const consumerFooterCopyrightText = "\u00A92026 Docthub. All rights reserved.";
@@ -1,11 +1,14 @@
1
1
  /**
2
- * Navigation external URLs QA vs production.
3
- *
4
- * Same rules as the footer; shared implementation lives in {@link ../routing-env}.
2
+ * Resolves whether navigation links should use QA or production routes.
3
+ * Used by both individual and organization nav menus.
5
4
  *
6
5
  * Resolution order:
7
6
  * 1. VITE_NAV_ENV — explicit override (qa | production | prod | dev)
8
- * 2. window.location.hostname — localhost → QA; *.com → prod; *.in → QA
7
+ * 2. window.location.hostname — localhost → QA; docthub.com → prod; dochub.in → QA
9
8
  * 3. import.meta.env.PROD — prod build → prod, dev → QA
10
9
  */
11
- export { isProdRoutingEnv as isProdNav, isQaRoutingEnv as isQaNav, resolveRoutingEnv as resolveNavEnv, } from '../routing-env';
10
+ export declare function resolveNavEnv(): "qa" | "production";
11
+ /** True when nav links should point to production (docthub.com). */
12
+ export declare function isProdNav(): boolean;
13
+ /** True when nav links should point to QA (dochub.in). */
14
+ export declare function isQaNav(): boolean;
@@ -38,7 +38,7 @@ export { Tabs as DoctTabs, Tabs as DoctCustomTabs, TabsContent as DoctTabsConten
38
38
  export { Toaster as DoctToaster, toast as doctToast, } from './components/ui/toast';
39
39
  export { Tooltip as DoctTooltip, TooltipContent as DoctTooltipContent, TooltipProvider as DoctTooltipProvider, TooltipTrigger as DoctTooltipTrigger, } from './components/ui/tooltip';
40
40
  export { useAutocompleteCheckbox } from './hooks/useAutocompleteCheckbox';
41
- export { DoctFooter, type DoctFooterProps, FOOTER_ROUTES_PROD, FOOTER_ROUTES_QA, type FooterAppLink, type FooterBrand, type FooterColumn, type FooterLink, type FooterRoutes, type FooterSection, type FooterSocialLink, getFooterRoutes, isProdFooter, isQaFooter, resolveFooterEnv, } from './components/overrides/ui/footer';
41
+ export { DoctFooter, type DoctFooterProps, type FooterAppLink, type FooterBrand, type FooterColumn, type FooterLink, type FooterSection, type FooterSocialLink, } from './components/overrides/ui/footer';
42
42
  export { DoctNavigationMenu, type DoctNavigationMenuProps, type DoctNavigationMenuVariant, INDIVIDUAL_NAV_ROUTES, INDIVIDUAL_NAV_ROUTES_PROD, INDIVIDUAL_NAV_ROUTES_QA, IndividualNavigationMenu, type IndividualNavigationMenuProps, type IndividualNavRoutes, isProdNav, isQaNav, type MobileMenuCategory, type NavigationMenuGroup, type NavigationMenuGroupVariant, type NavigationMenuItem, type NavigationMenuSection, ORGANIZATION_NAV_ROUTES, ORGANIZATION_NAV_ROUTES_PROD, ORGANIZATION_NAV_ROUTES_QA, OrganizationNavigationMenu, type OrganizationNavigationMenuProps, type OrganizationNavRoutes, resolveNavEnv, } from './components/overrides/ui/navigation-menu';
43
43
  export { Breadcrumb as DoctBreadcrumb, BreadcrumbEllipsis as DoctBreadcrumbEllipsis, BreadcrumbItem as DoctBreadcrumbItem, BreadcrumbLink as DoctBreadcrumbLink, BreadcrumbList as DoctBreadcrumbList, BreadcrumbPage as DoctBreadcrumbPage, BreadcrumbSeparator as DoctBreadcrumbSeparator, } from './components/ui/breadcrumb';
44
44
  export { Timeline as DoctTimeline, type TimelineItem, } from './components/ui/timeline';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docthub-core-components",
3
- "version": "2.78.0",
3
+ "version": "2.79.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",