@burdenoff/fe-libs 2026.1001.2 → 2026.1001.4

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.
Files changed (55) hide show
  1. package/dist/shared/assistant/conversationDeleteCommand.d.ts +31 -0
  2. package/dist/shared/assistant/conversationDeleteCommand.d.ts.map +1 -0
  3. package/dist/shared/assistant/conversationDeleteCommand.js +14 -0
  4. package/dist/shared/assistant/history/historyControls.d.ts +9 -0
  5. package/dist/shared/assistant/history/historyControls.d.ts.map +1 -1
  6. package/dist/shared/assistant/history/historyControls.js +7 -1
  7. package/dist/shared/assistant/history/historyList.d.ts +10 -0
  8. package/dist/shared/assistant/history/historyList.d.ts.map +1 -1
  9. package/dist/shared/assistant/history/historyList.js +33 -28
  10. package/dist/shared/assistant/history/useHistoryRowControls.d.ts +13 -0
  11. package/dist/shared/assistant/history/useHistoryRowControls.d.ts.map +1 -0
  12. package/dist/shared/assistant/history/useHistoryRowControls.js +24 -0
  13. package/dist/shared/assistant/i18nManifest.d.ts +36 -0
  14. package/dist/shared/assistant/i18nManifest.d.ts.map +1 -1
  15. package/dist/shared/assistant/i18nManifest.js +36 -0
  16. package/dist/shared/assistant/index.d.ts +6 -0
  17. package/dist/shared/assistant/index.d.ts.map +1 -1
  18. package/dist/shared/assistant/localUiCommands.d.ts +8 -0
  19. package/dist/shared/assistant/localUiCommands.d.ts.map +1 -1
  20. package/dist/shared/assistant/localUiCommands.js +20 -19
  21. package/dist/shared/assistant/ui/AIAssistantPanel.d.ts.map +1 -1
  22. package/dist/shared/assistant/ui/AIAssistantPanel.js +67 -66
  23. package/dist/shared/assistant/ui/AssistantChatArea.d.ts.map +1 -1
  24. package/dist/shared/assistant/ui/AssistantChatArea.js +978 -891
  25. package/dist/shared/assistant/ui/AssistantConversationFilters.d.ts +12 -0
  26. package/dist/shared/assistant/ui/AssistantConversationFilters.d.ts.map +1 -0
  27. package/dist/shared/assistant/ui/AssistantConversationFilters.js +92 -0
  28. package/dist/shared/assistant/ui/AssistantConversationList.d.ts +9 -0
  29. package/dist/shared/assistant/ui/AssistantConversationList.d.ts.map +1 -1
  30. package/dist/shared/assistant/ui/AssistantConversationList.js +314 -214
  31. package/dist/shared/assistant/ui/AssistantDeleteConversationDialog.d.ts +59 -0
  32. package/dist/shared/assistant/ui/AssistantDeleteConversationDialog.d.ts.map +1 -0
  33. package/dist/shared/assistant/ui/AssistantDeleteConversationDialog.js +84 -0
  34. package/dist/shared/assistant/ui/AssistantHistoryNotices.d.ts +18 -0
  35. package/dist/shared/assistant/ui/AssistantHistoryNotices.d.ts.map +1 -1
  36. package/dist/shared/assistant/ui/AssistantHistoryNotices.js +76 -29
  37. package/dist/shared/assistant/ui/conversationDelete.d.ts +18 -0
  38. package/dist/shared/assistant/ui/conversationDelete.d.ts.map +1 -0
  39. package/dist/shared/assistant/ui/conversationDelete.js +16 -0
  40. package/dist/shared/assistant/ui/conversationDeleteDialog.d.ts +32 -0
  41. package/dist/shared/assistant/ui/conversationDeleteDialog.d.ts.map +1 -0
  42. package/dist/shared/assistant/ui/conversationDeleteDialog.js +54 -0
  43. package/dist/shared/assistant/ui/useVoiceSession.d.ts +5 -0
  44. package/dist/shared/assistant/ui/useVoiceSession.d.ts.map +1 -1
  45. package/dist/shared/assistant/ui/useVoiceSession.js +129 -121
  46. package/dist/shared/assistant/voice/turnVisibility.d.ts +9 -0
  47. package/dist/shared/assistant/voice/turnVisibility.d.ts.map +1 -1
  48. package/dist/shared/assistant/voice/voiceReopen.d.ts +134 -11
  49. package/dist/shared/assistant/voice/voiceReopen.d.ts.map +1 -1
  50. package/dist/shared/assistant/voice/voiceReopen.js +83 -25
  51. package/dist/shared/assistant/voice/voiceSession.d.ts +10 -0
  52. package/dist/shared/assistant/voice/voiceSession.d.ts.map +1 -1
  53. package/dist/shared/assistant/voice/voiceSession.js +6 -0
  54. package/dist/shared-assistant.js +170 -164
  55. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { AssistantHistoryConversationFilter } from '../history/historyTypes';
