@convai/web-widget 0.1.1 → 0.1.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 +11 -11
- package/package.json +1 -1
- package/runtime.js +2105 -2051
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.2/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.2/v1.js" async></script>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
```jsx
|
|
@@ -96,23 +96,23 @@ recipes; the complete attribute and event reference; a React and Next.js usage
|
|
|
96
96
|
guide; theming and `::part()` hooks; CSP requirements; and guidance on
|
|
97
97
|
`end-user-id` and Long-Term Memory.
|
|
98
98
|
|
|
99
|
-
##
|
|
99
|
+
## Versioning
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
and both give you a prerelease. **Pin the exact version anyway**: `latest`
|
|
105
|
-
moves as each beta ships, and interfaces may change between them.
|
|
101
|
+
`0.1.2` is a stable release: `npm install @convai/web-widget` and
|
|
102
|
+
jsDelivr's unversioned URL both resolve it. Pin the exact version anyway for
|
|
103
|
+
reproducible deploys —
|
|
106
104
|
|
|
107
105
|
```html
|
|
108
|
-
<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.2/v1.js" async></script>
|
|
109
107
|
```
|
|
110
108
|
|
|
111
109
|
```bash
|
|
112
|
-
npm install @convai/web-widget@0.1.
|
|
110
|
+
npm install @convai/web-widget@0.1.2 # only needed to self-host the two files
|
|
113
111
|
```
|
|
114
112
|
|
|
115
|
-
|
|
113
|
+
This package is early, and it bundles a prerelease of `@convai/web-sdk`. The
|
|
114
|
+
bundle is self-contained, so you install nothing from that — but expect the
|
|
115
|
+
surface to move before 1.0.
|
|
116
116
|
|
|
117
117
|
## Browser support
|
|
118
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convai/web-widget",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.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": {
|