@seamapi/react 2.0.0 → 2.0.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 +26 -25
- package/dist/elements.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.js +10 -2
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceFilterArea.js.map +1 -1
- package/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.js +2 -1
- 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/SupportedDeviceFilterArea.tsx +12 -6
- package/src/lib/seam/components/SupportedDeviceTable/SupportedDeviceRow.tsx +3 -2
- 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/2.0.
|
|
90
|
+
src="https://react.seam.co/v/2.0.2/dist/elements.js"
|
|
91
91
|
></script>
|
|
92
92
|
</body>
|
|
93
93
|
```
|
package/dist/elements.js
CHANGED
|
@@ -8226,7 +8226,7 @@ function Id(t, e, n) {
|
|
|
8226
8226
|
}
|
|
8227
8227
|
return VO(r);
|
|
8228
8228
|
}
|
|
8229
|
-
const bS = "2.0.
|
|
8229
|
+
const bS = "2.0.2";
|
|
8230
8230
|
var $n, gr, us, Gn, ds, cs, qt, wc, wS, Qn, on;
|
|
8231
8231
|
class SS {
|
|
8232
8232
|
constructor({
|
|
@@ -29292,11 +29292,13 @@ function nE({
|
|
|
29292
29292
|
function Tz({
|
|
29293
29293
|
deviceModel: t
|
|
29294
29294
|
}) {
|
|
29295
|
+
var n;
|
|
29296
|
+
const e = (n = t.aesthetic_variants[0]) == null ? void 0 : n.manufacturer_sku;
|
|
29295
29297
|
return /* @__PURE__ */ p.jsxs("div", { className: "seam-col seam-model-col", children: [
|
|
29296
29298
|
/* @__PURE__ */ p.jsx("div", { className: "seam-model-name", children: /* @__PURE__ */ p.jsx("div", { className: "seam-truncated-text", children: t.display_name }) }),
|
|
29297
29299
|
/* @__PURE__ */ p.jsx("div", { className: "seam-model-id", children: /* @__PURE__ */ p.jsxs("div", { className: "seam-truncated-text", children: [
|
|
29298
|
-
|
|
29299
|
-
/* @__PURE__ */ p.jsx(wi, {}),
|
|
29300
|
+
e,
|
|
29301
|
+
e != null && /* @__PURE__ */ p.jsx(wi, {}),
|
|
29300
29302
|
t.main_connection_type
|
|
29301
29303
|
] }) })
|
|
29302
29304
|
] });
|
|
@@ -29697,27 +29699,28 @@ function Wz({
|
|
|
29697
29699
|
manufacturers: i,
|
|
29698
29700
|
excludedManufacturers: s
|
|
29699
29701
|
}) {
|
|
29702
|
+
var d;
|
|
29700
29703
|
const o = Kz(n), { manufacturers: l } = iE({
|
|
29701
29704
|
manufacturers: i,
|
|
29702
29705
|
excludedManufacturers: s
|
|
29703
|
-
}), c = (
|
|
29704
|
-
r((
|
|
29705
|
-
...
|
|
29706
|
-
[
|
|
29706
|
+
}), c = (h) => {
|
|
29707
|
+
r((m) => ({
|
|
29708
|
+
...m,
|
|
29709
|
+
[h]: null
|
|
29707
29710
|
}));
|
|
29708
|
-
}, a = o > 0 ? `${lo.filters} (${o})` : lo.filter, u = lo.all;
|
|
29711
|
+
}, a = o > 0 ? `${lo.filters} (${o})` : lo.filter, u = lo.all, f = ((d = l == null ? void 0 : l.filter((h) => n.supportedOnly ? ["stable", "beta"].includes(h.integration) : !0)) == null ? void 0 : d.map((h) => h.display_name)) ?? [];
|
|
29709
29712
|
return /* @__PURE__ */ p.jsxs("div", { className: "seam-supported-device-table-filter-area", children: [
|
|
29710
29713
|
/* @__PURE__ */ p.jsx("div", { className: "seam-deliberate-block" }),
|
|
29711
29714
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-filters-wrap", children: [
|
|
29712
29715
|
/* @__PURE__ */ p.jsx(
|
|
29713
29716
|
Jm,
|
|
29714
29717
|
{
|
|
29715
|
-
renderButton: ({ onOpen:
|
|
29718
|
+
renderButton: ({ onOpen: h }) => /* @__PURE__ */ p.jsx(
|
|
29716
29719
|
Rt,
|
|
29717
29720
|
{
|
|
29718
29721
|
variant: "outline",
|
|
29719
29722
|
className: "seam-filters-button",
|
|
29720
|
-
onClick:
|
|
29723
|
+
onClick: h,
|
|
29721
29724
|
children: a
|
|
29722
29725
|
}
|
|
29723
29726
|
),
|
|
@@ -29725,8 +29728,8 @@ function Wz({
|
|
|
29725
29728
|
"div",
|
|
29726
29729
|
{
|
|
29727
29730
|
className: "seam-supported-device-table-filter-menu",
|
|
29728
|
-
onClick: (
|
|
29729
|
-
|
|
29731
|
+
onClick: (h) => {
|
|
29732
|
+
h.stopPropagation();
|
|
29730
29733
|
},
|
|
29731
29734
|
children: [
|
|
29732
29735
|
/* @__PURE__ */ p.jsx("div", { className: "seam-filter-menu-row", children: /* @__PURE__ */ p.jsx(
|
|
@@ -29734,13 +29737,11 @@ function Wz({
|
|
|
29734
29737
|
{
|
|
29735
29738
|
label: lo.manufacturer,
|
|
29736
29739
|
allLabel: u,
|
|
29737
|
-
options:
|
|
29738
|
-
|
|
29739
|
-
|
|
29740
|
-
|
|
29741
|
-
|
|
29742
|
-
...d,
|
|
29743
|
-
manufacturer: f
|
|
29740
|
+
options: f,
|
|
29741
|
+
onSelect: (h) => {
|
|
29742
|
+
r((m) => ({
|
|
29743
|
+
...m,
|
|
29744
|
+
manufacturer: h
|
|
29744
29745
|
}));
|
|
29745
29746
|
},
|
|
29746
29747
|
buttonLabel: n.manufacturer ?? u,
|
|
@@ -29764,10 +29765,10 @@ function Wz({
|
|
|
29764
29765
|
type: "checkbox",
|
|
29765
29766
|
className: "seam-filter-checkbox",
|
|
29766
29767
|
checked: n.supportedOnly,
|
|
29767
|
-
onChange: (
|
|
29768
|
-
r((
|
|
29769
|
-
...
|
|
29770
|
-
supportedOnly:
|
|
29768
|
+
onChange: (h) => {
|
|
29769
|
+
r((m) => ({
|
|
29770
|
+
...m,
|
|
29771
|
+
supportedOnly: h.target.checked
|
|
29771
29772
|
}));
|
|
29772
29773
|
}
|
|
29773
29774
|
}
|
|
@@ -29784,8 +29785,8 @@ function Wz({
|
|
|
29784
29785
|
Xc,
|
|
29785
29786
|
{
|
|
29786
29787
|
value: t,
|
|
29787
|
-
onChange: (
|
|
29788
|
-
e(
|
|
29788
|
+
onChange: (h) => {
|
|
29789
|
+
e(h);
|
|
29789
29790
|
},
|
|
29790
29791
|
className: "seam-supported-device-table-filter-area-search-bar"
|
|
29791
29792
|
}
|