3
+ export interface AssistantConversationFiltersProps {
4
+ filter: Readonly<AssistantHistoryConversationFilter>;
5
+ onChange: (next: AssistantHistoryConversationFilter) => void;
6
+ /** How many conversations the list shows now (both groups). */
7
+ count: number;
8
+ /** A filter was changed since History opened: the status line speaks. */
9
+ announce: boolean;
10
+ }
11
+ export declare const AssistantConversationFilters: FC<AssistantConversationFiltersProps>;
12
+ //# sourceMappingURL=AssistantConversationFilters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AssistantConversationFilters.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/AssistantConversationFilters.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAEV,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AA+BjC,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,QAAQ,CAAC,kCAAkC,CAAC,CAAC;IACrD,QAAQ,EAAE,CAAC,IAAI,EAAE,kCAAkC,KAAK,IAAI,CAAC;IAC7D,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC,iCAAiC,CAwG9E,CAAC"}
@@ -0,0 +1,92 @@
1
+ import { useAssistantTr as e } from "../i18n.js";
2
+ import { useId as t } from "react";
3
+ import { Archive as n, Pin as r } from "lucide-react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ //#region src/shared/assistant/ui/AssistantConversationFilters.tsx
6
+ var o = [
7
+ "ANY",
8
+ "CHAT",
9
+ "VOICE"
10
+ ], s = "bg-action-primary-bg text-action-primary-text shadow-sm", c = "text-text-secondary hover:bg-bg-surface hover:text-text-primary", l = "focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-1 focus-visible:outline-[var(--color-focus-ring)]", u = ({ filter: u, onChange: d, count: f, announce: p }) => {
11
+ let m = e(), h = t(), g = u.channel ?? "ANY", _ = u.pinned === !0, v = u.archived === "ONLY", y = (e) => e === "CHAT" ? m("conversationFilters.chat", "Chat") : e === "VOICE" ? m("conversationFilters.voice", "Voice") : m("conversationFilters.all", "All"), b = p ? f === 0 ? m("conversationFilters.none", "No conversations match") : f === 1 ? m("conversationFilters.countOne", "1 conversation") : m("conversationFilters.count", "{{count}} conversations", { count: f }) : "";
12
+ return /* @__PURE__ */ a("div", {
13
+ className: "border-b border-border-default px-3 pt-2",
14
+ "data-testid": "history-filters",
15
+ children: [/* @__PURE__ */ a("div", {
16
+ className: "flex flex-wrap items-center gap-1.5",
17
+ children: [
18
+ /* @__PURE__ */ a("fieldset", {
19
+ className: "m-0 min-w-0 border-0 p-0",
20
+ children: [/* @__PURE__ */ i("legend", {
21
+ className: "sr-only",
22
+ children: m("conversationFilters.legend", "Show")
23
+ }), /* @__PURE__ */ i("div", {
24
+ className: "inline-flex flex-wrap items-center gap-0.5 rounded-full border border-border-default bg-bg-elevated p-0.5",
25
+ children: o.map((e) => {
26
+ let t = g === e;
27
+ return /* @__PURE__ */ a("label", {
28
+ className: `flex min-h-7 cursor-pointer items-center rounded-full px-2.5 text-[11px] font-medium transition-colors has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-solid has-[:focus-visible]:outline-offset-1 has-[:focus-visible]:outline-[var(--color-focus-ring)] ${t ? s : c}`,
29
+ "data-testid": `history-filter-channel-${e.toLowerCase()}`,
30
+ children: [/* @__PURE__ */ i("input", {
31
+ type: "radio",
32
+ name: h,
33
+ value: e,
34
+ checked: t,
35
+ onChange: () => d({
36
+ ...u,
37
+ channel: e
38
+ }),
39
+ className: "sr-only"
40
+ }), y(e)]
41
+ }, e);
42
+ })
43
+ })]
44
+ }),
45
+ /* @__PURE__ */ a("button", {
46
+ type: "button",
47
+ "aria-pressed": _,
48
+ onClick: () => d(_ ? {
49
+ ...u,
50
+ pinned: null
51
+ } : {
52
+ ...u,
53
+ pinned: !0,
54
+ archived: "EXCLUDE"
55
+ }),
56
+ className: `inline-flex min-h-7 items-center gap-1 rounded-full border px-2.5 text-[11px] font-medium transition-colors focus:outline-none ${l} ${_ ? `border-action-primary-bg ${s}` : `border-border-default ${c}`}`,
57
+ "data-testid": "history-filter-pinned",
58
+ children: [/* @__PURE__ */ i(r, {
59
+ className: "size-3",
60
+ "aria-hidden": "true"
61
+ }), m("conversationFilters.pinned", "Pinned")]
62
+ }),
63
+ /* @__PURE__ */ a("button", {
64
+ type: "button",
65
+ "aria-pressed": v,
66
+ onClick: () => d(v ? {
67
+ ...u,
68
+ archived: "EXCLUDE"
69
+ } : {
70
+ ...u,
71
+ archived: "ONLY",
72
+ pinned: null
73
+ }),
74
+ className: `inline-flex min-h-7 items-center gap-1 rounded-full border px-2.5 text-[11px] font-medium transition-colors focus:outline-none ${l} ${v ? `border-action-primary-bg ${s}` : `border-border-default ${c}`}`,
75
+ "data-testid": "history-filter-archived",
76
+ children: [/* @__PURE__ */ i(n, {
77
+ className: "size-3",
78
+ "aria-hidden": "true"
79
+ }), m("conversationFilters.archived", "Archived")]
80
+ })
81
+ ]
82
+ }), /* @__PURE__ */ i("p", {
83
+ role: "status",
84
+ "aria-live": "polite",
85
+ className: "h-5 truncate text-[10px] leading-5 text-text-muted",
86
+ "data-testid": "history-filter-status",
87
+ children: b
88
+ })]
89
+ });
90
+ };
91
+ //#endregion
92
+ export { u as AssistantConversationFilters };
@@ -15,6 +15,15 @@ import { FC } from 'react';
15
15
  *
