@burdenoff/microfe-bigconsole 2026.1031.1 → 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.
Files changed (290) hide show
  1. package/dist/bigconsole/BigConsoleRoot.js +6 -4
  2. package/dist/bigconsole/assistant/assistantApi.js +1 -1
  3. package/dist/bigconsole/assistant/assistantProduct.js +70 -70
  4. package/dist/bigconsole/assistant/assistantRunPersistence.js +1 -1
  5. package/dist/bigconsole/assistant/assistantRuntime.js +1 -1
  6. package/dist/bigconsole/assistant/attachmentExtract.js +1 -1
  7. package/dist/bigconsole/assistant/conversationHistoryApi.js +1 -1
  8. package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +5 -4
  9. package/dist/bigconsole/assistant/pageContext.js +1 -1
  10. package/dist/bigconsole/assistant/pageControls.js +1 -1
  11. package/dist/bigconsole/assistant/previewController.js +1 -1
  12. package/dist/bigconsole/assistant/recordAdapters.js +1 -1
  13. package/dist/bigconsole/components/DrilldownDashboardRenderer.js +2 -2
  14. package/dist/bigconsole/components/DrilldownModal.js +1 -1
  15. package/dist/bigconsole/components/builder/WidgetInspector.js +1 -1
  16. package/dist/bigconsole/components/builder/index.js +5 -4
  17. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +7 -7
  18. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +2 -2
  19. package/dist/bigconsole/components/builder/inspector/LayoutSection.js +1 -1
  20. package/dist/bigconsole/components/builder/inspector/index.js +6 -5
  21. package/dist/bigconsole/components/common/index.js +4 -3
  22. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +3 -3
  23. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +9 -9
  24. package/dist/bigconsole/components/dashboard/DashboardGrid.js +2 -2
  25. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +1 -1
  26. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +2 -2
  27. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +4 -3
  28. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +1 -1
  29. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +1 -1
  30. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +1 -1
  31. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +1 -1
  32. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +4 -4
  33. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.js +2 -1
  34. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +1 -1
  35. package/dist/bigconsole/components/dashboard/LiveBoardBanner.js +1 -1
  36. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  37. package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +1 -1
  38. package/dist/bigconsole/components/dashboard/PageTabsManager/index.js +2 -1
  39. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +1 -1
  40. package/dist/bigconsole/components/dashboard/QuotaLimitNotice.js +1 -1
  41. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +1 -1
  42. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.js +2 -1
  43. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +152 -152
  44. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +2 -2
  45. package/dist/bigconsole/components/dashboard/ShareDialog/index.js +2 -1
  46. package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +1 -1
  47. package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +1 -1
  48. package/dist/bigconsole/components/dashboard/WidgetPalette.js +2 -2
  49. package/dist/bigconsole/components/dashboard/index.js +6 -5
  50. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +2 -2
  51. package/dist/bigconsole/components/datasink/DataSinkCard.js +2 -2
  52. package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +1 -1
  53. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +1 -1
  54. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +1 -1
  55. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
  56. package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +1 -1
  57. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +1 -1
  58. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +1 -1
  59. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +1 -1
  60. package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +1 -1
  61. package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +1 -1
  62. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +1 -1
  63. package/dist/bigconsole/components/datasink/SetupStateBadge.js +1 -1
  64. package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +1 -1
  65. package/dist/bigconsole/components/embed/widgets/CalendarEmbed.js +1 -1
  66. package/dist/bigconsole/components/embed/widgets/ChartEmbed.js +9 -9
  67. package/dist/bigconsole/components/embed/widgets/FormEmbed.js +2 -2
  68. package/dist/bigconsole/components/embed/widgets/GaugeEmbed.js +1 -1
  69. package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.js +1 -1
  70. package/dist/bigconsole/components/embed/widgets/KanbanEmbed.js +2 -2
  71. package/dist/bigconsole/components/embed/widgets/ProgressEmbed.js +1 -1
  72. package/dist/bigconsole/components/embed/widgets/RetentionEmbed.js +1 -1
  73. package/dist/bigconsole/components/embed/widgets/TimelineEmbed.js +1 -1
  74. package/dist/bigconsole/components/overview/DashboardGuide.js +1 -1
  75. package/dist/bigconsole/components/overview/DataHealthCard.js +2 -2
  76. package/dist/bigconsole/components/overview/OverviewQuickActions.js +1 -1
  77. package/dist/bigconsole/components/overview/OverviewStatCard.js +1 -1
  78. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +2 -2
  79. package/dist/bigconsole/components/overview/index.js +9 -8
  80. package/dist/bigconsole/components/overview/overviewModel.js +1 -1
  81. package/dist/bigconsole/components/parser/DataSinkSelector.js +2 -2
  82. package/dist/bigconsole/components/parser/ExportParserDialog.js +1 -1
  83. package/dist/bigconsole/components/parser/ExpressionEditor.js +1 -1
  84. package/dist/bigconsole/components/parser/ImportParserDialog.js +10 -10
  85. package/dist/bigconsole/components/parser/ParserCard.js +3 -3
  86. package/dist/bigconsole/components/parser/ParserSelector.js +3 -3
  87. package/dist/bigconsole/components/parser/ParserStatusBadge.js +1 -1
  88. package/dist/bigconsole/components/parser/ParserTypeBadge.js +1 -1
  89. package/dist/bigconsole/components/pipeline/PipelineCard.js +2 -2
  90. package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +1 -1
  91. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +1 -1
  92. package/dist/bigconsole/components/preview/AiPreviewContent.js +3 -3
  93. package/dist/bigconsole/components/preview/confirmedPreviewWidgets.js +10 -12
  94. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +314 -314
  95. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +3 -2
  96. package/dist/bigconsole/components/widgets/PropertiesPanel.js +37 -22
  97. package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +1 -1
  98. package/dist/bigconsole/components/widgets/WidgetHeader.js +2 -2
  99. package/dist/bigconsole/components/widgets/WidgetMenu.js +1 -1
  100. package/dist/bigconsole/components/widgets/WidgetRegistry.js +1 -1
  101. package/dist/bigconsole/components/widgets/WidgetWrapper.js +16 -16
  102. package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
  103. package/dist/bigconsole/components/widgets/adaptive-card/index.js +1 -1
  104. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +1 -1
  105. package/dist/bigconsole/components/widgets/calendar/CalendarView.js +1 -1
  106. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +9 -9
  107. package/dist/bigconsole/components/widgets/calendar/index.js +1 -1
  108. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +1 -1
  109. package/dist/bigconsole/components/widgets/chart/ChartLegend.js +1 -1
  110. package/dist/bigconsole/components/widgets/chart/ChartTooltip.js +1 -1
  111. package/dist/bigconsole/components/widgets/chart/ChartWidget.js +10 -10
  112. package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +2 -2
  113. package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +2 -2
  114. package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +2 -2
  115. package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js +2 -2
  116. package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +2 -2
  117. package/dist/bigconsole/components/widgets/chart/charts/PieChart.js +2 -2
  118. package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.js +2 -2
  119. package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +1 -1
  120. package/dist/bigconsole/components/widgets/chart/charts/index.js +6 -5
  121. package/dist/bigconsole/components/widgets/chart/charts/numericSeries.js +4 -2
  122. package/dist/bigconsole/components/widgets/chart/index.js +9 -9
  123. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  124. package/dist/bigconsole/components/widgets/custom/CustomWidget.js +1 -1
  125. package/dist/bigconsole/components/widgets/custom/index.js +1 -1
  126. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +1 -1
  127. package/dist/bigconsole/components/widgets/event-logs/index.js +2 -1
  128. package/dist/bigconsole/components/widgets/form/FormWidget.js +2 -2
  129. package/dist/bigconsole/components/widgets/form/index.js +1 -1
  130. package/dist/bigconsole/components/widgets/funnel/index.js +1 -1
  131. package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +1 -1
  132. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +1 -1
  133. package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +3 -3
  134. package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +1 -1
  135. package/dist/bigconsole/components/widgets/gauge/index.js +4 -4
  136. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +1 -1
  137. package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +1 -1
  138. package/dist/bigconsole/components/widgets/heatmap/index.js +2 -2
  139. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +1 -1
  140. package/dist/bigconsole/components/widgets/iframe-widget/index.js +1 -1
  141. package/dist/bigconsole/components/widgets/index.js +2 -1
  142. package/dist/bigconsole/components/widgets/kanban/KanbanView.js +1 -1
  143. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +2 -2
  144. package/dist/bigconsole/components/widgets/kanban/index.js +1 -1
  145. package/dist/bigconsole/components/widgets/kpi/KPIWidget.js +1 -1
  146. package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +3 -3
  147. package/dist/bigconsole/components/widgets/kpi-comparison/index.js +1 -1
  148. package/dist/bigconsole/components/widgets/list/ListConfig.js +1 -1
  149. package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
  150. package/dist/bigconsole/components/widgets/list/ListWidget.js +2 -2
  151. package/dist/bigconsole/components/widgets/list/index.js +3 -3
  152. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
  153. package/dist/bigconsole/components/widgets/map-widget/index.js +1 -1
  154. package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js +2 -2
  155. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +1 -1
  156. package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +4 -4
  157. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +1 -1
  158. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +1 -1
  159. package/dist/bigconsole/components/widgets/metric-card/index.js +5 -5
  160. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +3 -3
  161. package/dist/bigconsole/components/widgets/pivot-table/index.js +1 -1
  162. package/dist/bigconsole/components/widgets/progress/ProgressBar.js +1 -1
  163. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +6 -4
  164. package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +2 -2
  165. package/dist/bigconsole/components/widgets/progress/index.js +3 -3
  166. package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +1 -1
  167. package/dist/bigconsole/components/widgets/retention/index.js +1 -1
  168. package/dist/bigconsole/components/widgets/states/EmptyState.js +1 -1
  169. package/dist/bigconsole/components/widgets/states/ErrorState.js +1 -1
  170. package/dist/bigconsole/components/widgets/states/LoadingState.js +1 -1
  171. package/dist/bigconsole/components/widgets/table/TableCell.js +2 -2
  172. package/dist/bigconsole/components/widgets/table/TableConfig.js +12 -8
  173. package/dist/bigconsole/components/widgets/table/TableHeader.js +1 -1
  174. package/dist/bigconsole/components/widgets/table/TablePagination.js +1 -1
  175. package/dist/bigconsole/components/widgets/table/TableWidget.js +12 -10
  176. package/dist/bigconsole/components/widgets/table/index.js +5 -5
  177. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +1 -1
  178. package/dist/bigconsole/components/widgets/text-widget/index.js +1 -1
  179. package/dist/bigconsole/components/widgets/text-widget/textData.js +2 -2
  180. package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +1 -1
  181. package/dist/bigconsole/components/widgets/timeline/index.js +1 -1
  182. package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +1 -1
  183. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +1 -1
  184. package/dist/bigconsole/components/widgets/webhook-config/index.js +2 -1
  185. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +1 -1
  186. package/dist/bigconsole/components/widgets/widget-actions/index.js +2 -1
  187. package/dist/bigconsole/components/workflow/WorkflowCard.js +2 -2
  188. package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +1 -1
  189. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +1 -1
  190. package/dist/bigconsole/context/BigConsoleContext.js +2 -1
  191. package/dist/bigconsole/context/index.js +2 -1
  192. package/dist/bigconsole/contexts/CrossFilterContext.js +1 -1
  193. package/dist/bigconsole/contexts/NavigationContext.js +2 -1
  194. package/dist/bigconsole/contexts/index.js +3 -2
  195. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +2 -2
  196. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +6 -5
  197. package/dist/bigconsole/customWidget/index.js +2 -1
  198. package/dist/bigconsole/customWidget/proposalContract.js +1 -1
  199. package/dist/bigconsole/graphql/storeTemplates.js +5 -5
  200. package/dist/bigconsole/graphql/widgetCapabilities.js +1 -1
  201. package/dist/bigconsole/hooks/index.js +24 -23
  202. package/dist/bigconsole/hooks/useActivePage.js +1 -1
  203. package/dist/bigconsole/hooks/useAutoRefresh.js +1 -1
  204. package/dist/bigconsole/hooks/useBigConsoleAnalytics.js +1 -1
  205. package/dist/bigconsole/hooks/useCrossFilter.js +1 -1
  206. package/dist/bigconsole/hooks/useDashboardEmbedPolicy.js +1 -1
  207. package/dist/bigconsole/hooks/useDashboardImageExport.js +1 -1
  208. package/dist/bigconsole/hooks/useDashboardOperations.js +14 -6
  209. package/dist/bigconsole/hooks/useDashboardSharing.js +15 -8
  210. package/dist/bigconsole/hooks/useDashboardViews.js +15 -8
  211. package/dist/bigconsole/hooks/useDataSinkAlerts.js +11 -8
  212. package/dist/bigconsole/hooks/useDataSinkOperations.js +19 -10
  213. package/dist/bigconsole/hooks/useDataSinkSubscription.js +1 -1
  214. package/dist/bigconsole/hooks/useDrilldown.js +2 -2
  215. package/dist/bigconsole/hooks/useDrilldownOperations.js +1 -1
  216. package/dist/bigconsole/hooks/useEventLogs.js +1 -1
  217. package/dist/bigconsole/hooks/useEventWebhooks.js +1 -1
  218. package/dist/bigconsole/hooks/useExportDashboard.js +7 -3
  219. package/dist/bigconsole/hooks/useExportDataSink.js +5 -3
  220. package/dist/bigconsole/hooks/useExportParser.js +5 -3
  221. package/dist/bigconsole/hooks/useFilterPresets.js +1 -1
  222. package/dist/bigconsole/hooks/useFilterUrlSync.js +1 -1
  223. package/dist/bigconsole/hooks/useGlobalFilters.js +11 -6
  224. package/dist/bigconsole/hooks/useImportDashboard.js +4 -2
  225. package/dist/bigconsole/hooks/useImportDataSink.js +3 -2
  226. package/dist/bigconsole/hooks/useImportParser.js +3 -2
  227. package/dist/bigconsole/hooks/useInstalledWidgets.js +1 -1
  228. package/dist/bigconsole/hooks/useModalFocusTrap.js +1 -1
  229. package/dist/bigconsole/hooks/usePageOperations.js +9 -5
  230. package/dist/bigconsole/hooks/useParserOperations.js +15 -8
  231. package/dist/bigconsole/hooks/usePipelineOperations.js +25 -13
  232. package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +1 -1
  233. package/dist/bigconsole/hooks/useWidgetActions.js +1 -1
  234. package/dist/bigconsole/hooks/useWidgetCatalog.js +5 -5
  235. package/dist/bigconsole/hooks/useWidgetComments.js +1 -1
  236. package/dist/bigconsole/hooks/useWidgetConfigPersist.js +1 -1
  237. package/dist/bigconsole/hooks/useWidgetData.js +1 -1
  238. package/dist/bigconsole/hooks/useWidgetEvents.js +1 -1
  239. package/dist/bigconsole/hooks/useWidgetExport.js +1 -1
  240. package/dist/bigconsole/hooks/useWidgetOperations.js +28 -16
  241. package/dist/bigconsole/hooks/useWorkflowOperations.js +19 -10
  242. package/dist/bigconsole/index.js +9 -8
  243. package/dist/bigconsole/pages/DashboardBuilderPage.js +44 -35
  244. package/dist/bigconsole/pages/DashboardViewPage.js +23 -16
  245. package/dist/bigconsole/pages/DashboardsPage.js +4 -4
  246. package/dist/bigconsole/pages/DataParsersPage.js +2 -2
  247. package/dist/bigconsole/pages/DataSinkBuilderPage.js +12 -7
  248. package/dist/bigconsole/pages/DataSinkViewPage.js +8 -8
  249. package/dist/bigconsole/pages/DataSinksPage.js +6 -6
  250. package/dist/bigconsole/pages/OverviewPage.js +5 -5
  251. package/dist/bigconsole/pages/ParserBuilderPage.js +1 -1
  252. package/dist/bigconsole/pages/ParserViewPage.js +4 -4
  253. package/dist/bigconsole/pages/PipelineBuilderPage.js +1 -1
  254. package/dist/bigconsole/pages/PipelineViewPage.js +7 -3
  255. package/dist/bigconsole/pages/PipelinesPage.js +2 -2
  256. package/dist/bigconsole/pages/WidgetDemoPage.js +1 -1
  257. package/dist/bigconsole/pages/WorkflowViewPage.js +7 -14
  258. package/dist/bigconsole/pages/WorkflowsPage.js +3 -3
  259. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +4 -4
  260. package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +1 -1
  261. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +1 -1
  262. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +13 -12
  263. package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js +1 -1
  264. package/dist/bigconsole/renderers/registry/RendererRegistry.js +5 -5
  265. package/dist/bigconsole/store/drilldownStore.js +1 -1
  266. package/dist/bigconsole/store/index.js +4 -3
  267. package/dist/bigconsole/store/parserStore.js +1 -1
  268. package/dist/bigconsole/store/pipelineStore.js +1 -1
  269. package/dist/bigconsole/utils/advancedWidgetCapabilities.js +1 -1
  270. package/dist/bigconsole/utils/backendError.js +21 -22
  271. package/dist/bigconsole/utils/createDialogParam.js +2 -2
  272. package/dist/bigconsole/utils/csv.js +34 -36
  273. package/dist/bigconsole/utils/dataSinkPayload.js +12 -14
  274. package/dist/bigconsole/utils/drilldownParams.js +1 -1
  275. package/dist/bigconsole/utils/formDirty.js +3 -3
  276. package/dist/bigconsole/utils/layoutBaseline.js +1 -1
  277. package/dist/bigconsole/utils/quota.js +4 -4
  278. package/dist/bigconsole/utils/safeUrl.js +35 -33
  279. package/dist/bigconsole/utils/sanitizeHtml.js +2 -2
  280. package/dist/bigconsole/utils/templateGalleryFilter.js +2 -2
  281. package/dist/bigconsole/utils/widgetBinding.js +2 -2
  282. package/dist/bigconsole/utils/widgetDisplayData.js +1 -1
  283. package/dist/bigconsole/utils/widgetTypeMapping.js +3 -3
  284. package/dist/bigconsole/workflowOpen.js +2 -2
  285. package/dist/index.js +1 -1
  286. package/dist/node_modules/@e965/xlsx/xlsx.js +19 -19
  287. package/dist/node_modules/dompurify/dist/purify.es.js +454 -361
  288. package/dist/node_modules/pdfjs-dist/build/pdf.js +16 -16
  289. package/dist/shared/hooks/useTr.js +1 -1
  290. package/package.json +13 -12
