beeper-inbox-react 0.1.1 → 0.1.2
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 +8 -8
- package/package.json +16 -8
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# beeper-inbox-react
|
|
2
2
|
|
|
3
3
|
React embeddable inbox widget for Beeper.
|
|
4
4
|
|
|
@@ -39,15 +39,15 @@ That call **mints** the short-lived `x-beeper-session-token`. It runs when there
|
|
|
39
39
|
## Install
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
pnpm add
|
|
42
|
+
pnpm add beeper-inbox-react beeper-sdk
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## Host backend session mint
|
|
46
46
|
|
|
47
|
-
Use
|
|
47
|
+
Use `beeper-sdk` on your backend (never browser):
|
|
48
48
|
|
|
49
49
|
```ts
|
|
50
|
-
import { BeeperClient } from "
|
|
50
|
+
import { BeeperClient } from "beeper-sdk";
|
|
51
51
|
|
|
52
52
|
const beeper = new BeeperClient({
|
|
53
53
|
baseUrl: process.env.BEEPER_BASE_URL!,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
BeeperInboxProvider,
|
|
79
79
|
BeeperInboxBell,
|
|
80
80
|
BeeperInboxPanel,
|
|
81
|
-
} from "
|
|
81
|
+
} from "beeper-inbox-react";
|
|
82
82
|
|
|
83
83
|
function App() {
|
|
84
84
|
return (
|
|
@@ -187,9 +187,9 @@ The widget calls:
|
|
|
187
187
|
## Package release checklist
|
|
188
188
|
|
|
189
189
|
```bash
|
|
190
|
-
pnpm -F
|
|
191
|
-
pnpm -F
|
|
192
|
-
pnpm -F
|
|
190
|
+
pnpm -F beeper-inbox-react run clean
|
|
191
|
+
pnpm -F beeper-inbox-react run build
|
|
192
|
+
pnpm -F beeper-inbox-react run check-types
|
|
193
193
|
```
|
|
194
194
|
|
|
195
195
|
Then publish from `packages/inbox-react` using your normal npm release workflow.
|
package/package.json
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beeper-inbox-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./
|
|
7
|
-
"module": "./
|
|
8
|
-
"types": "./
|
|
6
|
+
"main": "./src/index.tsx",
|
|
7
|
+
"module": "./src/index.tsx",
|
|
8
|
+
"types": "./src/index.tsx",
|
|
9
9
|
"exports": {
|
|
10
|
-
".":
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
".": "./src/index.tsx"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
14
22
|
}
|
|
15
23
|
},
|
|
16
24
|
"files": [
|