@vantageos/mosaic-blocks 0.5.8-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 +5 -4
- package/dist/index.cjs +111 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +145 -2
- package/dist/index.d.ts +145 -2
- package/dist/index.js +111 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ import { Switch } from '@base-ui/react/switch';
|
|
|
20
20
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
21
21
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
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.
|
|
@@ -5892,4 +5892,147 @@ declare const chatMessageToolStatusVariants: (props?: ({
|
|
|
5892
5892
|
status?: "error" | "running" | "completed" | "denied" | null | undefined;
|
|
5893
5893
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5894
5894
|
|
|
5895
|
-
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { Switch } from '@base-ui/react/switch';
|
|
|
20
20
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
21
21
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
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.
|
|
@@ -5892,4 +5892,147 @@ declare const chatMessageToolStatusVariants: (props?: ({
|
|
|
5892
5892
|
status?: "error" | "running" | "completed" | "denied" | null | undefined;
|
|
5893
5893
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5894
5894
|
|
|
5895
|
-
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
27
27
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
28
28
|
|
|
29
29
|
// src/version.ts
|
|
30
|
-
var version = "0.5.
|
|
30
|
+
var version = "0.5.9-alpha";
|
|
31
31
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
32
32
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
33
33
|
}
|
|
@@ -12170,7 +12170,116 @@ function MosaicChatMessage({
|
|
|
12170
12170
|
);
|
|
12171
12171
|
}
|
|
12172
12172
|
MosaicChatMessage.displayName = "MosaicChatMessage";
|
|
12173
|
+
var approvalPromptCardVariants = cva(["flex flex-col gap-3 rounded-lg border p-4"], {
|
|
12174
|
+
variants: {
|
|
12175
|
+
tone: {
|
|
12176
|
+
pending: "border-border bg-card",
|
|
12177
|
+
approved: "border-border bg-card",
|
|
12178
|
+
denied: "border-destructive/40 bg-destructive/5",
|
|
12179
|
+
error: "border-destructive/40 bg-destructive/5"
|
|
12180
|
+
}
|
|
12181
|
+
},
|
|
12182
|
+
defaultVariants: {
|
|
12183
|
+
tone: "pending"
|
|
12184
|
+
}
|
|
12185
|
+
});
|
|
12186
|
+
var approvalPromptMessageVariants = cva(["text-sm"], {
|
|
12187
|
+
variants: {
|
|
12188
|
+
tone: {
|
|
12189
|
+
muted: "text-muted-foreground",
|
|
12190
|
+
approved: "text-foreground",
|
|
12191
|
+
denied: "text-destructive",
|
|
12192
|
+
error: "text-destructive"
|
|
12193
|
+
}
|
|
12194
|
+
},
|
|
12195
|
+
defaultVariants: {
|
|
12196
|
+
tone: "muted"
|
|
12197
|
+
}
|
|
12198
|
+
});
|
|
12199
|
+
var approvalPromptButtonVariants = cva(
|
|
12200
|
+
[
|
|
12201
|
+
"min-h-9 inline-flex items-center justify-center rounded-md border px-4 text-sm font-medium transition-colors disabled:opacity-50"
|
|
12202
|
+
],
|
|
12203
|
+
{
|
|
12204
|
+
variants: {
|
|
12205
|
+
intent: {
|
|
12206
|
+
approve: "border-border hover:bg-accent/50",
|
|
12207
|
+
deny: "border-destructive/40 text-destructive hover:bg-destructive/5"
|
|
12208
|
+
}
|
|
12209
|
+
}
|
|
12210
|
+
}
|
|
12211
|
+
);
|
|
12212
|
+
function cn77(...classes) {
|
|
12213
|
+
return classes.filter(Boolean).join(" ");
|
|
12214
|
+
}
|
|
12215
|
+
function MosaicApprovalPrompt(props) {
|
|
12216
|
+
const { toolName, toolNameLabel, promptTitle, renderArguments, className, ref } = props;
|
|
12217
|
+
const tone = props.status === "responded" ? props.decision : props.status === "error" ? "error" : "pending";
|
|
12218
|
+
return /* @__PURE__ */ jsxs(
|
|
12219
|
+
"fieldset",
|
|
12220
|
+
{
|
|
12221
|
+
ref,
|
|
12222
|
+
"data-slot": "approval-prompt",
|
|
12223
|
+
"aria-label": promptTitle,
|
|
12224
|
+
className: cn77("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
12225
|
+
children: [
|
|
12226
|
+
/* @__PURE__ */ jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
12227
|
+
/* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
12228
|
+
/* @__PURE__ */ jsx(
|
|
12229
|
+
"span",
|
|
12230
|
+
{
|
|
12231
|
+
"data-slot": "approval-prompt-tool-label",
|
|
12232
|
+
className: approvalPromptMessageVariants({ tone: "muted" }),
|
|
12233
|
+
children: toolNameLabel
|
|
12234
|
+
}
|
|
12235
|
+
),
|
|
12236
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "approval-prompt-tool-name", className: "text-sm font-medium", children: toolName })
|
|
12237
|
+
] }),
|
|
12238
|
+
/* @__PURE__ */ jsx("div", { "data-slot": "approval-prompt-arguments", children: renderArguments }),
|
|
12239
|
+
props.status === "pending" && /* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-actions", className: "flex gap-2", children: [
|
|
12240
|
+
/* @__PURE__ */ jsx(
|
|
12241
|
+
"button",
|
|
12242
|
+
{
|
|
12243
|
+
type: "button",
|
|
12244
|
+
"data-slot": "approval-prompt-approve-button",
|
|
12245
|
+
onClick: props.onApprove,
|
|
12246
|
+
className: approvalPromptButtonVariants({ intent: "approve" }),
|
|
12247
|
+
children: props.approveButtonLabel
|
|
12248
|
+
}
|
|
12249
|
+
),
|
|
12250
|
+
/* @__PURE__ */ jsx(
|
|
12251
|
+
"button",
|
|
12252
|
+
{
|
|
12253
|
+
type: "button",
|
|
12254
|
+
"data-slot": "approval-prompt-deny-button",
|
|
12255
|
+
onClick: props.onDeny,
|
|
12256
|
+
className: approvalPromptButtonVariants({ intent: "deny" }),
|
|
12257
|
+
children: props.denyButtonLabel
|
|
12258
|
+
}
|
|
12259
|
+
)
|
|
12260
|
+
] }),
|
|
12261
|
+
props.status === "responded" && /* @__PURE__ */ jsx(
|
|
12262
|
+
"p",
|
|
12263
|
+
{
|
|
12264
|
+
"data-slot": "approval-prompt-decision",
|
|
12265
|
+
className: approvalPromptMessageVariants({ tone: props.decision }),
|
|
12266
|
+
children: props.decisionMessage
|
|
12267
|
+
}
|
|
12268
|
+
),
|
|
12269
|
+
props.status === "error" && /* @__PURE__ */ jsx(
|
|
12270
|
+
"p",
|
|
12271
|
+
{
|
|
12272
|
+
"data-slot": "approval-prompt-error",
|
|
12273
|
+
className: approvalPromptMessageVariants({ tone: "error" }),
|
|
12274
|
+
children: props.errorMessage
|
|
12275
|
+
}
|
|
12276
|
+
)
|
|
12277
|
+
]
|
|
12278
|
+
}
|
|
12279
|
+
);
|
|
12280
|
+
}
|
|
12281
|
+
MosaicApprovalPrompt.displayName = "MosaicApprovalPrompt";
|
|
12173
12282
|
|
|
12174
|
-
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
12283
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
12175
12284
|
//# sourceMappingURL=index.js.map
|
|
12176
12285
|
//# sourceMappingURL=index.js.map
|