@seamapi/react 1.45.0 → 1.45.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/README.md +1 -1
- package/dist/elements.js +5 -7
- package/dist/elements.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.js +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceContent.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.js +4 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/use-filtered-device-models.js +9 -4
- package/lib/seam/components/SupportedDeviceTable/use-filtered-device-models.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/SupportedDeviceContent.tsx +4 -4
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.tsx +4 -1
- package/src/lib/seam/components/SupportedDeviceTable/use-filtered-device-models.ts +8 -7
- package/src/lib/version.ts +1 -1
package/README.md
CHANGED
|
@@ -78,7 +78,7 @@ export function App() {
|
|
|
78
78
|
<seam-device-table publishable-key="your_publishable_key"></seam-device-table>
|
|
79
79
|
<script
|
|
80
80
|
type="module"
|
|
81
|
-
src="https://react.seam.co/v/1.45.
|
|
81
|
+
src="https://react.seam.co/v/1.45.2/dist/elements.js"
|
|
82
82
|
></script>
|
|
83
83
|
</body>
|
|
84
84
|
```
|
package/dist/elements.js
CHANGED
|
@@ -8098,7 +8098,7 @@ const Fm = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
|
|
|
8098
8098
|
const n = globalThis.document.createElement("link");
|
|
8099
8099
|
n.rel = "stylesheet", n.type = "text/css", n.href = Fm, globalThis.document.head.appendChild(n);
|
|
8100
8100
|
}, [t]);
|
|
8101
|
-
}, OO = "1.45.
|
|
8101
|
+
}, OO = "1.45.2", xO = "https://react.seam.co", CO = ({
|
|
8102
8102
|
disabled: t = !1,
|
|
8103
8103
|
unminified: e = !1
|
|
8104
8104
|
}) => {
|
|
@@ -26378,11 +26378,9 @@ const cz = ({
|
|
|
26378
26378
|
const i = {};
|
|
26379
26379
|
t.trim() !== "" && (i.text_search = t.trim()), e.supportedOnly && (i.support_level = "live"), e.brand !== null && (i.brand = e.brand);
|
|
26380
26380
|
const o = OS(i);
|
|
26381
|
-
return
|
|
26381
|
+
return {
|
|
26382
26382
|
...o,
|
|
26383
|
-
deviceModels: (s = o.deviceModels) == null ? void 0 : s.filter(
|
|
26384
|
-
({ brand: l }) => n.includes(l) && !r.includes(l)
|
|
26385
|
-
)
|
|
26383
|
+
deviceModels: (s = o.deviceModels) == null ? void 0 : s.filter(({ brand: l }) => n === null ? !0 : n.includes(l)).filter(({ brand: l }) => !r.includes(l))
|
|
26386
26384
|
};
|
|
26387
26385
|
};
|
|
26388
26386
|
function pz({
|
|
@@ -26459,7 +26457,7 @@ function fz({
|
|
|
26459
26457
|
}
|
|
26460
26458
|
)
|
|
26461
26459
|
] });
|
|
26462
|
-
return /* @__PURE__ */ f.jsx("
|
|
26460
|
+
return /* @__PURE__ */ f.jsx("div", { className: "seam-supported-device-table-content-message-row", children: /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx("div", { className: "seam-supported-device-table-content-message", children: t.length === 0 ? /* @__PURE__ */ f.jsx("p", { children: si.noneFound }) : n }) }) });
|
|
26463
26461
|
}
|
|
26464
26462
|
function hz(t) {
|
|
26465
26463
|
const e = {};
|
|
@@ -26641,7 +26639,7 @@ const Sz = (t) => {
|
|
|
26641
26639
|
const { deviceModels: n } = OS();
|
|
26642
26640
|
if (n == null)
|
|
26643
26641
|
return [];
|
|
26644
|
-
const r = n.map(({ brand: i }) => i.trim()).filter((i) => i !== "").filter((i) => t === null ? !0 : t.includes(i)
|
|
26642
|
+
const r = n.map(({ brand: i }) => i.trim()).filter((i) => i !== "").filter((i) => t === null ? !0 : t.includes(i)).filter((i) => !e.includes(i)).map((i) => vz(i));
|
|
26645
26643
|
return Array.from(new Set(r));
|
|
26646
26644
|
}, ea = {
|
|
26647
26645
|
all: "All",
|