@burdenoff/microfe-bigconsole 2026.1016.2 → 2026.1017.10

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 (299) hide show
  1. package/dist/bigconsole/AdminRoot.d.ts +0 -1
  2. package/dist/bigconsole/AdminRoutes.d.ts +1 -1
  3. package/dist/bigconsole/BigConsoleRoot.d.ts +0 -1
  4. package/dist/bigconsole/BigConsoleRoutes.d.ts +1 -2
  5. package/dist/bigconsole/assistant/assistantApi.d.ts +0 -1
  6. package/dist/bigconsole/assistant/assistantProduct.d.ts +0 -1
  7. package/dist/bigconsole/assistant/assistantPrompt.d.ts +0 -1
  8. package/dist/bigconsole/assistant/assistantRunPersistence.d.ts +0 -1
  9. package/dist/bigconsole/assistant/assistantRuntime.d.ts +0 -1
  10. package/dist/bigconsole/assistant/conversationHistoryApi.d.ts +0 -1
  11. package/dist/bigconsole/assistant/displayCopy.d.ts +0 -1
  12. package/dist/bigconsole/assistant/modes.d.ts +0 -1
  13. package/dist/bigconsole/assistant/pageControls.d.ts +0 -1
  14. package/dist/bigconsole/assistant/previewControl.d.ts +0 -1
  15. package/dist/bigconsole/assistant/previewController.d.ts +0 -1
  16. package/dist/bigconsole/assistant/previewRunAction.d.ts +0 -1
  17. package/dist/bigconsole/assistant/recordAdapters.d.ts +0 -1
  18. package/dist/bigconsole/components/DrilldownDashboardRenderer.d.ts +0 -1
  19. package/dist/bigconsole/components/DrilldownModal.d.ts +0 -1
  20. package/dist/bigconsole/components/builder/BuilderCanvas.d.ts +0 -1
  21. package/dist/bigconsole/components/builder/BuilderTopbar.d.ts +0 -1
  22. package/dist/bigconsole/components/builder/DashboardEditorShell.d.ts +0 -1
  23. package/dist/bigconsole/components/builder/WidgetInspector.d.ts +0 -1
  24. package/dist/bigconsole/components/builder/inspector/AdvancedSection.d.ts +0 -1
  25. package/dist/bigconsole/components/builder/inspector/AppearanceSection.d.ts +0 -1
  26. package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +0 -1
  27. package/dist/bigconsole/components/builder/inspector/GeneralSection.d.ts +0 -1
  28. package/dist/bigconsole/components/builder/inspector/LayoutSection.d.ts +0 -1
  29. package/dist/bigconsole/components/common/Section.d.ts +0 -1
  30. package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -1
  31. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.d.ts +0 -1
  32. package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts +0 -1
  33. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +19 -19
  34. package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts +0 -1
  35. package/dist/bigconsole/components/dashboard/DashboardStatusPill.d.ts +0 -1
  36. package/dist/bigconsole/components/dashboard/DashboardToolbar.d.ts +0 -1
  37. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts +0 -1
  38. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts +0 -1
  39. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +0 -1
  40. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.d.ts +0 -1
  41. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts +0 -1
  42. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.d.ts +0 -1
  43. package/dist/bigconsole/components/dashboard/LiveBoardBanner.d.ts +0 -1
  44. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.d.ts +0 -1
  45. package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.d.ts +0 -1
  46. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.d.ts +0 -1
  47. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.d.ts +0 -1
  48. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  49. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +0 -1
  50. package/dist/bigconsole/components/dashboard/StoreTemplatePicker.d.ts +0 -1
  51. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.d.ts +1 -2
  52. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.d.ts +1 -2
  53. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.d.ts +0 -1
  54. package/dist/bigconsole/components/dashboard/TemplateSetupBanner.d.ts +0 -1
  55. package/dist/bigconsole/components/dashboard/WidgetPalette.d.ts +0 -1
  56. package/dist/bigconsole/components/dashboard/WidgetPalette.js +7 -7
  57. package/dist/bigconsole/components/datasink/AlertExecutionHistory.d.ts +1 -2
  58. package/dist/bigconsole/components/datasink/AlertRuleEditor.d.ts +1 -2
  59. package/dist/bigconsole/components/datasink/ConfigurationForm.d.ts +0 -1
  60. package/dist/bigconsole/components/datasink/DataSinkCard.d.ts +0 -1
  61. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.d.ts +0 -1
  62. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.d.ts +0 -1
  63. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.d.ts +0 -1
  64. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.d.ts +0 -1
  65. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.d.ts +0 -1
  66. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.d.ts +0 -1
  67. package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.d.ts +0 -1
  68. package/dist/bigconsole/components/datasink/SetupStateBadge.d.ts +0 -1
  69. package/dist/bigconsole/components/datasink/WorkflowStatusPanel.d.ts +0 -1
  70. package/dist/bigconsole/components/embed/EmbedErrorBoundary.d.ts +0 -1
  71. package/dist/bigconsole/components/embed/EmbedWidgetRenderer.d.ts +1 -2
  72. package/dist/bigconsole/components/embed/ReadOnlyDashboardRenderer.d.ts +1 -2
  73. package/dist/bigconsole/components/embed/drilldown.d.ts +0 -1
  74. package/dist/bigconsole/components/embed/renderer-manifest.d.ts +0 -1
  75. package/dist/bigconsole/components/embed/types.d.ts +0 -1
  76. package/dist/bigconsole/components/embed/validate.d.ts +0 -1
  77. package/dist/bigconsole/components/embed/widgetShim.d.ts +0 -1
  78. package/dist/bigconsole/components/embed/widgets/CalendarEmbed.d.ts +1 -2
  79. package/dist/bigconsole/components/embed/widgets/ChartEmbed.d.ts +1 -2
  80. package/dist/bigconsole/components/embed/widgets/EmbedFrame.d.ts +1 -2
  81. package/dist/bigconsole/components/embed/widgets/FormEmbed.d.ts +1 -2
  82. package/dist/bigconsole/components/embed/widgets/GaugeEmbed.d.ts +1 -2
  83. package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.d.ts +1 -2
  84. package/dist/bigconsole/components/embed/widgets/KanbanEmbed.d.ts +1 -2
  85. package/dist/bigconsole/components/embed/widgets/KpiComparisonEmbed.d.ts +1 -2
  86. package/dist/bigconsole/components/embed/widgets/ListEmbed.d.ts +1 -2
  87. package/dist/bigconsole/components/embed/widgets/MetricCardEmbed.d.ts +1 -2
  88. package/dist/bigconsole/components/embed/widgets/PivotEmbed.d.ts +1 -2
  89. package/dist/bigconsole/components/embed/widgets/ProgressEmbed.d.ts +1 -2
  90. package/dist/bigconsole/components/embed/widgets/RetentionEmbed.d.ts +1 -2
  91. package/dist/bigconsole/components/embed/widgets/TableEmbed.d.ts +1 -2
  92. package/dist/bigconsole/components/embed/widgets/TextEmbed.d.ts +1 -2
  93. package/dist/bigconsole/components/embed/widgets/TimelineEmbed.d.ts +1 -2
  94. package/dist/bigconsole/components/insights/GeneratedFormattingReview.d.ts +2 -2
  95. package/dist/bigconsole/components/overview/DashboardGuide.d.ts +0 -1
  96. package/dist/bigconsole/components/overview/DataHealthCard.d.ts +0 -1
  97. package/dist/bigconsole/components/overview/OverviewQuickActions.d.ts +0 -1
  98. package/dist/bigconsole/components/overview/OverviewStatCard.d.ts +0 -1
  99. package/dist/bigconsole/components/overview/RecentDashboardsPanel.d.ts +0 -1
  100. package/dist/bigconsole/components/overview/overviewModel.d.ts +0 -1
  101. package/dist/bigconsole/components/overview/useOverviewData.d.ts +0 -1
  102. package/dist/bigconsole/components/overview/useOverviewData.js +47 -42
  103. package/dist/bigconsole/components/parser/DataSinkSelector.d.ts +0 -1
  104. package/dist/bigconsole/components/parser/ExportParserDialog.d.ts +0 -1
  105. package/dist/bigconsole/components/parser/ExpressionEditor.d.ts +0 -1
  106. package/dist/bigconsole/components/parser/ImportParserDialog.d.ts +0 -1
  107. package/dist/bigconsole/components/parser/ParserBuilder.d.ts +0 -1
  108. package/dist/bigconsole/components/parser/ParserCard.d.ts +0 -1
  109. package/dist/bigconsole/components/parser/ParserFormDialog.d.ts +0 -1
  110. package/dist/bigconsole/components/parser/ParserSelector.d.ts +0 -1
  111. package/dist/bigconsole/components/parser/ParserStatusBadge.d.ts +0 -1
  112. package/dist/bigconsole/components/parser/ParserTypeBadge.d.ts +0 -1
  113. package/dist/bigconsole/components/parser/TestPanel.d.ts +0 -1
  114. package/dist/bigconsole/components/pipeline/PipelineCard.d.ts +0 -1
  115. package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.d.ts +0 -1
  116. package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +1 -1
  117. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.d.ts +0 -1
  118. package/dist/bigconsole/components/preview/AiPreviewContent.d.ts +4 -4
  119. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.d.ts +1 -1
  120. package/dist/bigconsole/components/preview/AiPreviewPanel.d.ts +1 -1
  121. package/dist/bigconsole/components/preview/parserPreview.d.ts +6 -8
  122. package/dist/bigconsole/components/preview/previewShared.d.ts +1 -2
  123. package/dist/bigconsole/components/widgets/ActionConfigDialog.d.ts +0 -1
  124. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.d.ts +0 -1
  125. package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts +0 -1
  126. package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -287
  127. package/dist/bigconsole/components/widgets/WidgetErrorBoundary.d.ts +0 -1
  128. package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +0 -1
  129. package/dist/bigconsole/components/widgets/WidgetMenu.d.ts +0 -1
  130. package/dist/bigconsole/components/widgets/WidgetRegistry.d.ts +0 -1
  131. package/dist/bigconsole/components/widgets/WidgetTypeSelector.d.ts +0 -1
  132. package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +0 -1
  133. package/dist/bigconsole/components/widgets/actionConfig.d.ts +0 -1
  134. package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.d.ts +0 -1
  135. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.d.ts +1 -2
  136. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.d.ts +0 -1
  137. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +0 -1
  138. package/dist/bigconsole/components/widgets/calendar/CalendarView.d.ts +0 -1
  139. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.d.ts +0 -1
  140. package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts +0 -1
  141. package/dist/bigconsole/components/widgets/chart/ChartLegend.d.ts +0 -1
  142. package/dist/bigconsole/components/widgets/chart/ChartTooltip.d.ts +0 -1
  143. package/dist/bigconsole/components/widgets/chart/ChartWidget.d.ts +0 -1
  144. package/dist/bigconsole/components/widgets/chart/charts/AreaChart.d.ts +0 -1
  145. package/dist/bigconsole/components/widgets/chart/charts/BarChart.d.ts +0 -1
  146. package/dist/bigconsole/components/widgets/chart/charts/ComboChart.d.ts +0 -1
  147. package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.d.ts +0 -1
  148. package/dist/bigconsole/components/widgets/chart/charts/LineChart.d.ts +0 -1
  149. package/dist/bigconsole/components/widgets/chart/charts/PieChart.d.ts +0 -1
  150. package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.d.ts +0 -1
  151. package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.d.ts +0 -1
  152. package/dist/bigconsole/components/widgets/chart/charts/numericSeries.d.ts +0 -1
  153. package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +0 -1
  154. package/dist/bigconsole/components/widgets/comments/WidgetComments.d.ts +0 -1
  155. package/dist/bigconsole/components/widgets/custom/CustomWidget.d.ts +0 -1
  156. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.d.ts +0 -1
  157. package/dist/bigconsole/components/widgets/form/FormWidget.d.ts +0 -1
  158. package/dist/bigconsole/components/widgets/funnel/index.d.ts +0 -1
  159. package/dist/bigconsole/components/widgets/gauge/CircularGauge.d.ts +0 -1
  160. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.d.ts +0 -1
  161. package/dist/bigconsole/components/widgets/gauge/GaugeWidget.d.ts +0 -1
  162. package/dist/bigconsole/components/widgets/gauge/LinearGauge.d.ts +0 -1
  163. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.d.ts +0 -1
  164. package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts +0 -1
  165. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +0 -1
  166. package/dist/bigconsole/components/widgets/kanban/KanbanView.d.ts +0 -1
  167. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.d.ts +0 -1
  168. package/dist/bigconsole/components/widgets/kpi/KPIWidget.d.ts +0 -1
  169. package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.d.ts +0 -1
  170. package/dist/bigconsole/components/widgets/list/ListConfig.d.ts +0 -1
  171. package/dist/bigconsole/components/widgets/list/ListItem.d.ts +0 -1
  172. package/dist/bigconsole/components/widgets/list/ListWidget.d.ts +0 -1
  173. package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +0 -1
  174. package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.d.ts +0 -1
  175. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.d.ts +0 -1
  176. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts +0 -1
  177. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.d.ts +0 -1
  178. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.d.ts +0 -1
  179. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.d.ts +0 -1
  180. package/dist/bigconsole/components/widgets/progress/ProgressBar.d.ts +0 -1
  181. package/dist/bigconsole/components/widgets/progress/ProgressConfig.d.ts +0 -1
  182. package/dist/bigconsole/components/widgets/progress/ProgressWidget.d.ts +0 -1
  183. package/dist/bigconsole/components/widgets/retention/RetentionWidget.d.ts +0 -1
  184. package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +0 -1
  185. package/dist/bigconsole/components/widgets/states/ErrorState.d.ts +0 -1
  186. package/dist/bigconsole/components/widgets/states/LoadingState.d.ts +0 -1
  187. package/dist/bigconsole/components/widgets/table/TableCell.d.ts +0 -1
  188. package/dist/bigconsole/components/widgets/table/TableConfig.d.ts +0 -1
  189. package/dist/bigconsole/components/widgets/table/TableHeader.d.ts +0 -1
  190. package/dist/bigconsole/components/widgets/table/TablePagination.d.ts +0 -1
  191. package/dist/bigconsole/components/widgets/table/TableWidget.d.ts +0 -1
  192. package/dist/bigconsole/components/widgets/text-widget/TextWidget.d.ts +0 -1
  193. package/dist/bigconsole/components/widgets/timeline/TimelineWidget.d.ts +0 -1
  194. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.d.ts +0 -1
  195. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +34 -25
  196. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.d.ts +0 -1
  197. package/dist/bigconsole/components/workflow/WorkflowCard.d.ts +0 -1
  198. package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.d.ts +0 -1
  199. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +2 -4
  200. package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +20 -53
  201. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.d.ts +0 -1
  202. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +1 -1
  203. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.d.ts +0 -1
  204. package/dist/bigconsole/components/workflow/workflowDesignProjection.d.ts +12 -0
  205. package/dist/bigconsole/components/workflow/workflowDesignProjection.js +42 -0
  206. package/dist/bigconsole/context/BigConsoleContext.d.ts +1 -2
  207. package/dist/bigconsole/contexts/CrossFilterContext.d.ts +0 -1
  208. package/dist/bigconsole/contexts/NavigationContext.d.ts +1 -2
  209. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.d.ts +0 -1
  210. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.d.ts +0 -1
  211. package/dist/bigconsole/customWidget/proposalPreview.d.ts +1 -2
  212. package/dist/bigconsole/customWidget/proposalSource.d.ts +0 -1
  213. package/dist/bigconsole/graphql/widgetCapabilities.d.ts +0 -1
  214. package/dist/bigconsole/hooks/index.js +2 -2
  215. package/dist/bigconsole/hooks/mutationInputEnums.d.ts +5 -0
  216. package/dist/bigconsole/hooks/mutationInputEnums.js +32 -0
  217. package/dist/bigconsole/hooks/useDashboardEmbedPolicy.d.ts +0 -1
  218. package/dist/bigconsole/hooks/useDashboardImageExport.d.ts +0 -1
  219. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -1
  220. package/dist/bigconsole/hooks/useDashboardOperations.d.ts +0 -1
  221. package/dist/bigconsole/hooks/useDashboardTemplates.js +0 -1
  222. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +16 -32
  223. package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +0 -1
  224. package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts +0 -1
  225. package/dist/bigconsole/hooks/useDrilldown.d.ts +0 -1
  226. package/dist/bigconsole/hooks/useDrilldownOperations.d.ts +0 -1
  227. package/dist/bigconsole/hooks/useEventLogs.d.ts +0 -6
  228. package/dist/bigconsole/hooks/useEventLogs.js +152 -60
  229. package/dist/bigconsole/hooks/useEventWebhooks.d.ts +0 -6
  230. package/dist/bigconsole/hooks/useEventWebhooks.js +132 -72
  231. package/dist/bigconsole/hooks/useInstalledWidgets.d.ts +0 -1
  232. package/dist/bigconsole/hooks/useModalFocusTrap.d.ts +0 -1
  233. package/dist/bigconsole/hooks/usePageOperations.d.ts +0 -1
  234. package/dist/bigconsole/hooks/useParserOperations.d.ts +0 -1
  235. package/dist/bigconsole/hooks/usePipelineOperations.d.ts +0 -1
  236. package/dist/bigconsole/hooks/useQueryLifecycle.d.ts +8 -0
  237. package/dist/bigconsole/hooks/useQueryLifecycle.js +71 -0
  238. package/dist/bigconsole/hooks/useShareRecipients.d.ts +0 -1
  239. package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +45 -42
  240. package/dist/bigconsole/hooks/useWidgetActions.d.ts +0 -1
  241. package/dist/bigconsole/hooks/useWidgetActions.js +112 -65
  242. package/dist/bigconsole/hooks/useWidgetCatalog.d.ts +0 -1
  243. package/dist/bigconsole/hooks/useWidgetCatalog.js +17 -17
  244. package/dist/bigconsole/hooks/useWidgetComments.d.ts +0 -1
  245. package/dist/bigconsole/hooks/useWidgetComments.js +49 -46
  246. package/dist/bigconsole/hooks/useWidgetConfigPersist.d.ts +0 -1
  247. package/dist/bigconsole/hooks/useWidgetData.d.ts +0 -1
  248. package/dist/bigconsole/hooks/useWidgetData.js +57 -52
  249. package/dist/bigconsole/hooks/useWidgetExport.d.ts +0 -1
  250. package/dist/bigconsole/hooks/useWidgetOperations.d.ts +0 -1
  251. package/dist/bigconsole/hooks/useWorkflowOperations.d.ts +0 -1
  252. package/dist/bigconsole/pages/AdminPage.d.ts +0 -1
  253. package/dist/bigconsole/pages/DashboardBuilderPage.d.ts +0 -1
  254. package/dist/bigconsole/pages/DashboardViewPage.d.ts +0 -1
  255. package/dist/bigconsole/pages/DashboardsPage.d.ts +0 -1
  256. package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts +1 -1
  257. package/dist/bigconsole/pages/DataSinksPage.d.ts +0 -1
  258. package/dist/bigconsole/pages/DataSourcesPage.d.ts +1 -1
  259. package/dist/bigconsole/pages/InsightsPage.d.ts +0 -1
  260. package/dist/bigconsole/pages/OverviewPage.d.ts +0 -1
  261. package/dist/bigconsole/pages/SettingsPage.d.ts +0 -1
  262. package/dist/bigconsole/pages/WidgetDemoPage.d.ts +0 -1
  263. package/dist/bigconsole/providers/BigConsoleQuotaProvider.d.ts +1 -2
  264. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.d.ts +0 -1
  265. package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.d.ts +0 -1
  266. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +0 -1
  267. package/dist/bigconsole/renderers/adapters/CustomRenderer.d.ts +0 -1
  268. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +0 -1
  269. package/dist/bigconsole/renderers/factory/WidgetRendererFactory.d.ts +0 -1
  270. package/dist/bigconsole/renderers/registry/RendererRegistry.d.ts +0 -1
  271. package/dist/bigconsole/renderers/types/renderer.d.ts +0 -1
  272. package/dist/bigconsole/store/dashboardStore.d.ts +0 -1
  273. package/dist/bigconsole/store/dataSinkStore.d.ts +0 -1
  274. package/dist/bigconsole/store/parserStore.d.ts +0 -1
  275. package/dist/bigconsole/store/pipelineStore.d.ts +0 -1
  276. package/dist/bigconsole/store/widgetStore.d.ts +0 -1
  277. package/dist/bigconsole/store/workflowStore.d.ts +0 -1
  278. package/dist/bigconsole/types/index.d.ts +0 -1
  279. package/dist/bigconsole/utils/advancedWidgetCapabilities.d.ts +0 -1
  280. package/dist/bigconsole/utils/alertRules.d.ts +0 -1
  281. package/dist/bigconsole/utils/dashboardList.d.ts +0 -1
  282. package/dist/bigconsole/utils/dashboardTemplateContent.d.ts +0 -1
  283. package/dist/bigconsole/utils/dataSinkList.d.ts +0 -1
  284. package/dist/bigconsole/utils/quota.d.ts +0 -1
  285. package/dist/bigconsole/utils/sanitizeHtml.d.ts +0 -1
  286. package/dist/bigconsole/utils/templateInstallInputs.d.ts +0 -1
  287. package/dist/bigconsole/utils/widgetBinding.d.ts +0 -1
  288. package/dist/bigconsole/utils/widgetDisplayData.d.ts +0 -1
  289. package/dist/bigconsole/utils/widgetPositioning.d.ts +0 -1
  290. package/dist/bigconsole/utils/widgetTypeMapping.d.ts +0 -1
  291. package/dist/bigconsole/workflowOpen.d.ts +0 -1
  292. package/dist/generated/global-operations.d.ts +177 -137
  293. package/dist/generated/global-operations.js +541 -63
  294. package/dist/generated/global-types.d.ts +2 -21
  295. package/dist/generated/wspace-operations.d.ts +3277 -6802
  296. package/dist/generated/wspace-operations.js +34725 -2582
  297. package/dist/generated/wspace-types.d.ts +10 -29
  298. package/dist/generated/wspace-types.js +14 -4
  299. package/package.json +16 -17
