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.
- package/dist/index.esm.js +2269 -2265
- package/dist/src/components/overrides/ui/footer/footer-routes.d.ts +3 -4
- package/dist/src/components/overrides/ui/footer/index.d.ts +0 -3
- package/dist/src/components/overrides/ui/footer/presets.d.ts +3 -5
- package/dist/src/components/overrides/ui/navigation-menu/nav-env.d.ts +8 -5
- package/dist/src/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
54
|
-
*
|
|
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
|
|
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
|
-
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
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
|
-
*
|
|
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;
|
|
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
|
|
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;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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,
|
|
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';
|