@e-llm-studio/federated-dashboard-components 1.0.10 → 1.0.12-human-intel-test

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 (221) hide show
  1. package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  2. package/dist/ExecutiveDashboard/api/dashboardApi.js +1 -1
  3. package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
  4. package/dist/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
  5. package/dist/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.js +1 -1
  6. package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  7. package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
  8. package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
  9. package/dist/ExecutiveDashboard/components/MetricCard/MetricCard.js +1 -1
  10. package/dist/ExecutiveDashboard/components/ui/chart.js +1 -1
  11. package/dist/HumanIntelligence/HumanChangesTableWrapper.js +2 -0
  12. package/dist/HumanIntelligence/HumanChangesTableWrapper.js.map +1 -0
  13. package/dist/HumanIntelligence/components/CitationContent/CitationContent.js +2 -0
  14. package/dist/HumanIntelligence/components/CitationContent/CitationContent.js.map +1 -0
  15. package/dist/HumanIntelligence/components/CitationContent/CitationContent.module.css.js +2 -0
  16. package/dist/HumanIntelligence/components/CitationContent/CitationContent.module.css.js.map +1 -0
  17. package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +2 -0
  18. package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js.map +1 -0
  19. package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.module.css.js +2 -0
  20. package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.module.css.js.map +1 -0
  21. package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js +2 -0
  22. package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js.map +1 -0
  23. package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.module.css.js +2 -0
  24. package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.module.css.js.map +1 -0
  25. package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js +2 -0
  26. package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js.map +1 -0
  27. package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.module.css.js +2 -0
  28. package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.module.css.js.map +1 -0
  29. package/dist/HumanIntelligence/components/LogFilters/LogFilterDropdown.js +2 -0
  30. package/dist/HumanIntelligence/components/LogFilters/LogFilterDropdown.js.map +1 -0
  31. package/dist/HumanIntelligence/components/LogFilters/LogFilters.js +2 -0
  32. package/dist/HumanIntelligence/components/LogFilters/LogFilters.js.map +1 -0
  33. package/dist/HumanIntelligence/components/LogTable/LogTable.js +2 -0
  34. package/dist/HumanIntelligence/components/LogTable/LogTable.js.map +1 -0
  35. package/dist/HumanIntelligence/components/PatternDetails/PatternDetails.js +2 -0
  36. package/dist/HumanIntelligence/components/PatternDetails/PatternDetails.js.map +1 -0
  37. package/dist/HumanIntelligence/components/PatternDetails/PatternDetails.module.css.js +2 -0
  38. package/dist/HumanIntelligence/components/PatternDetails/PatternDetails.module.css.js.map +1 -0
  39. package/dist/HumanIntelligence/components/Shared/ReusableTable.js +2 -0
  40. package/dist/HumanIntelligence/components/Shared/ReusableTable.js.map +1 -0
  41. package/dist/HumanIntelligence/components/Shared/ReusableTable.module.css.js +2 -0
  42. package/dist/HumanIntelligence/components/Shared/ReusableTable.module.css.js.map +1 -0
  43. package/dist/HumanIntelligence/hooks/useHighlightNavigation.js +2 -0
  44. package/dist/HumanIntelligence/hooks/useHighlightNavigation.js.map +1 -0
  45. package/dist/HumanIntelligence/hooks/useHumanChangesData.js +2 -0
  46. package/dist/HumanIntelligence/hooks/useHumanChangesData.js.map +1 -0
  47. package/dist/HumanIntelligence/hooks/useHumanIntelligenceController.js +2 -0
  48. package/dist/HumanIntelligence/hooks/useHumanIntelligenceController.js.map +1 -0
  49. package/dist/HumanIntelligence/styles/HumanIntelligence.module.css.js +2 -0
  50. package/dist/HumanIntelligence/styles/HumanIntelligence.module.css.js.map +1 -0
  51. package/dist/RecordDashboard/RecordApi/RecordDashboardApi.js +1 -1
  52. package/dist/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js +1 -1
  53. package/dist/RecordDashboard/RecordComponents/RecordDashboard.js +1 -1
  54. package/dist/RecordDashboard/RecordDashboardWrapper.js +1 -1
  55. package/dist/RecordDashboard/RecordUtils/RecordTableColumns.js +1 -1
  56. package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  57. package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js +1 -1
  58. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
  59. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
  60. package/dist/cjs/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.js +1 -1
  61. package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  62. package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
  63. package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
  64. package/dist/cjs/ExecutiveDashboard/components/MetricCard/MetricCard.js +1 -1
  65. package/dist/cjs/ExecutiveDashboard/components/ui/chart.js +1 -1
  66. package/dist/cjs/HumanIntelligence/HumanChangesTableWrapper.js +2 -0
  67. package/dist/cjs/HumanIntelligence/HumanChangesTableWrapper.js.map +1 -0
  68. package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.js +2 -0
  69. package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.js.map +1 -0
  70. package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.module.css.js +2 -0
  71. package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.module.css.js.map +1 -0
  72. package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +2 -0
  73. package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js.map +1 -0
  74. package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.module.css.js +2 -0
  75. package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.module.css.js.map +1 -0
  76. package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js +2 -0
  77. package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js.map +1 -0
  78. package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.module.css.js +2 -0
  79. package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.module.css.js.map +1 -0
  80. package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js +2 -0
  81. package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js.map +1 -0
  82. package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.module.css.js +2 -0
  83. package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.module.css.js.map +1 -0
  84. package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilterDropdown.js +2 -0
  85. package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilterDropdown.js.map +1 -0
  86. package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilters.js +2 -0
  87. package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilters.js.map +1 -0
  88. package/dist/cjs/HumanIntelligence/components/LogTable/LogTable.js +2 -0
  89. package/dist/cjs/HumanIntelligence/components/LogTable/LogTable.js.map +1 -0
  90. package/dist/cjs/HumanIntelligence/components/PatternDetails/PatternDetails.js +2 -0
  91. package/dist/cjs/HumanIntelligence/components/PatternDetails/PatternDetails.js.map +1 -0
  92. package/dist/cjs/HumanIntelligence/components/PatternDetails/PatternDetails.module.css.js +2 -0
  93. package/dist/cjs/HumanIntelligence/components/PatternDetails/PatternDetails.module.css.js.map +1 -0
  94. package/dist/cjs/HumanIntelligence/components/Shared/ReusableTable.js +2 -0
  95. package/dist/cjs/HumanIntelligence/components/Shared/ReusableTable.js.map +1 -0
  96. package/dist/cjs/HumanIntelligence/components/Shared/ReusableTable.module.css.js +2 -0
  97. package/dist/cjs/HumanIntelligence/components/Shared/ReusableTable.module.css.js.map +1 -0
  98. package/dist/cjs/HumanIntelligence/hooks/useHighlightNavigation.js +2 -0
  99. package/dist/cjs/HumanIntelligence/hooks/useHighlightNavigation.js.map +1 -0
  100. package/dist/cjs/HumanIntelligence/hooks/useHumanChangesData.js +2 -0
  101. package/dist/cjs/HumanIntelligence/hooks/useHumanChangesData.js.map +1 -0
  102. package/dist/cjs/HumanIntelligence/hooks/useHumanIntelligenceController.js +2 -0
  103. package/dist/cjs/HumanIntelligence/hooks/useHumanIntelligenceController.js.map +1 -0
  104. package/dist/cjs/HumanIntelligence/styles/HumanIntelligence.module.css.js +2 -0
  105. package/dist/cjs/HumanIntelligence/styles/HumanIntelligence.module.css.js.map +1 -0
  106. package/dist/cjs/RecordDashboard/RecordApi/RecordDashboardApi.js +1 -1
  107. package/dist/cjs/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js +1 -1
  108. package/dist/cjs/RecordDashboard/RecordComponents/RecordDashboard.js +1 -1
  109. package/dist/cjs/RecordDashboard/RecordDashboardWrapper.js +1 -1
  110. package/dist/cjs/RecordDashboard/RecordUtils/RecordTableColumns.js +1 -1
  111. package/dist/cjs/index.js +1 -1
  112. package/dist/cjs/styles.css +1 -1
  113. package/dist/index.js +1 -1
  114. package/dist/styles.css +1 -1
  115. package/dist/types/App.d.ts.map +1 -1
  116. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
  117. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
  118. package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
  119. package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts +1 -2
  120. package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts.map +1 -1
  121. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts +1 -6
  122. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -1
  123. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts +0 -47
  124. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts.map +1 -1
  125. package/dist/types/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.d.ts +3 -1
  126. package/dist/types/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.d.ts.map +1 -1
  127. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +1 -5
  128. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
  129. package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts +1 -1
  130. package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
  131. package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts +2 -4
  132. package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -1
  133. package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts +0 -61
  134. package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -1
  135. package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts +1 -2
  136. package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts.map +1 -1
  137. package/dist/types/ExecutiveDashboard/components/ui/chart.d.ts +0 -1
  138. package/dist/types/ExecutiveDashboard/components/ui/chart.d.ts.map +1 -1
  139. package/dist/types/ExecutiveDashboard/constant/index.d.ts.map +1 -1
  140. package/dist/types/ExecutiveDashboard/types/index.d.ts +0 -60
  141. package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
  142. package/dist/types/HumanIntelligence/HumanChangesTableWrapper.d.ts +108 -0
  143. package/dist/types/HumanIntelligence/HumanChangesTableWrapper.d.ts.map +1 -0
  144. package/dist/types/HumanIntelligence/TestHumanIntelligence.d.ts +3 -0
  145. package/dist/types/HumanIntelligence/TestHumanIntelligence.d.ts.map +1 -0
  146. package/dist/types/HumanIntelligence/components/CitationContent/CitationContent.d.ts +26 -0
  147. package/dist/types/HumanIntelligence/components/CitationContent/CitationContent.d.ts.map +1 -0
  148. package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts +36 -0
  149. package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts.map +1 -0
  150. package/dist/types/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.d.ts +12 -0
  151. package/dist/types/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.d.ts.map +1 -0
  152. package/dist/types/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.d.ts +40 -0
  153. package/dist/types/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.d.ts.map +1 -0
  154. package/dist/types/HumanIntelligence/components/LogFilters/LogFilterDropdown.d.ts +27 -0
  155. package/dist/types/HumanIntelligence/components/LogFilters/LogFilterDropdown.d.ts.map +1 -0
  156. package/dist/types/HumanIntelligence/components/LogFilters/LogFilters.d.ts +38 -0
  157. package/dist/types/HumanIntelligence/components/LogFilters/LogFilters.d.ts.map +1 -0
  158. package/dist/types/HumanIntelligence/components/LogFilters/LogFiltersSidebar.d.ts +38 -0
  159. package/dist/types/HumanIntelligence/components/LogFilters/LogFiltersSidebar.d.ts.map +1 -0
  160. package/dist/types/HumanIntelligence/components/LogTable/LogTable.d.ts +73 -0
  161. package/dist/types/HumanIntelligence/components/LogTable/LogTable.d.ts.map +1 -0
  162. package/dist/types/HumanIntelligence/components/PatternDetails/PatternDetails.d.ts +11 -0
  163. package/dist/types/HumanIntelligence/components/PatternDetails/PatternDetails.d.ts.map +1 -0
  164. package/dist/types/HumanIntelligence/components/Shared/ReusableTable.d.ts +18 -0
  165. package/dist/types/HumanIntelligence/components/Shared/ReusableTable.d.ts.map +1 -0
  166. package/dist/types/HumanIntelligence/hooks/useHighlightNavigation.d.ts +42 -0
  167. package/dist/types/HumanIntelligence/hooks/useHighlightNavigation.d.ts.map +1 -0
  168. package/dist/types/HumanIntelligence/hooks/useHumanChangesData.d.ts +146 -0
  169. package/dist/types/HumanIntelligence/hooks/useHumanChangesData.d.ts.map +1 -0
  170. package/dist/types/HumanIntelligence/hooks/useHumanIntelligenceController.d.ts +48 -0
  171. package/dist/types/HumanIntelligence/hooks/useHumanIntelligenceController.d.ts.map +1 -0
  172. package/dist/types/HumanIntelligence/index.d.ts +21 -0
  173. package/dist/types/HumanIntelligence/index.d.ts.map +1 -0
  174. package/dist/types/RecordDashboard/RecordApi/RecordDashboardApi.d.ts +2 -3
  175. package/dist/types/RecordDashboard/RecordApi/RecordDashboardApi.d.ts.map +1 -1
  176. package/dist/types/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.d.ts +1 -1
  177. package/dist/types/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.d.ts.map +1 -1
  178. package/dist/types/RecordDashboard/RecordComponents/RecordDashboard.d.ts.map +1 -1
  179. package/dist/types/RecordDashboard/RecordDashboardWrapper.d.ts +1 -1
  180. package/dist/types/RecordDashboard/RecordDashboardWrapper.d.ts.map +1 -1
  181. package/dist/types/RecordDashboard/RecordTypes/index.d.ts +4 -25
  182. package/dist/types/RecordDashboard/RecordTypes/index.d.ts.map +1 -1
  183. package/dist/types/RecordDashboard/RecordUtils/RecordTableColumns.d.ts +1 -13
  184. package/dist/types/RecordDashboard/RecordUtils/RecordTableColumns.d.ts.map +1 -1
  185. package/dist/types/index.d.ts +2 -10
  186. package/dist/types/index.d.ts.map +1 -1
  187. package/package.json +25 -5
  188. package/dist/ExecutiveDashboard/components/Graph/Seperator.js +0 -2
  189. package/dist/ExecutiveDashboard/components/Graph/Seperator.js.map +0 -1
  190. package/dist/ExecutiveDashboard/hooks/useVisibilityPolling.js +0 -2
  191. package/dist/ExecutiveDashboard/hooks/useVisibilityPolling.js.map +0 -1
  192. package/dist/cjs/ExecutiveDashboard/components/Graph/Seperator.js +0 -2
  193. package/dist/cjs/ExecutiveDashboard/components/Graph/Seperator.js.map +0 -1
  194. package/dist/cjs/ExecutiveDashboard/hooks/useVisibilityPolling.js +0 -2
  195. package/dist/cjs/ExecutiveDashboard/hooks/useVisibilityPolling.js.map +0 -1
  196. package/dist/cjs/node_modules/@kurkle/color/dist/color.esm.js +0 -9
  197. package/dist/cjs/node_modules/@kurkle/color/dist/color.esm.js.map +0 -1
  198. package/dist/cjs/node_modules/chart.js/auto/auto.js +0 -2
  199. package/dist/cjs/node_modules/chart.js/auto/auto.js.map +0 -1
  200. package/dist/cjs/node_modules/chart.js/dist/chart.js +0 -8
  201. package/dist/cjs/node_modules/chart.js/dist/chart.js.map +0 -1
  202. package/dist/cjs/node_modules/chart.js/dist/chunks/helpers.dataset.js +0 -8
  203. package/dist/cjs/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +0 -1
  204. package/dist/cjs/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +0 -2
  205. package/dist/cjs/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js.map +0 -1
  206. package/dist/node_modules/@kurkle/color/dist/color.esm.js +0 -8
  207. package/dist/node_modules/@kurkle/color/dist/color.esm.js.map +0 -1
  208. package/dist/node_modules/chart.js/auto/auto.js +0 -2
  209. package/dist/node_modules/chart.js/auto/auto.js.map +0 -1
  210. package/dist/node_modules/chart.js/dist/chart.js +0 -8
  211. package/dist/node_modules/chart.js/dist/chart.js.map +0 -1
  212. package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js +0 -8
  213. package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +0 -1
  214. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +0 -8
  215. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js.map +0 -1
  216. package/dist/types/ExecutiveDashboard/components/Graph/Seperator.d.ts +0 -7
  217. package/dist/types/ExecutiveDashboard/components/Graph/Seperator.d.ts.map +0 -1
  218. package/dist/types/ExecutiveDashboard/components/common/Accordion.d.ts +0 -34
  219. package/dist/types/ExecutiveDashboard/components/common/Accordion.d.ts.map +0 -1
  220. package/dist/types/ExecutiveDashboard/hooks/useVisibilityPolling.d.ts +0 -12
  221. package/dist/types/ExecutiveDashboard/hooks/useVisibilityPolling.d.ts.map +0 -1
