@burdenoff/fe-libs 2026.1030.4 → 2026.1030.5
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.
|
@@ -371,7 +371,20 @@ export declare function publishedCompactPanelInset(input: AssistantCompactGeomet
|
|
|
371
371
|
export declare const ASSISTANT_WINDOW_BOTTOM_VAR = "--assistant-window-bottom";
|
|
372
372
|
/** The launcher is `size-14` (3.5rem); the window rests 1rem above it. */
|
|
373
373
|
export declare const ASSISTANT_WINDOW_LAUNCHER_CLEARANCE = "4.5rem";
|
|
374
|
-
/**
|
|
374
|
+
/**
|
|
375
|
+
* The bottom-left consent banner reaches at most 400px from the left edge
|
|
376
|
+
* (16px inset + 384px width). The 56px launcher with its 24px right inset
|
|
377
|
+
* can overlap it only below 480px. Keep this variable local to the compact
|
|
378
|
+
* launcher: classic and controls at wider widths retain their usual anchor.
|
|
379
|
+
*/
|
|
380
|
+
export declare const ASSISTANT_COMPACT_LAUNCHER_CONSENT_CLASS = "max-[480px]:[--assistant-consent-clearance:var(--bf-consent-banner-offset,0px)]";
|
|
381
|
+
/** Compact only: clear the banner where the launcher's class enables it. */
|
|
382
|
+
export declare function assistantCompactLauncherBottom(inset: string): string;
|
|
383
|
+
/**
|
|
384
|
+
* The window normally rests above the launcher. Its desktop class enables
|
|
385
|
+
* consent clearance below 784px: 400px banner edge + 360px window + 24px gap.
|
|
386
|
+
* The launcher itself does not overlap the banner at these desktop widths.
|
|
387
|
+
*/
|
|
375
388
|
export declare function assistantWindowBottom(launcherBottomInset: string): string;
|
|
376
389
|
/**
|
|
377
390
|
* CSS custom properties the overlay sets on the PHONE sheet from the visual
|
|
@@ -388,9 +401,14 @@ export declare const ASSISTANT_KEYBOARD_INSET_VAR = "--assistant-keyboard-inset"
|
|
|
388
401
|
* colour: the window and the panel each name their own, so one class never
|
|
389
402
|
* fights another for the same property.
|
|
390
403
|
*
|
|
391
|
-
* ★ The bottom edge
|
|
392
|
-
*
|
|
393
|
-
*
|
|
404
|
+
* ★ The bottom edge clears the largest of the tab bar, keyboard and consent
|
|
405
|
+
* banner. Desktop classes replace this anchor and height, so a right-edge
|
|
406
|
+
* dock does not move for a banner that cannot overlap it.
|
|
407
|
+
*
|
|
408
|
+
* The height cap deliberately has NO fallback for the banner variable. When
|
|
409
|
+
* the banner removes it, this local custom property becomes invalid and the
|
|
410
|
+
* height classes fall back to 100dvh, restoring the original geometry exactly.
|
|
411
|
+
* While shown, leave the shell header and its usual 8px gap above the sheet.
|
|
394
412
|
*/
|
|
395
413
|
export declare const ASSISTANT_COMPACT_SHEET_BASE_CLASS: string;
|
|
396
414
|
/** The full panel's colours on every viewport: classic's surface and shadow. */
|
|
@@ -411,9 +429,9 @@ export declare const ASSISTANT_COMPACT_WINDOW_SURFACE_CLASS = "bg-bg-elevated sh
|
|
|
411
429
|
* and Stop stay on screen and only the message list gives way. The window
|
|
412
430
|
* opens at about 62 %, the full panel at 60 %; either expands to 88 %.
|
|
413
431
|
*/
|
|
414
|
-
export declare const ASSISTANT_COMPACT_SHEET_WINDOW_CLASS = "h-[62dvh] max-h-[min(62dvh,var(--assistant-viewport-height,100dvh))]";
|
|
415
|
-
export declare const ASSISTANT_COMPACT_SHEET_PANEL_CLASS = "h-[60dvh] max-h-[min(60dvh,var(--assistant-viewport-height,100dvh))]";
|
|
416
|
-
export declare const ASSISTANT_COMPACT_SHEET_EXPANDED_CLASS = "h-[88dvh] max-h-[min(88dvh,var(--assistant-viewport-height,100dvh))]";
|
|
432
|
+
export declare const ASSISTANT_COMPACT_SHEET_WINDOW_CLASS = "h-[62dvh] max-h-[min(62dvh,var(--assistant-viewport-height,100dvh),var(--assistant-consent-sheet-max-height,100dvh))]";
|
|
433
|
+
export declare const ASSISTANT_COMPACT_SHEET_PANEL_CLASS = "h-[60dvh] max-h-[min(60dvh,var(--assistant-viewport-height,100dvh),var(--assistant-consent-sheet-max-height,100dvh))]";
|
|
434
|
+
export declare const ASSISTANT_COMPACT_SHEET_EXPANDED_CLASS = "h-[88dvh] max-h-[min(88dvh,var(--assistant-viewport-height,100dvh),var(--assistant-consent-sheet-max-height,100dvh))]";
|
|
417
435
|
/**
|
|
418
436
|
* Desktop: the Quick assistant window. 360 wide, `min(600px, 100dvh − header −
|
|
419
437
|
* launcher area)` tall, resting above the launcher; non-modal (no scrim).
|
|
@@ -41,29 +41,29 @@ var d = "1.5rem";
|
|
|
41
41
|
function f(e) {
|
|
42
42
|
return e > 0 ? `calc(${d} + ${e}px)` : d;
|
|
43
43
|
}
|
|
44
|
-
var p = 440, re = "--assistant-dock-width",
|
|
45
|
-
function
|
|
44
|
+
var p = 440, re = "--assistant-dock-width", ie = "--assistant-sheet-bottom", ae = "--assistant-overlay-top", oe = 56, se = "(min-width: 640px)";
|
|
45
|
+
function ce(e) {
|
|
46
46
|
return e.isOpen && e.docked && e.isDesktop ? 440 : 0;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
function
|
|
48
|
+
var le = 520, ue = 24, de = "--assistant-panel-inset";
|
|
49
|
+
function fe(e) {
|
|
50
50
|
return !e.isOpen || !e.isDesktop ? 0 : e.docked ? 440 : 544;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var m = "fixed z-50 flex flex-col overflow-hidden border border-border-default bg-bg-surface shadow-2xl inset-x-0 bottom-[var(--assistant-sheet-bottom,0px)] top-auto rounded-t-2xl animate-in slide-in-from-bottom-4 fade-in duration-200", h = "h-[60vh] max-h-[60vh]", g = "h-[88vh] max-h-[88vh]", _ = "sm:inset-auto sm:top-auto sm:bottom-24 sm:right-6 sm:rounded-2xl sm:h-[680px] sm:max-h-[calc(100vh-6rem-var(--assistant-overlay-top,56px)-0.5rem)] sm:w-[520px] sm:max-w-[calc(100vw-2rem)]", v = "sm:left-auto sm:right-0 sm:top-[var(--assistant-overlay-top)] sm:bottom-0 sm:rounded-none sm:h-auto sm:max-h-none sm:w-[440px] sm:max-w-[calc(100vw-2rem)]";
|
|
53
|
+
function y(e) {
|
|
54
54
|
return [
|
|
55
|
-
|
|
56
|
-
e.expanded ?
|
|
57
|
-
e.docked ?
|
|
55
|
+
m,
|
|
56
|
+
e.expanded ? g : h,
|
|
57
|
+
e.docked ? v : _
|
|
58
58
|
].join(" ");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function b(e) {
|
|
61
61
|
return e === "window" || e === "panel";
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function x(e) {
|
|
64
64
|
return e === "chat" || e === "voice";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function S(e) {
|
|
67
67
|
return {
|
|
68
68
|
layoutStorageKey: `${e}:ai-panel:layout`,
|
|
69
69
|
surfaceStorageKey: `${e}:ai-panel:surface`,
|
|
@@ -71,7 +71,7 @@ function C(e) {
|
|
|
71
71
|
windowViewStorageKey: `${e}:ai-panel:window-view`
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function C(e, t) {
|
|
75
75
|
try {
|
|
76
76
|
let n = e()?.getItem(t);
|
|
77
77
|
return n === "docked" || n === "floating" ? n : null;
|
|
@@ -79,25 +79,25 @@ function w(e, t) {
|
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function w(e, t) {
|
|
83
83
|
try {
|
|
84
84
|
let n = e()?.getItem(t);
|
|
85
|
-
return
|
|
85
|
+
return x(n) ? n : null;
|
|
86
86
|
} catch {
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function T(e, t, n) {
|
|
91
91
|
try {
|
|
92
92
|
e()?.setItem(t, n);
|
|
93
93
|
} catch {}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function E(e, t, n) {
|
|
96
96
|
try {
|
|
97
97
|
e()?.setItem(t, n);
|
|
98
98
|
} catch {}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function D(e, t) {
|
|
101
101
|
try {
|
|
102
102
|
let n = e()?.getItem(t);
|
|
103
103
|
return n === "1" ? "docked" : n === "0" ? "floating" : null;
|
|
@@ -105,26 +105,29 @@ function O(e, t) {
|
|
|
105
105
|
return null;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
var
|
|
109
|
-
function
|
|
108
|
+
var O = 1280, k = `(min-width: ${O}px)`;
|
|
109
|
+
function A(e) {
|
|
110
110
|
let t = e.explicit ?? e.legacy;
|
|
111
111
|
return t === null ? e.wideViewport : t === "docked";
|
|
112
112
|
}
|
|
113
|
-
var
|
|
114
|
-
function
|
|
113
|
+
var j = 360, M = 600, N = 760;
|
|
114
|
+
function P(e) {
|
|
115
115
|
return !e.isOpen || !e.isDesktop || e.surface !== "panel" || !e.docked ? 0 : e.expanded ? 760 : 440;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function F(e) {
|
|
118
118
|
if (!e.isOpen || !e.isDesktop || e.surface !== "panel") return 0;
|
|
119
119
|
let t = e.expanded ? 760 : e.docked ? 440 : 520;
|
|
120
120
|
return e.docked ? t : t + 24;
|
|
121
121
|
}
|
|
122
|
-
var
|
|
122
|
+
var I = "--assistant-window-bottom", L = "4.5rem", R = "max-[480px]:[--assistant-consent-clearance:var(--bf-consent-banner-offset,0px)]";
|
|
123
123
|
function z(e) {
|
|
124
|
-
return `
|
|
124
|
+
return `max(${u(e)}, var(--assistant-consent-clearance, 0px))`;
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
function B(e) {
|
|
127
|
+
return `max(calc(${u(e)} + ${L}), var(--assistant-consent-clearance, 0px))`;
|
|
128
|
+
}
|
|
129
|
+
var V = "--assistant-viewport-height", pe = "--assistant-keyboard-inset", H = "fixed z-50 flex flex-col overflow-hidden border border-border-default inset-x-0 bottom-[max(var(--assistant-sheet-bottom,0px),var(--assistant-keyboard-inset,0px),var(--bf-consent-banner-offset,0px))] [--assistant-consent-sheet-max-height:max(0px,calc(100dvh-max(var(--assistant-sheet-bottom,0px),var(--assistant-keyboard-inset,0px),var(--bf-consent-banner-offset))-var(--assistant-overlay-top,56px)-0.5rem))] top-auto rounded-t-2xl animate-in slide-in-from-bottom-4 fade-in duration-200", U = "bg-bg-surface shadow-2xl", W = "bg-bg-elevated shadow-[var(--shadow-elevation-4)]", G = "h-[62dvh] max-h-[min(62dvh,var(--assistant-viewport-height,100dvh),var(--assistant-consent-sheet-max-height,100dvh))]", K = "h-[60dvh] max-h-[min(60dvh,var(--assistant-viewport-height,100dvh),var(--assistant-consent-sheet-max-height,100dvh))]", q = "h-[88dvh] max-h-[min(88dvh,var(--assistant-viewport-height,100dvh),var(--assistant-consent-sheet-max-height,100dvh))]", J = "sm:inset-auto sm:top-auto sm:bottom-[var(--assistant-window-bottom,6rem)] sm:right-6 sm:rounded-3xl sm:max-[784px]:[--assistant-consent-clearance:var(--bf-consent-banner-offset,0px)] sm:h-[min(600px,calc(100dvh-var(--assistant-window-bottom,6rem)-var(--assistant-overlay-top,56px)-0.5rem))] sm:max-h-none sm:w-[360px] sm:max-w-[calc(100vw-2rem)]", Y = "sm:left-auto sm:right-0 sm:top-[var(--assistant-overlay-top)] sm:bottom-0 sm:rounded-none sm:h-auto sm:max-h-none sm:w-[440px] sm:max-w-[calc(100vw-2rem)]", X = "sm:left-auto sm:right-0 sm:top-[var(--assistant-overlay-top)] sm:bottom-0 sm:rounded-none sm:h-auto sm:max-h-none sm:w-[760px] sm:max-w-[calc(100vw-2rem)]", Z = "sm:inset-auto sm:top-auto sm:bottom-24 sm:right-6 sm:rounded-2xl sm:h-[680px] sm:max-h-[calc(100dvh-6rem-var(--assistant-overlay-top,56px)-0.5rem)] sm:w-[520px] sm:max-w-[calc(100vw-2rem)]", Q = "sm:inset-auto sm:top-auto sm:bottom-6 sm:right-6 sm:rounded-2xl sm:h-[calc(100dvh-var(--assistant-overlay-top,56px)-3rem)] sm:max-h-none sm:w-[760px] sm:max-w-[calc(100vw-2rem)]";
|
|
130
|
+
function me(e) {
|
|
128
131
|
if (e.minimized) return "hidden";
|
|
129
132
|
let t = e.surface === "window", n = e.sheetExpanded ? q : t ? G : K, r = t ? J : e.docked ? e.expanded ? X : Y : e.expanded ? Q : Z;
|
|
130
133
|
return [
|
|
@@ -134,17 +137,17 @@ function fe(e) {
|
|
|
134
137
|
r
|
|
135
138
|
].join(" ");
|
|
136
139
|
}
|
|
137
|
-
function
|
|
140
|
+
function he(e) {
|
|
138
141
|
return !e.isOpen || e.minimized ? "always" : e.surface === "panel" ? "hidden" : "desktop-only";
|
|
139
142
|
}
|
|
140
|
-
function
|
|
143
|
+
function ge(e) {
|
|
141
144
|
let t = e.scale > 1.01, n = e.layoutHeight - e.viewportHeight - e.viewportOffsetTop, r = t ? 0 : Math.max(0, Math.round(n));
|
|
142
145
|
return {
|
|
143
146
|
heightPx: Math.max(0, Math.round(t ? e.layoutHeight : e.viewportHeight)),
|
|
144
147
|
keyboardInsetPx: r
|
|
145
148
|
};
|
|
146
149
|
}
|
|
147
|
-
function
|
|
150
|
+
function $(t) {
|
|
148
151
|
return (n, r) => {
|
|
149
152
|
if (t.isShellLessTarget?.(n)) return t.openInNewTab(n), { kind: "new-tab" };
|
|
150
153
|
let i = e(r);
|
|
@@ -155,22 +158,22 @@ function he(t) {
|
|
|
155
158
|
} : (t.navigate(n), t.isDesktop() || t.collapseSheet(), { kind: "routed" });
|
|
156
159
|
};
|
|
157
160
|
}
|
|
158
|
-
function
|
|
161
|
+
function _e(e) {
|
|
159
162
|
if (typeof CustomEvent > "u" || !(e instanceof CustomEvent)) return "generic";
|
|
160
163
|
let t = e.detail;
|
|
161
164
|
return typeof t != "object" || !t || !("kind" in t) ? "generic" : t.kind === "sandbox" || t.kind === "ai-credits" ? t.kind : "generic";
|
|
162
165
|
}
|
|
163
|
-
function
|
|
166
|
+
function ve(e, t) {
|
|
164
167
|
try {
|
|
165
168
|
return e()?.getItem(t) === "1";
|
|
166
169
|
} catch {
|
|
167
170
|
return !1;
|
|
168
171
|
}
|
|
169
172
|
}
|
|
170
|
-
function
|
|
173
|
+
function ye(e, t, n) {
|
|
171
174
|
try {
|
|
172
175
|
e()?.setItem(t, n ? "1" : "0");
|
|
173
176
|
} catch {}
|
|
174
177
|
}
|
|
175
178
|
//#endregion
|
|
176
|
-
export { s as ASSISTANT_BOTTOM_CHROME_CLEARANCE,
|
|
179
|
+
export { s as ASSISTANT_BOTTOM_CHROME_CLEARANCE, k as ASSISTANT_COMPACT_DOCKED_DEFAULT_QUERY, Y as ASSISTANT_COMPACT_DOCKED_DESKTOP_CLASS, X as ASSISTANT_COMPACT_DOCKED_EXPANDED_DESKTOP_CLASS, O as ASSISTANT_COMPACT_DOCKED_MIN_VIEWPORT_PX, N as ASSISTANT_COMPACT_EXPANDED_WIDTH_PX, Z as ASSISTANT_COMPACT_FLOATING_DESKTOP_CLASS, Q as ASSISTANT_COMPACT_FLOATING_EXPANDED_DESKTOP_CLASS, R as ASSISTANT_COMPACT_LAUNCHER_CONSENT_CLASS, U as ASSISTANT_COMPACT_PANEL_SURFACE_CLASS, H as ASSISTANT_COMPACT_SHEET_BASE_CLASS, q as ASSISTANT_COMPACT_SHEET_EXPANDED_CLASS, K as ASSISTANT_COMPACT_SHEET_PANEL_CLASS, G as ASSISTANT_COMPACT_SHEET_WINDOW_CLASS, J as ASSISTANT_COMPACT_WINDOW_DESKTOP_CLASS, M as ASSISTANT_COMPACT_WINDOW_HEIGHT_PX, W as ASSISTANT_COMPACT_WINDOW_SURFACE_CLASS, j as ASSISTANT_COMPACT_WINDOW_WIDTH_PX, te as ASSISTANT_DIALOG_SELECTOR, v as ASSISTANT_DOCKED_DESKTOP_CLASS, p as ASSISTANT_DOCK_WIDTH_PX, re as ASSISTANT_DOCK_WIDTH_VAR, _ as ASSISTANT_FLOATING_DESKTOP_CLASS, ue as ASSISTANT_FLOATING_RIGHT_PX, le as ASSISTANT_FLOATING_WIDTH_PX, pe as ASSISTANT_KEYBOARD_INSET_VAR, l as ASSISTANT_LAUNCHER_LIFT_VAR, d as ASSISTANT_LAUNCHER_RIGHT_INSET, oe as ASSISTANT_OVERLAY_DEFAULT_TOP_PX, se as ASSISTANT_OVERLAY_DESKTOP_QUERY, ae as ASSISTANT_OVERLAY_TOP_VAR, de as ASSISTANT_PANEL_INSET_VAR, m as ASSISTANT_SHEET_BASE_CLASS, ie as ASSISTANT_SHEET_BOTTOM_VAR, h as ASSISTANT_SHEET_COMPACT_CLASS, g as ASSISTANT_SHEET_EXPANDED_CLASS, i as ASSISTANT_TOGGLE_SHORTCUT_LABEL, V as ASSISTANT_VIEWPORT_HEIGHT_VAR, I as ASSISTANT_WINDOW_BOTTOM_VAR, L as ASSISTANT_WINDOW_LAUNCHER_CLEARANCE, c as aboveAssistantBottomChrome, z as assistantCompactLauncherBottom, he as assistantCompactLauncherVisibility, me as assistantCompactOverlayClassName, S as assistantCompactOverlayKeys, u as assistantLauncherBottom, f as assistantLauncherRight, y as assistantOverlayClassName, o as assistantOverlayEscapeAction, t as assistantOverlayKeys, _e as assistantQuotaKindOf, ge as assistantVisualViewportMetrics, B as assistantWindowBottom, ne as closestAround, $ as createAssistantNavigate, b as isAssistantSurface, ee as isAssistantToggleShortcut, x as isAssistantWindowView, r as nextAssistantOpenState, ce as publishedAssistantDockWidth, fe as publishedAssistantPanelInset, P as publishedCompactDockWidth, F as publishedCompactPanelInset, C as readAssistantLayoutChoice, D as readAssistantLegacyDockChoice, ve as readAssistantOverlayFlag, w as readAssistantWindowView, n as requestedAssistantOpenState, A as resolveCompactDocked, E as writeAssistantLayoutChoice, ye as writeAssistantOverlayFlag, T as writeAssistantWindowView };
|