@epam/ai-dial-chat-shared 1.4.0-dev.12 → 1.4.0-dev.122

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
  })
@@ -1,6 +1,6 @@
1
1
  import { mergeClasses as e } from "../../../utils/merge-class.js";
2
2
  import { buildCssVars as t } from "../../../utils/build-css-vars.js";
3
- import { copyMarkdownAsRichText as n } from "../../../utils/copy-to-clipboard.js";
3
+ import { copyMarkdownAsRichText as n } from "../../../utils/markdown-rich-text.js";
4
4
  import { downloadTextFile as r } from "../../../utils/file-download.js";
5
5
  import { CHAT_SHARED_CLASS as i } from "../../../constants/public-class-names.js";
6
6
  import { useHorizontalOverflow as a } from "../../../hooks/useHorizontalOverflow.js";
@@ -1 +1 @@
1
- {"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAa1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAgDlE,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,0CAA0C;IAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,2DAA2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,yCAAyC;IACzC,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,mGAAmG;IACnG,OAAO,EAAE,sBAAsB,CAAC;IAChC,wEAAwE;IACxE,aAAa,EAAE,4BAA4B,CAAC;IAC5C,gFAAgF;IAChF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC,6JAA6J;IAC7J,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sMAAsM;IACtM,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QACvB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,0EAA0E;IAC1E,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACrD,0KAA0K;IAC1K,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA0nB9D,CAAC;;AAEF,wBAA0C"}
1
+ {"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAa1C,OAAO,EAML,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yB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,0EAA0E;IAC1E,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACrD,0KAA0K;IAC1K,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA2nB9D,CAAC;;AAEF,wBAA0C"}
@@ -68,7 +68,8 @@ var Ce = (e, t) => {
68
68
  domLayout: "normal",
69
69
  rowSelection: {
70
70
  mode: "multiRow",
71
- isRowSelectable: v ?? (() => !0)
71
+ isRowSelectable: v ?? (() => !0),
72
+ hideDisabledCheckboxes: !0
72
73
  }
73
74
  },
74
75
  actionLabels: J
@@ -1 +1 @@
1
- {"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsMobile.ts"],"names":[],"mappings":"AAQA,iGAAiG;AACjG,eAAO,MAAM,WAAW,QAAO,OAgB9B,CAAC"}
1
+ {"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsMobile.ts"],"names":[],"mappings":"AAGA,iGAAiG;AACjG,eAAO,MAAM,WAAW,QAAO,OACS,CAAC"}
@@ -1,13 +1,6 @@
1
1
  import { MOBILE_MEDIA_QUERY as e } from "../constants/breakpoint.js";
2
- import { useEffect as t, useState as n } from "react";
2
+ import { useMediaQueryMatch as t } from "./useMediaQueryMatch.js";
3
3
  //#region src/hooks/useIsMobile.ts
4
- var r = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(max-width: 1279px)").matches, i = () => {
5
- let [i, a] = n(r);
6
- return t(() => {
7
- if (typeof window > "u" || typeof window.matchMedia != "function") return;
8
- let t = window.matchMedia(e), n = () => a(t.matches);
9
- return t.addEventListener("change", n), () => t.removeEventListener("change", n);
10
- }, []), i;
11
- };
4
+ var n = () => t(e);
12
5
  //#endregion
13
- export { i as useIsMobile };
6
+ export { n as useIsMobile };
@@ -1 +1 @@
1
- {"version":3,"file":"useIsPhone.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsPhone.ts"],"names":[],"mappings":"AAQA,oFAAoF;AACpF,eAAO,MAAM,UAAU,QAAO,OAiB7B,CAAC"}
1
+ {"version":3,"file":"useIsPhone.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsPhone.ts"],"names":[],"mappings":"AAGA,oFAAoF;AACpF,eAAO,MAAM,UAAU,QAAO,OAAgD,CAAC"}
@@ -1,13 +1,6 @@
1
1
  import { PHONE_MEDIA_QUERY as e } from "../constants/breakpoint.js";
2
- import { useEffect as t, useState as n } from "react";
2
+ import { useMediaQueryMatch as t } from "./useMediaQueryMatch.js";
3
3
  //#region src/hooks/useIsPhone.ts
4
- var r = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(width < 768px)").matches, i = () => {
5
- let [i, a] = n(r);
6
- return t(() => {
7
- if (typeof window > "u" || typeof window.matchMedia != "function") return;
8
- let t = window.matchMedia(e), n = () => a(t.matches);
9
- return n(), t.addEventListener("change", n), () => t.removeEventListener("change", n);
10
- }, []), i;
11
- };
4
+ var n = () => t(e);
12
5
  //#endregion
13
- export { i as useIsPhone };
6
+ export { n as useIsPhone };
@@ -1 +1 @@
1
- {"version":3,"file":"useIsTablet.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsTablet.ts"],"names":[],"mappings":"AAQA,qFAAqF;AACrF,eAAO,MAAM,WAAW,QAAO,OAiB9B,CAAC"}
1
+ {"version":3,"file":"useIsTablet.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsTablet.ts"],"names":[],"mappings":"AAGA,qFAAqF;AACrF,eAAO,MAAM,WAAW,QAAO,OACS,CAAC"}
@@ -1,13 +1,6 @@
1
1
  import { TABLET_MEDIA_QUERY as e } from "../constants/breakpoint.js";
2
- import { useEffect as t, useState as n } from "react";
2
+ import { useMediaQueryMatch as t } from "./useMediaQueryMatch.js";
3
3
  //#region src/hooks/useIsTablet.ts
4
- var r = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(768px <= width < 1280px)").matches, i = () => {
5
- let [i, a] = n(r);
6
- return t(() => {
7
- if (typeof window > "u" || typeof window.matchMedia != "function") return;
8
- let t = window.matchMedia(e), n = () => a(t.matches);
9
- return n(), t.addEventListener("change", n), () => t.removeEventListener("change", n);
10
- }, []), i;
11
- };
4
+ var n = () => t(e);
12
5
  //#endregion
