impact-nova 2.5.16 → 2.6.0-alpha.0

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 (254) hide show
  1. package/README.md +27 -25
  2. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +28 -1
  3. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.d.ts +0 -3
  4. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +31 -38
  5. package/dist/components/data/ag-grid-react/cell-renderers/input-display-renderer.d.ts +1 -1
  6. package/dist/components/data/ag-grid-react/chat/chat-capabilities.d.ts +9 -0
  7. package/dist/components/data/ag-grid-react/chat/chat-capabilities.js +22 -0
  8. package/dist/components/data/ag-grid-react/chat/chat-column.d.ts +20 -0
  9. package/dist/components/data/ag-grid-react/chat/chat-column.js +81 -0
  10. package/dist/components/data/ag-grid-react/chat/chat-composer.d.ts +10 -0
  11. package/dist/components/data/ag-grid-react/chat/chat-composer.js +352 -0
  12. package/dist/components/data/ag-grid-react/chat/chat-constants.d.ts +17 -0
  13. package/dist/components/data/ag-grid-react/chat/chat-constants.js +22 -0
  14. package/dist/components/data/ag-grid-react/chat/chat-format.d.ts +41 -0
  15. package/dist/components/data/ag-grid-react/chat/chat-format.js +94 -0
  16. package/dist/components/data/ag-grid-react/chat/chat-host.d.ts +10 -0
  17. package/dist/components/data/ag-grid-react/chat/chat-host.js +651 -0
  18. package/dist/components/data/ag-grid-react/chat/chat-host.types.d.ts +13 -0
  19. package/dist/components/data/ag-grid-react/chat/chat-html.d.ts +2 -0
  20. package/dist/components/data/ag-grid-react/chat/chat-html.js +40 -0
  21. package/dist/components/data/ag-grid-react/chat/chat-identity.d.ts +13 -0
  22. package/dist/components/data/ag-grid-react/chat/chat-identity.js +24 -0
  23. package/dist/components/data/ag-grid-react/chat/chat-menu.d.ts +13 -0
  24. package/dist/components/data/ag-grid-react/chat/chat-menu.js +15 -0
  25. package/dist/components/data/ag-grid-react/chat/chat-notify.d.ts +17 -0
  26. package/dist/components/data/ag-grid-react/chat/chat-notify.js +124 -0
  27. package/dist/components/data/ag-grid-react/chat/chat-persist.d.ts +13 -0
  28. package/dist/components/data/ag-grid-react/chat/chat-persist.js +34 -0
  29. package/dist/components/data/ag-grid-react/chat/chat-priority.d.ts +13 -0
  30. package/dist/components/data/ag-grid-react/chat/chat-priority.js +79 -0
  31. package/dist/components/data/ag-grid-react/chat/chat-summaries.d.ts +2 -0
  32. package/dist/components/data/ag-grid-react/chat/chat-summaries.js +24 -0
  33. package/dist/components/data/ag-grid-react/chat/chat-thread-ui.d.ts +72 -0
  34. package/dist/components/data/ag-grid-react/chat/chat-thread-ui.js +713 -0
  35. package/dist/components/data/ag-grid-react/chat/chat-toggle.d.ts +6 -0
  36. package/dist/components/data/ag-grid-react/chat/chat-toggle.js +25 -0
  37. package/dist/components/data/ag-grid-react/chat/chat-ui-actions.d.ts +13 -0
  38. package/dist/components/data/ag-grid-react/chat/chat-ui-actions.js +26 -0
  39. package/dist/components/data/ag-grid-react/chat/chat-window.d.ts +14 -0
  40. package/dist/components/data/ag-grid-react/chat/chat-window.js +82 -0
  41. package/dist/components/data/ag-grid-react/chat/chat-workspace.d.ts +91 -0
  42. package/dist/components/data/ag-grid-react/chat/chat-workspace.js +555 -0
  43. package/dist/components/data/ag-grid-react/chat/chat.types.d.ts +319 -0
  44. package/dist/components/data/ag-grid-react/chat/index.d.ts +6 -0
  45. package/dist/components/data/ag-grid-react/chat/index.js +24 -0
  46. package/dist/components/data/ag-grid-react/chat.story-data.d.ts +34 -0
  47. package/dist/components/data/ag-grid-react/chat.story-sources.d.ts +4 -0
  48. package/dist/components/data/ag-grid-react/comments/assets/comments-no-results.png.js +4 -0
  49. package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.d.ts +6 -0
  50. package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.js +29 -0
  51. package/dist/components/data/ag-grid-react/comments/comments-actions-menu.d.ts +8 -0
  52. package/dist/components/data/ag-grid-react/comments/comments-actions-menu.js +18 -0
  53. package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.d.ts +18 -0
  54. package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.js +16 -0
  55. package/dist/components/data/ag-grid-react/comments/comments-capabilities.d.ts +11 -0
  56. package/dist/components/data/ag-grid-react/comments/comments-capabilities.js +26 -0
  57. package/dist/components/data/ag-grid-react/comments/comments-constants.d.ts +12 -0
  58. package/dist/components/data/ag-grid-react/comments/comments-constants.js +21 -0
  59. package/dist/components/data/ag-grid-react/comments/comments-format.d.ts +20 -0
  60. package/dist/components/data/ag-grid-react/comments/comments-format.js +49 -0
  61. package/dist/components/data/ag-grid-react/comments/comments-generation.d.ts +14 -0
  62. package/dist/components/data/ag-grid-react/comments/comments-generation.js +18 -0
  63. package/dist/components/data/ag-grid-react/comments/comments-host.d.ts +10 -0
  64. package/dist/components/data/ag-grid-react/comments/comments-host.js +343 -0
  65. package/dist/components/data/ag-grid-react/comments/comments-host.types.d.ts +18 -0
  66. package/dist/components/data/ag-grid-react/comments/comments-identity.d.ts +7 -0
  67. package/dist/components/data/ag-grid-react/comments/comments-identity.js +20 -0
  68. package/dist/components/data/ag-grid-react/comments/comments-menu.d.ts +29 -0
  69. package/dist/components/data/ag-grid-react/comments/comments-menu.js +35 -0
  70. package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.d.ts +22 -0
  71. package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.js +98 -0
  72. package/dist/components/data/ag-grid-react/comments/comments-overlay.d.ts +21 -0
  73. package/dist/components/data/ag-grid-react/comments/comments-overlay.js +406 -0
  74. package/dist/components/data/ag-grid-react/comments/comments-panel.d.ts +9 -0
  75. package/dist/components/data/ag-grid-react/comments/comments-panel.js +272 -0
  76. package/dist/components/data/ag-grid-react/comments/comments-persist.d.ts +11 -0
  77. package/dist/components/data/ag-grid-react/comments/comments-persist.js +19 -0
  78. package/dist/components/data/ag-grid-react/comments/comments-reveal.d.ts +11 -0
  79. package/dist/components/data/ag-grid-react/comments/comments-reveal.js +31 -0
  80. package/dist/components/data/ag-grid-react/comments/comments-ui-actions.d.ts +18 -0
  81. package/dist/components/data/ag-grid-react/comments/comments-ui-actions.js +22 -0
  82. package/dist/components/data/ag-grid-react/comments/comments-window.d.ts +10 -0
  83. package/dist/components/data/ag-grid-react/comments/comments-window.js +62 -0
  84. package/dist/components/data/ag-grid-react/comments/comments.types.d.ts +178 -0
  85. package/dist/components/data/ag-grid-react/comments/index.d.ts +5 -0
  86. package/dist/components/data/ag-grid-react/comments/index.js +15 -0
  87. package/dist/components/data/ag-grid-react/comments-cell-renderers-showcase.d.ts +25 -0
  88. package/dist/components/data/ag-grid-react/comments.story-data.d.ts +37 -0
  89. package/dist/components/data/ag-grid-react/comments.story-sources.d.ts +11 -0
  90. package/dist/components/data/ag-grid-react/grid-cell-address.d.ts +21 -0
  91. package/dist/components/data/ag-grid-react/grid-cell-address.js +21 -0
  92. package/dist/components/data/ag-grid-react/grid-row-reveal.d.ts +34 -0
  93. package/dist/components/data/ag-grid-react/grid-row-reveal.js +33 -0
  94. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +75 -65
  95. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.d.ts +1 -1
  96. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +54 -54
  97. package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +1 -1
  98. package/dist/components/data/ag-grid-react/headers/header-search-input.js +122 -119
  99. package/dist/components/data/ag-grid-react/headers/utils/date-utils.d.ts +2 -1
  100. package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +25 -20
  101. package/dist/components/data/ag-grid-react/headers/utils/filter-utils.d.ts +1 -1
  102. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  103. package/dist/components/data/ag-grid-react/index.js +481 -254
  104. package/dist/components/data/ag-grid-react/notes/index.d.ts +2 -0
  105. package/dist/components/data/ag-grid-react/notes/index.js +1 -0
  106. package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.d.ts +25 -0
  107. package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.js +32 -0
  108. package/dist/components/data/ag-grid-react/notes/notes-constants.d.ts +2 -0
  109. package/dist/components/data/ag-grid-react/notes/notes-constants.js +4 -0
  110. package/dist/components/data/ag-grid-react/notes/notes.types.d.ts +12 -0
  111. package/dist/components/data/ag-grid-react/notes.story-sources.d.ts +7 -0
  112. package/dist/components/data/ag-grid-react/nova-system-column.d.ts +7 -0
  113. package/dist/components/data/ag-grid-react/nova-system-column.js +18 -0
  114. package/dist/components/data/ag-grid-react/theme.js +6 -2
  115. package/dist/components/data/ag-grid-react/value-formatter.types.d.ts +4 -0
  116. package/dist/components/data/ag-grid-react/value-formatters.d.ts +0 -19
  117. package/dist/components/data/ag-grid-react/value-formatters.js +88 -90
  118. package/dist/components/data/data-table/build-column-tree-from-grid.d.ts +0 -1
  119. package/dist/components/data/data-table/build-column-tree-from-grid.js +49 -53
  120. package/dist/components/data/data-table/data-table-column-apply.d.ts +0 -2
  121. package/dist/components/data/data-table/data-table-column-apply.js +73 -84
  122. package/dist/components/data/data-table/data-table-column-def-pin.js +34 -31
  123. package/dist/components/data/data-table/data-table-column-list.js +64 -94
  124. package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +6 -12
  125. package/dist/components/data/data-table/data-table-column-tree-cache.js +131 -250
  126. package/dist/components/data/data-table/data-table-context.js +5 -5
  127. package/dist/components/data/data-table/data-table-sheet-context.js +1 -1
  128. package/dist/components/data/data-table/data-table-sheet.js +2 -1
  129. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +0 -5
  130. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +11 -28
  131. package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +0 -10
  132. package/dist/components/data/data-table/use-data-table-column-list-sync.js +196 -250
  133. package/dist/components/data/nested-list/components/NestedListContent.d.ts +2 -10
  134. package/dist/components/data/nested-list/components/NestedListContent.js +138 -253
  135. package/dist/components/data/nested-list/components/SortableItem.d.ts +1 -2
  136. package/dist/components/data/nested-list/components/SortableItem.js +60 -62
  137. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +20 -10
  138. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +233 -44
  139. package/dist/components/data/nested-list/nested-list-constants.d.ts +1 -4
  140. package/dist/components/data/nested-list/nested-list-constants.js +4 -10
  141. package/dist/components/data/nested-list/nested-list.js +336 -322
  142. package/dist/components/data/nested-list/nested-list.types.d.ts +0 -17
  143. package/dist/components/data-display/calendar/calendar-config.js +22 -21
  144. package/dist/components/data-display/calendar/calendar-day-button.js +21 -21
  145. package/dist/components/data-display/calendar/calendar-day-picker-view.js +36 -35
  146. package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +3 -3
  147. package/dist/components/data-display/calendar/calendar-fiscal-labels.js +50 -62
  148. package/dist/components/data-display/calendar/calendar.js +138 -137
  149. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +23 -22
  150. package/dist/components/data-display/calendar/use-calendar-i18n.d.ts +1 -0
  151. package/dist/components/data-display/calendar/use-calendar-i18n.js +10 -9
  152. package/dist/components/data-display/chart/chart.js +72 -72
  153. package/dist/components/data-display/chart/chart.utils.d.ts +1 -1
  154. package/dist/components/data-display/chart/chart.utils.js +40 -31
  155. package/dist/components/feedback/sheet/sheet.js +1 -1
  156. package/dist/components/feedback/toast/toast.d.ts +1 -1
  157. package/dist/components/feedback/toast/toast.variants.d.ts +1 -1
  158. package/dist/components/flows/filter-panel/filter-panel.d.ts +1 -1
  159. package/dist/components/flows/filter-panel/filter-panel.js +65 -64
  160. package/dist/components/flows/filter-panel/filter-panel.types.d.ts +1 -0
  161. package/dist/components/forms/date-picker/date-picker.js +125 -126
  162. package/dist/components/forms/date-picker/date-range-picker.js +191 -192
  163. package/dist/components/forms/date-picker/multi-date-picker.js +66 -67
  164. package/dist/components/forms/date-picker/multi-week-picker.js +82 -83
  165. package/dist/components/forms/date-picker/use-picker-i18n.d.ts +6 -0
  166. package/dist/components/forms/date-picker/use-picker-i18n.js +11 -0
  167. package/dist/components/forms/date-picker/week-picker.js +146 -147
  168. package/dist/components/forms/date-picker/week-range-picker.js +158 -159
  169. package/dist/components/ui/local-raster-icons/message3d.webp.js +4 -0
  170. package/dist/components/ui/local-raster-icons/rasterIcons.d.ts +1 -0
  171. package/dist/components/ui/local-raster-icons/rasterIcons.js +27 -25
  172. package/dist/form-react/Fields/WeekRangePicker.js +16 -16
  173. package/dist/i18n/defaultMessages.d.ts +144 -0
  174. package/dist/i18n/defaultMessages.js +161 -19
  175. package/dist/i18n/format/collator.d.ts +1 -0
  176. package/dist/i18n/format/collator.js +7 -0
  177. package/dist/i18n/format/date-pattern.d.ts +5 -0
  178. package/dist/i18n/format/date-pattern.js +20 -0
  179. package/dist/i18n/format/format-date.d.ts +9 -0
  180. package/dist/i18n/format/format-date.js +56 -0
  181. package/dist/i18n/format/format-number.d.ts +20 -0
  182. package/dist/i18n/format/format-number.js +68 -0
  183. package/dist/i18n/format/formatter-cache.d.ts +9 -0
  184. package/dist/i18n/format/formatter-cache.js +66 -0
  185. package/dist/i18n/format/index.d.ts +6 -0
  186. package/dist/i18n/format/parse-number.d.ts +6 -0
  187. package/dist/i18n/format/parse-number.js +53 -0
  188. package/dist/i18n/getDateFnsLocale.d.ts +5 -4
  189. package/dist/i18n/getDateFnsLocale.js +46 -16
  190. package/dist/i18n/i18n.types.d.ts +13 -0
  191. package/dist/i18n/impact-nova-i18n-context.d.ts +1 -1
  192. package/dist/i18n/impact-nova-i18n-context.js +33 -25
  193. package/dist/i18n/impact-nova-i18n-defaults.js +8 -6
  194. package/dist/i18n/index.d.ts +4 -1
  195. package/dist/i18n/index.js +41 -16
  196. package/dist/i18n/locale-config.d.ts +28 -0
  197. package/dist/i18n/locale-config.js +32 -0
  198. package/dist/i18n/locales/de.js +142 -0
  199. package/dist/i18n/locales/es.js +142 -0
  200. package/dist/i18n/locales/hi.js +142 -0
  201. package/dist/i18n/locales/kn.js +142 -0
  202. package/dist/i18n/week-start.d.ts +6 -0
  203. package/dist/i18n/week-start.js +30 -0
  204. package/dist/impact-nova-components.css +249 -0
  205. package/dist/impact-nova-tokens.scss +6 -0
  206. package/dist/impact-nova.css +1 -1
  207. package/dist/index.d.ts +1 -1
  208. package/dist/index.js +624 -601
  209. package/dist/llms/index.js +26 -2
  210. package/dist/llms/rules/ag-grid.js +1 -1
  211. package/dist/llms/rules/best-practices.js +1 -1
  212. package/dist/llms/rules/data-table-chat.js +1 -0
  213. package/dist/llms/rules/data-table-comments.js +1 -0
  214. package/dist/llms/rules/data-table-notes.js +1 -0
  215. package/dist/llms/rules/installation.js +1 -1
  216. package/dist/llms/rules/migration.js +1 -1
  217. package/dist/llms/rules/real-world-patterns.js +1 -1
  218. package/dist/llms/rules/requirements.js +1 -1
  219. package/dist/llms/rules/troubleshooting.js +1 -1
  220. package/dist/providers/app-providers.d.ts +3 -1
  221. package/dist/providers/app-providers.js +22 -11
  222. package/package.json +13 -1
  223. package/dist/components/data/data-table/column-picker-authority.d.ts +0 -34
  224. package/dist/components/data/data-table/column-picker-authority.js +0 -116
  225. package/dist/components/data/data-table/column-picker-drop-validation.d.ts +0 -7
  226. package/dist/components/data/data-table/column-picker-drop-validation.js +0 -37
  227. package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +0 -10
  228. package/dist/components/data/data-table/data-table-column-list-tree-apply.js +0 -79
  229. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +0 -26
  230. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +0 -195
  231. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +0 -1
  232. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +0 -7
  233. package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +0 -12
  234. package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +0 -12
  235. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +0 -24
  236. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +0 -128
  237. package/dist/components/data/nested-list/nested-list-display-utils.d.ts +0 -11
  238. package/dist/components/data/nested-list/nested-list-display-utils.js +0 -74
  239. package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +0 -31
  240. package/dist/components/data/nested-list/nested-list-drop-engine.js +0 -209
  241. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +0 -26
  242. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +0 -67
  243. package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +0 -4
  244. package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +0 -43
  245. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +0 -3
  246. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +0 -34
  247. package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +0 -9
  248. package/dist/components/data/nested-list/nested-list-row-estimates.js +0 -14
  249. package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +0 -36
  250. package/dist/components/data/nested-list/nested-list-scroll-anchor.js +0 -47
  251. package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +0 -59
  252. package/dist/components/data/nested-list/nested-list-virtual-drop.js +0 -341
  253. package/dist/lib/hash/fnv1a128.d.ts +0 -16
  254. package/dist/lib/hash/fnv1a128.js +0 -21
