backend.ai-ui 25.18.0-alpha.0 → 25.18.0-canary-2f368e61a-20251127
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.
- package/dist/backend.ai-ui.js +7054 -6984
- package/dist/backend.ai-ui.js.map +1 -1
- package/dist/components/BAIConfirmModalWithInput.d.ts +2 -0
- package/dist/components/baiClient/FileExplorer/BAIFileExplorer.d.ts +2 -0
- package/dist/components/baiClient/FileExplorer/DeleteSelectedItemsModal.d.ts +3 -2
- package/dist/components/baiClient/FileExplorer/ExplorerActionControls.d.ts +2 -0
- package/dist/components/baiClient/FileExplorer/FileItemControls.d.ts +3 -0
- package/dist/components/provider/BAIClientProvider/types.d.ts +1 -0
- package/dist/objectSpread2-D0Q_N5dg.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BAIModalProps } from './BAIModal';
|
|
2
|
+
import { InputProps } from 'antd';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
4
|
export interface BAIConfirmModalWithInputProps extends Omit<BAIModalProps, 'icon' | 'okButtonProps'> {
|
|
4
5
|
confirmText: string;
|
|
@@ -6,6 +7,7 @@ export interface BAIConfirmModalWithInputProps extends Omit<BAIModalProps, 'icon
|
|
|
6
7
|
title: React.ReactNode;
|
|
7
8
|
icon?: React.ReactNode;
|
|
8
9
|
okButtonProps?: Omit<BAIModalProps['okButtonProps'], 'disabled' | 'danger'>;
|
|
10
|
+
inputProps?: InputProps;
|
|
9
11
|
}
|
|
10
12
|
declare const BAIConfirmModalWithInput: React.FC<BAIConfirmModalWithInputProps>;
|
|
11
13
|
export default BAIConfirmModalWithInput;
|
|
@@ -20,6 +20,8 @@ export interface BAIFileExplorerProps {
|
|
|
20
20
|
enableWrite?: boolean;
|
|
21
21
|
onChangeFetchKey?: (fetchKey: string) => void;
|
|
22
22
|
ref?: React.Ref<BAIFileExplorerRef>;
|
|
23
|
+
onDeleteFilesInBackground?: (bgTaskId: string, targetVFolderId: string, deletingFilePaths: Array<string>) => void;
|
|
24
|
+
deletingFilePaths?: Array<string>;
|
|
23
25
|
}
|
|
24
26
|
declare const BAIFileExplorer: React.FC<BAIFileExplorerProps>;
|
|
25
27
|
export default BAIFileExplorer;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
2
|
import { ModalProps } from 'antd';
|
|
3
|
-
interface DeleteSelectedItemsModalProps extends ModalProps {
|
|
4
|
-
onRequestClose: (success: boolean) => void;
|
|
3
|
+
export interface DeleteSelectedItemsModalProps extends ModalProps {
|
|
4
|
+
onRequestClose: (success: boolean, deletingFilePaths?: Array<string>) => void;
|
|
5
|
+
onDeleteFilesInBackground?: (bgTaskId: string, targetVFolderId: string, deletingFilePaths: Array<string>) => void;
|
|
5
6
|
selectedFiles: Array<VFolderFile>;
|
|
6
7
|
}
|
|
7
8
|
declare const DeleteSelectedItemsModal: React.FC<DeleteSelectedItemsModalProps>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
|
+
import { DeleteSelectedItemsModalProps } from './DeleteSelectedItemsModal';
|
|
2
3
|
import { RcFile } from 'antd/es/upload';
|
|
3
4
|
interface ExplorerActionControlsProps {
|
|
4
5
|
selectedFiles: Array<VFolderFile>;
|
|
5
6
|
onRequestClose: (success: boolean, modifiedItems?: Array<VFolderFile>) => void;
|
|
6
7
|
onUpload: (files: Array<RcFile>, currentPath: string) => void;
|
|
8
|
+
onDeleteFilesInBackground: DeleteSelectedItemsModalProps['onDeleteFilesInBackground'];
|
|
7
9
|
enableDelete?: boolean;
|
|
8
10
|
enableWrite?: boolean;
|
|
9
11
|
extra?: React.ReactNode;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { BAIButtonProps } from '../../BAIButton';
|
|
1
2
|
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
3
|
interface FileItemControlsProps {
|
|
3
4
|
selectedItem: VFolderFile;
|
|
4
5
|
onClickDelete: () => void;
|
|
5
6
|
enableDownload?: boolean;
|
|
6
7
|
enableDelete?: boolean;
|
|
8
|
+
downloadButtonProps?: BAIButtonProps;
|
|
9
|
+
deleteButtonProps?: BAIButtonProps;
|
|
7
10
|
}
|
|
8
11
|
declare const FileItemControls: React.FC<FileItemControlsProps>;
|
|
9
12
|
export default FileItemControls;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectSpread2-D0Q_N5dg.js","sources":["../../../node_modules/.pnpm/@babel+runtime@7.
|
|
1
|
+
{"version":3,"file":"objectSpread2-D0Q_N5dg.js","sources":["../../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.js","../../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"],"sourcesContent":["function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nexport { _objectSpread2 as default };"],"names":["_typeof","o","toPrimitive","r","e","i","toPropertyKey","_defineProperty","t","ownKeys","_objectSpread2","defineProperty"],"mappings":"AAAA,SAASA,EAAQC,GAAG;AAClB;AAEA,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAChG,WAAO,OAAOA;AAAA,EAChB,IAAI,SAAUA,GAAG;AACf,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EACpH,GAAGD,EAAQC,CAAC;AACd;ACPA,SAASC,EAAY,GAAGC,GAAG;AACzB,M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