@seamapi/react 4.8.0 → 4.8.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/README.md +2 -2
- package/dist/elements.js +73 -23
- package/dist/elements.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/FilterCategoryMenu.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/FilterCategoryMenu.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.js.map +1 -1
- package/lib/seam/thermostats/use-update-thermostat-climate-preset.d.ts +1 -1
- package/lib/seam/thermostats/use-update-thermostat-climate-preset.js +1 -1
- package/lib/seam/thermostats/use-update-thermostat-climate-preset.js.map +1 -1
- package/lib/ui/Alert/Alert.js +1 -1
- package/lib/ui/Alert/Alert.js.map +1 -1
- package/lib/ui/IconButton.js +1 -1
- package/lib/ui/IconButton.js.map +1 -1
- package/lib/ui/Snackbar/Snackbar.js +1 -1
- package/lib/ui/Snackbar/Snackbar.js.map +1 -1
- package/lib/ui/TabSet.js +1 -1
- package/lib/ui/TabSet.js.map +1 -1
- package/lib/ui/TextButton.js +1 -1
- package/lib/ui/TextButton.js.map +1 -1
- package/lib/ui/TextField/TextField.js +1 -1
- package/lib/ui/TextField/TextField.js.map +1 -1
- package/lib/ui/Tooltip/Tooltip.js +1 -1
- package/lib/ui/Tooltip/Tooltip.js.map +1 -1
- package/lib/ui/device/EditableDeviceName.js +1 -1
- package/lib/ui/device/EditableDeviceName.js.map +1 -1
- package/lib/ui/layout/AccordionRow.js +1 -1
- package/lib/ui/layout/AccordionRow.js.map +1 -1
- package/lib/ui/thermostat/ClimateModeMenu.js +1 -1
- package/lib/ui/thermostat/ClimateModeMenu.js.map +1 -1
- package/lib/ui/thermostat/ClimatePreset.js +1 -0
- package/lib/ui/thermostat/ClimatePreset.js.map +1 -1
- package/lib/ui/thermostat/FanModeMenu.js +1 -1
- package/lib/ui/thermostat/FanModeMenu.js.map +1 -1
- package/lib/ui/thermostat/TemperatureControl.js +2 -2
- package/lib/ui/thermostat/TemperatureControl.js.map +1 -1
- package/lib/ui/thermostat/ThermostatCard.js +1 -1
- package/lib/ui/thermostat/ThermostatCard.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/FilterCategoryMenu.tsx +1 -1
- package/src/lib/seam/components/SupportedDeviceTable/ShowAllDevicesButton.tsx +1 -1
- package/src/lib/seam/thermostats/use-update-thermostat-climate-preset.ts +3 -5
- package/src/lib/ui/Alert/Alert.tsx +1 -1
- package/src/lib/ui/IconButton.tsx +1 -0
- package/src/lib/ui/Snackbar/Snackbar.tsx +2 -0
- package/src/lib/ui/TabSet.tsx +1 -0
- package/src/lib/ui/TextButton.tsx +5 -1
- package/src/lib/ui/TextField/TextField.tsx +1 -0
- package/src/lib/ui/Tooltip/Tooltip.tsx +5 -1
- package/src/lib/ui/device/EditableDeviceName.tsx +1 -0
- package/src/lib/ui/layout/AccordionRow.tsx +5 -1
- package/src/lib/ui/thermostat/ClimateModeMenu.tsx +1 -0
- package/src/lib/ui/thermostat/ClimatePreset.tsx +1 -0
- package/src/lib/ui/thermostat/FanModeMenu.tsx +1 -0
- package/src/lib/ui/thermostat/TemperatureControl.tsx +10 -2
- package/src/lib/ui/thermostat/ThermostatCard.tsx +1 -0
- package/src/lib/version.ts +1 -1
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ export function App() {
|
|
|
87
87
|
<seam-device-table publishable-key="your_publishable_key"></seam-device-table>
|
|
88
88
|
<script
|
|
89
89
|
type="module"
|
|
90
|
-
src="https://react.seam.co/v/4.8.
|
|
90
|
+
src="https://react.seam.co/v/4.8.1/dist/elements.js"
|
|
91
91
|
></script>
|
|
92
92
|
</body>
|
|
93
93
|
```
|
|
@@ -215,7 +215,7 @@ or place the following in the `<head>` tag:
|
|
|
215
215
|
```html
|
|
216
216
|
<link
|
|
217
217
|
rel="stylesheet"
|
|
218
|
-
href="https://react.seam.co/v/4.8.
|
|
218
|
+
href="https://react.seam.co/v/4.8.1/dist/index.min.css"
|
|
219
219
|
/>
|
|
220
220
|
```
|
|
221
221
|
|
package/dist/elements.js
CHANGED
|
@@ -7658,7 +7658,7 @@ const _2 = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
|
|
|
7658
7658
|
const n = globalThis.document.createElement("link");
|
|
7659
7659
|
n.rel = "stylesheet", n.type = "text/css", n.href = _2, globalThis.document.head.appendChild(n);
|
|
7660
7660
|
}, [t]);
|
|
7661
|
-
}, Mx = "4.8.
|
|
7661
|
+
}, Mx = "4.8.1", z7 = "https://react.seam.co", q7 = ({
|
|
7662
7662
|
disabled: t = !1,
|
|
7663
7663
|
unminified: e = !1
|
|
7664
7664
|
}) => {
|
|
@@ -19822,6 +19822,7 @@ function Xr({
|
|
|
19822
19822
|
r != null && /* @__PURE__ */ u.jsx(
|
|
19823
19823
|
"button",
|
|
19824
19824
|
{
|
|
19825
|
+
type: "button",
|
|
19825
19826
|
className: "seam-snackbar-action",
|
|
19826
19827
|
onClick: p,
|
|
19827
19828
|
children: /* @__PURE__ */ u.jsx("span", { className: "seam-snackbar-action-label", children: h })
|
|
@@ -19830,6 +19831,7 @@ function Xr({
|
|
|
19830
19831
|
!o && /* @__PURE__ */ u.jsx(
|
|
19831
19832
|
"button",
|
|
19832
19833
|
{
|
|
19834
|
+
type: "button",
|
|
19833
19835
|
className: "seam-snackbar-close-button",
|
|
19834
19836
|
onClick: () => {
|
|
19835
19837
|
y();
|
|
@@ -19854,7 +19856,14 @@ function L9({
|
|
|
19854
19856
|
color: t = "primary",
|
|
19855
19857
|
...e
|
|
19856
19858
|
}) {
|
|
19857
|
-
return /* @__PURE__ */ u.jsx(
|
|
19859
|
+
return /* @__PURE__ */ u.jsx(
|
|
19860
|
+
"button",
|
|
19861
|
+
{
|
|
19862
|
+
type: "button",
|
|
19863
|
+
className: `seam-text-btn seam-color-${t}`,
|
|
19864
|
+
...e
|
|
19865
|
+
}
|
|
19866
|
+
);
|
|
19858
19867
|
}
|
|
19859
19868
|
function $9({
|
|
19860
19869
|
deviceId: t,
|
|
@@ -21270,6 +21279,7 @@ const al = j.forwardRef(function({
|
|
|
21270
21279
|
c && /* @__PURE__ */ u.jsx(
|
|
21271
21280
|
"button",
|
|
21272
21281
|
{
|
|
21282
|
+
type: "button",
|
|
21273
21283
|
className: ge({
|
|
21274
21284
|
"seam-hidden": _
|
|
21275
21285
|
}),
|
|
@@ -21486,6 +21496,7 @@ function ra({
|
|
|
21486
21496
|
"button",
|
|
21487
21497
|
{
|
|
21488
21498
|
...n,
|
|
21499
|
+
type: "button",
|
|
21489
21500
|
ref: e,
|
|
21490
21501
|
className: ge(
|
|
21491
21502
|
"seam-icon-btn",
|
|
@@ -23234,7 +23245,7 @@ function mM({
|
|
|
23234
23245
|
if (!e)
|
|
23235
23246
|
return null;
|
|
23236
23247
|
const s = n ? AT.showLess : AT.showAll(r);
|
|
23237
|
-
return /* @__PURE__ */ u.jsxs("button", { className: "show-all-devices-button", onClick: t, children: [
|
|
23248
|
+
return /* @__PURE__ */ u.jsxs("button", { type: "button", className: "show-all-devices-button", onClick: t, children: [
|
|
23238
23249
|
/* @__PURE__ */ u.jsx(fp, {}),
|
|
23239
23250
|
" ",
|
|
23240
23251
|
s
|
|
@@ -23758,7 +23769,7 @@ function MM({
|
|
|
23758
23769
|
/* @__PURE__ */ u.jsx(
|
|
23759
23770
|
eh,
|
|
23760
23771
|
{
|
|
23761
|
-
renderButton: ({ onOpen: c }) => /* @__PURE__ */ u.jsxs("button", { onClick: c, children: [
|
|
23772
|
+
renderButton: ({ onOpen: c }) => /* @__PURE__ */ u.jsxs("button", { type: "button", onClick: c, children: [
|
|
23762
23773
|
/* @__PURE__ */ u.jsx("span", { children: o }),
|
|
23763
23774
|
/* @__PURE__ */ u.jsx(fw, {})
|
|
23764
23775
|
] }),
|
|
@@ -24781,10 +24792,18 @@ function rI({ children: t }) {
|
|
|
24781
24792
|
s.stopPropagation(), n((i) => !i);
|
|
24782
24793
|
};
|
|
24783
24794
|
return /* @__PURE__ */ u.jsxs("div", { className: "seam-tooltip", children: [
|
|
24784
|
-
/* @__PURE__ */ u.jsx("div", { className: "seam-tooltip-trigger-wrap", children: /* @__PURE__ */ u.jsxs(
|
|
24785
|
-
|
|
24786
|
-
|
|
24787
|
-
|
|
24795
|
+
/* @__PURE__ */ u.jsx("div", { className: "seam-tooltip-trigger-wrap", children: /* @__PURE__ */ u.jsxs(
|
|
24796
|
+
"button",
|
|
24797
|
+
{
|
|
24798
|
+
type: "button",
|
|
24799
|
+
onClick: r,
|
|
24800
|
+
className: "seam-tooltip-button",
|
|
24801
|
+
children: [
|
|
24802
|
+
/* @__PURE__ */ u.jsx("div", { className: "seam-tooltip-button-icon seam-tooltip-button-icon-default", children: /* @__PURE__ */ u.jsx(tI, {}) }),
|
|
24803
|
+
/* @__PURE__ */ u.jsx("div", { className: "seam-tooltip-button-icon seam-tooltip-button-icon-hover", children: /* @__PURE__ */ u.jsx(nI, {}) })
|
|
24804
|
+
]
|
|
24805
|
+
}
|
|
24806
|
+
) }),
|
|
24788
24807
|
/* @__PURE__ */ u.jsx(
|
|
24789
24808
|
"div",
|
|
24790
24809
|
{
|
|
@@ -24923,7 +24942,7 @@ function aI(t) {
|
|
|
24923
24942
|
const e = (n) => {
|
|
24924
24943
|
t.onClick(n);
|
|
24925
24944
|
};
|
|
24926
|
-
return /* @__PURE__ */ u.jsx("div", { className: "seam-alert-action-wrap", children: /* @__PURE__ */ u.jsx("button", { onClick: e, className: "seam-alert-action", children: t.label }) });
|
|
24945
|
+
return /* @__PURE__ */ u.jsx("div", { className: "seam-alert-action-wrap", children: /* @__PURE__ */ u.jsx("button", { type: "button", onClick: e, className: "seam-alert-action", children: t.label }) });
|
|
24927
24946
|
}
|
|
24928
24947
|
function Ib(t) {
|
|
24929
24948
|
const { alerts: e, children: n, className: r } = t;
|
|
@@ -25020,6 +25039,7 @@ function A0(t) {
|
|
|
25020
25039
|
"button",
|
|
25021
25040
|
{
|
|
25022
25041
|
...t,
|
|
25042
|
+
type: "button",
|
|
25023
25043
|
className: ge(
|
|
25024
25044
|
"seam-editable-device-name-icon-button",
|
|
25025
25045
|
t.className
|
|
@@ -31245,6 +31265,7 @@ function LR({
|
|
|
31245
31265
|
"seam-tab-button",
|
|
31246
31266
|
n && "seam-tab-button-active"
|
|
31247
31267
|
),
|
|
31268
|
+
type: "button",
|
|
31248
31269
|
onClick: i,
|
|
31249
31270
|
children: /* @__PURE__ */ u.jsx("p", { className: "seam-tab-button-label", children: e })
|
|
31250
31271
|
}
|
|
@@ -31594,16 +31615,24 @@ function HR({
|
|
|
31594
31615
|
}) {
|
|
31595
31616
|
const [s, i] = eu();
|
|
31596
31617
|
return /* @__PURE__ */ u.jsxs("div", { className: "seam-accordion-row", "aria-expanded": s, children: [
|
|
31597
|
-
/* @__PURE__ */ u.jsxs(
|
|
31598
|
-
|
|
31599
|
-
|
|
31600
|
-
|
|
31601
|
-
|
|
31602
|
-
|
|
31603
|
-
|
|
31604
|
-
|
|
31605
|
-
|
|
31606
|
-
|
|
31618
|
+
/* @__PURE__ */ u.jsxs(
|
|
31619
|
+
"button",
|
|
31620
|
+
{
|
|
31621
|
+
type: "button",
|
|
31622
|
+
className: "seam-accordion-row-trigger",
|
|
31623
|
+
onClick: i,
|
|
31624
|
+
children: [
|
|
31625
|
+
/* @__PURE__ */ u.jsxs("div", { className: "seam-row-inner-wrap", children: [
|
|
31626
|
+
/* @__PURE__ */ u.jsx("p", { className: "seam-row-label", children: t }),
|
|
31627
|
+
/* @__PURE__ */ u.jsx("div", { className: "seam-row-trigger-left-content", children: e })
|
|
31628
|
+
] }),
|
|
31629
|
+
/* @__PURE__ */ u.jsxs("div", { className: "seam-row-inner-wrap", children: [
|
|
31630
|
+
/* @__PURE__ */ u.jsx("div", { className: "seam-row-trigger-right-content", children: n }),
|
|
31631
|
+
/* @__PURE__ */ u.jsx("div", { className: "seam-accordion-icon-wrap", children: /* @__PURE__ */ u.jsx(YR, {}) })
|
|
31632
|
+
] })
|
|
31633
|
+
]
|
|
31634
|
+
}
|
|
31635
|
+
),
|
|
31607
31636
|
/* @__PURE__ */ u.jsx("div", { className: "seam-accordion-row-content", children: /* @__PURE__ */ u.jsx("div", { className: "seam-accordion-row-inner-content", children: r }) })
|
|
31608
31637
|
] });
|
|
31609
31638
|
}
|
|
@@ -31743,6 +31772,7 @@ function QS({
|
|
|
31743
31772
|
renderButton: ({ onOpen: l }) => /* @__PURE__ */ u.jsxs(
|
|
31744
31773
|
"button",
|
|
31745
31774
|
{
|
|
31775
|
+
type: "button",
|
|
31746
31776
|
style: i,
|
|
31747
31777
|
onClick: l,
|
|
31748
31778
|
className: ge(
|
|
@@ -33310,7 +33340,7 @@ function rP() {
|
|
|
33310
33340
|
return sr({
|
|
33311
33341
|
mutationFn: async (n) => {
|
|
33312
33342
|
if (t === null) throw new ir();
|
|
33313
|
-
await t.thermostats.
|
|
33343
|
+
await t.thermostats.updateClimatePreset(n);
|
|
33314
33344
|
},
|
|
33315
33345
|
onSuccess: (n, r) => {
|
|
33316
33346
|
e.setQueryData(
|
|
@@ -33384,6 +33414,7 @@ function c4({
|
|
|
33384
33414
|
renderButton: ({ onOpen: s }) => /* @__PURE__ */ u.jsxs(
|
|
33385
33415
|
"button",
|
|
33386
33416
|
{
|
|
33417
|
+
type: "button",
|
|
33387
33418
|
onClick: s,
|
|
33388
33419
|
className: ge(
|
|
33389
33420
|
"seam-fan-mode-menu-button",
|
|
@@ -33525,7 +33556,15 @@ function qk({
|
|
|
33525
33556
|
n(Math.max(e - 1, r));
|
|
33526
33557
|
};
|
|
33527
33558
|
return /* @__PURE__ */ u.jsxs("div", { className: "seam-temperature-control", children: [
|
|
33528
|
-
/* @__PURE__ */ u.jsx(
|
|
33559
|
+
/* @__PURE__ */ u.jsx(
|
|
33560
|
+
"button",
|
|
33561
|
+
{
|
|
33562
|
+
type: "button",
|
|
33563
|
+
className: "seam-temperature-stepper-button",
|
|
33564
|
+
onClick: a,
|
|
33565
|
+
children: /* @__PURE__ */ u.jsx(lP, {})
|
|
33566
|
+
}
|
|
33567
|
+
),
|
|
33529
33568
|
/* @__PURE__ */ u.jsx(
|
|
33530
33569
|
cP,
|
|
33531
33570
|
{
|
|
@@ -33539,7 +33578,15 @@ function qk({
|
|
|
33539
33578
|
unit: i
|
|
33540
33579
|
}
|
|
33541
33580
|
),
|
|
33542
|
-
/* @__PURE__ */ u.jsx(
|
|
33581
|
+
/* @__PURE__ */ u.jsx(
|
|
33582
|
+
"button",
|
|
33583
|
+
{
|
|
33584
|
+
type: "button",
|
|
33585
|
+
className: "seam-temperature-stepper-button",
|
|
33586
|
+
onClick: o,
|
|
33587
|
+
children: /* @__PURE__ */ u.jsx(aP, {})
|
|
33588
|
+
}
|
|
33589
|
+
)
|
|
33543
33590
|
] });
|
|
33544
33591
|
}
|
|
33545
33592
|
function cP({
|
|
@@ -33905,7 +33952,9 @@ function hP({
|
|
|
33905
33952
|
fan_mode_setting: d.fanMode,
|
|
33906
33953
|
cooling_set_point_celsius: Zs(d.coolPoint),
|
|
33907
33954
|
heating_set_point_celsius: Zs(d.heatPoint),
|
|
33908
|
-
hvac_mode_setting: d.hvacMode
|
|
33955
|
+
hvac_mode_setting: d.hvacMode,
|
|
33956
|
+
manual_override_allowed: !1
|
|
33957
|
+
// deprecated but type still wants it.
|
|
33909
33958
|
},
|
|
33910
33959
|
{ onSuccess: e }
|
|
33911
33960
|
);
|
|
@@ -34232,6 +34281,7 @@ function vP(t) {
|
|
|
34232
34281
|
/* @__PURE__ */ u.jsx(
|
|
34233
34282
|
"button",
|
|
34234
34283
|
{
|
|
34284
|
+
type: "button",
|
|
34235
34285
|
onClick: s,
|
|
34236
34286
|
className: "seam-thermostat-temperature-toggle",
|
|
34237
34287
|
children: /* @__PURE__ */ u.jsx("span", { className: "seam-thermostat-temperature-toggle-label", children: n === "fahrenheit" ? Ss.fahrenheit : Ss.celsius })
|