drizzle-cube 0.12.2 → 0.12.3

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 (360) hide show
  1. package/dist/adapters/ActivityGridChart.config-D14_z5sv.js +1 -0
  2. package/dist/adapters/ActivityGridChart.config-ufhph9uT.cjs +1 -0
  3. package/dist/adapters/AreaChart.config-0WZQMQva.js +1 -0
  4. package/dist/adapters/AreaChart.config-D13ltksm.cjs +1 -0
  5. package/dist/adapters/BarChart.config-CKW_EixK.cjs +1 -0
  6. package/dist/adapters/BarChart.config-Dap2k5h9.js +1 -0
  7. package/dist/adapters/BoxPlotChart.config-BL9GycIS.js +1 -0
  8. package/dist/adapters/BoxPlotChart.config-D8ijk7P0.cjs +1 -0
  9. package/dist/adapters/BubbleChart.config-B5mdZpOU.js +1 -0
  10. package/dist/adapters/BubbleChart.config-D_F6Q5z3.cjs +1 -0
  11. package/dist/adapters/CandlestickChart.config-DWebnARH.cjs +1 -0
  12. package/dist/adapters/CandlestickChart.config-U_bjkKnh.js +1 -0
  13. package/dist/adapters/DataTable.config-CgONV9qM.cjs +1 -0
  14. package/dist/adapters/DataTable.config-Cuagfjxg.js +1 -0
  15. package/dist/adapters/DotStripChart.config-B5lxjWSO.js +1 -0
  16. package/dist/adapters/DotStripChart.config-fD9Mc6W1.cjs +1 -0
  17. package/dist/adapters/FunnelChart.config-BaE_hLT-.js +1 -0
  18. package/dist/adapters/FunnelChart.config-Cx7W7-R0.cjs +1 -0
  19. package/dist/adapters/GaugeChart.config-CgKuBQVo.cjs +1 -0
  20. package/dist/adapters/GaugeChart.config-ilNlLLj6.js +1 -0
  21. package/dist/adapters/HeatMapChart.config-Bbk6aa8K.js +1 -0
  22. package/dist/adapters/HeatMapChart.config-CURg_iiu.cjs +1 -0
  23. package/dist/adapters/KpiDelta.config-CuZ2C_6t.js +1 -0
  24. package/dist/adapters/KpiDelta.config-DRy870xF.cjs +1 -0
  25. package/dist/adapters/KpiNumber.config-BWowvaBG.cjs +1 -0
  26. package/dist/adapters/KpiNumber.config-h9VspPBo.js +1 -0
  27. package/dist/adapters/KpiText.config-CXouHoxx.js +1 -0
  28. package/dist/adapters/KpiText.config-dSbcOdVW.cjs +1 -0
  29. package/dist/adapters/LineChart.config-BrcTc3dO.cjs +1 -0
  30. package/dist/adapters/LineChart.config-DOZctkmK.js +1 -0
  31. package/dist/adapters/MarkdownChart.config-BduAIK5N.js +1 -0
  32. package/dist/adapters/MarkdownChart.config-CFnH92Fg.cjs +1 -0
  33. package/dist/adapters/MeasureProfileChart.config-BgdtMIbZ.js +1 -0
  34. package/dist/adapters/MeasureProfileChart.config-CUahwnse.cjs +1 -0
  35. package/dist/adapters/PieChart.config-Bwf8meCN.js +1 -0
  36. package/dist/adapters/PieChart.config-ClfJ6LyA.cjs +1 -0
  37. package/dist/adapters/ProportionBarChart.config-CKyen5fP.cjs +1 -0
  38. package/dist/adapters/ProportionBarChart.config-D7RADfKH.js +1 -0
  39. package/dist/adapters/RadarChart.config-CBR7pNrt.js +1 -0
  40. package/dist/adapters/RadarChart.config-DSLRklgx.cjs +1 -0
  41. package/dist/adapters/RadialBarChart.config-BTGjY6JD.js +1 -0
  42. package/dist/adapters/RadialBarChart.config-CPbimqdg.cjs +1 -0
  43. package/dist/adapters/RecordsTable.config-B1Z_3JTJ.js +1 -0
  44. package/dist/adapters/RecordsTable.config-C6QhLcZk.cjs +1 -0
  45. package/dist/adapters/RetentionCombinedChart.config-BkSezvSb.js +1 -0
  46. package/dist/adapters/RetentionCombinedChart.config-R1Eq-xRI.cjs +1 -0
  47. package/dist/adapters/RetentionHeatmap.config-BlUhtL5W.js +1 -0
  48. package/dist/adapters/RetentionHeatmap.config-DCIsToqo.cjs +1 -0
  49. package/dist/adapters/SankeyChart.config-Bt0F2A6e.js +1 -0
  50. package/dist/adapters/SankeyChart.config-_Z5ZrziF.cjs +1 -0
  51. package/dist/adapters/ScatterChart.config-BW0_kSo8.cjs +1 -0
  52. package/dist/adapters/ScatterChart.config-DCaM-v68.js +1 -0
  53. package/dist/adapters/SunburstChart.config-B8Q9pbbo.js +1 -0
  54. package/dist/adapters/SunburstChart.config-mhQZB6uc.cjs +1 -0
  55. package/dist/adapters/TreeMapChart.config-Ch--bdyv.js +1 -0
  56. package/dist/adapters/TreeMapChart.config-DaNlt1aC.cjs +1 -0
  57. package/dist/adapters/WaterfallChart.config-CR49XWjE.cjs +1 -0
  58. package/dist/adapters/WaterfallChart.config-qHaD0m4H.js +1 -0
  59. package/dist/adapters/core/cache-options.d.ts +4 -0
  60. package/dist/adapters/core/index.cjs +1 -1
  61. package/dist/adapters/core/index.js +1 -1
  62. package/dist/adapters/core-3nDM2f7O.cjs +1 -0
  63. package/dist/adapters/{core-pxHAXRX7.js → core-CD6SqK5q.js} +66 -58
  64. package/dist/adapters/{compiler-DEL18KHw.js → cors-headers-DYYDrG7S.js} +129 -110
  65. package/dist/adapters/{compiler-Cs1gQ8Tc.cjs → cors-headers-DxkPVNnZ.cjs} +4 -4
  66. package/dist/adapters/cors-headers.d.ts +19 -0
  67. package/dist/adapters/express/index.cjs +1 -1
  68. package/dist/adapters/express/index.js +13 -13
  69. package/dist/adapters/fastify/index.cjs +1 -1
  70. package/dist/adapters/fastify/index.js +13 -13
  71. package/dist/adapters/{handler-zbRXe0T7.js → handler-B_vsFWWm.js} +32 -32
  72. package/dist/adapters/{handler-BIntJx7r.cjs → handler-DSOaXFuV.cjs} +3 -3
  73. package/dist/adapters/hono/index.cjs +1 -1
  74. package/dist/adapters/hono/index.js +12 -12
  75. package/dist/adapters/locale.d.ts +0 -1
  76. package/dist/adapters/mcp-app-html-DkiIh0rL.cjs +1 -0
  77. package/dist/adapters/mcp-app-html-DwnysAEL.js +5 -0
  78. package/dist/adapters/mcp-app-html.cjs +1 -1
  79. package/dist/adapters/mcp-app-html.js +1 -1
  80. package/dist/adapters/mcp-tools.cjs +1 -1
  81. package/dist/adapters/mcp-tools.js +3 -3
  82. package/dist/adapters/{mcp-transport-D0sMYZAv.cjs → mcp-transport-7zszPPXk.cjs} +1 -1
  83. package/dist/adapters/{mcp-transport-Dt0OJUTC.js → mcp-transport-DVI1lCNM.js} +1 -1
  84. package/dist/adapters/nextjs/index.cjs +1 -1
  85. package/dist/adapters/nextjs/index.js +20 -20
  86. package/dist/adapters/{openai-D-GSoFRS.js → openai-Bdnnw3Ok.js} +1 -1
  87. package/dist/adapters/{openai-fP9uuybp.cjs → openai-CE52anhW.cjs} +1 -1
  88. package/dist/adapters/{openai-yZ3KkIqz.js → openai-DA9yrRkA.js} +1 -1
  89. package/dist/adapters/{openai-BVi0RiSA.cjs → openai-JLaT_FPt.cjs} +1 -1
  90. package/dist/adapters/{utils-BTZoHYi5.js → utils-BtiRfbcX.js} +28 -2
  91. package/dist/adapters/utils-OLv25-nn.cjs +141 -0
  92. package/dist/adapters/utils.cjs +1 -1
  93. package/dist/adapters/utils.d.ts +5 -10
  94. package/dist/adapters/utils.js +1 -1
  95. package/dist/cjs/adapters/core/cache-options.d.ts +4 -0
  96. package/dist/cjs/adapters/cors-headers.d.ts +19 -0
  97. package/dist/cjs/adapters/locale.d.ts +0 -1
  98. package/dist/cjs/adapters/utils.d.ts +5 -10
  99. package/dist/cjs/client/charts/lazyChartConfigRegistry.d.ts +2 -2
  100. package/dist/cjs/client/client/BatchCoordinator.d.ts +21 -6
  101. package/dist/cjs/client/client/CubeClient.d.ts +34 -8
  102. package/dist/cjs/client/client/maxAge.d.ts +84 -0
  103. package/dist/cjs/client/client/subscription.d.ts +30 -0
  104. package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
  105. package/dist/cjs/client/components/FloatingEditToolbar.d.ts +5 -1
  106. package/dist/cjs/client/components/MobileStackedLayout.d.ts +8 -2
  107. package/dist/cjs/client/components/PortletAnalysisModal.d.ts +4 -2
  108. package/dist/cjs/client/components/analyticsPortlet/usePortletDeadMembers.d.ts +4 -2
  109. package/dist/cjs/client/components/analyticsPortlet/usePortletQueryResults.d.ts +15 -5
  110. package/dist/cjs/client/components/analyticsPortlet/usePortletVisibility.d.ts +23 -0
  111. package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +16 -3
  112. package/dist/cjs/client/components/dashboard/DashboardEditBar.d.ts +1 -1
  113. package/dist/cjs/client/components/dashboard/DashboardRefreshSelector.d.ts +12 -0
  114. package/dist/cjs/client/components/dashboard/DashboardToolbar.d.ts +2 -1
  115. package/dist/cjs/client/components/dashboard/RefreshPauseToggle.d.ts +8 -0
  116. package/dist/cjs/client/components/dashboardPortletCard/DataFreshnessIndicator.d.ts +19 -0
  117. package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +13 -3
  118. package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +2 -3
  119. package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +7 -4
  120. package/dist/cjs/client/components/portletAnalysisModal/RefreshSettings.d.ts +24 -0
  121. package/dist/cjs/client/hooks/dashboard/useDashboardController.d.ts +6 -10
  122. package/dist/cjs/client/hooks/dashboard/useDashboardRefreshTimer.d.ts +28 -0
  123. package/dist/cjs/client/hooks/queries/useCubeLoadQuery.d.ts +26 -6
  124. package/dist/cjs/client/hooks/queries/useFlowQuery.d.ts +6 -3
  125. package/dist/cjs/client/hooks/queries/useMultiCubeLoadQuery.d.ts +13 -4
  126. package/dist/cjs/client/hooks/queries/useRetentionQuery.d.ts +7 -4
  127. package/dist/cjs/client/hooks/queries/useShownRowsAge.d.ts +10 -0
  128. package/dist/cjs/client/hooks/useAnalysisBuilderHook.d.ts +2 -3
  129. package/dist/cjs/client/hooks/useAnalysisEffects.d.ts +2 -0
  130. package/dist/cjs/client/hooks/useAnalysisQuery.d.ts +2 -3
  131. package/dist/cjs/client/hooks/useDashboardHook.d.ts +7 -10
  132. package/dist/cjs/client/icons/types.d.ts +2 -0
  133. package/dist/cjs/client/index.d.ts +3 -1
  134. package/dist/cjs/client/shared/chartDefaults.d.ts +5 -3
  135. package/dist/cjs/client/stores/dashboardStore.d.ts +13 -0
  136. package/dist/cjs/client/types/funnel.d.ts +10 -4
  137. package/dist/cjs/client/types.d.ts +68 -3
  138. package/dist/cjs/client/utils/freshness.d.ts +37 -0
  139. package/dist/cjs/client/utils/multiQueryUtils.d.ts +23 -0
  140. package/dist/cjs/server/compiler.d.ts +2 -0
  141. package/dist/cjs/server/execution/query-result-cache.d.ts +8 -2
  142. package/dist/cjs/server/executor.d.ts +1 -0
  143. package/dist/cjs/server/physical-plan/processors/shared.d.ts +2 -0
  144. package/dist/cjs/server/types/core.d.ts +12 -1
  145. package/dist/cjs/server/types/cube.d.ts +7 -0
  146. package/dist/client/charts/lazyChartConfigRegistry.d.ts +2 -2
  147. package/dist/client/charts.js +13 -13
  148. package/dist/client/chunks/{DashboardEditModal-C7Nj2XvQ.js → DashboardEditModal-F2fGr29d.js} +2572 -2196
  149. package/dist/client/chunks/DashboardEditModal-F2fGr29d.js.map +1 -0
  150. package/dist/client/chunks/{DotStripChart-QEz91ja9.js → DotStripChart-CQaJwo8K.js} +3 -3
  151. package/dist/client/chunks/{DotStripChart-QEz91ja9.js.map → DotStripChart-CQaJwo8K.js.map} +1 -1
  152. package/dist/client/chunks/{ProportionBarChart-pb8nuT0D.js → ProportionBarChart-DiA5ZGeg.js} +3 -3
  153. package/dist/client/chunks/{ProportionBarChart-pb8nuT0D.js.map → ProportionBarChart-DiA5ZGeg.js.map} +1 -1
  154. package/dist/client/chunks/{RecordsTable-D8Lirq-E.js → RecordsTable-Bgqo-LjT.js} +166 -166
  155. package/dist/client/chunks/RecordsTable-Bgqo-LjT.js.map +1 -0
  156. package/dist/client/chunks/{RetentionCombinedChart-B9onTBMq.js → RetentionCombinedChart-BtMRtwlb.js} +3 -3
  157. package/dist/client/chunks/{RetentionCombinedChart-B9onTBMq.js.map → RetentionCombinedChart-BtMRtwlb.js.map} +1 -1
  158. package/dist/client/chunks/{RetentionHeatmap-WN_NOsvA.js → RetentionHeatmap-ChTa35gp.js} +2 -2
  159. package/dist/client/chunks/{RetentionHeatmap-WN_NOsvA.js.map → RetentionHeatmap-ChTa35gp.js.map} +1 -1
  160. package/dist/client/chunks/{analysis-builder-CmnW9_92.js → analysis-builder-CnmkTZm2.js} +831 -845
  161. package/dist/client/chunks/analysis-builder-CnmkTZm2.js.map +1 -0
  162. package/dist/client/chunks/{analysis-builder-shared-W_lbhFRa.js → analysis-builder-shared-BsjxOL7r.js} +809 -803
  163. package/dist/client/chunks/analysis-builder-shared-BsjxOL7r.js.map +1 -0
  164. package/dist/client/chunks/{chart-activity-grid-CJXF0zeZ.js → chart-activity-grid-DeDPSs12.js} +27 -2
  165. package/dist/client/chunks/{chart-activity-grid-CJXF0zeZ.js.map → chart-activity-grid-DeDPSs12.js.map} +1 -1
  166. package/dist/client/chunks/{chart-area-DbcIg5Ql.js → chart-area-WyrVYze7.js} +2 -2
  167. package/dist/client/chunks/{chart-area-DbcIg5Ql.js.map → chart-area-WyrVYze7.js.map} +1 -1
  168. package/dist/client/chunks/{chart-bar-E_qVO7I9.js → chart-bar-wGHC1Hfo.js} +3 -3
  169. package/dist/client/chunks/{chart-bar-E_qVO7I9.js.map → chart-bar-wGHC1Hfo.js.map} +1 -1
  170. package/dist/client/chunks/{chart-box-plot-CIwQZh9I.js → chart-box-plot-CW5GZHM9.js} +2 -2
  171. package/dist/client/chunks/{chart-box-plot-CIwQZh9I.js.map → chart-box-plot-CW5GZHM9.js.map} +1 -1
  172. package/dist/client/chunks/{chart-bubble-BrMToSQW.js → chart-bubble-CKkVi7L2.js} +2 -2
  173. package/dist/client/chunks/{chart-bubble-BrMToSQW.js.map → chart-bubble-CKkVi7L2.js.map} +1 -1
  174. package/dist/client/chunks/{chart-candlestick-C9FBo9mf.js → chart-candlestick-BPFeay7t.js} +2 -2
  175. package/dist/client/chunks/{chart-candlestick-C9FBo9mf.js.map → chart-candlestick-BPFeay7t.js.map} +1 -1
  176. package/dist/client/chunks/{chart-data-table-vxJ9eDbC.js → chart-data-table-uJG1V-be.js} +1133 -854
  177. package/dist/client/chunks/chart-data-table-uJG1V-be.js.map +1 -0
  178. package/dist/client/chunks/{chart-funnel-D11lxZ5_.js → chart-funnel-BtUexI1t.js} +2 -2
  179. package/dist/client/chunks/{chart-funnel-D11lxZ5_.js.map → chart-funnel-BtUexI1t.js.map} +1 -1
  180. package/dist/client/chunks/{chart-gauge-BQcgvynO.js → chart-gauge-BSrfZFsW.js} +3 -3
  181. package/dist/client/chunks/{chart-gauge-BQcgvynO.js.map → chart-gauge-BSrfZFsW.js.map} +1 -1
  182. package/dist/client/chunks/{chart-heat-map-J2j5MNLJ.js → chart-heat-map-DtMtuFnw.js} +3 -3
  183. package/dist/client/chunks/{chart-heat-map-J2j5MNLJ.js.map → chart-heat-map-DtMtuFnw.js.map} +1 -1
  184. package/dist/client/chunks/{chart-kpi-delta-BKEJT7mj.js → chart-kpi-delta-B0BkN_Q6.js} +3 -3
  185. package/dist/client/chunks/{chart-kpi-delta-BKEJT7mj.js.map → chart-kpi-delta-B0BkN_Q6.js.map} +1 -1
  186. package/dist/client/chunks/{chart-kpi-number-DCBXjFI-.js → chart-kpi-number-zlBkLesi.js} +5 -5
  187. package/dist/client/chunks/{chart-kpi-number-DCBXjFI-.js.map → chart-kpi-number-zlBkLesi.js.map} +1 -1
  188. package/dist/client/chunks/{chart-kpi-text-D_qFY84K.js → chart-kpi-text-BXXfkhz_.js} +3 -3
  189. package/dist/client/chunks/{chart-kpi-text-D_qFY84K.js.map → chart-kpi-text-BXXfkhz_.js.map} +1 -1
  190. package/dist/client/chunks/{chart-line-CS2ixl5U.js → chart-line-D_yFQDze.js} +3 -3
  191. package/dist/client/chunks/{chart-line-CS2ixl5U.js.map → chart-line-D_yFQDze.js.map} +1 -1
  192. package/dist/client/chunks/{chart-markdown-DKMZqwwH.js → chart-markdown-DaBTpRgf.js} +2 -2
  193. package/dist/client/chunks/{chart-markdown-DKMZqwwH.js.map → chart-markdown-DaBTpRgf.js.map} +1 -1
  194. package/dist/client/chunks/{chart-measure-profile-Cu-JZfYt.js → chart-measure-profile-DOHIm-QY.js} +3 -3
  195. package/dist/client/chunks/{chart-measure-profile-Cu-JZfYt.js.map → chart-measure-profile-DOHIm-QY.js.map} +1 -1
  196. package/dist/client/chunks/{chart-pie-CNRjmYs5.js → chart-pie-DLrT81CL.js} +3 -3
  197. package/dist/client/chunks/{chart-pie-CNRjmYs5.js.map → chart-pie-DLrT81CL.js.map} +1 -1
  198. package/dist/client/chunks/{chart-radar-BZbwDAIY.js → chart-radar-CcXG6k6o.js} +3 -3
  199. package/dist/client/chunks/{chart-radar-BZbwDAIY.js.map → chart-radar-CcXG6k6o.js.map} +1 -1
  200. package/dist/client/chunks/{chart-radial-bar-Dvd2DAnu.js → chart-radial-bar-DYn5FLrG.js} +3 -3
  201. package/dist/client/chunks/{chart-radial-bar-Dvd2DAnu.js.map → chart-radial-bar-DYn5FLrG.js.map} +1 -1
  202. package/dist/client/chunks/{chart-sankey-CxR3tqnR.js → chart-sankey-CWkctg-k.js} +2 -2
  203. package/dist/client/chunks/{chart-sankey-CxR3tqnR.js.map → chart-sankey-CWkctg-k.js.map} +1 -1
  204. package/dist/client/chunks/{chart-scatter-BqFOCOhW.js → chart-scatter-CCGL2IEP.js} +3 -3
  205. package/dist/client/chunks/{chart-scatter-BqFOCOhW.js.map → chart-scatter-CCGL2IEP.js.map} +1 -1
  206. package/dist/client/chunks/{chart-sunburst-C6wdt55m.js → chart-sunburst-9sgiHFSO.js} +3 -3
  207. package/dist/client/chunks/{chart-sunburst-C6wdt55m.js.map → chart-sunburst-9sgiHFSO.js.map} +1 -1
  208. package/dist/client/chunks/{chart-tree-map-DE8-SZzY.js → chart-tree-map-DOWeXCn_.js} +3 -3
  209. package/dist/client/chunks/{chart-tree-map-DE8-SZzY.js.map → chart-tree-map-DOWeXCn_.js.map} +1 -1
  210. package/dist/client/chunks/{chart-waterfall-DdIFbm8I.js → chart-waterfall-BS7x0dW-.js} +3 -3
  211. package/dist/client/chunks/{chart-waterfall-DdIFbm8I.js.map → chart-waterfall-BS7x0dW-.js.map} +1 -1
  212. package/dist/client/chunks/{charts-core-0qGDP3Zh.js → charts-core-DM-Eav_9.js} +2 -2
  213. package/dist/client/chunks/{charts-core-0qGDP3Zh.js.map → charts-core-DM-Eav_9.js.map} +1 -1
  214. package/dist/client/chunks/charts-loader-3N-LqjLk.js +87 -0
  215. package/dist/client/chunks/{charts-loader-CwTTQh7e.js.map → charts-loader-3N-LqjLk.js.map} +1 -1
  216. package/dist/client/chunks/{dashboardExport-Cy5OOMpb.js → dashboardExport-ZiT4DcDZ.js} +143 -121
  217. package/dist/client/chunks/dashboardExport-ZiT4DcDZ.js.map +1 -0
  218. package/dist/client/chunks/{gapFilling-DKBRHcQL.js → gapFilling-C-A4o8Cl.js} +2 -1
  219. package/dist/client/chunks/{gapFilling-DKBRHcQL.js.map → gapFilling-C-A4o8Cl.js.map} +1 -1
  220. package/dist/client/chunks/{nl-NL-Fi9_nOz7.js → nl-NL-CKfZudeP.js} +26 -1
  221. package/dist/client/chunks/{nl-NL-Fi9_nOz7.js.map → nl-NL-CKfZudeP.js.map} +1 -1
  222. package/dist/client/chunks/{schema-visualization-CcYQAUCS.js → schema-visualization-BO70spCF.js} +3 -3
  223. package/dist/client/chunks/{schema-visualization-CcYQAUCS.js.map → schema-visualization-BO70spCF.js.map} +1 -1
  224. package/dist/client/chunks/useDirtyStateTracking-OVW-JnrF.js +1086 -0
  225. package/dist/client/chunks/useDirtyStateTracking-OVW-JnrF.js.map +1 -0
  226. package/dist/client/chunks/{useExplainAI-2W12PFz_.js → useExplainAI-BrjlR24K.js} +25 -25
  227. package/dist/client/chunks/{useExplainAI-2W12PFz_.js.map → useExplainAI-BrjlR24K.js.map} +1 -1
  228. package/dist/client/chunks/{vendor-Bz0lKciG.js → vendor-Das3qwov.js} +188 -188
  229. package/dist/client/chunks/vendor-Das3qwov.js.map +1 -0
  230. package/dist/client/client/BatchCoordinator.d.ts +21 -6
  231. package/dist/client/client/CubeClient.d.ts +34 -8
  232. package/dist/client/client/maxAge.d.ts +84 -0
  233. package/dist/client/client/subscription.d.ts +30 -0
  234. package/dist/client/components/DashboardPortletCard.d.ts +1 -1
  235. package/dist/client/components/FloatingEditToolbar.d.ts +5 -1
  236. package/dist/client/components/MobileStackedLayout.d.ts +8 -2
  237. package/dist/client/components/PortletAnalysisModal.d.ts +4 -2
  238. package/dist/client/components/analyticsPortlet/usePortletDeadMembers.d.ts +4 -2
  239. package/dist/client/components/analyticsPortlet/usePortletQueryResults.d.ts +15 -5
  240. package/dist/client/components/analyticsPortlet/usePortletVisibility.d.ts +23 -0
  241. package/dist/client/components/dashboard/DashboardContext.d.ts +16 -3
  242. package/dist/client/components/dashboard/DashboardEditBar.d.ts +1 -1
  243. package/dist/client/components/dashboard/DashboardRefreshSelector.d.ts +12 -0
  244. package/dist/client/components/dashboard/DashboardToolbar.d.ts +2 -1
  245. package/dist/client/components/dashboard/RefreshPauseToggle.d.ts +8 -0
  246. package/dist/client/components/dashboardPortletCard/DataFreshnessIndicator.d.ts +19 -0
  247. package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +13 -3
  248. package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +2 -3
  249. package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +7 -4
  250. package/dist/client/components/portletAnalysisModal/RefreshSettings.d.ts +24 -0
  251. package/dist/client/components.js +1 -1
  252. package/dist/client/hooks/dashboard/useDashboardController.d.ts +6 -10
  253. package/dist/client/hooks/dashboard/useDashboardRefreshTimer.d.ts +28 -0
  254. package/dist/client/hooks/queries/useCubeLoadQuery.d.ts +26 -6
  255. package/dist/client/hooks/queries/useFlowQuery.d.ts +6 -3
  256. package/dist/client/hooks/queries/useMultiCubeLoadQuery.d.ts +13 -4
  257. package/dist/client/hooks/queries/useRetentionQuery.d.ts +7 -4
  258. package/dist/client/hooks/queries/useShownRowsAge.d.ts +10 -0
  259. package/dist/client/hooks/useAnalysisBuilderHook.d.ts +2 -3
  260. package/dist/client/hooks/useAnalysisEffects.d.ts +2 -0
  261. package/dist/client/hooks/useAnalysisQuery.d.ts +2 -3
  262. package/dist/client/hooks/useDashboardHook.d.ts +7 -10
  263. package/dist/client/hooks.js +4 -4
  264. package/dist/client/icons/types.d.ts +2 -0
  265. package/dist/client/icons.js +1 -1
  266. package/dist/client/index.d.ts +3 -1
  267. package/dist/client/index.js +265 -265
  268. package/dist/client/index.js.map +1 -1
  269. package/dist/client/providers.js +3 -3
  270. package/dist/client/schema.js +1 -1
  271. package/dist/client/shared/chartDefaults.d.ts +5 -3
  272. package/dist/client/stores/dashboardStore.d.ts +13 -0
  273. package/dist/client/types/funnel.d.ts +10 -4
  274. package/dist/client/types.d.ts +68 -3
  275. package/dist/client/utils/freshness.d.ts +37 -0
  276. package/dist/client/utils/multiQueryUtils.d.ts +23 -0
  277. package/dist/client/utils.js +6 -6
  278. package/dist/client-bundle-stats.html +1 -1
  279. package/dist/mcp-app/mcp-app.html +100 -100
  280. package/dist/server/compiler.d.ts +2 -0
  281. package/dist/server/execution/query-result-cache.d.ts +8 -2
  282. package/dist/server/executor.d.ts +1 -0
  283. package/dist/server/index.cjs +42 -42
  284. package/dist/server/index.js +1262 -1229
  285. package/dist/server/physical-plan/processors/shared.d.ts +2 -0
  286. package/dist/server/types/core.d.ts +12 -1
  287. package/dist/server/types/cube.d.ts +7 -0
  288. package/package.json +1 -1
  289. package/dist/adapters/ActivityGridChart.config-D39xezZk.cjs +0 -1
  290. package/dist/adapters/ActivityGridChart.config-Dda_6s0U.js +0 -1
  291. package/dist/adapters/AreaChart.config-C2jCU8Un.js +0 -1
  292. package/dist/adapters/AreaChart.config-OUEFGX8L.cjs +0 -1
  293. package/dist/adapters/BarChart.config-D98PTSf1.cjs +0 -1
  294. package/dist/adapters/BarChart.config-EU-BNwwQ.js +0 -1
  295. package/dist/adapters/BoxPlotChart.config-C31U6Xwc.cjs +0 -1
  296. package/dist/adapters/BoxPlotChart.config-CZ9PdgAR.js +0 -1
  297. package/dist/adapters/BubbleChart.config-bdvOX_OM.js +0 -1
  298. package/dist/adapters/BubbleChart.config-o1gkn-oi.cjs +0 -1
  299. package/dist/adapters/CandlestickChart.config-BJ2zddnS.cjs +0 -1
  300. package/dist/adapters/CandlestickChart.config-DVoQffTz.js +0 -1
  301. package/dist/adapters/DataTable.config-4jfKTU-P.cjs +0 -1
  302. package/dist/adapters/DataTable.config-CYymkiCj.js +0 -1
  303. package/dist/adapters/DotStripChart.config-CdEToyMR.js +0 -1
  304. package/dist/adapters/DotStripChart.config-CeGKfd2Y.cjs +0 -1
  305. package/dist/adapters/FunnelChart.config-C9xr0lB7.cjs +0 -1
  306. package/dist/adapters/FunnelChart.config-DgLsAd6X.js +0 -1
  307. package/dist/adapters/GaugeChart.config-Crpx_mOJ.cjs +0 -1
  308. package/dist/adapters/GaugeChart.config-DMGLtrtP.js +0 -1
  309. package/dist/adapters/HeatMapChart.config-Bag4iUrV.js +0 -1
  310. package/dist/adapters/HeatMapChart.config-DYlOsCXv.cjs +0 -1
  311. package/dist/adapters/KpiDelta.config-CpBbqTSe.js +0 -1
  312. package/dist/adapters/KpiDelta.config-Dz04ftLJ.cjs +0 -1
  313. package/dist/adapters/KpiNumber.config-B7hJ_9KD.js +0 -1
  314. package/dist/adapters/KpiNumber.config-B90sa19m.cjs +0 -1
  315. package/dist/adapters/KpiText.config-BkFneytA.cjs +0 -1
  316. package/dist/adapters/KpiText.config-De251rp3.js +0 -1
  317. package/dist/adapters/LineChart.config-BqhSrY3Y.cjs +0 -1
  318. package/dist/adapters/LineChart.config-So9LmBca.js +0 -1
  319. package/dist/adapters/MarkdownChart.config-Bb68uUv7.cjs +0 -1
  320. package/dist/adapters/MarkdownChart.config-CPrdMTKk.js +0 -1
  321. package/dist/adapters/MeasureProfileChart.config-D8ys_JcL.cjs +0 -1
  322. package/dist/adapters/MeasureProfileChart.config-DmtZaq33.js +0 -1
  323. package/dist/adapters/PieChart.config-DSCsXFyT.cjs +0 -1
  324. package/dist/adapters/PieChart.config-GnJP21n4.js +0 -1
  325. package/dist/adapters/ProportionBarChart.config-BpMvnSL2.js +0 -1
  326. package/dist/adapters/ProportionBarChart.config-L2KzFFNd.cjs +0 -1
  327. package/dist/adapters/RadarChart.config-BuoeQHzU.js +0 -1
  328. package/dist/adapters/RadarChart.config-s00FMtiV.cjs +0 -1
  329. package/dist/adapters/RadialBarChart.config-Csaj03QZ.cjs +0 -1
  330. package/dist/adapters/RadialBarChart.config-Cx5SaB02.js +0 -1
  331. package/dist/adapters/RecordsTable.config-Daba7GEf.cjs +0 -1
  332. package/dist/adapters/RecordsTable.config-DaeLGs-c.js +0 -1
  333. package/dist/adapters/RetentionCombinedChart.config-BC1bizXY.cjs +0 -1
  334. package/dist/adapters/RetentionCombinedChart.config-eOTeHUd-.js +0 -1
  335. package/dist/adapters/RetentionHeatmap.config-BW0tarnm.cjs +0 -1
  336. package/dist/adapters/RetentionHeatmap.config-C_ObG7BL.js +0 -1
  337. package/dist/adapters/SankeyChart.config-BvtX99Ub.js +0 -1
  338. package/dist/adapters/SankeyChart.config-D1vkom4z.cjs +0 -1
  339. package/dist/adapters/ScatterChart.config-OF3pLDki.cjs +0 -1
  340. package/dist/adapters/ScatterChart.config-gmIhEs9x.js +0 -1
  341. package/dist/adapters/SunburstChart.config-DVF_YC7z.cjs +0 -1
  342. package/dist/adapters/SunburstChart.config-IeVU95wF.js +0 -1
  343. package/dist/adapters/TreeMapChart.config-CZbNvSfx.js +0 -1
  344. package/dist/adapters/TreeMapChart.config-CzjOynvQ.cjs +0 -1
  345. package/dist/adapters/WaterfallChart.config-BCKwwg8W.cjs +0 -1
  346. package/dist/adapters/WaterfallChart.config-BQ-qNCQD.js +0 -1
  347. package/dist/adapters/core-Bpzlbfe4.cjs +0 -1
  348. package/dist/adapters/mcp-app-html-DjXsoT66.js +0 -5
  349. package/dist/adapters/mcp-app-html-s0EguZzT.cjs +0 -1
  350. package/dist/adapters/utils-DY4WUdbt.cjs +0 -141
  351. package/dist/client/chunks/DashboardEditModal-C7Nj2XvQ.js.map +0 -1
  352. package/dist/client/chunks/RecordsTable-D8Lirq-E.js.map +0 -1
  353. package/dist/client/chunks/analysis-builder-CmnW9_92.js.map +0 -1
  354. package/dist/client/chunks/analysis-builder-shared-W_lbhFRa.js.map +0 -1
  355. package/dist/client/chunks/chart-data-table-vxJ9eDbC.js.map +0 -1
  356. package/dist/client/chunks/charts-loader-CwTTQh7e.js +0 -87
  357. package/dist/client/chunks/dashboardExport-Cy5OOMpb.js.map +0 -1
  358. package/dist/client/chunks/useDirtyStateTracking-C_pCRhRu.js +0 -1150
  359. package/dist/client/chunks/useDirtyStateTracking-C_pCRhRu.js.map +0 -1
  360. package/dist/client/chunks/vendor-Bz0lKciG.js.map +0 -1
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-DY4WUdbt.cjs");exports.buildTransformedQuery=e.t,exports.calculateQueryComplexity=e.n,exports.formatCubeResponse=e.r,exports.formatErrorResponse=e.i,exports.formatMetaResponse=e.a,exports.formatSqlResponse=e.o,exports.formatSqlString=e.x,exports.generateRequestId=e.s,exports.getDatabaseType=e.c,exports.handleBatchRequest=e.l,exports.handleDiscover=e.p,exports.handleDryRun=e.u,exports.handleLoad=e.m,exports.handleSuggest=e.d,exports.handleValidate=e.f,exports.normalizeQueryFields=e.h;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-OLv25-nn.cjs");exports.buildTransformedQuery=e.t,exports.calculateQueryComplexity=e.n,exports.formatCubeResponse=e.r,exports.formatErrorResponse=e.i,exports.formatMetaResponse=e.a,exports.formatSqlResponse=e.o,exports.formatSqlString=e.x,exports.generateRequestId=e.s,exports.getDatabaseType=e.c,exports.handleBatchRequest=e.l,exports.handleDiscover=e.p,exports.handleDryRun=e.u,exports.handleLoad=e.m,exports.handleSuggest=e.d,exports.handleValidate=e.f,exports.normalizeQueryFields=e.h;
@@ -1,4 +1,4 @@
1
- import { SemanticLayerCompiler, SemanticQuery, SecurityContext, QuerySuggestion, AIValidationResult, QueryValidationIssue } from '../server/index.js';
1
+ import { SemanticLayerCompiler, SemanticQuery, SecurityContext, QuerySuggestion, AIValidationResult, QueryValidationIssue, ExecutionOptions } from '../server/index.js';
2
2
  import { normalizeQueryFields } from '../server/query-handlers.js';
