@epam/ai-dial-chat-shared 1.1.0-dev.423 → 1.1.0-dev.426

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 (252) hide show
  1. package/components/CopyButton/CopyButton.js +31 -0
  2. package/components/DeploymentIcon/DeploymentIcon.js +62 -0
  3. package/components/DeploymentIcon/DeploymentIcon.module.scss.js +3 -0
  4. package/components/EntityHeader/EntityHeader.js +47 -0
  5. package/components/EntityTypeLabel/EntityTypeLabel.js +10 -0
  6. package/components/FeaturedChip/FeaturedChip.js +17 -0
  7. package/components/InitialsAvatar/InitialsAvatar.js +29 -0
  8. package/components/InitialsAvatar/InitialsAvatar.module.scss.js +6 -0
  9. package/components/ItemHeader/ItemHeader.js +35 -0
  10. package/components/ItemHeader/ItemHeader.module.scss.js +6 -0
  11. package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +104 -0
  12. package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +10 -0
  13. package/components/MarkdownRenderer/CodeBlock/syntax-theme.js +71 -0
  14. package/components/MarkdownRenderer/MDMessageViewer.js +22 -0
  15. package/components/MarkdownRenderer/MarkdownRenderer.js +280 -0
  16. package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +11 -0
  17. package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +24 -0
  18. package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +6 -0
  19. package/components/MarkdownRenderer/Table/MarkdownTable.js +77 -0
  20. package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -0
  21. package/components/MarkdownRenderer/Table/TableHeader.js +30 -0
  22. package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -0
  23. package/components/MarkdownRenderer/Table/table-serialization.js +6 -0
  24. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.js +66 -0
  25. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.js +12 -0
  26. package/components/MarkdownRenderer/markdown-class-names.js +23 -0
  27. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js +18 -0
  28. package/components/PanelEmptyState/PanelEmptyState.js +24 -0
  29. package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -0
  30. package/components/ResourceSummary/ResourceSummary.js +34 -0
  31. package/components/ResourceSummary/ResourceSummary.module.scss.js +6 -0
  32. package/constants/dial.js +4 -0
  33. package/constants/entity-colors.js +17 -0
  34. package/constants/icon.js +13 -0
  35. package/constants/mime-types.js +99 -0
  36. package/constants/resizable-fields.js +4 -0
  37. package/constants/tag-input.js +4 -0
  38. package/file-manager/DialFileManagerShell/DialFileManagerShell.js +299 -0
  39. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +93 -0
  40. package/file-manager/OperationLoaderModal/OperationLoaderModal.js +36 -0
  41. package/file-manager/UploadProgressModal/UploadProgressModal.js +56 -0
  42. package/file-manager/file-manager-variant.js +8 -0
  43. package/file-manager/path.js +7 -0
  44. package/file-manager/upload-batch.js +6 -0
  45. package/file-manager/useGridEditingScroll/useGridEditingScroll.js +45 -0
  46. package/file-manager.d.ts +461 -0
  47. package/file-manager.js +2 -1
  48. package/hooks/useCodeCopy.js +20 -0
  49. package/hooks/useCollapsedText.js +38 -0
  50. package/hooks/useHorizontalOverflow.js +25 -0
  51. package/hooks/useIsMobile.js +12 -0
  52. package/hooks/useStreamedMarkdownContent.js +32 -0
  53. package/index.css +1 -1
  54. package/index.d.ts +2405 -62
  55. package/index.js +61 -16876
  56. package/markdown.d.ts +401 -0
  57. package/markdown.js +11 -0
  58. package/models/chat.js +14 -0
  59. package/models/conversation-classification.js +6 -0
  60. package/models/conversation-transfer.js +14 -0
  61. package/models/deployment-features.js +6 -0
  62. package/package.json +48 -3
  63. package/types/attachment.js +8 -0
  64. package/types/code-editor.js +6 -0
  65. package/types/entity-type.js +6 -0
  66. package/types/mime-type.js +8 -0
  67. package/utils/avatar-color.js +37 -0
  68. package/utils/build-css-vars.js +8 -0
  69. package/utils/copy-to-clipboard.js +69 -0
  70. package/utils/file-download.js +79 -0
  71. package/utils/format-file-size.js +4 -0
  72. package/utils/format-last-used.js +20 -0
  73. package/utils/format-price.js +18 -0
  74. package/utils/generate-uuid.js +7 -0
  75. package/utils/initials.js +7 -0
  76. package/utils/is-audio-transcription-supported.js +5 -0
  77. package/utils/latex.js +34 -0
  78. package/utils/merge-class.js +8 -0
  79. package/utils/message-attachment-to-display.js +31 -0
  80. package/utils/message.js +5 -0
  81. package/utils/mime-type.js +73 -0
  82. package/utils/prompt-variables.js +42 -0
  83. package/utils/string-utils.js +14 -0
  84. package/FileManagerAttachModal-rkWJ1bqK.js +0 -512
  85. package/components/CopyButton/CopyButton.d.ts +0 -17
  86. package/components/CopyButton/CopyButton.d.ts.map +0 -1
  87. package/components/DeploymentIcon/DeploymentIcon.d.ts +0 -36
  88. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +0 -1
  89. package/components/EntityHeader/EntityHeader.d.ts +0 -34
  90. package/components/EntityHeader/EntityHeader.d.ts.map +0 -1
  91. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +0 -16
  92. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +0 -1
  93. package/components/FeaturedChip/FeaturedChip.d.ts +0 -14
  94. package/components/FeaturedChip/FeaturedChip.d.ts.map +0 -1
  95. package/components/InitialsAvatar/InitialsAvatar.d.ts +0 -15
  96. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +0 -1
  97. package/components/ItemHeader/ItemHeader.d.ts +0 -36
  98. package/components/ItemHeader/ItemHeader.d.ts.map +0 -1
  99. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +0 -53
  100. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +0 -1
  101. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +0 -7
  102. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +0 -1
  103. package/components/MarkdownRenderer/MDMessageViewer.d.ts +0 -51
  104. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +0 -1
  105. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +0 -140
  106. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
  107. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +0 -18
  108. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +0 -1
  109. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +0 -49
  110. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +0 -1
  111. package/components/MarkdownRenderer/Table/TableHeader.d.ts +0 -22
  112. package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +0 -1
  113. package/components/MarkdownRenderer/Table/table-serialization.d.ts +0 -19
  114. package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +0 -1
  115. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +0 -27
  116. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +0 -1
  117. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +0 -9
  118. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +0 -1
  119. package/components/MarkdownRenderer/markdown-class-names.d.ts +0 -10
  120. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +0 -1
  121. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +0 -15
  122. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +0 -1
  123. package/components/PanelEmptyState/PanelEmptyState.d.ts +0 -24
  124. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +0 -1
  125. package/components/ResourceSummary/ResourceSummary.d.ts +0 -49
  126. package/components/ResourceSummary/ResourceSummary.d.ts.map +0 -1
  127. package/constants/dial.d.ts +0 -3
  128. package/constants/dial.d.ts.map +0 -1
  129. package/constants/entity-colors.d.ts +0 -6
  130. package/constants/entity-colors.d.ts.map +0 -1
  131. package/constants/icon.d.ts +0 -14
  132. package/constants/icon.d.ts.map +0 -1
  133. package/constants/mime-types.d.ts +0 -13
  134. package/constants/mime-types.d.ts.map +0 -1
  135. package/constants/resizable-fields.d.ts +0 -3
  136. package/constants/resizable-fields.d.ts.map +0 -1
  137. package/constants/tag-input.d.ts +0 -2
  138. package/constants/tag-input.d.ts.map +0 -1
  139. package/entry-points/file-manager.d.ts +0 -4
  140. package/entry-points/file-manager.d.ts.map +0 -1
  141. package/esm-CopgoDht.js +0 -16197
  142. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +0 -49
  143. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +0 -1
  144. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +0 -89
  145. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +0 -1
  146. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +0 -17
  147. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +0 -1
  148. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts +0 -20
  149. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts.map +0 -1
  150. package/file-manager/attach-result.d.ts +0 -9
  151. package/file-manager/attach-result.d.ts.map +0 -1
  152. package/file-manager/file-manager-controller.d.ts +0 -117
  153. package/file-manager/file-manager-controller.d.ts.map +0 -1
  154. package/file-manager/file-manager-variant.d.ts +0 -21
  155. package/file-manager/file-manager-variant.d.ts.map +0 -1
  156. package/file-manager/file-upload-validation.d.ts +0 -8
  157. package/file-manager/file-upload-validation.d.ts.map +0 -1
  158. package/file-manager/index.d.ts +0 -13
  159. package/file-manager/index.d.ts.map +0 -1
  160. package/file-manager/labels.d.ts +0 -137
  161. package/file-manager/labels.d.ts.map +0 -1
  162. package/file-manager/path.d.ts +0 -12
  163. package/file-manager/path.d.ts.map +0 -1
  164. package/file-manager/upload-batch.d.ts +0 -27
  165. package/file-manager/upload-batch.d.ts.map +0 -1
  166. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +0 -27
  167. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +0 -1
  168. package/hooks/useCodeCopy.d.ts +0 -6
  169. package/hooks/useCodeCopy.d.ts.map +0 -1
  170. package/hooks/useCollapsedText.d.ts +0 -27
  171. package/hooks/useCollapsedText.d.ts.map +0 -1
  172. package/hooks/useHorizontalOverflow.d.ts +0 -21
  173. package/hooks/useHorizontalOverflow.d.ts.map +0 -1
  174. package/hooks/useIsMobile.d.ts +0 -3
  175. package/hooks/useIsMobile.d.ts.map +0 -1
  176. package/hooks/useStreamedMarkdownContent.d.ts +0 -3
  177. package/hooks/useStreamedMarkdownContent.d.ts.map +0 -1
  178. package/index.d.ts.map +0 -1
  179. package/index.dom-BKBT_wVu.js +0 -10
  180. package/lib-CglXTr1t.js +0 -1234
  181. package/models/annotation.d.ts +0 -87
  182. package/models/annotation.d.ts.map +0 -1
  183. package/models/auth.d.ts +0 -26
  184. package/models/auth.d.ts.map +0 -1
  185. package/models/chat.d.ts +0 -347
  186. package/models/chat.d.ts.map +0 -1
  187. package/models/conversation-classification.d.ts +0 -9
  188. package/models/conversation-classification.d.ts.map +0 -1
  189. package/models/conversation-transfer.d.ts +0 -94
  190. package/models/conversation-transfer.d.ts.map +0 -1
  191. package/models/custom-visualizer.d.ts +0 -61
  192. package/models/custom-visualizer.d.ts.map +0 -1
  193. package/models/deployment-configuration.d.ts +0 -55
  194. package/models/deployment-configuration.d.ts.map +0 -1
  195. package/models/deployment-features.d.ts +0 -17
  196. package/models/deployment-features.d.ts.map +0 -1
  197. package/models/deployment.d.ts +0 -31
  198. package/models/deployment.d.ts.map +0 -1
  199. package/models/dial-model.d.ts +0 -19
  200. package/models/dial-model.d.ts.map +0 -1
  201. package/models/entity.d.ts +0 -15
  202. package/models/entity.d.ts.map +0 -1
  203. package/models/import-export.d.ts +0 -23
  204. package/models/import-export.d.ts.map +0 -1
  205. package/models/theme.d.ts +0 -36
  206. package/models/theme.d.ts.map +0 -1
  207. package/models/tool-menu-item.d.ts +0 -13
  208. package/models/tool-menu-item.d.ts.map +0 -1
  209. package/rehype-katex-Da1z0EAE.js +0 -22235
  210. package/types/attachment.d.ts +0 -23
  211. package/types/attachment.d.ts.map +0 -1
  212. package/types/code-editor.d.ts +0 -8
  213. package/types/code-editor.d.ts.map +0 -1
  214. package/types/entity-type.d.ts +0 -10
  215. package/types/entity-type.d.ts.map +0 -1
  216. package/types/mime-type.d.ts +0 -59
  217. package/types/mime-type.d.ts.map +0 -1
  218. package/utils/avatar-color.d.ts +0 -10
  219. package/utils/avatar-color.d.ts.map +0 -1
  220. package/utils/build-css-vars.d.ts +0 -4
  221. package/utils/build-css-vars.d.ts.map +0 -1
  222. package/utils/copy-to-clipboard.d.ts +0 -18
  223. package/utils/copy-to-clipboard.d.ts.map +0 -1
  224. package/utils/file-download.d.ts +0 -21
  225. package/utils/file-download.d.ts.map +0 -1
  226. package/utils/format-file-size.d.ts +0 -3
  227. package/utils/format-file-size.d.ts.map +0 -1
  228. package/utils/format-last-used.d.ts +0 -3
  229. package/utils/format-last-used.d.ts.map +0 -1
  230. package/utils/format-price.d.ts +0 -7
  231. package/utils/format-price.d.ts.map +0 -1
  232. package/utils/generate-uuid.d.ts +0 -3
  233. package/utils/generate-uuid.d.ts.map +0 -1
  234. package/utils/initials.d.ts +0 -3
  235. package/utils/initials.d.ts.map +0 -1
  236. package/utils/is-audio-transcription-supported.d.ts +0 -3
  237. package/utils/is-audio-transcription-supported.d.ts.map +0 -1
  238. package/utils/latex.d.ts +0 -11
  239. package/utils/latex.d.ts.map +0 -1
  240. package/utils/merge-class.d.ts +0 -4
  241. package/utils/merge-class.d.ts.map +0 -1
  242. package/utils/message-attachment-to-display.d.ts +0 -22
  243. package/utils/message-attachment-to-display.d.ts.map +0 -1
  244. package/utils/message.d.ts +0 -4
  245. package/utils/message.d.ts.map +0 -1
  246. package/utils/mime-type.d.ts +0 -13
  247. package/utils/mime-type.d.ts.map +0 -1
  248. package/utils/prompt-variables.d.ts +0 -38
  249. package/utils/prompt-variables.d.ts.map +0 -1
  250. package/utils/string-utils.d.ts +0 -11
  251. package/utils/string-utils.d.ts.map +0 -1
  252. package/web-namespaces-BJylbtYz.js +0 -95
