@sentio/ui-dashboard 0.3.12 → 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,7 +1,7 @@
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';
@@ -92,7 +92,14 @@ interface GroupLike {
92
92
  /** Palette key (e.g. "green", "purple"); empty keeps the theme default. */
93
93
  highlightColor?: string;
94
94
  }
95
- /** 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. */
96
103
  interface PanelLike {
97
104
  id?: string;
98
105
  name?: string;
@@ -100,8 +107,8 @@ interface PanelLike {
100
107
  chart?: ChartLike;
101
108
  /** Non-empty => renders inside the group panel with this id. */
102
109
  groupId?: string;
103
- creator?: unknown;
104
- updater?: unknown;
110
+ creator?: UserInfoLike;
111
+ updater?: UserInfoLike;
105
112
  }
106
113
  /** A dashboard. `sharing` kept opaque until the share dialog is migrated. */
107
114
  interface DashboardLike {
@@ -466,12 +473,12 @@ interface SeriesLike<T = Date> {
466
473
  smooth?: boolean;
467
474
  }
468
475
 
469
- interface Props$C {
476
+ interface Props$K {
470
477
  metric?: MetricInfoLike;
471
478
  value: QueryLike;
472
479
  onChange: (value: QueryLike) => void;
473
480
  }
474
- declare function AggregateInput({ metric, value, onChange }: Props$C): react_jsx_runtime.JSX.Element;
481
+ declare function AggregateInput({ metric, value, onChange }: Props$K): react_jsx_runtime.JSX.Element;
475
482
 
476
483
  declare enum ArgumentType {
477
484
  String = 0,
@@ -506,28 +513,28 @@ declare const EventsFunctionMap: {
506
513
  [name: string]: FunctionDef;
507
514
  };
508
515
 
509
- interface Props$B {
516
+ interface Props$J {
510
517
  argument: ArgumentDef;
511
518
  value?: ArgumentLike;
512
519
  onChange?: (value: ArgumentLike) => void;
513
520
  className?: string;
514
521
  }
515
- declare function ArgumentInput({ className, argument, value, onChange }: Props$B): react_jsx_runtime.JSX.Element;
522
+ declare function ArgumentInput({ className, argument, value, onChange }: Props$J): react_jsx_runtime.JSX.Element;
516
523
 
517
- interface Props$A {
524
+ interface Props$I {
518
525
  value: QueryLike;
519
526
  onChange: (value: QueryLike) => void;
520
527
  }
521
- declare function FunctionInput({ value, onChange }: Props$A): react_jsx_runtime.JSX.Element;
528
+ declare function FunctionInput({ value, onChange }: Props$I): react_jsx_runtime.JSX.Element;
522
529
 
523
- interface Props$z {
530
+ interface Props$H {
524
531
  onClick: (func: FunctionDef) => void;
525
532
  functionCategories?: typeof FunctionsCategories;
526
533
  defaultFunc?: string;
527
534
  }
528
- declare function FunctionsPanel({ onClick, functionCategories, defaultFunc }: Props$z): react_jsx_runtime.JSX.Element;
535
+ declare function FunctionsPanel({ onClick, functionCategories, defaultFunc }: Props$H): react_jsx_runtime.JSX.Element;
529
536
 
530
- interface Props$y {
537
+ interface Props$G {
531
538
  metric?: MetricInfoLike;
532
539
  value: QueryLike;
533
540
  onChange: (value: QueryLike) => void;
@@ -537,7 +544,7 @@ interface Props$y {
537
544
  small?: boolean;
538
545
  useRegex?: boolean;
539
546
  }
540
- declare function LabelsInput({ value, metric, variables, onChange, small, useRegex }: Props$y): react_jsx_runtime.JSX.Element;
547
+ declare function LabelsInput({ value, metric, variables, onChange, small, useRegex }: Props$G): react_jsx_runtime.JSX.Element;
541
548
 
542
549
  declare const SystemLabels: {
543
550
  field: string;
@@ -600,7 +607,7 @@ type SeriesFinder = {
600
607
  };
601
608
  declare const ReactEChartsBase: react__default.ForwardRefExoticComponent<ReactEChartsProps & react__default.RefAttributes<EChartsHandle>>;
602
609
 
603
- interface Props$x {
610
+ interface Props$F {
604
611
  legend: string[];
605
612
  legendSelected: Record<string, boolean>;
606
613
  returnedSeries?: number;
@@ -608,7 +615,7 @@ interface Props$x {
608
615
  onRendered: (v: boolean) => void;
609
616
  chartHandle?: EChartsHandle;
610
617
  }
611
- declare const ChartLegend: ({ legend, legendSelected, returnedSeries, totalSeries, onRendered, chartHandle }: Props$x) => react_jsx_runtime.JSX.Element;
618
+ declare const ChartLegend: ({ legend, legendSelected, returnedSeries, totalSeries, onRendered, chartHandle }: Props$F) => react_jsx_runtime.JSX.Element;
612
619
 
613
620
  declare const RefreshContext: react.Context<{
614
621
  refresh?: () => void;
@@ -616,14 +623,14 @@ declare const RefreshContext: react.Context<{
616
623
  }>;
617
624
  declare const RefreshButton: (props: Partial<ButtonProps>) => react_jsx_runtime.JSX.Element | null;
618
625
 
619
- type Props$w = {
626
+ type Props$E = {
620
627
  value: ChartTypeLike;
621
628
  onChange: (value: ChartTypeLike) => void;
622
629
  small?: boolean;
623
630
  };
624
- declare const ChartTypeButtonGroup: ({ value, onChange, small }: Props$w) => react_jsx_runtime.JSX.Element;
631
+ declare const ChartTypeButtonGroup: ({ value, onChange, small }: Props$E) => react_jsx_runtime.JSX.Element;
625
632
 
626
- interface Props$v {
633
+ interface Props$D {
627
634
  data: any;
628
635
  compareTimeDuration?: DurationLike;
629
636
  numberFormatter: (value: number, seriesId?: string) => string;
@@ -636,9 +643,9 @@ interface Props$v {
636
643
  viewUsersDisabled?: (seriesId: string, seriesIndex: number) => boolean;
637
644
  isFixed?: boolean;
638
645
  }
639
- declare function ChartTooltip({ data, numberFormatter, compareTimeDuration, highlightSeriesId, title, showTotal, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed }: Props$v): 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;
640
647
 
641
- interface Props$u {
648
+ interface Props$C {
642
649
  data: any;
643
650
  compareTimeDuration?: DurationLike;
644
651
  numberFormatter: (value: number) => string;
@@ -651,7 +658,7 @@ interface Props$u {
651
658
  isFixed?: boolean;
652
659
  sizeTitle?: string;
653
660
  }
654
- declare function ScatterChartTooltip({ data, numberFormatter, highlightSeriesId, title, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed, sizeTitle }: Props$u): 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;
655
662
 
656
663
  /** Minimal shape consumed from a computed series — only name + first data point. */
657
664
  interface PieSeriesInput {
@@ -804,42 +811,42 @@ interface TimeSeriesChartProps {
804
811
  }
805
812
  declare const TimeSeriesChart: react.ForwardRefExoticComponent<TimeSeriesChartProps & react.RefAttributes<EChartsHandle>>;
806
813
 
807
- interface Props$t {
814
+ interface Props$B {
808
815
  config?: LineConfigLike;
809
816
  defaultOpen?: boolean;
810
817
  onChange: (config: LineConfigLike) => void;
811
818
  }
812
- declare const LineControls: ({ config, defaultOpen, onChange }: Props$t) => react_jsx_runtime.JSX.Element;
819
+ declare const LineControls: ({ config, defaultOpen, onChange }: Props$B) => react_jsx_runtime.JSX.Element;
813
820
 
814
- interface Props$s {
821
+ interface Props$A {
815
822
  config?: LabelConfigLike;
816
823
  setConfig: (value: LabelConfigLike) => void;
817
824
  defaultOpen?: boolean;
818
825
  }
819
- declare const LabelControls: ({ config, setConfig, defaultOpen }: Props$s) => react_jsx_runtime.JSX.Element;
826
+ declare const LabelControls: ({ config, setConfig, defaultOpen }: Props$A) => react_jsx_runtime.JSX.Element;
820
827
 
821
- interface Props$r {
828
+ interface Props$z {
822
829
  config?: PieConfigLike;
823
830
  defaultOpen?: boolean;
824
831
  onChange: (config: PieConfigLike) => void;
825
832
  }
826
833
  declare const defaultConfig$8: PieConfigLike;
827
- declare function PieChartControls({ config, defaultOpen, onChange }: Props$r): react_jsx_runtime.JSX.Element;
834
+ declare function PieChartControls({ config, defaultOpen, onChange }: Props$z): react_jsx_runtime.JSX.Element;
828
835
 
829
- interface Props$q {
836
+ interface Props$y {
830
837
  config?: BarGaugeConfigLike;
831
838
  defaultOpen?: boolean;
832
839
  onChange: (config: BarGaugeConfigLike) => void;
833
840
  }
834
841
  declare const defaultConfig$7: BarGaugeConfigLike;
835
- declare function BarGaugeControls({ config, defaultOpen, onChange }: Props$q): react_jsx_runtime.JSX.Element;
842
+ declare function BarGaugeControls({ config, defaultOpen, onChange }: Props$y): react_jsx_runtime.JSX.Element;
836
843
 
837
844
  interface ValueFormatter {
838
845
  label: string;
839
846
  value: ValueFormatterLike;
840
847
  }
841
848
  declare const ValueFormatters: ValueFormatter[];
842
- interface Props$p {
849
+ interface Props$x {
843
850
  config: ValueConfigLike;
844
851
  defaultOpen?: boolean;
845
852
  onChange: (config: ValueConfigLike) => void;
@@ -848,9 +855,9 @@ interface Props$p {
848
855
  showSuffix?: boolean;
849
856
  }
850
857
  declare const defaultConfig$6: ValueConfigLike;
851
- declare const ValueOptions: ({ config, onChange, formatters, showPrefix, showSuffix }: Props$p) => react_jsx_runtime.JSX.Element;
858
+ declare const ValueOptions: ({ config, onChange, formatters, showPrefix, showSuffix }: Props$x) => react_jsx_runtime.JSX.Element;
852
859
 
853
- interface Props$o {
860
+ interface Props$w {
854
861
  config?: ValueConfigLike;
855
862
  defaultOpen?: boolean;
856
863
  onChange: (config: ValueConfigLike) => void;
@@ -859,15 +866,15 @@ interface Props$o {
859
866
  showSuffix?: boolean;
860
867
  }
861
868
  declare const defaultConfig$5: ValueConfigLike;
862
- declare const ValueControls: ({ config, defaultOpen, onChange, formatters, showPrefix, showSuffix }: Props$o) => react_jsx_runtime.JSX.Element;
869
+ declare const ValueControls: ({ config, defaultOpen, onChange, formatters, showPrefix, showSuffix }: Props$w) => react_jsx_runtime.JSX.Element;
863
870
 
864
- interface Props$n {
871
+ interface Props$v {
865
872
  rules: MappingRuleLike[];
866
873
  onChange: (rules: MappingRuleLike[]) => void;
867
874
  }
868
- declare function ValueStringMapping({ rules, onChange }: Props$n): react_jsx_runtime.JSX.Element;
875
+ declare function ValueStringMapping({ rules, onChange }: Props$v): react_jsx_runtime.JSX.Element;
869
876
 
870
- interface Props$m {
877
+ interface Props$u {
871
878
  yAxis?: YAxisConfigLike;
872
879
  setYAxis: (yAxis: YAxisConfigLike) => void;
873
880
  defaultOpen?: boolean;
@@ -880,9 +887,9 @@ interface Props$m {
880
887
  supportReset?: boolean;
881
888
  panelTitle?: string;
882
889
  }
883
- declare function YaxisControls({ yAxis, setYAxis, defaultOpen, columnSelect, supportSetName, supportSetMinMax, supportStackSeries, supportAlwaysShowZero, supportReset, panelTitle }: Props$m): 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;
884
891
 
885
- interface Props$l {
892
+ interface Props$t {
886
893
  xAxis?: XAxisConfigLike;
887
894
  setXAxis: (val?: XAxisConfigLike) => void;
888
895
  defaultOpen?: boolean;
@@ -895,15 +902,15 @@ interface Props$l {
895
902
  supportSort?: boolean;
896
903
  supportSetType?: boolean;
897
904
  }
898
- declare const XAxisControls: ({ xAxis, setXAxis, defaultOpen, columnSelect, columnIsNonTime, panelTitle, supportName, supportSort, supportSetType }: Props$l) => 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;
899
906
 
900
- interface Props$k {
907
+ interface Props$s {
901
908
  markers?: MarkerLike[];
902
909
  onChange: (v: MarkerLike[]) => void;
903
910
  }
904
- declare function MarkerControls({ markers, onChange }: Props$k): react_jsx_runtime.JSX.Element;
911
+ declare function MarkerControls({ markers, onChange }: Props$s): react_jsx_runtime.JSX.Element;
905
912
 
906
- interface Props$j {
913
+ interface Props$r {
907
914
  defaultOpen?: boolean;
908
915
  onChange: (config: DataConfigLike) => void;
909
916
  chartConfig?: ChartConfigLike;
@@ -911,9 +918,9 @@ interface Props$j {
911
918
  defaultSeriesLimit?: number;
912
919
  }
913
920
  declare const defaultConfig$4: DataConfigLike;
914
- declare function DataControls({ defaultOpen, onChange, chartConfig, defaultSeriesLimit }: Props$j): react_jsx_runtime.JSX.Element;
921
+ declare function DataControls({ defaultOpen, onChange, chartConfig, defaultSeriesLimit }: Props$r): react_jsx_runtime.JSX.Element;
915
922
 
916
- interface Props$i {
923
+ interface Props$q {
917
924
  config?: ScatterConfigLike;
918
925
  defaultOpen?: boolean;
919
926
  onChange: (config: ScatterConfigLike) => void;
@@ -929,9 +936,9 @@ interface Props$i {
929
936
  }) => ReactNode;
930
937
  }
931
938
  declare const defaultConfig$3: ScatterConfigLike;
932
- declare function ScatterControls({ config, defaultOpen, onChange, columnSelect, colorPicker }: Props$i): react_jsx_runtime.JSX.Element;
939
+ declare function ScatterControls({ config, defaultOpen, onChange, columnSelect, colorPicker }: Props$q): react_jsx_runtime.JSX.Element;
933
940
 
934
- interface Props$h {
941
+ interface Props$p {
935
942
  config?: TableConfigLike;
936
943
  defaultOpen?: boolean;
937
944
  onChange: (config: TableConfigLike) => void;
@@ -939,7 +946,7 @@ interface Props$h {
939
946
  }
940
947
  declare const defaultConfig$2: TableConfigLike;
941
948
  declare function getDefaultValueConfig(type?: ColumnTypeLike): ValueConfigLike;
942
- declare function TableControls({ config, defaultOpen, onChange, data }: Props$h): react_jsx_runtime.JSX.Element;
949
+ declare function TableControls({ config, defaultOpen, onChange, data }: Props$p): react_jsx_runtime.JSX.Element;
943
950
 
944
951
  declare const sentioColors: {
945
952
  light: {
@@ -1691,62 +1698,62 @@ declare const sentioThemeDark: {
1691
1698
  };
1692
1699
  };
1693
1700
 
1694
- interface Props$g {
1701
+ interface Props$o {
1695
1702
  className?: string;
1696
1703
  }
1697
- declare const SvgIcon$7: ({ className }: Props$g) => react_jsx_runtime.JSX.Element;
1704
+ declare const SvgIcon$7: ({ className }: Props$o) => react_jsx_runtime.JSX.Element;
1698
1705
 
1699
- interface Props$f {
1706
+ interface Props$n {
1700
1707
  className?: string;
1701
1708
  }
1702
- declare const SvgIcon$6: ({ className }: Props$f) => react_jsx_runtime.JSX.Element;
1709
+ declare const SvgIcon$6: ({ className }: Props$n) => react_jsx_runtime.JSX.Element;
1703
1710
 
1704
- interface Props$e {
1711
+ interface Props$m {
1705
1712
  className?: string;
1706
1713
  }
1707
- declare const SvgIcon$5: ({ className }: Props$e) => react_jsx_runtime.JSX.Element;
1714
+ declare const SvgIcon$5: ({ className }: Props$m) => react_jsx_runtime.JSX.Element;
1708
1715
 
1709
- interface Props$d {
1716
+ interface Props$l {
1710
1717
  className?: string;
1711
1718
  }
1712
- declare const SvgIcon$4: ({ className }: Props$d) => react_jsx_runtime.JSX.Element;
1719
+ declare const SvgIcon$4: ({ className }: Props$l) => react_jsx_runtime.JSX.Element;
1713
1720
 
1714
- interface Props$c {
1721
+ interface Props$k {
1715
1722
  className?: string;
1716
1723
  }
1717
- declare const SvgIcon$3: ({ className }: Props$c) => react_jsx_runtime.JSX.Element;
1724
+ declare const SvgIcon$3: ({ className }: Props$k) => react_jsx_runtime.JSX.Element;
1718
1725
 
1719
- interface Props$b {
1726
+ interface Props$j {
1720
1727
  className?: string;
1721
1728
  }
1722
- declare const SvgIcon$2: ({ className }: Props$b) => react_jsx_runtime.JSX.Element;
1729
+ declare const SvgIcon$2: ({ className }: Props$j) => react_jsx_runtime.JSX.Element;
1723
1730
 
1724
- interface Props$a {
1731
+ interface Props$i {
1725
1732
  className?: string;
1726
1733
  }
1727
- declare const SvgIcon$1: ({ className }: Props$a) => react_jsx_runtime.JSX.Element;
1734
+ declare const SvgIcon$1: ({ className }: Props$i) => react_jsx_runtime.JSX.Element;
1728
1735
 
1729
- interface Props$9 {
1736
+ interface Props$h {
1730
1737
  className?: string;
1731
1738
  }
1732
- declare const SvgIcon: ({ className }: Props$9) => react_jsx_runtime.JSX.Element;
1739
+ declare const SvgIcon: ({ className }: Props$h) => react_jsx_runtime.JSX.Element;
1733
1740
 
1734
- interface Props$8 {
1741
+ interface Props$g {
1735
1742
  dashboard?: DashboardLike;
1736
1743
  open: boolean;
1737
1744
  onClose: () => void;
1738
1745
  onUpdate: (data: DashboardLike) => Promise<void>;
1739
1746
  }
1740
- declare const EditDashboardDialog: ({ dashboard, open, onClose, onUpdate }: Props$8) => react_jsx_runtime.JSX.Element;
1747
+ declare const EditDashboardDialog: ({ dashboard, open, onClose, onUpdate }: Props$g) => react_jsx_runtime.JSX.Element;
1741
1748
 
1742
- interface Props$7 {
1749
+ interface Props$f {
1743
1750
  data?: any;
1744
1751
  logoSrc?: string;
1745
1752
  onNavigateToDatasource?: () => void;
1746
1753
  }
1747
- declare const ErrorChart: react__default.MemoExoticComponent<({ data, logoSrc, onNavigateToDatasource }: Props$7) => react_jsx_runtime.JSX.Element>;
1754
+ declare const ErrorChart: react__default.MemoExoticComponent<({ data, logoSrc, onNavigateToDatasource }: Props$f) => react_jsx_runtime.JSX.Element>;
1748
1755
 
1749
- interface Props$6 {
1756
+ interface Props$e {
1750
1757
  open: boolean;
1751
1758
  onClose: () => void;
1752
1759
  title: string;
@@ -1758,15 +1765,15 @@ interface Props$6 {
1758
1765
  highlightColor: string;
1759
1766
  }) => void;
1760
1767
  }
1761
- declare function EditGroupDialog({ open, onClose, title, style, highlightColor, onSave }: Props$6): react_jsx_runtime.JSX.Element;
1768
+ declare function EditGroupDialog({ open, onClose, title, style, highlightColor, onSave }: Props$e): react_jsx_runtime.JSX.Element;
1762
1769
 
1763
- interface Props$5 {
1770
+ interface Props$d {
1764
1771
  stats?: ComputeStatsLike;
1765
1772
  onRefresh: () => Promise<void>;
1766
1773
  }
1767
- declare const DashboardRefresh: ({ stats, onRefresh }: Props$5) => react_jsx_runtime.JSX.Element;
1774
+ declare const DashboardRefresh: ({ stats, onRefresh }: Props$d) => react_jsx_runtime.JSX.Element;
1768
1775
 
1769
- interface Props$4 {
1776
+ interface Props$c {
1770
1777
  open: boolean;
1771
1778
  initData?: DashboardSharingLike;
1772
1779
  onUnshare?: () => void;
@@ -1776,9 +1783,9 @@ interface Props$4 {
1776
1783
  endTime?: DateTimeValue;
1777
1784
  tz?: string;
1778
1785
  }
1779
- declare const ShareDashboardDialog: ({ open, initData, onUnshare, onClose, onConfigChange, startTime, endTime, tz }: Props$4) => react_jsx_runtime.JSX.Element;
1786
+ declare const ShareDashboardDialog: ({ open, initData, onUnshare, onClose, onConfigChange, startTime, endTime, tz }: Props$c) => react_jsx_runtime.JSX.Element;
1780
1787
 
1781
- interface Props$3 {
1788
+ interface Props$b {
1782
1789
  config?: TimeRangeOverrideLike;
1783
1790
  onChange: (config: TimeRangeOverrideLike) => void;
1784
1791
  globalStartTime?: DateTimeValue;
@@ -1787,18 +1794,18 @@ interface Props$3 {
1787
1794
  onSetGlobalTimeRange: (start?: DateTimeValue, end?: DateTimeValue, tz?: string) => void;
1788
1795
  }
1789
1796
  declare const defaultConfig$1: TimeRangeOverrideLike;
1790
- declare function TimeRangeOverride({ config, onChange, globalStartTime, globalEndTime, globalTz, onSetGlobalTimeRange }: Props$3): react_jsx_runtime.JSX.Element;
1797
+ declare function TimeRangeOverride({ config, onChange, globalStartTime, globalEndTime, globalTz, onSetGlobalTimeRange }: Props$b): react_jsx_runtime.JSX.Element;
1791
1798
 
1792
- interface Props$2 {
1799
+ interface Props$a {
1793
1800
  config?: ChartConfigLike;
1794
1801
  chartType?: ChartTypeLike;
1795
1802
  setSeriesConfig: (seriesConfig: SeriesConfigLike) => void;
1796
1803
  series: string[];
1797
1804
  enabled?: boolean;
1798
1805
  }
1799
- declare const SeriesControls: ({ config, setSeriesConfig, series, enabled }: Props$2) => react_jsx_runtime.JSX.Element | null;
1806
+ declare const SeriesControls: ({ config, setSeriesConfig, series, enabled }: Props$a) => react_jsx_runtime.JSX.Element | null;
1800
1807
 
1801
- interface Props$1 {
1808
+ interface Props$9 {
1802
1809
  config?: QueryValueConfigLike;
1803
1810
  defaultOpen?: boolean;
1804
1811
  onChange: (config: QueryValueConfigLike) => void;
@@ -1807,7 +1814,7 @@ interface Props$1 {
1807
1814
  }) => void) => ReactNode;
1808
1815
  }
1809
1816
  declare const defaultConfig: QueryValueConfigLike;
1810
- declare function QueryValueControls({ config, defaultOpen, onChange, renderColorSelect }: Props$1): react_jsx_runtime.JSX.Element;
1817
+ declare function QueryValueControls({ config, defaultOpen, onChange, renderColorSelect }: Props$9): react_jsx_runtime.JSX.Element;
1811
1818
 
1812
1819
  type HighlightColorKey = '' | 'blue' | 'cyan' | 'pink' | 'yellow' | 'green' | 'lightblue' | 'purple' | 'red' | 'orange';
1813
1820
  interface HighlightColorMeta {
@@ -1830,13 +1837,135 @@ declare const ImportPanelDialog: ({ show, onClose: _onClose, onSubmit }: {
1830
1837
  onSubmit: (p: PanelLike) => Promise<void>;
1831
1838
  }) => react_jsx_runtime.JSX.Element;
1832
1839
 
1833
- interface Props {
1840
+ interface Props$8 {
1834
1841
  open: boolean;
1835
1842
  onClose: () => void;
1836
1843
  dashboardId?: string;
1837
1844
  json: string;
1838
1845
  onBeforeMount?: BeforeMount;
1839
1846
  }
1840
- declare function ExportDashboardDialog({ open, onClose, dashboardId, json, onBeforeMount }: Props): react_jsx_runtime.JSX.Element;
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;
1841
1970
 
1842
- 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, ExportDashboardDialog, 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 };
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 };