drizzle-cube 0.13.1 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/dist/adapters/ActivityGridChart.config-BlZclX_9.js +1 -0
  2. package/dist/adapters/ActivityGridChart.config-D2v_XyY0.cjs +1 -0
  3. package/dist/adapters/AreaChart.config-2uBmxi1-.js +1 -0
  4. package/dist/adapters/AreaChart.config-CSusw7MI.cjs +1 -0
  5. package/dist/adapters/BarChart.config-CEs8zlOd.js +1 -0
  6. package/dist/adapters/BarChart.config-DDokCRL0.cjs +1 -0
  7. package/dist/adapters/BoxPlotChart.config-DGkPSj3b.js +1 -0
  8. package/dist/adapters/BoxPlotChart.config-DNAAV5ds.cjs +1 -0
  9. package/dist/adapters/BubbleChart.config-Cj2A1IL9.cjs +1 -0
  10. package/dist/adapters/BubbleChart.config-Hp4hDwos.js +1 -0
  11. package/dist/adapters/CandlestickChart.config-BfL2kxsO.js +1 -0
  12. package/dist/adapters/CandlestickChart.config-CyzAcJb2.cjs +1 -0
  13. package/dist/adapters/DataTable.config-D9Ug46tb.cjs +1 -0
  14. package/dist/adapters/DataTable.config-r5Fa9uae.js +1 -0
  15. package/dist/adapters/DotStripChart.config-BTqmxVm2.js +1 -0
  16. package/dist/adapters/DotStripChart.config-Bu0J9BYY.cjs +1 -0
  17. package/dist/adapters/FunnelChart.config-BedIayLz.cjs +1 -0
  18. package/dist/adapters/FunnelChart.config-dT9ymf6H.js +1 -0
  19. package/dist/adapters/GaugeChart.config-DJy3xApn.cjs +1 -0
  20. package/dist/adapters/GaugeChart.config-DZRniX9X.js +1 -0
  21. package/dist/adapters/HeatMapChart.config-AUCbOuee.cjs +1 -0
  22. package/dist/adapters/HeatMapChart.config-CCX0y6Nu.js +1 -0
  23. package/dist/adapters/KpiDelta.config-1fGFn_si.cjs +1 -0
  24. package/dist/adapters/KpiDelta.config-CMiZaD_K.js +1 -0
  25. package/dist/adapters/KpiNumber.config-CUXAwnLQ.js +1 -0
  26. package/dist/adapters/KpiNumber.config-jCFoR8UV.cjs +1 -0
  27. package/dist/adapters/KpiText.config-B6JsJGlt.js +1 -0
  28. package/dist/adapters/KpiText.config-T5Tk8B93.cjs +1 -0
  29. package/dist/adapters/LineChart.config-BDAVOwzV.js +1 -0
  30. package/dist/adapters/LineChart.config-rVRUAwRc.cjs +1 -0
  31. package/dist/adapters/MarkdownChart.config-C1N51S30.cjs +1 -0
  32. package/dist/adapters/MarkdownChart.config-DcILjPyK.js +1 -0
  33. package/dist/adapters/MeasureProfileChart.config-D6TDwz3r.js +1 -0
  34. package/dist/adapters/MeasureProfileChart.config-fMvKKyHq.cjs +1 -0
  35. package/dist/adapters/PieChart.config-Dlv0S8-5.cjs +1 -0
  36. package/dist/adapters/PieChart.config-L1EEHJAB.js +1 -0
  37. package/dist/adapters/ProportionBarChart.config-CaXGpruG.js +1 -0
  38. package/dist/adapters/ProportionBarChart.config-DGhKCGYw.cjs +1 -0
  39. package/dist/adapters/RadarChart.config-BIJ84MZl.cjs +1 -0
  40. package/dist/adapters/RadarChart.config-NJDXWxTM.js +1 -0
  41. package/dist/adapters/RadialBarChart.config-C2AX5IRD.js +1 -0
  42. package/dist/adapters/RadialBarChart.config-D_Dk3f-2.cjs +1 -0
  43. package/dist/adapters/RecordsTable.config-C0YqdTyB.cjs +1 -0
  44. package/dist/adapters/RecordsTable.config-CyYJtLoq.js +1 -0
  45. package/dist/adapters/RetentionCombinedChart.config-6_vW_fo0.cjs +1 -0
  46. package/dist/adapters/RetentionCombinedChart.config-Cth5Fvoh.js +1 -0
  47. package/dist/adapters/RetentionHeatmap.config-DDL2t7qk.cjs +1 -0
  48. package/dist/adapters/RetentionHeatmap.config-O4e7Heos.js +1 -0
  49. package/dist/adapters/SankeyChart.config-D36FHKUf.js +1 -0
  50. package/dist/adapters/SankeyChart.config-DWn_Gidq.cjs +1 -0
  51. package/dist/adapters/ScatterChart.config-CkUpXGjq.cjs +1 -0
  52. package/dist/adapters/ScatterChart.config-DHHhm4K7.js +1 -0
  53. package/dist/adapters/SunburstChart.config-CDqzb5xW.cjs +1 -0
  54. package/dist/adapters/SunburstChart.config-Dxh57sv_.js +1 -0
  55. package/dist/adapters/TreeMapChart.config--RHay3WA.js +1 -0
  56. package/dist/adapters/TreeMapChart.config-BcJ0H_xg.cjs +1 -0
  57. package/dist/adapters/WaterfallChart.config-DKscCBNm.cjs +1 -0
  58. package/dist/adapters/WaterfallChart.config-gDygj8Ko.js +1 -0
  59. package/dist/adapters/core/index.cjs +1 -1
  60. package/dist/adapters/core/index.js +1 -1
  61. package/dist/adapters/{core-Ib5DN_B6.cjs → core-YfzziyUf.cjs} +1 -1
  62. package/dist/adapters/{core-D1FtXGPM.js → core-wxT6B2Cm.js} +2 -2
  63. package/dist/adapters/{cors-headers-DPNvO_6o.js → cors-headers-BeWxPGlM.js} +1 -1
  64. package/dist/adapters/{cors-headers-D0ofhz3k.cjs → cors-headers-CEdKM8L_.cjs} +1 -1
  65. package/dist/adapters/express/index.cjs +1 -1
  66. package/dist/adapters/express/index.js +5 -5
  67. package/dist/adapters/fastify/index.cjs +1 -1
  68. package/dist/adapters/fastify/index.js +5 -5
  69. package/dist/adapters/{handler-CRAPq8xB.cjs → handler-Ch9YaC4G.cjs} +3 -3
  70. package/dist/adapters/{handler-Dqe0_Uvx.js → handler-rUTCH36J.js} +32 -32
  71. package/dist/adapters/hono/index.cjs +1 -1
  72. package/dist/adapters/hono/index.js +4 -4
  73. package/dist/adapters/mcp-app-html.cjs +1 -1
  74. package/dist/adapters/mcp-app-html.js +1 -1
  75. package/dist/adapters/mcp-tools.cjs +1 -1
  76. package/dist/adapters/mcp-tools.js +2 -2
  77. package/dist/adapters/{mcp-transport-DnnABB3F.cjs → mcp-transport-CDSbAnfH.cjs} +1 -1
  78. package/dist/adapters/{mcp-transport-DpJDF0M_.js → mcp-transport-DCyksRMv.js} +1 -1
  79. package/dist/adapters/nextjs/index.cjs +1 -1
  80. package/dist/adapters/nextjs/index.js +5 -5
  81. package/dist/adapters/{openai-DOMIchMU.js → openai-B9CJ0Gw3.js} +1 -1
  82. package/dist/adapters/{openai-Dxk9OT5p.cjs → openai-CPTovs2d.cjs} +1 -1
  83. package/dist/adapters/{openai-Dxu_8i7e.cjs → openai-CrNRNE9c.cjs} +1 -1
  84. package/dist/adapters/{openai-DDdpBh3c.js → openai-mmY4YK81.js} +1 -1
  85. package/dist/adapters/utils-D0jq702C.cjs +141 -0
  86. package/dist/adapters/{utils-DrbnoHoa.js → utils-wjO1gfkH.js} +27 -1
  87. package/dist/adapters/utils.cjs +1 -1
  88. package/dist/adapters/utils.js +1 -1
  89. package/dist/cjs/client/charts/chartConfigs.d.ts +36 -1
  90. package/dist/cjs/client/charts.d.ts +2 -2
  91. package/dist/cjs/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +2 -0
  92. package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
  93. package/dist/cjs/client/components/RowManagedLayout.d.ts +3 -1
  94. package/dist/cjs/client/components/analyticsPortlet/PortletChart.d.ts +5 -1
  95. package/dist/cjs/client/components/analyticsPortlet/PortletChartView.d.ts +5 -1
  96. package/dist/cjs/client/components/analyticsPortlet/PortletStates.d.ts +9 -1
  97. package/dist/cjs/client/components/analyticsPortlet/portletRenderState.d.ts +7 -1
  98. package/dist/cjs/client/components/charts/MarkdownChart.d.ts +1 -1
  99. package/dist/cjs/client/components/charts/markdownDisclosure.d.ts +14 -0
  100. package/dist/cjs/client/components/dashboard/dashboardGridUtils.d.ts +1 -1
  101. package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +5 -2
  102. package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +6 -3
  103. package/dist/cjs/client/components/dashboardPortletCard/cardStyles.d.ts +2 -0
  104. package/dist/cjs/client/components/dashboardPortletCard/portletActionOrder.d.ts +17 -0
  105. package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +2 -0
  106. package/dist/cjs/client/components/dashboardPortletCard/usePortletCardActions.d.ts +4 -1
  107. package/dist/cjs/client/hooks/dashboard/layoutUtils.d.ts +32 -1
  108. package/dist/cjs/client/hooks/useAnalysisQuery.d.ts +6 -0
  109. package/dist/cjs/client/icons/registry.d.ts +3 -1
  110. package/dist/cjs/client/index.d.ts +4 -3
  111. package/dist/cjs/client/shared/chartConfigBuilders.d.ts +5 -2
  112. package/dist/cjs/client/shared/chartDefaults.d.ts +11 -1
  113. package/dist/cjs/client/types.d.ts +34 -0
  114. package/dist/cjs/client/utils/colorPalettes.d.ts +25 -0
  115. package/dist/cjs/client/utils/exportXlsx.d.ts +7 -0
  116. package/dist/cjs/client/utils/index.d.ts +1 -1
  117. package/dist/client/charts/chartConfigs.d.ts +36 -1
  118. package/dist/client/charts.d.ts +2 -2
  119. package/dist/client/charts.js +12 -12
  120. package/dist/client/chunks/{ActivityGridChart-CmboSrmc.js → ActivityGridChart-sfYPWaLI.js} +2 -2
  121. package/dist/client/chunks/{ActivityGridChart-CmboSrmc.js.map → ActivityGridChart-sfYPWaLI.js.map} +1 -1
  122. package/dist/client/chunks/{BubbleChart-DiloeKCW.js → BubbleChart-BgsVoVgO.js} +3 -5
  123. package/dist/client/chunks/BubbleChart-BgsVoVgO.js.map +1 -0
  124. package/dist/client/chunks/{ChartStates-oCfgZumF.js → ChartStates-CrNiZI5S.js} +2 -2
  125. package/dist/client/chunks/{ChartStates-oCfgZumF.js.map → ChartStates-CrNiZI5S.js.map} +1 -1
  126. package/dist/client/chunks/{ChartSummaryHeader-nx-4H-in.js → ChartSummaryHeader-DO6M92dC.js} +2 -2
  127. package/dist/client/chunks/{ChartSummaryHeader-nx-4H-in.js.map → ChartSummaryHeader-DO6M92dC.js.map} +1 -1
  128. package/dist/client/chunks/{DashboardEditModal-6N8H3lXW.js → DashboardEditModal-CnQ2NR2Q.js} +2029 -1868
  129. package/dist/client/chunks/DashboardEditModal-CnQ2NR2Q.js.map +1 -0
  130. package/dist/client/chunks/{DataHistogram-DbQbA-Pi.js → DataHistogram-CHFy7ztz.js} +2 -2
  131. package/dist/client/chunks/{DataHistogram-DbQbA-Pi.js.map → DataHistogram-CHFy7ztz.js.map} +1 -1
  132. package/dist/client/chunks/{DotStripChart-HcSCkYDs.js → DotStripChart-Bz5IC3Q1.js} +4 -4
  133. package/dist/client/chunks/{DotStripChart-HcSCkYDs.js.map → DotStripChart-Bz5IC3Q1.js.map} +1 -1
  134. package/dist/client/chunks/{FunnelViews-SjgYxngb.js → FunnelViews-BLHRyHAU.js} +2 -2
  135. package/dist/client/chunks/{FunnelViews-SjgYxngb.js.map → FunnelViews-BLHRyHAU.js.map} +1 -1
  136. package/dist/client/chunks/{HeatMapChart-B9pj-KQi.js → HeatMapChart-JjUF0zDX.js} +3 -3
  137. package/dist/client/chunks/{HeatMapChart-B9pj-KQi.js.map → HeatMapChart-JjUF0zDX.js.map} +1 -1
  138. package/dist/client/chunks/{KpiDelta-1BfMFygT.js → KpiDelta-B6SN3viX.js} +2 -2
  139. package/dist/client/chunks/{KpiDelta-1BfMFygT.js.map → KpiDelta-B6SN3viX.js.map} +1 -1
  140. package/dist/client/chunks/{KpiText-DzPeryRS.js → KpiText-z_vo4xcE.js} +2 -2
  141. package/dist/client/chunks/{KpiText-DzPeryRS.js.map → KpiText-z_vo4xcE.js.map} +1 -1
  142. package/dist/client/chunks/{MarkdownChart-_aif5Ye3.js → MarkdownChart-BKQl0PAy.js} +1125 -1059
  143. package/dist/client/chunks/MarkdownChart-BKQl0PAy.js.map +1 -0
  144. package/dist/client/chunks/{PortletAnalysisModal-C0MLoJTP.js → PortletAnalysisModal-XfCy-bY3.js} +5 -5
  145. package/dist/client/chunks/{PortletAnalysisModal-C0MLoJTP.js.map → PortletAnalysisModal-XfCy-bY3.js.map} +1 -1
  146. package/dist/client/chunks/{ProportionBarChart-B9Rgyhbc.js → ProportionBarChart-tVmEO5Xi.js} +4 -4
  147. package/dist/client/chunks/{ProportionBarChart-B9Rgyhbc.js.map → ProportionBarChart-tVmEO5Xi.js.map} +1 -1
  148. package/dist/client/chunks/{RecordsTable-DRovI83Z.js → RecordsTable-X4-iL03N.js} +4 -4
  149. package/dist/client/chunks/{RecordsTable-DRovI83Z.js.map → RecordsTable-X4-iL03N.js.map} +1 -1
  150. package/dist/client/chunks/{RetentionCombinedChart-D_vAvtIb.js → RetentionCombinedChart-DCgCAEa4.js} +3 -3
  151. package/dist/client/chunks/{RetentionCombinedChart-D_vAvtIb.js.map → RetentionCombinedChart-DCgCAEa4.js.map} +1 -1
  152. package/dist/client/chunks/{RetentionHeatmap-CVEmxbg9.js → RetentionHeatmap-BnQng2Nc.js} +2 -2
  153. package/dist/client/chunks/{RetentionHeatmap-CVEmxbg9.js.map → RetentionHeatmap-BnQng2Nc.js.map} +1 -1
  154. package/dist/client/chunks/{SchemaVisualization-DE8WBbNZ.js → SchemaVisualization-DAs91j_B.js} +1 -1
  155. package/dist/client/chunks/{TextPortletModal-Bg5hFfZg.js → TextPortletModal-MeQiEmR8.js} +3 -3
  156. package/dist/client/chunks/{TextPortletModal-Bg5hFfZg.js.map → TextPortletModal-MeQiEmR8.js.map} +1 -1
  157. package/dist/client/chunks/{analysis-builder-BMoycXCE.js → analysis-builder-_JOj-PkX.js} +1554 -1537
  158. package/dist/client/chunks/analysis-builder-_JOj-PkX.js.map +1 -0
  159. package/dist/client/chunks/{analysis-builder-shared-D1KnOXT2.js → analysis-builder-shared-CYK5sH46.js} +911 -902
  160. package/dist/client/chunks/analysis-builder-shared-CYK5sH46.js.map +1 -0
  161. package/dist/client/chunks/{chart-activity-grid-CiqEnzs_.js → chart-activity-grid-CIzCAMX9.js} +4 -4
  162. package/dist/client/chunks/{chart-activity-grid-CiqEnzs_.js.map → chart-activity-grid-CIzCAMX9.js.map} +1 -1
  163. package/dist/client/chunks/{chart-area-BgKyGty4.js → chart-area-BRLlLtIX.js} +6 -6
  164. package/dist/client/chunks/{chart-area-BgKyGty4.js.map → chart-area-BRLlLtIX.js.map} +1 -1
  165. package/dist/client/chunks/{chart-bar-BKTQ6zyq.js → chart-bar-D2qp_vsO.js} +5 -5
  166. package/dist/client/chunks/{chart-bar-BKTQ6zyq.js.map → chart-bar-D2qp_vsO.js.map} +1 -1
  167. package/dist/client/chunks/{chart-box-plot-FD8d8S_Y.js → chart-box-plot-Bt2dfls7.js} +2 -2
  168. package/dist/client/chunks/{chart-box-plot-FD8d8S_Y.js.map → chart-box-plot-Bt2dfls7.js.map} +1 -1
  169. package/dist/client/chunks/{chart-bubble-BbmLUynL.js → chart-bubble-BJZlm4xv.js} +4 -4
  170. package/dist/client/chunks/{chart-bubble-BbmLUynL.js.map → chart-bubble-BJZlm4xv.js.map} +1 -1
  171. package/dist/client/chunks/{chart-candlestick-DeDZSkhF.js → chart-candlestick-DsNtTruF.js} +2 -2
  172. package/dist/client/chunks/{chart-candlestick-DeDZSkhF.js.map → chart-candlestick-DsNtTruF.js.map} +1 -1
  173. package/dist/client/chunks/{chart-data-table-DLwFKymv.js → chart-data-table-DIghSvZN.js} +3 -3
  174. package/dist/client/chunks/{chart-data-table-DLwFKymv.js.map → chart-data-table-DIghSvZN.js.map} +1 -1
  175. package/dist/client/chunks/{chart-funnel-BirEW77o.js → chart-funnel-CvVQTMej.js} +3 -3
  176. package/dist/client/chunks/{chart-funnel-BirEW77o.js.map → chart-funnel-CvVQTMej.js.map} +1 -1
  177. package/dist/client/chunks/{chart-gauge-C4yS5138.js → chart-gauge-DSu7U1YZ.js} +4 -4
  178. package/dist/client/chunks/{chart-gauge-C4yS5138.js.map → chart-gauge-DSu7U1YZ.js.map} +1 -1
  179. package/dist/client/chunks/{chart-heat-map-DvGcfud9.js → chart-heat-map-Be7XsINq.js} +4 -4
  180. package/dist/client/chunks/{chart-heat-map-DvGcfud9.js.map → chart-heat-map-Be7XsINq.js.map} +1 -1
  181. package/dist/client/chunks/{chart-kpi-delta-BeReVMyn.js → chart-kpi-delta-7rLLK4Bg.js} +4 -4
  182. package/dist/client/chunks/{chart-kpi-delta-BeReVMyn.js.map → chart-kpi-delta-7rLLK4Bg.js.map} +1 -1
  183. package/dist/client/chunks/{chart-kpi-number-CuYpI5LO.js → chart-kpi-number-CUeK8MQP.js} +4 -4
  184. package/dist/client/chunks/{chart-kpi-number-CuYpI5LO.js.map → chart-kpi-number-CUeK8MQP.js.map} +1 -1
  185. package/dist/client/chunks/{chart-kpi-text-D3dha9Dn.js → chart-kpi-text-CvRv2tGg.js} +5 -5
  186. package/dist/client/chunks/{chart-kpi-text-D3dha9Dn.js.map → chart-kpi-text-CvRv2tGg.js.map} +1 -1
  187. package/dist/client/chunks/{chart-line-EzYdBDdL.js → chart-line-Bl-bSP0Y.js} +6 -6
  188. package/dist/client/chunks/{chart-line-EzYdBDdL.js.map → chart-line-Bl-bSP0Y.js.map} +1 -1
  189. package/dist/client/chunks/chart-markdown-5dXZ-EtR.js +96 -0
  190. package/dist/client/chunks/chart-markdown-5dXZ-EtR.js.map +1 -0
  191. package/dist/client/chunks/{chart-measure-profile-DaL9c2jy.js → chart-measure-profile-DjAV-TtG.js} +4 -4
  192. package/dist/client/chunks/{chart-measure-profile-DaL9c2jy.js.map → chart-measure-profile-DjAV-TtG.js.map} +1 -1
  193. package/dist/client/chunks/{chart-pie-Dw3W8Qjg.js → chart-pie-3IGIOniI.js} +5 -5
  194. package/dist/client/chunks/{chart-pie-Dw3W8Qjg.js.map → chart-pie-3IGIOniI.js.map} +1 -1
  195. package/dist/client/chunks/{chart-radar-BhySlY7t.js → chart-radar-Md5BwLhY.js} +4 -4
  196. package/dist/client/chunks/{chart-radar-BhySlY7t.js.map → chart-radar-Md5BwLhY.js.map} +1 -1
  197. package/dist/client/chunks/{chart-radial-bar-DXc37T3I.js → chart-radial-bar-Bfb-gGm6.js} +4 -4
  198. package/dist/client/chunks/{chart-radial-bar-DXc37T3I.js.map → chart-radial-bar-Bfb-gGm6.js.map} +1 -1
  199. package/dist/client/chunks/{chart-sankey-Xi0rQvx-.js → chart-sankey-BmQKKIZa.js} +2 -2
  200. package/dist/client/chunks/{chart-sankey-Xi0rQvx-.js.map → chart-sankey-BmQKKIZa.js.map} +1 -1
  201. package/dist/client/chunks/{chart-scatter-D7mMgM6E.js → chart-scatter-BES9g5kG.js} +5 -5
  202. package/dist/client/chunks/{chart-scatter-D7mMgM6E.js.map → chart-scatter-BES9g5kG.js.map} +1 -1
  203. package/dist/client/chunks/{chart-sunburst-t3Qb3HI7.js → chart-sunburst-BBOCkD00.js} +2 -2
  204. package/dist/client/chunks/{chart-sunburst-t3Qb3HI7.js.map → chart-sunburst-BBOCkD00.js.map} +1 -1
  205. package/dist/client/chunks/{chart-tree-map-C0EZEE0y.js → chart-tree-map-CkvUBqNw.js} +5 -5
  206. package/dist/client/chunks/{chart-tree-map-C0EZEE0y.js.map → chart-tree-map-CkvUBqNw.js.map} +1 -1
  207. package/dist/client/chunks/{chart-waterfall-C4rt-_iE.js → chart-waterfall-KeSpmPhi.js} +4 -4
  208. package/dist/client/chunks/{chart-waterfall-C4rt-_iE.js.map → chart-waterfall-KeSpmPhi.js.map} +1 -1
  209. package/dist/client/chunks/{chartComponentRegistry-lrQVhpz2.js → chartComponentRegistry-B6jUklcw.js} +3 -3
  210. package/dist/client/chunks/chartComponentRegistry-B6jUklcw.js.map +1 -0
  211. package/dist/client/chunks/{chartPlugin-QJVPr2DC.js → chartPlugin-DnQOiDRV.js} +2 -2
  212. package/dist/client/chunks/{chartPlugin-QJVPr2DC.js.map → chartPlugin-DnQOiDRV.js.map} +1 -1
  213. package/dist/client/chunks/{charts-core-USDYqnlX.js → charts-core-BsheHP0O.js} +2 -2
  214. package/dist/client/chunks/{charts-core-USDYqnlX.js.map → charts-core-BsheHP0O.js.map} +1 -1
  215. package/dist/client/chunks/{charts-loader-i4Fe3mAw.js → charts-loader-Bt00isFs.js} +32 -32
  216. package/dist/client/chunks/{charts-loader-i4Fe3mAw.js.map → charts-loader-Bt00isFs.js.map} +1 -1
  217. package/dist/client/chunks/{dist-CiyOP0NN.js → dist-BJHNNhZr.js} +3 -3
  218. package/dist/client/chunks/dist-BJHNNhZr.js.map +1 -0
  219. package/dist/client/chunks/{exportXlsx-Dnc0ZOJW.js → exportXlsx-CAC5_NOP.js} +29 -21
  220. package/dist/client/chunks/exportXlsx-CAC5_NOP.js.map +1 -0
  221. package/dist/client/chunks/{nl-NL-D0By-h6j.js → nl-NL-Cqzg1eUq.js} +28 -2
  222. package/dist/client/chunks/{nl-NL-D0By-h6j.js.map → nl-NL-Cqzg1eUq.js.map} +1 -1
  223. package/dist/client/chunks/{providers-Bn1iccjx.js → providers-CGtqLkL5.js} +7 -7
  224. package/dist/client/chunks/{providers-Bn1iccjx.js.map → providers-CGtqLkL5.js.map} +1 -1
  225. package/dist/client/chunks/{schema-visualization-D5HMwXPe.js → schema-visualization-CgYgfh4e.js} +5 -5
  226. package/dist/client/chunks/{schema-visualization-D5HMwXPe.js.map → schema-visualization-CgYgfh4e.js.map} +1 -1
  227. package/dist/client/chunks/{useCubeFieldLabel-CYdABa_m.js → useCubeFieldLabel-BaQ47OCT.js} +2 -2
  228. package/dist/client/chunks/{useCubeFieldLabel-CYdABa_m.js.map → useCubeFieldLabel-BaQ47OCT.js.map} +1 -1
  229. package/dist/client/chunks/{useCubeMetaQuery-BQRQjE8r.js → useCubeMetaQuery-D736B6Jp.js} +2 -2
  230. package/dist/client/chunks/{useCubeMetaQuery-BQRQjE8r.js.map → useCubeMetaQuery-D736B6Jp.js.map} +1 -1
  231. package/dist/client/chunks/{useDirtyStateTracking-DvlGcFpU.js → useDirtyStateTracking-D3b4tD_b.js} +2 -2
  232. package/dist/client/chunks/{useDirtyStateTracking-DvlGcFpU.js.map → useDirtyStateTracking-D3b4tD_b.js.map} +1 -1
  233. package/dist/client/chunks/{useExplainAI-DGXJ0Rcg.js → useExplainAI-BaETifYG.js} +3 -3
  234. package/dist/client/chunks/{useExplainAI-DGXJ0Rcg.js.map → useExplainAI-BaETifYG.js.map} +1 -1
  235. package/dist/client/chunks/{useTranslation-F7BGje95.js → useTranslation-DO5KRcwD.js} +30 -4
  236. package/dist/client/chunks/{useTranslation-F7BGje95.js.map → useTranslation-DO5KRcwD.js.map} +1 -1
  237. package/dist/client/chunks/utils-CToHkuhU.js.map +1 -1
  238. package/dist/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +2 -0
  239. package/dist/client/components/DashboardPortletCard.d.ts +1 -1
  240. package/dist/client/components/RowManagedLayout.d.ts +3 -1
  241. package/dist/client/components/analyticsPortlet/PortletChart.d.ts +5 -1
  242. package/dist/client/components/analyticsPortlet/PortletChartView.d.ts +5 -1
  243. package/dist/client/components/analyticsPortlet/PortletStates.d.ts +9 -1
  244. package/dist/client/components/analyticsPortlet/portletRenderState.d.ts +7 -1
  245. package/dist/client/components/charts/MarkdownChart.d.ts +1 -1
  246. package/dist/client/components/charts/markdownDisclosure.d.ts +14 -0
  247. package/dist/client/components/dashboard/dashboardGridUtils.d.ts +1 -1
  248. package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +5 -2
  249. package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +6 -3
  250. package/dist/client/components/dashboardPortletCard/cardStyles.d.ts +2 -0
  251. package/dist/client/components/dashboardPortletCard/portletActionOrder.d.ts +17 -0
  252. package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +2 -0
  253. package/dist/client/components/dashboardPortletCard/usePortletCardActions.d.ts +4 -1
  254. package/dist/client/components.js +5 -5
  255. package/dist/client/components.js.map +1 -1
  256. package/dist/client/hooks/dashboard/layoutUtils.d.ts +32 -1
  257. package/dist/client/hooks/useAnalysisQuery.d.ts +6 -0
  258. package/dist/client/hooks.js +3 -3
  259. package/dist/client/icons/registry.d.ts +3 -1
  260. package/dist/client/icons.js +4 -4
  261. package/dist/client/icons.js.map +1 -1
  262. package/dist/client/index.d.ts +4 -3
  263. package/dist/client/index.js +427 -427
  264. package/dist/client/index.js.map +1 -1
  265. package/dist/client/providers.js +1 -1
  266. package/dist/client/schema.js +1 -1
  267. package/dist/client/shared/chartConfigBuilders.d.ts +5 -2
  268. package/dist/client/shared/chartDefaults.d.ts +11 -1
  269. package/dist/client/styles.css +1 -1
  270. package/dist/client/types.d.ts +34 -0
  271. package/dist/client/utils/colorPalettes.d.ts +25 -0
  272. package/dist/client/utils/exportXlsx.d.ts +7 -0
  273. package/dist/client/utils/index.d.ts +1 -1
  274. package/dist/client/utils.js +14 -14
  275. package/dist/client/utils.js.map +1 -1
  276. package/dist/client-bundle-stats.html +1 -1
  277. package/dist/mcp-app/mcp-app.html +132 -131
  278. package/dist/server/index.cjs +1 -1
  279. package/dist/server/index.js +27 -1
  280. package/package.json +7 -7
  281. package/dist/adapters/ActivityGridChart.config-BDe2_qYC.js +0 -1
  282. package/dist/adapters/ActivityGridChart.config-BY3cUifC.cjs +0 -1
  283. package/dist/adapters/AreaChart.config-CaLEu4WZ.cjs +0 -1
  284. package/dist/adapters/AreaChart.config-upS1qK9z.js +0 -1
  285. package/dist/adapters/BarChart.config-CSbClrlz.cjs +0 -1
  286. package/dist/adapters/BarChart.config-GlYPKS8R.js +0 -1
  287. package/dist/adapters/BoxPlotChart.config-BIxjwA1O.cjs +0 -1
  288. package/dist/adapters/BoxPlotChart.config-DybpbTEl.js +0 -1
  289. package/dist/adapters/BubbleChart.config-CREi46jt.cjs +0 -1
  290. package/dist/adapters/BubbleChart.config-Di8lOOga.js +0 -1
  291. package/dist/adapters/CandlestickChart.config-BrbgDZcn.cjs +0 -1
  292. package/dist/adapters/CandlestickChart.config-CTHDWBM7.js +0 -1
  293. package/dist/adapters/DataTable.config-BpzbJKOY.cjs +0 -1
  294. package/dist/adapters/DataTable.config-DbPDoKSt.js +0 -1
  295. package/dist/adapters/DotStripChart.config-Bkj53d85.cjs +0 -1
  296. package/dist/adapters/DotStripChart.config-Xxte1OgG.js +0 -1
  297. package/dist/adapters/FunnelChart.config-CRbPp-7K.js +0 -1
  298. package/dist/adapters/FunnelChart.config-DfaMSLui.cjs +0 -1
  299. package/dist/adapters/GaugeChart.config-CKKMCRn4.js +0 -1
  300. package/dist/adapters/GaugeChart.config-CN7S1OEB.cjs +0 -1
  301. package/dist/adapters/HeatMapChart.config-BloGhLrU.js +0 -1
  302. package/dist/adapters/HeatMapChart.config-C94iqzfw.cjs +0 -1
  303. package/dist/adapters/KpiDelta.config-CMGQIfsy.cjs +0 -1
  304. package/dist/adapters/KpiDelta.config-qC8_1W29.js +0 -1
  305. package/dist/adapters/KpiNumber.config-CnYoD9WM.js +0 -1
  306. package/dist/adapters/KpiNumber.config-jxzFzY71.cjs +0 -1
  307. package/dist/adapters/KpiText.config--11XBVEz.js +0 -1
  308. package/dist/adapters/KpiText.config-DOYHINgD.cjs +0 -1
  309. package/dist/adapters/LineChart.config-Bt6XKzQj.js +0 -1
  310. package/dist/adapters/LineChart.config-nwC-IWRL.cjs +0 -1
  311. package/dist/adapters/MarkdownChart.config-Br1jAwCf.js +0 -1
  312. package/dist/adapters/MarkdownChart.config-CeqYtwrd.cjs +0 -1
  313. package/dist/adapters/MeasureProfileChart.config-B0G_11c9.js +0 -1
  314. package/dist/adapters/MeasureProfileChart.config-_ZC5pb_I.cjs +0 -1
  315. package/dist/adapters/PieChart.config-CZc5LcmR.js +0 -1
  316. package/dist/adapters/PieChart.config-D1tFIodJ.cjs +0 -1
  317. package/dist/adapters/ProportionBarChart.config-9zHgirKR.cjs +0 -1
  318. package/dist/adapters/ProportionBarChart.config-BMIYtg7Q.js +0 -1
  319. package/dist/adapters/RadarChart.config-CYPyOMbT.js +0 -1
  320. package/dist/adapters/RadarChart.config-mPXx8Moz.cjs +0 -1
  321. package/dist/adapters/RadialBarChart.config-EzhjUjvA.cjs +0 -1
  322. package/dist/adapters/RadialBarChart.config-l9yaKru1.js +0 -1
  323. package/dist/adapters/RecordsTable.config-BNKcGGjX.cjs +0 -1
  324. package/dist/adapters/RecordsTable.config-CbtJMaVG.js +0 -1
  325. package/dist/adapters/RetentionCombinedChart.config-CtJ-q7Gr.js +0 -1
  326. package/dist/adapters/RetentionCombinedChart.config-Y47OjDeH.cjs +0 -1
  327. package/dist/adapters/RetentionHeatmap.config-BqLV6f6o.cjs +0 -1
  328. package/dist/adapters/RetentionHeatmap.config-DPNhEK1p.js +0 -1
  329. package/dist/adapters/SankeyChart.config-Dipd6fNz.cjs +0 -1
  330. package/dist/adapters/SankeyChart.config-DpK5pFy5.js +0 -1
  331. package/dist/adapters/ScatterChart.config-BfDDAH83.cjs +0 -1
  332. package/dist/adapters/ScatterChart.config-C90xKdE-.js +0 -1
  333. package/dist/adapters/SunburstChart.config-CacceE1E.cjs +0 -1
  334. package/dist/adapters/SunburstChart.config-MoFnOy0s.js +0 -1
  335. package/dist/adapters/TreeMapChart.config-BYHi-dzk.js +0 -1
  336. package/dist/adapters/TreeMapChart.config-CWSspab0.cjs +0 -1
  337. package/dist/adapters/WaterfallChart.config-CiOnjcsk.cjs +0 -1
  338. package/dist/adapters/WaterfallChart.config-TNtq-2mo.js +0 -1
  339. package/dist/adapters/utils-0Afl53Xc.cjs +0 -141
  340. package/dist/client/chunks/BubbleChart-DiloeKCW.js.map +0 -1
  341. package/dist/client/chunks/DashboardEditModal-6N8H3lXW.js.map +0 -1
  342. package/dist/client/chunks/MarkdownChart-_aif5Ye3.js.map +0 -1
  343. package/dist/client/chunks/analysis-builder-BMoycXCE.js.map +0 -1
  344. package/dist/client/chunks/analysis-builder-shared-D1KnOXT2.js.map +0 -1
  345. package/dist/client/chunks/chart-markdown-B1AZcI8Y.js +0 -68
  346. package/dist/client/chunks/chart-markdown-B1AZcI8Y.js.map +0 -1
  347. package/dist/client/chunks/chartComponentRegistry-lrQVhpz2.js.map +0 -1
  348. package/dist/client/chunks/dist-CiyOP0NN.js.map +0 -1
  349. package/dist/client/chunks/exportXlsx-Dnc0ZOJW.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"chartPlugin-QJVPr2DC.js","names":["unregisterConfigFromCache","registerConfigToCache","registerChartComponent","unregisterChartComponent","registerCustomChartEntry","getCustomChartEntry","composeChartConfig","unregisterCustomChartEntry","chartRegistry","barChartConfig","lineChartConfig","areaChartConfig","pieChartConfig","scatterChartConfig","bubbleChartConfig","radarChartConfig","radialBarChartConfig","treemapChartConfig","dataTableConfig","recordsTableConfig","activityGridChartConfig","kpiNumberConfig","kpiDeltaConfig","kpiTextConfig","markdownConfig","funnelChartConfig","sankeyChartConfig","sunburstChartConfig","heatmapChartConfig","retentionHeatmapConfig","retentionCombinedConfig","boxPlotChartConfig","dotStripChartConfig","waterfallChartConfig","candlestickChartConfig","measureProfileChartConfig","proportionBarChartConfig","gaugeChartConfig","baseConfigs","chartConfigRegistry","type","isRecordGrainChart","chartType","registerChartConfig","config","unregisterChartConfig","chartDefinitionToEntry","definition","chartPluginRegistry","backup","icon","listener"],"sources":["../../../src/client/charts/chartConfigRegistry.ts","../../../src/client/charts/chartPlugin.ts"],"sourcesContent":["import { barChartConfig } from '../components/charts/BarChart.config.js'\nimport { lineChartConfig } from '../components/charts/LineChart.config.js'\nimport { areaChartConfig } from '../components/charts/AreaChart.config.js'\nimport { pieChartConfig } from '../components/charts/PieChart.config.js'\nimport { scatterChartConfig } from '../components/charts/ScatterChart.config.js'\nimport { bubbleChartConfig } from '../components/charts/BubbleChart.config.js'\nimport { radarChartConfig } from '../components/charts/RadarChart.config.js'\nimport { radialBarChartConfig } from '../components/charts/RadialBarChart.config.js'\nimport { treemapChartConfig } from '../components/charts/TreeMapChart.config.js'\nimport { dataTableConfig } from '../components/charts/DataTable.config.js'\nimport { recordsTableConfig } from '../components/charts/RecordsTable.config.js'\nimport { activityGridChartConfig } from '../components/charts/ActivityGridChart.config.js'\nimport { kpiNumberConfig } from '../components/charts/KpiNumber.config.js'\nimport { kpiDeltaConfig } from '../components/charts/KpiDelta.config.js'\nimport { kpiTextConfig } from '../components/charts/KpiText.config.js'\nimport { markdownConfig } from '../components/charts/MarkdownChart.config.js'\nimport { funnelChartConfig } from '../components/charts/FunnelChart.config.js'\nimport { sankeyChartConfig } from '../components/charts/SankeyChart.config.js'\nimport { sunburstChartConfig } from '../components/charts/SunburstChart.config.js'\nimport { heatmapChartConfig } from '../components/charts/HeatMapChart.config.js'\nimport { retentionHeatmapConfig } from '../components/charts/RetentionHeatmap.config.js'\nimport { retentionCombinedConfig } from '../components/charts/RetentionCombinedChart.config.js'\nimport { boxPlotChartConfig } from '../components/charts/BoxPlotChart.config.js'\nimport { dotStripChartConfig } from '../components/charts/DotStripChart.config.js'\nimport { waterfallChartConfig } from '../components/charts/WaterfallChart.config.js'\nimport { candlestickChartConfig } from '../components/charts/CandlestickChart.config.js'\nimport { measureProfileChartConfig } from '../components/charts/MeasureProfileChart.config.js'\nimport { proportionBarChartConfig } from '../components/charts/ProportionBarChart.config.js'\nimport { gaugeChartConfig } from '../components/charts/GaugeChart.config.js'\nimport type { BuiltInChartType } from '../types.js'\nimport type { ChartTypeConfig, ChartConfigRegistry } from './chartConfigs.js'\nimport { chartRegistry, composeChartConfig } from './chartRegistry.js'\n\n/**\n * Statically-imported full config shapes (drop zones, display options, clickable\n * elements, validation) for every built-in chart. These are the lazy-loaded\n * side of a chart, but the eager registry below needs them synchronously because\n * the server agent reads drop zones for mandatory-zone validation and tool\n * guidance. Eager metadata (label/description/useCase/isAvailable) is NOT here —\n * it lives on the `chartRegistry` entry, its single source of truth.\n */\nconst baseConfigs: Record<BuiltInChartType, ChartTypeConfig> = {\n bar: barChartConfig,\n line: lineChartConfig,\n area: areaChartConfig,\n pie: pieChartConfig,\n scatter: scatterChartConfig,\n bubble: bubbleChartConfig,\n radar: radarChartConfig,\n radialBar: radialBarChartConfig,\n treemap: treemapChartConfig,\n table: dataTableConfig,\n recordsTable: recordsTableConfig,\n activityGrid: activityGridChartConfig,\n kpiNumber: kpiNumberConfig,\n kpiDelta: kpiDeltaConfig,\n kpiText: kpiTextConfig,\n markdown: markdownConfig,\n funnel: funnelChartConfig,\n sankey: sankeyChartConfig,\n sunburst: sunburstChartConfig,\n heatmap: heatmapChartConfig,\n retentionHeatmap: retentionHeatmapConfig,\n retentionCombined: retentionCombinedConfig,\n boxPlot: boxPlotChartConfig,\n dotStrip: dotStripChartConfig,\n waterfall: waterfallChartConfig,\n candlestick: candlestickChartConfig,\n measureProfile: measureProfileChartConfig,\n proportionBar: proportionBarChartConfig,\n gauge: gaugeChartConfig,\n}\n\n/**\n * Registry of all chart type configurations (the eager / full / server source).\n *\n * Every built-in is composed from its `chartRegistry` entry's metadata (single\n * source of truth) laid over its full config shape. Drop zones / display options\n * stay here in full because the server agent reads them synchronously.\n */\nexport const chartConfigRegistry: ChartConfigRegistry = Object.fromEntries(\n (Object.keys(chartRegistry) as BuiltInChartType[]).map((type) => [\n type,\n composeChartConfig(chartRegistry[type], baseConfigs[type]),\n ])\n)\n\n/**\n * Whether a chart lists records rather than aggregates, and so needs an\n * `ungrouped` query.\n *\n * Reads the eager registry so the query builders need no chart-type switch.\n */\nexport function isRecordGrainChart(chartType: string): boolean {\n return chartConfigRegistry[chartType]?.recordGrain === true\n}\n\n/**\n * Register a custom chart config into the registry.\n * Used by the chart plugin system.\n */\nexport function registerChartConfig(type: string, config: ChartTypeConfig): void {\n chartConfigRegistry[type] = config\n}\n\n/**\n * Unregister a chart config from the registry.\n * Used by the chart plugin system.\n */\nexport function unregisterChartConfig(type: string): void {\n delete chartConfigRegistry[type]\n}\n","/**\n * Chart Plugin System\n *\n * Provides a public API for registering custom chart types at runtime.\n * Custom charts can extend the built-in set or override existing chart types.\n *\n * Registration via CubeProvider (recommended):\n * ```tsx\n * <CubeProvider customCharts={[{ type: 'gantt', label: 'Gantt', config, component }]}>\n * ```\n *\n * Imperative registration (library authors):\n * ```ts\n * import { chartPluginRegistry } from 'drizzle-cube/client'\n * chartPluginRegistry.register({ type: 'gantt', label: 'Gantt', config, component })\n * ```\n */\n\nimport type { ComponentType } from 'react'\nimport type { ChartProps } from '../types.js'\nimport type { ChartTypeConfig } from './chartConfigs.js'\nimport type { IconProps } from '../icons/types.js'\nimport { registerChartConfig, unregisterChartConfig, chartConfigRegistry } from './chartConfigRegistry.js'\nimport { registerConfigToCache, unregisterConfigFromCache } from './lazyChartConfigRegistry.js'\nimport { registerChartComponent, unregisterChartComponent } from './chartComponentRegistry.js'\nimport {\n type ChartRegistryEntry,\n registerCustomChartEntry,\n unregisterCustomChartEntry,\n getCustomChartEntry,\n} from './chartRegistry.js'\n\n/**\n * Map a custom `ChartDefinition` onto the unified `ChartRegistryEntry` shape —\n * the same shape built-in charts use — so both flow through one lookup path.\n * `config` is the label-normalized config; the entry's lazy thunk resolves the\n * provided config object directly (it is already in memory, not code-split).\n */\nfunction chartDefinitionToEntry(\n definition: ChartDefinition,\n config: ChartTypeConfig\n): ChartRegistryEntry {\n return {\n label: config.label ?? definition.label,\n // Plugins supply a ready-made icon component; absent one, use the bar icon.\n icon: definition.icon ?? 'chartBar',\n description: config.description,\n useCase: config.useCase,\n isAvailable: config.isAvailable,\n dependencies: definition.dependencies,\n config: async () => config,\n }\n}\n\n/**\n * Complete definition for registering a custom chart type.\n * Bundles component, config metadata, and optional icon.\n */\nexport interface ChartDefinition {\n /** Unique chart type identifier (e.g., 'myGantt', 'customBar') */\n type: string\n\n /** Display label for the chart type picker */\n label: string\n\n /** Chart type configuration (drop zones, display options, validation) */\n config: ChartTypeConfig\n\n /** The chart component (eager — loaded immediately) */\n component?: ComponentType<ChartProps>\n\n /** Lazy-loaded chart component (for code splitting). Use instead of `component`. */\n lazyComponent?: () => Promise<{ default: ComponentType<ChartProps> }>\n\n /** Optional icon component for the chart type picker */\n icon?: ComponentType<IconProps>\n\n /** Optional dependency info — shows install instructions if the import fails */\n dependencies?: {\n packageName: string\n installCommand: string\n }\n}\n\n/**\n * Central registry for custom chart plugins.\n *\n * Coordinates registration across the three internal registries\n * (config, lazy config cache, chart loader) and provides a\n * `useSyncExternalStore`-compatible subscription API for React reactivity.\n */\nclass ChartPluginRegistry {\n private customCharts = new Map<string, ChartDefinition>()\n private builtInBackups = new Map<string, ChartTypeConfig>()\n private version = 0\n private listeners = new Set<() => void>()\n\n /**\n * Register a custom chart definition.\n * If `type` matches a built-in chart, the built-in is backed up and can be\n * restored by calling `unregister()`.\n */\n register(definition: ChartDefinition): void {\n // Ensure the config has the label set\n const config: ChartTypeConfig = {\n ...definition.config,\n label: definition.config.label || definition.label,\n }\n\n // Backup built-in config if overriding and not already backed up\n if (\n chartConfigRegistry[definition.type] &&\n !this.builtInBackups.has(definition.type) &&\n !this.customCharts.has(definition.type)\n ) {\n this.builtInBackups.set(definition.type, chartConfigRegistry[definition.type])\n }\n\n // Store the definition\n this.customCharts.set(definition.type, definition)\n\n // Produce the unified entry — the single source of truth both built-in and\n // custom charts share — and register the component graph alongside it.\n registerCustomChartEntry(definition.type, chartDefinitionToEntry(definition, config))\n registerChartConfig(definition.type, config)\n registerConfigToCache(definition.type, config)\n registerChartComponent(\n definition.type,\n definition.component,\n definition.lazyComponent,\n definition.dependencies\n )\n\n this.bump()\n }\n\n /**\n * Unregister a custom chart.\n * If the chart type was a built-in override, the original built-in is restored.\n */\n unregister(type: string): void {\n if (!this.customCharts.has(type)) return\n\n this.customCharts.delete(type)\n unregisterCustomChartEntry(type)\n\n // Restore built-in backup if exists\n const backup = this.builtInBackups.get(type)\n if (backup) {\n registerChartConfig(type, backup)\n registerConfigToCache(type, backup)\n this.builtInBackups.delete(type)\n } else {\n unregisterChartConfig(type)\n unregisterConfigFromCache(type)\n }\n\n // Always unregister the custom component\n unregisterChartComponent(type)\n\n this.bump()\n }\n\n /** Get the custom icon component for a chart type, if one was registered. */\n getIcon(type: string): ComponentType<IconProps> | undefined {\n // Derived from the unified entry — a string icon is a built-in IconName, so\n // only a component value counts as a plugin-supplied icon here.\n const icon = getCustomChartEntry(type)?.icon\n return icon && typeof icon !== 'string' ? icon : undefined\n }\n\n /** Get all registered custom chart type strings */\n getCustomTypes(): string[] {\n return Array.from(this.customCharts.keys())\n }\n\n /** Check if a chart type is a custom plugin (not built-in) */\n isCustom(type: string): boolean {\n return this.customCharts.has(type)\n }\n\n /**\n * Subscribe to registry changes.\n * Compatible with React's `useSyncExternalStore`.\n */\n subscribe = (listener: () => void): (() => void) => {\n this.listeners.add(listener)\n return () => {\n this.listeners.delete(listener)\n }\n }\n\n /**\n * Get a snapshot of the registry version.\n * Compatible with React's `useSyncExternalStore`.\n */\n getSnapshot = (): number => {\n return this.version\n }\n\n private bump(): void {\n this.version++\n for (const listener of this.listeners) {\n listener()\n }\n }\n}\n\n/** Singleton chart plugin registry */\nexport const chartPluginRegistry = new ChartPluginRegistry()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,IAAMsC,IAAyD;CAC7D,KAAK7B;CACL,MAAMC;CACN,MAAMC;CACN,KAAKC;CACL,SAASC;CACT,QAAQC;CACR,OAAOC;CACP,WAAWC;CACX,SAASC;CACT,OAAOC;CACP,cAAcC;CACd,cAAcC;CACd,WAAWC;CACX,UAAUC;CACV,SAASC;CACT,UAAUC;CACV,QAAQC;CACR,QAAQC;CACR,UAAUC;CACV,SAASC;CACT,kBAAkBC;CAClB,mBAAmBC;CACnB,SAASC;CACT,UAAUC;CACV,WAAWC;CACX,aAAaC;CACb,gBAAgBC;CAChB,eAAeC;CACf,OAAOC;AACT,GASaE,IAA2C,OAAO,YAC5D,OAAO,KAAK/B,CAAa,CAAC,CAAwB,KAAK,MAAS,CAC/DgC,GACAlC,EAAmBE,EAAcgC,IAAOF,EAAYE,EAAK,CAC3D,CAAC,CACH;AAQA,SAAgBC,EAAmB,GAA4B;CAC7D,OAAOF,EAAoBG,EAAU,EAAE,gBAAgB;AACzD;AAMA,SAAgBC,EAAoB,GAAc,GAA+B;CAC/E,EAAoBH,KAAQI;AAC9B;AAMA,SAAgBC,EAAsB,GAAoB;CACxD,OAAON,EAAoBC;AAC7B;;;ACzEA,SAASM,EACP,GACA,GACoB;CACpB,OAAO;EACL,OAAOF,EAAO,SAASG,EAAW;EAElC,MAAMA,EAAW,QAAQ;EACzB,aAAaH,EAAO;EACpB,SAASA,EAAO;EAChB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AS,WAAWA,IAAO,KAAA;CACnD;CAGA,iBAA2B;EACzB,OAAO,MAAM,KAAK,KAAK,aAAa,KAAK,CAAC;CAC5C;CAGA,SAAS,GAAuB;EAC9B,OAAO,KAAK,aAAa,IAAIV,CAAI;CACnC;CAMA,aAAa,OACX,KAAK,UAAU,IAAIW,CAAQ,SACd;EACX,KAAK,UAAU,OAAOA,CAAQ;CAChC;CAOF,oBACS,KAAK;CAGd,OAAqB;EACnB,KAAK;EACL,KAAK,IAAMA,KAAY,KAAK,WAC1B,EAAS;CAEb;AACF,EAG2D"}
