@glasshome/widget-sdk 1.33.1 → 1.34.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 +150 -0
- package/dist/framework/gestures/use-widget-gestures.d.ts +2 -0
- package/dist/index.js +748 -729
- package/package.json +4 -4
package/dist/export-history.json
CHANGED
|
@@ -7488,5 +7488,155 @@
|
|
|
7488
7488
|
"useWidgetViewer",
|
|
7489
7489
|
"widgetFields",
|
|
7490
7490
|
"z"
|
|
7491
|
+
],
|
|
7492
|
+
"1.34.0": [
|
|
7493
|
+
"Badge",
|
|
7494
|
+
"Button",
|
|
7495
|
+
"ButtonGroup",
|
|
7496
|
+
"CameraSourceContext",
|
|
7497
|
+
"CameraStream",
|
|
7498
|
+
"Carousel",
|
|
7499
|
+
"CarouselContent",
|
|
7500
|
+
"CarouselDots",
|
|
7501
|
+
"CarouselItem",
|
|
7502
|
+
"CarouselNext",
|
|
7503
|
+
"CarouselPrevious",
|
|
7504
|
+
"ColorDisc",
|
|
7505
|
+
"ColorSlider",
|
|
7506
|
+
"ColorWheel",
|
|
7507
|
+
"CountPill",
|
|
7508
|
+
"Icon",
|
|
7509
|
+
"Input",
|
|
7510
|
+
"Label",
|
|
7511
|
+
"PanelEntityRow",
|
|
7512
|
+
"PanelFacts",
|
|
7513
|
+
"PanelRow",
|
|
7514
|
+
"PanelRows",
|
|
7515
|
+
"PanelSection",
|
|
7516
|
+
"Progress",
|
|
7517
|
+
"ResponsiveDialog",
|
|
7518
|
+
"ResponsiveDialogBody",
|
|
7519
|
+
"ResponsiveDialogClose",
|
|
7520
|
+
"ResponsiveDialogContent",
|
|
7521
|
+
"ResponsiveDialogDescription",
|
|
7522
|
+
"ResponsiveDialogFooter",
|
|
7523
|
+
"ResponsiveDialogHeader",
|
|
7524
|
+
"ResponsiveDialogTitle",
|
|
7525
|
+
"SDK_VERSION",
|
|
7526
|
+
"SchemaForm",
|
|
7527
|
+
"SectionIcon",
|
|
7528
|
+
"SectionTitle",
|
|
7529
|
+
"Select",
|
|
7530
|
+
"SelectContent",
|
|
7531
|
+
"SelectItem",
|
|
7532
|
+
"SelectTrigger",
|
|
7533
|
+
"SelectValue",
|
|
7534
|
+
"Slider",
|
|
7535
|
+
"SwatchPicker",
|
|
7536
|
+
"Switch",
|
|
7537
|
+
"Tabs",
|
|
7538
|
+
"TabsContent",
|
|
7539
|
+
"TabsList",
|
|
7540
|
+
"TabsTrigger",
|
|
7541
|
+
"TemperatureBar",
|
|
7542
|
+
"Toggle",
|
|
7543
|
+
"ToggleGroup",
|
|
7544
|
+
"ToggleGroupItem",
|
|
7545
|
+
"ToneSchema",
|
|
7546
|
+
"Widget",
|
|
7547
|
+
"WidgetAction",
|
|
7548
|
+
"WidgetBackdrop",
|
|
7549
|
+
"WidgetChip",
|
|
7550
|
+
"WidgetChoice",
|
|
7551
|
+
"WidgetContent",
|
|
7552
|
+
"WidgetControls",
|
|
7553
|
+
"WidgetCtx",
|
|
7554
|
+
"WidgetDebugTab",
|
|
7555
|
+
"WidgetDebugView",
|
|
7556
|
+
"WidgetDialog",
|
|
7557
|
+
"WidgetGlyph",
|
|
7558
|
+
"WidgetHead",
|
|
7559
|
+
"WidgetHero",
|
|
7560
|
+
"WidgetIcon",
|
|
7561
|
+
"WidgetLayer",
|
|
7562
|
+
"WidgetManifestSchema",
|
|
7563
|
+
"WidgetSizeCtx",
|
|
7564
|
+
"WidgetSliderFill",
|
|
7565
|
+
"WidgetStatus",
|
|
7566
|
+
"WidgetStepper",
|
|
7567
|
+
"WidgetTitle",
|
|
7568
|
+
"WidgetValue",
|
|
7569
|
+
"buildDebugData",
|
|
7570
|
+
"byDomain",
|
|
7571
|
+
"calculateLightGroup",
|
|
7572
|
+
"calculateSensorGroup",
|
|
7573
|
+
"copyText",
|
|
7574
|
+
"countActiveEntities",
|
|
7575
|
+
"defineConfig",
|
|
7576
|
+
"defineWidget",
|
|
7577
|
+
"deprecations",
|
|
7578
|
+
"field",
|
|
7579
|
+
"formatDeprecation",
|
|
7580
|
+
"formatSchemaError",
|
|
7581
|
+
"getEntityAttribute",
|
|
7582
|
+
"getForecasts",
|
|
7583
|
+
"getStream",
|
|
7584
|
+
"getWebRtcClientConfig",
|
|
7585
|
+
"hassMediaUrl",
|
|
7586
|
+
"imagePreset",
|
|
7587
|
+
"imageSrc",
|
|
7588
|
+
"imageUrl",
|
|
7589
|
+
"injectTokens",
|
|
7590
|
+
"isDark",
|
|
7591
|
+
"isEntityActive",
|
|
7592
|
+
"isPanelControllable",
|
|
7593
|
+
"mediaUrl",
|
|
7594
|
+
"monotoneCubicPath",
|
|
7595
|
+
"parseColor",
|
|
7596
|
+
"presetValue",
|
|
7597
|
+
"provideCameraSource",
|
|
7598
|
+
"sendWebRtcCandidate",
|
|
7599
|
+
"startWebRtcSession",
|
|
7600
|
+
"state",
|
|
7601
|
+
"svgColors",
|
|
7602
|
+
"trackEntityHistory",
|
|
7603
|
+
"untrackEntityHistory",
|
|
7604
|
+
"useArea",
|
|
7605
|
+
"useCalendarEvents",
|
|
7606
|
+
"useCamera",
|
|
7607
|
+
"useCameraSource",
|
|
7608
|
+
"useConfirm",
|
|
7609
|
+
"useConnection",
|
|
7610
|
+
"useCopyText",
|
|
7611
|
+
"useCurrency",
|
|
7612
|
+
"useDaylight",
|
|
7613
|
+
"useEntities",
|
|
7614
|
+
"useEntity",
|
|
7615
|
+
"useEntityHistory",
|
|
7616
|
+
"useEntityStatistics",
|
|
7617
|
+
"useForecast",
|
|
7618
|
+
"useHassConfig",
|
|
7619
|
+
"useIntersectionPause",
|
|
7620
|
+
"useLocale",
|
|
7621
|
+
"useMaterial",
|
|
7622
|
+
"useReducedMotion",
|
|
7623
|
+
"useService",
|
|
7624
|
+
"useSheetDormant",
|
|
7625
|
+
"useStore",
|
|
7626
|
+
"useTemperatureUnit",
|
|
7627
|
+
"useToggle",
|
|
7628
|
+
"useTurnOff",
|
|
7629
|
+
"useTurnOn",
|
|
7630
|
+
"useUnitSystem",
|
|
7631
|
+
"useWidgetContext",
|
|
7632
|
+
"useWidgetDashboard",
|
|
7633
|
+
"useWidgetDialog",
|
|
7634
|
+
"useWidgetDimensions",
|
|
7635
|
+
"useWidgetEntityGroup",
|
|
7636
|
+
"useWidgetGestures",
|
|
7637
|
+
"useWidgetState",
|
|
7638
|
+
"useWidgetViewer",
|
|
7639
|
+
"widgetFields",
|
|
7640
|
+
"z"
|
|
7491
7641
|
]
|
|
7492
7642
|
}
|
|
@@ -32,6 +32,8 @@ export interface GestureHandlers {
|
|
|
32
32
|
holds?: () => boolean;
|
|
33
33
|
/** Keyboard door: Enter or Space taps, the context-menu key or Shift+F10 holds. */
|
|
34
34
|
onKeyDown?: (e: KeyboardEvent) => void;
|
|
35
|
+
/** The `data-claim` for the gesture root: what its keys and hold take, read by a sealed widget's host at the event. */
|
|
36
|
+
claim?: () => string | undefined;
|
|
35
37
|
}
|
|
36
38
|
interface HoldFlood {
|
|
37
39
|
x: number;
|