@epam/ai-dial-chat-shared 1.1.0-dev.38 → 1.1.0-dev.389

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.
Files changed (136) hide show
  1. package/components/CopyButton/CopyButton.d.ts +17 -0
  2. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  3. package/components/DeploymentIcon/DeploymentIcon.d.ts +1 -10
  4. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -1
  5. package/components/EntityHeader/EntityHeader.d.ts +34 -0
  6. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  7. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +16 -0
  8. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  9. package/components/FeaturedChip/FeaturedChip.d.ts +14 -0
  10. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  11. package/components/InitialsAvatar/InitialsAvatar.d.ts +3 -4
  12. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -1
  13. package/components/ItemHeader/ItemHeader.d.ts +36 -0
  14. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  15. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +10 -7
  16. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
  17. package/components/MarkdownRenderer/MDMessageViewer.d.ts +7 -0
  18. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -1
  19. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +27 -12
  20. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
  21. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
  22. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
  23. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +8 -5
  24. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
  25. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +1 -5
  26. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -1
  27. package/components/MarkdownRenderer/markdown-class-names.d.ts +6 -0
  28. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -1
  29. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +15 -0
  30. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  31. package/components/PanelEmptyState/PanelEmptyState.d.ts +4 -0
  32. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -1
  33. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  34. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  35. package/constants/entity-colors.d.ts +6 -0
  36. package/constants/entity-colors.d.ts.map +1 -0
  37. package/constants/icon.d.ts +2 -0
  38. package/constants/icon.d.ts.map +1 -1
  39. package/constants/mime-types.d.ts +7 -4
  40. package/constants/mime-types.d.ts.map +1 -1
  41. package/constants/tag-input.d.ts +2 -0
  42. package/constants/tag-input.d.ts.map +1 -0
  43. package/esm-CopgoDht.js +16197 -0
  44. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +49 -0
  45. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  46. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  47. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  48. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  49. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  50. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts +20 -0
  51. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts.map +1 -0
  52. package/file-manager/attach-result.d.ts +9 -0
  53. package/file-manager/attach-result.d.ts.map +1 -0
  54. package/file-manager/file-manager-controller.d.ts +117 -0
  55. package/file-manager/file-manager-controller.d.ts.map +1 -0
  56. package/file-manager/file-manager-variant.d.ts +21 -0
  57. package/file-manager/file-manager-variant.d.ts.map +1 -0
  58. package/file-manager/file-upload-validation.d.ts +8 -0
  59. package/file-manager/file-upload-validation.d.ts.map +1 -0
  60. package/file-manager/index.d.ts +13 -0
  61. package/file-manager/index.d.ts.map +1 -0
  62. package/file-manager/labels.d.ts +137 -0
  63. package/file-manager/labels.d.ts.map +1 -0
  64. package/file-manager/path.d.ts +12 -0
  65. package/file-manager/path.d.ts.map +1 -0
  66. package/file-manager/upload-batch.d.ts +27 -0
  67. package/file-manager/upload-batch.d.ts.map +1 -0
  68. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  69. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  70. package/hooks/useCodeCopy.d.ts +1 -9
  71. package/hooks/useCodeCopy.d.ts.map +1 -1
  72. package/hooks/useCollapsedText.d.ts +3 -7
  73. package/hooks/useCollapsedText.d.ts.map +1 -1
  74. package/hooks/useHorizontalOverflow.d.ts +21 -0
  75. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  76. package/index.css +1 -1
  77. package/index.d.ts +21 -2
  78. package/index.d.ts.map +1 -1
  79. package/index.dom-BKBT_wVu.js +10 -0
  80. package/index.js +14696 -24033
  81. package/lib-CglXTr1t.js +1234 -0
  82. package/models/chat.d.ts +81 -38
  83. package/models/chat.d.ts.map +1 -1
  84. package/models/conversation-classification.d.ts +9 -0
  85. package/models/conversation-classification.d.ts.map +1 -0
  86. package/models/conversation-transfer.d.ts +94 -0
  87. package/models/conversation-transfer.d.ts.map +1 -0
  88. package/models/custom-visualizer.d.ts +61 -0
  89. package/models/custom-visualizer.d.ts.map +1 -0
  90. package/models/deployment-configuration.d.ts +2 -8
  91. package/models/deployment-configuration.d.ts.map +1 -1
  92. package/models/entity.d.ts +15 -0
  93. package/models/entity.d.ts.map +1 -0
  94. package/models/tool-menu-item.d.ts +13 -0
  95. package/models/tool-menu-item.d.ts.map +1 -0
  96. package/package.json +19 -5
  97. package/rehype-katex-Da1z0EAE.js +22235 -0
  98. package/types/entity-type.d.ts +10 -0
  99. package/types/entity-type.d.ts.map +1 -0
  100. package/types/mime-type.d.ts +9 -9
  101. package/types/mime-type.d.ts.map +1 -1
  102. package/utils/avatar-color.d.ts +3 -6
  103. package/utils/avatar-color.d.ts.map +1 -1
  104. package/utils/build-css-vars.d.ts +1 -4
  105. package/utils/build-css-vars.d.ts.map +1 -1
  106. package/utils/copy-to-clipboard.d.ts +14 -11
  107. package/utils/copy-to-clipboard.d.ts.map +1 -1
  108. package/utils/file-download.d.ts +12 -0
  109. package/utils/file-download.d.ts.map +1 -1
  110. package/utils/format-last-used.d.ts +1 -6
  111. package/utils/format-last-used.d.ts.map +1 -1
  112. package/utils/format-price.d.ts +7 -0
  113. package/utils/format-price.d.ts.map +1 -0
  114. package/utils/generate-uuid.d.ts +3 -0
  115. package/utils/generate-uuid.d.ts.map +1 -0
  116. package/utils/initials.d.ts +1 -7
  117. package/utils/initials.d.ts.map +1 -1
  118. package/utils/latex.d.ts +11 -0
  119. package/utils/latex.d.ts.map +1 -0
  120. package/utils/message-attachment-to-display.d.ts +1 -1
  121. package/utils/message-attachment-to-display.d.ts.map +1 -1
  122. package/utils/message.d.ts +1 -7
  123. package/utils/message.d.ts.map +1 -1
  124. package/utils/mime-type.d.ts +13 -0
  125. package/utils/mime-type.d.ts.map +1 -0
  126. package/utils/prompt-variables.d.ts +38 -0
  127. package/utils/prompt-variables.d.ts.map +1 -0
  128. package/utils/string-utils.d.ts +6 -0
  129. package/utils/string-utils.d.ts.map +1 -1
  130. package/web-namespaces-BJylbtYz.js +95 -0
  131. package/components/Highlight/Highlight.d.ts +0 -26
  132. package/components/Highlight/Highlight.d.ts.map +0 -1
  133. package/hooks/useTableScroll.d.ts +0 -16
  134. package/hooks/useTableScroll.d.ts.map +0 -1
  135. package/types/overlay/overlay-protocol.d.ts +0 -308
  136. package/types/overlay/overlay-protocol.d.ts.map +0 -1
