@glasshome/widget-sdk 1.33.1 → 1.34.1
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 +300 -0
- package/dist/framework/gestures/use-widget-gestures.d.ts +2 -0
- package/dist/index.js +749 -730
- package/package.json +5 -5
package/dist/export-history.json
CHANGED
|
@@ -7488,5 +7488,305 @@
|
|
|
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"
|
|
7641
|
+
],
|
|
7642
|
+
"1.34.1": [
|
|
7643
|
+
"Badge",
|
|
7644
|
+
"Button",
|
|
7645
|
+
"ButtonGroup",
|
|
7646
|
+
"CameraSourceContext",
|
|
7647
|
+
"CameraStream",
|
|
7648
|
+
"Carousel",
|
|
7649
|
+
"CarouselContent",
|
|
7650
|
+
"CarouselDots",
|
|
7651
|
+
"CarouselItem",
|
|
7652
|
+
"CarouselNext",
|
|
7653
|
+
"CarouselPrevious",
|
|
7654
|
+
"ColorDisc",
|
|
7655
|
+
"ColorSlider",
|
|
7656
|
+
"ColorWheel",
|
|
7657
|
+
"CountPill",
|
|
7658
|
+
"Icon",
|
|
7659
|
+
"Input",
|
|
7660
|
+
"Label",
|
|
7661
|
+
"PanelEntityRow",
|
|
7662
|
+
"PanelFacts",
|
|
7663
|
+
"PanelRow",
|
|
7664
|
+
"PanelRows",
|
|
7665
|
+
"PanelSection",
|
|
7666
|
+
"Progress",
|
|
7667
|
+
"ResponsiveDialog",
|
|
7668
|
+
"ResponsiveDialogBody",
|
|
7669
|
+
"ResponsiveDialogClose",
|
|
7670
|
+
"ResponsiveDialogContent",
|
|
7671
|
+
"ResponsiveDialogDescription",
|
|
7672
|
+
"ResponsiveDialogFooter",
|
|
7673
|
+
"ResponsiveDialogHeader",
|
|
7674
|
+
"ResponsiveDialogTitle",
|
|
7675
|
+
"SDK_VERSION",
|
|
7676
|
+
"SchemaForm",
|
|
7677
|
+
"SectionIcon",
|
|
7678
|
+
"SectionTitle",
|
|
7679
|
+
"Select",
|
|
7680
|
+
"SelectContent",
|
|
7681
|
+
"SelectItem",
|
|
7682
|
+
"SelectTrigger",
|
|
7683
|
+
"SelectValue",
|
|
7684
|
+
"Slider",
|
|
7685
|
+
"SwatchPicker",
|
|
7686
|
+
"Switch",
|
|
7687
|
+
"Tabs",
|
|
7688
|
+
"TabsContent",
|
|
7689
|
+
"TabsList",
|
|
7690
|
+
"TabsTrigger",
|
|
7691
|
+
"TemperatureBar",
|
|
7692
|
+
"Toggle",
|
|
7693
|
+
"ToggleGroup",
|
|
7694
|
+
"ToggleGroupItem",
|
|
7695
|
+
"ToneSchema",
|
|
7696
|
+
"Widget",
|
|
7697
|
+
"WidgetAction",
|
|
7698
|
+
"WidgetBackdrop",
|
|
7699
|
+
"WidgetChip",
|
|
7700
|
+
"WidgetChoice",
|
|
7701
|
+
"WidgetContent",
|
|
7702
|
+
"WidgetControls",
|
|
7703
|
+
"WidgetCtx",
|
|
7704
|
+
"WidgetDebugTab",
|
|
7705
|
+
"WidgetDebugView",
|
|
7706
|
+
"WidgetDialog",
|
|
7707
|
+
"WidgetGlyph",
|
|
7708
|
+
"WidgetHead",
|
|
7709
|
+
"WidgetHero",
|
|
7710
|
+
"WidgetIcon",
|
|
7711
|
+
"WidgetLayer",
|
|
7712
|
+
"WidgetManifestSchema",
|
|
7713
|
+
"WidgetSizeCtx",
|
|
7714
|
+
"WidgetSliderFill",
|
|
7715
|
+
"WidgetStatus",
|
|
7716
|
+
"WidgetStepper",
|
|
7717
|
+
"WidgetTitle",
|
|
7718
|
+
"WidgetValue",
|
|
7719
|
+
"buildDebugData",
|
|
7720
|
+
"byDomain",
|
|
7721
|
+
"calculateLightGroup",
|
|
7722
|
+
"calculateSensorGroup",
|
|
7723
|
+
"copyText",
|
|
7724
|
+
"countActiveEntities",
|
|
7725
|
+
"defineConfig",
|
|
7726
|
+
"defineWidget",
|
|
7727
|
+
"deprecations",
|
|
7728
|
+
"field",
|
|
7729
|
+
"formatDeprecation",
|
|
7730
|
+
"formatSchemaError",
|
|
7731
|
+
"getEntityAttribute",
|
|
7732
|
+
"getForecasts",
|
|
7733
|
+
"getStream",
|
|
7734
|
+
"getWebRtcClientConfig",
|
|
7735
|
+
"hassMediaUrl",
|
|
7736
|
+
"imagePreset",
|
|
7737
|
+
"imageSrc",
|
|
7738
|
+
"imageUrl",
|
|
7739
|
+
"injectTokens",
|
|
7740
|
+
"isDark",
|
|
7741
|
+
"isEntityActive",
|
|
7742
|
+
"isPanelControllable",
|
|
7743
|
+
"mediaUrl",
|
|
7744
|
+
"monotoneCubicPath",
|
|
7745
|
+
"parseColor",
|
|
7746
|
+
"presetValue",
|
|
7747
|
+
"provideCameraSource",
|
|
7748
|
+
"sendWebRtcCandidate",
|
|
7749
|
+
"startWebRtcSession",
|
|
7750
|
+
"state",
|
|
7751
|
+
"svgColors",
|
|
7752
|
+
"trackEntityHistory",
|
|
7753
|
+
"untrackEntityHistory",
|
|
7754
|
+
"useArea",
|
|
7755
|
+
"useCalendarEvents",
|
|
7756
|
+
"useCamera",
|
|
7757
|
+
"useCameraSource",
|
|
7758
|
+
"useConfirm",
|
|
7759
|
+
"useConnection",
|
|
7760
|
+
"useCopyText",
|
|
7761
|
+
"useCurrency",
|
|
7762
|
+
"useDaylight",
|
|
7763
|
+
"useEntities",
|
|
7764
|
+
"useEntity",
|
|
7765
|
+
"useEntityHistory",
|
|
7766
|
+
"useEntityStatistics",
|
|
7767
|
+
"useForecast",
|
|
7768
|
+
"useHassConfig",
|
|
7769
|
+
"useIntersectionPause",
|
|
7770
|
+
"useLocale",
|
|
7771
|
+
"useMaterial",
|
|
7772
|
+
"useReducedMotion",
|
|
7773
|
+
"useService",
|
|
7774
|
+
"useSheetDormant",
|
|
7775
|
+
"useStore",
|
|
7776
|
+
"useTemperatureUnit",
|
|
7777
|
+
"useToggle",
|
|
7778
|
+
"useTurnOff",
|
|
7779
|
+
"useTurnOn",
|
|
7780
|
+
"useUnitSystem",
|
|
7781
|
+
"useWidgetContext",
|
|
7782
|
+
"useWidgetDashboard",
|
|
7783
|
+
"useWidgetDialog",
|
|
7784
|
+
"useWidgetDimensions",
|
|
7785
|
+
"useWidgetEntityGroup",
|
|
7786
|
+
"useWidgetGestures",
|
|
7787
|
+
"useWidgetState",
|
|
7788
|
+
"useWidgetViewer",
|
|
7789
|
+
"widgetFields",
|
|
7790
|
+
"z"
|
|
7491
7791
|
]
|
|
7492
7792
|
}
|
|
@@ -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;
|