@antscorp/antsomi-ui 1.3.5-beta.384 → 1.3.5-beta.385

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.
@@ -26,6 +26,7 @@ interface EditorTabProps {
26
26
  modalFuncProps?: ModalFuncProps;
27
27
  onActiveTab: (id: string) => void;
28
28
  onCloseTab: (tab: EditorTabItem, index: number, newTabs: EditorTabItem[]) => void;
29
+ onConfirmRemove?: (tab: EditorTabItem) => void;
29
30
  onConfigure: (id: string) => void;
30
31
  onSaveName?: (id: string, value: string) => void;
31
32
  onAddTab: () => void;
@@ -22,7 +22,7 @@ export const EditorTab = props => {
22
22
  var _a;
23
23
  const { listTab = [], activeId = '', showArrow, showDropdown, editNameOnConfigure,
24
24
  // disabledScroll,
25
- onCloseTab, onActiveTab, onAddTab, onConfigure, onSaveName, newTabText, showComposeNewQuery, className, leftBlockClassName, tabItemClassName, confirmOnRemoveTab = true, modalFuncProps, } = props;
25
+ onCloseTab, onConfirmRemove, onActiveTab, onAddTab, onConfigure, onSaveName, newTabText, showComposeNewQuery, className, leftBlockClassName, tabItemClassName, confirmOnRemoveTab = true, modalFuncProps, } = props;
26
26
  const [activeTabId, setActiveTabId] = useState(activeId || ((_a = listTab === null || listTab === void 0 ? void 0 : listTab[0]) === null || _a === void 0 ? void 0 : _a.id));
27
27
  const [arrTabs, setArrTabs] = useState(listTab || []);
28
28
  const [isEditable, setIsEditable] = useState();
@@ -49,7 +49,13 @@ export const EditorTab = props => {
49
49
  const handleAddNew = () => {
50
50
  onAddTab();
51
51
  };
52
- const modalConfirmAsync = useCallback(() => modal.confirm(Object.assign({ title: 'Remove this tab', content: 'Removing this tab will delete it permanently. Are you sure you want to perform this action?', okText: 'Confirm', icon: React.createElement("span", { style: { display: 'none' } }), className: 'editor-tab__modal-confirm' }, modalFuncProps)), [modalFuncProps, modal]);
52
+ const modalConfirmAsync = useCallback((tab) => {
53
+ const modalInstance = modal.confirm(Object.assign({ title: 'Remove this tab', content: 'Removing this tab will delete it permanently. Are you sure you want to perform this action?', okText: 'Confirm', icon: React.createElement("span", { style: { display: 'none' } }), onOk: () => {
54
+ if (onConfirmRemove)
55
+ return onConfirmRemove(tab);
56
+ }, className: 'editor-tab__modal-confirm', centered: true }, modalFuncProps));
57
+ return modalInstance;
58
+ }, [modalFuncProps, modal, onConfirmRemove]);
53
59
  const handleActiveTab = useCallback((tabId) => {
54
60
  setActiveTabId(tabId);
55
61
  if (onActiveTab)
@@ -60,7 +66,7 @@ export const EditorTab = props => {
60
66
  if (arrTabs.length < 2) {
61
67
  return;
62
68
  }
63
- const isConfirm = confirmOnRemoveTab ? yield modalConfirmAsync() : true;
69
+ const isConfirm = confirmOnRemoveTab ? yield modalConfirmAsync(tab) : true;
64
70
  if (!isConfirm)
65
71
  return;
66
72
  if (activeTabId === tab.id) {
@@ -143,7 +149,7 @@ export const EditorTab = props => {
143
149
  break;
144
150
  }
145
151
  }),
146
- }, placement: "bottomRight", trigger: ['click'], destroyPopupOnHide: true },
152
+ }, placement: "bottomLeft", trigger: ['click'], destroyPopupOnHide: true },
147
153
  React.createElement(Button, { icon: React.createElement(Icon, { type: "icon-ants-three-dot-vertical", overlayStyle: { fontSize: 12 } }), size: "small" }))) : closeable ? (React.createElement(Button, { onClick: e => handleCloseTab(e, tab, idx), icon: React.createElement(Icon, { type: "icon-ants-remove-slim", overlayStyle: { fontSize: 12 } }), size: "small" })) : null));
148
154
  })
149
155
  : null),
