@burdenoff/microfe-ecoimpacthub 2026.1203.4 → 2026.1205.2

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 (717) hide show
  1. package/dist/ecoimpacthub/components/AiInsightsPanel.d.ts +3 -0
  2. package/dist/ecoimpacthub/components/AiInsightsPanel.js +79 -87
  3. package/dist/ecoimpacthub/components/AiInsightsPanel.js.map +1 -1
  4. package/dist/ecoimpacthub/components/EcoDiscussion.js +7 -9
  5. package/dist/ecoimpacthub/components/EcoDiscussion.js.map +1 -1
  6. package/dist/ecoimpacthub/components/EcoTags.js +0 -1
  7. package/dist/ecoimpacthub/components/EcoTags.js.map +1 -1
  8. package/dist/ecoimpacthub/components/EvidenceUpload.js +0 -1
  9. package/dist/ecoimpacthub/components/EvidenceUpload.js.map +1 -1
  10. package/dist/ecoimpacthub/components/FileLink.js +0 -1
  11. package/dist/ecoimpacthub/components/FileLink.js.map +1 -1
  12. package/dist/ecoimpacthub/components/ai/AiAnomalyPanel.js +9 -10
  13. package/dist/ecoimpacthub/components/ai/AiAnomalyPanel.js.map +1 -1
  14. package/dist/ecoimpacthub/components/ai/AiThresholdSuggest.js +3 -4
  15. package/dist/ecoimpacthub/components/ai/AiThresholdSuggest.js.map +1 -1
  16. package/dist/ecoimpacthub/components/ai/AiTriageDialog.js +8 -9
  17. package/dist/ecoimpacthub/components/ai/AiTriageDialog.js.map +1 -1
  18. package/dist/ecoimpacthub/field/useFieldQueue.js +0 -1
  19. package/dist/ecoimpacthub/field/useFieldQueue.js.map +1 -1
  20. package/dist/ecoimpacthub/hooks/useEcoAiMonitoring.js +0 -1
  21. package/dist/ecoimpacthub/hooks/useEcoAiMonitoring.js.map +1 -1
  22. package/dist/ecoimpacthub/hooks/useEcoAiOperations.js +0 -1
  23. package/dist/ecoimpacthub/hooks/useEcoAiOperations.js.map +1 -1
  24. package/dist/ecoimpacthub/hooks/useEcoComments.js +0 -1
  25. package/dist/ecoimpacthub/hooks/useEcoComments.js.map +1 -1
  26. package/dist/ecoimpacthub/hooks/useEcoFiles.js +0 -1
  27. package/dist/ecoimpacthub/hooks/useEcoFiles.js.map +1 -1
  28. package/dist/ecoimpacthub/hooks/useEcoImpactHubApi.d.ts +5 -1
  29. package/dist/ecoimpacthub/hooks/useEcoImpactHubApi.js +128 -105
  30. package/dist/ecoimpacthub/hooks/useEcoImpactHubApi.js.map +1 -1
  31. package/dist/ecoimpacthub/hooks/useEcoPlatformModulesApi.d.ts +9 -1
  32. package/dist/ecoimpacthub/hooks/useEcoPlatformModulesApi.js +5 -6
  33. package/dist/ecoimpacthub/hooks/useEcoPlatformModulesApi.js.map +1 -1
  34. package/dist/ecoimpacthub/hooks/useEcoTags.js +0 -1
  35. package/dist/ecoimpacthub/hooks/useEcoTags.js.map +1 -1
  36. package/dist/ecoimpacthub/pages/DashboardPage.d.ts +6 -3
  37. package/dist/ecoimpacthub/pages/DashboardPage.js +263 -292
  38. package/dist/ecoimpacthub/pages/DashboardPage.js.map +1 -1
  39. package/dist/ecoimpacthub/pages/_shared/EvidenceThumb.js +0 -1
  40. package/dist/ecoimpacthub/pages/_shared/EvidenceThumb.js.map +1 -1
  41. package/dist/ecoimpacthub/pages/ai/AiOperationsPage.js +126 -128
  42. package/dist/ecoimpacthub/pages/ai/AiOperationsPage.js.map +1 -1
  43. package/dist/ecoimpacthub/pages/carbon/CarbonPage.js +12 -13
  44. package/dist/ecoimpacthub/pages/carbon/CarbonPage.js.map +1 -1
  45. package/dist/ecoimpacthub/pages/circularity/CircularityPage.js +11 -12
  46. package/dist/ecoimpacthub/pages/circularity/CircularityPage.js.map +1 -1
  47. package/dist/ecoimpacthub/pages/compliance/CompliancePage.js +70 -71
  48. package/dist/ecoimpacthub/pages/compliance/CompliancePage.js.map +1 -1
  49. package/dist/ecoimpacthub/pages/credits/CreditsPage.js +140 -141
  50. package/dist/ecoimpacthub/pages/credits/CreditsPage.js.map +1 -1
  51. package/dist/ecoimpacthub/pages/dashboardKpis.d.ts +35 -0
  52. package/dist/ecoimpacthub/pages/dashboardKpis.js +60 -0
  53. package/dist/ecoimpacthub/pages/dashboardKpis.js.map +1 -0
  54. package/dist/ecoimpacthub/pages/ehs/EhsPage.js +467 -468
  55. package/dist/ecoimpacthub/pages/ehs/EhsPage.js.map +1 -1
  56. package/dist/ecoimpacthub/pages/energy/EnergyPage.js +414 -415
  57. package/dist/ecoimpacthub/pages/energy/EnergyPage.js.map +1 -1
  58. package/dist/ecoimpacthub/pages/grants/DonorPortalPage.js +0 -1
  59. package/dist/ecoimpacthub/pages/grants/DonorPortalPage.js.map +1 -1
  60. package/dist/ecoimpacthub/pages/grants/GrantDetailPage.js +11 -13
  61. package/dist/ecoimpacthub/pages/grants/GrantDetailPage.js.map +1 -1
  62. package/dist/ecoimpacthub/pages/grants/GrantsPage.js +28 -30
  63. package/dist/ecoimpacthub/pages/grants/GrantsPage.js.map +1 -1
  64. package/dist/ecoimpacthub/pages/habitat/HabitatProjectDetailPage.js +16 -18
  65. package/dist/ecoimpacthub/pages/habitat/HabitatProjectDetailPage.js.map +1 -1
  66. package/dist/ecoimpacthub/pages/habitat/HabitatProjectsPage.js +16 -18
  67. package/dist/ecoimpacthub/pages/habitat/HabitatProjectsPage.js.map +1 -1
  68. package/dist/ecoimpacthub/pages/habitat/StewardshipPage.js +17 -18
  69. package/dist/ecoimpacthub/pages/habitat/StewardshipPage.js.map +1 -1
  70. package/dist/ecoimpacthub/pages/habitat/stewardship.js +0 -1
  71. package/dist/ecoimpacthub/pages/habitat/stewardship.js.map +1 -1
  72. package/dist/ecoimpacthub/pages/metrics/MetricDetailDialog.js +0 -1
  73. package/dist/ecoimpacthub/pages/metrics/MetricDetailDialog.js.map +1 -1
  74. package/dist/ecoimpacthub/pages/metrics/MetricsPage.js +11 -12
  75. package/dist/ecoimpacthub/pages/metrics/MetricsPage.js.map +1 -1
  76. package/dist/ecoimpacthub/pages/mobile/FieldQueuePanel.js +0 -1
  77. package/dist/ecoimpacthub/pages/mobile/FieldQueuePanel.js.map +1 -1
  78. package/dist/ecoimpacthub/pages/mobile/MobileDashboardPage.js +14 -16
  79. package/dist/ecoimpacthub/pages/mobile/MobileDashboardPage.js.map +1 -1
  80. package/dist/ecoimpacthub/pages/mobile/MobileRecordObservationPage.js +4 -6
  81. package/dist/ecoimpacthub/pages/mobile/MobileRecordObservationPage.js.map +1 -1
  82. package/dist/ecoimpacthub/pages/mobile/MobileShell.js +0 -2
  83. package/dist/ecoimpacthub/pages/mobile/MobileShell.js.map +1 -1
  84. package/dist/ecoimpacthub/pages/monitoring/MonitoringPage.js +118 -120
  85. package/dist/ecoimpacthub/pages/monitoring/MonitoringPage.js.map +1 -1
  86. package/dist/ecoimpacthub/pages/observations/ObservationsPage.js +25 -27
  87. package/dist/ecoimpacthub/pages/observations/ObservationsPage.js.map +1 -1
  88. package/dist/ecoimpacthub/pages/products/ProductFootprintPage.js +5 -6
  89. package/dist/ecoimpacthub/pages/products/ProductFootprintPage.js.map +1 -1
  90. package/dist/ecoimpacthub/pages/reports/ReportDetailPage.js +26 -28
  91. package/dist/ecoimpacthub/pages/reports/ReportDetailPage.js.map +1 -1
  92. package/dist/ecoimpacthub/pages/reports/ReportsPage.js +22 -24
  93. package/dist/ecoimpacthub/pages/reports/ReportsPage.js.map +1 -1
  94. package/dist/ecoimpacthub/pages/satellite/SatellitePage.js +120 -121
  95. package/dist/ecoimpacthub/pages/satellite/SatellitePage.js.map +1 -1
  96. package/dist/ecoimpacthub/pages/sites/SiteDetailPage.js +274 -277
  97. package/dist/ecoimpacthub/pages/sites/SiteDetailPage.js.map +1 -1
  98. package/dist/ecoimpacthub/pages/sites/SitesPage.js +99 -101
  99. package/dist/ecoimpacthub/pages/sites/SitesPage.js.map +1 -1
  100. package/dist/ecoimpacthub/pages/species/SpeciesDetailPage.js +31 -33
  101. package/dist/ecoimpacthub/pages/species/SpeciesDetailPage.js.map +1 -1
  102. package/dist/ecoimpacthub/pages/species/SpeciesPage.js +20 -22
  103. package/dist/ecoimpacthub/pages/species/SpeciesPage.js.map +1 -1
  104. package/dist/ecoimpacthub/pages/suppliers/SuppliersPage.js +12 -13
  105. package/dist/ecoimpacthub/pages/suppliers/SuppliersPage.js.map +1 -1
  106. package/dist/ecoimpacthub/pages/telemetry/TelemetryPage.js +14 -15
  107. package/dist/ecoimpacthub/pages/telemetry/TelemetryPage.js.map +1 -1
  108. package/dist/ecoimpacthub/types/index.d.ts +30 -0
  109. package/dist/ecoimpacthub/utils/cn.js +2 -2
  110. package/dist/generated/wspace-types.d.ts +132863 -10029
  111. package/dist/index.js +0 -1
  112. package/package.json +4 -1
  113. package/dist/_virtual/_rolldown/runtime.js +0 -19
  114. package/dist/ecoimpacthub/components/ai/index.js +0 -5
  115. package/dist/ecoimpacthub/context/index.js +0 -1
  116. package/dist/ecoimpacthub/hooks/index.js +0 -12
  117. package/dist/ecoimpacthub/index.js +0 -12
  118. package/dist/ecoimpacthub/services/index.js +0 -1
  119. package/dist/node_modules/clsx/dist/clsx.js +0 -19
  120. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  121. package/dist/node_modules/d3-array/dist/d3-array.js +0 -204
  122. package/dist/node_modules/d3-array/dist/d3-array.js.map +0 -1
  123. package/dist/node_modules/d3-color/dist/d3-color.js +0 -388
  124. package/dist/node_modules/d3-color/dist/d3-color.js.map +0 -1
  125. package/dist/node_modules/d3-format/dist/d3-format.js +0 -186
  126. package/dist/node_modules/d3-format/dist/d3-format.js.map +0 -1
  127. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +0 -185
  128. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js.map +0 -1
  129. package/dist/node_modules/d3-path/dist/d3-path.js +0 -90
  130. package/dist/node_modules/d3-path/dist/d3-path.js.map +0 -1
  131. package/dist/node_modules/d3-scale/dist/d3-scale.js +0 -622
  132. package/dist/node_modules/d3-scale/dist/d3-scale.js.map +0 -1
  133. package/dist/node_modules/d3-shape/dist/d3-shape.js +0 -901
  134. package/dist/node_modules/d3-shape/dist/d3-shape.js.map +0 -1
  135. package/dist/node_modules/d3-time/dist/d3-time.js +0 -241
  136. package/dist/node_modules/d3-time/dist/d3-time.js.map +0 -1
  137. package/dist/node_modules/d3-time-format/dist/d3-time-format.js +0 -545
  138. package/dist/node_modules/d3-time-format/dist/d3-time-format.js.map +0 -1
  139. package/dist/node_modules/decimal.js-light/decimal.js +0 -381
  140. package/dist/node_modules/decimal.js-light/decimal.js.map +0 -1
  141. package/dist/node_modules/eventemitter3/index.js +0 -94
  142. package/dist/node_modules/eventemitter3/index.js.map +0 -1
  143. package/dist/node_modules/fast-equals/dist/es/index.js +0 -297
  144. package/dist/node_modules/fast-equals/dist/es/index.js.map +0 -1
  145. package/dist/node_modules/lodash/_DataView.js +0 -11
  146. package/dist/node_modules/lodash/_DataView.js.map +0 -1
  147. package/dist/node_modules/lodash/_Hash.js +0 -22
  148. package/dist/node_modules/lodash/_Hash.js.map +0 -1
  149. package/dist/node_modules/lodash/_ListCache.js +0 -22
  150. package/dist/node_modules/lodash/_ListCache.js.map +0 -1
  151. package/dist/node_modules/lodash/_Map.js +0 -11
  152. package/dist/node_modules/lodash/_Map.js.map +0 -1
  153. package/dist/node_modules/lodash/_MapCache.js +0 -22
  154. package/dist/node_modules/lodash/_MapCache.js.map +0 -1
  155. package/dist/node_modules/lodash/_Promise.js +0 -11
  156. package/dist/node_modules/lodash/_Promise.js.map +0 -1
  157. package/dist/node_modules/lodash/_Set.js +0 -11
  158. package/dist/node_modules/lodash/_Set.js.map +0 -1
  159. package/dist/node_modules/lodash/_SetCache.js +0 -17
  160. package/dist/node_modules/lodash/_SetCache.js.map +0 -1
  161. package/dist/node_modules/lodash/_Stack.js +0 -20
  162. package/dist/node_modules/lodash/_Stack.js.map +0 -1
  163. package/dist/node_modules/lodash/_Symbol.js +0 -10
  164. package/dist/node_modules/lodash/_Symbol.js.map +0 -1
  165. package/dist/node_modules/lodash/_Uint8Array.js +0 -10
  166. package/dist/node_modules/lodash/_Uint8Array.js.map +0 -1
  167. package/dist/node_modules/lodash/_WeakMap.js +0 -11
  168. package/dist/node_modules/lodash/_WeakMap.js.map +0 -1
  169. package/dist/node_modules/lodash/_apply.js +0 -18
  170. package/dist/node_modules/lodash/_apply.js.map +0 -1
  171. package/dist/node_modules/lodash/_arrayEvery.js +0 -13
  172. package/dist/node_modules/lodash/_arrayEvery.js.map +0 -1
  173. package/dist/node_modules/lodash/_arrayFilter.js +0 -16
  174. package/dist/node_modules/lodash/_arrayFilter.js.map +0 -1
  175. package/dist/node_modules/lodash/_arrayIncludes.js +0 -14
  176. package/dist/node_modules/lodash/_arrayIncludes.js.map +0 -1
  177. package/dist/node_modules/lodash/_arrayIncludesWith.js +0 -13
  178. package/dist/node_modules/lodash/_arrayIncludesWith.js.map +0 -1
  179. package/dist/node_modules/lodash/_arrayLikeKeys.js +0 -21
  180. package/dist/node_modules/lodash/_arrayLikeKeys.js.map +0 -1
  181. package/dist/node_modules/lodash/_arrayMap.js +0 -13
  182. package/dist/node_modules/lodash/_arrayMap.js.map +0 -1
  183. package/dist/node_modules/lodash/_arrayPush.js +0 -13
  184. package/dist/node_modules/lodash/_arrayPush.js.map +0 -1
  185. package/dist/node_modules/lodash/_arraySome.js +0 -13
  186. package/dist/node_modules/lodash/_arraySome.js.map +0 -1
  187. package/dist/node_modules/lodash/_asciiToArray.js +0 -12
  188. package/dist/node_modules/lodash/_asciiToArray.js.map +0 -1
  189. package/dist/node_modules/lodash/_assocIndexOf.js +0 -15
  190. package/dist/node_modules/lodash/_assocIndexOf.js.map +0 -1
  191. package/dist/node_modules/lodash/_baseAssignValue.js +0 -19
  192. package/dist/node_modules/lodash/_baseAssignValue.js.map +0 -1
  193. package/dist/node_modules/lodash/_baseEach.js +0 -12
  194. package/dist/node_modules/lodash/_baseEach.js.map +0 -1
  195. package/dist/node_modules/lodash/_baseEvery.js +0 -17
  196. package/dist/node_modules/lodash/_baseEvery.js.map +0 -1
  197. package/dist/node_modules/lodash/_baseExtremum.js +0 -18
  198. package/dist/node_modules/lodash/_baseExtremum.js.map +0 -1
  199. package/dist/node_modules/lodash/_baseFindIndex.js +0 -13
  200. package/dist/node_modules/lodash/_baseFindIndex.js.map +0 -1
  201. package/dist/node_modules/lodash/_baseFlatten.js +0 -20
  202. package/dist/node_modules/lodash/_baseFlatten.js.map +0 -1
  203. package/dist/node_modules/lodash/_baseFor.js +0 -10
  204. package/dist/node_modules/lodash/_baseFor.js.map +0 -1
  205. package/dist/node_modules/lodash/_baseForOwn.js +0 -15
  206. package/dist/node_modules/lodash/_baseForOwn.js.map +0 -1
  207. package/dist/node_modules/lodash/_baseGet.js +0 -17
  208. package/dist/node_modules/lodash/_baseGet.js.map +0 -1
  209. package/dist/node_modules/lodash/_baseGetAllKeys.js +0 -16
  210. package/dist/node_modules/lodash/_baseGetAllKeys.js.map +0 -1
  211. package/dist/node_modules/lodash/_baseGetTag.js +0 -16
  212. package/dist/node_modules/lodash/_baseGetTag.js.map +0 -1
  213. package/dist/node_modules/lodash/_baseGt.js +0 -12
  214. package/dist/node_modules/lodash/_baseGt.js.map +0 -1
  215. package/dist/node_modules/lodash/_baseHasIn.js +0 -12
  216. package/dist/node_modules/lodash/_baseHasIn.js.map +0 -1
  217. package/dist/node_modules/lodash/_baseIndexOf.js +0 -16
  218. package/dist/node_modules/lodash/_baseIndexOf.js.map +0 -1
  219. package/dist/node_modules/lodash/_baseIsArguments.js +0 -15
  220. package/dist/node_modules/lodash/_baseIsArguments.js.map +0 -1
  221. package/dist/node_modules/lodash/_baseIsEqual.js +0 -15
  222. package/dist/node_modules/lodash/_baseIsEqual.js.map +0 -1
  223. package/dist/node_modules/lodash/_baseIsEqualDeep.js +0 -36
  224. package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +0 -1
  225. package/dist/node_modules/lodash/_baseIsMatch.js +0 -32
  226. package/dist/node_modules/lodash/_baseIsMatch.js.map +0 -1
  227. package/dist/node_modules/lodash/_baseIsNaN.js +0 -12
  228. package/dist/node_modules/lodash/_baseIsNaN.js.map +0 -1
  229. package/dist/node_modules/lodash/_baseIsNative.js +0 -17
  230. package/dist/node_modules/lodash/_baseIsNative.js.map +0 -1
  231. package/dist/node_modules/lodash/_baseIsTypedArray.js +0 -17
  232. package/dist/node_modules/lodash/_baseIsTypedArray.js.map +0 -1
  233. package/dist/node_modules/lodash/_baseIteratee.js +0 -18
  234. package/dist/node_modules/lodash/_baseIteratee.js.map +0 -1
  235. package/dist/node_modules/lodash/_baseKeys.js +0 -18
  236. package/dist/node_modules/lodash/_baseKeys.js.map +0 -1
  237. package/dist/node_modules/lodash/_baseLt.js +0 -12
  238. package/dist/node_modules/lodash/_baseLt.js.map +0 -1
  239. package/dist/node_modules/lodash/_baseMap.js +0 -18
  240. package/dist/node_modules/lodash/_baseMap.js.map +0 -1
  241. package/dist/node_modules/lodash/_baseMatches.js +0 -19
  242. package/dist/node_modules/lodash/_baseMatches.js.map +0 -1
  243. package/dist/node_modules/lodash/_baseMatchesProperty.js +0 -23
  244. package/dist/node_modules/lodash/_baseMatchesProperty.js.map +0 -1
  245. package/dist/node_modules/lodash/_baseOrderBy.js +0 -38
  246. package/dist/node_modules/lodash/_baseOrderBy.js.map +0 -1
  247. package/dist/node_modules/lodash/_baseProperty.js +0 -14
  248. package/dist/node_modules/lodash/_baseProperty.js.map +0 -1
  249. package/dist/node_modules/lodash/_basePropertyDeep.js +0 -16
  250. package/dist/node_modules/lodash/_basePropertyDeep.js.map +0 -1
  251. package/dist/node_modules/lodash/_baseRange.js +0 -14
  252. package/dist/node_modules/lodash/_baseRange.js.map +0 -1
  253. package/dist/node_modules/lodash/_baseRest.js +0 -16
  254. package/dist/node_modules/lodash/_baseRest.js.map +0 -1
  255. package/dist/node_modules/lodash/_baseSetToString.js +0 -20
  256. package/dist/node_modules/lodash/_baseSetToString.js.map +0 -1
  257. package/dist/node_modules/lodash/_baseSlice.js +0 -15
  258. package/dist/node_modules/lodash/_baseSlice.js.map +0 -1
  259. package/dist/node_modules/lodash/_baseSome.js +0 -17
  260. package/dist/node_modules/lodash/_baseSome.js.map +0 -1
  261. package/dist/node_modules/lodash/_baseSortBy.js +0 -14
  262. package/dist/node_modules/lodash/_baseSortBy.js.map +0 -1
  263. package/dist/node_modules/lodash/_baseTimes.js +0 -13
  264. package/dist/node_modules/lodash/_baseTimes.js.map +0 -1
  265. package/dist/node_modules/lodash/_baseToString.js +0 -21
  266. package/dist/node_modules/lodash/_baseToString.js.map +0 -1
  267. package/dist/node_modules/lodash/_baseTrim.js +0 -14
  268. package/dist/node_modules/lodash/_baseTrim.js.map +0 -1
  269. package/dist/node_modules/lodash/_baseUnary.js +0 -14
  270. package/dist/node_modules/lodash/_baseUnary.js.map +0 -1
  271. package/dist/node_modules/lodash/_baseUniq.js +0 -33
  272. package/dist/node_modules/lodash/_baseUniq.js.map +0 -1
  273. package/dist/node_modules/lodash/_cacheHas.js +0 -12
  274. package/dist/node_modules/lodash/_cacheHas.js.map +0 -1
  275. package/dist/node_modules/lodash/_castPath.js +0 -17
  276. package/dist/node_modules/lodash/_castPath.js.map +0 -1
  277. package/dist/node_modules/lodash/_castSlice.js +0 -15
  278. package/dist/node_modules/lodash/_castSlice.js.map +0 -1
  279. package/dist/node_modules/lodash/_compareAscending.js +0 -19
  280. package/dist/node_modules/lodash/_compareAscending.js.map +0 -1
  281. package/dist/node_modules/lodash/_compareMultiple.js +0 -18
  282. package/dist/node_modules/lodash/_compareMultiple.js.map +0 -1
  283. package/dist/node_modules/lodash/_coreJsData.js +0 -10
  284. package/dist/node_modules/lodash/_coreJsData.js.map +0 -1
  285. package/dist/node_modules/lodash/_createBaseEach.js +0 -19
  286. package/dist/node_modules/lodash/_createBaseEach.js.map +0 -1
  287. package/dist/node_modules/lodash/_createBaseFor.js +0 -18
  288. package/dist/node_modules/lodash/_createBaseFor.js.map +0 -1
  289. package/dist/node_modules/lodash/_createCaseFirst.js +0 -21
  290. package/dist/node_modules/lodash/_createCaseFirst.js.map +0 -1
  291. package/dist/node_modules/lodash/_createFind.js +0 -26
  292. package/dist/node_modules/lodash/_createFind.js.map +0 -1
  293. package/dist/node_modules/lodash/_createRange.js +0 -18
  294. package/dist/node_modules/lodash/_createRange.js.map +0 -1
  295. package/dist/node_modules/lodash/_createSet.js +0 -15
  296. package/dist/node_modules/lodash/_createSet.js.map +0 -1
  297. package/dist/node_modules/lodash/_defineProperty.js +0 -16
  298. package/dist/node_modules/lodash/_defineProperty.js.map +0 -1
  299. package/dist/node_modules/lodash/_equalArrays.js +0 -41
  300. package/dist/node_modules/lodash/_equalArrays.js.map +0 -1
  301. package/dist/node_modules/lodash/_equalByTag.js +0 -41
  302. package/dist/node_modules/lodash/_equalByTag.js.map +0 -1
  303. package/dist/node_modules/lodash/_equalObjects.js +0 -38
  304. package/dist/node_modules/lodash/_equalObjects.js.map +0 -1
  305. package/dist/node_modules/lodash/_freeGlobal.js +0 -9
  306. package/dist/node_modules/lodash/_freeGlobal.js.map +0 -1
  307. package/dist/node_modules/lodash/_getAllKeys.js +0 -16
  308. package/dist/node_modules/lodash/_getAllKeys.js.map +0 -1
  309. package/dist/node_modules/lodash/_getMapData.js +0 -15
  310. package/dist/node_modules/lodash/_getMapData.js.map +0 -1
  311. package/dist/node_modules/lodash/_getMatchData.js +0 -23
  312. package/dist/node_modules/lodash/_getMatchData.js.map +0 -1
  313. package/dist/node_modules/lodash/_getNative.js +0 -16
  314. package/dist/node_modules/lodash/_getNative.js.map +0 -1
  315. package/dist/node_modules/lodash/_getPrototype.js +0 -10
  316. package/dist/node_modules/lodash/_getPrototype.js.map +0 -1
  317. package/dist/node_modules/lodash/_getRawTag.js +0 -20
  318. package/dist/node_modules/lodash/_getRawTag.js.map +0 -1
  319. package/dist/node_modules/lodash/_getSymbols.js +0 -16
  320. package/dist/node_modules/lodash/_getSymbols.js.map +0 -1
  321. package/dist/node_modules/lodash/_getTag.js +0 -27
  322. package/dist/node_modules/lodash/_getTag.js.map +0 -1
  323. package/dist/node_modules/lodash/_getValue.js +0 -12
  324. package/dist/node_modules/lodash/_getValue.js.map +0 -1
  325. package/dist/node_modules/lodash/_hasPath.js +0 -25
  326. package/dist/node_modules/lodash/_hasPath.js.map +0 -1
  327. package/dist/node_modules/lodash/_hasUnicode.js +0 -13
  328. package/dist/node_modules/lodash/_hasUnicode.js.map +0 -1
  329. package/dist/node_modules/lodash/_hashClear.js +0 -14
  330. package/dist/node_modules/lodash/_hashClear.js.map +0 -1
  331. package/dist/node_modules/lodash/_hashDelete.js +0 -13
  332. package/dist/node_modules/lodash/_hashDelete.js.map +0 -1
  333. package/dist/node_modules/lodash/_hashGet.js +0 -19
  334. package/dist/node_modules/lodash/_hashGet.js.map +0 -1
  335. package/dist/node_modules/lodash/_hashHas.js +0 -15
  336. package/dist/node_modules/lodash/_hashHas.js.map +0 -1
  337. package/dist/node_modules/lodash/_hashSet.js +0 -15
  338. package/dist/node_modules/lodash/_hashSet.js.map +0 -1
  339. package/dist/node_modules/lodash/_isFlattenable.js +0 -16
  340. package/dist/node_modules/lodash/_isFlattenable.js.map +0 -1
  341. package/dist/node_modules/lodash/_isIndex.js +0 -14
  342. package/dist/node_modules/lodash/_isIndex.js.map +0 -1
  343. package/dist/node_modules/lodash/_isIterateeCall.js +0 -19
  344. package/dist/node_modules/lodash/_isIterateeCall.js.map +0 -1
  345. package/dist/node_modules/lodash/_isKey.js +0 -17
  346. package/dist/node_modules/lodash/_isKey.js.map +0 -1
  347. package/dist/node_modules/lodash/_isKeyable.js +0 -13
  348. package/dist/node_modules/lodash/_isKeyable.js.map +0 -1
  349. package/dist/node_modules/lodash/_isMasked.js +0 -17
  350. package/dist/node_modules/lodash/_isMasked.js.map +0 -1
  351. package/dist/node_modules/lodash/_isPrototype.js +0 -14
  352. package/dist/node_modules/lodash/_isPrototype.js.map +0 -1
  353. package/dist/node_modules/lodash/_isStrictComparable.js +0 -14
  354. package/dist/node_modules/lodash/_isStrictComparable.js.map +0 -1
  355. package/dist/node_modules/lodash/_listCacheClear.js +0 -12
  356. package/dist/node_modules/lodash/_listCacheClear.js.map +0 -1
  357. package/dist/node_modules/lodash/_listCacheDelete.js +0 -15
  358. package/dist/node_modules/lodash/_listCacheDelete.js.map +0 -1
  359. package/dist/node_modules/lodash/_listCacheGet.js +0 -15
  360. package/dist/node_modules/lodash/_listCacheGet.js.map +0 -1
  361. package/dist/node_modules/lodash/_listCacheHas.js +0 -14
  362. package/dist/node_modules/lodash/_listCacheHas.js.map +0 -1
  363. package/dist/node_modules/lodash/_listCacheSet.js +0 -15
  364. package/dist/node_modules/lodash/_listCacheSet.js.map +0 -1
  365. package/dist/node_modules/lodash/_mapCacheClear.js +0 -20
  366. package/dist/node_modules/lodash/_mapCacheClear.js.map +0 -1
  367. package/dist/node_modules/lodash/_mapCacheDelete.js +0 -15
  368. package/dist/node_modules/lodash/_mapCacheDelete.js.map +0 -1
  369. package/dist/node_modules/lodash/_mapCacheGet.js +0 -14
  370. package/dist/node_modules/lodash/_mapCacheGet.js.map +0 -1
  371. package/dist/node_modules/lodash/_mapCacheHas.js +0 -14
  372. package/dist/node_modules/lodash/_mapCacheHas.js.map +0 -1
  373. package/dist/node_modules/lodash/_mapCacheSet.js +0 -15
  374. package/dist/node_modules/lodash/_mapCacheSet.js.map +0 -1
  375. package/dist/node_modules/lodash/_mapToArray.js +0 -15
  376. package/dist/node_modules/lodash/_mapToArray.js.map +0 -1
  377. package/dist/node_modules/lodash/_matchesStrictComparable.js +0 -14
  378. package/dist/node_modules/lodash/_matchesStrictComparable.js.map +0 -1
  379. package/dist/node_modules/lodash/_memoizeCapped.js +0 -17
  380. package/dist/node_modules/lodash/_memoizeCapped.js.map +0 -1
  381. package/dist/node_modules/lodash/_nativeCreate.js +0 -10
  382. package/dist/node_modules/lodash/_nativeCreate.js.map +0 -1
  383. package/dist/node_modules/lodash/_nativeKeys.js +0 -10
  384. package/dist/node_modules/lodash/_nativeKeys.js.map +0 -1
  385. package/dist/node_modules/lodash/_nodeUtil.js +0 -15
  386. package/dist/node_modules/lodash/_nodeUtil.js.map +0 -1
  387. package/dist/node_modules/lodash/_objectToString.js +0 -13
  388. package/dist/node_modules/lodash/_objectToString.js.map +0 -1
  389. package/dist/node_modules/lodash/_overArg.js +0 -14
  390. package/dist/node_modules/lodash/_overArg.js.map +0 -1
  391. package/dist/node_modules/lodash/_overRest.js +0 -19
  392. package/dist/node_modules/lodash/_overRest.js.map +0 -1
  393. package/dist/node_modules/lodash/_root.js +0 -11
  394. package/dist/node_modules/lodash/_root.js.map +0 -1
  395. package/dist/node_modules/lodash/_setCacheAdd.js +0 -12
  396. package/dist/node_modules/lodash/_setCacheAdd.js.map +0 -1
  397. package/dist/node_modules/lodash/_setCacheHas.js +0 -12
  398. package/dist/node_modules/lodash/_setCacheHas.js.map +0 -1
  399. package/dist/node_modules/lodash/_setToArray.js +0 -15
  400. package/dist/node_modules/lodash/_setToArray.js.map +0 -1
  401. package/dist/node_modules/lodash/_setToString.js +0 -12
  402. package/dist/node_modules/lodash/_setToString.js.map +0 -1
  403. package/dist/node_modules/lodash/_shortOut.js +0 -20
  404. package/dist/node_modules/lodash/_shortOut.js.map +0 -1
  405. package/dist/node_modules/lodash/_stackClear.js +0 -14
  406. package/dist/node_modules/lodash/_stackClear.js.map +0 -1
  407. package/dist/node_modules/lodash/_stackDelete.js +0 -13
  408. package/dist/node_modules/lodash/_stackDelete.js.map +0 -1
  409. package/dist/node_modules/lodash/_stackGet.js +0 -12
  410. package/dist/node_modules/lodash/_stackGet.js.map +0 -1
  411. package/dist/node_modules/lodash/_stackHas.js +0 -12
  412. package/dist/node_modules/lodash/_stackHas.js.map +0 -1
  413. package/dist/node_modules/lodash/_stackSet.js +0 -22
  414. package/dist/node_modules/lodash/_stackSet.js.map +0 -1
  415. package/dist/node_modules/lodash/_strictIndexOf.js +0 -13
  416. package/dist/node_modules/lodash/_strictIndexOf.js.map +0 -1
  417. package/dist/node_modules/lodash/_stringToArray.js +0 -16
  418. package/dist/node_modules/lodash/_stringToArray.js.map +0 -1
  419. package/dist/node_modules/lodash/_stringToPath.js +0 -16
  420. package/dist/node_modules/lodash/_stringToPath.js.map +0 -1
  421. package/dist/node_modules/lodash/_toKey.js +0 -16
  422. package/dist/node_modules/lodash/_toKey.js.map +0 -1
  423. package/dist/node_modules/lodash/_toSource.js +0 -21
  424. package/dist/node_modules/lodash/_toSource.js.map +0 -1
  425. package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -14
  426. package/dist/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
  427. package/dist/node_modules/lodash/_unicodeToArray.js +0 -23
  428. package/dist/node_modules/lodash/_unicodeToArray.js.map +0 -1
  429. package/dist/node_modules/lodash/constant.js +0 -14
  430. package/dist/node_modules/lodash/constant.js.map +0 -1
  431. package/dist/node_modules/lodash/debounce.js +0 -56
  432. package/dist/node_modules/lodash/debounce.js.map +0 -1
  433. package/dist/node_modules/lodash/eq.js +0 -12
  434. package/dist/node_modules/lodash/eq.js.map +0 -1
  435. package/dist/node_modules/lodash/every.js +0 -19
  436. package/dist/node_modules/lodash/every.js.map +0 -1
  437. package/dist/node_modules/lodash/find.js +0 -11
  438. package/dist/node_modules/lodash/find.js.map +0 -1
  439. package/dist/node_modules/lodash/findIndex.js +0 -19
  440. package/dist/node_modules/lodash/findIndex.js.map +0 -1
  441. package/dist/node_modules/lodash/flatMap.js +0 -15
  442. package/dist/node_modules/lodash/flatMap.js.map +0 -1
  443. package/dist/node_modules/lodash/get.js +0 -15
  444. package/dist/node_modules/lodash/get.js.map +0 -1
  445. package/dist/node_modules/lodash/hasIn.js +0 -15
  446. package/dist/node_modules/lodash/hasIn.js.map +0 -1
  447. package/dist/node_modules/lodash/identity.js +0 -12
  448. package/dist/node_modules/lodash/identity.js.map +0 -1
  449. package/dist/node_modules/lodash/isArguments.js +0 -16
  450. package/dist/node_modules/lodash/isArguments.js.map +0 -1
  451. package/dist/node_modules/lodash/isArray.js +0 -9
  452. package/dist/node_modules/lodash/isArray.js.map +0 -1
  453. package/dist/node_modules/lodash/isArrayLike.js +0 -15
  454. package/dist/node_modules/lodash/isArrayLike.js.map +0 -1
  455. package/dist/node_modules/lodash/isBoolean.js +0 -15
  456. package/dist/node_modules/lodash/isBoolean.js.map +0 -1
  457. package/dist/node_modules/lodash/isBuffer.js +0 -12
  458. package/dist/node_modules/lodash/isBuffer.js.map +0 -1
  459. package/dist/node_modules/lodash/isEqual.js +0 -14
  460. package/dist/node_modules/lodash/isEqual.js.map +0 -1
  461. package/dist/node_modules/lodash/isFunction.js +0 -17
  462. package/dist/node_modules/lodash/isFunction.js.map +0 -1
  463. package/dist/node_modules/lodash/isLength.js +0 -12
  464. package/dist/node_modules/lodash/isLength.js.map +0 -1
  465. package/dist/node_modules/lodash/isNaN.js +0 -14
  466. package/dist/node_modules/lodash/isNaN.js.map +0 -1
  467. package/dist/node_modules/lodash/isNil.js +0 -12
  468. package/dist/node_modules/lodash/isNil.js.map +0 -1
  469. package/dist/node_modules/lodash/isNumber.js +0 -15
  470. package/dist/node_modules/lodash/isNumber.js.map +0 -1
  471. package/dist/node_modules/lodash/isObject.js +0 -13
  472. package/dist/node_modules/lodash/isObject.js.map +0 -1
  473. package/dist/node_modules/lodash/isObjectLike.js +0 -12
  474. package/dist/node_modules/lodash/isObjectLike.js.map +0 -1
  475. package/dist/node_modules/lodash/isPlainObject.js +0 -20
  476. package/dist/node_modules/lodash/isPlainObject.js.map +0 -1
  477. package/dist/node_modules/lodash/isString.js +0 -16
  478. package/dist/node_modules/lodash/isString.js.map +0 -1
  479. package/dist/node_modules/lodash/isSymbol.js +0 -15
  480. package/dist/node_modules/lodash/isSymbol.js.map +0 -1
  481. package/dist/node_modules/lodash/isTypedArray.js +0 -13
  482. package/dist/node_modules/lodash/isTypedArray.js.map +0 -1
  483. package/dist/node_modules/lodash/keys.js +0 -16
  484. package/dist/node_modules/lodash/keys.js.map +0 -1
  485. package/dist/node_modules/lodash/last.js +0 -13
  486. package/dist/node_modules/lodash/last.js.map +0 -1
  487. package/dist/node_modules/lodash/map.js +0 -17
  488. package/dist/node_modules/lodash/map.js.map +0 -1
  489. package/dist/node_modules/lodash/mapValues.js +0 -19
  490. package/dist/node_modules/lodash/mapValues.js.map +0 -1
  491. package/dist/node_modules/lodash/max.js +0 -16
  492. package/dist/node_modules/lodash/max.js.map +0 -1
  493. package/dist/node_modules/lodash/memoize.js +0 -21
  494. package/dist/node_modules/lodash/memoize.js.map +0 -1
  495. package/dist/node_modules/lodash/min.js +0 -16
  496. package/dist/node_modules/lodash/min.js.map +0 -1
  497. package/dist/node_modules/lodash/noop.js +0 -10
  498. package/dist/node_modules/lodash/noop.js.map +0 -1
  499. package/dist/node_modules/lodash/now.js +0 -13
  500. package/dist/node_modules/lodash/now.js.map +0 -1
  501. package/dist/node_modules/lodash/property.js +0 -17
  502. package/dist/node_modules/lodash/property.js.map +0 -1
  503. package/dist/node_modules/lodash/range.js +0 -10
  504. package/dist/node_modules/lodash/range.js.map +0 -1
  505. package/dist/node_modules/lodash/some.js +0 -19
  506. package/dist/node_modules/lodash/some.js.map +0 -1
  507. package/dist/node_modules/lodash/sortBy.js +0 -18
  508. package/dist/node_modules/lodash/sortBy.js.map +0 -1
  509. package/dist/node_modules/lodash/stubArray.js +0 -12
  510. package/dist/node_modules/lodash/stubArray.js.map +0 -1
  511. package/dist/node_modules/lodash/stubFalse.js +0 -12
  512. package/dist/node_modules/lodash/stubFalse.js.map +0 -1
  513. package/dist/node_modules/lodash/throttle.js +0 -21
  514. package/dist/node_modules/lodash/throttle.js.map +0 -1
  515. package/dist/node_modules/lodash/toFinite.js +0 -14
  516. package/dist/node_modules/lodash/toFinite.js.map +0 -1
  517. package/dist/node_modules/lodash/toInteger.js +0 -15
  518. package/dist/node_modules/lodash/toInteger.js.map +0 -1
  519. package/dist/node_modules/lodash/toNumber.js +0 -25
  520. package/dist/node_modules/lodash/toNumber.js.map +0 -1
  521. package/dist/node_modules/lodash/toString.js +0 -14
  522. package/dist/node_modules/lodash/toString.js.map +0 -1
  523. package/dist/node_modules/lodash/uniqBy.js +0 -15
  524. package/dist/node_modules/lodash/uniqBy.js.map +0 -1
  525. package/dist/node_modules/lodash/upperFirst.js +0 -10
  526. package/dist/node_modules/lodash/upperFirst.js.map +0 -1
  527. package/dist/node_modules/object-assign/index.js +0 -40
  528. package/dist/node_modules/object-assign/index.js.map +0 -1
  529. package/dist/node_modules/prop-types/checkPropTypes.js +0 -45
  530. package/dist/node_modules/prop-types/checkPropTypes.js.map +0 -1
  531. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -48
  532. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
  533. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -272
  534. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
  535. package/dist/node_modules/prop-types/index.js +0 -15
  536. package/dist/node_modules/prop-types/index.js.map +0 -1
  537. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -9
  538. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
  539. package/dist/node_modules/prop-types/lib/has.js +0 -9
  540. package/dist/node_modules/prop-types/lib/has.js.map +0 -1
  541. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -83
  542. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  543. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -63
  544. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  545. package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -11
  546. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
  547. package/dist/node_modules/react-is/cjs/react-is.development.js +0 -86
  548. package/dist/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  549. package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -64
  550. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  551. package/dist/node_modules/react-is/index.js +0 -11
  552. package/dist/node_modules/react-is/index.js.map +0 -1
  553. package/dist/node_modules/react-smooth/es6/Animate.js +0 -366
  554. package/dist/node_modules/react-smooth/es6/Animate.js.map +0 -1
  555. package/dist/node_modules/react-smooth/es6/AnimateManager.js +0 -70
  556. package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +0 -1
  557. package/dist/node_modules/react-smooth/es6/configUpdate.js +0 -172
  558. package/dist/node_modules/react-smooth/es6/configUpdate.js.map +0 -1
  559. package/dist/node_modules/react-smooth/es6/easing.js +0 -151
  560. package/dist/node_modules/react-smooth/es6/easing.js.map +0 -1
  561. package/dist/node_modules/react-smooth/es6/index.js +0 -8
  562. package/dist/node_modules/react-smooth/es6/index.js.map +0 -1
  563. package/dist/node_modules/react-smooth/es6/setRafTimeout.js +0 -13
  564. package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +0 -1
  565. package/dist/node_modules/react-smooth/es6/util.js +0 -93
  566. package/dist/node_modules/react-smooth/es6/util.js.map +0 -1
  567. package/dist/node_modules/recharts/es6/cartesian/Area.js +0 -434
  568. package/dist/node_modules/recharts/es6/cartesian/Area.js.map +0 -1
  569. package/dist/node_modules/recharts/es6/cartesian/Bar.js +0 -386
  570. package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +0 -1
  571. package/dist/node_modules/recharts/es6/cartesian/Brush.js +0 -498
  572. package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +0 -1
  573. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +0 -331
  574. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +0 -1
  575. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +0 -304
  576. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js.map +0 -1
  577. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +0 -242
  578. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +0 -1
  579. package/dist/node_modules/recharts/es6/cartesian/Line.js +0 -472
  580. package/dist/node_modules/recharts/es6/cartesian/Line.js.map +0 -1
  581. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +0 -172
  582. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +0 -1
  583. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +0 -177
  584. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +0 -1
  585. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +0 -253
  586. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +0 -1
  587. package/dist/node_modules/recharts/es6/cartesian/Scatter.js +0 -367
  588. package/dist/node_modules/recharts/es6/cartesian/Scatter.js.map +0 -1
  589. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +0 -143
  590. package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +0 -1
  591. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +0 -142
  592. package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +0 -1
  593. package/dist/node_modules/recharts/es6/cartesian/ZAxis.js +0 -102
  594. package/dist/node_modules/recharts/es6/cartesian/ZAxis.js.map +0 -1
  595. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +0 -17
  596. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +0 -1
  597. package/dist/node_modules/recharts/es6/cartesian/getTicks.js +0 -120
  598. package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +0 -1
  599. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +0 -98
  600. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +0 -1
  601. package/dist/node_modules/recharts/es6/chart/BarChart.js +0 -23
  602. package/dist/node_modules/recharts/es6/chart/BarChart.js.map +0 -1
  603. package/dist/node_modules/recharts/es6/chart/ComposedChart.js +0 -37
  604. package/dist/node_modules/recharts/es6/chart/ComposedChart.js.map +0 -1
  605. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +0 -1246
  606. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +0 -1
  607. package/dist/node_modules/recharts/es6/component/Cell.js +0 -8
  608. package/dist/node_modules/recharts/es6/component/Cell.js.map +0 -1
  609. package/dist/node_modules/recharts/es6/component/Cursor.js +0 -92
  610. package/dist/node_modules/recharts/es6/component/Cursor.js.map +0 -1
  611. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +0 -236
  612. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +0 -1
  613. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +0 -170
  614. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +0 -1
  615. package/dist/node_modules/recharts/es6/component/Label.js +0 -352
  616. package/dist/node_modules/recharts/es6/component/Label.js.map +0 -1
  617. package/dist/node_modules/recharts/es6/component/LabelList.js +0 -165
  618. package/dist/node_modules/recharts/es6/component/LabelList.js.map +0 -1
  619. package/dist/node_modules/recharts/es6/component/Legend.js +0 -237
  620. package/dist/node_modules/recharts/es6/component/Legend.js.map +0 -1
  621. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +0 -186
  622. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +0 -1
  623. package/dist/node_modules/recharts/es6/component/Text.js +0 -222
  624. package/dist/node_modules/recharts/es6/component/Text.js.map +0 -1
  625. package/dist/node_modules/recharts/es6/component/Tooltip.js +0 -181
  626. package/dist/node_modules/recharts/es6/component/Tooltip.js.map +0 -1
  627. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +0 -197
  628. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +0 -1
  629. package/dist/node_modules/recharts/es6/container/Layer.js +0 -39
  630. package/dist/node_modules/recharts/es6/container/Layer.js.map +0 -1
  631. package/dist/node_modules/recharts/es6/container/Surface.js +0 -59
  632. package/dist/node_modules/recharts/es6/container/Surface.js.map +0 -1
  633. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +0 -57
  634. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +0 -1
  635. package/dist/node_modules/recharts/es6/shape/Cross.js +0 -111
  636. package/dist/node_modules/recharts/es6/shape/Cross.js.map +0 -1
  637. package/dist/node_modules/recharts/es6/shape/Curve.js +0 -125
  638. package/dist/node_modules/recharts/es6/shape/Curve.js.map +0 -1
  639. package/dist/node_modules/recharts/es6/shape/Dot.js +0 -26
  640. package/dist/node_modules/recharts/es6/shape/Dot.js.map +0 -1
  641. package/dist/node_modules/recharts/es6/shape/Rectangle.js +0 -204
  642. package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +0 -1
  643. package/dist/node_modules/recharts/es6/shape/Sector.js +0 -191
  644. package/dist/node_modules/recharts/es6/shape/Sector.js.map +0 -1
  645. package/dist/node_modules/recharts/es6/shape/Symbols.js +0 -135
  646. package/dist/node_modules/recharts/es6/shape/Symbols.js.map +0 -1
  647. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +0 -174
  648. package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +0 -1
  649. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +0 -180
  650. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +0 -1
  651. package/dist/node_modules/recharts/es6/util/BarUtils.js +0 -111
  652. package/dist/node_modules/recharts/es6/util/BarUtils.js.map +0 -1
  653. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +0 -233
  654. package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +0 -1
  655. package/dist/node_modules/recharts/es6/util/ChartUtils.js +0 -557
  656. package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +0 -1
  657. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +0 -69
  658. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +0 -1
  659. package/dist/node_modules/recharts/es6/util/DOMUtils.js +0 -107
  660. package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +0 -1
  661. package/dist/node_modules/recharts/es6/util/DataUtils.js +0 -66
  662. package/dist/node_modules/recharts/es6/util/DataUtils.js.map +0 -1
  663. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +0 -57
  664. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +0 -1
  665. package/dist/node_modules/recharts/es6/util/Events.js +0 -6
  666. package/dist/node_modules/recharts/es6/util/Events.js.map +0 -1
  667. package/dist/node_modules/recharts/es6/util/Global.js +0 -20
  668. package/dist/node_modules/recharts/es6/util/Global.js.map +0 -1
  669. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +0 -8
  670. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +0 -1
  671. package/dist/node_modules/recharts/es6/util/LogUtils.js +0 -16
  672. package/dist/node_modules/recharts/es6/util/LogUtils.js.map +0 -1
  673. package/dist/node_modules/recharts/es6/util/PolarUtils.js +0 -115
  674. package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +0 -1
  675. package/dist/node_modules/recharts/es6/util/ReactUtils.js +0 -136
  676. package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +0 -1
  677. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +0 -180
  678. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +0 -1
  679. package/dist/node_modules/recharts/es6/util/ScatterUtils.js +0 -47
  680. package/dist/node_modules/recharts/es6/util/ScatterUtils.js.map +0 -1
  681. package/dist/node_modules/recharts/es6/util/ShallowEqual.js +0 -9
  682. package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +0 -1
  683. package/dist/node_modules/recharts/es6/util/TickUtils.js +0 -31
  684. package/dist/node_modules/recharts/es6/util/TickUtils.js.map +0 -1
  685. package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -24
  686. package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +0 -1
  687. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +0 -24
  688. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +0 -1
  689. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +0 -15
  690. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +0 -1
  691. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +0 -16
  692. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +0 -1
  693. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +0 -11
  694. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +0 -1
  695. package/dist/node_modules/recharts/es6/util/getLegendProps.js +0 -87
  696. package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +0 -1
  697. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +0 -12
  698. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +0 -1
  699. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +0 -11
  700. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +0 -1
  701. package/dist/node_modules/recharts/es6/util/tooltip/translate.js +0 -86
  702. package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +0 -1
  703. package/dist/node_modules/recharts/es6/util/types.js +0 -42
  704. package/dist/node_modules/recharts/es6/util/types.js.map +0 -1
  705. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +0 -131
  706. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +0 -1
  707. package/dist/node_modules/recharts-scale/es6/index.js +0 -1
  708. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +0 -31
  709. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +0 -1
  710. package/dist/node_modules/recharts-scale/es6/util/utils.js +0 -78
  711. package/dist/node_modules/recharts-scale/es6/util/utils.js.map +0 -1
  712. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1778
  713. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  714. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +0 -12
  715. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +0 -1
  716. package/dist/node_modules/victory-vendor/es/d3-scale.js +0 -36
  717. package/dist/node_modules/victory-vendor/es/d3-scale.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useEcoAiOperations.js","names":["AI_CALL","useEcoAiReportReadiness","useEcoImpactHub","useQuery","reportId","ecoQuery","apiGatewayUrl","useEcoAiDraftReportLineItems","qc","useQueryClient","useMutation","data","useEcoAiLoopSettings","useEcoUpdateAiLoopSettings","useEcoAiRunEnvironmentalSweep","input"],"sources":["../../../src/ecoimpacthub/hooks/useEcoAiOperations.ts"],"sourcesContent":["/**\n * AI ESG report assembly & autonomous environmental loop hooks\n * (BOFF-3701, BOFF-3719, BOFF-3730).\n * @module ecoimpacthub/hooks\n */\n\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\nimport { useEcoImpactHub } from '../context';\nimport { ecoQuery } from './ecoTransport';\nimport type {\n EcoAiEnvironmentalSweepResult,\n EcoAiLoopSettings,\n EcoAiReportDraftResult,\n EcoAiReportReadiness,\n} from '../types';\n\nconst AI_CALL = { suppressGlobalErrorEvent: true } as const;\n\nexport const useEcoAiReportReadiness = (reportId: string | undefined) => {\n const { apiGatewayUrl } = useEcoImpactHub();\n return useQuery({\n queryKey: ['ecoimpacthub', 'ai', 'report-readiness', reportId ?? ''],\n enabled: Boolean(reportId),\n queryFn: async () => {\n const result = await ecoQuery<{ ecoAiReportReadiness: EcoAiReportReadiness }>(\n `query EcoAiReportReadiness($reportId: ID!) {\n ecoAiReportReadiness(reportId: $reportId) {\n reportId framework totalDisclosures coveredCount missingCount coveragePct\n readyToPublish draftCarbonWarnings\n disclosures {\n disclosureCode label category sourceKind covered lineItemId\n citesDraftCarbonEntry sourceRecordCount gapReason\n }\n }\n }`,\n { reportId },\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoAiReportReadiness;\n },\n });\n};\n\nexport const useEcoAiDraftReportLineItems = () => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const qc = useQueryClient();\n return useMutation({\n mutationKey: ['ecoimpacthub', 'ai', 'draft-report-line-items'],\n mutationFn: async (reportId: string) => {\n const result = await ecoQuery<{ ecoAiDraftReportLineItems: EcoAiReportDraftResult }>(\n `mutation EcoAiDraftReportLineItems($input: EcoAiDraftReportLineItemsInput!) {\n ecoAiDraftReportLineItems(input: $input) {\n reportId framework agentRunId engine draftedCount draftCarbonWarnings\n skippedDisclosures { disclosureCode label reason }\n lineItems {\n id workspaceId reportId carbonEntryId sourceMeasurementId sourceMetricId\n disclosureCode label value unit category aiDrafted agentRunId aiRationale\n createdAt updatedAt\n }\n }\n }`,\n { input: { reportId } },\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoAiDraftReportLineItems;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'reports'] });\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'report', data.reportId] });\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'ai', 'report-readiness', data.reportId] });\n },\n });\n};\n\nexport const useEcoAiLoopSettings = () => {\n const { apiGatewayUrl } = useEcoImpactHub();\n return useQuery({\n queryKey: ['ecoimpacthub', 'ai', 'loop-settings'],\n queryFn: async () => {\n const result = await ecoQuery<{ ecoAiLoopSettings: EcoAiLoopSettings }>(\n `query EcoAiLoopSettings {\n ecoAiLoopSettings {\n id workspaceId enabled cadenceCron maxCreditsPerRun\n dormantDaysThreshold lastRunAt lastRunStatus lastCorrelationId\n }\n }`,\n {},\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoAiLoopSettings;\n },\n });\n};\n\nexport const useEcoUpdateAiLoopSettings = () => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const qc = useQueryClient();\n return useMutation({\n mutationKey: ['ecoimpacthub', 'ai', 'update-loop-settings'],\n mutationFn: async (input: {\n enabled?: boolean;\n cadenceCron?: string;\n maxCreditsPerRun?: number;\n dormantDaysThreshold?: number;\n }) => {\n const result = await ecoQuery<{ ecoUpdateAiLoopSettings: EcoAiLoopSettings }>(\n `mutation EcoUpdateAiLoopSettings($input: EcoUpdateAiLoopSettingsInput!) {\n ecoUpdateAiLoopSettings(input: $input) {\n id workspaceId enabled cadenceCron maxCreditsPerRun\n dormantDaysThreshold lastRunAt lastRunStatus lastCorrelationId\n }\n }`,\n { input },\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoUpdateAiLoopSettings;\n },\n onSuccess: () => {\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'ai', 'loop-settings'] });\n },\n });\n};\n\nexport const useEcoAiRunEnvironmentalSweep = () => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const qc = useQueryClient();\n return useMutation({\n mutationKey: ['ecoimpacthub', 'ai', 'run-environmental-sweep'],\n mutationFn: async (input?: {\n trigger?: string;\n correlationId?: string;\n forceRun?: boolean;\n }) => {\n const result = await ecoQuery<{ ecoAiRunEnvironmentalSweep: EcoAiEnvironmentalSweepResult }>(\n `mutation EcoAiRunEnvironmentalSweep($input: EcoAiRunEnvironmentalSweepInput) {\n ecoAiRunEnvironmentalSweep(input: $input) {\n status workspaceId correlationId trigger agentRunId engine\n creditsUsed maxCreditsPerRun anomalyCount sensorGapCount\n reportGapCount targetDriftCount staleDraftCount overdueHabitatCount\n notificationSent haltedReason ranAt\n findings {\n category severity entityId title detail recommendedAction citationPath\n }\n }\n }`,\n { input: input ?? { trigger: 'interactive', forceRun: true } },\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoAiRunEnvironmentalSweep;\n },\n onSuccess: () => {\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'ai', 'loop-settings'] });\n },\n });\n};\n"],"mappings":";;;;;AAgBA,IAAMA,IAAU,EAAE,0BAA0B,GAAK,GAEpCC,KAA2B,MAAiC;CACvE,IAAM,EAAE,qBAAkBC,EAAgB;CAC1C,OAAOC,EAAS;EACd,UAAU;GAAC;GAAgB;GAAM;GAAoBC,KAAY;EAAE;EACnE,SAAS,EAAQA;EACjB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a;GAAC;GAAgB;GAAM;EAAyB;EAC7D,YAAY,OAAO,OAqBV,MAhBcL,EACnB,8iBAWA,EAAE,OAAOU,KAAS;GAAE,SAAS;GAAe,UAAU;EAAK,EAAE,GAC7DT,GACAN,CACF,EAAA,CACc;EAEhB,iBAAiB;GACf,EAAG,kBAAkB,EAAE,UAAU;IAAC;IAAgB;IAAM;GAAe,EAAE,CAAC;EAC5E;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"useEcoAiOperations.js","names":["AI_CALL","useEcoAiReportReadiness","useEcoImpactHub","useQuery","reportId","ecoQuery","apiGatewayUrl","useEcoAiDraftReportLineItems","qc","useQueryClient","useMutation","data","useEcoAiLoopSettings","useEcoUpdateAiLoopSettings","useEcoAiRunEnvironmentalSweep","input"],"sources":["../../../src/ecoimpacthub/hooks/useEcoAiOperations.ts"],"sourcesContent":["/**\n * AI ESG report assembly & autonomous environmental loop hooks\n * (BOFF-3701, BOFF-3719, BOFF-3730).\n * @module ecoimpacthub/hooks\n */\n\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\nimport { useEcoImpactHub } from '../context';\nimport { ecoQuery } from './ecoTransport';\nimport type {\n EcoAiEnvironmentalSweepResult,\n EcoAiLoopSettings,\n EcoAiReportDraftResult,\n EcoAiReportReadiness,\n} from '../types';\n\nconst AI_CALL = { suppressGlobalErrorEvent: true } as const;\n\nexport const useEcoAiReportReadiness = (reportId: string | undefined) => {\n const { apiGatewayUrl } = useEcoImpactHub();\n return useQuery({\n queryKey: ['ecoimpacthub', 'ai', 'report-readiness', reportId ?? ''],\n enabled: Boolean(reportId),\n queryFn: async () => {\n const result = await ecoQuery<{ ecoAiReportReadiness: EcoAiReportReadiness }>(\n `query EcoAiReportReadiness($reportId: ID!) {\n ecoAiReportReadiness(reportId: $reportId) {\n reportId framework totalDisclosures coveredCount missingCount coveragePct\n readyToPublish draftCarbonWarnings\n disclosures {\n disclosureCode label category sourceKind covered lineItemId\n citesDraftCarbonEntry sourceRecordCount gapReason\n }\n }\n }`,\n { reportId },\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoAiReportReadiness;\n },\n });\n};\n\nexport const useEcoAiDraftReportLineItems = () => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const qc = useQueryClient();\n return useMutation({\n mutationKey: ['ecoimpacthub', 'ai', 'draft-report-line-items'],\n mutationFn: async (reportId: string) => {\n const result = await ecoQuery<{ ecoAiDraftReportLineItems: EcoAiReportDraftResult }>(\n `mutation EcoAiDraftReportLineItems($input: EcoAiDraftReportLineItemsInput!) {\n ecoAiDraftReportLineItems(input: $input) {\n reportId framework agentRunId engine draftedCount draftCarbonWarnings\n skippedDisclosures { disclosureCode label reason }\n lineItems {\n id workspaceId reportId carbonEntryId sourceMeasurementId sourceMetricId\n disclosureCode label value unit category aiDrafted agentRunId aiRationale\n createdAt updatedAt\n }\n }\n }`,\n { input: { reportId } },\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoAiDraftReportLineItems;\n },\n onSuccess: (data) => {\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'reports'] });\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'report', data.reportId] });\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'ai', 'report-readiness', data.reportId] });\n },\n });\n};\n\nexport const useEcoAiLoopSettings = () => {\n const { apiGatewayUrl } = useEcoImpactHub();\n return useQuery({\n queryKey: ['ecoimpacthub', 'ai', 'loop-settings'],\n queryFn: async () => {\n const result = await ecoQuery<{ ecoAiLoopSettings: EcoAiLoopSettings }>(\n `query EcoAiLoopSettings {\n ecoAiLoopSettings {\n id workspaceId enabled cadenceCron maxCreditsPerRun\n dormantDaysThreshold lastRunAt lastRunStatus lastCorrelationId\n }\n }`,\n {},\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoAiLoopSettings;\n },\n });\n};\n\nexport const useEcoUpdateAiLoopSettings = () => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const qc = useQueryClient();\n return useMutation({\n mutationKey: ['ecoimpacthub', 'ai', 'update-loop-settings'],\n mutationFn: async (input: {\n enabled?: boolean;\n cadenceCron?: string;\n maxCreditsPerRun?: number;\n dormantDaysThreshold?: number;\n }) => {\n const result = await ecoQuery<{ ecoUpdateAiLoopSettings: EcoAiLoopSettings }>(\n `mutation EcoUpdateAiLoopSettings($input: EcoUpdateAiLoopSettingsInput!) {\n ecoUpdateAiLoopSettings(input: $input) {\n id workspaceId enabled cadenceCron maxCreditsPerRun\n dormantDaysThreshold lastRunAt lastRunStatus lastCorrelationId\n }\n }`,\n { input },\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoUpdateAiLoopSettings;\n },\n onSuccess: () => {\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'ai', 'loop-settings'] });\n },\n });\n};\n\nexport const useEcoAiRunEnvironmentalSweep = () => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const qc = useQueryClient();\n return useMutation({\n mutationKey: ['ecoimpacthub', 'ai', 'run-environmental-sweep'],\n mutationFn: async (input?: {\n trigger?: string;\n correlationId?: string;\n forceRun?: boolean;\n }) => {\n const result = await ecoQuery<{ ecoAiRunEnvironmentalSweep: EcoAiEnvironmentalSweepResult }>(\n `mutation EcoAiRunEnvironmentalSweep($input: EcoAiRunEnvironmentalSweepInput) {\n ecoAiRunEnvironmentalSweep(input: $input) {\n status workspaceId correlationId trigger agentRunId engine\n creditsUsed maxCreditsPerRun anomalyCount sensorGapCount\n reportGapCount targetDriftCount staleDraftCount overdueHabitatCount\n notificationSent haltedReason ranAt\n findings {\n category severity entityId title detail recommendedAction citationPath\n }\n }\n }`,\n { input: input ?? { trigger: 'interactive', forceRun: true } },\n apiGatewayUrl,\n AI_CALL\n );\n return result.ecoAiRunEnvironmentalSweep;\n },\n onSuccess: () => {\n qc.invalidateQueries({ queryKey: ['ecoimpacthub', 'ai', 'loop-settings'] });\n },\n });\n};\n"],"mappings":";;;;AAgBA,IAAMA,IAAU,EAAE,0BAA0B,GAAK,GAEp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;IAAM;GAAe,EAAE,CAAC;EAC5E;CACF,CAAC;AACH,GAEac,UAAsC;CACjD,IAAM,EAAE,qBAAkBZ,EAAgB,GACpCM,IAAKC,EAAe;CAC1B,OAAOC,EAAY;EACjB,aAAa;GAAC;GAAgB;GAAM;EAAyB;EAC7D,YAAY,OAAO,OAqBV,MAhBcL,EACnB,8iBAWA,EAAE,OAAOU,KAAS;GAAE,SAAS;GAAe,UAAU;EAAK,EAAE,GAC7DT,GACAN,CACF,EAAA,CACc;EAEhB,iBAAiB;GACf,EAAG,kBAAkB,EAAE,UAAU;IAAC;IAAgB;IAAM;GAAe,EAAE,CAAC;EAC5E;CACF,CAAC;AACH"}
