@epam/ai-dial-chat-shared 1.3.0 → 1.3.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DeploymentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentIcon/DeploymentIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAM7E,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,4CAA4C;AAC5C,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,uBAAuB;IACvB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED,8HAA8H;AAC9H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA8FlD,CAAC"}
1
+ {"version":3,"file":"DeploymentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentIcon/DeploymentIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAM7E,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,4CAA4C;AAC5C,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,uBAAuB;IACvB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED,8HAA8H;AAC9H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAoGlD,CAAC"}
@@ -48,6 +48,10 @@ var l = ({ src: l, size: u, initialsName: d, fallback: f, labels: p, styles: m }
48
48
  ref: C,
49
49
  src: y,
50
50
  alt: "",
51
+ width: u,
52
+ height: u,
53
+ loading: "lazy",
54
+ decoding: "async",
51
55
  className: "size-full object-contain"
52
56
  })
53
57
  })
package/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './models/application-visualizer';
16
16
  export * from './models/entity';
17
17
  export * from './models/locale';
18
18
  export * from './models/inline-segment';
19
+ export * from './models/org-unit';
19
20
  export * from './types/attachment';
20
21
  export * from './types/entity-type';
21
22
  export * from './types/mime-type';
@@ -27,6 +28,7 @@ export * from './utils/string-utils';
27
28
  export * from './utils/entity-field-limits';
28
29
  export * from './utils/merge-class';
29
30
  export * from './utils/build-css-vars';
31
+ export * from './utils/org-unit';
30
32
  export * from './utils/message';
31
33
  export * from './utils/message-attachment-to-display';
