@seamapi/react 2.8.5 → 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 +2 -2
- package/dist/elements.js +14 -10
- package/dist/elements.js.map +1 -1
- package/lib/seam/components/DeviceDetails/DeviceDetails.d.ts +1 -1
- package/lib/seam/components/DeviceDetails/DeviceDetails.js +3 -1
- package/lib/seam/components/DeviceDetails/DeviceDetails.js.map +1 -1
- package/lib/seam/components/DeviceDetails/LockDeviceDetails.js +2 -1
- package/lib/seam/components/DeviceDetails/LockDeviceDetails.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/DeviceDetails.tsx +4 -0
- package/src/lib/seam/components/DeviceDetails/LockDeviceDetails.tsx +11 -10
- 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.8.
|
|
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.
|
|
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.
|
|
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({
|
|
@@ -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
|
-
|
|
29212
|
-
|
|
29211
|
+
disableCreateAccessCode: i = !1,
|
|
29212
|
+
disableEditAccessCode: s = !1,
|
|
29213
|
+
onBack: o,
|
|
29214
|
+
className: l
|
|
29213
29215
|
}) {
|
|
29214
29216
|
En("DeviceDetails");
|
|
29215
|
-
const { device:
|
|
29217
|
+
const { device: c } = ki({
|
|
29216
29218
|
device_id: e
|
|
29217
29219
|
});
|
|
29218
|
-
if (
|
|
29220
|
+
if (c == null)
|
|
29219
29221
|
return null;
|
|
29220
|
-
const
|
|
29222
|
+
const a = {
|
|
29221
29223
|
disableLockUnlock: t,
|
|
29222
29224
|
disableDeleteAccessCode: n,
|
|
29223
29225
|
disableResourceIds: r,
|
|
29224
|
-
|
|
29225
|
-
|
|
29226
|
+
disableCreateAccessCode: i,
|
|
29227
|
+
disableEditAccessCode: s,
|
|
29228
|
+
onBack: o,
|
|
29229
|
+
className: l
|
|
29226
29230
|
};
|
|
29227
|
-
return zi(
|
|
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({
|