@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.
- package/dist/bigconsole/AdminRoot.d.ts +0 -1
- package/dist/bigconsole/AdminRoutes.d.ts +1 -1
- package/dist/bigconsole/BigConsoleRoot.d.ts +0 -1
- package/dist/bigconsole/BigConsoleRoutes.d.ts +1 -2
- package/dist/bigconsole/assistant/assistantApi.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantProduct.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantPrompt.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantRunPersistence.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantRuntime.d.ts +0 -1
- package/dist/bigconsole/assistant/conversationHistoryApi.d.ts +0 -1
- package/dist/bigconsole/assistant/displayCopy.d.ts +0 -1
- package/dist/bigconsole/assistant/modes.d.ts +0 -1
- package/dist/bigconsole/assistant/pageControls.d.ts +0 -1
- package/dist/bigconsole/assistant/previewControl.d.ts +0 -1
- package/dist/bigconsole/assistant/previewController.d.ts +0 -1
- package/dist/bigconsole/assistant/previewRunAction.d.ts +0 -1
- package/dist/bigconsole/assistant/recordAdapters.d.ts +0 -1
- package/dist/bigconsole/components/DrilldownDashboardRenderer.d.ts +0 -1
- package/dist/bigconsole/components/DrilldownModal.d.ts +0 -1
- package/dist/bigconsole/components/builder/BuilderCanvas.d.ts +0 -1
- package/dist/bigconsole/components/builder/BuilderTopbar.d.ts +0 -1
- package/dist/bigconsole/components/builder/DashboardEditorShell.d.ts +0 -1
- package/dist/bigconsole/components/builder/WidgetInspector.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/AdvancedSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/GeneralSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/LayoutSection.d.ts +0 -1
- package/dist/bigconsole/components/common/Section.d.ts +0 -1
- package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +19 -19
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.d.ts +1 -2
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.d.ts +1 -2
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +7 -7
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.d.ts +1 -2
- package/dist/bigconsole/components/datasink/AlertRuleEditor.d.ts +1 -2
- package/dist/bigconsole/components/datasink/ConfigurationForm.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkCard.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.d.ts +0 -1
- package/dist/bigconsole/components/datasink/SetupStateBadge.d.ts +0 -1
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.d.ts +0 -1
- package/dist/bigconsole/components/embed/EmbedErrorBoundary.d.ts +0 -1
- package/dist/bigconsole/components/embed/EmbedWidgetRenderer.d.ts +1 -2
- package/dist/bigconsole/components/embed/ReadOnlyDashboardRenderer.d.ts +1 -2
- package/dist/bigconsole/components/embed/drilldown.d.ts +0 -1
- package/dist/bigconsole/components/embed/renderer-manifest.d.ts +0 -1
- package/dist/bigconsole/components/embed/types.d.ts +0 -1
- package/dist/bigconsole/components/embed/validate.d.ts +0 -1
- package/dist/bigconsole/components/embed/widgetShim.d.ts +0 -1
- package/dist/bigconsole/components/embed/widgets/CalendarEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ChartEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/EmbedFrame.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/FormEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/GaugeEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/KanbanEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/KpiComparisonEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ListEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/MetricCardEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/PivotEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ProgressEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/RetentionEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TableEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TextEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TimelineEmbed.d.ts +1 -2
- package/dist/bigconsole/components/insights/GeneratedFormattingReview.d.ts +2 -2
- package/dist/bigconsole/components/overview/DashboardGuide.d.ts +0 -1
- package/dist/bigconsole/components/overview/DataHealthCard.d.ts +0 -1
- package/dist/bigconsole/components/overview/OverviewQuickActions.d.ts +0 -1
- package/dist/bigconsole/components/overview/OverviewStatCard.d.ts +0 -1
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.d.ts +0 -1
- package/dist/bigconsole/components/overview/overviewModel.d.ts +0 -1
- package/dist/bigconsole/components/overview/useOverviewData.d.ts +0 -1
- package/dist/bigconsole/components/overview/useOverviewData.js +47 -42
- package/dist/bigconsole/components/parser/DataSinkSelector.d.ts +0 -1
- package/dist/bigconsole/components/parser/ExportParserDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ExpressionEditor.d.ts +0 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserBuilder.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserCard.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserFormDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserSelector.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserTypeBadge.d.ts +0 -1
- package/dist/bigconsole/components/parser/TestPanel.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +1 -1
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/preview/AiPreviewContent.d.ts +4 -4
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.d.ts +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.d.ts +1 -1
- package/dist/bigconsole/components/preview/parserPreview.d.ts +6 -8
- package/dist/bigconsole/components/preview/previewShared.d.ts +1 -2
- package/dist/bigconsole/components/widgets/ActionConfigDialog.d.ts +0 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -287
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetMenu.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetRegistry.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +0 -1
- package/dist/bigconsole/components/widgets/actionConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.d.ts +1 -2
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.d.ts +0 -1
- package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarView.d.ts +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartLegend.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/ComboChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/numericSeries.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +0 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.d.ts +0 -1
- package/dist/bigconsole/components/widgets/custom/CustomWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.d.ts +0 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/funnel/index.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanView.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListItem.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.d.ts +0 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressBar.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/ErrorState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/LoadingState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableCell.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableHeader.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TablePagination.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +34 -25
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowCard.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +2 -4
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +20 -53
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +1 -1
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/workflow/workflowDesignProjection.d.ts +12 -0
- package/dist/bigconsole/components/workflow/workflowDesignProjection.js +42 -0
- package/dist/bigconsole/context/BigConsoleContext.d.ts +1 -2
- package/dist/bigconsole/contexts/CrossFilterContext.d.ts +0 -1
- package/dist/bigconsole/contexts/NavigationContext.d.ts +1 -2
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.d.ts +0 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.d.ts +0 -1
- package/dist/bigconsole/customWidget/proposalPreview.d.ts +1 -2
- package/dist/bigconsole/customWidget/proposalSource.d.ts +0 -1
- package/dist/bigconsole/graphql/widgetCapabilities.d.ts +0 -1
- package/dist/bigconsole/hooks/index.js +2 -2
- package/dist/bigconsole/hooks/mutationInputEnums.d.ts +5 -0
- package/dist/bigconsole/hooks/mutationInputEnums.js +32 -0
- package/dist/bigconsole/hooks/useDashboardEmbedPolicy.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardImageExport.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardTemplates.js +0 -1
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +16 -32
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts +0 -1
- package/dist/bigconsole/hooks/useDrilldown.d.ts +0 -1
- package/dist/bigconsole/hooks/useDrilldownOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useEventLogs.d.ts +0 -6
- package/dist/bigconsole/hooks/useEventLogs.js +152 -60
- package/dist/bigconsole/hooks/useEventWebhooks.d.ts +0 -6
- package/dist/bigconsole/hooks/useEventWebhooks.js +132 -72
- package/dist/bigconsole/hooks/useInstalledWidgets.d.ts +0 -1
- package/dist/bigconsole/hooks/useModalFocusTrap.d.ts +0 -1
- package/dist/bigconsole/hooks/usePageOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useParserOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useQueryLifecycle.d.ts +8 -0
- package/dist/bigconsole/hooks/useQueryLifecycle.js +71 -0
- package/dist/bigconsole/hooks/useShareRecipients.d.ts +0 -1
- package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +45 -42
- package/dist/bigconsole/hooks/useWidgetActions.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetActions.js +112 -65
- package/dist/bigconsole/hooks/useWidgetCatalog.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetCatalog.js +17 -17
- package/dist/bigconsole/hooks/useWidgetComments.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetComments.js +49 -46
- package/dist/bigconsole/hooks/useWidgetConfigPersist.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetData.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetData.js +57 -52
- package/dist/bigconsole/hooks/useWidgetExport.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useWorkflowOperations.d.ts +0 -1
- package/dist/bigconsole/pages/AdminPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardViewPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardsPage.d.ts +0 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts +1 -1
- package/dist/bigconsole/pages/DataSinksPage.d.ts +0 -1
- package/dist/bigconsole/pages/DataSourcesPage.d.ts +1 -1
- package/dist/bigconsole/pages/InsightsPage.d.ts +0 -1
- package/dist/bigconsole/pages/OverviewPage.d.ts +0 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts +0 -1
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts +0 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.d.ts +1 -2
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +0 -1
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.d.ts +0 -1
- package/dist/bigconsole/renderers/registry/RendererRegistry.d.ts +0 -1
- package/dist/bigconsole/renderers/types/renderer.d.ts +0 -1
- package/dist/bigconsole/store/dashboardStore.d.ts +0 -1
- package/dist/bigconsole/store/dataSinkStore.d.ts +0 -1
- package/dist/bigconsole/store/parserStore.d.ts +0 -1
- package/dist/bigconsole/store/pipelineStore.d.ts +0 -1
- package/dist/bigconsole/store/widgetStore.d.ts +0 -1
- package/dist/bigconsole/store/workflowStore.d.ts +0 -1
- package/dist/bigconsole/types/index.d.ts +0 -1
- package/dist/bigconsole/utils/advancedWidgetCapabilities.d.ts +0 -1
- package/dist/bigconsole/utils/alertRules.d.ts +0 -1
- package/dist/bigconsole/utils/dashboardList.d.ts +0 -1
- package/dist/bigconsole/utils/dashboardTemplateContent.d.ts +0 -1
- package/dist/bigconsole/utils/dataSinkList.d.ts +0 -1
- package/dist/bigconsole/utils/quota.d.ts +0 -1
- package/dist/bigconsole/utils/sanitizeHtml.d.ts +0 -1
- package/dist/bigconsole/utils/templateInstallInputs.d.ts +0 -1
- package/dist/bigconsole/utils/widgetBinding.d.ts +0 -1
- package/dist/bigconsole/utils/widgetDisplayData.d.ts +0 -1
- package/dist/bigconsole/utils/widgetPositioning.d.ts +0 -1
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts +0 -1
- package/dist/bigconsole/workflowOpen.d.ts +0 -1
- package/dist/generated/global-operations.d.ts +177 -137
- package/dist/generated/global-operations.js +541 -63
- package/dist/generated/global-types.d.ts +2 -21
- package/dist/generated/wspace-operations.d.ts +3277 -6802
- package/dist/generated/wspace-operations.js +34725 -2582
- package/dist/generated/wspace-types.d.ts +10 -29
- package/dist/generated/wspace-types.js +14 -4
- 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 };
|
|
@@ -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
|
|
27
|
-
let { search:
|
|
28
|
-
if (
|
|
29
|
-
|
|
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
|
|
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 ??
|
|
39
|
-
...
|
|
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
|
-
|
|
52
|
+
C(r.map(h)), T(r.length);
|
|
50
53
|
} catch (e) {
|
|
51
|
-
|
|
54
|
+
k(e instanceof Error ? e.message : "Failed to load templates from the store"), C([]), T(0);
|
|
52
55
|
} finally {
|
|
53
|
-
|
|
56
|
+
D(!1);
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
}, [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
b,
|
|
61
|
+
_,
|
|
62
|
+
v
|
|
60
63
|
]);
|
|
61
64
|
l(() => {
|
|
62
|
-
|
|
63
|
-
}, [
|
|
64
|
-
let
|
|
65
|
-
if (!
|
|
65
|
+
y && A();
|
|
66
|
+
}, [y, A]);
|
|
67
|
+
let j = c(async (t) => {
|
|
68
|
+
if (!b) return null;
|
|
66
69
|
try {
|
|
67
|
-
let n = (await
|
|
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
|
-
}, [
|
|
88
|
-
let n = (await
|
|
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
|
-
}, [
|
|
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 (!
|
|
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
|
|
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
|
|
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
|
|
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
|
-
}, [
|
|
190
|
+
}, [b, x]);
|
|
188
191
|
return u(() => ({
|
|
189
|
-
templates:
|
|
190
|
-
loading:
|
|
191
|
-
error:
|
|
192
|
-
totalCount:
|
|
193
|
-
refetch:
|
|
194
|
-
fetchTemplateContent:
|
|
195
|
-
installTemplate:
|
|
196
|
-
publishToStore:
|
|
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
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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 {
|
|
212
|
+
export { g as default };
|
|
@@ -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 {
|
|
3
|
-
import {
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
11
|
-
|
|
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
|
-
|
|
39
|
+
w(e), S?.(e);
|
|
15
40
|
}
|
|
16
|
-
}), [
|
|
17
|
-
if (!
|
|
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 =
|
|
44
|
+
let { type: t, style: r, ...i } = e, a = await j({
|
|
20
45
|
variables: { input: {
|
|
21
|
-
widgetId:
|
|
22
|
-
...
|
|
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:
|
|
53
|
+
variables: { widgetId: o }
|
|
27
54
|
}]
|
|
28
|
-
})
|
|
29
|
-
return
|
|
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
|
|
59
|
+
return A() && (w(t), S?.(t)), null;
|
|
33
60
|
}
|
|
34
61
|
}, [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
62
|
+
o,
|
|
63
|
+
j,
|
|
64
|
+
v,
|
|
65
|
+
S,
|
|
66
|
+
A
|
|
67
|
+
]), B = l(async (e) => {
|
|
40
68
|
try {
|
|
41
|
-
let t =
|
|
42
|
-
variables: { input:
|
|
43
|
-
|
|
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:
|
|
77
|
+
variables: { widgetId: o }
|
|
46
78
|
}] : []
|
|
47
|
-
})
|
|
48
|
-
return
|
|
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
|
|
83
|
+
return A() && (w(t), S?.(t)), null;
|
|
52
84
|
}
|
|
53
85
|
}, [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
86
|
+
o,
|
|
87
|
+
N,
|
|
88
|
+
y,
|
|
89
|
+
S,
|
|
90
|
+
A
|
|
91
|
+
]), V = l(async (e) => {
|
|
59
92
|
try {
|
|
60
|
-
return await
|
|
93
|
+
return await F({
|
|
61
94
|
variables: { id: e },
|
|
62
|
-
refetchQueries:
|
|
95
|
+
refetchQueries: o ? [{
|
|
63
96
|
query: n,
|
|
64
|
-
variables: { widgetId:
|
|
97
|
+
variables: { widgetId: o }
|
|
65
98
|
}] : []
|
|
66
|
-
}),
|
|
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
|
|
102
|
+
return A() && (w(t), S?.(t)), !1;
|
|
70
103
|
}
|
|
71
104
|
}, [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
|
113
|
+
let t = (await L({
|
|
80
114
|
variables: {
|
|
81
|
-
widgetId:
|
|
115
|
+
widgetId: o,
|
|
82
116
|
actionIds: e
|
|
83
117
|
},
|
|
84
118
|
refetchQueries: [{
|
|
85
119
|
query: n,
|
|
86
|
-
variables: { widgetId:
|
|
120
|
+
variables: { widgetId: o }
|
|
87
121
|
}]
|
|
88
122
|
})).data?.reorderWidgetActions;
|
|
89
|
-
return t &&
|
|
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
|
|
126
|
+
return A() && (w(t), S?.(t)), !1;
|
|
93
127
|
}
|
|
94
128
|
}, [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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:
|
|
102
|
-
error:
|
|
103
|
-
actions:
|
|
104
|
-
createAction:
|
|
105
|
-
updateAction:
|
|
106
|
-
deleteAction:
|
|
107
|
-
reorderActions:
|
|
108
|
-
refetch:
|
|
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 {
|
|
159
|
+
export { h as default };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { loadNativeWidgetCatalog as e } from "../graphql/widgetCapabilities.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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(
|
|
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(
|
|
12
|
+
return Object.prototype.hasOwnProperty.call(a, n) || t(e);
|
|
13
13
|
}
|
|
14
14
|
function y(e) {
|
|
15
|
-
let
|
|
16
|
-
return Object.prototype.hasOwnProperty.call(
|
|
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 =
|
|
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:
|
|
87
|
-
u(() => (h.current =
|
|
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,
|
|
89
|
+
}), [n, o]);
|
|
90
90
|
let { data: g, isLoading: _, error: v } = m({
|
|
91
91
|
queryKey: [
|
|
92
92
|
"widgetCatalog",
|
|
93
93
|
n,
|
|
94
|
-
|
|
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(
|
|
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:
|
|
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(() =>
|
|
108
|
+
let y = g?.getWidgetTypes, b = d(() => i(g?.getWidgetTypes ?? []), [g]);
|
|
109
109
|
return d(() => y && y.length > 0 ? {
|
|
110
|
-
definitions:
|
|
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(
|
|
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. */
|