@sentio/ui-dashboard 0.3.11 → 0.3.13

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/index.d.mts CHANGED
@@ -1,10 +1,11 @@
1
- import { DurationLike, ButtonProps, DateTimeValue } from '@sentio/ui-core';
1
+ import { DurationLike, ButtonProps, DateTimeValue, SlideOver } from '@sentio/ui-core';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as react from 'react';
4
- import react__default, { ReactNode, CSSProperties } from 'react';
4
+ import react__default, { ReactNode, CSSProperties, MouseEvent } from 'react';
5
5
  import { ComposeOption, SetOptionOpts, ECharts } from 'echarts/core';
6
6
  import { BarSeriesOption, LineSeriesOption, SankeySeriesOption } from 'echarts/charts';
7
7
  import { TitleComponentOption, GridComponentOption } from 'echarts/components';
8
+ import { BeforeMount } from '@monaco-editor/react';
8
9
 
9
10
  /** Dashboard chart type. */
10
11
  type ChartTypeLike = 'LINE' | 'AREA' | 'BAR' | 'BAR_GAUGE' | 'TABLE' | 'QUERY_VALUE' | 'PIE' | 'NOTE' | 'SCATTER' | 'GROUP';
@@ -91,7 +92,14 @@ interface GroupLike {
91
92
  /** Palette key (e.g. "green", "purple"); empty keeps the theme default. */
92
93
  highlightColor?: string;
93
94
  }
