@glasshome/widget-sdk 1.33.0 → 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 +300 -0
- package/dist/framework/gestures/use-widget-gestures.d.ts +2 -0
- package/dist/index.js +830 -811
- package/package.json +4 -4
package/dist/export-history.json
CHANGED
|
@@ -7338,5 +7338,305 @@
|
|
|
7338
7338
|
"useWidgetViewer",
|
|
7339
7339
|
"widgetFields",
|
|
7340
7340
|
"z"
|
|
7341
|
+
],
|
|
7342
|
+
"1.33.1": [
|
|
7343
|
+
"Badge",
|
|
7344
|
+
"Button",
|
|
7345
|
+
"ButtonGroup",
|
|
7346
|
+
"CameraSourceContext",
|
|
7347
|
+
"CameraStream",
|
|
7348
|
+
"Carousel",
|
|
7349
|
+
"CarouselContent",
|
|
7350
|
+
"CarouselDots",
|
|
7351
|
+
"CarouselItem",
|
|
7352
|
+
"CarouselNext",
|
|
7353
|
+
"CarouselPrevious",
|
|
7354
|
+
"ColorDisc",
|
|
7355
|
+
"ColorSlider",
|
|
7356
|
+
"ColorWheel",
|
|
7357
|
+
"CountPill",
|
|
7358
|
+
"Icon",
|
|
7359
|
+
"Input",
|
|
7360
|
+
"Label",
|
|
7361
|
+
"PanelEntityRow",
|
|
7362
|
+
"PanelFacts",
|
|
7363
|
+
"PanelRow",
|
|
7364
|
+
"PanelRows",
|
|
7365
|
+
"PanelSection",
|
|
7366
|
+
"Progress",
|
|
7367
|
+
"ResponsiveDialog",
|
|
7368
|
+
"ResponsiveDialogBody",
|
|
7369
|
+
"ResponsiveDialogClose",
|
|
7370
|
+
"ResponsiveDialogContent",
|
|
7371
|
+
"ResponsiveDialogDescription",
|
|
7372
|
+
"ResponsiveDialogFooter",
|
|
7373
|
+
"ResponsiveDialogHeader",
|
|
7374
|
+
"ResponsiveDialogTitle",
|
|
7375
|
+
"SDK_VERSION",
|
|
7376
|
+
"SchemaForm",
|
|
7377
|
+
"SectionIcon",
|
|
7378
|
+
"SectionTitle",
|
|
7379
|
+
"Select",
|
|
7380
|
+
"SelectContent",
|
|
7381
|
+
"SelectItem",
|
|
7382
|
+
"SelectTrigger",
|
|
7383
|
+
"SelectValue",
|
|
7384
|
+
"Slider",
|
|
7385
|
+
"SwatchPicker",
|
|
7386
|
+
"Switch",
|
|
7387
|
+
"Tabs",
|
|
7388
|
+
"TabsContent",
|
|
7389
|
+
"TabsList",
|
|
7390
|
+
"TabsTrigger",
|
|
7391
|
+
"TemperatureBar",
|
|
7392
|
+
"Toggle",
|
|
7393
|
+
"ToggleGroup",
|
|
7394
|
+
"ToggleGroupItem",
|
|
7395
|
+
"ToneSchema",
|
|
7396
|
+
"Widget",
|
|
7397
|
+
"WidgetAction",
|
|
7398
|
+
"WidgetBackdrop",
|
|
7399
|
+
"WidgetChip",
|
|
7400
|
+
"WidgetChoice",
|
|
7401
|
+
"WidgetContent",
|
|
7402
|
+
"WidgetControls",
|
|
7403
|
+
"WidgetCtx",
|
|
7404
|
+
"WidgetDebugTab",
|
|
7405
|
+
"WidgetDebugView",
|
|
7406
|
+
"WidgetDialog",
|
|
7407
|
+
"WidgetGlyph",
|
|
7408
|
+
"WidgetHead",
|
|
7409
|
+
"WidgetHero",
|
|
7410
|
+
"WidgetIcon",
|
|
7411
|
+
"WidgetLayer",
|
|
7412
|
+
"WidgetManifestSchema",
|
|
7413
|
+
"WidgetSizeCtx",
|
|
7414
|
+
"WidgetSliderFill",
|
|
7415
|
+
"WidgetStatus",
|
|
7416
|
+
"WidgetStepper",
|
|
7417
|
+
"WidgetTitle",
|
|
7418
|
+
"WidgetValue",
|
|
7419
|
+
"buildDebugData",
|
|
7420
|
+
"byDomain",
|
|
7421
|
+
"calculateLightGroup",
|
|
7422
|
+
"calculateSensorGroup",
|
|
7423
|
+
"copyText",
|
|
7424
|
+
"countActiveEntities",
|
|
7425
|
+
"defineConfig",
|
|
7426
|
+
"defineWidget",
|
|
7427
|
+
"deprecations",
|
|
7428
|
+
"field",
|
|
7429
|
+
"formatDeprecation",
|
|
7430
|
+
"formatSchemaError",
|
|
7431
|
+
"getEntityAttribute",
|
|
7432
|
+
"getForecasts",
|
|
7433
|
+
"getStream",
|
|
7434
|
+
"getWebRtcClientConfig",
|
|
7435
|
+
"hassMediaUrl",
|
|
7436
|
+
"imagePreset",
|
|
7437
|
+
"imageSrc",
|
|
7438
|
+
"imageUrl",
|
|
7439
|
+
"injectTokens",
|
|
7440
|
+
"isDark",
|
|
7441
|
+
"isEntityActive",
|
|
7442
|
+
"isPanelControllable",
|
|
7443
|
+
"mediaUrl",
|
|
7444
|
+
"monotoneCubicPath",
|
|
7445
|
+
"parseColor",
|
|
7446
|
+
"presetValue",
|
|
7447
|
+
"provideCameraSource",
|
|
7448
|
+
"sendWebRtcCandidate",
|
|
7449
|
+
"startWebRtcSession",
|
|
7450
|
+
"state",
|
|
7451
|
+
"svgColors",
|
|
7452
|
+
"trackEntityHistory",
|
|
7453
|
+
"untrackEntityHistory",
|
|
7454
|
+
"useArea",
|
|
7455
|
+
"useCalendarEvents",
|
|
7456
|
+
"useCamera",
|
|
7457
|
+
"useCameraSource",
|
|
7458
|
+
"useConfirm",
|
|
7459
|
+
"useConnection",
|
|
7460
|
+
"useCopyText",
|
|
7461
|
+
"useCurrency",
|
|
7462
|
+
"useDaylight",
|
|
7463
|
+
"useEntities",
|
|
7464
|
+
"useEntity",
|
|
7465
|
+
"useEntityHistory",
|
|
7466
|
+
"useEntityStatistics",
|
|
7467
|
+
"useForecast",
|
|
7468
|
+
"useHassConfig",
|
|
7469
|
+
"useIntersectionPause",
|
|
7470
|
+
"useLocale",
|
|
7471
|
+
"useMaterial",
|
|
7472
|
+
"useReducedMotion",
|
|
7473
|
+
"useService",
|
|
7474
|
+
"useSheetDormant",
|
|
7475
|
+
"useStore",
|
|
7476
|
+
"useTemperatureUnit",
|
|
7477
|
+
"useToggle",
|
|
7478
|
+
"useTurnOff",
|
|
7479
|
+
"useTurnOn",
|
|
7480
|
+
"useUnitSystem",
|
|
7481
|
+
"useWidgetContext",
|
|
7482
|
+
"useWidgetDashboard",
|
|
7483
|
+
"useWidgetDialog",
|
|
7484
|
+
"useWidgetDimensions",
|
|
7485
|
+
"useWidgetEntityGroup",
|
|
7486
|
+
"useWidgetGestures",
|
|
7487
|
+
"useWidgetState",
|
|
7488
|
+
"useWidgetViewer",
|
|
7489
|
+
"widgetFields",
|
|
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"
|
|
7341
7641
|
]
|
|
7342
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;
|