backend.ai-ui 0.0.1 → 25.16.0
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/__generated__/BAIActivateArtifactsModalArtifactsFragment.graphql.d.ts +12 -0
- package/dist/__generated__/BAIActivateArtifactsModalArtifactsFragmentRestoreArtifactsMutation.graphql.d.ts +22 -0
- package/dist/__generated__/BAIArtifactDescriptionsFragment.graphql.d.ts +17 -0
- package/dist/__generated__/BAIArtifactRevisionDeleteButtonFragment.graphql.d.ts +12 -0
- package/dist/__generated__/BAIArtifactRevisionDownloadButtonFragment.graphql.d.ts +12 -0
- package/dist/__generated__/BAIArtifactRevisionTableArtifactRevisionFragment.graphql.d.ts +17 -0
- package/dist/__generated__/BAIArtifactRevisionTableLatestRevisionFragment.graphql.d.ts +11 -0
- package/dist/__generated__/BAIArtifactStatusTagFragment.graphql.d.ts +12 -0
- package/dist/__generated__/BAIArtifactTableArtifactFragment.graphql.d.ts +30 -0
- package/dist/__generated__/BAIArtifactTypeTagFragment.graphql.d.ts +12 -0
- package/dist/__generated__/BAIBucketSelectQuery.graphql.d.ts +29 -0
- package/dist/__generated__/BAIDeactivateArtifactsModalArtifactsFragment.graphql.d.ts +12 -0
- package/dist/__generated__/BAIDeactivateArtifactsModalDeleteArtifactsMutation.graphql.d.ts +22 -0
- package/dist/__generated__/BAIDeleteArtifactRevisionsModalArtifactFragment.graphql.d.ts +12 -0
- package/dist/__generated__/BAIDeleteArtifactRevisionsModalArtifactRevisionFragment.graphql.d.ts +15 -0
- package/dist/__generated__/BAIDeleteArtifactRevisionsModalCleanupVersionMutation.graphql.d.ts +25 -0
- package/dist/__generated__/BAIImportArtifactModalArtifactFragment.graphql.d.ts +13 -0
- package/dist/__generated__/BAIImportArtifactModalArtifactRevisionFragment.graphql.d.ts +15 -0
- package/dist/__generated__/BAIImportArtifactModalImportArtifactsMutation.graphql.d.ts +33 -0
- package/dist/__generated__/BAIImportFromHuggingFaceModalScanArtifactModelsMutation.graphql.d.ts +32 -0
- package/dist/__generated__/BAIObjectStorageSelectQuery.graphql.d.ts +22 -0
- package/dist/__generated__/BAIPullingArtifactRevisionAlertCancelMutation.graphql.d.ts +22 -0
- package/dist/__generated__/BAIPullingArtifactRevisionAlertFragment.graphql.d.ts +14 -0
- package/dist/__generated__/BAISessionAgentIdsFragment.graphql.d.ts +11 -0
- package/dist/__generated__/BAISessionClusterModeFragment.graphql.d.ts +12 -0
- package/dist/__generated__/BAISessionTypeTagStoriesQuery.graphql.d.ts +13 -0
- package/dist/__generated__/UNSAFELazyUserEmailViewQuery.graphql.d.ts +15 -0
- package/dist/__generated__/useViewerQuery.graphql.d.ts +16 -0
- package/dist/backend.ai-ui.js +22220 -6991
- package/dist/backend.ai-ui.js.map +1 -1
- package/dist/common-CMrtHk6c.js.map +1 -1
- package/dist/components/BAIAlertIconWithTooltip.d.ts +9 -0
- package/dist/components/BAIBackButton.d.ts +7 -0
- package/dist/components/BAIBoardItemTitle.d.ts +9 -0
- package/dist/components/BAICard.d.ts +52 -1
- package/dist/components/BAIConfirmModalWithInput.d.ts +11 -0
- package/dist/components/{Flex.d.ts → BAIFlex.d.ts} +4 -4
- package/dist/components/BAIGraphQLPropertyFilter.d.ts +76 -0
- package/dist/components/BAIImportFromHuggingFaceModal.d.ts +6 -0
- package/dist/components/BAILink.d.ts +13 -0
- package/dist/components/BAIModal.d.ts +8 -0
- package/dist/components/BAINotificationItem.d.ts +17 -0
- package/dist/components/BAIPropertyFilter.d.ts +99 -0
- package/dist/components/BAIRowWrapWithDividers.d.ts +20 -0
- package/dist/components/BAISelect.d.ts +18 -0
- package/dist/components/BAIStatistic.d.ts +13 -0
- package/dist/components/BAITag.d.ts +6 -0
- package/dist/components/BAIText.d.ts +7 -0
- package/dist/components/BAIUnmountAfterClose.d.ts +26 -0
- package/dist/components/ResourceStatistics.d.ts +57 -0
- package/dist/components/Table/BAIPaginationInfoText.d.ts +7 -0
- package/dist/components/Table/BAITable.d.ts +133 -0
- package/dist/components/Table/BAITableSettingModal.d.ts +62 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/TotalFooter.d.ts +5 -0
- package/dist/components/baiClient/FileExplorer/BAIFileExplorer.d.ts +20 -0
- package/dist/components/baiClient/FileExplorer/CreateDirectoryModal.d.ts +7 -0
- package/dist/components/baiClient/FileExplorer/DeleteSelectedItemsModal.d.ts +8 -0
- package/dist/components/baiClient/FileExplorer/DragAndDrop.d.ts +8 -0
- package/dist/components/baiClient/FileExplorer/EditableFileName.d.ts +14 -0
- package/dist/components/baiClient/FileExplorer/ExplorerActionControls.d.ts +11 -0
- package/dist/components/baiClient/FileExplorer/FileItemControls.d.ts +9 -0
- package/dist/components/baiClient/FileExplorer/hooks.d.ts +19 -0
- package/dist/components/baiClient/FileExplorer/index.d.ts +2 -0
- package/dist/components/baiClient/index.d.ts +1 -0
- package/dist/components/fragments/BAIActivateArtifactsModal.d.ts +8 -0
- package/dist/components/fragments/BAIArtifactDescriptions.d.ts +6 -0
- package/dist/components/fragments/BAIArtifactRevisionDeleteButton.d.ts +8 -0
- package/dist/components/fragments/BAIArtifactRevisionDownloadButton.d.ts +8 -0
- package/dist/components/fragments/BAIArtifactRevisionTable.d.ts +12 -0
- package/dist/components/fragments/BAIArtifactStatusTag.d.ts +6 -0
- package/dist/components/fragments/BAIArtifactTable.d.ts +14 -0
- package/dist/components/fragments/BAIArtifactTypeTag.d.ts +6 -0
- package/dist/components/fragments/BAIBucketSelect.d.ts +7 -0
- package/dist/components/fragments/BAIDeactivateArtifactsModal.d.ts +8 -0
- package/dist/components/fragments/BAIDeleteArtifactRevisionsModal.d.ts +13 -0
- package/dist/components/fragments/BAIImportArtifactModal.d.ts +21 -0
- package/dist/components/fragments/BAIObjectStorageSelect.d.ts +6 -0
- package/dist/components/fragments/BAIPullingArtifactRevisionAlert.d.ts +7 -0
- package/dist/components/fragments/BAISessionAgentIds.d.ts +9 -0
- package/dist/components/fragments/BAISessionClusterMode.d.ts +7 -0
- package/dist/components/fragments/BAISessionTypeTag.d.ts +1 -1
- package/dist/components/fragments/index.d.ts +32 -0
- package/dist/components/index.d.ts +38 -0
- package/dist/components/provider/BAIClientProvider/BAIClientProvider.d.ts +9 -0
- package/dist/components/provider/BAIClientProvider/context.d.ts +4 -0
- package/dist/components/provider/BAIClientProvider/hooks/useAnonymousBAIClient.d.ts +3 -0
- package/dist/components/provider/BAIClientProvider/hooks/useConnectedBAIClient.d.ts +3 -0
- package/dist/components/provider/BAIClientProvider/index.d.ts +6 -0
- package/dist/components/provider/BAIClientProvider/types.d.ts +72 -0
- package/dist/components/provider/BAIConfigProvider/BAIConfigProvider.d.ts +10 -0
- package/dist/components/provider/BAIConfigProvider/index.d.ts +2 -0
- package/dist/components/provider/index.d.ts +2 -0
- package/dist/components/unsafe/UNSAFELazyUserEmailView.d.ts +11 -0
- package/dist/components/unsafe/index.d.ts +1 -0
- package/dist/helper/index.d.ts +154 -0
- package/dist/hooks/index.d.ts +20 -0
- package/dist/hooks/useErrorMessageResolver.d.ts +26 -0
- package/dist/hooks/useEventNotStable.d.ts +1 -0
- package/dist/hooks/usePaginatedQuery.d.ts +20 -0
- package/dist/hooks/useViewer.d.ts +10 -0
- package/dist/icons/BAIAppIcon.d.ts +5 -0
- package/dist/icons/BAIBatchSessionIcon.d.ts +5 -0
- package/dist/icons/BAICalculateResourceIcon.d.ts +5 -0
- package/dist/icons/BAICephIcon.d.ts +5 -0
- package/dist/icons/BAIContainerCommitIcon.d.ts +5 -0
- package/dist/icons/BAIDashboardIcon.d.ts +5 -0
- package/dist/icons/BAIEndpointIcon.d.ts +5 -0
- package/dist/icons/BAIEndpointsIcon.d.ts +5 -0
- package/dist/icons/BAIExampleStartIcon.d.ts +5 -0
- package/dist/icons/BAIExamplesIcon.d.ts +5 -0
- package/dist/icons/BAIHuggingFaceIcon.d.ts +5 -0
- package/dist/icons/BAIInteractiveSessionIcon.d.ts +5 -0
- package/dist/icons/BAIListIcon.d.ts +5 -0
- package/dist/icons/BAIModelServiceIcon.d.ts +5 -0
- package/dist/icons/BAIModelStoreIcon.d.ts +5 -0
- package/dist/icons/BAIModelsIcon.d.ts +5 -0
- package/dist/icons/BAIMyEnvironmentsIcon.d.ts +5 -0
- package/dist/icons/BAINewFolderIcon.d.ts +5 -0
- package/dist/icons/BAINvidiaIcon.d.ts +6 -0
- package/dist/icons/BAIPipelineIcon.d.ts +5 -0
- package/dist/icons/BAIPipelinesIcon.d.ts +5 -0
- package/dist/icons/BAIPureStorageIcon.d.ts +5 -0
- package/dist/icons/BAIPurgeIcon.d.ts +5 -0
- package/dist/icons/BAIRecalculateResourcesIcon.d.ts +5 -0
- package/dist/icons/BAIRescanImagesIcon.d.ts +5 -0
- package/dist/icons/BAIRestoreIcon.d.ts +5 -0
- package/dist/icons/BAISessionLogIcon.d.ts +5 -0
- package/dist/icons/BAISessionStartIcon.d.ts +5 -0
- package/dist/icons/BAISessionsIcon.d.ts +5 -0
- package/dist/icons/BAISftpIcon.d.ts +5 -0
- package/dist/icons/BAIShareAltIcon.d.ts +5 -0
- package/dist/icons/BAIStartCircleIcon.d.ts +5 -0
- package/dist/icons/BAISystemMonitorIcon.d.ts +5 -0
- package/dist/icons/BAITerminalAppIcon.d.ts +5 -0
- package/dist/icons/BAITerminateIcon.d.ts +5 -0
- package/dist/icons/BAITrailsIcon.d.ts +5 -0
- package/dist/icons/BAITrashBinIcon.d.ts +5 -0
- package/dist/icons/BAIURLStartIcon.d.ts +5 -0
- package/dist/icons/BAIUpdateEnvironmentImagesIcon.d.ts +5 -0
- package/dist/icons/BAIUploadIcon.d.ts +5 -0
- package/dist/icons/BAIUserOutlinedIcon.d.ts +5 -0
- package/dist/icons/BAIUserUnionIcon.d.ts +5 -0
- package/dist/icons/index.d.ts +42 -0
- package/dist/index.d.ts +5 -4
- package/dist/locale/de_DE.js +6 -4
- package/dist/locale/de_DE.js.map +1 -1
- package/dist/locale/el_GR.js +6 -4
- package/dist/locale/el_GR.js.map +1 -1
- package/dist/locale/en_US.js +6 -4
- package/dist/locale/en_US.js.map +1 -1
- package/dist/locale/es_ES.js +9 -7
- package/dist/locale/es_ES.js.map +1 -1
- package/dist/locale/fi_FI.js +12 -3
- package/dist/locale/fi_FI.js.map +1 -1
- package/dist/locale/fr_FR.js +7 -3
- package/dist/locale/fr_FR.js.map +1 -1
- package/dist/locale/id_ID.js +6 -4
- package/dist/locale/id_ID.js.map +1 -1
- package/dist/locale/it_IT.js +22 -9
- package/dist/locale/it_IT.js.map +1 -1
- package/dist/locale/ja_JP.js +6 -4
- package/dist/locale/ja_JP.js.map +1 -1
- package/dist/locale/ko_KR.js +6 -4
- package/dist/locale/ko_KR.js.map +1 -1
- package/dist/locale/mn_MN.js +13 -6
- package/dist/locale/mn_MN.js.map +1 -1
- package/dist/locale/ms_MY.js +6 -4
- package/dist/locale/ms_MY.js.map +1 -1
- package/dist/locale/pl_PL.js +6 -4
- package/dist/locale/pl_PL.js.map +1 -1
- package/dist/locale/pt_BR.js +6 -4
- package/dist/locale/pt_BR.js.map +1 -1
- package/dist/locale/pt_PT.js +6 -4
- package/dist/locale/pt_PT.js.map +1 -1
- package/dist/locale/ru_RU.js +6 -4
- package/dist/locale/ru_RU.js.map +1 -1
- package/dist/locale/th_TH.js +6 -4
- package/dist/locale/th_TH.js.map +1 -1
- package/dist/locale/tr_TR.js +8 -5
- package/dist/locale/tr_TR.js.map +1 -1
- package/dist/locale/vi_VN.js +23 -10
- package/dist/locale/vi_VN.js.map +1 -1
- package/dist/locale/zh_CN.js +6 -4
- package/dist/locale/zh_CN.js.map +1 -1
- package/dist/locale/zh_TW.js +6 -4
- package/dist/locale/zh_TW.js.map +1 -1
- package/dist/tests/RelayResolver.d.ts +7 -0
- package/dist/tests/index.d.ts +1 -0
- package/package.json +132 -32
- package/dist/common-BqeHlhne.js +0 -62
- package/dist/common-BqeHlhne.js.map +0 -1
- package/dist/components/BAIConfigProvider.d.ts +0 -7
- package/dist/components/BAIResourceWithSteppedProgress.d.ts +0 -11
- package/dist/components/Flex.stories.d.ts +0 -7
- /package/dist/{components/tests → tests}/BAITestButton.d.ts +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { BAIColumnsType, BAITableColumnOverrideItem } from './BAITable';
|
|
2
|
+
import { ModalProps } from 'antd';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Form values interface for the table setting modal
|
|
6
|
+
*/
|
|
7
|
+
interface FormValues {
|
|
8
|
+
/** Search input value for filtering columns */
|
|
9
|
+
searchInput?: string;
|
|
10
|
+
/** Array of selected column keys that should be visible */
|
|
11
|
+
selectedColumnKeys?: Array<string>;
|
|
12
|
+
/** Array of column keys in their display order */
|
|
13
|
+
columnOrder?: Array<string>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Props interface for BAITableSettingModal component
|
|
17
|
+
* Extends Ant Design's ModalProps with table-specific configuration
|
|
18
|
+
*/
|
|
19
|
+
interface TableSettingProps extends ModalProps {
|
|
20
|
+
/** Callback function called when the modal should close */
|
|
21
|
+
onRequestClose: (formValues?: FormValues) => void;
|
|
22
|
+
/** Array of table column configurations */
|
|
23
|
+
columns: BAIColumnsType<any>;
|
|
24
|
+
/** Current column override settings */
|
|
25
|
+
columnOverrides: Record<string, BAITableColumnOverrideItem>;
|
|
26
|
+
/** Whether to disable the column sorting functionality */
|
|
27
|
+
disableSorter?: boolean;
|
|
28
|
+
/** Initial order of columns */
|
|
29
|
+
initialColumnOrder?: string[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* BAITableSettingModal - Modal component for configuring table column settings
|
|
33
|
+
*
|
|
34
|
+
* This component provides a user interface for:
|
|
35
|
+
* - Showing/hiding table columns
|
|
36
|
+
* - Reordering columns via drag and drop
|
|
37
|
+
* - Searching through available columns
|
|
38
|
+
* - Managing column visibility overrides
|
|
39
|
+
*
|
|
40
|
+
* Features:
|
|
41
|
+
* - Search functionality to filter columns
|
|
42
|
+
* - Drag and drop reordering (can be disabled)
|
|
43
|
+
* - Checkbox controls for column visibility
|
|
44
|
+
* - Required columns that cannot be hidden
|
|
45
|
+
* - Form validation and state management
|
|
46
|
+
*
|
|
47
|
+
* @param props - TableSettingProps configuration
|
|
48
|
+
* @returns React functional component
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* <BAITableSettingModal
|
|
53
|
+
* open={isOpen}
|
|
54
|
+
* onRequestClose={handleClose}
|
|
55
|
+
* columns={tableColumns}
|
|
56
|
+
* columnOverrides={currentOverrides}
|
|
57
|
+
* disableSorter={false}
|
|
58
|
+
* />
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare const BAITableSettingModal: React.FC<TableSettingProps>;
|
|
62
|
+
export default BAITableSettingModal;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as BAITable } from './BAITable';
|
|
2
|
+
export type { BAITableProps, BAIColumnType, BAIColumnsType, BAITableSettings, BAITableColumnOverrideItem, BAITableColumnOverrideRecord, } from './BAITable';
|
|
3
|
+
export { isColumnVisible, getVisibleColumns, restoreColumnToDefault, restoreAllColumnsToDefault, } from './BAITable';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BAITableProps } from '../../Table';
|
|
2
|
+
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
3
|
+
import { RcFile } from 'antd/es/upload';
|
|
4
|
+
export declare const FolderInfoContext: import('react').Context<{
|
|
5
|
+
targetVFolderId: string;
|
|
6
|
+
currentPath: string;
|
|
7
|
+
}>;
|
|
8
|
+
export interface BAIFileExplorerProps {
|
|
9
|
+
targetVFolderId: string;
|
|
10
|
+
fetchKey?: string;
|
|
11
|
+
onUpload: (files: Array<RcFile>, currentPath: string) => void;
|
|
12
|
+
tableProps?: Partial<BAITableProps<VFolderFile>>;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
fileDropContainerRef?: React.RefObject<HTMLDivElement | null>;
|
|
15
|
+
enableDownload?: boolean;
|
|
16
|
+
enableDelete?: boolean;
|
|
17
|
+
enableWrite?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const BAIFileExplorer: React.FC<BAIFileExplorerProps>;
|
|
20
|
+
export default BAIFileExplorer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ModalProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
interface CreateDirectoryModalProps extends ModalProps {
|
|
4
|
+
onRequestClose: (success: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const CreateDirectoryModal: React.FC<CreateDirectoryModalProps>;
|
|
7
|
+
export default CreateDirectoryModal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
|
+
import { ModalProps } from 'antd';
|
|
3
|
+
interface DeleteSelectedItemsModalProps extends ModalProps {
|
|
4
|
+
onRequestClose: (success: boolean) => void;
|
|
5
|
+
selectedFiles: Array<VFolderFile>;
|
|
6
|
+
}
|
|
7
|
+
declare const DeleteSelectedItemsModal: React.FC<DeleteSelectedItemsModalProps>;
|
|
8
|
+
export default DeleteSelectedItemsModal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RcFile } from 'antd/es/upload';
|
|
2
|
+
interface DragAndDropProps {
|
|
3
|
+
onUpload: (files: Array<RcFile>, currentPath: string) => void;
|
|
4
|
+
/** Optional container element for portal rendering */
|
|
5
|
+
portalContainer?: HTMLElement | null;
|
|
6
|
+
}
|
|
7
|
+
declare const DragAndDrop: React.FC<DragAndDropProps>;
|
|
8
|
+
export default DragAndDrop;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
|
+
import { GetProps, Typography } from 'antd';
|
|
3
|
+
type EditableNameProps = {
|
|
4
|
+
fileInfo: VFolderFile;
|
|
5
|
+
existingFiles: Array<VFolderFile>;
|
|
6
|
+
onEndEdit?: () => void;
|
|
7
|
+
onStartEdit?: () => void;
|
|
8
|
+
} & (({
|
|
9
|
+
component?: typeof Typography.Text;
|
|
10
|
+
} & Omit<GetProps<typeof Typography.Text>, 'children'>) | ({
|
|
11
|
+
component: typeof Typography.Title;
|
|
12
|
+
} & Omit<GetProps<typeof Typography.Title>, 'children'>));
|
|
13
|
+
declare const EditableFileName: React.FC<EditableNameProps>;
|
|
14
|
+
export default EditableFileName;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
|
+
import { RcFile } from 'antd/es/upload';
|
|
3
|
+
interface ExplorerActionControlsProps {
|
|
4
|
+
selectedFiles: Array<VFolderFile>;
|
|
5
|
+
onRequestClose: (success: boolean, modifiedItems?: Array<VFolderFile>) => void;
|
|
6
|
+
onUpload: (files: Array<RcFile>, currentPath: string) => void;
|
|
7
|
+
enableDelete?: boolean;
|
|
8
|
+
enableWrite?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const ExplorerActionControls: React.FC<ExplorerActionControlsProps>;
|
|
11
|
+
export default ExplorerActionControls;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
|
+
interface FileItemControlsProps {
|
|
3
|
+
selectedItem: VFolderFile;
|
|
4
|
+
onClickDelete: () => void;
|
|
5
|
+
enableDownload?: boolean;
|
|
6
|
+
enableDelete?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const FileItemControls: React.FC<FileItemControlsProps>;
|
|
9
|
+
export default FileItemControls;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VFolderFile } from '../../provider/BAIClientProvider/types';
|
|
2
|
+
import { RcFile } from 'antd/es/upload';
|
|
3
|
+
export declare const useSearchVFolderFiles: (vfolder: string, fetchKey?: string) => {
|
|
4
|
+
files: {
|
|
5
|
+
items: Array<VFolderFile>;
|
|
6
|
+
} | undefined;
|
|
7
|
+
directoryTree: Record<string, VFolderFile[]>;
|
|
8
|
+
currentPath: string;
|
|
9
|
+
navigateDown: (folderName: string) => void;
|
|
10
|
+
navigateUp: () => void;
|
|
11
|
+
navigateToPath: (path: string) => void;
|
|
12
|
+
refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
|
|
13
|
+
items: Array<VFolderFile>;
|
|
14
|
+
}, Error>>;
|
|
15
|
+
isFetching: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const useUploadVFolderFiles: () => {
|
|
18
|
+
uploadFiles: (fileList: Array<RcFile>, onUpload: (files: Array<RcFile>, currentPath: string) => void, afterUpload?: () => void) => Promise<void>;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FileExplorer';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BAIActivateArtifactsModalArtifactsFragment$key } from '../../__generated__/BAIActivateArtifactsModalArtifactsFragment.graphql';
|
|
2
|
+
import { ModalProps } from 'antd';
|
|
3
|
+
export type BAIActivateArtifactsModalArtifactsFragmentKey = BAIActivateArtifactsModalArtifactsFragment$key;
|
|
4
|
+
export interface BAIActivateArtifactsModalProps extends ModalProps {
|
|
5
|
+
selectedArtifactsFragment: BAIActivateArtifactsModalArtifactsFragmentKey;
|
|
6
|
+
}
|
|
7
|
+
declare const BAIActivateArtifactsModal: ({ selectedArtifactsFragment, onOk, onCancel, ...props }: BAIActivateArtifactsModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BAIActivateArtifactsModal;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BAIArtifactDescriptionsFragment$key } from '../../__generated__/BAIArtifactDescriptionsFragment.graphql';
|
|
2
|
+
export interface BAIArtifactDescriptionsProps {
|
|
3
|
+
artifactFrgmt: BAIArtifactDescriptionsFragment$key;
|
|
4
|
+
}
|
|
5
|
+
declare const BAIArtifactDescriptions: ({ artifactFrgmt, }: BAIArtifactDescriptionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default BAIArtifactDescriptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BAIArtifactRevisionDeleteButtonFragment$key } from '../../__generated__/BAIArtifactRevisionDeleteButtonFragment.graphql';
|
|
2
|
+
import { ButtonProps } from 'antd';
|
|
3
|
+
export interface BAIArtifactRevisionDeleteButtonProps extends Omit<ButtonProps, 'icon'> {
|
|
4
|
+
revisionsFrgmt: BAIArtifactRevisionDeleteButtonFragment$key;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const BAIArtifactRevisionDeleteButton: ({ revisionsFrgmt, ...buttonProps }: BAIArtifactRevisionDeleteButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BAIArtifactRevisionDeleteButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BAIArtifactRevisionDownloadButtonFragment$key } from '../../__generated__/BAIArtifactRevisionDownloadButtonFragment.graphql';
|
|
2
|
+
import { ButtonProps } from 'antd';
|
|
3
|
+
export interface BAIArtifactRevisionDownloadButtonProps extends Omit<ButtonProps, 'icon'> {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
revisionsFrgmt: BAIArtifactRevisionDownloadButtonFragment$key;
|
|
6
|
+
}
|
|
7
|
+
declare const BAIArtifactRevisionDownloadButton: ({ revisionsFrgmt, ...buttonProps }: BAIArtifactRevisionDownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BAIArtifactRevisionDownloadButton;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BAIArtifactRevisionTableArtifactRevisionFragment$data, BAIArtifactRevisionTableArtifactRevisionFragment$key } from '../../__generated__/BAIArtifactRevisionTableArtifactRevisionFragment.graphql';
|
|
2
|
+
import { BAIArtifactRevisionTableLatestRevisionFragment$key } from '../../__generated__/BAIArtifactRevisionTableLatestRevisionFragment.graphql';
|
|
3
|
+
import { BAITableProps } from '../Table';
|
|
4
|
+
export type ArtifactRevision = NonNullable<NonNullable<BAIArtifactRevisionTableArtifactRevisionFragment$data>[number]>;
|
|
5
|
+
export interface BAIArtifactRevisionTableProps extends Omit<BAITableProps<ArtifactRevision>, 'dataSource' | 'columns' | 'rowKey'> {
|
|
6
|
+
artifactRevisionFrgmt: BAIArtifactRevisionTableArtifactRevisionFragment$key;
|
|
7
|
+
onClickDownload: (revisionId: string) => void;
|
|
8
|
+
onClickDelete: (revisionId: string) => void;
|
|
9
|
+
latestRevisionFrgmt: BAIArtifactRevisionTableLatestRevisionFragment$key | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
declare const BAIArtifactRevisionTable: ({ artifactRevisionFrgmt, onClickDownload, latestRevisionFrgmt, onClickDelete, ...tableProps }: BAIArtifactRevisionTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default BAIArtifactRevisionTable;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BAIArtifactStatusTagFragment$key } from '../../__generated__/BAIArtifactStatusTagFragment.graphql';
|
|
2
|
+
export interface BAIArtifactStatusTagProps {
|
|
3
|
+
artifactRevisionFrgmt: BAIArtifactStatusTagFragment$key;
|
|
4
|
+
}
|
|
5
|
+
declare const BAIArtifactStatusTag: ({ artifactRevisionFrgmt, }: BAIArtifactStatusTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default BAIArtifactStatusTag;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BAIArtifactTableArtifactFragment$data, BAIArtifactTableArtifactFragment$key } from '../../__generated__/BAIArtifactTableArtifactFragment.graphql';
|
|
2
|
+
import { BAITableProps } from '../Table';
|
|
3
|
+
export declare const getStatusColor: (status: string) => "default" | "error" | "warning" | "processing";
|
|
4
|
+
export declare const getStatusIcon: (status: string) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
export declare const getTypeIcon: (type: string, size?: number) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export type Artifact = NonNullable<BAIArtifactTableArtifactFragment$data>[number];
|
|
7
|
+
export interface BAIArtifactTableProps extends Omit<BAITableProps<Artifact>, 'dataSource' | 'columns' | 'rowKey'> {
|
|
8
|
+
artifactFragment: BAIArtifactTableArtifactFragment$key;
|
|
9
|
+
onClickPull: (artifactId: string, revisionId: string) => void;
|
|
10
|
+
onClickDelete: (artifactId: string) => void;
|
|
11
|
+
onClickRestore: (artifactId: string) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const BAIArtifactTable: ({ artifactFragment, onClickPull, onClickDelete, onClickRestore, ...tableProps }: BAIArtifactTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default BAIArtifactTable;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BAIArtifactTypeTagFragment$key } from '../../__generated__/BAIArtifactTypeTagFragment.graphql';
|
|
2
|
+
export interface BAIArtifactTypeTagProps {
|
|
3
|
+
artifactTypeFrgmt: BAIArtifactTypeTagFragment$key;
|
|
4
|
+
}
|
|
5
|
+
declare const BAIArtifactTypeTag: ({ artifactTypeFrgmt }: BAIArtifactTypeTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default BAIArtifactTypeTag;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BAISelectProps } from '../BAISelect';
|
|
2
|
+
export interface BAIBucketSelectProps extends BAISelectProps {
|
|
3
|
+
objectStorageId: string;
|
|
4
|
+
fetchKey?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const BAIBucketSelect: ({ objectStorageId, fetchKey, loading, ...selectProps }: BAIBucketSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BAIBucketSelect;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BAIDeactivateArtifactsModalArtifactsFragment$key } from '../../__generated__/BAIDeactivateArtifactsModalArtifactsFragment.graphql';
|
|
2
|
+
import { ModalProps } from 'antd';
|
|
3
|
+
export type BAIDeactivateArtifactsModalArtifactsFragmentKey = BAIDeactivateArtifactsModalArtifactsFragment$key;
|
|
4
|
+
export interface BAIDeactivateArtifactsModalProps extends ModalProps {
|
|
5
|
+
selectedArtifactsFragment: BAIDeactivateArtifactsModalArtifactsFragmentKey;
|
|
6
|
+
}
|
|
7
|
+
declare const BAIDeactivateArtifactsModal: ({ selectedArtifactsFragment, onOk, onCancel, ...modalProps }: BAIDeactivateArtifactsModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BAIDeactivateArtifactsModal;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BAIDeleteArtifactRevisionsModalArtifactFragment$key } from '../../__generated__/BAIDeleteArtifactRevisionsModalArtifactFragment.graphql';
|
|
2
|
+
import { BAIDeleteArtifactRevisionsModalArtifactRevisionFragment$key } from '../../__generated__/BAIDeleteArtifactRevisionsModalArtifactRevisionFragment.graphql';
|
|
3
|
+
import { ModalProps } from 'antd';
|
|
4
|
+
export type BAIDeleteArtifactRevisionsModalArtifactFragmentKey = BAIDeleteArtifactRevisionsModalArtifactFragment$key;
|
|
5
|
+
export type BAIDeleteArtifactRevisionsModalArtifactRevisionFragmentKey = BAIDeleteArtifactRevisionsModalArtifactRevisionFragment$key;
|
|
6
|
+
export interface BAIDeleteArtifactRevisionsModalProps extends Omit<ModalProps, 'onOk' | 'onCancel'> {
|
|
7
|
+
selectedArtifactFrgmt: BAIDeleteArtifactRevisionsModalArtifactFragment$key | null;
|
|
8
|
+
selectedArtifactRevisionFrgmt: BAIDeleteArtifactRevisionsModalArtifactRevisionFragment$key;
|
|
9
|
+
onOk: (e: React.MouseEvent<HTMLElement>) => void;
|
|
10
|
+
onCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const BAIDeleteArtifactRevisionsModal: ({ selectedArtifactFrgmt, selectedArtifactRevisionFrgmt, onOk, onCancel, ...modalProps }: BAIDeleteArtifactRevisionsModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default BAIDeleteArtifactRevisionsModal;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BAIImportArtifactModalArtifactFragment$key } from '../../__generated__/BAIImportArtifactModalArtifactFragment.graphql';
|
|
2
|
+
import { BAIImportArtifactModalArtifactRevisionFragment$key } from '../../__generated__/BAIImportArtifactModalArtifactRevisionFragment.graphql';
|
|
3
|
+
import { ModalProps } from 'antd';
|
|
4
|
+
export type BAIImportArtifactModalArtifactFragmentKey = BAIImportArtifactModalArtifactFragment$key;
|
|
5
|
+
export type BAIImportArtifactModalArtifactRevisionFragmentKey = BAIImportArtifactModalArtifactRevisionFragment$key;
|
|
6
|
+
export interface BAIImportArtifactModalProps extends Omit<ModalProps, 'onOk' | 'onCancel'> {
|
|
7
|
+
selectedArtifactFrgmt: BAIImportArtifactModalArtifactFragment$key | null;
|
|
8
|
+
selectedArtifactRevisionFrgmt: BAIImportArtifactModalArtifactRevisionFragment$key;
|
|
9
|
+
onOk: (e: React.MouseEvent<HTMLElement>, tasks: {
|
|
10
|
+
taskId: string;
|
|
11
|
+
version: string;
|
|
12
|
+
artifact: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
}[]) => void;
|
|
17
|
+
onCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
18
|
+
connectionIds?: string[];
|
|
19
|
+
}
|
|
20
|
+
declare const BAIImportArtifactModal: ({ selectedArtifactFrgmt, selectedArtifactRevisionFrgmt, onOk, onCancel, connectionIds, ...modalProps }: BAIImportArtifactModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default BAIImportArtifactModal;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BAISelectProps } from '../BAISelect';
|
|
2
|
+
export interface BAIObjectStorageSelectProps extends Omit<BAISelectProps, 'options' | 'labelInValue'> {
|
|
3
|
+
fetchKey?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const BAIObjectStorageSelect: ({ fetchKey, loading, ...selectPropsWithoutLoading }: BAIObjectStorageSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default BAIObjectStorageSelect;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BAIPullingArtifactRevisionAlertFragment$key } from '../../__generated__/BAIPullingArtifactRevisionAlertFragment.graphql';
|
|
2
|
+
export interface BAIPullingArtifactRevisionAlertProps {
|
|
3
|
+
pullingArtifactRevisionFrgmt: BAIPullingArtifactRevisionAlertFragment$key;
|
|
4
|
+
onOk?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const BAIPullingArtifactRevisionAlert: ({ pullingArtifactRevisionFrgmt, onOk, }: BAIPullingArtifactRevisionAlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BAIPullingArtifactRevisionAlert;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BAISessionAgentIdsFragment$key } from '../../__generated__/BAISessionAgentIdsFragment.graphql';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
interface BAISessionAgentIdsProps {
|
|
4
|
+
sessionFrgmt: BAISessionAgentIdsFragment$key;
|
|
5
|
+
maxInline?: number;
|
|
6
|
+
emptyText?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const BAISessionAgentIds: React.FC<BAISessionAgentIdsProps>;
|
|
9
|
+
export default BAISessionAgentIds;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BAISessionClusterModeFragment$key } from '../../__generated__/BAISessionClusterModeFragment.graphql';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface BAISessionClusterModeProps {
|
|
4
|
+
sessionFrgmt: BAISessionClusterModeFragment$key;
|
|
5
|
+
}
|
|
6
|
+
declare const BAISessionClusterMode: React.FC<BAISessionClusterModeProps>;
|
|
7
|
+
export default BAISessionClusterMode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BAISessionTypeTagFragment$key } from '../../__generated__/BAISessionTypeTagFragment.graphql';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
interface BAISessionTypeTagProps {
|
|
3
|
+
export interface BAISessionTypeTagProps {
|
|
4
4
|
sessionFrgmt: BAISessionTypeTagFragment$key;
|
|
5
5
|
}
|
|
6
6
|
declare const BAISessionTypeTag: React.FC<BAISessionTypeTagProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { default as BAISessionTypeTag } from './BAISessionTypeTag';
|
|
2
|
+
export { default as BAISessionAgentIds } from './BAISessionAgentIds';
|
|
3
|
+
export type { BAISessionTypeTagProps } from './BAISessionTypeTag';
|
|
4
|
+
export { default as BAIArtifactRevisionTable } from './BAIArtifactRevisionTable';
|
|
5
|
+
export type { BAIArtifactRevisionTableProps } from './BAIArtifactRevisionTable';
|
|
6
|
+
export { default as BAIArtifactTable } from './BAIArtifactTable';
|
|
7
|
+
export type { BAIArtifactTableProps } from './BAIArtifactTable';
|
|
8
|
+
export { default as BAIImportArtifactModal } from './BAIImportArtifactModal';
|
|
9
|
+
export type { BAIImportArtifactModalProps, BAIImportArtifactModalArtifactFragmentKey, BAIImportArtifactModalArtifactRevisionFragmentKey, } from './BAIImportArtifactModal';
|
|
10
|
+
export { default as BAIObjectStorageSelect } from './BAIObjectStorageSelect';
|
|
11
|
+
export type { BAIObjectStorageSelectProps } from './BAIObjectStorageSelect';
|
|
12
|
+
export { default as BAIBucketSelect } from './BAIBucketSelect';
|
|
13
|
+
export type { BAIBucketSelectProps } from './BAIBucketSelect';
|
|
14
|
+
export { default as BAIPullingArtifactRevisionAlert } from './BAIPullingArtifactRevisionAlert';
|
|
15
|
+
export type { BAIPullingArtifactRevisionAlertProps } from './BAIPullingArtifactRevisionAlert';
|
|
16
|
+
export { default as BAIDeleteArtifactRevisionsModal } from './BAIDeleteArtifactRevisionsModal';
|
|
17
|
+
export type { BAIDeleteArtifactRevisionsModalProps, BAIDeleteArtifactRevisionsModalArtifactFragmentKey, BAIDeleteArtifactRevisionsModalArtifactRevisionFragmentKey, } from './BAIDeleteArtifactRevisionsModal';
|
|
18
|
+
export { default as BAIArtifactTypeTag } from './BAIArtifactTypeTag';
|
|
19
|
+
export type { BAIArtifactTypeTagProps } from './BAIArtifactTypeTag';
|
|
20
|
+
export { default as BAIArtifactStatusTag } from './BAIArtifactStatusTag';
|
|
21
|
+
export type { BAIArtifactStatusTagProps } from './BAIArtifactStatusTag';
|
|
22
|
+
export { default as BAIArtifactDescriptions } from './BAIArtifactDescriptions';
|
|
23
|
+
export type { BAIArtifactDescriptionsProps } from './BAIArtifactDescriptions';
|
|
24
|
+
export { default as BAIArtifactRevisionDownloadButton } from './BAIArtifactRevisionDownloadButton';
|
|
25
|
+
export type { BAIArtifactRevisionDownloadButtonProps } from './BAIArtifactRevisionDownloadButton';
|
|
26
|
+
export { default as BAIArtifactRevisionDeleteButton } from './BAIArtifactRevisionDeleteButton';
|
|
27
|
+
export type { BAIArtifactRevisionDeleteButtonProps } from './BAIArtifactRevisionDeleteButton';
|
|
28
|
+
export { default as BAIDeactivateArtifactsModal } from './BAIDeactivateArtifactsModal';
|
|
29
|
+
export { default as BAISessionClusterMode } from './BAISessionClusterMode';
|
|
30
|
+
export type { BAIDeactivateArtifactsModalProps, BAIDeactivateArtifactsModalArtifactsFragmentKey, } from './BAIDeactivateArtifactsModal';
|
|
31
|
+
export { default as BAIActivateArtifactsModal } from './BAIActivateArtifactsModal';
|
|
32
|
+
export type { BAIActivateArtifactsModalProps, BAIActivateArtifactsModalArtifactsFragmentKey, } from './BAIActivateArtifactsModal';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export { default as BAIBoardItemTitle } from './BAIBoardItemTitle';
|
|
2
|
+
export type { BAIBoardItemTitleProps } from './BAIBoardItemTitle';
|
|
3
|
+
export { default as BAIFlex } from './BAIFlex';
|
|
4
|
+
export type { BAIFlexProps } from './BAIFlex';
|
|
5
|
+
export { default as BAICard } from './BAICard';
|
|
6
|
+
export type { BAICardProps } from './BAICard';
|
|
7
|
+
export { default as BAIPropertyFilter, mergeFilterValues, parseFilterValue, } from './BAIPropertyFilter';
|
|
8
|
+
export type { BAIPropertyFilterProps, FilterProperty, } from './BAIPropertyFilter';
|
|
9
|
+
export { default as BAIGraphQLPropertyFilter } from './BAIGraphQLPropertyFilter';
|
|
10
|
+
export type { StringFilter, NumberFilter, BooleanFilter, EnumFilter, BaseFilter, GraphQLFilter, FilterPropertyType, FilterOperator, FilterProperty as BAIGraphQLFilterProperty, BAIGraphQLPropertyFilterProps, } from './BAIGraphQLPropertyFilter';
|
|
11
|
+
export { default as BAIRowWrapWithDividers } from './BAIRowWrapWithDividers';
|
|
12
|
+
export { default as BAIStatistic } from './BAIStatistic';
|
|
13
|
+
export type { BAIStatisticProps } from './BAIStatistic';
|
|
14
|
+
export { default as ResourceStatistics } from './ResourceStatistics';
|
|
15
|
+
export { processMemoryValue, convertToNumber } from './ResourceStatistics';
|
|
16
|
+
export { default as BAIUnmountAfterClose } from './BAIUnmountAfterClose';
|
|
17
|
+
export { default as BAIAlertIconWithTooltip } from './BAIAlertIconWithTooltip';
|
|
18
|
+
export { default as BAILink } from './BAILink';
|
|
19
|
+
export type { BAILinkProps } from './BAILink';
|
|
20
|
+
export { default as BAIBackButton } from './BAIBackButton';
|
|
21
|
+
export type { BAIBackButtonProps } from './BAIBackButton';
|
|
22
|
+
export { default as BAIText } from './BAIText';
|
|
23
|
+
export type { BAITextProps } from './BAIText';
|
|
24
|
+
export { default as BAISelect } from './BAISelect';
|
|
25
|
+
export type { BAISelectProps } from './BAISelect';
|
|
26
|
+
export { default as BAIImportFromHuggingFaceModal } from './BAIImportFromHuggingFaceModal';
|
|
27
|
+
export type { BAIImportFromHuggingFaceModalProps } from './BAIImportFromHuggingFaceModal';
|
|
28
|
+
export { default as BAINotificationItem, NotificationItemTemplate, } from './BAINotificationItem';
|
|
29
|
+
export type { NotificationItemTemplateProps, NotificationItemTemplateStyles, } from './BAINotificationItem';
|
|
30
|
+
export { default as BAIModal } from './BAIModal';
|
|
31
|
+
export type { BAIModalProps } from './BAIModal';
|
|
32
|
+
export { default as BAIConfirmModalWithInput } from './BAIConfirmModalWithInput';
|
|
33
|
+
export type { BAIConfirmModalWithInputProps } from './BAIConfirmModalWithInput';
|
|
34
|
+
export * from './Table';
|
|
35
|
+
export * from './fragments';
|
|
36
|
+
export * from './provider';
|
|
37
|
+
export * from './baiClient';
|
|
38
|
+
export * from './unsafe';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BAIClient } from './types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface BAIClientProviderProps {
|
|
4
|
+
clientPromise: Promise<BAIClient>;
|
|
5
|
+
anonymousClientFactory: (api_endpoint: string) => BAIClient;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const BAIClientProvider: React.FC<BAIClientProviderProps>;
|
|
9
|
+
export default BAIClientProvider;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BAIClient } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare const BAIClientContext: React.Context<Promise<BAIClient> | undefined>;
|
|
4
|
+
export declare const BAIAnonymousClientContext: React.Context<((api_endpoint: string) => BAIClient) | undefined>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as BAIClientProvider } from './BAIClientProvider';
|
|
2
|
+
export type { BAIClientProviderProps } from './BAIClientProvider';
|
|
3
|
+
export { BAIClientContext, BAIAnonymousClientContext } from './context';
|
|
4
|
+
export type { BAIClient } from './types';
|
|
5
|
+
export { default as useConnectedBAIClient } from './hooks/useConnectedBAIClient';
|
|
6
|
+
export { default as useAnonymousBAIClient } from './hooks/useAnonymousBAIClient';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface BAIClient {
|
|
2
|
+
isManagerVersionCompatibleWith: (version: string) => boolean;
|
|
3
|
+
vfolder: {
|
|
4
|
+
info: (name: string) => Promise<vfolderInfo>;
|
|
5
|
+
list: (path: string) => Promise<any>;
|
|
6
|
+
list_hosts: () => Promise<VFolderHosts>;
|
|
7
|
+
list_files: (path: string, id: string) => Promise<{
|
|
8
|
+
items: Array<VFolderFile>;
|
|
9
|
+
}>;
|
|
10
|
+
delete_files: (files: Array<string>, recursive: boolean, name: string) => Promise<any>;
|
|
11
|
+
mkdir: (path: string, name: string | null, parents: string | null, exist_ok: string | null) => Promise<any>;
|
|
12
|
+
request_download_token: (file: string, name: string, archive?: boolean) => Promise<VFolderDownloadToken>;
|
|
13
|
+
create_upload_session: (path: string, fs: object, name: string) => Promise<any>;
|
|
14
|
+
rename_file: (target_path: string, new_name: string, targetFolder: string, is_dir: boolean) => Promise<any>;
|
|
15
|
+
};
|
|
16
|
+
current_group_id: () => string;
|
|
17
|
+
current_group: string;
|
|
18
|
+
user_uuid: string;
|
|
19
|
+
email: string;
|
|
20
|
+
accessKey: string;
|
|
21
|
+
_config: BackendAIConfig;
|
|
22
|
+
}
|
|
23
|
+
export type BackendAIConfig = {
|
|
24
|
+
domainName: string;
|
|
25
|
+
maxFileUploadSize: number;
|
|
26
|
+
isDirectorySizeVisible: boolean;
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
export type VFolderFile = {
|
|
30
|
+
name: string;
|
|
31
|
+
type: 'FILE' | 'DIRECTORY';
|
|
32
|
+
size: number;
|
|
33
|
+
mode: number;
|
|
34
|
+
created: string;
|
|
35
|
+
modified: string;
|
|
36
|
+
};
|
|
37
|
+
export type vfolderInfo = {
|
|
38
|
+
cloneable: boolean;
|
|
39
|
+
created_at: string;
|
|
40
|
+
group: string | null;
|
|
41
|
+
host: string;
|
|
42
|
+
id: string;
|
|
43
|
+
is_owner: boolean;
|
|
44
|
+
last_used: string;
|
|
45
|
+
name: string;
|
|
46
|
+
num_files: number;
|
|
47
|
+
permission: string;
|
|
48
|
+
quota_scope_id: string;
|
|
49
|
+
status: string;
|
|
50
|
+
type: string;
|
|
51
|
+
usage_mode: string;
|
|
52
|
+
used_bytes: number;
|
|
53
|
+
user: string;
|
|
54
|
+
};
|
|
55
|
+
export interface VFolderHosts {
|
|
56
|
+
allowed: Array<string>;
|
|
57
|
+
default: string;
|
|
58
|
+
volume_info: {
|
|
59
|
+
[key: string]: {
|
|
60
|
+
backend: string;
|
|
61
|
+
capabilities: Array<string>;
|
|
62
|
+
sftp_scaling_groups: Array<string>;
|
|
63
|
+
usage: {
|
|
64
|
+
percentage: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export type VFolderDownloadToken = {
|
|
70
|
+
token: string;
|
|
71
|
+
url: string;
|
|
72
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BAILocale } from '../../../locale';
|
|
2
|
+
import { BAIClient } from '../BAIClientProvider';
|
|
3
|
+
import { ConfigProviderProps } from 'antd';
|
|
4
|
+
export interface BAIConfigProviderProps extends Omit<ConfigProviderProps, 'locale'> {
|
|
5
|
+
locale?: BAILocale;
|
|
6
|
+
clientPromise: Promise<BAIClient>;
|
|
7
|
+
anonymousClientFactory: (api_endpoint: string) => BAIClient;
|
|
8
|
+
}
|
|
9
|
+
declare const BAIConfigProvider: ({ children, locale, clientPromise, anonymousClientFactory, ...props }: BAIConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BAIConfigProvider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetProps, Typography } from 'antd';
|
|
2
|
+
export interface UNSAFELazyUserEmailViewProps extends Omit<GetProps<typeof Typography.Text>, 'children'> {
|
|
3
|
+
uuid?: string;
|
|
4
|
+
fetchKey?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @warning This component should only be used as a last resort.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
declare const UNSAFELazyUserEmailView: React.FC<UNSAFELazyUserEmailViewProps>;
|
|
11
|
+
export default UNSAFELazyUserEmailView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UNSAFELazyUserEmailView } from './UNSAFELazyUserEmailView';
|