@@ -0,0 +1,71 @@
1
+ import { useCallback as e, useEffect as t, useLayoutEffect as n, useMemo as r, useRef as i } from "react";
2
+ //#region src/bigconsole/hooks/useQueryLifecycle.ts
3
+ function a(a, o, s, c) {
4
+ let l = r(() => ({}), [
5
+ a,
6
+ o,
7
+ s
8
+ ]), u = i(null), d = i(null);
9
+ return n(() => {
10
+ let e = s ? {
11
+ observable: a,
12
+ token: l,
13
+ callbacks: c
14
+ } : null;
15
+ return u.current = e, () => {
16
+ u.current === e && (u.current = null);
17
+ };
18
+ }, [
19
+ a,
20
+ l,
21
+ s,
22
+ c
23
+ ]), t(() => {
24
+ if (!s) {
25
+ d.current = null;
26
+ return;
27
+ }
28
+ (d.current?.observable !== a || d.current.token !== l) && (d.current = {
29
+ observable: a,
30
+ token: l,
31
+ pending: !0
32
+ });
33
+ let e = () => {
34
+ let e = u.current;
35
+ return e?.observable === a && e.token === l ? e : null;
36
+ }, t = a.subscribe({
37
+ next(t) {
38
+ let n = e(), r = d.current;
39
+ if (!n || !r || r.observable !== a || r.token !== l) return;
40
+ if (t.loading) {
41
+ r.pending = !0;
42
+ return;
43
+ }
44
+ if (t.error) {
45
+ let e = r.pending || r.error !== t.error;
46
+ r.pending = !1, r.error = t.error, e && n.callbacks.onError?.(t.error);
47
+ return;
48
+ }
49
+ if (t.dataState !== "complete") {
50
+ r.pending = !0;
51
+ return;
52
+ }
53
+ let i = r.pending || r.data !== t.data || r.error !== void 0;
54
+ r.pending = !1, r.data = t.data, r.error = void 0, i && n.callbacks.onCompleted?.(t.data);
55
+ },
56
+ error(t) {
57
+ let n = e(), r = d.current;
58
+ if (!n || !r || r.observable !== a || r.token !== l) return;
59
+ let i = t instanceof Error ? t : /* @__PURE__ */ Error("The query failed."), o = r.pending || r.error !== i;
60
+ r.pending = !1, r.error = i, o && n.callbacks.onError?.(i);
61
+ }
62
+ });
63
+ return () => t.unsubscribe();
64
+ }, [
65
+ a,
66
+ l,
67
+ s
68
+ ]), e(() => u.current?.token === l, [l]);
69
+ }
70
+ //#endregion
71
+ export { a as useQueryLifecycle };
@@ -1,5 +1,4 @@
1
1
  import { ShareRecipientType } from './useDashboardSharing';
