@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.
- package/README.md +7 -3
- package/dist/elements.js +1800 -1751
- package/dist/elements.js.map +1 -1
- package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.d.ts +5 -0
- package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.js +22 -0
- package/lib/seam/components/ConnectAccountButton/ConnectAccountButton.js.map +1 -0
- package/lib/seam/components/index.d.ts +1 -0
- package/lib/seam/components/index.js +1 -0
- package/lib/seam/components/index.js.map +1 -1
- package/lib/seam/connect-webviews/use-create-connect-webview.d.ts +7 -0
- package/lib/seam/connect-webviews/use-create-connect-webview.js +19 -0
- package/lib/seam/connect-webviews/use-create-connect-webview.js.map +1 -0
- package/lib/seam/devices/use-toggle-lock.js.map +1 -1
- package/lib/seam/index.d.ts +1 -0
- package/lib/seam/index.js +1 -0
- package/lib/seam/index.js.map +1 -1
- package/lib/seam/use-seam-styles.js +1 -1
- package/lib/seam/use-seam-styles.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/ConnectAccountButton/ConnectAccountButton.element.ts +11 -0
- package/src/lib/seam/components/ConnectAccountButton/ConnectAccountButton.tsx +40 -0
- package/src/lib/seam/components/elements.ts +1 -0
- package/src/lib/seam/components/index.ts +1 -0
- package/src/lib/seam/connect-webviews/use-create-connect-webview.ts +46 -0
- package/src/lib/seam/devices/use-toggle-lock.ts +1 -1
- package/src/lib/seam/index.ts +1 -0
- package/src/lib/seam/use-seam-styles.ts +1 -1
- 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 {
|
|
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.
|
|
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.
|
|
111
|
+
href="https://react.seam.co/v/1.11.1/dist/index.min.css"
|
|
108
112
|
/>
|
|
109
113
|
```
|
|
110
114
|
|