@grafana/scenes 4.5.5--canary.682.8607605361.0 → 4.5.5--canary.674.8612605644.0
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/esm/components/VizPanel/VizPanel.js.map +1 -1
- package/dist/esm/components/VizPanel/VizPanelRenderer.js +2 -0
- package/dist/esm/components/VizPanel/VizPanelRenderer.js.map +1 -1
- package/dist/esm/components/layout/LazyLoader.js.map +1 -1
- package/dist/esm/components/layout/grid/SceneGridLayoutRenderer.js.map +1 -1
- package/dist/esm/core/SceneObjectBase.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersVariable.js.map +1 -1
- package/dist/esm/variables/groupby/GroupByVariable.js.map +1 -1
- package/dist/esm/variables/variants/guards.js.map +1 -1
- package/dist/index.d.ts +48 -45
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _grafana_data from '@grafana/data';
|
|
2
2
|
import { BusEventWithPayload, PanelData, BusEvent, BusEventType, BusEventHandler, TimeRange, DataQueryRequest, DataTransformContext, DataFrame, PanelPlugin, EventBus, DataQuery, DataSourceApi, Registry, RegistryItem, ScopedVars, AdHocVariableFilter, SelectableValue, MetricFindValue, VariableRefresh as VariableRefresh$1, VariableSort, EventFilterOptions, AnnotationEvent, AnnotationQuery, DataTransformerConfig, PanelMenuItem, FieldConfigSource, PanelModel, AbsoluteTimeRange, InterpolateFunction, IconName as IconName$1, FieldConfig, FieldType, FieldValueMatcherConfig } from '@grafana/data';
|
|
3
|
-
import
|
|
4
|
-
import React__default, { CSSProperties, ComponentType } from 'react';
|
|
3
|
+
import React$1, { CSSProperties, ComponentType } from 'react';
|
|
5
4
|
import * as rxjs from 'rxjs';
|
|
6
5
|
import { Observable, Unsubscribable, MonoTypeOperatorFunction, Subscription, ReplaySubject } from 'rxjs';
|
|
7
6
|
import * as _grafana_schema from '@grafana/schema';
|
|
@@ -153,7 +152,7 @@ interface SceneLayoutChildOptions {
|
|
|
153
152
|
interface SceneComponentProps<T> {
|
|
154
153
|
model: T;
|
|
155
154
|
}
|
|
156
|
-
type SceneComponent<TModel> = (props: SceneComponentProps<TModel>) =>
|
|
155
|
+
type SceneComponent<TModel> = (props: SceneComponentProps<TModel>) => React$1.ReactElement | null;
|
|
157
156
|
interface SceneDataState extends SceneObjectState {
|
|
158
157
|
data?: PanelData;
|
|
159
158
|
}
|
|
@@ -188,7 +187,7 @@ interface SceneObject<TState extends SceneObjectState = SceneObjectState> {
|
|
|
188
187
|
/** Returns a deep clone this object and all its children */
|
|
189
188
|
clone(state?: Partial<TState>): this;
|
|
190
189
|
/** A React component to use for rendering the object */
|
|
191
|
-
Component(props: SceneComponentProps<SceneObject<TState>>):
|
|
190
|
+
Component(props: SceneComponentProps<SceneObject<TState>>): React$1.ReactElement | null;
|
|
192
191
|
/** Force a re-render, should only be needed when variable values change */
|
|
193
192
|
forceRender(): void;
|
|
194
193
|
/** Returns a SceneObjectRef that will resolve to this object */
|
|
@@ -553,7 +552,7 @@ declare class AdHocFiltersVariable extends SceneObjectBase<AdHocFiltersVariableS
|
|
|
553
552
|
*/
|
|
554
553
|
private _getSceneQueries;
|
|
555
554
|
}
|
|
556
|
-
declare function AdHocFiltersVariableRenderer({ model }: SceneComponentProps<AdHocFiltersVariable>):
|
|
555
|
+
declare function AdHocFiltersVariableRenderer({ model }: SceneComponentProps<AdHocFiltersVariable>): JSX.Element;
|
|
557
556
|
|
|
558
557
|
interface ConstantVariableState extends SceneVariableState {
|
|
559
558
|
value: VariableValue;
|
|
@@ -690,7 +689,7 @@ declare class CustomVariable extends MultiValueVariable<CustomVariableState> {
|
|
|
690
689
|
protected _variableDependency: VariableDependencyConfig<CustomVariableState>;
|
|
691
690
|
constructor(initialState: Partial<CustomVariableState>);
|
|
692
691
|
getValueOptions(args: VariableGetOptionsArgs): Observable<VariableValueOption[]>;
|
|
693
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) =>
|
|
692
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
694
693
|
}
|
|
695
694
|
|
|
696
695
|
interface DataSourceVariableState extends MultiValueVariableState {
|
|
@@ -711,7 +710,7 @@ declare class DataSourceVariable extends MultiValueVariable<DataSourceVariableSt
|
|
|
711
710
|
protected _variableDependency: VariableDependencyConfig<DataSourceVariableState>;
|
|
712
711
|
constructor(initialState: Partial<DataSourceVariableState>);
|
|
713
712
|
getValueOptions(args: VariableGetOptionsArgs): Observable<VariableValueOption[]>;
|
|
714
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) =>
|
|
713
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
715
714
|
}
|
|
716
715
|
|
|
717
716
|
interface IntervalVariableState extends SceneVariableState {
|
|
@@ -734,7 +733,7 @@ declare class IntervalVariable extends SceneObjectBase<IntervalVariableState> im
|
|
|
734
733
|
private getAutoRefreshInteval;
|
|
735
734
|
_onChange: (value: SelectableValue<string>) => void;
|
|
736
735
|
validateAndUpdate(): Observable<ValidateAndUpdateResult>;
|
|
737
|
-
static Component: ({ model }: SceneComponentProps<IntervalVariable>) =>
|
|
736
|
+
static Component: ({ model }: SceneComponentProps<IntervalVariable>) => JSX.Element;
|
|
738
737
|
}
|
|
739
738
|
|
|
740
739
|
interface TextBoxVariableState extends SceneVariableState {
|
|
@@ -749,7 +748,7 @@ declare class TextBoxVariable extends SceneObjectBase<TextBoxVariableState> impl
|
|
|
749
748
|
[x: string]: string;
|
|
750
749
|
};
|
|
751
750
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
752
|
-
static Component: ({ model }: SceneComponentProps<TextBoxVariable>) =>
|
|
751
|
+
static Component: ({ model }: SceneComponentProps<TextBoxVariable>) => JSX.Element;
|
|
753
752
|
}
|
|
754
753
|
|
|
755
754
|
interface QueryRunnerState extends SceneObjectState {
|
|
@@ -848,7 +847,7 @@ declare class QueryVariable extends MultiValueVariable<QueryVariableState> {
|
|
|
848
847
|
private getRequest;
|
|
849
848
|
onSearchChange: (searchFilter: string) => void;
|
|
850
849
|
private _updateOptionsBasedOnSearchFilter;
|
|
851
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) =>
|
|
850
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
852
851
|
}
|
|
853
852
|
|
|
854
853
|
interface GroupByVariableState extends MultiValueVariableState {
|
|
@@ -910,7 +909,7 @@ declare class GroupByVariable extends MultiValueVariable<GroupByVariableState> {
|
|
|
910
909
|
*/
|
|
911
910
|
private _getSceneQueries;
|
|
912
911
|
}
|
|
913
|
-
declare function GroupByVariableRenderer({ model }: SceneComponentProps<MultiValueVariable>):
|
|
912
|
+
declare function GroupByVariableRenderer({ model }: SceneComponentProps<MultiValueVariable>): JSX.Element;
|
|
914
913
|
|
|
915
914
|
declare function isAdHocVariable(variable: SceneVariable): variable is AdHocFiltersVariable;
|
|
916
915
|
declare function isConstantVariable(variable: SceneVariable): variable is ConstantVariable;
|
|
@@ -1197,7 +1196,7 @@ declare class AnnotationsDataLayer extends SceneDataLayerBase<AnnotationsDataLay
|
|
|
1197
1196
|
traceIds?: string[];
|
|
1198
1197
|
};
|
|
1199
1198
|
}
|
|
1200
|
-
declare function AnnotationsDataLayerRenderer({ model }: SceneComponentProps<AnnotationsDataLayer>):
|
|
1199
|
+
declare function AnnotationsDataLayerRenderer({ model }: SceneComponentProps<AnnotationsDataLayer>): JSX.Element;
|
|
1201
1200
|
|
|
1202
1201
|
type index_AnnotationsDataLayer = AnnotationsDataLayer;
|
|
1203
1202
|
declare const index_AnnotationsDataLayer: typeof AnnotationsDataLayer;
|
|
@@ -1295,7 +1294,7 @@ interface SceneDataLayersSetState extends SceneDataLayerProviderState {
|
|
|
1295
1294
|
declare class SceneDataLayerSet extends SceneDataLayerSetBase<SceneDataLayersSetState> implements SceneDataLayerProvider {
|
|
1296
1295
|
constructor(state: Partial<SceneDataLayersSetState>);
|
|
1297
1296
|
private _onActivate;
|
|
1298
|
-
static Component: ({ model }: SceneComponentProps<SceneDataLayerSet>) =>
|
|
1297
|
+
static Component: ({ model }: SceneComponentProps<SceneDataLayerSet>) => JSX.Element;
|
|
1299
1298
|
}
|
|
1300
1299
|
|
|
1301
1300
|
interface SceneDataLayerControlsState extends SceneObjectState {
|
|
@@ -1304,7 +1303,7 @@ declare class SceneDataLayerControls extends SceneObjectBase<SceneDataLayerContr
|
|
|
1304
1303
|
static Component: typeof SceneDataLayerControlsRenderer;
|
|
1305
1304
|
constructor();
|
|
1306
1305
|
}
|
|
1307
|
-
declare function SceneDataLayerControlsRenderer({ model }: SceneComponentProps<SceneDataLayerControls>):
|
|
1306
|
+
declare function SceneDataLayerControlsRenderer({ model }: SceneComponentProps<SceneDataLayerControls>): JSX.Element;
|
|
1308
1307
|
|
|
1309
1308
|
interface SceneDataTransformerState extends SceneDataState {
|
|
1310
1309
|
/**
|
|
@@ -1349,7 +1348,7 @@ interface VariableValueSelectorsState extends SceneObjectState {
|
|
|
1349
1348
|
declare class VariableValueSelectors extends SceneObjectBase<VariableValueSelectorsState> {
|
|
1350
1349
|
static Component: typeof VariableValueSelectorsRenderer;
|
|
1351
1350
|
}
|
|
1352
|
-
declare function VariableValueSelectorsRenderer({ model }: SceneComponentProps<VariableValueSelectors>):
|
|
1351
|
+
declare function VariableValueSelectorsRenderer({ model }: SceneComponentProps<VariableValueSelectors>): JSX.Element;
|
|
1353
1352
|
|
|
1354
1353
|
interface VariableValueControlState extends SceneObjectState {
|
|
1355
1354
|
layout?: ControlsLayout;
|
|
@@ -1359,7 +1358,7 @@ interface VariableValueControlState extends SceneObjectState {
|
|
|
1359
1358
|
declare class VariableValueControl extends SceneObjectBase<VariableValueControlState> {
|
|
1360
1359
|
static Component: typeof VariableValueControlRenderer;
|
|
1361
1360
|
}
|
|
1362
|
-
declare function VariableValueControlRenderer({ model }: SceneComponentProps<VariableValueControl>):
|
|
1361
|
+
declare function VariableValueControlRenderer({ model }: SceneComponentProps<VariableValueControl>): JSX.Element;
|
|
1363
1362
|
|
|
1364
1363
|
declare class SceneVariableSet extends SceneObjectBase<SceneVariableSetState> implements SceneVariables {
|
|
1365
1364
|
/** Variables that have changed in since the activation or since the first manual value change */
|
|
@@ -1461,7 +1460,7 @@ declare class TestVariable extends MultiValueVariable<TestVariableState> {
|
|
|
1461
1460
|
private getOptions;
|
|
1462
1461
|
/** Useful from tests */
|
|
1463
1462
|
signalUpdateCompleted(): void;
|
|
1464
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) =>
|
|
1463
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
1465
1464
|
}
|
|
1466
1465
|
|
|
1467
1466
|
interface LocalValueVariableState extends SceneVariableState {
|
|
@@ -1530,9 +1529,9 @@ declare class EmbeddedScene extends SceneObjectBase<EmbeddedSceneState> {
|
|
|
1530
1529
|
*/
|
|
1531
1530
|
initUrlSync(): void;
|
|
1532
1531
|
}
|
|
1533
|
-
declare function EmbeddedSceneRenderer({ model }: SceneComponentProps<EmbeddedScene>):
|
|
1532
|
+
declare function EmbeddedSceneRenderer({ model }: SceneComponentProps<EmbeddedScene>): JSX.Element;
|
|
1534
1533
|
|
|
1535
|
-
declare function VizPanelRenderer({ model }: SceneComponentProps<VizPanel>):
|
|
1534
|
+
declare function VizPanelRenderer({ model }: SceneComponentProps<VizPanel>): JSX.Element;
|
|
1536
1535
|
|
|
1537
1536
|
interface VizPanelMenuState extends SceneObjectState {
|
|
1538
1537
|
items?: PanelMenuItem[];
|
|
@@ -1542,7 +1541,7 @@ declare class VizPanelMenu extends SceneObjectBase<VizPanelMenuState> {
|
|
|
1542
1541
|
addItem(item: PanelMenuItem): void;
|
|
1543
1542
|
setItems(items: PanelMenuItem[]): void;
|
|
1544
1543
|
}
|
|
1545
|
-
declare function VizPanelMenuRenderer({ model }: SceneComponentProps<VizPanelMenu>):
|
|
1544
|
+
declare function VizPanelMenuRenderer({ model }: SceneComponentProps<VizPanelMenu>): JSX.Element;
|
|
1546
1545
|
|
|
1547
1546
|
interface VizPanelState<TOptions = {}, TFieldConfig = {}> extends SceneObjectState {
|
|
1548
1547
|
/**
|
|
@@ -1560,6 +1559,10 @@ interface VizPanelState<TOptions = {}, TFieldConfig = {}> extends SceneObjectSta
|
|
|
1560
1559
|
* Only shows header on hover, absolutly positioned above the panel.
|
|
1561
1560
|
*/
|
|
1562
1561
|
hoverHeader?: boolean;
|
|
1562
|
+
/**
|
|
1563
|
+
* Offset hoverHeader position on the y axis
|
|
1564
|
+
*/
|
|
1565
|
+
hoverHeaderOffset?: number;
|
|
1563
1566
|
/**
|
|
1564
1567
|
* Defines a menu in the top right of the panel. The menu object is only activated when the dropdown menu itself is shown.
|
|
1565
1568
|
* So the best way to add dynamic menu actions and links is by adding them in a behavior attached to the menu.
|
|
@@ -1646,7 +1649,7 @@ declare class NestedScene extends SceneObjectBase<NestedSceneState> {
|
|
|
1646
1649
|
/** Removes itself from its parent's children array */
|
|
1647
1650
|
onRemove: () => void;
|
|
1648
1651
|
}
|
|
1649
|
-
declare function NestedSceneRenderer({ model }: SceneComponentProps<NestedScene>):
|
|
1652
|
+
declare function NestedSceneRenderer({ model }: SceneComponentProps<NestedScene>): JSX.Element;
|
|
1650
1653
|
|
|
1651
1654
|
interface SceneCanvasTextState extends SceneObjectState {
|
|
1652
1655
|
text: string;
|
|
@@ -1660,7 +1663,7 @@ interface SceneCanvasTextState extends SceneObjectState {
|
|
|
1660
1663
|
*/
|
|
1661
1664
|
declare class SceneCanvasText extends SceneObjectBase<SceneCanvasTextState> {
|
|
1662
1665
|
protected _variableDependency: VariableDependencyConfig<SceneCanvasTextState>;
|
|
1663
|
-
static Component: ({ model }: SceneComponentProps<SceneCanvasText>) =>
|
|
1666
|
+
static Component: ({ model }: SceneComponentProps<SceneCanvasText>) => JSX.Element;
|
|
1664
1667
|
}
|
|
1665
1668
|
|
|
1666
1669
|
interface ToolbarButtonState extends SceneObjectState {
|
|
@@ -1668,7 +1671,7 @@ interface ToolbarButtonState extends SceneObjectState {
|
|
|
1668
1671
|
onClick: () => void;
|
|
1669
1672
|
}
|
|
1670
1673
|
declare class SceneToolbarButton extends SceneObjectBase<ToolbarButtonState> {
|
|
1671
|
-
static Component: ({ model }: SceneComponentProps<SceneToolbarButton>) =>
|
|
1674
|
+
static Component: ({ model }: SceneComponentProps<SceneToolbarButton>) => JSX.Element;
|
|
1672
1675
|
}
|
|
1673
1676
|
interface SceneToolbarInputState extends SceneObjectState {
|
|
1674
1677
|
value?: string;
|
|
@@ -1676,7 +1679,7 @@ interface SceneToolbarInputState extends SceneObjectState {
|
|
|
1676
1679
|
onChange: (value: number) => void;
|
|
1677
1680
|
}
|
|
1678
1681
|
declare class SceneToolbarInput extends SceneObjectBase<SceneToolbarInputState> {
|
|
1679
|
-
static Component: ({ model }: SceneComponentProps<SceneToolbarInput>) =>
|
|
1682
|
+
static Component: ({ model }: SceneComponentProps<SceneToolbarInput>) => JSX.Element;
|
|
1680
1683
|
}
|
|
1681
1684
|
|
|
1682
1685
|
interface SceneTimePickerState extends SceneObjectState {
|
|
@@ -1690,7 +1693,7 @@ declare class SceneTimePicker extends SceneObjectBase<SceneTimePickerState> {
|
|
|
1690
1693
|
onMoveBackward: () => void;
|
|
1691
1694
|
onMoveForward: () => void;
|
|
1692
1695
|
}
|
|
1693
|
-
declare function SceneTimePickerRenderer({ model }: SceneComponentProps<SceneTimePicker>):
|
|
1696
|
+
declare function SceneTimePickerRenderer({ model }: SceneComponentProps<SceneTimePicker>): JSX.Element;
|
|
1694
1697
|
|
|
1695
1698
|
interface SceneRefreshPickerState extends SceneObjectState {
|
|
1696
1699
|
refresh: string;
|
|
@@ -1718,7 +1721,7 @@ declare class SceneRefreshPicker extends SceneObjectBase<SceneRefreshPickerState
|
|
|
1718
1721
|
private calculateAutoRefreshInterval;
|
|
1719
1722
|
private setupIntervalTimer;
|
|
1720
1723
|
}
|
|
1721
|
-
declare function SceneRefreshPickerRenderer({ model }: SceneComponentProps<SceneRefreshPicker>):
|
|
1724
|
+
declare function SceneRefreshPickerRenderer({ model }: SceneComponentProps<SceneRefreshPicker>): JSX.Element;
|
|
1722
1725
|
|
|
1723
1726
|
interface TimeRangeCompareProvider {
|
|
1724
1727
|
getCompareTimeRange(timeRange: TimeRange): TimeRange | undefined;
|
|
@@ -1745,7 +1748,7 @@ declare class SceneTimeRangeCompare extends SceneObjectBase<SceneTimeRangeCompar
|
|
|
1745
1748
|
getUrlState(): SceneObjectUrlValues;
|
|
1746
1749
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
1747
1750
|
}
|
|
1748
|
-
declare function SceneTimeRangeCompareRenderer({ model }: SceneComponentProps<SceneTimeRangeCompare>):
|
|
1751
|
+
declare function SceneTimeRangeCompareRenderer({ model }: SceneComponentProps<SceneTimeRangeCompare>): JSX.Element;
|
|
1749
1752
|
|
|
1750
1753
|
interface SceneByFrameRepeaterState extends SceneObjectState {
|
|
1751
1754
|
body: SceneLayout;
|
|
@@ -1754,7 +1757,7 @@ interface SceneByFrameRepeaterState extends SceneObjectState {
|
|
|
1754
1757
|
declare class SceneByFrameRepeater extends SceneObjectBase<SceneByFrameRepeaterState> {
|
|
1755
1758
|
constructor(state: SceneByFrameRepeaterState);
|
|
1756
1759
|
private performRepeat;
|
|
1757
|
-
static Component: ({ model }: SceneComponentProps<SceneByFrameRepeater>) =>
|
|
1760
|
+
static Component: ({ model }: SceneComponentProps<SceneByFrameRepeater>) => JSX.Element;
|
|
1758
1761
|
}
|
|
1759
1762
|
|
|
1760
1763
|
interface SceneByVariableRepeaterState extends SceneObjectState {
|
|
@@ -1766,13 +1769,13 @@ declare class SceneByVariableRepeater extends SceneObjectBase<SceneByVariableRep
|
|
|
1766
1769
|
protected _variableDependency: VariableDependencyConfig<SceneByVariableRepeaterState>;
|
|
1767
1770
|
constructor(state: SceneByVariableRepeaterState);
|
|
1768
1771
|
private performRepeat;
|
|
1769
|
-
static Component: ({ model }: SceneComponentProps<SceneByVariableRepeater>) =>
|
|
1772
|
+
static Component: ({ model }: SceneComponentProps<SceneByVariableRepeater>) => JSX.Element;
|
|
1770
1773
|
}
|
|
1771
1774
|
|
|
1772
1775
|
declare class SceneControlsSpacer extends SceneObjectBase {
|
|
1773
1776
|
constructor();
|
|
1774
|
-
get Component(): (_props: SceneComponentProps<SceneControlsSpacer>) =>
|
|
1775
|
-
static Component: (_props: SceneComponentProps<SceneControlsSpacer>) =>
|
|
1777
|
+
get Component(): (_props: SceneComponentProps<SceneControlsSpacer>) => JSX.Element;
|
|
1778
|
+
static Component: (_props: SceneComponentProps<SceneControlsSpacer>) => JSX.Element;
|
|
1776
1779
|
}
|
|
1777
1780
|
|
|
1778
1781
|
interface SceneFlexItemStateLike extends SceneFlexItemPlacement, SceneObjectState {
|
|
@@ -1787,7 +1790,7 @@ declare class SceneFlexLayout extends SceneObjectBase<SceneFlexLayoutState> impl
|
|
|
1787
1790
|
toggleDirection(): void;
|
|
1788
1791
|
isDraggable(): boolean;
|
|
1789
1792
|
}
|
|
1790
|
-
declare function SceneFlexLayoutRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexLayout>):
|
|
1793
|
+
declare function SceneFlexLayoutRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexLayout>): JSX.Element;
|
|
1791
1794
|
interface SceneFlexItemPlacement {
|
|
1792
1795
|
wrap?: CSSProperties['flexWrap'];
|
|
1793
1796
|
direction?: CSSProperties['flexDirection'];
|
|
@@ -1819,7 +1822,7 @@ interface SceneFlexItemRenderProps$1<T> extends SceneComponentProps<T> {
|
|
|
1819
1822
|
declare class SceneFlexItem extends SceneObjectBase<SceneFlexItemState> {
|
|
1820
1823
|
static Component: typeof SceneFlexItemRenderer;
|
|
1821
1824
|
}
|
|
1822
|
-
declare function SceneFlexItemRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexItem>):
|
|
1825
|
+
declare function SceneFlexItemRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexItem>): JSX.Element;
|
|
1823
1826
|
|
|
1824
1827
|
interface SceneCSSGridLayoutState extends SceneObjectState, SceneCSSGridLayoutOptions {
|
|
1825
1828
|
children: Array<SceneCSSGridItem | SceneObject>;
|
|
@@ -1863,7 +1866,7 @@ declare class SceneCSSGridLayout extends SceneObjectBase<SceneCSSGridLayoutState
|
|
|
1863
1866
|
constructor(state: Partial<SceneCSSGridLayoutState>);
|
|
1864
1867
|
isDraggable(): boolean;
|
|
1865
1868
|
}
|
|
1866
|
-
declare function SceneCSSGridLayoutRenderer({ model }: SceneCSSGridItemRenderProps<SceneCSSGridLayout>):
|
|
1869
|
+
declare function SceneCSSGridLayoutRenderer({ model }: SceneCSSGridItemRenderProps<SceneCSSGridLayout>): JSX.Element;
|
|
1867
1870
|
interface SceneCSSGridItemPlacement {
|
|
1868
1871
|
/**
|
|
1869
1872
|
* True when the item should rendered but not visible.
|
|
@@ -1885,9 +1888,9 @@ interface SceneCSSGridItemRenderProps<T> extends SceneComponentProps<T> {
|
|
|
1885
1888
|
declare class SceneCSSGridItem extends SceneObjectBase<SceneCSSGridItemState> {
|
|
1886
1889
|
static Component: typeof SceneCSSGridItemRenderer;
|
|
1887
1890
|
}
|
|
1888
|
-
declare function SceneCSSGridItemRenderer({ model, parentState }: SceneCSSGridItemRenderProps<SceneCSSGridItem>):
|
|
1891
|
+
declare function SceneCSSGridItemRenderer({ model, parentState }: SceneCSSGridItemRenderProps<SceneCSSGridItem>): JSX.Element;
|
|
1889
1892
|
|
|
1890
|
-
declare function SceneGridLayoutRenderer({ model }: SceneComponentProps<SceneGridLayout>):
|
|
1893
|
+
declare function SceneGridLayoutRenderer({ model }: SceneComponentProps<SceneGridLayout>): JSX.Element;
|
|
1891
1894
|
|
|
1892
1895
|
interface SceneGridItemPlacement {
|
|
1893
1896
|
x?: number;
|
|
@@ -1923,7 +1926,7 @@ declare class SceneGridRow extends SceneObjectBase<SceneGridRowState> {
|
|
|
1923
1926
|
};
|
|
1924
1927
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
1925
1928
|
}
|
|
1926
|
-
declare function SceneGridRowRenderer({ model }: SceneComponentProps<SceneGridRow>):
|
|
1929
|
+
declare function SceneGridRowRenderer({ model }: SceneComponentProps<SceneGridRow>): JSX.Element;
|
|
1927
1930
|
|
|
1928
1931
|
interface SceneGridLayoutState extends SceneObjectState {
|
|
1929
1932
|
/**
|
|
@@ -1982,9 +1985,9 @@ interface SceneGridItemState extends SceneGridItemStateLike {
|
|
|
1982
1985
|
declare class SceneGridItem extends SceneObjectBase<SceneGridItemState> implements SceneGridItemLike {
|
|
1983
1986
|
static Component: typeof SceneGridItemRenderer;
|
|
1984
1987
|
}
|
|
1985
|
-
declare function SceneGridItemRenderer({ model }: SceneComponentProps<SceneGridItem>):
|
|
1988
|
+
declare function SceneGridItemRenderer({ model }: SceneComponentProps<SceneGridItem>): JSX.Element;
|
|
1986
1989
|
|
|
1987
|
-
declare function SplitLayoutRenderer({ model }: SceneFlexItemRenderProps<SplitLayout>):
|
|
1990
|
+
declare function SplitLayoutRenderer({ model }: SceneFlexItemRenderProps<SplitLayout>): JSX.Element;
|
|
1988
1991
|
interface SceneFlexItemRenderProps<T> extends SceneComponentProps<T> {
|
|
1989
1992
|
parentState?: SceneFlexItemPlacement;
|
|
1990
1993
|
}
|
|
@@ -2084,7 +2087,7 @@ declare class SceneApp extends SceneObjectBase<SceneAppState> implements DataReq
|
|
|
2084
2087
|
enrichDataRequest(): {
|
|
2085
2088
|
app: string;
|
|
2086
2089
|
};
|
|
2087
|
-
static Component: ({ model }: SceneComponentProps<SceneApp>) =>
|
|
2090
|
+
static Component: ({ model }: SceneComponentProps<SceneApp>) => JSX.Element;
|
|
2088
2091
|
}
|
|
2089
2092
|
/**
|
|
2090
2093
|
* Caches the the resulting SceneApp returned by the factory function so that it's only called once during the lifetime of the browser tab
|
|
@@ -2107,13 +2110,13 @@ declare class SceneAppPage extends SceneObjectBase<SceneAppPageState> implements
|
|
|
2107
2110
|
interface SceneAppPageRendererProps extends SceneComponentProps<SceneAppPage> {
|
|
2108
2111
|
routeProps: RouteComponentProps;
|
|
2109
2112
|
}
|
|
2110
|
-
declare function SceneAppPageRenderer({ model, routeProps }: SceneAppPageRendererProps):
|
|
2113
|
+
declare function SceneAppPageRenderer({ model, routeProps }: SceneAppPageRendererProps): JSX.Element;
|
|
2111
2114
|
|
|
2112
2115
|
interface SceneReactObjectState<TProps = {}> extends SceneObjectState {
|
|
2113
2116
|
/**
|
|
2114
2117
|
* React component to render
|
|
2115
2118
|
*/
|
|
2116
|
-
component?:
|
|
2119
|
+
component?: React$1.ComponentType<TProps>;
|
|
2117
2120
|
/**
|
|
2118
2121
|
* Props to pass to the component
|
|
2119
2122
|
*/
|
|
@@ -2121,13 +2124,13 @@ interface SceneReactObjectState<TProps = {}> extends SceneObjectState {
|
|
|
2121
2124
|
/**
|
|
2122
2125
|
* Alternative to component and props is just to pass a React node
|
|
2123
2126
|
*/
|
|
2124
|
-
reactNode?:
|
|
2127
|
+
reactNode?: React$1.ReactNode;
|
|
2125
2128
|
}
|
|
2126
2129
|
/**
|
|
2127
2130
|
* A utility object that can be used to render any React component or ReactNode
|
|
2128
2131
|
*/
|
|
2129
2132
|
declare class SceneReactObject<TProps = {}> extends SceneObjectBase<SceneReactObjectState<TProps>> {
|
|
2130
|
-
static Component: ({ model }: SceneComponentProps<SceneReactObject>) =>
|
|
2133
|
+
static Component: ({ model }: SceneComponentProps<SceneReactObject>) => {};
|
|
2131
2134
|
}
|
|
2132
2135
|
|
|
2133
2136
|
type StandardFieldConfigInterface<T, C, Prefix extends string> = {
|
|
@@ -2442,7 +2445,7 @@ interface Props {
|
|
|
2442
2445
|
*
|
|
2443
2446
|
* This is only exported so that core dashboards can use it.
|
|
2444
2447
|
*/
|
|
2445
|
-
declare function SceneDebugger({ scene }: Props):
|
|
2448
|
+
declare function SceneDebugger({ scene }: Props): JSX.Element;
|
|
2446
2449
|
|
|
2447
2450
|
declare const sceneUtils: {
|
|
2448
2451
|
getUrlWithAppState: typeof getUrlWithAppState;
|
package/dist/index.js
CHANGED
|
@@ -2274,6 +2274,7 @@ function VizPanelRenderer({ model }) {
|
|
|
2274
2274
|
_pluginLoadError,
|
|
2275
2275
|
displayMode,
|
|
2276
2276
|
hoverHeader,
|
|
2277
|
+
hoverHeaderOffset,
|
|
2277
2278
|
menu,
|
|
2278
2279
|
headerActions,
|
|
2279
2280
|
titleItems,
|
|
@@ -2386,6 +2387,7 @@ function VizPanelRenderer({ model }) {
|
|
|
2386
2387
|
height,
|
|
2387
2388
|
displayMode,
|
|
2388
2389
|
hoverHeader,
|
|
2390
|
+
hoverHeaderOffset,
|
|
2389
2391
|
titleItems: titleItemsElement,
|
|
2390
2392
|
dragClass,
|
|
2391
2393
|
actions: actionsElement,
|