@grafana/scenes 4.5.4--canary.681.8570869587.0 → 4.5.5--canary.682.8607605361.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/CHANGELOG.md +12 -0
- 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';
|
|
@@ -152,7 +153,7 @@ interface SceneLayoutChildOptions {
|
|
|
152
153
|
interface SceneComponentProps<T> {
|
|
153
154
|
model: T;
|
|
154
155
|
}
|
|
155
|
-
type SceneComponent<TModel> = (props: SceneComponentProps<TModel>) =>
|
|
156
|
+
type SceneComponent<TModel> = (props: SceneComponentProps<TModel>) => React__default.ReactElement | null;
|
|
156
157
|
interface SceneDataState extends SceneObjectState {
|
|
157
158
|
data?: PanelData;
|
|
158
159
|
}
|
|
@@ -187,7 +188,7 @@ interface SceneObject<TState extends SceneObjectState = SceneObjectState> {
|
|
|
187
188
|
/** Returns a deep clone this object and all its children */
|
|
188
189
|
clone(state?: Partial<TState>): this;
|
|
189
190
|
/** A React component to use for rendering the object */
|
|
190
|
-
Component(props: SceneComponentProps<SceneObject<TState>>):
|
|
191
|
+
Component(props: SceneComponentProps<SceneObject<TState>>): React__default.ReactElement | null;
|
|
191
192
|
/** Force a re-render, should only be needed when variable values change */
|
|
192
193
|
forceRender(): void;
|
|
193
194
|
/** Returns a SceneObjectRef that will resolve to this object */
|
|
@@ -552,7 +553,7 @@ declare class AdHocFiltersVariable extends SceneObjectBase<AdHocFiltersVariableS
|
|
|
552
553
|
*/
|
|
553
554
|
private _getSceneQueries;
|
|
554
555
|
}
|
|
555
|
-
declare function AdHocFiltersVariableRenderer({ model }: SceneComponentProps<AdHocFiltersVariable>): JSX.Element;
|
|
556
|
+
declare function AdHocFiltersVariableRenderer({ model }: SceneComponentProps<AdHocFiltersVariable>): React__default.JSX.Element;
|
|
556
557
|
|
|
557
558
|
interface ConstantVariableState extends SceneVariableState {
|
|
558
559
|
value: VariableValue;
|
|
@@ -689,7 +690,7 @@ declare class CustomVariable extends MultiValueVariable<CustomVariableState> {
|
|
|
689
690
|
protected _variableDependency: VariableDependencyConfig<CustomVariableState>;
|
|
690
691
|
constructor(initialState: Partial<CustomVariableState>);
|
|
691
692
|
getValueOptions(args: VariableGetOptionsArgs): Observable<VariableValueOption[]>;
|
|
692
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
693
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => React$1.JSX.Element;
|
|
693
694
|
}
|
|
694
695
|
|
|
695
696
|
interface DataSourceVariableState extends MultiValueVariableState {
|
|
@@ -710,7 +711,7 @@ declare class DataSourceVariable extends MultiValueVariable<DataSourceVariableSt
|
|
|
710
711
|
protected _variableDependency: VariableDependencyConfig<DataSourceVariableState>;
|
|
711
712
|
constructor(initialState: Partial<DataSourceVariableState>);
|
|
712
713
|
getValueOptions(args: VariableGetOptionsArgs): Observable<VariableValueOption[]>;
|
|
713
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
714
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => React$1.JSX.Element;
|
|
714
715
|
}
|
|
715
716
|
|
|
716
717
|
interface IntervalVariableState extends SceneVariableState {
|
|
@@ -733,7 +734,7 @@ declare class IntervalVariable extends SceneObjectBase<IntervalVariableState> im
|
|
|
733
734
|
private getAutoRefreshInteval;
|
|
734
735
|
_onChange: (value: SelectableValue<string>) => void;
|
|
735
736
|
validateAndUpdate(): Observable<ValidateAndUpdateResult>;
|
|
736
|
-
static Component: ({ model }: SceneComponentProps<IntervalVariable>) => JSX.Element;
|
|
737
|
+
static Component: ({ model }: SceneComponentProps<IntervalVariable>) => React__default.JSX.Element;
|
|
737
738
|
}
|
|
738
739
|
|
|
739
740
|
interface TextBoxVariableState extends SceneVariableState {
|
|
@@ -748,7 +749,7 @@ declare class TextBoxVariable extends SceneObjectBase<TextBoxVariableState> impl
|
|
|
748
749
|
[x: string]: string;
|
|
749
750
|
};
|
|
750
751
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
751
|
-
static Component: ({ model }: SceneComponentProps<TextBoxVariable>) => JSX.Element;
|
|
752
|
+
static Component: ({ model }: SceneComponentProps<TextBoxVariable>) => React__default.JSX.Element;
|
|
752
753
|
}
|
|
753
754
|
|
|
754
755
|
interface QueryRunnerState extends SceneObjectState {
|
|
@@ -847,7 +848,7 @@ declare class QueryVariable extends MultiValueVariable<QueryVariableState> {
|
|
|
847
848
|
private getRequest;
|
|
848
849
|
onSearchChange: (searchFilter: string) => void;
|
|
849
850
|
private _updateOptionsBasedOnSearchFilter;
|
|
850
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
851
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => React$1.JSX.Element;
|
|
851
852
|
}
|
|
852
853
|
|
|
853
854
|
interface GroupByVariableState extends MultiValueVariableState {
|
|
@@ -909,7 +910,7 @@ declare class GroupByVariable extends MultiValueVariable<GroupByVariableState> {
|
|
|
909
910
|
*/
|
|
910
911
|
private _getSceneQueries;
|
|
911
912
|
}
|
|
912
|
-
declare function GroupByVariableRenderer({ model }: SceneComponentProps<MultiValueVariable>): JSX.Element;
|
|
913
|
+
declare function GroupByVariableRenderer({ model }: SceneComponentProps<MultiValueVariable>): React$1.JSX.Element;
|
|
913
914
|
|
|
914
915
|
declare function isAdHocVariable(variable: SceneVariable): variable is AdHocFiltersVariable;
|
|
915
916
|
declare function isConstantVariable(variable: SceneVariable): variable is ConstantVariable;
|
|
@@ -1196,7 +1197,7 @@ declare class AnnotationsDataLayer extends SceneDataLayerBase<AnnotationsDataLay
|
|
|
1196
1197
|
traceIds?: string[];
|
|
1197
1198
|
};
|
|
1198
1199
|
}
|
|
1199
|
-
declare function AnnotationsDataLayerRenderer({ model }: SceneComponentProps<AnnotationsDataLayer>): JSX.Element;
|
|
1200
|
+
declare function AnnotationsDataLayerRenderer({ model }: SceneComponentProps<AnnotationsDataLayer>): React__default.JSX.Element;
|
|
1200
1201
|
|
|
1201
1202
|
type index_AnnotationsDataLayer = AnnotationsDataLayer;
|
|
1202
1203
|
declare const index_AnnotationsDataLayer: typeof AnnotationsDataLayer;
|
|
@@ -1294,7 +1295,7 @@ interface SceneDataLayersSetState extends SceneDataLayerProviderState {
|
|
|
1294
1295
|
declare class SceneDataLayerSet extends SceneDataLayerSetBase<SceneDataLayersSetState> implements SceneDataLayerProvider {
|
|
1295
1296
|
constructor(state: Partial<SceneDataLayersSetState>);
|
|
1296
1297
|
private _onActivate;
|
|
1297
|
-
static Component: ({ model }: SceneComponentProps<SceneDataLayerSet>) => JSX.Element;
|
|
1298
|
+
static Component: ({ model }: SceneComponentProps<SceneDataLayerSet>) => React__default.JSX.Element;
|
|
1298
1299
|
}
|
|
1299
1300
|
|
|
1300
1301
|
interface SceneDataLayerControlsState extends SceneObjectState {
|
|
@@ -1303,7 +1304,7 @@ declare class SceneDataLayerControls extends SceneObjectBase<SceneDataLayerContr
|
|
|
1303
1304
|
static Component: typeof SceneDataLayerControlsRenderer;
|
|
1304
1305
|
constructor();
|
|
1305
1306
|
}
|
|
1306
|
-
declare function SceneDataLayerControlsRenderer({ model }: SceneComponentProps<SceneDataLayerControls>): JSX.Element;
|
|
1307
|
+
declare function SceneDataLayerControlsRenderer({ model }: SceneComponentProps<SceneDataLayerControls>): React__default.JSX.Element;
|
|
1307
1308
|
|
|
1308
1309
|
interface SceneDataTransformerState extends SceneDataState {
|
|
1309
1310
|
/**
|
|
@@ -1348,7 +1349,7 @@ interface VariableValueSelectorsState extends SceneObjectState {
|
|
|
1348
1349
|
declare class VariableValueSelectors extends SceneObjectBase<VariableValueSelectorsState> {
|
|
1349
1350
|
static Component: typeof VariableValueSelectorsRenderer;
|
|
1350
1351
|
}
|
|
1351
|
-
declare function VariableValueSelectorsRenderer({ model }: SceneComponentProps<VariableValueSelectors>): JSX.Element;
|
|
1352
|
+
declare function VariableValueSelectorsRenderer({ model }: SceneComponentProps<VariableValueSelectors>): React__default.JSX.Element;
|
|
1352
1353
|
|
|
1353
1354
|
interface VariableValueControlState extends SceneObjectState {
|
|
1354
1355
|
layout?: ControlsLayout;
|
|
@@ -1358,7 +1359,7 @@ interface VariableValueControlState extends SceneObjectState {
|
|
|
1358
1359
|
declare class VariableValueControl extends SceneObjectBase<VariableValueControlState> {
|
|
1359
1360
|
static Component: typeof VariableValueControlRenderer;
|
|
1360
1361
|
}
|
|
1361
|
-
declare function VariableValueControlRenderer({ model }: SceneComponentProps<VariableValueControl>): JSX.Element;
|
|
1362
|
+
declare function VariableValueControlRenderer({ model }: SceneComponentProps<VariableValueControl>): React__default.JSX.Element;
|
|
1362
1363
|
|
|
1363
1364
|
declare class SceneVariableSet extends SceneObjectBase<SceneVariableSetState> implements SceneVariables {
|
|
1364
1365
|
/** Variables that have changed in since the activation or since the first manual value change */
|
|
@@ -1460,7 +1461,7 @@ declare class TestVariable extends MultiValueVariable<TestVariableState> {
|
|
|
1460
1461
|
private getOptions;
|
|
1461
1462
|
/** Useful from tests */
|
|
1462
1463
|
signalUpdateCompleted(): void;
|
|
1463
|
-
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => JSX.Element;
|
|
1464
|
+
static Component: ({ model }: SceneComponentProps<MultiValueVariable>) => React$1.JSX.Element;
|
|
1464
1465
|
}
|
|
1465
1466
|
|
|
1466
1467
|
interface LocalValueVariableState extends SceneVariableState {
|
|
@@ -1529,9 +1530,9 @@ declare class EmbeddedScene extends SceneObjectBase<EmbeddedSceneState> {
|
|
|
1529
1530
|
*/
|
|
1530
1531
|
initUrlSync(): void;
|
|
1531
1532
|
}
|
|
1532
|
-
declare function EmbeddedSceneRenderer({ model }: SceneComponentProps<EmbeddedScene>): JSX.Element;
|
|
1533
|
+
declare function EmbeddedSceneRenderer({ model }: SceneComponentProps<EmbeddedScene>): React__default.JSX.Element;
|
|
1533
1534
|
|
|
1534
|
-
declare function VizPanelRenderer({ model }: SceneComponentProps<VizPanel>): JSX.Element;
|
|
1535
|
+
declare function VizPanelRenderer({ model }: SceneComponentProps<VizPanel>): React__default.JSX.Element;
|
|
1535
1536
|
|
|
1536
1537
|
interface VizPanelMenuState extends SceneObjectState {
|
|
1537
1538
|
items?: PanelMenuItem[];
|
|
@@ -1541,7 +1542,7 @@ declare class VizPanelMenu extends SceneObjectBase<VizPanelMenuState> {
|
|
|
1541
1542
|
addItem(item: PanelMenuItem): void;
|
|
1542
1543
|
setItems(items: PanelMenuItem[]): void;
|
|
1543
1544
|
}
|
|
1544
|
-
declare function VizPanelMenuRenderer({ model }: SceneComponentProps<VizPanelMenu>): JSX.Element;
|
|
1545
|
+
declare function VizPanelMenuRenderer({ model }: SceneComponentProps<VizPanelMenu>): React__default.JSX.Element;
|
|
1545
1546
|
|
|
1546
1547
|
interface VizPanelState<TOptions = {}, TFieldConfig = {}> extends SceneObjectState {
|
|
1547
1548
|
/**
|
|
@@ -1645,7 +1646,7 @@ declare class NestedScene extends SceneObjectBase<NestedSceneState> {
|
|
|
1645
1646
|
/** Removes itself from its parent's children array */
|
|
1646
1647
|
onRemove: () => void;
|
|
1647
1648
|
}
|
|
1648
|
-
declare function NestedSceneRenderer({ model }: SceneComponentProps<NestedScene>): JSX.Element;
|
|
1649
|
+
declare function NestedSceneRenderer({ model }: SceneComponentProps<NestedScene>): React__default.JSX.Element;
|
|
1649
1650
|
|
|
1650
1651
|
interface SceneCanvasTextState extends SceneObjectState {
|
|
1651
1652
|
text: string;
|
|
@@ -1659,7 +1660,7 @@ interface SceneCanvasTextState extends SceneObjectState {
|
|
|
1659
1660
|
*/
|
|
1660
1661
|
declare class SceneCanvasText extends SceneObjectBase<SceneCanvasTextState> {
|
|
1661
1662
|
protected _variableDependency: VariableDependencyConfig<SceneCanvasTextState>;
|
|
1662
|
-
static Component: ({ model }: SceneComponentProps<SceneCanvasText>) => JSX.Element;
|
|
1663
|
+
static Component: ({ model }: SceneComponentProps<SceneCanvasText>) => React__default.JSX.Element;
|
|
1663
1664
|
}
|
|
1664
1665
|
|
|
1665
1666
|
interface ToolbarButtonState extends SceneObjectState {
|
|
@@ -1667,7 +1668,7 @@ interface ToolbarButtonState extends SceneObjectState {
|
|
|
1667
1668
|
onClick: () => void;
|
|
1668
1669
|
}
|
|
1669
1670
|
declare class SceneToolbarButton extends SceneObjectBase<ToolbarButtonState> {
|
|
1670
|
-
static Component: ({ model }: SceneComponentProps<SceneToolbarButton>) => JSX.Element;
|
|
1671
|
+
static Component: ({ model }: SceneComponentProps<SceneToolbarButton>) => React__default.JSX.Element;
|
|
1671
1672
|
}
|
|
1672
1673
|
interface SceneToolbarInputState extends SceneObjectState {
|
|
1673
1674
|
value?: string;
|
|
@@ -1675,7 +1676,7 @@ interface SceneToolbarInputState extends SceneObjectState {
|
|
|
1675
1676
|
onChange: (value: number) => void;
|
|
1676
1677
|
}
|
|
1677
1678
|
declare class SceneToolbarInput extends SceneObjectBase<SceneToolbarInputState> {
|
|
1678
|
-
static Component: ({ model }: SceneComponentProps<SceneToolbarInput>) => JSX.Element;
|
|
1679
|
+
static Component: ({ model }: SceneComponentProps<SceneToolbarInput>) => React__default.JSX.Element;
|
|
1679
1680
|
}
|
|
1680
1681
|
|
|
1681
1682
|
interface SceneTimePickerState extends SceneObjectState {
|
|
@@ -1689,7 +1690,7 @@ declare class SceneTimePicker extends SceneObjectBase<SceneTimePickerState> {
|
|
|
1689
1690
|
onMoveBackward: () => void;
|
|
1690
1691
|
onMoveForward: () => void;
|
|
1691
1692
|
}
|
|
1692
|
-
declare function SceneTimePickerRenderer({ model }: SceneComponentProps<SceneTimePicker>): JSX.Element;
|
|
1693
|
+
declare function SceneTimePickerRenderer({ model }: SceneComponentProps<SceneTimePicker>): React__default.JSX.Element;
|
|
1693
1694
|
|
|
1694
1695
|
interface SceneRefreshPickerState extends SceneObjectState {
|
|
1695
1696
|
refresh: string;
|
|
@@ -1717,7 +1718,7 @@ declare class SceneRefreshPicker extends SceneObjectBase<SceneRefreshPickerState
|
|
|
1717
1718
|
private calculateAutoRefreshInterval;
|
|
1718
1719
|
private setupIntervalTimer;
|
|
1719
1720
|
}
|
|
1720
|
-
declare function SceneRefreshPickerRenderer({ model }: SceneComponentProps<SceneRefreshPicker>): JSX.Element;
|
|
1721
|
+
declare function SceneRefreshPickerRenderer({ model }: SceneComponentProps<SceneRefreshPicker>): React__default.JSX.Element;
|
|
1721
1722
|
|
|
1722
1723
|
interface TimeRangeCompareProvider {
|
|
1723
1724
|
getCompareTimeRange(timeRange: TimeRange): TimeRange | undefined;
|
|
@@ -1744,7 +1745,7 @@ declare class SceneTimeRangeCompare extends SceneObjectBase<SceneTimeRangeCompar
|
|
|
1744
1745
|
getUrlState(): SceneObjectUrlValues;
|
|
1745
1746
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
1746
1747
|
}
|
|
1747
|
-
declare function SceneTimeRangeCompareRenderer({ model }: SceneComponentProps<SceneTimeRangeCompare>): JSX.Element;
|
|
1748
|
+
declare function SceneTimeRangeCompareRenderer({ model }: SceneComponentProps<SceneTimeRangeCompare>): React__default.JSX.Element;
|
|
1748
1749
|
|
|
1749
1750
|
interface SceneByFrameRepeaterState extends SceneObjectState {
|
|
1750
1751
|
body: SceneLayout;
|
|
@@ -1753,7 +1754,7 @@ interface SceneByFrameRepeaterState extends SceneObjectState {
|
|
|
1753
1754
|
declare class SceneByFrameRepeater extends SceneObjectBase<SceneByFrameRepeaterState> {
|
|
1754
1755
|
constructor(state: SceneByFrameRepeaterState);
|
|
1755
1756
|
private performRepeat;
|
|
1756
|
-
static Component: ({ model }: SceneComponentProps<SceneByFrameRepeater>) => JSX.Element;
|
|
1757
|
+
static Component: ({ model }: SceneComponentProps<SceneByFrameRepeater>) => React__default.JSX.Element;
|
|
1757
1758
|
}
|
|
1758
1759
|
|
|
1759
1760
|
interface SceneByVariableRepeaterState extends SceneObjectState {
|
|
@@ -1765,13 +1766,13 @@ declare class SceneByVariableRepeater extends SceneObjectBase<SceneByVariableRep
|
|
|
1765
1766
|
protected _variableDependency: VariableDependencyConfig<SceneByVariableRepeaterState>;
|
|
1766
1767
|
constructor(state: SceneByVariableRepeaterState);
|
|
1767
1768
|
private performRepeat;
|
|
1768
|
-
static Component: ({ model }: SceneComponentProps<SceneByVariableRepeater>) => JSX.Element;
|
|
1769
|
+
static Component: ({ model }: SceneComponentProps<SceneByVariableRepeater>) => React__default.JSX.Element;
|
|
1769
1770
|
}
|
|
1770
1771
|
|
|
1771
1772
|
declare class SceneControlsSpacer extends SceneObjectBase {
|
|
1772
1773
|
constructor();
|
|
1773
|
-
get Component(): (_props: SceneComponentProps<SceneControlsSpacer>) => JSX.Element;
|
|
1774
|
-
static Component: (_props: SceneComponentProps<SceneControlsSpacer>) => JSX.Element;
|
|
1774
|
+
get Component(): (_props: SceneComponentProps<SceneControlsSpacer>) => React__default.JSX.Element;
|
|
1775
|
+
static Component: (_props: SceneComponentProps<SceneControlsSpacer>) => React__default.JSX.Element;
|
|
1775
1776
|
}
|
|
1776
1777
|
|
|
1777
1778
|
interface SceneFlexItemStateLike extends SceneFlexItemPlacement, SceneObjectState {
|
|
@@ -1786,7 +1787,7 @@ declare class SceneFlexLayout extends SceneObjectBase<SceneFlexLayoutState> impl
|
|
|
1786
1787
|
toggleDirection(): void;
|
|
1787
1788
|
isDraggable(): boolean;
|
|
1788
1789
|
}
|
|
1789
|
-
declare function SceneFlexLayoutRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexLayout>): JSX.Element;
|
|
1790
|
+
declare function SceneFlexLayoutRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexLayout>): React__default.JSX.Element;
|
|
1790
1791
|
interface SceneFlexItemPlacement {
|
|
1791
1792
|
wrap?: CSSProperties['flexWrap'];
|
|
1792
1793
|
direction?: CSSProperties['flexDirection'];
|
|
@@ -1818,7 +1819,7 @@ interface SceneFlexItemRenderProps$1<T> extends SceneComponentProps<T> {
|
|
|
1818
1819
|
declare class SceneFlexItem extends SceneObjectBase<SceneFlexItemState> {
|
|
1819
1820
|
static Component: typeof SceneFlexItemRenderer;
|
|
1820
1821
|
}
|
|
1821
|
-
declare function SceneFlexItemRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexItem>): JSX.Element;
|
|
1822
|
+
declare function SceneFlexItemRenderer({ model, parentState }: SceneFlexItemRenderProps$1<SceneFlexItem>): React__default.JSX.Element;
|
|
1822
1823
|
|
|
1823
1824
|
interface SceneCSSGridLayoutState extends SceneObjectState, SceneCSSGridLayoutOptions {
|
|
1824
1825
|
children: Array<SceneCSSGridItem | SceneObject>;
|
|
@@ -1862,7 +1863,7 @@ declare class SceneCSSGridLayout extends SceneObjectBase<SceneCSSGridLayoutState
|
|
|
1862
1863
|
constructor(state: Partial<SceneCSSGridLayoutState>);
|
|
1863
1864
|
isDraggable(): boolean;
|
|
1864
1865
|
}
|
|
1865
|
-
declare function SceneCSSGridLayoutRenderer({ model }: SceneCSSGridItemRenderProps<SceneCSSGridLayout>): JSX.Element;
|
|
1866
|
+
declare function SceneCSSGridLayoutRenderer({ model }: SceneCSSGridItemRenderProps<SceneCSSGridLayout>): React__default.JSX.Element;
|
|
1866
1867
|
interface SceneCSSGridItemPlacement {
|
|
1867
1868
|
/**
|
|
1868
1869
|
* True when the item should rendered but not visible.
|
|
@@ -1884,9 +1885,9 @@ interface SceneCSSGridItemRenderProps<T> extends SceneComponentProps<T> {
|
|
|
1884
1885
|
declare class SceneCSSGridItem extends SceneObjectBase<SceneCSSGridItemState> {
|
|
1885
1886
|
static Component: typeof SceneCSSGridItemRenderer;
|
|
1886
1887
|
}
|
|
1887
|
-
declare function SceneCSSGridItemRenderer({ model, parentState }: SceneCSSGridItemRenderProps<SceneCSSGridItem>): JSX.Element;
|
|
1888
|
+
declare function SceneCSSGridItemRenderer({ model, parentState }: SceneCSSGridItemRenderProps<SceneCSSGridItem>): React__default.JSX.Element;
|
|
1888
1889
|
|
|
1889
|
-
declare function SceneGridLayoutRenderer({ model }: SceneComponentProps<SceneGridLayout>): JSX.Element;
|
|
1890
|
+
declare function SceneGridLayoutRenderer({ model }: SceneComponentProps<SceneGridLayout>): React__default.JSX.Element;
|
|
1890
1891
|
|
|
1891
1892
|
interface SceneGridItemPlacement {
|
|
1892
1893
|
x?: number;
|
|
@@ -1922,7 +1923,7 @@ declare class SceneGridRow extends SceneObjectBase<SceneGridRowState> {
|
|
|
1922
1923
|
};
|
|
1923
1924
|
updateFromUrl(values: SceneObjectUrlValues): void;
|
|
1924
1925
|
}
|
|
1925
|
-
declare function SceneGridRowRenderer({ model }: SceneComponentProps<SceneGridRow>): JSX.Element;
|
|
1926
|
+
declare function SceneGridRowRenderer({ model }: SceneComponentProps<SceneGridRow>): React__default.JSX.Element;
|
|
1926
1927
|
|
|
1927
1928
|
interface SceneGridLayoutState extends SceneObjectState {
|
|
1928
1929
|
/**
|
|
@@ -1981,9 +1982,9 @@ interface SceneGridItemState extends SceneGridItemStateLike {
|
|
|
1981
1982
|
declare class SceneGridItem extends SceneObjectBase<SceneGridItemState> implements SceneGridItemLike {
|
|
1982
1983
|
static Component: typeof SceneGridItemRenderer;
|
|
1983
1984
|
}
|
|
1984
|
-
declare function SceneGridItemRenderer({ model }: SceneComponentProps<SceneGridItem>): JSX.Element;
|
|
1985
|
+
declare function SceneGridItemRenderer({ model }: SceneComponentProps<SceneGridItem>): React__default.JSX.Element;
|
|
1985
1986
|
|
|
1986
|
-
declare function SplitLayoutRenderer({ model }: SceneFlexItemRenderProps<SplitLayout>): JSX.Element;
|
|
1987
|
+
declare function SplitLayoutRenderer({ model }: SceneFlexItemRenderProps<SplitLayout>): React__default.JSX.Element;
|
|
1987
1988
|
interface SceneFlexItemRenderProps<T> extends SceneComponentProps<T> {
|
|
1988
1989
|
parentState?: SceneFlexItemPlacement;
|
|
1989
1990
|
}
|
|
@@ -2083,7 +2084,7 @@ declare class SceneApp extends SceneObjectBase<SceneAppState> implements DataReq
|
|
|
2083
2084
|
enrichDataRequest(): {
|
|
2084
2085
|
app: string;
|
|
2085
2086
|
};
|
|
2086
|
-
static Component: ({ model }: SceneComponentProps<SceneApp>) => JSX.Element;
|
|
2087
|
+
static Component: ({ model }: SceneComponentProps<SceneApp>) => React__default.JSX.Element;
|
|
2087
2088
|
}
|
|
2088
2089
|
/**
|
|
2089
2090
|
* Caches the the resulting SceneApp returned by the factory function so that it's only called once during the lifetime of the browser tab
|
|
@@ -2106,13 +2107,13 @@ declare class SceneAppPage extends SceneObjectBase<SceneAppPageState> implements
|
|
|
2106
2107
|
interface SceneAppPageRendererProps extends SceneComponentProps<SceneAppPage> {
|
|
2107
2108
|
routeProps: RouteComponentProps;
|
|
2108
2109
|
}
|
|
2109
|
-
declare function SceneAppPageRenderer({ model, routeProps }: SceneAppPageRendererProps): JSX.Element;
|
|
2110
|
+
declare function SceneAppPageRenderer({ model, routeProps }: SceneAppPageRendererProps): React__default.JSX.Element;
|
|
2110
2111
|
|
|
2111
2112
|
interface SceneReactObjectState<TProps = {}> extends SceneObjectState {
|
|
2112
2113
|
/**
|
|
2113
2114
|
* React component to render
|
|
2114
2115
|
*/
|
|
2115
|
-
component?:
|
|
2116
|
+
component?: React__default.ComponentType<TProps>;
|
|
2116
2117
|
/**
|
|
2117
2118
|
* Props to pass to the component
|
|
2118
2119
|
*/
|
|
@@ -2120,13 +2121,13 @@ interface SceneReactObjectState<TProps = {}> extends SceneObjectState {
|
|
|
2120
2121
|
/**
|
|
2121
2122
|
* Alternative to component and props is just to pass a React node
|
|
2122
2123
|
*/
|
|
2123
|
-
reactNode?:
|
|
2124
|
+
reactNode?: React__default.ReactNode;
|
|
2124
2125
|
}
|
|
2125
2126
|
/**
|
|
2126
2127
|
* A utility object that can be used to render any React component or ReactNode
|
|
2127
2128
|
*/
|
|
2128
2129
|
declare class SceneReactObject<TProps = {}> extends SceneObjectBase<SceneReactObjectState<TProps>> {
|
|
2129
|
-
static Component: ({ model }: SceneComponentProps<SceneReactObject>) =>
|
|
2130
|
+
static Component: ({ model }: SceneComponentProps<SceneReactObject>) => string | number | true | Iterable<React__default.ReactNode> | React__default.JSX.Element;
|
|
2130
2131
|
}
|
|
2131
2132
|
|
|
2132
2133
|
type StandardFieldConfigInterface<T, C, Prefix extends string> = {
|
|
@@ -2441,7 +2442,7 @@ interface Props {
|
|
|
2441
2442
|
*
|
|
2442
2443
|
* This is only exported so that core dashboards can use it.
|
|
2443
2444
|
*/
|
|
2444
|
-
declare function SceneDebugger({ scene }: Props): JSX.Element;
|
|
2445
|
+
declare function SceneDebugger({ scene }: Props): React__default.JSX.Element;
|
|
2445
2446
|
|
|
2446
2447
|
declare const sceneUtils: {
|
|
2447
2448
|
getUrlWithAppState: typeof getUrlWithAppState;
|