@@ -1,23 +0,0 @@
1
- /** Discriminates why an attachment upload failed. Only set when `status === RequestStatus.Error`. */
2
- export declare enum AttachmentErrorReason {
3
- /** Upload failed because the device was offline. */
4
- Network = "network",
5
- /** File MIME type is not in the deployment's inputAttachmentTypes list. */
6
- UnsupportedType = "unsupported-type"
7
- }
8
- /** Discriminates the kind of content an attachment carries. */
9
- export declare enum AttachmentType {
10
- /** Generic file attachment (non-image, non-audio). */
11
- File = "file",
12
- /** Raster or vector image. */
13
- Image = "image",
14
- /** Audio file that can be played inline. */
15
- Audio = "audio",
16
- /** A saved prompt snippet. */
17
- Prompt = "prompt",
18
- /** Text pasted directly by the user. */
19
- Pasted = "pasted",
20
- /** A link to a file or webpage. */
21
- Link = "link"
22
- }
23
- //# sourceMappingURL=attachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/types/attachment.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,oBAAY,qBAAqB;IAC/B,oDAAoD;IACpD,OAAO,YAAY;IACnB,2EAA2E;IAC3E,eAAe,qBAAqB;CACrC;AAED,+DAA+D;AAC/D,oBAAY,cAAc;IACxB,sDAAsD;IACtD,IAAI,SAAS;IACb,8BAA8B;IAC9B,KAAK,UAAU;IACf,4CAA4C;IAC5C,KAAK,UAAU;IACf,8BAA8B;IAC9B,MAAM,WAAW;IACjB,wCAAwC;IACxC,MAAM,WAAW;IACjB,mCAAmC;IACnC,IAAI,SAAS;CACd"}
@@ -1,8 +0,0 @@
1
- /** Color theme for syntax highlighting. */
2
- export declare enum CodeBlockTheme {
3
- /** Dark syntax-highlighting theme. */
4
- Dark = "dark",
5
- /** Light syntax-highlighting theme. */
6
- Light = "light"
7
- }
8
- //# sourceMappingURL=code-editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../src/types/code-editor.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,oBAAY,cAAc;IACxB,sCAAsC;IACtC,IAAI,SAAS;IACb,uCAAuC;IACvC,KAAK,UAAU;CAChB"}
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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,59 +0,0 @@
1
- /** Well-known MIME type constants used in DIAL API attachments. */
2
- export declare enum MIMEType {
3
- /** GitHub-flavoured Markdown. */
4
- Markdown = "text/markdown",
5
- /** Plain unformatted text. */
6
- Plain = "text/plain",
7
- /** HTML markup. */
8
- HTML = "text/html",
9
- /** XHTML markup. */
10
- XHTML = "application/xhtml+xml",
11
- /** Cascading Style Sheets. */
12
- CSS = "text/css",
13
- /** JavaScript source. */
14
- JavaScript = "text/javascript",
15
- /** TypeScript source (non-standard but widely used). */
16
- TypeScript = "text/typescript",
17
- /** CSV spreadsheet data. */
18
- CSV = "text/csv",
19
- /** JSON data. */
20
- JSON = "application/json",
21
- /** XML document (application type). */
22
- XML = "application/xml",
23
- /** PDF document. */
24
- PDF = "application/pdf",
25
- /** ZIP archive. */
26
- ZIP = "application/zip",
27
- /** GZIP-compressed data. */
28
- GZIP = "application/gzip",
29
- /** JPEG raster image. */
30
- JPEG = "image/jpeg",
31
- /** PNG raster image. */
32
- PNG = "image/png",
33
- /** GIF image. */
34
- GIF = "image/gif",
35
- /** WebP image. */
36
- WebP = "image/webp",
37
- /** BMP bitmap image. */
38
- BMP = "image/bmp",
39
- /** SVG vector image. */
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"
47
- }
48
- /** Well-known file extension constants used as fallback when a MIME type is unavailable. */
49
- export declare enum FileExtension {
50
- /** PDF document. */
51
- PDF = "pdf",
52
- /** Markdown document (`.md`). */
53
- Markdown = "md",
54
- /** Markdown document, alternate extension (`.markdown`). */
55
- MarkdownAlt = "markdown",
56
- /** JSON document. */
57
- JSON = "json"
58
- }
59
- //# sourceMappingURL=mime-type.d.ts.map
@@ -1 +0,0 @@
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,10 +0,0 @@
1
- /** A background/foreground colour pair for an initials avatar badge. */
2
- export interface AvatarColorEntry {
3
- /** CSS colour value for the badge background — a theme token with a hex fallback. */
4
- background: string;
5
- /** CSS colour value for the initials text — a theme token with a hex fallback. */
6
- foreground: string;
7
- }
8
- /** Returns a deterministic colour-pair for the given display name. */
9
- export declare const pickAvatarColor: (name: string) => AvatarColorEntry;
10
- //# sourceMappingURL=avatar-color.d.ts.map
@@ -1 +0,0 @@
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,4 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- /** Builds a `CSSProperties` object from a record of CSS custom property names to values, omitting entries with `undefined` or empty-string values. */
3
- export declare const buildCssVars: (vars: Record<string, string | number | undefined>) => CSSProperties;
4
- //# sourceMappingURL=build-css-vars.d.ts.map
@@ -1 +0,0 @@
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,18 +0,0 @@
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
- /** Copies `text` to the clipboard; returns `true` on success, `false` when both the Clipboard API and the `execCommand` fallback fail. */
17
- export declare const copyToClipboard: (text: string) => Promise<boolean>;
18
- //# sourceMappingURL=copy-to-clipboard.d.ts.map
@@ -1 +0,0 @@
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,21 +0,0 @@
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;
9
- /** Returns the file extension (without a leading dot) for a fenced-code-block language identifier, defaulting to `txt`. */
10
- export declare const getFileExtensionForLanguage: (language: string) => string;
11
- /** Creates a temporary anchor element and clicks it to trigger a browser download for `href`. */
12
- export declare const triggerAnchorDownload: (href: string, filename: string) => void;
13
- /** Triggers a browser download of `blob`, using a temporary object URL that is revoked afterward. */
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;
19
- /** Triggers a browser download of `content` as a text file named `filename`. */
20
- export declare const downloadTextFile: (content: string, filename: string, mimeType?: string) => void;
21
- //# sourceMappingURL=file-download.d.ts.map
@@ -1 +0,0 @@
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,GAC3B,SAAS,MAAM,EACf,UAAU,MAAM,EAChB,iBAAqC,KACpC,IAEF,CAAC"}
@@ -1,3 +0,0 @@
1
- /** Formats a byte count as a human-readable size string (e.g. `840 KB`, `2.4 MB`). */
2
- export declare const formatFileSize: (bytes: number) => string;
3
- //# sourceMappingURL=format-file-size.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-file-size.d.ts","sourceRoot":"","sources":["../../src/utils/format-file-size.ts"],"names":[],"mappings":"AAIA,sFAAsF;AACtF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAQ9C,CAAC"}
@@ -1,3 +0,0 @@
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. */
2
- export declare const formatLastUsed: (timestamp?: number) => string;
3
- //# sourceMappingURL=format-last-used.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
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
@@ -1 +0,0 @@
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,3 +0,0 @@
1
- /** Returns 1–2 uppercase initials derived from a display name, or `'?'` when the name is empty. */
2
- export declare const extractInitials: (name: string) => string;
3
- //# sourceMappingURL=initials.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- /** Returns `true` when `types` contains a wildcard or any audio MIME type; `false` otherwise. */
2
- export declare const isAudioTranscriptionSupported: (types?: string[]) => boolean;
3
- //# sourceMappingURL=is-audio-transcription-supported.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-audio-transcription-supported.d.ts","sourceRoot":"","sources":["../../src/utils/is-audio-transcription-supported.ts"],"names":[],"mappings":"AAKA,iGAAiG;AACjG,eAAO,MAAM,6BAA6B,GAAI,QAAQ,MAAM,EAAE,KAAG,OAGrD,CAAC"}
package/utils/latex.d.ts DELETED
@@ -1,11 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { default as classNames } from 'classnames';
2
- /** Merge class names (classnames → tailwind-merge). */
3
- export declare function mergeClasses(...inputs: Parameters<typeof classNames>): string;
4
- //# sourceMappingURL=merge-class.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"merge-class.d.ts","sourceRoot":"","sources":["../../src/utils/merge-class.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AAGpC,uDAAuD;AACvD,wBAAgB,YAAY,CAAC,GAAG,MAAM,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,MAAM,CAE7E"}
@@ -1,22 +0,0 @@
1
- import { DisplayAttachment, MessageAttachment } from '../models/chat';
2
- /**
3
- * Optional app-owned callbacks used to resolve display URLs for an attachment.
4
- * When omitted, the mapper falls back to the attachment's own `url` (or a
5
- * synthesized `data:` URL when only inline base64 `data` is present).
6
- */
7
- export interface AttachmentDisplayResolvers {
8
- /** Resolves the image preview URL for an attachment that has a remote `url`. */
9
- resolvePreviewUrl?(dto: MessageAttachment): string | undefined;
10
- /** Resolves the audio playback URL for an attachment that has a remote `url`. */
11
- resolvePlayUrl?(dto: MessageAttachment): string | undefined;
12
- }
13
- /**
14
- * Maps a {@link MessageAttachment} DTO to the display-only {@link DisplayAttachment}
15
- * model used by UI components. This is a pure function: any app/host-specific URL
16
- * resolution (catalog icon URLs, DIAL file download URLs, etc.) is injected through
17
- * the optional `resolvers` argument rather than performed here.
18
- */
19
- export declare const messageAttachmentToDisplayAttachment: (dto: MessageAttachment, resolvers?: AttachmentDisplayResolvers) => DisplayAttachment;
20
- /** Maps a list of {@link MessageAttachment} DTOs to display-only attachment models. Entries with duplicate `id` values are deduplicated — first occurrence wins. */
21
- export declare const messageAttachmentsToDisplayAttachments: (dtos: MessageAttachment[] | undefined, resolvers?: AttachmentDisplayResolvers) => DisplayAttachment[];
22
- //# sourceMappingURL=message-attachment-to-display.d.ts.map
@@ -1 +0,0 @@
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,4 +0,0 @@
1
- import { Message, StatusMessage } from '../models/chat';
2
- /** Returns `true` when `msg` is a `StatusMessage`. */
3
- export declare const isStatusMessage: (msg: Message | StatusMessage) => msg is StatusMessage;
4
- //# sourceMappingURL=message.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,38 +0,0 @@
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
@@ -1 +0,0 @@
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,11 +0,0 @@
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;
7
- /** Returns the UTF-8 byte length of `str`. */
8
- export declare const getUtf8ByteLength: (str: string) => number;
9
- /** Truncates `str` to at most `maxBytes` UTF-8 bytes without splitting multi-byte characters. */
10
- export declare const truncateToUtf8Bytes: (str: string, maxBytes: number) => string;
11
- //# sourceMappingURL=string-utils.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,95 +0,0 @@
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 };