@burdenoff/fe-libs 2026.1027.13 → 2026.1027.14
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/index.d.ts +1 -0
- package/dist/shared/assistant/ui/AssistantAiDisclaimer.d.ts +26 -0
- package/dist/shared/assistant/ui/AssistantAiDisclaimer.js +13 -0
- package/dist/shared/assistant/ui/AssistantChatArea.js +1176 -1174
- package/dist/shared/assistant/ui/AssistantWriteProposalCard.js +159 -154
- package/dist/shared/assistant/ui/WorkflowAssistantPanel.js +194 -192
- package/dist/shared/providers/shell/useAssistantShellLabels.d.ts +7 -0
- package/dist/shared/providers/shell/useAssistantShellLabels.js +4 -1
- package/dist/shared-assistant.js +196 -195
- package/package.json +1 -1
|
@@ -133,6 +133,7 @@ export * from './ui/AssistantMarkdownRenderer';
|
|
|
133
133
|
export * from './ui/AssistantMessageAttachments';
|
|
134
134
|
export * from './ui/AssistantPendingWriteCard';
|
|
135
135
|
export * from './ui/AssistantWriteProposalCard';
|
|
136
|
+
export * from './ui/AssistantAiDisclaimer';
|
|
136
137
|
export * from './ui/AssistantWriteConfirmDialog';
|
|
137
138
|
export * from './ui/useWriteProposalConfirm';
|
|
138
139
|
export * from './ui/writeProposalPresentation';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface AssistantAiDisclaimerProps {
|
|
3
|
+
/** Extra layout classes from the mount point (spacing, borders). */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Distinguishes the mounts in tests and in Playwright checks. */
|
|
6
|
+
testId?: string;
|
|
7
|
+
/** Centred under a composer; start-aligned inside a card. */
|
|
8
|
+
align?: 'center' | 'start';
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The standing "AI can make mistakes" line (BOFF-3720, AI_READINESS 5.3).
|
|
12
|
+
*
|
|
13
|
+
* ★★ Standing and non-dismissable by design: there is no close control, no
|
|
14
|
+
* prop that hides it and no stored "seen" flag. It sits under the composer of
|
|
15
|
+
* every assistant panel and on every write-proposal card, so it is on screen
|
|
16
|
+
* whenever an answer is read or a change is approved.
|
|
17
|
+
*
|
|
18
|
+
* ★ A platform shell label, not a product-prefixed assistant key. The
|
|
19
|
+
* `workspaces` dictionary is layered under every product's, so one seed of
|
|
20
|
+
* `assistantChrome.aiDisclaimer` translates it for every product. Until that
|
|
21
|
+
* seed lands, and in any locale it lacks, the English renders: the line is
|
|
22
|
+
* never missing, only untranslated.
|
|
23
|
+
*
|
|
24
|
+
* Semantic tokens only (`text-text-muted`).
|
|
25
|
+
*/
|
|
26
|
+
export declare const AssistantAiDisclaimer: FC<AssistantAiDisclaimerProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useAssistantDisclaimerLabel as e } from "../../providers/shell/useAssistantShellLabels.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/shared/assistant/ui/AssistantAiDisclaimer.tsx
|
|
4
|
+
var n = ({ className: n, testId: r = "assistant-ai-disclaimer", align: i = "center" }) => {
|
|
5
|
+
let a = e();
|
|
6
|
+
return /* @__PURE__ */ t("p", {
|
|
7
|
+
className: `${i === "center" ? "text-center" : "text-start"} text-[11px] leading-snug text-text-muted${n ? ` ${n}` : ""}`,
|
|
8
|
+
"data-testid": r,
|
|
9
|
+
children: a
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as AssistantAiDisclaimer };
|