@epam/ai-dial-source-panel 1.2.0-dev.2 → 1.2.0-dev.201

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":"AAgBA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;;AAiLnG,wBAA8C"}
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;;AAoLnG,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,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,UAAU,CAAC,EAAE,kCAAkC,CAAC;IAChD,wDAAwD;IACxD,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,gFAAgF;IAChF,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACnD;;AA6GD,wBAAoC"}
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,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,UAAU,CAAC,EAAE,kCAAkC,CAAC;IAChD,wDAAwD;IACxD,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,gFAAgF;IAChF,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACnD;;AA8GD,wBAAoC"}
@@ -0,0 +1,11 @@
1
+ export declare const SOURCE_PANEL_CLASS: {
2
+ /**
3
+ * The panel wrapper — the element `@epam/ai-dial-sidebar` gives the panel's
4
+ * width and slide transition, which is the outer box a host sizes or
5
+ * positions. It is **not** the `aside` inside it: that one carries
6
+ * `dial-sb-aside`, so a host targeting the region itself descends from this
7
+ * class.
8
+ */
9
+ readonly panel: "dial-source-panel-panel";
10
+ };
11
+ //# sourceMappingURL=public-class-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kBAAkB;IAC7B;;;;;;OAMG;;CAEK,CAAC"}
package/index.css CHANGED
@@ -1,2 +1,2 @@
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
- /*$vite$:1*/
2
+ /*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.line-clamp-5{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5}.flex{display:flex}.grid{display:grid}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.resize{resize:both}.grid-cols-\[repeat\(auto-fill\2c minmax\(84px\2c 1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.p-0{padding:0}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.pt-0{padding-top:0}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\[\&\>div\>\*\+\*\]\:mt-1>div>*+*{margin-top:.25rem}
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { default as ConversationSourcesPanel } from './components/ConversationSourcesPanel/ConversationSourcesPanel';
2
2
  export type { ConversationSourcesPanelColors, ConversationSourcesPanelLabels, ConversationSourcesPanelProps, ConversationSourcesPanelStyles, ConversationSourcesPanelTypography, } from './models/conversation-sources-panel-props';
3
3
  export type { QuotationSource } from './models/quotation-source';
4
+ export { SOURCE_PANEL_CLASS } from './constants/public-class-names';
4
5
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AACrH,YAAY,EACV,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,GACnC,MAAM,2CAA2C,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AACrH,YAAY,EACV,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,GACnC,MAAM,2CAA2C,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC"}
package/index.js CHANGED
@@ -1,21 +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 } from "@epam/ai-dial-ui-kit";
4
- import { IconCopy as h, IconDownload as g } from "@tabler/icons-react";
5
- import { memo as _, useLayoutEffect as v, useMemo as y, useState as b } from "react";
6
- import { AttachmentCard as x } from "@epam/ai-dial-attachment-input";
7
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
8
- var T = _(({ attachments: e, title: t, searchQuery: n, titleClassName: i = "dial-body-semi-text", onAttachmentClick: a, attachmentClickLabel: o }) => e.length === 0 ? null : /* @__PURE__ */ w("section", {
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";
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", onAttachmentClick: a, attachmentClickLabel: o }) => e.length === 0 ? null : /* @__PURE__ */ T("section", {
9
10
  className: "mb-6",
10
- children: [/* @__PURE__ */ C("h2", {
11
+ children: [/* @__PURE__ */ w("h2", {
11
12
  className: r(i, "mb-3"),
12
13
  children: t
13
- }), /* @__PURE__ */ C("div", {
14
+ }), /* @__PURE__ */ w("div", {
14
15
  role: "list",
15
16
  className: "grid grid-cols-[repeat(auto-fill,minmax(84px,1fr))] gap-3",
16
- children: e.map((e, t) => /* @__PURE__ */ C("div", {
17
+ children: e.map((e, t) => /* @__PURE__ */ w("div", {
17
18
  role: "listitem",
18
- children: /* @__PURE__ */ C(x, {
19
+ children: /* @__PURE__ */ w(S, {
19
20
  attachment: e,
20
21
  searchQuery: n,
21
22
  onClick: a ? () => a(e) : void 0,
@@ -23,50 +24,50 @@ var T = _(({ attachments: e, title: t, searchQuery: n, titleClassName: i = "dial
23
24
  })
24
25
  }, `${e.id}-${t}`))
25
26
  })]
26
- })), E = {
27
+ })), O = {
27
28
  link: "_link_12icw_1",
28
29
  quote: "_quote_12icw_5"
29
- }, D = _(({ title: e, sources: i, copyLabel: a, copiedLabel: o = "Link copied to clipboard", searchQuery: p = "", typography: m, colors: g, onSourceClick: _ }) => {
30
- let [v, x] = b(""), S = m?.sectionTitleClassName ?? "dial-body-semi-text", T = m?.sourceLinkClassName ?? "dial-small-text", D = m?.sourceQuoteClassName ?? "dial-tiny-text", O = y(() => n({
31
- "--sp-source-link": g?.sourceLink,
32
- "--sp-source-quote": g?.sourceQuote
33
- }), [g]);
30
+ }, k = v(({ title: e, sources: i, copyLabel: a, copiedLabel: o = "Link copied to clipboard", searchQuery: p = "", typography: m, colors: h, onSourceClick: _ }) => {
31
+ let [v, y] = x(""), S = m?.sectionTitleClassName ?? "dial-body-semi-text", C = m?.sourceLinkClassName ?? "dial-small-text", E = m?.sourceQuoteClassName ?? "dial-tiny-text", D = b(() => n({
32
+ "--sp-source-link": h?.sourceLink,
33
+ "--sp-source-quote": h?.sourceQuote
34
+ }), [h]);
34
35
  if (i.length === 0) return null;
35
36
  let k = async (e) => {
36
- await navigator.clipboard.writeText(e), x(o);
37
+ await navigator.clipboard.writeText(e), y(o);
37
38
  };
38
- return /* @__PURE__ */ w("section", {
39
+ return /* @__PURE__ */ T("section", {
39
40
  className: "mb-6",
40
- style: O,
41
+ style: D,
41
42
  children: [
42
- /* @__PURE__ */ C("h2", {
43
+ /* @__PURE__ */ w("h2", {
43
44
  className: r(S, "mb-3"),
44
45
  children: e
45
46
  }),
46
- /* @__PURE__ */ C("ul", {
47
+ /* @__PURE__ */ w("ul", {
47
48
  className: "flex flex-col gap-3",
48
- children: i.map((e) => /* @__PURE__ */ w("li", {
49
+ children: i.map((e) => /* @__PURE__ */ T("li", {
49
50
  className: "flex flex-col gap-1",
50
- children: [/* @__PURE__ */ w("div", {
51
+ children: [/* @__PURE__ */ T("div", {
51
52
  className: "flex min-w-0 items-center justify-between gap-2",
52
- children: [/* @__PURE__ */ C(f, {
53
+ children: [/* @__PURE__ */ w(f, {
53
54
  href: e.url,
54
55
  target: "_blank",
55
56
  size: l.Small,
56
- className: r(E.link, "min-w-0 flex-1 justify-start"),
57
- textClassName: r(T, "min-w-0 truncate"),
58
- label: p ? /* @__PURE__ */ C(d, {
57
+ className: r(O.link, "min-w-0 flex-1 justify-start"),
58
+ textClassName: r(C, "min-w-0 truncate"),
59
+ label: /* @__PURE__ */ w(d, {
59
60
  text: e.title,
60
61
  query: p,
61
62
  maxLines: 1
62
- }) : e.title,
63
+ }),
63
64
  "aria-label": e.title,
64
65
  onClick: _ ? (t) => {
65
66
  t.preventDefault(), _(e);
66
67
  } : void 0
67
- }), /* @__PURE__ */ C(u, {
68
+ }), /* @__PURE__ */ w(u, {
68
69
  size: l.Small,
69
- icon: /* @__PURE__ */ C(h, {
70
+ icon: /* @__PURE__ */ w(g, {
70
71
  size: s.SM,
71
72
  stroke: c,
72
73
  "aria-hidden": !0
@@ -74,13 +75,13 @@ var T = _(({ attachments: e, title: t, searchQuery: n, titleClassName: i = "dial
74
75
  "aria-label": a,
75
76
  onClick: () => void k(e.url)
76
77
  })]
77
- }), e.quote && /* @__PURE__ */ C("div", {
78
- className: r(D, E.quote, "line-clamp-5 [&>div>*+*]:mt-1"),
79
- children: /* @__PURE__ */ C(t, { content: e.quote })
78
+ }), e.quote && /* @__PURE__ */ w("div", {
79
+ className: r(E, O.quote, "line-clamp-5 [&>div>*+*]:mt-1"),
80
+ children: /* @__PURE__ */ w(t, { content: e.quote })
80
81
  })]
81
82
  }, e.url))
82
83
  }),
83
- /* @__PURE__ */ C("span", {
84
+ /* @__PURE__ */ w("span", {
84
85
  role: "status",
85
86
  "aria-live": "polite",
86
87
  className: "sr-only",
@@ -88,90 +89,89 @@ var T = _(({ attachments: e, title: t, searchQuery: n, titleClassName: i = "dial
88
89
  })
89
90
  ]
90
91
  });
91
- }), O = (e, t) => e.toLowerCase().includes(t.toLowerCase()), k = _(({ isOpen: t, onClose: n, uploaded: r, generated: s, sources: c, onAttachmentClick: l, onSourceClick: d, onDownloadAll: f, isMobile: h, defaultWidth: _, minWidth: x, maxWidth: E, onResizeStop: k, labels: A, styles: j, title: M, additionalSections: N }) => {
92
- let [P, F] = b(""), I = (e) => {
93
- F(e ?? "");
92
+ }), 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 }) => {
93
+ let [I, L] = x(""), R = (e) => {
94
+ L(e ?? "");
94
95
  };
95
- v(() => {
96
- t || F("");
96
+ y(() => {
97
+ t || L("");
97
98
  }, [t]);
98
- let L = y(() => P ? r.filter((e) => O(e.name, P)) : r, [r, P]), R = y(() => P ? s.filter((e) => O(e.name, P)) : s, [s, P]), z = y(() => P ? c.filter((e) => O(e.title, P) || O(e.url, P) || e.quote != null && O(e.quote, P)) : c, [c, P]), B = r.length > 0 || s.length > 0 || c.length > 0, V = !B && !N, H = P !== "" && L.length === 0 && R.length === 0 && z.length === 0, U;
99
- return U = V ? /* @__PURE__ */ C("div", {
99
+ 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;
100
+ return G = U ? /* @__PURE__ */ w("div", {
100
101
  className: "flex h-full items-center justify-center",
101
- children: /* @__PURE__ */ C(p, { title: A.noDataLabel })
102
- }) : /* @__PURE__ */ w(S, { children: [N, H ? /* @__PURE__ */ C(i, { label: A.noResultsLabel }) : /* @__PURE__ */ w(S, { children: [
103
- /* @__PURE__ */ C(T, {
104
- attachments: L,
105
- title: A.uploadedSectionTitle,
106
- searchQuery: P,
107
- titleClassName: j?.typography?.sectionTitleClassName,
102
+ children: /* @__PURE__ */ w(p, { title: M.noDataLabel })
103
+ }) : /* @__PURE__ */ T(C, { children: [F, W ? /* @__PURE__ */ w(i, { label: M.noResultsLabel }) : /* @__PURE__ */ T(C, { children: [
104
+ /* @__PURE__ */ w(D, {
105
+ attachments: z,
106
+ title: M.uploadedSectionTitle,
107
+ searchQuery: I,
108
+ titleClassName: N?.typography?.sectionTitleClassName,
108
109
  onAttachmentClick: l,
109
- attachmentClickLabel: A.attachmentClickLabel
110
+ attachmentClickLabel: M.attachmentClickLabel
110
111
  }),
111
- /* @__PURE__ */ C(T, {
112
- attachments: R,
113
- title: A.generatedSectionTitle,
114
- searchQuery: P,
115
- titleClassName: j?.typography?.sectionTitleClassName,
112
+ /* @__PURE__ */ w(D, {
113
+ attachments: B,
114
+ title: M.generatedSectionTitle,
115
+ searchQuery: I,
116
+ titleClassName: N?.typography?.sectionTitleClassName,
116
117
  onAttachmentClick: l,
117
- attachmentClickLabel: A.attachmentClickLabel
118
+ attachmentClickLabel: M.attachmentClickLabel
118
119
  }),
119
- /* @__PURE__ */ C(D, {
120
- sources: z,
121
- title: A.sourcesSectionTitle,
122
- searchQuery: P,
123
- typography: j?.typography,
124
- colors: j?.colors,
125
- copyLabel: A.copySourceLabel,
126
- copiedLabel: A.sourceCopiedLabel,
120
+ /* @__PURE__ */ w(k, {
121
+ sources: V,
122
+ title: M.sourcesSectionTitle,
123
+ searchQuery: I,
124
+ typography: N?.typography,
125
+ colors: N?.colors,
126
+ copyLabel: M.copySourceLabel,
127
+ copiedLabel: M.sourceCopiedLabel,
127
128
  onSourceClick: d
128
129
  })
129
- ] })] }), /* @__PURE__ */ w(o, {
130
+ ] })] }), /* @__PURE__ */ T(o, {
130
131
  isOpen: t,
131
132
  orientation: a.Right,
132
133
  styles: {
133
- className: h && t ? "w-full" : void 0,
134
+ className: h(g && t && "w-full", E.panel),
134
135
  bodyClassName: "flex flex-col overflow-hidden p-0"
135
136
  },
136
- labels: A,
137
- title: M,
137
+ labels: M,
138
+ title: P,
138
139
  onClose: n,
139
- resizable: !h,
140
- defaultWidth: _,
141
- minWidth: x,
142
- maxWidth: E,
143
- onResizeStop: k,
144
- rightActions: B && /* @__PURE__ */ C(u, {
145
- icon: /* @__PURE__ */ C(g, { ...e }),
146
- "aria-label": A.downloadAllLabel,
147
- tooltipProps: { tooltip: A.downloadAllLabel },
148
- onClick: f,
149
- disabled: !f
140
+ resizable: !g,
141
+ defaultWidth: v,
142
+ minWidth: S,
143
+ maxWidth: O,
144
+ onResizeStop: j,
145
+ rightActions: H && f && /* @__PURE__ */ w(u, {
146
+ icon: /* @__PURE__ */ w(_, { ...e }),
147
+ "aria-label": M.downloadAllLabel,
148
+ tooltipProps: { tooltip: M.downloadAllLabel },
149
+ onClick: f
150
150
  }),
151
151
  children: [
152
- B && /* @__PURE__ */ C("div", {
152
+ H && /* @__PURE__ */ w("div", {
153
153
  role: "search",
154
154
  className: "px-3 py-2",
155
- children: /* @__PURE__ */ C(m, {
156
- value: P,
157
- onChange: I,
158
- placeholder: A.searchPlaceholder,
159
- clearLabel: A.searchClearLabel,
160
- "aria-label": A.searchPlaceholder
155
+ children: /* @__PURE__ */ w(m, {
156
+ value: I,
157
+ onChange: R,
158
+ placeholder: M.searchPlaceholder,
159
+ clearLabel: M.searchClearLabel,
160
+ "aria-label": M.searchPlaceholder
161
161
  })
162
162
  }),
163
- /* @__PURE__ */ C("span", {
163
+ /* @__PURE__ */ w("span", {
164
164
  role: "status",
165
165
  "aria-live": "polite",
166
166
  className: "sr-only",
167
- children: H ? A.noResultsLabel : ""
167
+ children: W ? M.noResultsLabel : ""
168
168
  }),
169
- /* @__PURE__ */ C("div", {
169
+ /* @__PURE__ */ w("div", {
170
170
  className: "flex-1 overflow-y-auto p-4 pt-0",
171
- children: U
171
+ children: G
172
172
  })
173
173
  ]
174
174
  });
175
175
  });
176
176
  //#endregion
177
- export { k as ConversationSourcesPanel };
177
+ export { j as ConversationSourcesPanel, E as SOURCE_PANEL_CLASS };
@@ -71,7 +71,7 @@ export interface ConversationSourcesPanelProps {
71
71
  onAttachmentClick?: (attachment: DisplayAttachment) => void;
72
72
  /** Called when the user clicks a source link. When omitted, the link navigates normally. */
73
73
  onSourceClick?: (source: QuotationSource) => void;
74
- /** Called when the user activates the download-all button; omit to disable the button. */
74
+ /** Called when the user activates the download-all button; omit to hide the button. */
75
75
  onDownloadAll?: () => void;
76
76
  /** Whether the viewport is in mobile breakpoint (disables resizing). */
77
77
  isMobile: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-sources-panel-props.d.ts","sourceRoot":"","sources":["../../src/models/conversation-sources-panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,oFAAoF;AACpF,MAAM,WAAW,8BAA8B;IAC7C,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,gBAAgB,EAAE,MAAM,CAAC;IACzB,oFAAoF;IACpF,WAAW,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,cAAc,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,gBAAgB,EAAE,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5F,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,wEAAwE;IACxE,QAAQ,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gEAAgE;IAChE,MAAM,EAAE,8BAA8B,CAAC;IACvC,wEAAwE;IACxE,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC;CAChC"}
1
+ {"version":3,"file":"conversation-sources-panel-props.d.ts","sourceRoot":"","sources":["../../src/models/conversation-sources-panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,oFAAoF;AACpF,MAAM,WAAW,8BAA8B;IAC7C,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,gBAAgB,EAAE,MAAM,CAAC;IACzB,oFAAoF;IACpF,WAAW,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,cAAc,EAA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AE,iBAAiB,KAAK,IAAI,CAAC;IAC5D,4FAA4F;IAC5F,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD,uFAAuF;IACvF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,wEAAwE;IACxE,QAAQ,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gEAAgE;IAChE,MAAM,EAAE,8BAA8B,CAAC;IACvC,wEAAwE;IACxE,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC;CAChC"}
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.2.0-dev.2",
4
+ "version": "1.2.0-dev.201",
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.2.0-dev.2",
22
- "@epam/ai-dial-sidebar": "1.2.0-dev.2"
21
+ "@epam/ai-dial-attachment-input": "1.2.0-dev.201",
22
+ "@epam/ai-dial-sidebar": "1.2.0-dev.201"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.8",
26
- "@epam/ai-dial-chat-shared": "1.2.0-dev.2",
27
- "@epam/ai-dial-ui-kit": "^0.14.2"
26
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.201",
27
+ "@epam/ai-dial-ui-kit": "^0.15.0-dev.23"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",