3
3
  import { MCPPromptResolver, MCPResourceResolver, MCPInstructionsResolver } from './mcp-transport.js';
4
4
  export { handleDiscover, handleLoad } from '../server/query-handlers.js';
@@ -184,15 +184,10 @@ export declare function formatErrorResponse(error: string | Error, status?: numb
184
184
  status: number;
185
185
  };
186
186
  /**
187
- * Options for batch request handling
187
+ * Options for batch request handling: the result-cache execution options
188
+ * (`skipCache`, `maxAgeMs`), applied to every query in the batch.
188
189
  */
189
- export interface BatchRequestOptions {
190
- /**
191
- * Whether to bypass server-side cache for all queries in the batch
192
- * When true, all queries will be executed fresh without cache
193
- */
194
- skipCache?: boolean;
195
- }
190
+ export type BatchRequestOptions = Pick<ExecutionOptions, 'skipCache' | 'maxAgeMs'>;
196
191
  /**
197
192
  * Handle batch query requests - wrapper around existing single query execution
198
193
  * Executes multiple queries in parallel and returns partial success results
@@ -200,7 +195,7 @@ export interface BatchRequestOptions {
200
195
  * @param queries - Array of semantic queries to execute
201
196
  * @param securityContext - Security context (extracted once, shared across all queries)
202
197
  * @param semanticLayer - Semantic layer compiler instance
203
- * @param options - Optional batch request options (e.g., skipCache)
198
+ * @param options - Optional batch request options (skipCache, maxAgeMs)
204
199
  * @returns Array of results matching input query order (successful or error results)
205
200
  */