@@ -29,7 +29,6 @@ export const useHomeMenu = () => {
29
29
  const auth = useLeftMenuContext(store => { var _a; return (_a = store.appConfig) === null || _a === void 0 ? void 0 : _a.auth; });
30
30
  const env = useLeftMenuContext(store => { var _a; return (_a = store.appConfig) === null || _a === void 0 ? void 0 : _a.env; });
31
31
  const dashboardParams = useLeftMenuContext(store => store.dashboardParams);
32
- const dashboardList = useLeftMenuContext(store => (store === null || store === void 0 ? void 0 : store.dashboardList) || []);
33
32
  const onClickCreateDashboard = useLayoutStore(store => store.state.leftMenu.onClickCreateDashboard);
34
33
  const [removedDashboardId, setRemovedDashboardId] = useState('');
35
34
  const urlParams = useMemo(() => new URLSearchParams(search), [search]);
@@ -74,7 +73,6 @@ export const useHomeMenu = () => {
74
73
  }
75
74
  }, [isRecommendation, auth, pathname, navigate]);
76
75
  const onRemoveDashboard = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
77
- var _a, _b;
78
76
  if (removedDashboardId && auth && env) {
79
77
  const params = {
80
78
  params: Object.assign(Object.assign({}, dashboardParams), { dashboardId: +removedDashboardId }),
@@ -82,33 +80,10 @@ export const useHomeMenu = () => {
82
80
  };
83
81
  const response = yield removeDashboard(params);
84
82
  if ((response === null || response === void 0 ? void 0 : response.code) === API_RESPONSE_CODE.SUCCESS) {
85
- let nextDashboardId;
86
- for (const [index, item] of dashboardList.entries()) {
87
- if (item.dashboardId === +removedDashboardId) {
88
- nextDashboardId =
89
- ((_a = dashboardList === null || dashboardList === void 0 ? void 0 : dashboardList[index + 1]) === null || _a === void 0 ? void 0 : _a.dashboardId) || ((_b = dashboardList === null || dashboardList === void 0 ? void 0 : dashboardList[0]) === null || _b === void 0 ? void 0 : _b.dashboardId);
90
- break;
91
- }
92
- }
93
- const newPathName = nextDashboardId
94
- ? getGeneratePath(HOME_REPORT_ROUTES.DETAIL, Object.assign(Object.assign({}, auth), { dashboardId: String(nextDashboardId) }))
95
- : getGeneratePath(HOME_ROUTE, Object.assign({}, auth));
96
- if (newPathName !== pathname) {
97
- navigate(newPathName);
98
- }
99
83
  setRemovedDashboardId('');
100
84
  }
101
85
  }
102
- }), [
103
- removedDashboardId,
104
- auth,
105
- env,
106
- dashboardParams,
107
- removeDashboard,
108
- dashboardList,
109
- pathname,
110
- navigate,
111
- ]);
86
+ }), [auth, dashboardParams, env, removedDashboardId, removeDashboard]);
112
87
  return {
113
88
  children: customChildren,
114
89
  removedDashboardId,
@@ -1,7 +1,7 @@
1
1
  // Libraries
2
2
  import React, { memo, useLayoutEffect, useState } from 'react';
3
3
  import Icon from '@antscorp/icons';
4
- import { isEmpty, isNil, uniq } from 'lodash';
4
+ import { isNil, uniq } from 'lodash';
5
5
  import classNames from 'classnames';
6
6
  import { Link } from 'react-router-dom';
7
7
  // Components
@@ -12,7 +12,7 @@ import { Flex } from '../../../../../atoms';
12
12
  import { LabelCustom, LabelWrapper, MenuWrapper, OptionDropdownWrapper } from './styled';
13
13
  import { IconWrapper } from '../../../styled';
14
14
  // Constants
15
- import { HOME_MENU_ITEMS, ICON_SIZE } from '../../../constants';
15
+ import { ICON_SIZE } from '../../../constants';
16
16
  // Utils
17
17
  import { findActiveAppCodeByUrl, findLastMatchedItemByUrl, getMenuItem } from '../../../utils';
18
18
  import { findItemByPermissionCode, recursiveFindItemByKey, recursiveFindParentOfActiveItem, } from './utils';
@@ -20,12 +20,6 @@ import { findItemByPermissionCode, recursiveFindItemByKey, recursiveFindParentOf
20
20
  import { useNavigatePath } from '../../../hooks';
21
21
  // Contexts
22
22
  import { useLeftMenuContext } from '../../../contexts';
23
- const noDashboardItem = {
24
- key: 'no_dashboard',
25
- label: 'No dashboard available',
26
- disabled: true,
27
- icon: null,
28
- };
29
23
  const styles = {
30
24
  dropdownMenu: { width: '130px', padding: '8px 0' },
31
25
  dotIcon: { marginTop: '2px', zIndex: 1000, flexShrink: 0, fontSize: 16 },
@@ -152,8 +146,7 @@ export const ChildMenu = memo(props => {
152
146
  const customMenuItems = (args) => {
153
147
  var _a;
154
148
  return (_a = args === null || args === void 0 ? void 0 : args.items) === null || _a === void 0 ? void 0 : _a.map(item => {
155
- const { key, label, children, icon, logo_url, menu_item_path = null, menu_item_domain = null, options, disabled, optionCallback, } = item;
156
- const isOwnerDashboardKey = key === HOME_MENU_ITEMS.DASHBOARD.menu_item_code;
149
+ const { key, label, children, icon, logo_url, menu_item_path = null, menu_item_domain = null, options, optionCallback, } = item;
157
150
  const renderLabel = () => (React.createElement(LabelWrapper, null,
158
151
  React.createElement(LabelCustom, { ellipsis: { tooltip: label } }, label),
159
152
  (options === null || options === void 0 ? void 0 : options.length) && !isRecommendation && (React.createElement(OptionDropdownWrapper, null,
@@ -180,11 +173,7 @@ export const ChildMenu = memo(props => {
180
173
  label: (React.createElement(Flex, { gap: 10, align: "center", justify: "space-between", style: { height: '100%' } },
181
174
  renderIcon(),
182
175
  React.createElement(Flex, { style: styles.menuItemTitle, align: "center" }, renderTitle()))),
183
- disabled,
184
- children: customMenuItems({
185
- parent: item,
186
- items: isOwnerDashboardKey && isEmpty(children) ? [noDashboardItem] : children,
187
- }),
176
+ children: customMenuItems({ parent: item, items: children }),
188
177
  };
189
178
  });
190
179
  };
@@ -1,6 +1,6 @@
1
1
  // Libraries
2
2
  import { useEffect, useMemo } from 'react';
3
- import { sortBy, uniqBy } from 'lodash';
3
+ import { sortBy } from 'lodash';
4
4
  // Queries
5
5
  import { useGetDashboard, useGetDestinationChannel, useGetListMenu, useGetListMenuPermission, } from '@antscorp/antsomi-ui/es/queries/LeftMenu';
6
6
  // Stores
@@ -13,15 +13,19 @@ export const usePermission = () => {
13
13
  const appConfig = useLeftMenuContext(store => store.appConfig);
14
14
  const isCustomized = useLeftMenuContext(store => store.isCustomized);
15
15
  const isRecommendation = useLeftMenuContext(store => store.isRecommendation);
16
- const setLeftMenuState = useLeftMenuContext(store => store.setState);
17
16
  const { isGrouped, objectId, objectType } = useLeftMenuContext(store => store.dashboardParams);
18
17
  const { auth, languageCode = 'en', env = 'development', permissionDomain } = appConfig || {};
19
18
  const { pathname, hash } = window.location;
20
19
  const { data: menuList } = useGetListMenu({
21
20
  args: {
22
21
  auth: {
23
- token: '5474r2x214r2b4b4v2d4y444u2v5q2p5o4d4c4f424e4' || (auth === null || auth === void 0 ? void 0 : auth.token),
24
- url: 'https://sandbox-permission.ants.vn',
22
+ token: ['development', 'sandbox'].includes(env)
23
+ ? '5474r2x214r2b4b4v2d4y444u2v5q2p5o4d4c4f424e4'
24
+ : auth === null || auth === void 0 ? void 0 : auth.token,
25
+ // url: 'https://sandbox-permission.ants.vn',
26
+ url: ['development', 'sandbox'].includes(env)
27
+ ? 'https://sandbox-permission.ants.vn'
28
+ : permissionDomain, // NOTE: Hard for sandbox, development
25
29
  portalId: auth === null || auth === void 0 ? void 0 : auth.portalId,
26
30
  userId: auth === null || auth === void 0 ? void 0 : auth.userId,
27
31
  accountId: auth === null || auth === void 0 ? void 0 : auth.accountId,
@@ -31,7 +35,7 @@ export const usePermission = () => {
31
35
  },
32
36
  },
33
37
  options: {
34
- enabled: !!(auth === null || auth === void 0 ? void 0 : auth.userId) && !!auth.portalId,
38
+ enabled: !!(auth === null || auth === void 0 ? void 0 : auth.userId) && !!auth.portalId && !!permissionDomain,
35
39
  },
36
40
  });
37
41
  const { data: dashboardData, refetch: refetchDashboard } = useGetDashboard({
@@ -50,8 +54,6 @@ export const usePermission = () => {
50
54
  },
51
55
  },
52
56
  });
53
- const { ownedDashboard = [], sharedDashboard = [] } = (dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.entries) || {};
54
- const dashboardList = useMemo(() => uniqBy([...ownedDashboard, ...sharedDashboard], 'dashboardId'), [ownedDashboard, sharedDashboard]);
55
57
  const { data: destinationChannel } = useGetDestinationChannel({
56
58
  args: {
57
59
  auth: {
@@ -87,10 +89,10 @@ export const usePermission = () => {
87
89
  const mappingChildrenMenu = useMemo(() => getMappingAppChildren({
88
90
  menuList: permissionMenu,
89
91
  auth,
90
- dashboardList,
92
+ dashboardData,
91
93
  destinationChannelEntries: destinationChannel === null || destinationChannel === void 0 ? void 0 : destinationChannel.entries,
92
94
  isRecommendation,
93
- }), [auth, dashboardList, destinationChannel === null || destinationChannel === void 0 ? void 0 : destinationChannel.entries, isRecommendation, permissionMenu]);
95
+ }), [auth, dashboardData, destinationChannel === null || destinationChannel === void 0 ? void 0 : destinationChannel.entries, isRecommendation, permissionMenu]);
94
96
  const activeItemPath = useMemo(() => {
95
97
  const url = `${pathname}${hash}`;
96
98
  const matchedCode = findLastMatchedItemByUrl({
@@ -105,7 +107,6 @@ export const usePermission = () => {
105
107
  })
106
108
  : [];
107
109
  }, [auth, hash, mappingChildrenMenu, pathname]);
108
- useEffect(() => setLeftMenuState({ dashboardList: [] }), [dashboardList, setLeftMenuState]);
109
110
  useEffect(() => {
110
111
  if (!isCustomized) {
111
112
  const receivePostMessage = (event) => {
@@ -1,4 +1,4 @@
1
- import { TDashboard, TFeatureMenu } from '@antscorp/antsomi-ui/es/models/LeftMenu';
1
+ import { TFeatureMenu } from '@antscorp/antsomi-ui/es/models/LeftMenu';
2
2
  import { TMenuItem } from '../types';
3
3
  import { AppConfigProviderProps } from '@antscorp/antsomi-ui/es/providers';
4
4
  export interface LeftMenuStoreProps {
@@ -17,7 +17,6 @@ export interface LeftMenuStoreProps {
17
17
  objectType: string;
18
18
  isGrouped: boolean;
19
19
  };
20
- dashboardList?: TDashboard[];
21
20
  onMenuClick?: (key: string, keyPath: string[]) => void;
22
21
  }
23
22
  export interface LeftMenuState extends LeftMenuStoreProps {
@@ -3,7 +3,6 @@ export type TMenuItem = Omit<Partial<TFeatureMenu>, 'children' | keyof TRequireM
3
3
  key: string;
4
4
  label: string;
5
5
  icon: string | null;
6
- disabled?: boolean;
7
6
  children?: TMenuItem[];
8
7
  } & TOption;
9
8
  export type TMenuFeatureItem = Omit<Partial<TFeatureMenu>, 'children'> & TRequireMenuItemKey & TOption & {
@@ -1,4 +1,4 @@
1
- import { FeatureMenuPermission, TDashboard, TDestinationChannel, TFeatureMenu } from '@antscorp/antsomi-ui/es/models/LeftMenu';
1
+ import { FeatureMenuPermission, TDashboardResponse, TDestinationChannel, TFeatureMenu } from '@antscorp/antsomi-ui/es/models/LeftMenu';
2
2
  import { PayloadInfo } from '@antscorp/antsomi-ui/es/types';
3
3
  import { TMenuFeatureItem, TMenuItem } from '../types';
4
4
  /**
@@ -63,7 +63,7 @@ export declare const recursiveGetMenuItemByPermission: (featureMenuItem: TFeatur
63
63
  export declare const getMappingAppChildren: (args: {
64
64
  menuList: TFeatureMenu[];
65
65
  auth?: Partial<PayloadInfo>;
66
- dashboardList?: TDashboard[];
66
+ dashboardData?: TDashboardResponse;
67
67
  destinationChannelEntries?: TDestinationChannel[];
68
68
  isRecommendation?: boolean;
69
69
  }) => TFeatureMenu[];
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  // Libraries
13
- import { cloneDeep, isArray, isEmpty, sortBy } from 'lodash';
13
+ import { cloneDeep, isArray, isEmpty, sortBy, uniqBy } from 'lodash';
14
14
  // Constants
15
15
  import { APP_KEYS, MARKETING_CHANNEL_KEY, HOME_MENU_ITEMS, MARKETING_ROUTES, MENU_ITEM_TYPE, RENDER_OPTION, HOME_REPORT_ROUTES, SETTING_APP, } from '../constants';
16
16
  import { MARKETING_CHANNEL_CODE } from '../../../template/Layout/constants';
@@ -132,7 +132,7 @@ export const recursiveGetMenuItemByPermission = (featureMenuItem) => {
132
132
  };
133
133
  /** Map children to each App Item */
134
134
  export const getMappingAppChildren = (args) => {
135
- const { menuList, dashboardList, auth, destinationChannelEntries, isRecommendation } = args;
135
+ const { menuList, dashboardData, auth, destinationChannelEntries, isRecommendation } = args;
136
136
  const recursiveAddRenderOption = (menuItem) => {
137
137
  var _a;
138
138
  const cloneMenuItem = cloneDeep(menuItem);
@@ -170,9 +170,11 @@ export const getMappingAppChildren = (args) => {
170
170
  var _a, _b;
171
171
  switch (appItem.menu_item_code) {
172
172
  case APP_KEYS.HOME: {
173
+ const { ownedDashboard = [], sharedDashboard = [] } = (dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.entries) || {};
174
+ uniqBy([...ownedDashboard, ...sharedDashboard], 'dashboardId');
173
175
  const dashboardObject = {
174
176
  sharedDashboard: [],
175
- ownedDashboard: dashboardList,
177
+ ownedDashboard: uniqBy([...ownedDashboard, ...sharedDashboard], 'dashboardId'),
176
178
  recentDashboard: [],
177
179
  };
178
180
  appItem.children = (_a = Object.values(HOME_MENU_ITEMS)) === null || _a === void 0 ? void 0 : _a.map(childMenuItem => {
@@ -130,7 +130,7 @@ export const Layout = memo(props => {
130
130
  return (React.createElement(LayoutWrapper, { showLeftMenu: !!showLeftMenu },
131
131
  React.createElement(HeaderV2, Object.assign({}, mergeHeaderProps, { showLogo: !showLeftMenu })),
132
132
  React.createElement(Flex, { className: "layout-body" },
133
- showLeftMenu && (React.createElement(LeftMenu, Object.assign({ className: `layout-body__menu ${leftMenuClassName}`, appConfig: appConfig }, mergeLeftMenuProps, { onActiveMenuCodeChange: onActiveMenuCodeChange }))),
133
+ showLeftMenu && (React.createElement(LeftMenu, Object.assign({ className: `layout-body__menu ${leftMenuClassName}` }, mergeLeftMenuProps, { appConfig: Object.assign(Object.assign({}, appConfig), { permissionDomain }), onActiveMenuCodeChange: onActiveMenuCodeChange }))),
134
134
  React.createElement(ContentWrapper, Object.assign({ "$noPadding": noPadding, "$noSpaceTopContent": noSpaceTopContent }, mergeContentWrapperProps), activeMenuCode === HOME_MENU_ITEMS.RECOMMENDATION.menu_item_code ? (React.createElement("div", { className: "layout-body__content" },
135
135
  React.createElement(RecommendationWorkspace, null))) : (React.createElement("div", Object.assign({ className: `layout-body__content ${(workspaceProps === null || workspaceProps === void 0 ? void 0 : workspaceProps.className) || ''}` }, mergeWorkSpaceProps),
136
136
  React.createElement(NotificationWrapper, { ref: notificationWrapperRef },
@@ -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.3.5-beta.384",
3
+ "version": "1.3.5-beta.385",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",