@seamapi/react 1.11.0 → 1.12.0

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.
Files changed (30) hide show
  1. package/README.md +7 -3
  2. package/dist/elements.js +1800 -1751
  3. package/dist/elements.js.map +1 -1
  4. package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.d.ts +5 -0
  5. package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.js +22 -0
  6. package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.js.map +1 -0
  7. package/lib/seam/components/index.d.ts +1 -0
  8. package/lib/seam/components/index.js +1 -0
  9. package/lib/seam/components/index.js.map +1 -1
  10. package/lib/seam/connect-webviews/use-create-connect-webview.d.ts +7 -0
  11. package/lib/seam/connect-webviews/use-create-connect-webview.js +19 -0
  12. package/lib/seam/connect-webviews/use-create-connect-webview.js.map +1 -0
  13. package/lib/seam/devices/use-toggle-lock.js.map +1 -1
  14. package/lib/seam/index.d.ts +1 -0
  15. package/lib/seam/index.js +1 -0
  16. package/lib/seam/index.js.map +1 -1
  17. package/lib/seam/use-seam-styles.js +1 -1
  18. package/lib/seam/use-seam-styles.js.map +1 -1
  19. package/lib/version.d.ts +1 -1
  20. package/lib/version.js +1 -1
  21. package/package.json +1 -1
  22. package/src/lib/seam/components/ConnectAccountButton/ConnectAccountButton.element.ts +11 -0
  23. package/src/lib/seam/components/ConnectAccountButton/ConnectAccountButton.tsx +40 -0
  24. package/src/lib/seam/components/elements.ts +1 -0
  25. package/src/lib/seam/components/index.ts +1 -0
  26. package/src/lib/seam/connect-webviews/use-create-connect-webview.ts +46 -0
  27. package/src/lib/seam/devices/use-toggle-lock.ts +1 -1
  28. package/src/lib/seam/index.ts +1 -0
  29. package/src/lib/seam/use-seam-styles.ts +1 -1
  30. package/src/lib/version.ts +1 -1
package/README.md CHANGED
@@ -44,13 +44,14 @@ $ npm install @seamapi/react
44
44
  3. Drop in Seam Components.
45
45
 
46
46
  ```ts
47
- import { SeamProvider, DeviceTable } from '@seamapi/react'
47
+ import { ConnectAccountButton, DeviceTable, SeamProvider } from '@seamapi/react'
48
48
 
49
49
  export const App = () => {
50
50
  return (
51
51
  <SeamProvider publishableKey='your_publishable_key'>
52
52
  <main>
53
53
  <h1>My App</h1>
54
+ <ConnectAccountButton />
54
55
  <DeviceTable />
55
56
  </main>
56
57
  </SeamProvider>
@@ -69,10 +70,13 @@ export const App = () => {
69
70
 
70
71
  ```html
71
72
  <body>
73
+ <seam-connect-account-button
74
+ publishable-key="your_publishable_key"
75
+ ></seam-connect-account-button>
72
76
  <seam-device-table publishable-key="your_publishable_key"></seam-device-table>
73
77
  <script
74
78
  type="module"
75
- src="https://react.seam.co/v/1.8.0/dist/elements.js"
79
+ src="https://react.seam.co/v/1.11.1/dist/elements.js"
76
80
  ></script>
77
81
  </body>
78
82
  ```
@@ -104,7 +108,7 @@ or place the following in the `<head>` tag:
104
108
  ```html
105
109
  <link
106
110
  rel="stylesheet"
107
- href="https://react.seam.co/v/1.8.0/dist/index.min.css"
111
+ href="https://react.seam.co/v/1.11.1/dist/index.min.css"
108
112
  />
109
113
  ```
110
114