@burdenoff/fe-libs 2026.1029.3 → 2026.1029.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.
- package/dist/shared/assistant/conversation.d.ts +10 -0
- package/dist/shared/assistant/i18nManifest.d.ts +15 -2
- package/dist/shared/assistant/i18nManifest.js +12 -0
- package/dist/shared/assistant/index.d.ts +4 -0
- package/dist/shared/assistant/productCopy.d.ts +8 -0
- package/dist/shared/assistant/productCopy.js +8 -5
- package/dist/shared/assistant/ui/AIAssistantPanel.d.ts +9 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.js +70 -69
- package/dist/shared/assistant/ui/AssistantApiCallsConsentDialog.d.ts +23 -0
- package/dist/shared/assistant/ui/AssistantApiCallsConsentDialog.js +72 -18
- package/dist/shared/assistant/ui/AssistantChatArea.d.ts +6 -0
- package/dist/shared/assistant/ui/AssistantChatArea.js +1176 -1065
- package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +27 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +350 -206
- package/dist/shared/assistant/ui/composer/AssistantModeMenu.d.ts +51 -0
- package/dist/shared/assistant/ui/composer/AssistantModeMenu.js +188 -0
- package/dist/shared/assistant/ui/composer/imeEnter.d.ts +44 -0
- package/dist/shared/assistant/ui/composer/imeEnter.js +11 -0
- package/dist/shared/assistant/ui/composer/modeMenuKeys.d.ts +76 -0
- package/dist/shared/assistant/ui/composer/modeMenuKeys.js +61 -0
- package/dist/shared/assistant/ui/composer/modeSwitchPlan.d.ts +73 -0
- package/dist/shared/assistant/ui/composer/modeSwitchPlan.js +25 -0
- package/dist/shared-assistant.js +241 -237
- package/package.json +1 -1
|
@@ -3,6 +3,13 @@ import { AssistantModeConfig } from '../../conversation';
|
|
|
3
3
|
import { AssistantMode } from '../../types';
|
|
4
4
|
import { AssistantAttachment } from '../../attachments';
|
|
5
5
|
import { AssistantAutoOption } from './AssistantModeSelector';
|
|
6
|
+
import { AssistantModeDisabledReason } from './AssistantModeMenu';
|
|
7
|
+
/**
|
|
8
|
+
* How the assistant is presented (BOFF-10055). `classic` is the assistant as it
|
|
9
|
+
* has always been, and the default everywhere. `compact` is the opt-in
|
|
10
|
+
* redesign, rolled out product by product behind each product's own flag.
|
|
11
|
+
*/
|
|
12
|
+
export type AssistantPresentation = 'classic' | 'compact';
|
|
6
13
|
interface Props {
|
|
7
14
|
/**
|
|
8
15
|
* Writes would be refused in this workspace. Advisory only — the mode stays
|
|
@@ -70,6 +77,26 @@ interface Props {
|
|
|
70
77
|
* the composer's check comes from the props it is given.
|
|
71
78
|
*/
|
|
72
79
|
onVoiceStateChange?: (state: AssistantComposerVoiceState) => void;
|
|
80
|
+
/**
|
|
81
|
+
* BOFF-10055. Absent or `classic`: this composer exactly as before (the
|
|
82
|
+
* classic parity goldens pin its markup). `compact`: the rounded card with one
|
|
83
|
+
* control row, the Mode menu, Stop, and an Enter that waits for the input
|
|
84
|
+
* method. Every prop below is read only in `compact`.
|
|
85
|
+
*/
|
|
86
|
+
presentation?: AssistantPresentation;
|
|
87
|
+
/**
|
|
88
|
+
* A reply is being generated for the open conversation (`isTurnInFlight`).
|
|
89
|
+
* Not an approval call, a history load or a navigation: those keep the
|
|
90
|
+
* composer busy too, but nothing in them can be stopped.
|
|
91
|
+
*/
|
|
92
|
+
turnInFlight?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Stop the reply in flight. Returns the turn that was stopped, or null when
|
|
95
|
+
* none was running; only a stopped turn is announced.
|
|
96
|
+
*/
|
|
97
|
+
onStop?: () => string | null;
|
|
98
|
+
/** Why the Mode menu is disabled; absent while it is disabled: `busy`. */
|
|
99
|
+
modeDisabledReason?: AssistantModeDisabledReason | null;
|
|
73
100
|
}
|
|
74
101
|
/** A local draft snapshot; no files are uploaded by observing it. */
|
|
75
102
|
export interface AssistantComposerDraft {
|