@epam/ai-dial-chat-shared 1.3.0-dev.5 → 1.3.0-dev.55

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 (244) hide show
  1. package/components/ConfirmationDialog/ConfirmationDialog.d.ts +41 -0
  2. package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -0
  3. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts +33 -0
  4. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts.map +1 -0
  5. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts +33 -0
  6. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts.map +1 -0
  7. package/components/ConfirmationView/ConfirmationFooter.d.ts +41 -0
  8. package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
  9. package/components/ConfirmationView/ConfirmationFooter.js +3 -1
  10. package/components/ConfirmationView/ConfirmationView.d.ts +57 -0
  11. package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
  12. package/components/ConfirmationView/ConfirmationView.js +15 -14
  13. package/components/CopyButton/CopyButton.d.ts +19 -0
  14. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  15. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts +41 -0
  16. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts.map +1 -0
  17. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.js +34 -0
  18. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +49 -0
  19. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
  20. package/components/DeleteConfirmationView/DeleteConfirmationView.js +37 -0
  21. package/components/DeleteConfirmationView/DeleteConfirmationView.module.scss.js +6 -0
  22. package/components/DeploymentIcon/DeploymentIcon.d.ts +36 -0
  23. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -0
  24. package/components/EntityHeader/EntityHeader.d.ts +38 -0
  25. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  26. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +18 -0
  27. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  28. package/components/FeaturedChip/FeaturedChip.d.ts +16 -0
  29. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  30. package/components/InitialsAvatar/InitialsAvatar.d.ts +15 -0
  31. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -0
  32. package/components/ItemHeader/ItemHeader.d.ts +36 -0
  33. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  34. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +53 -0
  35. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
  36. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +7 -0
  37. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -0
  38. package/components/MarkdownRenderer/MDMessageViewer.d.ts +66 -0
  39. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
  40. package/components/MarkdownRenderer/MDMessageViewer.js +14 -12
  41. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +139 -0
  42. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
  43. package/components/MarkdownRenderer/MarkdownRenderer.js +136 -129
  44. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
  45. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
  46. package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
  47. package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
  48. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +47 -0
  49. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
  50. package/components/MarkdownRenderer/Table/TableHeader.d.ts +22 -0
  51. package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +1 -0
  52. package/components/MarkdownRenderer/Table/table-serialization.d.ts +16 -0
  53. package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +1 -0
  54. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +27 -0
  55. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +1 -0
  56. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +9 -0
  57. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -0
  58. package/components/MarkdownRenderer/ThinkingShimmer.d.ts +17 -0
  59. package/components/MarkdownRenderer/ThinkingShimmer.d.ts.map +1 -0
  60. package/components/MarkdownRenderer/markdown-class-names.d.ts +10 -0
  61. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -0
  62. package/components/MarkdownRenderer/markdown-whitespace.d.ts +15 -0
  63. package/components/MarkdownRenderer/markdown-whitespace.d.ts.map +1 -0
  64. package/components/MarkdownRenderer/markdown-whitespace.js +18 -0
  65. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
  66. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  67. package/components/PanelEmptyState/PanelEmptyState.d.ts +22 -0
  68. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
  69. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  70. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  71. package/components/TextRefinementField/TextRefinementField.d.ts +31 -0
  72. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
  73. package/constants/breakpoint.d.ts +9 -0
  74. package/constants/breakpoint.d.ts.map +1 -0
  75. package/constants/dial.d.ts +5 -0
  76. package/constants/dial.d.ts.map +1 -0
  77. package/constants/entity-colors.d.ts +6 -0
  78. package/constants/entity-colors.d.ts.map +1 -0
  79. package/constants/icon.d.ts +14 -0
  80. package/constants/icon.d.ts.map +1 -0
  81. package/constants/markdown-editor.d.ts +2 -0
  82. package/constants/markdown-editor.d.ts.map +1 -0
  83. package/constants/mime-types.d.ts +27 -0
  84. package/constants/mime-types.d.ts.map +1 -0
  85. package/constants/public-class-names.d.ts +13 -0
  86. package/constants/public-class-names.d.ts.map +1 -0
  87. package/constants/resizable-fields.d.ts +5 -0
  88. package/constants/resizable-fields.d.ts.map +1 -0
  89. package/constants/select-list.d.ts +4 -0
  90. package/constants/select-list.d.ts.map +1 -0
  91. package/constants/tag-input.d.ts +2 -0
  92. package/constants/tag-input.d.ts.map +1 -0
  93. package/entry-points/file-manager.d.ts +5 -0
  94. package/entry-points/file-manager.d.ts.map +1 -0
  95. package/entry-points/markdown.d.ts +19 -0
  96. package/entry-points/markdown.d.ts.map +1 -0
  97. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +52 -0
  98. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  99. package/file-manager/DialFileManagerShell/DialFileManagerShell.js +128 -120
  100. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  101. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  102. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +2 -1
  103. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  104. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  105. package/file-manager/attach-result.d.ts +9 -0
  106. package/file-manager/attach-result.d.ts.map +1 -0
  107. package/file-manager/file-manager-controller.d.ts +121 -0
  108. package/file-manager/file-manager-controller.d.ts.map +1 -0
  109. package/file-manager/file-manager-variant.d.ts +21 -0
  110. package/file-manager/file-manager-variant.d.ts.map +1 -0
  111. package/file-manager/file-upload-validation.d.ts +8 -0
  112. package/file-manager/file-upload-validation.d.ts.map +1 -0
  113. package/file-manager/index.d.ts +10 -0
  114. package/file-manager/index.d.ts.map +1 -0
  115. package/file-manager/labels.d.ts +156 -0
  116. package/file-manager/labels.d.ts.map +1 -0
  117. package/file-manager/path.d.ts +12 -0
  118. package/file-manager/path.d.ts.map +1 -0
  119. package/file-manager/upload-batch.d.ts +29 -0
  120. package/file-manager/upload-batch.d.ts.map +1 -0
  121. package/file-manager/upload-queue.d.ts +5 -0
  122. package/file-manager/upload-queue.d.ts.map +1 -0
  123. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  124. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  125. package/file-manager.d.ts +2 -506
  126. package/hooks/useAvailableHeightCap.d.ts +30 -0
  127. package/hooks/useAvailableHeightCap.d.ts.map +1 -0
  128. package/hooks/useCodeCopy.d.ts +6 -0
  129. package/hooks/useCodeCopy.d.ts.map +1 -0
  130. package/hooks/useCollapsedText.d.ts +27 -0
  131. package/hooks/useCollapsedText.d.ts.map +1 -0
  132. package/hooks/useHorizontalOverflow.d.ts +21 -0
  133. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  134. package/hooks/useIsMobile.d.ts +3 -0
  135. package/hooks/useIsMobile.d.ts.map +1 -0
  136. package/hooks/useStreamedMarkdownContent.d.ts +3 -0
  137. package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
  138. package/hooks/useTextRefinement.d.ts +44 -0
  139. package/hooks/useTextRefinement.d.ts.map +1 -0
  140. package/hooks/useUnsavedChangesGuard.d.ts +14 -0
  141. package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
  142. package/index.css +2 -2
  143. package/index.d.ts +78 -3072
  144. package/index.d.ts.map +1 -0
  145. package/index.js +28 -25
  146. package/markdown.d.ts +2 -465
  147. package/markdown.js +3 -2
  148. package/models/annotation.d.ts +143 -0
  149. package/models/annotation.d.ts.map +1 -0
  150. package/models/application-visualizer.d.ts +67 -0
  151. package/models/application-visualizer.d.ts.map +1 -0
  152. package/models/auth.d.ts +26 -0
  153. package/models/auth.d.ts.map +1 -0
  154. package/models/chat.d.ts +407 -0
  155. package/models/chat.d.ts.map +1 -0
  156. package/models/conversation-classification.d.ts +9 -0
  157. package/models/conversation-classification.d.ts.map +1 -0
  158. package/models/conversation-transfer.d.ts +96 -0
  159. package/models/conversation-transfer.d.ts.map +1 -0
  160. package/models/custom-visualizer.d.ts +61 -0
  161. package/models/custom-visualizer.d.ts.map +1 -0
  162. package/models/deployment-configuration.d.ts +55 -0
  163. package/models/deployment-configuration.d.ts.map +1 -0
  164. package/models/deployment-features.d.ts +17 -0
  165. package/models/deployment-features.d.ts.map +1 -0
  166. package/models/deployment.d.ts +31 -0
  167. package/models/deployment.d.ts.map +1 -0
  168. package/models/dial-model.d.ts +19 -0
  169. package/models/dial-model.d.ts.map +1 -0
  170. package/models/entity.d.ts +15 -0
  171. package/models/entity.d.ts.map +1 -0
  172. package/models/import-export.d.ts +23 -0
  173. package/models/import-export.d.ts.map +1 -0
  174. package/models/inline-segment.d.ts +11 -0
  175. package/models/inline-segment.d.ts.map +1 -0
  176. package/models/locale.d.ts +19 -0
  177. package/models/locale.d.ts.map +1 -0
  178. package/models/text-refinement.d.ts +18 -0
  179. package/models/text-refinement.d.ts.map +1 -0
  180. package/models/theme.d.ts +36 -0
  181. package/models/theme.d.ts.map +1 -0
  182. package/models/tool-menu-item.d.ts +13 -0
  183. package/models/tool-menu-item.d.ts.map +1 -0
  184. package/package.json +3 -3
  185. package/types/attachment.d.ts +25 -0
  186. package/types/attachment.d.ts.map +1 -0
  187. package/types/code-editor.d.ts +8 -0
  188. package/types/code-editor.d.ts.map +1 -0
  189. package/types/entity-type.d.ts +10 -0
  190. package/types/entity-type.d.ts.map +1 -0
  191. package/types/file-manager-node.d.ts +17 -0
  192. package/types/file-manager-node.d.ts.map +1 -0
  193. package/types/mime-type.d.ts +59 -0
  194. package/types/mime-type.d.ts.map +1 -0
  195. package/utils/annotation.d.ts +29 -0
  196. package/utils/annotation.d.ts.map +1 -0
  197. package/utils/avatar-color.d.ts +10 -0
  198. package/utils/avatar-color.d.ts.map +1 -0
  199. package/utils/build-css-vars.d.ts +4 -0
  200. package/utils/build-css-vars.d.ts.map +1 -0
  201. package/utils/copy-to-clipboard.d.ts +18 -0
  202. package/utils/copy-to-clipboard.d.ts.map +1 -0
  203. package/utils/entity-field-limits.d.ts +11 -0
  204. package/utils/entity-field-limits.d.ts.map +1 -0
  205. package/utils/entity-type.d.ts +5 -0
  206. package/utils/entity-type.d.ts.map +1 -0
  207. package/utils/file-download.d.ts +21 -0
  208. package/utils/file-download.d.ts.map +1 -0
  209. package/utils/format-file-size.d.ts +3 -0
  210. package/utils/format-file-size.d.ts.map +1 -0
  211. package/utils/format-last-used.d.ts +3 -0
  212. package/utils/format-last-used.d.ts.map +1 -0
  213. package/utils/format-price.d.ts +7 -0
  214. package/utils/format-price.d.ts.map +1 -0
  215. package/utils/generate-uuid.d.ts +3 -0
  216. package/utils/generate-uuid.d.ts.map +1 -0
  217. package/utils/initials.d.ts +3 -0
  218. package/utils/initials.d.ts.map +1 -0
  219. package/utils/inline-segments.d.ts +38 -0
  220. package/utils/inline-segments.d.ts.map +1 -0
  221. package/utils/inline-segments.js +53 -0
  222. package/utils/is-audio-transcription-supported.d.ts +3 -0
  223. package/utils/is-audio-transcription-supported.d.ts.map +1 -0
  224. package/utils/is-skill-selection-unsupported.d.ts +3 -0
  225. package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
  226. package/utils/latex.d.ts +21 -0
  227. package/utils/latex.d.ts.map +1 -0
  228. package/utils/markdown-html.d.ts +14 -0
  229. package/utils/markdown-html.d.ts.map +1 -0
  230. package/utils/markdown-html.js +11 -0
  231. package/utils/merge-class.d.ts +4 -0
  232. package/utils/merge-class.d.ts.map +1 -0
  233. package/utils/message-attachment-to-display.d.ts +22 -0
  234. package/utils/message-attachment-to-display.d.ts.map +1 -0
  235. package/utils/message.d.ts +4 -0
  236. package/utils/message.d.ts.map +1 -0
  237. package/utils/mime-type.d.ts +22 -0
  238. package/utils/mime-type.d.ts.map +1 -0
  239. package/utils/prompt-variables.d.ts +62 -0
  240. package/utils/prompt-variables.d.ts.map +1 -0
  241. package/utils/string-utils.d.ts +11 -0
  242. package/utils/string-utils.d.ts.map +1 -0
  243. package/utils/syntax-highlighting.d.ts +8 -0
  244. package/utils/syntax-highlighting.d.ts.map +1 -0
