@convokitapp/vue-ui 0.1.1 → 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 +8 -1
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +97 -98
- package/dist/index.css.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,6 +6,11 @@ components ship accessible defaults, realtime state, media and read receipts,
|
|
|
6
6
|
while named slots, CSS variables, and controlled views keep the host app in
|
|
7
7
|
control.
|
|
8
8
|
|
|
9
|
+
The default skin follows the same neutral, shadcn-style web vocabulary as the
|
|
10
|
+
React package: system typography, separated rows, subtle borders, compact
|
|
11
|
+
actions, and restrained radii. It remains framework-CSS independent and does
|
|
12
|
+
not require Tailwind in the host application.
|
|
13
|
+
|
|
9
14
|
## Install
|
|
10
15
|
|
|
11
16
|
```bash
|
|
@@ -23,7 +28,6 @@ import { Conversation, createConvoKitUiClient } from '@convokitapp/vue-ui'
|
|
|
23
28
|
import '@convokitapp/vue-ui/styles.css'
|
|
24
29
|
|
|
25
30
|
const sdk = new ConvoKitClient({
|
|
26
|
-
backendUrl: import.meta.env.VITE_CONVOKIT_BACKEND_URL,
|
|
27
31
|
clientId: import.meta.env.VITE_CONVOKIT_CLIENT_ID,
|
|
28
32
|
tokenProvider: async (appUserId) => {
|
|
29
33
|
const response = await fetch(import.meta.env.VITE_CONVOKIT_TOKEN_ENDPOINT, {
|
|
@@ -47,6 +51,9 @@ const client = createConvoKitUiClient(sdk)
|
|
|
47
51
|
The client secret belongs only in your token backend. Never put it in Vue,
|
|
48
52
|
Vite environment variables, or a shipped browser bundle.
|
|
49
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
|
+
|
|
50
57
|
## Controlled components and slots
|
|
51
58
|
|
|
52
59
|
`ConversationListView`, `MessageListView`, and `ConversationView` accept host
|
package/dist/index.cjs
CHANGED
|
@@ -1324,19 +1324,19 @@ var ConversationList = (0, import_vue9.defineComponent)({
|
|
|
1324
1324
|
// src/theme.ts
|
|
1325
1325
|
var import_vue10 = require("vue");
|
|
1326
1326
|
var defaultConvoKitTheme = {
|
|
1327
|
-
background: "#
|
|
1327
|
+
background: "#fafafa",
|
|
1328
1328
|
surface: "#ffffff",
|
|
1329
|
-
primary: "#
|
|
1330
|
-
text: "#
|
|
1331
|
-
mutedText: "#
|
|
1332
|
-
border: "#
|
|
1333
|
-
error: "#
|
|
1334
|
-
incomingBubble: "#
|
|
1335
|
-
outgoingBubble: "#
|
|
1336
|
-
outgoingText: "#
|
|
1337
|
-
radius: "
|
|
1338
|
-
avatarSize: "
|
|
1339
|
-
fontFamily: '
|
|
1329
|
+
primary: "#18181b",
|
|
1330
|
+
text: "#09090b",
|
|
1331
|
+
mutedText: "#71717a",
|
|
1332
|
+
border: "#e4e4e7",
|
|
1333
|
+
error: "#dc2626",
|
|
1334
|
+
incomingBubble: "#f4f4f5",
|
|
1335
|
+
outgoingBubble: "#18181b",
|
|
1336
|
+
outgoingText: "#fafafa",
|
|
1337
|
+
radius: "10px",
|
|
1338
|
+
avatarSize: "40px",
|
|
1339
|
+
fontFamily: 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'
|
|
1340
1340
|
};
|
|
1341
1341
|
var themeKey = /* @__PURE__ */ Symbol("ConvoKitTheme");
|
|
1342
1342
|
var defaultThemeRef = (0, import_vue10.computed)(() => defaultConvoKitTheme);
|