@@ -0,0 +1,10 @@
1
+ /** Entity type for a catalog item. Values are uppercase for direct color-map lookup. */
2
+ export declare enum CatalogEntityType {
3
+ Model = "MODEL",
4
+ Agent = "AGENT",
5
+ Toolset = "TOOLSET",
6
+ Skill = "SKILL",
7
+ /** Reusable text prompt. Carries a body instead of a runtime. */
8
+ Prompt = "PROMPT"
9
+ }
10
+ //# sourceMappingURL=entity-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-type.d.ts","sourceRoot":"","sources":["../../src/types/entity-type.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,iEAAiE;IACjE,MAAM,WAAW;CAClB"}
@@ -1,7 +1,4 @@
1
- /**
2
- * Well-known MIME type constants used in DIAL API attachments.
3
- * For arbitrary subtypes, pass a plain `string` alongside this enum.
4
- */
1
+ /** Well-known MIME type constants used in DIAL API attachments. */
5
2
  export declare enum MIMEType {
6
3
  /** GitHub-flavoured Markdown. */
7
4
  Markdown = "text/markdown",
@@ -40,12 +37,15 @@ export declare enum MIMEType {
40
37
  /** BMP bitmap image. */
41
38
  BMP = "image/bmp",
42
39
  /** SVG vector image. */
43
- SVG = "image/svg+xml"
40
+ SVG = "image/svg+xml",
41
+ /** MPEG audio (`.mp3`). */
42
+ MP3 = "audio/mpeg",
43
+ /** WAV audio. */
44
+ WAV = "audio/wav",
45
+ /** Ogg audio. */
46
+ OGG = "audio/ogg"
44
47
  }
45
- /**
46
- * Well-known file extension constants used as fallback when a MIME type is
47
- * unavailable or unreliable.
48
- */
48
+ /** Well-known file extension constants used as fallback when a MIME type is unavailable. */
49
49
  export declare enum FileExtension {
50
50
  /** PDF document. */
51
51
  PDF = "pdf",
@@ -1 +1 @@
1
- {"version":3,"file":"mime-type.d.ts","sourceRoot":"","sources":["../../src/types/mime-type.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,QAAQ;IAElB,iCAAiC;IACjC,QAAQ,kBAAkB;IAC1B,8BAA8B;IAC9B,KAAK,eAAe;IACpB,mBAAmB;IACnB,IAAI,cAAc;IAClB,oBAAoB;IACpB,KAAK,0BAA0B;IAC/B,8BAA8B;IAC9B,GAAG,aAAa;IAChB,yBAAyB;IACzB,UAAU,oBAAoB;IAC9B,wDAAwD;IACxD,UAAU,oBAAoB;IAC9B,4BAA4B;IAC5B,GAAG,aAAa;IAGhB,iBAAiB;IACjB,IAAI,qBAAqB;IACzB,uCAAuC;IACvC,GAAG,oBAAoB;IACvB,oBAAoB;IACpB,GAAG,oBAAoB;IACvB,mBAAmB;IACnB,GAAG,oBAAoB;IACvB,4BAA4B;IAC5B,IAAI,qBAAqB;IAGzB,yBAAyB;IACzB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,iBAAiB;IACjB,GAAG,cAAc;IACjB,kBAAkB;IAClB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,wBAAwB;IACxB,GAAG,kBAAkB;CACtB;AAED;;;GAGG;AACH,oBAAY,aAAa;IACvB,oBAAoB;IACpB,GAAG,QAAQ;IACX,iCAAiC;IACjC,QAAQ,OAAO;IACf,4DAA4D;IAC5D,WAAW,aAAa;IACxB,qBAAqB;IACrB,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"mime-type.d.ts","sourceRoot":"","sources":["../../src/types/mime-type.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,oBAAY,QAAQ;IAElB,iCAAiC;IACjC,QAAQ,kBAAkB;IAC1B,8BAA8B;IAC9B,KAAK,eAAe;IACpB,mBAAmB;IACnB,IAAI,cAAc;IAClB,oBAAoB;IACpB,KAAK,0BAA0B;IAC/B,8BAA8B;IAC9B,GAAG,aAAa;IAChB,yBAAyB;IACzB,UAAU,oBAAoB;IAC9B,wDAAwD;IACxD,UAAU,oBAAoB;IAC9B,4BAA4B;IAC5B,GAAG,aAAa;IAGhB,iBAAiB;IACjB,IAAI,qBAAqB;IACzB,uCAAuC;IACvC,GAAG,oBAAoB;IACvB,oBAAoB;IACpB,GAAG,oBAAoB;IACvB,mBAAmB;IACnB,GAAG,oBAAoB;IACvB,4BAA4B;IAC5B,IAAI,qBAAqB;IAGzB,yBAAyB;IACzB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,iBAAiB;IACjB,GAAG,cAAc;IACjB,kBAAkB;IAClB,IAAI,eAAe;IACnB,wBAAwB;IACxB,GAAG,cAAc;IACjB,wBAAwB;IACxB,GAAG,kBAAkB;IAGrB,2BAA2B;IAC3B,GAAG,eAAe;IAClB,iBAAiB;IACjB,GAAG,cAAc;IACjB,iBAAiB;IACjB,GAAG,cAAc;CAClB;AAED,4FAA4F;AAC5F,oBAAY,aAAa;IACvB,oBAAoB;IACpB,GAAG,QAAQ;IACX,iCAAiC;IACjC,QAAQ,OAAO;IACf,4DAA4D;IAC5D,WAAW,aAAa;IACxB,qBAAqB;IACrB,IAAI,SAAS;CACd"}
@@ -1,13 +1,10 @@
1
1
  /** A background/foreground colour pair for an initials avatar badge. */
2
2
  export interface AvatarColorEntry {
3
- /** CSS hex colour for the badge background. */
3
+ /** CSS colour value for the badge background — a theme token with a hex fallback. */
4
4
  background: string;
5
- /** CSS hex colour for the initials text. */
5
+ /** CSS colour value for the initials text — a theme token with a hex fallback. */
6
6
  foreground: string;
7
7
  }
8
- /**
9
- * Deterministically maps a display name to a palette entry using a
10
- * char-code-sum hash. The same name always returns the same colours.
11
- */
8
+ /** Returns a deterministic colour-pair for the given display name. */
12
9
  export declare const pickAvatarColor: (name: string) => AvatarColorEntry;
13
10
  //# sourceMappingURL=avatar-color.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar-color.d.ts","sourceRoot":"","sources":["../../src/utils/avatar-color.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB;AAcD;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,gBAM9C,CAAC"}
1
+ {"version":3,"file":"avatar-color.d.ts","sourceRoot":"","sources":["../../src/utils/avatar-color.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,qFAAqF;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC;CACpB;AAsCD,sEAAsE;AACtE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,gBAM9C,CAAC"}
@@ -1,7 +1,4 @@
1
1
  import { CSSProperties } from 'react';
2
- /**
3
- * Builds a `CSSProperties` object from a record mapping CSS custom property
4
- * names to values. Entries with `undefined` or empty-string values are omitted.
5
- */
2
+ /** Builds a `CSSProperties` object from a record of CSS custom property names to values, omitting entries with `undefined` or empty-string values. */
6
3
  export declare const buildCssVars: (vars: Record<string, string | number | undefined>) => CSSProperties;
7
4
  //# sourceMappingURL=build-css-vars.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-css-vars.d.ts","sourceRoot":"","sources":["../../src/utils/build-css-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,KAChD,aAQF,CAAC"}
1
+ {"version":3,"file":"build-css-vars.d.ts","sourceRoot":"","sources":["../../src/utils/build-css-vars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,sJAAsJ;AACtJ,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,KAChD,aAQF,CAAC"}
@@ -1,15 +1,18 @@
1
1
  /**
2
- * Copies `text` to the clipboard. Returns `true` when the write succeeded,
3
- * `false` when both paths failed (e.g. sandboxed iframe without clipboard
4
- * permission).
5
- *
6
- * Strategy:
7
- * 1. Async Clipboard API (`navigator.clipboard.writeText`) — the preferred
8
- * path on modern browsers. Requires a secure context (HTTPS) and the page
9
- * to be focused.
10
- * 2. `execCommand('copy')` fallback — used when the Clipboard API is
11
- * unavailable (HTTP, older browsers) or rejects. Uses `setSelectionRange`
12
- * instead of `select()` because iOS Safari ignores `textarea.select()`.
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.
13
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
+ /** Copies `text` to the clipboard; returns `true` on success, `false` when both the Clipboard API and the `execCommand` fallback fail. */
14
17
  export declare const copyToClipboard: (text: string) => Promise<boolean>;
15
18
  //# 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":"AAEA;;;;;;;;;;;;GAYG;AACH,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":"AAsGA;;;;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,9 +1,21 @@
1
+ /**
2
+ * Returns `name` with a file extension appended when it lacks one.
3
+ * Priority: extension already present on `name` → extension from `contentType` via `MIME_TYPE_EXT_MAP` → extension from the last segment of `url`.
4
+ * A trailing `.` in `name` or the `url` segment is only trusted when it looks
5
+ * like a real extension (letters/digits only) — otherwise it is treated as
6
+ * ordinary punctuation (e.g. a title such as `"Report vs. Summary"`).
7
+ */
8
+ export declare const ensureDownloadFilename: (name: string, url: string | undefined, contentType: string | undefined) => string;
1
9
  /** Returns the file extension (without a leading dot) for a fenced-code-block language identifier, defaulting to `txt`. */
2
10
  export declare const getFileExtensionForLanguage: (language: string) => string;
3
11
  /** Creates a temporary anchor element and clicks it to trigger a browser download for `href`. */
4
12
  export declare const triggerAnchorDownload: (href: string, filename: string) => void;
5
13
  /** Triggers a browser download of `blob`, using a temporary object URL that is revoked afterward. */
6
14
  export declare const triggerBlobDownload: (blob: Blob, filename: string) => void;
15
+ /** Decodes a base64 string into raw bytes, or `undefined` if the string is not valid base64. */
16
+ export declare const tryBase64ToBytes: (base64: string) => Uint8Array | undefined;
17
+ /** Decodes an inline `data` payload into a `Blob` of `mimeType`, treating the payload as raw UTF-8 text when it is not valid base64. */
18
+ export declare const base64ToBlob: (data: string, mimeType: string) => Blob;
7
19
  /** Triggers a browser download of `content` as a text file named `filename`. */
8
20
  export declare const downloadTextFile: (content: string, filename: string) => void;
9
21
  //# sourceMappingURL=file-download.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-download.d.ts","sourceRoot":"","sources":["../../src/utils/file-download.ts"],"names":[],"mappings":"AAyCA,2HAA2H;AAC3H,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,MACT,CAAC;AAEvD,iGAAiG;AACjG,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,IAKtE,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,GAAI,MAAM,IAAI,EAAE,UAAU,MAAM,KAAG,IAIlE,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,EAAE,UAAU,MAAM,KAAG,IAKpE,CAAC"}
1
+ {"version":3,"file":"file-download.d.ts","sourceRoot":"","sources":["../../src/utils/file-download.ts"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,MAAM,MAAM,EACZ,KAAK,MAAM,GAAG,SAAS,EACvB,aAAa,MAAM,GAAG,SAAS,KAC9B,MAeF,CAAC;AA2CF,2HAA2H;AAC3H,eAAO,MAAM,2BAA2B,GAAI,UAAU,MAAM,KAAG,MACT,CAAC;AASvD,iGAAiG;AACjG,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,IAWtE,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,mBAAmB,GAAI,MAAM,IAAI,EAAE,UAAU,MAAM,KAAG,IAIlE,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,UAAU,GAAG,SAW9D,CAAC;AAEF,wIAAwI;AACxI,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,IAG7D,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,EAAE,UAAU,MAAM,KAAG,IAKpE,CAAC"}
@@ -1,8 +1,3 @@
1
- /**
2
- * Converts a timestamp to a human-readable "last used" string,
3
- * e.g. "just now", "5 min ago", "3 hours ago", "2 days ago".
4
- *
5
- * Returns an empty string when the input is falsy or not a valid date.
6
- */
1
+ /** Converts a timestamp to a relative time string (e.g. `'5 min ago'`, `'2 days ago'`); returns an empty string when the input is falsy or invalid. */
7
2
  export declare const formatLastUsed: (timestamp?: number) => string;
8
3
  //# sourceMappingURL=format-last-used.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format-last-used.d.ts","sourceRoot":"","sources":["../../src/utils/format-last-used.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,KAAG,MA2BnD,CAAC"}
1
+ {"version":3,"file":"format-last-used.d.ts","sourceRoot":"","sources":["../../src/utils/format-last-used.ts"],"names":[],"mappings":"AAAA,uJAAuJ;AACvJ,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,KAAG,MA2BnD,CAAC"}
@@ -0,0 +1,7 @@
1
+ /** Formats an accumulated USD cost with at most two decimals (for example, `$0.79`). */
2
+ export declare const formatCost: (value: number) => string;
3
+ /** Formats an amount as USD, keeping up to six decimals for sub-dollar values (e.g. `$3`, `$0.3`). */
4
+ export declare const formatPrice: (value: number) => string;
5
+ /** Formats a per-unit price string for display, e.g. `$3/M tokens` or `$0.5/char without whitespace`. */
6
+ export declare const formatUnitPrice: (price: string | undefined, unit: string | undefined) => string | undefined;
7
+ //# sourceMappingURL=format-price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-price.d.ts","sourceRoot":"","sources":["../../src/utils/format-price.ts"],"names":[],"mappings":"AAwBA,wFAAwF;AACxF,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MACb,CAAC;AAE/B,sGAAsG;AACtG,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MAK3C,CAAC;AASF,yGAAyG;AACzG,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,GAAG,SAAS,EACzB,MAAM,MAAM,GAAG,SAAS,KACvB,MAAM,GAAG,SAWX,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Returns a UUID v4 string, with a fallback for non-secure browser contexts (HTTP deployments). */
2
+ export declare const generateUUID: () => string;
3
+ //# sourceMappingURL=generate-uuid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-uuid.d.ts","sourceRoot":"","sources":["../../src/utils/generate-uuid.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,eAAO,MAAM,YAAY,QAAO,MAY/B,CAAC"}
@@ -1,9 +1,3 @@
1
- /**
2
- * Returns 1–2 uppercase initials derived from a display name.
3
- *
4
- * - Empty/whitespace-only → `"?"`
5
- * - Two or more words → first letter of each of the first two words (skipping leading punctuation like `[` or `(`)
6
- * - Single word → first two letter characters of that word
7
- */
1
+ /** Returns 1–2 uppercase initials derived from a display name, or `'?'` when the name is empty. */
8
2
  export declare const extractInitials: (name: string) => string;
9
3
  //# sourceMappingURL=initials.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initials.d.ts","sourceRoot":"","sources":["../../src/utils/initials.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAa9C,CAAC"}
1
+ {"version":3,"file":"initials.d.ts","sourceRoot":"","sources":["../../src/utils/initials.ts"],"names":[],"mappings":"AAGA,mGAAmG;AACnG,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAa9C,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Escapes currency-looking dollar signs and converts single-dollar LaTeX math delimiters
3
+ * (`$...$`) to the double-dollar form (`$$...$$`) that `remark-math`/KaTeX render, leaving
4
+ * code blocks and already-escaped `\$` untouched.
5
+ *
6
+ * The `\(...\)`/`\[...\]` delimiters LLMs commonly emit are deliberately left as-is: they are
7
+ * recognized directly by `micromark-extension-llm-math`, which the consuming app's bundler
8
+ * config aliases in place of the default `micromark-extension-math` used by `remark-math`.
9
+ */
10
+ export declare const preprocessLaTeX: (content: string) => string;
11
+ //# sourceMappingURL=latex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latex.d.ts","sourceRoot":"","sources":["../../src/utils/latex.ts"],"names":[],"mappings":"AA8EA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,KAAG,MAuCjD,CAAC"}
@@ -17,6 +17,6 @@ export interface AttachmentDisplayResolvers {
17
17
  * the optional `resolvers` argument rather than performed here.
18
18
  */
19
19
  export declare const messageAttachmentToDisplayAttachment: (dto: MessageAttachment, resolvers?: AttachmentDisplayResolvers) => DisplayAttachment;
20
- /** Maps a list of {@link MessageAttachment} DTOs to display-only attachment models. */
20
+ /** Maps a list of {@link MessageAttachment} DTOs to display-only attachment models. Entries with duplicate `id` values are deduplicated — first occurrence wins. */
21
21
  export declare const messageAttachmentsToDisplayAttachments: (dtos: MessageAttachment[] | undefined, resolvers?: AttachmentDisplayResolvers) => DisplayAttachment[];
22
22
  //# sourceMappingURL=message-attachment-to-display.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message-attachment-to-display.d.ts","sourceRoot":"","sources":["../../src/utils/message-attachment-to-display.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAIxB;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,gFAAgF;IAChF,iBAAiB,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/D,iFAAiF;IACjF,cAAc,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7D;AAwCD;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,GAC/C,KAAK,iBAAiB,EACtB,YAAW,0BAA+B,KACzC,iBA6CF,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,sCAAsC,GACjD,MAAM,iBAAiB,EAAE,GAAG,SAAS,EACrC,YAAW,0BAA+B,KACzC,iBAAiB,EAEhB,CAAC"}
1
+ {"version":3,"file":"message-attachment-to-display.d.ts","sourceRoot":"","sources":["../../src/utils/message-attachment-to-display.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAIxB;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,gFAAgF;IAChF,iBAAiB,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/D,iFAAiF;IACjF,cAAc,CAAC,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7D;AAYD;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC,GAC/C,KAAK,iBAAiB,EACtB,YAAW,0BAA+B,KACzC,iBA4CF,CAAC;AAEF,oKAAoK;AACpK,eAAO,MAAM,sCAAsC,GACjD,MAAM,iBAAiB,EAAE,GAAG,SAAS,EACrC,YAAW,0BAA+B,KACzC,iBAAiB,EAYnB,CAAC"}
@@ -1,10 +1,4 @@
1
1
  import { Message, StatusMessage } from '../models/chat';
2
- /**
3
- * Narrows a `Message` to `StatusMessage` when its role is `MessageRole.Status`.
4
- * The parameter accepts `Message | StatusMessage` because `StatusMessage.custom_content`
5
- * is not assignable to `Message.custom_content`, so `StatusMessage` cannot be a
6
- * structural subtype of `Message`. Callers with `Message`-typed values can still pass
7
- * them directly since `Message` is assignable to the union.
8
- */
2
+ /** Returns `true` when `msg` is a `StatusMessage`. */
9
3
  export declare const isStatusMessage: (msg: Message | StatusMessage) => msg is StatusMessage;
10
4
  //# sourceMappingURL=message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/utils/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/E;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,GAAG,aAAa,KAC3B,GAAG,IAAI,aAAgD,CAAC"}
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/utils/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/E,sDAAsD;AACtD,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,GAAG,aAAa,KAC3B,GAAG,IAAI,aAAgD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { AttachmentType } from '../types/attachment';
2
+ import { MIMEType } from '../types/mime-type';
3
+ /** Strips a trailing `?query` string and/or `#fragment` from a URL or path. */
4
+ export declare const stripUrlQueryAndFragment: (url: string) => string;
5
+ /**
6
+ * Infers a `MIMEType` from a file path's extension, ignoring any query string
7
+ * or `#` fragment. Returns `undefined` when the path has no extension or the
8
+ * extension is not recognized.
9
+ */
10
+ export declare const inferMimeTypeFromPath: (path: string) => MIMEType | undefined;
11
+ /** Classifies a MIME type into an `AttachmentType` by prefix (`image/*` / `audio/*`), defaulting to `File`. */
12
+ export declare const getAttachmentTypeFromMime: (mimeType: string | undefined) => AttachmentType;
13
+ //# sourceMappingURL=mime-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mime-type.d.ts","sourceRoot":"","sources":["../../src/utils/mime-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAoF9C,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,GAAI,KAAK,MAAM,KAAG,MACjC,CAAC;AAEvB;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,QAAQ,GAAG,SAM/D,CAAC;AAEF,+GAA+G;AAC/G,eAAO,MAAM,yBAAyB,GACpC,UAAU,MAAM,GAAG,SAAS,KAC3B,cAIF,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Matches a `{{name}}` placeholder. The inner run excludes braces so a stray
3
+ * `{{` cannot swallow the rest of the document, and it must be non-empty so a
4
+ * literal `{{}}` stays plain text.
5
+ */
6
+ export declare const PROMPT_PARAM_PATTERN: RegExp;
7
+ /** Class applied to each highlighted placeholder. The host owns its styling. */
8
+ export declare const PROMPT_VARIABLE_CLASS_NAME = "cat-prompt-variable";
9
+ /** Minimal hast shapes this plugin reads and writes. */
10
+ interface HastNode {
11
+ type: string;
12
+ tagName?: string;
13
+ value?: string;
14
+ properties?: Record<string, unknown>;
15
+ children?: HastNode[];
16
+ }
17
+ /**
18
+ * Rehype plugin that wraps every `{{name}}` placeholder in a span so it can be
19
+ * styled apart from the surrounding prose. Placeholders inside code are left
20
+ * alone.
21
+ *
22
+ * The spans are built as hast nodes rather than injected as raw HTML, so a
23
+ * placeholder that contains markup cannot escape into the document.
24
+ */
25
+ export declare const rehypePromptVariables: () => (tree: HastNode) => void;
26
+ /**
27
+ * Returns the distinct `{{param}}` names found in `content`, in first-occurrence
28
+ * order. Single-brace sequences (e.g. `{name}`) are not parameters.
29
+ */
30
+ export declare const extractPromptParams: (content: string) => string[];
31
+ /**
32
+ * Replaces every `{{param}}` occurrence in `content` with the matching entry
33
+ * in `values` (keyed by parameter name). A token whose name is missing from
34
+ * `values` is left unchanged.
35
+ */
36
+ export declare const resolvePromptParams: (content: string, values: Record<string, string>) => string;
37
+ export {};
38
+ //# sourceMappingURL=prompt-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-variables.d.ts","sourceRoot":"","sources":["../../src/utils/prompt-variables.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAAsB,CAAC;AAExD,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAEhE,wDAAwD;AACxD,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB;AAoDD;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,SAAU,MAAM,QAAQ,SAEzD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,KAAG,MAAM,EAW3D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,SAAS,MAAM,EACf,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC7B,MAC4E,CAAC"}
@@ -1,3 +1,9 @@
1
+ /** Characters prohibited in conversation names: tab, ", :, ;, /, \, ,, =, {, }, %, & */
2
+ export declare const PROHIBITED_CONVERSATION_NAME_CHARS_RE: RegExp;
3
+ /** Strips characters DIAL Core rejects in a conversation name. */
4
+ export declare const sanitizeConversationName: (name: string) => string;
5
+ /** Strips trailing `.` characters from a name. */
6
+ export declare const stripTrailingDots: (name: string) => string;
1
7
  /** Returns the UTF-8 byte length of `str`. */
2
8
  export declare const getUtf8ByteLength: (str: string) => number;
3
9
  /** Truncates `str` to at most `maxBytes` UTF-8 bytes without splitting multi-byte characters. */
@@ -1 +1 @@
1
- {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../src/utils/string-utils.ts"],"names":[],"mappings":"AAGA,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,MACpB,CAAC;AAE7B,iGAAiG;AACjG,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,EAAE,UAAU,MAAM,KAAG,MAanE,CAAC"}
1
+ {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../src/utils/string-utils.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,qCAAqC,QAAsB,CAAC;AAEzE,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,KAAG,MACC,CAAC;AAE1D,kDAAkD;AAClD,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,MAQhD,CAAC;AAKF,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,MACpB,CAAC;AAE7B,iGAAiG;AACjG,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,EAAE,UAAU,MAAM,KAAG,MAanE,CAAC"}
@@ -0,0 +1,95 @@
1
+ //#region ../../node_modules/unist-util-is/lib/index.js
2
+ var e = (function(e) {
3
+ if (e == null) return a;
4
+ if (typeof e == "function") return i(e);
5
+ if (typeof e == "object") return Array.isArray(e) ? t(e) : n(e);
6
+ if (typeof e == "string") return r(e);
7
+ throw Error("Expected function, string, or object as test");
8
+ });
9
+ function t(t) {
10
+ let n = [], r = -1;
11
+ for (; ++r < t.length;) n[r] = e(t[r]);
12
+ return i(a);
13
+ function a(...e) {
14
+ let t = -1;
15
+ for (; ++t < n.length;) if (n[t].apply(this, e)) return !0;
16
+ return !1;
17
+ }
18
+ }
19
+ function n(e) {
20
+ let t = e;
21
+ return i(n);
22
+ function n(n) {
23
+ let r = n, i;
24
+ for (i in e) if (r[i] !== t[i]) return !1;
25
+ return !0;
26
+ }
27
+ }
28
+ function r(e) {
29
+ return i(t);
30
+ function t(t) {
31
+ return t && t.type === e;
32
+ }
33
+ }
34
+ function i(e) {
35
+ return t;
36
+ function t(t, n, r) {
37
+ return !!(o(t) && e.call(this, t, typeof n == "number" ? n : void 0, r || void 0));
38
+ }
39
+ }
40
+ function a() {
41
+ return !0;
42
+ }
43
+ function o(e) {
44
+ return typeof e == "object" && !!e && "type" in e;
45
+ }
46
+ //#endregion
47
+ //#region ../../node_modules/unist-util-visit-parents/lib/color.js
48
+ function s(e) {
49
+ return e;
50
+ }
51
+ //#endregion
52
+ //#region ../../node_modules/unist-util-visit-parents/lib/index.js
53
+ var c = [], l = "skip";
54
+ function u(t, n, r, i) {
55
+ let a;
56
+ typeof n == "function" && typeof r != "function" ? (i = r, r = n) : a = n;
57
+ let o = e(a), l = i ? -1 : 1;
58
+ u(t, void 0, [])();
59
+ function u(e, t, a) {
60
+ let f = e && typeof e == "object" ? e : {};
61
+ if (typeof f.type == "string") {
62
+ let t = typeof f.tagName == "string" ? f.tagName : typeof f.name == "string" ? f.name : void 0;
63
+ Object.defineProperty(p, "name", { value: "node (" + s(e.type + (t ? "<" + t + ">" : "")) + ")" });
64
+ }
65
+ return p;
66
+ function p() {
67
+ let s = c, f, p, m;
68
+ if ((!n || o(e, t, a[a.length - 1] || void 0)) && (s = d(r(e, a)), s[0] === !1)) return s;
69
+ if ("children" in e && e.children) {
70
+ let t = e;
71
+ if (t.children && s[0] !== "skip") for (p = (i ? t.children.length : -1) + l, m = a.concat(t); p > -1 && p < t.children.length;) {
72
+ let e = t.children[p];
73
+ if (f = u(e, p, m)(), f[0] === !1) return f;
74
+ p = typeof f[1] == "number" ? f[1] : p + l;
75
+ }
76
+ }
77
+ return s;
78
+ }
79
+ }
80
+ }
81
+ function d(e) {
82
+ return Array.isArray(e) ? e : typeof e == "number" ? [!0, e] : e == null ? c : [e];
83
+ }
84
+ //#endregion
85
+ //#region ../../node_modules/web-namespaces/index.js
86
+ var f = {
87
+ html: "http://www.w3.org/1999/xhtml",
88
+ mathml: "http://www.w3.org/1998/Math/MathML",
89
+ svg: "http://www.w3.org/2000/svg",
90
+ xlink: "http://www.w3.org/1999/xlink",
91
+ xml: "http://www.w3.org/XML/1998/namespace",
92
+ xmlns: "http://www.w3.org/2000/xmlns/"
93
+ };
94
+ //#endregion
95
+ export { e as i, l as n, u as r, f as t };
@@ -1,26 +0,0 @@
1
- import { FC } from 'react';
2
- /** CSS custom-property overrides for the `Highlight` component. */
3
- export interface HighlightColors {
4
- /** Highlighted match text color. */
5
- text?: string;
6
- /** Highlighted match background color. */
7
- background?: string;
8
- }
9
- /** Props for `Highlight`. */
10
- export interface HighlightProps {
11
- /** Full text to display. */
12
- text: string;
13
- /** Search query; the first case-insensitive match is highlighted. */
14
- query: string;
15
- /** Optional class name for the highlighted segment. */
16
- markClassName?: string;
17
- /** Optional class name forwarded to the `DialEllipsisTooltip` container. */
18
- className?: string;
19
- /** Maximum number of lines to display before truncating. Use `1` for single-line ellipsis truncation (e.g. list rows). Defaults to `2`. */
20
- maxLines?: number;
21
- /** Color overrides applied as CSS custom properties. */
22
- colors?: HighlightColors;
23
- }
24
- /** Renders text with the first occurrence of `query` wrapped in a highlight mark, with ellipsis truncation and a tooltip when overflowing. */
25
- export declare const Highlight: FC<HighlightProps>;
26
- //# sourceMappingURL=Highlight.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Highlight.d.ts","sourceRoot":"","sources":["../../../src/components/Highlight/Highlight.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,mEAAmE;AACnE,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,6BAA6B;AAC7B,MAAM,WAAW,cAAc;IAC7B,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2IAA2I;IAC3I,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAkBD,8IAA8I;AAC9I,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA8CxC,CAAC"}
@@ -1,16 +0,0 @@
1
- import { RefObject, UIEventHandler } from 'react';
2
- export interface UseTableScrollResult {
3
- /** Ref attached to the horizontally scrollable table container. */
4
- scrollContainerRef: RefObject<HTMLDivElement | null>;
5
- /** Ref attached to the table whose visible bounds are measured. */
6
- tableRef: RefObject<HTMLTableElement | null>;
7
- /** Whether table content remains beyond the logical start of the viewport. */
8
- hasContentBeyondStart: boolean;
9
- /** Whether table content remains beyond the logical end of the viewport. */
10
- hasContentBeyondEnd: boolean;
11
- /** Re-measures the visible table bounds after horizontal scrolling. */
12
- handleScroll: UIEventHandler<HTMLDivElement>;
13
- }
14
- /** Tracks whether a horizontally scrollable table has content beyond its logical end. */
15
- export declare const useTableScroll: () => UseTableScrollResult;
16
- //# sourceMappingURL=useTableScroll.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTableScroll.d.ts","sourceRoot":"","sources":["../../src/hooks/useTableScroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKvD,MAAM,WAAW,oBAAoB;IACnC,mEAAmE;IACnE,kBAAkB,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACrD,mEAAmE;IACnE,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC7C,8EAA8E;IAC9E,qBAAqB,EAAE,OAAO,CAAC;IAC/B,4EAA4E;IAC5E,mBAAmB,EAAE,OAAO,CAAC;IAC7B,uEAAuE;IACvE,YAAY,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CAC9C;AAED,yFAAyF;AACzF,eAAO,MAAM,cAAc,QAAO,oBAqDjC,CAAC"}