@seamapi/react 4.13.1 → 4.13.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/4.13.1/dist/elements.js"
90
+ src="https://react.seam.co/v/4.13.2/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/4.13.1/dist/index.min.css"
218
+ href="https://react.seam.co/v/4.13.2/dist/index.min.css"
219
219
  />
220
220
  ```
221
221
 
package/dist/elements.js CHANGED
@@ -17494,7 +17494,7 @@ const _k = "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;60
17494
17494
  const t = globalThis.document.createElement("link");
17495
17495
  t.rel = "stylesheet", t.type = "text/css", t.href = _k, globalThis.document.head.appendChild(t);
17496
17496
  }, [n]);
17497
- }, ix = "4.13.1", lj = "https://react.seam.co", cj = ({
17497
+ }, ix = "4.13.2", lj = "https://react.seam.co", cj = ({
17498
17498
  disabled: n = !1,
17499
17499
  unminified: e = !1
17500
17500
  }) => {
@@ -29074,9 +29074,7 @@ function aI({
29074
29074
  var E;
29075
29075
  const [m, g] = Du(), { accessCodes: y } = w3({
29076
29076
  device_id: n.device_id
29077
- }), [w, k] = A.useState(!1), [v, T] = A.useState("success"), C = y == null ? void 0 : y.length;
29078
- if (y == null)
29079
- return null;
29077
+ }), [w, k] = A.useState(!1), [v, T] = A.useState("success"), C = (y == null ? void 0 : y.length) ?? 0;
29080
29078
  if (m)
29081
29079
  return /* @__PURE__ */ u.jsx(
29082
29080
  zN,
@@ -29158,15 +29156,17 @@ function aI({
29158
29156
  /* @__PURE__ */ u.jsx("div", { className: "seam-box", children: /* @__PURE__ */ u.jsxs(
29159
29157
  "div",
29160
29158
  {
29161
- className: "seam-content seam-access-codes",
29162
- onClick: g,
29159
+ className: Se("seam-content seam-access-codes", {
29160
+ disabled: y == null
29161
+ }),
29162
+ onClick: y != null ? g : void 0,
29163
29163
  children: [
29164
29164
  /* @__PURE__ */ u.jsxs("span", { className: "seam-value", children: [
29165
- C,
29165
+ y != null ? C : "–",
29166
29166
  " ",
29167
29167
  Go.accessCodes
29168
29168
  ] }),
29169
- /* @__PURE__ */ u.jsx(Bp, {})
29169
+ y != null && /* @__PURE__ */ u.jsx(Bp, {})
29170
29170
  ]
29171
29171
  }
29172
29172
  ) }),