@convai/web-widget 0.1.3 → 0.1.4
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/package.json +1 -1
- package/runtime.js +11341 -6506
- package/v1.js +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ production** — [step two](#before-you-ship) moves it to your server.
|
|
|
10
10
|
|
|
11
11
|
```html
|
|
12
12
|
<convai-widget character-id="YOUR_CHARACTER_ID" api-key="YOUR_API_KEY"></convai-widget>
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.4/v1.js" async></script>
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
A launcher bubble appears in the bottom-right corner. Click it: the runtime
|
|
@@ -23,7 +23,7 @@ The script tag goes in your HTML shell; the element is ordinary JSX.
|
|
|
23
23
|
|
|
24
24
|
```html
|
|
25
25
|
<!-- index.html -->
|
|
26
|
-
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.
|
|
26
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.4/v1.js" async></script>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
```jsx
|
|
@@ -98,16 +98,16 @@ guide; theming and `::part()` hooks; CSP requirements; and guidance on
|
|
|
98
98
|
|
|
99
99
|
## Versioning
|
|
100
100
|
|
|
101
|
-
`0.1.
|
|
101
|
+
`0.1.4` is a stable release: `npm install @convai/web-widget` and
|
|
102
102
|
jsDelivr's unversioned URL both resolve it. Pin the exact version anyway for
|
|
103
103
|
reproducible deploys —
|
|
104
104
|
|
|
105
105
|
```html
|
|
106
|
-
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.
|
|
106
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.4/v1.js" async></script>
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
```bash
|
|
110
|
-
npm install @convai/web-widget@0.1.
|
|
110
|
+
npm install @convai/web-widget@0.1.4 # only needed to self-host the two files
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
This package is early, and it bundles a prerelease of `@convai/web-sdk`. The
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convai/web-widget",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
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": {
|