94
- /** A dashboard panel. `creator`/`updater` user info kept opaque for now. */
95
+ /** Minimal user-info shape for owner/creator display. */
96
+ interface UserInfoLike {
97
+ username?: string;
98
+ picture?: string;
99
+ firstName?: string;
100
+ lastName?: string;
101
+ }
102
+ /** A dashboard panel. */
95
103
  interface PanelLike {
96
104
  id?: string;
97
105
  name?: string;
@@ -99,8 +107,8 @@ interface PanelLike {
99
107
  chart?: ChartLike;
100
108
  /** Non-empty => renders inside the group panel with this id. */
101
109
  groupId?: string;
102
- creator?: unknown;
103
- updater?: unknown;
110
+ creator?: UserInfoLike;
111
+ updater?: UserInfoLike;
104
112
  }
105
113
  /** A dashboard. `sharing` kept opaque until the share dialog is migrated. */
106
114
  interface DashboardLike {
@@ -465,12 +473,12 @@ interface SeriesLike<T = Date> {
465
473
  smooth?: boolean;
466
474
  }
467
475
 
468
- interface Props$B {
476
+ interface Props$K {
469
477
  metric?: MetricInfoLike;
470
478
  value: QueryLike;
471
479
  onChange: (value: QueryLike) => void;
472
480
  }
473
- declare function AggregateInput({ metric, value, onChange }: Props$B): react_jsx_runtime.JSX.Element;
481
+ declare function AggregateInput({ metric, value, onChange }: Props$K): react_jsx_runtime.JSX.Element;
474
482
 
475
483
  declare enum ArgumentType {
476
484
  String = 0,
@@ -505,28 +513,28 @@ declare const EventsFunctionMap: {
505
513
  [name: string]: FunctionDef;
506
514
  };
507
515
 
508
- interface Props$A {
516
+ interface Props$J {
509
517
  argument: ArgumentDef;
510
518
  value?: ArgumentLike;
511
519
  onChange?: (value: ArgumentLike) => void;
512
520
  className?: string;
513
521
  }
514
- declare function ArgumentInput({ className, argument, value, onChange }: Props$A): react_jsx_runtime.JSX.Element;
522
+ declare function ArgumentInput({ className, argument, value, onChange }: Props$J): react_jsx_runtime.JSX.Element;
515
523
 
516
- interface Props$z {
524
+ interface Props$I {
517
525
  value: QueryLike;
518
526
  onChange: (value: QueryLike) => void;
519
527
  }
520
- declare function FunctionInput({ value, onChange }: Props$z): react_jsx_runtime.JSX.Element;
528
+ declare function FunctionInput({ value, onChange }: Props$I): react_jsx_runtime.JSX.Element;
521
529
 
522
- interface Props$y {
530
+ interface Props$H {
523
531
  onClick: (func: FunctionDef) => void;
524
532
  functionCategories?: typeof FunctionsCategories;
525
533
  defaultFunc?: string;
526
534
  }
527
- declare function FunctionsPanel({ onClick, functionCategories, defaultFunc }: Props$y): react_jsx_runtime.JSX.Element;
535
+ declare function FunctionsPanel({ onClick, functionCategories, defaultFunc }: Props$H): react_jsx_runtime.JSX.Element;
528
536
 
529
- interface Props$x {
537
+ interface Props$G {
530
538
  metric?: MetricInfoLike;
531
539
  value: QueryLike;
532
540
  onChange: (value: QueryLike) => void;
@@ -536,7 +544,7 @@ interface Props$x {
536
544
  small?: boolean;
537
545
  useRegex?: boolean;
538
546
  }
539
- declare function LabelsInput({ value, metric, variables, onChange, small, useRegex }: Props$x): react_jsx_runtime.JSX.Element;
547
+ declare function LabelsInput({ value, metric, variables, onChange, small, useRegex }: Props$G): react_jsx_runtime.JSX.Element;
540
548
 
541
549
  declare const SystemLabels: {
542
550
  field: string;
@@ -599,7 +607,7 @@ type SeriesFinder = {
599
607
  };
600
608
  declare const ReactEChartsBase: react__default.ForwardRefExoticComponent<ReactEChartsProps & react__default.RefAttributes<EChartsHandle>>;
601
609
 
602
- interface Props$w {
610
+ interface Props$F {
603
611
  legend: string[];
604
612
  legendSelected: Record<string, boolean>;
605
613
  returnedSeries?: number;
@@ -607,7 +615,7 @@ interface Props$w {
607
615
  onRendered: (v: boolean) => void;
608
616
  chartHandle?: EChartsHandle;
609
617
  }
610
- declare const ChartLegend: ({ legend, legendSelected, returnedSeries, totalSeries, onRendered, chartHandle }: Props$w) => react_jsx_runtime.JSX.Element;
618
+ declare const ChartLegend: ({ legend, legendSelected, returnedSeries, totalSeries, onRendered, chartHandle }: Props$F) => react_jsx_runtime.JSX.Element;
611
619
 
612
620
  declare const RefreshContext: react.Context<{
613
621
  refresh?: () => void;
@@ -615,14 +623,14 @@ declare const RefreshContext: react.Context<{
615
623
  }>;
616
624
  declare const RefreshButton: (props: Partial<ButtonProps>) => react_jsx_runtime.JSX.Element | null;
617
625
 
618
- type Props$v = {
626
+ type Props$E = {
619
627
  value: ChartTypeLike;
620
628
  onChange: (value: ChartTypeLike) => void;
621
629
  small?: boolean;
622
630
  };
623
- declare const ChartTypeButtonGroup: ({ value, onChange, small }: Props$v) => react_jsx_runtime.JSX.Element;
631
+ declare const ChartTypeButtonGroup: ({ value, onChange, small }: Props$E) => react_jsx_runtime.JSX.Element;
624
632
 
625
- interface Props$u {
633
+ interface Props$D {
626
634
  data: any;
627
635
  compareTimeDuration?: DurationLike;
628
636
  numberFormatter: (value: number, seriesId?: string) => string;
@@ -635,9 +643,9 @@ interface Props$u {
635
643
  viewUsersDisabled?: (seriesId: string, seriesIndex: number) => boolean;
636
644
  isFixed?: boolean;
637
645
  }
638
- declare function ChartTooltip({ data, numberFormatter, compareTimeDuration, highlightSeriesId, title, showTotal, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed }: Props$u): react_jsx_runtime.JSX.Element;
646
+ declare function ChartTooltip({ data, numberFormatter, compareTimeDuration, highlightSeriesId, title, showTotal, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed }: Props$D): react_jsx_runtime.JSX.Element;
639
647
 
640
- interface Props$t {
648
+ interface Props$C {
641
649
  data: any;
642
650
  compareTimeDuration?: DurationLike;
643
651
  numberFormatter: (value: number) => string;
@@ -650,7 +658,7 @@ interface Props$t {
650
658
  isFixed?: boolean;
651
659
  sizeTitle?: string;
652
660
  }
653
- declare function ScatterChartTooltip({ data, numberFormatter, highlightSeriesId, title, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed, sizeTitle }: Props$t): react_jsx_runtime.JSX.Element;
661
+ declare function ScatterChartTooltip({ data, numberFormatter, highlightSeriesId, title, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed, sizeTitle }: Props$C): react_jsx_runtime.JSX.Element;
654
662
 
655
663
  /** Minimal shape consumed from a computed series — only name + first data point. */
656
664
  interface PieSeriesInput {
@@ -803,42 +811,42 @@ interface TimeSeriesChartProps {
803
811
  }
804
812
  declare const TimeSeriesChart: react.ForwardRefExoticComponent<TimeSeriesChartProps & react.RefAttributes<EChartsHandle>>;
805
813
 
806
- interface Props$s {
814
+ interface Props$B {
807
815
  config?: LineConfigLike;
808
816
  defaultOpen?: boolean;
809
817
  onChange: (config: LineConfigLike) => void;
810
818
  }
811
- declare const LineControls: ({ config, defaultOpen, onChange }: Props$s) => react_jsx_runtime.JSX.Element;
819
+ declare const LineControls: ({ config, defaultOpen, onChange }: Props$B) => react_jsx_runtime.JSX.Element;
812
820
 
813
- interface Props$r {
821
+ interface Props$A {
814
822
  config?: LabelConfigLike;
815
823
  setConfig: (value: LabelConfigLike) => void;
816
824
  defaultOpen?: boolean;
817
825
  }
818
- declare const LabelControls: ({ config, setConfig, defaultOpen }: Props$r) => react_jsx_runtime.JSX.Element;
826
+ declare const LabelControls: ({ config, setConfig, defaultOpen }: Props$A) => react_jsx_runtime.JSX.Element;
819
827
 
820
- interface Props$q {
828
+ interface Props$z {
821
829
  config?: PieConfigLike;
822
830
  defaultOpen?: boolean;
823
831
  onChange: (config: PieConfigLike) => void;
824
832
  }
825
833
  declare const defaultConfig$8: PieConfigLike;
826
- declare function PieChartControls({ config, defaultOpen, onChange }: Props$q): react_jsx_runtime.JSX.Element;
834
+ declare function PieChartControls({ config, defaultOpen, onChange }: Props$z): react_jsx_runtime.JSX.Element;
827
835
 
828
- interface Props$p {
836
+ interface Props$y {
829
837
  config?: BarGaugeConfigLike;
830
838
  defaultOpen?: boolean;
831
839
  onChange: (config: BarGaugeConfigLike) => void;
832
840
  }
833
841
  declare const defaultConfig$7: BarGaugeConfigLike;
834
- declare function BarGaugeControls({ config, defaultOpen, onChange }: Props$p): react_jsx_runtime.JSX.Element;
842
+ declare function BarGaugeControls({ config, defaultOpen, onChange }: Props$y): react_jsx_runtime.JSX.Element;
835
843
 
836
844
  interface ValueFormatter {
837
845
  label: string;
838
846
  value: ValueFormatterLike;
839
847
  }
840
848
  declare const ValueFormatters: ValueFormatter[];
841
- interface Props$o {
849
+ interface Props$x {
842
850
  config: ValueConfigLike;
843
851
  defaultOpen?: boolean;
844
852
  onChange: (config: ValueConfigLike) => void;
@@ -847,9 +855,9 @@ interface Props$o {
847
855
  showSuffix?: boolean;
848
856
  }
849
857
  declare const defaultConfig$6: ValueConfigLike;
850
- declare const ValueOptions: ({ config, onChange, formatters, showPrefix, showSuffix }: Props$o) => react_jsx_runtime.JSX.Element;
858
+ declare const ValueOptions: ({ config, onChange, formatters, showPrefix, showSuffix }: Props$x) => react_jsx_runtime.JSX.Element;
851
859
 
852
- interface Props$n {
860
+ interface Props$w {
853
861
  config?: ValueConfigLike;
854
862
  defaultOpen?: boolean;
855
863
  onChange: (config: ValueConfigLike) => void;
@@ -858,15 +866,15 @@ interface Props$n {
858
866
  showSuffix?: boolean;
859
867
  }
860
868
  declare const defaultConfig$5: ValueConfigLike;
861
- declare const ValueControls: ({ config, defaultOpen, onChange, formatters, showPrefix, showSuffix }: Props$n) => react_jsx_runtime.JSX.Element;
869
+ declare const ValueControls: ({ config, defaultOpen, onChange, formatters, showPrefix, showSuffix }: Props$w) => react_jsx_runtime.JSX.Element;
862
870
 
863
- interface Props$m {
871
+ interface Props$v {
864
872
  rules: MappingRuleLike[];
865
873
  onChange: (rules: MappingRuleLike[]) => void;
866
874
  }
867
- declare function ValueStringMapping({ rules, onChange }: Props$m): react_jsx_runtime.JSX.Element;
875
+ declare function ValueStringMapping({ rules, onChange }: Props$v): react_jsx_runtime.JSX.Element;
868
876
 
869
- interface Props$l {
877
+ interface Props$u {
870
878
  yAxis?: YAxisConfigLike;
871
879
  setYAxis: (yAxis: YAxisConfigLike) => void;
872
880
  defaultOpen?: boolean;
@@ -879,9 +887,9 @@ interface Props$l {
879
887
  supportReset?: boolean;
880
888
  panelTitle?: string;
881
889
  }
882
- declare function YaxisControls({ yAxis, setYAxis, defaultOpen, columnSelect, supportSetName, supportSetMinMax, supportStackSeries, supportAlwaysShowZero, supportReset, panelTitle }: Props$l): react_jsx_runtime.JSX.Element;
890
+ declare function YaxisControls({ yAxis, setYAxis, defaultOpen, columnSelect, supportSetName, supportSetMinMax, supportStackSeries, supportAlwaysShowZero, supportReset, panelTitle }: Props$u): react_jsx_runtime.JSX.Element;
883
891
 
884
- interface Props$k {
892
+ interface Props$t {
885
893
  xAxis?: XAxisConfigLike;
886
894
  setXAxis: (val?: XAxisConfigLike) => void;
887
895
  defaultOpen?: boolean;
@@ -894,15 +902,15 @@ interface Props$k {
894
902
  supportSort?: boolean;
895
903
  supportSetType?: boolean;
896
904
  }
897
- declare const XAxisControls: ({ xAxis, setXAxis, defaultOpen, columnSelect, columnIsNonTime, panelTitle, supportName, supportSort, supportSetType }: Props$k) => react_jsx_runtime.JSX.Element;
905
+ declare const XAxisControls: ({ xAxis, setXAxis, defaultOpen, columnSelect, columnIsNonTime, panelTitle, supportName, supportSort, supportSetType }: Props$t) => react_jsx_runtime.JSX.Element;
898
906
 
899
- interface Props$j {
907
+ interface Props$s {
900
908
  markers?: MarkerLike[];
901
909
  onChange: (v: MarkerLike[]) => void;
902
910
  }
903
- declare function MarkerControls({ markers, onChange }: Props$j): react_jsx_runtime.JSX.Element;
911
+ declare function MarkerControls({ markers, onChange }: Props$s): react_jsx_runtime.JSX.Element;
904
912
 
905
- interface Props$i {
913
+ interface Props$r {
906
914
  defaultOpen?: boolean;
907
915
  onChange: (config: DataConfigLike) => void;
908
916
  chartConfig?: ChartConfigLike;
@@ -910,9 +918,9 @@ interface Props$i {
910
918
  defaultSeriesLimit?: number;
911
919
  }
912
920
  declare const defaultConfig$4: DataConfigLike;
913
- declare function DataControls({ defaultOpen, onChange, chartConfig, defaultSeriesLimit }: Props$i): react_jsx_runtime.JSX.Element;
921
+ declare function DataControls({ defaultOpen, onChange, chartConfig, defaultSeriesLimit }: Props$r): react_jsx_runtime.JSX.Element;
914
922
 
915
- interface Props$h {
923
+ interface Props$q {
916
924
  config?: ScatterConfigLike;
917
925
  defaultOpen?: boolean;
918
926
  onChange: (config: ScatterConfigLike) => void;
@@ -928,9 +936,9 @@ interface Props$h {
928
936
  }) => ReactNode;
929
937
  }
930
938
  declare const defaultConfig$3: ScatterConfigLike;
931
- declare function ScatterControls({ config, defaultOpen, onChange, columnSelect, colorPicker }: Props$h): react_jsx_runtime.JSX.Element;
939
+ declare function ScatterControls({ config, defaultOpen, onChange, columnSelect, colorPicker }: Props$q): react_jsx_runtime.JSX.Element;
932
940
 
933
- interface Props$g {
941
+ interface Props$p {
934
942
  config?: TableConfigLike;
935
943
  defaultOpen?: boolean;
936
944
  onChange: (config: TableConfigLike) => void;
@@ -938,7 +946,7 @@ interface Props$g {
938
946
  }
939
947
  declare const defaultConfig$2: TableConfigLike;
940
948
  declare function getDefaultValueConfig(type?: ColumnTypeLike): ValueConfigLike;
941
- declare function TableControls({ config, defaultOpen, onChange, data }: Props$g): react_jsx_runtime.JSX.Element;
949
+ declare function TableControls({ config, defaultOpen, onChange, data }: Props$p): react_jsx_runtime.JSX.Element;
942
950
 
943
951
  declare const sentioColors: {
944
952
  light: {
@@ -1690,62 +1698,62 @@ declare const sentioThemeDark: {
1690
1698
  };
1691
1699
  };
1692
1700
 
1693
- interface Props$f {
1701
+ interface Props$o {
1694
1702
  className?: string;
1695
1703
  }
1696
- declare const SvgIcon$7: ({ className }: Props$f) => react_jsx_runtime.JSX.Element;
1704
+ declare const SvgIcon$7: ({ className }: Props$o) => react_jsx_runtime.JSX.Element;
1697
1705
 
1698
- interface Props$e {
1706
+ interface Props$n {
1699
1707
  className?: string;
1700
1708
  }
1701
- declare const SvgIcon$6: ({ className }: Props$e) => react_jsx_runtime.JSX.Element;
1709
+ declare const SvgIcon$6: ({ className }: Props$n) => react_jsx_runtime.JSX.Element;
1702
1710
 
1703
- interface Props$d {
1711
+ interface Props$m {
1704
1712
  className?: string;
1705
1713
  }
1706
- declare const SvgIcon$5: ({ className }: Props$d) => react_jsx_runtime.JSX.Element;
1714
+ declare const SvgIcon$5: ({ className }: Props$m) => react_jsx_runtime.JSX.Element;
1707
1715
 
1708
- interface Props$c {
1716
+ interface Props$l {
1709
1717
  className?: string;
1710
1718
  }
1711
- declare const SvgIcon$4: ({ className }: Props$c) => react_jsx_runtime.JSX.Element;
1719
+ declare const SvgIcon$4: ({ className }: Props$l) => react_jsx_runtime.JSX.Element;
1712
1720
 
1713
- interface Props$b {
1721
+ interface Props$k {
1714
1722
  className?: string;
1715
1723
  }
1716
- declare const SvgIcon$3: ({ className }: Props$b) => react_jsx_runtime.JSX.Element;
1724
+ declare const SvgIcon$3: ({ className }: Props$k) => react_jsx_runtime.JSX.Element;
1717
1725
 
1718
- interface Props$a {
1726
+ interface Props$j {
1719
1727
  className?: string;
1720
1728
  }
1721
- declare const SvgIcon$2: ({ className }: Props$a) => react_jsx_runtime.JSX.Element;
1729
+ declare const SvgIcon$2: ({ className }: Props$j) => react_jsx_runtime.JSX.Element;
1722
1730
 
1723
- interface Props$9 {
1731
+ interface Props$i {
1724
1732
  className?: string;
1725
1733
  }
1726
- declare const SvgIcon$1: ({ className }: Props$9) => react_jsx_runtime.JSX.Element;
1734
+ declare const SvgIcon$1: ({ className }: Props$i) => react_jsx_runtime.JSX.Element;
1727
1735
 
1728
- interface Props$8 {
1736
+ interface Props$h {
1729
1737
  className?: string;
1730
1738
  }
1731
- declare const SvgIcon: ({ className }: Props$8) => react_jsx_runtime.JSX.Element;
1739
+ declare const SvgIcon: ({ className }: Props$h) => react_jsx_runtime.JSX.Element;
1732
1740
 
1733
- interface Props$7 {
1741
+ interface Props$g {
1734
1742
  dashboard?: DashboardLike;
1735
1743
  open: boolean;
1736
1744
  onClose: () => void;
1737
1745
  onUpdate: (data: DashboardLike) => Promise<void>;
1738
1746
  }
1739
- declare const EditDashboardDialog: ({ dashboard, open, onClose, onUpdate }: Props$7) => react_jsx_runtime.JSX.Element;
1747
+ declare const EditDashboardDialog: ({ dashboard, open, onClose, onUpdate }: Props$g) => react_jsx_runtime.JSX.Element;
1740
1748
 
1741
- interface Props$6 {
1749
+ interface Props$f {
1742
1750
  data?: any;
1743
1751
  logoSrc?: string;
1744
1752
  onNavigateToDatasource?: () => void;
1745
1753
  }
1746
- declare const ErrorChart: react__default.MemoExoticComponent<({ data, logoSrc, onNavigateToDatasource }: Props$6) => react_jsx_runtime.JSX.Element>;
1754
+ declare const ErrorChart: react__default.MemoExoticComponent<({ data, logoSrc, onNavigateToDatasource }: Props$f) => react_jsx_runtime.JSX.Element>;
1747
1755
 
1748
- interface Props$5 {
1756
+ interface Props$e {
1749
1757
  open: boolean;
1750
1758
  onClose: () => void;
1751
1759
  title: string;
@@ -1757,15 +1765,15 @@ interface Props$5 {
1757
1765
  highlightColor: string;
1758
1766
  }) => void;
1759
1767
  }
1760
- declare function EditGroupDialog({ open, onClose, title, style, highlightColor, onSave }: Props$5): react_jsx_runtime.JSX.Element;
1768
+ declare function EditGroupDialog({ open, onClose, title, style, highlightColor, onSave }: Props$e): react_jsx_runtime.JSX.Element;
1761
1769
 
1762
- interface Props$4 {
1770
+ interface Props$d {
1763
1771
  stats?: ComputeStatsLike;
1764
1772
  onRefresh: () => Promise<void>;
1765
1773
  }
1766
- declare const DashboardRefresh: ({ stats, onRefresh }: Props$4) => react_jsx_runtime.JSX.Element;
1774
+ declare const DashboardRefresh: ({ stats, onRefresh }: Props$d) => react_jsx_runtime.JSX.Element;
1767
1775
 
1768
- interface Props$3 {
1776
+ interface Props$c {
1769
1777
  open: boolean;
1770
1778
  initData?: DashboardSharingLike;
1771
1779
  onUnshare?: () => void;
@@ -1775,9 +1783,9 @@ interface Props$3 {
1775
1783
  endTime?: DateTimeValue;
1776
1784
  tz?: string;
1777
1785
  }
1778
- declare const ShareDashboardDialog: ({ open, initData, onUnshare, onClose, onConfigChange, startTime, endTime, tz }: Props$3) => react_jsx_runtime.JSX.Element;
1786
+ declare const ShareDashboardDialog: ({ open, initData, onUnshare, onClose, onConfigChange, startTime, endTime, tz }: Props$c) => react_jsx_runtime.JSX.Element;
1779
1787
 
1780
- interface Props$2 {
1788
+ interface Props$b {
1781
1789
  config?: TimeRangeOverrideLike;
1782
1790
  onChange: (config: TimeRangeOverrideLike) => void;
1783
1791
  globalStartTime?: DateTimeValue;
@@ -1786,18 +1794,18 @@ interface Props$2 {
1786
1794
  onSetGlobalTimeRange: (start?: DateTimeValue, end?: DateTimeValue, tz?: string) => void;
1787
1795
  }
1788
1796
  declare const defaultConfig$1: TimeRangeOverrideLike;
1789
- declare function TimeRangeOverride({ config, onChange, globalStartTime, globalEndTime, globalTz, onSetGlobalTimeRange }: Props$2): react_jsx_runtime.JSX.Element;
1797
+ declare function TimeRangeOverride({ config, onChange, globalStartTime, globalEndTime, globalTz, onSetGlobalTimeRange }: Props$b): react_jsx_runtime.JSX.Element;
1790
1798
 
1791
- interface Props$1 {
1799
+ interface Props$a {
1792
1800
  config?: ChartConfigLike;
1793
1801
  chartType?: ChartTypeLike;
1794
1802
  setSeriesConfig: (seriesConfig: SeriesConfigLike) => void;
1795
1803
  series: string[];
1796
1804
  enabled?: boolean;
1797
1805
  }
1798
- declare const SeriesControls: ({ config, setSeriesConfig, series, enabled }: Props$1) => react_jsx_runtime.JSX.Element | null;
1806
+ declare const SeriesControls: ({ config, setSeriesConfig, series, enabled }: Props$a) => react_jsx_runtime.JSX.Element | null;
1799
1807
 
1800
- interface Props {
1808
+ interface Props$9 {
1801
1809
  config?: QueryValueConfigLike;
1802
1810
  defaultOpen?: boolean;
1803
1811
  onChange: (config: QueryValueConfigLike) => void;
@@ -1806,7 +1814,7 @@ interface Props {
1806
1814
  }) => void) => ReactNode;
1807
1815
  }
1808
1816
  declare const defaultConfig: QueryValueConfigLike;
1809
- declare function QueryValueControls({ config, defaultOpen, onChange, renderColorSelect }: Props): react_jsx_runtime.JSX.Element;
1817
+ declare function QueryValueControls({ config, defaultOpen, onChange, renderColorSelect }: Props$9): react_jsx_runtime.JSX.Element;
1810
1818
 
1811
1819
  type HighlightColorKey = '' | 'blue' | 'cyan' | 'pink' | 'yellow' | 'green' | 'lightblue' | 'purple' | 'red' | 'orange';
1812
1820
  interface HighlightColorMeta {
@@ -1829,4 +1837,135 @@ declare const ImportPanelDialog: ({ show, onClose: _onClose, onSubmit }: {
1829
1837
  onSubmit: (p: PanelLike) => Promise<void>;
1830
1838
  }) => react_jsx_runtime.JSX.Element;
1831
1839
 
1832
- export { AggregateInput, SvgIcon$6 as AreaIcon, type ArgumentDef, ArgumentInput, ArgumentType, BarGaugeChart, type BarGaugeChartProps, BarGaugeControls, SvgIcon$4 as BarGuageIcon, SvgIcon$5 as BarIcon, type ChartConfigLike, ChartLegend, type ChartLike, ChartTooltip, ChartTypeButtonGroup, type ChartTypeLike, type ComputeStatsLike, DEFAULT_HIGHLIGHT_KEY, type DashboardExtraLike, type DashboardLike, DashboardRefresh, type DashboardSharingLike, type DashboardVisibilityLike, DataControls, type DataSourceTypeLike, type EChartsHandle, type EChartsOption, EditDashboardDialog, EditGroupDialog, ErrorChart, EventsFunctionCategories, EventsFunctionMap, type FunctionDef, FunctionInput, FunctionMap, FunctionsCategories, FunctionsPanel, type GroupLike, type GroupStyleLike, HIGHLIGHT_COLORS, type HighlightColorKey, type HighlightColorMeta, ImportPanelDialog, LabelControls, LabelSearchProvider, LabelsInput, type LayoutItemLike, type LayoutsLike, LineControls, SvgIcon$7 as LineIcon, type MarkArea, type MarkLine, MarkerControls, type NoteAlignmentLike, type NoteFontSizeLike, type NoteLike, type NoteVerticalAlignmentLike, type OverlayGraphLike, type PanelLike, PieChart, PieChartControls, type PieChartProps, SvgIcon$3 as PieIcon, type PieSeriesInput, QueryValueChart, type QueryValueChartProps, type QueryValueConfigLike, QueryValueControls, SvgIcon$2 as QueryValueIcon, ReactEChartsBase, type ReactEChartsProps, RefreshButton, RefreshContext, type ResolvedHighlight, type ResponsiveLayoutsLike, ScatterChartTooltip, ScatterControls, SvgIcon$1 as ScatterIcon, type SeriesConfigLike, SeriesControls, ShareDashboardDialog, type SharingConfigLike, SystemLabels, TableControls, SvgIcon as TableIcon, type TemplateVariableLike, type TemplateViewLike, type TimeLike, type TimeRangeLike, TimeRangeOverride, type TimeRangeOverrideLike, TimeSeriesChart, type TimeSeriesChartProps, ValueControls, type ValueFormatter, ValueFormatters, ValueOptions, ValueStringMapping, type ViewActionContext, XAxisControls, type YAxisConfigLike, YaxisControls, defaultConfig$7 as defaultBarGaugeConfig, defaultConfig$4 as defaultDataConfig, defaultConfig$8 as defaultPieConfig, defaultConfig as defaultQueryValueConfig, defaultConfig$3 as defaultScatterConfig, defaultConfig$2 as defaultTableConfig, defaultConfig$1 as defaultTimeRangeOverrideConfig, defaultConfig$6 as defaultValueConfig, defaultConfig$5 as defaultValueControlsConfig, getDefaultValueConfig, getHighlightHex, isAggrOrRollupFunction, resolveHeaderStyle, resolveHighlight, sentioColors, sentioTheme, sentioThemeDark, sortMetricByName, useLabelSearch, useLabelSearchContext };
1840
+ interface Props$8 {
1841
+ open: boolean;
1842
+ onClose: () => void;
1843
+ dashboardId?: string;
1844
+ json: string;
1845
+ onBeforeMount?: BeforeMount;
1846
+ }
1847
+ declare function ExportDashboardDialog({ open, onClose, dashboardId, json, onBeforeMount }: Props$8): react_jsx_runtime.JSX.Element;
1848
+
1849
+ declare enum ExportType {
1850
+ CURL = "curl",
1851
+ NODE = "node"
1852
+ }
1853
+ interface Props$7 {
1854
+ open: boolean;
1855
+ onClose: () => void;
1856
+ /** Request body to render; identifying keys are stripped unless `noOmit`. */
1857
+ payload: Record<string, unknown>;
1858
+ /** API base (e.g. https://app.sentio.xyz). Resolved & injected by the consumer. */
1859
+ apiHost?: string;
1860
+ apiUrl?: string;
1861
+ headers?: Record<string, unknown>;
1862
+ defaultType?: ExportType;
1863
+ noOmit?: boolean;
1864
+ /** Register the monaco theme before mount (injected by the consumer). */
1865
+ onBeforeMount?: BeforeMount;
1866
+ }
1867
+ declare function CurlDialog({ open, onClose, payload, apiHost, apiUrl, headers, defaultType, noOmit, onBeforeMount }: Props$7): react_jsx_runtime.JSX.Element;
1868
+
1869
+ /** Escape single quotes so a JSON body survives inside a single-quoted shell string. */
1870
+ declare function escapeBody(body: unknown): unknown;
1871
+ declare function generateNodeCode(url: string, data: unknown, headers?: Record<string, unknown>, apiKey?: string, method?: string, apiKeyPosition?: 'header' | 'param'): string;
1872
+ declare function generateCurlCode(url: string, data: unknown, headers?: Record<string, unknown>, apiKey?: string, method?: string, apiKeyPosition?: 'header' | 'param'): string;
1873
+
1874
+ interface Props$6 {
1875
+ creator?: UserInfoLike;
1876
+ updater?: UserInfoLike;
1877
+ /** Fallback project-owner display (used when neither creator nor updater is set). */
1878
+ ownerName?: string;
1879
+ ownerAvatarUrl?: string;
1880
+ /** When provided, tooltip user names become clickable (dash mode). */
1881
+ onNavigateToUser?: (username: string) => void;
1882
+ }
1883
+ declare const UserInfo: ({ avatarSrc, avatarAlt, username, containerClassName }: {
1884
+ avatarSrc?: string;
1885
+ avatarAlt?: string;
1886
+ username?: string;
1887
+ containerClassName?: string;
1888
+ }) => react_jsx_runtime.JSX.Element;
1889
+ declare const PanelOwner: ({ creator, updater, ownerName, ownerAvatarUrl, onNavigateToUser }: Props$6) => react_jsx_runtime.JSX.Element | null;
1890
+
1891
+ declare const defaultMetricChart: ChartLike;
1892
+ declare const defaultNoteChart: ChartLike;
1893
+ declare const defaultAnalyticChart: ChartLike;
1894
+ declare const defaultInsightChart: ChartLike;
1895
+ declare const defaultEventChart: ChartLike;
1896
+ declare const defaultGroupChart: ChartLike;
1897
+ declare const defaultRetentionChart: ChartLike;
1898
+ declare const defaultSqlChart: ChartLike;
1899
+ type RouterQuery$1 = {
1900
+ [key: string]: string | string[] | undefined;
1901
+ };
1902
+ interface Props$5 {
1903
+ allowEdit: boolean;
1904
+ saving: boolean;
1905
+ onNewPanel: (chart: ChartLike) => void;
1906
+ onImportPanel: () => void;
1907
+ /** Current route params used to build SQL/insights "new panel" links. Injected by the consumer. */
1908
+ routerQuery?: RouterQuery$1;
1909
+ generateLinkHref?: (chartType: ChartTypeLike, datasource: DataSourceTypeLike, query: RouterQuery$1) => string;
1910
+ }
1911
+ declare const AddPanel: react.ForwardRefExoticComponent<Props$5 & react.RefAttributes<unknown>>;
1912
+
1913
+ type RouterQuery = {
1914
+ [key: string]: string | string[] | undefined;
1915
+ };
1916
+ interface Props$4 extends React.ComponentProps<typeof SlideOver> {
1917
+ onSelect?: (type: string) => void;
1918
+ /** Current route params used to build "new panel" links. Injected by the consumer. */
1919
+ routerQuery?: RouterQuery;
1920
+ generateLinkHref?: (chartType: ChartTypeLike, datasource: DataSourceTypeLike, query: RouterQuery) => string;
1921
+ allowImport?: boolean;
1922
+ }
1923
+ declare const AddPanelSlideover: ({ open, onClose, onSelect, routerQuery, generateLinkHref, allowImport }: Props$4) => react_jsx_runtime.JSX.Element;
1924
+
1925
+ interface Props$3 {
1926
+ onMenuSelect: (selectKey: string) => void;
1927
+ allowEdit?: boolean;
1928
+ allowViewPanel?: boolean;
1929
+ allowExport?: boolean;
1930
+ allowFullScreen?: boolean;
1931
+ allowEmbed?: boolean;
1932
+ /** Whether "Export as API" (curl) is available. Injected by the consumer (tier/user-aware). */
1933
+ canExportCurl?: boolean;
1934
+ /** Hint shown when curl export is disabled. Injected by the consumer. */
1935
+ exportCurlHint?: ReactNode;
1936
+ }
1937
+ declare const DashboardButtonsMemo: react.MemoExoticComponent<({ allowEdit, onMenuSelect, allowExport, allowFullScreen, allowViewPanel, allowEmbed, canExportCurl, exportCurlHint }: Props$3) => react_jsx_runtime.JSX.Element>;
1938
+
1939
+ interface Props$2 {
1940
+ allowEdit?: boolean;
1941
+ onSelect: (key: string, event: MouseEvent) => void;
1942
+ allowEmbed?: boolean;
1943
+ /** Whether the "Export as API" (curl) action is available. Injected by the consumer (tier/user-aware). */
1944
+ canExportCurl?: boolean;
1945
+ /** Hint shown when curl export is disabled. Injected by the consumer. */
1946
+ exportCurlHint?: ReactNode;
1947
+ }
1948
+ declare function ExportChartMenu({ allowEdit, onSelect, allowEmbed, canExportCurl, exportCurlHint }: Props$2): react_jsx_runtime.JSX.Element;
1949
+
1950
+ interface Props$1 {
1951
+ onSelect: (key: string, event: MouseEvent) => void;
1952
+ }
1953
+ declare function ExtraSettingMenu({ onSelect }: Props$1): react_jsx_runtime.JSX.Element;
1954
+ declare function ReadonlyExtraSettingMenu({ onSelect }: Props$1): react_jsx_runtime.JSX.Element;
1955
+
1956
+ type SupportedLanguages = 'bash' | 'go' | 'javascript' | 'json' | 'python' | 'rust' | 'sql' | 'tsx' | 'typescript' | string;
1957
+ interface Props {
1958
+ value: string;
1959
+ language: SupportedLanguages;
1960
+ showLineNumbers?: boolean;
1961
+ maxHeight?: string;
1962
+ className?: string;
1963
+ /** Register the editor theme (sentio / sentio-dark) before mount. Injected by the consumer. */
1964
+ onBeforeMount?: BeforeMount;
1965
+ }
1966
+ declare const CodeBlockWithTitle: ({ title, icon, value, language, showLineNumbers, maxHeight, className, onBeforeMount }: Props & {
1967
+ title: string;
1968
+ icon?: ReactNode;
1969
+ }) => react_jsx_runtime.JSX.Element;
1970
+
1971
+ export { AddPanel, AddPanelSlideover, AggregateInput, SvgIcon$6 as AreaIcon, type ArgumentDef, ArgumentInput, ArgumentType, BarGaugeChart, type BarGaugeChartProps, BarGaugeControls, SvgIcon$4 as BarGuageIcon, SvgIcon$5 as BarIcon, type ChartConfigLike, ChartLegend, type ChartLike, ChartTooltip, ChartTypeButtonGroup, type ChartTypeLike, CodeBlockWithTitle, type ComputeStatsLike, CurlDialog, DEFAULT_HIGHLIGHT_KEY, DashboardButtonsMemo, type DashboardExtraLike, type DashboardLike, DashboardRefresh, type DashboardSharingLike, type DashboardVisibilityLike, DataControls, type DataSourceTypeLike, type EChartsHandle, type EChartsOption, EditDashboardDialog, EditGroupDialog, ErrorChart, EventsFunctionCategories, EventsFunctionMap, ExportChartMenu, ExportDashboardDialog, ExportType, ExtraSettingMenu, type FunctionDef, FunctionInput, FunctionMap, FunctionsCategories, FunctionsPanel, type GroupLike, type GroupStyleLike, HIGHLIGHT_COLORS, type HighlightColorKey, type HighlightColorMeta, ImportPanelDialog, LabelControls, LabelSearchProvider, LabelsInput, type LayoutItemLike, type LayoutsLike, LineControls, SvgIcon$7 as LineIcon, type MarkArea, type MarkLine, MarkerControls, type NoteAlignmentLike, type NoteFontSizeLike, type NoteLike, type NoteVerticalAlignmentLike, type OverlayGraphLike, type PanelLike, PanelOwner, PieChart, PieChartControls, type PieChartProps, SvgIcon$3 as PieIcon, type PieSeriesInput, QueryValueChart, type QueryValueChartProps, type QueryValueConfigLike, QueryValueControls, SvgIcon$2 as QueryValueIcon, ReactEChartsBase, type ReactEChartsProps, ReadonlyExtraSettingMenu, RefreshButton, RefreshContext, type ResolvedHighlight, type ResponsiveLayoutsLike, ScatterChartTooltip, ScatterControls, SvgIcon$1 as ScatterIcon, type SeriesConfigLike, SeriesControls, ShareDashboardDialog, type SharingConfigLike, SystemLabels, TableControls, SvgIcon as TableIcon, type TemplateVariableLike, type TemplateViewLike, type TimeLike, type TimeRangeLike, TimeRangeOverride, type TimeRangeOverrideLike, TimeSeriesChart, type TimeSeriesChartProps, UserInfo, type UserInfoLike, ValueControls, type ValueFormatter, ValueFormatters, ValueOptions, ValueStringMapping, type ViewActionContext, XAxisControls, type YAxisConfigLike, YaxisControls, defaultAnalyticChart, defaultConfig$7 as defaultBarGaugeConfig, defaultConfig$4 as defaultDataConfig, defaultEventChart, defaultGroupChart, defaultInsightChart, defaultMetricChart, defaultNoteChart, defaultConfig$8 as defaultPieConfig, defaultConfig as defaultQueryValueConfig, defaultRetentionChart, defaultConfig$3 as defaultScatterConfig, defaultSqlChart, defaultConfig$2 as defaultTableConfig, defaultConfig$1 as defaultTimeRangeOverrideConfig, defaultConfig$6 as defaultValueConfig, defaultConfig$5 as defaultValueControlsConfig, escapeBody, generateCurlCode, generateNodeCode, getDefaultValueConfig, getHighlightHex, isAggrOrRollupFunction, resolveHeaderStyle, resolveHighlight, sentioColors, sentioTheme, sentioThemeDark, sortMetricByName, useLabelSearch, useLabelSearchContext };