@@ -1,5 +1,4 @@
1
1
  import { useEcoImpactHub as e } from "../context/EcoImpactHubContext.js";
2
- import "../context/index.js";
3
2
  import { wspaceFetch as t } from "./useEcoFiles.js";
4
3
  import { useMutation as n, useQuery as r, useQueryClient as i } from "@tanstack/react-query";
5
4
  // src/ecoimpacthub/hooks/useEcoComments.ts
@@ -1 +1 @@
1
- {"version":3,"file":"useEcoComments.js","names":["commentsKey","entityType","entityId","useEcoComments","useEcoImpactHub","useQuery","data","wspaceFetch","apiGatewayUrl","roots","c","a","b","useEcoCreateComment","qc","useQueryClient","useMutation"],"sources":["../../../src/ecoimpacthub/hooks/useEcoComments.ts"],"sourcesContent":["/**\n * EcoImpactHub — wspace-conversations-svc EntityComment REUSE hooks (Integration B).\n * @module ecoimpacthub/hooks/useEcoComments\n *\n * Adds a discussion surface to eco entities WITHOUT any eco-svc change by\n * reusing the generic EntityComment API composed into the WORKSPACE supergraph.\n * Comments attach to any entity by `(entityType, entityId)`:\n * - `getEntityComments(input): EntityCommentConnection!`\n * - `createEntityComment(input): EntityComment!`\n *\n * Transport reuses `wspaceFetch` from `useEcoFiles` (workspace gateway +\n * workspace token). Lives in a separate file; `useEcoImpactHubApi.ts` is\n * untouched.\n */\n\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\n\nimport { useEcoImpactHub } from '../context';\nimport { wspaceFetch } from './useEcoFiles';\n\nexport interface EcoComment {\n id: string;\n authorId: string;\n authorType: string;\n content: {\n text: string | null;\n markdown: string | null;\n };\n createdAt: string;\n edited: boolean;\n parentCommentId: string | null;\n replyCount: number;\n}\n\nconst commentsKey = (entityType: string, entityId: string) =>\n ['ecoimpacthub', 'comments', entityType, entityId] as const;\n\n/** Top-level (root) comments for an eco entity, oldest first. */\nexport const useEcoComments = (entityType: string, entityId: string | undefined) => {\n const { apiGatewayUrl } = useEcoImpactHub();\n return useQuery({\n queryKey: commentsKey(entityType, entityId ?? ''),\n enabled: Boolean(entityId),\n queryFn: async () => {\n const data = await wspaceFetch<{\n getEntityComments: { items: EcoComment[]; total: number };\n }>(\n `query EcoGetEntityComments($input: GetCommentsInput!) {\n getEntityComments(input: $input) {\n total\n items {\n id\n authorId\n authorType\n content { text markdown }\n createdAt\n edited\n parentCommentId\n replyCount\n }\n }\n }`,\n {\n input: {\n entityType,\n entityId,\n take: 100,\n parentCommentId: null,\n },\n },\n apiGatewayUrl\n );\n // Render root comments oldest-first (server order is not guaranteed).\n const roots = data.getEntityComments.items.filter((c) => !c.parentCommentId);\n roots.sort((a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());\n return { items: roots, total: data.getEntityComments.total };\n },\n });\n};\n\nexport const useEcoCreateComment = (entityType: string, entityId: string) => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (text: string) => {\n const data = await wspaceFetch<{ createEntityComment: { id: string } }>(\n `mutation EcoCreateEntityComment($input: CreateEntityCommentInput!) {\n createEntityComment(input: $input) { id }\n }`,\n {\n input: {\n entityType,\n entityId,\n content: { text },\n },\n },\n apiGatewayUrl\n );\n return data.createEntityComment;\n },\n onSuccess: () => {\n qc.invalidateQueries({ queryKey: commentsKey(entityType, entityId) });\n },\n });\n};\n"],"mappings":";;;;;AAkCA,IAAMA,KAAe,GAAoB,MACvC;CAAC;CAAgB;CAAYC;CAAYC;AAAQ,GAGtCC,KAAkB,GAAoB,MAAiC;CAClF,IAAM,EAAE,qBAAkBC,EAAgB;CAC1C,OAAOC,EAAS;EACd,UAAUL,EAAYC,GAAYC,KAAY,EAAE;EAChD,SAAS,EAAQA;EACjB,SAAS,YAAY;GACnB,IAAMI,IAAO,MAAMC,EAGjB,6YAeA,EACE,OAAO;IACL;IACA;IACA,MAAM;IACN,iBAAiB;GACnB,EACF,GACAC,CACF,GAEMC,IAAQH,EAAK,kBAAkB,MAAM,QAAQ,MAAM,CAACI,EAAE,eAAe;GAE3E,OADAD,EAAM,MAAM,GAAG,MAAM,IAAI,KAAKE,EAAE,SAAS,CAAC,CAAC,QAAQ,IAAI,IAAI,KAAKC,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,GAC/E;IAAE,OAAOH;IAAO,OAAOH,EAAK,kBAAkB;GAAM;EAC7D;CACF,CAAC;AACH,GAEaO,KAAuB,GAAoB,MAAqB;CAC3E,IAAM,EAAE,qBAAkBT,EAAgB,GACpCU,IAAKC,EAAe;CAC1B,OAAOC,EAAY;EACjB,YAAY,OAAO,OAcV,MAbYT,EACjB,wIAGA,EACE,OAAO;GACL;GACA;GACA,SAAS,EAAE,QAAK;EAClB,EACF,GACAC,CACF,EAAA,CACY;EAEd,iBAAiB;GACf,EAAG,kBAAkB,EAAE,UAAUR,EAAYC,GAAYC,CAAQ,EAAE,CAAC;EACtE;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"useEcoComments.js","names":["commentsKey","entityType","entityId","useEcoComments","useEcoImpactHub","useQuery","data","wspaceFetch","apiGatewayUrl","roots","c","a","b","useEcoCreateComment","qc","useQueryClient","useMutation"],"sources":["../../../src/ecoimpacthub/hooks/useEcoComments.ts"],"sourcesContent":["/**\n * EcoImpactHub — wspace-conversations-svc EntityComment REUSE hooks (Integration B).\n * @module ecoimpacthub/hooks/useEcoComments\n *\n * Adds a discussion surface to eco entities WITHOUT any eco-svc change by\n * reusing the generic EntityComment API composed into the WORKSPACE supergraph.\n * Comments attach to any entity by `(entityType, entityId)`:\n * - `getEntityComments(input): EntityCommentConnection!`\n * - `createEntityComment(input): EntityComment!`\n *\n * Transport reuses `wspaceFetch` from `useEcoFiles` (workspace gateway +\n * workspace token). Lives in a separate file; `useEcoImpactHubApi.ts` is\n * untouched.\n */\n\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\n\nimport { useEcoImpactHub } from '../context';\nimport { wspaceFetch } from './useEcoFiles';\n\nexport interface EcoComment {\n id: string;\n authorId: string;\n authorType: string;\n content: {\n text: string | null;\n markdown: string | null;\n };\n createdAt: string;\n edited: boolean;\n parentCommentId: string | null;\n replyCount: number;\n}\n\nconst commentsKey = (entityType: string, entityId: string) =>\n ['ecoimpacthub', 'comments', entityType, entityId] as const;\n\n/** Top-level (root) comments for an eco entity, oldest first. */\nexport const useEcoComments = (entityType: string, entityId: string | undefined) => {\n const { apiGatewayUrl } = useEcoImpactHub();\n return useQuery({\n queryKey: commentsKey(entityType, entityId ?? ''),\n enabled: Boolean(entityId),\n queryFn: async () => {\n const data = await wspaceFetch<{\n getEntityComments: { items: EcoComment[]; total: number };\n }>(\n `query EcoGetEntityComments($input: GetCommentsInput!) {\n getEntityComments(input: $input) {\n total\n items {\n id\n authorId\n authorType\n content { text markdown }\n createdAt\n edited\n parentCommentId\n replyCount\n }\n }\n }`,\n {\n input: {\n entityType,\n entityId,\n take: 100,\n parentCommentId: null,\n },\n },\n apiGatewayUrl\n );\n // Render root comments oldest-first (server order is not guaranteed).\n const roots = data.getEntityComments.items.filter((c) => !c.parentCommentId);\n roots.sort((a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());\n return { items: roots, total: data.getEntityComments.total };\n },\n });\n};\n\nexport const useEcoCreateComment = (entityType: string, entityId: string) => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (text: string) => {\n const data = await wspaceFetch<{ createEntityComment: { id: string } }>(\n `mutation EcoCreateEntityComment($input: CreateEntityCommentInput!) {\n createEntityComment(input: $input) { id }\n }`,\n {\n input: {\n entityType,\n entityId,\n content: { text },\n },\n },\n apiGatewayUrl\n );\n return data.createEntityComment;\n },\n onSuccess: () => {\n qc.invalidateQueries({ queryKey: commentsKey(entityType, entityId) });\n },\n });\n};\n"],"mappings":";;;;AAkCA,IAAMA,KAAe,GAAoB,MACvC;CAAC;CAAgB;CAAYC;CAAYC;AAAQ,GAGtCC,KAAkB,GAAoB,MAAiC;CAClF,IAAM,EAAE,qBAAkBC,EAAgB;CAC1C,OAAOC,EAAS;EACd,UAAUL,EAAYC,GAAYC,KAAY,EAAE;EAChD,SAAS,EAAQA;EACjB,SAAS,YAAY;GACnB,IAAMI,IAAO,MAAMC,EAGjB,6YAeA,EACE,OAAO;IACL;IACA;IACA,MAAM;IACN,iBAAiB;GACnB,EACF,GACAC,CACF,GAEMC,IAAQH,EAAK,kBAAkB,MAAM,QAAQ,MAAM,CAACI,EAAE,eAAe;GAE3E,OADAD,EAAM,MAAM,GAAG,MAAM,IAAI,KAAKE,EAAE,SAAS,CAAC,CAAC,QAAQ,IAAI,IAAI,KAAKC,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,GAC/E;IAAE,OAAOH;IAAO,OAAOH,EAAK,kBAAkB;GAAM;EAC7D;CACF,CAAC;AACH,GAEaO,KAAuB,GAAoB,MAAqB;CAC3E,IAAM,EAAE,qBAAkBT,EAAgB,GACpCU,IAAKC,EAAe;CAC1B,OAAOC,EAAY;EACjB,YAAY,OAAO,OAcV,MAbYT,EACjB,wIAGA,EACE,OAAO;GACL;GACA;GACA,SAAS,EAAE,QAAK;EAClB,EACF,GACAC,CACF,EAAA,CACY;EAEd,iBAAiB;GACf,EAAG,kBAAkB,EAAE,UAAUR,EAAYC,GAAYC,CAAQ,EAAE,CAAC;EACtE;CACF,CAAC;AACH"}
@@ -1,5 +1,4 @@
1
1
  import { useEcoImpactHub as e } from "../context/EcoImpactHubContext.js";
2
- import "../context/index.js";
3
2
  import { useCallback as t, useState as n } from "react";
4
3
  import { useQuery as r } from "@tanstack/react-query";
5
4
  import { graphqlFetch as i } from "@burdenoff/fe-libs/shared/graphql";
@@ -1 +1 @@
1
- {"version":3,"file":"useEcoFiles.js","names":["clearGraphqlReadCaches","g","wspaceFetch","response","graphqlFetch","query","putWithProgress","xhr","url","contentType","event","onProgress","resolve","reject","body","uploadEcoFile","source","dotIndex","fileName","extension","mimeType","initiated","apiGatewayUrl","sessionId","uploadUrl","completed","useEcoFileUpload","useEcoImpactHub","isUploading","setIsUploading","useState","progress","setProgress","error","setError","reset","useCallback","file","err","message","useEcoFile","useQuery","id"],"sources":["../../../src/ecoimpacthub/hooks/useEcoFiles.ts"],"sourcesContent":["/**\n * EcoImpactHub — wspace-files-svc REUSE hooks (Integration A).\n * @module ecoimpacthub/hooks/useEcoFiles\n *\n * Reuses the platform file store (`wspace-files-svc`) WITHOUT any eco-svc\n * change: the eco schema already exposes `EcoObservation.evidenceFileId` /\n * `EcoReport.fileId`; this module lets the UI actually produce a `fileId` via\n * the canonical 3-step upload flow composed into the WORKSPACE supergraph:\n * 1. `initiateUpload(input)` → `{ uploadUrl, session { id } }`\n * 2. HTTP `PUT` the bytes to the returned signed `uploadUrl`\n * 3. `completeUpload(input: { sessionId })` → `{ fileId }`\n * plus `getFile(id)` to resolve an existing evidence/report file's name + URL.\n *\n * Transport mirrors `useEcoImpactHubApi` exactly — `graphqlFetch({ gateway:\n * 'workspace', workspaceToken: true })` — so no ApolloProvider is required.\n * These hooks live in a SEPARATE file by design; `useEcoImpactHubApi.ts` is\n * left untouched.\n */\n\nimport { useCallback, useState } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql';\n\nimport { useEcoImpactHub } from '../context';\n\n// ============================================================================\n// Shared workspace-gateway transport (reused by the comments + tags hooks too)\n// ============================================================================\n\ntype GraphqlReadCacheGlobals = {\n __graphqlFetchResponseCache?: { clear: () => void };\n __graphqlFetchPendingResponses?: { clear: () => void };\n __boffGraphQLResponseCache?: { clear: () => void };\n};\n\n/**\n * fe-libs `graphqlFetch` coalesces `query` responses in a short-lived in-memory\n * cache. After a write we drop those caches so the invalidation refetch that\n * follows reads fresh data (same remedy `useEcoImpactHubApi` applies).\n */\nconst clearGraphqlReadCaches = (): void => {\n const g = globalThis as GraphqlReadCacheGlobals;\n g.__graphqlFetchResponseCache?.clear();\n g.__graphqlFetchPendingResponses?.clear();\n g.__boffGraphQLResponseCache?.clear();\n};\n\n/** Execute a workspace-gateway GraphQL operation with the workspace token. */\nexport const wspaceFetch = async <TData>(\n query: string,\n variables: Record<string, unknown>,\n baseUrl?: string\n): Promise<TData> => {\n const response = await graphqlFetch<TData>({\n gateway: 'workspace',\n baseUrl,\n query,\n variables,\n workspaceToken: true,\n });\n\n if (response.errors?.length) {\n throw new Error(response.errors[0]?.message ?? 'GraphQL request failed');\n }\n if (!response.data) {\n throw new Error('GraphQL response did not include data');\n }\n if (/^\\s*mutation\\b/.test(query)) {\n clearGraphqlReadCaches();\n }\n return response.data;\n};\n\n// ============================================================================\n// File upload (initiate → PUT → complete)\n// ============================================================================\n\nexport interface UploadedEcoFile {\n fileId: string;\n fileName: string;\n}\n\n/** `PUT` the blob to the signed URL, reporting byte-progress via `onProgress`. */\nfunction putWithProgress(\n url: string,\n body: Blob,\n contentType: string,\n onProgress: (percent: number) => void\n): Promise<void> {\n return new Promise<void>((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n xhr.open('PUT', url);\n xhr.setRequestHeader('Content-Type', contentType);\n xhr.upload.onprogress = (event) => {\n if (event.lengthComputable) {\n onProgress(Math.round((event.loaded / event.total) * 100));\n }\n };\n xhr.onload = () => {\n if (xhr.status >= 200 && xhr.status < 300) {\n resolve();\n } else {\n reject(new Error(`File storage rejected the upload (HTTP ${xhr.status}).`));\n }\n };\n xhr.onerror = () => reject(new Error('Network error while uploading the file.'));\n xhr.onabort = () => reject(new Error('The upload was cancelled.'));\n xhr.send(body);\n });\n}\n\nexport interface EcoFileUploadSource {\n body: Blob;\n fileName: string;\n /** Falls back to the blob's own type, then `application/octet-stream`. */\n mimeType?: string;\n}\n\n/**\n * Run the platform 3-step upload (initiate → signed PUT → complete) for a blob\n * and resolve to `{ fileId, fileName }`. Usable outside React, which the\n * offline field queue needs: it uploads queued evidence photos on reconnect.\n */\nexport async function uploadEcoFile(\n source: EcoFileUploadSource,\n apiGatewayUrl?: string,\n onProgress: (percent: number) => void = () => undefined\n): Promise<UploadedEcoFile> {\n const { body, fileName } = source;\n const dotIndex = fileName.lastIndexOf('.');\n const extension = dotIndex > -1 ? fileName.slice(dotIndex + 1) : '';\n const mimeType = source.mimeType || body.type || 'application/octet-stream';\n\n // 1. initiate\n const initiated = await wspaceFetch<{\n initiateUpload: { uploadUrl: string | null; session: { id: string } };\n }>(\n `mutation EcoInitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) {\n uploadUrl\n session { id }\n }\n }`,\n {\n input: {\n fileName,\n extension,\n mimeType,\n fileSize: String(body.size),\n visibility: 'WORKSPACE',\n },\n },\n apiGatewayUrl\n );\n\n const { uploadUrl } = initiated.initiateUpload;\n const sessionId = initiated.initiateUpload.session.id;\n if (!uploadUrl) {\n throw new Error('The file service did not return an upload URL.');\n }\n\n // 2. PUT the bytes\n await putWithProgress(uploadUrl, body, mimeType, onProgress);\n\n // 3. complete\n const completed = await wspaceFetch<{\n completeUpload: { fileId: string; file: { id: string; name: string } | null };\n }>(\n `mutation EcoCompleteUpload($input: CompleteUploadInput!) {\n completeUpload(input: $input) {\n fileId\n file { id name }\n }\n }`,\n { input: { sessionId } },\n apiGatewayUrl\n );\n\n onProgress(100);\n return {\n fileId: completed.completeUpload.fileId,\n fileName: completed.completeUpload.file?.name ?? fileName,\n };\n}\n\nexport interface UseEcoFileUploadResult {\n upload: (file: File) => Promise<UploadedEcoFile>;\n isUploading: boolean;\n /** 0–100 byte-progress of the signed-URL PUT. */\n progress: number;\n error: string | null;\n reset: () => void;\n}\n\n/**\n * Imperative upload hook: `await upload(file)` runs the platform 3-step flow and\n * resolves to `{ fileId, fileName }`. `fileId` is what the eco mutations accept\n * (`ecoRecordObservation.evidenceFileId`, `ecoPublishReport.fileId`).\n */\nexport const useEcoFileUpload = (): UseEcoFileUploadResult => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const [isUploading, setIsUploading] = useState(false);\n const [progress, setProgress] = useState(0);\n const [error, setError] = useState<string | null>(null);\n\n const reset = useCallback(() => {\n setIsUploading(false);\n setProgress(0);\n setError(null);\n }, []);\n\n const upload = useCallback(\n async (file: File): Promise<UploadedEcoFile> => {\n setIsUploading(true);\n setProgress(0);\n setError(null);\n try {\n return await uploadEcoFile(\n { body: file, fileName: file.name, mimeType: file.type },\n apiGatewayUrl,\n setProgress\n );\n } catch (err) {\n const message = err instanceof Error ? err.message : 'The file could not be uploaded.';\n setError(message);\n throw err instanceof Error ? err : new Error(message);\n } finally {\n setIsUploading(false);\n }\n },\n [apiGatewayUrl]\n );\n\n return { upload, isUploading, progress, error, reset };\n};\n\n// ============================================================================\n// Resolve an existing file (name + download URL) for rendering evidence links\n// ============================================================================\n\nexport interface EcoFileMeta {\n id: string;\n name: string;\n downloadUrl: string | null;\n mimeType: string;\n size: string;\n}\n\nexport const useEcoFile = (id: string | null | undefined) => {\n const { apiGatewayUrl } = useEcoImpactHub();\n return useQuery({\n queryKey: ['ecoimpacthub', 'file', id ?? ''],\n enabled: Boolean(id),\n queryFn: async () => {\n const data = await wspaceFetch<{ getFile: EcoFileMeta | null }>(\n `query EcoGetFile($id: ID!) {\n getFile(id: $id) {\n id\n name\n downloadUrl\n mimeType\n size\n }\n }`,\n { id },\n apiGatewayUrl\n );\n return data.getFile;\n },\n });\n};\n"],"mappings":";;;;;;AAwCA,IAAMA,UAAqC;CACzC,IAAMC,IAAI;CAGV,AAFAA,EAAE,6BAA6B,MAAM,GACrCA,EAAE,gCAAgC,MAAM,G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,UAAU;GAAC;GAAgB;GAAQC,KAAM;EAAE;EAC3C,SAAS,EAAQA;EACjB,SAAS,aAcA,MAbYxC,EACjB,yLASA,EAAE,MAAG,GACLoB,CACF,EAAA,CACY;CAEhB,CAAC;AACH"}
1
+ {"version":3,"file":"useEcoFiles.js","names":["clearGraphqlReadCaches","g","wspaceFetch","response","graphqlFetch","query","putWithProgress","xhr","url","contentType","event","onProgress","resolve","reject","body","uploadEcoFile","source","dotIndex","fileName","extension","mimeType","initiated","apiGatewayUrl","sessionId","uploadUrl","completed","useEcoFileUpload","useEcoImpactHub","isUploading","setIsUploading","useState","progress","setProgress","error","setError","reset","useCallback","file","err","message","useEcoFile","useQuery","id"],"sources":["../../../src/ecoimpacthub/hooks/useEcoFiles.ts"],"sourcesContent":["/**\n * EcoImpactHub — wspace-files-svc REUSE hooks (Integration A).\n * @module ecoimpacthub/hooks/useEcoFiles\n *\n * Reuses the platform file store (`wspace-files-svc`) WITHOUT any eco-svc\n * change: the eco schema already exposes `EcoObservation.evidenceFileId` /\n * `EcoReport.fileId`; this module lets the UI actually produce a `fileId` via\n * the canonical 3-step upload flow composed into the WORKSPACE supergraph:\n * 1. `initiateUpload(input)` → `{ uploadUrl, session { id } }`\n * 2. HTTP `PUT` the bytes to the returned signed `uploadUrl`\n * 3. `completeUpload(input: { sessionId })` → `{ fileId }`\n * plus `getFile(id)` to resolve an existing evidence/report file's name + URL.\n *\n * Transport mirrors `useEcoImpactHubApi` exactly — `graphqlFetch({ gateway:\n * 'workspace', workspaceToken: true })` — so no ApolloProvider is required.\n * These hooks live in a SEPARATE file by design; `useEcoImpactHubApi.ts` is\n * left untouched.\n */\n\nimport { useCallback, useState } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql';\n\nimport { useEcoImpactHub } from '../context';\n\n// ============================================================================\n// Shared workspace-gateway transport (reused by the comments + tags hooks too)\n// ============================================================================\n\ntype GraphqlReadCacheGlobals = {\n __graphqlFetchResponseCache?: { clear: () => void };\n __graphqlFetchPendingResponses?: { clear: () => void };\n __boffGraphQLResponseCache?: { clear: () => void };\n};\n\n/**\n * fe-libs `graphqlFetch` coalesces `query` responses in a short-lived in-memory\n * cache. After a write we drop those caches so the invalidation refetch that\n * follows reads fresh data (same remedy `useEcoImpactHubApi` applies).\n */\nconst clearGraphqlReadCaches = (): void => {\n const g = globalThis as GraphqlReadCacheGlobals;\n g.__graphqlFetchResponseCache?.clear();\n g.__graphqlFetchPendingResponses?.clear();\n g.__boffGraphQLResponseCache?.clear();\n};\n\n/** Execute a workspace-gateway GraphQL operation with the workspace token. */\nexport const wspaceFetch = async <TData>(\n query: string,\n variables: Record<string, unknown>,\n baseUrl?: string\n): Promise<TData> => {\n const response = await graphqlFetch<TData>({\n gateway: 'workspace',\n baseUrl,\n query,\n variables,\n workspaceToken: true,\n });\n\n if (response.errors?.length) {\n throw new Error(response.errors[0]?.message ?? 'GraphQL request failed');\n }\n if (!response.data) {\n throw new Error('GraphQL response did not include data');\n }\n if (/^\\s*mutation\\b/.test(query)) {\n clearGraphqlReadCaches();\n }\n return response.data;\n};\n\n// ============================================================================\n// File upload (initiate → PUT → complete)\n// ============================================================================\n\nexport interface UploadedEcoFile {\n fileId: string;\n fileName: string;\n}\n\n/** `PUT` the blob to the signed URL, reporting byte-progress via `onProgress`. */\nfunction putWithProgress(\n url: string,\n body: Blob,\n contentType: string,\n onProgress: (percent: number) => void\n): Promise<void> {\n return new Promise<void>((resolve, reject) => {\n const xhr = new XMLHttpRequest();\n xhr.open('PUT', url);\n xhr.setRequestHeader('Content-Type', contentType);\n xhr.upload.onprogress = (event) => {\n if (event.lengthComputable) {\n onProgress(Math.round((event.loaded / event.total) * 100));\n }\n };\n xhr.onload = () => {\n if (xhr.status >= 200 && xhr.status < 300) {\n resolve();\n } else {\n reject(new Error(`File storage rejected the upload (HTTP ${xhr.status}).`));\n }\n };\n xhr.onerror = () => reject(new Error('Network error while uploading the file.'));\n xhr.onabort = () => reject(new Error('The upload was cancelled.'));\n xhr.send(body);\n });\n}\n\nexport interface EcoFileUploadSource {\n body: Blob;\n fileName: string;\n /** Falls back to the blob's own type, then `application/octet-stream`. */\n mimeType?: string;\n}\n\n/**\n * Run the platform 3-step upload (initiate → signed PUT → complete) for a blob\n * and resolve to `{ fileId, fileName }`. Usable outside React, which the\n * offline field queue needs: it uploads queued evidence photos on reconnect.\n */\nexport async function uploadEcoFile(\n source: EcoFileUploadSource,\n apiGatewayUrl?: string,\n onProgress: (percent: number) => void = () => undefined\n): Promise<UploadedEcoFile> {\n const { body, fileName } = source;\n const dotIndex = fileName.lastIndexOf('.');\n const extension = dotIndex > -1 ? fileName.slice(dotIndex + 1) : '';\n const mimeType = source.mimeType || body.type || 'application/octet-stream';\n\n // 1. initiate\n const initiated = await wspaceFetch<{\n initiateUpload: { uploadUrl: string | null; session: { id: string } };\n }>(\n `mutation EcoInitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) {\n uploadUrl\n session { id }\n }\n }`,\n {\n input: {\n fileName,\n extension,\n mimeType,\n fileSize: String(body.size),\n visibility: 'WORKSPACE',\n },\n },\n apiGatewayUrl\n );\n\n const { uploadUrl } = initiated.initiateUpload;\n const sessionId = initiated.initiateUpload.session.id;\n if (!uploadUrl) {\n throw new Error('The file service did not return an upload URL.');\n }\n\n // 2. PUT the bytes\n await putWithProgress(uploadUrl, body, mimeType, onProgress);\n\n // 3. complete\n const completed = await wspaceFetch<{\n completeUpload: { fileId: string; file: { id: string; name: string } | null };\n }>(\n `mutation EcoCompleteUpload($input: CompleteUploadInput!) {\n completeUpload(input: $input) {\n fileId\n file { id name }\n }\n }`,\n { input: { sessionId } },\n apiGatewayUrl\n );\n\n onProgress(100);\n return {\n fileId: completed.completeUpload.fileId,\n fileName: completed.completeUpload.file?.name ?? fileName,\n };\n}\n\nexport interface UseEcoFileUploadResult {\n upload: (file: File) => Promise<UploadedEcoFile>;\n isUploading: boolean;\n /** 0–100 byte-progress of the signed-URL PUT. */\n progress: number;\n error: string | null;\n reset: () => void;\n}\n\n/**\n * Imperative upload hook: `await upload(file)` runs the platform 3-step flow and\n * resolves to `{ fileId, fileName }`. `fileId` is what the eco mutations accept\n * (`ecoRecordObservation.evidenceFileId`, `ecoPublishReport.fileId`).\n */\nexport const useEcoFileUpload = (): UseEcoFileUploadResult => {\n const { apiGatewayUrl } = useEcoImpactHub();\n const [isUploading, setIsUploading] = useState(false);\n const [progress, setProgress] = useState(0);\n const [error, setError] = useState<string | null>(null);\n\n const reset = useCallback(() => {\n setIsUploading(false);\n setProgress(0);\n setError(null);\n }, []);\n\n const upload = useCallback(\n async (file: File): Promise<UploadedEcoFile> => {\n setIsUploading(true);\n setProgress(0);\n setError(null);\n try {\n return await uploadEcoFile(\n { body: file, fileName: file.name, mimeType: file.type },\n apiGatewayUrl,\n setProgress\n );\n } catch (err) {\n const message = err instanceof Error ? err.message : 'The file could not be uploaded.';\n setError(message);\n throw err instanceof Error ? err : new Error(message);\n } finally {\n setIsUploading(false);\n }\n },\n [apiGatewayUrl]\n );\n\n return { upload, isUploading, progress, error, reset };\n};\n\n// ============================================================================\n// Resolve an existing file (name + download URL) for rendering evidence links\n// ============================================================================\n\nexport interface EcoFileMeta {\n id: string;\n name: string;\n downloadUrl: string | null;\n mimeType: string;\n size: string;\n}\n\nexport const useEcoFile = (id: string | null | undefined) => {\n const { apiGatewayUrl } = useEcoImpactHub();\n return useQuery({\n queryKey: ['ecoimpacthub', 'file', id ?? ''],\n enabled: Boolean(id),\n queryFn: async () => {\n const data = await wspaceFetch<{ getFile: EcoFileMeta | null }>(\n `query EcoGetFile($id: ID!) {\n getFile(id: $id) {\n id\n name\n downloadUrl\n mimeType\n size\n }\n }`,\n { id },\n apiGatewayUrl\n );\n return data.getFile;\n },\n });\n};\n"],"mappings":";;;;;AAwCA,IAAMA,UAAqC;CACzC,IAAMC,IAAI;CAGV,AAFAA,EAAE,6BAA6B,MAAM,GACrCA,EAAE,gCAAgC,MAAM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ACd,UAAU;GAAC;GAAgB;GAAQC,KAAM;EAAE;EAC3C,SAAS,EAAQA;EACjB,SAAS,aAcA,MAbYxC,EACjB,yLASA,EAAE,MAAG,GACLoB,CACF,EAAA,CACY;CAEhB,CAAC;AACH"}
@@ -1,4 +1,4 @@
1
- import { EcoConnection, EcoSite, EcoSiteStatus, EcoSiteType, EcoSensor, EcoSensorKind, EcoSensorStatus, EcoMeasurement, EcoAlertThreshold, EcoSpecies, EcoTaxonGroup, EcoConservationStatus, EcoObservation, EcoHabitatProject, EcoHabitatProjectStatus, EcoRestorationActivity, EcoEmissionFactor, EcoEmissionScope, EcoCarbonEntry, EcoCarbonEntryStatus, EcoReductionTarget, EcoReductionTargetStatus, EcoReport, EcoReportStatus, EcoReportLineItem, EcoCreateSiteInput, EcoUpdateSiteInput, EcoCreateSensorInput, EcoRecordMeasurementInput, EcoCreateThresholdInput, EcoCreateSpeciesInput, EcoUpdateSpeciesInput, EcoRecordObservationInput, EcoCreateHabitatProjectInput, EcoLogRestorationActivityInput, EcoCreateEmissionFactorInput, EcoRecordCarbonEntryInput, EcoCreateReductionTargetInput, EcoCreateReportInput, EcoAddReportLineItemInput, EcoRejectReportInput, EcoAiDraftBatch, EcoAiDraftCarbonEntriesInput, EcoAiFactorSuggestion, EcoAiSuggestEmissionFactorInput, EcoEnergyAsset, EcoEnergyAssetKind, EcoEnergyAssetStatus, EcoEnergyReading, EcoEnergyReadingImportResult, EcoEnergyReadingSource, EcoEnergyGridBaseline, EcoEnergyMixDashboard, EcoCreateEnergyAssetInput, EcoUpdateEnergyAssetInput, EcoRecordEnergyReadingInput, EcoSetEnergyGridBaselineInput, EcoMetric, EcoMetricRollup, EcoRisk, EcoRiskCategory, EcoRiskStatus, EcoAudit, EcoAuditType, EcoAuditStatus, EcoIncident, EcoIncidentSeverity, EcoIncidentStatus, EcoCorrectiveAction, EcoCorrectiveActionStatus, EcoEhsPermit, EcoEhsPermitType, EcoEhsPermitStatus, EcoCreateRiskInput, EcoUpdateRiskInput, EcoCreateAuditInput, EcoUpdateAuditInput, EcoCreateIncidentInput, EcoUpdateIncidentInput, EcoCreateCorrectiveActionInput, EcoUpdateCorrectiveActionInput, EcoCreateEhsPermitInput, EcoUpdateEhsPermitInput, PaginationInput, EcoWasteStream, EcoWasteRecord, EcoWasteRoute, EcoWasteDiversionSummary, EcoMaterialLoop, EcoMaterialLoopFlow, EcoMaterialLoopStage, EcoMaterialLoopSummary, EcoCreateWasteStreamInput, EcoUpdateWasteStreamInput, EcoRecordWasteInput, EcoCreateMaterialLoopInput, EcoUpdateMaterialLoopInput, EcoRecordMaterialLoopFlowInput, EcoGrant, EcoGrantFunder, EcoGrantMilestone, EcoGrantStatus, EcoGrantMilestoneStatus, EcoDonorPortalLinkResult, EcoCreateGrantFunderInput, EcoUpdateGrantFunderInput, EcoCreateGrantInput, EcoUpdateGrantInput, EcoCreateGrantMilestoneInput, EcoUpdateGrantMilestoneInput, EcoCreditMethodology, EcoCreditMethodologyStatus, EcoCreditVintage, EcoCreditVintageStatus, EcoCarbonCredit, EcoCarbonCreditStatus, EcoCreditRetirement, EcoCreditPortfolioSummary, EcoCreateCreditMethodologyInput, EcoCreateCreditVintageInput, EcoIssueCarbonCreditsInput, EcoTransferCarbonCreditInput, EcoRetireCarbonCreditsInput, EcoComplianceObligation, EcoObligationStatus, EcoPermit, EcoPermitStatus, EcoDeadline, EcoCreateObligationInput, EcoUpdateObligationInput, EcoCreatePermitInput, EcoUpdatePermitInput, EcoCreateDeadlineInput, EcoUpdateDeadlineInput } from '../types';
1
+ import { EcoConnection, EcoHabitatProjectCounts, EcoSensorCounts, EcoSiteCounts, EcoSpeciesCounts, EcoSite, EcoSiteStatus, EcoSiteType, EcoSensor, EcoSensorKind, EcoSensorStatus, EcoMeasurement, EcoAlertThreshold, EcoSpecies, EcoTaxonGroup, EcoConservationStatus, EcoObservation, EcoHabitatProject, EcoHabitatProjectStatus, EcoRestorationActivity, EcoEmissionFactor, EcoEmissionScope, EcoCarbonEntry, EcoCarbonEntryStatus, EcoReductionTarget, EcoReductionTargetStatus, EcoReport, EcoReportStatus, EcoReportLineItem, EcoCreateSiteInput, EcoUpdateSiteInput, EcoCreateSensorInput, EcoRecordMeasurementInput, EcoCreateThresholdInput, EcoCreateSpeciesInput, EcoUpdateSpeciesInput, EcoRecordObservationInput, EcoCreateHabitatProjectInput, EcoLogRestorationActivityInput, EcoCreateEmissionFactorInput, EcoRecordCarbonEntryInput, EcoCreateReductionTargetInput, EcoCreateReportInput, EcoAddReportLineItemInput, EcoRejectReportInput, EcoAiDraftBatch, EcoAiDraftCarbonEntriesInput, EcoAiFactorSuggestion, EcoAiSuggestEmissionFactorInput, EcoEnergyAsset, EcoEnergyAssetKind, EcoEnergyAssetStatus, EcoEnergyReading, EcoEnergyReadingImportResult, EcoEnergyReadingSource, EcoEnergyGridBaseline, EcoEnergyMixDashboard, EcoCreateEnergyAssetInput, EcoUpdateEnergyAssetInput, EcoRecordEnergyReadingInput, EcoSetEnergyGridBaselineInput, EcoMetric, EcoMetricRollup, EcoRisk, EcoRiskCategory, EcoRiskStatus, EcoAudit, EcoAuditType, EcoAuditStatus, EcoIncident, EcoIncidentSeverity, EcoIncidentStatus, EcoCorrectiveAction, EcoCorrectiveActionStatus, EcoEhsPermit, EcoEhsPermitType, EcoEhsPermitStatus, EcoCreateRiskInput, EcoUpdateRiskInput, EcoCreateAuditInput, EcoUpdateAuditInput, EcoCreateIncidentInput, EcoUpdateIncidentInput, EcoCreateCorrectiveActionInput, EcoUpdateCorrectiveActionInput, EcoCreateEhsPermitInput, EcoUpdateEhsPermitInput, PaginationInput, EcoWasteStream, EcoWasteRecord, EcoWasteRoute, EcoWasteDiversionSummary, EcoMaterialLoop, EcoMaterialLoopFlow, EcoMaterialLoopStage, EcoMaterialLoopSummary, EcoCreateWasteStreamInput, EcoUpdateWasteStreamInput, EcoRecordWasteInput, EcoCreateMaterialLoopInput, EcoUpdateMaterialLoopInput, EcoRecordMaterialLoopFlowInput, EcoGrant, EcoGrantFunder, EcoGrantMilestone, EcoGrantStatus, EcoGrantMilestoneStatus, EcoDonorPortalLinkResult, EcoCreateGrantFunderInput, EcoUpdateGrantFunderInput, EcoCreateGrantInput, EcoUpdateGrantInput, EcoCreateGrantMilestoneInput, EcoUpdateGrantMilestoneInput, EcoCreditMethodology, EcoCreditMethodologyStatus, EcoCreditVintage, EcoCreditVintageStatus, EcoCarbonCredit, EcoCarbonCreditStatus, EcoCreditRetirement, EcoCreditPortfolioSummary, EcoCreateCreditMethodologyInput, EcoCreateCreditVintageInput, EcoIssueCarbonCreditsInput, EcoTransferCarbonCreditInput, EcoRetireCarbonCreditsInput, EcoComplianceObligation, EcoObligationStatus, EcoPermit, EcoPermitStatus, EcoDeadline, EcoCreateObligationInput, EcoUpdateObligationInput, EcoCreatePermitInput, EcoUpdatePermitInput, EcoCreateDeadlineInput, EcoUpdateDeadlineInput } from '../types';
2
2
  /** Filter set shared by the metrics library list and the rollup view. */
3
3
  export interface EcoMetricFilters {
4
4
  category?: string;
@@ -69,6 +69,10 @@ export interface ObservationFilters {
69
69
  export declare const useEcoObservations: (filters?: ObservationFilters) => import('@tanstack/react-query').UseQueryResult<EcoConnection<EcoObservation>, Error>;
70
70
  export declare const useEcoRecordObservation: () => import('@tanstack/react-query').UseMutationResult<EcoObservation, Error, EcoRecordObservationInput, unknown>;
71
71
  export declare const useEcoHabitatProjects: (status?: EcoHabitatProjectStatus) => import('@tanstack/react-query').UseQueryResult<EcoConnection<EcoHabitatProject>, Error>;
72
+ export declare const useEcoSiteCounts: () => import('@tanstack/react-query').UseQueryResult<EcoSiteCounts, Error>;
73
+ export declare const useEcoSensorCounts: () => import('@tanstack/react-query').UseQueryResult<EcoSensorCounts, Error>;
74
+ export declare const useEcoSpeciesCounts: () => import('@tanstack/react-query').UseQueryResult<EcoSpeciesCounts, Error>;
75
+ export declare const useEcoHabitatProjectCounts: () => import('@tanstack/react-query').UseQueryResult<EcoHabitatProjectCounts, Error>;
72
76
  export declare const useEcoHabitatProject: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<EcoHabitatProject | null, Error>;
73
77
  export declare const useEcoCreateHabitatProject: () => import('@tanstack/react-query').UseMutationResult<EcoHabitatProject, Error, EcoCreateHabitatProjectInput, unknown>;
74
78
  export declare const useEcoTransitionHabitatProject: () => import('@tanstack/react-query').UseMutationResult<EcoHabitatProject, Error, {