@burdenoff/fe-libs 2026.1115.13 → 2026.1116.2

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 (57) hide show
  1. package/dist/shared/assistant/history/useHistoryRowControls.d.ts +16 -0
  2. package/dist/shared/assistant/history/useHistoryRowControls.js +38 -14
  3. package/dist/shared/assistant/i18nManifest.d.ts +9 -0
  4. package/dist/shared/assistant/i18nManifest.js +9 -0
  5. package/dist/shared/assistant/index.d.ts +2 -0
  6. package/dist/shared/assistant/ui/AIAssistantPanel.d.ts +16 -0
  7. package/dist/shared/assistant/ui/AIAssistantPanel.js +247 -223
  8. package/dist/shared/assistant/ui/AssistantChatArea.js +1355 -1347
  9. package/dist/shared/assistant/ui/AssistantOverlay.d.ts +6 -0
  10. package/dist/shared/assistant/ui/AssistantOverlay.js +4 -2
  11. package/dist/shared/assistant/ui/AssistantPageHost.d.ts +14 -1
  12. package/dist/shared/assistant/ui/AssistantPageHost.js +32 -19
  13. package/dist/shared/assistant/ui/AssistantRenameConversationDialog.d.ts +33 -0
  14. package/dist/shared/assistant/ui/AssistantRenameConversationDialog.js +70 -0
  15. package/dist/shared/assistant/ui/assistantPageBar.d.ts +33 -0
  16. package/dist/shared/assistant/ui/assistantPageBar.js +53 -0
  17. package/dist/shared/assistant/ui/assistantPageLayout.d.ts +20 -0
  18. package/dist/shared/assistant/ui/assistantPageLayout.js +10 -2
  19. package/dist/shared/assistant/ui/assistantPageStart.d.ts +17 -0
  20. package/dist/shared/assistant/ui/assistantPageStart.js +7 -4
  21. package/dist/shared/assistant/ui/compact/AssistantConversationMenu.d.ts +30 -0
  22. package/dist/shared/assistant/ui/compact/AssistantConversationMenu.js +174 -53
  23. package/dist/shared/assistant/ui/compact/AssistantPageBar.d.ts +19 -0
  24. package/dist/shared/assistant/ui/compact/AssistantPageBar.js +24 -19
  25. package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +2 -0
  26. package/dist/shared/assistant/ui/composer/AssistantComposer.js +347 -340
  27. package/dist/shared/assistant/ui/composer/AssistantDictation.d.ts +5 -0
  28. package/dist/shared/assistant/ui/composer/AssistantDictation.js +41 -40
  29. package/dist/shared/assistant/ui/composer/pageBoxClass.d.ts +28 -1
  30. package/dist/shared/assistant/ui/composer/pageBoxClass.js +17 -1
  31. package/dist/shared/assistant/ui/conversationDeleteDialog.d.ts +14 -4
  32. package/dist/shared/assistant/ui/conversationDeleteDialog.js +7 -6
  33. package/dist/shared/assistant/ui/voice/AssistantVoiceSessionButton.js +1 -1
  34. package/dist/shared/assistant/ui/voice/LiveWaveform.js +1 -1
  35. package/dist/shared/events/index.d.ts +7 -2
  36. package/dist/shared/events/sinks/OtelBrowserSink.d.ts +5 -0
  37. package/dist/shared/events/sinks/WebVitalsSink.d.ts +25 -0
  38. package/dist/shared/events/sinks/WebVitalsSink.js +51 -0
  39. package/dist/shared/events/sinks/index.d.ts +3 -0
  40. package/dist/shared/events/sinks/index.js +2 -1
  41. package/dist/shared/index.d.ts +1 -0
  42. package/dist/shared/providers/AppShellProvider.d.ts +16 -0
  43. package/dist/shared/providers/AppShellProvider.js +291 -292
  44. package/dist/shared/providers/shell/ObservabilityProvider.d.ts +6 -6
  45. package/dist/shared/rum/context.d.ts +24 -0
  46. package/dist/shared/rum/context.js +40 -0
  47. package/dist/shared/rum/index.d.ts +14 -0
  48. package/dist/shared/rum/mount.d.ts +12 -0
  49. package/dist/shared/rum/mount.js +5 -0
  50. package/dist/shared/rum/reporter.d.ts +22 -0
  51. package/dist/shared/rum/reporter.js +166 -0
  52. package/dist/shared/rum/types.d.ts +56 -0
  53. package/dist/shared-assistant.js +256 -254
  54. package/dist/shared-events.js +29 -28
  55. package/dist/shared.js +78 -74
  56. package/dist/ui/glass-card.d.ts +1 -1
  57. package/package.json +1 -1
@@ -10,3 +10,19 @@ import { AssistantHistoryRowControls } from './historyControls';
10
10
  * them, a device-only conversation, or one stamped for another scope.
11
11
  */
12
12
  export declare function useHistoryRowControlsFor(conversation: Conversation | undefined): AssistantHistoryRowControls | null;
