@seamapi/react 4.13.1 → 4.13.3
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 +2 -2
- package/dist/elements.js +9 -9
- package/dist/elements.js.map +1 -1
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.min.css.map +1 -1
- package/lib/seam/components/DeviceDetails/LockDeviceDetails.js +4 -5
- package/lib/seam/components/DeviceDetails/LockDeviceDetails.js.map +1 -1
- package/lib/seam/locks/lock-device.js +2 -2
- package/lib/seam/locks/lock-device.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/DeviceDetails/LockDeviceDetails.tsx +7 -9
- package/src/lib/seam/locks/lock-device.ts +2 -2
- package/src/lib/version.ts +1 -1
- package/src/styles/_device-details.scss +5 -0
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.
|
|
90
|
+
src="https://react.seam.co/v/4.13.3/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.
|
|
218
|
+
href="https://react.seam.co/v/4.13.3/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.
|
|
17497
|
+
}, ix = "4.13.3", lj = "https://react.seam.co", cj = ({
|
|
17498
17498
|
disabled: n = !1,
|
|
17499
17499
|
unminified: e = !1
|
|
17500
17500
|
}) => {
|
|
@@ -23380,7 +23380,7 @@ function Wl(n) {
|
|
|
23380
23380
|
});
|
|
23381
23381
|
return { ...s, device: t };
|
|
23382
23382
|
}
|
|
23383
|
-
const qp = (n) => "locked" in n.properties || "can_remotely_lock" in n || "can_remotely_unlock" in n || "
|
|
23383
|
+
const qp = (n) => "locked" in n.properties || "can_remotely_lock" in n || "can_remotely_unlock" in n || "can_program_online_access_codes" in n || "can_program_offline_access_codes" in n || n.properties.online_access_codes_enabled === !0 || n.properties.offline_access_codes_enabled === !0;
|
|
23384
23384
|
function g3(n = {}) {
|
|
23385
23385
|
const { client: e } = lt(), t = It();
|
|
23386
23386
|
return Kn({
|
|
@@ -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
|
-
|
|
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
|
) }),
|