Skip to content

Commit 4e4962d

Browse files
authored
Merge pull request #645 from seamapi/beta
Version 3
2 parents 3479880 + f6389d7 commit 4e4962d

File tree

106 files changed

+5309
-4051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+5309
-4051
lines changed

.storybook/seed-fake.js

+13
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export const seedFake = (db) => {
5353
name: 'Front Door',
5454
workspace_id: ws2.workspace_id,
5555
created_at: '2023-05-16T10:17:18.000',
56+
can_remotely_unlock: true,
57+
can_remotely_lock: true,
58+
can_program_online_access_codes: true,
5659
properties: {
5760
locked: false,
5861
online: false,
@@ -208,6 +211,9 @@ export const seedFake = (db) => {
208211
name: 'Back Door',
209212
workspace_id: ws2.workspace_id,
210213
created_at: '2023-05-24T22:15:14.000',
214+
can_remotely_unlock: true,
215+
can_remotely_lock: true,
216+
can_program_online_access_codes: true,
211217
properties: {
212218
locked: false,
213219
online: false,
@@ -251,6 +257,9 @@ export const seedFake = (db) => {
251257
name: 'Garage',
252258
workspace_id: ws2.workspace_id,
253259
created_at: '2023-05-25T02:05:04.000',
260+
can_remotely_unlock: true,
261+
can_remotely_lock: true,
262+
can_program_online_access_codes: true,
254263
properties: {
255264
locked: false,
256265
online: true,
@@ -293,6 +302,9 @@ export const seedFake = (db) => {
293302
name: 'Back Door',
294303
workspace_id: ws2.workspace_id,
295304
created_at: '2023-05-24T22:15:14.000',
305+
can_remotely_unlock: true,
306+
can_remotely_lock: true,
307+
can_program_online_access_codes: true,
296308
properties: {
297309
locked: true,
298310
online: true,
@@ -482,6 +494,7 @@ export const seedFake = (db) => {
482494
},
483495
image_url:
484496
'https://connect.getseam.com/assets/images/devices/noiseaware_indoor_sensor_front.png',
497+
noise_level_decibels: 60,
485498
noiseaware_metadata: {
486499
device_model: 'indoor',
487500
noise_level_nrs: 1,

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function App() {
8787
<seam-device-table publishable-key="your_publishable_key"></seam-device-table>
8888
<script
8989
type="module"
90-
src="https://react.seam.co/v/2.20.0/dist/elements.js"
90+
src="https://react.seam.co/v/3.0.0-beta.1/dist/elements.js"
9191
></script>
9292
</body>
9393
```
@@ -169,9 +169,9 @@ export function App() {
169169
}
170170

171171
function Devices() {
172-
const { devices, isLoading, isError, error } = useDevices()
172+
const { devices, isPending, isError, error } = useDevices()
173173

174-
if (isLoading) {
174+
if (isPending) {
175175
return <p>Loading</p>
176176
}
177177

@@ -215,7 +215,7 @@ or place the following in the `<head>` tag:
215215
```html
216216
<link
217217
rel="stylesheet"
218-
href="https://react.seam.co/v/2.20.0/dist/index.min.css"
218+
href="https://react.seam.co/v/3.0.0-beta.1/dist/index.min.css"
219219
/>
220220
```
221221

0 commit comments

Comments
 (0)