@seamapi/react 1.18.0 → 1.18.2
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/elements.js +76 -7
- package/dist/elements.js.map +1 -1
- package/dist/index.css +9 -3
- package/dist/index.css.map +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.min.css.map +1 -1
- package/lib/seam/device-models/use-device-models.d.ts +1 -1
- package/lib/seam/device-models/use-device-models.js +4 -1
- package/lib/seam/device-models/use-device-models.js.map +1 -1
- package/lib/seam/index.d.ts +0 -1
- package/lib/seam/index.js +0 -1
- package/lib/seam/index.js.map +1 -1
- package/lib/ui/Alert/Alert.js +1 -1
- package/lib/ui/Alert/Alert.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/lib/seam/device-models/use-device-models.ts +8 -2
- package/src/lib/seam/index.ts +0 -1
- package/src/lib/ui/Alert/Alert.tsx +8 -6
- package/src/lib/version.ts +1 -1
- package/src/styles/_alert.scss +10 -4
package/dist/elements.js
CHANGED
|
@@ -8077,7 +8077,7 @@ const fm = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
|
|
|
8077
8077
|
const n = globalThis.document.createElement("link");
|
|
8078
8078
|
n.rel = "stylesheet", n.type = "text/css", n.href = fm, globalThis.document.head.appendChild(n);
|
|
8079
8079
|
}, [t]);
|
|
8080
|
-
}, RE = "1.18.
|
|
8080
|
+
}, RE = "1.18.2", _E = "https://react.seam.co", kE = ({
|
|
8081
8081
|
disabled: t = !1,
|
|
8082
8082
|
unminified: e = !1
|
|
8083
8083
|
}) => {
|
|
@@ -22653,10 +22653,76 @@ var U2 = class extends Error {
|
|
|
22653
22653
|
params: t
|
|
22654
22654
|
})
|
|
22655
22655
|
}, this.deviceModels = {
|
|
22656
|
-
list: (
|
|
22657
|
-
|
|
22656
|
+
list: ({
|
|
22657
|
+
acknowledge_intentional_use_of_internal_api: t = !1,
|
|
22658
|
+
...e
|
|
22659
|
+
} = {}) => {
|
|
22660
|
+
if (t !== !0)
|
|
22661
|
+
throw new Error("This is an internal endpoint and should not be used.");
|
|
22662
|
+
return this.makeRequestAndFormat(
|
|
22663
|
+
"device_models",
|
|
22664
|
+
{
|
|
22665
|
+
url: "/internal/device_models/list",
|
|
22666
|
+
params: e
|
|
22667
|
+
}
|
|
22668
|
+
);
|
|
22669
|
+
}
|
|
22670
|
+
}, this.thermostats = {
|
|
22671
|
+
list: (t) => this.makeRequestAndFormat("thermostats", {
|
|
22672
|
+
url: "/thermostats/list",
|
|
22658
22673
|
params: t
|
|
22659
|
-
})
|
|
22674
|
+
}),
|
|
22675
|
+
get: (t) => this.makeRequestAndFormat("thermostat", {
|
|
22676
|
+
url: "/thermostats/get",
|
|
22677
|
+
params: t
|
|
22678
|
+
}),
|
|
22679
|
+
update: (t) => this.makeRequest({
|
|
22680
|
+
url: "/thermostats/update",
|
|
22681
|
+
method: "POST",
|
|
22682
|
+
data: t
|
|
22683
|
+
}),
|
|
22684
|
+
delete: (t) => this.makeRequest({
|
|
22685
|
+
url: "/thermostats/delete",
|
|
22686
|
+
method: "DELETE",
|
|
22687
|
+
params: t
|
|
22688
|
+
}),
|
|
22689
|
+
climateSettingSchedules: {
|
|
22690
|
+
list: (t) => this.makeRequestAndFormat(
|
|
22691
|
+
"climate_setting_schedules",
|
|
22692
|
+
{
|
|
22693
|
+
url: "/thermostats/climate_setting_schedules/list",
|
|
22694
|
+
params: t
|
|
22695
|
+
}
|
|
22696
|
+
),
|
|
22697
|
+
get: (t) => this.makeRequestAndFormat(
|
|
22698
|
+
"climate_setting_schedule",
|
|
22699
|
+
{
|
|
22700
|
+
url: "/thermostats/climate_setting_schedules/get",
|
|
22701
|
+
params: t
|
|
22702
|
+
}
|
|
22703
|
+
),
|
|
22704
|
+
create: (t) => this.makeRequestAndFormat(
|
|
22705
|
+
"climate_setting_schedule",
|
|
22706
|
+
{
|
|
22707
|
+
url: "/thermostats/climate_setting_schedules/create",
|
|
22708
|
+
method: "POST",
|
|
22709
|
+
data: t
|
|
22710
|
+
}
|
|
22711
|
+
),
|
|
22712
|
+
update: (t) => this.makeRequestAndFormat(
|
|
22713
|
+
"climate_setting_schedule",
|
|
22714
|
+
{
|
|
22715
|
+
url: "/thermostats/climate_setting_schedules/update",
|
|
22716
|
+
method: "POST",
|
|
22717
|
+
data: t
|
|
22718
|
+
}
|
|
22719
|
+
),
|
|
22720
|
+
delete: (t) => this.makeRequest({
|
|
22721
|
+
url: "/thermostats/climate_setting_schedules/delete",
|
|
22722
|
+
method: "DELETE",
|
|
22723
|
+
params: t
|
|
22724
|
+
})
|
|
22725
|
+
}
|
|
22660
22726
|
};
|
|
22661
22727
|
}
|
|
22662
22728
|
async awaitActionAttempt(t) {
|
|
@@ -22687,7 +22753,7 @@ var U2 = class extends Error {
|
|
|
22687
22753
|
actionAttempt: n
|
|
22688
22754
|
};
|
|
22689
22755
|
}
|
|
22690
|
-
}, Q2 = "6.
|
|
22756
|
+
}, Q2 = "6.12.1", Fy = (t) => {
|
|
22691
22757
|
var e, n, r, i, o, s, l, c, a;
|
|
22692
22758
|
const u = {
|
|
22693
22759
|
apiKey: (r = (n = (e = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : e.env) == null ? void 0 : n.SEAM_API_KEY) != null ? r : void 0,
|
|
@@ -23851,7 +23917,7 @@ function kM(t) {
|
|
|
23851
23917
|
className: Re("seam-alert", `seam-${e}-alert`, r),
|
|
23852
23918
|
children: [
|
|
23853
23919
|
/* @__PURE__ */ v.jsxs("div", { className: "seam-alert-content", children: [
|
|
23854
|
-
/* @__PURE__ */ v.jsx("div", { className: "seam-alert-icon", children: e === "warning" ? /* @__PURE__ */ v.jsx(_M, {}) : /* @__PURE__ */ v.jsx(RM, {}) }),
|
|
23920
|
+
/* @__PURE__ */ v.jsx("div", { className: "seam-alert-icon-wrap", children: /* @__PURE__ */ v.jsx("div", { className: "seam-alert-icon", children: e === "warning" ? /* @__PURE__ */ v.jsx(_M, {}) : /* @__PURE__ */ v.jsx(RM, {}) }) }),
|
|
23855
23921
|
/* @__PURE__ */ v.jsx("div", { className: "seam-alert-message-wrap", children: /* @__PURE__ */ v.jsx("p", { className: "seam-alert-message", children: n }) })
|
|
23856
23922
|
] }),
|
|
23857
23923
|
t.action != null && /* @__PURE__ */ v.jsx(NM, { ...t.action })
|
|
@@ -24842,7 +24908,10 @@ function N1(t) {
|
|
|
24842
24908
|
const { client: e } = wr(), { data: n, ...r } = Io({
|
|
24843
24909
|
enabled: e != null,
|
|
24844
24910
|
queryKey: ["device_models", "list", t],
|
|
24845
|
-
queryFn: async () => e == null ? [] : await (e == null ? void 0 : e.deviceModels.list(
|
|
24911
|
+
queryFn: async () => e == null ? [] : await (e == null ? void 0 : e.deviceModels.list({
|
|
24912
|
+
...t,
|
|
24913
|
+
acknowledge_intentional_use_of_internal_api: !0
|
|
24914
|
+
}))
|
|
24846
24915
|
});
|
|
24847
24916
|
return { ...r, deviceModels: n };
|
|
24848
24917
|
}
|