@touchcastllc/napster-companion-api-dev 1.0.0-alpha.63 → 1.0.0-alpha.65
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 +40 -1
- package/lib/index.css +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.standalone.js +1 -1
- package/lib/types/index.d.ts +11 -0
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -266,6 +266,17 @@ export interface NapsterCompanionApiConfig {
|
|
|
266
266
|
* string; defaults to `document.body` when omitted.
|
|
267
267
|
*/
|
|
268
268
|
mountContainer?: HTMLElement | string | null;
|
|
269
|
+
/**
|
|
270
|
+
* Layout mode.
|
|
271
|
+
*
|
|
272
|
+
* - `"fixed"` (default): the avatar floats over the page as a corner widget,
|
|
273
|
+
* anchored to the viewport via `position`. This is the original behavior.
|
|
274
|
+
* - `"inline"`: the avatar renders inside `mountContainer` and fills it. Size
|
|
275
|
+
* and shape come from how you style that container; `position` is ignored.
|
|
276
|
+
* When the container has no explicit height, an internal 4:5 ratio is used
|
|
277
|
+
* so the avatar is never invisible.
|
|
278
|
+
*/
|
|
279
|
+
layout?: "fixed" | "inline";
|
|
269
280
|
/**
|
|
270
281
|
* AI companion function definitions for function calling support.
|
|
271
282
|
* These functions are sent to the server when the connection is established,
|