@epam/ai-dial-chat-shared 1.1.0-dev.12 → 1.1.0-dev.121
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/CopyButton/CopyButton.d.ts +17 -0
- package/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/components/DeploymentIcon/DeploymentIcon.d.ts +1 -10
- package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -1
- package/components/InitialsAvatar/InitialsAvatar.d.ts +1 -4
- package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -1
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +8 -5
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts +19 -10
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +7 -4
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +1 -5
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -1
- package/constants/icon.d.ts +2 -0
- package/constants/icon.d.ts.map +1 -1
- package/constants/mime-types.d.ts +3 -6
- package/constants/mime-types.d.ts.map +1 -1
- package/hooks/useCodeCopy.d.ts +1 -9
- package/hooks/useCodeCopy.d.ts.map +1 -1
- package/hooks/useCollapsedText.d.ts +3 -7
- package/hooks/useCollapsedText.d.ts.map +1 -1
- package/hooks/useTableScroll.d.ts +1 -0
- package/hooks/useTableScroll.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +4 -2
- package/index.d.ts.map +1 -1
- package/index.js +26219 -3528
- package/models/chat.d.ts +10 -38
- package/models/chat.d.ts.map +1 -1
- package/models/custom-visualizer.d.ts +61 -0
- package/models/custom-visualizer.d.ts.map +1 -0
- package/models/deployment-configuration.d.ts +2 -8
- package/models/deployment-configuration.d.ts.map +1 -1
- package/models/tool-menu-item.d.ts +13 -0
- package/models/tool-menu-item.d.ts.map +1 -0
- package/package.json +7 -3
- package/types/mime-type.d.ts +2 -8
- package/types/mime-type.d.ts.map +1 -1
- package/utils/avatar-color.d.ts +1 -4
- package/utils/avatar-color.d.ts.map +1 -1
- package/utils/build-css-vars.d.ts +1 -4
- package/utils/build-css-vars.d.ts.map +1 -1
- package/utils/copy-to-clipboard.d.ts +1 -13
- package/utils/copy-to-clipboard.d.ts.map +1 -1
- package/utils/file-download.d.ts +4 -0
- package/utils/file-download.d.ts.map +1 -1
- package/utils/format-last-used.d.ts +1 -6
- package/utils/format-last-used.d.ts.map +1 -1
- package/utils/initials.d.ts +1 -7
- package/utils/initials.d.ts.map +1 -1
- package/utils/latex.d.ts +11 -0
- package/utils/latex.d.ts.map +1 -0
- package/utils/message-attachment-to-display.d.ts +1 -1
- package/utils/message-attachment-to-display.d.ts.map +1 -1
- package/utils/message.d.ts +1 -7
- package/utils/message.d.ts.map +1 -1
- package/components/Highlight/Highlight.d.ts +0 -26
- package/components/Highlight/Highlight.d.ts.map +0 -1
- package/types/overlay/overlay-protocol.d.ts +0 -308
- package/types/overlay/overlay-protocol.d.ts.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElementSize } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
export interface CopyButtonProps {
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
isCopied: boolean;
|
|
7
|
+
copyLabel: string;
|
|
8
|
+
copiedLabel: string;
|
|
9
|
+
size?: ElementSize;
|
|
10
|
+
/** Accessible label for the button; falls back to `copyLabel` when omitted. */
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
iconSize?: number;
|
|
13
|
+
iconCopy?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const CopyIconButton: FC<CopyButtonProps>;
|
|
16
|
+
export declare const CopyButton: FC<CopyButtonProps>;
|
|
17
|
+
//# sourceMappingURL=CopyButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../../src/components/CopyButton/CopyButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AACD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,eAAe,CA2B9C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAsB1C,CAAC"}
|
|
@@ -31,15 +31,6 @@ export interface DeploymentIconProps {
|
|
|
31
31
|
/** Style overrides. */
|
|
32
32
|
styles?: DeploymentIconStyles;
|
|
33
33
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Renders a deployment icon inside a rounded badge.
|
|
36
|
-
* The `size` prop is the outer badge dimension in pixels.
|
|
37
|
-
* The icon image is inset by ~11 % (matching Figma) to leave a visible backdrop.
|
|
38
|
-
* On image load error, or when `src` is absent, renders `InitialsAvatar` derived from
|
|
39
|
-
* `initialsName` (or the custom `fallback` node when provided).
|
|
40
|
-
* When `src` changes, the previous image stays visible until the new one has
|
|
41
|
-
* finished preloading, avoiding the blank frame a browser shows while an
|
|
42
|
-
* `<img>`'s `src` attribute is swapped in place.
|
|
43
|
-
*/
|
|
34
|
+
/** Renders a deployment icon inside a rounded badge, falling back to initials or a custom node when no image is available. */
|
|
44
35
|
export declare const DeploymentIcon: FC<DeploymentIconProps>;
|
|
45
36
|
//# sourceMappingURL=DeploymentIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeploymentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentIcon/DeploymentIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAM7E,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,4CAA4C;AAC5C,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,uBAAuB;IACvB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED
|
|
1
|
+
{"version":3,"file":"DeploymentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentIcon/DeploymentIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAM7E,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,4CAA4C;AAC5C,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,uBAAuB;IACvB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED,8HAA8H;AAC9H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA8FlD,CAAC"}
|
|
@@ -8,9 +8,6 @@ export interface InitialsAvatarProps {
|
|
|
8
8
|
/** Extra classes applied to the root element (e.g. `'shrink-0'`). */
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* A square badge showing 1–2 initials derived from `name` on a deterministic
|
|
13
|
-
* colour background. Used as the fallback when a deployment has no icon image.
|
|
14
|
-
*/
|
|
11
|
+
/** A square badge showing 1–2 initials derived from `name` on a deterministic colour background. */
|
|
15
12
|
export declare const InitialsAvatar: FC<InitialsAvatarProps>;
|
|
16
13
|
//# sourceMappingURL=InitialsAvatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitialsAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/InitialsAvatar/InitialsAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED
|
|
1
|
+
{"version":3,"file":"InitialsAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/InitialsAvatar/InitialsAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,oGAAoG;AACpG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA0BlD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { CodeBlockTheme } from '../../../types/code-editor';
|
|
3
3
|
/** CSS custom-property overrides for the `MarkdownCodeBlock` component. */
|
|
4
4
|
export interface MarkdownCodeBlockColors {
|
|
@@ -31,6 +31,8 @@ export interface MarkdownCodeBlockProps {
|
|
|
31
31
|
copiedLabel?: string;
|
|
32
32
|
/** Accessible label for the download button. Defaults to `'Download code'`. */
|
|
33
33
|
downloadLabel?: string;
|
|
34
|
+
/** When true, hides the download button while still showing copy. Defaults to `false`. */
|
|
35
|
+
hideDownload?: boolean;
|
|
34
36
|
/** Extra classes applied to the outer container element. */
|
|
35
37
|
containerClassName?: string;
|
|
36
38
|
/** Extra classes applied to the sticky header bar. */
|
|
@@ -39,12 +41,13 @@ export interface MarkdownCodeBlockProps {
|
|
|
39
41
|
codeClassName?: string;
|
|
40
42
|
/** CSS class applied to the language label in the header. Defaults to `'dial-tiny-semi-text uppercase'` plus the module's `.languageLabel` class (`--text-secondary`). */
|
|
41
43
|
languageLabelClassName?: string;
|
|
44
|
+
/** Header text shown in place of `language`, for blocks whose highlighting id is not the name to display (e.g. `bash` highlighted, `cURL` shown). Defaults to the `language` value. */
|
|
45
|
+
title?: string;
|
|
46
|
+
/** Custom content rendered in the header in place of the plain label, e.g. a language/endpoint select. Defaults to the plain label text. */
|
|
47
|
+
titleSlot?: ReactNode;
|
|
42
48
|
/** Color overrides applied as CSS custom properties. */
|
|
43
49
|
colors?: MarkdownCodeBlockColors;
|
|
44
50
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Renders a fenced or multiline code block with a sticky header (language label + copy button),
|
|
47
|
-
* syntax highlighting via Prism, a height-constrained scrollable body, and always-LTR code direction.
|
|
48
|
-
*/
|
|
51
|
+
/** Renders a fenced or multi-line code block with syntax highlighting and a copy button. */
|
|
49
52
|
export declare const MarkdownCodeBlock: FC<MarkdownCodeBlockProps>;
|
|
50
53
|
//# sourceMappingURL=CodeBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAU5D,2EAA2E;AAC3E,MAAM,WAAW,uBAAuB;IACtC,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MarkdownRendererClassNames extends MarkdownTableClassNames {
|
|
|
55
55
|
tableBodyCell?: string;
|
|
56
56
|
/** Extra classes on `<th>` only (applied alongside `tableCell`). */
|
|
57
57
|
tableHeader?: string;
|
|
58
|
-
/** Typography class for `<th>` cells. Defaults to `'
|
|
58
|
+
/** Typography class for `<th>` cells. Defaults to `'dial-tiny-semi-text uppercase tracking-wider'`. Text color is set separately via `colors.tableHeaderText`. */
|
|
59
59
|
tableHeaderFont?: string;
|
|
60
60
|
}
|
|
61
61
|
/** Props for {@link MarkdownRenderer}. */
|
|
@@ -86,10 +86,7 @@ export interface MarkdownRendererProps {
|
|
|
86
86
|
codeBlockTheme?: CodeBlockTheme;
|
|
87
87
|
/** Color overrides applied as CSS custom properties. */
|
|
88
88
|
colors?: MarkdownRendererColors;
|
|
89
|
-
/**
|
|
90
|
-
* Accessible label announced for a table's horizontally scrollable region.
|
|
91
|
-
* Defaults to `'Scrollable table'`.
|
|
92
|
-
*/
|
|
89
|
+
/** Accessible label for a table's horizontally scrollable region. Defaults to `'Scrollable table'`. */
|
|
93
90
|
tableScrollRegionAriaLabel?: string;
|
|
94
91
|
}
|
|
95
92
|
/** CSS custom-property overrides for the `MarkdownRenderer` component. */
|
|
@@ -100,12 +97,24 @@ export interface MarkdownRendererColors {
|
|
|
100
97
|
thinkingSecondary?: string;
|
|
101
98
|
/** Border color for `<hr>` separators and table cell borders. */
|
|
102
99
|
border?: string;
|
|
100
|
+
/** Border color for the `<blockquote>` start border. Defaults to `--stroke-primary`. */
|
|
101
|
+
blockquoteBorder?: string;
|
|
102
|
+
/** Text color for `<blockquote>` content. Defaults to `--text-secondary`. */
|
|
103
|
+
blockquoteText?: string;
|
|
104
|
+
/** Text color for `<a>` links. Defaults to `--text-accent`. */
|
|
105
|
+
linkText?: string;
|
|
106
|
+
/** Focus-visible outline color for `<a>` links. Defaults to `--stroke-focus-black`. */
|
|
107
|
+
linkFocus?: string;
|
|
108
|
+
/** Text color for `<th>` table header cells. Defaults to `--text-secondary`. */
|
|
109
|
+
tableHeaderText?: string;
|
|
110
|
+
/** Text color for `<h6>` headings. Defaults to `--text-secondary`. */
|
|
111
|
+
headingSixText?: string;
|
|
112
|
+
/** Background color for inline `<code>` spans. Defaults to `--bg-layer-raised`. */
|
|
113
|
+
inlineCodeBackground?: string;
|
|
114
|
+
/** Text color for inline `<code>` spans. Defaults to `--text-primary`. */
|
|
115
|
+
inlineCodeText?: string;
|
|
103
116
|
}
|
|
104
|
-
/**
|
|
105
|
-
* Shared component definitions for elements whose rendering is identical across
|
|
106
|
-
* all consumers. These are merged after `classNames`-built components and before
|
|
107
|
-
* explicit `components` overrides, so consumers can still override them.
|
|
108
|
-
*/
|
|
117
|
+
/** Default react-markdown component overrides shared across all consumers. */
|
|
109
118
|
export declare const defaultMarkdownComponents: Components;
|
|
110
119
|
/** Markdown renderer with GFM support. Styling is driven by `classNames`; structural overrides via `components`. */
|
|
111
120
|
export declare const MarkdownRenderer: FC<MarkdownRendererProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAsB,EAAE,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAiB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAsB,EAAE,KAAK,UAAU,EAAgB,MAAM,gBAAgB,CAAC;AAM9E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAMzD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAI/B,0EAA0E;AAC1E,MAAM,WAAW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,MAAM,CAAC;IAC9B,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAqBD,8EAA8E;AAC9E,eAAO,MAAM,yBAAyB,EAAE,UAEvC,CAAC;AAkLF,oHAAoH;AACpH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAkFtD,CAAC"}
|
|
@@ -14,6 +14,12 @@ export interface MarkdownTableColors {
|
|
|
14
14
|
scrollbar?: string;
|
|
15
15
|
/** Edge-fade mask color. */
|
|
16
16
|
fade?: string;
|
|
17
|
+
/** Divider color between rows. Defaults to `--stroke-tertiary`. */
|
|
18
|
+
rowDivider?: string;
|
|
19
|
+
/** Background of even-indexed body rows. Defaults to `--bg-layer-base`. */
|
|
20
|
+
rowZebraBackground?: string;
|
|
21
|
+
/** Background of a body row on hover. Defaults to `--bg-accent-primary-alpha`. */
|
|
22
|
+
rowHoverBackground?: string;
|
|
17
23
|
}
|
|
18
24
|
/** Props for {@link MarkdownTable}. */
|
|
19
25
|
export interface MarkdownTableProps {
|
|
@@ -23,10 +29,7 @@ export interface MarkdownTableProps {
|
|
|
23
29
|
classNames: MarkdownTableClassNames;
|
|
24
30
|
/** Color overrides applied as CSS custom properties. */
|
|
25
31
|
colors?: MarkdownTableColors;
|
|
26
|
-
/**
|
|
27
|
-
* Accessible label announced for the horizontally scrollable region.
|
|
28
|
-
* Defaults to `'Scrollable table'`.
|
|
29
|
-
*/
|
|
32
|
+
/** Accessible label for the horizontally scrollable region. Defaults to `'Scrollable table'`. */
|
|
30
33
|
scrollRegionAriaLabel?: string;
|
|
31
34
|
}
|
|
32
35
|
/** Renders a responsive Markdown table with an end fade while more columns are available. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownTable.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/Table/MarkdownTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAMtD,iEAAiE;AACjE,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"MarkdownTable.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/Table/MarkdownTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAMtD,iEAAiE;AACjE,MAAM,WAAW,uBAAuB;IACtC,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kFAAkF;IAClF,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,sHAAsH;IACtH,QAAQ,EAAE,SAAS,CAAC;IACpB,uCAAuC;IACvC,UAAU,EAAE,uBAAuB,CAAC;IACpC,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,iGAAiG;IACjG,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,6FAA6F;AAC7F,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAkEhD,CAAC"}
|
|
@@ -4,10 +4,6 @@ export interface MarkdownTaskCheckboxProps {
|
|
|
4
4
|
/** Whether the GFM task-list item is checked. Defaults to `false`. */
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
}
|
|
7
|
-
/**
|
|
8
|
-
* Read-only checkbox rendered for GFM task-list items (`- [ ]` / `- [x]`),
|
|
9
|
-
* styled with the design-system {@link DialCheckbox}. The wrapping span keeps the
|
|
10
|
-
* control inline with the surrounding list-item text regardless of the checkbox layout.
|
|
11
|
-
*/
|
|
7
|
+
/** Read-only checkbox for GFM task-list items (`- [ ]` / `- [x]`). */
|
|
12
8
|
export declare const MarkdownTaskCheckbox: FC<MarkdownTaskCheckboxProps>;
|
|
13
9
|
//# sourceMappingURL=MarkdownTaskCheckbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownTaskCheckbox.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAS,MAAM,OAAO,CAAC;AAEvC,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED
|
|
1
|
+
{"version":3,"file":"MarkdownTaskCheckbox.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAS,MAAM,OAAO,CAAC;AAEvC,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAU9D,CAAC"}
|
package/constants/icon.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { DIAL_ICON_SIZE } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
/** Base props for medium-sized Tabler icons (MD size, stroke 1.5, `aria-hidden`). */
|
|
2
3
|
export declare const BASE_MD_ICON_PROPS: {
|
|
3
4
|
size: DIAL_ICON_SIZE;
|
|
4
5
|
stroke: number;
|
|
5
6
|
'aria-hidden': boolean;
|
|
6
7
|
};
|
|
8
|
+
/** Base props for large Tabler icons (LG size, stroke 1.5, `aria-hidden`). */
|
|
7
9
|
export declare const BASE_LG_ICON_PROPS: {
|
|
8
10
|
size: DIAL_ICON_SIZE;
|
|
9
11
|
stroke: number;
|
package/constants/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/constants/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/constants/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,qFAAqF;AACrF,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maps MIME types to their canonical file extension.
|
|
3
|
-
* Covers cases where the subtype differs from the common extension
|
|
4
|
-
* (e.g. `text/markdown` → `md`, `image/jpeg` → `jpg`) and vendor/x- types
|
|
5
|
-
* whose subtype is not a usable extension on its own.
|
|
6
|
-
*/
|
|
1
|
+
/** Maps MIME types to canonical file extensions. */
|
|
7
2
|
export declare const MIME_TYPE_EXT_MAP: Record<string, string>;
|
|
3
|
+
/** MIME type wildcard that matches any content type. */
|
|
8
4
|
export declare const MIME_TYPE_WILDCARD = "*/*";
|
|
5
|
+
/** MIME type prefix shared by all audio content types. */
|
|
9
6
|
export declare const MIME_TYPE_AUDIO_PREFIX = "audio/";
|
|
10
7
|
//# sourceMappingURL=mime-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mime-types.d.ts","sourceRoot":"","sources":["../../src/constants/mime-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mime-types.d.ts","sourceRoot":"","sources":["../../src/constants/mime-types.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsCpD,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,WAAW,CAAC"}
|
package/hooks/useCodeCopy.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manages clipboard copy state for code blocks.
|
|
3
|
-
*
|
|
4
|
-
* Calls `copyToClipboard` synchronously within the user-gesture handler
|
|
5
|
-
* (required by the Clipboard API). `isCopied` is set to `true` only when the
|
|
6
|
-
* write succeeds; it stays `true` for `resetDelay` milliseconds (default 2 s)
|
|
7
|
-
* then resets to `false`. The timeout is cleared on unmount to prevent
|
|
8
|
-
* setState-on-unmount.
|
|
9
|
-
*/
|
|
1
|
+
/** Returns `isCopied` state and a `copy` callback; `isCopied` resets to `false` after `resetDelay` ms. */
|
|
10
2
|
export declare const useCodeCopy: (value: string, resetDelay?: number) => {
|
|
11
3
|
isCopied: boolean;
|
|
12
4
|
copy: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCodeCopy.d.ts","sourceRoot":"","sources":["../../src/hooks/useCodeCopy.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"useCodeCopy.d.ts","sourceRoot":"","sources":["../../src/hooks/useCodeCopy.ts"],"names":[],"mappings":"AAKA,0GAA0G;AAC1G,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,mBAAmC,KAClC;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,IAAI,CAAA;CA0BvC,CAAC"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
+
/** Options for `useCollapsedText`. */
|
|
1
2
|
export interface UseCollapsedTextOptions {
|
|
2
3
|
/** Content identity used to reset long text to the collapsed state when it changes. */
|
|
3
4
|
text: string;
|
|
4
5
|
/** Maximum number of text lines shown while collapsed. */
|
|
5
6
|
collapsedLineCount: number;
|
|
6
7
|
}
|
|
8
|
+
/** Return value of `useCollapsedText`. */
|
|
7
9
|
export interface UseCollapsedTextResult<T extends HTMLElement> {
|
|
8
|
-
/**
|
|
9
|
-
* Ref callback attached to the text element whose rendered height should
|
|
10
|
-
* be measured. Using a callback (rather than a `RefObject`) ensures
|
|
11
|
-
* measurement re-runs as soon as the node mounts, even if the element is
|
|
12
|
-
* hidden behind a conditional (e.g. a loading skeleton) when `text` first
|
|
13
|
-
* becomes available.
|
|
14
|
-
*/
|
|
10
|
+
/** Ref callback attached to the text element to measure its rendered height. */
|
|
15
11
|
textRef: (node: T | null) => void;
|
|
16
12
|
/** Whether the full text is currently hidden behind the collapsed viewport. */
|
|
17
13
|
isTextCollapsed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCollapsedText.d.ts","sourceRoot":"","sources":["../../src/hooks/useCollapsedText.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACtC,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,WAAW;IAC3D
|
|
1
|
+
{"version":3,"file":"useCollapsedText.d.ts","sourceRoot":"","sources":["../../src/hooks/useCollapsedText.ts"],"names":[],"mappings":"AAKA,sCAAsC;AACtC,MAAM,WAAW,uBAAuB;IACtC,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,0CAA0C;AAC1C,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,WAAW;IAC3D,gFAAgF;IAChF,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IAClC,+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,CAAC,SAAS,WAAW,GAAG,WAAW,EAAE,+BAGnE,uBAAuB,KAAG,sBAAsB,CAAC,CAAC,CAmEpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableScroll.d.ts","sourceRoot":"","sources":["../../src/hooks/useTableScroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKvD,MAAM,WAAW,oBAAoB;IACnC,mEAAmE;IACnE,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACrD,mEAAmE;IACnE,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,8EAA8E;IAC9E,qBAAqB,EAAE,OAAO,CAAC;IAC/B,4EAA4E;IAC5E,mBAAmB,EAAE,OAAO,CAAC;IAC7B,uEAAuE;IACvE,YAAY,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CAC9C;AAED,yFAAyF;AACzF,eAAO,MAAM,cAAc,QAAO,oBAqDjC,CAAC"}
|
|
1
|
+
{"version":3,"file":"useTableScroll.d.ts","sourceRoot":"","sources":["../../src/hooks/useTableScroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKvD,wCAAwC;AACxC,MAAM,WAAW,oBAAoB;IACnC,mEAAmE;IACnE,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACrD,mEAAmE;IACnE,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,8EAA8E;IAC9E,qBAAqB,EAAE,OAAO,CAAC;IAC/B,4EAA4E;IAC5E,mBAAmB,EAAE,OAAO,CAAC;IAC7B,uEAAuE;IACvE,YAAY,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CAC9C;AAED,yFAAyF;AACzF,eAAO,MAAM,cAAc,QAAO,oBAqDjC,CAAC"}
|