@glodon-aiot/agent-cli-ui 3.3.5-beta.34 → 3.3.6-alpha.1

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.
Files changed (38) hide show
  1. package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +74 -0
  2. package/dist/es/Dialog/AgentChat/index.mjs +362 -347
  3. package/dist/es/Dialog/SessionList/index.mjs +252 -172
  4. package/dist/es/Dialog/index.mjs +83 -76
  5. package/dist/es/components/Sider/index.mjs +24 -0
  6. package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
  7. package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
  8. package/dist/es/src/style10.css +1 -1
  9. package/dist/es/src/style11.css +1 -1
  10. package/dist/es/src/style12.css +1 -1
  11. package/dist/es/src/style14.css +1 -1
  12. package/dist/es/src/style15.css +1 -1
  13. package/dist/es/src/style16.css +1 -1
  14. package/dist/es/src/style17.css +1 -1
  15. package/dist/es/src/style18.css +1 -1
  16. package/dist/es/src/style19.css +1 -1
  17. package/dist/es/src/style20.css +1 -1
  18. package/dist/es/src/style21.css +1 -1
  19. package/dist/es/src/style22.css +1 -1
  20. package/dist/es/src/style23.css +1 -1
  21. package/dist/es/src/style24.css +1 -1
  22. package/dist/es/src/style25.css +1 -1
  23. package/dist/es/src/style26.css +1 -1
  24. package/dist/es/src/style27.css +1 -1
  25. package/dist/es/src/style28.css +1 -1
  26. package/dist/es/src/style29.css +1 -1
  27. package/dist/es/src/style31.css +1 -1
  28. package/dist/es/src/style32.css +1 -0
  29. package/dist/es/src/style33.css +1 -0
  30. package/dist/es/src/style6.css +1 -1
  31. package/dist/es/src/style7.css +1 -1
  32. package/dist/lib/index.css +1 -1
  33. package/dist/lib/index.js +56 -56
  34. package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +14 -0
  35. package/dist/src/Dialog/AgentChat/index.d.ts +2 -0
  36. package/dist/src/Dialog/SessionList/index.d.ts +6 -3
  37. package/dist/src/components/Sider/index.d.ts +8 -0
  38. package/package.json +3 -3
@@ -0,0 +1,14 @@
1
+ import { FC, Dispatch, SetStateAction } from 'react';
2
+ import { Session } from '@glodon-aiot/bot-client-sdk';
3
+ import { IApplication } from '@glodon-aiot/apis';
4
+ interface SessionHistoryDrawerProps {
5
+ disabled?: boolean;
6
+ currentSession?: Session;
7
+ application: IApplication;
8
+ networkStatus: boolean;
9
+ setCurrentSession?: Dispatch<SetStateAction<Session | undefined>>;
10
+ sessions: Session[];
11
+ setSessions: Dispatch<SetStateAction<Session[]>>;
12
+ }
13
+ declare const SessionHistoryDrawer: FC<SessionHistoryDrawerProps>;
14
+ export default SessionHistoryDrawer;
@@ -14,6 +14,8 @@ interface AgentChatProps {
14
14
  setCurrentSession?: Dispatch<SetStateAction<Session | undefined>>;
15
15
  networkStatus: boolean;
16
16
  setNetworkStatus: Dispatch<SetStateAction<boolean>>;
17
+ sessions: Session[];
18
+ setSessions: Dispatch<SetStateAction<Session[]>>;
17
19
  }
18
20
  declare const AgentChat: React.FC<AgentChatProps>;
19
21
  export default AgentChat;
@@ -1,16 +1,19 @@
1
1
  import { default as React, Dispatch, SetStateAction } from 'react';
2
2
  import { Session } from '@glodon-aiot/bot-client-sdk';
3
3
  import { IKnowledge, IApplication, ISessionParams } from '@glodon-aiot/apis';
4
- interface SessionListProps {
5
- appId: string;
4
+ export interface SessionListProps {
5
+ appId?: string;
6
6
  application?: IApplication;
7
- sider?: boolean;
8
7
  networkStatus: boolean;
9
8
  currentSession?: Session;
10
9
  setCurrentSession?: Dispatch<SetStateAction<Session | undefined>>;
11
10
  reload?: VoidFunction;
12
11
  checkKnowledges?: IKnowledge[];
13
12
  setCheckKnowledges?: Dispatch<SetStateAction<IKnowledge[] | undefined>>;
13
+ isShowHeader?: boolean;
14
+ sessions: Session[];
15
+ setSessions: Dispatch<SetStateAction<Session[]>>;
16
+ afterSessionClick?: (session: Session) => void;
14
17
  }
15
18
  export interface SessionListRef {
16
19
  create: (param: ISessionParams & {
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { SessionListRef, SessionListProps } from '../../Dialog/SessionList';
3
+ interface SiderProps extends SessionListProps {
4
+ }
5
+ export interface SiderRef extends SessionListRef {
6
+ }
7
+ declare const Sider: React.ForwardRefExoticComponent<SiderProps & React.RefAttributes<SiderRef>>;
8
+ export default Sider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glodon-aiot/agent-cli-ui",
3
- "version": "3.3.5-beta.34",
3
+ "version": "3.3.6-alpha.1",
4
4
  "module": "./dist/es/index.mjs",
5
5
  "main": "./dist/lib/index.js",
6
6
  "typings": "./dist/src/index.d.ts",
@@ -37,8 +37,8 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@ant-design/icons": "^5.3.4",
40
- "@glodon-aiot/apis": "^3.3.5-beta.34",
41
- "@glodon-aiot/bot-client-sdk": "^3.3.5-beta.34",
40
+ "@glodon-aiot/apis": "^3.3.6-alpha.1",
41
+ "@glodon-aiot/bot-client-sdk": "^3.3.6-alpha.1",
42
42
  "@matejmazur/react-mathjax": "^0.1.10",
43
43
  "@react-pdf-viewer/core": "^3.12.0",
44
44
  "@react-pdf-viewer/default-layout": "^3.12.0",