@epam/ai-dial-conversation-messages 1.1.0-dev.21 → 1.1.0-dev.211
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/MessageActions/MessageActions.d.ts.map +1 -1
- package/components/MessageBubble/AssistantMessageBubble.d.ts.map +1 -1
- package/components/MessageBubble/StatusMessageBubble.d.ts +1 -5
- package/components/MessageBubble/StatusMessageBubble.d.ts.map +1 -1
- package/components/MessageBubble/UserMessageBubble.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/index.js +479 -606
- package/models/message-actions.d.ts +29 -22
- package/models/message-actions.d.ts.map +1 -1
- package/models/message-bubble.d.ts +41 -69
- package/models/message-bubble.d.ts.map +1 -1
- package/models/message-source.d.ts +8 -8
- package/models/message-source.d.ts.map +1 -1
- package/package.json +5 -5
- package/types/bubble-position.d.ts +3 -3
- package/types/bubble-position.d.ts.map +1 -1
- package/components/MessageSource/MessageSource.d.ts +0 -5
- package/components/MessageSource/MessageSource.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessageRating, MessageRole } from '@epam/ai-dial-chat-shared';
|
|
2
|
-
/** Tooltip
|
|
2
|
+
/** Tooltip overrides for each action button. Omitted fields fall back to built-in defaults. */
|
|
3
3
|
export interface MessageActionTooltips {
|
|
4
4
|
/** Tooltip for the Edit button. */
|
|
5
5
|
edit?: string;
|
|
@@ -20,7 +20,7 @@ export interface MessageActionTooltips {
|
|
|
20
20
|
/** Tooltip for the Dislike button. */
|
|
21
21
|
dislike?: string;
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
23
|
+
/** aria-label overrides for each action button. Omitted fields fall back to built-in English defaults. */
|
|
24
24
|
export interface MessageActionAriaLabels {
|
|
25
25
|
/** aria-label for the Edit button. */
|
|
26
26
|
editMessage?: string;
|
|
@@ -36,47 +36,54 @@ export interface MessageActionAriaLabels {
|
|
|
36
36
|
likeResponse?: string;
|
|
37
37
|
/** aria-label for the Dislike button. */
|
|
38
38
|
dislikeResponse?: string;
|
|
39
|
-
/**
|
|
39
|
+
/** aria-label for the toolbar container. */
|
|
40
40
|
actionsGroup?: string;
|
|
41
|
-
/**
|
|
41
|
+
/** Announced after copying the response text. */
|
|
42
42
|
copiedStatus?: string;
|
|
43
|
-
/**
|
|
43
|
+
/** Announced after copying the response as Markdown. */
|
|
44
44
|
copiedMarkdownStatus?: string;
|
|
45
45
|
}
|
|
46
|
-
/** Tooltip and
|
|
46
|
+
/** Tooltip and aria-label overrides for `MessageActions`. */
|
|
47
47
|
export interface MessageActionLabels {
|
|
48
|
-
/**
|
|
48
|
+
/** Tooltip overrides per button. */
|
|
49
49
|
tooltips?: MessageActionTooltips;
|
|
50
|
-
/**
|
|
50
|
+
/** aria-label overrides per button. */
|
|
51
51
|
ariaLabels?: MessageActionAriaLabels;
|
|
52
52
|
}
|
|
53
|
-
/**
|
|
53
|
+
/** Color overrides for `MessageActions`, applied as CSS custom properties with app theme fallbacks. */
|
|
54
|
+
export interface MessageActionColors {
|
|
55
|
+
/** Icon color of the active Like/Dislike button. Fallback: `--text-accent`. */
|
|
56
|
+
activeRatingText?: string;
|
|
57
|
+
}
|
|
58
|
+
/** Props for the `MessageActions` component. */
|
|
54
59
|
export interface MessageActionsProps {
|
|
55
|
-
/** Which
|
|
60
|
+
/** Which actions are shown. `'User'` = Edit/Delete; `'Agent'` = Regenerate/Copy/Like/Dislike. Defaults to `'User'`. */
|
|
56
61
|
role?: MessageRole;
|
|
57
|
-
/** Extra class
|
|
62
|
+
/** Extra class(es) on the root element. */
|
|
58
63
|
className?: string;
|
|
59
|
-
/**
|
|
64
|
+
/** Shows actions permanently instead of on group hover only. */
|
|
60
65
|
isAlwaysVisible?: boolean;
|
|
61
|
-
/**
|
|
66
|
+
/** Tooltip and aria-label overrides. */
|
|
62
67
|
labels?: MessageActionLabels;
|
|
63
|
-
/**
|
|
68
|
+
/** Fires on Edit click. User role only. */
|
|
64
69
|
onEdit?: () => void;
|
|
65
|
-
/**
|
|
70
|
+
/** Fires on Edit hover; useful for preloading the edit UI. User role only. */
|
|
66
71
|
onEditHover?: () => void;
|
|
67
|
-
/**
|
|
72
|
+
/** Fires on Delete click. User role only. */
|
|
68
73
|
onDelete?: () => void;
|
|
69
|
-
/**
|
|
74
|
+
/** Fires on Regenerate click. Agent role only. */
|
|
70
75
|
onRegenerate?: () => void;
|
|
71
|
-
/**
|
|
76
|
+
/** Fires on Copy click. Agent role only. */
|
|
72
77
|
onCopy?: () => void;
|
|
73
|
-
/**
|
|
78
|
+
/** Fires on Copy Markdown click. Agent role only. */
|
|
74
79
|
onCopyMarkdown?: () => void;
|
|
75
|
-
/**
|
|
80
|
+
/** Fires on Like click. Agent role only. */
|
|
76
81
|
onLike?: () => void;
|
|
77
|
-
/**
|
|
82
|
+
/** Fires on Dislike click. Agent role only. */
|
|
78
83
|
onDislike?: () => void;
|
|
79
|
-
/**
|
|
84
|
+
/** Active rating; highlights the matching Like/Dislike button when set. */
|
|
80
85
|
activeRating?: MessageRating;
|
|
86
|
+
/** Color overrides. */
|
|
87
|
+
colors?: MessageActionColors;
|
|
81
88
|
}
|
|
82
89
|
//# sourceMappingURL=message-actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-actions.d.ts","sourceRoot":"","sources":["../../src/models/message-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEvE
|
|
1
|
+
{"version":3,"file":"message-actions.d.ts","sourceRoot":"","sources":["../../src/models/message-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEvE,+FAA+F;AAC/F,MAAM,WAAW,qBAAqB;IACpC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,MAAM,CAAC,EA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AClC,uHAAuH;IACvH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wCAAwC;IACxC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,uBAAuB;IACvB,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
|
@@ -9,11 +9,11 @@ export interface MessageBubbleColors {
|
|
|
9
9
|
userBackground?: string;
|
|
10
10
|
/** Border color of the user message bubble. */
|
|
11
11
|
userBorder?: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Gradient start color for a collapsed user message fade-out. Defaults to transparent. */
|
|
13
13
|
fadeStart?: string;
|
|
14
14
|
/** Text color applied to all message bubbles. */
|
|
15
15
|
text?: string;
|
|
16
|
-
/**
|
|
16
|
+
/** Divider color above quick-reply buttons. Falls back to `--color-secondary`. */
|
|
17
17
|
startersDivider?: string;
|
|
18
18
|
}
|
|
19
19
|
/** Typography overrides for message bubble components. */
|
|
@@ -21,65 +21,53 @@ export interface MessageBubbleTypography {
|
|
|
21
21
|
/** Tailwind (or custom) class applied to message text. */
|
|
22
22
|
fontClassName?: string;
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
24
|
+
/** Color and typography overrides for message bubble components. */
|
|
25
25
|
export interface MessageBubbleStyles {
|
|
26
26
|
/** Color overrides applied as CSS custom properties. */
|
|
27
27
|
colors?: MessageBubbleColors;
|
|
28
28
|
/** Typography overrides applied via CSS custom properties. */
|
|
29
29
|
typography?: MessageBubbleTypography;
|
|
30
|
-
/** Extra class
|
|
30
|
+
/** Extra class(es) on the row wrapper. */
|
|
31
31
|
className?: string;
|
|
32
|
-
/** Extra class
|
|
32
|
+
/** Extra class(es) on the bubble element. */
|
|
33
33
|
bubbleClassName?: string;
|
|
34
34
|
}
|
|
35
35
|
/** Localised labels for message bubble components. */
|
|
36
36
|
export interface MessageBubbleLabels {
|
|
37
|
-
/**
|
|
37
|
+
/** Expand button label. Defaults to `"Show more"`. */
|
|
38
38
|
showMoreLabel?: string;
|
|
39
|
-
/**
|
|
39
|
+
/** Collapse button label. Defaults to `"Show less"`. */
|
|
40
40
|
showLessLabel?: string;
|
|
41
|
-
/**
|
|
41
|
+
/** aria-label for the expand button. Defaults to `showMoreLabel`. */
|
|
42
42
|
showMoreAriaLabel?: string;
|
|
43
|
-
/**
|
|
43
|
+
/** aria-label for the collapse button. Defaults to `showLessLabel`. */
|
|
44
44
|
showLessAriaLabel?: string;
|
|
45
|
-
/**
|
|
45
|
+
/** aria-label for the user message group. Defaults to `"User message"`. */
|
|
46
46
|
userMessageAriaLabel?: string;
|
|
47
|
-
/**
|
|
47
|
+
/** aria-label for the assistant message group. Defaults to `"Assistant message"`. */
|
|
48
48
|
assistantMessageAriaLabel?: string;
|
|
49
|
-
/**
|
|
49
|
+
/** aria-label for interactive attachment tiles. */
|
|
50
50
|
attachmentClickLabel?: string;
|
|
51
|
-
/**
|
|
51
|
+
/** aria-label for the attachment retry button. */
|
|
52
52
|
attachmentRetryLabel?: string;
|
|
53
|
-
/**
|
|
53
|
+
/** aria-label for the attachment open-in-new-tab button. */
|
|
54
54
|
attachmentOpenInNewTabLabel?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Bold prefix text for the status message banner.
|
|
57
|
-
* Only used when `role === MessageRole.Status`. Defaults to `"Model switched."`.
|
|
58
|
-
*/
|
|
55
|
+
/** Bold prefix for the status banner. Used when `role === MessageRole.Status`. Defaults to `"Model switched."`. */
|
|
59
56
|
statusTitleText?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Full description text for the status message banner, e.g. "The model has been switched from GPT to Imagen."
|
|
62
|
-
* Required when `role === MessageRole.Status`.
|
|
63
|
-
*/
|
|
57
|
+
/** Body text for the status banner. Required when `role === MessageRole.Status`. */
|
|
64
58
|
statusBodyText?: string;
|
|
65
59
|
}
|
|
66
60
|
/** Localised labels for the `AssistantMessageBubble` component. */
|
|
67
61
|
export interface AssistantMessageBubbleLabels extends MessageBubbleLabels {
|
|
68
|
-
/**
|
|
62
|
+
/** aria-label for the quick-reply list. Defaults to `"Quick reply buttons"`. */
|
|
69
63
|
startersAriaLabel?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Label shown with a shimmer animation while `isStreaming` is true and the message text is still empty.
|
|
72
|
-
* Pass a translated string from the consuming app. Defaults to `'Thinking'`.
|
|
73
|
-
*/
|
|
64
|
+
/** Shimmer placeholder shown while streaming and message text is empty. Defaults to `'Thinking'`. */
|
|
74
65
|
thinkingLabel?: string;
|
|
75
|
-
/**
|
|
66
|
+
/** aria-label for the code block copy button. */
|
|
76
67
|
codeBlockCopyLabel?: string;
|
|
77
|
-
/**
|
|
68
|
+
/** aria-label for the code block copy button after copying. */
|
|
78
69
|
codeBlockCopiedLabel?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Fallback accessible name for the deployment icon when `deploymentDisplayName`
|
|
81
|
-
* is not supplied. Defaults to `'AI'`.
|
|
82
|
-
*/
|
|
70
|
+
/** Fallback aria-label for the deployment icon. Defaults to `'AI'`. */
|
|
83
71
|
deploymentIconFallbackLabel?: string;
|
|
84
72
|
}
|
|
85
73
|
/** Shared props for user and assistant message bubble components. */
|
|
@@ -88,70 +76,54 @@ interface BaseMessageBubbleProps {
|
|
|
88
76
|
text: string;
|
|
89
77
|
/** Color and typography overrides applied as CSS custom properties. */
|
|
90
78
|
styles?: MessageBubbleStyles;
|
|
91
|
-
/** Props
|
|
79
|
+
/** Props for the `MessageActions` bar below the bubble. */
|
|
92
80
|
actions?: MessageActionsProps;
|
|
93
|
-
/**
|
|
81
|
+
/** Shows the actions bar permanently instead of on group hover only. */
|
|
94
82
|
hasAlwaysVisibleActions?: boolean;
|
|
95
83
|
/** When `true`, assistant markdown text reveals newly appended content smoothly. */
|
|
96
84
|
isStreaming?: boolean;
|
|
97
|
-
/**
|
|
85
|
+
/** Attachments shown above (user) or below (assistant) the message text. */
|
|
98
86
|
attachments?: DisplayAttachment[];
|
|
99
|
-
/** Localised labels for the
|
|
87
|
+
/** Localised labels for the toggle button and attachment rows. */
|
|
100
88
|
labels?: MessageBubbleLabels;
|
|
101
|
-
/**
|
|
89
|
+
/** Fires when an attachment is clicked. */
|
|
102
90
|
onAttachmentClick?: (attachment: DisplayAttachment) => void;
|
|
103
|
-
/**
|
|
104
|
-
* Called with every currently downloadable attachment when the user
|
|
105
|
-
* activates the group's "download all" action. Passed through to
|
|
106
|
-
* `AttachmentGroup`.
|
|
107
|
-
*/
|
|
91
|
+
/** Fires with all downloadable attachments when "download all" is triggered. */
|
|
108
92
|
onDownloadAll?: (attachments: DisplayAttachment[]) => void;
|
|
109
|
-
/**
|
|
93
|
+
/** Fires when a failed attachment upload is retried. */
|
|
110
94
|
onAttachmentRetry?: (id: string) => void;
|
|
95
|
+
/** ID of the attachment currently open in the canvas panel, if any. Renders that tile's selected visual state. */
|
|
96
|
+
selectedAttachmentId?: string;
|
|
111
97
|
}
|
|
112
|
-
/** Props
|
|
98
|
+
/** Props for `UserMessageBubble`. */
|
|
113
99
|
export interface UserMessageBubbleProps extends BaseMessageBubbleProps {
|
|
114
|
-
/**
|
|
100
|
+
/** Corner rounding position within a message group. Defaults to `BubblePosition.Bottom`. */
|
|
115
101
|
position?: BubblePosition;
|
|
116
102
|
/** Maximum number of text lines shown while a long user message is collapsed. Defaults to `10`. */
|
|
117
103
|
collapsedLineCount?: number;
|
|
118
104
|
}
|
|
119
|
-
/** Props
|
|
105
|
+
/** Props for `AssistantMessageBubble`. */
|
|
120
106
|
export interface AssistantMessageBubbleProps extends BaseMessageBubbleProps {
|
|
121
|
-
/**
|
|
122
|
-
* react-markdown component overrides merged on top of the built-in map.
|
|
123
|
-
* Pass a custom `p` (or other element) renderer here to inject React nodes
|
|
124
|
-
* — such as citation markers — into specific markdown elements.
|
|
125
|
-
*/
|
|
107
|
+
/** react-markdown component overrides. Use to inject custom renderers (e.g. citation markers) into markdown elements. */
|
|
126
108
|
markdownComponents?: Components;
|
|
127
|
-
/**
|
|
128
|
-
* Quick-reply buttons derived from the assistant message's `form_schema`.
|
|
129
|
-
* Rendered below the message text when the array is non-empty.
|
|
130
|
-
*/
|
|
109
|
+
/** Quick-reply buttons rendered below the message text when non-empty. */
|
|
131
110
|
starters?: StarterOption[];
|
|
132
|
-
/**
|
|
111
|
+
/** Fires with the clicked `StarterOption`. */
|
|
133
112
|
onSelectStarter?: (starter: StarterOption) => void;
|
|
134
113
|
/** Content rendered between the message body and the actions bar (e.g. a stages panel). */
|
|
135
114
|
afterContent?: ReactNode;
|
|
136
|
-
/**
|
|
137
|
-
* Resolved URL for the deployment icon shown in the message header.
|
|
138
|
-
* When absent (e.g. legacy messages without a stored `deploymentId`), no icon is rendered.
|
|
139
|
-
*/
|
|
115
|
+
/** Deployment icon URL. When absent, no icon is rendered. */
|
|
140
116
|
deploymentIconUrl?: string;
|
|
141
|
-
/**
|
|
117
|
+
/** Deployment name used as the icon's accessible label. */
|
|
142
118
|
deploymentDisplayName?: string;
|
|
143
|
-
/** Syntax highlight
|
|
119
|
+
/** Syntax highlight theme for code blocks. Defaults to `'dark'`. */
|
|
144
120
|
codeBlockTheme?: CodeBlockTheme;
|
|
145
121
|
/** Localised labels for quick replies, the thinking indicator, and code block copy actions. */
|
|
146
122
|
labels?: AssistantMessageBubbleLabels;
|
|
147
123
|
}
|
|
148
|
-
/**
|
|
149
|
-
* Props accepted by the `MessageBubble` role-switching wrapper — the union of
|
|
150
|
-
* `AssistantMessageBubbleProps` (the richer variant) with the user-only
|
|
151
|
-
* `position`/`collapsedLineCount` fields, plus the discriminant `role`.
|
|
152
|
-
*/
|
|
124
|
+
/** Props for `MessageBubble` — `AssistantMessageBubbleProps` plus user-only fields and `role`. */
|
|
153
125
|
export type MessageBubbleProps = AssistantMessageBubbleProps & Pick<UserMessageBubbleProps, 'position' | 'collapsedLineCount'> & {
|
|
154
|
-
/**
|
|
126
|
+
/** Message author/type: user, assistant, or status banner. */
|
|
155
127
|
role: MessageRole;
|
|
156
128
|
};
|
|
157
129
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-bubble.d.ts","sourceRoot":"","sources":["../../src/models/message-bubble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,aAAa,EACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,mEAAmE;AACnE,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"message-bubble.d.ts","sourceRoot":"","sources":["../../src/models/message-bubble.ts"],"names":[],"mappings":"A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CAAC,WAAW,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAC3D,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,kHAAkH;IAClH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qCAAqC;AACrC,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IACpE,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,mGAAmG;IACnG,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,0CAA0C;AAC1C,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACzE,yHAAyH;IACzH,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IACnD,2FAA2F;IAC3F,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,oEAAoE;IACpE,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,+FAA+F;IAC/F,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC;AAED,kGAAkG;AAClG,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAC1D,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,oBAAoB,CAAC,GAAG;IAChE,8DAA8D;IAC9D,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** CSS custom-property overrides for
|
|
1
|
+
/** CSS custom-property overrides for `MessageSource`. */
|
|
2
2
|
export interface MessageSourceColors {
|
|
3
3
|
/** Button background color in the default state. */
|
|
4
4
|
background?: string;
|
|
@@ -11,30 +11,30 @@ export interface MessageSourceColors {
|
|
|
11
11
|
/** Button border color on hover and active. */
|
|
12
12
|
borderHover?: string;
|
|
13
13
|
}
|
|
14
|
-
/** Typography overrides for
|
|
14
|
+
/** Typography overrides for `MessageSource`. */
|
|
15
15
|
export interface MessageSourceTypography {
|
|
16
16
|
/** Tailwind (or custom) class applied to the button. */
|
|
17
17
|
fontClassName?: string;
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
19
|
+
/** Color and typography overrides for `MessageSource`. */
|
|
20
20
|
export interface MessageSourceStyles {
|
|
21
21
|
/** Color overrides applied as CSS custom properties. */
|
|
22
22
|
colors?: MessageSourceColors;
|
|
23
23
|
/** Typography overrides applied via CSS custom properties. */
|
|
24
24
|
typography?: MessageSourceTypography;
|
|
25
|
-
/** Extra class
|
|
25
|
+
/** Extra class(es) on the button. */
|
|
26
26
|
className?: string;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
28
|
+
/** Localised strings for `MessageSource`. */
|
|
29
29
|
export interface MessageSourceLabels {
|
|
30
|
-
/**
|
|
30
|
+
/** Button label text. */
|
|
31
31
|
label: string;
|
|
32
32
|
}
|
|
33
|
-
/** Props
|
|
33
|
+
/** Props for the `MessageSource` component. */
|
|
34
34
|
export interface MessageSourceProps {
|
|
35
35
|
/** User-visible strings. */
|
|
36
36
|
labels: MessageSourceLabels;
|
|
37
|
-
/**
|
|
37
|
+
/** Fires on click. */
|
|
38
38
|
onClick?: () => void;
|
|
39
39
|
/** Color and typography overrides applied as CSS custom properties. */
|
|
40
40
|
styles?: MessageSourceStyles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-source.d.ts","sourceRoot":"","sources":["../../src/models/message-source.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"message-source.d.ts","sourceRoot":"","sources":["../../src/models/message-source.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gDAAgD;AAChD,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IAClC,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-conversation-messages",
|
|
3
3
|
"description": "Message bubble components for rendering conversation history with actions and source citations",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.211",
|
|
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-
|
|
23
|
-
"@epam/ai-dial-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
22
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.211",
|
|
23
|
+
"@epam/ai-dial-conversation-input": "1.1.0-dev.211",
|
|
24
|
+
"react-markdown": "^10.1.0",
|
|
25
|
+
"@epam/ai-dial-ui-kit": "^0.13.0-dev.26"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/** Controls
|
|
1
|
+
/** Controls bubble corner rounding for grouping adjacent messages. */
|
|
2
2
|
export declare enum BubblePosition {
|
|
3
|
-
/** First bubble in a group
|
|
3
|
+
/** First bubble in a group; bottom-start corner is squared. */
|
|
4
4
|
Bottom = "Bottom",
|
|
5
|
-
/** Subsequent bubble in a group
|
|
5
|
+
/** Subsequent bubble in a group; top-start corner is squared. */
|
|
6
6
|
Top = "Top"
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=bubble-position.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble-position.d.ts","sourceRoot":"","sources":["../../src/types/bubble-position.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"bubble-position.d.ts","sourceRoot":"","sources":["../../src/types/bubble-position.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oBAAY,cAAc;IACxB,+DAA+D;IAC/D,MAAM,WAAW;IACjB,iEAAiE;IACjE,GAAG,QAAQ;CACZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageSource.d.ts","sourceRoot":"","sources":["../../../src/components/MessageSource/MessageSource.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,yDAAyD;AACzD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAiChD,CAAC"}
|