@epam/ai-dial-attachment-input 1.1.0-dev.365 → 1.1.0-dev.373

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 +1 @@
1
- {"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentCard/Attachments/File.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,EAAE,EAKR,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAmB/E,2HAA2H;AAC3H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAiOlD,CAAC"}
1
+ {"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentCard/Attachments/File.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,EAAE,EAKR,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAmB/E,2HAA2H;AAC3H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAkPlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentTray.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentTray/AttachmentTray.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,gHAAgH;AAChH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0ClD,CAAC"}
1
+ {"version":3,"file":"AttachmentTray.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentTray/AttachmentTray.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,gHAAgH;AAChH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA2ClD,CAAC"}
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AttachmentErrorReason as e, AttachmentType as t, MIME_TYPE_EXT_MAP as n, RequestStatus as r, buildCssVars as i, mergeClasses as a } from "@epam/ai-dial-chat-shared";
2
2
  import { useCallback as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
3
- import { IconClipboard as f, IconDownload as p, IconExternalLink as m, IconFile as h, IconFileDescription as g, IconFileTypeBmp as _, IconFileTypeCss as v, IconFileTypeCsv as y, IconFileTypeDoc as b, IconFileTypeDocx as x, IconFileTypeHtml as S, IconFileTypeJpg as C, IconFileTypeJs as w, IconFileTypeJsx as T, IconFileTypePdf as E, IconFileTypePhp as D, IconFileTypePng as O, IconFileTypePpt as k, IconFileTypeRs as A, IconFileTypeSql as j, IconFileTypeSvg as M, IconFileTypeTs as N, IconFileTypeTsx as ee, IconFileTypeTxt as P, IconFileTypeVue as F, IconFileTypeXls as I, IconFileTypeXml as te, IconFileTypeZip as L, IconFileX as R, IconMusic as z, IconPaperclip as B, IconPhoto as V, IconReload as ne, IconTerminal2 as H, IconVideo as re, IconX as ie } from "@tabler/icons-react";
3
+ import { IconClipboard as f, IconDownload as p, IconExternalLink as m, IconFile as h, IconFileDescription as g, IconFileTypeBmp as _, IconFileTypeCss as v, IconFileTypeCsv as y, IconFileTypeDoc as b, IconFileTypeDocx as x, IconFileTypeHtml as S, IconFileTypeJpg as C, IconFileTypeJs as w, IconFileTypeJsx as T, IconFileTypePdf as E, IconFileTypePhp as D, IconFileTypePng as O, IconFileTypePpt as k, IconFileTypeRs as A, IconFileTypeSql as j, IconFileTypeSvg as M, IconFileTypeTs as N, IconFileTypeTsx as P, IconFileTypeTxt as F, IconFileTypeVue as I, IconFileTypeXls as L, IconFileTypeXml as R, IconFileTypeZip as z, IconFileX as ee, IconMusic as te, IconPaperclip as B, IconPhoto as V, IconReload as ne, IconTerminal2 as H, IconVideo as re, IconX as ie } from "@tabler/icons-react";
4
4
  import { DIAL_ICON_SIZE as U, DIAL_KIT_ICON_STROKE as W, ElementSize as G, GhostIconButton as ae, Highlight as oe, Skeleton as se, SkeletonVariant as ce, Spinner as le, StaticIconButton as ue } from "@epam/ai-dial-ui-kit";
5
5
  import { Fragment as de, jsx as K, jsxs as q } from "react/jsx-runtime";
6
6
  //#region src/utils/attachment.ts
@@ -44,7 +44,7 @@ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, fe = (e) =
44
44
  default: return V;
45
45
  }
46
46
  if (e.startsWith("video/")) return re;