@@ -0,0 +1,13 @@
1
+ import { ChatConversationId } from './chat.types';
2
+ export declare function mintChatMessageId(): string;
3
+ export declare function mintConversationId(rowId: string): ChatConversationId;
4
+ export declare function chatPlainText(value: string): string;
5
+ export declare function isValidChatMessageText(text: string): boolean;
6
+ export declare function rowIdFromGridEvent(event: {
7
+ node?: {
8
+ id?: string | null;
9
+ } | null;
10
+ column?: {
11
+ getColId?: () => string;
12
+ } | null;
13
+ }): string | undefined;
@@ -0,0 +1,24 @@
1
+ import { defaultChatConversationId as r } from "./chat-constants.js";
2
+ function n() {
3
+ return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `chat-${Date.now().toString(36)}-${Math.random().toString(16).slice(2)}`;
4
+ }
5
+ function a(t) {
6
+ return `${r(t)}:${n()}`;
7
+ }
8
+ function o(t) {
9
+ return t.replace(/<br\s*\/?>/gi, " ").replace(/<\/p>/gi, " ").replace(/<[^>]+>/g, "").replace(/&nbsp;/gi, " ").replace(/&amp;/gi, "&").replace(/&lt;/gi, "<").replace(/&gt;/gi, ">").replace(/\s+/g, " ").trim();
10
+ }
11
+ function c(t) {
12
+ return o(t).length > 0;
13
+ }
14
+ function p(t) {
15
+ const e = t.node?.id;
16
+ return e || void 0;
17
+ }
18
+ export {
19
+ o as chatPlainText,
20
+ c as isValidChatMessageText,
21
+ n as mintChatMessageId,
22
+ a as mintConversationId,
23
+ p as rowIdFromGridEvent
24
+ };
@@ -0,0 +1,13 @@
1
+ import { DataTableChatConfig } from './chat.types';
2
+ export type ChatMenuItem = string | {
3
+ name?: string;
4
+ action?: () => void;
5
+ [key: string]: unknown;
6
+ };
7
+ export declare function mergeChatContextMenuItems(args: {
8
+ items: readonly ChatMenuItem[];
9
+ config: DataTableChatConfig;
10
+ rowId: string | undefined;
11
+ openLabel: string;
12
+ onOpen: (rowId: string) => void;
13
+ }): ChatMenuItem[];
@@ -0,0 +1,15 @@
1
+ import { CHAT_MENU_OPEN as n } from "./chat-constants.js";
2
+ import { chatAllows as r } from "./chat-capabilities.js";
3
+ function c(e) {
4
+ const t = [...e.items];
5
+ if (!e.rowId || !r(e.config, "view", { rowId: e.rowId })) return t;
6
+ const o = {
7
+ name: e.openLabel,
8
+ action: () => e.onOpen(e.rowId),
9
+ cssClasses: [n]
10
+ };
11
+ return t.length > 0 ? [...t, "separator", o] : [o];
12
+ }
13
+ export {
14
+ c as mergeChatContextMenuItems
15
+ };
@@ -0,0 +1,17 @@
1
+ import { ChatNotifyPref, ChatThreadActionContext, ChatUiAction } from './chat.types';
2
+ export type ChatNotifyDraft = {
3
+ notify: ChatNotifyPref;
4
+ includeBroadcast: boolean;
5
+ muted: boolean;
6
+ };
7
+ export declare function ChatNotifyPopover({ value, extras, extraContext, onSave, }: {
8
+ value: ChatNotifyDraft;
9
+ extras?: readonly ChatUiAction<ChatThreadActionContext>[];
10
+ extraContext?: ChatThreadActionContext | null;
11
+ onSave: (next: ChatNotifyDraft) => void;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ export declare function defaultChatNotify(conversation: {
14
+ notify?: ChatNotifyPref;
15
+ includeBroadcast?: boolean;
16
+ muted?: boolean;
17
+ }): ChatNotifyDraft;
@@ -0,0 +1,124 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { useState as u, useId as m } from "react";
3
+ import { ThreeDots as k } from "impact-nova-icons";
4
+ import { Button as h } from "../../../primitives/button/button.js";
5
+ import { Checkbox as p } from "../../../forms/checkbox/checkbox.js";
6
+ import { RadioGroup as x, RadioGroupItem as B } from "../../../forms/radio-group/radio-group.js";
7
+ import { Popover as I, PopoverTrigger as P, PopoverContent as T, PopoverFooter as z } from "../../../feedback/popover/popover.js";
8
+ import { useImpactNovaI18n as j } from "../../../../i18n/use-impact-nova-i18n.js";
9
+ function O({
10
+ value: o,
11
+ extras: c,
12
+ extraContext: s,
13
+ onSave: g
14
+ }) {
15
+ const { t: a } = j(), [v, r] = u(!1), [n, d] = u(o), y = m(), b = m(), C = m(), N = n.notify === "mentions";
16
+ return /* @__PURE__ */ i(
17
+ I,
18
+ {
19
+ open: v,
20
+ onOpenChange: (t) => {
21
+ t && d(o), r(t);
22
+ },
23
+ children: [
24
+ /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(
25
+ h,
26
+ {
27
+ type: "button",
28
+ size: "iconSm",
29
+ variant: "ghost",
30
+ className: "[&_svg]:size-4",
31
+ "aria-label": a("chat.conversationActions"),
32
+ "data-iv-chat-notify-trigger": "",
33
+ children: /* @__PURE__ */ e(k, {})
34
+ }
35
+ ) }),
36
+ /* @__PURE__ */ i(T, { align: "end", className: "w-[355px] p-0", "aria-label": a("chat.notifyTitle"), children: [
37
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-3 p-3", children: [
38
+ /* @__PURE__ */ i(
39
+ x,
40
+ {
41
+ orientation: "vertical",
42
+ value: n.notify,
43
+ label: a("chat.notifyTitle"),
44
+ onValueChange: (t) => d((l) => ({ ...l, notify: t })),
45
+ children: [
46
+ /* @__PURE__ */ e(f, { id: y, value: "all", label: a("chat.notifyAll") }),
47
+ /* @__PURE__ */ e(f, { id: b, value: "mentions", label: a("chat.notifyMentions") }),
48
+ /* @__PURE__ */ e("div", { className: "pl-5", children: /* @__PURE__ */ e(
49
+ p,
50
+ {
51
+ label: a("chat.notifyIncludeBroadcast"),
52
+ disabled: !N || n.muted,
53
+ checked: n.includeBroadcast,
54
+ onCheckedChange: (t) => d((l) => ({ ...l, includeBroadcast: t === !0 }))
55
+ }
56
+ ) }),
57
+ /* @__PURE__ */ e(f, { id: C, value: "nothing", label: a("chat.notifyNothing") })
58
+ ]
59
+ }
60
+ ),
61
+ /* @__PURE__ */ e("div", { className: "h-px bg-stroke-hairline" }),
62
+ /* @__PURE__ */ e(
63
+ p,
64
+ {
65
+ label: a("chat.muteChat"),
66
+ helperText: `${a("chat.muteHintList")} ${a("chat.muteHintBadge")}`,
67
+ helperTextPosition: "flow",
68
+ checked: n.muted,
69
+ onCheckedChange: (t) => d((l) => ({ ...l, muted: t === !0 }))
70
+ }
71
+ ),
72
+ c && s ? c.map((t) => /* @__PURE__ */ e(
73
+ h,
74
+ {
75
+ type: "button",
76
+ size: "sm",
77
+ variant: "ghost",
78
+ className: "justify-start",
79
+ disabled: t.disabled,
80
+ onClick: () => {
81
+ t.onSelect(s), r(!1);
82
+ },
83
+ children: t.label
84
+ },
85
+ t.id
86
+ )) : null
87
+ ] }),
88
+ /* @__PURE__ */ i(z, { className: "mt-0", children: [
89
+ /* @__PURE__ */ e(h, { type: "button", size: "sm", variant: "ghost", onClick: () => r(!1), children: a("chat.cancel") }),
90
+ /* @__PURE__ */ e(
91
+ h,
92
+ {
93
+ type: "button",
94
+ size: "sm",
95
+ "data-iv-chat-notify-save": "",
96
+ onClick: () => {
97
+ g(n), r(!1);
98
+ },
99
+ children: a("chat.saveChanges")
100
+ }
101
+ )
102
+ ] })
103
+ ] })
104
+ ]
105
+ }
106
+ );
107
+ }
108
+ function f({ id: o, value: c, label: s }) {
109
+ return /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
110
+ /* @__PURE__ */ e(B, { value: c, id: o }),
111
+ /* @__PURE__ */ e("label", { htmlFor: o, className: "cursor-pointer text-sm font-medium text-content", children: s })
112
+ ] });
113
+ }
114
+ function $(o) {
115
+ return {
116
+ notify: o.notify ?? "mentions",
117
+ includeBroadcast: o.includeBroadcast ?? !1,
118
+ muted: !!o.muted
119
+ };
120
+ }
121
+ export {
122
+ O as ChatNotifyPopover,
123
+ $ as defaultChatNotify
124
+ };
@@ -0,0 +1,13 @@
1
+ import { ThreadGenerationMap } from '../comments/comments-generation';
2
+ import { ChatPersistEvent } from './chat.types';
3
+ export type ChatPersistResult = "applied" | "stale" | "failed" | "conflict" | "rejected" | "denied";
4
+ export declare function isChatConflictError(error: unknown): boolean;
5
+ export declare function isChatDeniedError(error: unknown): boolean;
6
+ export declare function commitChatPersist(args: {
7
+ persist: (event: ChatPersistEvent) => Promise<void>;
8
+ event: ChatPersistEvent;
9
+ generations: ThreadGenerationMap;
10
+ conversationId: string;
11
+ onApplied?: () => void;
12
+ }): Promise<ChatPersistResult>;
13
+ export declare function chatPersistFailureKey(result: ChatPersistResult): "chat.conflict" | "chat.permissionDenied" | "chat.saveError";
@@ -0,0 +1,34 @@
1
+ import { isValidChatMessageText as i } from "./chat-identity.js";
2
+ function r(e) {
3
+ return typeof e == "object" && e !== null && "status" in e ? e.status : void 0;
4
+ }
5
+ function s(e) {
6
+ return r(e) === 409;
7
+ }
8
+ function o(e) {
9
+ const t = r(e);
10
+ return t === 401 || t === 403;
11
+ }
12
+ async function a(e) {
13
+ if (e.event.type === "add-message") {
14
+ const n = (e.event.message.attachments?.length ?? 0) > 0;
15
+ if (!i(e.event.message.text) && !n) return "rejected";
16
+ }
17
+ if (e.event.type === "edit-message" && !i(e.event.message.text))
18
+ return "rejected";
19
+ const t = e.generations.next(e.conversationId);
20
+ try {
21
+ return await e.persist(e.event), e.generations.isCurrent(e.conversationId, t) ? (e.onApplied?.(), "applied") : "stale";
22
+ } catch (n) {
23
+ return e.generations.isCurrent(e.conversationId, t) ? s(n) ? "conflict" : o(n) ? "denied" : "failed" : "stale";
24
+ }
25
+ }
26
+ function u(e) {
27
+ return e === "conflict" ? "chat.conflict" : e === "denied" ? "chat.permissionDenied" : "chat.saveError";
28
+ }
29
+ export {
30
+ u as chatPersistFailureKey,
31
+ a as commitChatPersist,
32
+ s as isChatConflictError,
33
+ o as isChatDeniedError
34
+ };
@@ -0,0 +1,13 @@
1
+ import { ChatPriority } from './chat.types';
2
+ export declare function chatPriorityLabel(priority: ChatPriority | undefined, t: (key: string) => string): string;
3
+ export declare function chatPriorityRailClass(priority: ChatPriority | undefined): string | undefined;
4
+ export declare function ChatPriorityGlyph({ priority, className, }: {
5
+ priority: "normal" | ChatPriority;
6
+ className?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export declare function ChatPriorityMenu({ value, onChange, disabled, variant, }: {
9
+ value?: ChatPriority;
10
+ onChange: (priority: ChatPriority | null) => void;
11
+ disabled?: boolean;
12
+ variant?: "composer" | "row";
13
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,79 @@
1
+ import { jsxs as C, jsx as r } from "react/jsx-runtime";
2
+ import { Button as d } from "../../../primitives/button/button.js";
3
+ import { DropdownMenu as h, DropdownMenuTrigger as g, DropdownMenuContent as m, DropdownMenuItem as w } from "../../../feedback/dropdown-menu/dropdown-menu.js";
4
+ import { ButtonIconTooltip as v } from "../../../feedback/tooltip/button-icon-tooltip.js";
5
+ import { useImpactNovaI18n as p } from "../../../../i18n/use-impact-nova-i18n.js";
6
+ import { cn as n } from "../../../../lib/utils.js";
7
+ const u = {
8
+ normal: new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20/%20CheckTick'%3e%3cpath%20id='Vector'%20d='M6%2010.78L3.68667%208.46667C3.42667%208.20667%203.00667%208.20667%202.74667%208.46667C2.48667%208.72667%202.48667%209.14667%202.74667%209.40667L5.53333%2012.1933C5.79333%2012.4533%206.21333%2012.4533%206.47333%2012.1933L13.5267%205.14C13.7867%204.88%2013.7867%204.46%2013.5267%204.2C13.2667%203.94%2012.8467%203.94%2012.5867%204.2L6%2010.78Z'%20fill='%234259EE'/%3e%3c/g%3e%3c/svg%3e", import.meta.url).href,
9
+ high: new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20/%20Error'%3e%3cpath%20id='Vector'%20d='M8%208.66642C8.18889%208.66642%208.34733%208.60242%208.47533%208.47442C8.60289%208.34687%208.66667%208.18864%208.66667%207.99976V5.31642C8.66667%205.12753%208.60289%204.97198%208.47533%204.84976C8.34733%204.72753%208.18889%204.66642%208%204.66642C7.81111%204.66642%207.65289%204.7302%207.52533%204.85776C7.39733%204.98576%207.33333%205.1442%207.33333%205.33309V8.01642C7.33333%208.20531%207.39733%208.36087%207.52533%208.48309C7.65289%208.60531%207.81111%208.66642%208%208.66642ZM8%2011.3331C8.18889%2011.3331%208.34733%2011.2691%208.47533%2011.1411C8.60289%2011.0135%208.66667%2010.8553%208.66667%2010.6664C8.66667%2010.4775%208.60289%2010.3191%208.47533%2010.1911C8.34733%2010.0635%208.18889%209.99976%208%209.99976C7.81111%209.99976%207.65289%2010.0635%207.52533%2010.1911C7.39733%2010.3191%207.33333%2010.4775%207.33333%2010.6664C7.33333%2010.8553%207.39733%2011.0135%207.52533%2011.1411C7.65289%2011.2691%207.81111%2011.3331%208%2011.3331ZM8%2014.6664C7.07778%2014.6664%206.21111%2014.4913%205.4%2014.1411C4.58889%2013.7913%203.88333%2013.3164%203.28333%2012.7164C2.68333%2012.1164%202.20844%2011.4109%201.85867%2010.5998C1.50844%209.78864%201.33333%208.92198%201.33333%207.99976C1.33333%207.07753%201.50844%206.21087%201.85867%205.39976C2.20844%204.58864%202.68333%203.88309%203.28333%203.28309C3.88333%202.68309%204.58889%202.20798%205.4%201.85776C6.21111%201.50798%207.07778%201.33309%208%201.33309C8.92222%201.33309%209.78889%201.50798%2010.6%201.85776C11.4111%202.20798%2012.1167%202.68309%2012.7167%203.28309C13.3167%203.88309%2013.7916%204.58864%2014.1413%205.39976C14.4916%206.21087%2014.6667%207.07753%2014.6667%207.99976C14.6667%208.92198%2014.4916%209.78864%2014.1413%2010.5998C13.7916%2011.4109%2013.3167%2012.1164%2012.7167%2012.7164C12.1167%2013.3164%2011.4111%2013.7913%2010.6%2014.1411C9.78889%2014.4913%208.92222%2014.6664%208%2014.6664ZM8%2013.3331C9.47778%2013.3331%2010.7362%2012.8138%2011.7753%2011.7751C12.814%2010.736%2013.3333%209.47753%2013.3333%207.99976C13.3333%206.52198%2012.814%205.26353%2011.7753%204.22442C10.7362%203.18576%209.47778%202.66642%208%202.66642C6.52222%202.66642%205.264%203.18576%204.22533%204.22442C3.18622%205.26353%202.66667%206.52198%202.66667%207.99976C2.66667%209.47753%203.18622%2010.736%204.22533%2011.7751C5.264%2012.8138%206.52222%2013.3331%208%2013.3331Z'%20fill='%23C64746'/%3e%3c/g%3e%3c/svg%3e", import.meta.url).href,
10
+ medium: new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20/%20Thumbup'%3e%3cpath%20id='Vector'%20d='M14%205.33333C14.3556%205.33333%2014.6667%205.46667%2014.9333%205.73333C15.2%206%2015.3333%206.31111%2015.3333%206.66667V8C15.3333%208.07778%2015.3222%208.16111%2015.3%208.25C15.2778%208.33889%2015.2556%208.42222%2015.2333%208.5L13.2333%2013.2C13.1333%2013.4222%2012.9667%2013.6111%2012.7333%2013.7667C12.5%2013.9222%2012.2556%2014%2012%2014H4.66667V5.33333L8.66667%201.36667C8.83333%201.2%209.03056%201.10278%209.25833%201.075C9.48611%201.04722%209.70556%201.08889%209.91667%201.2C10.1278%201.31111%2010.2833%201.46667%2010.3833%201.66667C10.4833%201.86667%2010.5056%202.07222%2010.45%202.28333L9.7%205.33333H14ZM6%205.9V12.6667H12L14%208V6.66667H8L8.9%203L6%205.9ZM2.66667%2014C2.3%2014%201.98611%2013.8694%201.725%2013.6083C1.46389%2013.3472%201.33333%2013.0333%201.33333%2012.6667V6.66667C1.33333%206.3%201.46389%205.98611%201.725%205.725C1.98611%205.46389%202.3%205.33333%202.66667%205.33333H4.66667V6.66667H2.66667V12.6667H4.66667V14H2.66667Z'%20fill='%23BF9F22'/%3e%3c/g%3e%3c/svg%3e", import.meta.url).href,
11
+ low: new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20/%20NoneBlock'%3e%3cpath%20id='Vector'%20d='M8%201.33236C4.32%201.33236%201.33333%204.31902%201.33333%207.99902C1.33333%2011.679%204.32%2014.6657%208%2014.6657C11.68%2014.6657%2014.6667%2011.679%2014.6667%207.99902C14.6667%204.31902%2011.68%201.33236%208%201.33236ZM2.66667%207.99902C2.66667%205.05236%205.05333%202.66569%208%202.66569C9.23333%202.66569%2010.3667%203.08569%2011.2667%203.79236L3.79333%2011.2657C3.08667%2010.3657%202.66667%209.23236%202.66667%207.99902ZM8%2013.3324C6.76667%2013.3324%205.63333%2012.9124%204.73333%2012.2057L12.2067%204.73236C12.9133%205.63236%2013.3333%206.76569%2013.3333%207.99902C13.3333%2010.9457%2010.9467%2013.3324%208%2013.3324Z'%20fill='%2331935F'/%3e%3c/g%3e%3c/svg%3e", import.meta.url).href
12
+ }, f = new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Icon%20/%20CheckTick'%3e%3cpath%20id='Vector'%20d='M6%2010.78L3.68667%208.46667C3.42667%208.20667%203.00667%208.20667%202.74667%208.46667C2.48667%208.72667%202.48667%209.14667%202.74667%209.40667L5.53333%2012.1933C5.79333%2012.4533%206.21333%2012.4533%206.47333%2012.1933L13.5267%205.14C13.7867%204.88%2013.7867%204.46%2013.5267%204.2C13.2667%203.94%2012.8467%203.94%2012.5867%204.2L6%2010.78Z'%20fill='%231F2B4D'/%3e%3c/g%3e%3c/svg%3e", import.meta.url).href, b = [
13
+ { id: "normal", value: null },
14
+ { id: "high", value: "high" },
15
+ { id: "medium", value: "medium" },
16
+ { id: "low", value: "low" }
17
+ ];
18
+ function x(e, i) {
19
+ return i(e === "high" ? "chat.highPriority" : e === "medium" ? "chat.mediumPriority" : e === "low" ? "chat.lowPriority" : "chat.normalPriority");
20
+ }
21
+ function Z(e) {
22
+ if (e === "high") return "border-l-[3px] border-l-destructive";
23
+ if (e === "medium") return "border-l-[3px] border-l-warning";
24
+ if (e === "low") return "border-l-[3px] border-l-success";
25
+ }
26
+ function L({
27
+ priority: e,
28
+ className: i
29
+ }) {
30
+ return /* @__PURE__ */ r(
31
+ "img",
32
+ {
33
+ src: u[e],
34
+ alt: "",
35
+ width: 16,
36
+ height: 16,
37
+ className: n("size-4", i)
38
+ }
39
+ );
40
+ }
41
+ function k({
42
+ value: e,
43
+ onChange: i,
44
+ disabled: s,
45
+ variant: c = "composer"
46
+ }) {
47
+ const { t: o } = p(), a = e ?? "normal", l = c === "row";
48
+ return /* @__PURE__ */ C(h, { children: [
49
+ /* @__PURE__ */ r(v, { label: o("chat.setMessagePriority"), children: /* @__PURE__ */ r(g, { asChild: !0, children: /* @__PURE__ */ r(
50
+ d,
51
+ {
52
+ type: "button",
53
+ size: l ? "iconSm" : "icon",
54
+ variant: l ? "ghost" : "outline",
55
+ disabled: s,
56
+ "aria-label": o("chat.setMessagePriority"),
57
+ "data-iv-chat-priority-trigger": "",
58
+ className: l ? "[&_svg]:size-4" : "size-8 border-[3px] border-brand-tint bg-canvas",
59
+ children: /* @__PURE__ */ r("img", { src: f, alt: "", width: 16, height: 16, className: "size-4" })
60
+ }
61
+ ) }) }),
62
+ /* @__PURE__ */ r(m, { align: "start", className: "min-w-[200px]", children: b.map((t) => /* @__PURE__ */ r(
63
+ w,
64
+ {
65
+ icon: /* @__PURE__ */ r(L, { priority: t.id }),
66
+ className: n(a === t.id && "bg-brand-tint"),
67
+ onSelect: () => i(t.value),
68
+ children: x(t.value ?? void 0, o)
69
+ },
70
+ t.id
71
+ )) })
72
+ ] });
73
+ }
74
+ export {
75
+ L as ChatPriorityGlyph,
76
+ k as ChatPriorityMenu,
77
+ x as chatPriorityLabel,
78
+ Z as chatPriorityRailClass
79
+ };
@@ -0,0 +1,2 @@
1
+ import { ChatSummary } from './chat.types';
2
+ export declare function uniqueRowSummaries(summaries: readonly ChatSummary[], getRowTitle?: (rowId: string) => string): ChatSummary[];
@@ -0,0 +1,24 @@
1
+ function a(r, o) {
2
+ const n = /* @__PURE__ */ new Map();
3
+ for (const t of r) {
4
+ const e = n.get(t.rowId);
5
+ if (!e) {
6
+ n.set(t.rowId, {
7
+ ...t,
8
+ title: o?.(t.rowId) ?? t.title
9
+ });
10
+ continue;
11
+ }
12
+ const u = (t.updatedAt ?? "") > (e.updatedAt ?? "") ? t : e;
13
+ n.set(t.rowId, {
14
+ ...u,
15
+ title: o?.(t.rowId) ?? u.title,
16
+ unreadCount: (e.unreadCount ?? 0) + (t.unreadCount ?? 0),
17
+ messageCount: e.messageCount + t.messageCount
18
+ });
19
+ }
20
+ return [...n.values()];
21
+ }
22
+ export {
23
+ a as uniqueRowSummaries
24
+ };
@@ -0,0 +1,72 @@
1
+ import { ReactNode } from 'react';
2
+ import { ChatComposerToolContext, ChatConversation, ChatDrawer, ChatMember, ChatMessage, ChatPriority, DataTableChatConfig } from './chat.types';
3
+ export { ChatComposer, ChatSendIcon } from './chat-composer';
4
+ export declare function ChatListGlyph(): import("react/jsx-runtime").JSX.Element;
5
+ export declare function ChatMuteGlyph(): import("react/jsx-runtime").JSX.Element;
6
+ export declare function ChatAvatar({ author, member, size, shape, render, }: {
7
+ author: string;
8
+ member?: ChatMember;
9
+ size?: "sm" | "md";
10
+ shape?: "circle" | "square";
11
+ render?: DataTableChatConfig["renderAvatar"];
12
+ }): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
13
+ export declare function ChatActionsMenu({ label, items, trigger, }: {
14
+ label: string;
15
+ items: {
16
+ id: string;
17
+ label: string;
18
+ disabled?: boolean;
19
+ icon?: ReactNode;
20
+ onSelect: () => void;
21
+ }[];
22
+ trigger?: ReactNode;
23
+ }): import("react/jsx-runtime").JSX.Element | null;
24
+ export declare function ChatMessageRow({ message, previousDayKey, rowId, conversationId, config, members, highlighted, locale, compact, onReply, onOpenThread, onPin, onEdit, onDelete, onSetPriority, onClose, }: {
25
+ message: ChatMessage;
26
+ previousDayKey?: string;
27
+ rowId: string;
28
+ conversationId: string;
29
+ config: DataTableChatConfig;
30
+ members?: readonly ChatMember[];
31
+ highlighted?: boolean;
32
+ locale: string;
33
+ compact?: boolean;
34
+ onReply: (message: ChatMessage) => void;
35
+ onOpenThread: (message: ChatMessage) => void;
36
+ onPin: (message: ChatMessage, pinned: boolean) => void;
37
+ onEdit: (message: ChatMessage, text: string) => void;
38
+ onDelete: (message: ChatMessage) => void;
39
+ onSetPriority?: (message: ChatMessage, priority: ChatPriority | null) => void;
40
+ onClose: () => void;
41
+ }): import("react/jsx-runtime").JSX.Element;
42
+ export declare function ChatThreadToolbar({ conversation, rowId, searchOpen, search, drawer, onToggleSearch, onSearchChange, onOpenPinned, threadActions, }: {
43
+ conversation: ChatConversation | null;
44
+ rowId: string | null;
45
+ searchOpen: boolean;
46
+ search: string;
47
+ drawer: ChatDrawer | null;
48
+ onToggleSearch: () => void;
49
+ onSearchChange: (value: string) => void;
50
+ onOpenPinned: () => void;
51
+ threadActions?: ReactNode;
52
+ }): import("react/jsx-runtime").JSX.Element;
53
+ export declare function ChatSideDrawer({ drawer, messages, locale, loading, draft, saving, selfName, members, rowId, conversationId, config, onAddMembers, onRemoveMember, onDraftChange, onSave, onClose, onSelect, toolContext, }: {
54
+ drawer: ChatDrawer;
55
+ messages: readonly ChatMessage[];
56
+ locale: string;
57
+ loading: boolean;
58
+ draft: string;
59
+ saving: boolean;
60
+ selfName: string;
61
+ members?: readonly ChatMember[];
62
+ rowId: string;
63
+ conversationId: string;
64
+ config: DataTableChatConfig;
65
+ onAddMembers?: (members: readonly ChatMember[]) => void;
66
+ onRemoveMember?: (member: ChatMember) => void;
67
+ onDraftChange: (value: string) => void;
68
+ onSave: () => void;
69
+ onClose: () => void;
70
+ onSelect: (messageId: string) => void;
71
+ toolContext?: ChatComposerToolContext;
72
+ }): import("react/jsx-runtime").JSX.Element;