@epam/ai-dial-source-panel 1.3.0-dev.246 → 1.3.0-dev.248

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":"ConversationSourcesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationSourcesPanel/ConversationSourcesPanel.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;;AAkMnG,wBAA8C"}
1
+ {"version":3,"file":"ConversationSourcesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationSourcesPanel/ConversationSourcesPanel.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;;AAkMnG,wBAA8C"}
@@ -1 +1 @@
1
- {"version":3,"file":"SourcesSection.d.ts","sourceRoot":"","sources":["../../../src/components/SourcesSection/SourcesSection.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EACV,8BAA8B,EAC9B,kCAAkC,EACnC,MAAM,+CAA+C,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGrE,gDAAgD;AAChD,UAAU,mBAAmB;IAC3B,4CAA4C;IAC5C,KAAK,EAAE,SAAS,CAAC;IACjB,kCAAkC;IAClC,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,yHAAyH;IACzH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mHAAmH;IACnH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kHAAkH;IAClH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uHAAuH;IACvH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,+GAA+G;IAC/G,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,uHAAuH;IACvH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,UAAU,CAAC,EAAE,kCAAkC,CAAC;IAChD,wDAAwD;IACxD,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACnD;;AA2HD,wBAAoC"}
1
+ {"version":3,"file":"SourcesSection.d.ts","sourceRoot":"","sources":["../../../src/components/SourcesSection/SourcesSection.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EACV,8BAA8B,EAC9B,kCAAkC,EACnC,MAAM,+CAA+C,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGrE,gDAAgD;AAChD,UAAU,mBAAmB;IAC3B,4CAA4C;IAC5C,KAAK,EAAE,SAAS,CAAC;IACjB,kCAAkC;IAClC,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,yHAAyH;IACzH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mHAAmH;IACnH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kHAAkH;IAClH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uHAAuH;IACvH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,+GAA+G;IAC/G,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,uHAAuH;IACvH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,UAAU,CAAC,EAAE,kCAAkC,CAAC;IAChD,wDAAwD;IACxD,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACnD;;AA2HD,wBAAoC"}
package/index.css CHANGED
@@ -1,3 +1,3 @@
1
1
  ._link_12icw_1{color:var(--sp-source-link,var(--text-info,#1d4ed8))}._quote_12icw_5{color:var(--sp-source-quote,var(--text-primary,#161b2d))}
2
2
  /*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
- .sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.table{display:table}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.resize{resize:both}.grid-cols-\[repeat\(auto-fill\,minmax\(100px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.p-0{padding:0}.p-4{padding:1rem}.px-3{padding-inline:.75rem}.py-2{padding-block:.5rem}.pt-0{padding-top:0}.\[\&\>div\>\*\+\*\]\:mt-1>div>*+*{margin-top:.25rem}
3
+ .mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.table{display:table}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.resize{resize:both}.grid-cols-\[repeat\(auto-fill\,minmax\(100px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.p-0{padding:0}.p-4{padding:1rem}.px-3{padding-inline:.75rem}.py-2{padding-block:.5rem}.pt-0{padding-top:0}.\[\&\>div\>\*\+\*\]\:mt-1>div>*+*{margin-top:.25rem}
package/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { BASE_LG_ICON_PROPS as e, MarkdownRenderer as t, buildCssVars as n, mergeClasses as r } from "@epam/ai-dial-chat-shared";
2
2
  import { PanelNoResults as i, SidebarOrientation as a, SidebarPanel as o } from "@epam/ai-dial-sidebar";
3
- import { DIAL_ICON_SIZE as s, DIAL_KIT_ICON_STROKE as c, ElementSize as l, GhostIconButton as u, Highlight as d, LinkButton as f, NoDataContent as p, Search as m, mergeClasses as h } from "@epam/ai-dial-ui-kit";
4
- import { IconCopy as g, IconDownload as _ } from "@tabler/icons-react";
5
- import { memo as v, useLayoutEffect as y, useMemo as b, useState as x } from "react";
6
- import { AttachmentCard as S } from "@epam/ai-dial-attachment-input";
7
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
3
+ import { DIAL_ICON_SIZE as s, DIAL_KIT_ICON_STROKE as c, ElementSize as l, GhostIconButton as u, Highlight as d, LinkButton as f, LiveRegion as p, LiveRegionElement as m, NoDataContent as h, Search as g, mergeClasses as _ } from "@epam/ai-dial-ui-kit";
4
+ import { IconCopy as v, IconDownload as y } from "@tabler/icons-react";
5
+ import { memo as b, useLayoutEffect as x, useMemo as S, useState as C } from "react";
6
+ import { AttachmentCard as w } from "@epam/ai-dial-attachment-input";
7
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
8
8
  //#region src/constants/public-class-names.ts
9
- var E = { panel: "dial-source-panel-panel" }, D = v(({ attachments: e, title: t, searchQuery: n, titleClassName: i = "dial-body-semi-text", className: a, onAttachmentClick: o, attachmentClickLabel: s }) => e.length === 0 ? null : /* @__PURE__ */ T("section", {
9
+ var O = { panel: "dial-source-panel-panel" }, k = b(({ attachments: e, title: t, searchQuery: n, titleClassName: i = "dial-body-semi-text", className: a, onAttachmentClick: o, attachmentClickLabel: s }) => e.length === 0 ? null : /* @__PURE__ */ D("section", {
10
10
  className: r("mb-6", a),
11
- children: [/* @__PURE__ */ w("h2", {
11
+ children: [/* @__PURE__ */ E("h2", {
12
12
  className: r(i, "mb-3"),
13
13
  children: t
14
- }), /* @__PURE__ */ w("div", {
14
+ }), /* @__PURE__ */ E("div", {
15
15
  role: "list",
16
16
  className: "grid grid-cols-[repeat(auto-fill,minmax(100px,1fr))] gap-3",
17
- children: e.map((e, t) => /* @__PURE__ */ w("div", {
17
+ children: e.map((e, t) => /* @__PURE__ */ E("div", {
18
18
  role: "listitem",
19
- children: /* @__PURE__ */ w(S, {
19
+ children: /* @__PURE__ */ E(w, {
20
20
  attachment: e,
21
21
  searchQuery: n,
22
22
  onClick: o ? () => o(e) : void 0,
@@ -24,175 +24,173 @@ var E = { panel: "dial-source-panel-panel" }, D = v(({ attachments: e, title: t,
24
24
  })
25
25
  }, `${e.id}-${t}`))
26
26
  })]
27
- })), O = {
27
+ })), A = {
28
28
  link: "_link_12icw_1",
29
29
  quote: "_quote_12icw_5"
30
- }, k = v(({ title: e, sources: i, copyLabel: a, copiedLabel: o = "Link copied to clipboard", codeBlockCopyLabel: p, codeBlockCopiedLabel: m, codeBlockDownloadLabel: h, tableScrollRegionAriaLabel: _, mathScrollRegionAriaLabel: v, searchQuery: y = "", typography: S, colors: C, className: E, onSourceClick: D }) => {
31
- let [k, A] = x(""), j = S?.sectionTitleClassName ?? "dial-body-semi-text", M = S?.sourceLinkClassName ?? "dial-small-text", N = S?.sourceQuoteClassName ?? "dial-tiny-text", P = b(() => n({
32
- "--sp-source-link": C?.sourceLink,
33
- "--sp-source-quote": C?.sourceQuote
34
- }), [C]);
30
+ }, j = b(({ title: e, sources: i, copyLabel: a, copiedLabel: o = "Link copied to clipboard", codeBlockCopyLabel: h, codeBlockCopiedLabel: g, codeBlockDownloadLabel: _, tableScrollRegionAriaLabel: y, mathScrollRegionAriaLabel: b, searchQuery: x = "", typography: w, colors: T, className: O, onSourceClick: k }) => {
31
+ let [j, M] = C(""), N = w?.sectionTitleClassName ?? "dial-body-semi-text", P = w?.sourceLinkClassName ?? "dial-small-text", F = w?.sourceQuoteClassName ?? "dial-tiny-text", I = S(() => n({
32
+ "--sp-source-link": T?.sourceLink,
33
+ "--sp-source-quote": T?.sourceQuote
34
+ }), [T]);
35
35
  if (i.length === 0) return null;
36
- let F = async (e) => {
37
- await navigator.clipboard.writeText(e), A(o);
36
+ let L = async (e) => {
37
+ await navigator.clipboard.writeText(e), M(o);
38
38
  };
39
- return /* @__PURE__ */ T("section", {
40
- className: r("mb-6", E),
41
- style: P,
39
+ return /* @__PURE__ */ D("section", {
40
+ className: r("mb-6", O),
41
+ style: I,
42
42
  children: [
43
- /* @__PURE__ */ w("h2", {
44
- className: r(j, "mb-3"),
43
+ /* @__PURE__ */ E("h2", {
44
+ className: r(N, "mb-3"),
45
45
  children: e
46
46
  }),
47
- /* @__PURE__ */ w("ul", {
47
+ /* @__PURE__ */ E("ul", {
48
48
  className: "flex flex-col gap-3",
49
- children: i.map((e) => /* @__PURE__ */ T("li", {
49
+ children: i.map((e) => /* @__PURE__ */ D("li", {
50
50
  className: "flex flex-col gap-1",
51
- children: [/* @__PURE__ */ T("div", {
51
+ children: [/* @__PURE__ */ D("div", {
52
52
  className: "flex min-w-0 items-center justify-between gap-2",
53
- children: [/* @__PURE__ */ w(f, {
53
+ children: [/* @__PURE__ */ E(f, {
54
54
  href: e.url,
55
55
  target: "_blank",
56
56
  size: l.Small,
57
- className: r(O.link, "min-w-0 flex-1 justify-start"),
58
- textClassName: r(M, "min-w-0 truncate"),
59
- label: /* @__PURE__ */ w(d, {
57
+ className: r(A.link, "min-w-0 flex-1 justify-start"),
58
+ textClassName: r(P, "min-w-0 truncate"),
59
+ label: /* @__PURE__ */ E(d, {
60
60
  text: e.title,
61
- query: y,
61
+ query: x,
62
62
  maxLines: 1
63
63
  }),
64
64
  "aria-label": e.title,
65
- onClick: D ? (t) => {
66
- t.preventDefault(), D(e);
65
+ onClick: k ? (t) => {
66
+ t.preventDefault(), k(e);
67
67
  } : void 0
68
- }), /* @__PURE__ */ w(u, {
68
+ }), /* @__PURE__ */ E(u, {
69
69
  size: l.Small,
70
- icon: /* @__PURE__ */ w(g, {
70
+ icon: /* @__PURE__ */ E(v, {
71
71
  size: s.SM,
72
72
  stroke: c,
73
73
  "aria-hidden": !0
74
74
  }),
75
75
  "aria-label": a,
76
- onClick: () => void F(e.url)
76
+ onClick: () => void L(e.url)
77
77
  })]
78
- }), e.quote && /* @__PURE__ */ w("div", {
79
- className: r(N, O.quote, "line-clamp-5 [&>div>*+*]:mt-1"),
80
- children: /* @__PURE__ */ w(t, {
78
+ }), e.quote && /* @__PURE__ */ E("div", {
79
+ className: r(F, A.quote, "line-clamp-5 [&>div>*+*]:mt-1"),
80
+ children: /* @__PURE__ */ E(t, {
81
81
  content: e.quote,
82
- codeBlockCopyLabel: p,
83
- codeBlockCopiedLabel: m,
84
- codeBlockDownloadLabel: h,
85
- tableScrollRegionAriaLabel: _,
86
- mathScrollRegionAriaLabel: v
82
+ codeBlockCopyLabel: h,
83
+ codeBlockCopiedLabel: g,
84
+ codeBlockDownloadLabel: _,
85
+ tableScrollRegionAriaLabel: y,
86
+ mathScrollRegionAriaLabel: b
87
87
  })
88
88
  })]
89
89
  }, e.url))
90
90
  }),
91
- /* @__PURE__ */ w("span", {
92
- role: "status",
93
- "aria-live": "polite",
94
- className: "sr-only",
95
- children: k
91
+ /* @__PURE__ */ E(p, {
92
+ visuallyHidden: !0,
93
+ as: m.Span,
94
+ children: j
96
95
  })
97
96
  ]
98
97
  });
99
- }), A = (e, t) => e.toLowerCase().includes(t.toLowerCase()), j = v(({ isOpen: t, onClose: n, uploaded: r, generated: s, sources: c, onAttachmentClick: l, onSourceClick: d, onDownloadAll: f, isMobile: g, defaultWidth: v, minWidth: S, maxWidth: O, onResizeStop: j, labels: M, styles: N, title: P, additionalSections: F }) => {
100
- let [I, L] = x(""), R = (e) => {
101
- L(e ?? "");
98
+ }), M = (e, t) => e.toLowerCase().includes(t.toLowerCase()), N = b(({ isOpen: t, onClose: n, uploaded: r, generated: s, sources: c, onAttachmentClick: l, onSourceClick: d, onDownloadAll: f, isMobile: v, defaultWidth: b, minWidth: w, maxWidth: A, onResizeStop: N, labels: P, styles: F, title: I, additionalSections: L }) => {
99
+ let [R, z] = C(""), B = (e) => {
100
+ z(e ?? "");
102
101
  };
103
- y(() => {
104
- t || L("");
102
+ x(() => {
103
+ t || z("");
105
104
  }, [t]);
106
- let z = b(() => I ? r.filter((e) => A(e.name, I)) : r, [r, I]), B = b(() => I ? s.filter((e) => A(e.name, I)) : s, [s, I]), V = b(() => I ? c.filter((e) => A(e.title, I) || A(e.url, I) || e.quote != null && A(e.quote, I)) : c, [c, I]), H = r.length > 0 || s.length > 0 || c.length > 0, U = !H && !F, W = I !== "" && z.length === 0 && B.length === 0 && V.length === 0, G;
107
- return G = U ? /* @__PURE__ */ w("div", {
105
+ let V = S(() => R ? r.filter((e) => M(e.name, R)) : r, [r, R]), H = S(() => R ? s.filter((e) => M(e.name, R)) : s, [s, R]), U = S(() => R ? c.filter((e) => M(e.title, R) || M(e.url, R) || e.quote != null && M(e.quote, R)) : c, [c, R]), W = r.length > 0 || s.length > 0 || c.length > 0, G = !W && !L, K = R !== "" && V.length === 0 && H.length === 0 && U.length === 0, q;
106
+ return q = G ? /* @__PURE__ */ E("div", {
108
107
  className: "flex h-full items-center justify-center",
109
- children: /* @__PURE__ */ w(p, {
110
- title: M.noDataLabel,
111
- description: M.noDataDescription
108
+ children: /* @__PURE__ */ E(h, {
109
+ title: P.noDataLabel,
110
+ description: P.noDataDescription
112
111
  })
113
- }) : /* @__PURE__ */ T(C, { children: [F, W ? /* @__PURE__ */ w(i, {
114
- label: M.noResultsLabel,
115
- description: M.noResultsDescription
116
- }) : /* @__PURE__ */ T(C, { children: [
117
- /* @__PURE__ */ w(D, {
118
- attachments: z,
119
- title: M.uploadedSectionTitle,
120
- searchQuery: I,
121
- titleClassName: N?.typography?.sectionTitleClassName,
122
- className: N?.sectionClassName,
112
+ }) : /* @__PURE__ */ D(T, { children: [L, K ? /* @__PURE__ */ E(i, {
113
+ label: P.noResultsLabel,
114
+ description: P.noResultsDescription
115
+ }) : /* @__PURE__ */ D(T, { children: [
116
+ /* @__PURE__ */ E(k, {
117
+ attachments: V,
118
+ title: P.uploadedSectionTitle,
119
+ searchQuery: R,
120
+ titleClassName: F?.typography?.sectionTitleClassName,
121
+ className: F?.sectionClassName,
123
122
  onAttachmentClick: l,
124
- attachmentClickLabel: M.attachmentClickLabel
123
+ attachmentClickLabel: P.attachmentClickLabel
125
124
  }),
126
- /* @__PURE__ */ w(D, {
127
- attachments: B,
128
- title: M.generatedSectionTitle,
129
- searchQuery: I,
130
- titleClassName: N?.typography?.sectionTitleClassName,
131
- className: N?.sectionClassName,
125
+ /* @__PURE__ */ E(k, {
126
+ attachments: H,
127
+ title: P.generatedSectionTitle,
128
+ searchQuery: R,
129
+ titleClassName: F?.typography?.sectionTitleClassName,
130
+ className: F?.sectionClassName,
132
131
  onAttachmentClick: l,
133
- attachmentClickLabel: M.attachmentClickLabel
132
+ attachmentClickLabel: P.attachmentClickLabel
134
133
  }),
135
- /* @__PURE__ */ w(k, {
136
- sources: V,
137
- title: M.sourcesSectionTitle,
138
- searchQuery: I,
139
- typography: N?.typography,
140
- colors: N?.colors,
141
- className: N?.sectionClassName,
142
- copyLabel: M.copySourceLabel,
143
- copiedLabel: M.sourceCopiedLabel,
144
- codeBlockCopyLabel: M.codeBlockCopyLabel,
145
- codeBlockCopiedLabel: M.codeBlockCopiedLabel,
146
- codeBlockDownloadLabel: M.codeBlockDownloadLabel,
147
- tableScrollRegionAriaLabel: M.tableScrollRegionAriaLabel,
148
- mathScrollRegionAriaLabel: M.mathScrollRegionAriaLabel,
134
+ /* @__PURE__ */ E(j, {
135
+ sources: U,
136
+ title: P.sourcesSectionTitle,
137
+ searchQuery: R,
138
+ typography: F?.typography,
139
+ colors: F?.colors,
140
+ className: F?.sectionClassName,
141
+ copyLabel: P.copySourceLabel,
142
+ copiedLabel: P.sourceCopiedLabel,
143
+ codeBlockCopyLabel: P.codeBlockCopyLabel,
144
+ codeBlockCopiedLabel: P.codeBlockCopiedLabel,
145
+ codeBlockDownloadLabel: P.codeBlockDownloadLabel,
146
+ tableScrollRegionAriaLabel: P.tableScrollRegionAriaLabel,
147
+ mathScrollRegionAriaLabel: P.mathScrollRegionAriaLabel,
149
148
  onSourceClick: d
150
149
  })
151
- ] })] }), /* @__PURE__ */ T(o, {
150
+ ] })] }), /* @__PURE__ */ D(o, {
152
151
  isOpen: t,
153
152
  orientation: a.Right,
154
153
  styles: {
155
- className: h(g && t && "w-full", E.panel),
154
+ className: _(v && t && "w-full", O.panel),
156
155
  bodyClassName: "flex flex-col overflow-hidden p-0"
157
156
  },
158
- labels: M,
159
- title: P,
157
+ labels: P,
158
+ title: I,
160
159
  onClose: n,
161
- resizable: !g,
162
- defaultWidth: v,
163
- minWidth: S,
164
- maxWidth: O,
165
- onResizeStop: j,
166
- rightActions: H && f && /* @__PURE__ */ w(u, {
167
- icon: /* @__PURE__ */ w(_, { ...e }),
168
- "aria-label": M.downloadAllLabel,
169
- tooltipProps: { tooltip: M.downloadAllLabel },
160
+ resizable: !v,
161
+ defaultWidth: b,
162
+ minWidth: w,
163
+ maxWidth: A,
164
+ onResizeStop: N,
165
+ rightActions: W && f && /* @__PURE__ */ E(u, {
166
+ icon: /* @__PURE__ */ E(y, { ...e }),
167
+ "aria-label": P.downloadAllLabel,
168
+ tooltipProps: { tooltip: P.downloadAllLabel },
170
169
  onClick: f
171
170
  }),
172
171
  children: [
173
- H && /* @__PURE__ */ w("div", {
172
+ W && /* @__PURE__ */ E("div", {
174
173
  role: "search",
175
174
  className: "px-3 py-2",
176
- children: /* @__PURE__ */ w(m, {
177
- value: I,
178
- onChange: R,
179
- placeholder: M.searchPlaceholder,
180
- clearLabel: M.searchClearLabel,
181
- "aria-label": M.searchPlaceholder
175
+ children: /* @__PURE__ */ E(g, {
176
+ value: R,
177
+ onChange: B,
178
+ placeholder: P.searchPlaceholder,
179
+ clearLabel: P.searchClearLabel,
180
+ "aria-label": P.searchPlaceholder
182
181
  })
183
182
  }),
184
- /* @__PURE__ */ w("span", {
185
- role: "status",
186
- "aria-live": "polite",
187
- className: "sr-only",
188
- children: W ? M.noResultsLabel : ""
183
+ /* @__PURE__ */ E(p, {
184
+ visuallyHidden: !0,
185
+ as: m.Span,
186
+ children: K ? P.noResultsLabel : ""
189
187
  }),
190
- /* @__PURE__ */ w("div", {
188
+ /* @__PURE__ */ E("div", {
191
189
  className: "flex-1 overflow-y-auto p-4 pt-0",
192
- children: G
190
+ children: q
193
191
  })
194
192
  ]
195
193
  });
196
194
  });
197
195
  //#endregion
198
- export { j as ConversationSourcesPanel, E as SOURCE_PANEL_CLASS };
196
+ export { N as ConversationSourcesPanel, O as SOURCE_PANEL_CLASS };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-source-panel",
3
3
  "description": "Panel for displaying conversation sources — uploaded files and generated citations",
4
- "version": "1.3.0-dev.246",
4
+ "version": "1.3.0-dev.248",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -18,13 +18,13 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@tabler/icons-react": "^3.44.0",
21
- "@epam/ai-dial-attachment-input": "1.3.0-dev.246",
22
- "@epam/ai-dial-sidebar": "1.3.0-dev.246"
21
+ "@epam/ai-dial-attachment-input": "1.3.0-dev.248",
22
+ "@epam/ai-dial-sidebar": "1.3.0-dev.248"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.8",
26
- "@epam/ai-dial-chat-shared": "1.3.0-dev.246",
27
- "@epam/ai-dial-ui-kit": "^0.16.0-dev.45"
26
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.248",
27
+ "@epam/ai-dial-ui-kit": "^0.16.0-dev.56"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",