@seamapi/react 2.8.4 → 2.8.6

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.8.4/dist/elements.js"
90
+ src="https://react.seam.co/v/2.8.6/dist/elements.js"
91
91
  ></script>
92
92
  </body>
93
93
  ```
@@ -215,7 +215,7 @@ or place the following in the `<head>` tag:
215
215
  ```html
216
216
  <link
217
217
  rel="stylesheet"
218
- href="https://react.seam.co/v/2.8.4/dist/index.min.css"
218
+ href="https://react.seam.co/v/2.8.6/dist/index.min.css"
219
219
  />
220
220
  ```
221
221
 
package/dist/elements.js CHANGED
@@ -8226,7 +8226,7 @@ function Md(e, t, n) {
8226
8226
  }
8227
8227
  return r4(r);
8228
8228
  }
8229
- const RS = "2.8.4";
8229
+ const RS = "2.8.6";
8230
8230
  var Zn, Er, ys, Yn, gs, vs, Bt, Ic, DS, Jn, fn;
8231
8231
  class NS {
8232
8232
  constructor({
@@ -18497,13 +18497,13 @@ function _w() {
18497
18497
  const I3 = (e) => {
18498
18498
  if (!("client" in e))
18499
18499
  return !1;
18500
- const { client: t } = e;
18500
+ const { client: t, ...n } = e;
18501
18501
  if (t == null)
18502
18502
  return !1;
18503
- const n = Object.values(e).filter((r) => r != null);
18504
- if (n.length > 0)
18503
+ const r = Object.values(n).filter((i) => i != null);
18504
+ if (r.length > 0)
18505
18505
  throw new cs(
18506
- `The client prop cannot be used with ${n.join(" or ")}.`
18506
+ `The client prop cannot be used with ${r.join(" or ")}.`
18507
18507
  );
18508
18508
  return !0;
18509
18509
  }, j3 = (e) => {
@@ -27737,7 +27737,7 @@ function IM(e) {
27737
27737
  /* @__PURE__ */ p.jsx("span", { className: "seam-label", children: cn.lockStatus }),
27738
27738
  /* @__PURE__ */ p.jsx("span", { className: "seam-value", children: v })
27739
27739
  ] }),
27740
- /* @__PURE__ */ p.jsx("div", { className: "seam-right", children: i !== !0 && /* @__PURE__ */ p.jsx(
27740
+ /* @__PURE__ */ p.jsx("div", { className: "seam-right", children: i !== !0 && t.capabilities_supported.includes("lock") && /* @__PURE__ */ p.jsx(
27741
27741
  Nt,
27742
27742
  {
27743
27743
  size: "small",
@@ -29208,23 +29208,27 @@ function g2({
29208
29208
  disableLockUnlock: t = !1,
29209
29209
  disableDeleteAccessCode: n = !1,
29210
29210
  disableResourceIds: r = !1,
29211
- onBack: i,
29212
- className: s
29211
+ disableCreateAccessCode: i = !1,
29212
+ disableEditAccessCode: s = !1,
29213
+ onBack: o,
29214
+ className: l
29213
29215
  }) {
29214
29216
  En("DeviceDetails");
29215
- const { device: o } = ki({
29217
+ const { device: c } = ki({
29216
29218
  device_id: e
29217
29219
  });
29218
- if (o == null)
29220
+ if (c == null)
29219
29221
  return null;
29220
- const l = {
29222
+ const a = {
29221
29223
  disableLockUnlock: t,
29222
29224
  disableDeleteAccessCode: n,
29223
29225
  disableResourceIds: r,
29224
- onBack: i,
29225
- className: s
29226
+ disableCreateAccessCode: i,
29227
+ disableEditAccessCode: s,
29228
+ onBack: o,
29229
+ className: l
29226
29230
  };
29227
- return zi(o) ? /* @__PURE__ */ p.jsx(IM, { device: o, ...l }) : Ym(o) ? /* @__PURE__ */ p.jsx(p6, { device: o, ...l }) : null;
29231
+ return zi(c) ? /* @__PURE__ */ p.jsx(IM, { device: c, ...a }) : Ym(c) ? /* @__PURE__ */ p.jsx(p6, { device: c, ...a }) : null;
29228
29232
  }
29229
29233
  const m6 = xn(v2);
29230
29234
  function v2({