@epam/ai-dial-chat-shared 1.1.0-dev.99 → 1.1.0-rc.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.
- 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 +48 -0
- package/components/EntityTypeLabel/EntityTypeLabel.js +10 -0
- package/components/FeaturedChip/FeaturedChip.js +18 -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 +17 -0
- package/components/PanelEmptyState/PanelEmptyState.module.scss.js +3 -0
- package/components/ResourceSummary/ResourceSummary.js +34 -0
- package/components/ResourceSummary/ResourceSummary.module.scss.js +6 -0
- package/constants/breakpoint.js +4 -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 +108 -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 +491 -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 +13 -0
- package/hooks/useStreamedMarkdownContent.js +32 -0
- package/index.css +1 -1
- package/index.d.ts +2505 -43
- package/index.js +64 -49151
- 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 +43 -12
- 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/annotation.js +120 -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 +79 -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 +58 -0
- package/utils/string-utils.js +14 -0
- package/components/CopyButton/CopyButton.d.ts +0 -15
- package/components/CopyButton/CopyButton.d.ts.map +0 -1
- package/components/DeploymentIcon/DeploymentIcon.d.ts +0 -36
- package/components/DeploymentIcon/DeploymentIcon.d.ts.map +0 -1
- package/components/InitialsAvatar/InitialsAvatar.d.ts +0 -13
- package/components/InitialsAvatar/InitialsAvatar.d.ts.map +0 -1
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +0 -47
- 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 -105
- package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +0 -31
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +0 -1
- package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +0 -9
- 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 -14
- package/constants/icon.d.ts.map +0 -1
- package/constants/mime-types.d.ts +0 -7
- package/constants/mime-types.d.ts.map +0 -1
- package/hooks/useCodeCopy.d.ts +0 -6
- package/hooks/useCodeCopy.d.ts.map +0 -1
- package/hooks/useCollapsedText.d.ts +0 -27
- 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 -17
- 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 -276
- package/models/chat.d.ts.map +0 -1
- package/models/custom-visualizer.d.ts +0 -61
- package/models/custom-visualizer.d.ts.map +0 -1
- package/models/deployment-configuration.d.ts +0 -55
- 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/models/tool-menu-item.d.ts +0 -13
- package/models/tool-menu-item.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 -53
- package/types/mime-type.d.ts.map +0 -1
- package/utils/avatar-color.d.ts +0 -10
- package/utils/avatar-color.d.ts.map +0 -1
- package/utils/build-css-vars.d.ts +0 -4
- package/utils/build-css-vars.d.ts.map +0 -1
- package/utils/copy-to-clipboard.d.ts +0 -3
- 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 -3
- package/utils/format-last-used.d.ts.map +0 -1
- package/utils/initials.d.ts +0 -3
- 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/latex.d.ts +0 -11
- package/utils/latex.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 -4
- 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
package/markdown.d.ts
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { Components } from 'react-markdown';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
import { Options } from 'react-markdown';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
|
|
7
|
+
/** Color theme for syntax highlighting. */
|
|
8
|
+
declare enum CodeBlockTheme {
|
|
9
|
+
/** Dark syntax-highlighting theme. */
|
|
10
|
+
Dark = "dark",
|
|
11
|
+
/** Light syntax-highlighting theme. */
|
|
12
|
+
Light = "light"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* {@link DEFAULT_MARKDOWN_CLASS_NAMES} with the body copy one step down the
|
|
17
|
+
* type scale. Headings, code, and tables are unchanged — only the text that
|
|
18
|
+
* dominates a long answer shrinks, so more of it fits on a narrow viewport.
|
|
19
|
+
*/
|
|
20
|
+
export declare const COMPACT_MARKDOWN_CLASS_NAMES: MarkdownRendererClassNames;
|
|
21
|
+
|
|
22
|
+
/** Default typography classNames for rendering markdown with full visual hierarchy. */
|
|
23
|
+
export declare const DEFAULT_MARKDOWN_CLASS_NAMES: MarkdownRendererClassNames;
|
|
24
|
+
|
|
25
|
+
/** Default filename used when downloading a Markdown table as CSV. */
|
|
26
|
+
export declare const DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME = "table.csv";
|
|
27
|
+
|
|
28
|
+
export declare const defaultMarkdownComponents: Components;
|
|
29
|
+
|
|
30
|
+
/** MIME type used when downloading a Markdown table as CSV. */
|
|
31
|
+
export declare const MARKDOWN_TABLE_CSV_MIME_TYPE = "text/csv;charset=utf-8";
|
|
32
|
+
|
|
33
|
+
/** Renders a fenced or multi-line code block with syntax highlighting and a copy button. */
|
|
34
|
+
export declare const MarkdownCodeBlock: FC<MarkdownCodeBlockProps>;
|
|
35
|
+
|
|
36
|
+
/** CSS custom-property overrides for the `MarkdownCodeBlock` component. */
|
|
37
|
+
export declare interface MarkdownCodeBlockColors {
|
|
38
|
+
/** Container background color. */
|
|
39
|
+
background?: string;
|
|
40
|
+
/** Container/header border color. */
|
|
41
|
+
border?: string;
|
|
42
|
+
/** Header background color. */
|
|
43
|
+
headerBackground?: string;
|
|
44
|
+
/** Language label text color. */
|
|
45
|
+
language?: string;
|
|
46
|
+
/** Copy button icon color once copied. */
|
|
47
|
+
copied?: string;
|
|
48
|
+
/** Scrollbar thumb/track color. */
|
|
49
|
+
scrollbar?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Props for {@link MarkdownCodeBlock}. */
|
|
53
|
+
export declare interface MarkdownCodeBlockProps {
|
|
54
|
+
/** Detected language from the fenced code block. Empty string for language-less blocks. */
|
|
55
|
+
language: string;
|
|
56
|
+
/** Raw code value with trailing newline stripped. */
|
|
57
|
+
value: string;
|
|
58
|
+
/** When true, the copy button is hidden (streaming in progress). */
|
|
59
|
+
isStreaming?: boolean;
|
|
60
|
+
/** Color theme for syntax highlighting. Defaults to `'dark'`. */
|
|
61
|
+
theme?: CodeBlockTheme;
|
|
62
|
+
/** Accessible label for the copy button. Defaults to `'Copy code'`. */
|
|
63
|
+
copyLabel?: string;
|
|
64
|
+
/** Message announced through the block's `aria-live="polite"` region after a copy completes. The copy button's own accessible name stays `copyLabel`. Defaults to `'Copied!'`. */
|
|
65
|
+
copiedLabel?: string;
|
|
66
|
+
/** Accessible label for the download button. Defaults to `'Download code'`. */
|
|
67
|
+
downloadLabel?: string;
|
|
68
|
+
/** When true, hides the download button while still showing copy. Defaults to `false`. */
|
|
69
|
+
hideDownload?: boolean;
|
|
70
|
+
/** Extra classes applied to the outer container element. */
|
|
71
|
+
containerClassName?: string;
|
|
72
|
+
/** Extra classes applied to the sticky header bar. */
|
|
73
|
+
headerClassName?: string;
|
|
74
|
+
/** Typography class for the `<code>` element (used when no language is detected). Defaults to `'dial-code-text'`. */
|
|
75
|
+
codeClassName?: string;
|
|
76
|
+
/** CSS class applied to the language label in the header. Defaults to `'dial-tiny-lead-semi-text'` plus the module's `.languageLabel` class (`--text-secondary`). */
|
|
77
|
+
languageLabelClassName?: string;
|
|
78
|
+
/** 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. */
|
|
79
|
+
title?: string;
|
|
80
|
+
/** Custom content rendered in the header in place of the plain label, e.g. a language/endpoint select. Defaults to the plain label text. */
|
|
81
|
+
titleSlot?: ReactNode;
|
|
82
|
+
/** Color overrides applied as CSS custom properties. */
|
|
83
|
+
colors?: MarkdownCodeBlockColors;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** Markdown renderer with GFM support. Styling is driven by `classNames`; structural overrides via `components`. */
|
|
87
|
+
export declare const MarkdownRenderer: FC<MarkdownRendererProps>;
|
|
88
|
+
|
|
89
|
+
/** Per-element className overrides passed to {@link MarkdownRenderer}. */
|
|
90
|
+
export declare interface MarkdownRendererClassNames extends MarkdownTableClassNames {
|
|
91
|
+
/** Class on `<h1>`. */
|
|
92
|
+
h1?: string;
|
|
93
|
+
/** Class on `<h2>`. */
|
|
94
|
+
h2?: string;
|
|
95
|
+
/** Class on `<h3>`. */
|
|
96
|
+
h3?: string;
|
|
97
|
+
/** Class on `<h4>`. */
|
|
98
|
+
h4?: string;
|
|
99
|
+
/** Class on `<h5>`. */
|
|
100
|
+
h5?: string;
|
|
101
|
+
/** Class on `<h6>`. */
|
|
102
|
+
h6?: string;
|
|
103
|
+
/** Classes on `<p>` elements. */
|
|
104
|
+
p?: string;
|
|
105
|
+
/** Extra classes on `<ul>` (base: `list-disc ps-[2em]`). */
|
|
106
|
+
ul?: string;
|
|
107
|
+
/** Extra classes on `<ol>` (base: `list-decimal ps-[2em]`). */
|
|
108
|
+
ol?: string;
|
|
109
|
+
/** Typography class for `<strong>`. Defaults to `'dial-body-paragraph-semi-text'` — the semibold step matching the default `p` class. */
|
|
110
|
+
strong?: string;
|
|
111
|
+
/** Typography class for `<em>`. Defaults to `'italic'`. */
|
|
112
|
+
em?: string;
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated The `<pre>` wrapper is now a fragment passthrough; this class no longer applies
|
|
115
|
+
* to fenced code blocks. Migrate to `codeBlockContainer` for the block container.
|
|
116
|
+
*/
|
|
117
|
+
codeBlock?: string;
|
|
118
|
+
/** Extra classes on the {@link MarkdownCodeBlock} outer container. */
|
|
119
|
+
codeBlockContainer?: string;
|
|
120
|
+
/** Extra classes on the {@link MarkdownCodeBlock} header bar. */
|
|
121
|
+
codeBlockHeader?: string;
|
|
122
|
+
/** Typography class for the `<code>` element inside a code block. Defaults to `'dial-code-text'`. */
|
|
123
|
+
codeFont?: string;
|
|
124
|
+
/** Extra classes on inline `<code>` (base: `rounded px-1 py-0.5`). */
|
|
125
|
+
codeInline?: string;
|
|
126
|
+
/** Typography class for inline `<code>`. Defaults to `'dial-code-text'`. */
|
|
127
|
+
codeInlineFont?: string;
|
|
128
|
+
/** Extra classes on `<blockquote>` (base uses a logical start border and padding). */
|
|
129
|
+
blockquote?: string;
|
|
130
|
+
/** Extra classes on `<a>` (base uses the accent text color and an offset underline). */
|
|
131
|
+
link?: string;
|
|
132
|
+
/** Extra classes on `<hr>` separators. */
|
|
133
|
+
hr?: string;
|
|
134
|
+
/** Extra classes on deleted text rendered by GFM. */
|
|
135
|
+
del?: string;
|
|
136
|
+
/** Extra classes on `<th>` and `<td>` (base includes borders, spacing, and text wrapping). */
|
|
137
|
+
tableCell?: string;
|
|
138
|
+
/** Extra classes on `<td>` only (applied before `tableCell`, e.g. a body-cell background). */
|
|
139
|
+
tableBodyCell?: string;
|
|
140
|
+
/** Extra classes on `<th>` only (applied alongside `tableCell`). */
|
|
141
|
+
tableHeader?: string;
|
|
142
|
+
/** Typography class for `<th>` cells. Defaults to `'dial-tiny-lead-semi-text'`. Text color is set separately via `colors.tableHeaderText`. */
|
|
143
|
+
tableHeaderFont?: string;
|
|
144
|
+
/** Extra classes on the scrollable wrapper around block (display) LaTeX formulas. */
|
|
145
|
+
mathBlock?: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** CSS custom-property overrides for the `MarkdownRenderer` component. */
|
|
149
|
+
export declare interface MarkdownRendererColors {
|
|
150
|
+
/** Primary color of the "thinking" shimmer gradient. */
|
|
151
|
+
thinkingPrimary?: string;
|
|
152
|
+
/** Secondary color of the "thinking" shimmer gradient. */
|
|
153
|
+
thinkingSecondary?: string;
|
|
154
|
+
/** Border color for `<hr>` separators and table cell borders. */
|
|
155
|
+
border?: string;
|
|
156
|
+
/** Border color for the `<blockquote>` start border. Defaults to `--stroke-primary`. */
|
|
157
|
+
blockquoteBorder?: string;
|
|
158
|
+
/** Text color for `<blockquote>` content. Defaults to `--text-secondary`. */
|
|
159
|
+
blockquoteText?: string;
|
|
160
|
+
/** Text color for `<a>` links. Defaults to `--text-accent`. */
|
|
161
|
+
linkText?: string;
|
|
162
|
+
/** Focus-visible outline color for `<a>` links. Defaults to `--stroke-focus-black`. */
|
|
163
|
+
linkFocus?: string;
|
|
164
|
+
/** Text color for `<th>` table header cells. Defaults to `--text-secondary`. */
|
|
165
|
+
tableHeaderText?: string;
|
|
166
|
+
/** Text color for `<h6>` headings. Defaults to `--text-secondary`. */
|
|
167
|
+
headingSixText?: string;
|
|
168
|
+
/** Background color for inline `<code>` spans. Defaults to `--bg-layer-raised`. */
|
|
169
|
+
inlineCodeBackground?: string;
|
|
170
|
+
/** Text color for inline `<code>` spans. Defaults to `--text-primary`. */
|
|
171
|
+
inlineCodeText?: string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/** Props for {@link MarkdownRenderer}. */
|
|
175
|
+
export declare interface MarkdownRendererProps {
|
|
176
|
+
/** Raw markdown string to render. */
|
|
177
|
+
content: string;
|
|
178
|
+
/** Classes applied to the renderer root. */
|
|
179
|
+
containerClassName?: string;
|
|
180
|
+
/** When true, appended content is revealed gradually for smoother streaming updates. */
|
|
181
|
+
isStreaming?: boolean;
|
|
182
|
+
/** Reveal speed used while `isStreaming` is true. Defaults to 120 characters per second. */
|
|
183
|
+
streamCharactersPerSecond?: number;
|
|
184
|
+
/** Per-element styling classes. Merged with structural base classes inside the component. Defaults to no overrides (`{}`). */
|
|
185
|
+
classNames?: MarkdownRendererClassNames;
|
|
186
|
+
/**
|
|
187
|
+
* Full component overrides merged on top of the built-in map.
|
|
188
|
+
* Use for elements not covered by `classNames`.
|
|
189
|
+
*/
|
|
190
|
+
components?: Components;
|
|
191
|
+
/**
|
|
192
|
+
* Rewrites `href` and `src` values before they are rendered. The result is
|
|
193
|
+
* still passed through react-markdown's protocol allowlist. Hosts use this
|
|
194
|
+
* to map DIAL file ids (`files/{bucket}/{path}`) to download URLs. Defaults
|
|
195
|
+
* to no extra rewrite.
|
|
196
|
+
*/
|
|
197
|
+
urlTransform?: (url: string) => string;
|
|
198
|
+
/** Extra rehype plugins, applied after the built-in KaTeX pass. Defaults to none. */
|
|
199
|
+
rehypePlugins?: NonNullable<Options['rehypePlugins']>;
|
|
200
|
+
/**
|
|
201
|
+
* Label shown with a shimmer animation while `isStreaming` is true and no content has arrived yet.
|
|
202
|
+
* Defaults to `'Thinking'`. Pass a translated string from the consuming app.
|
|
203
|
+
*/
|
|
204
|
+
thinkingLabel?: string;
|
|
205
|
+
/** Accessible label for the copy button in code blocks. Defaults to `'Copy code'`. */
|
|
206
|
+
codeBlockCopyLabel?: string;
|
|
207
|
+
/** Accessible label for the copy button after copying. Defaults to `'Copied!'`. */
|
|
208
|
+
codeBlockCopiedLabel?: string;
|
|
209
|
+
/** Syntax highlight color theme for code blocks and tables. Defaults to `'dark'`. */
|
|
210
|
+
codeBlockTheme?: CodeBlockTheme;
|
|
211
|
+
/** Color overrides applied as CSS custom properties. */
|
|
212
|
+
colors?: MarkdownRendererColors;
|
|
213
|
+
/** Localized labels for Markdown table actions. Supplying them enables the action bar. */
|
|
214
|
+
tableActionLabels?: MarkdownTableActionLabels;
|
|
215
|
+
/** Filename used when downloading a Markdown table as CSV. Defaults to `'table.csv'`. */
|
|
216
|
+
tableDownloadFilename?: string;
|
|
217
|
+
tableOnOpenInCanvas?: (markdown: string) => void;
|
|
218
|
+
/** Accessible label for a table's horizontally scrollable region. Defaults to `'Scrollable table'`. */
|
|
219
|
+
tableScrollRegionAriaLabel?: string;
|
|
220
|
+
/** Accessible label for a block formula's horizontally scrollable region. Defaults to `'Scrollable formula'`. */
|
|
221
|
+
mathScrollRegionAriaLabel?: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** Renders a responsive Markdown table with an end fade while more columns are available. */
|
|
225
|
+
export declare const MarkdownTable: FC<MarkdownTableProps>;
|
|
226
|
+
|
|
227
|
+
export declare interface MarkdownTableActionLabels {
|
|
228
|
+
copyCsvLabel?: string;
|
|
229
|
+
copyTxtLabel?: string;
|
|
230
|
+
copyMarkdownLabel?: string;
|
|
231
|
+
copiedLabel?: string;
|
|
232
|
+
downloadCsvLabel?: string;
|
|
233
|
+
openInCanvasLabel?: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/** Per-element className overrides for {@link MarkdownTable}. */
|
|
237
|
+
export declare interface MarkdownTableClassNames {
|
|
238
|
+
/** Extra classes on the outer table wrapper. */
|
|
239
|
+
tableWrapper?: string;
|
|
240
|
+
/** Typography class for the table. Defaults to `'dial-small-text'`. */
|
|
241
|
+
tableFont?: string;
|
|
242
|
+
/** Extra classes on the scrollable table region. */
|
|
243
|
+
tableScrollContainer?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** CSS custom-property overrides for the `MarkdownTable` component. */
|
|
247
|
+
export declare interface MarkdownTableColors {
|
|
248
|
+
/** Scroll container border color. */
|
|
249
|
+
border?: string;
|
|
250
|
+
/** Scrollbar thumb/track color. */
|
|
251
|
+
scrollbar?: string;
|
|
252
|
+
/** Edge-fade mask color. */
|
|
253
|
+
fade?: string;
|
|
254
|
+
/** Divider color between rows. Defaults to `--stroke-tertiary`. */
|
|
255
|
+
rowDivider?: string;
|
|
256
|
+
/** Background of even-indexed body rows. Defaults to `--bg-layer-base`. */
|
|
257
|
+
rowZebraBackground?: string;
|
|
258
|
+
/** Background of a body row on hover. Defaults to `--bg-control-accent-alpha-hover`. */
|
|
259
|
+
rowHoverBackground?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export declare enum MarkdownTableCopyFormat {
|
|
263
|
+
Csv = "csv",
|
|
264
|
+
Txt = "txt",
|
|
265
|
+
Markdown = "markdown"
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/** A table header action rendered as an icon button. */
|
|
269
|
+
export declare interface MarkdownTableHeaderAction {
|
|
270
|
+
/** Stable accessible name and tooltip text. */
|
|
271
|
+
label: string;
|
|
272
|
+
/** Decorative icon content. */
|
|
273
|
+
icon: ReactNode;
|
|
274
|
+
/** Called when the action is activated. */
|
|
275
|
+
onClick: () => void;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** Props for {@link MarkdownTable}. */
|
|
279
|
+
export declare interface MarkdownTableProps {
|
|
280
|
+
/** Table body/children rendered inside the scrollable wrapper (typically `<thead>`/`<tbody>` from react-markdown). */
|
|
281
|
+
children: ReactNode;
|
|
282
|
+
/** Per-element className overrides. */
|
|
283
|
+
classNames: MarkdownTableClassNames;
|
|
284
|
+
/** Color overrides applied as CSS custom properties. */
|
|
285
|
+
colors?: MarkdownTableColors;
|
|
286
|
+
/** Localized labels for table actions. Supplying them enables the action bar. */
|
|
287
|
+
actionLabels?: MarkdownTableActionLabels;
|
|
288
|
+
/** Filename used when downloading the table as CSV. Defaults to `'table.csv'`. */
|
|
289
|
+
downloadFilename?: string;
|
|
290
|
+
/** When true, table actions are hidden while content is still arriving. */
|
|
291
|
+
isStreaming?: boolean;
|
|
292
|
+
onOpenInCanvas?: (markdown: string) => void;
|
|
293
|
+
/** Accessible label for the horizontally scrollable region. Defaults to `'Scrollable table'`. */
|
|
294
|
+
scrollRegionAriaLabel?: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Renders read-only markdown with every `{{param}}` token wrapped in a
|
|
299
|
+
* `cat-prompt-variable`-classed span the host can style apart from the
|
|
300
|
+
* surrounding prose.
|
|
301
|
+
*/
|
|
302
|
+
export declare const MarkdownWithPlaceholders: FC<MarkdownWithPlaceholdersProps>;
|
|
303
|
+
|
|
304
|
+
/** Props for {@link MarkdownWithPlaceholders}. */
|
|
305
|
+
export declare interface MarkdownWithPlaceholdersProps {
|
|
306
|
+
/** Raw markdown string to render, read-only. */
|
|
307
|
+
content: string;
|
|
308
|
+
/** Typography class overrides applied to `<h1>`–`<h6>`. Defaults to no override. */
|
|
309
|
+
headingClassName?: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/** Renders assistant message content as formatted markdown. */
|
|
313
|
+
export declare const MDMessageViewer: FC<MDMessageViewerProps>;
|
|
314
|
+
|
|
315
|
+
/** Props for the {@link MDMessageViewer} markdown renderer. */
|
|
316
|
+
declare interface MDMessageViewerProps {
|
|
317
|
+
/** Raw markdown string to render. */
|
|
318
|
+
content: string;
|
|
319
|
+
/** Enables gradual reveal for appended streaming content. */
|
|
320
|
+
isStreaming?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Label shown while `isStreaming` is true and no content has arrived yet.
|
|
323
|
+
* Forwarded to {@link MarkdownRenderer}. Defaults to `'Thinking'`.
|
|
324
|
+
*/
|
|
325
|
+
thinkingLabel?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Additional react-markdown component overrides merged on top of the
|
|
328
|
+
* built-in map. Use to inject custom React nodes (e.g. citation markers)
|
|
329
|
+
* into specific markdown elements without modifying the viewer directly.
|
|
330
|
+
*/
|
|
331
|
+
components?: Components;
|
|
332
|
+
/**
|
|
333
|
+
* Rewrites `href` and `src` values before they are rendered. Forwarded to
|
|
334
|
+
* {@link MarkdownRenderer}. Defaults to no extra rewrite.
|
|
335
|
+
*/
|
|
336
|
+
urlTransform?: (url: string) => string;
|
|
337
|
+
/** Accessible label for the copy button in code blocks. Forwarded to {@link MarkdownRenderer}. */
|
|
338
|
+
codeBlockCopyLabel?: string;
|
|
339
|
+
/** Accessible label for the copy button after copying. Forwarded to {@link MarkdownRenderer}. */
|
|
340
|
+
codeBlockCopiedLabel?: string;
|
|
341
|
+
/** Syntax highlight color theme for code blocks. Forwarded to {@link MarkdownRenderer}. */
|
|
342
|
+
codeBlockTheme?: CodeBlockTheme;
|
|
343
|
+
/** Localized labels for Markdown table actions. Forwarded to {@link MarkdownRenderer}. */
|
|
344
|
+
tableActionLabels?: MarkdownTableActionLabels;
|
|
345
|
+
/** Filename used when downloading a Markdown table as CSV. Forwarded to {@link MarkdownRenderer}. */
|
|
346
|
+
tableDownloadFilename?: string;
|
|
347
|
+
tableOnOpenInCanvas?: (markdown: string) => void;
|
|
348
|
+
/** Accessible label for a table's scrollable region. Forwarded to {@link MarkdownRenderer}. */
|
|
349
|
+
tableScrollRegionAriaLabel?: string;
|
|
350
|
+
/**
|
|
351
|
+
* Per-element typography classes. Defaults to {@link DEFAULT_MARKDOWN_CLASS_NAMES};
|
|
352
|
+
* pass {@link COMPACT_MARKDOWN_CLASS_NAMES} for the smaller body scale. Give a
|
|
353
|
+
* stable reference: this component is memoised.
|
|
354
|
+
*/
|
|
355
|
+
classNames?: MarkdownRendererClassNames;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/** Style map consumed by `react-syntax-highlighter`'s `Prism` renderer. */
|
|
359
|
+
declare type PrismStyleMap = Record<string, CSSProperties>;
|
|
360
|
+
|
|
361
|
+
/** Prism syntax-highlighting style map used by {@link MarkdownCodeBlock}, restrained to design-system CSS variables. */
|
|
362
|
+
export declare const restrainedSyntaxTheme: PrismStyleMap;
|
|
363
|
+
|
|
364
|
+
export declare const serializeMarkdownTableRows: (rows: readonly HTMLTableRowElement[], format: MarkdownTableCopyFormat) => string;
|
|
365
|
+
|
|
366
|
+
/** Returns `isCopied` state and a `copy` callback; `isCopied` resets to `false` after `resetDelay` ms. */
|
|
367
|
+
export declare const useCodeCopy: (value: string, resetDelay?: number) => {
|
|
368
|
+
isCopied: boolean;
|
|
369
|
+
copy: () => void;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
/** Measures rendered text and owns the expand/collapse state for long plain-text content. */
|
|
373
|
+
export declare const useCollapsedText: <T extends HTMLElement = HTMLElement>({ text, collapsedLineCount, }: UseCollapsedTextOptions) => UseCollapsedTextResult<T>;
|
|
374
|
+
|
|
375
|
+
/** Options for `useCollapsedText`. */
|
|
376
|
+
export declare interface UseCollapsedTextOptions {
|
|
377
|
+
/** Content identity used to reset long text to the collapsed state when it changes. */
|
|
378
|
+
text: string;
|
|
379
|
+
/** Maximum number of text lines shown while collapsed. */
|
|
380
|
+
collapsedLineCount: number;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/** Return value of `useCollapsedText`. */
|
|
384
|
+
export declare interface UseCollapsedTextResult<T extends HTMLElement> {
|
|
385
|
+
/** Ref callback attached to the text element to measure its rendered height. */
|
|
386
|
+
textRef: (node: T | null) => void;
|
|
387
|
+
/** Whether the full text is currently hidden behind the collapsed viewport. */
|
|
388
|
+
isTextCollapsed: boolean;
|
|
389
|
+
/** Whether the measured text is taller than the collapsed viewport. */
|
|
390
|
+
isOverflowing: boolean;
|
|
391
|
+
/** Current collapsed viewport height in pixels. */
|
|
392
|
+
collapsedMaxHeight: number;
|
|
393
|
+
/** Full rendered text height in pixels. */
|
|
394
|
+
expandedMaxHeight: number;
|
|
395
|
+
/** Whether the expanded/collapsed control is currently in the collapsed state. */
|
|
396
|
+
isCollapsed: boolean;
|
|
397
|
+
/** Toggle between expanded and collapsed states. */
|
|
398
|
+
toggleCollapsed: () => void;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export { }
|
package/markdown.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useCodeCopy as e } from "./hooks/useCodeCopy.js";
|
|
2
|
+
import { restrainedSyntaxTheme as t } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
|
|
3
|
+
import { MarkdownCodeBlock as n } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
|
|
4
|
+
import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as r, MARKDOWN_TABLE_CSV_MIME_TYPE as i, MarkdownTableCopyFormat as a, serializeMarkdownTableRows as o } from "./components/MarkdownRenderer/Table/table-serialization.js";
|
|
5
|
+
import { MarkdownTable as s } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
|
|
6
|
+
import { MarkdownRenderer as c, defaultMarkdownComponents as l } from "./components/MarkdownRenderer/MarkdownRenderer.js";
|
|
7
|
+
import { COMPACT_MARKDOWN_CLASS_NAMES as u, DEFAULT_MARKDOWN_CLASS_NAMES as d } from "./components/MarkdownRenderer/markdown-class-names.js";
|
|
8
|
+
import { MDMessageViewer as f } from "./components/MarkdownRenderer/MDMessageViewer.js";
|
|
9
|
+
import { MarkdownWithPlaceholders as p } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
|
|
10
|
+
import { useCollapsedText as m } from "./hooks/useCollapsedText.js";
|
|
11
|
+
export { u as COMPACT_MARKDOWN_CLASS_NAMES, d as DEFAULT_MARKDOWN_CLASS_NAMES, r as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, i as MARKDOWN_TABLE_CSV_MIME_TYPE, f as MDMessageViewer, n as MarkdownCodeBlock, c as MarkdownRenderer, s as MarkdownTable, a as MarkdownTableCopyFormat, p as MarkdownWithPlaceholders, l as defaultMarkdownComponents, t as restrainedSyntaxTheme, o as serializeMarkdownTableRows, e as useCodeCopy, m as useCollapsedText };
|
package/models/chat.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/models/chat.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.User = "user", e.Assistant = "assistant", e.Status = "status", e;
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e[e.Like = 1] = "Like", e[e.Dislike = -1] = "Dislike", e;
|
|
6
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.Completed = "completed", e.Failed = "failed", e;
|
|
8
|
+
}({}), r = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.ModelChanged = "model_changed", e;
|
|
10
|
+
}({}), i = /* @__PURE__ */ function(e) {
|
|
11
|
+
return e.Idle = "idle", e.Loading = "loading", e.Error = "error", e;
|
|
12
|
+
}({});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as MessageRating, e as MessageRole, i as RequestStatus, n as StageStatus, r as StatusEvent };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/models/conversation-classification.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.All = "all", e.Pinned = "pinned", e.MyChats = "my-chats", e.Shared = "shared", e.Organization = "organization", e;
|
|
4
|
+
}({});
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as FilterTab };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/models/conversation-transfer.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.InProgress = "inProgress", e.Success = "success", e.Warning = "warning", e.Failed = "failed", e.Canceled = "canceled", e;
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.Single = "single", e.All = "all", e;
|
|
6
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.Unauthorized = "unauthorized", e.NotFound = "notFound", e.UnsupportedFormat = "unsupportedFormat", e.MissingBucket = "missingBucket", e.FileTooLarge = "fileTooLarge", e.Unknown = "unknown", e;
|
|
8
|
+
}({}), r = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.AttachmentSkipped = "attachmentSkipped", e;
|
|
10
|
+
}({}), i = /* @__PURE__ */ function(e) {
|
|
11
|
+
return e.Attachment = "attachment", e.Conversation = "conversation", e;
|
|
12
|
+
}({});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as ConversationTransferErrorCode, e as ConversationTransferJobStatus, t as ConversationTransferSubjectKind, i as ConversationTransferUnitKind, r as ConversationTransferWarningCode };
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-shared",
|
|
3
3
|
"description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
|
|
4
|
-
"version": "1.1.0-
|
|
4
|
+
"version": "1.1.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css",
|
|
9
|
+
"**/*.scss"
|
|
10
|
+
],
|
|
7
11
|
"main": "./index.js",
|
|
8
12
|
"module": "./index.js",
|
|
9
13
|
"types": "./index.d.ts",
|
|
@@ -13,24 +17,51 @@
|
|
|
13
17
|
"types": "./index.d.ts",
|
|
14
18
|
"import": "./index.js",
|
|
15
19
|
"default": "./index.js"
|
|
16
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"./file-manager": {
|
|
22
|
+
"types": "./file-manager.d.ts",
|
|
23
|
+
"import": "./file-manager.js",
|
|
24
|
+
"default": "./file-manager.js"
|
|
25
|
+
},
|
|
26
|
+
"./markdown": {
|
|
27
|
+
"types": "./markdown.d.ts",
|
|
28
|
+
"import": "./markdown.js",
|
|
29
|
+
"default": "./markdown.js"
|
|
30
|
+
},
|
|
31
|
+
"./styles.css": "./index.css"
|
|
17
32
|
},
|
|
18
33
|
"peerDependencies": {
|
|
19
|
-
"react": "^19.2.
|
|
20
|
-
"
|
|
34
|
+
"react": "^19.2.8",
|
|
35
|
+
"@epam/ai-dial-ui-kit": "^0.14.2",
|
|
36
|
+
"@epam/ai-dial-react-file-manager": "^0.2.0",
|
|
37
|
+
"ag-grid-community": "^35.3.0"
|
|
38
|
+
},
|
|
39
|
+
"peerDependenciesMeta": {
|
|
40
|
+
"@epam/ai-dial-react-file-manager": {
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
"ag-grid-community": {
|
|
44
|
+
"optional": true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
21
48
|
"@tabler/icons-react": "^3.44.0",
|
|
22
|
-
"
|
|
49
|
+
"classnames": "2.5.1",
|
|
50
|
+
"dompurify": "3.4.15",
|
|
51
|
+
"katex": "^0.16.22",
|
|
23
52
|
"react-markdown": "^10.1.0",
|
|
53
|
+
"react-syntax-highlighter": "^16.1.1",
|
|
54
|
+
"rehype-katex": "^7.0.1",
|
|
55
|
+
"rehype-raw": "^7.0.0",
|
|
56
|
+
"rehype-sanitize": "^6.0.0",
|
|
57
|
+
"rehype-stringify": "^10.0.1",
|
|
24
58
|
"remark-breaks": "^4.0.0",
|
|
25
59
|
"remark-gfm": "^4.0.1",
|
|
26
60
|
"remark-math": "^6.0.0",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"classnames": "2.5.1",
|
|
33
|
-
"tailwind-merge": "^3.6.0"
|
|
61
|
+
"remark-parse": "^11.0.0",
|
|
62
|
+
"remark-rehype": "^11.1.2",
|
|
63
|
+
"tailwind-merge": "^3.6.0",
|
|
64
|
+
"unified": "^11.0.5"
|
|
34
65
|
},
|
|
35
66
|
"repository": {
|
|
36
67
|
"type": "git",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/types/attachment.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Network = "network", e.UnsupportedType = "unsupported-type", e;
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.File = "file", e.Image = "image", e.Audio = "audio", e.Prompt = "prompt", e.Pasted = "pasted", e.Link = "link", e;
|
|
6
|
+
}({});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as AttachmentErrorReason, t as AttachmentType };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/types/mime-type.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.Markdown = "text/markdown", e.Plain = "text/plain", e.HTML = "text/html", e.XHTML = "application/xhtml+xml", e.CSS = "text/css", e.JavaScript = "text/javascript", e.TypeScript = "text/typescript", e.CSV = "text/csv", e.JSON = "application/json", e.XML = "application/xml", e.PDF = "application/pdf", e.ZIP = "application/zip", e.GZIP = "application/gzip", e.JPEG = "image/jpeg", e.PNG = "image/png", e.GIF = "image/gif", e.WebP = "image/webp", e.BMP = "image/bmp", e.SVG = "image/svg+xml", e.MP3 = "audio/mpeg", e.WAV = "audio/wav", e.OGG = "audio/ogg", e;
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.PDF = "pdf", e.Markdown = "md", e.MarkdownAlt = "markdown", e.JSON = "json", e;
|
|
6
|
+
}({});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as FileExtension, e as MIMEType };
|