@antscorp/antsomi-ui 1.3.5-beta.943 → 1.3.5-beta.944
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.
|
@@ -4,7 +4,7 @@ import { Space, Typography } from 'antd';
|
|
|
4
4
|
import Icon from '@antscorp/icons';
|
|
5
5
|
import { StyledInputDropdownRoot } from './styled';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import './style.
|
|
7
|
+
import './style.css';
|
|
8
8
|
export { Dropdown } from 'antd';
|
|
9
9
|
const DefaultExpandIcon = _jsx(Icon, { type: "icon-ants-expand-more" });
|
|
10
10
|
export const InputDropdown = (props) => {
|
|
@@ -10,14 +10,12 @@ import { Flex } from '@antscorp/antsomi-ui/es/components/atoms/Flex';
|
|
|
10
10
|
import { AccountSharing } from '@antscorp/antsomi-ui/es/components/organism/AccountSharing';
|
|
11
11
|
import { Help } from '@antscorp/antsomi-ui/es/components/organism/Help';
|
|
12
12
|
import { Notification } from '@antscorp/antsomi-ui/es/components/organism/Notification';
|
|
13
|
-
import { ConversationAnalyticProvider, ConversationAnalytic } from '@antscorp/antsomi-genai';
|
|
14
13
|
// Constants
|
|
15
14
|
import { APP_CODES, APP_PERMISSION_DOMAIN, CDP_API, IAM_API, ISSUE_API, PERMISSION_API, PLATFORM_API, PORTALS_IDS, SOCKET_API, } from '@antscorp/antsomi-ui/es/constants';
|
|
16
15
|
import { useContextSelector } from 'use-context-selector';
|
|
17
16
|
import { AppConfigContext } from '@antscorp/antsomi-ui/es/providers/AppConfigProvider';
|
|
18
17
|
import { isNil } from 'lodash';
|
|
19
18
|
import { useCustomRouter } from '@antscorp/antsomi-ui/es/hooks';
|
|
20
|
-
import '@antscorp/antsomi-genai/css';
|
|
21
19
|
const SubLogoAntsomi = 'https://st-media-template.antsomi.com/icons/antsomi/antsomi.png';
|
|
22
20
|
const { DATAFLOWS, APP_ANTALYSER } = APP_CODES;
|
|
23
21
|
// const DOUBLE_RIGHT_POINTING = '»'
|
|
@@ -117,5 +115,5 @@ export const HeaderV2 = memo(props => {
|
|
|
117
115
|
onSelectAccount?.(userId);
|
|
118
116
|
};
|
|
119
117
|
const QUOTE_ENTITY = _jsx(_Fragment, { children: "\u00BB" });
|
|
120
|
-
return (
|
|
118
|
+
return (_jsxs(HeaderV2Styled, { "$show": show, className: className || '', style: style, children: [_jsxs("div", { className: "left-side", children: [showLogo && (_jsx(LogoWrapper, { className: "logo-wrapper", onClick: onCLickLogo, children: _jsx("img", { src: SubLogoAntsomi, alt: "Antsomi sub logo" }) })), _jsx(AccountSelection, { ...accountSelectionProps, currentAccount: selectedAccount, apiConfig: accountSelectionApiConfig, onChange: handleChangeAccount, inputStyle: inputStyle, refreshOnSelect: true }), _jsxs("div", { className: "title-container", "data-test": "page-title", children: [breadcrumbs ? (_jsx("div", { className: "header-breadcrumbs", "data-test": "breadcrumbs", children: breadcrumbs.map((item, index) => (_jsxs(React.Fragment, { children: [isNil(item.useExternalLink) && !item.useExternalLink ? (_jsx(Link, { to: item.link || '', className: "header-breadcrumbs__item", children: item.title })) : (_jsx("a", { href: item.link, className: "header-breadcrumbs__item", children: item.title })), breadcrumbs.length === index + 1 ? null : _jsxs(_Fragment, { children: ["\u2002", QUOTE_ENTITY, "\u2002"] })] }, `${item.title}_${item.link}`))) })) : null, typeof pageTitle === 'string' ? (_jsx("div", { className: "page-title", children: pageTitle })) : (pageTitle)] })] }), _jsxs("div", { "data-test": "header-menu", className: "right-side", children: [_jsxs(Flex, { gap: 10, children: [rightContent, showHelp ? _jsx(Help, { configs: helpConfigProps, ...helpProps }) : null, showNotification ? _jsx(Notification, { ...notificationConfigProps }) : null] }), showAccountSharing ? (_jsx(AccountSharing, { isShowSharing: isShowSharing, isShareAccountAccess: isShareAccountAccess, ...accountSharingPropsFormatted, ...accountSharingProps })) : null] })] }));
|
|
121
119
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "1.3.5-beta.
|
|
3
|
+
"version": "1.3.5-beta.944",
|
|
4
4
|
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"dist/*",
|
|
@@ -61,8 +61,6 @@
|
|
|
61
61
|
"not op_mini all"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@antscorp/antsomi-genai": "1.0.1-beta-16",
|
|
65
|
-
"@antscorp/antsomi-constants": "1.0.5-beta.2",
|
|
66
64
|
"@antscorp/antsomi-locales": "1.0.28",
|
|
67
65
|
"@antscorp/icons": "0.27.54",
|
|
68
66
|
"@antscorp/image-editor": "1.0.2",
|
|
@@ -163,16 +161,16 @@
|
|
|
163
161
|
"@babel/preset-typescript": "^7.23.3",
|
|
164
162
|
"@commitlint/cli": "17.5.0",
|
|
165
163
|
"@commitlint/config-conventional": "17.4.4",
|
|
166
|
-
"@storybook/addon-docs": "^8.
|
|
167
|
-
"@storybook/addon-essentials": "^8.
|
|
168
|
-
"@storybook/addon-links": "^8.
|
|
164
|
+
"@storybook/addon-docs": "^8.5.0",
|
|
165
|
+
"@storybook/addon-essentials": "^8.5.0",
|
|
166
|
+
"@storybook/addon-links": "^8.5.0",
|
|
169
167
|
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
170
|
-
"@storybook/addon-webpack5-compiler-babel": "^3.0.
|
|
171
|
-
"@storybook/blocks": "^8.
|
|
172
|
-
"@storybook/manager-api": "^8.
|
|
173
|
-
"@storybook/react": "^8.
|
|
174
|
-
"@storybook/react-webpack5": "^8.
|
|
175
|
-
"@storybook/theming": "^8.
|
|
168
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
169
|
+
"@storybook/blocks": "^8.5.0",
|
|
170
|
+
"@storybook/manager-api": "^8.5.0",
|
|
171
|
+
"@storybook/react": "^8.5.0",
|
|
172
|
+
"@storybook/react-webpack5": "^8.5.0",
|
|
173
|
+
"@storybook/theming": "^8.5.0",
|
|
176
174
|
"@testing-library/dom": "^10.4.0",
|
|
177
175
|
"@testing-library/jest-dom": "^6.5.0",
|
|
178
176
|
"@testing-library/react": "^16.0.0",
|
|
@@ -214,7 +212,7 @@
|
|
|
214
212
|
"eslint-plugin-prettier": "^5.2.1",
|
|
215
213
|
"eslint-plugin-react": "^7.32.2",
|
|
216
214
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
217
|
-
"eslint-plugin-storybook": "^0.11.
|
|
215
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
218
216
|
"file-loader": "^6.2.0",
|
|
219
217
|
"googleapis": "^142.0.0",
|
|
220
218
|
"husky": "^8.0.3",
|
|
@@ -232,7 +230,7 @@
|
|
|
232
230
|
"react-router-dom": "5.1.0 || 6.14.2",
|
|
233
231
|
"sass": "^1.77.8",
|
|
234
232
|
"sass-loader": "^16.0.1",
|
|
235
|
-
"storybook": "^8.
|
|
233
|
+
"storybook": "^8.5.0",
|
|
236
234
|
"style-loader": "^4.0.0",
|
|
237
235
|
"styled-components": "^6",
|
|
238
236
|
"terser-webpack-plugin": "^5.3.10",
|