@trycourier/courier-react 8.0.6-beta → 8.0.7-beta
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 +6 -4
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1035 -456
- package/dist/index.mjs.map +1 -1
- package/dist/legacy-O6WN3SMx.mjs +18 -0
- package/dist/legacy-O6WN3SMx.mjs.map +1 -0
- package/dist/renderer/legacy.d.ts +4 -0
- package/dist/renderer/modern.d.ts +4 -0
- package/dist/renderer/renderer.d.ts +5 -0
- package/dist/utils/utils.d.ts +1 -4
- package/package.json +10 -5
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ React UI components used to create an Inbox
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm i @trycourier/courier-react@8.0.
|
|
8
|
+
npm i @trycourier/courier-react@8.0.6-beta
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -35,7 +35,7 @@ function App() {
|
|
|
35
35
|
}}
|
|
36
36
|
onMessageLongPress={(props) => {
|
|
37
37
|
console.log(props);
|
|
38
|
-
}}
|
|
38
|
+
}}
|
|
39
39
|
/>
|
|
40
40
|
|
|
41
41
|
// or
|
|
@@ -49,7 +49,7 @@ function App() {
|
|
|
49
49
|
}}
|
|
50
50
|
onMessageLongPress={(props) => {
|
|
51
51
|
console.log(props);
|
|
52
|
-
}}
|
|
52
|
+
}}
|
|
53
53
|
/>
|
|
54
54
|
);
|
|
55
55
|
|
|
@@ -59,6 +59,7 @@ export default App;
|
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
## Theme Customization
|
|
62
|
+
|
|
62
63
|
This allows you to style the prebuilt `<CourierInbox/>`. Tons of options live inside `CourierInboxTheme`. Command click in to see all options!
|
|
63
64
|
|
|
64
65
|
```ts
|
|
@@ -117,6 +118,7 @@ const theme: CourierInboxTheme = {
|
|
|
117
118
|
```
|
|
118
119
|
|
|
119
120
|
## Fully Custom UI Elements
|
|
121
|
+
|
|
120
122
|
You can change any element in the Inbox to be custom. Here are the available options.
|
|
121
123
|
|
|
122
124
|
```ts
|
|
@@ -166,4 +168,4 @@ You can change any element in the Inbox to be custom. Here are the available opt
|
|
|
166
168
|
return <div>...</div>
|
|
167
169
|
}}
|
|
168
170
|
/>
|
|
169
|
-
```
|
|
171
|
+
```
|