@antscorp/antsomi-ui 1.3.5-beta.470 → 1.3.5-beta.472

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.
@@ -16,6 +16,7 @@ export const Radio = styled(AntdRadio) `
16
16
  border-color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.colorPrimary};
17
17
 
18
18
  &::after {
19
+ flex-shrink: 0;
19
20
  background-color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.colorPrimary};
20
21
  }
21
22
  }
@@ -24,6 +24,8 @@ import Icon from '@antscorp/icons';
24
24
  import { useDebounce } from '@antscorp/antsomi-ui/es/hooks/useDebounceV2';
25
25
  import { DEFAULT_TRANSLATE_DATA } from './constant';
26
26
  import { THEME } from '@antscorp/antsomi-ui/es/constants';
27
+ import { useAppConfigContext } from '../../..';
28
+ import { ENV } from '@antscorp/antsomi-ui/es/config';
27
29
  // const STEP = {
28
30
  // SWITCH_ACCOUNT: 'SWITCH_ACCOUNT',
29
31
  // SELECT_NETWORK: 'SELECT_NETWORK',
@@ -37,6 +39,8 @@ const InputSearch = props => {
37
39
  export const AccountSharing = props => {
38
40
  var _a;
39
41
  const { permissionDomain = '', iamDomain = '', token = '', accountId = 0, networkId = 0, appCode = '', lang = 'en', translateData = DEFAULT_TRANSLATE_DATA, urlEditProfile = '', callbackGetInfoAccount, urlLogout = '', isShowSharing = false, isShareAccountAccess = false, u_ogs = '', callbackLogout, } = props;
42
+ const { appConfig } = useAppConfigContext();
43
+ const { env } = appConfig;
40
44
  const selectedNetworkRef = useRef();
41
45
  // const [isShowSearchAccount, setIsShowSearchAccount] = useState(false);
42
46
  const [infoAccount, setInfoAccount] = useState({});
@@ -221,20 +225,12 @@ export const AccountSharing = props => {
221
225
  });
222
226
  // const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
223
227
  const onClickButtonLogout = () => {
224
- // removeCookie(`uogs_${networkId}`, {
225
- // secure: true,
226
- // });
227
- removeCookie(`uogs_${networkId}`, {
228
+ removeCookie(`uogs_${networkId}`, Object.assign(Object.assign({}, (env !== ENV.DEV && {
228
229
  domain: `.${origin.split('.').splice(-2).join('.')}`,
229
- path: '/',
230
- sameSite: 'none',
231
- secure: true,
232
- });
230
+ })), { path: '/', sameSite: 'none', secure: true }));
233
231
  if (callbackLogout)
234
232
  callbackLogout();
235
- setTimeout(() => {
236
- window.location.href = urlLogout;
237
- }, 2000);
233
+ window.location.reload();
238
234
  };
239
235
  function urlDomain(data) {
240
236
  const a = document.createElement('a');
@@ -784,6 +784,7 @@ export const GlobalStyle = () => {
784
784
  }
785
785
 
786
786
  .antsomi-radio-inner::after {
787
+ flex-shrink: 0;
787
788
  position: unset !important;
788
789
  transition: none !important;
789
790
  transform: scale(0.6);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.470",
3
+ "version": "1.3.5-beta.472",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",