@epam/ai-dial-chat-hooks 1.2.0-dev.264 → 1.2.0-dev.265
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.
|
@@ -2,17 +2,16 @@ import { useEffect as e, useMemo as t } from "react";
|
|
|
2
2
|
//#region src/conversation/useActiveConversationSync/useActiveConversationSync.ts
|
|
3
3
|
var n = ({ activeConversationId: n, items: r, refreshConversations: i, markConversationViewed: a, conversationIdsMatch: o, toPanelConversationId: s }) => {
|
|
4
4
|
let c = t(() => n ? s(n) : void 0, [n, s]);
|
|
5
|
-
|
|
5
|
+
e(() => {
|
|
6
6
|
c && (r.some((e) => o(e.id, c)) || i());
|
|
7
|
-
}, [c, o])
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
}, [c, o]);
|
|
8
|
+
let l = c ? r.find((e) => o(e.id, c))?.id : void 0;
|
|
9
|
+
return e(() => {
|
|
10
|
+
c && l && a(l);
|
|
11
11
|
}, [
|
|
12
12
|
c,
|
|
13
|
-
|
|
14
|
-
a
|
|
15
|
-
o
|
|
13
|
+
l,
|
|
14
|
+
a
|
|
16
15
|
]), c;
|
|
17
16
|
};
|
|
18
17
|
//#endregion
|
package/conversation.d.ts
CHANGED
|
@@ -886,7 +886,8 @@ export declare interface TranscribeWithDeploymentParams {
|
|
|
886
886
|
* 1. If the active conversation is not present in the list, requests a
|
|
887
887
|
* refresh. The list and refresh callback are intentionally excluded from
|
|
888
888
|
* the dependency array to avoid a refresh-loop on every list update.
|
|
889
|
-
* 2. Marks the active conversation as viewed
|
|
889
|
+
* 2. Marks the active conversation as viewed when its matching identity becomes
|
|
890
|
+
* available. List refreshes and persistence rollback do not retry the write.
|
|
890
891
|
*/
|
|
891
892
|
export declare const useActiveConversationSync: ({ activeConversationId, items, refreshConversations, markConversationViewed, conversationIdsMatch, toPanelConversationId, }: UseActiveConversationSyncParams) => string | undefined;
|
|
892
893
|
|
package/index.d.ts
CHANGED
|
@@ -4619,7 +4619,8 @@ export declare const USAGE_MODEL_LIMITS_I18N_KEYS: {
|
|
|
4619
4619
|
* 1. If the active conversation is not present in the list, requests a
|
|
4620
4620
|
* refresh. The list and refresh callback are intentionally excluded from
|
|
4621
4621
|
* the dependency array to avoid a refresh-loop on every list update.
|
|
4622
|
-
* 2. Marks the active conversation as viewed
|
|
4622
|
+
* 2. Marks the active conversation as viewed when its matching identity becomes
|
|
4623
|
+
* available. List refreshes and persistence rollback do not retry the write.
|
|
4623
4624
|
*/
|
|
4624
4625
|
export declare const useActiveConversationSync: ({ activeConversationId, items, refreshConversations, markConversationViewed, conversationIdsMatch, toPanelConversationId, }: UseActiveConversationSyncParams) => string | undefined;
|
|
4625
4626
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-hooks",
|
|
3
3
|
"description": "Framework-level React hooks extracted from AI DIAL Chat for building custom chat interfaces",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.265",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"@epam/ai-dial-chat-api-client": "1.2.0-dev.
|
|
114
|
+
"@epam/ai-dial-chat-api-client": "1.2.0-dev.265",
|
|
115
115
|
"dompurify": "3.4.16",
|
|
116
116
|
"fflate": "^0.8.3",
|
|
117
117
|
"lru-cache": "^10.4.3",
|
|
@@ -120,21 +120,21 @@
|
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
122
|
"react": "^19.2.8",
|
|
123
|
-
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.
|
|
124
|
-
"@epam/ai-dial-attachment-input": "1.2.0-dev.
|
|
125
|
-
"@epam/ai-dial-catalog": "1.2.0-dev.
|
|
126
|
-
"@epam/ai-dial-chat-overlay": "1.2.0-dev.
|
|
127
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
128
|
-
"@epam/ai-dial-mcp-apps": "1.2.0-dev.
|
|
129
|
-
"@epam/ai-dial-publish-panel": "1.2.0-dev.
|
|
130
|
-
"@epam/ai-dial-quotations": "1.2.0-dev.
|
|
123
|
+
"@epam/ai-dial-attachment-canvas": "1.2.0-dev.265",
|
|
124
|
+
"@epam/ai-dial-attachment-input": "1.2.0-dev.265",
|
|
125
|
+
"@epam/ai-dial-catalog": "1.2.0-dev.265",
|
|
126
|
+
"@epam/ai-dial-chat-overlay": "1.2.0-dev.265",
|
|
127
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.265",
|
|
128
|
+
"@epam/ai-dial-mcp-apps": "1.2.0-dev.265",
|
|
129
|
+
"@epam/ai-dial-publish-panel": "1.2.0-dev.265",
|
|
130
|
+
"@epam/ai-dial-quotations": "1.2.0-dev.265",
|
|
131
131
|
"@epam/ai-dial-react-file-manager": "^0.3.0-dev.22",
|
|
132
|
-
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.
|
|
133
|
-
"@epam/ai-dial-share": "1.2.0-dev.
|
|
134
|
-
"@epam/ai-dial-skill-editor": "1.2.0-dev.
|
|
135
|
-
"@epam/ai-dial-source-panel": "1.2.0-dev.
|
|
132
|
+
"@epam/ai-dial-scheduled-tasks": "1.2.0-dev.265",
|
|
133
|
+
"@epam/ai-dial-share": "1.2.0-dev.265",
|
|
134
|
+
"@epam/ai-dial-skill-editor": "1.2.0-dev.265",
|
|
135
|
+
"@epam/ai-dial-source-panel": "1.2.0-dev.265",
|
|
136
136
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.36",
|
|
137
|
-
"@epam/ai-dial-usage-dashboard": "1.2.0-dev.
|
|
137
|
+
"@epam/ai-dial-usage-dashboard": "1.2.0-dev.265",
|
|
138
138
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
139
139
|
"@epam/pdf-highlighter-kit": "^0.0.19",
|
|
140
140
|
"@mcp-ui/client": "^7.1.1"
|