@epam/ai-dial-conversation-messages 0.0.0-dev.0

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.
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { MessageActionsProps } from '../../models/MessageActions';
3
+ /** Context-sensitive action bar — shows edit/delete for user messages and regenerate/copy/like/dislike for assistant messages. */
4
+ export declare const MessageActions: FC<MessageActionsProps>;
5
+ //# sourceMappingURL=MessageActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageActions.d.ts","sourceRoot":"","sources":["../../../src/components/Message/MessageActions.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAIvE,kIAAkI;AAClI,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAiJlD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { AssistantMessageBubbleProps } from '../../models/MessageBubble';
3
+ /** Assistant-authored message bubble, left-aligned with markdown content and optional quick-reply starters. */
4
+ export declare const AssistantMessageBubble: FC<AssistantMessageBubbleProps>;
5
+ //# sourceMappingURL=AssistantMessageBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssistantMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/AssistantMessageBubble.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAI9E,+GAA+G;AAC/G,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA8GlE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { MessageBubbleProps } from '../../models/MessageBubble';
3
+ /** Role-switching wrapper — renders `UserMessageBubble` or `AssistantMessageBubble` based on `role`. */
4
+ export declare const MessageBubble: FC<MessageBubbleProps>;
5
+ //# sourceMappingURL=MessageBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/MessageBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAKrE,wGAAwG;AACxG,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAkChD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ /** Props for the model-change status message banner. */
3
+ export interface StatusMessageBubbleProps {
4
+ /**
5
+ * Bold prefix text displayed before the description.
6
+ * @default "Model switched."
7
+ */
8
+ titleText?: string;
9
+ /** Full description text, e.g. "The model has been switched from GPT to Imagen." */
10
+ bodyText: string;
11
+ }
12
+ /**
13
+ * Full-width info banner rendered in the conversation timeline when the active
14
+ * deployment changes. Matches Figma node 613:8730 (`section-message`).
15
+ * Does not render message actions, ratings, or a copy button.
16
+ */
17
+ export declare const StatusMessageBubble: FC<StatusMessageBubbleProps>;
18
+ //# sourceMappingURL=StatusMessageBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/StatusMessageBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,wDAAwD;AACxD,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAW5D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { UserMessageBubbleProps } from '../../models/MessageBubble';
3
+ /** User-authored message bubble, right-aligned with configurable radius based on group position. */
4
+ export declare const UserMessageBubble: FC<UserMessageBubbleProps>;
5
+ //# sourceMappingURL=UserMessageBubble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/UserMessageBubble.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAOzE,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA+GxD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { MessageSourceProps } from '../../models/MessageSource';
3
+ /** Styled pill button for a message source reference. */
4
+ export declare const MessageSource: FC<MessageSourceProps>;
5
+ //# sourceMappingURL=MessageSource.d.ts.map
@@ -0,0 +1 @@
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,4BAA4B,CAAC;AAGrE,yDAAyD;AACzD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAkChD,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { RefObject } from 'react';
2
+ export interface UseCollapsedTextOptions {
3
+ /** Content identity used to reset long text to the collapsed state when it changes. */
4
+ text: string;
5
+ /** Maximum number of text lines shown while collapsed. */
6
+ collapsedLineCount: number;
7
+ }
8
+ export interface UseCollapsedTextResult {
9
+ /** Ref attached to the text element whose rendered height should be measured. */
10
+ textRef: RefObject<HTMLParagraphElement | null>;
11
+ /** Whether the full text is currently hidden behind the collapsed viewport. */
12
+ isTextCollapsed: boolean;
13
+ /** Whether the measured text is taller than the collapsed viewport. */
14
+ isOverflowing: boolean;
15
+ /** Current collapsed viewport height in pixels. */
16
+ collapsedMaxHeight: number;
17
+ /** Full rendered text height in pixels. */
18
+ expandedMaxHeight: number;
19
+ /** Whether the expanded/collapsed control is currently in the collapsed state. */
20
+ isCollapsed: boolean;
21
+ /** Toggle between expanded and collapsed states. */
22
+ toggleCollapsed: () => void;
23
+ }
24
+ /** Measures rendered text and owns the expand/collapse state for long plain-text content. */
25
+ export declare const useCollapsedText: ({ text, collapsedLineCount, }: UseCollapsedTextOptions) => UseCollapsedTextResult;
26
+ //# sourceMappingURL=useCollapsedText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCollapsedText.d.ts","sourceRoot":"","sources":["../../src/hooks/useCollapsedText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,MAAM,WAAW,uBAAuB;IACtC,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,OAAO,EAAE,SAAS,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAChD,+EAA+E;IAC/E,eAAe,EAAE,OAAO,CAAC;IACzB,uEAAuE;IACvE,aAAa,EAAE,OAAO,CAAC;IACvB,mDAAmD;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kFAAkF;IAClF,WAAW,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED,6FAA6F;AAC7F,eAAO,MAAM,gBAAgB,GAAI,+BAG9B,uBAAuB,KAAG,sBAiE5B,CAAC"}
package/index.css ADDED
@@ -0,0 +1,2 @@
1
+ ._userBubble_9evlr_1{border-color:var(--cm-bubble-user-border,var(--stroke-secondary,#d1dbea));background:var(--cm-bubble-user-bg,var(--bg-layer-2,#eef1f7))}._collapsibleText_9evlr_6{max-height:var(--cm-bubble-collapsed-height);transition:max-height .2s ease-out}._expandedText_9evlr_11{max-height:var(--cm-bubble-expanded-height)}._collapsedText_9evlr_15:after{content:"";inset-inline:0;pointer-events:none;background:linear-gradient(to bottom, #0000, var(--cm-bubble-user-bg,var(--bg-layer-2,#eef1f7)));height:48px;position:absolute;bottom:0}@media (prefers-reduced-motion:reduce){._collapsibleText_9evlr_6{transition:none}}._startersDivider_9evlr_30{border-color:var(--cm-starters-divider,var(--stroke-secondary,#d1dbea))}._text_9evlr_34{color:var(--cm-bubble-text,var(--text-primary,#161b2d))}._button_dcr6u_1{background:var(--cm-source-bg,var(--bg-neutral,#fcfcfc));border-color:var(--cm-source-border,var(--stroke-secondary,#d1dbea));color:var(--cm-source-text,var(--text-primary,#161b2d))}._button_dcr6u_1:hover,._button_dcr6u_1:active{background:var(--cm-source-bg-hover,var(--bg-accent-primary-alpha,#7da4ff2e));border-color:var(--cm-source-border-hover,var(--stroke-accent-primary,#124ace))}
2
+ /*$vite$:1*/
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ export { MessageBubble } from './components/MessageBubble/MessageBubble';
2
+ export { UserMessageBubble } from './components/MessageBubble/UserMessageBubble';
3
+ export { AssistantMessageBubble } from './components/MessageBubble/AssistantMessageBubble';
4
+ export { StatusMessageBubble } from './components/MessageBubble/StatusMessageBubble';
5
+ export { MessageActions } from './components/Message/MessageActions';
6
+ export { MessageSource } from './components/MessageSource/MessageSource';
7
+ export { BubblePosition } from './types/bubble-position';
8
+ export type { MessageBubbleProps, UserMessageBubbleProps, AssistantMessageBubbleProps, MessageBubbleStyles, MessageBubbleColors, MessageBubbleTypography, } from './models/MessageBubble';
9
+ export type { StatusMessageBubbleProps } from './components/MessageBubble/StatusMessageBubble';
10
+ export type { MessageActionsProps, MessageActionTooltips, MessageActionAriaLabels, } from './models/MessageActions';
11
+ export type { MessageSourceProps, MessageSourceStyles, MessageSourceColors, MessageSourceTypography, } from './models/MessageSource';
12
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC/F,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC"}