@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 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.1/dist/elements.js"
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.1";
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 e;
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
- (e = t.aesthetic_variants[0]) == null ? void 0 : e.manufacturer_sku,
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 = (f) => {
29705
- r((d) => ({
29706
- ...d,
29707
- [f]: null
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: f }) => /* @__PURE__ */ p.jsx(
29718
+ renderButton: ({ onOpen: h }) => /* @__PURE__ */ p.jsx(
29717
29719
  Rt,
29718
29720
  {
29719
29721
  variant: "outline",
29720
29722
  className: "seam-filters-button",
29721
- onClick: f,
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: (f) => {
29730
- f.stopPropagation();
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: (l == null ? void 0 : l.map(
29739
- (f) => f.display_name
29740
- )) ?? [],
29741
- onSelect: (f) => {
29742
- r((d) => ({
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: (f) => {
29769
- r((d) => ({
29770
- ...d,
29771
- supportedOnly: f.target.checked
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: (f) => {
29789
- e(f);
29788
+ onChange: (h) => {
29789
+ e(h);
29790
29790
  },
29791
29791
  className: "seam-supported-device-table-filter-area-search-bar"
29792
29792
  }