docthub-core-components 2.77.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 +2243 -2233
- package/dist/src/components/overrides/ui/footer/footer-env.d.ts +11 -0
- package/dist/src/components/overrides/ui/footer/footer-routes.d.ts +3 -6
- package/dist/src/components/overrides/ui/footer/presets.d.ts +3 -5
- package/dist/src/components/overrides/ui/routing-env.d.ts +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Footer external URLs — QA vs production (`dochub.in` / `dev.dochub.in` vs `docthub.com`).
|
|
3
|
+
*
|
|
4
|
+
* Same rules as navigation; shared implementation lives in {@link ../routing-env}.
|
|
5
|
+
*
|
|
6
|
+
* Resolution order:
|
|
7
|
+
* 1. VITE_NAV_ENV — explicit override (qa | production | prod | dev)
|
|
8
|
+
* 2. window.location.hostname — localhost → QA; *.com → prod; *.in → QA
|
|
9
|
+
* 3. import.meta.env.PROD — prod build → prod, dev → QA
|
|
10
|
+
*/
|
|
11
|
+
export { isProdRoutingEnv as isProdFooter, isQaRoutingEnv as isQaFooter, resolveRoutingEnv as resolveFooterEnv, } from '../routing-env';
|
|
@@ -50,10 +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
|
-
* at the first import (e.g. SSR or early bundle init without `window`).
|
|
56
|
-
*
|
|
57
|
-
* Same rules as {@link resolveNavEnv} / navigation menu.
|
|
53
|
+
* Active footer routes — resolved by nav-env (hostname or VITE_NAV_ENV).
|
|
54
|
+
* Same resolution as navigation menu; QA/prod switch together.
|
|
58
55
|
*/
|
|
59
|
-
export declare
|
|
56
|
+
export declare const FOOTER_ROUTES: FooterRoutes;
|
|
@@ -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.";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves whether external Docthub links (nav, footer, etc.) should use QA or production URLs.
|
|
3
|
+
*
|
|
4
|
+
* Resolution order:
|
|
5
|
+
* 1. VITE_NAV_ENV — explicit override (qa | production | prod | dev)
|
|
6
|
+
* 2. window.location.hostname — localhost → QA; docthub.com → prod; dochub.in → QA
|
|
7
|
+
* 3. import.meta.env.PROD — prod build → prod, dev → QA
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveRoutingEnv(): "qa" | "production";
|
|
10
|
+
/** True when external links should point to production (docthub.com). */
|
|
11
|
+
export declare function isProdRoutingEnv(): boolean;
|
|
12
|
+
/** True when external links should point to QA (dochub.in). */
|
|
13
|
+
export declare function isQaRoutingEnv(): boolean;
|