@glodon-aiot/agent-cli-ui 3.4.0-alpha.2 → 3.4.0-alpha.4

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 (39) hide show
  1. package/dist/es/AgentClientUI.mjs +59 -54
  2. package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +45 -66
  3. package/dist/es/Dialog/AgentChat/index.mjs +415 -382
  4. package/dist/es/Dialog/SessionList/index.mjs +144 -143
  5. package/dist/es/Dialog/index.mjs +99 -93
  6. package/dist/es/QuillEditor/index.mjs +19 -17
  7. package/dist/es/index.mjs +97 -97
  8. package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
  9. package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
  10. package/dist/es/src/style10.css +1 -1
  11. package/dist/es/src/style11.css +1 -1
  12. package/dist/es/src/style12.css +1 -1
  13. package/dist/es/src/style13.css +1 -1
  14. package/dist/es/src/style14.css +1 -1
  15. package/dist/es/src/style15.css +1 -1
  16. package/dist/es/src/style16.css +1 -1
  17. package/dist/es/src/style17.css +1 -1
  18. package/dist/es/src/style18.css +1 -1
  19. package/dist/es/src/style19.css +1 -1
  20. package/dist/es/src/style20.css +1 -1
  21. package/dist/es/src/style21.css +1 -1
  22. package/dist/es/src/style22.css +1 -1
  23. package/dist/es/src/style27.css +1 -1
  24. package/dist/es/src/style28.css +1 -1
  25. package/dist/es/src/style29.css +1 -1
  26. package/dist/es/src/style30.css +1 -1
  27. package/dist/es/src/style31.css +1 -1
  28. package/dist/es/src/style5.css +1 -1
  29. package/dist/es/src/style6.css +1 -1
  30. package/dist/es/src/style7.css +1 -1
  31. package/dist/es/src/style8.css +1 -1
  32. package/dist/lib/index.css +1 -1
  33. package/dist/lib/index.js +56 -56
  34. package/dist/src/AgentClientUI.d.ts +1 -0
  35. package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +2 -0
  36. package/dist/src/Dialog/AgentChat/index.d.ts +4 -1
  37. package/dist/src/Dialog/index.d.ts +1 -0
  38. package/dist/src/QuillEditor/index.d.ts +1 -0
  39. package/package.json +3 -3
@@ -7,6 +7,7 @@ export interface AgentClientRefProps {
7
7
  knowledges?: IKnowledge[];
8
8
  }) => Promise<Session> | undefined;
9
9
  getSessionList: () => Promise<Session[]> | undefined;
10
+ getCurrentInputText: () => string | undefined;
10
11
  }
11
12
  declare const AgentClientUI: React.ForwardRefExoticComponent<AgentClientProps & React.RefAttributes<AgentClientRefProps>>;
12
13
  export default AgentClientUI;
@@ -9,6 +9,8 @@ interface SessionHistoryDrawerProps {
9
9
  setCurrentSession?: Dispatch<SetStateAction<Session | null | undefined>>;
10
10
  sessions: Session[];
11
11
  setSessions: Dispatch<SetStateAction<Session[]>>;
12
+ isSessionHistoryVisible: boolean;
13
+ setIsSessionHistoryVisible: Dispatch<SetStateAction<boolean>>;
12
14
  }
13
15
  declare const SessionHistoryDrawer: FC<SessionHistoryDrawerProps>;
14
16
  export default SessionHistoryDrawer;
@@ -17,5 +17,8 @@ interface AgentChatProps {
17
17
  sessions: Session[];
18
18
  setSessions: Dispatch<SetStateAction<Session[]>>;
19
19
  }
20
- declare const AgentChat: React.FC<AgentChatProps>;
20
+ export interface AgentChatRefProps {
21
+ getCurrentInputText: () => string | undefined;
22
+ }
23
+ declare const AgentChat: React.ForwardRefExoticComponent<AgentChatProps & React.RefAttributes<AgentChatRefProps>>;
21
24
  export default AgentChat;
@@ -12,6 +12,7 @@ export interface DialogRefProps {
12
12
  knowledges?: IKnowledge[];
13
13
  }) => Promise<Session> | undefined;
14
14
  getSessionList: () => Promise<Session[]> | undefined;
15
+ getCurrentInputText: () => string | undefined;
15
16
  }
16
17
  declare const Dialog: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<DialogRefProps>>;
17
18
  export default Dialog;
@@ -15,6 +15,7 @@ export interface editorRefProps {
15
15
  prevent: () => void;
16
16
  focus: () => void;
17
17
  update: (val?: string) => void;
18
+ getCurrentText: () => string | undefined;
18
19
  }
19
20
  declare const QuillEditor: React.ForwardRefExoticComponent<QuillEditorProp & React.RefAttributes<editorRefProps>>;
20
21
  export default QuillEditor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glodon-aiot/agent-cli-ui",
3
- "version": "3.4.0-alpha.2",
3
+ "version": "3.4.0-alpha.4",
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.4.0-alpha.2",
41
- "@glodon-aiot/bot-client-sdk": "^3.4.0-alpha.2",
40
+ "@glodon-aiot/apis": "^3.4.0-alpha.4",
41
+ "@glodon-aiot/bot-client-sdk": "^3.4.0-alpha.4",
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",