@convokitapp/vue-ui 0.1.2 → 0.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0
4
+
5
+ - Require ConvoKit JavaScript SDK 0.2.x for private Realtime channels and publishable-key discovery.
6
+ - Preserve the existing Vue component and configuration API.
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.2",
3
+ "version": "0.2.0",
4
4
  "description": "Accessible, SDK-backed Vue 3 chat components for ConvoKit.",
5
5
  "keywords": [
6
6
  "convokit",
@@ -41,6 +41,7 @@
41
41
  "files": [
42
42
  "dist",
43
43
  "README.md",
44
+ "CHANGELOG.md",
44
45
  "PARITY.md",
45
46
  "LICENSE"
46
47
  ],
@@ -70,12 +71,12 @@
70
71
  "reka-ui": "^2.10.4"
71
72
  },
72
73
  "peerDependencies": {
73
- "@convokitapp/sdk": ">=0.1.1 <1.0.0",
74
+ "@convokitapp/sdk": ">=0.2.0 <0.3.0",
74
75
  "vue": ">=3.4.0 <4.0.0"
75
76
  },
76
77
  "devDependencies": {
77
78
  "@arethetypeswrong/cli": "^0.18.2",
78
- "@convokitapp/sdk": "^0.1.1",
79
+ "@convokitapp/sdk": "^0.2.0",
79
80
  "@types/node": "^24.3.0",
80
81
  "@vitest/coverage-v8": "^5.0.0",
81
82
  "@vue/test-utils": "^2.5.0",