@vantageos/mosaic-blocks 0.5.10-alpha → 0.5.13-alpha
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/README.md +13 -10
- package/dist/index.cjs +349 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +437 -2
- package/dist/index.d.ts +437 -2
- package/dist/index.js +347 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
## 1. Hero & Positioning
|
|
12
12
|
|
|
13
|
-
`@vantageos/mosaic-blocks` is the **React composed-block layer** of the VantageOS Mosaic design system. It provides
|
|
13
|
+
`@vantageos/mosaic-blocks` is the **React composed-block layer** of the VantageOS Mosaic design system. It provides 133 opinionated, fully-typed UI components that integrate natively with:
|
|
14
14
|
|
|
15
15
|
- **Clerk** — auth sign-in/up flows, org switcher, RBAC, webhook sync
|
|
16
16
|
- **Convex** — real-time data binding ready
|
|
@@ -169,7 +169,7 @@ For OKLCH design tokens, pair with `@vantageos/mosaic-tokens` — see [Section 1
|
|
|
169
169
|
|
|
170
170
|
## 6. Component Catalogue Summary
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
133 exported `Mosaic*` components across 9 sections (156 total named exports including hooks, variant helpers, and unprefixed aliases such as `Tooltip`/`Accordion`). This count is enforced by `src/__tests__/readme-matches-exports.test.ts` — it fails CI if this README drifts from `src/index.ts` again. Full reference: [docs/components-catalog.md](docs/components-catalog.md).
|
|
173
173
|
|
|
174
174
|
> There is **no "Debate" section**. No `Mosaic*` debate component (room/timer/participant) is exported by this package — despite the "absorbed from anydebate" origin story below, the debate UI was never ported. If you need debate-room UI, it does not exist here yet.
|
|
175
175
|
|
|
@@ -470,14 +470,17 @@ This package follows [Semantic Versioning](https://semver.org/). While in alpha
|
|
|
470
470
|
|
|
471
471
|
| Version | Status | Notes |
|
|
472
472
|
|---|---|---|
|
|
473
|
-
| `0.5.
|
|
474
|
-
| `0.5.
|
|
475
|
-
| `0.5.
|
|
476
|
-
| `0.5.
|
|
477
|
-
| `0.5.
|
|
478
|
-
| `0.5.
|
|
479
|
-
| `0.
|
|
480
|
-
| `0.
|
|
473
|
+
| `0.5.13-alpha` | Current | 133 exported `Mosaic*` components — adds `MosaicAgentChat` (presentational session harness: send a turn, resume a session, forward approval responses to the agent runtime) |
|
|
474
|
+
| `0.5.12-alpha` | Historical | 132 exported `Mosaic*` components — adds `MosaicApiKeyPanel` (presentational BYOK panel: idle/validating/valid/invalid, no storage, no network) — superseded by the Current row above |
|
|
475
|
+
| `0.5.11-alpha` | Historical | 131 exported `Mosaic*` components — guard fix only, no new component: `readme-matches-exports.test.ts` now exempts Historical rows by their Status column (structural), not by wording — superseded by the Current row above |
|
|
476
|
+
| `0.5.10-alpha` | Historical | 131 exported `Mosaic*` components, adds `MosaicToolToggleList` (per-tool switch + approval-level selector) — superseded by the Current row above |
|
|
477
|
+
| `0.5.9-alpha` | Historical | 130 exported `Mosaic*` components — adds `MosaicApprovalPrompt` (tool-call approve/deny) — superseded by the Current row above |
|
|
478
|
+
| `0.5.8-alpha` | Historical | 129 exported `Mosaic*` components — adds `MosaicChatMessage` (chat message: role + text/reasoning/tool-call parts) — superseded by the Current row above |
|
|
479
|
+
| `0.5.7-alpha` | Historical | 128 exported `Mosaic*` components, adds `MosaicChatThread` (presentational auto-scrolling chat thread), `MosaicChatComposer` (chat input + send/stop button), and `MosaicMarkdown` (dependency-free markdown renderer), Clerk auth, mobile-first, Storybook 10, 30 stories — superseded by the Current row above |
|
|
480
|
+
| `0.5.6-alpha` | Historical | 127 exported `Mosaic*` components, adds `MosaicChatThread` (presentational auto-scrolling chat thread) and `MosaicChatComposer` (chat input + send/stop button), Clerk auth, mobile-first, Storybook 10, 30 stories — superseded by the Current row above |
|
|
481
|
+
| `0.5.1-alpha` | Historical | 126 exported `Mosaic*` components, adds `MosaicChatThread` (presentational auto-scrolling chat thread) — superseded by the Current row above |
|
|
482
|
+
| `0.4.8-alpha` | Historical | 125 exported `Mosaic*` components, Clerk auth, mobile-first, Storybook 10, 30 stories — superseded by the Current row above |
|
|
483
|
+
| `0.4.7-alpha` | Historical | 124 exported `Mosaic*` components — superseded by the Current row above |
|
|
481
484
|
| `0.2.0-alpha` | Historical | anydebate absorb (partial) — counts quoted for this release are historical and superseded by the Current row above; see [CHANGELOG.md](CHANGELOG.md) |
|
|
482
485
|
| `0.1.0-alpha.1` | Historical | Initial alpha publish |
|
|
483
486
|
|
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ function _interopNamespace(e) {
|
|
|
46
46
|
var React28__namespace = /*#__PURE__*/_interopNamespace(React28);
|
|
47
47
|
|
|
48
48
|
// src/version.ts
|
|
49
|
-
var version = "0.5.
|
|
49
|
+
var version = "0.5.13-alpha";
|
|
50
50
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
51
51
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
52
52
|
}
|
|
@@ -12511,6 +12511,351 @@ function CheckIcon5() {
|
|
|
12511
12511
|
}
|
|
12512
12512
|
);
|
|
12513
12513
|
}
|
|
12514
|
+
var apiKeyPanelTabVariants = classVarianceAuthority.cva(
|
|
12515
|
+
[
|
|
12516
|
+
"flex-1 cursor-pointer rounded-md border px-2.5 py-1.5 text-sm font-medium",
|
|
12517
|
+
"transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
12518
|
+
],
|
|
12519
|
+
{
|
|
12520
|
+
variants: {
|
|
12521
|
+
active: {
|
|
12522
|
+
true: "border-ring bg-accent text-foreground",
|
|
12523
|
+
false: "border-transparent text-muted-foreground hover:text-foreground"
|
|
12524
|
+
}
|
|
12525
|
+
},
|
|
12526
|
+
defaultVariants: {
|
|
12527
|
+
active: false
|
|
12528
|
+
}
|
|
12529
|
+
}
|
|
12530
|
+
);
|
|
12531
|
+
var apiKeyPanelInputVariants = classVarianceAuthority.cva(
|
|
12532
|
+
[
|
|
12533
|
+
"min-h-9 w-full rounded-md border bg-transparent px-3 text-sm outline-none",
|
|
12534
|
+
"transition-colors focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50"
|
|
12535
|
+
],
|
|
12536
|
+
{
|
|
12537
|
+
variants: {
|
|
12538
|
+
invalid: {
|
|
12539
|
+
true: "border-destructive",
|
|
12540
|
+
false: "border-border"
|
|
12541
|
+
}
|
|
12542
|
+
},
|
|
12543
|
+
defaultVariants: {
|
|
12544
|
+
invalid: false
|
|
12545
|
+
}
|
|
12546
|
+
}
|
|
12547
|
+
);
|
|
12548
|
+
var apiKeyPanelMessageVariants = classVarianceAuthority.cva(["text-sm"], {
|
|
12549
|
+
variants: {
|
|
12550
|
+
tone: {
|
|
12551
|
+
error: "text-destructive",
|
|
12552
|
+
muted: "text-muted-foreground"
|
|
12553
|
+
}
|
|
12554
|
+
},
|
|
12555
|
+
defaultVariants: {
|
|
12556
|
+
tone: "muted"
|
|
12557
|
+
}
|
|
12558
|
+
});
|
|
12559
|
+
function cn79(...classes) {
|
|
12560
|
+
return classes.filter(Boolean).join(" ");
|
|
12561
|
+
}
|
|
12562
|
+
function MosaicApiKeyPanel(props) {
|
|
12563
|
+
const {
|
|
12564
|
+
providers,
|
|
12565
|
+
activeProviderId,
|
|
12566
|
+
onProviderChange,
|
|
12567
|
+
tabsAriaLabel,
|
|
12568
|
+
keyValue,
|
|
12569
|
+
onKeyChange,
|
|
12570
|
+
onValidate,
|
|
12571
|
+
inputAriaLabel,
|
|
12572
|
+
validateButtonLabel,
|
|
12573
|
+
className,
|
|
12574
|
+
ref
|
|
12575
|
+
} = props;
|
|
12576
|
+
const isBusy = props.status === "validating";
|
|
12577
|
+
const activeProvider = providers.find((provider) => provider.id === activeProviderId);
|
|
12578
|
+
function handleSubmit(event) {
|
|
12579
|
+
event.preventDefault();
|
|
12580
|
+
const trimmed = keyValue.trim();
|
|
12581
|
+
if (!trimmed || isBusy) return;
|
|
12582
|
+
onValidate(activeProviderId, trimmed);
|
|
12583
|
+
}
|
|
12584
|
+
function handleKeyChange(event) {
|
|
12585
|
+
onKeyChange(event.target.value);
|
|
12586
|
+
}
|
|
12587
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className: cn79("flex flex-col gap-3", className), children: [
|
|
12588
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12589
|
+
"div",
|
|
12590
|
+
{
|
|
12591
|
+
"data-slot": "api-key-panel-tabs",
|
|
12592
|
+
role: "radiogroup",
|
|
12593
|
+
"aria-label": tabsAriaLabel,
|
|
12594
|
+
className: "flex gap-1 rounded-lg border border-border bg-background p-1",
|
|
12595
|
+
children: providers.map((provider) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12596
|
+
"label",
|
|
12597
|
+
{
|
|
12598
|
+
"data-slot": "api-key-panel-tab",
|
|
12599
|
+
className: apiKeyPanelTabVariants({ active: provider.id === activeProviderId }),
|
|
12600
|
+
children: [
|
|
12601
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12602
|
+
"input",
|
|
12603
|
+
{
|
|
12604
|
+
type: "radio",
|
|
12605
|
+
className: "sr-only",
|
|
12606
|
+
name: "api-key-panel-provider",
|
|
12607
|
+
value: provider.id,
|
|
12608
|
+
checked: provider.id === activeProviderId,
|
|
12609
|
+
disabled: isBusy,
|
|
12610
|
+
onChange: () => onProviderChange(provider.id)
|
|
12611
|
+
}
|
|
12612
|
+
),
|
|
12613
|
+
provider.label
|
|
12614
|
+
]
|
|
12615
|
+
},
|
|
12616
|
+
provider.id
|
|
12617
|
+
))
|
|
12618
|
+
}
|
|
12619
|
+
),
|
|
12620
|
+
/* @__PURE__ */ jsxRuntime.jsxs("form", { "data-slot": "api-key-panel-form", onSubmit: handleSubmit, className: "flex flex-col gap-2", children: [
|
|
12621
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12622
|
+
"input",
|
|
12623
|
+
{
|
|
12624
|
+
type: "password",
|
|
12625
|
+
"data-slot": "api-key-panel-input",
|
|
12626
|
+
"aria-label": inputAriaLabel,
|
|
12627
|
+
placeholder: activeProvider?.placeholder,
|
|
12628
|
+
value: keyValue,
|
|
12629
|
+
onChange: handleKeyChange,
|
|
12630
|
+
disabled: isBusy,
|
|
12631
|
+
autoComplete: "off",
|
|
12632
|
+
spellCheck: false,
|
|
12633
|
+
className: apiKeyPanelInputVariants({ invalid: props.status === "invalid" })
|
|
12634
|
+
}
|
|
12635
|
+
),
|
|
12636
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12637
|
+
"button",
|
|
12638
|
+
{
|
|
12639
|
+
type: "submit",
|
|
12640
|
+
"data-slot": "api-key-panel-submit-button",
|
|
12641
|
+
disabled: isBusy || keyValue.trim().length === 0,
|
|
12642
|
+
className: "min-h-9 inline-flex w-fit items-center justify-center rounded-md border border-border px-4 text-sm font-medium transition-colors hover:bg-accent/50 disabled:opacity-50",
|
|
12643
|
+
children: props.status === "validating" ? props.validatingLabel : validateButtonLabel
|
|
12644
|
+
}
|
|
12645
|
+
)
|
|
12646
|
+
] }),
|
|
12647
|
+
props.status === "validating" && /* @__PURE__ */ jsxRuntime.jsx("output", { "data-slot": "api-key-panel-validating", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: apiKeyPanelMessageVariants({ tone: "muted" }), children: props.validatingLabel }) }),
|
|
12648
|
+
props.status === "invalid" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12649
|
+
"p",
|
|
12650
|
+
{
|
|
12651
|
+
"data-slot": "api-key-panel-error-message",
|
|
12652
|
+
className: apiKeyPanelMessageVariants({ tone: "error" }),
|
|
12653
|
+
children: props.errorMessage
|
|
12654
|
+
}
|
|
12655
|
+
),
|
|
12656
|
+
props.status === "valid" && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12657
|
+
"div",
|
|
12658
|
+
{
|
|
12659
|
+
"data-slot": "api-key-panel-saved-hint",
|
|
12660
|
+
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
12661
|
+
children: [
|
|
12662
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "api-key-panel-saved-hint-text", children: props.savedKeyHintLabel(props.savedKeyLastFour) }),
|
|
12663
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12664
|
+
"button",
|
|
12665
|
+
{
|
|
12666
|
+
type: "button",
|
|
12667
|
+
"data-slot": "api-key-panel-remove-button",
|
|
12668
|
+
onClick: props.onRemove,
|
|
12669
|
+
className: "cursor-pointer border-none bg-transparent p-0 text-sm text-foreground underline decoration-ring underline-offset-4 hover:decoration-foreground",
|
|
12670
|
+
children: props.removeButtonLabel
|
|
12671
|
+
}
|
|
12672
|
+
)
|
|
12673
|
+
]
|
|
12674
|
+
}
|
|
12675
|
+
)
|
|
12676
|
+
] });
|
|
12677
|
+
}
|
|
12678
|
+
MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
12679
|
+
var agentChatRootVariants = classVarianceAuthority.cva([
|
|
12680
|
+
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
12681
|
+
]);
|
|
12682
|
+
function cn80(...classes) {
|
|
12683
|
+
return classes.filter(Boolean).join(" ");
|
|
12684
|
+
}
|
|
12685
|
+
function formatPayload2(value) {
|
|
12686
|
+
if (typeof value === "string") {
|
|
12687
|
+
return value;
|
|
12688
|
+
}
|
|
12689
|
+
try {
|
|
12690
|
+
return JSON.stringify(value, null, 2);
|
|
12691
|
+
} catch {
|
|
12692
|
+
return String(value);
|
|
12693
|
+
}
|
|
12694
|
+
}
|
|
12695
|
+
function renderApprovalPrompt(part, decisions, onDecide) {
|
|
12696
|
+
const { approval } = part;
|
|
12697
|
+
const decision = decisions[approval.requestId];
|
|
12698
|
+
const renderArguments = /* @__PURE__ */ jsxRuntime.jsx(
|
|
12699
|
+
"pre",
|
|
12700
|
+
{
|
|
12701
|
+
"data-slot": "agent-chat-approval-arguments",
|
|
12702
|
+
className: "max-h-56 overflow-auto rounded bg-muted/30 p-2 font-mono text-[11px] leading-5 text-muted-foreground",
|
|
12703
|
+
children: formatPayload2(part.input)
|
|
12704
|
+
}
|
|
12705
|
+
);
|
|
12706
|
+
const sharedProps = {
|
|
12707
|
+
toolName: part.toolName,
|
|
12708
|
+
toolNameLabel: approval.approvalLabels.toolNameLabel,
|
|
12709
|
+
promptTitle: approval.approvalLabels.promptTitle,
|
|
12710
|
+
renderArguments
|
|
12711
|
+
};
|
|
12712
|
+
if (decision === "approved" || decision === "denied") {
|
|
12713
|
+
const decisionMessage = decision === "approved" ? approval.approvalLabels.approvedMessage : approval.approvalLabels.deniedMessage;
|
|
12714
|
+
const respondedProps = {
|
|
12715
|
+
...sharedProps,
|
|
12716
|
+
status: "responded",
|
|
12717
|
+
decision,
|
|
12718
|
+
decisionMessage
|
|
12719
|
+
};
|
|
12720
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MosaicApprovalPrompt, { ...respondedProps });
|
|
12721
|
+
}
|
|
12722
|
+
const pendingProps = {
|
|
12723
|
+
...sharedProps,
|
|
12724
|
+
status: "pending",
|
|
12725
|
+
approveButtonLabel: approval.approvalLabels.approveButtonLabel,
|
|
12726
|
+
denyButtonLabel: approval.approvalLabels.denyButtonLabel,
|
|
12727
|
+
onApprove: () => onDecide({ requestId: approval.requestId, optionId: approval.approveOptionId }, "approved"),
|
|
12728
|
+
onDeny: () => onDecide({ requestId: approval.requestId, optionId: approval.denyOptionId }, "denied")
|
|
12729
|
+
};
|
|
12730
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MosaicApprovalPrompt, { ...pendingProps });
|
|
12731
|
+
}
|
|
12732
|
+
function toRenderPart(part, decisions, onDecide) {
|
|
12733
|
+
if (part.type !== "tool") {
|
|
12734
|
+
return part;
|
|
12735
|
+
}
|
|
12736
|
+
if (part.state === "approval-requested") {
|
|
12737
|
+
return {
|
|
12738
|
+
type: "tool",
|
|
12739
|
+
toolCallId: part.toolCallId,
|
|
12740
|
+
toolName: part.toolName,
|
|
12741
|
+
input: part.input,
|
|
12742
|
+
state: "approval-requested",
|
|
12743
|
+
renderApproval: () => renderApprovalPrompt(part, decisions, onDecide)
|
|
12744
|
+
};
|
|
12745
|
+
}
|
|
12746
|
+
switch (part.state) {
|
|
12747
|
+
case "input-streaming":
|
|
12748
|
+
return {
|
|
12749
|
+
type: "tool",
|
|
12750
|
+
toolCallId: part.toolCallId,
|
|
12751
|
+
toolName: part.toolName,
|
|
12752
|
+
input: part.input,
|
|
12753
|
+
state: "input-streaming"
|
|
12754
|
+
};
|
|
12755
|
+
case "output-available":
|
|
12756
|
+
return {
|
|
12757
|
+
type: "tool",
|
|
12758
|
+
toolCallId: part.toolCallId,
|
|
12759
|
+
toolName: part.toolName,
|
|
12760
|
+
input: part.input,
|
|
12761
|
+
state: "output-available",
|
|
12762
|
+
output: part.output
|
|
12763
|
+
};
|
|
12764
|
+
case "output-denied":
|
|
12765
|
+
return {
|
|
12766
|
+
type: "tool",
|
|
12767
|
+
toolCallId: part.toolCallId,
|
|
12768
|
+
toolName: part.toolName,
|
|
12769
|
+
input: part.input,
|
|
12770
|
+
state: "output-denied"
|
|
12771
|
+
};
|
|
12772
|
+
case "output-error":
|
|
12773
|
+
return {
|
|
12774
|
+
type: "tool",
|
|
12775
|
+
toolCallId: part.toolCallId,
|
|
12776
|
+
toolName: part.toolName,
|
|
12777
|
+
input: part.input,
|
|
12778
|
+
state: "output-error",
|
|
12779
|
+
errorText: part.errorText
|
|
12780
|
+
};
|
|
12781
|
+
}
|
|
12782
|
+
}
|
|
12783
|
+
function MosaicAgentChat(props) {
|
|
12784
|
+
const {
|
|
12785
|
+
messages,
|
|
12786
|
+
renderText,
|
|
12787
|
+
reasoningLabel,
|
|
12788
|
+
reasoningStreamingLabel,
|
|
12789
|
+
toolStatusLabels,
|
|
12790
|
+
scrollToBottomLabel,
|
|
12791
|
+
composerValue,
|
|
12792
|
+
onComposerValueChange,
|
|
12793
|
+
textareaAriaLabel,
|
|
12794
|
+
placeholder,
|
|
12795
|
+
onApprovalResponse,
|
|
12796
|
+
sessionId,
|
|
12797
|
+
onResumeSession,
|
|
12798
|
+
disabled = false,
|
|
12799
|
+
className,
|
|
12800
|
+
ref
|
|
12801
|
+
} = props;
|
|
12802
|
+
const [decisions, setDecisions] = React28.useState({});
|
|
12803
|
+
const resumedSessionIdRef = React28.useRef(void 0);
|
|
12804
|
+
React28.useEffect(() => {
|
|
12805
|
+
if (!sessionId || !onResumeSession) {
|
|
12806
|
+
return;
|
|
12807
|
+
}
|
|
12808
|
+
if (resumedSessionIdRef.current === sessionId) {
|
|
12809
|
+
return;
|
|
12810
|
+
}
|
|
12811
|
+
resumedSessionIdRef.current = sessionId;
|
|
12812
|
+
onResumeSession(sessionId);
|
|
12813
|
+
}, [sessionId, onResumeSession]);
|
|
12814
|
+
function handleDecide(payload, decision) {
|
|
12815
|
+
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
12816
|
+
onApprovalResponse(payload);
|
|
12817
|
+
}
|
|
12818
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className: cn80(agentChatRootVariants(), className), children: [
|
|
12819
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12820
|
+
MosaicChatMessage,
|
|
12821
|
+
{
|
|
12822
|
+
messageRole: message.messageRole,
|
|
12823
|
+
parts: message.parts.map((part) => toRenderPart(part, decisions, handleDecide)),
|
|
12824
|
+
renderText,
|
|
12825
|
+
reasoningLabel,
|
|
12826
|
+
reasoningStreamingLabel,
|
|
12827
|
+
toolStatusLabels
|
|
12828
|
+
},
|
|
12829
|
+
message.id
|
|
12830
|
+
)) }),
|
|
12831
|
+
props.status === "responding" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
12832
|
+
MosaicChatComposer,
|
|
12833
|
+
{
|
|
12834
|
+
status: "responding",
|
|
12835
|
+
value: composerValue,
|
|
12836
|
+
onValueChange: onComposerValueChange,
|
|
12837
|
+
textareaAriaLabel,
|
|
12838
|
+
placeholder,
|
|
12839
|
+
disabled,
|
|
12840
|
+
onStop: props.onStop,
|
|
12841
|
+
stopButtonAriaLabel: props.stopButtonAriaLabel
|
|
12842
|
+
}
|
|
12843
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
12844
|
+
MosaicChatComposer,
|
|
12845
|
+
{
|
|
12846
|
+
status: "idle",
|
|
12847
|
+
value: composerValue,
|
|
12848
|
+
onValueChange: onComposerValueChange,
|
|
12849
|
+
textareaAriaLabel,
|
|
12850
|
+
placeholder,
|
|
12851
|
+
disabled,
|
|
12852
|
+
onSubmit: props.onSubmit,
|
|
12853
|
+
sendButtonAriaLabel: props.sendButtonAriaLabel
|
|
12854
|
+
}
|
|
12855
|
+
)
|
|
12856
|
+
] });
|
|
12857
|
+
}
|
|
12858
|
+
MosaicAgentChat.displayName = "MosaicAgentChat";
|
|
12514
12859
|
|
|
12515
12860
|
Object.defineProperty(exports, "Accordion", {
|
|
12516
12861
|
enumerable: true,
|
|
@@ -12530,6 +12875,7 @@ exports.MosaicAdaptiveGrid = MosaicAdaptiveGrid;
|
|
|
12530
12875
|
exports.MosaicAdaptiveModal = MosaicAdaptiveModal;
|
|
12531
12876
|
exports.MosaicAdaptiveNavigation = MosaicAdaptiveNavigation;
|
|
12532
12877
|
exports.MosaicAgentCard = MosaicAgentCard;
|
|
12878
|
+
exports.MosaicAgentChat = MosaicAgentChat;
|
|
12533
12879
|
exports.MosaicAgentComposer = MosaicAgentComposer;
|
|
12534
12880
|
exports.MosaicAgentComposerDesktop = MosaicAgentComposerDesktop;
|
|
12535
12881
|
exports.MosaicAgentComposerMobile = MosaicAgentComposerMobile;
|
|
@@ -12538,6 +12884,7 @@ exports.MosaicAgentListDesktop = AgentListDesktop;
|
|
|
12538
12884
|
exports.MosaicAgentListMobile = AgentListMobile;
|
|
12539
12885
|
exports.MosaicAgentTeamPreview = MosaicAgentTeamPreview;
|
|
12540
12886
|
exports.MosaicAnimatedList = MosaicAnimatedList;
|
|
12887
|
+
exports.MosaicApiKeyPanel = MosaicApiKeyPanel;
|
|
12541
12888
|
exports.MosaicAppSidebar = MosaicAppSidebar;
|
|
12542
12889
|
exports.MosaicApprovalPrompt = MosaicApprovalPrompt;
|
|
12543
12890
|
exports.MosaicAvatar = MosaicAvatar;
|
|
@@ -12652,6 +12999,7 @@ exports.MosaicTooltipTrigger = MosaicTooltipTrigger;
|
|
|
12652
12999
|
exports.MosaicUrlScraper = MosaicUrlScraper;
|
|
12653
13000
|
exports.MosaicUserButton = MosaicUserButton;
|
|
12654
13001
|
exports.Placeholder = Placeholder;
|
|
13002
|
+
exports.agentChatRootVariants = agentChatRootVariants;
|
|
12655
13003
|
exports.badgeVariants = badgeVariants;
|
|
12656
13004
|
exports.buttonVariants = buttonVariants;
|
|
12657
13005
|
exports.chatMessageBubbleVariants = chatMessageBubbleVariants;
|