13
+ /** BOFF-15028: the open chat's Pin, when it is offered (`useHistoryPinFor`). */
14
+ export interface HistoryPinState {
15
+ /** Pinned now, as the list shows it (a queued change first). Unpin is offered then, Pin otherwise. */
16
+ pinned: boolean;
17
+ }
18
+ /**
19
+ * BOFF-15028: Pin or Unpin for ONE held conversation, offered exactly where the History list
20
+ * offers it on that conversation's row (`historyRowAcceptsControls`, and never on an archived row,
21
+ * which is unarchived instead). Null when there is no Pin to offer: history off, the server
22
+ * without the controls, a device-only conversation, one stamped for another scope, one deleted
23
+ * here, or one the server cannot address yet (an empty draft).
24
+ *
25
+ * ★ It reads the row the list would build (`historyListRowOf`), so the page's ⋯ and the list can
26
+ * never disagree on whether a chat is pinned.
27
+ */
28
+ export declare function useHistoryPinFor(conversation: Conversation | undefined): HistoryPinState | null;
@@ -1,23 +1,47 @@
1
1
  import { pendingUpdatesByConversation as e, resolveRowControls as t } from "./historyControls.js";
2
- import { historyScopeKeyOfStamp as n } from "./historyList.js";
3
- import { useAssistantHistoryStatus as r } from "./historyStatus.js";
4
- import { useAssistantHistoryStore as i } from "./historyStore.js";
5
- import { useMemo as a } from "react";
2
+ import { historyListRowOf as n, historyRowAcceptsControls as r, historyScopeKeyOfStamp as i } from "./historyList.js";
3
+ import { useAssistantHistoryStatus as a } from "./historyStatus.js";
4
+ import { useAssistantHistoryStore as o } from "./historyStore.js";
5
+ import { useMemo as s } from "react";
6
6
  // src/shared/assistant/history/useHistoryRowControls.ts
