@antscorp/antsomi-ui 1.3.5-beta.708 → 1.3.5-beta.709

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.
@@ -10,12 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  // Libraries
13
- import React, { Suspense } from 'react';
13
+ import React from 'react';
14
14
  import { cloneDeep, isArray, isEmpty, isNil, sortBy } from 'lodash';
15
15
  // Components
16
- import { LazyIcon as Icons } from '@antscorp/antsomi-ui/es/components/icons/LazyIcon';
16
+ // import { LazyIcon as Icons } from '@antscorp/antsomi-ui/es/components/icons/LazyIcon';
17
17
  /** Use this Icons for test storybook */
18
- // import * as Icons from '@antscorp/antsomi-ui/es/components/icons';
18
+ import * as Icons from '@antscorp/antsomi-ui/es/components/icons';
19
19
  import { Icon } from '@antscorp/antsomi-ui/es/components/atoms/Icon';
20
20
  // Constants
21
21
  import { APP_KEYS, MARKETING_CHANNEL_KEY, HOME_MENU_ITEMS, MARKETING_ROUTES, MENU_ITEM_TYPE, RENDER_OPTION, HOME_REPORT_ROUTES, SETTING_APP, APP_EXCLUDED_KEYS, MAP_MENU_TO_PARENT_APP_CODE, } from '../constants';
@@ -522,8 +522,11 @@ export const renderMenuIcon = (iconName) => {
522
522
  try {
523
523
  // const ComponentIcon = iconName && Icons[iconName];
524
524
  const ComponentIcon = iconName && Icons[iconName];
525
- return ComponentIcon ? (React.createElement(Suspense, { fallback: null },
526
- React.createElement(ComponentIcon, { className: "menu-item__icon", size: 30 }))) : (React.createElement(IconWrapper, null, isNil(iconName) ? null : React.createElement(Icon, { type: iconName })));
525
+ return ComponentIcon ? (
526
+ // <Suspense fallback={null}>
527
+ React.createElement(ComponentIcon, { className: "menu-item__icon", size: 30 })) : (
528
+ // </Suspense>
529
+ React.createElement(IconWrapper, null, isNil(iconName) ? null : React.createElement(Icon, { type: iconName })));
527
530
  }
528
531
  catch (error) {
529
532
  return React.createElement(IconWrapper, null, isNil(iconName) ? null : React.createElement(Icon, { type: iconName }));
package/es/test.js CHANGED
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  import React, { useState } from 'react';
12
12
  import { createRoot } from 'react-dom/client';
13
13
  import '@antscorp/icons/main.css';
14
- import { TemplateSaveAsModal, useTemplateSave, Button, Layout, Login, ContentSources, } from './components';
14
+ import { TemplateSaveAsModal, useTemplateSave, Button, Layout, } from './components';
15
15
  // Constants
16
16
  import { GET_LIST_TYPE, OBJECT_TYPES, PUBLIC_LEVEL } from './constants';
17
17
  // import { Slider } from 'antd';
@@ -107,24 +107,6 @@ export const App = () => {
107
107
  const callbackSlideBar = (type, data) => {
108
108
  console.log({ type, data });
109
109
  };
110
- const d = {
111
- loginDomain: 'https://iam.ants.tech/',
112
- };
113
- // const d = {
114
- // loginDomain: 'https://sandbox-aacm.ants.vn',
115
- // networkId: '76753',
116
- // theme: 'white',
117
- // u_ogs: 'uogs_sand_48956',
118
- // apiDomain: '//sandbox-permission.ants.vn',
119
- // };
120
- /* Login */
121
- return (React.createElement(ContentSources, { mode: "MEDIA", useQueryClient: true, justOneGroup: true, serviceAuth: {
122
- url: 'https://sandbox-media-template.antsomi.com/cdp/api/v1',
123
- userId: '1600080515',
124
- accountId: '1600083946',
125
- token: '5474r2x214z254a4u2a4y454t4065406a434d4e4b4z5',
126
- } }));
127
- return React.createElement(Login, Object.assign({}, d));
128
110
  /* MatchesAnySelect */
129
111
  return React.createElement(MatchesAnySelectTest, null);
130
112
  /* Data Table */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.708",
3
+ "version": "1.3.5-beta.709",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",