@seamapi/react 2.0.1 → 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 -26
- 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,12 +29292,13 @@ function nE({
|
|
|
29292
29292
|
function Tz({
|
|
29293
29293
|
deviceModel: t
|
|
29294
29294
|
}) {
|
|
29295
|
-
var
|
|
29295
|
+
var n;
|
|
29296
|
+
const e = (n = t.aesthetic_variants[0]) == null ? void 0 : n.manufacturer_sku;
|
|
29296
29297
|
return /* @__PURE__ */ p.jsxs("div", { className: "seam-col seam-model-col", children: [
|
|
29297
29298
|
/* @__PURE__ */ p.jsx("div", { className: "seam-model-name", children: /* @__PURE__ */ p.jsx("div", { className: "seam-truncated-text", children: t.display_name }) }),
|
|
29298
29299
|
/* @__PURE__ */ p.jsx("div", { className: "seam-model-id", children: /* @__PURE__ */ p.jsxs("div", { className: "seam-truncated-text", children: [
|
|
29299
|
-
|
|
29300
|
-
/* @__PURE__ */ p.jsx(wi, {}),
|
|
29300
|
+
e,
|
|
29301
|
+
e != null && /* @__PURE__ */ p.jsx(wi, {}),
|
|
29301
29302
|
t.main_connection_type
|
|
29302
29303
|
] }) })
|
|
29303
29304
|
] });
|
|
@@ -29698,27 +29699,28 @@ function Wz({
|
|
|
29698
29699
|
manufacturers: i,
|
|
29699
29700
|
excludedManufacturers: s
|
|
29700
29701
|
}) {
|
|
29702
|
+
var d;
|
|
29701
29703
|
const o = Kz(n), { manufacturers: l } = iE({
|
|
29702
29704
|
manufacturers: i,
|
|
29703
29705
|
excludedManufacturers: s
|
|
29704
|
-
}), c = (
|
|
29705
|
-
r((
|
|
29706
|
-
...
|
|
29707
|
-
[
|
|
29706
|
+
}), c = (h) => {
|
|
29707
|
+
r((m) => ({
|
|
29708
|
+
...m,
|
|
29709
|
+
[h]: null
|
|
29708
29710
|
}));
|
|
29709
|
-
}, 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)) ?? [];
|
|
29710
29712
|
return /* @__PURE__ */ p.jsxs("div", { className: "seam-supported-device-table-filter-area", children: [
|
|
29711
29713
|
/* @__PURE__ */ p.jsx("div", { className: "seam-deliberate-block" }),
|
|
29712
29714
|
/* @__PURE__ */ p.jsxs("div", { className: "seam-filters-wrap", children: [
|
|
29713
29715
|
/* @__PURE__ */ p.jsx(
|
|
29714
29716
|
Jm,
|
|
29715
29717
|
{
|
|
29716
|
-
renderButton: ({ onOpen:
|
|
29718
|
+
renderButton: ({ onOpen: h }) => /* @__PURE__ */ p.jsx(
|
|
29717
29719
|
Rt,
|
|
29718
29720
|
{
|
|
29719
29721
|
variant: "outline",
|
|
29720
29722
|
className: "seam-filters-button",
|
|
29721
|
-
onClick:
|
|
29723
|
+
onClick: h,
|
|
29722
29724
|
children: a
|
|
29723
29725
|
}
|
|
29724
29726
|
),
|
|
@@ -29726,8 +29728,8 @@ function Wz({
|
|
|
29726
29728
|
"div",
|
|
29727
29729
|
{
|
|
29728
29730
|
className: "seam-supported-device-table-filter-menu",
|
|
29729
|
-
onClick: (
|
|
29730
|
-
|
|
29731
|
+
onClick: (h) => {
|
|
29732
|
+
h.stopPropagation();
|
|
29731
29733
|
},
|
|
29732
29734
|
children: [
|
|
29733
29735
|
/* @__PURE__ */ p.jsx("div", { className: "seam-filter-menu-row", children: /* @__PURE__ */ p.jsx(
|
|
@@ -29735,13 +29737,11 @@ function Wz({
|
|
|
29735
29737
|
{
|
|
29736
29738
|
label: lo.manufacturer,
|
|
29737
29739
|
allLabel: u,
|
|
29738
|
-
options:
|
|
29739
|
-
|
|
29740
|
-
|
|
29741
|
-
|
|
29742
|
-
|
|
29743
|
-
...d,
|
|
29744
|
-
manufacturer: f
|
|
29740
|
+
options: f,
|
|
29741
|
+
onSelect: (h) => {
|
|
29742
|
+
r((m) => ({
|
|
29743
|
+
...m,
|
|
29744
|
+
manufacturer: h
|
|
29745
29745
|
}));
|
|
29746
29746
|
},
|
|
29747
29747
|
buttonLabel: n.manufacturer ?? u,
|
|
@@ -29765,10 +29765,10 @@ function Wz({
|
|
|
29765
29765
|
type: "checkbox",
|
|
29766
29766
|
className: "seam-filter-checkbox",
|
|
29767
29767
|
checked: n.supportedOnly,
|
|
29768
|
-
onChange: (
|
|
29769
|
-
r((
|
|
29770
|
-
...
|
|
29771
|
-
supportedOnly:
|
|
29768
|
+
onChange: (h) => {
|
|
29769
|
+
r((m) => ({
|
|
29770
|
+
...m,
|
|
29771
|
+
supportedOnly: h.target.checked
|
|
29772
29772
|
}));
|
|
29773
29773
|
}
|
|
29774
29774
|
}
|
|
@@ -29785,8 +29785,8 @@ function Wz({
|
|
|
29785
29785
|
Xc,
|
|
29786
29786
|
{
|
|
29787
29787
|
value: t,
|
|
29788
|
-
onChange: (
|
|
29789
|
-
e(
|
|
29788
|
+
onChange: (h) => {
|
|
29789
|
+
e(h);
|
|
29790
29790
|
},
|
|
29791
29791
|
className: "seam-supported-device-table-filter-area-search-bar"
|
|
29792
29792
|
}
|