13
- export { i as useIsTablet };
6
+ export { n as useIsTablet };
@@ -0,0 +1,3 @@
1
+ /** Returns whether `query` currently matches, re-rendering when the match changes. */
2
+ export declare const useMediaQueryMatch: (query: string) => boolean;
3
+ //# sourceMappingURL=useMediaQueryMatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMediaQueryMatch.d.ts","sourceRoot":"","sources":["../../src/hooks/useMediaQueryMatch.ts"],"names":[],"mappings":"AAcA,sFAAsF;AACtF,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,OAgBlD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { useCallback as e, useSyncExternalStore as t } from "react";
2
+ //#region src/hooks/useMediaQueryMatch.ts
3
+ var n = () => typeof window < "u" && typeof window.matchMedia == "function", r = () => !1, i = (i) => {
4
+ let a = e((e) => {
5
+ if (!n()) return () => void 0;
6
+ let t = window.matchMedia(i);
7
+ return t.addEventListener("change", e), () => t.removeEventListener("change", e);
8
+ }, [i]), o = e(() => n() && window.matchMedia(i).matches, [i]);
9
+ return t(a, o, r);
10
+ };
11
+ //#endregion
12
+ export { i as useMediaQueryMatch };
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';
@@ -25,13 +26,16 @@ export * from './utils/annotation';
25
26
  export * from './utils/base64-json';
26
27
  export * from './utils/string-utils';
27
28
  export * from './utils/entity-field-limits';
29
+ export * from './utils/resource-version';
28
30
  export * from './utils/merge-class';
29
31
  export * from './utils/build-css-vars';
32
+ export * from './utils/org-unit';
30
33
  export * from './utils/message';
31
34
  export * from './utils/message-attachment-to-display';
32
35
  export * from './utils/mime-type';
33
36
  export * from './utils/is-audio-transcription-supported';
34
37
  export * from './utils/copy-to-clipboard';
38
+ export * from './utils/markdown-rich-text';
35
39
  export * from './utils/dom';
36
40
  export * from './utils/format-last-used';
