@glasshome/widget-sdk 1.30.0 → 1.31.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/data.d.ts +10 -1
- package/dist/deprecations.js +13 -0
- package/dist/export-history.json +149 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +519 -510
- package/dist/media/camera-source.d.ts +21 -0
- package/dist/media/camera-source.js +39 -0
- package/dist/media/camera-stream.d.ts +18 -0
- package/dist/media/camera-stream.js +176 -0
- package/dist/media/drivers/hls.d.ts +2 -0
- package/dist/media/drivers/types.d.ts +11 -0
- package/dist/media/drivers/webrtc.d.ts +3 -0
- package/package.json +7 -1
package/dist/data.d.ts
CHANGED
|
@@ -5,7 +5,16 @@
|
|
|
5
5
|
* import map), and a direct import would bundle a second, disconnected
|
|
6
6
|
* store. Phase 4 routes these through capability checks.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
import * as syncLayer from "@glasshome/sync-layer";
|
|
9
|
+
export { getForecasts, hassMediaUrl, state, trackEntityHistory, untrackEntityHistory, } from "@glasshome/sync-layer";
|
|
10
|
+
/** @deprecated since 1.31.0, removed in 2.0.0. Use `<CameraStream entityId kind="hls">`. */
|
|
11
|
+
export declare const getStream: typeof syncLayer.getStream;
|
|
12
|
+
/** @deprecated since 1.31.0, removed in 2.0.0. Use `<CameraStream entityId kind="webrtc">`. */
|
|
13
|
+
export declare const getWebRtcClientConfig: typeof syncLayer.getWebRtcClientConfig;
|
|
14
|
+
/** @deprecated since 1.31.0, removed in 2.0.0. Use `<CameraStream entityId kind="webrtc">`. */
|
|
15
|
+
export declare const startWebRtcSession: typeof syncLayer.startWebRtcSession;
|
|
16
|
+
/** @deprecated since 1.31.0, removed in 2.0.0. Use `<CameraStream entityId kind="webrtc">`. */
|
|
17
|
+
export declare const sendWebRtcCandidate: typeof syncLayer.sendWebRtcCandidate;
|
|
9
18
|
export type { AreaView, CalendarEvent, CalendarEventsData, CalendarWindowOptions, ForecastType, WeatherForecast, } from "@glasshome/sync-layer";
|
|
10
19
|
export { byDomain, useArea, useCalendarEvents, useCamera, useConnection, useCurrency, useEntities, useEntity, useEntityHistory, useEntityStatistics, useForecast, useHassConfig, useLocale, useStore, useTemperatureUnit, useUnitSystem, } from "@glasshome/sync-layer/solid";
|
|
11
20
|
export { useService, useToggle, useTurnOff, useTurnOn } from "./framework/hooks/use-service";
|
package/dist/deprecations.js
CHANGED
|
@@ -111,6 +111,19 @@ var e = "https://glasshome.app/docs/widget-sdk/config", t = [
|
|
|
111
111
|
docsUrl: "https://glasshome.app/docs/widgets/widget-sealed-engine",
|
|
112
112
|
sourcePattern: "\\binstantiateWidget\\b"
|
|
113
113
|
},
|
|
114
|
+
...[
|
|
115
|
+
"getStream",
|
|
116
|
+
"getWebRtcClientConfig",
|
|
117
|
+
"startWebRtcSession",
|
|
118
|
+
"sendWebRtcCandidate"
|
|
119
|
+
].map((e) => ({
|
|
120
|
+
id: e,
|
|
121
|
+
since: "1.31.0",
|
|
122
|
+
removeIn: "2.0.0",
|
|
123
|
+
replacement: "<CameraStream entityId kind>",
|
|
124
|
+
docsUrl: "https://glasshome.app/docs/widgets/widget-api-reference",
|
|
125
|
+
sourcePattern: `\\b${e}\\b`
|
|
126
|
+
})),
|
|
114
127
|
{
|
|
115
128
|
id: "WidgetContext.theme",
|
|
116
129
|
since: "1.26.0",
|
package/dist/export-history.json
CHANGED
|
@@ -6145,5 +6145,154 @@
|
|
|
6145
6145
|
"useWidgetViewer",
|
|
6146
6146
|
"widgetFields",
|
|
6147
6147
|
"z"
|
|
6148
|
+
],
|
|
6149
|
+
"1.31.0": [
|
|
6150
|
+
"Badge",
|
|
6151
|
+
"Button",
|
|
6152
|
+
"ButtonGroup",
|
|
6153
|
+
"CameraSourceContext",
|
|
6154
|
+
"CameraStream",
|
|
6155
|
+
"Carousel",
|
|
6156
|
+
"CarouselContent",
|
|
6157
|
+
"CarouselDots",
|
|
6158
|
+
"CarouselItem",
|
|
6159
|
+
"CarouselNext",
|
|
6160
|
+
"CarouselPrevious",
|
|
6161
|
+
"ColorDisc",
|
|
6162
|
+
"ColorSlider",
|
|
6163
|
+
"ColorWheel",
|
|
6164
|
+
"CountPill",
|
|
6165
|
+
"Icon",
|
|
6166
|
+
"Input",
|
|
6167
|
+
"Label",
|
|
6168
|
+
"PanelEntityRow",
|
|
6169
|
+
"PanelFacts",
|
|
6170
|
+
"PanelRow",
|
|
6171
|
+
"PanelRows",
|
|
6172
|
+
"PanelSection",
|
|
6173
|
+
"Progress",
|
|
6174
|
+
"ResponsiveDialog",
|
|
6175
|
+
"ResponsiveDialogBody",
|
|
6176
|
+
"ResponsiveDialogClose",
|
|
6177
|
+
"ResponsiveDialogContent",
|
|
6178
|
+
"ResponsiveDialogDescription",
|
|
6179
|
+
"ResponsiveDialogFooter",
|
|
6180
|
+
"ResponsiveDialogHeader",
|
|
6181
|
+
"ResponsiveDialogTitle",
|
|
6182
|
+
"SDK_VERSION",
|
|
6183
|
+
"SchemaForm",
|
|
6184
|
+
"SectionIcon",
|
|
6185
|
+
"SectionTitle",
|
|
6186
|
+
"Select",
|
|
6187
|
+
"SelectContent",
|
|
6188
|
+
"SelectItem",
|
|
6189
|
+
"SelectTrigger",
|
|
6190
|
+
"SelectValue",
|
|
6191
|
+
"Slider",
|
|
6192
|
+
"SwatchPicker",
|
|
6193
|
+
"Switch",
|
|
6194
|
+
"Tabs",
|
|
6195
|
+
"TabsContent",
|
|
6196
|
+
"TabsList",
|
|
6197
|
+
"TabsTrigger",
|
|
6198
|
+
"TemperatureBar",
|
|
6199
|
+
"Toggle",
|
|
6200
|
+
"ToggleGroup",
|
|
6201
|
+
"ToggleGroupItem",
|
|
6202
|
+
"ToneSchema",
|
|
6203
|
+
"Widget",
|
|
6204
|
+
"WidgetAction",
|
|
6205
|
+
"WidgetBackdrop",
|
|
6206
|
+
"WidgetChip",
|
|
6207
|
+
"WidgetChoice",
|
|
6208
|
+
"WidgetContent",
|
|
6209
|
+
"WidgetControls",
|
|
6210
|
+
"WidgetCtx",
|
|
6211
|
+
"WidgetDebugTab",
|
|
6212
|
+
"WidgetDebugView",
|
|
6213
|
+
"WidgetDialog",
|
|
6214
|
+
"WidgetGlyph",
|
|
6215
|
+
"WidgetHead",
|
|
6216
|
+
"WidgetHero",
|
|
6217
|
+
"WidgetIcon",
|
|
6218
|
+
"WidgetLayer",
|
|
6219
|
+
"WidgetManifestSchema",
|
|
6220
|
+
"WidgetSizeCtx",
|
|
6221
|
+
"WidgetSliderFill",
|
|
6222
|
+
"WidgetStatus",
|
|
6223
|
+
"WidgetStepper",
|
|
6224
|
+
"WidgetTitle",
|
|
6225
|
+
"WidgetValue",
|
|
6226
|
+
"buildDebugData",
|
|
6227
|
+
"byDomain",
|
|
6228
|
+
"calculateLightGroup",
|
|
6229
|
+
"calculateSensorGroup",
|
|
6230
|
+
"copyText",
|
|
6231
|
+
"countActiveEntities",
|
|
6232
|
+
"defineConfig",
|
|
6233
|
+
"defineWidget",
|
|
6234
|
+
"deprecations",
|
|
6235
|
+
"field",
|
|
6236
|
+
"formatDeprecation",
|
|
6237
|
+
"formatSchemaError",
|
|
6238
|
+
"getEntityAttribute",
|
|
6239
|
+
"getForecasts",
|
|
6240
|
+
"getStream",
|
|
6241
|
+
"getWebRtcClientConfig",
|
|
6242
|
+
"hassMediaUrl",
|
|
6243
|
+
"imagePreset",
|
|
6244
|
+
"imageSrc",
|
|
6245
|
+
"imageUrl",
|
|
6246
|
+
"injectTokens",
|
|
6247
|
+
"isDark",
|
|
6248
|
+
"isEntityActive",
|
|
6249
|
+
"isPanelControllable",
|
|
6250
|
+
"mediaUrl",
|
|
6251
|
+
"monotoneCubicPath",
|
|
6252
|
+
"parseColor",
|
|
6253
|
+
"presetValue",
|
|
6254
|
+
"provideCameraSource",
|
|
6255
|
+
"sendWebRtcCandidate",
|
|
6256
|
+
"startWebRtcSession",
|
|
6257
|
+
"state",
|
|
6258
|
+
"svgColors",
|
|
6259
|
+
"trackEntityHistory",
|
|
6260
|
+
"untrackEntityHistory",
|
|
6261
|
+
"useArea",
|
|
6262
|
+
"useCalendarEvents",
|
|
6263
|
+
"useCamera",
|
|
6264
|
+
"useCameraSource",
|
|
6265
|
+
"useConfirm",
|
|
6266
|
+
"useConnection",
|
|
6267
|
+
"useCopyText",
|
|
6268
|
+
"useCurrency",
|
|
6269
|
+
"useDaylight",
|
|
6270
|
+
"useEntities",
|
|
6271
|
+
"useEntity",
|
|
6272
|
+
"useEntityHistory",
|
|
6273
|
+
"useEntityStatistics",
|
|
6274
|
+
"useForecast",
|
|
6275
|
+
"useHassConfig",
|
|
6276
|
+
"useIntersectionPause",
|
|
6277
|
+
"useLocale",
|
|
6278
|
+
"useMaterial",
|
|
6279
|
+
"useReducedMotion",
|
|
6280
|
+
"useService",
|
|
6281
|
+
"useStore",
|
|
6282
|
+
"useTemperatureUnit",
|
|
6283
|
+
"useToggle",
|
|
6284
|
+
"useTurnOff",
|
|
6285
|
+
"useTurnOn",
|
|
6286
|
+
"useUnitSystem",
|
|
6287
|
+
"useWidgetContext",
|
|
6288
|
+
"useWidgetDashboard",
|
|
6289
|
+
"useWidgetDialog",
|
|
6290
|
+
"useWidgetDimensions",
|
|
6291
|
+
"useWidgetEntityGroup",
|
|
6292
|
+
"useWidgetGestures",
|
|
6293
|
+
"useWidgetState",
|
|
6294
|
+
"useWidgetViewer",
|
|
6295
|
+
"widgetFields",
|
|
6296
|
+
"z"
|
|
6148
6297
|
]
|
|
6149
6298
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { defineWidget } from "./define-widget";
|
|
2
2
|
export * from "./data";
|
|
3
3
|
export * from "./framework";
|
|
4
|
+
export { type CameraSource, CameraSourceContext, provideCameraSource, useCameraSource, type WebRtcSignal, } from "./media/camera-source";
|
|
5
|
+
export { CameraStream, type CameraStreamProps } from "@glasshome/widget-sdk/media/camera-stream";
|
|
4
6
|
export { monotoneCubicPath } from "./shared/spline";
|
|
5
7
|
export * from "./ui";
|
|
6
8
|
export { formatSchemaError, WidgetManifestSchema } from "./schemas";
|