@@ -9,8 +9,8 @@ import { Section as o, SectionStack as s } from "../components/common/Section.js
9
9
  import "../components/common/index.js";
10
10
  import { BIGCONSOLE_PERMISSIONS as c } from "../../constants/permissions.js";
11
11
  import { isNative as l, nativeNotify as u } from "../../utils/nativeBridge.js";
12
- import d from "../components/workflow/WorkflowDeleteDialog.js";
13
- import f from "../components/workflow/WorkflowCard.js";
12
+ import { WorkflowDeleteDialog as d } from "../components/workflow/WorkflowDeleteDialog.js";
13
+ import { WorkflowCard as f } from "../components/workflow/WorkflowCard.js";
14
14
  import { memo as p, useCallback as m, useMemo as h, useState as g } from "react";
15
15
  import { AccessDenied as _, PermissionButton as v } from "@burdenoff/fe-libs/shared/components";
16
16
  import { usePermissions as y } from "@burdenoff/fe-libs/shared/providers/shell";
@@ -284,4 +284,4 @@ var A = p(function() {
284
284
  });
285
285
  });
286
286
  //#endregion
287
- export { A as WorkflowsPage };
287
+ export { A as WorkflowsPage, A as default };
@@ -29,11 +29,11 @@ function g(e, t, n) {
29
29
  if (i.length > 0) {
30
30
  let e = Object.fromEntries(Object.entries(n).filter(([e]) => e !== "$data"));
31
31
  return i.map((t) => {
32
- let n = typeof t == "object" && t ? t : { value: t };
33
- return g(e, {
32
+ let n = typeof t == "object" && t ? t : { value: t }, i = {
34
33
  ...r,
35
34
  ...n
36
- }, r);
35
+ };
36
+ return g(e, i, r);
37
37
  });
38
38
  }
39
39
  }