47
- if (e.startsWith("audio/")) return z;
47
+ if (e.startsWith("audio/")) return te;
48
48
  switch (e) {
49
49
  case "application/pdf": return E;
50
50
  case "application/msword":
@@ -52,20 +52,20 @@ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, fe = (e) =
52
52
  case "application/vnd.openxmlformats-officedocument.wordprocessingml.document": return x;
53
53
  case "application/vnd.ms-powerpoint": return k;
54
54
  case "application/vnd.openxmlformats-officedocument.presentationml.presentation": return k;
55
- case "application/vnd.ms-excel": return I;
56
- case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": return I;
55
+ case "application/vnd.ms-excel": return L;
56
+ case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": return L;
57
57
  case "application/zip":
58
58
  case "application/x-zip-compressed":
59
59
  case "application/x-rar-compressed":
60
60
  case "application/x-7z-compressed":
61
61
  case "application/gzip":
62
- case "application/x-tar": return L;
62
+ case "application/x-tar": return z;
63
63
  case "text/csv": return y;
64
- case "text/plain": return P;
64
+ case "text/plain": return F;
65
65
  case "text/html":
66
66
  case "application/xhtml+xml": return S;
67
67
  case "text/xml":
68
- case "application/xml": return te;
68
+ case "application/xml": return R;
69
69
  case "application/sql":
70
70
  case "text/x-sql": return j;
71
71
  case "text/javascript":
@@ -73,13 +73,13 @@ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, fe = (e) =
73
73
  case "text/jsx": return T;
74
74
  case "application/typescript":
75
75
  case "text/typescript": return N;
76
- case "text/tsx": return ee;
76
+ case "text/tsx": return P;
77
77
  case "text/css": return v;
78
78
  case "text/x-php":
79
79
  case "application/x-php": return D;
80
80
  case "text/x-rustsrc":
81
81
  case "application/x-rust": return A;
82
- case "text/x-vue": return F;
82
+ case "text/x-vue": return I;
83
83
  default: return h;
84
84
  }
