docthub-core-components 2.89.0 → 2.91.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 CHANGED
@@ -5289,7 +5289,7 @@ function Sl() {
5289
5289
  if (gi(o)) return "production";
5290
5290
  if (vi(o)) return "qa";
5291
5291
  }
5292
- return (s = n == null ? void 0 : n.env) != null && s.PROD || typeof process < "u" && ((r = process.env) == null ? void 0 : r.NODE_ENV) === "production" ? "production" : "qa";
5292
+ return typeof window > "u" && ((s = n == null ? void 0 : n.env) != null && s.PROD || typeof process < "u" && ((r = process.env) == null ? void 0 : r.NODE_ENV) === "production") ? "production" : "qa";
5293
5293
  }
5294
5294
  function Cc() {
5295
5295
  return Sl() === "production";
@@ -5640,9 +5640,10 @@ const ks = {
5640
5640
  disclaimerPolicy: "https://dev.dochub.in/disclaimer-policy/",
5641
5641
  blogs: "https://blogs.dochub.in/",
5642
5642
  jobsDropYourResume: "https://jobs.dochub.in/drop-your-resume",
5643
- enterpriseLogin: "https://enterprise.ibns.in/en/login/",
5643
+ // Due to removing localization, `/en` is omitted from enterprise login/register URLs (QA + PROD).
5644
+ enterpriseLogin: "https://enterprise.ibns.in/login/",
5644
5645
  // When domain is changed to enterprise.dochub.in, update the URL
5645
- enterpriseRegister: "https://enterprise.ibns.in/en/register/",
5646
+ enterpriseRegister: "https://enterprise.ibns.in/register/",
5646
5647
  enterpriseTermsConditions: "https://enterprise.dochub.in/enterprise-terms-conditions/",
5647
5648
  enterprisePrivacyPolicy: "https://enterprise.dochub.in/enterprise-privacy-policy/",
5648
5649
  enterprisePaymentPolicy: "https://enterprise.dochub.in/enterprise-payment-policy/",
@@ -5677,8 +5678,9 @@ const ks = {
5677
5678
  disclaimerPolicy: "https://www.docthub.com/disclaimer-policy",
5678
5679
  blogs: "https://blogs.docthub.com/",
5679
5680
  jobsDropYourResume: "https://jobs.docthub.com/drop-your-resume",
5680
- enterpriseLogin: "https://enterprise.docthub.com/en/login/",
5681
- enterpriseRegister: "https://enterprise.docthub.com/en/register/",
5681
+ // Due to removing localization, `/en` is omitted from enterprise login/register URLs (QA + PROD).
5682
+ enterpriseLogin: "https://enterprise.docthub.com/login/",
5683
+ enterpriseRegister: "https://enterprise.docthub.com/register/",
5682
5684
  enterpriseTermsConditions: "https://enterprise.docthub.com/enterprise-terms-conditions/",
5683
5685
  enterprisePrivacyPolicy: "https://enterprise.docthub.com/enterprise-privacy-policy/",
5684
5686
  enterprisePaymentPolicy: "https://enterprise.docthub.com/enterprise-payment-policy/",
@@ -6377,8 +6379,9 @@ const Xi = {
6377
6379
  "what-is-enterprise": "https://dev.dochub.in/enterprise-solutions",
6378
6380
  "request-demo": "https://dev.dochub.in/contact-us",
6379
6381
  "contact-sales": "https://dev.dochub.in/contact-us",
6380
- "enterprise-login": "https://enterprise.ibns.in/en/login",
6381
- "create-enterprise-account": "https://enterprise.ibns.in/en/register",
6382
+ // Due to removing localization, `/en` is omitted from enterprise login/register URLs (QA + PROD).
6383
+ "enterprise-login": "https://enterprise.ibns.in/login",
6384
+ "create-enterprise-account": "https://enterprise.ibns.in/register",
6382
6385
  "contact-support": "https://dev.dochub.in/contact-us"
6383
6386
  }, ta = {
6384
6387
  "recruiter-solution": "https://www.docthub.com/recruiter",
@@ -6389,8 +6392,9 @@ const Xi = {
6389
6392
  "what-is-enterprise": "https://www.docthub.com/enterprise-solutions",
6390
6393
  "request-demo": "https://www.docthub.com/contact-us",
6391
6394
  "contact-sales": "https://www.docthub.com/contact-us",
6392
- "enterprise-login": "https://enterprise.docthub.com/en/login",
6393
- "create-enterprise-account": "https://enterprise.docthub.com/en/register",
6395
+ // Due to removing localization, `/en` is omitted from enterprise login/register URLs (QA + PROD).
6396
+ "enterprise-login": "https://enterprise.docthub.com/login",
6397
+ "create-enterprise-account": "https://enterprise.docthub.com/register",
6394
6398
  "contact-support": "https://www.docthub.com/contact-us"
6395
6399
  }, Bt = Sl() === "production" ? ta : ea, Ar = [{
6396
6400
  id: "for-individuals-explore",
@@ -42,11 +42,13 @@ export type FooterRoutes = {
42
42
  /**
43
43
  * Footer URLs — QA environment.
44
44
  * Uses dochub.in and dev.dochub.in.
45
+ * Enterprise login/register URLs omit `/en` — localization removed (QA + PROD).
45
46
  */
46
47
  export declare const FOOTER_ROUTES_QA: FooterRoutes;
47
48
  /**
48
49
  * Footer URLs — Production environment.
49
50
  * Uses docthub.com and www.docthub.com.
51
+ * Enterprise login/register URLs omit `/en` — localization removed (QA + PROD).
50
52
  */
51
53
  export declare const FOOTER_ROUTES_PROD: FooterRoutes;
52
54
  /**
@@ -4,8 +4,10 @@
4
4
  *
5
5
  * Resolution order:
6
6
  * 1. VITE_NAV_ENV — explicit override (qa | production | prod | dev)
7
- * 2. window.location.hostname — localhost → QA; docthub.com → prod; dochub.in → QA
8
- * 3. import.meta.env.PROD Vite prod build prod
7
+ * 2. window.location.hostname — localhost → QA; *.com → prod; *.in → QA
8
+ * (Hostname takes precedence over build flags to ensure correct routing
9
+ * when a QA site like dochub.in is deployed as a production build.)
10
+ * 3. import.meta.env.PROD — Vite prod build → prod (SSR fallback only)
9
11
  * 4. process.env.NODE_ENV — Node/Next.js SSR fallback → "production" means prod
10
12
  * 5. Default → QA
11
13
  */
@@ -14,11 +14,13 @@ export type OrganizationNavRoutes = {
14
14
  /**
15
15
  * Route URLs for Organization navigation menu — QA environment.
16
16
  * Uses dev.dochub.in for solution landing pages.
17
+ * Enterprise login/register URLs omit `/en` — localization removed (QA + PROD).
17
18
  */
18
19
  export declare const ORGANIZATION_NAV_ROUTES_QA: OrganizationNavRoutes;
19
20
  /**
20
21
  * Route URLs for Organization navigation menu — Production environment.
21
22
  * Uses www.docthub.com for solution pages, enterprise.docthub.com for login/register.
23
+ * Enterprise login/register URLs omit `/en` — localization removed (QA + PROD).
22
24
  */
23
25
  export declare const ORGANIZATION_NAV_ROUTES_PROD: OrganizationNavRoutes;
24
26
  /**
@@ -1,5 +1,5 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_NAV_ENV?: "qa" | "dev" | "production" | "prod";
5
- }
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_NAV_ENV?: "qa" | "dev" | "production" | "prod";
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docthub-core-components",
3
- "version": "2.89.0",
3
+ "version": "2.91.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",