1
+ {"version":3,"file":"chartPlugin-DnQOiDRV.js","names":["unregisterConfigFromCache","registerConfigToCache","registerChartComponent","unregisterChartComponent","registerCustomChartEntry","getCustomChartEntry","composeChartConfig","unregisterCustomChartEntry","chartRegistry","barChartConfig","lineChartConfig","areaChartConfig","pieChartConfig","scatterChartConfig","bubbleChartConfig","radarChartConfig","radialBarChartConfig","treemapChartConfig","dataTableConfig","recordsTableConfig","activityGridChartConfig","kpiNumberConfig","kpiDeltaConfig","kpiTextConfig","markdownConfig","funnelChartConfig","sankeyChartConfig","sunburstChartConfig","heatmapChartConfig","retentionHeatmapConfig","retentionCombinedConfig","boxPlotChartConfig","dotStripChartConfig","waterfallChartConfig","candlestickChartConfig","measureProfileChartConfig","proportionBarChartConfig","gaugeChartConfig","baseConfigs","chartConfigRegistry","type","isRecordGrainChart","chartType","registerChartConfig","config","unregisterChartConfig","chartDefinitionToEntry","definition","chartPluginRegistry","backup","icon","listener"],"sources":["../../../src/client/charts/chartConfigRegistry.ts","../../../src/client/charts/chartPlugin.ts"],"sourcesContent":["import { barChartConfig } from '../components/charts/BarChart.config.js'\nimport { lineChartConfig } from '../components/charts/LineChart.config.js'\nimport { areaChartConfig } from '../components/charts/AreaChart.config.js'\nimport { pieChartConfig } from '../components/charts/PieChart.config.js'\nimport { scatterChartConfig } from '../components/charts/ScatterChart.config.js'\nimport { bubbleChartConfig } from '../components/charts/BubbleChart.config.js'\nimport { radarChartConfig } from '../components/charts/RadarChart.config.js'\nimport { radialBarChartConfig } from '../components/charts/RadialBarChart.config.js'\nimport { treemapChartConfig } from '../components/charts/TreeMapChart.config.js'\nimport { dataTableConfig } from '../components/charts/DataTable.config.js'\nimport { recordsTableConfig } from '../components/charts/RecordsTable.config.js'\nimport { activityGridChartConfig } from '../components/charts/ActivityGridChart.config.js'\nimport { kpiNumberConfig } from '../components/charts/KpiNumber.config.js'\nimport { kpiDeltaConfig } from '../components/charts/KpiDelta.config.js'\nimport { kpiTextConfig } from '../components/charts/KpiText.config.js'\nimport { markdownConfig } from '../components/charts/MarkdownChart.config.js'\nimport { funnelChartConfig } from '../components/charts/FunnelChart.config.js'\nimport { sankeyChartConfig } from '../components/charts/SankeyChart.config.js'\nimport { sunburstChartConfig } from '../components/charts/SunburstChart.config.js'\nimport { heatmapChartConfig } from '../components/charts/HeatMapChart.config.js'\nimport { retentionHeatmapConfig } from '../components/charts/RetentionHeatmap.config.js'\nimport { retentionCombinedConfig } from '../components/charts/RetentionCombinedChart.config.js'\nimport { boxPlotChartConfig } from '../components/charts/BoxPlotChart.config.js'\nimport { dotStripChartConfig } from '../components/charts/DotStripChart.config.js'\nimport { waterfallChartConfig } from '../components/charts/WaterfallChart.config.js'\nimport { candlestickChartConfig } from '../components/charts/CandlestickChart.config.js'\nimport { measureProfileChartConfig } from '../components/charts/MeasureProfileChart.config.js'\nimport { proportionBarChartConfig } from '../components/charts/ProportionBarChart.config.js'\nimport { gaugeChartConfig } from '../components/charts/GaugeChart.config.js'\nimport type { BuiltInChartType } from '../types.js'\nimport type { ChartTypeConfig, ChartConfigRegistry } from './chartConfigs.js'\nimport { chartRegistry, composeChartConfig } from './chartRegistry.js'\n\n/**\n * Statically-imported full config shapes (drop zones, display options, clickable\n * elements, validation) for every built-in chart. These are the lazy-loaded\n * side of a chart, but the eager registry below needs them synchronously because\n * the server agent reads drop zones for mandatory-zone validation and tool\n * guidance. Eager metadata (label/description/useCase/isAvailable) is NOT here —\n * it lives on the `chartRegistry` entry, its single source of truth.\n */\nconst baseConfigs: Record<BuiltInChartType, ChartTypeConfig> = {\n bar: barChartConfig,\n line: lineChartConfig,\n area: areaChartConfig,\n pie: pieChartConfig,\n scatter: scatterChartConfig,\n bubble: bubbleChartConfig,\n radar: radarChartConfig,\n radialBar: radialBarChartConfig,\n treemap: treemapChartConfig,\n table: dataTableConfig,\n recordsTable: recordsTableConfig,\n activityGrid: activityGridChartConfig,\n kpiNumber: kpiNumberConfig,\n kpiDelta: kpiDeltaConfig,\n kpiText: kpiTextConfig,\n markdown: markdownConfig,\n funnel: funnelChartConfig,\n sankey: sankeyChartConfig,\n sunburst: sunburstChartConfig,\n heatmap: heatmapChartConfig,\n retentionHeatmap: retentionHeatmapConfig,\n retentionCombined: retentionCombinedConfig,\n boxPlot: boxPlotChartConfig,\n dotStrip: dotStripChartConfig,\n waterfall: waterfallChartConfig,\n candlestick: candlestickChartConfig,\n measureProfile: measureProfileChartConfig,\n proportionBar: proportionBarChartConfig,\n gauge: gaugeChartConfig,\n}\n\n/**\n * Registry of all chart type configurations (the eager / full / server source).\n *\n * Every built-in is composed from its `chartRegistry` entry's metadata (single\n * source of truth) laid over its full config shape. Drop zones / display options\n * stay here in full because the server agent reads them synchronously.\n */\nexport const chartConfigRegistry: ChartConfigRegistry = Object.fromEntries(\n (Object.keys(chartRegistry) as BuiltInChartType[]).map((type) => [\n type,\n composeChartConfig(chartRegistry[type], baseConfigs[type]),\n ])\n)\n\n/**\n * Whether a chart lists records rather than aggregates, and so needs an\n * `ungrouped` query.\n *\n * Reads the eager registry so the query builders need no chart-type switch.\n */\nexport function isRecordGrainChart(chartType: string): boolean {\n return chartConfigRegistry[chartType]?.recordGrain === true\n}\n\n/**\n * Register a custom chart config into the registry.\n * Used by the chart plugin system.\n */\nexport function registerChartConfig(type: string, config: ChartTypeConfig): void {\n chartConfigRegistry[type] = config\n}\n\n/**\n * Unregister a chart config from the registry.\n * Used by the chart plugin system.\n */\nexport function unregisterChartConfig(type: string): void {\n delete chartConfigRegistry[type]\n}\n","/**\n * Chart Plugin System\n *\n * Provides a public API for registering custom chart types at runtime.\n * Custom charts can extend the built-in set or override existing chart types.\n *\n * Registration via CubeProvider (recommended):\n * ```tsx\n * <CubeProvider customCharts={[{ type: 'gantt', label: 'Gantt', config, component }]}>\n * ```\n *\n * Imperative registration (library authors):\n * ```ts\n * import { chartPluginRegistry } from 'drizzle-cube/client'\n * chartPluginRegistry.register({ type: 'gantt', label: 'Gantt', config, component })\n * ```\n */\n\nimport type { ComponentType } from 'react'\nimport type { ChartProps } from '../types.js'\nimport type { ChartTypeConfig } from './chartConfigs.js'\nimport type { IconProps } from '../icons/types.js'\nimport { registerChartConfig, unregisterChartConfig, chartConfigRegistry } from './chartConfigRegistry.js'\nimport { registerConfigToCache, unregisterConfigFromCache } from './lazyChartConfigRegistry.js'\nimport { registerChartComponent, unregisterChartComponent } from './chartComponentRegistry.js'\nimport {\n type ChartRegistryEntry,\n registerCustomChartEntry,\n unregisterCustomChartEntry,\n getCustomChartEntry,\n} from './chartRegistry.js'\n\n/**\n * Map a custom `ChartDefinition` onto the unified `ChartRegistryEntry` shape —\n * the same shape built-in charts use — so both flow through one lookup path.\n * `config` is the label-normalized config; the entry's lazy thunk resolves the\n * provided config object directly (it is already in memory, not code-split).\n */\nfunction chartDefinitionToEntry(\n definition: ChartDefinition,\n config: ChartTypeConfig\n): ChartRegistryEntry {\n return {\n label: config.label ?? definition.label,\n // Plugins supply a ready-made icon component; absent one, use the bar icon.\n icon: definition.icon ?? 'chartBar',\n description: config.description,\n useCase: config.useCase,\n isAvailable: config.isAvailable,\n dependencies: definition.dependencies,\n config: async () => config,\n }\n}\n\n/**\n * Complete definition for registering a custom chart type.\n * Bundles component, config metadata, and optional icon.\n */\nexport interface ChartDefinition {\n /** Unique chart type identifier (e.g., 'myGantt', 'customBar') */\n type: string\n\n /** Display label for the chart type picker */\n label: string\n\n /** Chart type configuration (drop zones, display options, validation) */\n config: ChartTypeConfig\n\n /** The chart component (eager — loaded immediately) */\n component?: ComponentType<ChartProps>\n\n /** Lazy-loaded chart component (for code splitting). Use instead of `component`. */\n lazyComponent?: () => Promise<{ default: ComponentType<ChartProps> }>\n\n /** Optional icon component for the chart type picker */\n icon?: ComponentType<IconProps>\n\n /** Optional dependency info — shows install instructions if the import fails */\n dependencies?: {\n packageName: string\n installCommand: string\n }\n}\n\n/**\n * Central registry for custom chart plugins.\n *\n * Coordinates registration across the three internal registries\n * (config, lazy config cache, chart loader) and provides a\n * `useSyncExternalStore`-compatible subscription API for React reactivity.\n */\nclass ChartPluginRegistry {\n private customCharts = new Map<string, ChartDefinition>()\n private builtInBackups = new Map<string, ChartTypeConfig>()\n private version = 0\n private listeners = new Set<() => void>()\n\n /**\n * Register a custom chart definition.\n * If `type` matches a built-in chart, the built-in is backed up and can be\n * restored by calling `unregister()`.\n */\n register(definition: ChartDefinition): void {\n // Ensure the config has the label set\n const config: ChartTypeConfig = {\n ...definition.config,\n label: definition.config.label || definition.label,\n }\n\n // Backup built-in config if overriding and not already backed up\n if (\n chartConfigRegistry[definition.type] &&\n !this.builtInBackups.has(definition.type) &&\n !this.customCharts.has(definition.type)\n ) {\n this.builtInBackups.set(definition.type, chartConfigRegistry[definition.type])\n }\n\n // Store the definition\n this.customCharts.set(definition.type, definition)\n\n // Produce the unified entry — the single source of truth both built-in and\n // custom charts share — and register the component graph alongside it.\n registerCustomChartEntry(definition.type, chartDefinitionToEntry(definition, config))\n registerChartConfig(definition.type, config)\n registerConfigToCache(definition.type, config)\n registerChartComponent(\n definition.type,\n definition.component,\n definition.lazyComponent,\n definition.dependencies\n )\n\n this.bump()\n }\n\n /**\n * Unregister a custom chart.\n * If the chart type was a built-in override, the original built-in is restored.\n */\n unregister(type: string): void {\n if (!this.customCharts.has(type)) return\n\n this.customCharts.delete(type)\n unregisterCustomChartEntry(type)\n\n // Restore built-in backup if exists\n const backup = this.builtInBackups.get(type)\n if (backup) {\n registerChartConfig(type, backup)\n registerConfigToCache(type, backup)\n this.builtInBackups.delete(type)\n } else {\n unregisterChartConfig(type)\n unregisterConfigFromCache(type)\n }\n\n // Always unregister the custom component\n unregisterChartComponent(type)\n\n this.bump()\n }\n\n /** Get the custom icon component for a chart type, if one was registered. */\n getIcon(type: string): ComponentType<IconProps> | undefined {\n // Derived from the unified entry — a string icon is a built-in IconName, so\n // only a component value counts as a plugin-supplied icon here.\n const icon = getCustomChartEntry(type)?.icon\n return icon && typeof icon !== 'string' ? icon : undefined\n }\n\n /** Get all registered custom chart type strings */\n getCustomTypes(): string[] {\n return Array.from(this.customCharts.keys())\n }\n\n /** Check if a chart type is a custom plugin (not built-in) */\n isCustom(type: string): boolean {\n return this.customCharts.has(type)\n }\n\n /**\n * Subscribe to registry changes.\n * Compatible with React's `useSyncExternalStore`.\n */\n subscribe = (listener: () => void): (() => void) => {\n this.listeners.add(listener)\n return () => {\n this.listeners.delete(listener)\n }\n }\n\n /**\n * Get a snapshot of the registry version.\n * Compatible with React's `useSyncExternalStore`.\n */\n getSnapshot = (): number => {\n return this.version\n }\n\n private bump(): void {\n this.version++\n for (const listener of this.listeners) {\n listener()\n }\n }\n}\n\n/** Singleton chart plugin registry */\nexport const chartPluginRegistry = new ChartPluginRegistry()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,IAAMsC,IAAyD;CAC7D,KAAK7B;CACL,MAAMC;CACN,MAAMC;CACN,KAAKC;CACL,SAASC;CACT,QAAQC;CACR,OAAOC;CACP,WAAWC;CACX,SAASC;CACT,OAAOC;CACP,cAAcC;CACd,cAAcC;CACd,WAAWC;CACX,UAAUC;CACV,SAASC;CACT,UAAUC;CACV,QAAQC;CACR,QAAQC;CACR,UAAUC;CACV,SAASC;CACT,kBAAkBC;CAClB,mBAAmBC;CACnB,SAASC;CACT,UAAUC;CACV,WAAWC;CACX,aAAaC;CACb,gBAAgBC;CAChB,eAAeC;CACf,OAAOC;AACT,GASaE,IAA2C,OAAO,Y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oB;EAC7B,IAAI,CAAC,KAAK,aAAa,IAAIP,CAAI,GAAG;EAGlC,AADA,KAAK,aAAa,OAAOA,CAAI,GAC7BjC,EAA2BiC,CAAI;EAG/B,IAAMS,IAAS,KAAK,eAAe,IAAIT,CAAI;EAa3C,AAZIS,KACFN,EAAoBH,GAAMS,CAAM,GAChChD,EAAsBuC,GAAMS,CAAM,GAClC,KAAK,eAAe,OAAOT,CAAI,MAE/BK,EAAsBL,CAAI,GAC1BxC,EAA0BwC,CAAI,IAIhCrC,EAAyBqC,CAAI,GAE7B,KAAK,KAAK;CACZ;CAGA,QAAQ,GAAoD;EAG1D,IAAMU,IAAO7C,EAAoBmC,CAAI,CAAC,EAAE;EACxC,OAAOU,KAAQ,OAAOA,KAAS,WAAWA,IAAO,KAAA;CACnD;CAGA,iBAA2B;EACzB,OAAO,MAAM,KAAK,KAAK,aAAa,KAAK,CAAC;CAC5C;CAGA,SAAS,GAAuB;EAC9B,OAAO,KAAK,aAAa,IAAIV,CAAI;CACnC;CAMA,aAAa,OACX,KAAK,UAAU,IAAIW,CAAQ,SACd;EACX,KAAK,UAAU,OAAOA,CAAQ;CAChC;CAOF,oBACS,KAAK;CAGd,OAAqB;EACnB,KAAK;EACL,KAAK,IAAMA,KAAY,KAAK,WAC1B,EAAS;CAEb;AACF,EAG2D"}
@@ -1,4 +1,4 @@
1
- import { t as e } from "./useTranslation-F7BGje95.js";
1
+ import { t as e } from "./useTranslation-DO5KRcwD.js";
2
2
  import { t } from "./LoadingIndicator-DQ0k6L2K.js";
3
3
  import { r as n } from "./chartUtils-BDj8NT4c.js";
4
4
  import { startTransition as r, useLayoutEffect as i, useRef as a, useState as o } from "react";
@@ -134,4 +134,4 @@ function p({ formatter: e, labelFormatter: t }) {
134
134
  //#endregion
135
135
  export { d as n, p as t };
136
136
 
137
- //# sourceMappingURL=charts-core-USDYqnlX.js.map
137
+ //# sourceMappingURL=charts-core-BsheHP0O.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"charts-core-USDYqnlX.js","names":["useTranslation","formatNumericValue","ChartContainer","effectiveMinHeight","minHeight","containerRef","useRef","isReady","setIsReady","useState","containerSize","setContainerSize","sizeRef","readyRef","pendingSizeRef","frameRef","mounted","resizeObserver","flushPendingSize","pending","nextWidth","nextHeight","sizeChanged","shouldBecomeReady","startTransition","scheduleSizeUpdate","entry","entries","entryHeight","width","rect","measuredHeight","height","ResponsiveContainer","LoadingIndicator","containerStyle","error","t","defaultFormatter","value","name","ChartTooltip","Tooltip","formatter"],"sources":["../../../src/client/components/charts/ChartContainer.tsx","../../../src/client/components/charts/ChartTooltip.tsx"],"sourcesContent":["import { ReactElement, useState, useRef, useLayoutEffect, startTransition } from 'react'\nimport { ResponsiveContainer } from 'recharts'\nimport { useTranslation } from '../../hooks/useTranslation.js'\nimport LoadingIndicator from '../LoadingIndicator.js'\n\ninterface ChartContainerProps {\n children: ReactElement\n height?: string | number\n /**\n * Override the default minimum height. Charts that share their portlet with\n * another element - a wrapped summary header, say - need the plot to shrink\n * rather than push past the card.\n */\n minHeight?: string | number\n}\n\nexport default function ChartContainer({\n children,\n height = \"100%\",\n minHeight\n}: ChartContainerProps) {\n // The default floor keeps a lone chart from collapsing, but it also stops the\n // plot shrinking when something else shares the portlet (e.g. a summary\n // header that has wrapped). Callers in that position pass a smaller floor.\n const effectiveMinHeight = minHeight ?? undefined\n const { t } = useTranslation()\n // Track if container is ready to render ResponsiveContainer\n // We need to wait for the container to be in the DOM with valid dimensions\n const containerRef = useRef<HTMLDivElement>(null)\n const [isReady, setIsReady] = useState(false)\n const [containerSize, setContainerSize] = useState({ width: 0, height: 0 })\n const sizeRef = useRef({ width: 0, height: 0 })\n const readyRef = useRef(false)\n const pendingSizeRef = useRef<{ width: number; height: number } | null>(null)\n const frameRef = useRef<number | null>(null)\n\n // Use useLayoutEffect to measure before paint\n useLayoutEffect(() => {\n let mounted = true\n let resizeObserver: ResizeObserver | null = null\n\n const flushPendingSize = () => {\n frameRef.current = null\n if (!mounted) return\n const pending = pendingSizeRef.current\n pendingSizeRef.current = null\n if (!pending) return\n\n const nextWidth = Math.round(pending.width)\n const nextHeight = Math.round(pending.height)\n if (nextWidth <= 0 || nextHeight <= 0) return\n\n const sizeChanged =\n sizeRef.current.width !== nextWidth || sizeRef.current.height !== nextHeight\n const shouldBecomeReady = !readyRef.current\n\n if (!sizeChanged && !shouldBecomeReady) return\n\n sizeRef.current = { width: nextWidth, height: nextHeight }\n readyRef.current = true\n\n // Resize-driven chart updates can come in bursts (one per portlet).\n // Transitioning these avoids blocking urgent input and coalesces visual work.\n startTransition(() => {\n if (sizeChanged) {\n setContainerSize({ width: nextWidth, height: nextHeight })\n }\n if (shouldBecomeReady) {\n setIsReady(true)\n }\n })\n }\n\n const scheduleSizeUpdate = (width: number, height: number) => {\n pendingSizeRef.current = { width, height }\n if (frameRef.current === null) {\n frameRef.current = requestAnimationFrame(flushPendingSize)\n }\n }\n\n const measureAndSetReady = () => {\n if (!mounted || !containerRef.current) return\n\n const rect = containerRef.current.getBoundingClientRect()\n // Check both clientWidth/Height AND getBoundingClientRect for robustness\n const width = Math.max(containerRef.current.clientWidth, rect.width)\n const measuredHeight = Math.max(containerRef.current.clientHeight, rect.height)\n\n if (width > 0 && measuredHeight > 0) {\n scheduleSizeUpdate(width, measuredHeight)\n }\n }\n\n // Set up ResizeObserver to detect when container gets valid dimensions\n resizeObserver = new ResizeObserver((entries) => {\n for (const entry of entries) {\n const { width, height: entryHeight } = entry.contentRect\n if (width > 0 && entryHeight > 0) {\n scheduleSizeUpdate(width, entryHeight)\n }\n }\n })\n\n if (containerRef.current) {\n resizeObserver.observe(containerRef.current)\n // Also try immediate measurement\n measureAndSetReady()\n }\n\n return () => {\n mounted = false\n if (frameRef.current !== null) {\n cancelAnimationFrame(frameRef.current)\n frameRef.current = null\n }\n resizeObserver?.disconnect()\n }\n }, [])\n\n try {\n if (height === \"100%\") {\n // For 100% height, make the container fill the available flex space with proper sizing\n // user-select: none prevents browser selection box from appearing when clicking/dragging on charts\n return (\n <div\n ref={containerRef}\n className=\"dc:w-full dc:h-full dc:flex-1 dc:flex dc:flex-col dc:relative\"\n style={{ minHeight: effectiveMinHeight ?? '250px', minWidth: '100px', overflow: 'hidden', userSelect: 'none' }}\n >\n {isReady && containerSize.width > 0 && containerSize.height > 0 ? (\n <ResponsiveContainer\n width={containerSize.width}\n height={containerSize.height - 16}\n debounce={100}\n style={{ marginTop: '16px' }}\n >\n {children}\n </ResponsiveContainer>\n ) : (\n <div className=\"dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full\">\n <LoadingIndicator size=\"sm\" />\n </div>\n )}\n </div>\n )\n }\n\n // For specific heights, use them directly\n // user-select: none prevents browser selection box from appearing when clicking/dragging on charts\n const containerStyle = {\n height: typeof height === 'number' ? `${height}px` : height,\n width: '100%',\n minHeight: effectiveMinHeight ?? '200px',\n minWidth: '100px',\n userSelect: 'none' as const\n }\n\n return (\n <div\n ref={containerRef}\n className=\"dc:w-full dc:flex dc:flex-col dc:relative\"\n style={{ ...containerStyle, overflow: 'hidden' }}\n >\n {isReady && containerSize.width > 0 && containerSize.height > 0 ? (\n <ResponsiveContainer\n width={containerSize.width}\n height={containerSize.height - 16}\n debounce={100}\n style={{ marginTop: '16px' }}\n >\n {children}\n </ResponsiveContainer>\n ) : (\n <div className=\"dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full\">\n <LoadingIndicator size=\"sm\" />\n </div>\n )}\n </div>\n )\n } catch (error) {\n // ChartContainer ResponsiveContainer error\n\n return (\n <div\n className=\"dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4 dc:text-center dc:border dc:border-dashed dc:rounded-lg\"\n style={{ height, borderColor: 'var(--dc-border)', backgroundColor: 'var(--dc-surface)' }}\n >\n <div className=\"dc:text-sm dc:font-semibold dc:mb-1 text-dc-text-muted\">{t('chart.runtime.unableToDisplay')}</div>\n <div className=\"dc:text-xs text-dc-text-secondary\">\n {error instanceof Error ? error.message : 'Failed to create responsive container'}\n </div>\n </div>\n )\n }\n}\n","import React from 'react'\nimport { Tooltip } from 'recharts'\nimport { formatNumericValue } from '../../utils/chartUtils.js'\n\ninterface ChartTooltipProps {\n formatter?: (value: any, name: any, props: any) => [React.ReactNode, React.ReactNode]\n labelFormatter?: (label: any, payload?: readonly any[]) => React.ReactNode\n}\n\n// Default formatter that rounds numeric values to at most 2 decimal places\nconst defaultFormatter = (value: any, name: any): [React.ReactNode, React.ReactNode] => {\n if (value === null || value === undefined) {\n return ['No data', name]\n }\n return [formatNumericValue(value), name]\n}\n\nexport default function ChartTooltip({ formatter, labelFormatter }: ChartTooltipProps) {\n return (\n <Tooltip\n formatter={formatter || defaultFormatter}\n labelFormatter={labelFormatter}\n contentStyle={{\n backgroundColor: 'white',\n border: '1px solid #e5e7eb',\n borderRadius: '0.5rem',\n fontSize: '0.875rem',\n color: '#1f2937',\n boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',\n padding: '8px 12px'\n }}\n />\n )\n}"],"mappings":";;;;;;;AAgBA,SAAwBE,EAAe,EACrC,aACA,YAAS,QACT,gBACsB;CAItB,IAAMC,IAAqBC,KAAa,KAAA,GAClC,EAAE,SAAMJ,EAAe,GAGvBK,IAAeC,EAAuB,IAAI,GAC1C,CAACC,GAASC,KAAcC,EAAS,EAAK,GACtC,CAACC,GAAeC,KAAoBF,EAAS;EAAE,OAAO;EAAG,QAAQ;CAAE,CAAC,GACpEG,IAAUN,EAAO;EAAE,OAAO;EAAG,QAAQ;CAAE,CAAC,GACxCO,IAAWP,EAAO,EAAK,GACvBQ,IAAiBR,EAAiD,IAAI,GACtES,IAAWT,EAAsB,IAAI;CAG3C,QAAsB;EACpB,IAAIU,IAAU,IACVC,IAAwC,MAEtCC,UAAyB;GAE7B,IADA,EAAS,UAAU,MACf,CAACF,GAAS;GACd,IAAMG,IAAUL,EAAe;GAE/B,IADA,EAAe,UAAU,MACrB,CAACK,GAAS;G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aAAiB,QAAQA,EAAM,UAAU;GACvC,CAAA,CACF;;CAET;AACF;;;ACxLA,IAAME,KAAoB,GAAY,MAChCC,KAAU,OACL,CAAC,WAAWC,CAAI,IAElB,CAACvC,EAAmBsC,CAAK,GAAGC,CAAI;AAGzC,SAAwBC,EAAa,EAAE,cAAW,qBAAqC;CACrF,OACE,kBAACC,GAAD;EACE,WAAWC,KAAaL;EACR;EAChB,cAAc;GACZ,iBAAiB;GACjB,QAAQ;GACR,cAAc;GACd,UAAU;GACV,OAAO;GACP,WAAW;GACX,SAAS;EACX;CACD,CAAA;AAEL"}
1
+ {"version":3,"file":"charts-core-BsheHP0O.js","names":["useTranslation","formatNumericValue","ChartContainer","effectiveMinHeight","minHeight","containerRef","useRef","isReady","setIsReady","useState","containerSize","setContainerSize","sizeRef","readyRef","pendingSizeRef","frameRef","mounted","resizeObserver","flushPendingSize","pending","nextWidth","nextHeight","sizeChanged","shouldBecomeReady","startTransition","scheduleSizeUpdate","entry","entries","entryHeight","width","rect","measuredHeight","height","ResponsiveContainer","LoadingIndicator","containerStyle","error","t","defaultFormatter","value","name","ChartTooltip","Tooltip","formatter"],"sources":["../../../src/client/components/charts/ChartContainer.tsx","../../../src/client/components/charts/ChartTooltip.tsx"],"sourcesContent":["import { ReactElement, useState, useRef, useLayoutEffect, startTransition } from 'react'\nimport { ResponsiveContainer } from 'recharts'\nimport { useTranslation } from '../../hooks/useTranslation.js'\nimport LoadingIndicator from '../LoadingIndicator.js'\n\ninterface ChartContainerProps {\n children: ReactElement\n height?: string | number\n /**\n * Override the default minimum height. Charts that share their portlet with\n * another element - a wrapped summary header, say - need the plot to shrink\n * rather than push past the card.\n */\n minHeight?: string | number\n}\n\nexport default function ChartContainer({\n children,\n height = \"100%\",\n minHeight\n}: ChartContainerProps) {\n // The default floor keeps a lone chart from collapsing, but it also stops the\n // plot shrinking when something else shares the portlet (e.g. a summary\n // header that has wrapped). Callers in that position pass a smaller floor.\n const effectiveMinHeight = minHeight ?? undefined\n const { t } = useTranslation()\n // Track if container is ready to render ResponsiveContainer\n // We need to wait for the container to be in the DOM with valid dimensions\n const containerRef = useRef<HTMLDivElement>(null)\n const [isReady, setIsReady] = useState(false)\n const [containerSize, setContainerSize] = useState({ width: 0, height: 0 })\n const sizeRef = useRef({ width: 0, height: 0 })\n const readyRef = useRef(false)\n const pendingSizeRef = useRef<{ width: number; height: number } | null>(null)\n const frameRef = useRef<number | null>(null)\n\n // Use useLayoutEffect to measure before paint\n useLayoutEffect(() => {\n let mounted = true\n let resizeObserver: ResizeObserver | null = null\n\n const flushPendingSize = () => {\n frameRef.current = null\n if (!mounted) return\n const pending = pendingSizeRef.current\n pendingSizeRef.current = null\n if (!pending) return\n\n const nextWidth = Math.round(pending.width)\n const nextHeight = Math.round(pending.height)\n if (nextWidth <= 0 || nextHeight <= 0) return\n\n const sizeChanged =\n sizeRef.current.width !== nextWidth || sizeRef.current.height !== nextHeight\n const shouldBecomeReady = !readyRef.current\n\n if (!sizeChanged && !shouldBecomeReady) return\n\n sizeRef.current = { width: nextWidth, height: nextHeight }\n readyRef.current = true\n\n // Resize-driven chart updates can come in bursts (one per portlet).\n // Transitioning these avoids blocking urgent input and coalesces visual work.\n startTransition(() => {\n if (sizeChanged) {\n setContainerSize({ width: nextWidth, height: nextHeight })\n }\n if (shouldBecomeReady) {\n setIsReady(true)\n }\n })\n }\n\n const scheduleSizeUpdate = (width: number, height: number) => {\n pendingSizeRef.current = { width, height }\n if (frameRef.current === null) {\n frameRef.current = requestAnimationFrame(flushPendingSize)\n }\n }\n\n const measureAndSetReady = () => {\n if (!mounted || !containerRef.current) return\n\n const rect = containerRef.current.getBoundingClientRect()\n // Check both clientWidth/Height AND getBoundingClientRect for robustness\n const width = Math.max(containerRef.current.clientWidth, rect.width)\n const measuredHeight = Math.max(containerRef.current.clientHeight, rect.height)\n\n if (width > 0 && measuredHeight > 0) {\n scheduleSizeUpdate(width, measuredHeight)\n }\n }\n\n // Set up ResizeObserver to detect when container gets valid dimensions\n resizeObserver = new ResizeObserver((entries) => {\n for (const entry of entries) {\n const { width, height: entryHeight } = entry.contentRect\n if (width > 0 && entryHeight > 0) {\n scheduleSizeUpdate(width, entryHeight)\n }\n }\n })\n\n if (containerRef.current) {\n resizeObserver.observe(containerRef.current)\n // Also try immediate measurement\n measureAndSetReady()\n }\n\n return () => {\n mounted = false\n if (frameRef.current !== null) {\n cancelAnimationFrame(frameRef.current)\n frameRef.current = null\n }\n resizeObserver?.disconnect()\n }\n }, [])\n\n try {\n if (height === \"100%\") {\n // For 100% height, make the container fill the available flex space with proper sizing\n // user-select: none prevents browser selection box from appearing when clicking/dragging on charts\n return (\n <div\n ref={containerRef}\n className=\"dc:w-full dc:h-full dc:flex-1 dc:flex dc:flex-col dc:relative\"\n style={{ minHeight: effectiveMinHeight ?? '250px', minWidth: '100px', overflow: 'hidden', userSelect: 'none' }}\n >\n {isReady && containerSize.width > 0 && containerSize.height > 0 ? (\n <ResponsiveContainer\n width={containerSize.width}\n height={containerSize.height - 16}\n debounce={100}\n style={{ marginTop: '16px' }}\n >\n {children}\n </ResponsiveContainer>\n ) : (\n <div className=\"dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full\">\n <LoadingIndicator size=\"sm\" />\n </div>\n )}\n </div>\n )\n }\n\n // For specific heights, use them directly\n // user-select: none prevents browser selection box from appearing when clicking/dragging on charts\n const containerStyle = {\n height: typeof height === 'number' ? `${height}px` : height,\n width: '100%',\n minHeight: effectiveMinHeight ?? '200px',\n minWidth: '100px',\n userSelect: 'none' as const\n }\n\n return (\n <div\n ref={containerRef}\n className=\"dc:w-full dc:flex dc:flex-col dc:relative\"\n style={{ ...containerStyle, overflow: 'hidden' }}\n >\n {isReady && containerSize.width > 0 && containerSize.height > 0 ? (\n <ResponsiveContainer\n width={containerSize.width}\n height={containerSize.height - 16}\n debounce={100}\n style={{ marginTop: '16px' }}\n >\n {children}\n </ResponsiveContainer>\n ) : (\n <div className=\"dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full\">\n <LoadingIndicator size=\"sm\" />\n </div>\n )}\n </div>\n )\n } catch (error) {\n // ChartContainer ResponsiveContainer error\n\n return (\n <div\n className=\"dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4 dc:text-center dc:border dc:border-dashed dc:rounded-lg\"\n style={{ height, borderColor: 'var(--dc-border)', backgroundColor: 'var(--dc-surface)' }}\n >\n <div className=\"dc:text-sm dc:font-semibold dc:mb-1 text-dc-text-muted\">{t('chart.runtime.unableToDisplay')}</div>\n <div className=\"dc:text-xs text-dc-text-secondary\">\n {error instanceof Error ? error.message : 'Failed to create responsive container'}\n </div>\n </div>\n )\n }\n}\n","import React from 'react'\nimport { Tooltip } from 'recharts'\nimport { formatNumericValue } from '../../utils/chartUtils.js'\n\ninterface ChartTooltipProps {\n formatter?: (value: any, name: any, props: any) => [React.ReactNode, React.ReactNode]\n labelFormatter?: (label: any, payload?: readonly any[]) => React.ReactNode\n}\n\n// Default formatter that rounds numeric values to at most 2 decimal places\nconst defaultFormatter = (value: any, name: any): [React.ReactNode, React.ReactNode] => {\n if (value === null || value === undefined) {\n return ['No data', name]\n }\n return [formatNumericValue(value), name]\n}\n\nexport default function ChartTooltip({ formatter, labelFormatter }: ChartTooltipProps) {\n return (\n <Tooltip\n formatter={formatter || defaultFormatter}\n labelFormatter={labelFormatter}\n contentStyle={{\n backgroundColor: 'white',\n border: '1px solid #e5e7eb',\n borderRadius: '0.5rem',\n fontSize: '0.875rem',\n color: '#1f2937',\n boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',\n padding: '8px 12px'\n }}\n />\n )\n}"],"mappings":";;;;;;;AAgBA,SAAwBE,EAAe,EACrC,aACA,YAAS,QACT,gBACsB;CAItB,IAAMC,IAAqBC,KAAa,KAAA,GAClC,EAAE,SAAMJ,EAAe,GAGvBK,IAAeC,EAAuB,IAAI,GAC1C,CAACC,GAASC,KAAcC,EAAS,E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V,OAAO,EAAE,WAAW,OAAO;IAE1B;GACkB,CAAA,IAErB,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,kBAACwB,GAAD,EAAkB,MAAK,KAAM,CAAA;GAC1B,CAAA;EAEJ,CAAA;CAET,SAASE,GAAO;EAGd,OACE,kBAAC,OAAD;GACE,WAAU;GACV,OAAO;IAAE;IAAQ,aAAa;IAAoB,iBAAiB;GAAoB;GAFzF,UAAA,CAIE,kBAAC,OAAD;IAAK,WAAU;IAA0D,UAAAC,EAAE,+BAA+B;GAAO,CAAA,GACjH,kBAAC,OAAD;IAAK,WAAU;IACZ,UAAAD,aAAiB,QAAQA,EAAM,UAAU;GACvC,CAAA,CACF;;CAET;AACF;;;ACxLA,IAAME,KAAoB,GAAY,MAChCC,KAAU,OACL,CAAC,WAAWC,CAAI,IAElB,CAACvC,EAAmBsC,CAAK,GAAGC,CAAI;AAGzC,SAAwBC,EAAa,EAAE,cAAW,qBAAqC;CACrF,OACE,kBAACC,GAAD;EACE,WAAWC,KAAaL;EACR;EAChB,cAAc;GACZ,iBAAiB;GACjB,QAAQ;GACR,cAAc;GACd,UAAU;GACV,OAAO;GACP,WAAW;GACX,SAAS;EACX;CACD,CAAA;AAEL"}
@@ -1,5 +1,5 @@
1
- import { a as e, i as t, n, r, t as i } from "./chartComponentRegistry-lrQVhpz2.js";
2
- import { t as a } from "./useTranslation-F7BGje95.js";
1
+ import { a as e, i as t, n, r, t as i } from "./chartComponentRegistry-B6jUklcw.js";
2
+ import { t as a } from "./useTranslation-DO5KRcwD.js";
3
3
  import { Suspense as o, lazy as s } from "react";
4
4
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
5
  //#region src/client/components/charts/MissingDependencyFallback.tsx
@@ -80,35 +80,35 @@ function u({ chartType: e, packageName: t, installCommand: n, height: r = 200 })
80
80
  //#endregion
81
81
  //#region src/client/charts/ChartLoader.tsx
82
82
  var d = {
83
- bar: () => import("./chart-bar-BKTQ6zyq.js").then((e) => e.n),
84
- line: () => import("./chart-line-EzYdBDdL.js").then((e) => e.n),
85
- area: () => import("./chart-area-BgKyGty4.js").then((e) => e.n),
86
- pie: () => import("./chart-pie-Dw3W8Qjg.js").then((e) => e.n),
87
- scatter: () => import("./chart-scatter-D7mMgM6E.js").then((e) => e.n),
88
- radar: () => import("./chart-radar-BhySlY7t.js").then((e) => e.n),
89
- radialBar: () => import("./chart-radial-bar-DXc37T3I.js").then((e) => e.n),
90
- treemap: () => import("./chart-tree-map-C0EZEE0y.js").then((e) => e.n),
91
- bubble: () => import("./BubbleChart-DiloeKCW.js"),
92
- table: () => import("./chart-data-table-DLwFKymv.js").then((e) => e.n),
93
- recordsTable: () => import("./RecordsTable-DRovI83Z.js"),
94
- activityGrid: () => import("./ActivityGridChart-CmboSrmc.js"),
95
- kpiNumber: () => import("./chart-kpi-number-CuYpI5LO.js").then((e) => e.t),
96
- kpiDelta: () => import("./KpiDelta-1BfMFygT.js"),
97
- kpiText: () => import("./KpiText-DzPeryRS.js"),
98
- markdown: () => import("./MarkdownChart-_aif5Ye3.js"),
99
- funnel: () => import("./chart-funnel-BirEW77o.js").then((e) => e.n),
100
- sankey: () => import("./chart-sankey-Xi0rQvx-.js").then((e) => e.t),
101
- sunburst: () => import("./chart-sunburst-t3Qb3HI7.js").then((e) => e.t),
102
- heatmap: () => import("./HeatMapChart-B9pj-KQi.js"),
103
- retentionHeatmap: () => import("./RetentionHeatmap-CVEmxbg9.js"),
104
- retentionCombined: () => import("./RetentionCombinedChart-D_vAvtIb.js"),
105
- boxPlot: () => import("./chart-box-plot-FD8d8S_Y.js").then((e) => e.t),
106
- dotStrip: () => import("./DotStripChart-HcSCkYDs.js"),
107
- waterfall: () => import("./chart-waterfall-C4rt-_iE.js").then((e) => e.t),
108
- candlestick: () => import("./chart-candlestick-DeDZSkhF.js").then((e) => e.t),
109
- measureProfile: () => import("./chart-measure-profile-DaL9c2jy.js").then((e) => e.t),
110
- proportionBar: () => import("./ProportionBarChart-B9Rgyhbc.js"),
111
- gauge: () => import("./chart-gauge-C4yS5138.js").then((e) => e.t)
83
+ bar: () => import("./chart-bar-D2qp_vsO.js").then((e) => e.n),
84
+ line: () => import("./chart-line-Bl-bSP0Y.js").then((e) => e.n),
85
+ area: () => import("./chart-area-BRLlLtIX.js").then((e) => e.n),
86
+ pie: () => import("./chart-pie-3IGIOniI.js").then((e) => e.n),
87
+ scatter: () => import("./chart-scatter-BES9g5kG.js").then((e) => e.n),
88
+ radar: () => import("./chart-radar-Md5BwLhY.js").then((e) => e.n),
89
+ radialBar: () => import("./chart-radial-bar-Bfb-gGm6.js").then((e) => e.n),
90
+ treemap: () => import("./chart-tree-map-CkvUBqNw.js").then((e) => e.n),
91
+ bubble: () => import("./BubbleChart-BgsVoVgO.js"),
92
+ table: () => import("./chart-data-table-DIghSvZN.js").then((e) => e.n),
93
+ recordsTable: () => import("./RecordsTable-X4-iL03N.js"),
94
+ activityGrid: () => import("./ActivityGridChart-sfYPWaLI.js"),
95
+ kpiNumber: () => import("./chart-kpi-number-CUeK8MQP.js").then((e) => e.t),
96
+ kpiDelta: () => import("./KpiDelta-B6SN3viX.js"),
97
+ kpiText: () => import("./KpiText-z_vo4xcE.js"),
98
+ markdown: () => import("./MarkdownChart-BKQl0PAy.js"),
99
+ funnel: () => import("./chart-funnel-CvVQTMej.js").then((e) => e.n),
100
+ sankey: () => import("./chart-sankey-BmQKKIZa.js").then((e) => e.t),
101
+ sunburst: () => import("./chart-sunburst-BBOCkD00.js").then((e) => e.t),
102
+ heatmap: () => import("./HeatMapChart-JjUF0zDX.js"),
103
+ retentionHeatmap: () => import("./RetentionHeatmap-BnQng2Nc.js"),
104
+ retentionCombined: () => import("./RetentionCombinedChart-DCgCAEa4.js"),
105
+ boxPlot: () => import("./chart-box-plot-Bt2dfls7.js").then((e) => e.t),
106
+ dotStrip: () => import("./DotStripChart-Bz5IC3Q1.js"),
107
+ waterfall: () => import("./chart-waterfall-KeSpmPhi.js").then((e) => e.t),
108
+ candlestick: () => import("./chart-candlestick-DsNtTruF.js").then((e) => e.t),
109
+ measureProfile: () => import("./chart-measure-profile-DjAV-TtG.js").then((e) => e.t),
110
+ proportionBar: () => import("./ProportionBarChart-tVmEO5Xi.js"),
111
+ gauge: () => import("./chart-gauge-DSu7U1YZ.js").then((e) => e.t)
112
112
  };
113
113
  function f(e) {
114
114
  let a = t.get(e);
@@ -161,4 +161,4 @@ function b() {
161
161
  //#endregion
162
162
  export { p as a, u as c, y as i, v as n, g as o, b as r, _ as s, h as t };
163
163
 
164
- //# sourceMappingURL=charts-loader-i4Fe3mAw.js.map
164
+ //# sourceMappingURL=charts-loader-Bt00isFs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"charts-loader-i4Fe3mAw.js","names":["failedChartTypes","customChartMap","chartLoaderCache","useTranslation","MissingDependencyFallback","height","t","installCommand","chartImportMap","n","getLazyChart","customChart","chartType","importFn","safeImport","createSafeImport","lazy","createUnknownChartFallback","isValidChartType","DefaultChartFallback","LazyChart","chartProps","ChartComponent","Suspense","fallback","preloadChart","preloadCharts","getAvailableChartTypes","builtIn","custom","isChartTypeAvailable","getUnavailableChartTypes"],"sources":["../../../src/client/components/charts/MissingDependencyFallback.tsx","../../../src/client/charts/ChartLoader.tsx"],"sourcesContent":["import { useTranslation } from '../../hooks/useTranslation.js'\n\ninterface MissingDependencyFallbackProps {\n chartType: string\n packageName: string\n installCommand: string\n height?: string | number\n}\n\n/**\n * Fallback component shown when a chart's optional dependency is not installed.\n * Provides clear instructions on how to install the missing package.\n */\nexport function MissingDependencyFallback({\n chartType,\n packageName,\n installCommand,\n height = 200\n}: MissingDependencyFallbackProps) {\n const { t } = useTranslation()\n return (\n <div\n className=\"dc-missing-dependency-fallback\"\n style={{\n height: typeof height === 'number' ? `${height}px` : height,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n padding: '1.5rem',\n textAlign: 'center',\n border: '1px dashed var(--dc-border, #e5e7eb)',\n borderRadius: '0.5rem',\n backgroundColor: 'var(--dc-surface, #f9fafb)'\n }}\n >\n <div style={{ fontSize: '2.5rem', marginBottom: '1rem' }}>📦</div>\n <h3 style={{\n fontSize: '1.125rem',\n fontWeight: 600,\n marginBottom: '0.5rem',\n color: 'var(--dc-text, #111827)'\n }}>\n {t('chart.runtime.missingDep.title')}\n </h3>\n <p style={{\n fontSize: '0.875rem',\n color: 'var(--dc-text-secondary, #6b7280)',\n marginBottom: '1rem',\n maxWidth: '28rem'\n }}>\n {t('chart.runtime.missingDep.description', { chartType, packageName })}\n </p>\n <div style={{\n backgroundColor: 'var(--dc-surface-secondary, #f3f4f6)',\n borderRadius: '0.5rem',\n padding: '0.75rem 1rem',\n fontFamily: 'monospace',\n fontSize: '0.875rem',\n color: 'var(--dc-text, #111827)'\n }}>\n <span style={{\n color: 'var(--dc-text-muted, #9ca3af)',\n userSelect: 'none'\n }}>$ </span>\n {installCommand}\n </div>\n <p style={{\n fontSize: '0.75rem',\n color: 'var(--dc-text-muted, #9ca3af)',\n marginTop: '0.75rem'\n }}>\n {t('chart.runtime.missingDep.restartHint')}\n </p>\n </div>\n )\n}\n","/**\n * Lazy Chart Loader\n *\n * Provides React.lazy-based dynamic loading for chart components.\n * This enables code splitting - each chart type loads only when needed.\n *\n * Handles missing optional dependencies gracefully by showing a fallback\n * component instead of crashing the application.\n */\n\nimport { lazy, Suspense, ReactNode, LazyExoticComponent } from 'react'\nimport type { BuiltInChartType, ChartType, ChartProps } from '../types.js'\nimport {\n type LazyChartComponent,\n chartLoaderCache,\n failedChartTypes,\n customChartMap,\n createSafeImport,\n createUnknownChartFallback\n} from './chartComponentRegistry.js'\n// Dynamic import functions for built-in chart **components** (the DOM-bearing,\n// client-only side of a chart). This stays separate from `chartRegistry` — which\n// is DOM-free and shared with the server — so importing the unified registry\n// never drags the chart component graph into server/agent code. Lazy loading is\n// a client-only optimisation.\n\n// The custom-chart registration API lives in chartComponentRegistry to avoid an\n// import cycle (chartPlugin → ChartLoader → DataTable → CubeProvider → chartPlugin).\n// Re-exported here so existing import paths keep working.\nexport { registerChartComponent, unregisterChartComponent } from './chartComponentRegistry.js'\n\n// Dynamic import functions for built-in chart **components** — the DOM-bearing,\n// client-only side of a chart. Kept separate from the unified `chartRegistry`\n// (which is DOM-free and shared with the server agent) so importing the registry\n// never drags the chart component graph into server/MCP/agent code. Lazy loading\n// is a client-only optimisation.\nconst chartImportMap: Record<BuiltInChartType, () => Promise<{ default: LazyChartComponent }>> = {\n bar: () => import('../components/charts/BarChart.js'),\n line: () => import('../components/charts/LineChart.js'),\n area: () => import('../components/charts/AreaChart.js'),\n pie: () => import('../components/charts/PieChart.js'),\n scatter: () => import('../components/charts/ScatterChart.js'),\n radar: () => import('../components/charts/RadarChart.js'),\n radialBar: () => import('../components/charts/RadialBarChart.js'),\n treemap: () => import('../components/charts/TreeMapChart.js'),\n bubble: () => import('../components/charts/BubbleChart.js'),\n table: () => import('../components/charts/DataTable.js'),\n recordsTable: () => import('../components/charts/RecordsTable.js'),\n activityGrid: () => import('../components/charts/ActivityGridChart.js'),\n kpiNumber: () => import('../components/charts/KpiNumber.js'),\n kpiDelta: () => import('../components/charts/KpiDelta.js'),\n kpiText: () => import('../components/charts/KpiText.js'),\n markdown: () => import('../components/charts/MarkdownChart.js'),\n funnel: () => import('../components/charts/FunnelChart.js'),\n sankey: () => import('../components/charts/SankeyChart.js'),\n sunburst: () => import('../components/charts/SunburstChart.js'),\n heatmap: () => import('../components/charts/HeatMapChart.js'),\n retentionHeatmap: () => import('../components/charts/RetentionHeatmap.js'),\n retentionCombined: () => import('../components/charts/RetentionCombinedChart.js'),\n boxPlot: () => import('../components/charts/BoxPlotChart.js'),\n dotStrip: () => import('../components/charts/DotStripChart.js'),\n waterfall: () => import('../components/charts/WaterfallChart.js'),\n candlestick: () => import('../components/charts/CandlestickChart.js'),\n measureProfile: () => import('../components/charts/MeasureProfileChart.js'),\n proportionBar: () => import('../components/charts/ProportionBarChart.js'),\n gauge: () => import('../components/charts/GaugeChart.js'),\n}\n\n/**\n * Get or create a lazy component for a chart type.\n * Checks custom (plugin) charts first, then built-in charts.\n * Returns an unknown chart fallback for unregistered types instead of throwing.\n */\nfunction getLazyChart(chartType: ChartType): LazyExoticComponent<LazyChartComponent> {\n // 1. Check custom charts first (allows overriding built-ins)\n const customChart = customChartMap.get(chartType)\n if (customChart) {\n return customChart\n }\n\n // 2. Check built-in cache\n if (chartLoaderCache.has(chartType)) {\n return chartLoaderCache.get(chartType)!\n }\n\n // 3. Check built-in import map (the client component registry)\n const importFn = chartImportMap[chartType as BuiltInChartType]\n if (importFn) {\n const safeImport = createSafeImport(chartType, importFn)\n chartLoaderCache.set(chartType, lazy(safeImport))\n return chartLoaderCache.get(chartType)!\n }\n\n // 4. Unknown chart type — return graceful fallback\n return lazy(() => Promise.resolve({ default: createUnknownChartFallback(chartType) }))\n}\n\n/**\n * Check if a chart type is supported (built-in or custom plugin)\n */\nexport function isValidChartType(chartType: string): chartType is ChartType {\n return chartType in chartImportMap || customChartMap.has(chartType)\n}\n\n// Props for the LazyChart wrapper\nexport interface LazyChartProps extends ChartProps {\n chartType: ChartType\n fallback?: ReactNode\n}\n\n/**\n * Default loading placeholder for charts\n */\nfunction DefaultChartFallback({ height }: { height?: string | number }) {\n return (\n <div\n className=\"dc:flex dc:items-center dc:justify-center dc:w-full\"\n style={{ height: typeof height === 'number' ? `${height}px` : height || '200px' }}\n >\n <div className=\"dc:animate-pulse bg-dc-surface-secondary dc:rounded-sm dc:w-full dc:h-full dc:min-h-[100px]\" />\n </div>\n )\n}\n\n/**\n * Lazy Chart Component\n *\n * Renders a chart component with React.lazy dynamic loading.\n * The chart type determines which chart component is loaded.\n *\n * @example\n * ```tsx\n * <LazyChart\n * chartType=\"bar\"\n * data={chartData}\n * chartConfig={{ yAxis: ['value'] }}\n * height={300}\n * />\n * ```\n */\nexport function LazyChart({\n chartType,\n fallback,\n height,\n ...chartProps\n}: LazyChartProps) {\n const ChartComponent = getLazyChart(chartType)\n\n return (\n <Suspense fallback={fallback ?? <DefaultChartFallback height={height} />}>\n <ChartComponent height={height} {...chartProps} />\n </Suspense>\n )\n}\n\n/**\n * Preload a chart type\n *\n * Triggers the dynamic import without rendering.\n * Useful for prefetching charts that will likely be needed.\n *\n * @example\n * ```tsx\n * // Preload bar chart on hover\n * onMouseEnter={() => preloadChart('bar')}\n * ```\n */\nexport function preloadChart(chartType: ChartType): void {\n const importFn = chartImportMap[chartType as BuiltInChartType]\n if (importFn) {\n importFn()\n }\n}\n\n/**\n * Preload multiple chart types\n *\n * @example\n * ```tsx\n * // Preload common charts on app init\n * useEffect(() => {\n * preloadCharts(['bar', 'line', 'pie'])\n * }, [])\n * ```\n */\nexport function preloadCharts(chartTypes: ChartType[]): void {\n chartTypes.forEach(preloadChart)\n}\n\n/**\n * Get all available chart types (built-in + custom plugins)\n */\nexport function getAvailableChartTypes(): ChartType[] {\n const builtIn = Object.keys(chartImportMap) as ChartType[]\n const custom = Array.from(customChartMap.keys())\n // Deduplicate in case a custom chart overrides a built-in\n return [...new Set([...builtIn, ...custom])]\n}\n\n/**\n * Check if a chart type has loaded successfully.\n * Returns false if the chart failed to load due to missing dependencies.\n *\n * Note: This only returns accurate results after the chart has been attempted to load.\n * Use this for conditional UI logic (e.g., hiding unavailable chart types).\n */\nexport function isChartTypeAvailable(chartType: ChartType): boolean {\n return !failedChartTypes.has(chartType)\n}\n\n/**\n * Get list of chart types that failed to load due to missing dependencies.\n */\nexport function getUnavailableChartTypes(): ChartType[] {\n return Array.from(failedChartTypes)\n}\n"],"mappings":";;;;;AAaA,SAAgBI,EAA0B,EACxC,cACA,gBACA,mBACA,YAAS,OACwB;CACjC,IAAM,EAAE,SAAMD,EAAe;CAC7B,OACE,kBAAC,OAAD;EACE,WAAU;EACV,OAAO;GACL,QAAQ,OAAOE,KAAW,WAAW,GAAGA,EAAO,MAAMA;GACrD,SAAS;GACT,eAAe;GACf,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACP,SAAS;GACT,WAAW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GAA2C;CAC1E,OAAON,KAAaJ,KAAkBP,EAAe,IAAIW,CAAS;AACpE;AAWA,SAASO,EAAqB,EAAE,aAAwC;CACtE,OACE,kBAAC,OAAD;EACE,WAAU;EACV,OAAO,EAAE,QAAQ,OAAOd,KAAW,WAAW,GAAGA,EAAO,MAAMA,KAAU,QAAQ;EAEhF,UAAA,kBAAC,OAAD,EAAK,WAAU,8FAA+F,CAAA;CAC3G,CAAA;AAET;AAkBA,SAAgBe,EAAU,EACxB,cACA,aACA,WACA,GAAGC,KACc;CACjB,IAAMC,IAAiBZ,EAAaE,CAAS;CAE7C,OACE,kBAACW,GAAD;EAAU,UAAUC,KAAY,kBAACL,GAAD,EAA8B,UAAS,CAAA;EACrE,UAAA,kBAACG,GAAD;GAAwB;GAAQ,GAAID;EAAa,CAAA;CACzC,CAAA;AAEd;AAcA,SAAgBI,EAAa,GAA4B;CACvD,IAAMZ,IAAWL,EAAeI;CAChC,AAAIC,KACFA,EAAS;AAEb;AAaA,SAAgBa,EAAc,GAA+B;CAC3D,EAAW,QAAQD,CAAY;AACjC;AAKA,SAAgBE,IAAsC;CACpD,IAAMC,IAAU,OAAO,KAAKpB,CAAc,GACpCqB,IAAS,MAAM,KAAK5B,EAAe,KAAK,CAAC;CAE/C,OAAO,CAAC,mBAAG,IAAI,IAAI,CAAC,GAAG2B,GAAS,GAAGC,CAAM,CAAC,CAAC;AAC7C;AASA,SAAgBC,EAAqB,GAA+B;CAClE,OAAO,CAAC9B,EAAiB,IAAIY,CAAS;AACxC;AAKA,SAAgBmB,IAAwC;CACtD,OAAO,MAAM,KAAK/B,CAAgB;AACpC"}
1
+ {"version":3,"file":"charts-loader-Bt00isFs.js","names":["failedChartTypes","customChartMap","chartLoaderCache","useTranslation","MissingDependencyFallback","height","t","installCommand","chartImportMap","n","getLazyChart","customChart","chartType","importFn","safeImport","createSafeImport","lazy","createUnknownChartFallback","isValidChartType","DefaultChartFallback","LazyChart","chartProps","ChartComponent","Suspense","fallback","preloadChart","preloadCharts","getAvailableChartTypes","builtIn","custom","isChartTypeAvailable","getUnavailableChartTypes"],"sources":["../../../src/client/components/charts/MissingDependencyFallback.tsx","../../../src/client/charts/ChartLoader.tsx"],"sourcesContent":["import { useTranslation } from '../../hooks/useTranslation.js'\n\ninterface MissingDependencyFallbackProps {\n chartType: string\n packageName: string\n installCommand: string\n height?: string | number\n}\n\n/**\n * Fallback component shown when a chart's optional dependency is not installed.\n * Provides clear instructions on how to install the missing package.\n */\nexport function MissingDependencyFallback({\n chartType,\n packageName,\n installCommand,\n height = 200\n}: MissingDependencyFallbackProps) {\n const { t } = useTranslation()\n return (\n <div\n className=\"dc-missing-dependency-fallback\"\n style={{\n height: typeof height === 'number' ? `${height}px` : height,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n padding: '1.5rem',\n textAlign: 'center',\n border: '1px dashed var(--dc-border, #e5e7eb)',\n borderRadius: '0.5rem',\n backgroundColor: 'var(--dc-surface, #f9fafb)'\n }}\n >\n <div style={{ fontSize: '2.5rem', marginBottom: '1rem' }}>📦</div>\n <h3 style={{\n fontSize: '1.125rem',\n fontWeight: 600,\n marginBottom: '0.5rem',\n color: 'var(--dc-text, #111827)'\n }}>\n {t('chart.runtime.missingDep.title')}\n </h3>\n <p style={{\n fontSize: '0.875rem',\n color: 'var(--dc-text-secondary, #6b7280)',\n marginBottom: '1rem',\n maxWidth: '28rem'\n }}>\n {t('chart.runtime.missingDep.description', { chartType, packageName })}\n </p>\n <div style={{\n backgroundColor: 'var(--dc-surface-secondary, #f3f4f6)',\n borderRadius: '0.5rem',\n padding: '0.75rem 1rem',\n fontFamily: 'monospace',\n fontSize: '0.875rem',\n color: 'var(--dc-text, #111827)'\n }}>\n <span style={{\n color: 'var(--dc-text-muted, #9ca3af)',\n userSelect: 'none'\n }}>$ </span>\n {installCommand}\n </div>\n <p style={{\n fontSize: '0.75rem',\n color: 'var(--dc-text-muted, #9ca3af)',\n marginTop: '0.75rem'\n }}>\n {t('chart.runtime.missingDep.restartHint')}\n </p>\n </div>\n )\n}\n","/**\n * Lazy Chart Loader\n *\n * Provides React.lazy-based dynamic loading for chart components.\n * This enables code splitting - each chart type loads only when needed.\n *\n * Handles missing optional dependencies gracefully by showing a fallback\n * component instead of crashing the application.\n */\n\nimport { lazy, Suspense, ReactNode, LazyExoticComponent } from 'react'\nimport type { BuiltInChartType, ChartType, ChartProps } from '../types.js'\nimport {\n type LazyChartComponent,\n chartLoaderCache,\n failedChartTypes,\n customChartMap,\n createSafeImport,\n createUnknownChartFallback\n} from './chartComponentRegistry.js'\n// Dynamic import functions for built-in chart **components** (the DOM-bearing,\n// client-only side of a chart). This stays separate from `chartRegistry` — which\n// is DOM-free and shared with the server — so importing the unified registry\n// never drags the chart component graph into server/agent code. Lazy loading is\n// a client-only optimisation.\n\n// The custom-chart registration API lives in chartComponentRegistry to avoid an\n// import cycle (chartPlugin → ChartLoader → DataTable → CubeProvider → chartPlugin).\n// Re-exported here so existing import paths keep working.\nexport { registerChartComponent, unregisterChartComponent } from './chartComponentRegistry.js'\n\n// Dynamic import functions for built-in chart **components** — the DOM-bearing,\n// client-only side of a chart. Kept separate from the unified `chartRegistry`\n// (which is DOM-free and shared with the server agent) so importing the registry\n// never drags the chart component graph into server/MCP/agent code. Lazy loading\n// is a client-only optimisation.\nconst chartImportMap: Record<BuiltInChartType, () => Promise<{ default: LazyChartComponent }>> = {\n bar: () => import('../components/charts/BarChart.js'),\n line: () => import('../components/charts/LineChart.js'),\n area: () => import('../components/charts/AreaChart.js'),\n pie: () => import('../components/charts/PieChart.js'),\n scatter: () => import('../components/charts/ScatterChart.js'),\n radar: () => import('../components/charts/RadarChart.js'),\n radialBar: () => import('../components/charts/RadialBarChart.js'),\n treemap: () => import('../components/charts/TreeMapChart.js'),\n bubble: () => import('../components/charts/BubbleChart.js'),\n table: () => import('../components/charts/DataTable.js'),\n recordsTable: () => import('../components/charts/RecordsTable.js'),\n activityGrid: () => import('../components/charts/ActivityGridChart.js'),\n kpiNumber: () => import('../components/charts/KpiNumber.js'),\n kpiDelta: () => import('../components/charts/KpiDelta.js'),\n kpiText: () => import('../components/charts/KpiText.js'),\n markdown: () => import('../components/charts/MarkdownChart.js'),\n funnel: () => import('../components/charts/FunnelChart.js'),\n sankey: () => import('../components/charts/SankeyChart.js'),\n sunburst: () => import('../components/charts/SunburstChart.js'),\n heatmap: () => import('../components/charts/HeatMapChart.js'),\n retentionHeatmap: () => import('../components/charts/RetentionHeatmap.js'),\n retentionCombined: () => import('../components/charts/RetentionCombinedChart.js'),\n boxPlot: () => import('../components/charts/BoxPlotChart.js'),\n dotStrip: () => import('../components/charts/DotStripChart.js'),\n waterfall: () => import('../components/charts/WaterfallChart.js'),\n candlestick: () => import('../components/charts/CandlestickChart.js'),\n measureProfile: () => import('../components/charts/MeasureProfileChart.js'),\n proportionBar: () => import('../components/charts/ProportionBarChart.js'),\n gauge: () => import('../components/charts/GaugeChart.js'),\n}\n\n/**\n * Get or create a lazy component for a chart type.\n * Checks custom (plugin) charts first, then built-in charts.\n * Returns an unknown chart fallback for unregistered types instead of throwing.\n */\nfunction getLazyChart(chartType: ChartType): LazyExoticComponent<LazyChartComponent> {\n // 1. Check custom charts first (allows overriding built-ins)\n const customChart = customChartMap.get(chartType)\n if (customChart) {\n return customChart\n }\n\n // 2. Check built-in cache\n if (chartLoaderCache.has(chartType)) {\n return chartLoaderCache.get(chartType)!\n }\n\n // 3. Check built-in import map (the client component registry)\n const importFn = chartImportMap[chartType as BuiltInChartType]\n if (importFn) {\n const safeImport = createSafeImport(chartType, importFn)\n chartLoaderCache.set(chartType, lazy(safeImport))\n return chartLoaderCache.get(chartType)!\n }\n\n // 4. Unknown chart type — return graceful fallback\n return lazy(() => Promise.resolve({ default: createUnknownChartFallback(chartType) }))\n}\n\n/**\n * Check if a chart type is supported (built-in or custom plugin)\n */\nexport function isValidChartType(chartType: string): chartType is ChartType {\n return chartType in chartImportMap || customChartMap.has(chartType)\n}\n\n// Props for the LazyChart wrapper\nexport interface LazyChartProps extends ChartProps {\n chartType: ChartType\n fallback?: ReactNode\n}\n\n/**\n * Default loading placeholder for charts\n */\nfunction DefaultChartFallback({ height }: { height?: string | number }) {\n return (\n <div\n className=\"dc:flex dc:items-center dc:justify-center dc:w-full\"\n style={{ height: typeof height === 'number' ? `${height}px` : height || '200px' }}\n >\n <div className=\"dc:animate-pulse bg-dc-surface-secondary dc:rounded-sm dc:w-full dc:h-full dc:min-h-[100px]\" />\n </div>\n )\n}\n\n/**\n * Lazy Chart Component\n *\n * Renders a chart component with React.lazy dynamic loading.\n * The chart type determines which chart component is loaded.\n *\n * @example\n * ```tsx\n * <LazyChart\n * chartType=\"bar\"\n * data={chartData}\n * chartConfig={{ yAxis: ['value'] }}\n * height={300}\n * />\n * ```\n */\nexport function LazyChart({\n chartType,\n fallback,\n height,\n ...chartProps\n}: LazyChartProps) {\n const ChartComponent = getLazyChart(chartType)\n\n return (\n <Suspense fallback={fallback ?? <DefaultChartFallback height={height} />}>\n <ChartComponent height={height} {...chartProps} />\n </Suspense>\n )\n}\n\n/**\n * Preload a chart type\n *\n * Triggers the dynamic import without rendering.\n * Useful for prefetching charts that will likely be needed.\n *\n * @example\n * ```tsx\n * // Preload bar chart on hover\n * onMouseEnter={() => preloadChart('bar')}\n * ```\n */\nexport function preloadChart(chartType: ChartType): void {\n const importFn = chartImportMap[chartType as BuiltInChartType]\n if (importFn) {\n importFn()\n }\n}\n\n/**\n * Preload multiple chart types\n *\n * @example\n * ```tsx\n * // Preload common charts on app init\n * useEffect(() => {\n * preloadCharts(['bar', 'line', 'pie'])\n * }, [])\n * ```\n */\nexport function preloadCharts(chartTypes: ChartType[]): void {\n chartTypes.forEach(preloadChart)\n}\n\n/**\n * Get all available chart types (built-in + custom plugins)\n */\nexport function getAvailableChartTypes(): ChartType[] {\n const builtIn = Object.keys(chartImportMap) as ChartType[]\n const custom = Array.from(customChartMap.keys())\n // Deduplicate in case a custom chart overrides a built-in\n return [...new Set([...builtIn, ...custom])]\n}\n\n/**\n * Check if a chart type has loaded successfully.\n * Returns false if the chart failed to load due to missing dependencies.\n *\n * Note: This only returns accurate results after the chart has been attempted to load.\n * Use this for conditional UI logic (e.g., hiding unavailable chart types).\n */\nexport function isChartTypeAvailable(chartType: ChartType): boolean {\n return !failedChartTypes.has(chartType)\n}\n\n/**\n * Get list of chart types that failed to load due to missing dependencies.\n */\nexport function getUnavailableChartTypes(): ChartType[] {\n return Array.from(failedChartTypes)\n}\n"],"mappings":";;;;;AAaA,SAAgBI,EAA0B,EACxC,cACA,gBACA,mBACA,YAAS,OACwB;CACjC,IAAM,EAAE,SAAMD,EAAe;CAC7B,OACE,kBAAC,OAAD;EACE,WAAU;EACV,OAAO;GACL,QAAQ,OAAOE,KAAW,WAAW,GAAGA,EAAO,MAAMA;GACrD,SAAS;GACT,eAAe;GACf,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACP,SAAS;GACT,WAAW;GACX,QAAQ;GACR,cAAc;GACd,iBAAiB;EACnB;EAdF,UAAA;GAgBE,kBAAC,OAAD;IAAK,OAAO;KAAE,UAAU;KAAU,cAAc;IAAO;IAAG,UAAA;GAAO,CAAA;GACjE,kBAAC,MAAD;IAAI,OAAO;KACT,UAAU;KACV,YAAY;KACZ,cAAc;KACd,OAAO;IACT;IACG,UAAAC,EAAE,gCAAgC;GACjC,CAAA;GACJ,kBAAC,KAAD;IAAG,OAAO;KACR,UAAU;KACV,OAAO;KACP,cAAc;KACd,UAAU;IACZ;IACG,UAAAA,EAAE,wCAAwC;KAAE;KAAW;IAAY,CAAC;GACpE,CAAA;GACH,kBAAC,OAAD;IAAK,OAAO;KACV,iBAAiB;KACjB,cAAc;KACd,SAAS;KACT,YAAY;KACZ,UAAU;KACV,OAAO;IACT;IAPA,UAAA,CAQE,kBAAC,QAAD;KAAM,OAAO;MACX,OAAO;MACP,YAAY;KACd;KAAG,UAAA;IAAQ,CAAA,GACVC,CACE;;GACL,kBAAC,KAAD;IAAG,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3D,EAAW,QAAQD,CAAY;AACjC;AAKA,SAAgBE,IAAsC;CACpD,IAAMC,IAAU,OAAO,KAAKpB,CAAc,GACpCqB,IAAS,MAAM,KAAK5B,EAAe,KAAK,CAAC;CAE/C,OAAO,CAAC,mBAAG,IAAI,IAAI,CAAC,GAAG2B,GAAS,GAAGC,CAAM,CAAC,CAAC;AAC7C;AASA,SAAgBC,EAAqB,GAA+B;CAClE,OAAO,CAAC9B,EAAiB,IAAIY,CAAS;AACxC;AAKA,SAAgBmB,IAAwC;CACtD,OAAO,MAAM,KAAK/B,CAAgB;AACpC"}
@@ -3823,8 +3823,8 @@ var Dr = ({ children: t, options: n, ...r }) => {
3823
3823
  a
3824
3824
  ]), s = t ?? "";
3825
3825
  return e.useMemo(() => Tr(s, o), [s, o]);
3826
- };
3826
+ }, Or = Tr, kr = Dr;
3827
3827
  //#endregion
3828
- export { Se as n, Dr as t };
3828
+ export { kr as n, Se as r, Or as t };
3829
3829
 
3830
- //# sourceMappingURL=dist-CiyOP0NN.js.map
3830
+ //# sourceMappingURL=dist-BJHNNhZr.js.map