@glodon-aiot/agent-cli-ui 3.24.0-alpha.5 → 3.25.0-alpha.10

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.
@@ -1,6 +1,9 @@
1
1
  import { default as React } from 'react';
2
+ export interface UpdateOptions {
3
+ keepLocalAttachments?: boolean;
4
+ }
2
5
  export interface UploadRefProps {
3
- update: () => Promise<void>;
6
+ update: (options?: UpdateOptions) => Promise<void>;
4
7
  clear: () => Promise<void>;
5
8
  appendFiles?: (files: File[]) => void;
6
9
  }
@@ -18,6 +21,7 @@ interface UploadFilesProps {
18
21
  afterFilesClear?: () => void;
19
22
  docViewerUrl: string;
20
23
  isFirstSession?: boolean;
24
+ allowExcelAttachment?: boolean;
21
25
  }
22
26
  declare const UploadFiles: React.ForwardRefExoticComponent<UploadFilesProps & React.RefAttributes<UploadRefProps>>;
23
27
  export default UploadFiles;
@@ -14,6 +14,8 @@ export declare const FILE_ICONS: {
14
14
  doc: string;
15
15
  docx: string;
16
16
  pdf: string;
17
+ xls: string;
18
+ xlsx: string;
17
19
  };
18
20
  export declare const NET_OPEN_STATUS: {
19
21
  OPEN: number;
@@ -16,6 +16,10 @@ export declare enum shortCutEnum {
16
16
  export declare const FILE_NAME_MAX_LENGTH = 100;
17
17
  export declare const isValidImageUrlWithAnyExtension: (url: string) => boolean;
18
18
  export declare const fileTypes: string[];
19
+ export declare function isExcelFile(file: {
20
+ name?: string;
21
+ type?: string;
22
+ }): boolean;
19
23
  /**
20
24
  * 对输入字符串中的反斜杠进行转义处理。
21
25
  * 在 Markdown 解析等场景中,反斜杠有特殊含义,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glodon-aiot/agent-cli-ui",
3
- "version": "3.24.0-alpha.5",
3
+ "version": "3.25.0-alpha.10",
4
4
  "module": "./dist/es/index.mjs",
5
5
  "main": "./dist/lib/index.js",
6
6
  "typings": "./dist/src/index.d.ts",
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ant-design/icons": "^5.3.4",
34
- "@glodon-aiot/apis": "^3.24.0-alpha.5",
35
- "@glodon-aiot/bot-client-sdk": "^3.24.0-alpha.5",
36
- "@glodon-aiot/react-components": "^3.24.0-alpha.5",
34
+ "@glodon-aiot/apis": "^3.25.0-alpha.10",
35
+ "@glodon-aiot/bot-client-sdk": "^3.25.0-alpha.10",
36
+ "@glodon-aiot/react-components": "^3.25.0-alpha.10",
37
37
  "@matejmazur/react-mathjax": "^0.1.10",
38
38
  "@react-pdf-viewer/core": "^3.12.0",
39
39
  "@react-pdf-viewer/default-layout": "^3.12.0",