@antscorp/antsomi-ui 1.3.5-beta.467 → 1.3.5-beta.469

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.
@@ -225,6 +225,7 @@ export const AccountSharing = props => {
225
225
  // secure: true,
226
226
  // });
227
227
  removeCookie(`uogs_${networkId}`, {
228
+ domain: `.${origin.split('.').splice(-2).join('.')}`,
228
229
  path: '/',
229
230
  sameSite: 'none',
230
231
  secure: true,
@@ -233,7 +234,7 @@ export const AccountSharing = props => {
233
234
  callbackLogout();
234
235
  setTimeout(() => {
235
236
  window.location.href = urlLogout;
236
- }, 1000);
237
+ }, 2000);
237
238
  };
238
239
  function urlDomain(data) {
239
240
  const a = document.createElement('a');
@@ -18,7 +18,6 @@ export const Toolbar = memo(() => {
18
18
  const selectedRowKeys = useDataTableContext(store => { var _a; return (_a = store.table.rowSelection) === null || _a === void 0 ? void 0 : _a.selectedRowKeys; });
19
19
  const isFilterActive = useDataTableContext(store => store.filter.isFilterActive);
20
20
  const setFilter = useDataTableContext(store => store.setFilter);
21
- console.count('toolbar render::');
22
21
  // Refs
23
22
  const { ref } = useOutsideClick(() => setFilter({
24
23
  isFilterActive: false,
@@ -135,7 +135,6 @@ export const usePermission = () => {
135
135
  : [];
136
136
  }, [auth, env, hash, mappingChildrenMenu, pathname]);
137
137
  useEffect(() => setLeftMenuState({ dashboardList }), [dashboardList, setLeftMenuState]);
138
- console.log({ menuList, menuListPermission, mappingChildrenMenu });
139
138
  useEffect(() => {
140
139
  if (!isCustomized) {
141
140
  const receivePostMessage = (event) => {
@@ -126,7 +126,6 @@ export const Layout = memo(props => {
126
126
  const activeMenuCode = (_a = activeItemPath === null || activeItemPath === void 0 ? void 0 : activeItemPath[(activeItemPath === null || activeItemPath === void 0 ? void 0 : activeItemPath.length) - 1]) === null || _a === void 0 ? void 0 : _a.menu_item_code;
127
127
  setActiveMenuCode(activeMenuCode);
128
128
  onActiveMenuChange === null || onActiveMenuChange === void 0 ? void 0 : onActiveMenuChange(activeMenuCode);
129
- console.log({ activeItemPath, flattenPermissionList });
130
129
  const hasRole = hasSelectAccountPermission(activeItemPath, flattenPermissionList, menuListPermission);
131
130
  setShowAccountSelection(hasRole);
132
131
  }, [onActiveMenuChange]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.467",
3
+ "version": "1.3.5-beta.469",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",