@convai/web-widget 0.3.0 → 0.3.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 +5 -5
- package/index.js +1 -1
- package/package.json +1 -1
- package/runtime.js +1181 -1126
- package/ui/react/hooks/useCharacterInfo.d.ts +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ production** — [step two](#before-you-ship) moves it to your server.
|
|
|
13
13
|
|
|
14
14
|
```html
|
|
15
15
|
<convai-widget character-id="YOUR_CHARACTER_ID" api-key="YOUR_API_KEY"></convai-widget>
|
|
16
|
-
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.3.
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.3.2/v1.js" async></script>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
A launcher bubble appears in the bottom-right corner. Click it: the runtime
|
|
@@ -26,7 +26,7 @@ The script tag goes in your HTML shell; the element is ordinary JSX.
|
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
28
|
<!-- index.html -->
|
|
29
|
-
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.3.
|
|
29
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.3.2/v1.js" async></script>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
```jsx
|
|
@@ -167,16 +167,16 @@ guide; theming and `::part()` hooks; CSP requirements; and guidance on
|
|
|
167
167
|
|
|
168
168
|
## Versioning
|
|
169
169
|
|
|
170
|
-
`0.3.
|
|
170
|
+
`0.3.2` is a stable release: `npm install @convai/web-widget` and
|
|
171
171
|
jsDelivr's unversioned URL both resolve it. Pin the exact version anyway for
|
|
172
172
|
reproducible deploys —
|
|
173
173
|
|
|
174
174
|
```html
|
|
175
|
-
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.3.
|
|
175
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.3.2/v1.js" async></script>
|
|
176
176
|
```
|
|
177
177
|
|
|
178
178
|
```bash
|
|
179
|
-
npm install @convai/web-widget@0.3.
|
|
179
|
+
npm install @convai/web-widget@0.3.2 # only needed to self-host the two files
|
|
180
180
|
```
|
|
181
181
|
|
|
182
182
|
This package is early, and it bundles a prerelease of `@convai/web-sdk`. The
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convai/web-widget",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Two-line script-tag embed for the Convai chat widget. A <convai-widget> custom element with a closed shadow root and a lazily loaded runtime.",
|
|
5
5
|
"homepage": "https://docs.convai.com/embed",
|
|
6
6
|
"repository": {
|