@antscorp/antsomi-ui 1.3.5-beta.440 → 1.3.5-beta.441

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.
@@ -12,7 +12,7 @@ import { useCallback, useMemo, useState } from 'react';
12
12
  // Constants
13
13
  import { CONFIG_OPTIONS } from './constants';
14
14
  import { HOME_REPORT_ROUTES, HOME_ROUTE } from '../../constants';
15
- import { API_RESPONSE_CODE, CDP_API } from '@antscorp/antsomi-ui/es/constants';
15
+ import { API_RESPONSE_CODE, CDP_API, CDP_ROUTE } from '@antscorp/antsomi-ui/es/constants';
16
16
  // Utils
17
17
  import { getGeneratePath, getMenuItem } from '../../utils';
18
18
  // Hooks;
@@ -67,8 +67,8 @@ export const useHomeMenu = (props) => {
67
67
  onClickCreateDashboard(e);
68
68
  }
69
69
  else {
70
- if (env !== ENV.DEV && origin !== (CDP_API === null || CDP_API === void 0 ? void 0 : CDP_API[`${env}`])) {
71
- window.location.assign(`${CDP_API === null || CDP_API === void 0 ? void 0 : CDP_API[`${env}`]}${HOME_ROUTE}?${urlParams.toString()}`);
70
+ if (env !== ENV.DEV && origin !== (CDP_ROUTE === null || CDP_ROUTE === void 0 ? void 0 : CDP_ROUTE[`${env}`])) {
71
+ window.location.assign(`${CDP_ROUTE === null || CDP_ROUTE === void 0 ? void 0 : CDP_ROUTE[`${env}`]}${getGeneratePath(HOME_ROUTE, auth)}?${urlParams.toString()}`);
72
72
  }
73
73
  else {
74
74
  navigate(getGeneratePath(HOME_ROUTE, auth));
@@ -8,6 +8,11 @@ export declare const CDP_API: {
8
8
  staging: string;
9
9
  production: string;
10
10
  };
11
+ export declare const CDP_ROUTE: {
12
+ sandbox: string;
13
+ staging: string;
14
+ production: string;
15
+ };
11
16
  export declare const ISSUE_API: {
12
17
  development: string;
13
18
  sandbox: string;
@@ -12,6 +12,11 @@ export const CDP_API = {
12
12
  [ENV.STAGING]: 'https://staging-cdp.antsomi.com',
13
13
  [ENV.PROD]: 'https://cdp.antsomi.com',
14
14
  };
15
+ export const CDP_ROUTE = {
16
+ [ENV.SANDBOX]: 'https://sandbox-cdp.antsomi.com',
17
+ [ENV.STAGING]: 'https://staging-cdp.antsomi.com',
18
+ [ENV.PROD]: 'https://cdp.antsomi.com',
19
+ };
15
20
  export const ISSUE_API = {
16
21
  [ENV.DEV]: 'https://sandbox-issue.antsomi.com',
17
22
  [ENV.SANDBOX]: 'https://sandbox-issue.antsomi.com',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.440",
3
+ "version": "1.3.5-beta.441",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",