@clivly/chat-widget 0.7.0 → 0.7.1

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -190,14 +190,14 @@ The `browser` and `browser-mount` outputs are built as standalone entrypoints.
190
190
  ## Host-side pairing
191
191
 
192
192
  The host-side session handler is the bridge between a backend holding
193
- `CLIVLY_API_KEY` and the widget's `sessionUrl`. Import it from `clivly/sdk`,
193
+ `CLIVLY_SECRET_KEY` and the widget's `sessionUrl`. Import it from `clivly/sdk`,
194
194
  which is available from the `clivly` package `clivly init` already installs:
195
195
 
196
196
  ```ts
197
197
  import { createChatSessionHandler } from "clivly/sdk";
198
198
 
199
199
  export const POST = createChatSessionHandler({
200
- apiKey: process.env.CLIVLY_API_KEY,
200
+ apiKey: process.env.CLIVLY_SECRET_KEY ?? process.env.CLIVLY_API_KEY,
201
201
  });
202
202
  ```
203
203
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clivly/chat-widget",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Clivly chat widget — embeddable React and script-tag entrypoints for Clivly conversations.",