@antscorp/antsomi-ui 1.3.5-beta.423 → 1.3.5-beta.424

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.
@@ -24,7 +24,7 @@ interface EditorTabProps {
24
24
  activeId?: string;
25
25
  confirmOnRemoveTab?: boolean;
26
26
  modalFuncProps?: ModalFuncProps;
27
- onActiveTab: (id: string) => void;
27
+ onActiveTab: (id: string | undefined) => void;
28
28
  onCloseTab?: (tab: EditorTabItem, index: number, newTabs: EditorTabItem[]) => void;
29
29
  onClickRemoveTab?: (tab: EditorTabItem, index: number, newTabs: EditorTabItem[]) => void;
30
30
  onConfirmRemove?: (tab: EditorTabItem) => void;
@@ -94,10 +94,11 @@ export const EditorTab = props => {
94
94
  onActiveTab(tabId);
95
95
  }, [onActiveTab]);
96
96
  const handleCloseTab = (e, tab, idx) => __awaiter(void 0, void 0, void 0, function* () {
97
+ var _b, _c;
97
98
  e.stopPropagation();
98
- if (arrTabs.length < 2) {
99
- return;
100
- }
99
+ // if (arrTabs.length < 2) {
100
+ // return;
101
+ // }
101
102
  const newTabs = arrTabs.filter(item => item.id !== tab.id);
102
103
  if (onClickRemoveTab)
103
104
  return onClickRemoveTab(tab, idx, newTabs);
@@ -109,10 +110,10 @@ export const EditorTab = props => {
109
110
  return;
110
111
  if (activeTabId === tab.id) {
111
112
  if (idx === arrTabs.length - 1) {
112
- handleActiveTab(arrTabs[idx - 1].id);
113
+ handleActiveTab((_b = arrTabs[idx - 1]) === null || _b === void 0 ? void 0 : _b.id);
113
114
  }
114
115
  else if (arrTabs.length > 1) {
115
- handleActiveTab(arrTabs[idx + 1].id);
116
+ handleActiveTab((_c = arrTabs[idx + 1]) === null || _c === void 0 ? void 0 : _c.id);
116
117
  }
117
118
  }
118
119
  onCloseTab === null || onCloseTab === void 0 ? void 0 : onCloseTab(tab, idx, newTabs);
@@ -193,6 +194,6 @@ export const EditorTab = props => {
193
194
  showArrow && (React.createElement("div", { className: "navigate-button", onClick: () => onClickArrow('right') },
194
195
  React.createElement(Icon, { type: "icon-ants-angle-right" }))),
195
196
  showComposeNewQuery || newTabText ? (React.createElement(Button, { onClick: handleAddNew, className: "new-query-button" },
196
- React.createElement(Icon, { type: "icon-ants-add-square" }),
197
+ React.createElement(Icon, { type: "icon-ants-add-square", style: { fontSize: '16px' } }),
197
198
  newTabText || 'New query')) : null));
198
199
  };
@@ -95,7 +95,7 @@ export const PeopleAccess = (props) => {
95
95
  return (React.createElement(List.Item, null,
96
96
  React.createElement(Avatar, { src: access.avatar }),
97
97
  React.createElement("div", { className: "info" },
98
- React.createElement("div", { className: "name" }, access.fullName),
98
+ React.createElement("div", { className: "name" }, access.fullName || (access === null || access === void 0 ? void 0 : access.name)),
99
99
  React.createElement("div", { className: "email" }, access.email)),
100
100
  React.createElement(Dropdown, { trigger: ['click'], disabled: !actions.length, overlayStyle: { zIndex: 3002 }, menu: {
101
101
  items: renderActionItems(actions),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.423",
3
+ "version": "1.3.5-beta.424",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",