@burdenoff/microfe-bigconsole 2026.1030.4 → 2026.1031.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/bigconsole/BigConsoleRoot.js +6 -4
- package/dist/bigconsole/assistant/assistantApi.js +1 -1
- package/dist/bigconsole/assistant/assistantProduct.js +70 -70
- package/dist/bigconsole/assistant/assistantRunPersistence.js +1 -1
- package/dist/bigconsole/assistant/assistantRuntime.js +1 -1
- package/dist/bigconsole/assistant/attachmentExtract.js +1 -1
- package/dist/bigconsole/assistant/conversationHistoryApi.js +1 -1
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +5 -4
- package/dist/bigconsole/assistant/pageContext.js +1 -1
- package/dist/bigconsole/assistant/pageControls.js +1 -1
- package/dist/bigconsole/assistant/previewController.js +1 -1
- package/dist/bigconsole/assistant/recordAdapters.js +1 -1
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +2 -2
- package/dist/bigconsole/components/DrilldownModal.js +1 -1
- package/dist/bigconsole/components/builder/WidgetInspector.js +1 -1
- package/dist/bigconsole/components/builder/index.js +5 -4
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +7 -7
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +2 -2
- package/dist/bigconsole/components/builder/inspector/LayoutSection.js +1 -1
- package/dist/bigconsole/components/builder/inspector/index.js +6 -5
- package/dist/bigconsole/components/common/index.js +4 -3
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +3 -3
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +9 -9
- package/dist/bigconsole/components/dashboard/DashboardGrid.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +2 -2
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +4 -3
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +4 -4
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.js +2 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.js +1 -1
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +1 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/index.js +2 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/QuotaLimitNotice.js +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.js +2 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +152 -152
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +2 -2
- package/dist/bigconsole/components/dashboard/ShareDialog/index.js +2 -1
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +2 -2
- package/dist/bigconsole/components/dashboard/index.js +6 -5
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +2 -2
- package/dist/bigconsole/components/datasink/DataSinkCard.js +2 -2
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +1 -1
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +1 -1
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +1 -1
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +1 -1
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +1 -1
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +1 -1
- package/dist/bigconsole/components/embed/widgets/CalendarEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/ChartEmbed.js +9 -9
- package/dist/bigconsole/components/embed/widgets/FormEmbed.js +2 -2
- package/dist/bigconsole/components/embed/widgets/GaugeEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/KanbanEmbed.js +2 -2
- package/dist/bigconsole/components/embed/widgets/ProgressEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/RetentionEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/TimelineEmbed.js +1 -1
- package/dist/bigconsole/components/overview/DashboardGuide.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +2 -2
- package/dist/bigconsole/components/overview/OverviewQuickActions.js +1 -1
- package/dist/bigconsole/components/overview/OverviewStatCard.js +1 -1
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +2 -2
- package/dist/bigconsole/components/overview/index.js +9 -8
- package/dist/bigconsole/components/overview/overviewModel.js +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +2 -2
- package/dist/bigconsole/components/parser/ExportParserDialog.js +1 -1
- package/dist/bigconsole/components/parser/ExpressionEditor.js +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +10 -10
- package/dist/bigconsole/components/parser/ParserCard.js +3 -3
- package/dist/bigconsole/components/parser/ParserSelector.js +3 -3
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +1 -1
- package/dist/bigconsole/components/parser/ParserTypeBadge.js +1 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.js +2 -2
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +1 -1
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +1 -1
- package/dist/bigconsole/components/preview/AiPreviewContent.js +3 -3
- package/dist/bigconsole/components/preview/confirmedPreviewWidgets.js +10 -12
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +314 -314
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +3 -2
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +37 -22
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +2 -2
- package/dist/bigconsole/components/widgets/WidgetMenu.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +16 -16
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
- package/dist/bigconsole/components/widgets/adaptive-card/index.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarView.js +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +9 -9
- package/dist/bigconsole/components/widgets/calendar/index.js +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartLegend.js +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.js +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js +10 -10
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +1 -1
- package/dist/bigconsole/components/widgets/chart/charts/index.js +6 -5
- package/dist/bigconsole/components/widgets/chart/charts/numericSeries.js +4 -2
- package/dist/bigconsole/components/widgets/chart/index.js +9 -9
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js +1 -1
- package/dist/bigconsole/components/widgets/custom/index.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/index.js +2 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +2 -2
- package/dist/bigconsole/components/widgets/form/index.js +1 -1
- package/dist/bigconsole/components/widgets/funnel/index.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +3 -3
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/index.js +4 -4
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +1 -1
- package/dist/bigconsole/components/widgets/heatmap/index.js +2 -2
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +1 -1
- package/dist/bigconsole/components/widgets/iframe-widget/index.js +1 -1
- package/dist/bigconsole/components/widgets/index.js +2 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanView.js +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +2 -2
- package/dist/bigconsole/components/widgets/kanban/index.js +1 -1
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.js +1 -1
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +3 -3
- package/dist/bigconsole/components/widgets/kpi-comparison/index.js +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +1 -1
- package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
- package/dist/bigconsole/components/widgets/list/ListWidget.js +2 -2
- package/dist/bigconsole/components/widgets/list/index.js +3 -3
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
- package/dist/bigconsole/components/widgets/map-widget/index.js +1 -1
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js +2 -2
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +4 -4
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +1 -1
- package/dist/bigconsole/components/widgets/metric-card/index.js +5 -5
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +3 -3
- package/dist/bigconsole/components/widgets/pivot-table/index.js +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressBar.js +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +6 -4
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +2 -2
- package/dist/bigconsole/components/widgets/progress/index.js +3 -3
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +1 -1
- package/dist/bigconsole/components/widgets/retention/index.js +1 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.js +1 -1
- package/dist/bigconsole/components/widgets/states/ErrorState.js +1 -1
- package/dist/bigconsole/components/widgets/states/LoadingState.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableCell.js +2 -2
- package/dist/bigconsole/components/widgets/table/TableConfig.js +12 -8
- package/dist/bigconsole/components/widgets/table/TableHeader.js +1 -1
- package/dist/bigconsole/components/widgets/table/TablePagination.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.js +12 -10
- package/dist/bigconsole/components/widgets/table/index.js +5 -5
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +1 -1
- package/dist/bigconsole/components/widgets/text-widget/index.js +1 -1
- package/dist/bigconsole/components/widgets/text-widget/textData.js +2 -2
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +1 -1
- package/dist/bigconsole/components/widgets/timeline/index.js +1 -1
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/index.js +2 -1
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +1 -1
- package/dist/bigconsole/components/widgets/widget-actions/index.js +2 -1
- package/dist/bigconsole/components/workflow/WorkflowCard.js +2 -2
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +1 -1
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +1 -1
- package/dist/bigconsole/context/BigConsoleContext.js +2 -1
- package/dist/bigconsole/context/index.js +2 -1
- package/dist/bigconsole/contexts/CrossFilterContext.js +1 -1
- package/dist/bigconsole/contexts/NavigationContext.js +2 -1
- package/dist/bigconsole/contexts/index.js +3 -2
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +2 -2
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +6 -5
- package/dist/bigconsole/customWidget/index.js +2 -1
- package/dist/bigconsole/customWidget/proposalContract.js +1 -1
- package/dist/bigconsole/graphql/storeTemplates.js +5 -5
- package/dist/bigconsole/graphql/widgetCapabilities.js +1 -1
- package/dist/bigconsole/hooks/index.js +24 -23
- package/dist/bigconsole/hooks/useActivePage.js +1 -1
- package/dist/bigconsole/hooks/useAutoRefresh.js +1 -1
- package/dist/bigconsole/hooks/useBigConsoleAnalytics.js +1 -1
- package/dist/bigconsole/hooks/useCrossFilter.js +1 -1
- package/dist/bigconsole/hooks/useDashboardEmbedPolicy.js +1 -1
- package/dist/bigconsole/hooks/useDashboardImageExport.js +1 -1
- package/dist/bigconsole/hooks/useDashboardOperations.js +14 -6
- package/dist/bigconsole/hooks/useDashboardSharing.js +15 -8
- package/dist/bigconsole/hooks/useDashboardViews.js +15 -8
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +11 -8
- package/dist/bigconsole/hooks/useDataSinkOperations.js +19 -10
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +1 -1
- package/dist/bigconsole/hooks/useDrilldown.js +2 -2
- package/dist/bigconsole/hooks/useDrilldownOperations.js +1 -1
- package/dist/bigconsole/hooks/useEventLogs.js +1 -1
- package/dist/bigconsole/hooks/useEventWebhooks.js +1 -1
- package/dist/bigconsole/hooks/useExportDashboard.js +7 -3
- package/dist/bigconsole/hooks/useExportDataSink.js +5 -3
- package/dist/bigconsole/hooks/useExportParser.js +5 -3
- package/dist/bigconsole/hooks/useFilterPresets.js +1 -1
- package/dist/bigconsole/hooks/useFilterUrlSync.js +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.js +11 -6
- package/dist/bigconsole/hooks/useImportDashboard.js +4 -2
- package/dist/bigconsole/hooks/useImportDataSink.js +3 -2
- package/dist/bigconsole/hooks/useImportParser.js +3 -2
- package/dist/bigconsole/hooks/useInstalledWidgets.js +1 -1
- package/dist/bigconsole/hooks/useModalFocusTrap.js +1 -1
- package/dist/bigconsole/hooks/usePageOperations.js +9 -5
- package/dist/bigconsole/hooks/useParserOperations.js +15 -8
- package/dist/bigconsole/hooks/usePipelineOperations.js +25 -13
- package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +1 -1
- package/dist/bigconsole/hooks/useWidgetActions.js +1 -1
- package/dist/bigconsole/hooks/useWidgetCatalog.js +5 -5
- package/dist/bigconsole/hooks/useWidgetComments.js +1 -1
- package/dist/bigconsole/hooks/useWidgetConfigPersist.js +1 -1
- package/dist/bigconsole/hooks/useWidgetData.js +1 -1
- package/dist/bigconsole/hooks/useWidgetEvents.js +1 -1
- package/dist/bigconsole/hooks/useWidgetExport.js +1 -1
- package/dist/bigconsole/hooks/useWidgetOperations.js +28 -16
- package/dist/bigconsole/hooks/useWorkflowOperations.js +19 -10
- package/dist/bigconsole/index.js +9 -8
- package/dist/bigconsole/pages/DashboardBuilderPage.js +44 -35
- package/dist/bigconsole/pages/DashboardViewPage.js +23 -16
- package/dist/bigconsole/pages/DashboardsPage.js +4 -4
- package/dist/bigconsole/pages/DataParsersPage.js +2 -2
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +12 -7
- package/dist/bigconsole/pages/DataSinkViewPage.js +8 -8
- package/dist/bigconsole/pages/DataSinksPage.js +6 -6
- package/dist/bigconsole/pages/OverviewPage.js +5 -5
- package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
- package/dist/bigconsole/pages/ParserViewPage.js +4 -4
- package/dist/bigconsole/pages/PipelineBuilderPage.js +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +7 -3
- package/dist/bigconsole/pages/PipelinesPage.js +2 -2
- package/dist/bigconsole/pages/WidgetDemoPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +7 -14
- package/dist/bigconsole/pages/WorkflowsPage.js +3 -3
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +4 -4
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +13 -12
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js +1 -1
- package/dist/bigconsole/renderers/registry/RendererRegistry.js +5 -5
- package/dist/bigconsole/store/drilldownStore.js +1 -1
- package/dist/bigconsole/store/index.js +4 -3
- package/dist/bigconsole/store/parserStore.js +1 -1
- package/dist/bigconsole/store/pipelineStore.js +1 -1
- package/dist/bigconsole/utils/advancedWidgetCapabilities.js +1 -1
- package/dist/bigconsole/utils/backendError.js +21 -22
- package/dist/bigconsole/utils/createDialogParam.js +2 -2
- package/dist/bigconsole/utils/csv.js +34 -36
- package/dist/bigconsole/utils/dataSinkPayload.js +12 -14
- package/dist/bigconsole/utils/drilldownParams.js +1 -1
- package/dist/bigconsole/utils/formDirty.js +3 -3
- package/dist/bigconsole/utils/layoutBaseline.js +1 -1
- package/dist/bigconsole/utils/quota.js +4 -4
- package/dist/bigconsole/utils/safeUrl.js +35 -33
- package/dist/bigconsole/utils/sanitizeHtml.js +2 -2
- package/dist/bigconsole/utils/templateGalleryFilter.js +2 -2
- package/dist/bigconsole/utils/widgetBinding.js +2 -2
- package/dist/bigconsole/utils/widgetDisplayData.js +1 -1
- package/dist/bigconsole/utils/widgetTypeMapping.js +3 -3
- package/dist/bigconsole/workflowOpen.js +2 -2
- package/dist/index.js +1 -1
- package/dist/node_modules/@e965/xlsx/xlsx.js +19 -19
- package/dist/node_modules/dompurify/dist/purify.es.js +454 -361
- package/dist/node_modules/pdfjs-dist/build/pdf.js +16 -16
- package/dist/shared/hooks/useTr.js +1 -1
- package/package.json +14 -12
|
@@ -3,72 +3,72 @@ import { BIGCONSOLE_PERMISSIONS as t } from "../../../../constants/permissions.j
|
|
|
3
3
|
import n, { themeChoiceFromPolicy as r } from "../../../hooks/useDashboardEmbedPolicy.js";
|
|
4
4
|
import { useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
5
5
|
import { usePermissions as c } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { Fragment as
|
|
6
|
+
import { useI18n as ee } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
8
|
//#region src/bigconsole/components/dashboard/ShareDialog/EmbedTab.tsx
|
|
9
|
-
var
|
|
9
|
+
var te = [
|
|
10
10
|
"light",
|
|
11
11
|
"dark",
|
|
12
12
|
"auto"
|
|
13
13
|
];
|
|
14
|
-
function
|
|
14
|
+
function f(e, t) {
|
|
15
15
|
return t === "light" ? e : e.replace(/(?<=\s)src="([^"]*)"/, (e, n) => {
|
|
16
16
|
let r = n.indexOf("#"), i = r === -1 ? n : n.slice(0, r), a = r === -1 ? "" : n.slice(r);
|
|
17
17
|
return `src="${i}${i.includes("?") ? "&" : "?"}theme=${t}${a}"`;
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
let { t:
|
|
20
|
+
function p({ dashboardId: p, colors: m }) {
|
|
21
|
+
let { t: h } = ee(), { policy: g, secret: _, loading: v, error: y, fetchPolicy: b, publishToWeb: x, applyPresentation: S, setAllowedOrigins: C, rotateKey: w, unpublish: ne } = n(), { hasPermission: T } = c(), E = T(t.DASHBOARD_MANAGE_EMBED), [D, O] = s(""), [k, A] = s([]), [j, M] = s(!1), [N, P] = s(!1), [F, I] = s("light"), [L, R] = s(!1), [z, B] = s(!1), [V, H] = s(null), U = o(null), W = o(null);
|
|
22
22
|
i(() => {
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
!
|
|
26
|
-
}, [
|
|
23
|
+
p && b(p);
|
|
24
|
+
}, [p, b]), i(() => {
|
|
25
|
+
!g || U.current === g.id || (U.current = g.id, I(r(g.presentationTheme)), R(g.showDashboardTitle));
|
|
26
|
+
}, [g]), i(() => () => {
|
|
27
27
|
W.current && clearTimeout(W.current);
|
|
28
28
|
}, []);
|
|
29
|
-
let G =
|
|
29
|
+
let G = g?.status === "ACTIVE", K = G ? g?.allowedParentOrigins ?? [] : k, q = a(() => _?.iframeSnippet ? f(_.iframeSnippet, F) : null, [_, F]), J = () => {
|
|
30
30
|
H(null);
|
|
31
|
-
let t = e(
|
|
31
|
+
let t = e(D);
|
|
32
32
|
if (!t) {
|
|
33
|
-
H(
|
|
33
|
+
H(h("bigconsole.dashboards.embed.error.invalidOrigin", "Enter a valid https origin, e.g. https://example.com"));
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
if (K.includes(t)) {
|
|
37
|
-
|
|
37
|
+
O("");
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
G &&
|
|
40
|
+
G && g ? C(g.id, [...K, t]) : A((e) => [...e, t]), O("");
|
|
41
41
|
}, Y = (e) => {
|
|
42
|
-
G &&
|
|
42
|
+
G && g ? C(g.id, K.filter((t) => t !== e)) : A((t) => t.filter((t) => t !== e));
|
|
43
43
|
}, X = async () => {
|
|
44
|
-
if (H(null),
|
|
45
|
-
H(
|
|
44
|
+
if (H(null), k.length === 0) {
|
|
45
|
+
H(h("bigconsole.dashboards.embed.error.noDomains", "Add at least one allowed website domain before publishing."));
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
-
if (!
|
|
49
|
-
H(
|
|
48
|
+
if (!j) {
|
|
49
|
+
H(h("bigconsole.dashboards.embed.error.notAttested", "Please confirm this dashboard is safe to be public."));
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
await
|
|
53
|
-
theme:
|
|
54
|
-
showTitle:
|
|
52
|
+
await x(p, k, !0, {
|
|
53
|
+
theme: F,
|
|
54
|
+
showTitle: L
|
|
55
55
|
});
|
|
56
56
|
}, re = async () => {
|
|
57
|
-
|
|
58
|
-
theme:
|
|
59
|
-
showTitle:
|
|
57
|
+
g && (H(null), await S(g.id, {
|
|
58
|
+
theme: F,
|
|
59
|
+
showTitle: L
|
|
60
60
|
}) && (B(!0), W.current && clearTimeout(W.current), W.current = setTimeout(() => B(!1), 1500)));
|
|
61
61
|
}, Z = async (e) => {
|
|
62
62
|
try {
|
|
63
|
-
await navigator.clipboard.writeText(e),
|
|
63
|
+
await navigator.clipboard.writeText(e), P(!0), setTimeout(() => P(!1), 1500);
|
|
64
64
|
} catch {
|
|
65
|
-
H(
|
|
65
|
+
H(h("bigconsole.dashboards.embed.error.copyFailed", "Could not copy — select and copy manually."));
|
|
66
66
|
}
|
|
67
67
|
}, ie = {
|
|
68
68
|
padding: "8px 14px",
|
|
69
69
|
borderRadius: "8px",
|
|
70
70
|
border: "none",
|
|
71
|
-
background:
|
|
71
|
+
background: m.actionPrimaryBg,
|
|
72
72
|
color: "#fff",
|
|
73
73
|
fontSize: "13px",
|
|
74
74
|
fontWeight: 600,
|
|
@@ -76,25 +76,25 @@ function m({ dashboardId: m, colors: h }) {
|
|
|
76
76
|
}, Q = {
|
|
77
77
|
padding: "8px 14px",
|
|
78
78
|
borderRadius: "8px",
|
|
79
|
-
border: `1px solid ${
|
|
79
|
+
border: `1px solid ${m.borderDefault}`,
|
|
80
80
|
background: "transparent",
|
|
81
|
-
color:
|
|
81
|
+
color: m.textPrimary,
|
|
82
82
|
fontSize: "13px",
|
|
83
83
|
cursor: "pointer"
|
|
84
84
|
}, ae = {
|
|
85
85
|
flex: 1,
|
|
86
86
|
padding: "8px 10px",
|
|
87
87
|
borderRadius: "8px",
|
|
88
|
-
border: `1px solid ${
|
|
89
|
-
background:
|
|
90
|
-
color:
|
|
88
|
+
border: `1px solid ${m.borderDefault}`,
|
|
89
|
+
background: m.bgSecondary,
|
|
90
|
+
color: m.textPrimary,
|
|
91
91
|
fontSize: "13px"
|
|
92
92
|
}, oe = {
|
|
93
93
|
padding: "4px 8px",
|
|
94
94
|
borderRadius: "6px",
|
|
95
|
-
border: `1px solid ${
|
|
96
|
-
background:
|
|
97
|
-
color:
|
|
95
|
+
border: `1px solid ${m.borderDefault}`,
|
|
96
|
+
background: m.bgSecondary,
|
|
97
|
+
color: m.textPrimary,
|
|
98
98
|
fontSize: "12px",
|
|
99
99
|
cursor: "pointer"
|
|
100
100
|
}, se = {
|
|
@@ -102,230 +102,230 @@ function m({ dashboardId: m, colors: h }) {
|
|
|
102
102
|
gap: "8px",
|
|
103
103
|
alignItems: "flex-start",
|
|
104
104
|
fontSize: "12px",
|
|
105
|
-
color:
|
|
106
|
-
}, ce = a(() =>
|
|
105
|
+
color: m.textSecondary
|
|
106
|
+
}, ce = a(() => te.map((e) => ({
|
|
107
107
|
value: e,
|
|
108
|
-
label: e === "light" ?
|
|
109
|
-
})), [
|
|
108
|
+
label: e === "light" ? h("bigconsole.dashboards.embed.theme.option.light", "Light") : e === "dark" ? h("bigconsole.dashboards.embed.theme.option.dark", "Dark") : h("bigconsole.dashboards.embed.theme.option.auto", "Auto (match viewer)")
|
|
109
|
+
})), [h]), $ = /* @__PURE__ */ d("div", {
|
|
110
110
|
style: {
|
|
111
111
|
display: "flex",
|
|
112
112
|
flexDirection: "column",
|
|
113
113
|
gap: "10px"
|
|
114
114
|
},
|
|
115
115
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ d("label", {
|
|
117
117
|
style: {
|
|
118
118
|
display: "flex",
|
|
119
119
|
alignItems: "center",
|
|
120
120
|
justifyContent: "space-between",
|
|
121
121
|
gap: "8px"
|
|
122
122
|
},
|
|
123
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ u("span", {
|
|
124
124
|
style: {
|
|
125
125
|
fontSize: "12px",
|
|
126
|
-
color:
|
|
126
|
+
color: m.textSecondary
|
|
127
127
|
},
|
|
128
|
-
children:
|
|
129
|
-
}), /* @__PURE__ */
|
|
130
|
-
value:
|
|
128
|
+
children: h("bigconsole.dashboards.embed.theme.label", "Theme")
|
|
129
|
+
}), /* @__PURE__ */ u("select", {
|
|
130
|
+
value: F,
|
|
131
131
|
onChange: (e) => {
|
|
132
132
|
let t = e.target.value;
|
|
133
|
-
(t === "light" || t === "dark" || t === "auto") &&
|
|
133
|
+
(t === "light" || t === "dark" || t === "auto") && I(t);
|
|
134
134
|
},
|
|
135
135
|
style: oe,
|
|
136
|
-
children: ce.map((e) => /* @__PURE__ */
|
|
136
|
+
children: ce.map((e) => /* @__PURE__ */ u("option", {
|
|
137
137
|
value: e.value,
|
|
138
138
|
children: e.label
|
|
139
139
|
}, e.value))
|
|
140
140
|
})]
|
|
141
141
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ d("label", {
|
|
143
143
|
style: se,
|
|
144
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ u("input", {
|
|
145
145
|
type: "checkbox",
|
|
146
|
-
checked:
|
|
147
|
-
onChange: (e) =>
|
|
148
|
-
}), /* @__PURE__ */
|
|
146
|
+
checked: L,
|
|
147
|
+
onChange: (e) => R(e.target.checked)
|
|
148
|
+
}), /* @__PURE__ */ u("span", { children: h("bigconsole.dashboards.embed.presentation.showTitle", "Show the dashboard title as a header") })]
|
|
149
149
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ u("div", {
|
|
151
151
|
style: {
|
|
152
152
|
fontSize: "11px",
|
|
153
|
-
color:
|
|
153
|
+
color: m.textTertiary
|
|
154
154
|
},
|
|
155
|
-
children:
|
|
155
|
+
children: h("bigconsole.dashboards.embed.presentation.brandingNote", "Embeds always carry a “Powered by BigConsole” footer.")
|
|
156
156
|
})
|
|
157
157
|
]
|
|
158
158
|
});
|
|
159
|
-
return /* @__PURE__ */
|
|
159
|
+
return /* @__PURE__ */ d("div", {
|
|
160
160
|
style: { padding: "20px 24px" },
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ d("div", {
|
|
163
163
|
style: {
|
|
164
164
|
display: "flex",
|
|
165
165
|
alignItems: "center",
|
|
166
166
|
justifyContent: "space-between",
|
|
167
167
|
padding: "12px 14px",
|
|
168
168
|
borderRadius: "10px",
|
|
169
|
-
background:
|
|
169
|
+
background: m.bgSecondary,
|
|
170
170
|
marginBottom: "16px"
|
|
171
171
|
},
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("div", {
|
|
173
173
|
style: {
|
|
174
174
|
fontSize: "14px",
|
|
175
175
|
fontWeight: 600,
|
|
176
|
-
color:
|
|
176
|
+
color: m.textPrimary
|
|
177
177
|
},
|
|
178
|
-
children:
|
|
179
|
-
}), /* @__PURE__ */
|
|
178
|
+
children: h("bigconsole.dashboards.embed.heading", "Publish to the web")
|
|
179
|
+
}), /* @__PURE__ */ u("div", {
|
|
180
180
|
style: {
|
|
181
181
|
fontSize: "12px",
|
|
182
|
-
color:
|
|
182
|
+
color: m.textSecondary,
|
|
183
183
|
marginTop: "2px"
|
|
184
184
|
},
|
|
185
|
-
children: G ?
|
|
186
|
-
})] }), /* @__PURE__ */
|
|
185
|
+
children: G ? h("bigconsole.dashboards.embed.status.liveDescription", "This dashboard is live. Anyone with the link on an allowed website sees its live data.") : h("bigconsole.dashboards.embed.status.privateDescription", "Embed this dashboard on your website. Viewers see live data — no login required.")
|
|
186
|
+
})] }), /* @__PURE__ */ u("span", {
|
|
187
187
|
style: {
|
|
188
188
|
fontSize: "11px",
|
|
189
189
|
fontWeight: 700,
|
|
190
190
|
padding: "3px 8px",
|
|
191
191
|
borderRadius: "999px",
|
|
192
192
|
color: "#fff",
|
|
193
|
-
background: G ?
|
|
193
|
+
background: G ? m.statusSuccessBg : m.textTertiary
|
|
194
194
|
},
|
|
195
|
-
children: G ?
|
|
195
|
+
children: G ? h("bigconsole.dashboards.embed.badge.published", "PUBLISHED") : h("bigconsole.dashboards.embed.badge.private", "PRIVATE")
|
|
196
196
|
})]
|
|
197
197
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ d("div", {
|
|
199
199
|
style: { marginBottom: "16px" },
|
|
200
200
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ u("div", {
|
|
202
202
|
style: {
|
|
203
203
|
fontSize: "12px",
|
|
204
204
|
fontWeight: 600,
|
|
205
|
-
color:
|
|
205
|
+
color: m.textSecondary,
|
|
206
206
|
marginBottom: "6px"
|
|
207
207
|
},
|
|
208
|
-
children:
|
|
208
|
+
children: h("bigconsole.dashboards.embed.domains.label", "Allowed website domains")
|
|
209
209
|
}),
|
|
210
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ d("div", {
|
|
211
211
|
style: {
|
|
212
212
|
display: "flex",
|
|
213
213
|
gap: "8px",
|
|
214
214
|
marginBottom: "8px"
|
|
215
215
|
},
|
|
216
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ u("input", {
|
|
217
217
|
style: ae,
|
|
218
|
-
placeholder:
|
|
219
|
-
value:
|
|
220
|
-
onChange: (e) =>
|
|
218
|
+
placeholder: h("bigconsole.dashboards.embed.domains.placeholder", "https://yoursite.com"),
|
|
219
|
+
value: D,
|
|
220
|
+
onChange: (e) => O(e.target.value),
|
|
221
221
|
onKeyDown: (e) => {
|
|
222
222
|
e.key === "Enter" && J();
|
|
223
223
|
}
|
|
224
|
-
}), /* @__PURE__ */
|
|
224
|
+
}), /* @__PURE__ */ u("button", {
|
|
225
225
|
style: Q,
|
|
226
226
|
onClick: J,
|
|
227
227
|
type: "button",
|
|
228
|
-
disabled: !
|
|
229
|
-
children:
|
|
228
|
+
disabled: !E,
|
|
229
|
+
children: h("bigconsole.dashboards.embed.domains.add", "Add")
|
|
230
230
|
})]
|
|
231
231
|
}),
|
|
232
|
-
K.length === 0 ? /* @__PURE__ */
|
|
232
|
+
K.length === 0 ? /* @__PURE__ */ u("div", {
|
|
233
233
|
style: {
|
|
234
234
|
fontSize: "12px",
|
|
235
|
-
color:
|
|
235
|
+
color: m.textTertiary
|
|
236
236
|
},
|
|
237
|
-
children:
|
|
238
|
-
}) : /* @__PURE__ */
|
|
237
|
+
children: h("bigconsole.dashboards.embed.domains.empty", "No domains yet. Only listed https domains may frame this dashboard.")
|
|
238
|
+
}) : /* @__PURE__ */ u("div", {
|
|
239
239
|
style: {
|
|
240
240
|
display: "flex",
|
|
241
241
|
flexDirection: "column",
|
|
242
242
|
gap: "6px"
|
|
243
243
|
},
|
|
244
|
-
children: K.map((e) => /* @__PURE__ */
|
|
244
|
+
children: K.map((e) => /* @__PURE__ */ d("div", {
|
|
245
245
|
style: {
|
|
246
246
|
display: "flex",
|
|
247
247
|
alignItems: "center",
|
|
248
248
|
justifyContent: "space-between",
|
|
249
249
|
padding: "6px 10px",
|
|
250
250
|
borderRadius: "8px",
|
|
251
|
-
background:
|
|
251
|
+
background: m.bgTertiary
|
|
252
252
|
},
|
|
253
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ u("span", {
|
|
254
254
|
style: {
|
|
255
255
|
fontSize: "13px",
|
|
256
|
-
color:
|
|
256
|
+
color: m.textPrimary
|
|
257
257
|
},
|
|
258
258
|
children: e
|
|
259
|
-
}),
|
|
259
|
+
}), E && /* @__PURE__ */ u("button", {
|
|
260
260
|
style: {
|
|
261
261
|
...Q,
|
|
262
262
|
padding: "2px 8px",
|
|
263
|
-
color:
|
|
263
|
+
color: m.statusErrorText
|
|
264
264
|
},
|
|
265
265
|
onClick: () => Y(e),
|
|
266
266
|
type: "button",
|
|
267
|
-
children:
|
|
267
|
+
children: h("bigconsole.dashboards.embed.domains.remove", "Remove")
|
|
268
268
|
})]
|
|
269
269
|
}, e))
|
|
270
270
|
})
|
|
271
271
|
]
|
|
272
272
|
}),
|
|
273
|
-
!G && /* @__PURE__ */
|
|
273
|
+
!G && /* @__PURE__ */ d("div", {
|
|
274
274
|
style: { marginBottom: "16px" },
|
|
275
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ u("div", {
|
|
276
276
|
style: {
|
|
277
277
|
fontSize: "12px",
|
|
278
278
|
fontWeight: 600,
|
|
279
|
-
color:
|
|
279
|
+
color: m.textSecondary,
|
|
280
280
|
marginBottom: "8px"
|
|
281
281
|
},
|
|
282
|
-
children:
|
|
282
|
+
children: h("bigconsole.dashboards.embed.presentation.heading", "Presentation")
|
|
283
283
|
}), $]
|
|
284
284
|
}),
|
|
285
|
-
!G && /* @__PURE__ */
|
|
285
|
+
!G && /* @__PURE__ */ d("div", {
|
|
286
286
|
style: { marginBottom: "8px" },
|
|
287
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ d("label", {
|
|
288
288
|
style: {
|
|
289
289
|
display: "flex",
|
|
290
290
|
gap: "8px",
|
|
291
291
|
alignItems: "flex-start",
|
|
292
292
|
marginBottom: "12px"
|
|
293
293
|
},
|
|
294
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ u("input", {
|
|
295
295
|
type: "checkbox",
|
|
296
|
-
checked:
|
|
297
|
-
onChange: (e) =>
|
|
298
|
-
}), /* @__PURE__ */
|
|
296
|
+
checked: j,
|
|
297
|
+
onChange: (e) => M(e.target.checked)
|
|
298
|
+
}), /* @__PURE__ */ u("span", {
|
|
299
299
|
style: {
|
|
300
300
|
fontSize: "12px",
|
|
301
|
-
color:
|
|
301
|
+
color: m.textSecondary
|
|
302
302
|
},
|
|
303
|
-
children:
|
|
303
|
+
children: h("bigconsole.dashboards.embed.attestation", "I understand this makes the dashboard’s live data visible to anyone with the link, and I confirm it is safe to be public.")
|
|
304
304
|
})]
|
|
305
|
-
}), /* @__PURE__ */
|
|
305
|
+
}), /* @__PURE__ */ u("button", {
|
|
306
306
|
style: ie,
|
|
307
307
|
onClick: X,
|
|
308
|
-
disabled:
|
|
308
|
+
disabled: v || !E,
|
|
309
309
|
type: "button",
|
|
310
|
-
children:
|
|
310
|
+
children: v ? h("bigconsole.dashboards.embed.publishing", "Publishing…") : h("bigconsole.dashboards.embed.publish", "Publish to web")
|
|
311
311
|
})]
|
|
312
312
|
}),
|
|
313
|
-
G && /* @__PURE__ */
|
|
314
|
-
q ? /* @__PURE__ */
|
|
313
|
+
G && /* @__PURE__ */ d(l, { children: [
|
|
314
|
+
q ? /* @__PURE__ */ d("div", {
|
|
315
315
|
style: { marginBottom: "16px" },
|
|
316
316
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ u("div", {
|
|
318
318
|
style: { marginBottom: "6px" },
|
|
319
|
-
children: /* @__PURE__ */
|
|
319
|
+
children: /* @__PURE__ */ u("span", {
|
|
320
320
|
style: {
|
|
321
321
|
fontSize: "12px",
|
|
322
322
|
fontWeight: 600,
|
|
323
|
-
color:
|
|
323
|
+
color: m.textSecondary
|
|
324
324
|
},
|
|
325
|
-
children:
|
|
325
|
+
children: h("bigconsole.dashboards.embed.snippet.label", "Embed snippet")
|
|
326
326
|
})
|
|
327
327
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ u("textarea", {
|
|
329
329
|
readOnly: !0,
|
|
330
330
|
value: q,
|
|
331
331
|
style: {
|
|
@@ -333,115 +333,115 @@ function m({ dashboardId: m, colors: h }) {
|
|
|
333
333
|
minHeight: "96px",
|
|
334
334
|
padding: "10px",
|
|
335
335
|
borderRadius: "8px",
|
|
336
|
-
border: `1px solid ${
|
|
337
|
-
background:
|
|
338
|
-
color:
|
|
336
|
+
border: `1px solid ${m.borderDefault}`,
|
|
337
|
+
background: m.bgSecondary,
|
|
338
|
+
color: m.textPrimary,
|
|
339
339
|
fontFamily: "monospace",
|
|
340
340
|
fontSize: "12px",
|
|
341
341
|
resize: "vertical"
|
|
342
342
|
}
|
|
343
343
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ u("button", {
|
|
345
345
|
style: {
|
|
346
346
|
...Q,
|
|
347
347
|
marginTop: "8px"
|
|
348
348
|
},
|
|
349
349
|
onClick: () => Z(q),
|
|
350
350
|
type: "button",
|
|
351
|
-
children:
|
|
351
|
+
children: N ? h("bigconsole.dashboards.embed.snippet.copied", "Copied ✓") : h("bigconsole.dashboards.embed.snippet.copy", "Copy snippet")
|
|
352
352
|
})
|
|
353
353
|
]
|
|
354
|
-
}) : /* @__PURE__ */
|
|
354
|
+
}) : /* @__PURE__ */ u("div", {
|
|
355
355
|
style: {
|
|
356
356
|
fontSize: "12px",
|
|
357
|
-
color:
|
|
358
|
-
background:
|
|
357
|
+
color: m.textSecondary,
|
|
358
|
+
background: m.bgSecondary,
|
|
359
359
|
borderRadius: "8px",
|
|
360
360
|
padding: "10px 12px",
|
|
361
361
|
marginBottom: "16px"
|
|
362
362
|
},
|
|
363
|
-
children:
|
|
363
|
+
children: h("bigconsole.dashboards.embed.snippet.alreadyActive", "The embed link is already active. For security the snippet (which contains the secret key) is only shown once at publish time — use {{rotateLabel}} to generate a fresh snippet.", { rotateLabel: h("bigconsole.dashboards.embed.rotate", "Rotate link") })
|
|
364
364
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ d("div", {
|
|
366
366
|
style: { marginBottom: "16px" },
|
|
367
367
|
children: [
|
|
368
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ u("div", {
|
|
369
369
|
style: {
|
|
370
370
|
fontSize: "12px",
|
|
371
371
|
fontWeight: 600,
|
|
372
|
-
color:
|
|
372
|
+
color: m.textSecondary,
|
|
373
373
|
marginBottom: "8px"
|
|
374
374
|
},
|
|
375
|
-
children:
|
|
375
|
+
children: h("bigconsole.dashboards.embed.presentation.heading", "Presentation")
|
|
376
376
|
}),
|
|
377
377
|
$,
|
|
378
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ d("div", {
|
|
379
379
|
style: {
|
|
380
380
|
display: "flex",
|
|
381
381
|
alignItems: "center",
|
|
382
382
|
gap: "10px",
|
|
383
383
|
marginTop: "10px"
|
|
384
384
|
},
|
|
385
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ u("button", {
|
|
386
386
|
style: Q,
|
|
387
387
|
onClick: re,
|
|
388
|
-
disabled:
|
|
388
|
+
disabled: v || !E,
|
|
389
389
|
type: "button",
|
|
390
|
-
children:
|
|
391
|
-
}),
|
|
390
|
+
children: v ? h("bigconsole.dashboards.embed.applying", "Applying…") : h("bigconsole.dashboards.embed.apply", "Apply changes")
|
|
391
|
+
}), z && /* @__PURE__ */ u("span", {
|
|
392
392
|
style: {
|
|
393
393
|
fontSize: "12px",
|
|
394
|
-
color:
|
|
394
|
+
color: m.textTertiary
|
|
395
395
|
},
|
|
396
|
-
children:
|
|
396
|
+
children: h("bigconsole.dashboards.embed.updated", "Updated ✓")
|
|
397
397
|
})]
|
|
398
398
|
}),
|
|
399
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ u("div", {
|
|
400
400
|
style: {
|
|
401
401
|
fontSize: "11px",
|
|
402
|
-
color:
|
|
402
|
+
color: m.textTertiary,
|
|
403
403
|
marginTop: "6px"
|
|
404
404
|
},
|
|
405
|
-
children:
|
|
405
|
+
children: h("bigconsole.dashboards.embed.presentation.applyHelp", "Changes apply to live embeds within a few seconds — no re-publish needed, and the embed link stays the same.")
|
|
406
406
|
})
|
|
407
407
|
]
|
|
408
408
|
}),
|
|
409
|
-
|
|
409
|
+
E && /* @__PURE__ */ d("div", {
|
|
410
410
|
style: {
|
|
411
411
|
display: "flex",
|
|
412
412
|
gap: "8px"
|
|
413
413
|
},
|
|
414
|
-
children: [/* @__PURE__ */
|
|
414
|
+
children: [/* @__PURE__ */ u("button", {
|
|
415
415
|
style: Q,
|
|
416
|
-
onClick: () =>
|
|
417
|
-
disabled:
|
|
416
|
+
onClick: () => g && w(g.id),
|
|
417
|
+
disabled: v,
|
|
418
418
|
type: "button",
|
|
419
|
-
children:
|
|
420
|
-
}), /* @__PURE__ */
|
|
419
|
+
children: h("bigconsole.dashboards.embed.rotate", "Rotate link")
|
|
420
|
+
}), /* @__PURE__ */ u("button", {
|
|
421
421
|
style: {
|
|
422
422
|
...Q,
|
|
423
|
-
color:
|
|
424
|
-
borderColor:
|
|
423
|
+
color: m.statusErrorText,
|
|
424
|
+
borderColor: m.statusErrorText
|
|
425
425
|
},
|
|
426
426
|
onClick: () => {
|
|
427
|
-
|
|
427
|
+
g && window.confirm(h("bigconsole.dashboards.embed.unpublishConfirm", "Unpublish this dashboard? The embed will stop working immediately for anyone using the link.")) && ne(g.id);
|
|
428
428
|
},
|
|
429
|
-
disabled:
|
|
429
|
+
disabled: v,
|
|
430
430
|
type: "button",
|
|
431
|
-
children:
|
|
431
|
+
children: h("bigconsole.dashboards.embed.unpublish", "Unpublish")
|
|
432
432
|
})]
|
|
433
433
|
})
|
|
434
434
|
] }),
|
|
435
|
-
(V ||
|
|
435
|
+
(V || y) && /* @__PURE__ */ u("div", {
|
|
436
436
|
style: {
|
|
437
437
|
marginTop: "12px",
|
|
438
438
|
fontSize: "12px",
|
|
439
|
-
color:
|
|
439
|
+
color: m.statusErrorText
|
|
440
440
|
},
|
|
441
|
-
children: V ??
|
|
441
|
+
children: V ?? y?.message
|
|
442
442
|
})
|
|
443
443
|
]
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
//#endregion
|
|
447
|
-
export {
|
|
447
|
+
export { p as EmbedTab, p as default, f as withThemeInSnippet };
|
|
@@ -2,7 +2,7 @@ import { useBigConsole as e, useBigConsoleBasePath as t } from "../../../context
|
|
|
2
2
|
import n from "../../../hooks/useBigConsoleAnalytics.js";
|
|
3
3
|
import r from "../../../hooks/useDashboardSharing.js";
|
|
4
4
|
import "../../../hooks/index.js";
|
|
5
|
-
import i from "./EmbedTab.js";
|
|
5
|
+
import { EmbedTab as i } from "./EmbedTab.js";
|
|
6
6
|
import { useShareRecipients as a } from "../../../hooks/useShareRecipients.js";
|
|
7
7
|
import { useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
8
8
|
import { ResponsiveDialog as ee, ResponsiveDialogContent as u, ResponsiveDialogDescription as te, ResponsiveDialogTitle as ne } from "@burdenoff/fe-libs/ui";
|
|
@@ -706,4 +706,4 @@ function x({ share: e, onUpdatePermission: t, onRevoke: n, colors: r }) {
|
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
//#endregion
|
|
709
|
-
export { v as default };
|
|
709
|
+
export { v as ShareDialog, v as default };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import "./ShareDialog.js";
|
|
1
|
+
import { ShareDialog as e } from "./ShareDialog.js";
|
|
2
|
+
export { e as ShareDialog };
|
|
@@ -308,7 +308,7 @@ var V = {
|
|
|
308
308
|
transition: "border-color 0.15s, color 0.15s"
|
|
309
309
|
}
|
|
310
310
|
}, H = s(function({ isOpen: s, onClose: d, onWidgetSelect: f, onDragStart: p, onDragEnd: g, installedWidgets: v = [], installedWidgetsLoading: y = !1, definitions: b }) {
|
|
311
|
-
let { t: x } = I(), S = t(), T = e(), [E, D] = u(""), [O, j] = u(new Set([
|
|
311
|
+
let { t: x } = I(), S = t(), T = e(), [E, D] = u(""), [O, j] = u(/* @__PURE__ */ new Set([
|
|
312
312
|
"KPI",
|
|
313
313
|
"Visualization",
|
|
314
314
|
"Data",
|
|
@@ -605,4 +605,4 @@ var V = {
|
|
|
605
605
|
}) : null;
|
|
606
606
|
});
|
|
607
607
|
//#endregion
|
|
608
|
-
export { H as default };
|
|
608
|
+
export { H as WidgetPalette, H as default };
|