@antscorp/antsomi-ui 1.3.5-beta.182 → 1.3.5-beta.183

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,32 +20,21 @@ import { HeaderV2 } from '../../molecules';
20
20
  import { useContextSelector } from 'use-context-selector';
21
21
  import { AppConfigContext } from '../../..';
22
22
  export const Layout = memo(props => {
23
+ var _a;
23
24
  const { leftMenuProps, headerProps, workspaceProps, children } = props;
24
- const _a = leftMenuProps || {}, { className = '' } = _a, restOfLeftMenuProps = __rest(_a, ["className"]);
25
+ const _b = leftMenuProps || {}, { className = '' } = _b, restOfLeftMenuProps = __rest(_b, ["className"]);
25
26
  // Selectors
26
27
  const { auth, env } = useContextSelector(AppConfigContext, state => state);
27
28
  return (React.createElement(LayoutWrapper, null,
28
- React.createElement(HeaderV2, Object.assign({ className: "layout-header", config: {
29
- env: env || 'development',
30
- userId: Number((auth === null || auth === void 0 ? void 0 : auth.userId) || '1600084695'),
31
- portalId: (auth === null || auth === void 0 ? void 0 : auth.portalId) || 33167,
32
- token: (auth === null || auth === void 0 ? void 0 : auth.token) || '5474r2x214z294b423a4y4j574j5i4t5i4x2t4f4l5q5',
33
- }, helpConfig: {
34
- configs: {
35
- appCode: 'SANDBOX_MARKETING',
36
- avatar: '//c0-platform.ants.tech/avatar/2021/09/17/0xgbkurioo.png',
37
- config: {
29
+ React.createElement(HeaderV2, Object.assign({ className: "layout-header" }, headerProps, { helpConfig: {
30
+ configs: Object.assign(Object.assign({}, (_a = headerProps === null || headerProps === void 0 ? void 0 : headerProps.helpConfig) === null || _a === void 0 ? void 0 : _a.configs), { appCode: 'SANDBOX_MARKETING', avatar: '//c0-platform.ants.tech/avatar/2021/09/17/0xgbkurioo.png', config: {
38
31
  p_timezone: 'Asia/Singapore',
39
32
  api_pid: 33167,
40
33
  p_f_longdatetime: "dd MMMM 'at' HH:mm:ss",
41
34
  embeddedData: {},
42
35
  INSIGHT_U_OGS: 'uogs',
43
- },
44
- },
45
- }, accountSharingConfig: {
46
- u_ogs: 'uogs',
47
- appCode: 'APP_CUSTOMER_360',
48
- } }, headerProps)),
36
+ } }),
37
+ }, accountSharingConfig: Object.assign(Object.assign({}, headerProps === null || headerProps === void 0 ? void 0 : headerProps.accountSharingConfig), { u_ogs: 'uogs', appCode: 'APP_CUSTOMER_360' }) })),
49
38
  React.createElement(Flex, { className: "layout-body" },
50
39
  React.createElement(LeftMenu, Object.assign({ className: `layout-body__menu ${className}` }, restOfLeftMenuProps)),
51
40
  React.createElement(ContentWrapper, null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.182",
3
+ "version": "1.3.5-beta.183",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",