@@ -0,0 +1,16 @@
1
+ import { CSSProperties, FC } from 'react';
2
+ import { CatalogEntityType } from '../../types/entity-type';
3
+ /** Props for `FeaturedChip`. */
4
+ export interface FeaturedChipProps {
5
+ /** Label text shown inside the chip. */
6
+ label: string;
7
+ /** Typography class for the label. Defaults to the kit badge's `'dial-caption-lead-semi-text'`. */
8
+ className?: string;
9
+ /** Entity category — picks the chip's default colours. */
10
+ type: CatalogEntityType;
11
+ /** Style overrides merged over the chip's default per-entity-type colors, e.g. `{ backgroundColor, color, border }`. */
12
+ style?: CSSProperties;
13
+ }
14
+ /** Featured badge rendered on a catalog card when `item.isFeatured` is true. */
15
+ export declare const FeaturedChip: FC<FeaturedChipProps>;
16
+ //# sourceMappingURL=FeaturedChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeaturedChip.d.ts","sourceRoot":"","sources":["../../../src/components/FeaturedChip/FeaturedChip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,gCAAgC;AAChC,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,IAAI,EAAE,iBAAiB,CAAC;IACxB,wHAAwH;IACxH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,gFAAgF;AAChF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAe9C,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ /** Props for `InitialsAvatar`. */
3
+ export interface InitialsAvatarProps {
4
+ /** Display name from which initials are derived. Empty string renders `"?"`. */
5
+ name: string;
6
+ /** Badge width and height in pixels. */
7
+ size: number;
8
+ /** Extra classes applied to the root element (e.g. `'shrink-0'`). */
9
+ className?: string;
10
+ /** Type-scale class for the initials. Defaults to none: the initials are semibold at 40% of `size`. */
11
+ textClassName?: string;
12
+ }
13
+ /** A square badge showing 1–2 initials derived from `name` on a deterministic colour background. */
14
+ export declare const InitialsAvatar: FC<InitialsAvatarProps>;
15
+ //# sourceMappingURL=InitialsAvatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitialsAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/InitialsAvatar/InitialsAvatar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uGAAuG;IACvG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,oGAAoG;AACpG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAclD,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { FC, ReactNode } from 'react';
2
+ /** CSS custom-property overrides for the `ItemHeader` component. */
3
+ export interface ItemHeaderColors {
4
+ /** Title text color. Defaults to `--text-primary`. */
5
+ title?: string;
6
+ /** Postfix text color. Defaults to `--text-secondary`. */
7
+ count?: string;
8
+ }
9
+ /** Props for `ItemHeader`. */
10
+ export interface ItemHeaderProps {
11
+ /** Title text rendered in the heading element. */
12
+ title: string;
13
+ /** Secondary value rendered after the title, such as a version or an item count. */
14
+ postfix?: number | string;
15
+ /** CSS class applied to the title. Defaults to `'dial-h3-text'`. */
16
+ titleClassName?: string;
17
+ /** CSS class applied to the postfix. Defaults to `'dial-tiny-text'`. */
18
+ postfixClassName?: string;
19
+ /** CSS class applied to the header row. */
20
+ className?: string;
21
+ /** Search query; when provided, the matching part of the title is highlighted. */
22
+ query?: string;
23
+ /** Optional content rendered at the trailing end of the header row. */
24
+ trailing?: ReactNode;
25
+ /** Color overrides applied as CSS custom properties. */
26
+ colors?: ItemHeaderColors;
27
+ /**
28
+ * Whether the title shrinks and truncates with an ellipsis. When `false` the
29
+ * title keeps its full width and the rest of the row gives way instead.
30
+ * Defaults to `true`.
31
+ */
32
+ shouldTruncateTitle?: boolean;
33
+ }
34
+ /** Item title header with optional numeric or string postfix and trailing slot. */
35
+ export declare const ItemHeader: FC<ItemHeaderProps>;
36
+ //# sourceMappingURL=ItemHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ItemHeader/ItemHeader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtC,oEAAoE;AACpE,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,oEAAoE;IACpE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,wDAAwD;IACxD,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,mFAAmF;AACnF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA0D1C,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { CodeBlockTheme } from '../../../types/code-editor';
3
+ /** CSS custom-property overrides for the `MarkdownCodeBlock` component. */
4
+ export interface MarkdownCodeBlockColors {
5
+ /** Container background color. */
6
+ background?: string;
7
+ /** Container/header border color. */
8
+ border?: string;
9
+ /** Header background color. */
10
+ headerBackground?: string;
11
+ /** Language label text color. */
12
+ language?: string;
13
+ /** Copy button icon color once copied. */
14
+ copied?: string;
15
+ /** Scrollbar thumb/track color. */
16
+ scrollbar?: string;
17
+ }
18
+ /** Props for {@link MarkdownCodeBlock}. */
19
+ export interface MarkdownCodeBlockProps {
20
+ /** Detected language from the fenced code block. Empty string for language-less blocks. */
21
+ language: string;
22
+ /** Raw code value with trailing newline stripped. */
23
+ value: string;
24
+ /** When true, the copy button is hidden (streaming in progress). */
25
+ isStreaming?: boolean;
26
+ /** Color theme for syntax highlighting. Defaults to `'dark'`. */
27
+ theme?: CodeBlockTheme;
28
+ /** Accessible label for the copy button. Defaults to `'Copy code'`. */
29
+ copyLabel?: string;
30
+ /** Message announced through the block's `aria-live="polite"` region after a copy completes. The copy button's own accessible name stays `copyLabel`. Defaults to `'Copied!'`. */
31
+ copiedLabel?: string;
32
+ /** Accessible label for the download button. Defaults to `'Download code'`. */
33
+ downloadLabel?: string;
34
+ /** When true, hides the download button while still showing copy. Defaults to `false`. */
35
+ hideDownload?: boolean;
36
+ /** Extra classes applied to the outer container element. */
37
+ containerClassName?: string;
38
+ /** Extra classes applied to the sticky header bar. */
39
+ headerClassName?: string;
40
+ /** Typography class for the `<code>` element (used when no language is detected). Defaults to `'dial-code-text'`. */
41
+ codeClassName?: string;
42
+ /** CSS class applied to the language label in the header. Defaults to `'dial-tiny-lead-semi-text'` plus the module's `.languageLabel` class (`--text-secondary`). */
43
+ languageLabelClassName?: string;
44
+ /** Header text shown in place of `language`, for blocks whose highlighting id is not the name to display (e.g. `bash` highlighted, `cURL` shown). Defaults to the `language` value. */
45
+ title?: string;
46
+ /** Custom content rendered in the header in place of the plain label, e.g. a language/endpoint select. Defaults to the plain label text. */
47
+ titleSlot?: ReactNode;
48
+ /** Color overrides applied as CSS custom properties. */
49
+ colors?: MarkdownCodeBlockColors;
50
+ }
51
+ /** Renders a fenced or multi-line code block with syntax highlighting and a copy button. */
52
+ export declare const MarkdownCodeBlock: FC<MarkdownCodeBlockProps>;
53
+ //# sourceMappingURL=CodeBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/CodeBlock/CodeBlock.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAQ,KAAK,EAAE,EAAQ,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAW5D,2EAA2E;AAC3E,MAAM,WAAW,uBAAuB;IACtC,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2CAA2C;AAC3C,MAAM,WAAW,sBAAsB;IACrC,2FAA2F;IAC3F,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iEAAiE;IACjE,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kLAAkL;IAClL,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0FAA0F;IAC1F,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qHAAqH;IACrH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qKAAqK;IACrK,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uLAAuL;IACvL,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4IAA4I;IAC5I,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAiBD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA0JxD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CSSProperties } from 'react';
2
+ /** Style map consumed by `react-syntax-highlighter`'s `Prism` renderer. */
3
+ type PrismStyleMap = Record<string, CSSProperties>;
4
+ /** Prism syntax-highlighting style map used by {@link MarkdownCodeBlock}, restrained to design-system CSS variables. */
5
+ export declare const restrainedSyntaxTheme: PrismStyleMap;
6
+ export {};
7
+ //# sourceMappingURL=syntax-theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syntax-theme.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownRenderer/CodeBlock/syntax-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,2EAA2E;AAC3E,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAQnD,wHAAwH;AACxH,eAAO,MAAM,qBAAqB,EAAE,aA6DnC,CAAC"}
@@ -0,0 +1,66 @@
1
+ import { FC } from 'react';
2
+ import { Components, Options } from 'react-markdown';
3
+ import { CodeBlockTheme } from '../../types/code-editor';
4
+ import { MarkdownRendererClassNames } from './MarkdownRenderer';
5
+ import { MarkdownTableActionLabels } from './Table/MarkdownTable';
6
+ /** Props for the {@link MDMessageViewer} markdown renderer. */
7
+ interface MDMessageViewerProps {
8
+ /** Raw markdown string to render. */
9
+ content: string;
10
+ /**
11
+ * Renders `content` verbatim as escaped plain text instead of running the
12
+ * Markdown pipeline — the conversation's `plain_text` response format.
13
+ * Markdown-only props (`components`, `urlTransform`, the code-block and
14
+ * table labels) do not apply while it is set. Defaults to `false`.
15
+ */
16
+ isPlainText?: boolean;
17
+ /** Enables gradual reveal for appended streaming content. */
18
+ isStreaming?: boolean;
19
+ /**
20
+ * Label shown while `isStreaming` is true and no content has arrived yet.
21
+ * Forwarded to {@link MarkdownRenderer}. Defaults to `'Thinking'`.
22
+ */
23
+ thinkingLabel?: string;
24
+ /**
25
+ * Additional react-markdown component overrides merged on top of the
26
+ * built-in map. Use to inject custom React nodes (e.g. citation markers)
27
+ * into specific markdown elements without modifying the viewer directly.
28
+ */
29
+ components?: Components;
30
+ /**
31
+ * Rewrites `href` and `src` values before they are rendered. Forwarded to
32
+ * {@link MarkdownRenderer}. Defaults to no extra rewrite.
33
+ */
34
+ urlTransform?: (url: string) => string;
35
+ /** Extra rehype plugins forwarded to {@link MarkdownRenderer}. Defaults to none. */
36
+ rehypePlugins?: NonNullable<Options['rehypePlugins']>;
37
+ /** When `false`, raw HTML renders as literal text. Forwarded to {@link MarkdownRenderer}; defaults to `true`. */
38
+ isRawHtmlEnabled?: boolean;
39
+ /** Accessible label for the copy button in code blocks. Forwarded to {@link MarkdownRenderer}. */
40
+ codeBlockCopyLabel?: string;
41
+ /** Accessible label for the copy button after copying. Forwarded to {@link MarkdownRenderer}. */
42
+ codeBlockCopiedLabel?: string;
43
+ /** Accessible label for the code-block download button. Forwarded to {@link MarkdownRenderer}. */
44
+ codeBlockDownloadLabel?: string;
45
+ /** Syntax highlight color theme for code blocks. Forwarded to {@link MarkdownRenderer}. */
46
+ codeBlockTheme?: CodeBlockTheme;
47
+ /** Localized labels for Markdown table actions. Forwarded to {@link MarkdownRenderer}. */
48
+ tableActionLabels?: MarkdownTableActionLabels;
49
+ /** Filename used when downloading a Markdown table as CSV. Forwarded to {@link MarkdownRenderer}. */
50
+ tableDownloadFilename?: string;
51
+ tableOnOpenInCanvas?: (markdown: string) => void;
52
+ /** Accessible label for a table's scrollable region. Forwarded to {@link MarkdownRenderer}. */
53
+ tableScrollRegionAriaLabel?: string;
54
+ /** Accessible label for a block formula's scrollable region. Forwarded to {@link MarkdownRenderer}. */
55
+ mathScrollRegionAriaLabel?: string;
56
+ /**
57
+ * Per-element typography classes. Defaults to {@link DEFAULT_MARKDOWN_CLASS_NAMES};
58
+ * pass {@link COMPACT_MARKDOWN_CLASS_NAMES} for the smaller body scale. Give a
59
+ * stable reference: this component is memoised.
60
+ */
61
+ classNames?: MarkdownRendererClassNames;
62
+ }
63
+ /** Renders message content as formatted markdown, or as escaped plain text when `isPlainText` is set. */
64
+ export declare const MDMessageViewer: FC<MDMessageViewerProps>;
65
+ export {};
66
+ //# sourceMappingURL=MDMessageViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MDMessageViewer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MDMessageViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAQ,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,y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.js";
4
4
  import { memo as r } from "react";