@@ -581,4 +581,4 @@ if (typeof document < "u" && !document.getElementById(x)) {
581
581
  `, document.head.appendChild(e);
582
582
  }
583
583
  //#endregion
584
- export { b as default };
584
+ export { b as AdaptiveCardRenderer, b as default };
@@ -64,4 +64,4 @@ var i = e.lazy(() => import("../../components/widgets/metric-card/index.js").the
64
64
  });
65
65
  };
66
66
  //#endregion
67
- export { E as default };
67
+ export { E as BigConsoleRenderer, E as default };
@@ -380,4 +380,4 @@ var x = r(function({ widget: e, data: t, template: n, isLoading: r, error: l, on
380
380
  });
381
381
  });
382
382
  //#endregion
383
- export { x as default };
383
+ export { x as BlockKitRenderer, x as default, d as renderText };
@@ -12,7 +12,7 @@ function s(e) {
12
12
  function c() {
13
13
  return Array.from(a.keys());
14
14
  }
15
- o("SimpleText", ({ data: e, props: t }) => {
15
+ var l = ({ data: e, props: t }) => {
16
16
  let { t: i } = n(), a = e.text || t?.text, o = t?.align || "left";
17
17
  return a ? /* @__PURE__ */ r("div", {
18
18
  className: `p-4 text-${o}`,
@@ -27,7 +27,7 @@ o("SimpleText", ({ data: e, props: t }) => {
27
27
  children: i("bigconsole.widget.renderer.custom.noData", "No data available")
28
28
  })
29
29
  });
30
- }), o("Counter", ({ data: e, props: t }) => {
30
+ }, u = ({ data: e, props: t }) => {
31
31
  let { t: a } = n(), o = e.value ?? t?.value, s = e.label || t?.label, c = t?.format || "number";
32
32
  if (o == null) return /* @__PURE__ */ r("div", {
33
33
  className: "flex flex-col items-center justify-center h-full p-4 text-secondary",
@@ -50,7 +50,7 @@ o("SimpleText", ({ data: e, props: t }) => {
50
50
  children: s
51
51
  })]
52
52
  });
53
- }), o("Card", ({ data: e, props: t, onAction: a }) => {
53
+ }, d = ({ data: e, props: t, onAction: a }) => {
54
54
  let { t: o } = n(), s = e.title || t?.title, c = e.description || t?.description || "";
55
55
  if (!s && !c) return /* @__PURE__ */ r("div", {
56
56
  className: "flex items-center justify-center h-full p-4 text-secondary",
@@ -92,8 +92,9 @@ o("SimpleText", ({ data: e, props: t }) => {
92
92
  })
93
93
  ]
94
94
  });
95
- });
96
- var l = ({ componentName: e }) => {
95
+ };
96
+ o("SimpleText", l), o("Counter", u), o("Card", d);
97
+ var f = ({ componentName: e }) => {
97
98
  let { t } = n();
98
99
  return /* @__PURE__ */ r("div", {
99
100
  className: "flex flex-col items-center justify-center h-full p-4 text-secondary animate-in fade-in duration-200",
@@ -121,7 +122,7 @@ var l = ({ componentName: e }) => {
121
122
  ]
122
123
  })
123
124
  });
124
- }, u = e(function({ widget: e, data: a, template: o, isLoading: c, error: u, onDrilldown: d, onAction: f }) {
125
+ }, p = e(function({ widget: e, data: a, template: o, isLoading: c, error: l, onDrilldown: u, onAction: d }) {
125
126
  let { t: p } = n(), m = t(() => {
126
127
  if (o && typeof o == "object" && "componentName" in o) return o.componentName;
127
128
  let t = e.config;
@@ -133,7 +134,7 @@ var l = ({ componentName: e }) => {
133
134
  className: "animate-pulse space-y-2 w-full",
134
135
  children: [/* @__PURE__ */ r("div", { className: "h-4 bg-bg-sunken rounded w-3/4" }), /* @__PURE__ */ r("div", { className: "h-4 bg-bg-sunken rounded w-1/2" })]
135
136
  })
136
- }) : u ? /* @__PURE__ */ r("div", {
137
+ }) : l ? /* @__PURE__ */ r("div", {
137
138
  className: "flex items-center justify-center h-full p-4 text-red-600 dark:text-red-400",
138
139
  children: /* @__PURE__ */ i("div", {
139
140
  className: "text-center",
@@ -142,7 +143,7 @@ var l = ({ componentName: e }) => {
142
143
  children: p("bigconsole.widget.renderer.custom.errorRendering", "Error rendering component")
143
144
  }), /* @__PURE__ */ r("p", {
144
145
  className: "text-sm mt-1",
145
- children: u
146
+ children: l
146
147
  })]
147
148
  })
148
149
  }) : m ? g ? /* @__PURE__ */ r(g, {
@@ -150,9 +151,9 @@ var l = ({ componentName: e }) => {
150
151
  data: a,
151
152
  template: o,
152
153
  props: h,
153
- onAction: f,
154
- onDrilldown: d
155
- }) : /* @__PURE__ */ r(l, { componentName: m }) : /* @__PURE__ */ r("div", {
154
+ onAction: d,
155
+ onDrilldown: u
156
+ }) : /* @__PURE__ */ r(f, { componentName: m }) : /* @__PURE__ */ r("div", {
156
157
  className: "flex items-center justify-center h-full p-4 text-secondary animate-in fade-in duration-200",
157
158
  children: /* @__PURE__ */ i("div", {
158
159
  className: "text-center",
@@ -167,4 +168,4 @@ var l = ({ componentName: e }) => {
167
168
  });
168
169
  });
169
170
  //#endregion
170
- export { u as default };
171
+ export { d as CardComponent, u as CounterComponent, p as CustomRenderer, p as default, l as SimpleTextComponent, s as getCustomComponent, c as getRegisteredComponentNames, o as registerCustomComponent };
@@ -50,4 +50,4 @@ var l = i(function({ widget: e, data: n, isEditMode: r, isSelected: i, isLoading
50
50
  });
51
51
  });
52
52
  //#endregion
53
- export { l as default };
53
+ export { l as WidgetRendererFactory, l as default, c as resolveRenderer };
@@ -1,7 +1,7 @@
1
- import e from "../adapters/BigConsoleRenderer.js";
2
- import t from "../adapters/AdaptiveCardRenderer.js";
3
- import n from "../adapters/BlockKitRenderer.js";
4
- import r from "../adapters/CustomRenderer.js";
1
+ import { BigConsoleRenderer as e } from "../adapters/BigConsoleRenderer.js";
2
+ import { AdaptiveCardRenderer as t } from "../adapters/AdaptiveCardRenderer.js";
3
+ import { BlockKitRenderer as n } from "../adapters/BlockKitRenderer.js";
4
+ import { CustomRenderer as r } from "../adapters/CustomRenderer.js";
5
5
  //#region src/bigconsole/renderers/registry/RendererRegistry.ts
6
6
  var i = {
7
7
  supportsDataBinding: !0,
@@ -134,4 +134,4 @@ function p(e) {
134
134
  return "BIGCONSOLE";
135
135
  }
136
136
  //#endregion
137
- export { p as getDefaultRenderer, u as getRendererDefinition, d as isValidRendererType, f as rendererSupportsWidgetType };
137
+ export { l as RENDERER_DEFINITIONS, l as default, p as getDefaultRenderer, u as getRendererDefinition, d as isValidRendererType, f as rendererSupportsWidgetType };
@@ -64,4 +64,4 @@ var i = {
64
64
  storage: r()
65
65
  }));
66
66
  //#endregion
67
- export { a as default };
67
+ export { a as default, a as useDrilldownStore };
@@ -1,7 +1,8 @@
1
- import "./widgetStore.js";
2
- import "./dashboardStore.js";
3
- import "./drilldownStore.js";
1
+ import { useIsWidgetSelected as e, useWidgetStore as t, useWidgetUIState as n } from "./widgetStore.js";
2
+ import { useDashboardStore as r, useGlobalFilterValues as i, useIsEditMode as a } from "./dashboardStore.js";
3
+ import o from "./drilldownStore.js";
4
4
  import "./dataSinkStore.js";
5
5
  import "./parserStore.js";
6
6
  import "./workflowStore.js";
7
7
  import "./pipelineStore.js";
8
+ export { r as useDashboardStore, o as useDrilldownStore, i as useGlobalFilterValues, a as useIsEditMode, e as useIsWidgetSelected, t as useWidgetStore, n as useWidgetUIState };
@@ -131,7 +131,7 @@ var i = {
131
131
  isTesting: n
132
132
  }), { parserUIStates: r };
133
133
  }),
134
- markParserDirty: (t) => e((e) => ({ dirtyParserIds: new Set([...e.dirtyParserIds, t]) })),
134
+ markParserDirty: (t) => e((e) => ({ dirtyParserIds: /* @__PURE__ */ new Set([...e.dirtyParserIds, t]) })),
135
135
  markParserClean: (t) => e((e) => {
136
136
  let n = new Set(e.dirtyParserIds);
137
137
  return n.delete(t), { dirtyParserIds: n };
@@ -190,7 +190,7 @@ var i = {
190
190
  isTesting: n
191
191
  }), { pipelineUIStates: r };
192
192
  }),
193
- markPipelineDirty: (t) => e((e) => ({ dirtyPipelineIds: new Set([...e.dirtyPipelineIds, t]) })),
193
+ markPipelineDirty: (t) => e((e) => ({ dirtyPipelineIds: /* @__PURE__ */ new Set([...e.dirtyPipelineIds, t]) })),
194
194
  markPipelineClean: (t) => e((e) => {
195
195
  let n = new Set(e.dirtyPipelineIds);
196
196
  return n.delete(t), { dirtyPipelineIds: n };
@@ -20,7 +20,7 @@ function r(n, r) {
20
20
  return e(n);
21
21
  }
22
22
  function i(e) {
23
- let n = new Set([
23
+ let n = /* @__PURE__ */ new Set([
24
24
  "MAP",
25
25
  "WATERFALL",
26
26
  "SANKEY",
@@ -2,41 +2,40 @@
2
2
  function e(e) {
3
3
  return typeof e == "object" && !!e;
4
4
  }
5
- var t = 4;
6
- function n(t) {
5
+ function t(t) {
7
6
  return Array.isArray(t) ? t.flatMap((t) => {
8
7
  let n = e(t) && e(t.extensions) ? t.extensions.code : void 0;
9
8
  return typeof n == "string" && n.length > 0 ? [n] : [];
10
9
  }) : [];
11
10
  }
12
- function r(t) {
13
- if (typeof t != "string" || t.length === 0) return [];
11
+ function n(n) {
12
+ if (typeof n != "string" || n.length === 0) return [];
14
13
  try {
15
- let r = JSON.parse(t);
16
- return e(r) ? n(r.errors) : [];
14
+ let r = JSON.parse(n);
15
+ return e(r) ? t(r.errors) : [];
17
16
  } catch {
18
17
  return [];
19
18
  }
20
19
  }
21
- function i(i) {
22
- let a = /* @__PURE__ */ new Set(), o = (i, s) => {
23
- if (!e(i) || s > t || a.has(i)) return [];
24
- a.add(i);
25
- let c = e(i.extensions) ? i.extensions.code : void 0;
20
+ function r(r) {
21
+ let i = /* @__PURE__ */ new Set(), a = (r, o) => {
22
+ if (!e(r) || o > 4 || i.has(r)) return [];
23
+ i.add(r);
24
+ let s = e(r.extensions) ? r.extensions.code : void 0;
26
25
  return [
27
- ...n(i.errors),
28
- ...n(i.graphQLErrors),
29
- ...e(i.result) ? n(i.result.errors) : [],
30
- ...r(i.bodyText),
31
- ...typeof c == "string" && c.length > 0 ? [c] : [],
32
- ...o(i.cause, s + 1),
33
- ...o(i.error, s + 1)
26
+ ...t(r.errors),
27
+ ...t(r.graphQLErrors),
28
+ ...e(r.result) ? t(r.result.errors) : [],
29
+ ...n(r.bodyText),
30
+ ...typeof s == "string" && s.length > 0 ? [s] : [],
31
+ ...a(r.cause, o + 1),
32
+ ...a(r.error, o + 1)
34
33
  ];
35
34
  };
36
- return [...new Set(o(i, 0))];
35
+ return [...new Set(a(r, 0))];
37
36
  }
38
- function a(e, t) {
39
- return i(e).some((e) => t.has(e));
37
+ function i(e, t) {
38
+ return r(e).some((e) => t.has(e));
40
39
  }
41
40
  //#endregion
42
- export { i as graphQLErrorCodes, a as hasGraphQLErrorCode };
41
+ export { r as graphQLErrorCodes, i as hasGraphQLErrorCode };
@@ -1,5 +1,5 @@
1
1
  //#region src/bigconsole/utils/createDialogParam.ts
2
- var e = "create", t = new Set(["1", "true"]);
2
+ var e = "create", t = /* @__PURE__ */ new Set(["1", "true"]);
3
3
  function n(n, r) {
4
4
  let i = n.get(e);
5
5
  return i === null ? "none" : r.permissionsLoading ? "wait" : t.has(i.trim().toLowerCase()) && r.canRead && r.canCreate ? "open" : "strip";
@@ -9,4 +9,4 @@ function r(t) {
9
9
  return n.delete(e), n;
10
10
  }
11
11
  //#endregion
12
- export { n as resolveCreateParam, r as withoutCreateParam };
12
+ export { e as CREATE_DIALOG_PARAM, n as resolveCreateParam, r as withoutCreateParam };
@@ -1,50 +1,48 @@
1
- //#region src/bigconsole/utils/csv.ts
2
- var e = "CSV could not be parsed: an opening quote is never closed.";
3
- function t(t, n) {
4
- let r = [], i = "", a = [], o = !1, s = 0, c = t.length, l = () => {
5
- a.push(i), i = "";
6
- }, u = () => {
7
- l(), r.push(a), a = [];
1
+ function e(e, t) {
2
+ let n = [], r = "", i = [], a = !1, o = 0, s = e.length, c = () => {
3
+ i.push(r), r = "";
4
+ }, l = () => {
5
+ c(), n.push(i), i = [];
8
6
  };
9
- for (; s < c;) {
10
- let e = t[s];
11
- if (o) {
12
- if (e === "\"") {
13
- if (t[s + 1] === "\"") {
14
- i += "\"", s += 2;
7
+ for (; o < s;) {
8
+ let n = e[o];
9
+ if (a) {
10
+ if (n === "\"") {
11
+ if (e[o + 1] === "\"") {
12
+ r += "\"", o += 2;
15
13
  continue;
16
14
  }
17
- o = !1, s += 1;
15
+ a = !1, o += 1;
18
16
  continue;
19
17
  }
20
- i += e, s += 1;
18
+ r += n, o += 1;
21
19
  continue;
22
20
  }
23
- if (e === "\"") {
24
- i === "" ? o = !0 : i += e, s += 1;
21
+ if (n === "\"") {
22
+ r === "" ? a = !0 : r += n, o += 1;
25
23
  continue;
26
24
  }
27
- if (e === n) {
28
- l(), s += 1;
25
+ if (n === t) {
26
+ c(), o += 1;
29
27
  continue;
30
28
  }
31
- if (e === "\r") {
32
- t[s + 1] === "\n" && (s += 1), u(), s += 1;
29
+ if (n === "\r") {
30
+ e[o + 1] === "\n" && (o += 1), l(), o += 1;
33
31
  continue;
34
32
  }
35
- if (e === "\n") {
36
- u(), s += 1;
33
+ if (n === "\n") {
34
+ l(), o += 1;
37
35
  continue;
38
36
  }
39
- i += e, s += 1;
37
+ r += n, o += 1;
40
38
  }
41
- if (o) throw Error(e);
42
- return u(), r;
39
+ if (a) throw Error("CSV could not be parsed: an opening quote is never closed.");
40
+ return l(), n;
43
41
  }
44
- function n(e) {
42
+ function t(e) {
45
43
  return e.length <= 1 && (e[0] ?? "").trim() === "";
46
44
  }
47
- function r(e) {
45
+ function n(e) {
48
46
  let t = e.trim();
49
47
  if (t === "") return null;
50
48
  let n = t.toLowerCase();
@@ -56,7 +54,7 @@ function r(e) {
56
54
  }
57
55
  return e;
58
56
  }
59
- function i(e) {
57
+ function r(e) {
60
58
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
61
59
  return e.map((e, r) => {
62
60
  let i = e.trim() || `column_${r + 1}`;
@@ -68,22 +66,22 @@ function i(e) {
68
66
  return n.set(i, a), t.add(o), o;
69
67
  });
70
68
  }
71
- function a(e, a = {}) {
72
- let o = a.delimiter ?? ",", s = e.charCodeAt(0) === 65279 ? e.slice(1) : e;
69
+ function i(i, a = {}) {
70
+ let o = a.delimiter ?? ",", s = i.charCodeAt(0) === 65279 ? i.slice(1) : i;
73
71
  if (s.trim() === "") throw Error("CSV is empty — nothing to import.");
74
- let c = t(s, o).filter((e) => !n(e));
72
+ let c = e(s, o).filter((e) => !t(e));
75
73
  if (c.length === 0) throw Error("CSV is empty — nothing to import.");
76
- let l = i(c[0]), u = c.slice(1);
74
+ let l = r(c[0]), u = c.slice(1);
77
75
  if (u.length === 0) throw Error("CSV has a header row but no data rows to import.");
78
76
  return {
79
77
  columns: l,
80
78
  rows: u.map((e) => {
81
79
  let t = Object.create(null);
82
- return l.forEach((n, i) => {
83
- t[n] = r(e[i] ?? "");
80
+ return l.forEach((r, i) => {
81
+ t[r] = n(e[i] ?? "");
84
82
  }), t;
85
83
  })
86
84
  };
87
85
  }
88
86
  //#endregion
89
- export { a as parseCsv };
87
+ export { n as inferCsvValue, i as parseCsv };
@@ -1,9 +1,7 @@
1
- //#region src/bigconsole/utils/dataSinkPayload.ts
2
- var e = 2;
3
- function t(t) {
4
- return typeof t.sizeBytes == "number" && t.sizeBytes > e;
1
+ function e(e) {
2
+ return typeof e.sizeBytes == "number" && e.sizeBytes > 2;
5
3
  }
6
- function n(e) {
4
+ function t(e) {
7
5
  if (e == null) return "";
8
6
  if (typeof e == "string") try {
9
7
  return JSON.stringify(JSON.parse(e), null, 2);
@@ -12,22 +10,22 @@ function n(e) {
12
10
  }
13
11
  return JSON.stringify(e, null, 2) ?? "";
14
12
  }
15
- var r = { status: "unchanged" };
16
- function i(e, t) {
17
- if (t !== null && e === t) return r;
18
- let n = t !== null && t.trim() !== "";
19
- if (e.trim() === "") return n ? {
13
+ var n = { status: "unchanged" };
14
+ function r(e, t) {
15
+ if (t !== null && e === t) return n;
16
+ let r = t !== null && t.trim() !== "";
17
+ if (e.trim() === "") return r ? {
20
18
  status: "changed",
21
19
  payload: {}
22
- } : r;
20
+ } : n;
23
21
  let i;
24
22
  try {
25
23
  i = JSON.parse(e);
26
24
  } catch {
27
25
  return { status: "invalid" };
28
26
  }
29
- if (n) try {
30
- if (JSON.stringify(JSON.parse(t)) === JSON.stringify(i)) return r;
27
+ if (r) try {
28
+ if (JSON.stringify(JSON.parse(t)) === JSON.stringify(i)) return n;
31
29
  } catch {}
32
30
  return {
33
31
  status: "changed",
@@ -35,4 +33,4 @@ function i(e, t) {
35
33
  };
36
34
  }
37
35
  //#endregion
38
- export { i as diffPayloadEditor, n as formatPayloadForEditor, t as hasDataSinkPayload };
36
+ export { r as diffPayloadEditor, t as formatPayloadForEditor, e as hasDataSinkPayload };
@@ -1,6 +1,6 @@
1
1
  //#region src/bigconsole/utils/drilldownParams.ts
2
2
  function e(e) {
3
- return Object.entries(e).filter(([e, t]) => e.startsWith("__") || t == null ? !1 : typeof t == "string" ? t.trim().length > 0 : Array.isArray(t) ? t.length > 0 : !0);
3
+ return Object.entries(e).filter(([e, t]) => e.startsWith("__") || t == null ? !1 : typeof t == "string" ? t.trim().length > 0 : !Array.isArray(t) || t.length > 0);
4
4
  }
5
5
  //#endregion
6
6
  export { e as getVisibleDrilldownParams };
@@ -12,10 +12,10 @@ function t(e) {
12
12
  return e;
13
13
  }
14
14
  function n(t, n) {
15
- return n == null ? !1 : e(t) !== e(n);
15
+ return n != null && e(t) !== e(n);
16
16
  }
17
17
  function r(e, t, r, i) {
18
- return e === t ? !n(r, i) : !0;
18
+ return e !== t || !n(r, i);
19
19
  }
20
20
  //#endregion
21
- export { n as isDirty, r as shouldReseedForm };
21
+ export { n as isDirty, r as shouldReseedForm, e as stableStringify };
@@ -93,4 +93,4 @@ function f(e, t) {
93
93
  return e.frozen && l(t, e.baseline);
94
94
  }
95
95
  //#endregion
96
- export { u as INITIAL_LAYOUT_BASELINE, f as isLayoutBaselineDirty, o as layoutFromWidgets, s as layoutItemsFromPositionUpdates, a as normaliseLayout, d as reduceLayoutBaseline };
96
+ export { e as DEFAULT_LAYOUT_CELL, u as INITIAL_LAYOUT_BASELINE, f as isLayoutBaselineDirty, l as layoutDirty, c as layoutEquals, o as layoutFromWidgets, s as layoutItemsFromPositionUpdates, a as normaliseLayout, d as reduceLayoutBaseline };
@@ -3,20 +3,20 @@ import { extractQuotaExhaustedExtensions as e } from "@burdenoff/fe-libs/shared/
3
3
  var t = "bigconsole:quota-exhausted", n = "QUOTA_NOT_PROVISIONED", r = {
4
4
  billing: "/billing",
5
5
  billingSetup: "/billing/overview"
6
- }, i = new Set([
6
+ }, i = /* @__PURE__ */ new Set([
7
7
  "createbigconsoledashboard",
8
8
  "clonedashboard",
9
9
  "importdashboard",
10
10
  "importbigconsoledashboard",
11
11
  "instantiatetemplate",
12
12
  "createdashboardfromgeneration"
13
- ]), a = new Set(["createdashboardview"]), o = new Set([
13
+ ]), a = /* @__PURE__ */ new Set(["createdashboardview"]), o = /* @__PURE__ */ new Set([
14
14
  "generatedashboardfromprompt",
15
15
  "refinegenerateddashboard",
16
16
  "regeneratedashboard",
17
17
  "conversationaldashboardedit",
18
18
  "previewpromptanalysis"
19
- ]), s = new Set(["bigconsole.projects.count"]), c = new Set(["bigconsole.sessions.count"]), l = new Set(["bigconsole.commands.count"]);
19
+ ]), s = /* @__PURE__ */ new Set(["bigconsole.projects.count"]), c = /* @__PURE__ */ new Set(["bigconsole.sessions.count"]), l = /* @__PURE__ */ new Set(["bigconsole.commands.count"]);
20
20
  function u(e) {
21
21
  return typeof e == "object" && !!e;
22
22
  }
@@ -120,4 +120,4 @@ function b(e) {
120
120
  }
121
121
  }
122
122
  //#endregion
123
- export { t as BIGCONSOLE_QUOTA_EXHAUSTED_EVENT, y as bigConsoleBillingPathFor, v as bigConsoleQuotaLimit, g as classifyBigConsoleQuotaError, p as createBigConsoleQuotaError, b as getBigConsoleQuotaDialogContent, m as isBigConsoleQuotaError, _ as reportBigConsoleQuotaError };
123
+ export { r as BIGCONSOLE_BILLING_PATHS, t as BIGCONSOLE_QUOTA_EXHAUSTED_EVENT, n as QUOTA_NOT_PROVISIONED_CODE, y as bigConsoleBillingPathFor, v as bigConsoleQuotaLimit, g as classifyBigConsoleQuotaError, p as createBigConsoleQuotaError, d as extractBigConsoleQuotaExtensions, b as getBigConsoleQuotaDialogContent, h as inferBigConsoleQuotaKind, f as isBigConsoleBillingNotProvisionedError, m as isBigConsoleQuotaError, _ as reportBigConsoleQuotaError };
@@ -1,93 +1,95 @@
1
- function e(e) {
1
+ //#region src/bigconsole/utils/safeUrl.ts
2
+ var e = 2048;
3
+ function t(e) {
2
4
  for (let t = 0; t < e.length; t += 1) {
3
5
  let n = e.charCodeAt(t);
4
6
  if (n < 32 || n === 127) return !0;
5
7
  }
6
8
  return !1;
7
9
  }
8
- var t = "https://path-base.invalid";
9
- function n(t) {
10
- if (typeof t != "string") return null;
11
- let n = t.trim();
12
- return !n || n.length > 2048 || e(n) ? null : n;
13
- }
10
+ var n = "https://path-base.invalid";
14
11
  function r(e) {
12
+ if (typeof e != "string") return null;
13
+ let n = e.trim();
14
+ return !n || n.length > 2048 || t(n) ? null : n;
15
+ }
16
+ function i(e) {
15
17
  try {
16
18
  return new URL(e);
17
19
  } catch {
18
20
  return null;
19
21
  }
20
22
  }
21
- function i(e, i = {}) {
22
- let a = n(e);
23
+ function a(e, t = {}) {
24
+ let a = r(e);
23
25
  if (!a) return null;
24
- if (a.startsWith("#")) return i.allowFragment ? a : null;
26
+ if (a.startsWith("#")) return t.allowFragment ? a : null;
25
27
  if (a.startsWith("/")) {
26
- if (!i.allowRootRelative) return null;
28
+ if (!t.allowRootRelative) return null;
27
29
  let e;
28
30
  try {
29
- e = new URL(a, t);
31
+ e = new URL(a, n);
30
32
  } catch {
31
33
  return null;
32
34
  }
33
- return e.origin === t ? `${e.pathname}${e.search}${e.hash}` : null;
35
+ return e.origin === n ? `${e.pathname}${e.search}${e.hash}` : null;
34
36
  }
35
- let o = r(a);
36
- return o ? o.protocol === "http:" || o.protocol === "https:" ? o.username || o.password ? null : o.href : o.protocol === "mailto:" && i.allowMailto ? o.href : null : null;
37
+ let o = i(a);
38
+ return o ? o.protocol === "http:" || o.protocol === "https:" ? o.username || o.password ? null : o.href : o.protocol === "mailto:" && t.allowMailto ? o.href : null : null;
37
39
  }
38
- function a(e) {
40
+ function o(e) {
39
41
  if (typeof e != "string") return null;
40
42
  let t = e.trim();
41
43
  if (!t) return null;
42
- let n = r(t);
44
+ let n = i(t);
43
45
  return !n || n.protocol !== "https:" || n.pathname !== "" && n.pathname !== "/" || n.search || n.hash ? null : n.origin;
44
46
  }
45
- function o(e, t = {}) {
47
+ function s(e, t = {}) {
46
48
  if (typeof e != "string" || e.trim() === "") return {
47
49
  ok: !1,
48
50
  reason: "missing"
49
51
  };
50
- let i = n(e);
51
- if (!i) return {
52
+ let n = r(e);
53
+ if (!n) return {
52
54
  ok: !1,
53
55
  reason: "invalid"
54
56
  };
55
- let o = r(i);
56
- if (!o) return {
57
+ let a = i(n);
58
+ if (!a) return {
57
59
  ok: !1,
58
60
  reason: "invalid"
59
61
  };
60
- if (o.protocol !== "https:") return {
62
+ if (a.protocol !== "https:") return {
61
63
  ok: !1,
62
64
  reason: "scheme"
63
65
  };
64
- if (o.username || o.password) return {
66
+ if (a.username || a.password) return {
65
67
  ok: !1,
66
68
  reason: "credentials"
67
69
  };
68
- if (t.appOrigin && o.origin === t.appOrigin) return {
70
+ if (t.appOrigin && a.origin === t.appOrigin) return {
69
71
  ok: !1,
70
72
  reason: "same-origin"
71
73
  };
72
74
  let s = t.allowedOrigins ?? [];
73
- return s.length > 0 && !new Set(s.map((e) => a(e)).filter((e) => e !== null)).has(o.origin) ? {
75
+ return s.length > 0 && !new Set(s.map((e) => o(e)).filter((e) => e !== null)).has(a.origin) ? {
74
76
  ok: !1,
75
77
  reason: "origin-not-allowed"
76
78
  } : {
77
79
  ok: !0,
78
- src: o.href,
79
- origin: o.origin
80
+ src: a.href,
81
+ origin: a.origin
80
82
  };
81
83
  }
82
- function s(e, t) {
84
+ function c(e, t) {
83
85
  return typeof t != "string" || t === "" || t === "." || t === ".." ? null : `${e.endsWith("/") ? e.slice(0, -1) : e}/${encodeURIComponent(t)}`;
84
86
  }
85
- function c() {
87
+ function l() {
86
88
  return typeof window > "u" || !window.location ? null : window.location.origin;
87
89
  }
88
- function l(e, t = {}) {
89
- let n = i(e, t);
90
+ function u(e, t = {}) {
91
+ let n = a(e, t);
90
92
  return !n || typeof window > "u" ? !1 : (window.open(n, "_blank", "noopener,noreferrer"), !0);
91
93
  }
92
94
  //#endregion
93
- export { s as appendPathSegment, c as currentAppOrigin, a as normalizeHttpsOrigin, l as openExternalUrl, o as resolveFrameSrc, i as toSafeHref };
95
+ export { e as MAX_URL_LENGTH, c as appendPathSegment, l as currentAppOrigin, o as normalizeHttpsOrigin, u as openExternalUrl, s as resolveFrameSrc, a as toSafeHref };