@antscorp/antsomi-ui 1.3.5-beta.439 → 1.3.5-beta.440

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.
@@ -2,14 +2,10 @@ import React from 'react';
2
2
  import { ModalFuncProps } from 'antd';
3
3
  interface EditorTabItem {
4
4
  showIcon?: boolean;
5
- showDropdown?: boolean;
6
5
  closeable?: boolean;
7
6
  id: string;
8
7
  name: string;
9
8
  type: 'query' | 'table-detail';
10
- cursorSql?: string;
11
- cursorSqlOut?: string;
12
- refreshAndFocusId?: string;
13
9
  }
14
10
  interface EditorTabProps {
15
11
  showArrow?: boolean;
@@ -18,7 +18,7 @@ import { ACCESS_PROPERTIES_BY_ROLE, ROLE_MAPPING } from '../../constants';
18
18
  import { updateObjAccessInfo } from '../../actions';
19
19
  import { Spin } from '@antscorp/antsomi-ui/es/components/atoms';
20
20
  export const SearchUser = (props) => {
21
- const { getUserInfo, placeholder } = props;
21
+ const { getUserInfo, placeholder = 'Add people' } = props;
22
22
  const { state, dispatch } = useShareAccess();
23
23
  const { accessInfo, allowEdit } = state;
24
24
  const [users, setUsers] = useState([]);
@@ -72,7 +72,7 @@ export const SearchUser = (props) => {
72
72
  if (!allowEdit)
73
73
  return null;
74
74
  return (React.createElement(StyledSearchUserRoot, null,
75
- React.createElement(AutoComplete, { placeholder: placeholder || 'Add people and groups', value: searchTerm, onSearch: v => setSearchTerm(v), notFoundContent: isFetching ? (React.createElement(Spin, { style: {
75
+ React.createElement(AutoComplete, { placeholder: placeholder, value: searchTerm, onSearch: v => setSearchTerm(v), notFoundContent: isFetching ? (React.createElement(Spin, { style: {
76
76
  width: '100%',
77
77
  height: '40px',
78
78
  display: 'flex',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.439",
3
+ "version": "1.3.5-beta.440",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",
@@ -152,6 +152,7 @@
152
152
  "@commitlint/cli": "17.5.0",
153
153
  "@commitlint/config-conventional": "17.4.4",
154
154
  "@storybook/addon-actions": "^8.0.5",
155
+ "@storybook/addon-controls": "^8.1.11",
155
156
  "@storybook/addon-essentials": "^8.0.5",
156
157
  "@storybook/addon-interactions": "^8.0.5",
157
158
  "@storybook/addon-links": "^8.0.5",