206
201
  export declare function handleBatchRequest(queries: SemanticQuery[], securityContext: SecurityContext, semanticLayer: SemanticLayerCompiler, options?: BatchRequestOptions): Promise<{
@@ -1 +1 @@
1
- export { t as buildTransformedQuery, n as calculateQueryComplexity, r as formatCubeResponse, i as formatErrorResponse, a as formatMetaResponse, o as formatSqlResponse, x as formatSqlString, s as generateRequestId, c as getDatabaseType, l as handleBatchRequest, p as handleDiscover, u as handleDryRun, m as handleLoad, d as handleSuggest, f as handleValidate, h as normalizeQueryFields } from "./utils-BTZoHYi5.js";
1
+ export { t as buildTransformedQuery, n as calculateQueryComplexity, r as formatCubeResponse, i as formatErrorResponse, a as formatMetaResponse, o as formatSqlResponse, x as formatSqlString, s as generateRequestId, c as getDatabaseType, l as handleBatchRequest, p as handleDiscover, u as handleDryRun, m as handleLoad, d as handleSuggest, f as handleValidate, h as normalizeQueryFields } from "./utils-BtiRfbcX.js";
@@ -0,0 +1,4 @@
1
+ import { ExecutionOptions } from '../../server/index.js';
2
+ import { HeaderReader } from './security-context.js';
3
+ /** Read the request cache headers into the result-cache execution options. */
4
+ export declare function readCacheOptions(readHeader: HeaderReader): Pick<ExecutionOptions, 'skipCache' | 'maxAgeMs'>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Request headers the drizzle-cube client sends, which a cross-origin
3
+ * deployment's CORS preflight must allow. Adapters add them to a configured
4
+ * `allowHeaders` list so the integrator does not have to list them:
5
+ *
6
+ * - `X-DC-Locale` — the viewer's locale (see `locale.ts`)
7
+ * - `X-Cache-Max-Age` — the oldest cached result accepted (interval refresh
8
+ * sends one on every tick)
9
+ * - `X-Cache-Control` — `no-cache` on a cache bust
10
+ */
11
+ /** Client request headers, in the casing added to an allow list. */
12
+ export declare const CLIENT_REQUEST_HEADERS: readonly ["X-DC-Locale", "X-Cache-Max-Age", "X-Cache-Control"];
13
+ /**
14
+ * Add each of `required` to an allow list (array or comma-separated string)
15
+ * unless it is already there, compared case-insensitively.
16
+ */
17
+ export declare function ensureAllowedHeaders(allowHeaders: string[] | string | undefined, required: readonly string[]): string[];
18
+ /** Add every client request header to a CORS allow list. */
19
+ export declare function ensureClientRequestHeaders(allowHeaders?: string[] | string): string[];
@@ -4,5 +4,4 @@ export declare const DEFAULT_LOCALE = "en-GB";
4
4
  type HeaderValue = string | string[] | null | undefined;
5
5
  export declare function resolveRequestLocale(getHeader: (name: string) => HeaderValue): string | undefined;
6
6
  export declare function withLocaleInSecurityContext(securityContext: SecurityContext, requestLocale?: string): SecurityContext;
7
- export declare function ensureLocaleHeader(allowHeaders?: string[] | string): string[];
8
7
  export {};
@@ -1,4 +1,4 @@
1
- import { SemanticLayerCompiler, SemanticQuery, SecurityContext, QuerySuggestion, AIValidationResult, QueryValidationIssue } from '../server/index.js';
1
+ import { SemanticLayerCompiler, SemanticQuery, SecurityContext, QuerySuggestion, AIValidationResult, QueryValidationIssue, ExecutionOptions } from '../server/index.js';
2
2
  import { normalizeQueryFields } from '../server/query-handlers.js';
3
3
  import { MCPPromptResolver, MCPResourceResolver, MCPInstructionsResolver } from './mcp-transport.js';
4
4
  export { handleDiscover, handleLoad } from '../server/query-handlers.js';
@@ -184,15 +184,10 @@ export declare function formatErrorResponse(error: string | Error, status?: numb
184
184
  status: number;
185
185
  };
186
186
  /**
187
- * Options for batch request handling
187
+ * Options for batch request handling: the result-cache execution options
188
+ * (`skipCache`, `maxAgeMs`), applied to every query in the batch.
188
189
  */
189
- export interface BatchRequestOptions {
190
- /**
191
- * Whether to bypass server-side cache for all queries in the batch
192
- * When true, all queries will be executed fresh without cache
193
- */
194
- skipCache?: boolean;
195
- }
190
+ export type BatchRequestOptions = Pick<ExecutionOptions, 'skipCache' | 'maxAgeMs'>;
196
191
  /**
197
192
  * Handle batch query requests - wrapper around existing single query execution
198
193
  * Executes multiple queries in parallel and returns partial success results
@@ -200,7 +195,7 @@ export interface BatchRequestOptions {
200
195
  * @param queries - Array of semantic queries to execute
201
196
  * @param securityContext - Security context (extracted once, shared across all queries)
202
197
  * @param semanticLayer - Semantic layer compiler instance
203
- * @param options - Optional batch request options (e.g., skipCache)
198
+ * @param options - Optional batch request options (skipCache, maxAgeMs)
204
199
  * @returns Array of results matching input query order (successful or error results)
205
200
  */
206
201
  export declare function handleBatchRequest(queries: SemanticQuery[], securityContext: SecurityContext, semanticLayer: SemanticLayerCompiler, options?: BatchRequestOptions): Promise<{
@@ -90,11 +90,11 @@ export declare function loadAllChartConfigs(): Promise<ChartConfigRegistry>;
90
90
  export declare function clearChartConfigCache(): void;
91
91
  /**
92
92
  * Register a custom chart config directly into the cache.
93
- * Used by the chart plugin system.
93
+ * Used by the chart plugin system. Mounted `useChartConfig` hooks update.
94
94
  */
95
95
  export declare function registerConfigToCache(type: string, config: ChartTypeConfig): void;
96
96
  /**
97
97
  * Remove a custom chart config from the cache.
98
- * Used by the chart plugin system.
98
+ * Used by the chart plugin system. Mounted `useChartConfig` hooks update.
99
99
  */
100
100
  export declare function unregisterConfigFromCache(type: string): void;
@@ -1,22 +1,33 @@
1
1
  import { CubeQuery, CubeResultSet } from '../types.js';
2
+ /** Options for one registered query. */
3
+ export interface BatchRegisterOptions {
4
+ /** Oldest cached server result accepted, in seconds. 0 skips the cache read. */
5
+ maxAgeSeconds?: number;
6
+ }
7
+ /** Executes one batch. `options` is passed only when the batch has a max-age. */
8
+ export type BatchExecutor = (queries: CubeQuery[], options?: BatchRegisterOptions) => Promise<CubeResultSet[]>;
2
9
  /**
3
10
  * BatchCoordinator collects queries triggered in the same render cycle
4
11
  * and sends them as a single batch request to minimize network overhead.
5
12
  *
6
- * Uses a configurable delay (default 100ms) to batch queries from lazy-loaded
13
+ * Uses a configurable delay (default 50ms) to batch queries from lazy-loaded
7
14
  * portlets that become visible during the same scroll action.
15
+ *
16
+ * The pending queue is keyed by max-age: a batch carries one `x-cache-max-age`
17
+ * header, so queries with different max-ages flush as separate batch calls
18
+ * (and still batch among themselves). A cache bust is the max-age 0 queue.
8
19
  */
9
20
  export declare class BatchCoordinator {
10
- private queue;
21
+ private queues;
11
22
  private flushScheduled;
12
23
  private batchExecutor;
13
24
  private delayMs;
14
- constructor(batchExecutor: (queries: CubeQuery[]) => Promise<CubeResultSet[]>, delayMs?: number);
25
+ constructor(batchExecutor: BatchExecutor, delayMs?: number);
15
26
  /**
16
27
  * Register a query to be batched. Returns a promise that resolves
17
28
  * when the batch is executed and this specific query's result is available.
18
29
  */
19
- register(query: CubeQuery): Promise<CubeResultSet>;
30
+ register(query: CubeQuery, options?: BatchRegisterOptions): Promise<CubeResultSet>;
20
31
  /**
21
32
  * Schedule a flush after a short delay to collect multiple queries.
22
33
  * The delay allows queries from lazy-loaded portlets that become visible
@@ -24,11 +35,15 @@ export declare class BatchCoordinator {
24
35
  */
25
36
  private scheduleFlush;
26
37
  /**
27
- * Execute all queued queries as a batch and resolve individual promises
38
+ * Send every pending queue as its own batch call.
28
39
  */
29
40
  private flush;
30
41
  /**
31
- * Get current queue size (useful for debugging)
42
+ * Execute one queue as a batch and resolve individual promises
43
+ */
44
+ private flushQueue;
45
+ /**
46
+ * Get current queue size across all max-ages (useful for debugging)
32
47
  */
33
48
  getQueueSize(): number;
34
49
  /**
@@ -1,4 +1,14 @@
1
1
  import { CubeQuery, CubeApiOptions, CubeResultSet, CubeValidationIssue, ExplainResult, ExplainOptions } from '../types.js';
2
+ import { MaxAgeOptions } from './maxAge.js';
3
+ /**
4
+ * Called with each result of a subscription, or with the error of a load that
5
+ * failed (Cube.js `subscribe` callback shape).
6
+ */
7
+ export type CubeSubscribeCallback = (error: Error | null, resultSet: CubeResultSet | null) => void;
8
+ /** A live subscription. `unsubscribe` stops it; no callback follows. */
9
+ export interface CubeSubscription {
10
+ unsubscribe: () => void;
11
+ }
2
12
  /**
3
13
  * A failed query, carrying the server's structured validation detail when it
4
14
  * sent any. A caller can then react to one dead member — dropping a column for
@@ -13,10 +23,27 @@ export declare class CubeClient {
13
23
  private apiUrl;
14
24
  private headers;
15
25
  private credentials;
26
+ private subscribeIntervalSeconds;
16
27
  constructor(token?: string, options?: CubeApiOptions);
17
- load(query: CubeQuery, options?: {
18
- bustCache?: boolean;
19
- }): Promise<CubeResultSet>;
28
+ /**
29
+ * Load one query. `maxAgeSeconds` sends `x-cache-max-age`, so the server
30
+ * answers from its cache only when the cached result is at most that old;
31
+ * `bustCache: true` is max-age 0.
32
+ */
33
+ load(query: CubeQuery, options?: MaxAgeOptions): Promise<CubeResultSet>;
34
+ /**
35
+ * Keep a query current (Cube.js `subscribe`). The callback receives the
36
+ * initial load, then a result every 10 seconds (or `minSubscribeIntervalSeconds`
37
+ * when larger), each fetched with max-age equal to the interval, lowered to
38
+ * just under the age of the last delivered rows: a tick never gets those
39
+ * rows back, and subscribers in one security context share any newer
40
+ * result. A failed
41
+ * load calls back with the error and the subscription keeps going.
42
+ * `options` apply to the initial load only.
43
+ *
44
+ * `unsubscribe` stops the refetches and drops any result still in flight.
45
+ */
46
+ subscribe(query: CubeQuery, options: MaxAgeOptions | null | undefined, callback: CubeSubscribeCallback): CubeSubscription;
20
47
  meta(): Promise<any>;
21
48
  sql(query: CubeQuery): Promise<any>;
22
49
  dryRun(query: CubeQuery): Promise<any>;
@@ -28,12 +55,11 @@ export declare class CubeClient {
28
55
  explain(query: CubeQuery | unknown, options?: ExplainOptions): Promise<ExplainResult>;
29
56
  /**
30
57
  * Execute multiple queries in a single batch request
31
- * Used by BatchCoordinator to optimize network requests
32
- * Pass { bustCache: true } to bypass server-side cache
58
+ * Used by BatchCoordinator to optimize network requests.
59
+ * `maxAgeSeconds` applies to every query in the batch; `bustCache: true` is
60
+ * max-age 0.
33
61
  */
34
- batchLoad(queries: CubeQuery[], options?: {
35
- bustCache?: boolean;
36
- }): Promise<CubeResultSet[]>;
62
+ batchLoad(queries: CubeQuery[], options?: MaxAgeOptions): Promise<CubeResultSet[]>;
37
63
  }
38
64
  /**
39
65
  * Factory function to create a cube client
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Max-age: how old a cached server result a request accepts.
3
+ *
4
+ * One freshness mechanism serves the refresh button, a cache bust and interval
5
+ * refresh. `maxAgeSeconds: 30` lets the server answer from a result cached in
6
+ * the last 30 seconds; `maxAgeSeconds: 0` (or `bustCache: true`) skips the
7
+ * cache read. With no max-age the server applies its own cache TTL.
8
+ */
9
+ /** Options accepted by every load/refetch that reaches the server. */
10
+ export interface MaxAgeOptions {
11
+ /** Oldest cached result, in seconds, the server may return. 0 skips the cache read. */
12
+ maxAgeSeconds?: number;
13
+ /** Shorthand for `maxAgeSeconds: 0` (shift+click on refresh). */
14
+ bustCache?: boolean;
15
+ /**
16
+ * Accept only rows computed after the ones the hook shows: the max-age is
17
+ * lowered to just under their age. Interval refresh ticks send it, so a tick
18
+ * never gets back the rows it already shows, however long the query took.
19
+ */
20
+ newerThanShown?: boolean;
21
+ }
22
+ /**
23
+ * Resolve options to one max-age in whole seconds, or undefined for "server
24
+ * default". `bustCache` wins over any `maxAgeSeconds`. Negative and non-finite
25
+ * values are ignored, as the server ignores them.
26
+ */
27
+ export declare function resolveMaxAgeSeconds(options?: MaxAgeOptions): number | undefined;
28
+ /**
29
+ * Request headers for a max-age. Max-age 0 also sends `X-Cache-Control:
30
+ * no-cache` so a server that predates `x-cache-max-age` still bypasses its
31
+ * cache.
32
+ */
33
+ export declare function maxAgeHeaders(maxAgeSeconds: number | undefined): Record<string, string>;
34
+ /**
35
+ * Keep the stricter of two max-ages; `bustCache` resolves to max-age 0. Returns
36
+ * `current` itself (same identity) unless `incoming` resolves to a stricter one.
37
+ */
38
+ export declare function retainStricterMaxAge(current?: MaxAgeOptions, incoming?: MaxAgeOptions): MaxAgeOptions | undefined;
39
+ /**
40
+ * Resolve `newerThanShown` against the age of the rows shown: a max-age in
41
+ * whole seconds strictly under that age, so the server, which serves an entry
42
+ * no older than the max-age, rejects the entry those rows came from but still
43
+ * serves a newer one another viewer stored. With no rows shown the options
44
+ * apply as they are.
45
+ */
46
+ export declare function capToShownRows(options: MaxAgeOptions | undefined, shownAgeMs: number | undefined): MaxAgeOptions | undefined;
47
+ /** A refetch's max-age, tracked per hook until a fetch with it succeeds. */
48
+ export interface RefetchMaxAgeTracker {
49
+ /**
50
+ * Retain the stricter resolved max-age; an absent or invalid max-age adds
51
+ * nothing. `shownAgeMs`, the age of the rows the hook shows, resolves
52
+ * `newerThanShown`. Does not fetch. Returns whether the pending max-age
53
+ * became stricter, which is when a fetch already in flight no longer
54
+ * satisfies it.
55
+ */
56
+ recordMaxAge: (options?: MaxAgeOptions, shownAgeMs?: number) => boolean;
57
+ /** Whether a max-age is waiting for a successful fetch, including while one is in flight. */
58
+ hasPendingMaxAge: () => boolean;
59
+ /**
60
+ * Run one fetch attempt with the pending max-age. Success clears it unless a
61
+ * stricter one was recorded meanwhile; failure keeps it for the retry.
62
+ */
63
+ runFetch: <T>(fetch: (options?: MaxAgeOptions) => Promise<T>) => Promise<T>;
64
+ }
65
+ /**
66
+ * Per-hook tracker for a refetch's max-age.
67
+ *
68
+ * A TanStack query function takes no per-call arguments, so a query hook's
69
+ * refetch records its max-age here and then refetches through the hook's own
70
+ * observer, which runs this hook's query function (even while the query is
71
+ * disabled). Going through `queryClient.invalidateQueries` instead would run
72
+ * the query function of whichever observer of the query rendered last, such
73
+ * as a dashboard card's expand modal.
74
+ *
75
+ * A skipped hook (an off-screen portlet) only records the max-age; its query
76
+ * function picks it up when the hook is enabled and fetches. The max-age stays
77
+ * pending through retries and clears when a fetch with it succeeds. It is held
78
+ * as an object so a success clears only the max-age it fetched with, by identity.
79
+ *
80
+ * A refetch passes `cancelRefetch` only when its max-age is stricter than the
81
+ * pending one. Otherwise it joins the fetch in flight, so interval ticks that
82
+ * outpace a slow query do not cancel it on every tick.
83
+ */
84
+ export declare function createRefetchMaxAgeTracker(): RefetchMaxAgeTracker;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Subscription scheduling: when a subscribed query refetches.
3
+ *
4
+ * A subscription (`useCubeQuery(query, { subscribe: true })` or
5
+ * `CubeClient.subscribe`) keeps a query current. In Phase 0 it refetches on a
6
+ * fixed interval with max-age equal to that interval and `newerThanShown`, so
7
+ * a tick never gets back the rows the subscriber already has, and subscribers
8
+ * in one security context share any newer result.
9
+ *
10
+ * This module is the one place both subscribers ask "when do I refetch?".
11
+ * Swapping the interval for change detection (refresh keys) replaces
12
+ * `scheduleSubscription` and leaves the hook and client APIs alone.
13
+ */
14
+ /** Cube.js's default refresh cadence for a subscription, in seconds. */
15
+ export declare const SUBSCRIBE_INTERVAL_SECONDS = 10;
16
+ /**
17
+ * A subscription's refetch interval in whole seconds: the default 10, raised
18
+ * to `minIntervalSeconds` when that is larger.
19
+ */
20
+ export declare function resolveSubscribeIntervalSeconds(minIntervalSeconds?: number): number;
21
+ /** What a subscription does when it should refetch. */
22
+ export type SubscriptionRefetch = (options: {
23
+ maxAgeSeconds: number;
24
+ newerThanShown: true;
25
+ }) => void;
26
+ /**
27
+ * Call `refetch` whenever the subscribed query may have new data. Returns a
28
+ * function that stops it.
29
+ */
30
+ export declare function scheduleSubscription(intervalSeconds: number, refetch: SubscriptionRefetch): () => void;
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { DashboardPortletCardProps } from './dashboardPortletCard/propsEqual.js';
3
- declare const DashboardPortletCard: React.MemoExoticComponent<({ portlet, editable, layoutMode, dashboardFilters, configEagerLoad, loadingComponent, colorPalette, containerProps, headerProps, variant, setPortletRef, setPortletComponentRef, callbacks, icons, onPortletExpand }: DashboardPortletCardProps) => React.JSX.Element>;
3
+ declare const DashboardPortletCard: React.MemoExoticComponent<({ portlet, editable, layoutMode, dashboardFilters, configEagerLoad, dashboardRefresh, loadingComponent, colorPalette, containerProps, headerProps, variant, setPortletRef, setPortletComponentRef, callbacks, icons, onPortletExpand }: DashboardPortletCardProps) => React.JSX.Element>;
4
4
  export default DashboardPortletCard;
@@ -31,6 +31,10 @@ interface FloatingEditToolbarProps {
31
31
  onExportDashboard?: () => void;
32
32
  /** Import a dashboard JSON file, replacing this one; button hidden when absent, edit mode only */
33
33
  onImportDashboard?: () => void;
34
+ /** Whether dashboard interval refresh is paused */
35
+ isRefreshPaused?: boolean;
36
+ /** Pause or resume dashboard interval refresh; button hidden when absent */
37
+ onToggleRefreshPause?: () => void;
34
38
  }
35
- export default function FloatingEditToolbar({ isEditBarVisible, position, isEditMode, canEdit, onEditModeToggle, layoutMode, onLayoutModeChange, allowedModes, canChangeLayoutMode, currentPalette, onPaletteChange, onAddPortlet, onAddText, onExportDashboard, onImportDashboard }: FloatingEditToolbarProps): React.ReactPortal | null;
39
+ export default function FloatingEditToolbar({ isEditBarVisible, position, isEditMode, canEdit, onEditModeToggle, layoutMode, onLayoutModeChange, allowedModes, canChangeLayoutMode, currentPalette, onPaletteChange, onAddPortlet, onAddText, onExportDashboard, onImportDashboard, isRefreshPaused, onToggleRefreshPause }: FloatingEditToolbarProps): React.ReactPortal | null;
36
40
  export {};
@@ -1,14 +1,20 @@
1
- import { DashboardFilter, DashboardConfig } from '../types.js';
1
+ import { AnalyticsPortletRef, DashboardFilter, DashboardConfig } from '../types.js';
2
2
  import { ColorPalette } from '../utils/colorPalettes.js';
3
3
  interface MobileStackedLayoutProps {
4
4
  config: DashboardConfig;
5
5
  colorPalette?: ColorPalette;
6
6
  dashboardFilters?: DashboardFilter[];
7
7
  onPortletRefresh?: (portletId: string) => void;
8
+ /**
9
+ * Registers each chart with the dashboard, so its refresh action (the
10
+ * refresh button and interval ticks) reaches mobile charts. When set, the
11
+ * refresh button leaves refreshing to `onPortletRefresh`.
12
+ */
13
+ setPortletComponentRef?: (portletId: string, element: AnalyticsPortletRef | null) => void;
8
14
  }
9
15
  /**
10
16
  * Mobile-optimized stacked layout for dashboard portlets
11
17
  * Renders portlets in a single column, sorted by grid position
12
18
  */
13
- export default function MobileStackedLayout({ config, colorPalette, dashboardFilters, onPortletRefresh }: MobileStackedLayoutProps): import('react').JSX.Element;
19
+ export default function MobileStackedLayout({ config, colorPalette, dashboardFilters, onPortletRefresh, setPortletComponentRef }: MobileStackedLayoutProps): import('react').JSX.Element;
14
20
  export {};
@@ -1,4 +1,4 @@
1
- import { PortletConfig, ColorPalette, DashboardFilter } from '../types.js';
1
+ import { PortletConfig, DashboardRefreshConfig, ColorPalette, DashboardFilter } from '../types.js';
2
2
  interface PortletAnalysisModalProps {
3
3
  isOpen: boolean;
4
4
  onClose: () => void;
@@ -11,6 +11,8 @@ interface PortletAnalysisModalProps {
11
11
  colorPalette?: ColorPalette;
12
12
  /** @deprecated Dashboard filters are no longer merged into the editor - they are applied at execution time */
13
13
  dashboardFilters?: DashboardFilter[];
14
+ /** Dashboard refresh default, so the refresh settings show what the portlet inherits */
15
+ dashboardRefresh?: DashboardRefreshConfig;
14
16
  }
15
17
  /**
16
18
  * PortletAnalysisModal - A modal wrapper around AnalysisBuilder for portlet editing
@@ -23,5 +25,5 @@ interface PortletAnalysisModalProps {
23
25
  * - Title input in header
24
26
  * - Initial data support (no re-fetch when editing)
25
27
  */
26
- export default function PortletAnalysisModal({ isOpen, onClose, onSave, portlet, initialData, title: modalTitle, submitText, colorPalette }: PortletAnalysisModalProps): import('react').JSX.Element;
28
+ export default function PortletAnalysisModal({ isOpen, onClose, onSave, portlet, initialData, title: modalTitle, submitText, colorPalette, dashboardRefresh }: PortletAnalysisModalProps): import('react').JSX.Element;
27
29
  export {};
@@ -16,9 +16,11 @@ export interface UsePortletDeadMembersResult {
16
16
  *
17
17
  * A single unknown *filter* member makes the whole error unrecoverable, even
18
18
  * alongside prunable ones: re-running without the dead columns would still
19
- * carry the dead filter.
19
+ * carry the dead filter. An unknown time dimension that carries a date range in
20
+ * `query` is a filter in the same way: `withoutMembers` removes its complete
21
+ * entry, and the date predicate with it.
20
22
  */
21
- export declare function prunableMembers(error: unknown): string[] | null;
23
+ export declare function prunableMembers(error: unknown, query: CubeQuery): string[] | null;
22
24
  /** Remove members from everything that projects or orders by them. */
23
25
  export declare function withoutMembers(query: CubeQuery, members: string[]): CubeQuery;
24
26
  export declare function usePortletDeadMembers({ queryObject, error }: UsePortletDeadMembersParams): UsePortletDeadMembersResult;
@@ -1,10 +1,8 @@
1
1
  import { useCubeLoadQuery, useFunnelQuery, useFlowQuery, useRetentionQuery } from '../../hooks/queries/index.js';
2
+ import { MaxAgeOptions } from '../../client/maxAge.js';
2
3
  import { ChartDisplayConfig, CubeQuery, MultiQueryConfig, ServerFunnelQuery } from '../../types.js';
3
4
  import { FlowChartData, ServerFlowQuery } from '../../types/flow.js';
4
5
  import { RetentionChartData, ServerRetentionQuery } from '../../types/retention.js';
5
- interface RefreshOptions {
6
- bustCache?: boolean;
7
- }
8
6
  export interface UsePortletQueryResultsParams {
9
7
  activeQuery: CubeQuery | null;
10
8
  multiQueryConfig: MultiQueryConfig | null;
@@ -17,7 +15,18 @@ export interface UsePortletQueryResultsParams {
17
15
  isRetentionMode: boolean;
18
16
  shouldSkipQuery: boolean;
19
17
  eagerLoad: boolean;
18
+ /**
19
+ * Near the viewport now or before. Until then the hooks are disabled, not
20
+ * skipped: they keep their query key, so a refresh made before the first
21
+ * view applies to the first fetch.
22
+ */
20
23
  isVisible: boolean;
24
+ /**
25
+ * Disable the hooks while the portlet is scrolled away (an interval-refreshed
26
+ * portlet): they keep their data, a refresh only marks them stale, and they
27
+ * fetch what is stale when the portlet is back.
28
+ */
29
+ isScrolledAway?: boolean;
21
30
  /** Chart display config — its `fillMissingDates` drives client-side gap filling */
22
31
  displayConfig?: ChartDisplayConfig;
23
32
  }
@@ -32,8 +41,9 @@ export interface PortletQueryResults {
32
41
  funnelCacheInfo: ReturnType<typeof useFunnelQuery>['cacheInfo'];
33
42
  flowCacheInfo: ReturnType<typeof useFlowQuery>['cacheInfo'];
34
43
  retentionCacheInfo: ReturnType<typeof useRetentionQuery>['cacheInfo'];
35
- refresh: (options?: RefreshOptions) => void;
44
+ /** When the active mode's rows were computed on the server (oldest result for multi-query) */
45
+ computedAt: string | undefined;
46
+ refresh: (options?: MaxAgeOptions) => void;
36
47
  retry: () => void;
37
48
  }
38
49
  export declare function usePortletQueryResults(params: UsePortletQueryResultsParams): PortletQueryResults;
39
- export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Portlet visibility for lazy loading and refresh.
3
+ *
4
+ * A portlet loads the first time it comes near the viewport and keeps its
5
+ * data after it scrolls away. Before the first view its queries are disabled
6
+ * (not skipped), so a refresh made then applies to the first fetch. An
7
+ * interval-refreshed portlet's queries are also disabled while it is
8
+ * scrolled away: TanStack keeps their data, a refresh only records its
9
+ * max-age and marks the query stale, and scrolling back refetches whatever is
10
+ * stale with the max-age it recorded.
11
+ *
12
+ * Only an interval-refreshed portlet keeps observing after its first view;
13
+ * any other stops, as there is nothing to hold while it is scrolled away.
14
+ */
15
+ export interface PortletVisibility {
16
+ /** Attach to the portlet's root element */
17
+ inViewRef: (node?: Element | null) => void;
18
+ /** Whether the portlet's queries exist (in view now or before, or eager) */
19
+ isVisible: boolean;
20
+ /** Whether an interval-refreshed portlet scrolled away after being in view; its queries are disabled */
21
+ isScrolledAway: boolean;
22
+ }
23
+ export declare function usePortletVisibility(eagerLoad: boolean, hasIntervalRefresh: boolean): PortletVisibility;
@@ -5,6 +5,7 @@ import { DashboardDisplayMode } from '../../hooks/useResponsiveDashboard.js';
5
5
  import { DashboardImportExportState } from '../../hooks/dashboard/useDashboardImportExport.js';
6
6
  import { ColorPalette } from '../../utils/colorPalettes.js';
7
7
  import { DashboardConfig, PortletConfig, DashboardFilter, DashboardFilterMapping, CubeMeta, DashboardLayoutMode, DashboardGridSettings, RowLayout, PortletGroup, FeaturesConfig, DashboardMeta, PortletExpandPayload } from '../../types.js';
8
+ import { MaxAgeOptions } from '../../client/maxAge.js';
8
9
  /**
9
10
  * Props accepted by DashboardProvider (the public composable entry point).
10
11
  * Mirrors the former DashboardGridProps plus `hideToolbar` and `children`.
@@ -99,6 +100,8 @@ export interface DashboardContextValue {
99
100
  features: FeaturesConfig;
100
101
  /** Dashboard JSON export/import flow (features.dashboardImportExport); `enabled` is false when the feature is off */
101
102
  importExport: DashboardImportExportState;
103
+ /** Interval refresh (features.refresh): whether any portlet refreshes, and the dashboard-level pause */
104
+ refresh: DashboardRefreshState;
102
105
  editBarRef: MutableRefObject<HTMLDivElement | null>;
103
106
  gridContentRef: MutableRefObject<HTMLDivElement | null>;
104
107
  gridSettings: DashboardGridSettings;
@@ -113,9 +116,11 @@ export interface DashboardContextValue {
113
116
  handleSelectAllForFilter: (filterId: string) => Promise<void>;
114
117
  handleSaveFilterConfig: (mapping: DashboardFilterMapping) => Promise<void>;
115
118
  handlePortletSave: (portletData: PortletConfig | Omit<PortletConfig, 'id' | 'x' | 'y'>) => Promise<void>;
116
- handlePortletRefresh: (portletId: string, options?: {
117
- bustCache?: boolean;
118
- }) => void;
119
+ handlePortletRefresh: (portletId: string, options?: MaxAgeOptions) => void;
120
+ /** Registers a chart so handlePortletRefresh reaches it (used by the mobile layout) */
121
+ handleSetPortletComponentRef: (portletId: string, element: {
122
+ refresh: (options?: MaxAgeOptions) => void;
123
+ } | null) => void;
119
124
  handleLayoutChange: (layout: Layout) => void;
120
125
  handleDragStop: (layout: Layout, oldItem: LayoutItem | null, newItem: LayoutItem | null, placeholder: LayoutItem | null, e: Event, element: HTMLElement | null) => void;
121
126
  handleResizeStop: (layout: Layout, oldItem: LayoutItem | null, newItem: LayoutItem | null, placeholder: LayoutItem | null, e: Event, element: HTMLElement | null) => void;
@@ -126,6 +131,14 @@ export interface DashboardContextValue {
126
131
  handleRowDrop: (rowIndex: number, insertIndex: number | null) => void;
127
132
  handleNewRowDrop: (insertIndex: number) => void;
128
133
  }
134
+ /** Dashboard-level interval refresh state published to the toolbar. */
135
+ export interface DashboardRefreshState {
136
+ /** Whether any portlet has an effective refresh interval */
137
+ hasRefresh: boolean;
138
+ /** Whether the viewer paused refresh for the whole dashboard */
139
+ isPaused: boolean;
140
+ togglePaused: () => void;
141
+ }
129
142
  declare const DashboardContext: import('react').Context<DashboardContextValue | null>;
130
143
  /**
131
144
  * Access the dashboard context published by DashboardProvider.
@@ -3,6 +3,6 @@
3
3
  * DashboardContext; rendered only when the top toolbar variant is active.
4
4
  *
5
5
  * On a read-only dashboard (`editable` false) the editing controls are left out
6
- * and the bar carries only the export action.
6
+ * and the bar carries only the export action and the refresh pause toggle.
7
7
  */
8
8
  export default function DashboardEditBar(): import('react').JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { DashboardRefreshConfig } from '../../types.js';
2
+ /**
3
+ * The intervals to offer: presets at or above the minimum, plus the current
4
+ * interval when it is not one of them.
5
+ */
6
+ export declare function refreshIntervalOptions(currentSeconds: number | undefined, minIntervalSeconds: number): number[];
7
+ export default function DashboardRefreshSelector({ refresh, minIntervalSeconds, onChange }: {
8
+ refresh: DashboardRefreshConfig | undefined;
9
+ minIntervalSeconds: number;
10
+ /** The new dashboard refresh config; undefined turns the default off */
11
+ onChange: (refresh: DashboardRefreshConfig | undefined) => void;
12
+ }): import('react').JSX.Element;
@@ -9,6 +9,7 @@
9
9
  * a host can either omit this component or pass `hideToolbar` to suppress it.
10
10
  *
11
11
  * A read-only dashboard (`editable` false) normally has no toolbar at all. When the
12
- * dashboard export feature is on it still gets one, reduced to the Export button.
12
+ * dashboard export feature is on, or a portlet refreshes on an interval, it still
13
+ * gets one, reduced to the Export button and the refresh pause toggle.
13
14
  */
14
15
  export default function DashboardToolbar(): import('react').JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Toolbar toggle that pauses and resumes interval refresh for the whole
3
+ * dashboard. Rendered only when some portlet refreshes on an interval.
4
+ */
5
+ export default function RefreshPauseToggle({ isPaused, onToggle }: {
6
+ isPaused: boolean;
7
+ onToggle: () => void;
8
+ }): import('react').JSX.Element;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Freshness of a portlet's data, shown in its header: a status dot and the age
3
+ * of computed-at (when the rows were computed on the server, earlier than
4
+ * receipt for a cached result). The dot pulses while fetching, and the dot and
5
+ * age turn the warning color when computed-at is older than two refresh
6
+ * intervals. Paused shows on the card's pause/play button, not here. The
7
+ * tooltip spells out computed-at and the stale or paused state.
8
+ */
9
+ export interface DataFreshnessIndicatorProps {
10
+ /** When the rows were computed (ISO string) */
11
+ computedAt?: string;
12
+ /** Whether a fetch is in flight */
13
+ isFetching: boolean;
14
+ /** The portlet's effective refresh interval, when it refreshes on one */
15
+ intervalSeconds?: number;
16
+ /** Whether the viewer paused this portlet's refresh (portlet or dashboard) */
17
+ isPaused: boolean;
18
+ }
19
+ export default function DataFreshnessIndicator({ computedAt, isFetching, intervalSeconds, isPaused }: DataFreshnessIndicatorProps): import('react').JSX.Element | null;