5
5
  import { jsx as i } from "react/jsx-runtime";
6
6
  //#region src/components/MarkdownRenderer/MDMessageViewer.tsx
7
- var a = r(({ content: r, isPlainText: a, isStreaming: o, thinkingLabel: s, components: c, urlTransform: l, codeBlockCopyLabel: u, codeBlockCopiedLabel: d, codeBlockDownloadLabel: f, codeBlockTheme: p, tableActionLabels: m, tableDownloadFilename: h, tableOnOpenInCanvas: g, tableScrollRegionAriaLabel: _, mathScrollRegionAriaLabel: v, classNames: y = t }) => a ? /* @__PURE__ */ i(n, {
7
+ var a = r(({ content: r, isPlainText: a, isStreaming: o, thinkingLabel: s, components: c, urlTransform: l, rehypePlugins: u, isRawHtmlEnabled: d, codeBlockCopyLabel: f, codeBlockCopiedLabel: p, codeBlockDownloadLabel: m, codeBlockTheme: h, tableActionLabels: g, tableDownloadFilename: _, tableOnOpenInCanvas: v, tableScrollRegionAriaLabel: y, mathScrollRegionAriaLabel: b, classNames: x = t }) => a ? /* @__PURE__ */ i(n, {
8
8
  content: r,
9
9
  isStreaming: o,
10
10
  thinkingLabel: s,
11
- classNames: y
11
+ classNames: x
12
12
  }) : /* @__PURE__ */ i(e, {
13
13
  content: r,
14
14
  isStreaming: o,
15
15
  thinkingLabel: s,
16
16
  components: c,
17
17
  urlTransform: l,
18
- codeBlockCopyLabel: u,
19
- codeBlockCopiedLabel: d,
20
- codeBlockDownloadLabel: f,
21
- codeBlockTheme: p,
22
- tableActionLabels: m,
23
- tableDownloadFilename: h,
24
- tableOnOpenInCanvas: g,
25
- tableScrollRegionAriaLabel: _,
26
- mathScrollRegionAriaLabel: v,
27
- classNames: y
18
+ rehypePlugins: u,
19
+ isRawHtmlEnabled: d,
20
+ codeBlockCopyLabel: f,
21
+ codeBlockCopiedLabel: p,
22
+ codeBlockDownloadLabel: m,
23
+ codeBlockTheme: h,
24
+ tableActionLabels: g,
25
+ tableDownloadFilename: _,
26
+ tableOnOpenInCanvas: v,
27
+ tableScrollRegionAriaLabel: y,
28
+ mathScrollRegionAriaLabel: b,
29
+ classNames: x
28
30
  }));
29
31
  //#endregion
30
32
  export { a as MDMessageViewer };
@@ -0,0 +1,139 @@
1
+ import { FC } from 'react';
2
+ import { Components, Options } from 'react-markdown';
3
+ import { CodeBlockTheme } from '../../types/code-editor';
4
+ import { MarkdownTableActionLabels, MarkdownTableClassNames } from './Table/MarkdownTable';
5
+ /** Per-element className overrides passed to {@link MarkdownRenderer}. */
6
+ export interface MarkdownRendererClassNames extends MarkdownTableClassNames {
7
+ /** Class on `<h1>`. */
8
+ h1?: string;
9
+ /** Class on `<h2>`. */
10
+ h2?: string;
11
+ /** Class on `<h3>`. */
12
+ h3?: string;
13
+ /** Class on `<h4>`. */
14
+ h4?: string;
15
+ /** Class on `<h5>`. */
16
+ h5?: string;
17
+ /** Class on `<h6>`. */
18
+ h6?: string;
19
+ /** Classes on `<p>` elements. */
20
+ p?: string;
21
+ /** Extra classes on `<ul>` (base: `list-disc ps-[2em]`). */
22
+ ul?: string;
23
+ /** Extra classes on `<ol>` (base: `list-decimal ps-[2em]`). */
24
+ ol?: string;
25
+ /** Typography class for `<strong>`. Defaults to `'dial-body-paragraph-semi-text'` — the semibold step matching the default `p` class. */
26
+ strong?: string;
27
+ /** Typography class for `<em>`. Defaults to `'italic'`. */
28
+ em?: string;
29
+ /** Extra classes on the {@link MarkdownCodeBlock} outer container. */
30
+ codeBlockContainer?: string;
31
+ /** Extra classes on the {@link MarkdownCodeBlock} header bar. */
32
+ codeBlockHeader?: string;
33
+ /** Typography class for the `<code>` element inside a code block. Defaults to `'dial-code-text'`. */
34
+ codeFont?: string;
35
+ /** Extra classes on inline `<code>` (base: `rounded px-1 py-0.5`). */
36
+ codeInline?: string;
37
+ /** Typography class for inline `<code>`. Defaults to `'dial-code-text'`. */
38
+ codeInlineFont?: string;
39
+ /** Extra classes on `<blockquote>` (base uses a logical start border and padding). */
40
+ blockquote?: string;
41
+ /** Extra classes on `<a>` (base uses the accent text color and an offset underline). */
42
+ link?: string;
43
+ /** Extra classes on `<hr>` separators. */
44
+ hr?: string;
45
+ /** Extra classes on deleted text rendered by GFM. */
46
+ del?: string;
47
+ /** Extra classes on `<th>` and `<td>` (base includes borders, spacing, and text wrapping). */
48
+ tableCell?: string;
49
+ /** Extra classes on `<td>` only (applied before `tableCell`, e.g. a body-cell background). */
50
+ tableBodyCell?: string;
51
+ /** Extra classes on `<th>` only (applied alongside `tableCell`). */
52
+ tableHeader?: string;
53
+ /** Typography class for `<th>` cells. Defaults to `'dial-tiny-lead-semi-text'`. Text color is set separately via `colors.tableHeaderText`. */
54
+ tableHeaderFont?: string;
55
+ /** Extra classes on the scrollable wrapper around block (display) LaTeX formulas. */
56
+ mathBlock?: string;
57
+ }
58
+ /** Props for {@link MarkdownRenderer}. */
59
+ export interface MarkdownRendererProps {
60
+ /** Raw markdown string to render. */
61
+ content: string;
62
+ /** Classes applied to the renderer root. */
63
+ containerClassName?: string;
64
+ /** When true, appended content is revealed gradually for smoother streaming updates. */
65
+ isStreaming?: boolean;
66
+ /** Reveal speed used while `isStreaming` is true. Defaults to 120 characters per second. */
67
+ streamCharactersPerSecond?: number;
68
+ /** Per-element styling classes. Merged with structural base classes inside the component. Defaults to no overrides (`{}`). */
69
+ classNames?: MarkdownRendererClassNames;
70
+ /**
71
+ * Full component overrides merged on top of the built-in map.
72
+ * Use for elements not covered by `classNames`.
73
+ */
74
+ components?: Components;
75
+ /**
76
+ * Rewrites `href` and `src` values before they are rendered. The result is
77
+ * still passed through react-markdown's protocol allowlist. Hosts use this
78
+ * to map DIAL file ids (`files/{bucket}/{path}`) to download URLs. Defaults
79
+ * to no extra rewrite.
80
+ */
81
+ urlTransform?: (url: string) => string;
82
+ /** Extra rehype plugins, applied after the built-in KaTeX pass. Defaults to none. */
83
+ rehypePlugins?: NonNullable<Options['rehypePlugins']>;
84
+ /** When `false`, raw HTML in `content` renders as literal text instead of being parsed into elements. Defaults to `true`. */
85
+ isRawHtmlEnabled?: boolean;
86
+ /**
87
+ * Label shown with a shimmer animation while `isStreaming` is true and no content has arrived yet.
88
+ * Defaults to `'Thinking'`. Pass a translated string from the consuming app.
89
+ */
90
+ thinkingLabel?: string;
91
+ /** Accessible label for the copy button in code blocks. Defaults to `'Copy code'`. */
92
+ codeBlockCopyLabel?: string;
93
+ /** Accessible label for the copy button after copying. Defaults to `'Copied!'`. */
94
+ codeBlockCopiedLabel?: string;
95
+ /** Accessible label for the download button in code blocks. Defaults to `'Download code'`. */
96
+ codeBlockDownloadLabel?: string;
97
+ /** Syntax highlight color theme for code blocks and tables. Defaults to `'dark'`. */
98
+ codeBlockTheme?: CodeBlockTheme;
99
+ /** Color overrides applied as CSS custom properties. */
100
+ colors?: MarkdownRendererColors;
101
+ /** Localized labels for Markdown table actions. Supplying them enables the action bar. */
102
+ tableActionLabels?: MarkdownTableActionLabels;
103
+ /** Filename used when downloading a Markdown table as CSV. Defaults to `'table.csv'`. */
104
+ tableDownloadFilename?: string;
105
+ tableOnOpenInCanvas?: (markdown: string) => void;
106
+ /** Accessible label for a table's horizontally scrollable region. Defaults to `'Scrollable table'`. */
107
+ tableScrollRegionAriaLabel?: string;
108
+ /** Accessible label for a block formula's horizontally scrollable region. Defaults to `'Scrollable formula'`. */
109
+ mathScrollRegionAriaLabel?: string;
110
+ }
111
+ /** CSS custom-property overrides for the `MarkdownRenderer` component. */
112
+ export interface MarkdownRendererColors {
113
+ /** Primary color of the "thinking" shimmer gradient. */
114
+ thinkingPrimary?: string;
115
+ /** Secondary color of the "thinking" shimmer gradient. */
116
+ thinkingSecondary?: string;
117
+ /** Border color for `<hr>` separators and table cell borders. */
118
+ border?: string;
119
+ /** Border color for the `<blockquote>` start border. Defaults to `--stroke-primary`. */
120
+ blockquoteBorder?: string;
121
+ /** Text color for `<blockquote>` content. Defaults to `--text-secondary`. */
122
+ blockquoteText?: string;
123
+ /** Text color for `<a>` links. Defaults to `--text-accent`. */
124
+ linkText?: string;
125
+ /** Focus-visible outline color for `<a>` links. Defaults to `--stroke-focus`. */
126
+ linkFocus?: string;
127
+ /** Text color for `<th>` table header cells. Defaults to `--text-secondary`. */
128
+ tableHeaderText?: string;
129
+ /** Text color for `<h6>` headings. Defaults to `--text-secondary`. */
130
+ headingSixText?: string;
131
+ /** Background color for inline `<code>` spans. Defaults to `--bg-layer-raised`. */
132
+ inlineCodeBackground?: string;
133
+ /** Text color for inline `<code>` spans. Defaults to `--text-primary`. */
134
+ inlineCodeText?: string;
135
+ }
136
+ export declare const defaultMarkdownComponents: Components;
137
+ /** Markdown renderer with GFM support. Styling is driven by `classNames`; structural overrides via `components`. */
138
+ export declare const MarkdownRenderer: FC<MarkdownRendererProps>;
139
+ //# sourceMappingURL=MarkdownRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AACf,OAAsB,EAEpB,KAAK,UAAU,EACf,KAAK,OAAO,EAEb,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AASzD,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAK/B,0EAA0E;AAC1E,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uBAAuB;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iCAAiC;IACjC,CAAC,CAAC,EAAE,MAAM,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