@grafana/scenes 4.13.0 → 4.13.1--canary.682.8907801824.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/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 +45 -44
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 React$1
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import React__default, { CSSProperties, ComponentType } from 'react';
|
|
4
5
|
import * as rxjs from 'rxjs';
|
|
5
6
|
import { Observable, Unsubscribable, MonoTypeOperatorFunction, Subscription, ReplaySubject } from 'rxjs';
|
|
6
7
|
import * as _grafana_schema from '@grafana/schema';
|
|
@@ -158,7 +159,7 @@ interface SceneLayoutChildOptions {
|
|
|
158
159
|
interface SceneComponentProps<T> {
|
|
159
160
|
model: T;
|
|
160
161
|
}
|
|
161
|
-
type SceneComponent<TModel> = (props: SceneComponentProps<TModel>) =>
|
|
162
|
+
type SceneComponent<TModel> = (props: SceneComponentProps<TModel>) => React__default.ReactElement | null;
|
|
162
163
|
interface SceneDataState extends SceneObjectState {
|
|
163
164
|
data?: PanelData;
|
|
164
165
|
}
|
|
@@ -193,7 +194,7 @@ interface SceneObject<TState extends SceneObjectState = SceneObjectState> {
|
|
|
193
194
|
/** Returns a deep clone this object and all its children */
|
|
194
195
|
clone(state?: Partial<TState>): this;
|
|
195
196
|
/** A React component to use for rendering the object */
|
|
196
|
-
Component(props: SceneComponentProps<SceneObject<TState>>):
|
|
197
|
+
Component(props: SceneComponentProps<SceneObject<TState>>): React__default.ReactElement | null;
|
|
197
198
|
/** Force a re-render, should only be needed when variable values change */
|
|
198
199
|
forceRender(): void;
|
|
199
200
|
/** Returns a SceneObjectRef that will resolve to this object */
|
|
@@ -712,7 +713,7 @@ declare class AdHocFiltersVariable extends SceneObjectBase<AdHocFiltersVariableS
|
|
|
712
713
|
_addWip(): void;
|
|
713
714
|
_getOperators(): SelectableValue<string>[];
|
|
714
715
|
}
|
|
715
|
-
declare function AdHocFiltersVariableRenderer({ model }: SceneComponentProps<AdHocFiltersVariable>): JSX.Element;
|
|
716
|
+
declare function AdHocFiltersVariableRenderer({ model }: SceneComponentProps<AdHocFiltersVariable>): React__default.JSX.Element;
|
|
716
717
|
|
|
717
718
|
interface ConstantVariableState extends SceneVariableState {
|
|
718
719
|
value: VariableValue;
|
|
@@ -795,7 +796,7 @@ declare class CustomVariable extends MultiValueVariable<CustomVariableState> {
|
|
|
795
796
|
protected _variableDependency: VariableDependencyConfig<CustomVariableState>;
|
|
796
797
|
constructor(initialState: Partial<CustomVariableState>);
|
|
797
798
|
getValueOptions(args: VariableGetOptionsArgs): Observable<VariableValueOption[]>;
|
|
798
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
799
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => React$1.JSX.Element;
|
|
799
800
|
}
|
|
800
801
|
|
|
801
802
|
interface DataSourceVariableState extends MultiValueVariableState {
|
|
@@ -816,7 +817,7 @@ declare class DataSourceVariable extends MultiValueVariable<DataSourceVariableSt
|
|
|
816
817
|
protected _variableDependency: VariableDependencyConfig<DataSourceVariableState>;
|
|
817
818
|
constructor(initialState: Partial<DataSourceVariableState>);
|
|
818
819
|
getValueOptions(args: VariableGetOptionsArgs): Observable<VariableValueOption[]>;
|
|
819
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
820
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => React$1.JSX.Element;
|
|
820
821
|
}
|
|
821
822
|
|
|
822
823
|
interface IntervalVariableState extends SceneVariableState {
|
|
@@ -839,7 +840,7 @@ declare class IntervalVariable extends SceneObjectBase<IntervalVariableState> im
|
|
|
839
840
|
private getAutoRefreshInteval;
|
|
840
841
|
_onChange: (value: SelectableValue<string>) => void;
|
|
841
842
|
validateAndUpdate(): Observable<ValidateAndUpdateResult>;
|
|
842
|
-
static Component: ({ model }: SceneComponentProps<IntervalVariable>) => JSX.Element;
|
|
843
|
+
static Component: ({ model }: SceneComponentProps<IntervalVariable>) => React__default.JSX.Element;
|
|
843
844
|
}
|
|
844
845
|
|
|
845
846
|
interface TextBoxVariableState extends SceneVariableState {
|
|
@@ -854,7 +855,7 @@ declare class TextBoxVariable extends SceneObjectBase<TextBoxVariableState> impl
|
|
|
854
855
|
[x: string]: string;
|
|
855
856
|
};
|
|
856
857
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
857
|
-
static Component: ({ model }: SceneComponentProps<TextBoxVariable>) => JSX.Element;
|
|
858
|
+
static Component: ({ model }: SceneComponentProps<TextBoxVariable>) => React__default.JSX.Element;
|
|
858
859
|
}
|
|
859
860
|
|
|
860
861
|
interface QueryVariableState extends MultiValueVariableState {
|
|
@@ -874,7 +875,7 @@ declare class QueryVariable extends MultiValueVariable<QueryVariableState> {
|
|
|
874
875
|
private getRequest;
|
|
875
876
|
onSearchChange: (searchFilter: string) => void;
|
|
876
877
|
private _updateOptionsBasedOnSearchFilter;
|
|
877
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
878
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => React$1.JSX.Element;
|
|
878
879
|
}
|
|
879
880
|
|
|
880
881
|
interface GroupByVariableState extends MultiValueVariableState {
|
|
@@ -933,7 +934,7 @@ declare class GroupByVariable extends MultiValueVariable<GroupByVariableState> {
|
|
|
933
934
|
text: string[];
|
|
934
935
|
};
|
|
935
936
|
}
|
|
936
|
-
declare function GroupByVariableRenderer({ model }: SceneComponentProps<MultiValueVariable>): JSX.Element;
|
|
937
|
+
declare function GroupByVariableRenderer({ model }: SceneComponentProps<MultiValueVariable>): React__default.JSX.Element;
|
|
937
938
|
|
|
938
939
|
declare function isAdHocVariable(variable: SceneVariable): variable is AdHocFiltersVariable;
|
|
939
940
|
declare function isConstantVariable(variable: SceneVariable): variable is ConstantVariable;
|
|
@@ -1226,7 +1227,7 @@ declare class AnnotationsDataLayer extends SceneDataLayerBase<AnnotationsDataLay
|
|
|
1226
1227
|
traceIds?: string[];
|
|
1227
1228
|
};
|
|
1228
1229
|
}
|
|
1229
|
-
declare function AnnotationsDataLayerRenderer({ model }: SceneComponentProps<AnnotationsDataLayer>): JSX.Element;
|
|
1230
|
+
declare function AnnotationsDataLayerRenderer({ model }: SceneComponentProps<AnnotationsDataLayer>): React__default.JSX.Element;
|
|
1230
1231
|
|
|
1231
1232
|
type index_AnnotationsDataLayer = AnnotationsDataLayer;
|
|
1232
1233
|
declare const index_AnnotationsDataLayer: typeof AnnotationsDataLayer;
|
|
@@ -1324,7 +1325,7 @@ interface SceneDataLayersSetState extends SceneDataLayerProviderState {
|
|
|
1324
1325
|
declare class SceneDataLayerSet extends SceneDataLayerSetBase<SceneDataLayersSetState> implements SceneDataLayerProvider {
|
|
1325
1326
|
constructor(state: Partial<SceneDataLayersSetState>);
|
|
1326
1327
|
private _onActivate;
|
|
1327
|
-
static Component: ({ model }: SceneComponentProps<SceneDataLayerSet>) => JSX.Element;
|
|
1328
|
+
static Component: ({ model }: SceneComponentProps<SceneDataLayerSet>) => React__default.JSX.Element;
|
|
1328
1329
|
}
|
|
1329
1330
|
|
|
1330
1331
|
interface SceneDataLayerControlsState extends SceneObjectState {
|
|
@@ -1333,7 +1334,7 @@ declare class SceneDataLayerControls extends SceneObjectBase<SceneDataLayerContr
|
|
|
1333
1334
|
static Component: typeof SceneDataLayerControlsRenderer;
|
|
1334
1335
|
constructor();
|
|
1335
1336
|
}
|
|
1336
|
-
declare function SceneDataLayerControlsRenderer({ model }: SceneComponentProps<SceneDataLayerControls>): JSX.Element;
|
|
1337
|
+
declare function SceneDataLayerControlsRenderer({ model }: SceneComponentProps<SceneDataLayerControls>): React__default.JSX.Element;
|
|
1337
1338
|
|
|
1338
1339
|
interface SceneDataTransformerState extends SceneDataState {
|
|
1339
1340
|
/**
|
|
@@ -1378,7 +1379,7 @@ interface VariableValueSelectorsState extends SceneObjectState {
|
|
|
1378
1379
|
declare class VariableValueSelectors extends SceneObjectBase<VariableValueSelectorsState> {
|
|
1379
1380
|
static Component: typeof VariableValueSelectorsRenderer;
|
|
1380
1381
|
}
|
|
1381
|
-
declare function VariableValueSelectorsRenderer({ model }: SceneComponentProps<VariableValueSelectors>): JSX.Element;
|
|
1382
|
+
declare function VariableValueSelectorsRenderer({ model }: SceneComponentProps<VariableValueSelectors>): React__default.JSX.Element;
|
|
1382
1383
|
|
|
1383
1384
|
interface VariableValueControlState extends SceneObjectState {
|
|
1384
1385
|
layout?: ControlsLayout;
|
|
@@ -1388,7 +1389,7 @@ interface VariableValueControlState extends SceneObjectState {
|
|
|
1388
1389
|
declare class VariableValueControl extends SceneObjectBase<VariableValueControlState> {
|
|
1389
1390
|
static Component: typeof VariableValueControlRenderer;
|
|
1390
1391
|
}
|
|
1391
|
-
declare function VariableValueControlRenderer({ model }: SceneComponentProps<VariableValueControl>): JSX.Element;
|
|
1392
|
+
declare function VariableValueControlRenderer({ model }: SceneComponentProps<VariableValueControl>): React__default.JSX.Element;
|
|
1392
1393
|
|
|
1393
1394
|
declare class SceneVariableSet extends SceneObjectBase<SceneVariableSetState> implements SceneVariables {
|
|
1394
1395
|
/** Variables that have changed in since the activation or since the first manual value change */
|
|
@@ -1491,7 +1492,7 @@ declare class TestVariable extends MultiValueVariable<TestVariableState> {
|
|
|
1491
1492
|
private getOptions;
|
|
1492
1493
|
/** Useful from tests */
|
|
1493
1494
|
signalUpdateCompleted(): void;
|
|
1494
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
1495
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => React$1.JSX.Element;
|
|
1495
1496
|
}
|
|
1496
1497
|
|
|
1497
1498
|
interface LocalValueVariableState extends SceneVariableState {
|
|
@@ -1560,9 +1561,9 @@ declare class EmbeddedScene extends SceneObjectBase<EmbeddedSceneState> {
|
|
|
1560
1561
|
*/
|
|
1561
1562
|
initUrlSync(): void;
|
|
1562
1563
|
}
|
|
1563
|
-
declare function EmbeddedSceneRenderer({ model }: SceneComponentProps<EmbeddedScene>): JSX.Element;
|
|
1564
|
+
declare function EmbeddedSceneRenderer({ model }: SceneComponentProps<EmbeddedScene>): React__default.JSX.Element;
|
|
1564
1565
|
|
|
1565
|
-
declare function VizPanelRenderer({ model }: SceneComponentProps<VizPanel>): JSX.Element;
|
|
1566
|
+
declare function VizPanelRenderer({ model }: SceneComponentProps<VizPanel>): React__default.JSX.Element;
|
|
1566
1567
|
|
|
1567
1568
|
interface VizPanelMenuState extends SceneObjectState {
|
|
1568
1569
|
items?: PanelMenuItem[];
|
|
@@ -1572,7 +1573,7 @@ declare class VizPanelMenu extends SceneObjectBase<VizPanelMenuState> {
|
|
|
1572
1573
|
addItem(item: PanelMenuItem): void;
|
|
1573
1574
|
setItems(items: PanelMenuItem[]): void;
|
|
1574
1575
|
}
|
|
1575
|
-
declare function VizPanelMenuRenderer({ model }: SceneComponentProps<VizPanelMenu>): JSX.Element;
|
|
1576
|
+
declare function VizPanelMenuRenderer({ model }: SceneComponentProps<VizPanelMenu>): React__default.JSX.Element;
|
|
1576
1577
|
|
|
1577
1578
|
interface VizPanelState<TOptions = {}, TFieldConfig = {}> extends SceneObjectState {
|
|
1578
1579
|
/**
|
|
@@ -1680,7 +1681,7 @@ declare class NestedScene extends SceneObjectBase<NestedSceneState> {
|
|
|
1680
1681
|
/** Removes itself from its parent's children array */
|
|
1681
1682
|
onRemove: () => void;
|
|
1682
1683
|
}
|
|
1683
|
-
declare function NestedSceneRenderer({ model }: SceneComponentProps<NestedScene>): JSX.Element;
|
|
1684
|
+
declare function NestedSceneRenderer({ model }: SceneComponentProps<NestedScene>): React__default.JSX.Element;
|
|
1684
1685
|
|
|
1685
1686
|
interface SceneCanvasTextState extends SceneObjectState {
|
|
1686
1687
|
text: string;
|
|
@@ -1694,7 +1695,7 @@ interface SceneCanvasTextState extends SceneObjectState {
|
|
|
1694
1695
|
*/
|
|
1695
1696
|
declare class SceneCanvasText extends SceneObjectBase<SceneCanvasTextState> {
|
|
1696
1697
|
protected _variableDependency: VariableDependencyConfig<SceneCanvasTextState>;
|
|
1697
|
-
static Component: ({ model }: SceneComponentProps<SceneCanvasText>) => JSX.Element;
|
|
1698
|
+
static Component: ({ model }: SceneComponentProps<SceneCanvasText>) => React__default.JSX.Element;
|
|
1698
1699
|
}
|
|
1699
1700
|
|
|
1700
1701
|
interface ToolbarButtonState extends SceneObjectState {
|
|
@@ -1702,7 +1703,7 @@ interface ToolbarButtonState extends SceneObjectState {
|
|
|
1702
1703
|
onClick: () => void;
|
|
1703
1704
|
}
|
|
1704
1705
|
declare class SceneToolbarButton extends SceneObjectBase<ToolbarButtonState> {
|
|
1705
|
-
static Component: ({ model }: SceneComponentProps<SceneToolbarButton>) => JSX.Element;
|
|
1706
|
+
static Component: ({ model }: SceneComponentProps<SceneToolbarButton>) => React__default.JSX.Element;
|
|
1706
1707
|
}
|
|
1707
1708
|
interface SceneToolbarInputState extends SceneObjectState {
|
|
1708
1709
|
value?: string;
|
|
@@ -1710,7 +1711,7 @@ interface SceneToolbarInputState extends SceneObjectState {
|
|
|
1710
1711
|
onChange: (value: number) => void;
|
|
1711
1712
|
}
|
|
1712
1713
|
declare class SceneToolbarInput extends SceneObjectBase<SceneToolbarInputState> {
|
|
1713
|
-
static Component: ({ model }: SceneComponentProps<SceneToolbarInput>) => JSX.Element;
|
|
1714
|
+
static Component: ({ model }: SceneComponentProps<SceneToolbarInput>) => React__default.JSX.Element;
|
|
1714
1715
|
}
|
|
1715
1716
|
|
|
1716
1717
|
interface SceneTimePickerState extends SceneObjectState {
|
|
@@ -1724,7 +1725,7 @@ declare class SceneTimePicker extends SceneObjectBase<SceneTimePickerState> {
|
|
|
1724
1725
|
onMoveBackward: () => void;
|
|
1725
1726
|
onMoveForward: () => void;
|
|
1726
1727
|
}
|
|
1727
|
-
declare function SceneTimePickerRenderer({ model }: SceneComponentProps<SceneTimePicker>): JSX.Element;
|
|
1728
|
+
declare function SceneTimePickerRenderer({ model }: SceneComponentProps<SceneTimePicker>): React__default.JSX.Element;
|
|
1728
1729
|
|
|
1729
1730
|
interface SceneRefreshPickerState extends SceneObjectState {
|
|
1730
1731
|
refresh: string;
|
|
@@ -1752,7 +1753,7 @@ declare class SceneRefreshPicker extends SceneObjectBase<SceneRefreshPickerState
|
|
|
1752
1753
|
private calculateAutoRefreshInterval;
|
|
1753
1754
|
private setupIntervalTimer;
|
|
1754
1755
|
}
|
|
1755
|
-
declare function SceneRefreshPickerRenderer({ model }: SceneComponentProps<SceneRefreshPicker>): JSX.Element;
|
|
1756
|
+
declare function SceneRefreshPickerRenderer({ model }: SceneComponentProps<SceneRefreshPicker>): React__default.JSX.Element;
|
|
1756
1757
|
|
|
1757
1758
|
interface TimeRangeCompareProvider {
|
|
1758
1759
|
getCompareTimeRange(timeRange: TimeRange): TimeRange | undefined;
|
|
@@ -1779,7 +1780,7 @@ declare class SceneTimeRangeCompare extends SceneObjectBase<SceneTimeRangeCompar
|
|
|
1779
1780
|
getUrlState(): SceneObjectUrlValues;
|
|
1780
1781
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
1781
1782
|
}
|
|
1782
|
-
declare function SceneTimeRangeCompareRenderer({ model }: SceneComponentProps<SceneTimeRangeCompare>): JSX.Element;
|
|
1783
|
+
declare function SceneTimeRangeCompareRenderer({ model }: SceneComponentProps<SceneTimeRangeCompare>): React__default.JSX.Element;
|
|
1783
1784
|
|
|
1784
1785
|
interface SceneByFrameRepeaterState extends SceneObjectState {
|
|
1785
1786
|
body: SceneLayout;
|
|
@@ -1788,7 +1789,7 @@ interface SceneByFrameRepeaterState extends SceneObjectState {
|
|
|
1788
1789
|
declare class SceneByFrameRepeater extends SceneObjectBase<SceneByFrameRepeaterState> {
|
|
1789
1790
|
constructor(state: SceneByFrameRepeaterState);
|
|
1790
1791
|
private performRepeat;
|
|
1791
|
-
static Component: ({ model }: SceneComponentProps<SceneByFrameRepeater>) => JSX.Element;
|
|
1792
|
+
static Component: ({ model }: SceneComponentProps<SceneByFrameRepeater>) => React__default.JSX.Element;
|
|
1792
1793
|
}
|
|
1793
1794
|
|
|
1794
1795
|
interface SceneByVariableRepeaterState extends SceneObjectState {
|
|
@@ -1800,13 +1801,13 @@ declare class SceneByVariableRepeater extends SceneObjectBase<SceneByVariableRep
|
|
|
1800
1801
|
protected _variableDependency: VariableDependencyConfig<SceneByVariableRepeaterState>;
|
|
1801
1802
|
constructor(state: SceneByVariableRepeaterState);
|
|
1802
1803
|
private performRepeat;
|
|
1803
|
-
static Component: ({ model }: SceneComponentProps<SceneByVariableRepeater>) => JSX.Element;
|
|
1804
|
+
static Component: ({ model }: SceneComponentProps<SceneByVariableRepeater>) => React__default.JSX.Element;
|
|
1804
1805
|
}
|
|
1805
1806
|
|
|
1806
1807
|
declare class SceneControlsSpacer extends SceneObjectBase {
|
|
1807
1808
|
constructor();
|
|
1808
|
-
get Component(): (_props: SceneComponentProps<SceneControlsSpacer>) => JSX.Element;
|
|
1809
|
-
static Component: (_props: SceneComponentProps<SceneControlsSpacer>) => JSX.Element;
|
|
1809
|
+
get Component(): (_props: SceneComponentProps<SceneControlsSpacer>) => React__default.JSX.Element;
|
|
1810
|
+
static Component: (_props: SceneComponentProps<SceneControlsSpacer>) => React__default.JSX.Element;
|
|
1810
1811
|
}
|
|
1811
1812
|
|
|
1812
1813
|
interface SceneFlexItemStateLike extends SceneFlexItemPlacement, SceneObjectState {
|
|
@@ -1821,7 +1822,7 @@ declare class SceneFlexLayout extends SceneObjectBase<SceneFlexLayoutState> impl
|
|
|
1821
1822
|
toggleDirection(): void;
|
|
1822
1823
|
isDraggable(): boolean;
|
|
1823
1824
|
}
|
|
1824
|
-
declare function SceneFlexLayoutRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexLayout>): JSX.Element;
|
|
1825
|
+
declare function SceneFlexLayoutRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexLayout>): React__default.JSX.Element;
|
|
1825
1826
|
interface SceneFlexItemPlacement {
|
|
1826
1827
|
wrap?: CSSProperties['flexWrap'];
|
|
1827
1828
|
direction?: CSSProperties['flexDirection'];
|
|
@@ -1853,7 +1854,7 @@ interface SceneFlexItemRenderProps$1<T> extends SceneComponentProps<T> {
|
|
|
1853
1854
|
declare class SceneFlexItem extends SceneObjectBase<SceneFlexItemState> {
|
|
1854
1855
|
static Component: typeof SceneFlexItemRenderer;
|
|
1855
1856
|
}
|
|
1856
|
-
declare function SceneFlexItemRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexItem>): JSX.Element;
|
|
1857
|
+
declare function SceneFlexItemRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexItem>): React__default.JSX.Element;
|
|
1857
1858
|
|
|
1858
1859
|
interface SceneCSSGridLayoutState extends SceneObjectState, SceneCSSGridLayoutOptions {
|
|
1859
1860
|
children: Array<SceneCSSGridItem | SceneObject>;
|
|
@@ -1897,7 +1898,7 @@ declare class SceneCSSGridLayout extends SceneObjectBase<SceneCSSGridLayoutState
|
|
|
1897
1898
|
constructor(state: Partial<SceneCSSGridLayoutState>);
|
|
1898
1899
|
isDraggable(): boolean;
|
|
1899
1900
|
}
|
|
1900
|
-
declare function SceneCSSGridLayoutRenderer({ model }: SceneCSSGridItemRenderProps<SceneCSSGridLayout>): JSX.Element;
|
|
1901
|
+
declare function SceneCSSGridLayoutRenderer({ model }: SceneCSSGridItemRenderProps<SceneCSSGridLayout>): React__default.JSX.Element;
|
|
1901
1902
|
interface SceneCSSGridItemPlacement {
|
|
1902
1903
|
/**
|
|
1903
1904
|
* True when the item should rendered but not visible.
|
|
@@ -1919,9 +1920,9 @@ interface SceneCSSGridItemRenderProps<T> extends SceneComponentProps<T> {
|
|
|
1919
1920
|
declare class SceneCSSGridItem extends SceneObjectBase<SceneCSSGridItemState> {
|
|
1920
1921
|
static Component: typeof SceneCSSGridItemRenderer;
|
|
1921
1922
|
}
|
|
1922
|
-
declare function SceneCSSGridItemRenderer({ model, parentState }: SceneCSSGridItemRenderProps<SceneCSSGridItem>): JSX.Element;
|
|
1923
|
+
declare function SceneCSSGridItemRenderer({ model, parentState }: SceneCSSGridItemRenderProps<SceneCSSGridItem>): React__default.JSX.Element;
|
|
1923
1924
|
|
|
1924
|
-
declare function SceneGridLayoutRenderer({ model }: SceneComponentProps<SceneGridLayout>): JSX.Element;
|
|
1925
|
+
declare function SceneGridLayoutRenderer({ model }: SceneComponentProps<SceneGridLayout>): React__default.JSX.Element;
|
|
1925
1926
|
|
|
1926
1927
|
interface SceneGridItemPlacement {
|
|
1927
1928
|
x?: number;
|
|
@@ -1957,7 +1958,7 @@ declare class SceneGridRow extends SceneObjectBase<SceneGridRowState> {
|
|
|
1957
1958
|
};
|
|
1958
1959
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
1959
1960
|
}
|
|
1960
|
-
declare function SceneGridRowRenderer({ model }: SceneComponentProps<SceneGridRow>): JSX.Element;
|
|
1961
|
+
declare function SceneGridRowRenderer({ model }: SceneComponentProps<SceneGridRow>): React__default.JSX.Element;
|
|
1961
1962
|
|
|
1962
1963
|
interface SceneGridLayoutState extends SceneObjectState {
|
|
1963
1964
|
/**
|
|
@@ -2016,9 +2017,9 @@ interface SceneGridItemState extends SceneGridItemStateLike {
|
|
|
2016
2017
|
declare class SceneGridItem extends SceneObjectBase<SceneGridItemState> implements SceneGridItemLike {
|
|
2017
2018
|
static Component: typeof SceneGridItemRenderer;
|
|
2018
2019
|
}
|
|
2019
|
-
declare function SceneGridItemRenderer({ model }: SceneComponentProps<SceneGridItem>): JSX.Element;
|
|
2020
|
+
declare function SceneGridItemRenderer({ model }: SceneComponentProps<SceneGridItem>): React__default.JSX.Element;
|
|
2020
2021
|
|
|
2021
|
-
declare function SplitLayoutRenderer({ model }: SceneFlexItemRenderProps<SplitLayout>): JSX.Element;
|
|
2022
|
+
declare function SplitLayoutRenderer({ model }: SceneFlexItemRenderProps<SplitLayout>): React__default.JSX.Element;
|
|
2022
2023
|
interface SceneFlexItemRenderProps<T> extends SceneComponentProps<T> {
|
|
2023
2024
|
parentState?: SceneFlexItemPlacement;
|
|
2024
2025
|
}
|
|
@@ -2118,7 +2119,7 @@ declare class SceneApp extends SceneObjectBase<SceneAppState> implements DataReq
|
|
|
2118
2119
|
enrichDataRequest(): {
|
|
2119
2120
|
app: string;
|
|
2120
2121
|
};
|
|
2121
|
-
static Component: ({ model }: SceneComponentProps<SceneApp>) => JSX.Element;
|
|
2122
|
+
static Component: ({ model }: SceneComponentProps<SceneApp>) => React__default.JSX.Element;
|
|
2122
2123
|
}
|
|
2123
2124
|
/**
|
|
2124
2125
|
* Caches the the resulting SceneApp returned by the factory function so that it's only called once during the lifetime of the browser tab
|
|
@@ -2141,13 +2142,13 @@ declare class SceneAppPage extends SceneObjectBase<SceneAppPageState> implements
|
|
|
2141
2142
|
interface SceneAppPageRendererProps extends SceneComponentProps<SceneAppPage> {
|
|
2142
2143
|
routeProps: RouteComponentProps;
|
|
2143
2144
|
}
|
|
2144
|
-
declare function SceneAppPageRenderer({ model, routeProps }: SceneAppPageRendererProps): JSX.Element;
|
|
2145
|
+
declare function SceneAppPageRenderer({ model, routeProps }: SceneAppPageRendererProps): React__default.JSX.Element;
|
|
2145
2146
|
|
|
2146
2147
|
interface SceneReactObjectState<TProps = {}> extends SceneObjectState {
|
|
2147
2148
|
/**
|
|
2148
2149
|
* React component to render
|
|
2149
2150
|
*/
|
|
2150
|
-
component?:
|
|
2151
|
+
component?: React__default.ComponentType<TProps>;
|
|
2151
2152
|
/**
|
|
2152
2153
|
* Props to pass to the component
|
|
2153
2154
|
*/
|
|
@@ -2155,13 +2156,13 @@ interface SceneReactObjectState<TProps = {}> extends SceneObjectState {
|
|
|
2155
2156
|
/**
|
|
2156
2157
|
* Alternative to component and props is just to pass a React node
|
|
2157
2158
|
*/
|
|
2158
|
-
reactNode?:
|
|
2159
|
+
reactNode?: React__default.ReactNode;
|
|
2159
2160
|
}
|
|
2160
2161
|
/**
|
|
2161
2162
|
* A utility object that can be used to render any React component or ReactNode
|
|
2162
2163
|
*/
|
|
2163
2164
|
declare class SceneReactObject<TProps = {}> extends SceneObjectBase<SceneReactObjectState<TProps>> {
|
|
2164
|
-
static Component: ({ model }: SceneComponentProps<SceneReactObject>) =>
|
|
2165
|
+
static Component: ({ model }: SceneComponentProps<SceneReactObject>) => string | number | true | Iterable<React__default.ReactNode> | React__default.JSX.Element;
|
|
2165
2166
|
}
|
|
2166
2167
|
|
|
2167
2168
|
type StandardFieldConfigInterface<T, C, Prefix extends string> = {
|
|
@@ -2476,7 +2477,7 @@ interface Props {
|
|
|
2476
2477
|
*
|
|
2477
2478
|
* This is only exported so that core dashboards can use it.
|
|
2478
2479
|
*/
|
|
2479
|
-
declare function SceneDebugger({ scene }: Props): JSX.Element;
|
|
2480
|
+
declare function SceneDebugger({ scene }: Props): React__default.JSX.Element;
|
|
2480
2481
|
|
|
2481
2482
|
declare const sceneUtils: {
|
|
2482
2483
|
getUrlWithAppState: typeof getUrlWithAppState;
|