37
41
  export * from './utils/format-file-size';
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;A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,CAAC"}
package/index.js CHANGED
@@ -2,93 +2,97 @@ import { ConversationTransferErrorCode as e, ConversationTransferJobStatus as t,
2
2
  import { ConversationKind as a, FilterTab as o } from "./models/conversation-classification.js";
3
3
  import { BackgroundGenerationStatus as s, MessageRating as c, MessageRole as l, RequestStatus as u, StageStatus as d, StatusEvent as f } from "./models/chat.js";
4
4
  import { ResponseFormat as p } from "./models/deployment-features.js";
5
- import { AttachmentErrorReason as m, AttachmentType as h } from "./types/attachment.js";
6
- import { CatalogEntityType as g } from "./types/entity-type.js";
7
- import { FileExtension as _, MIMEType as v } from "./types/mime-type.js";
8
- import { CodeBlockTheme as y } from "./types/code-editor.js";
9
- import { MIME_TYPE_ALIASES as b, MIME_TYPE_AUDIO_PREFIX as x, MIME_TYPE_EXT_MAP as S, MIME_TYPE_WILDCARD as C } from "./constants/mime-types.js";
10
- import { getAttachmentTypeFromMime as w, getBaseMimeType as T, inferMimeTypeFromPath as E, normalizeMimeType as D, stripUrlQueryAndFragment as O } from "./utils/mime-type.js";
11
- import { isAnnotationSelector as k, normalizePersistedHtmlTagAttachmentType as A, normalizeRawAnnotations as j } from "./utils/annotation.js";
12
- import { decodeJsonFromBase64 as M, encodeJsonToBase64 as N } from "./utils/base64-json.js";
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
- 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 { 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 };
5
+ import { OrgUnitAction as m, OrgUnitNamespace as h } from "./models/org-unit.js";
6
+ import { AttachmentErrorReason as g, AttachmentType as _ } from "./types/attachment.js";
7
+ import { CatalogEntityType as v } from "./types/entity-type.js";
8
+ import { FileExtension as y, MIMEType as b } from "./types/mime-type.js";
9
+ import { CodeBlockTheme as x } from "./types/code-editor.js";
10
+ import { MIME_TYPE_ALIASES as S, MIME_TYPE_AUDIO_PREFIX as C, MIME_TYPE_EXT_MAP as w, MIME_TYPE_WILDCARD as T } from "./constants/mime-types.js";
11
+ import { getAttachmentTypeFromMime as E, getBaseMimeType as D, inferMimeTypeFromPath as O, normalizeMimeType as k, stripUrlQueryAndFragment as A } from "./utils/mime-type.js";
12
+ import { isAnnotationSelector as j, normalizePersistedHtmlTagAttachmentType as M, normalizeRawAnnotations as N } from "./utils/annotation.js";
13
+ import { decodeJsonFromBase64 as P, encodeJsonToBase64 as F } from "./utils/base64-json.js";
14
+ import { PROHIBITED_CONVERSATION_NAME_CHARS_RE as I, getUtf8ByteLength as L, sanitizeConversationName as R, stripTrailingDots as z, truncateToUtf8Bytes as B } from "./utils/string-utils.js";
15
+ import { ENTITY_DESCRIPTION_MAX_LENGTH as V, ENTITY_INSTRUCTIONS_MAX_LENGTH as H, ENTITY_NAME_MAX_LENGTH as U, exceedsMaxLength as W, hasControlCharacters as G } from "./utils/entity-field-limits.js";
16
+ import { RESOURCE_VERSION_PATTERN as K, STORED_RESOURCE_VERSION_PATTERN as q } from "./utils/resource-version.js";
17
+ import { mergeClasses as J } from "./utils/merge-class.js";
18
+ import { buildCssVars as Y } from "./utils/build-css-vars.js";
19
+ import { canAccessAt as X, canReadAt as Z, canRequestPublicationAt as Q, canSaveToFolderAt as $, canWriteAt as ee, canWriteIntoOrgUnitAt as te, findOwningOrgUnit as ne, normalizeOrgUnitFolder as re } from "./utils/org-unit.js";
20
+ import { isStatusMessage as ie } from "./utils/message.js";
21
+ import { messageAttachmentToDisplayAttachment as ae, messageAttachmentsToDisplayAttachments as oe } from "./utils/message-attachment-to-display.js";
22
+ import { isAudioTranscriptionSupported as se } from "./utils/is-audio-transcription-supported.js";
23
+ import { copyToClipboard as ce } from "./utils/copy-to-clipboard.js";
24
+ import { copyMarkdownAsRichText as le, markdownToRichTextHtml as ue } from "./utils/markdown-rich-text.js";
25
+ import { makeOutsideInert as de } from "./utils/dom.js";
26
+ import { formatLastUsed as fe } from "./utils/format-last-used.js";
27
+ import { formatFileSize as pe } from "./utils/format-file-size.js";
28
+ import { formatCost as me, formatPrice as he, formatUnitPrice as ge } from "./utils/format-price.js";
29
+ import { base64ToBlob as _e, downloadTextFile as ve, ensureDownloadFilename as ye, getFileExtensionForLanguage as be, triggerAnchorDownload as xe, triggerBlobDownload as Se, tryBase64ToBytes as Ce } from "./utils/file-download.js";
30
+ import { isSyntaxHighlightingAllowed as we } from "./utils/syntax-highlighting.js";
31
+ import { ENTITY_TYPE_BG_COLOR as Te, ENTITY_TYPE_COLOR as Ee } from "./constants/entity-colors.js";
32
+ import { PROMPT_PARAM_DEFAULT_SEPARATOR as De, PROMPT_PARAM_PATTERN as Oe, PROMPT_VARIABLE_CLASS_NAME as ke, buildPromptParamDefaults as Ae, extractPromptParams as je, rehypePromptVariables as Me, resolvePromptParams as Ne } from "./utils/prompt-variables.js";
33
+ import { generateUUID as Pe } from "./utils/generate-uuid.js";
34
+ import { BASE_LG_ICON_PROPS as Fe, BASE_MD_ICON_PROPS as Ie } from "./constants/icon.js";
35
+ import { HIDDEN_FILE as Le, PUBLIC_BUCKET as Re } from "./constants/dial.js";
36
+ import { TAG_INPUT_TAG_CLASS_NAME as ze } from "./constants/tag-input.js";
37
+ import { MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME as Be, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as Ve, RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE as He, RESIZABLE_TEXTAREA_CLASS_NAME as Ue } from "./constants/resizable-fields.js";
38
+ import { MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as We } from "./constants/markdown-editor.js";
39
+ import { SELECT_LIST_MAX_HEIGHT_CLASS_NAME as Ge, SELECT_LIST_MAX_HEIGHT_PX as Ke } from "./constants/select-list.js";
40
+ import { DESKTOP_BREAKPOINT_PX as qe, DESKTOP_MEDIA_QUERY as Je, MOBILE_MAX_WIDTH_PX as Ye, MOBILE_MEDIA_QUERY as Xe, PHONE_MEDIA_QUERY as Ze, TABLET_BREAKPOINT_PX as Qe, TABLET_MEDIA_QUERY as $e } from "./constants/breakpoint.js";
41
+ import { InitialsAvatar as et } from "./components/InitialsAvatar/InitialsAvatar.js";
42
+ import { DeploymentIcon as tt } from "./components/DeploymentIcon/DeploymentIcon.js";
43
+ import { CopyButton as nt, CopyIconButton as rt } from "./components/CopyButton/CopyButton.js";
44
+ import { extractInitials as it } from "./utils/initials.js";
45
+ import { pickAvatarColor as at } from "./utils/avatar-color.js";
46
+ import { useIsPhone as ot } from "./hooks/useIsPhone.js";
47
+ import { ActionMenu as st } from "./components/ActionMenu/ActionMenu.js";
48
+ import { PanelEmptyState as ct } from "./components/PanelEmptyState/PanelEmptyState.js";
49
+ import { NewVersionAlert as lt } from "./components/NewVersionAlert/NewVersionAlert.js";
50
+ import { NotificationStack as ut } from "./components/NotificationStack/NotificationStack.js";
51
+ import { ItemHeader as dt } from "./components/ItemHeader/ItemHeader.js";
52
+ import { EntityTypeLabel as ft } from "./components/EntityTypeLabel/EntityTypeLabel.js";
53
+ import { FeaturedChip as pt } from "./components/FeaturedChip/FeaturedChip.js";
54
+ import { EntityHeader as mt } from "./components/EntityHeader/EntityHeader.js";
55
+ import { ResourceSummary as ht } from "./components/ResourceSummary/ResourceSummary.js";
56
+ import { ConfirmationIdentityCard as gt } from "./components/ConfirmationIdentityCard/ConfirmationIdentityCard.js";
57
+ import { ConfirmationIdentityRow as _t } from "./components/ConfirmationIdentityRow/ConfirmationIdentityRow.js";
58
+ import { ConfirmationView as vt } from "./components/ConfirmationView/ConfirmationView.js";
59
+ import { ConfirmationFooter as yt } from "./components/ConfirmationView/ConfirmationFooter.js";
60
+ import { ConfirmationDialog as bt } from "./components/ConfirmationDialog/ConfirmationDialog.js";
61
+ import { DELETE_CONFIRMATION_MAX_LISTED_NAMES as xt, DeleteConfirmationView as St } from "./components/DeleteConfirmationView/DeleteConfirmationView.js";
62
+ import { DeleteConfirmationDialog as Ct } from "./components/DeleteConfirmationDialog/DeleteConfirmationDialog.js";
63
+ import { DeleteConfirmationDrawer as wt } from "./components/DeleteConfirmationDrawer/DeleteConfirmationDrawer.js";
64
+ import { TableHeader as Tt } from "./components/MarkdownRenderer/Table/TableHeader.js";
65
+ import { TextRefinementState as Et, useTextRefinement as Dt } from "./hooks/useTextRefinement.js";
66
+ import { TextRefinementField as Ot } from "./components/TextRefinementField/TextRefinementField.js";
67
+ import { CHAT_SHARED_CLASS as kt } from "./constants/public-class-names.js";
68
+ import { useCodeCopy as At } from "./hooks/useCodeCopy.js";
69
+ import { restrainedSyntaxTheme as jt } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
70
+ import { MarkdownCodeBlock as Mt } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
71
+ import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as Nt, MARKDOWN_TABLE_CSV_MIME_TYPE as Pt, MarkdownTableCopyFormat as Ft, serializeMarkdownTableRows as It } from "./components/MarkdownRenderer/Table/table-serialization.js";
72
+ import { MarkdownTable as Lt } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
73
+ import { MarkdownRenderer as Rt, defaultMarkdownComponents as zt } from "./components/MarkdownRenderer/MarkdownRenderer.js";
74
+ import { COMPACT_MARKDOWN_CLASS_NAMES as Bt, DEFAULT_MARKDOWN_CLASS_NAMES as Vt } from "./components/MarkdownRenderer/markdown-class-names.js";
75
+ import { PlainTextRenderer as Ht } from "./components/MarkdownRenderer/PlainTextRenderer.js";
76
+ import { MDMessageViewer as Ut } from "./components/MarkdownRenderer/MDMessageViewer.js";
77
+ import { MarkdownWithPlaceholders as Wt } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
78
+ import { buildInlineSegmentSource as Gt, createInlineSegmentComponents as Kt, createRehypeInlineSegments as qt } from "./utils/inline-segments.js";
79
+ import { useCollapsedText as Jt } from "./hooks/useCollapsedText.js";
80
+ import { useAvailableHeightCap as Yt } from "./hooks/useAvailableHeightCap.js";
81
+ import { useControlErrorAssociation as Xt } from "./hooks/useControlErrorAssociation.js";
82
+ import { useIsMobile as Zt } from "./hooks/useIsMobile.js";
83
+ import { useIsTablet as Qt } from "./hooks/useIsTablet.js";
84
+ import { useIsTextClipped as $t } from "./hooks/useIsTextClipped.js";
85
+ import { useIsVerticallyClamped as en } from "./hooks/useIsVerticallyClamped.js";
86
+ import { useUnsavedChangesGuard as tn } from "./hooks/useUnsavedChangesGuard.js";
87
+ import { useUnsavedChanges as nn } from "./components/UnsavedChangesProvider/unsaved-changes-context.js";
88
+ import { useUnsavedChangesLeaveGuard as rn } from "./hooks/useUnsavedChangesLeaveGuard.js";
89
+ import { useUnsavedChangesLeaveConfirmation as an } from "./hooks/useUnsavedChangesLeaveConfirmation.js";
90
+ import { UnsavedChangesProvider as on } from "./components/UnsavedChangesProvider/UnsavedChangesProvider.js";
91
+ import { DialFileManagerActionProfile as sn, DialFileManagerVariant as cn } from "./file-manager/file-manager-variant.js";
92
+ import { getParentFolderPath as ln, isHiddenPath as un } from "./file-manager/path.js";
93
+ import { FileDownloadStatus as dn, FileUploadFailureReason as fn, FileUploadStatus as pn, isDownloadInProgress as mn, isUploadInProgress as hn } from "./file-manager/upload-batch.js";
94
+ import { useGridEditingScroll as gn } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
95
+ import { OperationLoaderModal as _n } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
96
+ import { isSkillSelectionUnsupported as vn } from "./utils/is-skill-selection-unsupported.js";
97
+ import { toConversationTransferQueueItems as yn } from "./conversation-transfer/conversation-transfer-queue.js";
98
+ export { st as ActionMenu, g as AttachmentErrorReason, _ as AttachmentType, Fe as BASE_LG_ICON_PROPS, Ie as BASE_MD_ICON_PROPS, s as BackgroundGenerationStatus, kt as CHAT_SHARED_CLASS, Bt as COMPACT_MARKDOWN_CLASS_NAMES, v as CatalogEntityType, x as CodeBlockTheme, bt as ConfirmationDialog, yt as ConfirmationFooter, gt as ConfirmationIdentityCard, _t as ConfirmationIdentityRow, vt as ConfirmationView, a as ConversationKind, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, nt as CopyButton, rt as CopyIconButton, Vt as DEFAULT_MARKDOWN_CLASS_NAMES, Nt as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, xt as DELETE_CONFIRMATION_MAX_LISTED_NAMES, qe as DESKTOP_BREAKPOINT_PX, Je as DESKTOP_MEDIA_QUERY, Ct as DeleteConfirmationDialog, wt as DeleteConfirmationDrawer, St as DeleteConfirmationView, tt as DeploymentIcon, sn as DialFileManagerActionProfile, cn as DialFileManagerVariant, V as ENTITY_DESCRIPTION_MAX_LENGTH, H as ENTITY_INSTRUCTIONS_MAX_LENGTH, U as ENTITY_NAME_MAX_LENGTH, Te as ENTITY_TYPE_BG_COLOR, Ee as ENTITY_TYPE_COLOR, mt as EntityHeader, ft as EntityTypeLabel, pt as FeaturedChip, dn as FileDownloadStatus, y as FileExtension, fn as FileUploadFailureReason, pn as FileUploadStatus, o as FilterTab, Le as HIDDEN_FILE, et as InitialsAvatar, dt as ItemHeader, Be as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, Ve as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, We as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, Pt as MARKDOWN_TABLE_CSV_MIME_TYPE, Ut as MDMessageViewer, b as MIMEType, S as MIME_TYPE_ALIASES, C as MIME_TYPE_AUDIO_PREFIX, w as MIME_TYPE_EXT_MAP, T as MIME_TYPE_WILDCARD, Ye as MOBILE_MAX_WIDTH_PX, Xe as MOBILE_MEDIA_QUERY, Mt as MarkdownCodeBlock, Rt as MarkdownRenderer, Lt as MarkdownTable, Ft as MarkdownTableCopyFormat, Wt as MarkdownWithPlaceholders, c as MessageRating, l as MessageRole, lt as NewVersionAlert, ut as NotificationStack, _n as OperationLoaderModal, m as OrgUnitAction, h as OrgUnitNamespace, Ze as PHONE_MEDIA_QUERY, I as PROHIBITED_CONVERSATION_NAME_CHARS_RE, De as PROMPT_PARAM_DEFAULT_SEPARATOR, Oe as PROMPT_PARAM_PATTERN, ke as PROMPT_VARIABLE_CLASS_NAME, Re as PUBLIC_BUCKET, ct as PanelEmptyState, Ht as PlainTextRenderer, He as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, Ue as RESIZABLE_TEXTAREA_CLASS_NAME, K as RESOURCE_VERSION_PATTERN, u as RequestStatus, ht as ResourceSummary, p as ResponseFormat, Ge as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Ke as SELECT_LIST_MAX_HEIGHT_PX, q as STORED_RESOURCE_VERSION_PATTERN, d as StageStatus, f as StatusEvent, Qe as TABLET_BREAKPOINT_PX, $e as TABLET_MEDIA_QUERY, ze as TAG_INPUT_TAG_CLASS_NAME, Tt as TableHeader, Ot as TextRefinementField, Et as TextRefinementState, on as UnsavedChangesProvider, _e as base64ToBlob, Y as buildCssVars, Gt as buildInlineSegmentSource, Ae as buildPromptParamDefaults, X as canAccessAt, Z as canReadAt, Q as canRequestPublicationAt, $ as canSaveToFolderAt, ee as canWriteAt, te as canWriteIntoOrgUnitAt, le as copyMarkdownAsRichText, ce as copyToClipboard, Kt as createInlineSegmentComponents, qt as createRehypeInlineSegments, P as decodeJsonFromBase64, zt as defaultMarkdownComponents, ve as downloadTextFile, F as encodeJsonToBase64, ye as ensureDownloadFilename, W as exceedsMaxLength, it as extractInitials, je as extractPromptParams, ne as findOwningOrgUnit, me as formatCost, pe as formatFileSize, fe as formatLastUsed, he as formatPrice, ge as formatUnitPrice, Pe as generateUUID, E as getAttachmentTypeFromMime, D as getBaseMimeType, be as getFileExtensionForLanguage, ln as getParentFolderPath, L as getUtf8ByteLength, G as hasControlCharacters, O as inferMimeTypeFromPath, j as isAnnotationSelector, se as isAudioTranscriptionSupported, mn as isDownloadInProgress, un as isHiddenPath, vn as isSkillSelectionUnsupported, ie as isStatusMessage, we as isSyntaxHighlightingAllowed, hn as isUploadInProgress, de as makeOutsideInert, ue as markdownToRichTextHtml, J as mergeClasses, ae as messageAttachmentToDisplayAttachment, oe as messageAttachmentsToDisplayAttachments, k as normalizeMimeType, re as normalizeOrgUnitFolder, M as normalizePersistedHtmlTagAttachmentType, N as normalizeRawAnnotations, at as pickAvatarColor, Me as rehypePromptVariables, Ne as resolvePromptParams, jt as restrainedSyntaxTheme, R as sanitizeConversationName, It as serializeMarkdownTableRows, z as stripTrailingDots, A as stripUrlQueryAndFragment, yn as toConversationTransferQueueItems, xe as triggerAnchorDownload, Se as triggerBlobDownload, B as truncateToUtf8Bytes, Ce as tryBase64ToBytes, Yt as useAvailableHeightCap, At as useCodeCopy, Jt as useCollapsedText, Xt as useControlErrorAssociation, gn as useGridEditingScroll, Zt as useIsMobile, ot as useIsPhone, Qt as useIsTablet, $t as useIsTextClipped, en as useIsVerticallyClamped, Dt as useTextRefinement, nn as useUnsavedChanges, tn as useUnsavedChangesGuard, an as useUnsavedChangesLeaveConfirmation, rn as useUnsavedChangesLeaveGuard };
@@ -0,0 +1,41 @@
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
+ * The caller's actions per Core namespace in this unit, e.g.
14
+ * `{ applications: ['read', 'write'] }`. Empty when the unit is reached only
15
+ * through its parent. Decisions use this map, never role names.
16
+ */
17
+ permissions: Record<string, string[]>;
18
+ }
19
+ /** DIAL Core resource namespaces an org unit grants actions on. */
20
+ export declare enum OrgUnitNamespace {
21
+ Files = "files",
22
+ Conversations = "conversations",
23
+ Prompts = "prompts",
24
+ Applications = "applications",
25
+ Toolsets = "toolsets",
26
+ Skills = "skills",
27
+ Projects = "projects",
28
+ Publications = "publications"
29
+ }
30
+ /** Actions Core grants per namespace in a unit. */
31
+ export declare enum OrgUnitAction {
32
+ Read = "read",
33
+ Write = "write"
34
+ }
35
+ /** The resolved org-unit data a right is decided from. */
36
+ export interface OrgUnitAccess {
37
+ /** `true` for a DIAL admin, who may act anywhere. */
38
+ hasAdminAccess: boolean;
39
+ units: readonly OrgUnit[];
40
+ }
41
+ //# 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;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACvC;AAED,mEAAmE;AACnE,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC9B;AAED,mDAAmD;AACnD,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,qDAAqD;IACrD,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;CAC3B"}
@@ -0,0 +1,8 @@
1
+ //#region src/models/org-unit.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.Files = "files", e.Conversations = "conversations", e.Prompts = "prompts", e.Applications = "applications", e.Toolsets = "toolsets", e.Skills = "skills", e.Projects = "projects", e.Publications = "publications", e;
4
+ }({}), t = /* @__PURE__ */ function(e) {
5
+ return e.Read = "read", e.Write = "write", e;
6
+ }({});
7
+ //#endregion
8
+ export { t as OrgUnitAction, e as OrgUnitNamespace };
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.12",
4
+ "version": "1.4.0-dev.122",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -34,7 +34,7 @@
34
34
  "react": "^19.2.8",
