@chatsystem/client 2.0.1 → 2.0.7
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 +29 -0
- package/dist/index.cjs +179 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6935 -6595
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -178,6 +178,18 @@ inside that boundary. A custom `cssHref` can also provide the widget stylesheet.
|
|
|
178
178
|
| `.chatsystem-widget-window` | Launcher window only; owns viewport positioning |
|
|
179
179
|
| `.chatsystem-widget-surface` | Clips window contents and inherits its background and corners |
|
|
180
180
|
| `.launcher` | Floating launcher button |
|
|
181
|
+
| `.chatsystem-header` | Launcher header; contains the existing `.chatSystem-widgetLogo` and action group |
|
|
182
|
+
| `.chatsystem-header__actions` | Menu and close buttons in a shared flex row; customize spacing with `gap` |
|
|
183
|
+
| `.chatsystem-header__menu` | Discussion menu wrapper inside the header |
|
|
184
|
+
| `.chatsystem-close-button` | Header close button |
|
|
185
|
+
| `.chatbox-input-wrapper` | Existing conversation input area |
|
|
186
|
+
| `.chatsystem-composer` | Text input and actions in a shared flex row |
|
|
187
|
+
| `.chatsystem-composer__input` | Textarea; customize padding, border and maximum height |
|
|
188
|
+
| `.chatsystem-composer__actions` | Mic, Send or Stop action group; customize its `gap` and padding |
|
|
189
|
+
| `.chatsystem-mic-button`, `.chatsystem-paperplane-button`, `.chatsystem-stop-button` | Existing action button selectors |
|
|
190
|
+
| `.chatsystem-powered-by-inline`, `.chatsystem-powered-by-mobile`, `.chatsystem-powered-by-widget-badge` | Existing branding placement selectors; presentation defaults can be overridden |
|
|
191
|
+
| `.chatsystem-powered-by__link` | Branding link |
|
|
192
|
+
| `.chatsystem-scroll-to-bottom` | Recent-messages button, positioned relative to the messages' lower edge |
|
|
181
193
|
| `.chatsystem-interactive-widget` | Form panel inside the scrolling conversation |
|
|
182
194
|
|
|
183
195
|
For example, these Agent rules move the launcher and its window to the left:
|
|
@@ -192,6 +204,23 @@ document flow. Interactive forms stay in the message flow and scroll with it;
|
|
|
192
204
|
they do not create a floating overlay. Defaults remain overridable in both the
|
|
193
205
|
constructable stylesheet and style-tag fallback paths.
|
|
194
206
|
|
|
207
|
+
Header actions share normal flex layout, so their hit targets remain separated
|
|
208
|
+
when the host document changes its root font size. The default action gap is
|
|
209
|
+
8px and can be overridden, for example `.chatsystem-header__actions { gap: 12px; }`.
|
|
210
|
+
The widget does not change the host page's root font size.
|
|
211
|
+
|
|
212
|
+
The composer also uses normal flow, so its buttons cannot cover the text area
|
|
213
|
+
when the host changes rem sizing. Long drafts scroll within a default maximum
|
|
214
|
+
height of `min(160px, 25dvh)`; customize `max-height` on
|
|
215
|
+
`.chatsystem-composer__input` when needed. Only its measured auto-grow height is
|
|
216
|
+
set dynamically; borders, padding and width remain CSS-overridable.
|
|
217
|
+
|
|
218
|
+
On desktop, the window height is bounded by the available viewport. Set
|
|
219
|
+
`--chatsystem-widget-bottom` on `.chatsystem-widget-window` to customize its
|
|
220
|
+
bottom offset together with that bound. Existing `.chatBox` positioning rules
|
|
221
|
+
still apply. A custom `cssHref` replaces the bundled base stylesheet: keep that
|
|
222
|
+
stylesheet compatible with the client version you deploy.
|
|
223
|
+
|
|
195
224
|
## Completed AI answers per discussion
|
|
196
225
|
|
|
197
226
|
The API controls the discussion allowance through
|