@convokitapp/vue-ui 0.1.2 → 0.1.3
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 +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -28,7 +28,6 @@ import { Conversation, createConvoKitUiClient } from '@convokitapp/vue-ui'
|
|
|
28
28
|
import '@convokitapp/vue-ui/styles.css'
|
|
29
29
|
|
|
30
30
|
const sdk = new ConvoKitClient({
|
|
31
|
-
backendUrl: import.meta.env.VITE_CONVOKIT_BACKEND_URL,
|
|
32
31
|
clientId: import.meta.env.VITE_CONVOKIT_CLIENT_ID,
|
|
33
32
|
tokenProvider: async (appUserId) => {
|
|
34
33
|
const response = await fetch(import.meta.env.VITE_CONVOKIT_TOKEN_ENDPOINT, {
|
|
@@ -52,6 +51,9 @@ const client = createConvoKitUiClient(sdk)
|
|
|
52
51
|
The client secret belongs only in your token backend. Never put it in Vue,
|
|
53
52
|
Vite environment variables, or a shipped browser bundle.
|
|
54
53
|
|
|
54
|
+
The core SDK uses ConvoKit's managed `https://api.convokit.app` endpoint. Set
|
|
55
|
+
`backendUrl` only for local testing or a self-hosted deployment.
|
|
56
|
+
|
|
55
57
|
## Controlled components and slots
|
|
56
58
|
|
|
57
59
|
`ConversationListView`, `MessageListView`, and `ConversationView` accept host
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convokitapp/vue-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Accessible, SDK-backed Vue 3 chat components for ConvoKit.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"convokit",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
78
|
-
"@convokitapp/sdk": "^0.1.
|
|
78
|
+
"@convokitapp/sdk": "^0.1.3",
|
|
79
79
|
"@types/node": "^24.3.0",
|
|
80
80
|
"@vitest/coverage-v8": "^5.0.0",
|
|
81
81
|
"@vue/test-utils": "^2.5.0",
|