@burdenoff/fe-libs 2026.1029.1 → 2026.1029.3
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/dist/shared/assistant/turnTimeline.js +1 -1
- package/dist/shared/assistant/turnTimingReporter.d.ts +11 -0
- package/dist/shared/assistant/turnTimingReporter.js +73 -56
- package/dist/shared/assistant/ui/AssistantChatArea.js +129 -129
- package/dist/shared/assistant/ui/AssistantSpeechProvider.js +134 -129
- package/dist/shared/assistant/ui/useVoiceSession.js +201 -177
- package/dist/shared/assistant/voice/voiceSession.d.ts +7 -0
- package/dist/shared/assistant/voice/voiceSession.js +10 -1
- package/dist/shared/components/assistantWidget/AssistantWidget.js +177 -176
- package/dist/shared/components/assistantWidget/assistantWidgetPosition.d.ts +32 -0
- package/dist/shared/components/assistantWidget/assistantWidgetPosition.js +4 -0
- package/dist/shared-assistant.js +210 -210
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the legacy `AssistantWidget` launcher and floating window sit.
|
|
3
|
+
*
|
|
4
|
+
* ★★ On an installed (Capacitor / PWA) build below 768px the shell's
|
|
5
|
+
* `MobileTabBar` is a `fixed bottom-0 z-[60]` bar that publishes its measured
|
|
6
|
+
* height as `--mobile-tabbar-height` on `<html>`. A launcher pinned at a plain
|
|
7
|
+
* `bottom-6` (z-[100]) paints over the tab bar's last item ("More") and takes
|
|
8
|
+
* every tap meant for it, and a window opened at a plain `bottom-24` overlaps
|
|
9
|
+
* the lifted launcher's close button (BOFF-9679). Both positions therefore add
|
|
10
|
+
* the same bottom-chrome clearance `AssistantOverlay` uses
|
|
11
|
+
* (`ASSISTANT_BOTTOM_CHROME_CLEARANCE`): the LARGER of the tab bar height and
|
|
12
|
+
* the safe area, never their sum. On the web and on desktop every term is
|
|
13
|
+
* `0px`, so the positions resolve to the original `bottom-6` / `bottom-24`.
|
|
14
|
+
*
|
|
15
|
+
* These are Tailwind classes rather than inline styles on purpose: a host's
|
|
16
|
+
* `launcherClassName` (e.g. `max-md:bottom-24` to clear an MFE-owned tab bar)
|
|
17
|
+
* must still be able to override the launcher's `bottom`, and an inline style
|
|
18
|
+
* would silently win over it. Tailwind only generates arbitrary-value
|
|
19
|
+
* utilities it can see as complete literal strings, so each class is spelled
|
|
20
|
+
* out in full; `assistantWidgetPosition.test.ts` pins them to the shared
|
|
21
|
+
* clearance so the two cannot drift apart.
|
|
22
|
+
*/
|
|
23
|
+
/** The launcher: its canonical 1.5rem inset, above the bottom chrome. */
|
|
24
|
+
export declare const ASSISTANT_WIDGET_LAUNCHER_BOTTOM_CLASS = "bottom-[calc(1.5rem+max(var(--mobile-tabbar-height,0px),var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))]";
|
|
25
|
+
/** The floating window: 6rem up (clear of the 3.5rem launcher), above the bottom chrome. */
|
|
26
|
+
export declare const ASSISTANT_WIDGET_WINDOW_BOTTOM_CLASS = "bottom-[calc(6rem+max(var(--mobile-tabbar-height,0px),var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))]";
|
|
27
|
+
/**
|
|
28
|
+
* The floating window's height cap: the viewport less its 6rem bottom inset,
|
|
29
|
+
* a 1rem top margin and the same clearance, so lifting it never pushes its
|
|
30
|
+
* header off the top of a short phone screen.
|
|
31
|
+
*/
|
|
32
|
+
export declare const ASSISTANT_WIDGET_WINDOW_MAX_HEIGHT_CLASS = "max-h-[calc(100vh-7rem-max(var(--mobile-tabbar-height,0px),var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))]";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/shared/components/assistantWidget/assistantWidgetPosition.ts
|
|
2
|
+
var e = "bottom-[calc(1.5rem+max(var(--mobile-tabbar-height,0px),var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))]", t = "bottom-[calc(6rem+max(var(--mobile-tabbar-height,0px),var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))]", n = "max-h-[calc(100vh-7rem-max(var(--mobile-tabbar-height,0px),var(--safe-bottom,0px),env(safe-area-inset-bottom,0px)))]";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as ASSISTANT_WIDGET_LAUNCHER_BOTTOM_CLASS, t as ASSISTANT_WIDGET_WINDOW_BOTTOM_CLASS, n as ASSISTANT_WIDGET_WINDOW_MAX_HEIGHT_CLASS };
|