@epam/ai-dial-chat-shared 1.1.0-dev.44 → 1.1.0-dev.441
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.js +33 -0
- package/components/DeploymentIcon/DeploymentIcon.js +62 -0
- package/components/DeploymentIcon/DeploymentIcon.module.scss.js +3 -0
- package/components/EntityHeader/EntityHeader.js +47 -0
- package/components/EntityTypeLabel/EntityTypeLabel.js +10 -0
- package/components/FeaturedChip/FeaturedChip.js +17 -0
- package/components/InitialsAvatar/InitialsAvatar.js +29 -0
- package/components/InitialsAvatar/InitialsAvatar.module.scss.js +6 -0
- package/components/ItemHeader/ItemHeader.js +35 -0
- package/components/ItemHeader/ItemHeader.module.scss.js +6 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +104 -0
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +10 -0
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.js +69 -0
- package/components/MarkdownRenderer/MDMessageViewer.js +22 -0
- package/components/MarkdownRenderer/MarkdownRenderer.js +280 -0
- package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +11 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +24 -0
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +6 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.js +77 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -0
- package/components/MarkdownRenderer/Table/TableHeader.js +30 -0
- package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -0
- package/components/MarkdownRenderer/Table/table-serialization.js +6 -0
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.js +66 -0
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.js +12 -0
- package/components/MarkdownRenderer/markdown-class-names.js +23 -0
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js +18 -0
- package/components/PanelEmptyState/PanelEmptyState.js +24 -0
- package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -0
- package/components/ResourceSummary/ResourceSummary.js +34 -0
- package/components/ResourceSummary/ResourceSummary.module.scss.js +6 -0
- package/constants/dial.js +4 -0
- package/constants/entity-colors.js +17 -0
- package/constants/icon.js +13 -0
- package/constants/markdown-editor.js +4 -0
- package/constants/mime-types.js +99 -0
- package/constants/resizable-fields.js +4 -0
- package/constants/select-list.js +4 -0
- package/constants/tag-input.js +4 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +299 -0
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +93 -0
- package/file-manager/OperationLoaderModal/OperationLoaderModal.js +36 -0
- package/file-manager/UploadProgressModal/UploadProgressModal.js +56 -0
- package/file-manager/file-manager-variant.js +8 -0
- package/file-manager/path.js +7 -0
- package/file-manager/upload-batch.js +6 -0
- package/file-manager/useGridEditingScroll/useGridEditingScroll.js +45 -0
- package/file-manager.d.ts +461 -0
- package/file-manager.js +3 -0
- package/hooks/useAvailableHeightCap.js +36 -0
- package/hooks/useCodeCopy.js +20 -0
- package/hooks/useCollapsedText.js +38 -0
- package/hooks/useHorizontalOverflow.js +25 -0
- package/hooks/useIsMobile.js +12 -0
- package/hooks/useStreamedMarkdownContent.js +32 -0
- package/index.css +1 -1
- package/index.d.ts +2517 -41
- package/index.js +64 -26490
- package/markdown.d.ts +401 -0
- package/markdown.js +11 -0
- package/models/chat.js +14 -0
- package/models/conversation-classification.js +6 -0
- package/models/conversation-transfer.js +14 -0
- package/models/deployment-features.js +6 -0
- package/package.json +73 -5
- package/types/attachment.js +8 -0
- package/types/code-editor.js +6 -0
- package/types/entity-type.js +6 -0
- package/types/mime-type.js +8 -0
- package/utils/avatar-color.js +37 -0
- package/utils/build-css-vars.js +8 -0
- package/utils/copy-to-clipboard.js +69 -0
- package/utils/file-download.js +79 -0
- package/utils/format-file-size.js +4 -0
- package/utils/format-last-used.js +20 -0
- package/utils/format-price.js +18 -0
- package/utils/generate-uuid.js +7 -0
- package/utils/initials.js +7 -0
- package/utils/is-audio-transcription-supported.js +5 -0
- package/utils/latex.js +34 -0
- package/utils/merge-class.js +8 -0
- package/utils/message-attachment-to-display.js +31 -0
- package/utils/message.js +5 -0
- package/utils/mime-type.js +73 -0
- package/utils/prompt-variables.js +42 -0
- package/utils/string-utils.js +14 -0
- package/components/DeploymentIcon/DeploymentIcon.d.ts +0 -45
- package/components/DeploymentIcon/DeploymentIcon.d.ts.map +0 -1
- package/components/Highlight/Highlight.d.ts +0 -26
- package/components/Highlight/Highlight.d.ts.map +0 -1
- package/components/InitialsAvatar/InitialsAvatar.d.ts +0 -16
- package/components/InitialsAvatar/InitialsAvatar.d.ts.map +0 -1
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +0 -50
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +0 -1
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +0 -7
- package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +0 -1
- package/components/MarkdownRenderer/MDMessageViewer.d.ts +0 -31
- package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +0 -1
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts +0 -112
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +0 -34
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +0 -1
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +0 -13
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +0 -1
- package/components/MarkdownRenderer/markdown-class-names.d.ts +0 -4
- package/components/MarkdownRenderer/markdown-class-names.d.ts.map +0 -1
- package/components/PanelEmptyState/PanelEmptyState.d.ts +0 -20
- package/components/PanelEmptyState/PanelEmptyState.d.ts.map +0 -1
- package/constants/dial.d.ts +0 -3
- package/constants/dial.d.ts.map +0 -1
- package/constants/icon.d.ts +0 -12
- package/constants/icon.d.ts.map +0 -1
- package/constants/mime-types.d.ts +0 -10
- package/constants/mime-types.d.ts.map +0 -1
- package/hooks/useCodeCopy.d.ts +0 -14
- package/hooks/useCodeCopy.d.ts.map +0 -1
- package/hooks/useCollapsedText.d.ts +0 -31
- package/hooks/useCollapsedText.d.ts.map +0 -1
- package/hooks/useIsMobile.d.ts +0 -3
- package/hooks/useIsMobile.d.ts.map +0 -1
- package/hooks/useStreamedMarkdownContent.d.ts +0 -3
- package/hooks/useStreamedMarkdownContent.d.ts.map +0 -1
- package/hooks/useTableScroll.d.ts +0 -16
- package/hooks/useTableScroll.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/models/annotation.d.ts +0 -78
- package/models/annotation.d.ts.map +0 -1
- package/models/auth.d.ts +0 -26
- package/models/auth.d.ts.map +0 -1
- package/models/chat.d.ts +0 -304
- package/models/chat.d.ts.map +0 -1
- package/models/deployment-configuration.d.ts +0 -61
- package/models/deployment-configuration.d.ts.map +0 -1
- package/models/deployment-features.d.ts +0 -17
- package/models/deployment-features.d.ts.map +0 -1
- package/models/deployment.d.ts +0 -31
- package/models/deployment.d.ts.map +0 -1
- package/models/dial-model.d.ts +0 -19
- package/models/dial-model.d.ts.map +0 -1
- package/models/import-export.d.ts +0 -23
- package/models/import-export.d.ts.map +0 -1
- package/models/theme.d.ts +0 -36
- package/models/theme.d.ts.map +0 -1
- package/types/attachment.d.ts +0 -23
- package/types/attachment.d.ts.map +0 -1
- package/types/code-editor.d.ts +0 -8
- package/types/code-editor.d.ts.map +0 -1
- package/types/mime-type.d.ts +0 -59
- package/types/mime-type.d.ts.map +0 -1
- package/types/overlay/overlay-protocol.d.ts +0 -377
- package/types/overlay/overlay-protocol.d.ts.map +0 -1
- package/utils/avatar-color.d.ts +0 -13
- package/utils/avatar-color.d.ts.map +0 -1
- package/utils/build-css-vars.d.ts +0 -7
- package/utils/build-css-vars.d.ts.map +0 -1
- package/utils/copy-to-clipboard.d.ts +0 -15
- package/utils/copy-to-clipboard.d.ts.map +0 -1
- package/utils/file-download.d.ts +0 -9
- package/utils/file-download.d.ts.map +0 -1
- package/utils/format-file-size.d.ts +0 -3
- package/utils/format-file-size.d.ts.map +0 -1
- package/utils/format-last-used.d.ts +0 -8
- package/utils/format-last-used.d.ts.map +0 -1
- package/utils/initials.d.ts +0 -9
- package/utils/initials.d.ts.map +0 -1
- package/utils/is-audio-transcription-supported.d.ts +0 -3
- package/utils/is-audio-transcription-supported.d.ts.map +0 -1
- package/utils/merge-class.d.ts +0 -4
- package/utils/merge-class.d.ts.map +0 -1
- package/utils/message-attachment-to-display.d.ts +0 -22
- package/utils/message-attachment-to-display.d.ts.map +0 -1
- package/utils/message.d.ts +0 -10
- package/utils/message.d.ts.map +0 -1
- package/utils/string-utils.d.ts +0 -5
- package/utils/string-utils.d.ts.map +0 -1
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Components } from 'react-markdown';
|
|
3
|
-
import { CodeBlockTheme } from '../../types/code-editor';
|
|
4
|
-
import { MarkdownTableClassNames } from './Table/MarkdownTable';
|
|
5
|
-
/** Per-element className overrides passed to {@link MarkdownRenderer}. */
|
|
6
|
-
export interface MarkdownRendererClassNames extends MarkdownTableClassNames {
|
|
7
|
-
/** Class on `<h1>`. */
|
|
8
|
-
h1?: string;
|
|
9
|
-
/** Class on `<h2>`. */
|
|
10
|
-
h2?: string;
|
|
11
|
-
/** Class on `<h3>`. */
|
|
12
|
-
h3?: string;
|
|
13
|
-
/** Class on `<h4>`. */
|
|
14
|
-
h4?: string;
|
|
15
|
-
/** Class on `<h5>`. */
|
|
16
|
-
h5?: string;
|
|
17
|
-
/** Class on `<h6>`. */
|
|
18
|
-
h6?: string;
|
|
19
|
-
/** Classes on `<p>` elements. */
|
|
20
|
-
p?: string;
|
|
21
|
-
/** Extra classes on `<ul>` (base: `list-disc ps-5`). */
|
|
22
|
-
ul?: string;
|
|
23
|
-
/** Extra classes on `<ol>` (base: `list-decimal ps-5`). */
|
|
24
|
-
ol?: string;
|
|
25
|
-
/** Typography class for `<strong>`. Defaults to `'font-semibold'`. */
|
|
26
|
-
strong?: string;
|
|
27
|
-
/** Typography class for `<em>`. Defaults to `'italic'`. */
|
|
28
|
-
em?: string;
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated The `<pre>` wrapper is now a fragment passthrough; this class no longer applies
|
|
31
|
-
* to fenced code blocks. Migrate to `codeBlockContainer` for the block container.
|
|
32
|
-
*/
|
|
33
|
-
codeBlock?: string;
|
|
34
|
-
/** Extra classes on the {@link MarkdownCodeBlock} outer container. */
|
|
35
|
-
codeBlockContainer?: string;
|
|
36
|
-
/** Extra classes on the {@link MarkdownCodeBlock} header bar. */
|
|
37
|
-
codeBlockHeader?: string;
|
|
38
|
-
/** Typography class for the `<code>` element inside a code block. Defaults to `'dial-code-text'`. */
|
|
39
|
-
codeFont?: string;
|
|
40
|
-
/** Extra classes on inline `<code>` (base: `rounded px-1 py-0.5`). */
|
|
41
|
-
codeInline?: string;
|
|
42
|
-
/** Typography class for inline `<code>`. Defaults to `'dial-code-text'`. */
|
|
43
|
-
codeInlineFont?: string;
|
|
44
|
-
/** Extra classes on `<blockquote>` (base uses a logical start border and padding). */
|
|
45
|
-
blockquote?: string;
|
|
46
|
-
/** Extra classes on `<a>` (base uses the accent text color and an offset underline). */
|
|
47
|
-
link?: string;
|
|
48
|
-
/** Extra classes on `<hr>` separators. */
|
|
49
|
-
hr?: string;
|
|
50
|
-
/** Extra classes on deleted text rendered by GFM. */
|
|
51
|
-
del?: string;
|
|
52
|
-
/** Extra classes on `<th>` and `<td>` (base includes borders, spacing, and text wrapping). */
|
|
53
|
-
tableCell?: string;
|
|
54
|
-
/** Extra classes on `<td>` only (applied before `tableCell`, e.g. a body-cell background). */
|
|
55
|
-
tableBodyCell?: string;
|
|
56
|
-
/** Extra classes on `<th>` only (applied alongside `tableCell`). */
|
|
57
|
-
tableHeader?: string;
|
|
58
|
-
/** Typography class for `<th>` cells. Defaults to `'font-semibold'`. */
|
|
59
|
-
tableHeaderFont?: string;
|
|
60
|
-
}
|
|
61
|
-
/** Props for {@link MarkdownRenderer}. */
|
|
62
|
-
export interface MarkdownRendererProps {
|
|
63
|
-
/** Raw markdown string to render. */
|
|
64
|
-
content: string;
|
|
65
|
-
/** When true, appended content is revealed gradually for smoother streaming updates. */
|
|
66
|
-
isStreaming?: boolean;
|
|
67
|
-
/** Reveal speed used while `isStreaming` is true. Defaults to 120 characters per second. */
|
|
68
|
-
streamCharactersPerSecond?: number;
|
|
69
|
-
/** Per-element styling classes. Merged with structural base classes inside the component. Defaults to no overrides (`{}`). */
|
|
70
|
-
classNames?: MarkdownRendererClassNames;
|
|
71
|
-
/**
|
|
72
|
-
* Full component overrides merged on top of the built-in map.
|
|
73
|
-
* Use for elements not covered by `classNames`.
|
|
74
|
-
*/
|
|
75
|
-
components?: Components;
|
|
76
|
-
/**
|
|
77
|
-
* Label shown with a shimmer animation while `isStreaming` is true and no content has arrived yet.
|
|
78
|
-
* Defaults to `'Thinking'`. Pass a translated string from the consuming app.
|
|
79
|
-
*/
|
|
80
|
-
thinkingLabel?: string;
|
|
81
|
-
/** Accessible label for the copy button in code blocks. Defaults to `'Copy code'`. */
|
|
82
|
-
codeBlockCopyLabel?: string;
|
|
83
|
-
/** Accessible label for the copy button after copying. Defaults to `'Copied!'`. */
|
|
84
|
-
codeBlockCopiedLabel?: string;
|
|
85
|
-
/** Syntax highlight color theme for code blocks and tables. Defaults to `'dark'`. */
|
|
86
|
-
codeBlockTheme?: CodeBlockTheme;
|
|
87
|
-
/** Color overrides applied as CSS custom properties. */
|
|
88
|
-
colors?: MarkdownRendererColors;
|
|
89
|
-
/**
|
|
90
|
-
* Accessible label announced for a table's horizontally scrollable region.
|
|
91
|
-
* Defaults to `'Scrollable table'`.
|
|
92
|
-
*/
|
|
93
|
-
tableScrollRegionAriaLabel?: string;
|
|
94
|
-
}
|
|
95
|
-
/** CSS custom-property overrides for the `MarkdownRenderer` component. */
|
|
96
|
-
export interface MarkdownRendererColors {
|
|
97
|
-
/** Primary color of the "thinking" shimmer gradient. */
|
|
98
|
-
thinkingPrimary?: string;
|
|
99
|
-
/** Secondary color of the "thinking" shimmer gradient. */
|
|
100
|
-
thinkingSecondary?: string;
|
|
101
|
-
/** Border color for `<hr>` separators and table cell borders. */
|
|
102
|
-
border?: string;
|
|
103
|
-
}
|
|
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
|
-
*/
|
|
109
|
-
export declare const defaultMarkdownComponents: Components;
|
|
110
|
-
/** Markdown renderer with GFM support. Styling is driven by `classNames`; structural overrides via `components`. */
|
|
111
|
-
export declare const MarkdownRenderer: FC<MarkdownRendererProps>;
|
|
112
|
-
//# sourceMappingURL=MarkdownRenderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAKzD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAI/B,0EAA0E;AAC1E,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iCAAiC;IACjC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iEAAiE;IACjE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qGAAqG;IACrG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4FAA4F;IAC5F,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,8HAA8H;IAC9H,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qFAAqF;IACrF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC;;;OAGG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED,0EAA0E;AAC1E,MAAM,WAAW,sBAAsB;IACrC,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,UAEvC,CAAC;AAyKF,oHAAoH;AACpH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAqEtD,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
/** Per-element className overrides for {@link MarkdownTable}. */
|
|
3
|
-
export interface MarkdownTableClassNames {
|
|
4
|
-
/** Extra classes on the outer table wrapper. */
|
|
5
|
-
tableWrapper?: string;
|
|
6
|
-
/** Typography class for the table. Defaults to `'text-sm'`. */
|
|
7
|
-
tableFont?: string;
|
|
8
|
-
}
|
|
9
|
-
/** CSS custom-property overrides for the `MarkdownTable` component. */
|
|
10
|
-
export interface MarkdownTableColors {
|
|
11
|
-
/** Scroll container border color. */
|
|
12
|
-
border?: string;
|
|
13
|
-
/** Scrollbar thumb/track color. */
|
|
14
|
-
scrollbar?: string;
|
|
15
|
-
/** Edge-fade mask color. */
|
|
16
|
-
fade?: string;
|
|
17
|
-
}
|
|
18
|
-
/** Props for {@link MarkdownTable}. */
|
|
19
|
-
export interface MarkdownTableProps {
|
|
20
|
-
/** Table body/children rendered inside the scrollable wrapper (typically `<thead>`/`<tbody>` from react-markdown). */
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
/** Per-element className overrides. */
|
|
23
|
-
classNames: MarkdownTableClassNames;
|
|
24
|
-
/** Color overrides applied as CSS custom properties. */
|
|
25
|
-
colors?: MarkdownTableColors;
|
|
26
|
-
/**
|
|
27
|
-
* Accessible label announced for the horizontally scrollable region.
|
|
28
|
-
* Defaults to `'Scrollable table'`.
|
|
29
|
-
*/
|
|
30
|
-
scrollRegionAriaLabel?: string;
|
|
31
|
-
}
|
|
32
|
-
/** Renders a responsive Markdown table with an end fade while more columns are available. */
|
|
33
|
-
export declare const MarkdownTable: FC<MarkdownTableProps>;
|
|
34
|
-
//# sourceMappingURL=MarkdownTable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;CACf;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;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,6FAA6F;AAC7F,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA+DhD,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
/** Props for {@link MarkdownTaskCheckbox}. */
|
|
3
|
-
export interface MarkdownTaskCheckboxProps {
|
|
4
|
-
/** Whether the GFM task-list item is checked. Defaults to `false`. */
|
|
5
|
-
checked?: boolean;
|
|
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
|
-
*/
|
|
12
|
-
export declare const MarkdownTaskCheckbox: FC<MarkdownTaskCheckboxProps>;
|
|
13
|
-
//# sourceMappingURL=MarkdownTaskCheckbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAU9D,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { MarkdownRendererClassNames } from './MarkdownRenderer';
|
|
2
|
-
/** Default typography classNames for rendering markdown with full visual hierarchy. */
|
|
3
|
-
export declare const DEFAULT_MARKDOWN_CLASS_NAMES: MarkdownRendererClassNames;
|
|
4
|
-
//# sourceMappingURL=markdown-class-names.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-class-names.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/markdown-class-names.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAErE,uFAAuF;AACvF,eAAO,MAAM,4BAA4B,EAAE,0BAe1C,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
/** CSS custom-property overrides for the `PanelEmptyState` component. */
|
|
3
|
-
export interface PanelEmptyStateColors {
|
|
4
|
-
/** Icon color. */
|
|
5
|
-
icon?: string;
|
|
6
|
-
/** Label text color. */
|
|
7
|
-
label?: string;
|
|
8
|
-
}
|
|
9
|
-
/** Props for `PanelEmptyState`. */
|
|
10
|
-
export interface PanelEmptyStateProps {
|
|
11
|
-
/** Icon element rendered above the label. */
|
|
12
|
-
icon?: ReactNode;
|
|
13
|
-
/** Primary message shown beneath the icon. */
|
|
14
|
-
label: string;
|
|
15
|
-
/** Color overrides applied as CSS custom properties. */
|
|
16
|
-
colors?: PanelEmptyStateColors;
|
|
17
|
-
}
|
|
18
|
-
/** Centered empty-state block for use inside a sidebar panel body. */
|
|
19
|
-
export declare const PanelEmptyState: FC<PanelEmptyStateProps>;
|
|
20
|
-
//# sourceMappingURL=PanelEmptyState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PanelEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/PanelEmptyState/PanelEmptyState.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAItD,yEAAyE;AACzE,MAAM,WAAW,qBAAqB;IACpC,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,mCAAmC;AACnC,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED,sEAAsE;AACtE,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAiBpD,CAAC"}
|
package/constants/dial.d.ts
DELETED
package/constants/dial.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dial.d.ts","sourceRoot":"","sources":["../../src/constants/dial.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,eAAO,MAAM,WAAW,iBAAiB,CAAC"}
|
package/constants/icon.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DIAL_ICON_SIZE } from '@epam/ai-dial-ui-kit';
|
|
2
|
-
export declare const BASE_MD_ICON_PROPS: {
|
|
3
|
-
size: DIAL_ICON_SIZE;
|
|
4
|
-
stroke: number;
|
|
5
|
-
'aria-hidden': boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const BASE_LG_ICON_PROPS: {
|
|
8
|
-
size: DIAL_ICON_SIZE;
|
|
9
|
-
stroke: number;
|
|
10
|
-
'aria-hidden': boolean;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=icon.d.ts.map
|
package/constants/icon.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
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
|
-
*/
|
|
7
|
-
export declare const MIME_TYPE_EXT_MAP: Record<string, string>;
|
|
8
|
-
export declare const MIME_TYPE_WILDCARD = "*/*";
|
|
9
|
-
export declare const MIME_TYPE_AUDIO_PREFIX = "audio/";
|
|
10
|
-
//# sourceMappingURL=mime-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mime-types.d.ts","sourceRoot":"","sources":["../../src/constants/mime-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsCpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,eAAO,MAAM,sBAAsB,WAAW,CAAC"}
|
package/hooks/useCodeCopy.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
*/
|
|
10
|
-
export declare const useCodeCopy: (value: string, resetDelay?: number) => {
|
|
11
|
-
isCopied: boolean;
|
|
12
|
-
copy: () => void;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=useCodeCopy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCodeCopy.d.ts","sourceRoot":"","sources":["../../src/hooks/useCodeCopy.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,mBAAmC,KAClC;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,IAAI,CAAA;CA0BvC,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface UseCollapsedTextOptions {
|
|
2
|
-
/** Content identity used to reset long text to the collapsed state when it changes. */
|
|
3
|
-
text: string;
|
|
4
|
-
/** Maximum number of text lines shown while collapsed. */
|
|
5
|
-
collapsedLineCount: number;
|
|
6
|
-
}
|
|
7
|
-
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
|
-
*/
|
|
15
|
-
textRef: (node: T | null) => void;
|
|
16
|
-
/** Whether the full text is currently hidden behind the collapsed viewport. */
|
|
17
|
-
isTextCollapsed: boolean;
|
|
18
|
-
/** Whether the measured text is taller than the collapsed viewport. */
|
|
19
|
-
isOverflowing: boolean;
|
|
20
|
-
/** Current collapsed viewport height in pixels. */
|
|
21
|
-
collapsedMaxHeight: number;
|
|
22
|
-
/** Full rendered text height in pixels. */
|
|
23
|
-
expandedMaxHeight: number;
|
|
24
|
-
/** Whether the expanded/collapsed control is currently in the collapsed state. */
|
|
25
|
-
isCollapsed: boolean;
|
|
26
|
-
/** Toggle between expanded and collapsed states. */
|
|
27
|
-
toggleCollapsed: () => void;
|
|
28
|
-
}
|
|
29
|
-
/** Measures rendered text and owns the expand/collapse state for long plain-text content. */
|
|
30
|
-
export declare const useCollapsedText: <T extends HTMLElement = HTMLElement>({ text, collapsedLineCount, }: UseCollapsedTextOptions) => UseCollapsedTextResult<T>;
|
|
31
|
-
//# sourceMappingURL=useCollapsedText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;;;OAMG;IACH,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"}
|
package/hooks/useIsMobile.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsMobile.ts"],"names":[],"mappings":"AASA,iGAAiG;AACjG,eAAO,MAAM,WAAW,QAAO,OAgB9B,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/** Gradually reveals appended markdown content while streaming, syncing instantly on completion or when a code block/table is mid-stream. */
|
|
2
|
-
export declare const useStreamedMarkdownContent: (content: string, isStreaming?: boolean, charactersPerSecond?: number) => string;
|
|
3
|
-
//# sourceMappingURL=useStreamedMarkdownContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useStreamedMarkdownContent.d.ts","sourceRoot":"","sources":["../../src/hooks/useStreamedMarkdownContent.ts"],"names":[],"mappings":"AA6CA,6IAA6I;AAC7I,eAAO,MAAM,0BAA0B,GACrC,SAAS,MAAM,EACf,qBAAmB,EACnB,4BAA0D,WAsF3D,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RefObject, UIEventHandler } from 'react';
|
|
2
|
-
export interface UseTableScrollResult {
|
|
3
|
-
/** Ref attached to the horizontally scrollable table container. */
|
|
4
|
-
scrollContainerRef: RefObject<HTMLDivElement | null>;
|
|
5
|
-
/** Ref attached to the table whose visible bounds are measured. */
|
|
6
|
-
tableRef: RefObject<HTMLTableElement | null>;
|
|
7
|
-
/** Whether table content remains beyond the logical start of the viewport. */
|
|
8
|
-
hasContentBeyondStart: boolean;
|
|
9
|
-
/** Whether table content remains beyond the logical end of the viewport. */
|
|
10
|
-
hasContentBeyondEnd: boolean;
|
|
11
|
-
/** Re-measures the visible table bounds after horizontal scrolling. */
|
|
12
|
-
handleScroll: UIEventHandler<HTMLDivElement>;
|
|
13
|
-
}
|
|
14
|
-
/** Tracks whether a horizontally scrollable table has content beyond its logical end. */
|
|
15
|
-
export declare const useTableScroll: () => UseTableScrollResult;
|
|
16
|
-
//# sourceMappingURL=useTableScroll.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,mDAAmD,CAAC;AAClE,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC"}
|
package/models/annotation.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/** Selector that targets a character range in a text string. All indices are inclusive. */
|
|
2
|
-
export interface TextCharacterRangeSelector {
|
|
3
|
-
/** Discriminator — always `'text_character_range'`. */
|
|
4
|
-
type: 'text_character_range';
|
|
5
|
-
/** Zero-based start index (inclusive). */
|
|
6
|
-
start: number;
|
|
7
|
-
/** Zero-based end index (inclusive). */
|
|
8
|
-
end: number;
|
|
9
|
-
}
|
|
10
|
-
/** Selector that targets an axis-aligned bounding box on a specific PDF page. */
|
|
11
|
-
export interface PdfBBoxSelector {
|
|
12
|
-
/** Discriminator — always `'pdf_bbox'`. */
|
|
13
|
-
type: 'pdf_bbox';
|
|
14
|
-
/** 1-based PDF page number. */
|
|
15
|
-
page: number;
|
|
16
|
-
/** Left edge coordinate. */
|
|
17
|
-
x1: number;
|
|
18
|
-
/** Top edge coordinate. */
|
|
19
|
-
y1: number;
|
|
20
|
-
/** Right edge coordinate. */
|
|
21
|
-
x2: number;
|
|
22
|
-
/** Bottom edge coordinate. */
|
|
23
|
-
y2: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Discriminated union of all recognised annotation selector shapes.
|
|
27
|
-
* Unknown selector types are preserved as an open record to allow forward-compatibility.
|
|
28
|
-
*/
|
|
29
|
-
export type AnnotationSelector = TextCharacterRangeSelector | PdfBBoxSelector | {
|
|
30
|
-
type: string;
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
};
|
|
33
|
-
/** Identifies the part of the message (or a related resource) that the annotation refers to. */
|
|
34
|
-
export interface AnnotationTarget {
|
|
35
|
-
/** Source resource being targeted. `null` or absent means the first content part of the response. */
|
|
36
|
-
source?: unknown;
|
|
37
|
-
/** Character-range or document-region selector within the targeted source. */
|
|
38
|
-
selector?: AnnotationSelector;
|
|
39
|
-
}
|
|
40
|
-
/** A file attachment referenced by a citation — same shape as `MessageAttachment` but scoped to annotations. */
|
|
41
|
-
export interface AttachmentResource {
|
|
42
|
-
/** MIME type of the attached file (e.g. `'application/pdf'`). */
|
|
43
|
-
type: string;
|
|
44
|
-
/** Remote URL pointing to the file content. */
|
|
45
|
-
url: string;
|
|
46
|
-
/** Human-readable display name for the file. Used in citation markers. */
|
|
47
|
-
title?: string;
|
|
48
|
-
}
|
|
49
|
-
/** Identifies the cited document attached to the annotation. */
|
|
50
|
-
export interface AnnotationSource {
|
|
51
|
-
/** Always `'attachment'` for file-based sources. */
|
|
52
|
-
type: 'attachment';
|
|
53
|
-
/** The cited file — auto-shared by DIAL Core so the recipient can access it. */
|
|
54
|
-
attachment: AttachmentResource;
|
|
55
|
-
}
|
|
56
|
-
/** Payload of the annotation: the cited text excerpt, its source document, and optional styling hints. */
|
|
57
|
-
export interface AnnotationBody {
|
|
58
|
-
/** Human-readable title of the cited section or document. */
|
|
59
|
-
title?: string;
|
|
60
|
-
/** The literal text excerpt being cited. */
|
|
61
|
-
quote?: string;
|
|
62
|
-
/** The cited source document (present when the annotation references a file). */
|
|
63
|
-
source?: AnnotationSource;
|
|
64
|
-
/** Selectors pointing to the cited region within the source document. */
|
|
65
|
-
selector?: AnnotationSelector | AnnotationSelector[];
|
|
66
|
-
/** Client-defined styling hints (e.g. highlight color). Treated as open-ended; unknown keys are preserved. */
|
|
67
|
-
configuration?: Record<string, unknown>;
|
|
68
|
-
}
|
|
69
|
-
/** A single annotation attached to an assistant message, optionally citing a source document. */
|
|
70
|
-
export interface Annotation {
|
|
71
|
-
/** Zero-based position in the annotation list; used to merge streaming delta updates. */
|
|
72
|
-
index?: number;
|
|
73
|
-
/** Which part of the message text (or a request resource) is annotated. */
|
|
74
|
-
target?: AnnotationTarget;
|
|
75
|
-
/** The annotation payload: quoted text, source document, and optional styling. */
|
|
76
|
-
body?: AnnotationBody;
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=annotation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/models/annotation.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,MAAM,WAAW,0BAA0B;IACzC,uDAAuD;IACvD,IAAI,EAAE,sBAAsB,CAAC;IAC7B,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,IAAI,EAAE,UAAU,CAAC;IACjB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B,0BAA0B,GAC1B,eAAe,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAE7C,gGAAgG;AAChG,MAAM,WAAW,gBAAgB;IAC/B,qGAAqG;IACrG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CAC/B;AAED,gHAAgH;AAChH,MAAM,WAAW,kBAAkB;IACjC,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gEAAgE;AAChE,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,IAAI,EAAE,YAAY,CAAC;IACnB,gFAAgF;IAChF,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED,0GAA0G;AAC1G,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAC;IACrD,8GAA8G;IAC9G,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,iGAAiG;AACjG,MAAM,WAAW,UAAU;IACzB,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,kFAAkF;IAClF,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB"}
|
package/models/auth.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** Authenticated user's profile as returned by the identity provider. */
|
|
2
|
-
export interface UserProfile {
|
|
3
|
-
/** Subject identifier — unique, stable ID for the user within the provider. */
|
|
4
|
-
sub: string;
|
|
5
|
-
/** ID of the identity provider that authenticated the user. */
|
|
6
|
-
providerId: string;
|
|
7
|
-
/**
|
|
8
|
-
* Allowlisted claims, keyed by claim name. A dot-notation provider
|
|
9
|
-
* `rolesClaim` (e.g. `"realm_access.roles"`) is stored under one flat key
|
|
10
|
-
* equal to that literal string, never as a nested object — look it up
|
|
11
|
-
* with `claims[rolesClaim]`, not a nested path.
|
|
12
|
-
*/
|
|
13
|
-
claims: Record<string, unknown>;
|
|
14
|
-
/** DIAL Core storage bucket for the authenticated user. Empty string when the bucket has not been resolved yet. */
|
|
15
|
-
bucket?: string;
|
|
16
|
-
/** Whether the user's roles claim intersects the provider's configured adminRoles. */
|
|
17
|
-
isAdmin: boolean;
|
|
18
|
-
}
|
|
19
|
-
/** Describes an available identity provider. */
|
|
20
|
-
export interface ProviderInfo {
|
|
21
|
-
/** Unique provider identifier used in API calls. */
|
|
22
|
-
id: string;
|
|
23
|
-
/** Human-readable display name shown in the UI. */
|
|
24
|
-
label: string;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=auth.d.ts.map
|
package/models/auth.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/models/auth.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,MAAM,WAAW,WAAW;IAC1B,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,mHAAmH;IACnH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;CACf"}
|