@seamapi/react 1.58.0 → 1.58.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 +1 -1
- package/dist/elements.js +53 -55
- package/dist/elements.js.map +1 -1
- package/dist/index.css +17 -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/components/SupportedDeviceTable/SupportedDeviceFilterResultRow.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterResultRow.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.d.ts +0 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.js +2 -7
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.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/SupportedDeviceFilterResultRow.tsx +6 -4
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.tsx +9 -14
- package/src/lib/version.ts +1 -1
- package/src/styles/_supported-device-table.scss +20 -3
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/1.58.
|
|
90
|
+
src="https://react.seam.co/v/1.58.1/dist/elements.js"
|
|
91
91
|
></script>
|
|
92
92
|
</body>
|
|
93
93
|
```
|
package/dist/elements.js
CHANGED
|
@@ -13683,7 +13683,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13683
13683
|
};
|
|
13684
13684
|
}
|
|
13685
13685
|
}
|
|
13686
|
-
function
|
|
13686
|
+
function lq(e) {
|
|
13687
13687
|
return e;
|
|
13688
13688
|
}
|
|
13689
13689
|
function p3(e) {
|
|
@@ -16170,9 +16170,9 @@ Incoming: %s`, pe, "[" + n.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
16170
16170
|
}
|
|
16171
16171
|
return [R, b];
|
|
16172
16172
|
}
|
|
16173
|
-
function
|
|
16173
|
+
function uq(e, n, l) {
|
|
16174
16174
|
}
|
|
16175
|
-
function
|
|
16175
|
+
function cq(e, n, l) {
|
|
16176
16176
|
}
|
|
16177
16177
|
function mA(e, n, l) {
|
|
16178
16178
|
var c = vn, p = Ys(), b, O = fi();
|
|
@@ -43487,19 +43487,19 @@ function NF({
|
|
|
43487
43487
|
deviceModel: r
|
|
43488
43488
|
}) {
|
|
43489
43489
|
return /* @__PURE__ */ w.jsxs("div", { className: "seam-col seam-model-col", children: [
|
|
43490
|
-
/* @__PURE__ */ w.jsx("div", { className: "seam-model-name", children: r.model_name }),
|
|
43491
|
-
/* @__PURE__ */ w.
|
|
43490
|
+
/* @__PURE__ */ w.jsx("div", { className: "seam-model-name", children: /* @__PURE__ */ w.jsx("div", { className: "seam-truncated-text", children: r.model_name }) }),
|
|
43491
|
+
/* @__PURE__ */ w.jsx("div", { className: "seam-model-id", children: /* @__PURE__ */ w.jsxs("div", { className: "seam-truncated-text", children: [
|
|
43492
43492
|
r.manufacturer_model_id,
|
|
43493
43493
|
/* @__PURE__ */ w.jsx(Zd, {}),
|
|
43494
43494
|
Sz[r.connection_type]
|
|
43495
|
-
] })
|
|
43495
|
+
] }) })
|
|
43496
43496
|
] });
|
|
43497
43497
|
}
|
|
43498
43498
|
function bz({
|
|
43499
43499
|
deviceModel: r
|
|
43500
43500
|
}) {
|
|
43501
43501
|
const t = HF[r.support_level] ?? "unknown";
|
|
43502
|
-
return /* @__PURE__ */ w.jsx("div", { className: "seam-col seam-status-col", children: /* @__PURE__ */ w.jsx("div", { className: ln("seam-status-pill", `status-${t}`), children: /* @__PURE__ */ w.jsx("span", { children:
|
|
43502
|
+
return /* @__PURE__ */ w.jsx("div", { className: "seam-col seam-status-col", children: /* @__PURE__ */ w.jsx("div", { className: ln("seam-status-pill", `status-${t}`), children: /* @__PURE__ */ w.jsx("span", { children: LF[r.support_level] }) }) });
|
|
43503
43503
|
}
|
|
43504
43504
|
const HF = {
|
|
43505
43505
|
live: "green",
|
|
@@ -43514,10 +43514,8 @@ const HF = {
|
|
|
43514
43514
|
zwave: "Z-Wave",
|
|
43515
43515
|
zigbee: "Zigbee",
|
|
43516
43516
|
unknown: "Unknown"
|
|
43517
|
-
}, VF = {
|
|
43518
|
-
lockly: "LIVE/CONTACT SUPPORT"
|
|
43519
43517
|
};
|
|
43520
|
-
function
|
|
43518
|
+
function VF(r) {
|
|
43521
43519
|
const { client: t } = $i(), { data: o, ...a } = cs({
|
|
43522
43520
|
enabled: t != null,
|
|
43523
43521
|
queryKey: ["devices", "list_device_providers", r],
|
|
@@ -43526,16 +43524,16 @@ function UF(r) {
|
|
|
43526
43524
|
return { ...a, deviceProviders: o };
|
|
43527
43525
|
}
|
|
43528
43526
|
function Ez(r) {
|
|
43529
|
-
const { deviceProviders: t } =
|
|
43530
|
-
return (t == null ? void 0 : t.find((a) => a.device_provider_name === r)) ??
|
|
43527
|
+
const { deviceProviders: t } = VF();
|
|
43528
|
+
return (t == null ? void 0 : t.find((a) => a.device_provider_name === r)) ?? UF;
|
|
43531
43529
|
}
|
|
43532
|
-
const
|
|
43530
|
+
const UF = {
|
|
43533
43531
|
device_provider_name: "unknown",
|
|
43534
43532
|
display_name: "Unknown",
|
|
43535
43533
|
image_url: "https://connect.getseam.com/assets/images/logos/seam.png",
|
|
43536
43534
|
provider_categories: []
|
|
43537
43535
|
}, xM = 3;
|
|
43538
|
-
function
|
|
43536
|
+
function FF({
|
|
43539
43537
|
brand: r,
|
|
43540
43538
|
deviceModels: t
|
|
43541
43539
|
}) {
|
|
@@ -43564,7 +43562,7 @@ function qF({
|
|
|
43564
43562
|
/* @__PURE__ */ w.jsxs("h5", { className: "seam-brand-name", children: [
|
|
43565
43563
|
o.display_name,
|
|
43566
43564
|
" ",
|
|
43567
|
-
|
|
43565
|
+
qF.devices
|
|
43568
43566
|
] }),
|
|
43569
43567
|
h && /* @__PURE__ */ w.jsx(cE, { className: "chevron" })
|
|
43570
43568
|
] }),
|
|
@@ -43595,19 +43593,19 @@ function qF({
|
|
|
43595
43593
|
}
|
|
43596
43594
|
);
|
|
43597
43595
|
}
|
|
43598
|
-
const
|
|
43596
|
+
const qF = {
|
|
43599
43597
|
devices: "Devices"
|
|
43600
43598
|
};
|
|
43601
|
-
function
|
|
43599
|
+
function BF({
|
|
43602
43600
|
deviceModel: r
|
|
43603
43601
|
}) {
|
|
43604
43602
|
return /* @__PURE__ */ w.jsxs("div", { className: "seam-row filter-result-row", children: [
|
|
43605
43603
|
/* @__PURE__ */ w.jsx(gz, { deviceModel: r }),
|
|
43606
|
-
/* @__PURE__ */ w.jsx(
|
|
43604
|
+
/* @__PURE__ */ w.jsx($F, { deviceModel: r }),
|
|
43607
43605
|
/* @__PURE__ */ w.jsx(bz, { deviceModel: r })
|
|
43608
43606
|
] });
|
|
43609
43607
|
}
|
|
43610
|
-
function
|
|
43608
|
+
function $F({
|
|
43611
43609
|
deviceModel: r
|
|
43612
43610
|
}) {
|
|
43613
43611
|
const t = Ez(r.brand);
|
|
@@ -43622,13 +43620,13 @@ function GF({
|
|
|
43622
43620
|
}
|
|
43623
43621
|
),
|
|
43624
43622
|
" ",
|
|
43625
|
-
r.model_name
|
|
43623
|
+
/* @__PURE__ */ w.jsx("div", { className: "seam-truncated-text", children: r.model_name })
|
|
43626
43624
|
] }),
|
|
43627
|
-
/* @__PURE__ */ w.
|
|
43625
|
+
/* @__PURE__ */ w.jsx("div", { className: "seam-model-id", children: /* @__PURE__ */ w.jsxs("div", { className: "seam-truncated-text", children: [
|
|
43628
43626
|
r.manufacturer_model_id,
|
|
43629
43627
|
/* @__PURE__ */ w.jsx(Zd, {}),
|
|
43630
43628
|
Sz[r.connection_type]
|
|
43631
|
-
] })
|
|
43629
|
+
] }) })
|
|
43632
43630
|
] });
|
|
43633
43631
|
}
|
|
43634
43632
|
function wz(r) {
|
|
@@ -43642,7 +43640,7 @@ function wz(r) {
|
|
|
43642
43640
|
});
|
|
43643
43641
|
return { ...a, deviceModels: o };
|
|
43644
43642
|
}
|
|
43645
|
-
const
|
|
43643
|
+
const GF = ({
|
|
43646
43644
|
filterValue: r,
|
|
43647
43645
|
filters: t,
|
|
43648
43646
|
brands: o,
|
|
@@ -43657,14 +43655,14 @@ const QF = ({
|
|
|
43657
43655
|
deviceModels: (m = h.deviceModels) == null ? void 0 : m.filter(({ brand: S }) => o === null ? !0 : o.includes(S)).filter(({ brand: S }) => !a.includes(S))
|
|
43658
43656
|
};
|
|
43659
43657
|
};
|
|
43660
|
-
function
|
|
43658
|
+
function QF({
|
|
43661
43659
|
resetFilterValue: r,
|
|
43662
43660
|
filterValue: t,
|
|
43663
43661
|
filters: o,
|
|
43664
43662
|
brands: a,
|
|
43665
43663
|
excludedBrands: d
|
|
43666
43664
|
}) {
|
|
43667
|
-
const { deviceModels: h, isLoading: m, isError: S, refetch: E } =
|
|
43665
|
+
const { deviceModels: h, isLoading: m, isError: S, refetch: E } = GF(
|
|
43668
43666
|
{
|
|
43669
43667
|
filterValue: t,
|
|
43670
43668
|
filters: o,
|
|
@@ -43686,13 +43684,13 @@ function WF({
|
|
|
43686
43684
|
}
|
|
43687
43685
|
)
|
|
43688
43686
|
] }) : h == null ? null : h.length === 0 ? /* @__PURE__ */ w.jsx("div", { className: "seam-supported-device-table-content", children: /* @__PURE__ */ w.jsx(
|
|
43689
|
-
|
|
43687
|
+
WF,
|
|
43690
43688
|
{
|
|
43691
43689
|
filterValue: t,
|
|
43692
43690
|
resetFilterValue: r
|
|
43693
43691
|
}
|
|
43694
43692
|
) }) : t.trim() !== "" || o.brand !== null ? /* @__PURE__ */ w.jsx("div", { className: "seam-supported-device-table-content", children: h.map((A, g) => /* @__PURE__ */ w.jsx(
|
|
43695
|
-
|
|
43693
|
+
BF,
|
|
43696
43694
|
{
|
|
43697
43695
|
deviceModel: A
|
|
43698
43696
|
},
|
|
@@ -43703,9 +43701,9 @@ function WF({
|
|
|
43703
43701
|
A.manufacturer_model_id,
|
|
43704
43702
|
g
|
|
43705
43703
|
].join(":")
|
|
43706
|
-
)) }) : /* @__PURE__ */ w.jsx(w.Fragment, { children: Object.entries(
|
|
43704
|
+
)) }) : /* @__PURE__ */ w.jsx(w.Fragment, { children: Object.entries(YF(h)).map(
|
|
43707
43705
|
([A, g]) => /* @__PURE__ */ w.jsx(
|
|
43708
|
-
|
|
43706
|
+
FF,
|
|
43709
43707
|
{
|
|
43710
43708
|
brand: A,
|
|
43711
43709
|
deviceModels: g
|
|
@@ -43714,7 +43712,7 @@ function WF({
|
|
|
43714
43712
|
)
|
|
43715
43713
|
) });
|
|
43716
43714
|
}
|
|
43717
|
-
function
|
|
43715
|
+
function WF({
|
|
43718
43716
|
filterValue: r,
|
|
43719
43717
|
resetFilterValue: t
|
|
43720
43718
|
}) {
|
|
@@ -43733,7 +43731,7 @@ function YF({
|
|
|
43733
43731
|
] });
|
|
43734
43732
|
return /* @__PURE__ */ w.jsx("div", { className: "seam-supported-device-table-content-message-row", children: /* @__PURE__ */ w.jsx("div", { children: /* @__PURE__ */ w.jsx("div", { className: "seam-supported-device-table-content-message", children: r.length === 0 ? /* @__PURE__ */ w.jsx("p", { children: Xp.noneFound }) : o }) }) });
|
|
43735
43733
|
}
|
|
43736
|
-
function
|
|
43734
|
+
function YF(r) {
|
|
43737
43735
|
const t = {};
|
|
43738
43736
|
for (const o of r) {
|
|
43739
43737
|
const { brand: a } = o, d = t[a] ?? [];
|
|
@@ -43749,7 +43747,7 @@ const Xp = {
|
|
|
43749
43747
|
noMatch: "No device models matched your search.",
|
|
43750
43748
|
clear: "Clear search terms"
|
|
43751
43749
|
};
|
|
43752
|
-
function
|
|
43750
|
+
function ZF(r) {
|
|
43753
43751
|
return /* @__PURE__ */ w.jsxs(
|
|
43754
43752
|
"svg",
|
|
43755
43753
|
{
|
|
@@ -43785,8 +43783,8 @@ function KF(r) {
|
|
|
43785
43783
|
}
|
|
43786
43784
|
);
|
|
43787
43785
|
}
|
|
43788
|
-
function
|
|
43789
|
-
label: r =
|
|
43786
|
+
function KF({
|
|
43787
|
+
label: r = JF.filter,
|
|
43790
43788
|
allLabel: t,
|
|
43791
43789
|
options: o,
|
|
43792
43790
|
hideAllOption: a = !1,
|
|
@@ -43802,7 +43800,7 @@ function JF({
|
|
|
43802
43800
|
{
|
|
43803
43801
|
renderButton: ({ onOpen: E }) => /* @__PURE__ */ w.jsxs("button", { onClick: E, children: [
|
|
43804
43802
|
/* @__PURE__ */ w.jsx("span", { children: m }),
|
|
43805
|
-
/* @__PURE__ */ w.jsx(
|
|
43803
|
+
/* @__PURE__ */ w.jsx(ZF, {})
|
|
43806
43804
|
] }),
|
|
43807
43805
|
children: S.map((E, u) => /* @__PURE__ */ w.jsx(
|
|
43808
43806
|
Qy,
|
|
@@ -43818,13 +43816,13 @@ function JF({
|
|
|
43818
43816
|
)
|
|
43819
43817
|
] });
|
|
43820
43818
|
}
|
|
43821
|
-
const
|
|
43819
|
+
const JF = {
|
|
43822
43820
|
filter: "Filter"
|
|
43823
43821
|
};
|
|
43824
|
-
function
|
|
43822
|
+
function XF(r) {
|
|
43825
43823
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
43826
43824
|
}
|
|
43827
|
-
function
|
|
43825
|
+
function eq({
|
|
43828
43826
|
filterValue: r,
|
|
43829
43827
|
setFilterValue: t,
|
|
43830
43828
|
filters: o,
|
|
@@ -43832,7 +43830,7 @@ function tq({
|
|
|
43832
43830
|
brands: d,
|
|
43833
43831
|
excludedBrands: h
|
|
43834
43832
|
}) {
|
|
43835
|
-
const m =
|
|
43833
|
+
const m = tq(o), S = nq(d, h), E = (A) => {
|
|
43836
43834
|
a((g) => ({
|
|
43837
43835
|
...g,
|
|
43838
43836
|
[A]: null
|
|
@@ -43862,7 +43860,7 @@ function tq({
|
|
|
43862
43860
|
},
|
|
43863
43861
|
children: [
|
|
43864
43862
|
/* @__PURE__ */ w.jsx("div", { className: "seam-filter-menu-row", children: /* @__PURE__ */ w.jsx(
|
|
43865
|
-
|
|
43863
|
+
KF,
|
|
43866
43864
|
{
|
|
43867
43865
|
label: Fy.brand,
|
|
43868
43866
|
allLabel: y,
|
|
@@ -43923,14 +43921,14 @@ function tq({
|
|
|
43923
43921
|
] })
|
|
43924
43922
|
] });
|
|
43925
43923
|
}
|
|
43926
|
-
const
|
|
43924
|
+
const tq = (r) => {
|
|
43927
43925
|
let t = 0;
|
|
43928
43926
|
return r.brand !== null && t++, r.supportedOnly || t++, t;
|
|
43929
|
-
},
|
|
43927
|
+
}, nq = (r, t) => {
|
|
43930
43928
|
const { deviceModels: o } = wz();
|
|
43931
43929
|
if (o == null)
|
|
43932
43930
|
return [];
|
|
43933
|
-
const a = o.map(({ brand: d }) => d.trim()).filter((d) => d !== "").filter((d) => r === null ? !0 : r.includes(d)).filter((d) => !t.includes(d)).map((d) =>
|
|
43931
|
+
const a = o.map(({ brand: d }) => d.trim()).filter((d) => d !== "").filter((d) => r === null ? !0 : r.includes(d)).filter((d) => !t.includes(d)).map((d) => XF(d));
|
|
43934
43932
|
return Array.from(new Set(a));
|
|
43935
43933
|
}, Fy = {
|
|
43936
43934
|
all: "All",
|
|
@@ -43961,7 +43959,7 @@ function Az({
|
|
|
43961
43959
|
),
|
|
43962
43960
|
children: [
|
|
43963
43961
|
!u && /* @__PURE__ */ w.jsx(
|
|
43964
|
-
|
|
43962
|
+
eq,
|
|
43965
43963
|
{
|
|
43966
43964
|
filterValue: h,
|
|
43967
43965
|
setFilterValue: m,
|
|
@@ -43972,7 +43970,7 @@ function Az({
|
|
|
43972
43970
|
}
|
|
43973
43971
|
),
|
|
43974
43972
|
/* @__PURE__ */ w.jsx(
|
|
43975
|
-
|
|
43973
|
+
QF,
|
|
43976
43974
|
{
|
|
43977
43975
|
resetFilterValue: () => {
|
|
43978
43976
|
m("");
|
|
@@ -43987,17 +43985,17 @@ function Az({
|
|
|
43987
43985
|
}
|
|
43988
43986
|
);
|
|
43989
43987
|
}
|
|
43990
|
-
const
|
|
43988
|
+
const rq = "seam-supported-device-table", iq = {
|
|
43991
43989
|
cannotFilter: "boolean",
|
|
43992
43990
|
disableFilter: "boolean",
|
|
43993
43991
|
brands: "array",
|
|
43994
43992
|
excludedBrands: "array"
|
|
43995
|
-
},
|
|
43993
|
+
}, aq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43996
43994
|
__proto__: null,
|
|
43997
43995
|
Component: Az,
|
|
43998
|
-
name:
|
|
43999
|
-
props:
|
|
44000
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
43996
|
+
name: rq,
|
|
43997
|
+
props: iq
|
|
43998
|
+
}, Symbol.toStringTag, { value: "Module" })), oq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44001
43999
|
__proto__: null,
|
|
44002
44000
|
AccessCodeDetails: JU,
|
|
44003
44001
|
AccessCodeTable: tF,
|
|
@@ -44008,8 +44006,8 @@ const iq = "seam-supported-device-table", aq = {
|
|
|
44008
44006
|
DeviceDetails: gF,
|
|
44009
44007
|
DeviceTable: jF,
|
|
44010
44008
|
EditAccessCodeForm: zF,
|
|
44011
|
-
SupportedDeviceTable:
|
|
44012
|
-
}, Symbol.toStringTag, { value: "Module" })), TM =
|
|
44009
|
+
SupportedDeviceTable: aq
|
|
44010
|
+
}, Symbol.toStringTag, { value: "Module" })), TM = oq, sq = [];
|
|
44013
44011
|
for (const r of Object.keys(TM)) {
|
|
44014
44012
|
const t = TM[r];
|
|
44015
44013
|
if (t == null)
|
|
@@ -44019,10 +44017,10 @@ for (const r of Object.keys(TM)) {
|
|
|
44019
44017
|
throw new Error(`Missing element name for ${r}`);
|
|
44020
44018
|
if (a == null)
|
|
44021
44019
|
throw new Error(`Missing element Component for ${r}`);
|
|
44022
|
-
|
|
44020
|
+
sq.push(o), W7({ name: o, Component: a, props: d });
|
|
44023
44021
|
}
|
|
44024
44022
|
export {
|
|
44025
|
-
|
|
44026
|
-
|
|
44023
|
+
sq as default,
|
|
44024
|
+
sq as elementNames
|
|
44027
44025
|
};
|
|
44028
44026
|
//# sourceMappingURL=elements.js.map
|