@webless/agent 0.2.14 → 0.3.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 +26 -0
- package/dist/{chunk-6FNE65AR.js → chunk-MRSLWREA.js} +650 -251
- package/dist/chunk-MRSLWREA.js.map +1 -0
- package/dist/embed.cjs +722 -294
- package/dist/embed.cjs.map +1 -1
- package/dist/embed.css +199 -21
- package/dist/embed.css.map +1 -1
- package/dist/embed.d.cts +3 -31
- package/dist/embed.d.ts +3 -31
- package/dist/embed.js +33 -3
- package/dist/embed.js.map +1 -1
- package/dist/index.cjs +123 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +123 -12
- package/dist/index.js.map +1 -1
- package/dist/manifest-oc_3zCSC.d.cts +79 -0
- package/dist/manifest-oc_3zCSC.d.ts +79 -0
- package/dist/react.cjs +684 -304
- package/dist/react.cjs.map +1 -1
- package/dist/react.css +199 -21
- package/dist/react.css.map +1 -1
- package/dist/react.d.cts +12 -5
- package/dist/react.d.ts +12 -5
- package/dist/react.js +2 -19
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-6FNE65AR.js.map +0 -1
- package/dist/placement-CXW_83AF.d.cts +0 -25
- package/dist/placement-CXW_83AF.d.ts +0 -25
package/README.md
CHANGED
|
@@ -26,7 +26,33 @@ The exact URL is generated in the console when you build your bundle.
|
|
|
26
26
|
- Answers grounded in your published index
|
|
27
27
|
- Edge tab launcher (position configured in Agent Studio)
|
|
28
28
|
- Session continuity for returning visitors
|
|
29
|
+
- Page content shifts to make room for the desktop side rail (`pageShift`, default `true`)
|
|
29
30
|
|
|
31
|
+
## Embed manifest options
|
|
32
|
+
|
|
33
|
+
When building the agent IIFE bundle, the manifest supports:
|
|
34
|
+
|
|
35
|
+
| Field | Default | Description |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| `pageShift` | `true` | On desktop, apply `margin-right` to `html` when the side rail is open so page content reflows instead of sitting under the overlay. Disabled when collapsed, expanded modal, or mobile. |
|
|
38
|
+
|
|
39
|
+
Example:
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"customerId": "your_customer_id",
|
|
44
|
+
"indexId": "your_index_id",
|
|
45
|
+
"runtimeOrigin": "https://runtime.webless.ai",
|
|
46
|
+
"version": "published",
|
|
47
|
+
"pageShift": true
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Set `"pageShift": false` to keep the classic overlay behavior.
|
|
52
|
+
|
|
53
|
+
For React consumers, pass `pageShift={false}` to `<AgentWidget />`.
|
|
54
|
+
|
|
55
|
+
See `examples/agent.manifest.json` for a full manifest example.
|
|
30
56
|
|
|
31
57
|
## This npm package
|
|
32
58
|
|