85
85
  }, ve = (e) => {
@@ -165,76 +165,77 @@ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, fe = (e) =
165
165
  [e.Network]: "Upload failed · network error",
166
166
  [e.UnsupportedType]: "Upload failed · unsupported file type"
167
167
  }, Oe = ({ attachment: t, searchQuery: n = "", onClick: i, onRetry: s, labels: u, styles: d, onDownload: f, isPasted: p, isLink: m, cssVars: h, onExpand: g, isExpandable: _, onRemove: v, isSelected: y }) => {
168
- let { clickLabel: b = "Download attachment", retryLabel: x = "Retry upload", removeLabel: S = "Remove attachment", openInNewTabLabel: C = "Open in new tab", sizeLabel: w, uploadingLabel: T = "Uploading", errorReasonLabels: E, genericErrorLabel: D = "Upload failed" } = u ?? {}, { typography: O, className: k } = d ?? {}, { id: A, name: j, status: M, errorReason: N } = t, ee = M === r.Loading, P = M === r.Error, F = c(), I = P ? N && (E?.[N] ?? De[N]) || D : "", { BottomIcon: te, typeLabel: L } = Y(t), R = !P && !ee && f && !m, z = P && !!s && N !== e.UnsupportedType, B = Number(!!R) + Number(!!z) + Number(!!m) + Number(!!v), V = B > 1 ? "pe-11" : B === 1 ? "pe-5" : void 0, ne = (e) => {
168
+ let { clickLabel: b = "Download attachment", retryLabel: x = "Retry upload", removeLabel: S = "Remove attachment", openInNewTabLabel: C = "Open in new tab", sizeLabel: w, uploadingLabel: T = "Uploading", errorReasonLabels: E, genericErrorLabel: D = "Upload failed" } = u ?? {}, { typography: O, className: k } = d ?? {}, { id: A, name: j, status: M, errorReason: N } = t, P = M === r.Loading, F = M === r.Error, I = c(), L = F ? N && (E?.[N] ?? De[N]) || D : "", { BottomIcon: R, typeLabel: z } = Y(t), ee = !F && !P && f && !m, te = F && !!s && N !== e.UnsupportedType, B = Number(!!ee) + Number(!!te) + Number(!!m) + Number(!!v), V = B > 1 ? "pe-11" : B === 1 ? "pe-5" : void 0, ne = (e) => {
169
169
  e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i?.(t.id));
170
170
  }, H = l(() => p ? j : fe(j), [p, j]), re = o(() => {
171
171
  window.open(t.referenceUrl, "_blank", "noopener,noreferrer");
172
- }, [t]), ie = a(Se, "group/attachment-tile relative flex-col justify-between items-start gap-1 overflow-hidden p-1.5", X.tile, !P && X.hovered, y && X.selected, P && X.tileError), U = /* @__PURE__ */ K("div", {
172
+ }, [t]), ie = a(Se, "group/attachment-tile relative flex-col justify-between items-start gap-1 overflow-hidden p-1.5", X.tile, !F && X.hovered, y && X.selected, F && X.tileError), U = /* @__PURE__ */ K("div", {
173
173
  title: H,
174
- className: a(O?.nameClassName ?? "dial-caption-text", "line-clamp-2 min-w-0 break-words", X.nameText, !P && V),
174
+ className: a(O?.nameClassName ?? "dial-caption-text", "line-clamp-2 w-full min-w-0 break-words", X.nameText, !F && V),
175
175
  children: n ? /* @__PURE__ */ K(oe, {
176
176
  text: H,
177
177
  query: n,
178
178
  maxLines: 2
179
179
  }) : H
180
- }), W = te && /* @__PURE__ */ q("div", {
181
- className: a("flex w-full items-center gap-1", P && V),
182
- children: [/* @__PURE__ */ K(te, {
180
+ }), W = R && /* @__PURE__ */ q("div", {
181
+ className: a("flex w-full items-center gap-1", F && V),
182
+ children: [/* @__PURE__ */ K(R, {
183
183
  size: 16,
184
184
  className: X.typeText,
185
185
  "aria-hidden": !0
186
186
  }), /* @__PURE__ */ K("span", {
187
187
  className: a(O?.metaClassName ?? "dial-caption-text", "min-w-0 flex-1 truncate", X.typeText),
188
- children: w ? `${L} · ${w}` : L
188
+ children: w ? `${z} · ${w}` : z
189
189
  })]
190
190
  }), G = () => {
191
191
  _ && g ? g(A) : i && i(A);
192
192
  }, ae = /* @__PURE__ */ q(de, { children: [
193
193
  U,
194
194
  W,
195
- ee && /* @__PURE__ */ K("div", {
195
+ P && /* @__PURE__ */ K("div", {
196
+ role: "progressbar",
196
197
  "aria-label": T,
197
- className: a("absolute left-[-1px] top-[-1px] flex size-full items-center justify-center rounded", X.track),
198
+ className: a("absolute start-[-1px] top-[-1px] flex size-full items-center justify-center rounded", X.track),
198
199
  children: /* @__PURE__ */ K(le, { size: 32 })
199
200
  }),
200
201
  /* @__PURE__ */ q("div", {
201
202
  className: "absolute end-1 top-1 flex gap-1",
202
203
  children: [
203
- R && /* @__PURE__ */ K(we, {
204
+ ee && /* @__PURE__ */ K(we, {
204
205
  ariaLabel: b,
205
- errorTitle: I,
206
- errorDescId: F,
206
+ errorTitle: L,
207
+ errorDescId: I,
207
208
  onClick: f,
208
209
  id: A
209
210
  }),
210
- z && /* @__PURE__ */ K(Ce, {
211
+ te && /* @__PURE__ */ K(Ce, {
211
212
  ariaLabel: x,
212
- errorTitle: I,
213
- errorDescId: F,
213
+ errorTitle: L,
214
+ errorDescId: I,
214
215
  onClick: s,
215
216
  id: A
216
217
  }),
217
218
  m && /* @__PURE__ */ K(Te, {
218
219
  ariaLabel: C,
219
- errorTitle: I,
220
- errorDescId: F,
220
+ errorTitle: L,
221
+ errorDescId: I,
221
222
  onClick: re
222
223
  }),
223
224
  v && /* @__PURE__ */ K(Ee, {
224
225
  ariaLabel: S,
225
- errorTitle: I,
226
- errorDescId: F,
226
+ errorTitle: L,
227
+ errorDescId: I,
227
228
  onClick: v,
228
229
  id: A
229
230
  })
230
231
  ]
231
232
  }),
232
- P && /* @__PURE__ */ K("span", {
233
- id: F,
233
+ F && /* @__PURE__ */ K("span", {
234
+ id: I,
234
235
  role: "status",
235
236
  "aria-live": "polite",
236
237
  className: "sr-only",
237
- children: I
238
+ children: L
238
239
  })
239
240
  ] });
240
241
  return /* @__PURE__ */ K("div", {
@@ -244,6 +245,7 @@ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, fe = (e) =
244
245
  role: "button",
245
246
  tabIndex: 0,
246
247
  "aria-label": b,
248
+ "aria-busy": P,
247
249
  onClick: G,
248
250
  onKeyDown: ne,
249
251
  style: h,
@@ -371,11 +373,11 @@ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, fe = (e) =
371
373
  isSelected: f
372
374
  });
373
375
  }, je = ({ attachments: e, onRemove: t, onRetry: n, onExpand: r, onAttachmentClick: i, labels: o, styles: s }) => {
374
- let { ariaLabel: c = "Attached files", removeLabel: l, retryLabel: u, clickLabel: d } = o ?? {}, { className: f } = s ?? {};
376
+ let { ariaLabel: c = "Attached files", removeLabel: l, retryLabel: u, clickLabel: d, uploadingLabel: f } = o ?? {}, { className: p } = s ?? {};
375
377
  return e.length === 0 ? null : /* @__PURE__ */ K("div", {
376
378
  role: "list",
377
379
  "aria-label": c,
378
- className: a("flex w-full min-w-0 gap-2 overflow-x-auto", f),
380
+ className: a("flex w-full min-w-0 gap-2 overflow-x-auto", p),
379
381
  children: e.map((e) => /* @__PURE__ */ K("div", {
380
382
  role: "listitem",
381
383
  children: /* @__PURE__ */ K($, {
@@ -386,7 +388,8 @@ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, fe = (e) =
386
388
  labels: {
387
389
  removeLabel: l,
388
390
  retryLabel: u,
389
- clickLabel: d
391
+ clickLabel: d,
392
+ uploadingLabel: f
390
393
  },
391
394
  onClick: i
392
395
  })
@@ -469,7 +472,7 @@ var J = () => `${Date.now()}-${Math.random().toString(36).slice(2)}`, fe = (e) =
469
472
  "--ai-fd-denied-icon": c?.deniedIcon
470
473
  }), d = o ?? (t ? "Attach files" : "No attachments allowed"), f = s ?? (t ? "Drop files here to attach them to message" : "Attachments can't be added to message"), p = t ? Fe.icon : Fe.deniedIcon, m = (e) => {
471
474
  e.preventDefault();
472
- }, h = t ? g : R;
475
+ }, h = t ? g : ee;
473
476
  return /* @__PURE__ */ K("div", {
474
477
  role: "status",
475
478
  "aria-live": "polite",
@@ -85,6 +85,8 @@ export interface AttachmentCardLabels extends AttachmentTypeLabels {
85
85
  expandLabel?: string;
86
86
  /** Accessible label for the loading spinner shown while the attachment is uploading. Defaults to `'Loading attachment'`. */
87
87
  loadingLabel?: string;
88
+ /** Accessible label for the file card's in-progress upload progress bar. Defaults to `'Uploading'`. */
89
+ uploadingLabel?: string;
88
90
  /** Accessible label for the download button. Defaults to `'Download attachment'`. */
89
91
  downloadLabel?: string;
90
92
  /** Accessible label for the open-in-new-tab button. Defaults to `'Open in new tab'`. */
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-card.d.ts","sourceRoot":"","sources":["../../src/models/attachment-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,wGAAwG;AACxG,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,kFAAkF;AAClF,MAAM,WAAW,mBAAmB;IAClC,qDAAqD;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAC;IACjB,2DAA2D;IAC3D,MAAM,EAAE,OAAO,CAAC;IAChB,yDAAyD;IACzD,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,sEAAsE;IACtE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8C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AAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,gGAAgG;IAChG,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,8JAA8J;IAC9J,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,wFAAwF;IACxF,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uHAAuH;IACvH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -9,6 +9,8 @@ export interface AttachmentTrayLabels {
9
9
  retryLabel?: string;
10
10
  /** Accessible label forwarded to each card's root when it is interactive. When omitted, the card's own default (`'Open attachment'`) applies. */
11
11
  clickLabel?: string;
12
+ /** Accessible label for each card's in-progress upload progress bar. Defaults to `'Uploading'`. */
13
+ uploadingLabel?: string;
12
14
  }
13
15
  /** Style overrides for the `AttachmentTray` component. */
14
16
  export interface AttachmentTrayStyles {
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-tray.d.ts","sourceRoot":"","sources":["../../src/models/attachment-tray.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,sEAAsE;AACtE,MAAM,WAAW,oBAAoB;IACnC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iJAAiJ;IACjJ,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,0DAA0D;AAC1D,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,0CAA0C;IAC1C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,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,gGAAgG;IAChG,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,0HAA0H;IAC1H,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4FAA4F;IAC5F,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,oCAAoC;IACpC,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-attachment-input",
3
3
  "description": "File attachment input components with upload validation, drag-and-drop, and progress tracking",
4
- "version": "1.1.0-dev.365",
4
+ "version": "1.1.0-dev.373",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,7 +17,7 @@
17
17
  }
18
18
  },
19
19
  "peerDependencies": {
20
- "@epam/ai-dial-chat-shared": "1.1.0-dev.365",
20
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.373",
21
21
  "@tabler/icons-react": "^3.44.0",
22
22
  "react": "^19.0.0",
23
23
  "@epam/ai-dial-ui-kit": "^0.14.0-dev.15"