16
16
  * A conversation of another account or workspace is not listed, and a deleted
17
17
  * one is gone from the list at once, before the server has heard of it.
18
+ *
19
+ * ★★ BOFF-8159, while the server has the history controls: filters (All /
20
+ * Chat / Voice, Pinned, Archived) with a status line, Pin and Archive beside
21
+ * Rename and Delete on every row the server can address (Rename synced, and
22
+ * now on server-only rows too), channel badges ("Voice", "Chat + voice"), and
23
+ * pinned rows first. Archived rows leave the default view; the Archived view
24
+ * offers Unarchive, Rename and Delete — never Pin. Delete here stays
25
+ * IMMEDIATE (operator, Q2); the confirmation dialog is the "delete this
26
+ * conversation" command's.
18
27
  */
19
28
  export declare const AssistantConversationList: FC;
20
29
  //# sourceMappingURL=AssistantConversationList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssistantConversationList.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/AssistantConversationList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,EAAE,EAGR,MAAM,OAAO,CAAC;AAqKf;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,yBAAyB,EAAE,EAgkBvC,CAAC"}
1
+ {"version":3,"file":"AssistantConversationList.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/AssistantConversationList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,EAAE,EAGR,MAAM,OAAO,CAAC;AAkOf;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,yBAAyB,EAAE,EA40BvC,CAAC"}