@antscorp/antsomi-ui 1.6.2 → 1.6.3

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.
@@ -20,8 +20,10 @@ export const usePermission = () => {
20
20
  const { data: menuList } = useGetListMenu({
21
21
  args: {
22
22
  auth: {
23
- token: '5474r2x214r2b4b4v2d4y444u2v5q2p5o4d4c4f424e4' || (auth === null || auth === void 0 ? void 0 : auth.token),
24
- url: 'https://sandbox-permission.ants.vn',
23
+ // token: '5474r2x214r2b4b4v2d4y444u2v5q2p5o4d4c4f424e4' || auth?.token,
24
+ token: auth === null || auth === void 0 ? void 0 : auth.token,
25
+ // url: 'https://sandbox-permission.ants.vn',
26
+ url: permissionDomain,
25
27
  portalId: auth === null || auth === void 0 ? void 0 : auth.portalId,
26
28
  userId: auth === null || auth === void 0 ? void 0 : auth.userId,
27
29
  accountId: auth === null || auth === void 0 ? void 0 : auth.accountId,
@@ -2,6 +2,7 @@ export declare const ENV: {
2
2
  readonly DEV: "development";
3
3
  readonly PROD: "production";
4
4
  readonly SANDBOX: "sandbox";
5
+ readonly STAGING: "staging";
5
6
  };
6
7
  export declare const isDev: boolean;
7
8
  export declare const ENDPOINT: {
@@ -3,6 +3,7 @@ export const ENV = {
3
3
  DEV: 'development',
4
4
  PROD: 'production',
5
5
  SANDBOX: 'sandbox',
6
+ STAGING: 'staging',
6
7
  };
7
8
  export const isDev = process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'sandbox';
8
9
  /* VERSION */
@@ -5,11 +5,13 @@ export declare const TINYMCE_API_KEY = "scyw71pj8619analvxs56ppc2w2fj2kpy5vnmflh
5
5
  export declare const CDP_API: {
6
6
  development: string;
7
7
  sandbox: string;
8
+ staging: string;
8
9
  production: string;
9
10
  };
10
11
  export declare const ISSUE_API: {
11
12
  development: string;
12
13
  sandbox: string;
14
+ staging: string;
13
15
  production: string;
14
16
  };
15
17
  export declare const PLATFORM_API = "https://platform.ants.tech";
@@ -20,18 +22,21 @@ export declare const APP_PERMISSION_DOMAIN: {
20
22
  [x: string]: {
21
23
  development: string;
22
24
  sandbox: string;
25
+ staging: string;
23
26
  production: string;
24
27
  };
25
28
  };
26
29
  export declare const PERMISSION_ENV_API: {
27
30
  development: string;
28
31
  sandbox: string;
32
+ staging: string;
29
33
  production: string;
30
34
  };
31
35
  export declare const APP_IAM_DOMAIN: {
32
36
  [x: string]: {
33
37
  development: string;
34
38
  sandbox: string;
39
+ staging: string;
35
40
  production: string;
36
41
  };
37
42
  };
@@ -9,11 +9,13 @@ export const TINYMCE_API_KEY = 'scyw71pj8619analvxs56ppc2w2fj2kpy5vnmflhhc300y35
9
9
  export const CDP_API = {
10
10
  [ENV.DEV]: 'https://sandbox-app.cdp.asia',
11
11
  [ENV.SANDBOX]: 'https://sandbox-app.cdp.asia',
12
+ [ENV.STAGING]: 'https://staging-cdp.antsomi.com',
12
13
  [ENV.PROD]: 'https://cdp.antsomi.com',
13
14
  };
14
15
  export const ISSUE_API = {
15
16
  [ENV.DEV]: 'https://sandbox-issue.antsomi.com',
16
17
  [ENV.SANDBOX]: 'https://sandbox-issue.antsomi.com',
18
+ [ENV.STAGING]: 'https://issue.antsomi.com',
17
19
  [ENV.PROD]: 'https://issue.antsomi.com',
18
20
  };
19
21
  export const PLATFORM_API = 'https://platform.ants.tech';
@@ -23,6 +25,7 @@ export const IAM_API = 'https://iam.ants.tech';
23
25
  const PERMISSION_URLS = {
24
26
  [ENV.DEV]: 'https://sandbox-permission.ants.vn',
25
27
  [ENV.SANDBOX]: 'https://sandbox-permission.ants.vn',
28
+ [ENV.STAGING]: 'https://permission.antsomi.com',
26
29
  [ENV.PROD]: 'https://permission.antsomi.com',
27
30
  };
28
31
  export const APP_PERMISSION_DOMAIN = {
@@ -34,11 +37,13 @@ export const APP_IAM_DOMAIN = {
34
37
  [DATAFLOWS]: {
35
38
  [ENV.DEV]: 'https://sandbox-aacm.ants.vn',
36
39
  [ENV.SANDBOX]: 'https://sandbox-aacm.ants.vn',
40
+ [ENV.STAGING]: 'https://iam.ants.tech',
37
41
  [ENV.PROD]: 'https://iam.ants.tech',
38
42
  },
39
43
  [APP_ANTALYSER]: {
40
44
  [ENV.DEV]: 'https://sandbox-aacm.ants.vn',
41
45
  [ENV.SANDBOX]: 'https://sandbox-aacm.ants.vn',
46
+ [ENV.STAGING]: 'https://iam.ants.tech',
42
47
  [ENV.PROD]: 'https://iam.ants.tech',
43
48
  },
44
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",