@convai/web-widget 0.2.0-beta.0 → 0.2.0
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/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.2.0
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.2.0/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.2.0
|
|
26
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.2.0/v1.js" async></script>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
```jsx
|
|
@@ -142,16 +142,16 @@ guide; theming and `::part()` hooks; CSP requirements; and guidance on
|
|
|
142
142
|
|
|
143
143
|
## Versioning
|
|
144
144
|
|
|
145
|
-
`0.2.0
|
|
145
|
+
`0.2.0` is a stable release: `npm install @convai/web-widget` and
|
|
146
146
|
jsDelivr's unversioned URL both resolve it. Pin the exact version anyway for
|
|
147
147
|
reproducible deploys —
|
|
148
148
|
|
|
149
149
|
```html
|
|
150
|
-
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.2.0
|
|
150
|
+
<script src="https://cdn.jsdelivr.net/npm/@convai/web-widget@0.2.0/v1.js" async></script>
|
|
151
151
|
```
|
|
152
152
|
|
|
153
153
|
```bash
|
|
154
|
-
npm install @convai/web-widget@0.2.0
|
|
154
|
+
npm install @convai/web-widget@0.2.0 # only needed to self-host the two files
|
|
155
155
|
```
|
|
156
156
|
|
|
157
157
|
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.2.0
|
|
3
|
+
"version": "0.2.0",
|
|
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": {
|