@@ -0,0 +1,108 @@
1
+ /// <reference types="react" />
2
+ import LogTable, { LogRow } from "./components/LogTable/LogTable";
3
+ import { ImpactLabelOption } from "./hooks/useHumanIntelligenceController";
4
+ import { HumanChangeOrderBy } from "./hooks/useHumanChangesData";
5
+ import LogFilters from "./components/LogFilters/LogFilters";
6
+ import LogFilterDropdown, { LogFilterDropdownOption } from "./components/LogFilters/LogFilterDropdown";
7
+ type ColumnDef = {
8
+ key: string;
9
+ header: string;
10
+ body: (row: LogRow) => React.ReactNode;
11
+ style?: React.CSSProperties;
12
+ headerStyle?: React.CSSProperties;
13
+ headerClassName?: string;
14
+ };
15
+ type HumanChangeSortOption = {
16
+ label: string;
17
+ value: HumanChangeOrderBy;
18
+ };
19
+ type LearningActionApi = {
20
+ /** Endpoint that receives a learning approval/rejection payload. */
21
+ endpoint: string;
22
+ /** Overrides getData.baseUrl when the action API is hosted elsewhere. */
23
+ baseUrl?: string;
24
+ };
25
+ export interface ActionFooterConfig {
26
+ label?: string;
27
+ show?: boolean;
28
+ className?: string;
29
+ }
30
+ export type OnboardingStepType = 'personas' | 'data sources' | 'done';
31
+ export interface Provider {
32
+ provider: string;
33
+ type: string;
34
+ providerAccountId: string;
35
+ access_token: string;
36
+ expires_at: number;
37
+ refresh_token: string;
38
+ scope: string;
39
+ token_type?: string;
40
+ id_token: string;
41
+ name: string;
42
+ email: string;
43
+ picture?: string;
44
+ sub?: string;
45
+ deviceId?: string;
46
+ }
47
+ export interface User {
48
+ _id: string;
49
+ email: string;
50
+ accessToken: string;
51
+ firstname: string;
52
+ lastname: string;
53
+ userValidity?: string;
54
+ deviceId?: string;
55
+ provider?: Provider;
56
+ iat?: number;
57
+ exp?: number;
58
+ jti?: string;
59
+ phone?: number;
60
+ }
61
+ export interface HumanChangesTableWrapperProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'id'> {
62
+ userDetails: User;
63
+ configId: string;
64
+ changeLogConfigId?: string;
65
+ app_integration_id: string;
66
+ teachMeConfig?: Record<string, any>;
67
+ getData?: {
68
+ baseUrl: string;
69
+ endpoint: string;
70
+ };
71
+ modeId: string;
72
+ query?: {
73
+ scopeId?: string[];
74
+ paginationLimit?: number;
75
+ eventId?: string;
76
+ };
77
+ extraColumns?: ColumnDef[];
78
+ filters?: Partial<React.ComponentProps<typeof LogFilters>>;
79
+ filterDropdown?: Partial<React.ComponentProps<typeof LogFilterDropdown>>;
80
+ table?: Partial<React.ComponentProps<typeof LogTable>>;
81
+ impactLabelOptions?: ImpactLabelOption[];
82
+ impactOptions?: LogFilterDropdownOption[];
83
+ sortOptions?: HumanChangeSortOption[];
84
+ rejectLearningApi?: LearningActionApi;
85
+ generateLearningApi?: LearningActionApi;
86
+ config?: {
87
+ showFilters?: boolean;
88
+ showSidebar?: boolean;
89
+ showHeader?: boolean;
90
+ title?: string;
91
+ description?: string;
92
+ showAccordionToggle?: boolean;
93
+ showMaximizeToggle?: boolean;
94
+ };
95
+ isMaximized?: boolean;
96
+ defaultIsMaximized?: boolean;
97
+ onMaximizedChange?: (isMaximized: boolean) => void;
98
+ isTableOpen?: boolean;
99
+ defaultIsTableOpen?: boolean;
100
+ onTableOpenChange?: (isTableOpen: boolean) => void;
101
+ footerActions?: {
102
+ primary?: ActionFooterConfig;
103
+ secondary?: ActionFooterConfig;
104
+ };
105
+ }
106
+ export default function HumanChangesTableWrapper({ configId, changeLogConfigId, userDetails, app_integration_id, teachMeConfig, getData, query, extraColumns, filters, filterDropdown, table, impactLabelOptions, impactOptions, sortOptions, rejectLearningApi, generateLearningApi, config, className, style, isMaximized: controlledIsMaximized, defaultIsMaximized, onMaximizedChange, isTableOpen: controlledIsTableOpen, defaultIsTableOpen, onTableOpenChange, footerActions, modeId, ...rest }: HumanChangesTableWrapperProps): import("react").JSX.Element;
107
+ export {};
108
+ //# sourceMappingURL=HumanChangesTableWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HumanChangesTableWrapper.d.ts","sourceRoot":"","sources":["../../../src/HumanIntelligence/HumanChangesTableWrapper.tsx"],"names":[],"mappings":";AAEA,OAAO,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAkC,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3G,OAAO,EAEL,kBAAkB,EAGnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,UAAU,MAAM,oCAAoC,CAAC;AAC5D,OAAO,iBAAiB,EAAE,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAQvG,KAAK,SAAS,GAAG;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACvC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAmEF,KAAK,qBAAqB,GAAG;IAC3B,KA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EAAE;QACP,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,CAAC;IAGF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IAEnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IAEnD,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,kBAAkB,CAAC;QAC7B,SAAS,CAAC,EAAE,kBAAkB,CAAC;KAChC,CAAC;CACH;AAKD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,QAAQ,EACR,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,OAAO,EACP,KAAK,EACL,YAAY,EACZ,OAAO,EACP,cAAc,EACd,KAAK,EACL,kBAAiD,EACjD,aAAa,EACb,WAAkC,EAClC,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,SAAS,EACT,KAAK,EACL,WAAW,EAAE,qBAAqB,EAClC,kBAA0B,EAC1B,iBAAiB,EACjB,WAAW,EAAE,qBAAqB,EAClC,kBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,MAAM,EACN,GAAG,IAAI,EACR,EAAE,6BAA6B,+BA8wB/B"}
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export declare function TestHumanIntelligence(): React.JSX.Element;
3
+ //# sourceMappingURL=TestHumanIntelligence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestHumanIntelligence.d.ts","sourceRoot":"","sources":["../../../src/HumanIntelligence/TestHumanIntelligence.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqI1B,wBAAgB,qBAAqB,sBAsEpC"}
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { Column } from '../Shared/ReusableTable';
3
+ export interface CitationContentProps<T = any> {
4
+ citationType?: 'tabular' | 'record';
5
+ tableTitle?: string;
6
+ tableData: T[];
7
+ columns: Column<T>[];
8
+ rulebookTitle?: string;
9
+ rulebookPaginationText?: string;
10
+ rulebookComponent?: React.ReactNode;
11
+ rulebookMarkdown?: string;
12
+ rulebookLoading?: boolean;
13
+ rulebookError?: string | null;
14
+ highlights?: string[];
15
+ recordMarkdown?: string;
16
+ loading?: boolean;
17
+ error?: string | null;
18
+ onEndReached?: () => void;
19
+ hasNextPage?: boolean;
20
+ isFetchingNextPage?: boolean;
21
+ fetchNextPageError?: string | null;
22
+ onRetry?: () => void;
23
+ onRulebookRetry?: () => void;
24
+ }
25
+ export declare function CitationContent<T>({ citationType, tableTitle, tableData, columns, rulebookTitle, rulebookPaginationText, rulebookComponent, rulebookMarkdown, rulebookLoading, rulebookError, highlights, recordMarkdown, loading, error, onEndReached, hasNextPage, isFetchingNextPage, fetchNextPageError, onRetry, onRulebookRetry }: CitationContentProps<T>): React.JSX.Element;
26
+ //# sourceMappingURL=CitationContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CitationContent.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/CitationContent/CitationContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAiB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,GAAG;IAC3C,YAAY,CAAC,EAAE,SAAS,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RawCitation } from '../../hooks/useHumanChangesData';
4
+ /**
5
+ * Represents the structured data required by the CognitiveDecisioning component.
6
+ */
7
+ export interface CognitiveDecisioningData {
8
+ reason: string[];
9
+ gap: string[];
10
+ confidence_score: number;
11
+ /**
12
+ * Map of `citation_<n>` -> citation payload, as returned by the human
13
+ * changes API. Reason/gap sentences point at an entry through the
14
+ * `citationNumber` query param of their markdown link.
15
+ */
16
+ citation?: Record<string, RawCitation>;
17
+ tableColumns?: Column<any>[];
18
+ rulebookComponent?: React.ReactNode;
19
+ tableTitle?: string;
20
+ rulebookTitle?: string;
21
+ rulebookPaginationText?: string;
22
+ humanIntelligentConfigId?: string;
23
+ changeLogConfigId?: string;
24
+ baseUrl?: string;
25
+ agentConfig?: string;
26
+ }
27
+ /**
28
+ * Props for the CognitiveDecisioning component.
29
+ */
30
+ export interface CognitiveDecisioningProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
31
+ data: CognitiveDecisioningData;
32
+ changeLogs?: any[];
33
+ defaultOpen?: boolean;
34
+ }
35
+ export declare const CognitiveDecisioning: React.FC<CognitiveDecisioningProps>;
36
+ //# sourceMappingURL=CognitiveDecisioning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CognitiveDecisioning.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAK/C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAOnE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7B,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACpG,IAAI,EAAE,wBAAwB,CAAC;IAC/B,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAycD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA2EpE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export interface HumanChangesSummaryProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** The label for the summary section, defaults to "HUMAN CHANGES SUMMARY" */
4
+ label?: string;
5
+ /** The content of the summary */
6
+ children: React.ReactNode;
7
+ }
8
+ /**
9
+ * Standalone component for displaying the human changes summary.
10
+ */
11
+ export declare const HumanChangesSummary: React.FC<HumanChangesSummaryProps>;
12
+ //# sourceMappingURL=HumanChangesSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HumanChangesSummary.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpF,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAYlE,CAAC"}
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ import { CognitiveDecisioningData } from "../CognitiveDecisioning/CognitiveDecisioning";
3
+ export interface HumanIntelligenceCardProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /** Optional structured data for Pattern Details */
5
+ patternDetails?: {
6
+ label?: string;
7
+ content: React.ReactNode;
8
+ };
9
+ /** Optional structured data for Human Changes Summary */
10
+ humanChangesSummary?: {
11
+ label?: string;
12
+ content: React.ReactNode;
13
+ };
14
+ /** Optional structured data for Analysis Accordion */
15
+ analysisAccordion?: {
16
+ title: string;
17
+ pillText: string | React.ReactNode;
18
+ content: React.ReactNode;
19
+ defaultOpen?: boolean;
20
+ };
21
+ /** The content to be wrapped inside the card (used for custom composition) */
22
+ children?: React.ReactNode;
23
+ /** Optional structured data for Cognitive Decisioning */
24
+ cognitiveDecisioning?: CognitiveDecisioningData & {
25
+ changeLogs?: any[];
26
+ humanIntelligentConfigId?: string;
27
+ baseUrl?: string;
28
+ agentConfig?: string;
29
+ };
30
+ humanIntelligentConfigId?: string;
31
+ baseUrl?: string;
32
+ agentConfig?: string;
33
+ }
34
+ /**
35
+ * The outermost parent container that holds all components.
36
+ * Provides the border, background, and padding for the entire widget.
37
+ * Can be used either as a wrapper (with children) or by passing structured props.
38
+ */
39
+ export declare const HumanIntelligenceCard: React.FC<HumanIntelligenceCardProps>;
40
+ //# sourceMappingURL=HumanIntelligenceCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HumanIntelligenceCard.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAwB,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAE9G,MAAM,WAAW,0BAA2B,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtF,mDAAmD;IACnD,cAAc,CAAC,EAAE;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;KAC1B,CAAC;IACF,yDAAyD;IACzD,mBAAmB,CAAC,EAAE;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;KAC1B,CAAC;IACF,sDAAsD;IACtD,iBAAiB,CAAC,EAAE;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;QACnC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;QACzB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;IACF,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,yDAAyD;IACzD,oBAAoB,CAAC,EAAE,wBAAwB,GAAG;QAChD,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;QACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA8CtE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import "primereact/resources/themes/lara-light-indigo/theme.css";
3
+ import "primereact/resources/primereact.min.css";
4
+ import "./logFilterDropdown.css";
5
+ export type LogFilterDropdownOption = {
6
+ label: string;
7
+ value: string;
8
+ };
9
+ export type LogFilterDropdownProps = {
10
+ visible: boolean;
11
+ onHide: () => void;
12
+ impactOptions?: LogFilterDropdownOption[];
13
+ selectedImpacts?: string[];
14
+ onImpactChange?: (values: string[]) => void;
15
+ onReset: () => void;
16
+ onApply: () => void;
17
+ config?: {
18
+ showImpactFilter?: boolean;
19
+ };
20
+ labels?: {
21
+ title?: string;
22
+ impactLabel?: string;
23
+ impactHint?: string;
24
+ };
25
+ };
26
+ export default function LogFilterDropdown({ visible, onHide, impactOptions, selectedImpacts, onImpactChange, onReset, onApply, config, labels, }: LogFilterDropdownProps): React.JSX.Element | null;
27
+ //# sourceMappingURL=LogFilterDropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogFilterDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/LogFilters/LogFilterDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,yDAAyD,CAAC;AACjE,OAAO,yCAAyC,CAAC;AAEjD,OAAO,yBAAyB,CAAC;AAGjC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;IACF,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,OAAO,EACP,MAAM,EACN,aAAa,EACb,eAAe,EACf,cAAc,EACd,OAAO,EACP,OAAO,EACP,MAAM,EACN,MAAM,GACP,EAAE,sBAAsB,4BA0ExB"}
@@ -0,0 +1,38 @@
1
+ import React from "react";
2
+ import "./logFilters.css";
3
+ import { DateRange } from "../../../ExecutiveDashboard/components/DatePickers/DateRangeSelector";
4
+ export type SortOrder = "highestFrequency" | "lowestFrequency";
5
+ export type ImpactFilterOption = {
6
+ label: string;
7
+ value: string;
8
+ };
9
+ export type SortOption = {
10
+ label: string;
11
+ value: SortOrder;
12
+ };
13
+ export type LogFiltersProps = {
14
+ value: {
15
+ search?: string;
16
+ dateRange?: DateRange;
17
+ sort: SortOrder;
18
+ };
19
+ onChange: {
20
+ onSearch?: (v: string) => void;
21
+ onDate?: (r: DateRange) => void;
22
+ onSort?: (v: SortOrder) => void;
23
+ };
24
+ config?: {
25
+ showSearch?: boolean;
26
+ showDate?: boolean;
27
+ showSort?: boolean;
28
+ showFilterButton?: boolean;
29
+ sortOptions?: SortOption[];
30
+ };
31
+ impactOptions?: ImpactFilterOption[];
32
+ /** Highlights the Filter button when filters are applied. */
33
+ filterActive?: boolean;
34
+ onOpenFilter?: () => void;
35
+ };
36
+ declare const LogFilters: React.FC<LogFiltersProps>;
37
+ export default LogFilters;
38
+ //# sourceMappingURL=LogFilters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogFilters.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/LogFilters/LogFilters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3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@@
1
+ import React from "react";
2
+ import "primereact/resources/themes/lara-light-indigo/theme.css";
3
+ import "primereact/resources/primereact.min.css";
4
+ import "primeicons/primeicons.css";
5
+ import "./logFiltersSidebar.css";
6
+ export type LogFiltersSidebarOption = {
7
+ label: string;
8
+ value: string;
9
+ };
10
+ export type LogFiltersSidebarProps = {
11
+ visible: boolean;
12
+ onHide: () => void;
13
+ /**
14
+ * Impact filter options.
15
+ * These are provided by HumanChangesTableWrapper.
16
+ */
17
+ impactOptions?: LogFiltersSidebarOption[];
18
+ /**
19
+ * Currently selected impact filters.
20
+ */
21
+ selectedImpacts?: string[];
22
+ /**
23
+ * Called whenever the selected impact values change.
24
+ */
25
+ onImpactChange?: (values: string[]) => void;
26
+ onReset: () => void;
27
+ onApply: () => void;
28
+ config?: {
29
+ showImpactFilter?: boolean;
30
+ };
31
+ labels?: {
32
+ title?: string;
33
+ impactLabel?: string;
34
+ impactHint?: string;
35
+ };
36
+ };
37
+ export default function LogFiltersSidebar({ visible, onHide, impactOptions, selectedImpacts, onImpactChange, onReset, onApply, config, labels, }: LogFiltersSidebarProps): React.JSX.Element;
38
+ //# sourceMappingURL=LogFiltersSidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogFiltersSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/LogFilters/LogFiltersSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,yDAAyD,CAAC;AACjE,OAAO,yCAAyC,CAAC;AACjD,OAAO,2BAA2B,CAAC;AAEnC,OAAO,yBAAyB,CAAC;AAIjC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB;;;OAGG;IACH,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAE1C;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAE5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,MAAM,CAAC,EAAE;QACP,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;IAEF,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,OAAO,EACP,MAAM,EACN,aAAa,EACb,eAAe,EACf,cAAc,EACd,OAAO,EACP,OAAO,EACP,MAAM,EACN,MAAM,GACP,EAAE,sBAAsB,qBAsExB"}
@@ -0,0 +1,73 @@
1
+ import React from "react";
2
+ import "primereact/resources/primereact.min.css";
3
+ import "primeicons/primeicons.css";
4
+ import "./LogTable.css";
5
+ export type LogRow = {
6
+ id?: string;
7
+ historyId?: string;
8
+ modifiedBy?: string;
9
+ actionType?: string;
10
+ actionText?: string;
11
+ actionDate?: string;
12
+ updatedByICE?: boolean;
13
+ [key: string]: any;
14
+ };
15
+ export type RowDetailHelpers = {
16
+ close: () => void;
17
+ rejectLearning: () => Promise<void>;
18
+ generateLearning: () => Promise<void>;
19
+ };
20
+ export type LogTableProps = {
21
+ rows?: LogRow[];
22
+ loading?: boolean;
23
+ loadingMore?: boolean;
24
+ hasMore?: boolean;
25
+ onLoadMore?: () => void;
26
+ emptyState?: {
27
+ title?: string;
28
+ description?: string;
29
+ };
30
+ columns: {
31
+ key: string;
32
+ header: string;
33
+ body: (row: LogRow) => React.ReactNode;
34
+ style?: React.CSSProperties;
35
+ headerStyle?: React.CSSProperties;
36
+ headerClassName?: string;
37
+ }[];
38
+ headerStyle?: React.CSSProperties;
39
+ headerClassName?: string;
40
+ expandable?: boolean;
41
+ renderExpandedRow?: (row: LogRow, helpers: RowDetailHelpers) => React.ReactNode;
42
+ onRejectLearning?: (row: LogRow) => Promise<void>;
43
+ onGenerateLearning?: (row: LogRow) => Promise<void>;
44
+ multipleExpanded?: boolean;
45
+ showExpandIcon?: boolean;
46
+ /** @deprecated Use showExpandIcon. */
47
+ showExpansionChevron?: boolean;
48
+ expandedRowClassName?: string;
49
+ expandedRowStyle?: React.CSSProperties;
50
+ chipConfig?: {
51
+ getTone?: (row: LogRow) => string;
52
+ getIcon?: (row: LogRow) => React.ReactNode;
53
+ getStyle?: (row: LogRow) => React.CSSProperties;
54
+ };
55
+ tableProps?: Record<string, any>;
56
+ restoringId?: string | null;
57
+ onRestore?: (historyId: string) => void | Promise<unknown>;
58
+ restoreToast?: {
59
+ enabled?: boolean;
60
+ position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "center";
61
+ life?: number;
62
+ success?: {
63
+ summary?: string;
64
+ detail?: string | ((historyId: string) => string);
65
+ };
66
+ error?: {
67
+ summary?: string;
68
+ detail?: string | ((historyId: string, err: unknown) => string);
69
+ };
70
+ };
71
+ };
72
+ export default function LogTable({ rows, loading, loadingMore, onLoadMore, hasMore, emptyState, columns, expandable, renderExpandedRow, onRejectLearning, onGenerateLearning, multipleExpanded, showExpandIcon, showExpansionChevron, expandedRowClassName, expandedRowStyle, chipConfig, tableProps, restoringId, onRestore, restoreToast, headerStyle, headerClassName, }: LogTableProps): React.JSX.Element;
73
+ //# sourceMappingURL=LogTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogTable.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/LogTable/LogTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAMpE,OAAO,yCA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f,cAAc,GACd,QAAQ,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;SACnD,CAAC;QACF,KAAK,CAAC,EAAE;YACN,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,MAAM,CAAC,CAAC;SACjE,CAAC;KACH,CAAC;CACH,CAAC;AA+BF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAS,EACT,OAAO,EACP,WAAW,EACX,UAAU,EACV,OAAO,EACP,UAAU,EACV,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,GAChB,EAAE,aAAa,qBA8Tf"}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ export interface PatternDetailsProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** Label for the outer container. Defaults to "PATTERN DETAILS" */
4
+ label?: string;
5
+ children: React.ReactNode;
6
+ }
7
+ /**
8
+ * Reusable wrapper component for pattern details or any similar content.
9
+ */
10
+ export declare const PatternDetails: React.FC<PatternDetailsProps>;
11
+ //# sourceMappingURL=PatternDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PatternDetails.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/PatternDetails/PatternDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/E,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAcxD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ export interface Column<T> {
3
+ key: string;
4
+ title: string;
5
+ minWidth?: string | number;
6
+ maxWidth?: string | number;
7
+ render?: (row: T, index: number) => React.ReactNode;
8
+ }
9
+ export interface ReusableTableProps<T> {
10
+ data: T[];
11
+ columns: Column<T>[];
12
+ className?: string;
13
+ highlights?: string[];
14
+ minWidth?: string | number;
15
+ maxWidth?: string | number;
16
+ }
17
+ export declare function ReusableTable<T>({ data, columns, className, highlights, minWidth, maxWidth }: ReusableTableProps<T>): React.JSX.Element;
18
+ //# sourceMappingURL=ReusableTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReusableTable.d.ts","sourceRoot":"","sources":["../../../../../src/HumanIntelligence/components/Shared/ReusableTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CACrD;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AA0CD,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC,qBAgDnH"}
@@ -0,0 +1,42 @@
1
+ import { RefCallback } from 'react';
2
+ /**
3
+ * Options for configuring highlight navigation.
4
+ */
5
+ export interface UseHighlightNavigationOptions {
6
+ /** The raw markdown string to process */
7
+ markdown: string;
8
+ /** Words or phrases to highlight in the markdown */
9
+ highlights?: string[];
10
+ /** Type of the citation, highlighting only applies to 'record' */
11
+ citationType?: 'tabular' | 'record';
12
+ /** CSS class applied to the actively focused highlight */
13
+ activeHighlightClass: string;
14
+ /** CSS class applied to all matches */
15
+ highlightClass: string;
16
+ }
17
+ /**
18
+ * Result object returned by the useHighlightNavigation hook.
19
+ */
20
+ export interface HighlightNavigationResult {
21
+ /** The processed markdown string with HTML <mark> tags injected */
22
+ processedMarkdown: string;
23
+ /** Total number of matches found */
24
+ matchCount: number;
25
+ /** The 1-indexed current focused match */
26
+ currentMatch: number;
27
+ /** Navigates to the next match if available */
28
+ handleNextMatch: () => void;
29
+ /** Navigates to the previous match if available */
30
+ handlePrevMatch: () => void;
31
+ /** Ref to attach to the markdown container to handle scrolling */
32
+ scrollContainerRef: RefCallback<HTMLDivElement>;
33
+ }
34
+ /**
35
+ * Custom hook that parses markdown text to dynamically inject highlight tags
36
+ * and provides state/methods for navigating between those highlights.
37
+ *
38
+ * @param options - Configuration options for highlighting.
39
+ * @returns The processed markdown, pagination state, and event handlers.
40
+ */
41
+ export declare function useHighlightNavigation({ markdown, highlights, citationType, activeHighlightClass, highlightClass }: UseHighlightNavigationOptions): HighlightNavigationResult;
42
+ //# sourceMappingURL=useHighlightNavigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHighlightNavigation.d.ts","sourceRoot":"","sources":["../../../../src/HumanIntelligence/hooks/useHighlightNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,WAAW,EAAE,MAAM,OAAO,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,kEAAkE;IAClE,YAAY,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IACpC,0DAA0D;IAC1D,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,mEAAmE;IACnE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oCAAoC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,mDAAmD;IACnD,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;CACjD;AAKD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACf,EAAE,6BAA6B,GAAG,yBAAyB,CA+F3D"}