@epam/ai-dial-chat-shared 1.2.0-dev.158 → 1.2.0-dev.162

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/constants/dial.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/constants/dial.ts
2
- var e = ".dial_folder";
2
+ var e = ".dial_folder", t = "public";
3
3
  //#endregion
4
- export { e as HIDDEN_FILE };
4
+ export { e as HIDDEN_FILE, t as PUBLIC_BUCKET };
package/index.d.ts CHANGED
@@ -2137,6 +2137,9 @@ export declare interface ProviderInfo {
2137
2137
  label: string;
2138
2138
  }
2139
2139
 
2140
+ /** DIAL Core bucket that holds published (organization-wide) resources, readable by every user. */
2141
+ export declare const PUBLIC_BUCKET = "public";
2142
+
2140
2143
  /**
2141
2144
  * Rehype plugin that wraps every `{{name}}` placeholder in a span so it can be
2142
2145
  * styled apart from the surrounding prose. Placeholders inside code are left
package/index.js CHANGED
@@ -24,45 +24,45 @@ import { ENTITY_TYPE_BG_COLOR as ne, ENTITY_TYPE_COLOR as re } from "./constants
24
24
  import { PROMPT_PARAM_DEFAULT_SEPARATOR as ie, PROMPT_PARAM_PATTERN as ae, PROMPT_VARIABLE_CLASS_NAME as oe, buildPromptParamDefaults as se, extractPromptParams as ce, rehypePromptVariables as le, resolvePromptParams as ue } from "./utils/prompt-variables.js";
25
25
  import { generateUUID as de } from "./utils/generate-uuid.js";
26
26
  import { BASE_LG_ICON_PROPS as fe, BASE_MD_ICON_PROPS as pe } from "./constants/icon.js";
27
- import { HIDDEN_FILE as me } from "./constants/dial.js";
28
- import { TAG_INPUT_TAG_CLASS_NAME as he } from "./constants/tag-input.js";
29
- import { MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as ge, RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE as _e, RESIZABLE_TEXTAREA_CLASS_NAME as ve } from "./constants/resizable-fields.js";
30
- import { MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as ye } from "./constants/markdown-editor.js";
31
- import { SELECT_LIST_MAX_HEIGHT_CLASS_NAME as be, SELECT_LIST_MAX_HEIGHT_PX as xe } from "./constants/select-list.js";
32
- import { DESKTOP_BREAKPOINT_PX as Se, DESKTOP_MEDIA_QUERY as Ce, MOBILE_MAX_WIDTH_PX as we, MOBILE_MEDIA_QUERY as Te } from "./constants/breakpoint.js";
33
- import { pickAvatarColor as Ee } from "./utils/avatar-color.js";
34
- import { extractInitials as De } from "./utils/initials.js";
35
- import { InitialsAvatar as Oe } from "./components/InitialsAvatar/InitialsAvatar.js";
36
- import { DeploymentIcon as ke } from "./components/DeploymentIcon/DeploymentIcon.js";
37
- import { CopyButton as Ae, CopyIconButton as je } from "./components/CopyButton/CopyButton.js";
38
- import { PanelEmptyState as Me } from "./components/PanelEmptyState/PanelEmptyState.js";
39
- import { ItemHeader as Ne } from "./components/ItemHeader/ItemHeader.js";
40
- import { EntityTypeLabel as Pe } from "./components/EntityTypeLabel/EntityTypeLabel.js";
41
- import { FeaturedChip as Fe } from "./components/FeaturedChip/FeaturedChip.js";
42
- import { EntityHeader as Ie } from "./components/EntityHeader/EntityHeader.js";
43
- import { ResourceSummary as Le } from "./components/ResourceSummary/ResourceSummary.js";
44
- import { TableHeader as Re } from "./components/MarkdownRenderer/Table/TableHeader.js";
45
- import { TextRefinementState as ze, useTextRefinement as Be } from "./hooks/useTextRefinement.js";
46
- import { TextRefinementField as Ve } from "./components/TextRefinementField/TextRefinementField.js";
47
- import { CHAT_SHARED_CLASS as He } from "./constants/public-class-names.js";
48
- import { useCodeCopy as Ue } from "./hooks/useCodeCopy.js";
49
- import { restrainedSyntaxTheme as We } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
50
- import { MarkdownCodeBlock as Ge } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
51
- import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as Ke, MARKDOWN_TABLE_CSV_MIME_TYPE as qe, MarkdownTableCopyFormat as Je, serializeMarkdownTableRows as Ye } from "./components/MarkdownRenderer/Table/table-serialization.js";
52
- import { MarkdownTable as Xe } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
53
- import { MarkdownRenderer as Ze, defaultMarkdownComponents as Qe } from "./components/MarkdownRenderer/MarkdownRenderer.js";
54
- import { COMPACT_MARKDOWN_CLASS_NAMES as $e, DEFAULT_MARKDOWN_CLASS_NAMES as et } from "./components/MarkdownRenderer/markdown-class-names.js";
55
- import { PlainTextRenderer as tt } from "./components/MarkdownRenderer/PlainTextRenderer.js";
56
- import { MDMessageViewer as nt } from "./components/MarkdownRenderer/MDMessageViewer.js";
57
- import { MarkdownWithPlaceholders as rt } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
58
- import { useCollapsedText as it } from "./hooks/useCollapsedText.js";
59
- import { useAvailableHeightCap as at } from "./hooks/useAvailableHeightCap.js";
60
- import { useIsMobile as ot } from "./hooks/useIsMobile.js";
61
- import { DialFileManagerActionProfile as st, DialFileManagerVariant as ct } from "./file-manager/file-manager-variant.js";
62
- import { getParentFolderPath as lt, isHiddenPath as ut } from "./file-manager/path.js";
63
- import { FileUploadStatus as dt } from "./file-manager/upload-batch.js";
64
- import { useGridEditingScroll as ft } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
65
- import { OperationLoaderModal as pt } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
66
- import { UploadProgressModal as mt } from "./file-manager/UploadProgressModal/UploadProgressModal.js";
67
- import { isSkillSelectionUnsupported as ht } from "./utils/is-skill-selection-unsupported.js";
68
- export { f as AttachmentErrorReason, p as AttachmentType, fe as BASE_LG_ICON_PROPS, pe as BASE_MD_ICON_PROPS, He as CHAT_SHARED_CLASS, $e as COMPACT_MARKDOWN_CLASS_NAMES, m as CatalogEntityType, _ as CodeBlockTheme, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, Ae as CopyButton, je as CopyIconButton, et as DEFAULT_MARKDOWN_CLASS_NAMES, Ke as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, Se as DESKTOP_BREAKPOINT_PX, Ce as DESKTOP_MEDIA_QUERY, ke as DeploymentIcon, st as DialFileManagerActionProfile, ct as DialFileManagerVariant, ne as ENTITY_TYPE_BG_COLOR, re as ENTITY_TYPE_COLOR, Ie as EntityHeader, Pe as EntityTypeLabel, Fe as FeaturedChip, h as FileExtension, dt as FileUploadStatus, a as FilterTab, me as HIDDEN_FILE, Oe as InitialsAvatar, Ne as ItemHeader, ge as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, ye as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, qe as MARKDOWN_TABLE_CSV_MIME_TYPE, nt as MDMessageViewer, g as MIMEType, v as MIME_TYPE_ALIASES, y as MIME_TYPE_AUDIO_PREFIX, b as MIME_TYPE_EXT_MAP, x as MIME_TYPE_WILDCARD, we as MOBILE_MAX_WIDTH_PX, Te as MOBILE_MEDIA_QUERY, Ge as MarkdownCodeBlock, Ze as MarkdownRenderer, Xe as MarkdownTable, Je as MarkdownTableCopyFormat, rt as MarkdownWithPlaceholders, o as MessageRating, s as MessageRole, pt as OperationLoaderModal, A as PROHIBITED_CONVERSATION_NAME_CHARS_RE, ie as PROMPT_PARAM_DEFAULT_SEPARATOR, ae as PROMPT_PARAM_PATTERN, oe as PROMPT_VARIABLE_CLASS_NAME, Me as PanelEmptyState, tt as PlainTextRenderer, _e as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, ve as RESIZABLE_TEXTAREA_CLASS_NAME, c as RequestStatus, Le as ResourceSummary, d as ResponseFormat, be as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, xe as SELECT_LIST_MAX_HEIGHT_PX, l as StageStatus, u as StatusEvent, he as TAG_INPUT_TAG_CLASS_NAME, Re as TableHeader, Ve as TextRefinementField, ze as TextRefinementState, mt as UploadProgressModal, Y as base64ToBlob, I as buildCssVars, se as buildPromptParamDefaults, V as copyMarkdownAsRichText, H as copyToClipboard, Qe as defaultMarkdownComponents, X as downloadTextFile, Z as ensureDownloadFilename, De as extractInitials, ce as extractPromptParams, K as formatCost, G as formatFileSize, W as formatLastUsed, q as formatPrice, J as formatUnitPrice, de as generateUUID, S as getAttachmentTypeFromMime, C as getBaseMimeType, Q as getFileExtensionForLanguage, lt as getParentFolderPath, j as getUtf8ByteLength, w as inferMimeTypeFromPath, D as isAnnotationSelector, B as isAudioTranscriptionSupported, ut as isHiddenPath, ht as isSkillSelectionUnsupported, L as isStatusMessage, U as markdownToRichTextHtml, F as mergeClasses, R as messageAttachmentToDisplayAttachment, z as messageAttachmentsToDisplayAttachments, T as normalizeMimeType, O as normalizePersistedHtmlTagAttachmentType, k as normalizeRawAnnotations, Ee as pickAvatarColor, le as rehypePromptVariables, ue as resolvePromptParams, We as restrainedSyntaxTheme, M as sanitizeConversationName, Ye as serializeMarkdownTableRows, N as stripTrailingDots, E as stripUrlQueryAndFragment, $ as triggerAnchorDownload, ee as triggerBlobDownload, P as truncateToUtf8Bytes, te as tryBase64ToBytes, at as useAvailableHeightCap, Ue as useCodeCopy, it as useCollapsedText, ft as useGridEditingScroll, ot as useIsMobile, Be as useTextRefinement };
27
+ import { HIDDEN_FILE as me, PUBLIC_BUCKET as he } from "./constants/dial.js";
28
+ import { TAG_INPUT_TAG_CLASS_NAME as ge } from "./constants/tag-input.js";
29
+ import { MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as _e, RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE as ve, RESIZABLE_TEXTAREA_CLASS_NAME as ye } from "./constants/resizable-fields.js";
30
+ import { MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as be } from "./constants/markdown-editor.js";
31
+ import { SELECT_LIST_MAX_HEIGHT_CLASS_NAME as xe, SELECT_LIST_MAX_HEIGHT_PX as Se } from "./constants/select-list.js";
32
+ import { DESKTOP_BREAKPOINT_PX as Ce, DESKTOP_MEDIA_QUERY as we, MOBILE_MAX_WIDTH_PX as Te, MOBILE_MEDIA_QUERY as Ee } from "./constants/breakpoint.js";
33
+ import { pickAvatarColor as De } from "./utils/avatar-color.js";
34
+ import { extractInitials as Oe } from "./utils/initials.js";
35
+ import { InitialsAvatar as ke } from "./components/InitialsAvatar/InitialsAvatar.js";
36
+ import { DeploymentIcon as Ae } from "./components/DeploymentIcon/DeploymentIcon.js";
37
+ import { CopyButton as je, CopyIconButton as Me } from "./components/CopyButton/CopyButton.js";
38
+ import { PanelEmptyState as Ne } from "./components/PanelEmptyState/PanelEmptyState.js";
39
+ import { ItemHeader as Pe } from "./components/ItemHeader/ItemHeader.js";
40
+ import { EntityTypeLabel as Fe } from "./components/EntityTypeLabel/EntityTypeLabel.js";
41
+ import { FeaturedChip as Ie } from "./components/FeaturedChip/FeaturedChip.js";
42
+ import { EntityHeader as Le } from "./components/EntityHeader/EntityHeader.js";
43
+ import { ResourceSummary as Re } from "./components/ResourceSummary/ResourceSummary.js";
44
+ import { TableHeader as ze } from "./components/MarkdownRenderer/Table/TableHeader.js";
45
+ import { TextRefinementState as Be, useTextRefinement as Ve } from "./hooks/useTextRefinement.js";
46
+ import { TextRefinementField as He } from "./components/TextRefinementField/TextRefinementField.js";
47
+ import { CHAT_SHARED_CLASS as Ue } from "./constants/public-class-names.js";
48
+ import { useCodeCopy as We } from "./hooks/useCodeCopy.js";
49
+ import { restrainedSyntaxTheme as Ge } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
50
+ import { MarkdownCodeBlock as Ke } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
51
+ import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as qe, MARKDOWN_TABLE_CSV_MIME_TYPE as Je, MarkdownTableCopyFormat as Ye, serializeMarkdownTableRows as Xe } from "./components/MarkdownRenderer/Table/table-serialization.js";
52
+ import { MarkdownTable as Ze } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
53
+ import { MarkdownRenderer as Qe, defaultMarkdownComponents as $e } from "./components/MarkdownRenderer/MarkdownRenderer.js";
54
+ import { COMPACT_MARKDOWN_CLASS_NAMES as et, DEFAULT_MARKDOWN_CLASS_NAMES as tt } from "./components/MarkdownRenderer/markdown-class-names.js";
55
+ import { PlainTextRenderer as nt } from "./components/MarkdownRenderer/PlainTextRenderer.js";
56
+ import { MDMessageViewer as rt } from "./components/MarkdownRenderer/MDMessageViewer.js";
57
+ import { MarkdownWithPlaceholders as it } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
58
+ import { useCollapsedText as at } from "./hooks/useCollapsedText.js";
59
+ import { useAvailableHeightCap as ot } from "./hooks/useAvailableHeightCap.js";
60
+ import { useIsMobile as st } from "./hooks/useIsMobile.js";
61
+ import { DialFileManagerActionProfile as ct, DialFileManagerVariant as lt } from "./file-manager/file-manager-variant.js";
62
+ import { getParentFolderPath as ut, isHiddenPath as dt } from "./file-manager/path.js";
63
+ import { FileUploadStatus as ft } from "./file-manager/upload-batch.js";
64
+ import { useGridEditingScroll as pt } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
65
+ import { OperationLoaderModal as mt } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
66
+ import { UploadProgressModal as ht } from "./file-manager/UploadProgressModal/UploadProgressModal.js";
67
+ import { isSkillSelectionUnsupported as gt } from "./utils/is-skill-selection-unsupported.js";
68
+ export { f as AttachmentErrorReason, p as AttachmentType, fe as BASE_LG_ICON_PROPS, pe as BASE_MD_ICON_PROPS, Ue as CHAT_SHARED_CLASS, et as COMPACT_MARKDOWN_CLASS_NAMES, m as CatalogEntityType, _ as CodeBlockTheme, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, je as CopyButton, Me as CopyIconButton, tt as DEFAULT_MARKDOWN_CLASS_NAMES, qe as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, Ce as DESKTOP_BREAKPOINT_PX, we as DESKTOP_MEDIA_QUERY, Ae as DeploymentIcon, ct as DialFileManagerActionProfile, lt as DialFileManagerVariant, ne as ENTITY_TYPE_BG_COLOR, re as ENTITY_TYPE_COLOR, Le as EntityHeader, Fe as EntityTypeLabel, Ie as FeaturedChip, h as FileExtension, ft as FileUploadStatus, a as FilterTab, me as HIDDEN_FILE, ke as InitialsAvatar, Pe as ItemHeader, _e as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, be as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, Je as MARKDOWN_TABLE_CSV_MIME_TYPE, rt as MDMessageViewer, g as MIMEType, v as MIME_TYPE_ALIASES, y as MIME_TYPE_AUDIO_PREFIX, b as MIME_TYPE_EXT_MAP, x as MIME_TYPE_WILDCARD, Te as MOBILE_MAX_WIDTH_PX, Ee as MOBILE_MEDIA_QUERY, Ke as MarkdownCodeBlock, Qe as MarkdownRenderer, Ze as MarkdownTable, Ye as MarkdownTableCopyFormat, it as MarkdownWithPlaceholders, o as MessageRating, s as MessageRole, mt as OperationLoaderModal, A as PROHIBITED_CONVERSATION_NAME_CHARS_RE, ie as PROMPT_PARAM_DEFAULT_SEPARATOR, ae as PROMPT_PARAM_PATTERN, oe as PROMPT_VARIABLE_CLASS_NAME, he as PUBLIC_BUCKET, Ne as PanelEmptyState, nt as PlainTextRenderer, ve as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, ye as RESIZABLE_TEXTAREA_CLASS_NAME, c as RequestStatus, Re as ResourceSummary, d as ResponseFormat, xe as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Se as SELECT_LIST_MAX_HEIGHT_PX, l as StageStatus, u as StatusEvent, ge as TAG_INPUT_TAG_CLASS_NAME, ze as TableHeader, He as TextRefinementField, Be as TextRefinementState, ht as UploadProgressModal, Y as base64ToBlob, I as buildCssVars, se as buildPromptParamDefaults, V as copyMarkdownAsRichText, H as copyToClipboard, $e as defaultMarkdownComponents, X as downloadTextFile, Z as ensureDownloadFilename, Oe as extractInitials, ce as extractPromptParams, K as formatCost, G as formatFileSize, W as formatLastUsed, q as formatPrice, J as formatUnitPrice, de as generateUUID, S as getAttachmentTypeFromMime, C as getBaseMimeType, Q as getFileExtensionForLanguage, ut as getParentFolderPath, j as getUtf8ByteLength, w as inferMimeTypeFromPath, D as isAnnotationSelector, B as isAudioTranscriptionSupported, dt as isHiddenPath, gt as isSkillSelectionUnsupported, L as isStatusMessage, U as markdownToRichTextHtml, F as mergeClasses, R as messageAttachmentToDisplayAttachment, z as messageAttachmentsToDisplayAttachments, T as normalizeMimeType, O as normalizePersistedHtmlTagAttachmentType, k as normalizeRawAnnotations, De as pickAvatarColor, le as rehypePromptVariables, ue as resolvePromptParams, Ge as restrainedSyntaxTheme, M as sanitizeConversationName, Xe as serializeMarkdownTableRows, N as stripTrailingDots, E as stripUrlQueryAndFragment, $ as triggerAnchorDownload, ee as triggerBlobDownload, P as truncateToUtf8Bytes, te as tryBase64ToBytes, ot as useAvailableHeightCap, We as useCodeCopy, at as useCollapsedText, pt as useGridEditingScroll, st as useIsMobile, Ve as useTextRefinement };
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.2.0-dev.158",
4
+ "version": "1.2.0-dev.162",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-ui-kit": "^0.15.0-dev.19",
36
- "@epam/ai-dial-react-file-manager": "^0.3.0-dev.7",
35
+ "@epam/ai-dial-ui-kit": "^0.15.0-dev.20",
36
+ "@epam/ai-dial-react-file-manager": "^0.3.0-dev.13",
37
37
  "ag-grid-community": "^35.3.0"
38
38
  },
39
39
  "peerDependenciesMeta": {