@epam/ai-dial-chat-hooks 1.1.0-dev.390 → 1.1.0-dev.392
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/conversation.js +1 -1
- package/index.js +1 -1
- package/package.json +14 -14
- package/{useToolsMenu-BXdahO0i.js → useToolsMenu-6HiNLoEy.js} +15 -15
package/conversation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, V as g, _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, j as E, k as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as F, u as I, v as L, w as R, x as z, y as B, z as V } from "./useToolsMenu-
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, V as g, _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, j as E, k as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as F, u as I, v as L, w as R, x as z, y as B, z as V } from "./useToolsMenu-6HiNLoEy.js";
|
|
2
2
|
export { S as attachmentToDto, M as attachmentsToDtos, p as buildAnnouncementSignature, c as createChatStreamApi, E as createDeploymentChangedMessage, x as createMessagePair, z as deriveConversationRowActionState, f as formatAppVersion, j as getConversationPath, C as getConversationSource, i as getLastDeploymentId, r as getLastUserMessageToolConfiguration, u as getModelIdFromConversationId, R as getQuickAppConversationStarters, P as getStarterConversationText, m as getStarterPopulateText, b as getStarterSubmitText, n as getStartersFromSchema, l as getTimeOfDayGreeting, O as hasActiveToolConfig, V as hasAnnouncementContent, t as hasStructuredAnnouncement, T as isAwaitingGenerationResume, I as isMessageChanged, d as isMessageStreaming, D as messageHasStages, e as normalizeResponseFormat, g as sanitizeAnnouncementHtml, o as sanitizeAnnouncementMessageHtml, a as sanitizeFooterHtml, s as shouldWatchForDisplayNameUpdate, h as toOverlayMessages, y as useActiveConversationSync, B as useAsyncConfirmDialog, k as useAttachmentUpload, A as useChatSettingsFormConfig, v as useConversationHandlers, L as useConversationLookupMaps, _ as useConversationPanelItems, N as useConversationStream, w as useImportFilePicker, F as useToolsMenu };
|
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { n as rt, r as it, t as at } from "./toolset-id-CkxRHyU0.js";
|
|
|
11
11
|
import { a as ot, c as st, i as ct, n as lt, o as ut, r as dt, s as ft, t as pt } from "./prompt-resource-Bt1I-8ri.js";
|
|
12
12
|
import { n as mt, t as ht } from "./formatting-CZyyxBG3.js";
|
|
13
13
|
import { a as gt, c as _t, d as vt, f as yt, h as bt, i as xt, l as St, m as Ct, n as wt, o as Tt, p as Et, r as Dt, s as Ot, t as kt, u as At } from "./skill-manifest-CCX8s4nn.js";
|
|
14
|
-
import { A as jt, B as Mt, C as Nt, D as Pt, E as Ft, F as It, H as Lt, I as Rt, L as zt, M as Bt, N as Vt, O as Ht, P as Ut, R as Wt, S as Gt, T as Kt, V as qt, _ as Jt, a as Yt, b as Xt, c as Zt, d as Qt, f as $t, g as en, h as tn, i as nn, j as rn, k as an, l as on, m as sn, n as cn, o as ln, p as un, r as dn, s as fn, t as pn, u as mn, v as hn, w as gn, x as _n, y as vn, z as yn } from "./useToolsMenu-
|
|
14
|
+
import { A as jt, B as Mt, C as Nt, D as Pt, E as Ft, F as It, H as Lt, I as Rt, L as zt, M as Bt, N as Vt, O as Ht, P as Ut, R as Wt, S as Gt, T as Kt, V as qt, _ as Jt, a as Yt, b as Xt, c as Zt, d as Qt, f as $t, g as en, h as tn, i as nn, j as rn, k as an, l as on, m as sn, n as cn, o as ln, p as un, r as dn, s as fn, t as pn, u as mn, v as hn, w as gn, x as _n, y as vn, z as yn } from "./useToolsMenu-6HiNLoEy.js";
|
|
15
15
|
import { C as bn, S as xn, _ as Sn, a as Cn, b as wn, c as Tn, d as En, f as Dn, g as On, h as kn, i as An, l as jn, m as Mn, n as Nn, o as Pn, p as Fn, r as In, s as Ln, t as Rn, u as zn, v as Bn, x as Vn, y as Hn } from "./useToolsetLogin-GhFtKs4D.js";
|
|
16
16
|
import { i as Un, n as Wn, r as Gn, t as Kn } from "./scheduled-task-trigger-D9RZCk52.js";
|
|
17
17
|
import { n as qn, t as Jn } from "./cron-weekday-B4w29eAC.js";
|
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.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.392",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -87,20 +87,20 @@
|
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"react": "^19.2.6",
|
|
90
|
-
"@epam/ai-dial-attachment-canvas": "1.1.0-dev.
|
|
91
|
-
"@epam/ai-dial-attachment-input": "1.1.0-dev.
|
|
92
|
-
"@epam/ai-dial-catalog": "1.1.0-dev.
|
|
93
|
-
"@epam/ai-dial-chat-api-client": "1.1.0-dev.
|
|
94
|
-
"@epam/ai-dial-chat-overlay": "1.1.0-dev.
|
|
95
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
96
|
-
"@epam/ai-dial-deployment-creation-form": "1.1.0-dev.
|
|
97
|
-
"@epam/ai-dial-publish-panel": "1.1.0-dev.
|
|
98
|
-
"@epam/ai-dial-quotations": "1.1.0-dev.
|
|
90
|
+
"@epam/ai-dial-attachment-canvas": "1.1.0-dev.392",
|
|
91
|
+
"@epam/ai-dial-attachment-input": "1.1.0-dev.392",
|
|
92
|
+
"@epam/ai-dial-catalog": "1.1.0-dev.392",
|
|
93
|
+
"@epam/ai-dial-chat-api-client": "1.1.0-dev.392",
|
|
94
|
+
"@epam/ai-dial-chat-overlay": "1.1.0-dev.392",
|
|
95
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.392",
|
|
96
|
+
"@epam/ai-dial-deployment-creation-form": "1.1.0-dev.392",
|
|
97
|
+
"@epam/ai-dial-publish-panel": "1.1.0-dev.392",
|
|
98
|
+
"@epam/ai-dial-quotations": "1.1.0-dev.392",
|
|
99
99
|
"@epam/ai-dial-react-file-manager": "*",
|
|
100
|
-
"@epam/ai-dial-scheduled-tasks": "1.1.0-dev.
|
|
101
|
-
"@epam/ai-dial-share": "1.1.0-dev.
|
|
102
|
-
"@epam/ai-dial-skill-editor": "1.1.0-dev.
|
|
103
|
-
"@epam/ai-dial-source-panel": "1.1.0-dev.
|
|
100
|
+
"@epam/ai-dial-scheduled-tasks": "1.1.0-dev.392",
|
|
101
|
+
"@epam/ai-dial-share": "1.1.0-dev.392",
|
|
102
|
+
"@epam/ai-dial-skill-editor": "1.1.0-dev.392",
|
|
103
|
+
"@epam/ai-dial-source-panel": "1.1.0-dev.392",
|
|
104
104
|
"@epam/ai-dial-ui-kit": "*",
|
|
105
105
|
"@epam/pdf-highlighter-kit": ">=0.0.14"
|
|
106
106
|
},
|
|
@@ -1238,22 +1238,22 @@ var rt = (e) => et.sanitize(e, tt), it = (e) => et.sanitize(e, nt), at = (e) =>
|
|
|
1238
1238
|
r || b(e);
|
|
1239
1239
|
}, [r]), O = f(() => {
|
|
1240
1240
|
if (!t || y == null) return;
|
|
1241
|
+
let e = y;
|
|
1241
1242
|
b(null);
|
|
1242
|
-
let
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
}), i;
|
|
1243
|
+
let n = s.current;
|
|
1244
|
+
if (!n || e === -1) return;
|
|
1245
|
+
let r = X(t), i = n.messages[e + 1]?.role === o.Assistant ? n.messages.filter((t, n) => n !== e && n !== e + 1) : n.messages.filter((t, n) => n !== e);
|
|
1246
|
+
if (i.length === 0 || i.length === 1 && i[0].role === o.Status) {
|
|
1247
|
+
u.deleteConversation({ path: r }), m?.();
|
|
1248
|
+
return;
|
|
1249
|
+
}
|
|
1250
|
+
let c = {
|
|
1251
|
+
...n,
|
|
1252
|
+
messages: i
|
|
1253
|
+
};
|
|
1254
|
+
s.current = c, a(c), u.saveConversation({
|
|
1255
|
+
path: r,
|
|
1256
|
+
saveConversationBodyDto: { conversation: c }
|
|
1257
1257
|
});
|
|
1258
1258
|
}, [
|
|
1259
1259
|
t,
|