32
34
  export * from './utils/mime-type';
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,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,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uCAAuC,CAAC;AACtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,0CAA0C,CAAC;AACzD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sB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AC;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
@@ -14,81 +14,82 @@ import { PROHIBITED_CONVERSATION_NAME_CHARS_RE as P, getUtf8ByteLength as F, san
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
15
  import { mergeClasses as W } from "./utils/merge-class.js";
16
16
  import { buildCssVars as G } from "./utils/build-css-vars.js";
17
- import { isStatusMessage as K } from "./utils/message.js";
18
- import { messageAttachmentToDisplayAttachment as q, messageAttachmentsToDisplayAttachments as J } from "./utils/message-attachment-to-display.js";
19
- import { isAudioTranscriptionSupported as Y } from "./utils/is-audio-transcription-supported.js";
20
- import { copyMarkdownAsRichText as X, copyToClipboard as Z, markdownToRichTextHtml as Q } from "./utils/copy-to-clipboard.js";
21
- import { makeOutsideInert as $ } from "./utils/dom.js";
22
- import { formatLastUsed as ee } from "./utils/format-last-used.js";
23
- import { formatFileSize as te } from "./utils/format-file-size.js";
24
- import { formatCost as ne, formatPrice as re, formatUnitPrice as ie } from "./utils/format-price.js";
25
- import { base64ToBlob as ae, downloadTextFile as oe, ensureDownloadFilename as se, getFileExtensionForLanguage as ce, triggerAnchorDownload as le, triggerBlobDownload as ue, tryBase64ToBytes as de } from "./utils/file-download.js";
26
- import { isSyntaxHighlightingAllowed as fe } from "./utils/syntax-highlighting.js";
27
- import { ENTITY_TYPE_BG_COLOR as pe, ENTITY_TYPE_COLOR as me } from "./constants/entity-colors.js";
28
- import { PROMPT_PARAM_DEFAULT_SEPARATOR as he, PROMPT_PARAM_PATTERN as ge, PROMPT_VARIABLE_CLASS_NAME as _e, buildPromptParamDefaults as ve, extractPromptParams as ye, rehypePromptVariables as be, resolvePromptParams as xe } from "./utils/prompt-variables.js";
29
- import { generateUUID as Se } from "./utils/generate-uuid.js";
30
- import { BASE_LG_ICON_PROPS as Ce, BASE_MD_ICON_PROPS as we } from "./constants/icon.js";
31
- import { HIDDEN_FILE as Te, PUBLIC_BUCKET as Ee } from "./constants/dial.js";
32
- import { TAG_INPUT_TAG_CLASS_NAME as De } from "./constants/tag-input.js";
33
- import { MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME as Oe, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as ke, RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE as Ae, RESIZABLE_TEXTAREA_CLASS_NAME as je } from "./constants/resizable-fields.js";
34
- import { MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as Me } from "./constants/markdown-editor.js";
35
- import { SELECT_LIST_MAX_HEIGHT_CLASS_NAME as Ne, SELECT_LIST_MAX_HEIGHT_PX as Pe } from "./constants/select-list.js";
36
- import { DESKTOP_BREAKPOINT_PX as Fe, DESKTOP_MEDIA_QUERY as Ie, MOBILE_MAX_WIDTH_PX as Le, MOBILE_MEDIA_QUERY as Re, PHONE_MEDIA_QUERY as ze, TABLET_BREAKPOINT_PX as Be, TABLET_MEDIA_QUERY as Ve } from "./constants/breakpoint.js";
37
- import { InitialsAvatar as He } from "./components/InitialsAvatar/InitialsAvatar.js";
38
- import { DeploymentIcon as Ue } from "./components/DeploymentIcon/DeploymentIcon.js";
39
- import { CopyButton as We, CopyIconButton as Ge } from "./components/CopyButton/CopyButton.js";
40
- import { extractInitials as Ke } from "./utils/initials.js";
41
- import { pickAvatarColor as qe } from "./utils/avatar-color.js";
42
- import { useIsPhone as Je } from "./hooks/useIsPhone.js";
43
- import { ActionMenu as Ye } from "./components/ActionMenu/ActionMenu.js";
44
- import { PanelEmptyState as Xe } from "./components/PanelEmptyState/PanelEmptyState.js";
45
- import { NewVersionAlert as Ze } from "./components/NewVersionAlert/NewVersionAlert.js";
46
- import { NotificationStack as Qe } from "./components/NotificationStack/NotificationStack.js";
47
- import { ItemHeader as $e } from "./components/ItemHeader/ItemHeader.js";
48
- import { EntityTypeLabel as et } from "./components/EntityTypeLabel/EntityTypeLabel.js";
49
- import { FeaturedChip as tt } from "./components/FeaturedChip/FeaturedChip.js";
50
- import { EntityHeader as nt } from "./components/EntityHeader/EntityHeader.js";
51
- import { ResourceSummary as rt } from "./components/ResourceSummary/ResourceSummary.js";
52
- import { ConfirmationIdentityCard as it } from "./components/ConfirmationIdentityCard/ConfirmationIdentityCard.js";
53
- import { ConfirmationIdentityRow as at } from "./components/ConfirmationIdentityRow/ConfirmationIdentityRow.js";
54
- import { ConfirmationView as ot } from "./components/ConfirmationView/ConfirmationView.js";
55
- import { ConfirmationFooter as st } from "./components/ConfirmationView/ConfirmationFooter.js";
56
- import { ConfirmationDialog as ct } from "./components/ConfirmationDialog/ConfirmationDialog.js";
57
- import { DELETE_CONFIRMATION_MAX_LISTED_NAMES as lt, DeleteConfirmationView as ut } from "./components/DeleteConfirmationView/DeleteConfirmationView.js";
58
- import { DeleteConfirmationDialog as dt } from "./components/DeleteConfirmationDialog/DeleteConfirmationDialog.js";
59
- import { DeleteConfirmationDrawer as ft } from "./components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.js";
60
- import { TableHeader as pt } from "./components/MarkdownRenderer/Table/TableHeader.js";
61
- import { TextRefinementState as mt, useTextRefinement as ht } from "./hooks/useTextRefinement.js";
62
- import { TextRefinementField as gt } from "./components/TextRefinementField/TextRefinementField.js";
63
- import { CHAT_SHARED_CLASS as _t } from "./constants/public-class-names.js";
64
- import { useCodeCopy as vt } from "./hooks/useCodeCopy.js";
65
- import { restrainedSyntaxTheme as yt } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
66
- import { MarkdownCodeBlock as bt } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
67
- import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as xt, MARKDOWN_TABLE_CSV_MIME_TYPE as St, MarkdownTableCopyFormat as Ct, serializeMarkdownTableRows as wt } from "./components/MarkdownRenderer/Table/table-serialization.js";
68
- import { MarkdownTable as Tt } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
69
- import { MarkdownRenderer as Et, defaultMarkdownComponents as Dt } from "./components/MarkdownRenderer/MarkdownRenderer.js";
70
- import { COMPACT_MARKDOWN_CLASS_NAMES as Ot, DEFAULT_MARKDOWN_CLASS_NAMES as kt } from "./components/MarkdownRenderer/markdown-class-names.js";
71
- import { PlainTextRenderer as At } from "./components/MarkdownRenderer/PlainTextRenderer.js";
72
- import { MDMessageViewer as jt } from "./components/MarkdownRenderer/MDMessageViewer.js";
73
- import { MarkdownWithPlaceholders as Mt } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
74
- import { buildInlineSegmentSource as Nt, createInlineSegmentComponents as Pt, createRehypeInlineSegments as Ft } from "./utils/inline-segments.js";
75
- import { useCollapsedText as It } from "./hooks/useCollapsedText.js";
76
- import { useAvailableHeightCap as Lt } from "./hooks/useAvailableHeightCap.js";
77
- import { useControlErrorAssociation as Rt } from "./hooks/useControlErrorAssociation.js";
78
- import { useIsMobile as zt } from "./hooks/useIsMobile.js";
79
- import { useIsTablet as Bt } from "./hooks/useIsTablet.js";
80
- import { useIsTextClipped as Vt } from "./hooks/useIsTextClipped.js";
81
- import { useIsVerticallyClamped as Ht } from "./hooks/useIsVerticallyClamped.js";
82
- import { useUnsavedChangesGuard as Ut } from "./hooks/useUnsavedChangesGuard.js";
83
- import { useUnsavedChanges as Wt } from "./components/UnsavedChangesProvider/unsaved-changes-context.js";
84
- import { useUnsavedChangesLeaveGuard as Gt } from "./hooks/useUnsavedChangesLeaveGuard.js";
85
- import { useUnsavedChangesLeaveConfirmation as Kt } from "./hooks/useUnsavedChangesLeaveConfirmation.js";
86
- import { UnsavedChangesProvider as qt } from "./components/UnsavedChangesProvider/UnsavedChangesProvider.js";
87
- import { DialFileManagerActionProfile as Jt, DialFileManagerVariant as Yt } from "./file-manager/file-manager-variant.js";
88
- import { getParentFolderPath as Xt, isHiddenPath as Zt } from "./file-manager/path.js";
89
- import { FileDownloadStatus as Qt, FileUploadFailureReason as $t, FileUploadStatus as en, isDownloadInProgress as tn, isUploadInProgress as nn } from "./file-manager/upload-batch.js";
90
- import { useGridEditingScroll as rn } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
91
- import { OperationLoaderModal as an } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
92
- import { isSkillSelectionUnsupported as on } from "./utils/is-skill-selection-unsupported.js";
93
- import { toConversationTransferQueueItems as sn } from "./conversation-transfer/conversation-transfer-queue.js";
94
- export { Ye as ActionMenu, m as AttachmentErrorReason, h as AttachmentType, Ce as BASE_LG_ICON_PROPS, we as BASE_MD_ICON_PROPS, s as BackgroundGenerationStatus, _t as CHAT_SHARED_CLASS, Ot as COMPACT_MARKDOWN_CLASS_NAMES, g as CatalogEntityType, y as CodeBlockTheme, ct as ConfirmationDialog, st as ConfirmationFooter, it as ConfirmationIdentityCard, at as ConfirmationIdentityRow, ot as ConfirmationView, a as ConversationKind, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, We as CopyButton, Ge as CopyIconButton, kt as DEFAULT_MARKDOWN_CLASS_NAMES, xt as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, lt as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Fe as DESKTOP_BREAKPOINT_PX, Ie as DESKTOP_MEDIA_QUERY, dt as DeleteConfirmationDialog, ft as DeleteConfirmationDrawer, ut as DeleteConfirmationView, Ue as DeploymentIcon, Jt as DialFileManagerActionProfile, Yt as DialFileManagerVariant, z as ENTITY_DESCRIPTION_MAX_LENGTH, B as ENTITY_INSTRUCTIONS_MAX_LENGTH, V as ENTITY_NAME_MAX_LENGTH, pe as ENTITY_TYPE_BG_COLOR, me as ENTITY_TYPE_COLOR, nt as EntityHeader, et as EntityTypeLabel, tt as FeaturedChip, Qt as FileDownloadStatus, _ as FileExtension, $t as FileUploadFailureReason, en as FileUploadStatus, o as FilterTab, Te as HIDDEN_FILE, He as InitialsAvatar, $e as ItemHeader, Oe as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, ke as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, Me as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, St as MARKDOWN_TABLE_CSV_MIME_TYPE, jt 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, Le as MOBILE_MAX_WIDTH_PX, Re as MOBILE_MEDIA_QUERY, bt as MarkdownCodeBlock, Et as MarkdownRenderer, Tt as MarkdownTable, Ct as MarkdownTableCopyFormat, Mt as MarkdownWithPlaceholders, c as MessageRating, l as MessageRole, Ze as NewVersionAlert, Qe as NotificationStack, an as OperationLoaderModal, ze as PHONE_MEDIA_QUERY, P as PROHIBITED_CONVERSATION_NAME_CHARS_RE, he as PROMPT_PARAM_DEFAULT_SEPARATOR, ge as PROMPT_PARAM_PATTERN, _e as PROMPT_VARIABLE_CLASS_NAME, Ee as PUBLIC_BUCKET, Xe as PanelEmptyState, At as PlainTextRenderer, Ae as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, je as RESIZABLE_TEXTAREA_CLASS_NAME, u as RequestStatus, rt as ResourceSummary, p as ResponseFormat, Ne as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Pe as SELECT_LIST_MAX_HEIGHT_PX, d as StageStatus, f as StatusEvent, Be as TABLET_BREAKPOINT_PX, Ve as TABLET_MEDIA_QUERY, De as TAG_INPUT_TAG_CLASS_NAME, pt as TableHeader, gt as TextRefinementField, mt as TextRefinementState, qt as UnsavedChangesProvider, ae as base64ToBlob, G as buildCssVars, Nt as buildInlineSegmentSource, ve as buildPromptParamDefaults, X as copyMarkdownAsRichText, Z as copyToClipboard, Pt as createInlineSegmentComponents, Ft as createRehypeInlineSegments, M as decodeJsonFromBase64, Dt as defaultMarkdownComponents, oe as downloadTextFile, N as encodeJsonToBase64, se as ensureDownloadFilename, H as exceedsMaxLength, Ke as extractInitials, ye as extractPromptParams, ne as formatCost, te as formatFileSize, ee as formatLastUsed, re as formatPrice, ie as formatUnitPrice, Se as generateUUID, w as getAttachmentTypeFromMime, T as getBaseMimeType, ce as getFileExtensionForLanguage, Xt as getParentFolderPath, F as getUtf8ByteLength, U as hasControlCharacters, E as inferMimeTypeFromPath, k as isAnnotationSelector, Y as isAudioTranscriptionSupported, tn as isDownloadInProgress, Zt as isHiddenPath, on as isSkillSelectionUnsupported, K as isStatusMessage, fe as isSyntaxHighlightingAllowed, nn as isUploadInProgress, $ as makeOutsideInert, Q as markdownToRichTextHtml, W as mergeClasses, q as messageAttachmentToDisplayAttachment, J as messageAttachmentsToDisplayAttachments, D as normalizeMimeType, A as normalizePersistedHtmlTagAttachmentType, j as normalizeRawAnnotations, qe as pickAvatarColor, be as rehypePromptVariables, xe as resolvePromptParams, yt as restrainedSyntaxTheme, I as sanitizeConversationName, wt as serializeMarkdownTableRows, L as stripTrailingDots, O as stripUrlQueryAndFragment, sn as toConversationTransferQueueItems, le as triggerAnchorDownload, ue as triggerBlobDownload, R as truncateToUtf8Bytes, de as tryBase64ToBytes, Lt as useAvailableHeightCap, vt as useCodeCopy, It as useCollapsedText, Rt as useControlErrorAssociation, rn as useGridEditingScroll, zt as useIsMobile, Je as useIsPhone, Bt as useIsTablet, Vt as useIsTextClipped, Ht as useIsVerticallyClamped, ht as useTextRefinement, Wt as useUnsavedChanges, Ut as useUnsavedChangesGuard, Kt as useUnsavedChangesLeaveConfirmation, Gt as useUnsavedChangesLeaveGuard };
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 };
@@ -0,0 +1,13 @@
1
+ /** A DIAL Core org unit: an organisation's folder in the public bucket. */
2
+ export interface OrgUnit {
3
+ id: string;
4
+ /** Unit name; also the last segment of its folder. */
5
+ name: string;
6
+ /** Name to show people; equals `name` when Core has none. */
7
+ displayName: string;
8
+ /** Decoded unit address without a trailing slash, e.g. `public/Acme/US Risk`. */
9
+ path: string;
10
+ /** Unit folder as DIAL Core returns it: url-encoded, with a trailing slash, e.g. `public/Acme/US%20Risk/`. */
11
+ folder: string;
12
+ }
13
+ //# sourceMappingURL=org-unit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org-unit.d.ts","sourceRoot":"","sources":["../../src/models/org-unit.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,8GAA8G;IAC9G,MAAM,EAAE,MAAM,CAAC;CAChB"}
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.3.0",
4
+ "version": "1.3.2",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -0,0 +1,17 @@
1
+ import { OrgUnit } from '../models/org-unit';
2
+ /**
3
+ * Returns a unit's Core `folder` (url-encoded, rooted at `public/`, e.g.
4
+ * `public/Acme/US%20Risk/`) as a decoded public-relative folder with one
5
+ * trailing slash (`Acme/US Risk/`), or `''` for the public root and for a
6
+ * folder outside `public/`.
7
+ */
8
+ export declare const normalizeOrgUnitFolder: (folder: string) => string;
9
+ /** The normalised folders of `units`, for repeated {@link isOrgUnitFolder} lookups. */
10
+ export declare const toOrgUnitFolderSet: (units: readonly OrgUnit[]) => ReadonlySet<string>;
11
+ /**
12
+ * Whether `publicPath` — a decoded path relative to the public bucket, as the
13
+ * file manager and the publish tree show it (`Acme/US Risk`) — is a unit's own
14
+ * folder. A folder inside a unit is not a unit.
15
+ */
16
+ export declare const isOrgUnitFolder: (unitFolders: ReadonlySet<string>, publicPath: string) => boolean;
17
+ //# sourceMappingURL=org-unit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org-unit.d.ts","sourceRoot":"","sources":["../../src/utils/org-unit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAmBlD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ,MAAM,KAAG,MAIvD,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,kBAAkB,GAC7B,OAAO,SAAS,OAAO,EAAE,KACxB,WAAW,CAAC,MAAM,CAKlB,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,aAAa,WAAW,CAAC,MAAM,CAAC,EAChC,YAAY,MAAM,KACjB,OAGF,CAAC"}
@@ -0,0 +1,16 @@
1
+ //#region src/utils/org-unit.ts
2
+ var e = (e) => {
3
+ try {
4
+ return decodeURIComponent(e);
5
+ } catch {
6
+ return e;
7
+ }
8
+ }, t = (e) => e.split("/").filter((e) => e !== ""), n = (e) => e.length === 0 ? "" : `${e.join("/")}/`, r = (r) => {
9
+ let [i, ...a] = t(r);
10
+ return i === "public" ? n(a.map(e)) : "";
11
+ }, i = (e) => new Set(e.map(({ folder: e }) => r(e)).filter((e) => e !== "")), a = (e, r) => {
12
+ let i = n(t(r));
13
+ return i !== "" && e.has(i);
14
+ };
15
+ //#endregion
16
+ export { a as isOrgUnitFolder, r as normalizeOrgUnitFolder, i as toOrgUnitFolderSet };