2
-
3
2
  export interface ShareRecipient {
4
3
  id: string;
5
4
  name: string;
@@ -6,6 +6,9 @@ import { useApolloClient as f } from "@apollo/client/react";
6
6
  import { useGatewayClient as p } from "@burdenoff/fe-libs/shared/graphql";
7
7
  //#region src/bigconsole/hooks/useStoreDashboardTemplates.ts
8
8
  function m(e) {
9
+ return typeof e == "object" && !!e && !Array.isArray(e);
10
+ }
11
+ function h(e) {
9
12
  let t = e.pricingModel ?? "FREE";
10
13
  return {
11
14
  id: e.id,
@@ -23,20 +26,20 @@ function m(e) {
23
26
  requiresPurchase: t !== "FREE" && (e.price ?? 0) > 0
24
27
  };
25
28
  }
26
- function h(h = {}) {
27
- let { search: g, category: _, autoLoad: v = !0 } = h, y = p("global"), b = f(), [x, S] = d([]), [C, w] = d(0), [T, E] = d(!1), [D, O] = d(null), k = c(async (t) => {
28
- if (y) {
29
- E(!0), O(null);
29
+ function g(g = {}) {
30
+ let { search: _, category: v, autoLoad: y = !0 } = g, b = p("global"), x = f(), [S, C] = d([]), [w, T] = d(0), [E, D] = d(!1), [O, k] = d(null), A = c(async (t) => {
31
+ if (b) {
32
+ D(!0), k(null);
30
33
  try {
31
- let r = ((await y.query({
34
+ let r = ((await b.query({
32
35
  query: n,
33
36
  variables: { input: {
34
37
  filter: {
35
38
  type: "DASHBOARD",
36
39
  status: "PUBLISHED",
37
40
  compatibleWith: "bigconsole",
38
- ...t ?? g ? { search: t ?? g } : {},
39
- ..._ && _ !== "ALL" ? { category: _ } : {}
41
+ ...t ?? _ ? { search: t ?? _ } : {},
42
+ ...v && v !== "ALL" ? { category: v } : {}
40
43
  },
41
44
  sortBy: "RELEVANCE",
42
45
  pagination: {
@@ -46,25 +49,25 @@ function h(h = {}) {
46
49
  } },
47
50
  fetchPolicy: "network-only"
48
51
  })).data?.browseStore?.products ?? []).filter((t) => e(t.content));
49
- S(r.map(m)), w(r.length);
52
+ C(r.map(h)), T(r.length);
50
53
  } catch (e) {
51
- O(e instanceof Error ? e.message : "Failed to load templates from the store"), S([]), w(0);
54
+ k(e instanceof Error ? e.message : "Failed to load templates from the store"), C([]), T(0);
52
55
  } finally {
53
- E(!1);
56
+ D(!1);
54
57
  }
55
58
  }
56
59
  }, [
57
- y,
58
- g,
59
- _
60
+ b,
61
+ _,
62
+ v
60
63
  ]);
61
64
  l(() => {
62
- v && k();
63
- }, [v, k]);
64
- let A = c(async (t) => {
65
- if (!y) return null;
65
+ y && A();
66
+ }, [y, A]);
67
+ let j = c(async (t) => {
68
+ if (!b) return null;
66
69
  try {
67
- let n = (await y.query({
70
+ let n = (await b.query({
68
71
  query: a,
69
72
  variables: { id: t },
70
73
  fetchPolicy: "network-only"
@@ -84,8 +87,8 @@ function h(h = {}) {
84
87
  } catch {
85
88
  return null;
86
89
  }
87
- }, [y]), j = c(async (e) => {
88
- let n = (await b.mutate({
90
+ }, [b]), M = c(async (e) => {
91
+ let n = (await x.mutate({
89
92
  mutation: s,
90
93
  variables: { input: {
91
94
  content: t(e.content, e),
@@ -113,7 +116,7 @@ function h(h = {}) {
113
116
  widgetsNeedingData: 0,
114
117
  warnings: []
115
118
  };
116
- }, [b]), M = c(async (e) => {
119
+ }, [x]), N = c(async (e) => {
117
120
  let t = (e) => ({
118
121
  success: !1,
119
122
  errorMessage: e,
@@ -121,10 +124,10 @@ function h(h = {}) {
121
124
  unknownSinkIds: [],
122
125
  sampleDataSinkCount: 0
123
126
  });
124
- if (!y) return t("Store is unavailable right now.");
127
+ if (!b) return t("Store is unavailable right now.");
125
128
  let n, a = 0, s = [], c = 0;
126
129
  try {
127
- let r = (await b.query({
130
+ let r = (await x.query({
128
131
  query: o,
129
132
  variables: {
130
133
  dashboardId: e.dashboardId,
@@ -135,13 +138,13 @@ function h(h = {}) {
135
138
  },
136
139
  fetchPolicy: "network-only"
137
140
  })).data?.buildDashboardTemplateContent;
138
- if (!r?.content) return t("Could not build a template from this dashboard.");
141
+ if (!m(r?.content)) return t("Could not build a template from this dashboard.");
139
142
  n = r.content, a = r.sinkCount, s = r.unknownSinkIds ?? [], c = r.sampleDataSinkCount ?? 0;
140
143
  } catch (e) {
141
144
  return t(e instanceof Error ? e.message : "Failed to build the template.");
142
145
  }
143
146
  try {
144
- let o = (await y.mutate({
147
+ let o = (await b.mutate({
145
148
  mutation: r,
146
149
  variables: { input: {
147
150
  appType: "DASHBOARD",
@@ -154,7 +157,7 @@ function h(h = {}) {
154
157
  compatibleProducts: ["bigconsole"]
155
158
  } }
156
159
  })).data?.createApplication;
157
- return o ? (await y.mutate({
160
+ return o ? (await b.mutate({
158
161
  mutation: i,
159
162
  variables: {
160
163
  applicationId: o.id,
@@ -184,26 +187,26 @@ function h(h = {}) {
184
187
  sampleDataSinkCount: c
185
188
  };
186
189
  }
187
- }, [y, b]);
190
+ }, [b, x]);
188
191
  return u(() => ({
189
- templates: x,
190
- loading: T,
191
- error: D,
192
- totalCount: C,
193
- refetch: k,
194
- fetchTemplateContent: A,
195
- installTemplate: j,
196
- publishToStore: M
192
+ templates: S,
193
+ loading: E,
194
+ error: O,
195
+ totalCount: w,
196
+ refetch: A,
197
+ fetchTemplateContent: j,
198
+ installTemplate: M,
199
+ publishToStore: N
197
200
  }), [
198
- x,
199
- T,
200
- D,
201
- C,
202
- k,
201
+ S,
202
+ E,
203
+ O,
204
+ w,
203
205
  A,
204
206
  j,
205
- M
207
+ M,
208
+ N
206
209
  ]);
207
210
  }
208
211
  //#endregion
209
- export { h as default };
212
+ export { g as default };
@@ -1,5 +1,4 @@
1
1
  import { ActionType, ActionStyle, ActionConfirmation, WidgetAction } from '../types';
2
-
3
2
  export type { ActionType, ActionStyle, ActionConfirmation, WidgetAction };
4
3
  export interface CreateWidgetActionInput {
5
4
  widgetId: string;
@@ -1,112 +1,159 @@
1
1
  import { CreateWidgetActionDocument as e, DeleteWidgetActionDocument as t, GetWidgetActionsDocument as n, ReorderWidgetActionsDocument as r, UpdateWidgetActionDocument as i } from "../../generated/wspace-operations.js";
2
- import { useCallback as a, useState as o } from "react";
3
- import { useMutation as s, useQuery as c } from "@apollo/client/react";
2
+ import { useQueryLifecycle as a } from "./useQueryLifecycle.js";
3
+ import { ActionType as o } from "../../generated/wspace-types.js";
4
+ import { apiActionStyle as s, apiActionType as c } from "./mutationInputEnums.js";
5
+ import { useCallback as l, useMemo as u, useState as d } from "react";
6
+ import { useMutation as f, useQuery as p } from "@apollo/client/react";
4
7
  //#region src/bigconsole/hooks/useWidgetActions.ts
5
- function l(l, u = {}) {
6
- let { skipFetch: d = !1, onActionsLoaded: f, onActionCreated: p, onActionUpdated: m, onActionDeleted: h, onActionsReordered: g, onError: _ } = u, [v, y] = o(null), { data: b, loading: x, refetch: S } = c(n, {
7
- variables: { widgetId: l },
8
- skip: !l || d,
8
+ function m(e) {
9
+ switch (e.type) {
10
+ case o.Button:
11
+ case o.Link:
12
+ case o.Custom: return {
13
+ ...e,
14
+ type: e.type
15
+ };
16
+ default: throw Error("The action returned an unsupported type.");
17
+ }
18
+ }
19
+ function h(o, h = {}) {
20
+ let { skipFetch: g = !1, onActionsLoaded: _, onActionCreated: v, onActionUpdated: y, onActionDeleted: b, onActionsReordered: x, onError: S } = h, [C, w] = d(null), { data: T, dataState: E, observable: D, loading: O, refetch: k } = p(n, {
21
+ variables: { widgetId: o ?? "" },
22
+ skip: !o || g,
23
+ returnPartialData: !1,
24
+ notifyOnNetworkStatusChange: !0
25
+ }), A = a(D, o ?? "", !!o && !g, {
9
26
  onCompleted: (e) => {
10
- let t = e?.getWidgetActions;
11
- t && f?.(t);
27
+ w(null);
28
+ let t;
29
+ try {
30
+ t = e.getWidgetActions.map(m);
31
+ } catch {
32
+ let e = /* @__PURE__ */ Error("The action returned an unsupported type.");
33
+ w(e), S?.(e);
34
+ return;
35
+ }
36
+ _?.(t);
12
37
  },
13
38
  onError: (e) => {
14
- y(e), _?.(e);
39
+ w(e), S?.(e);
15
40
  }
16
- }), [C, { loading: w }] = s(e), [T, { loading: E }] = s(i), [D, { loading: O }] = s(t), [k, { loading: A }] = s(r), j = a(async (e) => {
17
- if (!l) return null;
41
+ }), [j, { loading: M }] = f(e), [N, { loading: P }] = f(i), [F, { loading: I }] = f(t), [L, { loading: R }] = f(r), z = l(async (e) => {
42
+ if (!o) return null;
18
43
  try {
19
- let t = (await C({
44
+ let { type: t, style: r, ...i } = e, a = await j({
20
45
  variables: { input: {
21
- widgetId: l,
22
- ...e
46
+ widgetId: o,
47
+ ...i,
48
+ ...t === void 0 ? {} : { type: c(t) },
49
+ ...r === void 0 ? {} : { style: s(r) }
23
50
  } },
24
51
  refetchQueries: [{
25
52
  query: n,
26
- variables: { widgetId: l }
53
+ variables: { widgetId: o }
27
54
  }]
28
- })).data?.createWidgetAction;
29
- return t && p?.(t), t || null;
55
+ }), l = a.data?.createWidgetAction ? m(a.data.createWidgetAction) : void 0;
56
+ return l && A() && v?.(l), l || null;
30
57
  } catch (e) {
31
58
  let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create action");
32
- return y(t), _?.(t), null;
59
+ return A() && (w(t), S?.(t)), null;
33
60
  }
34
61
  }, [
35
- l,
36
- C,
37
- p,
38
- _
39
- ]), M = a(async (e) => {
62
+ o,
63
+ j,
64
+ v,
65
+ S,
66
+ A
67
+ ]), B = l(async (e) => {
40
68
  try {
41
- let t = (await T({
42
- variables: { input: e },
43
- refetchQueries: l ? [{
69
+ let { type: t, style: r, ...i } = e, a = await N({
70
+ variables: { input: {
71
+ ...i,
72
+ ...t === void 0 ? {} : { type: c(t) },
73
+ ...r === void 0 ? {} : { style: s(r) }
74
+ } },
75
+ refetchQueries: o ? [{
44
76
  query: n,
45
- variables: { widgetId: l }
77
+ variables: { widgetId: o }
46
78
  }] : []
47
- })).data?.updateWidgetAction;
48
- return t && m?.(t), t || null;
79
+ }), l = a.data?.updateWidgetAction ? m(a.data.updateWidgetAction) : void 0;
80
+ return l && A() && y?.(l), l || null;
49
81
  } catch (e) {
50
82
  let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update action");
51
- return y(t), _?.(t), null;
83
+ return A() && (w(t), S?.(t)), null;
52
84
  }
53
85
  }, [
54
- l,
55
- T,
56
- m,
57
- _
58
- ]), N = a(async (e) => {
86
+ o,
87
+ N,
88
+ y,
89
+ S,
90
+ A
91
+ ]), V = l(async (e) => {
59
92
  try {
60
- return await D({
93
+ return await F({
61
94
  variables: { id: e },
62
- refetchQueries: l ? [{
95
+ refetchQueries: o ? [{
63
96
  query: n,
64
- variables: { widgetId: l }
97
+ variables: { widgetId: o }
65
98
  }] : []
66
- }), h?.(e), !0;
99
+ }), A() && b?.(e), !0;
67
100
  } catch (e) {
68
101
  let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete action");
69
- return y(t), _?.(t), !1;
102
+ return A() && (w(t), S?.(t)), !1;
70
103
  }
71
104
  }, [
72
- l,
73
- D,
74
- h,
75
- _
76
- ]), P = a(async (e) => {
77
- if (!l) return !1;
105
+ o,
106
+ F,
107
+ b,
108
+ S,
109
+ A
110
+ ]), H = l(async (e) => {
111
+ if (!o) return !1;
78
112
  try {
79
- let t = (await k({
113
+ let t = (await L({
80
114
  variables: {
81
- widgetId: l,
115
+ widgetId: o,
82
116
  actionIds: e
83
117
  },
84
118
  refetchQueries: [{
85
119
  query: n,
86
- variables: { widgetId: l }
120
+ variables: { widgetId: o }
87
121
  }]
88
122
  })).data?.reorderWidgetActions;
89
- return t && g?.(t), !0;
123
+ return t && A() && x?.(t), !0;
90
124
  } catch (e) {
91
125
  let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to reorder actions");
92
- return y(t), _?.(t), !1;
126
+ return A() && (w(t), S?.(t)), !1;
93
127
  }
94
128
  }, [
95
- l,
96
- k,
97
- g,
98
- _
99
- ]);
129
+ o,
130
+ L,
131
+ x,
132
+ S,
133
+ A
134
+ ]), U = O || M || P || I || R, W = o && !g && E === "complete" ? T : void 0, G = u(() => {
135
+ try {
136
+ return {
137
+ actions: W?.getWidgetActions.map(m) ?? [],
138
+ error: null
139
+ };
140
+ } catch {
141
+ return {
142
+ actions: [],
143
+ error: /* @__PURE__ */ Error("The action returned an unsupported type.")
144
+ };
145
+ }
146
+ }, [W]);
100
147
  return {
101
- loading: x || w || E || O || A,
102
- error: v,
103
- actions: b?.getWidgetActions || [],
104
- createAction: j,
105
- updateAction: M,
106
- deleteAction: N,
107
- reorderActions: P,
108
- refetch: S
148
+ loading: U,
149
+ error: G.error ?? C,
150
+ actions: G.actions,
151
+ createAction: z,
152
+ updateAction: B,
153
+ deleteAction: V,
154
+ reorderActions: H,
155
+ refetch: k
109
156
  };
110
157
  }
111
158
  //#endregion
112
- export { l as default };
159
+ export { h as default };
@@ -1,5 +1,4 @@
1
1
  import { WidgetDefinition } from '../components/widgets/WidgetRegistry';
2
-
3
2
  export interface UseWidgetCatalogParams {
4
3
  workspaceId?: string;
5
4
  apiGatewayUrl?: string;
@@ -1,19 +1,19 @@
1
1
  import { loadNativeWidgetCatalog as e } from "../graphql/widgetCapabilities.js";
2
- import t, { WIDGET_CATEGORY_LABELS as n, getAllWidgetDefinitions as r, getWidgetDefinition as i } from "../components/widgets/WidgetRegistry.js";
3
- import { isFederationAccessible as a, mapFromFederationWidgetType as o } from "../utils/widgetTypeMapping.js";
4
- import { filterAdvancedWidgetDefinitions as s, nativeFederationTypes as c } from "../utils/advancedWidgetCapabilities.js";
2
+ import { isFederationAccessible as t, mapFromFederationWidgetType as n } from "../utils/widgetTypeMapping.js";
3
+ import { filterAdvancedWidgetDefinitions as r, nativeFederationTypes as i } from "../utils/advancedWidgetCapabilities.js";
4
+ import a, { WIDGET_CATEGORY_LABELS as o, getAllWidgetDefinitions as s, getWidgetDefinition as c } from "../components/widgets/WidgetRegistry.js";
5
5
  import { useEffect as l, useLayoutEffect as u, useMemo as d, useRef as f } from "react";
6
6
  import { useApolloClient as p } from "@apollo/client/react";
7
7
  import { useQuery as m } from "@tanstack/react-query";
8
8
  //#region src/bigconsole/hooks/useWidgetCatalog.ts
9
- var h = new Set(Object.keys(n)), g = "Puzzle", _ = "Installed";
9
+ var h = new Set(Object.keys(o)), g = "Puzzle", _ = "Installed";
10
10
  function v(e) {
11
11
  let n = String(e).toLowerCase();
12
- return Object.prototype.hasOwnProperty.call(t, n) || a(e);
12
+ return Object.prototype.hasOwnProperty.call(a, n) || t(e);
13
13
  }
14
14
  function y(e) {
15
- let n = String(e).toLowerCase();
16
- return Object.prototype.hasOwnProperty.call(t, n) ? n : o(e);
15
+ let t = String(e).toLowerCase();
16
+ return Object.prototype.hasOwnProperty.call(a, t) ? t : n(e);
17
17
  }
18
18
  function b(e) {
19
19
  return {
@@ -54,7 +54,7 @@ function b(e) {
54
54
  }
55
55
  function x(e) {
56
56
  if (!v(e.type)) return b(e);
57
- let t = y(e.type), n = i(t), r = h.has(e.category) ? e.category : n.category;
57
+ let t = y(e.type), n = c(t), r = h.has(e.category) ? e.category : n.category;
58
58
  return {
59
59
  type: t,
60
60
  name: e.label,
@@ -83,36 +83,36 @@ function x(e) {
83
83
  };
84
84
  }
85
85
  function S(t = {}) {
86
- let { workspaceId: n, apiGatewayUrl: i, enabled: a = !0 } = t, o = p(), h = f(n);
87
- u(() => (h.current = a ? n : void 0, () => {
86
+ let { workspaceId: n, apiGatewayUrl: a, enabled: o = !0 } = t, c = p(), h = f(n);
87
+ u(() => (h.current = o ? n : void 0, () => {
88
88
  h.current = void 0;
89
- }), [n, a]);
89
+ }), [n, o]);
90
90
  let { data: g, isLoading: _, error: v } = m({
91
91
  queryKey: [
92
92
  "widgetCatalog",
93
93
  n,
94
- i
94
+ a
95
95
  ],
96
96
  queryFn: async () => {
97
97
  if (!n || h.current !== n) throw Error("Widget catalog workspace changed.");
98
- let t = await e(o, n);
98
+ let t = await e(c, n);
99
99
  if (h.current !== n) throw Error("Widget catalog workspace changed.");
100
100
  return t;
101
101
  },
102
- enabled: a && !!n,
102
+ enabled: o && !!n,
103
103
  staleTime: 600 * 1e3
104
104
  });
105
105
  l(() => {
106
106
  v && console.warn("Falling back to bundled widget registry:", v.message);
107
107
  }, [v]);
108
- let y = g?.getWidgetTypes, b = d(() => c(g?.getWidgetTypes ?? []), [g]);
108
+ let y = g?.getWidgetTypes, b = d(() => i(g?.getWidgetTypes ?? []), [g]);
109
109
  return d(() => y && y.length > 0 ? {
110
- definitions: s(y.map(x), b),
110
+ definitions: r(y.map(x), b),
111
111
  source: "backend",
112
112
  loading: _,
113
113
  error: v ?? void 0
114
114
  } : {
115
- definitions: s(r(), b),
115
+ definitions: r(s(), b),
116
116
  source: "static",
117
117
  loading: _,
118
118
  error: v ?? void 0
@@ -1,5 +1,4 @@
1
1
  import { EntityCommentFieldsFragment } from '../../generated/wspace-operations';
2
-
3
2
  /** Entity type used to scope comments to a BigConsole widget. */
4
3
  export declare const WIDGET_COMMENT_ENTITY_TYPE = "bigconsole-widget";
5
4
  /** A top-level comment with its (one level of) replies attached. */