@burdenoff/fe-libs 2026.1118.4 → 2026.1118.6
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/platform-pages/AppearanceSettingsPage.d.ts +9 -13
- package/dist/platform-pages/AppearanceSettingsPage.js +7 -4
- package/dist/platform-pages/index.d.ts +1 -1
- package/dist/shared/assistant/home/AssistantHomePage.d.ts +29 -1
- package/dist/shared/assistant/home/AssistantHomePage.js +63 -36
- package/dist/shared/assistant/home/AssistantHomeStart.d.ts +12 -0
- package/dist/shared/assistant/home/AssistantHomeStart.js +24 -15
- package/dist/shared/assistant/home.js +5 -5
- package/dist/shared/assistant/ui/AIAssistantPanel.js +152 -152
- package/dist/shared/assistant/ui/compact/AssistantCompactHeader.d.ts +9 -0
- package/dist/shared/assistant/ui/compact/AssistantCompactHeader.js +62 -52
- package/dist/shared/assistant/ui/compact/AssistantWindowHeader.js +29 -35
- package/dist/shared/assistant/ui/compact/windowTitle.d.ts +32 -9
- package/dist/shared/assistant/ui/compact/windowTitle.js +31 -6
- package/dist/shared/backgrounds/BackgroundEffect.d.ts +7 -0
- package/dist/shared/backgrounds/BackgroundEffect.js +24 -0
- package/dist/shared/backgrounds/BackgroundPicker.d.ts +49 -0
- package/dist/shared/backgrounds/BackgroundPicker.js +133 -0
- package/dist/shared/backgrounds/BackgroundRoot.d.ts +13 -0
- package/dist/shared/backgrounds/BackgroundRoot.js +44 -0
- package/dist/shared/backgrounds/CursorWave.d.ts +19 -0
- package/dist/shared/backgrounds/CursorWave.js +40 -0
- package/dist/shared/backgrounds/DottedWaves.d.ts +20 -0
- package/dist/shared/backgrounds/DottedWaves.js +36 -0
- package/dist/shared/backgrounds/Glimmer.d.ts +18 -0
- package/dist/shared/backgrounds/Glimmer.js +38 -0
- package/dist/shared/backgrounds/backgroundGround.d.ts +5 -0
- package/dist/shared/backgrounds/backgroundGround.js +16 -0
- package/dist/shared/backgrounds/backgroundTypes.d.ts +38 -0
- package/dist/shared/backgrounds/backgroundTypes.js +20 -0
- package/dist/shared/backgrounds/canvasEffect.d.ts +51 -0
- package/dist/shared/backgrounds/canvasEffect.js +97 -0
- package/dist/shared/backgrounds/color.d.ts +56 -0
- package/dist/shared/backgrounds/color.js +153 -0
- package/dist/shared/backgrounds/cursorWavePool.d.ts +7 -0
- package/dist/shared/backgrounds/cursorWavePool.js +14 -0
- package/dist/shared/backgrounds/cursorWaveRenderer.d.ts +43 -0
- package/dist/shared/backgrounds/cursorWaveRenderer.js +146 -0
- package/dist/shared/backgrounds/dottedWavesRenderer.d.ts +72 -0
- package/dist/shared/backgrounds/dottedWavesRenderer.js +176 -0
- package/dist/shared/backgrounds/glimmerRenderer.d.ts +65 -0
- package/dist/shared/backgrounds/glimmerRenderer.js +254 -0
- package/dist/shared/backgrounds/index.d.ts +31 -0
- package/dist/shared/backgrounds/noise.d.ts +19 -0
- package/dist/shared/backgrounds/noise.js +143 -0
- package/dist/shared/backgrounds/originalPalettes.d.ts +36 -0
- package/dist/shared/backgrounds/originalPalettes.js +24 -0
- package/dist/shared/backgrounds/useBackgroundColors.d.ts +40 -0
- package/dist/shared/backgrounds/useBackgroundColors.js +165 -0
- package/dist/shared/backgrounds/useBackgroundPreference.d.ts +26 -0
- package/dist/shared/backgrounds/useBackgroundPreference.js +109 -0
- package/dist/shared-assistant.js +79 -79
- package/dist/shared-backgrounds.d.ts +2 -0
- package/dist/shared-backgrounds.js +16 -0
- package/package.json +9 -1
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* Shared by every app shell (`@burdenoff/fe-libs/platform-pages`); mount it at
|
|
11
|
-
* `/settings/appearance`. It is purely client-side, so it needs no gateway.
|
|
12
|
-
*/
|
|
13
|
-
export declare function AppearanceSettingsPage(): import('react').JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface AppearanceSettingsPageProps {
|
|
3
|
+
/**
|
|
4
|
+
* BOFF-15169: a product's own sections after the shared ones (say, FluidGrids' Background),
|
|
5
|
+
* in the same column and spacing. Absent: the page exactly as before.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function AppearanceSettingsPage({ children }?: AppearanceSettingsPageProps): import('react').JSX.Element;
|
|
14
10
|
export default AppearanceSettingsPage;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { ThemePreferences as e } from "../chrome/ThemePreferences.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
// src/platform-pages/AppearanceSettingsPage.tsx
|
|
4
|
-
function
|
|
4
|
+
function r({ children: r } = {}) {
|
|
5
5
|
return /* @__PURE__ */ t("div", {
|
|
6
6
|
className: "min-h-full bg-bg-canvas",
|
|
7
7
|
children: /* @__PURE__ */ t("div", {
|
|
8
8
|
className: "mx-auto w-full max-w-6xl px-4 py-6 md:px-6 lg:px-8",
|
|
9
|
-
children: /* @__PURE__ */ t(e, {})
|
|
9
|
+
children: r === void 0 ? /* @__PURE__ */ t(e, {}) : /* @__PURE__ */ n("div", {
|
|
10
|
+
className: "flex flex-col gap-6",
|
|
11
|
+
children: [/* @__PURE__ */ t(e, {}), r]
|
|
12
|
+
})
|
|
10
13
|
})
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
|
-
export {
|
|
16
|
+
export { r as AppearanceSettingsPage, r as default };
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* `@burdenoff/fe-libs/admin-overview` because it needs the optional
|
|
18
18
|
* `@xyflow/react` peer.
|
|
19
19
|
*/
|
|
20
|
-
export { AppearanceSettingsPage } from './AppearanceSettingsPage';
|
|
20
|
+
export { AppearanceSettingsPage, type AppearanceSettingsPageProps } from './AppearanceSettingsPage';
|
|
21
21
|
export { AffiliatesPage, type AffiliatesPageProps } from './AffiliatesPage';
|
|
22
22
|
export { AcceptShareRoute, resolveAcceptedShareDestination, type AcceptShareRouteProps, } from './AcceptShareRoute';
|
|
23
23
|
export { ConnectAuthorizePage, type ConnectAuthorizePageProps } from './oauth/ConnectAuthorizePage';
|
|
@@ -10,6 +10,19 @@ import { AssistantHomeStartContent } from './AssistantHomeStart';
|
|
|
10
10
|
export declare const ASSISTANT_HOME_CHAT_FRAME = "flex h-[calc(100dvh-7rem)] min-h-0 flex-col bg-bg-canvas md:h-dvh";
|
|
11
11
|
/** The hero and History: a page that scrolls. */
|
|
12
12
|
export declare const ASSISTANT_HOME_PAGE_FRAME = "min-h-full bg-bg-canvas";
|
|
13
|
+
/**
|
|
14
|
+
* BOFF-15169: added to the frame while a background shows behind the start page: the frame holds
|
|
15
|
+
* the background (`AssistantHomeBackdrop`) behind everything on it, and the hosted assistant's
|
|
16
|
+
* panel lets it through (the panel marks itself `data-assistant-page-hosted` for a host page's
|
|
17
|
+
* styles; its surface is otherwise opaque).
|
|
18
|
+
*/
|
|
19
|
+
export declare const ASSISTANT_HOME_BACKDROP_FRAME = "relative isolate [&_[data-assistant-page-hosted]]:bg-transparent";
|
|
20
|
+
/**
|
|
21
|
+
* BOFF-15169: added as well while the background brings its own ground (`backgroundGround`): the
|
|
22
|
+
* start page's glow (`AssistantHomeGlow`, the two drifting accent hues) gives way to it. The frame
|
|
23
|
+
* then carries `data-assistant-home-ground` and paints the ground in place of the canvas.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ASSISTANT_HOME_GROUND_FRAME = "[&_.boff-mesh-duo]:hidden";
|
|
13
26
|
export interface AssistantHomePageProps {
|
|
14
27
|
/** The Chat tab where the assistant can be hosted: the host's `AssistantHomeInPageChat`. */
|
|
15
28
|
chat: ReactNode;
|
|
@@ -28,8 +41,23 @@ export interface AssistantHomePageProps {
|
|
|
28
41
|
newChat?: () => string;
|
|
29
42
|
/** The in-page chat's frame, for a phone shell whose bars are not 7rem together. */
|
|
30
43
|
chatFrameClassName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* BOFF-15169: a background behind the start page only (say, the person's animated background
|
|
46
|
+
* from `@burdenoff/fe-libs/shared/backgrounds`): the Chat tab's new chat, in the page or as the
|
|
47
|
+
* hero, never History or a chat. It fills the page (at most one screen tall), behind
|
|
48
|
+
* everything, with a veil behind the greeting and the box. `null`: none for now (the page keeps
|
|
49
|
+
* its shape, so switching it on or off remounts nothing). Absent: the page exactly as before.
|
|
50
|
+
*/
|
|
51
|
+
background?: ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* BOFF-15169: the opaque ground the background comes with (say, the original colours' ground
|
|
54
|
+
* from `useBackgroundGround`): while the background shows, it fills the page in place of the
|
|
55
|
+
* canvas, the start page's glow gives way to it, and the veil takes its colour. The page's
|
|
56
|
+
* tokens stay the theme's. Null or absent: the page's own canvas and glow.
|
|
57
|
+
*/
|
|
58
|
+
backgroundGround?: string | null;
|
|
31
59
|
}
|
|
32
|
-
export declare function AssistantHomePage({ chat, hero, history, actions, newChat, chatFrameClassName, }: AssistantHomePageProps): import('react').JSX.Element;
|
|
60
|
+
export declare function AssistantHomePage({ chat, hero, history, actions, newChat, chatFrameClassName, background, backgroundGround, }: AssistantHomePageProps): import('react').JSX.Element;
|
|
33
61
|
export interface AssistantHomeChatViewProps {
|
|
34
62
|
/** The start content around the message box of a new chat. */
|
|
35
63
|
start: AssistantHomeStartContent;
|
|
@@ -3,51 +3,78 @@ import { useAssistantPageSurface as t } from "../ui/assistantPageSurface.js";
|
|
|
3
3
|
import { AssistantHomeNewChatContext as n, assistantHomeNewChat as r, useAssistantHomeStartChat as i } from "./assistantHomeChat.js";
|
|
4
4
|
import { useAssistantHomeChatShown as a, useAssistantHomePrompt as o, useAssistantHomeTab as s } from "./assistantHomeRoutes.js";
|
|
5
5
|
import { AssistantHomeActions as c, AssistantHomeActionsBar as l } from "./AssistantHomeActions.js";
|
|
6
|
-
import {
|
|
7
|
-
import { Fragment as
|
|
6
|
+
import { AssistantHomeBackdrop as u, AssistantHomeGlow as d, AssistantHomeHero as f, AssistantHomeRecentChats as p, AssistantHomeSections as m, AssistantHomeSuggestions as h } from "./AssistantHomeStart.js";
|
|
7
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
8
8
|
// src/shared/assistant/home/AssistantHomePage.tsx
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let { tab:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
var y = "flex h-[calc(100dvh-7rem)] min-h-0 flex-col bg-bg-canvas md:h-dvh", b = "min-h-full bg-bg-canvas", x = "relative isolate [&_[data-assistant-page-hosted]]:bg-transparent", S = "[&_.boff-mesh-duo]:hidden";
|
|
10
|
+
function C({ chat: e, hero: c, history: d, actions: f, newChat: p = r, chatFrameClassName: m = y, background: h, backgroundGround: x }) {
|
|
11
|
+
let { tab: S } = s(), C = a(), { available: T } = t(), E = o(), D = S === "chat" && T && !(E && !C);
|
|
12
|
+
i(D && !C, p);
|
|
13
|
+
let O = D ? m : b, k = S === "history" ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(l, {
|
|
14
|
+
newChat: !0,
|
|
15
|
+
...f
|
|
16
|
+
}), d] }) : D ? e : c, { backdrop: A, ground: j, frameProps: M } = w(O, S === "chat" && !(D && C), h, x);
|
|
17
|
+
return /* @__PURE__ */ _(n.Provider, {
|
|
18
|
+
value: p,
|
|
19
|
+
children: /* @__PURE__ */ _("div", {
|
|
20
|
+
...M,
|
|
16
21
|
"data-testid": "assistant-home",
|
|
17
|
-
children:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}),
|
|
22
|
+
children: h === void 0 ? k : /* @__PURE__ */ v(g, { children: [A ? /* @__PURE__ */ _(u, {
|
|
23
|
+
ground: j,
|
|
24
|
+
children: h
|
|
25
|
+
}) : null, k] })
|
|
21
26
|
})
|
|
22
27
|
});
|
|
23
28
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
29
|
+
function w(e, t, n, r) {
|
|
30
|
+
let i = n != null && t;
|
|
31
|
+
if (!i) return {
|
|
32
|
+
backdrop: i,
|
|
33
|
+
ground: null,
|
|
34
|
+
frameProps: { className: e }
|
|
35
|
+
};
|
|
36
|
+
let a = `${e} ${x}`;
|
|
37
|
+
return r ? {
|
|
38
|
+
backdrop: i,
|
|
39
|
+
ground: r,
|
|
40
|
+
frameProps: {
|
|
41
|
+
className: `${a} ${S}`,
|
|
42
|
+
"data-assistant-home-ground": "",
|
|
43
|
+
style: { backgroundColor: r }
|
|
44
|
+
}
|
|
45
|
+
} : {
|
|
46
|
+
backdrop: i,
|
|
47
|
+
ground: null,
|
|
48
|
+
frameProps: { className: a }
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function T({ start: t, actions: n }) {
|
|
52
|
+
return /* @__PURE__ */ _("div", {
|
|
26
53
|
className: "flex h-full min-h-0 w-full flex-col",
|
|
27
54
|
"data-testid": "assistant-home-chat",
|
|
28
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ _(e, {
|
|
29
56
|
className: "min-h-0 flex-1",
|
|
30
57
|
start: {
|
|
31
|
-
above: /* @__PURE__ */
|
|
58
|
+
above: /* @__PURE__ */ v("div", {
|
|
32
59
|
className: "relative isolate w-full",
|
|
33
60
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ _(d, {}),
|
|
62
|
+
/* @__PURE__ */ _(l, { ...n }),
|
|
63
|
+
/* @__PURE__ */ _("div", {
|
|
37
64
|
className: "mx-auto flex w-full max-w-3xl flex-col items-center gap-6 px-4 pt-10 pb-6 md:pt-6",
|
|
38
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ _(f, { ...t.hero })
|
|
39
66
|
})
|
|
40
67
|
]
|
|
41
68
|
}),
|
|
42
|
-
below: /* @__PURE__ */
|
|
69
|
+
below: /* @__PURE__ */ v("div", {
|
|
43
70
|
className: "w-full",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ v("div", {
|
|
45
72
|
className: "mx-auto flex w-full max-w-3xl flex-col items-center gap-6 px-4 pt-6 pb-12",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
47
|
-
}), /* @__PURE__ */
|
|
73
|
+
children: [/* @__PURE__ */ _(h, { ...t.suggestions }), /* @__PURE__ */ _(p, { ...t.recentChats })]
|
|
74
|
+
}), /* @__PURE__ */ _(m, { ...t.sections })]
|
|
48
75
|
})
|
|
49
76
|
},
|
|
50
|
-
actions: /* @__PURE__ */
|
|
77
|
+
actions: /* @__PURE__ */ _(c, {
|
|
51
78
|
history: !0,
|
|
52
79
|
newChat: !0,
|
|
53
80
|
...n
|
|
@@ -56,23 +83,23 @@ function x({ start: t, actions: n }) {
|
|
|
56
83
|
})
|
|
57
84
|
});
|
|
58
85
|
}
|
|
59
|
-
function
|
|
60
|
-
return /* @__PURE__ */
|
|
86
|
+
function E({ start: e, actions: t, composer: n }) {
|
|
87
|
+
return /* @__PURE__ */ v("div", {
|
|
61
88
|
className: "relative isolate min-h-full",
|
|
62
89
|
children: [
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ _(d, {}),
|
|
91
|
+
/* @__PURE__ */ _(l, { ...t }),
|
|
92
|
+
/* @__PURE__ */ v("div", {
|
|
66
93
|
className: "mx-auto flex w-full max-w-3xl flex-col items-center gap-6 px-4 pt-10 pb-12 md:pt-6",
|
|
67
94
|
children: [
|
|
68
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ _(f, { ...e.hero }),
|
|
69
96
|
n,
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ _(h, { ...e.suggestions }),
|
|
98
|
+
/* @__PURE__ */ _(p, { ...e.recentChats })
|
|
72
99
|
]
|
|
73
100
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ _(m, { ...e.sections })
|
|
75
102
|
]
|
|
76
103
|
});
|
|
77
104
|
}
|
|
78
|
-
export {
|
|
105
|
+
export { x as ASSISTANT_HOME_BACKDROP_FRAME, y as ASSISTANT_HOME_CHAT_FRAME, S as ASSISTANT_HOME_GROUND_FRAME, b as ASSISTANT_HOME_PAGE_FRAME, E as AssistantHomeHeroChat, T as AssistantHomeInPageChat, C as AssistantHomePage };
|
|
@@ -16,6 +16,18 @@ declare const TILE_GLOW: {
|
|
|
16
16
|
* clips itself (no sideways scroll on a phone, in either reading direction).
|
|
17
17
|
*/
|
|
18
18
|
export declare function AssistantHomeGlow(): import('react').JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* BOFF-15169: a page background behind the start page (say, an animated one from
|
|
21
|
+
* `@burdenoff/fe-libs/shared/backgrounds`), with a veil behind the greeting and the message box
|
|
22
|
+
* that keeps them readable. It fills the page's frame (`ASSISTANT_HOME_BACKDROP_FRAME`), at most
|
|
23
|
+
* one screen tall, behind everything on it, and takes no pointer events. Decorative: hidden from
|
|
24
|
+
* screen readers. `ground`: the opaque ground the page paints behind it, which the veil then takes
|
|
25
|
+
* in place of the canvas (only the veil reads the canvas token here).
|
|
26
|
+
*/
|
|
27
|
+
export declare function AssistantHomeBackdrop({ children, ground, }: {
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
ground?: string | null;
|
|
30
|
+
}): import('react').JSX.Element;
|
|
19
31
|
export interface AssistantHomeHeroContent {
|
|
20
32
|
/** The badge over the greeting (say, the assistant's name). */
|
|
21
33
|
chip: string;
|
|
@@ -19,7 +19,16 @@ function g() {
|
|
|
19
19
|
children: /* @__PURE__ */ a("div", { className: "absolute -inset-x-[14%] inset-y-0 boff-mesh-duo" })
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
function _({
|
|
22
|
+
function _({ children: e, ground: t = null }) {
|
|
23
|
+
return /* @__PURE__ */ o("div", {
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
className: "pointer-events-none absolute inset-x-0 top-0 -z-10 h-full max-h-dvh overflow-hidden",
|
|
26
|
+
"data-testid": "assistant-home-backdrop",
|
|
27
|
+
style: t ? { "--color-bg-canvas": t } : void 0,
|
|
28
|
+
children: [e, /* @__PURE__ */ a("div", { className: "absolute inset-0 bg-radial-[ellipse_64%_74%_at_50%_40%] from-bg-canvas/90 via-bg-canvas/60 to-transparent" })]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function v({ chip: e, heading: t, subtitle: n }) {
|
|
23
32
|
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("span", {
|
|
24
33
|
className: "inline-flex items-center gap-2 rounded-pill border border-border-subtle bg-bg-elevated px-3 py-1 text-body-sm font-medium text-text-primary boff-glow-pill boff-rise",
|
|
25
34
|
children: [/* @__PURE__ */ a(r, {
|
|
@@ -37,7 +46,7 @@ function _({ chip: e, heading: t, subtitle: n }) {
|
|
|
37
46
|
})]
|
|
38
47
|
})] });
|
|
39
48
|
}
|
|
40
|
-
function
|
|
49
|
+
function y({ label: e, items: t }) {
|
|
41
50
|
return /* @__PURE__ */ a("ul", {
|
|
42
51
|
"aria-label": e,
|
|
43
52
|
className: "flex w-full flex-col gap-2 md:flex-row md:flex-wrap md:justify-center boff-rise boff-delay-4",
|
|
@@ -59,7 +68,7 @@ function v({ label: e, items: t }) {
|
|
|
59
68
|
})
|
|
60
69
|
});
|
|
61
70
|
}
|
|
62
|
-
function
|
|
71
|
+
function b({ title: e, viewAllLabel: t, untitledLabel: r, rows: i, onOpen: s, onViewAll: c }) {
|
|
63
72
|
let l = [...i].sort((e, t) => t.updatedAt.localeCompare(e.updatedAt)).slice(0, 3);
|
|
64
73
|
return l.length === 0 ? null : /* @__PURE__ */ o("section", {
|
|
65
74
|
"aria-labelledby": "assistant-home-recent",
|
|
@@ -99,7 +108,7 @@ function y({ title: e, viewAllLabel: t, untitledLabel: r, rows: i, onOpen: s, on
|
|
|
99
108
|
})]
|
|
100
109
|
});
|
|
101
110
|
}
|
|
102
|
-
function
|
|
111
|
+
function x({ icon: e, title: t, body: n, onSelect: r, tile: i }) {
|
|
103
112
|
return /* @__PURE__ */ o("button", {
|
|
104
113
|
type: "button",
|
|
105
114
|
onClick: r,
|
|
@@ -119,10 +128,10 @@ function b({ icon: e, title: t, body: n, onSelect: r, tile: i }) {
|
|
|
119
128
|
})]
|
|
120
129
|
});
|
|
121
130
|
}
|
|
122
|
-
function
|
|
131
|
+
function S(e) {
|
|
123
132
|
return "items" in e;
|
|
124
133
|
}
|
|
125
|
-
function
|
|
134
|
+
function C({ section: e }) {
|
|
126
135
|
let { key: t, title: n, icon: r, action: i, columns: c, items: l } = e;
|
|
127
136
|
if (l.length === 0) return null;
|
|
128
137
|
let u = `assistant-home-${t}`;
|
|
@@ -149,20 +158,20 @@ function S({ section: e }) {
|
|
|
149
158
|
})]
|
|
150
159
|
});
|
|
151
160
|
}
|
|
152
|
-
function
|
|
161
|
+
function w({ startCards: t, sections: n = [] }) {
|
|
153
162
|
return /* @__PURE__ */ o("div", {
|
|
154
163
|
className: "mx-auto hidden w-full max-w-4xl flex-col gap-8 px-4 pb-16 md:flex",
|
|
155
164
|
children: [t && t.length > 0 ? /* @__PURE__ */ a("ul", {
|
|
156
165
|
className: "grid grid-cols-3 gap-3",
|
|
157
166
|
children: t.map(({ key: e, ...t }, n) => /* @__PURE__ */ a("li", {
|
|
158
167
|
className: `boff-rise ${h[Math.min(n, h.length - 1)]}`,
|
|
159
|
-
children: /* @__PURE__ */ a(
|
|
168
|
+
children: /* @__PURE__ */ a(x, { ...t })
|
|
160
169
|
}, e))
|
|
161
|
-
}) : null, n.map((t) =>
|
|
170
|
+
}) : null, n.map((t) => S(t) ? /* @__PURE__ */ a(C, { section: t }, t.key) : /* @__PURE__ */ a(e, { children: t.content }, t.key))]
|
|
162
171
|
});
|
|
163
172
|
}
|
|
164
|
-
var
|
|
165
|
-
function
|
|
173
|
+
var T = (e, t) => t === void 0 || t === e ? void 0 : t;
|
|
174
|
+
function E({ tone: e, icon: n, title: r, titleInFull: l, body: p, bodyInFull: m, bodyClamp: h = !1, actionLabel: g, href: _, onSelect: v }) {
|
|
166
175
|
let y = /* @__PURE__ */ o(i, { children: [
|
|
167
176
|
/* @__PURE__ */ a("span", {
|
|
168
177
|
className: e === "danger" ? u : f.glow,
|
|
@@ -172,11 +181,11 @@ function T({ tone: e, icon: n, title: r, titleInFull: l, body: p, bodyInFull: m,
|
|
|
172
181
|
className: "flex min-w-0 flex-1 flex-col",
|
|
173
182
|
children: [/* @__PURE__ */ a("span", {
|
|
174
183
|
className: "line-clamp-2 text-body-sm font-semibold text-text-primary",
|
|
175
|
-
title:
|
|
184
|
+
title: T(r, l),
|
|
176
185
|
children: r
|
|
177
186
|
}), /* @__PURE__ */ a("span", {
|
|
178
187
|
className: h ? "line-clamp-2 text-body-sm text-text-secondary" : "text-body-sm text-text-secondary",
|
|
179
|
-
title:
|
|
188
|
+
title: T(p, m),
|
|
180
189
|
children: p
|
|
181
190
|
})]
|
|
182
191
|
}),
|
|
@@ -199,7 +208,7 @@ function T({ tone: e, icon: n, title: r, titleInFull: l, body: p, bodyInFull: m,
|
|
|
199
208
|
children: y
|
|
200
209
|
});
|
|
201
210
|
}
|
|
202
|
-
function
|
|
211
|
+
function D({ href: e, icon: t, badge: n, title: r, meta: i }) {
|
|
203
212
|
return /* @__PURE__ */ o(s, {
|
|
204
213
|
to: e,
|
|
205
214
|
className: `${c} flex h-full flex-col gap-3`,
|
|
@@ -221,4 +230,4 @@ function E({ href: e, icon: t, badge: n, title: r, meta: i }) {
|
|
|
221
230
|
})]
|
|
222
231
|
});
|
|
223
232
|
}
|
|
224
|
-
export {
|
|
233
|
+
export { E as AssistantHomeAttentionCard, _ as AssistantHomeBackdrop, D as AssistantHomeContinueCard, g as AssistantHomeGlow, v as AssistantHomeHero, b as AssistantHomeRecentChats, C as AssistantHomeSection, w as AssistantHomeSections, x as AssistantHomeStartCardButton, y as AssistantHomeSuggestions };
|
|
@@ -4,8 +4,8 @@ import { AssistantHomeNewChatContext as _, assistantHomeNewChat as v, assistantH
|
|
|
4
4
|
import { ASSISTANT_HOME_HISTORY_ENGINE_FILTERS as C, ASSISTANT_HOME_HISTORY_GROUPS as w, assistantHomeHistoryEngineFilterOf as T, assistantHomeHistoryGroupOf as E, assistantHomeHistoryRowOf as D, assistantHomeHistoryTimeLabel as O, assistantHomeLastReplyLink as k, groupAssistantHomeHistoryRows as A, isAssistantHomeHistoryEngineFilter as j, matchesAssistantHomeHistoryKind as M, matchesAssistantHomeHistoryQuery as N } from "./home/assistantHomeHistoryRows.js";
|
|
5
5
|
import { useAssistantHomeHistoryRows as P } from "./home/useAssistantHomeHistoryRows.js";
|
|
6
6
|
import { AssistantHomeActions as F, AssistantHomeActionsBar as I } from "./home/AssistantHomeActions.js";
|
|
7
|
-
import { AssistantHomeAttentionCard as L,
|
|
8
|
-
import { AssistantHomeComposer as
|
|
9
|
-
import { AssistantHomeHistory as
|
|
10
|
-
import { ASSISTANT_HOME_CHAT_FRAME as
|
|
11
|
-
export {
|
|
7
|
+
import { AssistantHomeAttentionCard as L, AssistantHomeBackdrop as R, AssistantHomeContinueCard as z, AssistantHomeGlow as B, AssistantHomeHero as V, AssistantHomeRecentChats as H, AssistantHomeSection as U, AssistantHomeSections as W, AssistantHomeStartCardButton as G, AssistantHomeSuggestions as K } from "./home/AssistantHomeStart.js";
|
|
8
|
+
import { AssistantHomeComposer as q } from "./home/AssistantHomeComposer.js";
|
|
9
|
+
import { AssistantHomeHistory as J } from "./home/AssistantHomeHistory.js";
|
|
10
|
+
import { ASSISTANT_HOME_BACKDROP_FRAME as Y, ASSISTANT_HOME_CHAT_FRAME as X, ASSISTANT_HOME_GROUND_FRAME as Z, ASSISTANT_HOME_PAGE_FRAME as Q, AssistantHomeHeroChat as $, AssistantHomeInPageChat as ee, AssistantHomePage as te } from "./home/AssistantHomePage.js";
|
|
11
|
+
export { Y as ASSISTANT_HOME_BACKDROP_FRAME, X as ASSISTANT_HOME_CHAT_FRAME, e as ASSISTANT_HOME_CHAT_PARAM, Z as ASSISTANT_HOME_GROUND_FRAME, C as ASSISTANT_HOME_HISTORY_ENGINE_FILTERS, w as ASSISTANT_HOME_HISTORY_GROUPS, Q as ASSISTANT_HOME_PAGE_FRAME, t as ASSISTANT_HOME_PATH, n as ASSISTANT_HOME_PROMPT_MAX, r as ASSISTANT_HOME_PROMPT_PARAM, i as ASSISTANT_HOME_TABS, a as ASSISTANT_HOME_TAB_PARAM, F as AssistantHomeActions, I as AssistantHomeActionsBar, L as AssistantHomeAttentionCard, R as AssistantHomeBackdrop, q as AssistantHomeComposer, z as AssistantHomeContinueCard, B as AssistantHomeGlow, V as AssistantHomeHero, $ as AssistantHomeHeroChat, J as AssistantHomeHistory, ee as AssistantHomeInPageChat, _ as AssistantHomeNewChatContext, te as AssistantHomePage, H as AssistantHomeRecentChats, U as AssistantHomeSection, W as AssistantHomeSections, G as AssistantHomeStartCardButton, K as AssistantHomeSuggestions, o as assistantHomeChatHref, h as assistantHomeHidesDesktopTopBar, T as assistantHomeHistoryEngineFilterOf, E as assistantHomeHistoryGroupOf, D as assistantHomeHistoryRowOf, O as assistantHomeHistoryTimeLabel, s as assistantHomeHref, k as assistantHomeLastReplyLink, v as assistantHomeNewChat, y as assistantHomeOpenChatIsNew, c as assistantHomePromptHref, b as assistantHomeReusableOpenChat, A as groupAssistantHomeHistoryRows, j as isAssistantHomeHistoryEngineFilter, l as isAssistantHomePath, M as matchesAssistantHomeHistoryKind, N as matchesAssistantHomeHistoryQuery, u as parseAssistantHomePrompt, d as parseAssistantHomeTab, f as useAssistantHomeChatShown, g as useAssistantHomeHidesDesktopTopBar, P as useAssistantHomeHistoryRows, x as useAssistantHomeNewChat, p as useAssistantHomePrompt, S as useAssistantHomeStartChat, m as useAssistantHomeTab };
|