@epam/ai-dial-chat-shared 1.4.0-dev.68 → 1.4.0-dev.69

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/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export * from './utils/annotation';
26
26
  export * from './utils/base64-json';
27
27
  export * from './utils/string-utils';
28
28
  export * from './utils/entity-field-limits';
29
+ export * from './utils/resource-version';
29
30
  export * from './utils/merge-class';
30
31
  export * from './utils/build-css-vars';
31
32
  export * from './utils/org-unit';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,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,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAA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AAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,gEAAgE,CAAC;AAC/E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,iDAAiD,CAAC;AAChE,cAAc,sDAAsD,CAAC;AACrE,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4DAA4D,CAAC;AAC3E,OAAO,EACL,iBAAiB,EACjB,KAAK,0BAA0B,GAChC,MAAM,6DAA6D,CAAC;AAYrE,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF,cAAc,qDAAqD,CAAC"}
package/index.js CHANGED
@@ -12,84 +12,85 @@ import { isAnnotationSelector as k, normalizePersistedHtmlTagAttachmentType as A
12
12
  import { decodeJsonFromBase64 as M, encodeJsonToBase64 as N } from "./utils/base64-json.js";
13
13
  import { PROHIBITED_CONVERSATION_NAME_CHARS_RE as P, getUtf8ByteLength as F, sanitizeConversationName as I, stripTrailingDots as L, truncateToUtf8Bytes as R } from "./utils/string-utils.js";
14
14
  import { ENTITY_DESCRIPTION_MAX_LENGTH as z, ENTITY_INSTRUCTIONS_MAX_LENGTH as B, ENTITY_NAME_MAX_LENGTH as V, exceedsMaxLength as H, hasControlCharacters as U } from "./utils/entity-field-limits.js";
15
- import { mergeClasses as W } from "./utils/merge-class.js";
16
- import { buildCssVars as G } from "./utils/build-css-vars.js";
17
- import { isOrgUnitFolder as K, normalizeOrgUnitFolder as q, toOrgUnitFolderSet as J } from "./utils/org-unit.js";
18
- import { isStatusMessage as Y } from "./utils/message.js";
19
- import { messageAttachmentToDisplayAttachment as X, messageAttachmentsToDisplayAttachments as Z } from "./utils/message-attachment-to-display.js";
20
- import { isAudioTranscriptionSupported as Q } from "./utils/is-audio-transcription-supported.js";
21
- import { copyMarkdownAsRichText as $, copyToClipboard as ee, markdownToRichTextHtml as te } from "./utils/copy-to-clipboard.js";
22
- import { makeOutsideInert as ne } from "./utils/dom.js";
23
- import { formatLastUsed as re } from "./utils/format-last-used.js";
24
- import { formatFileSize as ie } from "./utils/format-file-size.js";
25
- import { formatCost as ae, formatPrice as oe, formatUnitPrice as se } from "./utils/format-price.js";
26
- import { base64ToBlob as ce, downloadTextFile as le, ensureDownloadFilename as ue, getFileExtensionForLanguage as de, triggerAnchorDownload as fe, triggerBlobDownload as pe, tryBase64ToBytes as me } from "./utils/file-download.js";
27
- import { isSyntaxHighlightingAllowed as he } from "./utils/syntax-highlighting.js";
28
- import { ENTITY_TYPE_BG_COLOR as ge, ENTITY_TYPE_COLOR as _e } from "./constants/entity-colors.js";
29
- import { PROMPT_PARAM_DEFAULT_SEPARATOR as ve, PROMPT_PARAM_PATTERN as ye, PROMPT_VARIABLE_CLASS_NAME as be, buildPromptParamDefaults as xe, extractPromptParams as Se, rehypePromptVariables as Ce, resolvePromptParams as we } from "./utils/prompt-variables.js";
30
- import { generateUUID as Te } from "./utils/generate-uuid.js";
31
- import { BASE_LG_ICON_PROPS as Ee, BASE_MD_ICON_PROPS as De } from "./constants/icon.js";
32
- import { HIDDEN_FILE as Oe, PUBLIC_BUCKET as ke } from "./constants/dial.js";
33
- import { TAG_INPUT_TAG_CLASS_NAME as Ae } from "./constants/tag-input.js";
34
- import { MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME as je, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as Me, RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE as Ne, RESIZABLE_TEXTAREA_CLASS_NAME as Pe } from "./constants/resizable-fields.js";
35
- import { MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as Fe } from "./constants/markdown-editor.js";
36
- import { SELECT_LIST_MAX_HEIGHT_CLASS_NAME as Ie, SELECT_LIST_MAX_HEIGHT_PX as Le } from "./constants/select-list.js";
37
- import { DESKTOP_BREAKPOINT_PX as Re, DESKTOP_MEDIA_QUERY as ze, MOBILE_MAX_WIDTH_PX as Be, MOBILE_MEDIA_QUERY as Ve, PHONE_MEDIA_QUERY as He, TABLET_BREAKPOINT_PX as Ue, TABLET_MEDIA_QUERY as We } from "./constants/breakpoint.js";
38
- import { InitialsAvatar as Ge } from "./components/InitialsAvatar/InitialsAvatar.js";
39
- import { DeploymentIcon as Ke } from "./components/DeploymentIcon/DeploymentIcon.js";
40
- import { CopyButton as qe, CopyIconButton as Je } from "./components/CopyButton/CopyButton.js";
41
- import { extractInitials as Ye } from "./utils/initials.js";
42
- import { pickAvatarColor as Xe } from "./utils/avatar-color.js";
43
- import { useIsPhone as Ze } from "./hooks/useIsPhone.js";
44
- import { ActionMenu as Qe } from "./components/ActionMenu/ActionMenu.js";
45
- import { PanelEmptyState as $e } from "./components/PanelEmptyState/PanelEmptyState.js";
46
- import { NewVersionAlert as et } from "./components/NewVersionAlert/NewVersionAlert.js";
47
- import { NotificationStack as tt } from "./components/NotificationStack/NotificationStack.js";
48
- import { ItemHeader as nt } from "./components/ItemHeader/ItemHeader.js";
49
- import { EntityTypeLabel as rt } from "./components/EntityTypeLabel/EntityTypeLabel.js";
50
- import { FeaturedChip as it } from "./components/FeaturedChip/FeaturedChip.js";
51
- import { EntityHeader as at } from "./components/EntityHeader/EntityHeader.js";
52
- import { ResourceSummary as ot } from "./components/ResourceSummary/ResourceSummary.js";
53
- import { ConfirmationIdentityCard as st } from "./components/ConfirmationIdentityCard/ConfirmationIdentityCard.js";
54
- import { ConfirmationIdentityRow as ct } from "./components/ConfirmationIdentityRow/ConfirmationIdentityRow.js";
55
- import { ConfirmationView as lt } from "./components/ConfirmationView/ConfirmationView.js";
56
- import { ConfirmationFooter as ut } from "./components/ConfirmationView/ConfirmationFooter.js";
57
- import { ConfirmationDialog as dt } from "./components/ConfirmationDialog/ConfirmationDialog.js";
58
- import { DELETE_CONFIRMATION_MAX_LISTED_NAMES as ft, DeleteConfirmationView as pt } from "./components/DeleteConfirmationView/DeleteConfirmationView.js";
59
- import { DeleteConfirmationDialog as mt } from "./components/DeleteConfirmationDialog/DeleteConfirmationDialog.js";
60
- import { DeleteConfirmationDrawer as ht } from "./components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.js";
61
- import { TableHeader as gt } from "./components/MarkdownRenderer/Table/TableHeader.js";
62
- import { TextRefinementState as _t, useTextRefinement as vt } from "./hooks/useTextRefinement.js";
63
- import { TextRefinementField as yt } from "./components/TextRefinementField/TextRefinementField.js";
64
- import { CHAT_SHARED_CLASS as bt } from "./constants/public-class-names.js";
65
- import { useCodeCopy as xt } from "./hooks/useCodeCopy.js";
66
- import { restrainedSyntaxTheme as St } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
67
- import { MarkdownCodeBlock as Ct } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
68
- import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as wt, MARKDOWN_TABLE_CSV_MIME_TYPE as Tt, MarkdownTableCopyFormat as Et, serializeMarkdownTableRows as Dt } from "./components/MarkdownRenderer/Table/table-serialization.js";
69
- import { MarkdownTable as Ot } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
70
- import { MarkdownRenderer as kt, defaultMarkdownComponents as At } from "./components/MarkdownRenderer/MarkdownRenderer.js";
71
- import { COMPACT_MARKDOWN_CLASS_NAMES as jt, DEFAULT_MARKDOWN_CLASS_NAMES as Mt } from "./components/MarkdownRenderer/markdown-class-names.js";
72
- import { PlainTextRenderer as Nt } from "./components/MarkdownRenderer/PlainTextRenderer.js";
73
- import { MDMessageViewer as Pt } from "./components/MarkdownRenderer/MDMessageViewer.js";
74
- import { MarkdownWithPlaceholders as Ft } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
75
- import { buildInlineSegmentSource as It, createInlineSegmentComponents as Lt, createRehypeInlineSegments as Rt } from "./utils/inline-segments.js";
76
- import { useCollapsedText as zt } from "./hooks/useCollapsedText.js";
77
- import { useAvailableHeightCap as Bt } from "./hooks/useAvailableHeightCap.js";
78
- import { useControlErrorAssociation as Vt } from "./hooks/useControlErrorAssociation.js";
79
- import { useIsMobile as Ht } from "./hooks/useIsMobile.js";
80
- import { useIsTablet as Ut } from "./hooks/useIsTablet.js";
81
- import { useIsTextClipped as Wt } from "./hooks/useIsTextClipped.js";
82
- import { useIsVerticallyClamped as Gt } from "./hooks/useIsVerticallyClamped.js";
83
- import { useUnsavedChangesGuard as Kt } from "./hooks/useUnsavedChangesGuard.js";
84
- import { useUnsavedChanges as qt } from "./components/UnsavedChangesProvider/unsaved-changes-context.js";
85
- import { useUnsavedChangesLeaveGuard as Jt } from "./hooks/useUnsavedChangesLeaveGuard.js";
86
- import { useUnsavedChangesLeaveConfirmation as Yt } from "./hooks/useUnsavedChangesLeaveConfirmation.js";
87
- import { UnsavedChangesProvider as Xt } from "./components/UnsavedChangesProvider/UnsavedChangesProvider.js";
88
- import { DialFileManagerActionProfile as Zt, DialFileManagerVariant as Qt } from "./file-manager/file-manager-variant.js";
89
- import { getParentFolderPath as $t, isHiddenPath as en } from "./file-manager/path.js";
90
- import { FileDownloadStatus as tn, FileUploadFailureReason as nn, FileUploadStatus as rn, isDownloadInProgress as an, isUploadInProgress as on } from "./file-manager/upload-batch.js";
91
- import { useGridEditingScroll as sn } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
92
- import { OperationLoaderModal as cn } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
93
- import { isSkillSelectionUnsupported as ln } from "./utils/is-skill-selection-unsupported.js";
94
- import { toConversationTransferQueueItems as un } from "./conversation-transfer/conversation-transfer-queue.js";
95
- export { Qe as ActionMenu, m as AttachmentErrorReason, h as AttachmentType, Ee as BASE_LG_ICON_PROPS, De as BASE_MD_ICON_PROPS, s as BackgroundGenerationStatus, bt as CHAT_SHARED_CLASS, jt as COMPACT_MARKDOWN_CLASS_NAMES, g as CatalogEntityType, y as CodeBlockTheme, dt as ConfirmationDialog, ut as ConfirmationFooter, st as ConfirmationIdentityCard, ct as ConfirmationIdentityRow, lt as ConfirmationView, a as ConversationKind, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, qe as CopyButton, Je as CopyIconButton, Mt as DEFAULT_MARKDOWN_CLASS_NAMES, wt as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, ft as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Re as DESKTOP_BREAKPOINT_PX, ze as DESKTOP_MEDIA_QUERY, mt as DeleteConfirmationDialog, ht as DeleteConfirmationDrawer, pt as DeleteConfirmationView, Ke as DeploymentIcon, Zt as DialFileManagerActionProfile, Qt as DialFileManagerVariant, z as ENTITY_DESCRIPTION_MAX_LENGTH, B as ENTITY_INSTRUCTIONS_MAX_LENGTH, V as ENTITY_NAME_MAX_LENGTH, ge as ENTITY_TYPE_BG_COLOR, _e as ENTITY_TYPE_COLOR, at as EntityHeader, rt as EntityTypeLabel, it as FeaturedChip, tn as FileDownloadStatus, _ as FileExtension, nn as FileUploadFailureReason, rn as FileUploadStatus, o as FilterTab, Oe as HIDDEN_FILE, Ge as InitialsAvatar, nt as ItemHeader, je as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, Me as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, Fe as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, Tt as MARKDOWN_TABLE_CSV_MIME_TYPE, Pt as MDMessageViewer, v as MIMEType, b as MIME_TYPE_ALIASES, x as MIME_TYPE_AUDIO_PREFIX, S as MIME_TYPE_EXT_MAP, C as MIME_TYPE_WILDCARD, Be as MOBILE_MAX_WIDTH_PX, Ve as MOBILE_MEDIA_QUERY, Ct as MarkdownCodeBlock, kt as MarkdownRenderer, Ot as MarkdownTable, Et as MarkdownTableCopyFormat, Ft as MarkdownWithPlaceholders, c as MessageRating, l as MessageRole, et as NewVersionAlert, tt as NotificationStack, cn as OperationLoaderModal, He as PHONE_MEDIA_QUERY, P as PROHIBITED_CONVERSATION_NAME_CHARS_RE, ve as PROMPT_PARAM_DEFAULT_SEPARATOR, ye as PROMPT_PARAM_PATTERN, be as PROMPT_VARIABLE_CLASS_NAME, ke as PUBLIC_BUCKET, $e as PanelEmptyState, Nt as PlainTextRenderer, Ne as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, Pe as RESIZABLE_TEXTAREA_CLASS_NAME, u as RequestStatus, ot as ResourceSummary, p as ResponseFormat, Ie as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Le as SELECT_LIST_MAX_HEIGHT_PX, d as StageStatus, f as StatusEvent, Ue as TABLET_BREAKPOINT_PX, We as TABLET_MEDIA_QUERY, Ae as TAG_INPUT_TAG_CLASS_NAME, gt as TableHeader, yt as TextRefinementField, _t as TextRefinementState, Xt as UnsavedChangesProvider, ce as base64ToBlob, G as buildCssVars, It as buildInlineSegmentSource, xe as buildPromptParamDefaults, $ as copyMarkdownAsRichText, ee as copyToClipboard, Lt as createInlineSegmentComponents, Rt as createRehypeInlineSegments, M as decodeJsonFromBase64, At as defaultMarkdownComponents, le as downloadTextFile, N as encodeJsonToBase64, ue as ensureDownloadFilename, H as exceedsMaxLength, Ye as extractInitials, Se as extractPromptParams, ae as formatCost, ie as formatFileSize, re as formatLastUsed, oe as formatPrice, se as formatUnitPrice, Te as generateUUID, w as getAttachmentTypeFromMime, T as getBaseMimeType, de as getFileExtensionForLanguage, $t as getParentFolderPath, F as getUtf8ByteLength, U as hasControlCharacters, E as inferMimeTypeFromPath, k as isAnnotationSelector, Q as isAudioTranscriptionSupported, an as isDownloadInProgress, en as isHiddenPath, K as isOrgUnitFolder, ln as isSkillSelectionUnsupported, Y as isStatusMessage, he as isSyntaxHighlightingAllowed, on as isUploadInProgress, ne as makeOutsideInert, te as markdownToRichTextHtml, W as mergeClasses, X as messageAttachmentToDisplayAttachment, Z as messageAttachmentsToDisplayAttachments, D as normalizeMimeType, q as normalizeOrgUnitFolder, A as normalizePersistedHtmlTagAttachmentType, j as normalizeRawAnnotations, Xe as pickAvatarColor, Ce as rehypePromptVariables, we as resolvePromptParams, St as restrainedSyntaxTheme, I as sanitizeConversationName, Dt as serializeMarkdownTableRows, L as stripTrailingDots, O as stripUrlQueryAndFragment, un as toConversationTransferQueueItems, J as toOrgUnitFolderSet, fe as triggerAnchorDownload, pe as triggerBlobDownload, R as truncateToUtf8Bytes, me as tryBase64ToBytes, Bt as useAvailableHeightCap, xt as useCodeCopy, zt as useCollapsedText, Vt as useControlErrorAssociation, sn as useGridEditingScroll, Ht as useIsMobile, Ze as useIsPhone, Ut as useIsTablet, Wt as useIsTextClipped, Gt as useIsVerticallyClamped, vt as useTextRefinement, qt as useUnsavedChanges, Kt as useUnsavedChangesGuard, Yt as useUnsavedChangesLeaveConfirmation, Jt as useUnsavedChangesLeaveGuard };
15
+ import { RESOURCE_VERSION_PATTERN as W, STORED_RESOURCE_VERSION_PATTERN as G } from "./utils/resource-version.js";
16
+ import { mergeClasses as K } from "./utils/merge-class.js";
17
+ import { buildCssVars as q } from "./utils/build-css-vars.js";
18
+ import { isOrgUnitFolder as J, normalizeOrgUnitFolder as Y, toOrgUnitFolderSet as X } from "./utils/org-unit.js";
19
+ import { isStatusMessage as Z } from "./utils/message.js";
20
+ import { messageAttachmentToDisplayAttachment as Q, messageAttachmentsToDisplayAttachments as $ } from "./utils/message-attachment-to-display.js";
21
+ import { isAudioTranscriptionSupported as ee } from "./utils/is-audio-transcription-supported.js";
22
+ import { copyMarkdownAsRichText as te, copyToClipboard as ne, markdownToRichTextHtml as re } from "./utils/copy-to-clipboard.js";
23
+ import { makeOutsideInert as ie } from "./utils/dom.js";
24
+ import { formatLastUsed as ae } from "./utils/format-last-used.js";
25
+ import { formatFileSize as oe } from "./utils/format-file-size.js";
26
+ import { formatCost as se, formatPrice as ce, formatUnitPrice as le } from "./utils/format-price.js";
27
+ import { base64ToBlob as ue, downloadTextFile as de, ensureDownloadFilename as fe, getFileExtensionForLanguage as pe, triggerAnchorDownload as me, triggerBlobDownload as he, tryBase64ToBytes as ge } from "./utils/file-download.js";
28
+ import { isSyntaxHighlightingAllowed as _e } from "./utils/syntax-highlighting.js";
29
+ import { ENTITY_TYPE_BG_COLOR as ve, ENTITY_TYPE_COLOR as ye } from "./constants/entity-colors.js";
30
+ import { PROMPT_PARAM_DEFAULT_SEPARATOR as be, PROMPT_PARAM_PATTERN as xe, PROMPT_VARIABLE_CLASS_NAME as Se, buildPromptParamDefaults as Ce, extractPromptParams as we, rehypePromptVariables as Te, resolvePromptParams as Ee } from "./utils/prompt-variables.js";
31
+ import { generateUUID as De } from "./utils/generate-uuid.js";
32
+ import { BASE_LG_ICON_PROPS as Oe, BASE_MD_ICON_PROPS as ke } from "./constants/icon.js";
33
+ import { HIDDEN_FILE as Ae, PUBLIC_BUCKET as je } from "./constants/dial.js";
34
+ import { TAG_INPUT_TAG_CLASS_NAME as Me } from "./constants/tag-input.js";
35
+ import { MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME as Ne, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as Pe, RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE as Fe, RESIZABLE_TEXTAREA_CLASS_NAME as Ie } from "./constants/resizable-fields.js";
36
+ import { MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as Le } from "./constants/markdown-editor.js";
37
+ import { SELECT_LIST_MAX_HEIGHT_CLASS_NAME as Re, SELECT_LIST_MAX_HEIGHT_PX as ze } from "./constants/select-list.js";
38
+ import { DESKTOP_BREAKPOINT_PX as Be, DESKTOP_MEDIA_QUERY as Ve, MOBILE_MAX_WIDTH_PX as He, MOBILE_MEDIA_QUERY as Ue, PHONE_MEDIA_QUERY as We, TABLET_BREAKPOINT_PX as Ge, TABLET_MEDIA_QUERY as Ke } from "./constants/breakpoint.js";
39
+ import { InitialsAvatar as qe } from "./components/InitialsAvatar/InitialsAvatar.js";
40
+ import { DeploymentIcon as Je } from "./components/DeploymentIcon/DeploymentIcon.js";
41
+ import { CopyButton as Ye, CopyIconButton as Xe } from "./components/CopyButton/CopyButton.js";
42
+ import { extractInitials as Ze } from "./utils/initials.js";
43
+ import { pickAvatarColor as Qe } from "./utils/avatar-color.js";
44
+ import { useIsPhone as $e } from "./hooks/useIsPhone.js";
45
+ import { ActionMenu as et } from "./components/ActionMenu/ActionMenu.js";
46
+ import { PanelEmptyState as tt } from "./components/PanelEmptyState/PanelEmptyState.js";
47
+ import { NewVersionAlert as nt } from "./components/NewVersionAlert/NewVersionAlert.js";
48
+ import { NotificationStack as rt } from "./components/NotificationStack/NotificationStack.js";
49
+ import { ItemHeader as it } from "./components/ItemHeader/ItemHeader.js";
50
+ import { EntityTypeLabel as at } from "./components/EntityTypeLabel/EntityTypeLabel.js";
51
+ import { FeaturedChip as ot } from "./components/FeaturedChip/FeaturedChip.js";
52
+ import { EntityHeader as st } from "./components/EntityHeader/EntityHeader.js";
53
+ import { ResourceSummary as ct } from "./components/ResourceSummary/ResourceSummary.js";
54
+ import { ConfirmationIdentityCard as lt } from "./components/ConfirmationIdentityCard/ConfirmationIdentityCard.js";
55
+ import { ConfirmationIdentityRow as ut } from "./components/ConfirmationIdentityRow/ConfirmationIdentityRow.js";
56
+ import { ConfirmationView as dt } from "./components/ConfirmationView/ConfirmationView.js";
57
+ import { ConfirmationFooter as ft } from "./components/ConfirmationView/ConfirmationFooter.js";
58
+ import { ConfirmationDialog as pt } from "./components/ConfirmationDialog/ConfirmationDialog.js";
59
+ import { DELETE_CONFIRMATION_MAX_LISTED_NAMES as mt, DeleteConfirmationView as ht } from "./components/DeleteConfirmationView/DeleteConfirmationView.js";
60
+ import { DeleteConfirmationDialog as gt } from "./components/DeleteConfirmationDialog/DeleteConfirmationDialog.js";
61
+ import { DeleteConfirmationDrawer as _t } from "./components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.js";
62
+ import { TableHeader as vt } from "./components/MarkdownRenderer/Table/TableHeader.js";
63
+ import { TextRefinementState as yt, useTextRefinement as bt } from "./hooks/useTextRefinement.js";
64
+ import { TextRefinementField as xt } from "./components/TextRefinementField/TextRefinementField.js";
65
+ import { CHAT_SHARED_CLASS as St } from "./constants/public-class-names.js";
66
+ import { useCodeCopy as Ct } from "./hooks/useCodeCopy.js";
67
+ import { restrainedSyntaxTheme as wt } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
68
+ import { MarkdownCodeBlock as Tt } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
69
+ import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as Et, MARKDOWN_TABLE_CSV_MIME_TYPE as Dt, MarkdownTableCopyFormat as Ot, serializeMarkdownTableRows as kt } from "./components/MarkdownRenderer/Table/table-serialization.js";
70
+ import { MarkdownTable as At } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
71
+ import { MarkdownRenderer as jt, defaultMarkdownComponents as Mt } from "./components/MarkdownRenderer/MarkdownRenderer.js";
72
+ import { COMPACT_MARKDOWN_CLASS_NAMES as Nt, DEFAULT_MARKDOWN_CLASS_NAMES as Pt } from "./components/MarkdownRenderer/markdown-class-names.js";
73
+ import { PlainTextRenderer as Ft } from "./components/MarkdownRenderer/PlainTextRenderer.js";
74
+ import { MDMessageViewer as It } from "./components/MarkdownRenderer/MDMessageViewer.js";
75
+ import { MarkdownWithPlaceholders as Lt } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
76
+ import { buildInlineSegmentSource as Rt, createInlineSegmentComponents as zt, createRehypeInlineSegments as Bt } from "./utils/inline-segments.js";
77
+ import { useCollapsedText as Vt } from "./hooks/useCollapsedText.js";
78
+ import { useAvailableHeightCap as Ht } from "./hooks/useAvailableHeightCap.js";
79
+ import { useControlErrorAssociation as Ut } from "./hooks/useControlErrorAssociation.js";
80
+ import { useIsMobile as Wt } from "./hooks/useIsMobile.js";
81
+ import { useIsTablet as Gt } from "./hooks/useIsTablet.js";
82
+ import { useIsTextClipped as Kt } from "./hooks/useIsTextClipped.js";
83
+ import { useIsVerticallyClamped as qt } from "./hooks/useIsVerticallyClamped.js";
84
+ import { useUnsavedChangesGuard as Jt } from "./hooks/useUnsavedChangesGuard.js";
85
+ import { useUnsavedChanges as Yt } from "./components/UnsavedChangesProvider/unsaved-changes-context.js";
86
+ import { useUnsavedChangesLeaveGuard as Xt } from "./hooks/useUnsavedChangesLeaveGuard.js";
87
+ import { useUnsavedChangesLeaveConfirmation as Zt } from "./hooks/useUnsavedChangesLeaveConfirmation.js";
88
+ import { UnsavedChangesProvider as Qt } from "./components/UnsavedChangesProvider/UnsavedChangesProvider.js";
89
+ import { DialFileManagerActionProfile as $t, DialFileManagerVariant as en } from "./file-manager/file-manager-variant.js";
90
+ import { getParentFolderPath as tn, isHiddenPath as nn } from "./file-manager/path.js";
91
+ import { FileDownloadStatus as rn, FileUploadFailureReason as an, FileUploadStatus as on, isDownloadInProgress as sn, isUploadInProgress as cn } from "./file-manager/upload-batch.js";
92
+ import { useGridEditingScroll as ln } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
93
+ import { OperationLoaderModal as un } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
94
+ import { isSkillSelectionUnsupported as dn } from "./utils/is-skill-selection-unsupported.js";
95
+ import { toConversationTransferQueueItems as fn } from "./conversation-transfer/conversation-transfer-queue.js";
96
+ export { et as ActionMenu, m as AttachmentErrorReason, h as AttachmentType, Oe as BASE_LG_ICON_PROPS, ke as BASE_MD_ICON_PROPS, s as BackgroundGenerationStatus, St as CHAT_SHARED_CLASS, Nt as COMPACT_MARKDOWN_CLASS_NAMES, g as CatalogEntityType, y as CodeBlockTheme, pt as ConfirmationDialog, ft as ConfirmationFooter, lt as ConfirmationIdentityCard, ut as ConfirmationIdentityRow, dt as ConfirmationView, a as ConversationKind, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, Ye as CopyButton, Xe as CopyIconButton, Pt as DEFAULT_MARKDOWN_CLASS_NAMES, Et as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, mt as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Be as DESKTOP_BREAKPOINT_PX, Ve as DESKTOP_MEDIA_QUERY, gt as DeleteConfirmationDialog, _t as DeleteConfirmationDrawer, ht as DeleteConfirmationView, Je as DeploymentIcon, $t as DialFileManagerActionProfile, en as DialFileManagerVariant, z as ENTITY_DESCRIPTION_MAX_LENGTH, B as ENTITY_INSTRUCTIONS_MAX_LENGTH, V as ENTITY_NAME_MAX_LENGTH, ve as ENTITY_TYPE_BG_COLOR, ye as ENTITY_TYPE_COLOR, st as EntityHeader, at as EntityTypeLabel, ot as FeaturedChip, rn as FileDownloadStatus, _ as FileExtension, an as FileUploadFailureReason, on as FileUploadStatus, o as FilterTab, Ae as HIDDEN_FILE, qe as InitialsAvatar, it as ItemHeader, Ne as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, Pe as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, Le as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, Dt as MARKDOWN_TABLE_CSV_MIME_TYPE, It as MDMessageViewer, v as MIMEType, b as MIME_TYPE_ALIASES, x as MIME_TYPE_AUDIO_PREFIX, S as MIME_TYPE_EXT_MAP, C as MIME_TYPE_WILDCARD, He as MOBILE_MAX_WIDTH_PX, Ue as MOBILE_MEDIA_QUERY, Tt as MarkdownCodeBlock, jt as MarkdownRenderer, At as MarkdownTable, Ot as MarkdownTableCopyFormat, Lt as MarkdownWithPlaceholders, c as MessageRating, l as MessageRole, nt as NewVersionAlert, rt as NotificationStack, un as OperationLoaderModal, We as PHONE_MEDIA_QUERY, P as PROHIBITED_CONVERSATION_NAME_CHARS_RE, be as PROMPT_PARAM_DEFAULT_SEPARATOR, xe as PROMPT_PARAM_PATTERN, Se as PROMPT_VARIABLE_CLASS_NAME, je as PUBLIC_BUCKET, tt as PanelEmptyState, Ft as PlainTextRenderer, Fe as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, Ie as RESIZABLE_TEXTAREA_CLASS_NAME, W as RESOURCE_VERSION_PATTERN, u as RequestStatus, ct as ResourceSummary, p as ResponseFormat, Re as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, ze as SELECT_LIST_MAX_HEIGHT_PX, G as STORED_RESOURCE_VERSION_PATTERN, d as StageStatus, f as StatusEvent, Ge as TABLET_BREAKPOINT_PX, Ke as TABLET_MEDIA_QUERY, Me as TAG_INPUT_TAG_CLASS_NAME, vt as TableHeader, xt as TextRefinementField, yt as TextRefinementState, Qt as UnsavedChangesProvider, ue as base64ToBlob, q as buildCssVars, Rt as buildInlineSegmentSource, Ce as buildPromptParamDefaults, te as copyMarkdownAsRichText, ne as copyToClipboard, zt as createInlineSegmentComponents, Bt as createRehypeInlineSegments, M as decodeJsonFromBase64, Mt as defaultMarkdownComponents, de as downloadTextFile, N as encodeJsonToBase64, fe as ensureDownloadFilename, H as exceedsMaxLength, Ze as extractInitials, we as extractPromptParams, se as formatCost, oe as formatFileSize, ae as formatLastUsed, ce as formatPrice, le as formatUnitPrice, De as generateUUID, w as getAttachmentTypeFromMime, T as getBaseMimeType, pe as getFileExtensionForLanguage, tn as getParentFolderPath, F as getUtf8ByteLength, U as hasControlCharacters, E as inferMimeTypeFromPath, k as isAnnotationSelector, ee as isAudioTranscriptionSupported, sn as isDownloadInProgress, nn as isHiddenPath, J as isOrgUnitFolder, dn as isSkillSelectionUnsupported, Z as isStatusMessage, _e as isSyntaxHighlightingAllowed, cn as isUploadInProgress, ie as makeOutsideInert, re as markdownToRichTextHtml, K as mergeClasses, Q as messageAttachmentToDisplayAttachment, $ as messageAttachmentsToDisplayAttachments, D as normalizeMimeType, Y as normalizeOrgUnitFolder, A as normalizePersistedHtmlTagAttachmentType, j as normalizeRawAnnotations, Qe as pickAvatarColor, Te as rehypePromptVariables, Ee as resolvePromptParams, wt as restrainedSyntaxTheme, I as sanitizeConversationName, kt as serializeMarkdownTableRows, L as stripTrailingDots, O as stripUrlQueryAndFragment, fn as toConversationTransferQueueItems, X as toOrgUnitFolderSet, me as triggerAnchorDownload, he as triggerBlobDownload, R as truncateToUtf8Bytes, ge as tryBase64ToBytes, Ht as useAvailableHeightCap, Ct as useCodeCopy, Vt as useCollapsedText, Ut as useControlErrorAssociation, ln as useGridEditingScroll, Wt as useIsMobile, $e as useIsPhone, Gt as useIsTablet, Kt as useIsTextClipped, qt as useIsVerticallyClamped, bt as useTextRefinement, Yt as useUnsavedChanges, Jt as useUnsavedChangesGuard, Zt as useUnsavedChangesLeaveConfirmation, Xt as useUnsavedChangesLeaveGuard };
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.4.0-dev.68",
4
+ "version": "1.4.0-dev.69",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -0,0 +1,5 @@
1
+ /** Accepts a resource version of 1-64 letters, digits, `_`, `.`, `+` or `-` that does not end with a dot, does not contain `__` and does not start with `_`. */
2
+ export declare const RESOURCE_VERSION_PATTERN: RegExp;
3
+ /** Accepts a version of letters, digits, `_`, `.`, `+` or `-` that is not made of dots only, with no length limit. */
4
+ export declare const STORED_RESOURCE_VERSION_PATTERN: RegExp;
5
+ //# sourceMappingURL=resource-version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-version.d.ts","sourceRoot":"","sources":["../../src/utils/resource-version.ts"],"names":[],"mappings":"AAcA,gKAAgK;AAChK,eAAO,MAAM,wBAAwB,QAA0C,CAAC;AAUhF,sHAAsH;AACtH,eAAO,MAAM,+BAA+B,QAAuB,CAAC"}
@@ -0,0 +1,4 @@
1
+ //#region src/utils/resource-version.ts
2
+ var e = /^(?!.*\.$)(?!.*__)(?!_)[\w.+-]{1,64}$/, t = /^(?!\.+$)[\w.+-]+$/;
3
+ //#endregion
4
+ export { e as RESOURCE_VERSION_PATTERN, t as STORED_RESOURCE_VERSION_PATTERN };