@glasshome/widget-sdk 1.28.0 → 1.29.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/export-history.json
CHANGED
|
@@ -5855,5 +5855,150 @@
|
|
|
5855
5855
|
"useWidgetViewer",
|
|
5856
5856
|
"widgetFields",
|
|
5857
5857
|
"z"
|
|
5858
|
+
],
|
|
5859
|
+
"1.29.0": [
|
|
5860
|
+
"Badge",
|
|
5861
|
+
"Button",
|
|
5862
|
+
"ButtonGroup",
|
|
5863
|
+
"Carousel",
|
|
5864
|
+
"CarouselContent",
|
|
5865
|
+
"CarouselDots",
|
|
5866
|
+
"CarouselItem",
|
|
5867
|
+
"CarouselNext",
|
|
5868
|
+
"CarouselPrevious",
|
|
5869
|
+
"ColorDisc",
|
|
5870
|
+
"ColorSlider",
|
|
5871
|
+
"ColorWheel",
|
|
5872
|
+
"CountPill",
|
|
5873
|
+
"Icon",
|
|
5874
|
+
"Input",
|
|
5875
|
+
"Label",
|
|
5876
|
+
"PanelEntityRow",
|
|
5877
|
+
"PanelFacts",
|
|
5878
|
+
"PanelRow",
|
|
5879
|
+
"PanelRows",
|
|
5880
|
+
"PanelSection",
|
|
5881
|
+
"Progress",
|
|
5882
|
+
"ResponsiveDialog",
|
|
5883
|
+
"ResponsiveDialogBody",
|
|
5884
|
+
"ResponsiveDialogClose",
|
|
5885
|
+
"ResponsiveDialogContent",
|
|
5886
|
+
"ResponsiveDialogDescription",
|
|
5887
|
+
"ResponsiveDialogFooter",
|
|
5888
|
+
"ResponsiveDialogHeader",
|
|
5889
|
+
"ResponsiveDialogTitle",
|
|
5890
|
+
"SDK_VERSION",
|
|
5891
|
+
"SchemaForm",
|
|
5892
|
+
"SectionIcon",
|
|
5893
|
+
"SectionTitle",
|
|
5894
|
+
"Select",
|
|
5895
|
+
"SelectContent",
|
|
5896
|
+
"SelectItem",
|
|
5897
|
+
"SelectTrigger",
|
|
5898
|
+
"SelectValue",
|
|
5899
|
+
"Slider",
|
|
5900
|
+
"SwatchPicker",
|
|
5901
|
+
"Switch",
|
|
5902
|
+
"Tabs",
|
|
5903
|
+
"TabsContent",
|
|
5904
|
+
"TabsList",
|
|
5905
|
+
"TabsTrigger",
|
|
5906
|
+
"TemperatureBar",
|
|
5907
|
+
"Toggle",
|
|
5908
|
+
"ToggleGroup",
|
|
5909
|
+
"ToggleGroupItem",
|
|
5910
|
+
"ToneSchema",
|
|
5911
|
+
"Widget",
|
|
5912
|
+
"WidgetAction",
|
|
5913
|
+
"WidgetBackdrop",
|
|
5914
|
+
"WidgetChip",
|
|
5915
|
+
"WidgetChoice",
|
|
5916
|
+
"WidgetContent",
|
|
5917
|
+
"WidgetControls",
|
|
5918
|
+
"WidgetCtx",
|
|
5919
|
+
"WidgetDebugTab",
|
|
5920
|
+
"WidgetDebugView",
|
|
5921
|
+
"WidgetDialog",
|
|
5922
|
+
"WidgetGlyph",
|
|
5923
|
+
"WidgetHead",
|
|
5924
|
+
"WidgetHero",
|
|
5925
|
+
"WidgetIcon",
|
|
5926
|
+
"WidgetLayer",
|
|
5927
|
+
"WidgetManifestSchema",
|
|
5928
|
+
"WidgetSizeCtx",
|
|
5929
|
+
"WidgetSliderFill",
|
|
5930
|
+
"WidgetStatus",
|
|
5931
|
+
"WidgetStepper",
|
|
5932
|
+
"WidgetTitle",
|
|
5933
|
+
"WidgetValue",
|
|
5934
|
+
"buildDebugData",
|
|
5935
|
+
"byDomain",
|
|
5936
|
+
"calculateLightGroup",
|
|
5937
|
+
"calculateSensorGroup",
|
|
5938
|
+
"copyText",
|
|
5939
|
+
"countActiveEntities",
|
|
5940
|
+
"defineConfig",
|
|
5941
|
+
"defineWidget",
|
|
5942
|
+
"deprecations",
|
|
5943
|
+
"field",
|
|
5944
|
+
"formatDeprecation",
|
|
5945
|
+
"formatSchemaError",
|
|
5946
|
+
"getEntityAttribute",
|
|
5947
|
+
"getForecasts",
|
|
5948
|
+
"getStream",
|
|
5949
|
+
"getWebRtcClientConfig",
|
|
5950
|
+
"hassMediaUrl",
|
|
5951
|
+
"imagePreset",
|
|
5952
|
+
"imageSrc",
|
|
5953
|
+
"imageUrl",
|
|
5954
|
+
"injectTokens",
|
|
5955
|
+
"isDark",
|
|
5956
|
+
"isEntityActive",
|
|
5957
|
+
"isPanelControllable",
|
|
5958
|
+
"mediaUrl",
|
|
5959
|
+
"monotoneCubicPath",
|
|
5960
|
+
"parseColor",
|
|
5961
|
+
"presetValue",
|
|
5962
|
+
"sendWebRtcCandidate",
|
|
5963
|
+
"startWebRtcSession",
|
|
5964
|
+
"state",
|
|
5965
|
+
"svgColors",
|
|
5966
|
+
"trackEntityHistory",
|
|
5967
|
+
"untrackEntityHistory",
|
|
5968
|
+
"useArea",
|
|
5969
|
+
"useCalendarEvents",
|
|
5970
|
+
"useCamera",
|
|
5971
|
+
"useConfirm",
|
|
5972
|
+
"useConnection",
|
|
5973
|
+
"useCopyText",
|
|
5974
|
+
"useCurrency",
|
|
5975
|
+
"useDaylight",
|
|
5976
|
+
"useEntities",
|
|
5977
|
+
"useEntity",
|
|
5978
|
+
"useEntityHistory",
|
|
5979
|
+
"useEntityStatistics",
|
|
5980
|
+
"useForecast",
|
|
5981
|
+
"useHassConfig",
|
|
5982
|
+
"useIntersectionPause",
|
|
5983
|
+
"useLocale",
|
|
5984
|
+
"useMaterial",
|
|
5985
|
+
"useReducedMotion",
|
|
5986
|
+
"useService",
|
|
5987
|
+
"useStore",
|
|
5988
|
+
"useTemperatureUnit",
|
|
5989
|
+
"useToggle",
|
|
5990
|
+
"useTurnOff",
|
|
5991
|
+
"useTurnOn",
|
|
5992
|
+
"useUnitSystem",
|
|
5993
|
+
"useWidgetContext",
|
|
5994
|
+
"useWidgetDashboard",
|
|
5995
|
+
"useWidgetDialog",
|
|
5996
|
+
"useWidgetDimensions",
|
|
5997
|
+
"useWidgetEntityGroup",
|
|
5998
|
+
"useWidgetGestures",
|
|
5999
|
+
"useWidgetState",
|
|
6000
|
+
"useWidgetViewer",
|
|
6001
|
+
"widgetFields",
|
|
6002
|
+
"z"
|
|
5858
6003
|
]
|
|
5859
6004
|
}
|
|
@@ -54,6 +54,9 @@ export interface ReactiveWidgetContext {
|
|
|
54
54
|
/** Present when the host mounts the widget; the service hooks route
|
|
55
55
|
through it. Absent in previews/tests (direct sync-layer fallback). */
|
|
56
56
|
callService?: ServiceCallFn;
|
|
57
|
+
/** Whether the widget's own grant lets it make this call, so a control it cannot run is never drawn.
|
|
58
|
+
Absent on hosts that predate this field: draw the control and let the call answer. */
|
|
59
|
+
canCall?: (domain: string, service: string, entityIds: string[]) => boolean;
|
|
57
60
|
/** The dashboard this instance sits on. Absent on hosts that predate this field. */
|
|
58
61
|
dashboard?: () => WidgetDashboard;
|
|
59
62
|
/** Who is looking. Absent on hosts that predate this field. */
|
|
@@ -4,6 +4,7 @@ export declare function isPanelControllable(domain: string): boolean;
|
|
|
4
4
|
/**
|
|
5
5
|
* A row for any entity, drawn and wired from its domain: a light dims, a cover
|
|
6
6
|
* opens, a lock locks. The same row the area panel and every group panel use.
|
|
7
|
+
* A call the widget's grant refuses draws no control; the row still reads.
|
|
7
8
|
*/
|
|
8
9
|
export declare function PanelEntityRow(props: {
|
|
9
10
|
entityId: string;
|
|
@@ -9,7 +9,7 @@ export interface PanelSlide {
|
|
|
9
9
|
onCommit?: (value: number) => void;
|
|
10
10
|
/** Names the value for screen readers and the keyboard handle ("Brightness"). */
|
|
11
11
|
label?: string;
|
|
12
|
-
/**
|
|
12
|
+
/** The value moves in steps of this size, by drag and by keyboard. Unset: the drag reports whole numbers and a key moves 5. */
|
|
13
13
|
step?: number;
|
|
14
14
|
}
|
|
15
15
|
/** A labelled group in the panel's aside ("Lights", "Playing on"). */
|