@vantageos/mosaic-blocks 0.5.7-alpha → 0.5.9-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 +9 -5
- package/dist/index.cjs +316 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +367 -3
- package/dist/index.d.ts +367 -3
- package/dist/index.js +312 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -17,10 +17,10 @@ import { Avatar } from '@base-ui/react/avatar';
|
|
|
17
17
|
import { Input } from '@base-ui/react/input';
|
|
18
18
|
import { Field } from '@base-ui/react/field';
|
|
19
19
|
import { Switch } from '@base-ui/react/switch';
|
|
20
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
20
21
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
21
|
-
import 'class-variance-authority/types';
|
|
22
22
|
|
|
23
|
-
declare const version = "0.5.
|
|
23
|
+
declare const version = "0.5.9-alpha";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Placeholder component — infra scaffold only.
|
|
@@ -5671,4 +5671,368 @@ declare namespace MosaicMarkdown {
|
|
|
5671
5671
|
var displayName: string;
|
|
5672
5672
|
}
|
|
5673
5673
|
|
|
5674
|
-
|
|
5674
|
+
/**
|
|
5675
|
+
* MosaicChatMessage — one chat message: role + ordered parts (text /
|
|
5676
|
+
* reasoning / tool call).
|
|
5677
|
+
*
|
|
5678
|
+
* Presentational only: no network call, no SDK, no markdown engine, no
|
|
5679
|
+
* approval UI. Three explicit extension points are exposed instead of
|
|
5680
|
+
* bundled dependencies:
|
|
5681
|
+
* - `renderText` — the host renders the text part's markdown (MVP-7
|
|
5682
|
+
* `MosaicMarkdown`, built in parallel). The library never picks a
|
|
5683
|
+
* markdown engine.
|
|
5684
|
+
* - `renderApproval` — required ONLY on the tool-call `"approval-requested"`
|
|
5685
|
+
* branch. The host renders its own approval UI (MVP-3
|
|
5686
|
+
* `MosaicApprovalPrompt`, built in parallel) — this library never depends
|
|
5687
|
+
* on a component that does not exist yet in its own package.
|
|
5688
|
+
* - `toolStatusLabels` — every user-facing tool-status word is host-owned
|
|
5689
|
+
* copy (SIN-01 i18n), no English fallback baked in.
|
|
5690
|
+
*
|
|
5691
|
+
* Tool-call lifecycle is a discriminated union on `state`, matching the
|
|
5692
|
+
* eve/react part contract exactly (input-streaming -> approval-requested ->
|
|
5693
|
+
* output-available | output-denied | output-error). Each state's own
|
|
5694
|
+
* required prop lives on that state's branch alone — `renderApproval` only
|
|
5695
|
+
* exists on `"approval-requested"`, `output` only on `"output-available"`,
|
|
5696
|
+
* `errorText` only on `"output-error"` (mirrors MosaicUrlScraper's
|
|
5697
|
+
* status-branch contract and the "no lying prop contract" guard).
|
|
5698
|
+
*
|
|
5699
|
+
* Pattern: MosaicUrlScraper.tsx (data-slot, inline cn, React 19 ref prop,
|
|
5700
|
+
* displayName, JSDoc, pure variants module, host-controlled discriminated
|
|
5701
|
+
* union). Reuses MosaicCollapsible (@base-ui/react) for the reasoning
|
|
5702
|
+
* disclosure instead of hand-rolled state.
|
|
5703
|
+
* No "use client" — prepend-use-client.mjs adds it to dist.
|
|
5704
|
+
* Design tokens: --foreground, --muted, --muted-foreground, --border,
|
|
5705
|
+
* --destructive, --emerald (status), --ring, --card.
|
|
5706
|
+
* No icon library — plain text/glyphs only (matches MosaicUrlScraper's "no
|
|
5707
|
+
* lucide-react runtime dependency" convention).
|
|
5708
|
+
* a11y: the reasoning disclosure is a real button (MosaicCollapsibleTrigger,
|
|
5709
|
+
* aria-expanded managed by @base-ui/react); tool-call status is exposed as
|
|
5710
|
+
* visible text, not color alone.
|
|
5711
|
+
* Bilingual: every user-facing string (reasoningLabel/reasoningStreamingLabel
|
|
5712
|
+
* /toolStatusLabels.*) is a required caller-supplied prop — zero hardcoded
|
|
5713
|
+
* copy, zero default.
|
|
5714
|
+
*
|
|
5715
|
+
* Ported from eve/react's components/chat/message.tsx (rewritten from
|
|
5716
|
+
* scratch — no shared code, no license carried over): dropped the
|
|
5717
|
+
* streaming-text-reveal simulation, the input-request/free-text-response UI,
|
|
5718
|
+
* the tool-name/action heuristics (formatToolName/describeToolAction/
|
|
5719
|
+
* toolCategory/...), and the connection-search special-casing — all
|
|
5720
|
+
* app-specific business logic outside a presentational library's scope.
|
|
5721
|
+
* Kept the role + parts shape and the 5-state tool-call union.
|
|
5722
|
+
*
|
|
5723
|
+
* @example
|
|
5724
|
+
* // text + reasoning + a completed tool call
|
|
5725
|
+
* <MosaicChatMessage
|
|
5726
|
+
* messageRole="assistant"
|
|
5727
|
+
* parts={[
|
|
5728
|
+
* { type: "reasoning", text: "Je vérifie la doc avant de répondre." },
|
|
5729
|
+
* { type: "text", text: "Voici la réponse." },
|
|
5730
|
+
* {
|
|
5731
|
+
* type: "tool",
|
|
5732
|
+
* toolCallId: "call_1",
|
|
5733
|
+
* toolName: "search_docs",
|
|
5734
|
+
* state: "output-available",
|
|
5735
|
+
* output: { hits: 3 },
|
|
5736
|
+
* },
|
|
5737
|
+
* ]}
|
|
5738
|
+
* renderText={(text) => text}
|
|
5739
|
+
* reasoningLabel="Raisonnement"
|
|
5740
|
+
* reasoningStreamingLabel="Réflexion en cours…"
|
|
5741
|
+
* toolStatusLabels={{
|
|
5742
|
+
* running: "En cours",
|
|
5743
|
+
* completed: "Terminé",
|
|
5744
|
+
* denied: "Refusé",
|
|
5745
|
+
* error: "Erreur",
|
|
5746
|
+
* }}
|
|
5747
|
+
* />
|
|
5748
|
+
*
|
|
5749
|
+
* @example
|
|
5750
|
+
* // a tool call awaiting host-rendered approval
|
|
5751
|
+
* <MosaicChatMessage
|
|
5752
|
+
* {...baseProps}
|
|
5753
|
+
* parts={[
|
|
5754
|
+
* {
|
|
5755
|
+
* type: "tool",
|
|
5756
|
+
* toolCallId: "call_2",
|
|
5757
|
+
* toolName: "delete_file",
|
|
5758
|
+
* state: "approval-requested",
|
|
5759
|
+
* renderApproval: (part) => <MosaicApprovalPrompt toolName={part.toolName} />,
|
|
5760
|
+
* },
|
|
5761
|
+
* ]}
|
|
5762
|
+
* />
|
|
5763
|
+
*/
|
|
5764
|
+
|
|
5765
|
+
type MosaicChatMessageSenderRole = "user" | "assistant";
|
|
5766
|
+
/** Plain assistant/user text part. */
|
|
5767
|
+
interface MosaicChatMessageTextPart {
|
|
5768
|
+
type: "text";
|
|
5769
|
+
/** Raw text content — rendered through the host-supplied `renderText`. */
|
|
5770
|
+
text: string;
|
|
5771
|
+
}
|
|
5772
|
+
/** Repliable reasoning ("thinking") part. */
|
|
5773
|
+
interface MosaicChatMessageReasoningPart {
|
|
5774
|
+
type: "reasoning";
|
|
5775
|
+
/** Raw reasoning text — rendered through the host-supplied `renderText`. */
|
|
5776
|
+
text: string;
|
|
5777
|
+
/** Whether the reasoning is still streaming (forces the disclosure open). */
|
|
5778
|
+
isStreaming?: boolean;
|
|
5779
|
+
}
|
|
5780
|
+
/** Fields shared by every tool-call lifecycle state, read unconditionally. */
|
|
5781
|
+
type MosaicChatMessageToolPartBase = {
|
|
5782
|
+
type: "tool";
|
|
5783
|
+
/** Stable identifier for this tool call, used as the React key. */
|
|
5784
|
+
toolCallId: string;
|
|
5785
|
+
/** Tool name, displayed as-is next to the status label. */
|
|
5786
|
+
toolName: string;
|
|
5787
|
+
/** Tool call input payload, shown (JSON-stringified) when present. */
|
|
5788
|
+
input?: unknown;
|
|
5789
|
+
};
|
|
5790
|
+
/**
|
|
5791
|
+
* Tool-call lifecycle, a discriminated union on `state`. Each member's
|
|
5792
|
+
* required field lives on that member ALONE — it is required exactly where
|
|
5793
|
+
* the component reads it:
|
|
5794
|
+
* - `"input-streaming"` / `"output-denied"`: no extra field, only the shared
|
|
5795
|
+
* base + status label.
|
|
5796
|
+
* - `"approval-requested"`: `renderApproval` — the ONLY branch that needs a
|
|
5797
|
+
* host-rendered extension point (MVP-3, not yet built).
|
|
5798
|
+
* - `"output-available"`: `output` — the tool's result payload.
|
|
5799
|
+
* - `"output-error"`: `errorText` — the host-localized error message.
|
|
5800
|
+
*/
|
|
5801
|
+
type MosaicChatMessageToolState = {
|
|
5802
|
+
state: "input-streaming";
|
|
5803
|
+
} | {
|
|
5804
|
+
state: "approval-requested";
|
|
5805
|
+
/**
|
|
5806
|
+
* Renders the host-owned approval UI (e.g. MVP-3
|
|
5807
|
+
* `MosaicApprovalPrompt`). Required on this branch only — the library
|
|
5808
|
+
* never imports a component that does not exist in its own package
|
|
5809
|
+
* yet, and never ships its own approval affordance.
|
|
5810
|
+
*/
|
|
5811
|
+
renderApproval: (part: MosaicChatMessageToolPart) => React.ReactNode;
|
|
5812
|
+
} | {
|
|
5813
|
+
state: "output-available";
|
|
5814
|
+
/** The tool's result payload, JSON-stringified for display. */
|
|
5815
|
+
output: unknown;
|
|
5816
|
+
} | {
|
|
5817
|
+
state: "output-denied";
|
|
5818
|
+
} | {
|
|
5819
|
+
state: "output-error";
|
|
5820
|
+
/** Host-localized error message. Required, no default. */
|
|
5821
|
+
errorText: string;
|
|
5822
|
+
};
|
|
5823
|
+
type MosaicChatMessageToolPart = MosaicChatMessageToolPartBase & MosaicChatMessageToolState;
|
|
5824
|
+
type MosaicChatMessagePart = MosaicChatMessageTextPart | MosaicChatMessageReasoningPart | MosaicChatMessageToolPart;
|
|
5825
|
+
/** Host-owned copy for every tool-call status label. Required, no default. */
|
|
5826
|
+
interface MosaicChatMessageToolStatusLabels {
|
|
5827
|
+
running: string;
|
|
5828
|
+
completed: string;
|
|
5829
|
+
denied: string;
|
|
5830
|
+
error: string;
|
|
5831
|
+
}
|
|
5832
|
+
interface MosaicChatMessageProps {
|
|
5833
|
+
/**
|
|
5834
|
+
* Who sent the message — drives bubble alignment/styling. Named
|
|
5835
|
+
* `messageRole` (not `role`) so no host ever writes a `role="user"` /
|
|
5836
|
+
* `role="assistant"` JSX attribute — `"user"`/`"assistant"` are not valid
|
|
5837
|
+
* WAI-ARIA roles, and a linter (or a screen reader) reading a literal
|
|
5838
|
+
* `role` attribute cannot tell a domain enum from a DOM ARIA role.
|
|
5839
|
+
* Exposed on the DOM as `data-role`, never as `role`.
|
|
5840
|
+
*/
|
|
5841
|
+
messageRole: MosaicChatMessageSenderRole;
|
|
5842
|
+
/** Ordered message parts. */
|
|
5843
|
+
parts: MosaicChatMessagePart[];
|
|
5844
|
+
/**
|
|
5845
|
+
* Renders a text/reasoning part's raw string. The host owns the markdown
|
|
5846
|
+
* engine (MVP-7 `MosaicMarkdown`) — the library never bundles one.
|
|
5847
|
+
* Required, no default.
|
|
5848
|
+
*/
|
|
5849
|
+
renderText: (text: string) => React.ReactNode;
|
|
5850
|
+
/** Label on the reasoning disclosure trigger while NOT streaming. Required, no default. */
|
|
5851
|
+
reasoningLabel: string;
|
|
5852
|
+
/** Label on the reasoning disclosure trigger WHILE streaming. Required, no default. */
|
|
5853
|
+
reasoningStreamingLabel: string;
|
|
5854
|
+
/** Host-owned copy for every tool-call status. Required, no default. */
|
|
5855
|
+
toolStatusLabels: MosaicChatMessageToolStatusLabels;
|
|
5856
|
+
className?: string;
|
|
5857
|
+
/** React 19 ref prop — forwarded to the root element. */
|
|
5858
|
+
ref?: React.Ref<HTMLElement>;
|
|
5859
|
+
}
|
|
5860
|
+
/**
|
|
5861
|
+
* MosaicChatMessage — production chat-message atom for
|
|
5862
|
+
* @vantageos/mosaic-blocks.
|
|
5863
|
+
*
|
|
5864
|
+
* Purely presentational: renders one message's role-aligned bubble and its
|
|
5865
|
+
* ordered parts (text/reasoning/tool call). No network call, no markdown
|
|
5866
|
+
* engine, no approval UI — see the module JSDoc for the three extension
|
|
5867
|
+
* points.
|
|
5868
|
+
*/
|
|
5869
|
+
declare function MosaicChatMessage({ messageRole, parts, renderText, reasoningLabel, reasoningStreamingLabel, toolStatusLabels, className, ref, }: MosaicChatMessageProps): React.JSX.Element;
|
|
5870
|
+
declare namespace MosaicChatMessage {
|
|
5871
|
+
var displayName: string;
|
|
5872
|
+
}
|
|
5873
|
+
|
|
5874
|
+
/**
|
|
5875
|
+
* chatMessageVariants — pure CVA variant functions for MosaicChatMessage.
|
|
5876
|
+
*
|
|
5877
|
+
* Isolated in their own module so they can be re-exported from the
|
|
5878
|
+
* `@vantageos/mosaic-blocks/server` subpath without pulling in React.
|
|
5879
|
+
*
|
|
5880
|
+
* Zero browser / React runtime dependencies — safe in RSC / Node.js.
|
|
5881
|
+
*/
|
|
5882
|
+
/** Root row alignment — user messages align end, assistant messages align start. */
|
|
5883
|
+
declare const chatMessageContainerVariants: (props?: ({
|
|
5884
|
+
align?: "start" | "end" | null | undefined;
|
|
5885
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5886
|
+
/** Bubble surface — user gets a bounded chat bubble, assistant flows full-width. */
|
|
5887
|
+
declare const chatMessageBubbleVariants: (props?: ({
|
|
5888
|
+
role?: "user" | "assistant" | null | undefined;
|
|
5889
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5890
|
+
/** Tool-call status glyph/tone — running / completed / denied / error. */
|
|
5891
|
+
declare const chatMessageToolStatusVariants: (props?: ({
|
|
5892
|
+
status?: "error" | "running" | "completed" | "denied" | null | undefined;
|
|
5893
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5894
|
+
|
|
5895
|
+
/**
|
|
5896
|
+
* MosaicApprovalPrompt — presentational "reprendre la main" tool-call approval
|
|
5897
|
+
*
|
|
5898
|
+
* Presentational atom. Shows which tool the agent wants to call, the tool's
|
|
5899
|
+
* arguments (host-rendered — this library never decides how a JSON payload
|
|
5900
|
+
* looks), and two actions: approve / deny. The component performs no
|
|
5901
|
+
* network call and owns no SDK: submitting a decision is surfaced purely via
|
|
5902
|
+
* the `onApprove()` / `onDeny()` callbacks — the host owns how the decision
|
|
5903
|
+
* is actually sent to the agent runtime and what happens next.
|
|
5904
|
+
*
|
|
5905
|
+
* Autonomous: does NOT depend on any chat-message component (developed in
|
|
5906
|
+
* parallel elsewhere) — the host inserts this component wherever an
|
|
5907
|
+
* approval-requested tool part appears in its own message rendering.
|
|
5908
|
+
*
|
|
5909
|
+
* Arguments rendering is host-controlled by design: `renderArguments` is a
|
|
5910
|
+
* required `React.ReactNode`, never a built-in JSON pretty-printer. The
|
|
5911
|
+
* host decides syntax highlighting, truncation, diffing, or any other
|
|
5912
|
+
* representation of the tool payload.
|
|
5913
|
+
*
|
|
5914
|
+
* Pattern: MosaicUrlScraper.tsx (data-slot, inline cn, React 19 ref prop,
|
|
5915
|
+
* displayName, JSDoc, pure variants module, host-controlled status union as
|
|
5916
|
+
* a discriminated prop type).
|
|
5917
|
+
* No "use client" — prepend-use-client.mjs adds it to dist.
|
|
5918
|
+
* Design tokens: --foreground, --muted-foreground, --border, --destructive,
|
|
5919
|
+
* --ring, --accent, --card, --background.
|
|
5920
|
+
* a11y: the root is a native `<fieldset>` whose `<legend>` is the required
|
|
5921
|
+
* `promptTitle` (an approval is a consequential action, so the whole prompt
|
|
5922
|
+
* is announced as one unit via the standard fieldset/legend semantics);
|
|
5923
|
+
* approve/deny are native `<button>` elements whose accessible
|
|
5924
|
+
* name IS their required visible label — no separate aria-label needed for
|
|
5925
|
+
* them. The tool-name region and the arguments region are always rendered,
|
|
5926
|
+
* in every status, so the decision/error state never loses the "what was
|
|
5927
|
+
* this about" context.
|
|
5928
|
+
* Bilingual: every user-facing string (promptTitle/toolNameLabel/
|
|
5929
|
+
* approveButtonLabel/denyButtonLabel/decisionMessage/errorMessage) is a
|
|
5930
|
+
* required caller-supplied prop — zero hardcoded copy, zero default.
|
|
5931
|
+
*
|
|
5932
|
+
* Props are pushed into the `MosaicApprovalPromptState` discriminated union
|
|
5933
|
+
* exactly where they are read — `onApprove`/`onDeny`/`approveButtonLabel`/
|
|
5934
|
+
* `denyButtonLabel` only exist on the "pending" branch, `decision`/
|
|
5935
|
+
* `decisionMessage` only on "responded", `errorMessage` only on "error".
|
|
5936
|
+
*
|
|
5937
|
+
* @example
|
|
5938
|
+
* // pending
|
|
5939
|
+
* <MosaicApprovalPrompt
|
|
5940
|
+
* status="pending"
|
|
5941
|
+
* toolName="delete_file"
|
|
5942
|
+
* toolNameLabel="Outil demandé"
|
|
5943
|
+
* promptTitle="L'agent souhaite exécuter un outil"
|
|
5944
|
+
* renderArguments={<ToolArgsViewer args={part.input} />}
|
|
5945
|
+
* onApprove={() => respond("approved")}
|
|
5946
|
+
* onDeny={() => respond("denied")}
|
|
5947
|
+
* approveButtonLabel="Approuver"
|
|
5948
|
+
* denyButtonLabel="Refuser"
|
|
5949
|
+
* />
|
|
5950
|
+
*
|
|
5951
|
+
* @example
|
|
5952
|
+
* // responded
|
|
5953
|
+
* <MosaicApprovalPrompt
|
|
5954
|
+
* {...baseProps}
|
|
5955
|
+
* status="responded"
|
|
5956
|
+
* decision="approved"
|
|
5957
|
+
* decisionMessage="Appel approuvé — exécution en cours"
|
|
5958
|
+
* />
|
|
5959
|
+
*/
|
|
5960
|
+
|
|
5961
|
+
/**
|
|
5962
|
+
* Base props required in EVERY status — read unconditionally by the
|
|
5963
|
+
* component regardless of `status` (title + tool-name + host-rendered
|
|
5964
|
+
* arguments region are always shown, even after a decision or on error).
|
|
5965
|
+
*/
|
|
5966
|
+
type MosaicApprovalPromptBaseProps = {
|
|
5967
|
+
/** Name of the tool the agent wants to call, displayed as-is. */
|
|
5968
|
+
toolName: string;
|
|
5969
|
+
/** Label preceding `toolName` (e.g. "Requested tool"). Required, no default. */
|
|
5970
|
+
toolNameLabel: string;
|
|
5971
|
+
/**
|
|
5972
|
+
* Heading for the whole prompt (e.g. "The agent wants to run a tool") —
|
|
5973
|
+
* also used as the accessible name of the root `role="group"` region.
|
|
5974
|
+
* Required, no default.
|
|
5975
|
+
*/
|
|
5976
|
+
promptTitle: string;
|
|
5977
|
+
/**
|
|
5978
|
+
* Host-rendered view of the tool's arguments. The library never decides
|
|
5979
|
+
* how a JSON payload is displayed — the host owns syntax highlighting,
|
|
5980
|
+
* truncation, diffing, or any other representation.
|
|
5981
|
+
*/
|
|
5982
|
+
renderArguments: React.ReactNode;
|
|
5983
|
+
/** Additional Tailwind classes on the root element. */
|
|
5984
|
+
className?: string;
|
|
5985
|
+
/** React 19 ref prop — forwarded to the root element. */
|
|
5986
|
+
ref?: React.Ref<HTMLFieldSetElement>;
|
|
5987
|
+
};
|
|
5988
|
+
/**
|
|
5989
|
+
* Host-controlled approval status. Every prop that is only ever rendered in
|
|
5990
|
+
* ONE status branch lives on that branch's variant — not on the base props —
|
|
5991
|
+
* so the type contract matches exactly what the component reads (mirrors
|
|
5992
|
+
* MosaicUrlScraperState's status-driven shape).
|
|
5993
|
+
*/
|
|
5994
|
+
type MosaicApprovalPromptState = {
|
|
5995
|
+
status: "pending";
|
|
5996
|
+
/** Called when the host user approves the pending tool call. */
|
|
5997
|
+
onApprove: () => void;
|
|
5998
|
+
/** Called when the host user denies the pending tool call. */
|
|
5999
|
+
onDeny: () => void;
|
|
6000
|
+
/** Label for the approve button. Required, no default. */
|
|
6001
|
+
approveButtonLabel: string;
|
|
6002
|
+
/** Label for the deny button. Required, no default. */
|
|
6003
|
+
denyButtonLabel: string;
|
|
6004
|
+
} | {
|
|
6005
|
+
status: "responded";
|
|
6006
|
+
/** Which decision was sent — drives the message's visual tone only. */
|
|
6007
|
+
decision: "approved" | "denied";
|
|
6008
|
+
/**
|
|
6009
|
+
* Host-provided, host-localized message describing the sent decision
|
|
6010
|
+
* (e.g. "Approved — running", "Denied by user"). The library never
|
|
6011
|
+
* generates its own copy — every occurrence is a distinct required
|
|
6012
|
+
* value supplied by the caller.
|
|
6013
|
+
*/
|
|
6014
|
+
decisionMessage: string;
|
|
6015
|
+
} | {
|
|
6016
|
+
status: "error";
|
|
6017
|
+
/**
|
|
6018
|
+
* Host-provided, host-localized error message (e.g. "Decision could
|
|
6019
|
+
* not be sent", "Agent runtime unreachable"). Required, no default.
|
|
6020
|
+
*/
|
|
6021
|
+
errorMessage: string;
|
|
6022
|
+
};
|
|
6023
|
+
type MosaicApprovalPromptProps = MosaicApprovalPromptBaseProps & MosaicApprovalPromptState;
|
|
6024
|
+
/**
|
|
6025
|
+
* MosaicApprovalPrompt — production tool-call approval atom for
|
|
6026
|
+
* @vantageos/mosaic-blocks.
|
|
6027
|
+
*
|
|
6028
|
+
* Purely presentational: renders the requested tool + host-rendered
|
|
6029
|
+
* arguments + the current status (pending/responded/error), and reports an
|
|
6030
|
+
* approve/deny decision via callbacks. No network call, no SDK, no built-in
|
|
6031
|
+
* copy, no built-in arguments renderer.
|
|
6032
|
+
*/
|
|
6033
|
+
declare function MosaicApprovalPrompt(props: MosaicApprovalPromptProps): React.JSX.Element;
|
|
6034
|
+
declare namespace MosaicApprovalPrompt {
|
|
6035
|
+
var displayName: string;
|
|
6036
|
+
}
|
|
6037
|
+
|
|
6038
|
+
export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicApprovalPrompt, type MosaicApprovalPromptProps, type MosaicApprovalPromptState, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicChatComposer, type MosaicChatComposerProps, type MosaicChatComposerState, MosaicChatMessage, type MosaicChatMessagePart, type MosaicChatMessageProps, type MosaicChatMessageReasoningPart, type MosaicChatMessageSenderRole, type MosaicChatMessageTextPart, type MosaicChatMessageToolPart, type MosaicChatMessageToolState, type MosaicChatMessageToolStatusLabels, MosaicChatThread, type MosaicChatThreadProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDocumentUpload, type MosaicDocumentUploadFile, type MosaicDocumentUploadFileStatus, type MosaicDocumentUploadProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, MosaicMarkdown, type MosaicMarkdownProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, MosaicMemoryCard, type MosaicMemoryCardProps, type MosaicMemoryData, type MosaicMemoryScope, type MosaicMemorySource, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineDotsProps, type MosaicStepPipelineProps, type MosaicStepPipelineSegmentsProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicTooltip, MosaicTooltipContent, type MosaicTooltipContentProps, type MosaicTooltipProps, MosaicTooltipProvider, type MosaicTooltipProviderProps, MosaicTooltipRoot, type MosaicTooltipRootProps, MosaicTooltipTrigger, type MosaicTooltipTriggerProps, MosaicUrlScraper, type MosaicUrlScraperContent, type MosaicUrlScraperProps, type MosaicUrlScraperState, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|