@epam/ai-dial-chat-hooks 1.1.0-dev.418 → 1.1.0-dev.422

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,3 +1,3 @@
1
1
  import { n as e, t } from "./date-BeuD8G79.js";
2
- import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u } from "./useConversationImport-M6p86dtf.js";
2
+ import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u } from "./useConversationImport-CDRs7JF1.js";
3
3
  export { s as ConversationExportMode, l as ConversationTransferErrorCode, r as ConversationTransferWarningCode, o as DEFAULT_MAX_ARCHIVE_BYTES, n as EXPORT_APP_NAME, a as ExportFileNameKind, t as formatDateYM, e as formatDateYMD, i as formatQuotedNameList, c as useConversationExport, u as useConversationImport };
package/index.js CHANGED
@@ -4,7 +4,7 @@ import { C as d, E as f, S as p, T as m, _ as h, a as g, b as _, c as v, d as y,
4
4
  import { i as L, n as R, r as z, t as B } from "./string-utils-iBi2Y55C.js";
5
5
  import { a as V, i as H, n as U, r as W, t as G } from "./useAttachmentValidation-CkMTd5lA.js";
6
6
  import { n as K, t as q } from "./date-BeuD8G79.js";
7
- import { a as J, c as Y, i as X, l as Z, n as Q, o as $, r as ee, s as te, t as ne } from "./useConversationImport-M6p86dtf.js";
7
+ import { a as J, c as Y, i as X, l as Z, n as Q, o as $, r as ee, s as te, t as ne } from "./useConversationImport-CDRs7JF1.js";
8
8
  import { $ as re, A as ie, B as ae, C as oe, D as se, E as ce, F as le, G as ue, H as de, I as fe, J as pe, K as me, L as he, M as ge, N as _e, O as ve, P as ye, Q as be, R as xe, S as Se, T as Ce, U as we, V as Te, W as Ee, X as De, Y as Oe, Z as ke, _ as Ae, a as je, b as Me, c as Ne, d as Pe, et as Fe, f as Ie, g as Le, h as Re, i as ze, j as Be, k as Ve, l as He, m as Ue, n as We, o as Ge, p as Ke, q as qe, r as Je, s as Ye, t as Xe, u as Ze, v as Qe, w as $e, x as et, y as tt, z as nt } from "./useSkillFilePreview-B5o1n_0F.js";
9
9
  import { n as rt, t as it } from "./deployment-id-CxWgJTs9.js";
10
10
  import { C as at, S as ot, T as st, _ as ct, a as lt, b as ut, c as dt, d as ft, f as pt, g as mt, h as ht, i as gt, l as _t, m as vt, n as yt, o as bt, p as xt, r as St, s as Ct, t as wt, u as Tt, v as Et, w as Dt, x as Ot, y as kt } from "./useToolsetLogin-B05m134e.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.418",
4
+ "version": "1.1.0-dev.422",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -99,21 +99,21 @@
99
99
  },
100
100
  "peerDependencies": {
101
101
  "react": "^19.2.6",
102
- "@epam/ai-dial-attachment-canvas": "1.1.0-dev.418",
103
- "@epam/ai-dial-attachment-input": "1.1.0-dev.418",
104
- "@epam/ai-dial-catalog": "1.1.0-dev.418",
105
- "@epam/ai-dial-chat-api-client": "1.1.0-dev.418",
106
- "@epam/ai-dial-chat-overlay": "1.1.0-dev.418",
107
- "@epam/ai-dial-chat-shared": "1.1.0-dev.418",
108
- "@epam/ai-dial-deployment-creation-form": "1.1.0-dev.418",
109
- "@epam/ai-dial-mcp-apps": "1.1.0-dev.418",
110
- "@epam/ai-dial-publish-panel": "1.1.0-dev.418",
111
- "@epam/ai-dial-quotations": "1.1.0-dev.418",
102
+ "@epam/ai-dial-attachment-canvas": "1.1.0-dev.422",
103
+ "@epam/ai-dial-attachment-input": "1.1.0-dev.422",
104
+ "@epam/ai-dial-catalog": "1.1.0-dev.422",
105
+ "@epam/ai-dial-chat-api-client": "1.1.0-dev.422",
106
+ "@epam/ai-dial-chat-overlay": "1.1.0-dev.422",
107
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.422",
108
+ "@epam/ai-dial-deployment-creation-form": "1.1.0-dev.422",
109
+ "@epam/ai-dial-mcp-apps": "1.1.0-dev.422",
110
+ "@epam/ai-dial-publish-panel": "1.1.0-dev.422",
111
+ "@epam/ai-dial-quotations": "1.1.0-dev.422",
112
112
  "@epam/ai-dial-react-file-manager": "*",
113
- "@epam/ai-dial-scheduled-tasks": "1.1.0-dev.418",
114
- "@epam/ai-dial-share": "1.1.0-dev.418",
115
- "@epam/ai-dial-skill-editor": "1.1.0-dev.418",
116
- "@epam/ai-dial-source-panel": "1.1.0-dev.418",
113
+ "@epam/ai-dial-scheduled-tasks": "1.1.0-dev.422",
114
+ "@epam/ai-dial-share": "1.1.0-dev.422",
115
+ "@epam/ai-dial-skill-editor": "1.1.0-dev.422",
116
+ "@epam/ai-dial-source-panel": "1.1.0-dev.422",
117
117
  "@epam/ai-dial-ui-kit": "*",
118
118
  "@modelcontextprotocol/sdk": "^1.27.1",
119
119
  "@epam/pdf-highlighter-kit": ">=0.0.14"
@@ -687,7 +687,7 @@ var y = /* @__PURE__ */ function(e) {
687
687
  total: f.history.length,
688
688
  kind: u.Conversation
689
689
  }));
690
- }, S = [], C = [], w = [], T = !1, E, D = /* @__PURE__ */ new Date(), O = (e) => !!a(e).isUnauthorized, k;
690
+ }, S = [], C = [], w = /* @__PURE__ */ new Set(), T = !1, E, D = /* @__PURE__ */ new Date(), O = (e) => !!a(e).isUnauthorized, k;
691
691
  if (f.isArchive) {
692
692
  let e = `uploads/${t(D)}`, i = [];
693
693
  try {
@@ -730,7 +730,8 @@ var y = /* @__PURE__ */ function(e) {
730
730
  T = !0;
731
731
  break;
732
732
  }
733
- e.skippedNames.length > 0 && w.push(...e.skippedNames), i = e.targetMap;
733
+ for (let t of e.skippedNames) w.add(t);
734
+ i = e.targetMap;
734
735
  }
735
736
  let { conversation: a, subPath: o } = I(se(t, i), r);
736
737
  if (await e.saveConversation({
@@ -773,11 +774,11 @@ var y = /* @__PURE__ */ function(e) {
773
774
  code: o.Unknown,
774
775
  titles: C,
775
776
  traceId: E
776
- }), w.length > 0 && p?.({
777
+ }), w.size > 0 && p?.({
777
778
  jobId: l,
778
779
  code: d.AttachmentSkipped,
779
- names: w
780
- }), C.length > 0 ? g.failJob(l, o.Unknown) : w.length > 0 ? g.warnJob(l, d.AttachmentSkipped) : g.succeedJob(l);
780
+ names: [...w]
781
+ }), C.length > 0 ? g.failJob(l, o.Unknown) : w.size > 0 ? g.warnJob(l, d.AttachmentSkipped) : g.succeedJob(l);
781
782
  }
782
783
  }, [
783
784
  r,