@epam/ai-dial-conversation-messages 0.0.0-dev.0 → 1.0.0-dev.459
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/package.json
CHANGED
|
@@ -1,6 +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.0.0-dev.459",
|
|
4
5
|
"license": "Apache-2.0",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "./index.js",
|
|
@@ -18,9 +19,14 @@
|
|
|
18
19
|
"peerDependencies": {
|
|
19
20
|
"react": "^19.0.0",
|
|
20
21
|
"@tabler/icons-react": "^3.0.0",
|
|
21
|
-
"@epam/ai-dial-ui-kit": "0.12.0-dev.
|
|
22
|
-
"@epam/ai-dial-chat-shared": "
|
|
23
|
-
"@epam/ai-dial-conversation-input": "
|
|
22
|
+
"@epam/ai-dial-ui-kit": "0.12.0-dev.25",
|
|
23
|
+
"@epam/ai-dial-chat-shared": "1.0.0-dev.459",
|
|
24
|
+
"@epam/ai-dial-conversation-input": "1.0.0-dev.459",
|
|
24
25
|
"react-markdown": "^10.0.0"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/epam/ai-dial-chat.git",
|
|
30
|
+
"directory": "libs/conversation-messages"
|
|
25
31
|
}
|
|
26
32
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|