@8wave/ai-elements 0.97.0-beta.3 → 0.98.0-beta.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 +1 -0
- package/dist/ai-elements.es.js +6 -0
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/apps/web-component/src/components/FloatingChatWidget.ce.d.ts +6 -0
- package/dist-vue/apps/web-component/src/lib.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/McpServer.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -136,6 +136,7 @@ widget.setAttribute('external-token', jwt) // Single session created
|
|
|
136
136
|
| `external-token` | `string` | ❌ | — | Pre-existing auth token. **Reactive** — can be set or changed at any time. When set, the widget authenticates with this token instead of anonymous sign-in. |
|
|
137
137
|
| `await-external-token` | `boolean` | ❌ | `false` | When present, the widget waits for `external-token` instead of signing in anonymously. Use when the token is fetched asynchronously after mount. |
|
|
138
138
|
| `floating-button-position` | `'left' \| 'right'` | ❌ | `'right'` | Position of the floating toggle button on the screen. |
|
|
139
|
+
| `system-theme` | `'light' \| 'dark'` | ❌ | OS `prefers-color-scheme` | Force the chat color scheme instead of following the OS preference. Reactive — update it when the host app's theme changes. |
|
|
139
140
|
| `custom-css` | `string` | ❌ | — | Raw CSS string injected into the shadow root to override default styles. |
|
|
140
141
|
|
|
141
142
|
### `<embedded-chat-widget>`
|
package/dist/ai-elements.es.js
CHANGED
|
@@ -20447,6 +20447,10 @@ var VD = {
|
|
|
20447
20447
|
cookieName: {
|
|
20448
20448
|
default: void 0,
|
|
20449
20449
|
type: String
|
|
20450
|
+
},
|
|
20451
|
+
systemTheme: {
|
|
20452
|
+
default: void 0,
|
|
20453
|
+
type: String
|
|
20450
20454
|
}
|
|
20451
20455
|
},
|
|
20452
20456
|
setup(e, { expose: t }) {
|
|
@@ -20612,6 +20616,7 @@ var VD = {
|
|
|
20612
20616
|
"agent-interface": F(oe).interface,
|
|
20613
20617
|
"agent-file-upload": F(oe).capabilities?.fileUpload,
|
|
20614
20618
|
headers: F(p),
|
|
20619
|
+
"system-theme": e.systemTheme,
|
|
20615
20620
|
actions: [
|
|
20616
20621
|
"upvote",
|
|
20617
20622
|
"downvote",
|
|
@@ -20659,6 +20664,7 @@ var VD = {
|
|
|
20659
20664
|
"agent-interface",
|
|
20660
20665
|
"agent-file-upload",
|
|
20661
20666
|
"headers",
|
|
20667
|
+
"system-theme",
|
|
20662
20668
|
"external-context"
|
|
20663
20669
|
])) : I("", !0)]),
|
|
20664
20670
|
_: 1
|