7
- function o(o) {
8
- let s = r((e) => e.product !== null && e.controlsAvailable), c = r((e) => e.scopeKey), l = r((e) => e.olderHeaders), u = o?.id, d = i((e) => c === null || u === void 0 ? void 0 : e.scopes[c]?.headers[u]), f = i((e) => e.outbox);
9
- return a(() => {
10
- let r = o?.sync;
11
- if (!s || !o || !r || c === null || n(r) !== c) return null;
12
- let i = l && l.scopeKey === c ? l.headers[o.id] : void 0, a = e(f, c)[o.id] ?? [];
13
- return t(o, d ?? i ?? null, a);
7
+ function c(n) {
8
+ let r = a((e) => e.product !== null && e.controlsAvailable), c = a((e) => e.scopeKey), l = a((e) => e.olderHeaders), u = n?.id, d = o((e) => c === null || u === void 0 ? void 0 : e.scopes[c]?.headers[u]), f = o((e) => e.outbox);
9
+ return s(() => {
10
+ let a = n?.sync;
11
+ if (!r || !n || !a || c === null || i(a) !== c) return null;
12
+ let o = l && l.scopeKey === c ? l.headers[n.id] : void 0, s = e(f, c)[n.id] ?? [];
13
+ return t(n, d ?? o ?? null, s);
14
14
  }, [
15
- s,
16
- o,
15
+ r,
16
+ n,
17
17
  c,
18
18
  l,
19
19
  d,
20
20
  f
21
21
  ]);
22
22
  }
23
- export { o as useHistoryRowControlsFor };
23
+ var l = [];
24
+ function u(t) {
25
+ let c = t?.id, u = a((e) => c !== void 0 && e.product !== null && e.controlsAvailable), d = a((e) => c === void 0 ? null : e.scopeKey), f = a((e) => c === void 0 ? void 0 : e.olderHeaders), p = o((e) => d === null || c === void 0 ? void 0 : e.scopes[d]?.headers[c]), m = o((e) => c !== void 0 && c in e.tombstones), h = o((e) => c === void 0 ? l : e.outbox);
26
+ return s(() => {
27
+ let a = t?.sync;
28
+ if (!u || !t || !a || d === null || m || i(a) !== d) return null;
29
+ let o = f && f.scopeKey === d ? f.headers[t.id] : void 0, s = n({
30
+ key: t.id,
31
+ conversation: t,
32
+ header: p ?? o ?? null,
33
+ pending: e(h, d)[t.id],
34
+ loading: !1
35
+ });
36
+ return s.archivedAt !== null || !r(s, h, d) ? null : { pinned: s.pinnedAt !== null };
37
+ }, [
38
+ u,
39
+ t,
40
+ d,
41
+ f,
42
+ p,
43
+ m,
44
+ h
45
+ ]);
46
+ }
47
+ export { u as useHistoryPinFor, c as useHistoryRowControlsFor };
@@ -451,7 +451,11 @@ export declare const ASSISTANT_I18N_LITERAL_COPY: {
451
451
  readonly 'conversationList.spokenCount': "{{count}} spoken";
452
452
  readonly 'conversationList.spokenCountOne': "1 spoken";
453
453
  readonly 'conversationList.voiceOnly': "Spoken conversation";
454
+ readonly 'conversationMenu.delete': "Delete chat";
454
455
  readonly 'conversationMenu.empty': "Nothing to export yet";
456
+ readonly 'conversationMenu.pin': "Pin";
457
+ readonly 'conversationMenu.rename': "Rename";
458
+ readonly 'conversationMenu.unpin': "Unpin";
455
459
  readonly 'conversationMenu.voiceTranscript': "Voice transcript";
456
460
  readonly 'conversations.archive': "Archive conversation";
457
461
  readonly 'conversations.collapse': "Collapse history";
@@ -678,6 +682,11 @@ export declare const ASSISTANT_I18N_LITERAL_COPY: {
678
682
  readonly 'proactive.severity.low': "Low";
679
683
  readonly 'proactive.severity.medium': "Medium";
680
684
  readonly 'proactive.severity.urgent': "Urgent";
685
+ readonly 'renameConversation.body': "Give this chat a name you’ll recognise.";
686
+ readonly 'renameConversation.cancel': "Cancel";
687
+ readonly 'renameConversation.label': "Chat name";
688
+ readonly 'renameConversation.save': "Save";
689
+ readonly 'renameConversation.title': "Rename chat";
681
690
  readonly 'sheet.collapse': "Shrink the assistant";
682
691
  readonly 'sheet.expand': "Expand the assistant";
683
692
  readonly 'speech.codeBlock': "There’s a code example on screen";
@@ -344,7 +344,11 @@ var g = {
344
344
  "conversationList.spokenCount": "{{count}} spoken",
345
345
  "conversationList.spokenCountOne": "1 spoken",
346
346
  "conversationList.voiceOnly": "Spoken conversation",
347
+ "conversationMenu.delete": "Delete chat",
347
348
  "conversationMenu.empty": "Nothing to export yet",
349
+ "conversationMenu.pin": "Pin",
350
+ "conversationMenu.rename": "Rename",
351
+ "conversationMenu.unpin": "Unpin",
348
352
  "conversationMenu.voiceTranscript": "Voice transcript",
349
353
  "conversations.archive": "Archive conversation",
350
354
  "conversations.collapse": "Collapse history",
@@ -571,6 +575,11 @@ var g = {
571
575
  "proactive.severity.low": "Low",
572
576
  "proactive.severity.medium": "Medium",
573
577
  "proactive.severity.urgent": "Urgent",
578
+ "renameConversation.body": "Give this chat a name you’ll recognise.",
579
+ "renameConversation.cancel": "Cancel",
580
+ "renameConversation.label": "Chat name",
581
+ "renameConversation.save": "Save",
582
+ "renameConversation.title": "Rename chat",
574
583
  "sheet.collapse": "Shrink the assistant",
575
584
  "sheet.expand": "Expand the assistant",
576
585
  "speech.codeBlock": "There’s a code example on screen",
@@ -214,6 +214,7 @@ export * from './ui/AssistantConversationFilters';
214
214
  export * from './ui/AssistantHistorySearchBox';
215
215
  export * from './ui/AssistantDeleteConversationDialog';
216
216
  export * from './ui/conversationDeleteDialog';
217
+ export * from './ui/AssistantRenameConversationDialog';
217
218
  export * from './ui/AssistantControlConfirmDialog';
218
219
  export * from './ui/controlConfirmDialog';
219
220
  export * from './ui/leaveConfirm';
@@ -374,6 +375,7 @@ export * from './ui/assistantPageSurface';
374
375
  export * from './ui/assistantPageLayout';
375
376
  export * from './ui/assistantPageStart';
376
377
  export * from './ui/assistantPageSettings';
378
+ export * from './ui/assistantPageBar';
377
379
  export * from './ui/assistantPanelLoader';
378
380
  export * from './ui/AssistantPanelPlaceholder';
379
381
  export * from './openui/generativeUi';
@@ -163,6 +163,22 @@ export type AIAssistantPanelProps = PanelProps & {
163
163
  * backs out of its layers but never closes it. Absent: the panel of before.
164
164
  */
165
165
  pageHosted?: boolean;
166
+ /**
167
+ * BOFF-15025 (M1, compact only): the page's message box is taller. On a new chat the field opens
168
+ * about four lines tall (112 px), in a chat about three (92 px), with 16 px text, a 1.55 line
169
+ * height and 14 px top padding; it still grows as the person types, up to today's 200 px. On
170
+ * the page (`AssistantPageHost`); in the side panel too when `pageBox` brings the page's box
171
+ * there (a chat's size: the panel has no start page). Absent or false: today's box.
172
+ */
173
+ tallBox?: boolean;
174
+ /**
175
+ * BOFF-15025 (M3, compact only): the side panel's message box is the page's: its glow, the voice
176
+ * button's breathing ring, the microphone with its ▾ (microphone and language options) in place
177
+ * of the bare mic, the page's dictation colours, and with `tallBox` its size. Only the box: the
178
+ * panel keeps its header, its Chat | Avatar switch and its Avatar view. Not in the Quick
179
+ * assistant window. Absent or false: the side panel's box of before.
180
+ */
181
+ pageBox?: boolean;
166
182
  };
167
183
  /**
168
184
  * The panel.