@convai/web-widget 0.1.1-beta.2 → 0.1.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.
- package/README.md +4 -4
- package/package.json +1 -1
- package/runtime.js +1792 -1773
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.1
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.1/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.1
|
|
26
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.1/v1.js" async></script>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
```jsx
|
|
@@ -105,11 +105,11 @@ and both give you a prerelease. **Pin the exact version anyway**: `latest`
|
|
|
105
105
|
moves as each beta ships, and interfaces may change between them.
|
|
106
106
|
|
|
107
107
|
```html
|
|
108
|
-
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.1
|
|
108
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.1.1/v1.js" async></script>
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
npm install @convai/web-widget@0.1.1
|
|
112
|
+
npm install @convai/web-widget@0.1.1 # for self-hosting the two files
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
Interfaces may change before a stable release.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convai/web-widget",
|
|
3
|
-
"version": "0.1.1
|
|
3
|
+
"version": "0.1.1",
|
|
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": {
|