@cassius0924/dsh-usage-dashboard 0.9.0 → 0.9.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/lib/client.js +5 -7
- package/lib/client.js.map +2 -2
- package/lib/types/client/dom.d.ts +11 -5
- package/package.json +1 -1
|
@@ -15,11 +15,17 @@ export declare function slotBox(frame: HTMLElement, slot: string, side: 'child'
|
|
|
15
15
|
* column and fixed composer — found by walking up from any node inside our
|
|
16
16
|
* own plugin root via the stable `[data-shell-overlay]` anchor. */
|
|
17
17
|
export declare function getShellFrame(node: HTMLElement | null): HTMLElement | null;
|
|
18
|
-
/** The composer's laid-out
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
18
|
+
/** The composer's laid-out box — the seat that reserves the composer's space,
|
|
19
|
+
* or null if the slot is not present in the current DOM (host markup changed,
|
|
20
|
+
* no session open, or mid-navigation). Callers that only need the box can
|
|
21
|
+
* call `.getBoundingClientRect()`; callers that want to observe size changes
|
|
22
|
+
* (e.g. `ResizeObserver`) need the element itself.
|
|
23
|
+
*
|
|
24
|
+
* Read `conversation.composer`, not the `.dock` sub-slot: the dock anchor
|
|
25
|
+
* renders *inside* the composer card, and its nearest laid-out ancestor is a
|
|
26
|
+
* 26px toolbar row (DSH 0.2.1), so measuring it reports a box that is both
|
|
27
|
+
* far too short and ~100px below the composer's real top — the floating
|
|
28
|
+
* widget then parks itself over the Send button instead of above it.
|
|
23
29
|
*
|
|
24
30
|
* `frame` may be null: the floating widget lives inside the shell overlay
|
|
25
31
|
* subtree, but the dashboard's plugin root is mounted in the conversation
|
package/package.json
CHANGED