35
35
  "react-dom": "^19.2.8",
36
36
  "@epam/ai-dial-ui-kit": "^0.16.0",
37
- "@epam/ai-dial-react-file-manager": "^0.4.1"
37
+ "@epam/ai-dial-react-file-manager": "^0.4.3"
38
38
  },
39
39
  "dependencies": {
40
40
  "ag-grid-community": "^35.3.0",
@@ -1,18 +1,3 @@
1
- /**
2
- * Renders markdown to sanitized HTML whose styling travels inline, so a
3
- * rich-text target it is pasted into shows the tables, headings, and code
4
- * blocks the way the conversation does.
5
- */
6
- export declare const markdownToRichTextHtml: (content: string) => string;
7
- /**
8
- * Copies markdown `content` to the clipboard as rich text, so pasting into a
9
- * rich-text target (Word, Gmail, Slack) keeps the formatting. Both the
10
- * `text/html` and the `text/plain` flavour are written, so a plain-text
11
- * target (Notepad, a terminal, a code editor) pastes the raw markdown instead
12
- * of nothing. Falls back to {@link copyToClipboard}, and therefore to the raw
13
- * markdown, when the multi-format Clipboard API isn't available.
14
- */
15
- export declare const copyMarkdownAsRichText: (content: string) => Promise<boolean>;
16
1
  /** Copies `text` to the clipboard; returns `true` on success, `false` when both the Clipboard API and the `execCommand` fallback fail. */
17
2
  export declare const copyToClipboard: (text: string) => Promise<boolean>;
18
3
  //# sourceMappingURL=copy-to-clipboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"copy-to-clipboard.d.ts","sourceRoot":"","sources":["../../src/utils/copy-to-clipboard.ts"],"names":[],"mappings":"AA+HA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,KAAG,MAUtD,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,KAAG,OAAO,CAAC,OAAO,CAoCvE,CAAC;AAEF,0IAA0I;AAC1I,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAAO,CAAC,OAAO,CAY7D,CAAC"}
1
+ {"version":3,"file":"copy-to-clipboard.d.ts","sourceRoot":"","sources":["../../src/utils/copy-to-clipboard.ts"],"names":[],"mappings":"AAEA,0IAA0I;AAC1I,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAAO,CAAC,OAAO,CAY7D,CAAC"}
@@ -1,62 +1,5 @@
1
- import e from "dompurify";
2
- import t from "rehype-stringify";
3
- import n from "remark-gfm";
4
- import r from "remark-parse";
5
- import i from "remark-rehype";
6
- import { unified as a } from "unified";
7
1
  //#region src/utils/copy-to-clipboard.ts
8
- var o = {
9
- table: "border-collapse:collapse;width:100%;margin:0 0 12px;font-size:14px;line-height:20px;background:#ffffff;color:#161b2d;border:1px solid #d1dbea",
10
- th: "background:#fcfcfc;color:#57647a;border-bottom:1px solid #e0e6f0;padding:8px 12px;text-align:start;font-weight:600",
11
- td: "border-top:1px solid #e0e6f0;padding:8px 12px;text-align:start",
12
- h1: "font-size:20px;line-height:28px;font-weight:600;margin:0 0 12px",
13
- h2: "font-size:18px;line-height:26px;font-weight:600;margin:16px 0 8px",
14
- h3: "font-size:16px;line-height:24px;font-weight:600;margin:16px 0 8px",
15
- p: "font-size:14px;line-height:24px;margin:0 0 12px",
16
- ul: "font-size:14px;line-height:24px;margin:0 0 12px;padding-inline-start:24px",
17
- ol: "font-size:14px;line-height:24px;margin:0 0 12px;padding-inline-start:24px",
18
- blockquote: "border-inline-start:3px solid #d1dbea;margin:0 0 12px;padding:4px 0 4px 12px",
19
- pre: "background:#f8fafc;border:1px solid #d1dbea;border-radius:8px;padding:12px;overflow:auto;font-size:14px;line-height:20px;color:#161b2d;margin:0 0 12px",
20
- code: "font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;background:#f3f5f9;color:#161b2d;padding:1px 4px;border-radius:4px",
21
- a: "text-decoration:underline",
22
- hr: "border:0;border-top:1px solid #d1dbea;margin:16px 0"
23
- }, s = "background:#f5f7fa", c = {
24
- left: "text-align:start",
25
- center: "text-align:center",
26
- right: "text-align:end"
27
- }, l = (e) => {
28
- let t = e.properties?.align;
29
- return typeof t == "string" ? c[t] : void 0;
30
- }, u = "font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px", d = (e, t) => {
31
- e.properties ||= {};
32
- let n = typeof e.properties.style == "string" ? e.properties.style : "";
33
- e.properties.style = n ? `${n};${t}` : t;
34
- }, f = (e, t = !1) => {
35
- if (e.tagName === "code" && t) d(e, u);
36
- else if (e.tagName) {
37
- let t = o[e.tagName];
38
- if (t && d(e, t), e.tagName === "th" || e.tagName === "td") {
39
- let t = l(e);
40
- t && d(e, t);
41
- }
42
- }
43
- let n = e.children ?? [];
44
- e.tagName === "tbody" && n.filter((e) => e.tagName === "tr").forEach((e, t) => {
45
- t % 2 == 1 && d(e, s);
46
- }), n.forEach((n) => f(n, t || e.tagName === "pre"));
47
- }, p = () => (e) => f(e), m = (o) => e.sanitize(a().use(r).use(n).use(i).use(p).use(t).processSync(o).toString()), h = (e) => {
48
- if (typeof navigator > "u" || !navigator.clipboard?.write || typeof ClipboardItem > "u") return g(e);
49
- let t;
50
- try {
51
- t = m(e);
52
- } catch {
53
- return g(e);
54
- }
55
- return navigator.clipboard.write([new ClipboardItem({
56
- "text/html": new Blob([t], { type: "text/html" }),
57
- "text/plain": new Blob([e], { type: "text/plain" })
58
- })]).then(() => !0).catch(() => g(e));
59
- }, g = (e) => typeof navigator < "u" && navigator.clipboard?.writeText ? navigator.clipboard.writeText(e).then(() => !0).catch(() => _(e)) : Promise.resolve(_(e)), _ = (e) => {
2
+ var e = (e) => typeof navigator < "u" && navigator.clipboard?.writeText ? navigator.clipboard.writeText(e).then(() => !0).catch(() => t(e)) : Promise.resolve(t(e)), t = (e) => {
60
3
  let t = document.createElement("textarea");
61
4
  t.innerText = e, t.style.cssText = "position:fixed;top:0;left:0;width:1px;height:1px;padding:0;border:none;outline:none;box-shadow:none;background:transparent;opacity:0;", t.setAttribute("autocomplete", "off"), t.setAttribute("readonly", ""), document.body.appendChild(t);
62
5
  try {
@@ -66,4 +9,4 @@ var o = {
66
9
  }
67
10
  };
68
11
  //#endregion
69
- export { h as copyMarkdownAsRichText, g as copyToClipboard, m as markdownToRichTextHtml };
12
+ export { e as copyToClipboard };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Renders markdown to sanitized HTML whose styling travels inline, so a
3
+ * rich-text target it is pasted into shows the tables, headings, and code
4
+ * blocks the way the conversation does.
5
+ */
6
+ export declare const markdownToRichTextHtml: (content: string) => string;
7
+ /**
8
+ * Copies markdown `content` to the clipboard as rich text, so pasting into a
9
+ * rich-text target (Word, Gmail, Slack) keeps the formatting. Both the
10
+ * `text/html` and the `text/plain` flavour are written, so a plain-text
11
+ * target (Notepad, a terminal, a code editor) pastes the raw markdown instead
12
+ * of nothing. Falls back to {@link copyToClipboard}, and therefore to the raw
13
+ * markdown, when the multi-format Clipboard API isn't available.
14
+ */
15
+ export declare const copyMarkdownAsRichText: (content: string) => Promise<boolean>;
16
+ //# sourceMappingURL=markdown-rich-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-rich-text.d.ts","sourceRoot":"","sources":["../../src/utils/markdown-rich-text.ts"],"names":[],"mappings":"AAsIA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,KAAG,MAUtD,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,KAAG,OAAO,CAAC,OAAO,CAoCvE,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { copyToClipboard as e } from "./copy-to-clipboard.js";
2
+ import t from "dompurify";
3
+ import n from "rehype-stringify";
4
+ import r from "remark-gfm";
5
+ import i from "remark-parse";
6
+ import a from "remark-rehype";
7
+ import { unified as o } from "unified";
8
+ //#region src/utils/markdown-rich-text.ts
9
+ var s = {
10
+ table: "border-collapse:collapse;width:100%;margin:0 0 12px;font-size:14px;line-height:20px;background:#ffffff;color:#161b2d;border:1px solid #d1dbea",
11
+ th: "background:#fcfcfc;color:#57647a;border-bottom:1px solid #e0e6f0;padding:8px 12px;text-align:start;font-weight:600",
12
+ td: "border-top:1px solid #e0e6f0;padding:8px 12px;text-align:start",
13
+ h1: "font-size:20px;line-height:28px;font-weight:600;margin:0 0 12px",
14
+ h2: "font-size:18px;line-height:26px;font-weight:600;margin:16px 0 8px",
15
+ h3: "font-size:16px;line-height:24px;font-weight:600;margin:16px 0 8px",
16
+ p: "font-size:14px;line-height:24px;margin:0 0 12px",
17
+ ul: "font-size:14px;line-height:24px;margin:0 0 12px;padding-inline-start:24px",
18
+ ol: "font-size:14px;line-height:24px;margin:0 0 12px;padding-inline-start:24px",
19
+ blockquote: "border-inline-start:3px solid #d1dbea;margin:0 0 12px;padding:4px 0 4px 12px",
20
+ pre: "background:#f8fafc;border:1px solid #d1dbea;border-radius:8px;padding:12px;overflow:auto;font-size:14px;line-height:20px;color:#161b2d;margin:0 0 12px",
21
+ code: "font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;background:#f3f5f9;color:#161b2d;padding:1px 4px;border-radius:4px",
22
+ a: "text-decoration:underline",
23
+ hr: "border:0;border-top:1px solid #d1dbea;margin:16px 0"
24
+ }, c = "background:#f5f7fa", l = {
25
+ left: "text-align:start",
26
+ center: "text-align:center",
27
+ right: "text-align:end"
28
+ }, u = (e) => {
29
+ let t = e.properties?.align;
30
+ return typeof t == "string" ? l[t] : void 0;
31
+ }, d = "font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px", f = (e, t) => {
32
+ e.properties ||= {};
33
+ let n = typeof e.properties.style == "string" ? e.properties.style : "";
34
+ e.properties.style = n ? `${n};${t}` : t;
35
+ }, p = (e, t = !1) => {
36
+ if (e.tagName === "code" && t) f(e, d);
37
+ else if (e.tagName) {
38
+ let t = s[e.tagName];
39
+ if (t && f(e, t), e.tagName === "th" || e.tagName === "td") {
40
+ let t = u(e);
41
+ t && f(e, t);
42
+ }
43
+ }
44
+ let n = e.children ?? [];
45
+ e.tagName === "tbody" && n.filter((e) => e.tagName === "tr").forEach((e, t) => {
46
+ t % 2 == 1 && f(e, c);
47
+ }), n.forEach((n) => p(n, t || e.tagName === "pre"));
48
+ }, m = () => (e) => p(e), h = (e) => t.sanitize(o().use(i).use(r).use(a).use(m).use(n).processSync(e).toString()), g = (t) => {
49
+ if (typeof navigator > "u" || !navigator.clipboard?.write || typeof ClipboardItem > "u") return e(t);
50
+ let n;
51
+ try {
52
+ n = h(t);
53
+ } catch {
54
+ return e(t);
55
+ }
56
+ return navigator.clipboard.write([new ClipboardItem({
57
+ "text/html": new Blob([n], { type: "text/html" }),
58
+ "text/plain": new Blob([t], { type: "text/plain" })
59
+ })]).then(() => !0).catch(() => e(t));
60
+ };
61
+ //#endregion
62
+ export { g as copyMarkdownAsRichText, h as markdownToRichTextHtml };
@@ -0,0 +1,66 @@
1
+ import { OrgUnitAction, OrgUnit, OrgUnitAccess, OrgUnitNamespace } 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
+ /**
10
+ * The unit that owns `publicPath`: the one whose normalised folder is the
11
+ * longest prefix of the path at a segment boundary. A unit's own folder belongs
12
+ * to it; the public root, a path under no listed unit and a sibling sharing
13
+ * leading characters (`Risk2/` vs `Risk/`) have no owner. `publicPath` is the
14
+ * decoded, public-relative path a tree shows and is not decoded again. The
15
+ * units' folders are normalised once per `units` array (keep the array
16
+ * identity stable between calls).
17
+ * @param units - units as returned by DIAL Core
18
+ * @param publicPath - decoded path relative to the public bucket, e.g. `Acme/US Risk/Reports`
19
+ */
20
+ export declare const findOwningOrgUnit: (units: readonly OrgUnit[], publicPath: string) => OrgUnit | undefined;
21
+ /**
22
+ * Whether the caller may do `action` on `namespace` at `publicPath`. A DIAL
23
+ * admin may anywhere; otherwise only the owning unit's `permissions` decide, so
24
+ * a path under no unit, a missing namespace or an empty list is `false`. Role
25
+ * names are never consulted and `write` does not imply `read`.
26
+ * @param access - resolved org-unit data
27
+ * @param publicPath - decoded public-relative path
28
+ * @param namespace - Core namespace of the resource type
29
+ * @param action - the action asked about
30
+ */
31
+ export declare const canAccessAt: (access: OrgUnitAccess, publicPath: string, namespace: OrgUnitNamespace, action: OrgUnitAction) => boolean;
32
+ /** {@link canAccessAt} for the `write` action. */
33
+ export declare const canWriteAt: (access: OrgUnitAccess, publicPath: string, namespace: OrgUnitNamespace) => boolean;
34
+ /**
35
+ * Whether `publicPath` is a usable save destination: `true` for an admin and
36
+ * for a path under no listed unit (the plain public folders keep today's
37
+ * save-then-request flow), otherwise the owning unit must grant `write`.
38
+ * Unlike {@link canWriteAt}, which is strict, a path outside every unit is not
39
+ * refused here.
40
+ * @param access - resolved org-unit data
41
+ * @param publicPath - decoded public-relative path
42
+ * @param namespace - Core namespace of the resource type
43
+ */
44
+ export declare const canSaveToFolderAt: (access: OrgUnitAccess, publicPath: string, namespace: OrgUnitNamespace) => boolean;
45
+ /**
46
+ * Whether the caller may write straight into `publicPath`: the path lies inside
47
+ * a listed unit and that unit (or the caller's admin access) grants `write`.
48
+ * Unlike {@link canSaveToFolderAt}, a path under no unit is `false` even for a
49
+ * DIAL admin, so plain public folders keep the save-then-publish flow.
50
+ * @param access - resolved org-unit data
51
+ * @param publicPath - decoded public-relative path
52
+ * @param namespace - Core namespace of the resource type
53
+ */
54
+ export declare const canWriteIntoOrgUnitAt: (access: OrgUnitAccess, publicPath: string, namespace: OrgUnitNamespace) => boolean;
55
+ /** {@link canAccessAt} for the `read` action. */
56
+ export declare const canReadAt: (access: OrgUnitAccess, publicPath: string, namespace: OrgUnitNamespace) => boolean;
57
+ /**
58
+ * Whether a publication request into `publicPath` can be sent: `true` for an
59
+ * admin and for a path under no listed unit (Core's folder rules decide there,
60
+ * the client does not block), otherwise the owner must grant `read`.
61
+ * @param access - resolved org-unit data
62
+ * @param publicPath - decoded public-relative path
63
+ * @param namespace - Core namespace of the resource type
64
+ */
65
+ export declare const canRequestPublicationAt: (access: OrgUnitAccess, publicPath: string, namespace: OrgUnitNamespace) => boolean;
66
+ //# 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,EACL,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAmB5B;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ,MAAM,KAAG,MAIvD,CAAC;AAsBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAC5B,OAAO,SAAS,OAAO,EAAE,EACzB,YAAY,MAAM,KACjB,OAAO,GAAG,SAYZ,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GACtB,QAAQ,aAAa,EACrB,YAAY,MAAM,EAClB,WAAW,gBAAgB,EAC3B,QAAQ,aAAa,KACpB,OAIF,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,UAAU,GACrB,QAAQ,aAAa,EACrB,YAAY,MAAM,EAClB,WAAW,gBAAgB,KAC1B,OAA0E,CAAC;AAE9E;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,aAAa,EACrB,YAAY,MAAM,EAClB,WAAW,gBAAgB,KAC1B,OAIF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAChC,QAAQ,aAAa,EACrB,YAAY,MAAM,EAClB,WAAW,gBAAgB,KAC1B,OAEwC,CAAC;AAE5C,iDAAiD;AACjD,eAAO,MAAM,SAAS,GACpB,QAAQ,aAAa,EACrB,YAAY,MAAM,EAClB,WAAW,gBAAgB,KAC1B,OAAyE,CAAC;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,aAAa,EACrB,YAAY,MAAM,EAClB,WAAW,gBAAgB,KAC1B,OAIF,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { OrgUnitAction as e } from "../models/org-unit.js";
2
+ //#region src/utils/org-unit.ts
3
+ var t = "public", n = (e) => {
4
+ try {
5
+ return decodeURIComponent(e);
6
+ } catch {
7
+ return e;
8
+ }
9
+ }, r = (e) => e.split("/").filter((e) => e !== ""), i = (e) => e.length === 0 ? "" : `${e.join("/")}/`, a = (e) => {
10
+ let [a, ...o] = r(e);
11
+ return a === t ? i(o.map(n)) : "";
12
+ }, o = /* @__PURE__ */ new WeakMap(), s = (e) => {
13
+ let t = o.get(e);
14
+ return t || (t = e.map((e) => ({
15
+ unit: e,
16
+ folder: a(e.folder)
17
+ })), o.set(e, t)), t;
18
+ }, c = (e, t) => {
19
+ let n = i(r(t));
20
+ if (n === "") return;
21
+ let a, o = 0;
22
+ for (let { unit: t, folder: r } of s(e)) r.length > o && n.startsWith(r) && (a = t, o = r.length);
23
+ return a;
24
+ }, l = (e, t, n, r) => e.hasAdminAccess ? !0 : c(e.units, t)?.permissions?.[n]?.includes(r) ?? !1, u = (t, n, r) => l(t, n, r, e.Write), d = (e, t, n) => e.hasAdminAccess || !c(e.units, t) ? !0 : u(e, t, n), f = (e, t, n) => c(e.units, t) != null && u(e, t, n), p = (t, n, r) => l(t, n, r, e.Read), m = (e, t, n) => e.hasAdminAccess || !c(e.units, t) ? !0 : p(e, t, n);
25
+ //#endregion
26
+ export { l as canAccessAt, p as canReadAt, m as canRequestPublicationAt, d as canSaveToFolderAt, u as canWriteAt, f as canWriteIntoOrgUnitAt, c as findOwningOrgUnit, a as normalizeOrgUnitFolder };
@@ -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 };