@epam/ai-dial-source-panel 1.0.0-dev.506 → 1.0.0-dev.509
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/components/ConversationSourcesPanel/ConversationSourcesPanel.d.ts +1 -1
- package/components/ConversationSourcesPanel/ConversationSourcesPanel.d.ts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +14 -8
- package/models/conversation-sources-panel-props.d.ts +16 -2
- package/models/conversation-sources-panel-props.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationSourcesPanelProps } from '../../models/conversation-sources-panel-props';
|
|
2
|
-
export type { ConversationSourcesPanelLabels, ConversationSourcesPanelProps, ConversationSourcesPanelStyles, } from '../../models/conversation-sources-panel-props';
|
|
2
|
+
export type { ConversationSourcesPanelColors, ConversationSourcesPanelLabels, ConversationSourcesPanelProps, ConversationSourcesPanelStyles, ConversationSourcesPanelTypography, } from '../../models/conversation-sources-panel-props';
|
|
3
3
|
declare const _default: import('react').NamedExoticComponent<ConversationSourcesPanelProps>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=ConversationSourcesPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationSourcesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationSourcesPanel/ConversationSourcesPanel.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAGnG,YAAY,EACV,8BAA8B,EAC9B,6BAA6B,EAC7B,8BAA8B,
|
|
1
|
+
{"version":3,"file":"ConversationSourcesPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationSourcesPanel/ConversationSourcesPanel.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAGnG,YAAY,EACV,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,GACnC,MAAM,+CAA+C,CAAC;;AA0JvD,wBAA8C"}
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as ConversationSourcesPanel } from './components/ConversationSourcesPanel/ConversationSourcesPanel';
|
|
2
|
-
export type { ConversationSourcesPanelLabels, ConversationSourcesPanelProps, ConversationSourcesPanelStyles, } from './components/ConversationSourcesPanel/ConversationSourcesPanel';
|
|
2
|
+
export type { ConversationSourcesPanelColors, ConversationSourcesPanelLabels, ConversationSourcesPanelProps, ConversationSourcesPanelStyles, ConversationSourcesPanelTypography, } from './components/ConversationSourcesPanel/ConversationSourcesPanel';
|
|
3
3
|
export type { QuotationSource } from './models/quotation-source';
|
|
4
4
|
//# 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,6BAA6B,EAC7B,8BAA8B,
|
|
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,gEAAgE,CAAC;AACxE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
package/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var S = u(({ attachments: e, title: t, searchQuery: n, titleClassName: r = "dial
|
|
|
19
19
|
children: /* @__PURE__ */ b(v, {
|
|
20
20
|
attachment: e,
|
|
21
21
|
searchQuery: n,
|
|
22
|
-
className: "w-full",
|
|
22
|
+
styles: { className: "w-full" },
|
|
23
23
|
onClick: i ? () => i(e) : void 0,
|
|
24
24
|
labels: { clickLabel: a }
|
|
25
25
|
})
|
|
@@ -121,10 +121,12 @@ var S = u(({ attachments: e, title: t, searchQuery: n, titleClassName: r = "dial
|
|
|
121
121
|
}),
|
|
122
122
|
children: [
|
|
123
123
|
!L && /* @__PURE__ */ b(n, {
|
|
124
|
-
placeholder: A.searchPlaceholder,
|
|
125
124
|
value: M,
|
|
126
125
|
onChange: N,
|
|
127
|
-
|
|
126
|
+
labels: {
|
|
127
|
+
placeholder: A.searchPlaceholder,
|
|
128
|
+
clearLabel: A.searchClearLabel
|
|
129
|
+
}
|
|
128
130
|
}),
|
|
129
131
|
/* @__PURE__ */ b("span", {
|
|
130
132
|
role: "status",
|
|
@@ -139,7 +141,7 @@ var S = u(({ attachments: e, title: t, searchQuery: n, titleClassName: r = "dial
|
|
|
139
141
|
attachments: P,
|
|
140
142
|
title: A.uploadedSectionTitle,
|
|
141
143
|
searchQuery: M,
|
|
142
|
-
titleClassName: j?.sectionTitleClassName,
|
|
144
|
+
titleClassName: j?.typography?.sectionTitleClassName,
|
|
143
145
|
onAttachmentClick: g,
|
|
144
146
|
attachmentClickLabel: A.attachmentClickLabel
|
|
145
147
|
}),
|
|
@@ -147,7 +149,7 @@ var S = u(({ attachments: e, title: t, searchQuery: n, titleClassName: r = "dial
|
|
|
147
149
|
attachments: F,
|
|
148
150
|
title: A.generatedSectionTitle,
|
|
149
151
|
searchQuery: M,
|
|
150
|
-
titleClassName: j?.sectionTitleClassName,
|
|
152
|
+
titleClassName: j?.typography?.sectionTitleClassName,
|
|
151
153
|
onAttachmentClick: g,
|
|
152
154
|
attachmentClickLabel: A.attachmentClickLabel
|
|
153
155
|
}),
|
|
@@ -155,9 +157,13 @@ var S = u(({ attachments: e, title: t, searchQuery: n, titleClassName: r = "dial
|
|
|
155
157
|
sources: I,
|
|
156
158
|
title: A.sourcesSectionTitle,
|
|
157
159
|
searchQuery: M,
|
|
158
|
-
titleClassName: j?.sectionTitleClassName,
|
|
159
|
-
linkClassName: j?.sourceLinkClassName,
|
|
160
|
-
quoteClassName: j?.sourceQuoteClassName,
|
|
160
|
+
titleClassName: j?.typography?.sectionTitleClassName,
|
|
161
|
+
linkClassName: j?.typography?.sourceLinkClassName,
|
|
162
|
+
quoteClassName: j?.typography?.sourceQuoteClassName,
|
|
163
|
+
colors: {
|
|
164
|
+
link: j?.colors?.sourceLink,
|
|
165
|
+
quote: j?.colors?.sourceQuote
|
|
166
|
+
},
|
|
161
167
|
copyLabel: A.copySourceLabel,
|
|
162
168
|
onSourceClick: _
|
|
163
169
|
})
|
|
@@ -27,8 +27,15 @@ export interface ConversationSourcesPanelLabels {
|
|
|
27
27
|
/** Label passed to each attachment card's action button. */
|
|
28
28
|
attachmentClickLabel: string;
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
31
|
-
export interface
|
|
30
|
+
/** CSS custom-property overrides for the sources section. */
|
|
31
|
+
export interface ConversationSourcesPanelColors {
|
|
32
|
+
/** Source link color. */
|
|
33
|
+
sourceLink?: string;
|
|
34
|
+
/** Source quote text color. */
|
|
35
|
+
sourceQuote?: string;
|
|
36
|
+
}
|
|
37
|
+
/** Typography (font utility class) overrides for inner elements. */
|
|
38
|
+
export interface ConversationSourcesPanelTypography {
|
|
32
39
|
/** CSS class applied to each section heading (`<h2>`). Defaults to `'dial-body-semi-text'`. */
|
|
33
40
|
sectionTitleClassName?: string;
|
|
34
41
|
/** CSS class applied to each source link. Defaults to `'dial-small-text !text-accent-primary'`. */
|
|
@@ -36,6 +43,13 @@ export interface ConversationSourcesPanelStyles {
|
|
|
36
43
|
/** CSS class applied to each source quote paragraph. Defaults to `'dial-tiny-text text-secondary'`. */
|
|
37
44
|
sourceQuoteClassName?: string;
|
|
38
45
|
}
|
|
46
|
+
/** Optional color and typography overrides for inner elements. */
|
|
47
|
+
export interface ConversationSourcesPanelStyles {
|
|
48
|
+
/** Color overrides applied as CSS custom properties to the sources section. */
|
|
49
|
+
colors?: ConversationSourcesPanelColors;
|
|
50
|
+
/** Typography (font utility class) overrides for section headings and source text. */
|
|
51
|
+
typography?: ConversationSourcesPanelTypography;
|
|
52
|
+
}
|
|
39
53
|
/** Props for the ConversationSourcesPanel component. */
|
|
40
54
|
export interface ConversationSourcesPanelProps {
|
|
41
55
|
/** Whether the panel is currently visible. */
|
|
@@ -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,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,sDAAsD;IACtD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,gBAAgB,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,cAAc,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,gBAAgB,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,4CAA4C;IAC5C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,0DAA0D;IAC1D,eAAe,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,
|
|
1
|
+
{"version":3,"file":"conversation-sources-panel-props.d.ts","sourceRoot":"","sources":["../../src/models/conversation-sources-panel-props.ts"],"names":[],"mapp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CAAC;CACjD;AAED,wDAAwD;AACxD,MAAM,WAAW,6BAA6B;IAC5C,8CAA8C;IAC9C,MAAM,EAAE,OAAO,CAAC;IAChB,wDAAwD;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,6DAA6D;IAC7D,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,mEAAmE;IACnE,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,gDAAgD;IAChD,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5D,4FAA4F;IAC5F,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAClD;;;;OAIG;IACH,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;CACzC"}
|
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.0.0-dev.
|
|
4
|
+
"version": "1.0.0-dev.509",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"@tabler/icons-react": "^3.0.0",
|
|
22
|
-
"@epam/ai-dial-chat-shared": "1.0.0-dev.
|
|
22
|
+
"@epam/ai-dial-chat-shared": "1.0.0-dev.509",
|
|
23
23
|
"@epam/ai-dial-ui-kit": "0.12.0-dev.28",
|
|
24
|
-
"@epam/ai-dial-sidebar": "1.0.0-dev.
|
|
25
|
-
"@epam/ai-dial-conversation-input": "1.0.0-dev.
|
|
24
|
+
"@epam/ai-dial-sidebar": "1.0.0-dev.509",
|
|
25
|
+
"@epam/ai-dial-conversation-input": "1.0.0-dev.509"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|