@proteos/ui 0.42.1 → 0.42.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -7,8 +7,8 @@ import { HTMLAttributes, ReactNode, AnchorHTMLAttributes, Ref, MouseEvent, Keybo
7
7
  import * as react_aria_components from 'react-aria-components';
8
8
  import { Key, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ComboBoxProps, DateValue, DatePickerProps as DatePickerProps$1, TextFieldProps, InputProps as InputProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, PopoverProps, MenuTrigger as MenuTrigger$1, DialogTriggerProps, ModalOverlayProps, DialogProps, HeadingProps, DisclosureProps, ProgressBarProps as ProgressBarProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SeparatorProps as SeparatorProps$1, SwitchProps as SwitchProps$1, TabsProps, TabListProps, TabProps, TabPanelProps, TextAreaProps, TimeValue, TimeFieldProps as TimeFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from 'react-aria-components';
9
9
  import { ColumnDef, SortingState, OnChangeFn, Row } from '@tanstack/react-table';
10
- import { Message, Conversation, UpdateDraftRequest, ContactAddress, ConversationClient, SendRecipient } from '@proteos/sdk';
11
10
  import * as tailwind_merge from 'tailwind-merge';
11
+ import { Message, Conversation, UpdateDraftRequest, ContactAddress, ConversationClient, SendRecipient } from '@proteos/sdk';
12
12
  import { ClassValue } from 'clsx';
13
13
 
14
14
  declare const attachmentChipStyles: tailwind_variants.TVReturnType<{
@@ -486,6 +486,18 @@ declare function CardTitle({ className, ...props }: HTMLAttributes<HTMLHeadingEl
486
486
  declare function CardFeatureTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
487
487
  declare function CardBody({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
488
488
 
489
+ /** The channel's glyph component. Unknown channels get the generic one. */
490
+ declare function channelIcon(channel: string): LucideIcon;
491
+ interface ChannelIconProps {
492
+ channel: string;
493
+ className?: string;
494
+ /** Accessible name. Omitted (the default) renders the glyph aria-hidden —
495
+ * correct whenever the channel is already named in adjacent text. */
496
+ label?: string;
497
+ }
498
+ /** Thin wrapper over {@link channelIcon} for the common inline case. */
499
+ declare function ChannelIcon({ channel, className, label }: ChannelIconProps): react_jsx_runtime.JSX.Element;
500
+
489
501
  type CheckboxProps = Omit<CheckboxProps$1, 'children'> & {
490
502
  children?: ReactNode;
491
503
  };
@@ -1189,6 +1201,25 @@ interface DraftMessageComposerProps {
1189
1201
  }
1190
1202
  declare function DraftMessageComposer({ messageId, client, onSent, onRejected, onFailed, showActions, className, bodyClassName, }: DraftMessageComposerProps): react_jsx_runtime.JSX.Element;
1191
1203
 
1204
+ /** What a reviewed draft ended up as. The wire shape of the
1205
+ * `present_message_draft` client tool's outcome, and of the value a
1206
+ * host-rendered review modal closes with. */
1207
+ type DraftReviewOutcome = 'sent' | 'rejected' | 'failed';
1208
+ /** Terminal states a draft id can be in, plus the "never was a draft" case. */
1209
+ type TerminalKind = DraftReviewOutcome | 'not-draft';
1210
+ /** Terminal state of the message, or null while it is still reviewable. */
1211
+ declare function terminalKindFor(status: Message['status']): TerminalKind | null;
1212
+ /**
1213
+ * The review-surface narrowing: the outcome a card should settle on, or null
1214
+ * while the draft is still reviewable. A status that was never a draft
1215
+ * (`received`, …) is not an outcome — it leaves the card pending rather than
1216
+ * inventing a decision the human never made.
1217
+ */
1218
+ declare function draftOutcomeFor(status: Message['status']): DraftReviewOutcome | null;
1219
+ /** Narrows the `unknown` a host modal resolves with (a dismissed modal
1220
+ * resolves `undefined`). */
1221
+ declare function isDraftReviewOutcome(value: unknown): value is DraftReviewOutcome;
1222
+
1192
1223
  declare function publishDraftMessageOutcome(messageId: string, outcome: DraftMessageOutcome): void;
1193
1224
  declare function subscribeDraftMessageOutcome(messageId: string, listener: () => void): () => void;
1194
1225
  /**
@@ -1200,6 +1231,125 @@ declare function useDraftMessageOutcome(messageId: string): DraftMessageOutcome
1200
1231
  /** Test-only escape hatch — clears every stored outcome and listener. */
1201
1232
  declare function __resetDraftMessageOutcomes(): void;
1202
1233
 
1234
+ declare const draftMessageCardStyles: tailwind_variants.TVReturnType<{
1235
+ [key: string]: {
1236
+ [key: string]: tailwind_merge.ClassNameValue | {
1237
+ body?: tailwind_merge.ClassNameValue;
1238
+ title?: tailwind_merge.ClassNameValue;
1239
+ icon?: tailwind_merge.ClassNameValue;
1240
+ action?: tailwind_merge.ClassNameValue;
1241
+ outcome?: tailwind_merge.ClassNameValue;
1242
+ root?: tailwind_merge.ClassNameValue;
1243
+ eyebrow?: tailwind_merge.ClassNameValue;
1244
+ recipients?: tailwind_merge.ClassNameValue;
1245
+ };
1246
+ };
1247
+ } | {
1248
+ [x: string]: {
1249
+ [x: string]: tailwind_merge.ClassNameValue | {
1250
+ body?: tailwind_merge.ClassNameValue;
1251
+ title?: tailwind_merge.ClassNameValue;
1252
+ icon?: tailwind_merge.ClassNameValue;
1253
+ action?: tailwind_merge.ClassNameValue;
1254
+ outcome?: tailwind_merge.ClassNameValue;
1255
+ root?: tailwind_merge.ClassNameValue;
1256
+ eyebrow?: tailwind_merge.ClassNameValue;
1257
+ recipients?: tailwind_merge.ClassNameValue;
1258
+ };
1259
+ };
1260
+ } | {}, {
1261
+ root: string[];
1262
+ icon: string[];
1263
+ body: string;
1264
+ eyebrow: string;
1265
+ title: string;
1266
+ recipients: string;
1267
+ action: string[];
1268
+ outcome: string;
1269
+ }, undefined, {
1270
+ [key: string]: {
1271
+ [key: string]: tailwind_merge.ClassNameValue | {
1272
+ body?: tailwind_merge.ClassNameValue;
1273
+ title?: tailwind_merge.ClassNameValue;
1274
+ icon?: tailwind_merge.ClassNameValue;
1275
+ action?: tailwind_merge.ClassNameValue;
1276
+ outcome?: tailwind_merge.ClassNameValue;
1277
+ root?: tailwind_merge.ClassNameValue;
1278
+ eyebrow?: tailwind_merge.ClassNameValue;
1279
+ recipients?: tailwind_merge.ClassNameValue;
1280
+ };
1281
+ };
1282
+ } | {}, {
1283
+ root: string[];
1284
+ icon: string[];
1285
+ body: string;
1286
+ eyebrow: string;
1287
+ title: string;
1288
+ recipients: string;
1289
+ action: string[];
1290
+ outcome: string;
1291
+ }, tailwind_variants.TVReturnType<unknown, {
1292
+ root: string[];
1293
+ icon: string[];
1294
+ body: string;
1295
+ eyebrow: string;
1296
+ title: string;
1297
+ recipients: string;
1298
+ action: string[];
1299
+ outcome: string;
1300
+ }, undefined, unknown, unknown, undefined>>;
1301
+ /** Terminal-state wording. `failed` is deliberately explicit: the human DID
1302
+ * approve the send, and hiding that behind a bare "Failed" reads as though
1303
+ * the review itself failed. */
1304
+ declare const DRAFT_OUTCOME_LABEL: Record<DraftReviewOutcome, string>;
1305
+ interface DraftMessageCardProps {
1306
+ /** Channel slug driving the glyph — see channelIcon. */
1307
+ channel: string;
1308
+ /** Headline: the conversation subject, or the draft's first body line. */
1309
+ title: string;
1310
+ /** Rendered as "To a, b". Empty or omitted hides the row. */
1311
+ recipients?: string[];
1312
+ /** Default 'Draft — awaiting review'. */
1313
+ eyebrow?: ReactNode;
1314
+ /** Default 'Review'. */
1315
+ previewLabel?: string;
1316
+ /** Terminal outcome. Set ⇒ the action is replaced by its status label. */
1317
+ outcome?: DraftReviewOutcome | null;
1318
+ onPreview?: () => void;
1319
+ isPreviewDisabled?: boolean;
1320
+ className?: string;
1321
+ }
1322
+ declare function DraftMessageCard({ channel, title, recipients, eyebrow, previewLabel, outcome, onPreview, isPreviewDisabled, className, }: DraftMessageCardProps): react_jsx_runtime.JSX.Element;
1323
+
1324
+ interface DraftMessageReviewProps {
1325
+ /** The status=draft message to review. */
1326
+ messageId: string;
1327
+ /** Injected fetch surface — see createDraftMessageClient. */
1328
+ client: DraftMessageClient;
1329
+ /**
1330
+ * FULL REPLACEMENT for the preview action's default (open the built-in
1331
+ * modal). When supplied the built-in modal is never rendered. Resolve with
1332
+ * the outcome so the card settles, or with null when the reviewer dismissed
1333
+ * without deciding (the card stays reviewable).
1334
+ */
1335
+ onPreview?: (messageId: string) => Promise<DraftReviewOutcome | null>;
1336
+ /** Fires at most once, when the draft reaches a terminal state — whether it
1337
+ * was decided here, by `onPreview`, or before this card ever mounted. */
1338
+ onOutcome?: (outcome: DraftReviewOutcome, message?: Message) => void;
1339
+ /** The draft could not be loaded. The card renders nothing in that case. */
1340
+ onLoadError?: (error: Error) => void;
1341
+ /** Built-in modal heading. Default 'Review draft'. */
1342
+ modalTitle?: string;
1343
+ /** Built-in modal panel width. Default 'max-w-3xl'. */
1344
+ modalClassName?: string;
1345
+ /** Built-in modal overlay classes — this is where a host raises the z tier
1346
+ * above the surface that launched it. */
1347
+ overlayClassName?: string;
1348
+ previewLabel?: string;
1349
+ className?: string;
1350
+ }
1351
+ declare function DraftMessageReview({ messageId, client, onPreview, onOutcome, onLoadError, modalTitle, modalClassName, overlayClassName, previewLabel, className, }: DraftMessageReviewProps): react_jsx_runtime.JSX.Element | null;
1352
+
1203
1353
  declare const emptyStateStyles: tailwind_variants.TVReturnType<{
1204
1354
  size: {
1205
1355
  sm: {
@@ -2410,4 +2560,4 @@ declare function Tooltip({ className, offset, ...props }: TooltipProps): react_j
2410
2560
 
2411
2561
  declare function cn(...inputs: ClassValue[]): string;
2412
2562
 
2413
- export { ATTRIBUTE_TYPES, ATTRIBUTE_TYPE_ICONS, type ActionsColumnOptions, AttachmentChip, type AttachmentChipProps, type AttachmentChipVariants, AttributePicker, type AttributePickerProps, AttributeType, AttributeTypeIcon, type AttributeTypeIconProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupVariants, type AvatarProps, type AvatarVariants, Badge, BadgeMultiSelect, type BadgeMultiSelectOption, type BadgeMultiSelectProps, type BadgeProps, type BadgeVariants, BooleanCell, type BooleanCellProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariants, COLUMN_DRAG_KIND, Card, CardBody, CardContent, CardEyebrow, CardFeatureTitle, CardFooter, CardHeader, type CardProps, CardTitle, type CardVariants, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChipValue, type ChipValueItemRenderer, type ChipValueProps, type ColumnDragData, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandHint, type CommandHintProps, type CommandHintTone, type CommandProps, type ComparisonOperator, type ComposerAttachment, type ComposerConnectionPicker, type ComposerSendInput, type ComposerValue, CurrencyInput, type CurrencyInputOption, type CurrencyInputProps, type CurrencyInputValue, DataTable, DataTableEmpty, type DataTableEmptyProps, DataTableError, type DataTableErrorProps, type DataTableProps, DataTableSkeleton, type DataTableSkeletonProps, DateCell, type DateCellProps, DatePicker, type DatePickerProps, DateTimeCell, type DateTimeCellProps, DateTimePicker, type DateTimePickerProps, type DraftMessageActions, type DraftMessageClient, DraftMessageComposer, type DraftMessageComposerProps, type DraftMessageOutcome, EmptyState, type EmptyStateProps, type EmptyStateVariants, ErrorAnimation, type ErrorAnimationProps, type FieldAppearance, FieldCaret, type FieldControlVariants, type FieldSize, FileField, type FileFieldProps, type FileFieldValue, FileViewer, FileViewerFallbackCard, type FileViewerFallbackCardProps, type FileViewerFallbackCardVariants, type FileViewerKind, type FileViewerProps, type FileViewerVariants, type FilterElement, type FilterField, type FilterFieldOption, type FilterFieldRelation, type FilterFieldType, type FilterGroup, FilterRow, type FilterRowProps, type FilterValue, FilterValueInput, type FilterValueInputProps, type FilterValueInputRenderer, ImageAttachment, type ImageAttachmentProps, type ImageAttachmentVariants, ImageLightbox, type ImageLightboxProps, type ImageLightboxVariants, type InfiniteQueryLike, Input, type InputProps, Kbd, type KbdProps, type KeyCombo, LinkCell, type LinkCellProps, type LogicalOperator, MAX_COMPOSER_ATTACHMENT_BYTES, Menu, MenuItem, type MenuItemProps, MenuPopover, type MenuPopoverProps, type MenuProps, MenuTrigger, MessageComposer, type MessageComposerProps, Modal, ModalBody, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, type NavItemVariants, NavSection, type NavSectionProps, OPERATORS, type OperatorArity, type OperatorDescriptor, OperatorPicker, type OperatorPickerProps, PROTECTED_COMBOS, Popover, PopoverContent, type PopoverContentProps, PopoverPanelBody, PopoverPanelFooter, PopoverPanelHeader, PressableCard, type PressableCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariants, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RecipientSelect, type RecipientSelectProps, RecordFilterBuilderPanel, type RecordFilterBuilderPanelProps, RecordFilterButton, type RecordFilterButtonProps, RecordFilterChips, type RecordFilterChipsProps, RecordFilterEditor, type RecordFilterEditorProps, RenderChipItemProvider, RenderValueInputProvider, type SearchRecipients, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariants, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonVariants, type SortDirection, SubmenuTrigger, SuccessAnimation, type SuccessAnimationProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderSpacer, type TableProps, TableRow, type TableRowProps, TableScroller, type TableVariants, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTriggerProps, type TabsVariants, TagInput, type TagInputProps, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Tooltip, type TooltipProps, TooltipTrigger, TruncateCell, type TruncateCellProps, type UseCommandOptions, type UseEscapeKeyOptions, type UseInfiniteScrollSentinelOptions, __resetDraftMessageActions, __resetDraftMessageOutcomes, addLeaf as addFilterLeaf, addPendingLeaf, addSubgroup, arityOf, attachmentChipStyles, avatarGroupStyles, avatarStyles, badgeStyles, buttonStyles, cardStyles, cn, countLeaves, createDraftMessageClient, defaultValueFor, draftMessageComposerStyles, emptyStateStyles, fieldControlStyles, fieldErrorStyles, fieldHintStyles, fieldLabelStyles, fileViewerFallbackCardStyles, fileViewerStyles, formatFileSize, formatValue, iconForContentType, imageAttachmentStyles, imageLightboxStyles, isColumnDragData, isEditableTarget, isPreviewableImageName, makeActionsColumn, messageComposerStyles, navItemStyles, operatorById, operatorsForType, parseCombo, progressBarStyles, publishDraftMessageOutcome, rebaseRowOnFieldChange, rebaseRowOnOperatorChange, registerDraftMessageActions, removeLeaf, removeSubgroup, replaceLeaf, segmentedControlStyles, setJoiner, skeletonStyles, subscribeDraftMessageOutcome, tableCellStyles, tableHeaderCellStyles, tabsStyles, updateLeaf, updateSubgroup, useAttributeTypeIcon, useCommand, useDiscoveryActive, useDraftMessageActions, useDraftMessageOutcome, useEscapeKey, useInfiniteScrollSentinel, useRenderChipItem, useRenderValueInput, useShowDetails, viewerKindForContentType, wrapLeafInGroup };
2563
+ export { ATTRIBUTE_TYPES, ATTRIBUTE_TYPE_ICONS, type ActionsColumnOptions, AttachmentChip, type AttachmentChipProps, type AttachmentChipVariants, AttributePicker, type AttributePickerProps, AttributeType, AttributeTypeIcon, type AttributeTypeIconProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupVariants, type AvatarProps, type AvatarVariants, Badge, BadgeMultiSelect, type BadgeMultiSelectOption, type BadgeMultiSelectProps, type BadgeProps, type BadgeVariants, BooleanCell, type BooleanCellProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariants, COLUMN_DRAG_KIND, Card, CardBody, CardContent, CardEyebrow, CardFeatureTitle, CardFooter, CardHeader, type CardProps, CardTitle, type CardVariants, ChannelIcon, type ChannelIconProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChipValue, type ChipValueItemRenderer, type ChipValueProps, type ColumnDragData, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandHint, type CommandHintProps, type CommandHintTone, type CommandProps, type ComparisonOperator, type ComposerAttachment, type ComposerConnectionPicker, type ComposerSendInput, type ComposerValue, CurrencyInput, type CurrencyInputOption, type CurrencyInputProps, type CurrencyInputValue, DRAFT_OUTCOME_LABEL, DataTable, DataTableEmpty, type DataTableEmptyProps, DataTableError, type DataTableErrorProps, type DataTableProps, DataTableSkeleton, type DataTableSkeletonProps, DateCell, type DateCellProps, DatePicker, type DatePickerProps, DateTimeCell, type DateTimeCellProps, DateTimePicker, type DateTimePickerProps, type DraftMessageActions, DraftMessageCard, type DraftMessageCardProps, type DraftMessageClient, DraftMessageComposer, type DraftMessageComposerProps, type DraftMessageOutcome, DraftMessageReview, type DraftMessageReviewProps, type DraftReviewOutcome, EmptyState, type EmptyStateProps, type EmptyStateVariants, ErrorAnimation, type ErrorAnimationProps, type FieldAppearance, FieldCaret, type FieldControlVariants, type FieldSize, FileField, type FileFieldProps, type FileFieldValue, FileViewer, FileViewerFallbackCard, type FileViewerFallbackCardProps, type FileViewerFallbackCardVariants, type FileViewerKind, type FileViewerProps, type FileViewerVariants, type FilterElement, type FilterField, type FilterFieldOption, type FilterFieldRelation, type FilterFieldType, type FilterGroup, FilterRow, type FilterRowProps, type FilterValue, FilterValueInput, type FilterValueInputProps, type FilterValueInputRenderer, ImageAttachment, type ImageAttachmentProps, type ImageAttachmentVariants, ImageLightbox, type ImageLightboxProps, type ImageLightboxVariants, type InfiniteQueryLike, Input, type InputProps, Kbd, type KbdProps, type KeyCombo, LinkCell, type LinkCellProps, type LogicalOperator, MAX_COMPOSER_ATTACHMENT_BYTES, Menu, MenuItem, type MenuItemProps, MenuPopover, type MenuPopoverProps, type MenuProps, MenuTrigger, MessageComposer, type MessageComposerProps, Modal, ModalBody, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, type NavItemVariants, NavSection, type NavSectionProps, OPERATORS, type OperatorArity, type OperatorDescriptor, OperatorPicker, type OperatorPickerProps, PROTECTED_COMBOS, Popover, PopoverContent, type PopoverContentProps, PopoverPanelBody, PopoverPanelFooter, PopoverPanelHeader, PressableCard, type PressableCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariants, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RecipientSelect, type RecipientSelectProps, RecordFilterBuilderPanel, type RecordFilterBuilderPanelProps, RecordFilterButton, type RecordFilterButtonProps, RecordFilterChips, type RecordFilterChipsProps, RecordFilterEditor, type RecordFilterEditorProps, RenderChipItemProvider, RenderValueInputProvider, type SearchRecipients, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariants, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonVariants, type SortDirection, SubmenuTrigger, SuccessAnimation, type SuccessAnimationProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderSpacer, type TableProps, TableRow, type TableRowProps, TableScroller, type TableVariants, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTriggerProps, type TabsVariants, TagInput, type TagInputProps, type TerminalKind, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Tooltip, type TooltipProps, TooltipTrigger, TruncateCell, type TruncateCellProps, type UseCommandOptions, type UseEscapeKeyOptions, type UseInfiniteScrollSentinelOptions, __resetDraftMessageActions, __resetDraftMessageOutcomes, addLeaf as addFilterLeaf, addPendingLeaf, addSubgroup, arityOf, attachmentChipStyles, avatarGroupStyles, avatarStyles, badgeStyles, buttonStyles, cardStyles, channelIcon, cn, countLeaves, createDraftMessageClient, defaultValueFor, draftMessageCardStyles, draftMessageComposerStyles, draftOutcomeFor, emptyStateStyles, fieldControlStyles, fieldErrorStyles, fieldHintStyles, fieldLabelStyles, fileViewerFallbackCardStyles, fileViewerStyles, formatFileSize, formatValue, iconForContentType, imageAttachmentStyles, imageLightboxStyles, isColumnDragData, isDraftReviewOutcome, isEditableTarget, isPreviewableImageName, makeActionsColumn, messageComposerStyles, navItemStyles, operatorById, operatorsForType, parseCombo, progressBarStyles, publishDraftMessageOutcome, rebaseRowOnFieldChange, rebaseRowOnOperatorChange, registerDraftMessageActions, removeLeaf, removeSubgroup, replaceLeaf, segmentedControlStyles, setJoiner, skeletonStyles, subscribeDraftMessageOutcome, tableCellStyles, tableHeaderCellStyles, tabsStyles, terminalKindFor, updateLeaf, updateSubgroup, useAttributeTypeIcon, useCommand, useDiscoveryActive, useDraftMessageActions, useDraftMessageOutcome, useEscapeKey, useInfiniteScrollSentinel, useRenderChipItem, useRenderValueInput, useShowDetails, viewerKindForContentType, wrapLeafInGroup };
package/dist/index.d.ts CHANGED
@@ -7,8 +7,8 @@ import { HTMLAttributes, ReactNode, AnchorHTMLAttributes, Ref, MouseEvent, Keybo
7
7
  import * as react_aria_components from 'react-aria-components';
8
8
  import { Key, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxGroupProps as CheckboxGroupProps$1, ComboBoxProps, DateValue, DatePickerProps as DatePickerProps$1, TextFieldProps, InputProps as InputProps$1, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, PopoverProps, MenuTrigger as MenuTrigger$1, DialogTriggerProps, ModalOverlayProps, DialogProps, HeadingProps, DisclosureProps, ProgressBarProps as ProgressBarProps$1, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SeparatorProps as SeparatorProps$1, SwitchProps as SwitchProps$1, TabsProps, TabListProps, TabProps, TabPanelProps, TextAreaProps, TimeValue, TimeFieldProps as TimeFieldProps$1, TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from 'react-aria-components';
9
9
  import { ColumnDef, SortingState, OnChangeFn, Row } from '@tanstack/react-table';
10
- import { Message, Conversation, UpdateDraftRequest, ContactAddress, ConversationClient, SendRecipient } from '@proteos/sdk';
11
10
  import * as tailwind_merge from 'tailwind-merge';
11
+ import { Message, Conversation, UpdateDraftRequest, ContactAddress, ConversationClient, SendRecipient } from '@proteos/sdk';
12
12
  import { ClassValue } from 'clsx';
13
13
 
14
14
  declare const attachmentChipStyles: tailwind_variants.TVReturnType<{
@@ -486,6 +486,18 @@ declare function CardTitle({ className, ...props }: HTMLAttributes<HTMLHeadingEl
486
486
  declare function CardFeatureTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
487
487
  declare function CardBody({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
488
488
 
489
+ /** The channel's glyph component. Unknown channels get the generic one. */
490
+ declare function channelIcon(channel: string): LucideIcon;
491
+ interface ChannelIconProps {
492
+ channel: string;
493
+ className?: string;
494
+ /** Accessible name. Omitted (the default) renders the glyph aria-hidden —
495
+ * correct whenever the channel is already named in adjacent text. */
496
+ label?: string;
497
+ }
498
+ /** Thin wrapper over {@link channelIcon} for the common inline case. */
499
+ declare function ChannelIcon({ channel, className, label }: ChannelIconProps): react_jsx_runtime.JSX.Element;
500
+
489
501
  type CheckboxProps = Omit<CheckboxProps$1, 'children'> & {
490
502
  children?: ReactNode;
491
503
  };
@@ -1189,6 +1201,25 @@ interface DraftMessageComposerProps {
1189
1201
  }
1190
1202
  declare function DraftMessageComposer({ messageId, client, onSent, onRejected, onFailed, showActions, className, bodyClassName, }: DraftMessageComposerProps): react_jsx_runtime.JSX.Element;
1191
1203
 
1204
+ /** What a reviewed draft ended up as. The wire shape of the
1205
+ * `present_message_draft` client tool's outcome, and of the value a
1206
+ * host-rendered review modal closes with. */
1207
+ type DraftReviewOutcome = 'sent' | 'rejected' | 'failed';
1208
+ /** Terminal states a draft id can be in, plus the "never was a draft" case. */
1209
+ type TerminalKind = DraftReviewOutcome | 'not-draft';
1210
+ /** Terminal state of the message, or null while it is still reviewable. */
1211
+ declare function terminalKindFor(status: Message['status']): TerminalKind | null;
1212
+ /**
1213
+ * The review-surface narrowing: the outcome a card should settle on, or null
1214
+ * while the draft is still reviewable. A status that was never a draft
1215
+ * (`received`, …) is not an outcome — it leaves the card pending rather than
1216
+ * inventing a decision the human never made.
1217
+ */
1218
+ declare function draftOutcomeFor(status: Message['status']): DraftReviewOutcome | null;
1219
+ /** Narrows the `unknown` a host modal resolves with (a dismissed modal
1220
+ * resolves `undefined`). */
1221
+ declare function isDraftReviewOutcome(value: unknown): value is DraftReviewOutcome;
1222
+
1192
1223
  declare function publishDraftMessageOutcome(messageId: string, outcome: DraftMessageOutcome): void;
1193
1224
  declare function subscribeDraftMessageOutcome(messageId: string, listener: () => void): () => void;
1194
1225
  /**
@@ -1200,6 +1231,125 @@ declare function useDraftMessageOutcome(messageId: string): DraftMessageOutcome
1200
1231
  /** Test-only escape hatch — clears every stored outcome and listener. */
1201
1232
  declare function __resetDraftMessageOutcomes(): void;
1202
1233
 
1234
+ declare const draftMessageCardStyles: tailwind_variants.TVReturnType<{
1235
+ [key: string]: {
1236
+ [key: string]: tailwind_merge.ClassNameValue | {
1237
+ body?: tailwind_merge.ClassNameValue;
1238
+ title?: tailwind_merge.ClassNameValue;
1239
+ icon?: tailwind_merge.ClassNameValue;
1240
+ action?: tailwind_merge.ClassNameValue;
1241
+ outcome?: tailwind_merge.ClassNameValue;
1242
+ root?: tailwind_merge.ClassNameValue;
1243
+ eyebrow?: tailwind_merge.ClassNameValue;
1244
+ recipients?: tailwind_merge.ClassNameValue;
1245
+ };
1246
+ };
1247
+ } | {
1248
+ [x: string]: {
1249
+ [x: string]: tailwind_merge.ClassNameValue | {
1250
+ body?: tailwind_merge.ClassNameValue;
1251
+ title?: tailwind_merge.ClassNameValue;
1252
+ icon?: tailwind_merge.ClassNameValue;
1253
+ action?: tailwind_merge.ClassNameValue;
1254
+ outcome?: tailwind_merge.ClassNameValue;
1255
+ root?: tailwind_merge.ClassNameValue;
1256
+ eyebrow?: tailwind_merge.ClassNameValue;
1257
+ recipients?: tailwind_merge.ClassNameValue;
1258
+ };
1259
+ };
1260
+ } | {}, {
1261
+ root: string[];
1262
+ icon: string[];
1263
+ body: string;
1264
+ eyebrow: string;
1265
+ title: string;
1266
+ recipients: string;
1267
+ action: string[];
1268
+ outcome: string;
1269
+ }, undefined, {
1270
+ [key: string]: {
1271
+ [key: string]: tailwind_merge.ClassNameValue | {
1272
+ body?: tailwind_merge.ClassNameValue;
1273
+ title?: tailwind_merge.ClassNameValue;
1274
+ icon?: tailwind_merge.ClassNameValue;
1275
+ action?: tailwind_merge.ClassNameValue;
1276
+ outcome?: tailwind_merge.ClassNameValue;
1277
+ root?: tailwind_merge.ClassNameValue;
1278
+ eyebrow?: tailwind_merge.ClassNameValue;
1279
+ recipients?: tailwind_merge.ClassNameValue;
1280
+ };
1281
+ };
1282
+ } | {}, {
1283
+ root: string[];
1284
+ icon: string[];
1285
+ body: string;
1286
+ eyebrow: string;
1287
+ title: string;
1288
+ recipients: string;
1289
+ action: string[];
1290
+ outcome: string;
1291
+ }, tailwind_variants.TVReturnType<unknown, {
1292
+ root: string[];
1293
+ icon: string[];
1294
+ body: string;
1295
+ eyebrow: string;
1296
+ title: string;
1297
+ recipients: string;
1298
+ action: string[];
1299
+ outcome: string;
1300
+ }, undefined, unknown, unknown, undefined>>;
1301
+ /** Terminal-state wording. `failed` is deliberately explicit: the human DID
1302
+ * approve the send, and hiding that behind a bare "Failed" reads as though
1303
+ * the review itself failed. */
1304
+ declare const DRAFT_OUTCOME_LABEL: Record<DraftReviewOutcome, string>;
1305
+ interface DraftMessageCardProps {
1306
+ /** Channel slug driving the glyph — see channelIcon. */
1307
+ channel: string;
1308
+ /** Headline: the conversation subject, or the draft's first body line. */
1309
+ title: string;
1310
+ /** Rendered as "To a, b". Empty or omitted hides the row. */
1311
+ recipients?: string[];
1312
+ /** Default 'Draft — awaiting review'. */
1313
+ eyebrow?: ReactNode;
1314
+ /** Default 'Review'. */
1315
+ previewLabel?: string;
1316
+ /** Terminal outcome. Set ⇒ the action is replaced by its status label. */
1317
+ outcome?: DraftReviewOutcome | null;
1318
+ onPreview?: () => void;
1319
+ isPreviewDisabled?: boolean;
1320
+ className?: string;
1321
+ }
1322
+ declare function DraftMessageCard({ channel, title, recipients, eyebrow, previewLabel, outcome, onPreview, isPreviewDisabled, className, }: DraftMessageCardProps): react_jsx_runtime.JSX.Element;
1323
+
1324
+ interface DraftMessageReviewProps {
1325
+ /** The status=draft message to review. */
1326
+ messageId: string;
1327
+ /** Injected fetch surface — see createDraftMessageClient. */
1328
+ client: DraftMessageClient;
1329
+ /**
1330
+ * FULL REPLACEMENT for the preview action's default (open the built-in
1331
+ * modal). When supplied the built-in modal is never rendered. Resolve with
1332
+ * the outcome so the card settles, or with null when the reviewer dismissed
1333
+ * without deciding (the card stays reviewable).
1334
+ */
1335
+ onPreview?: (messageId: string) => Promise<DraftReviewOutcome | null>;
1336
+ /** Fires at most once, when the draft reaches a terminal state — whether it
1337
+ * was decided here, by `onPreview`, or before this card ever mounted. */
1338
+ onOutcome?: (outcome: DraftReviewOutcome, message?: Message) => void;
1339
+ /** The draft could not be loaded. The card renders nothing in that case. */
1340
+ onLoadError?: (error: Error) => void;
1341
+ /** Built-in modal heading. Default 'Review draft'. */
1342
+ modalTitle?: string;
1343
+ /** Built-in modal panel width. Default 'max-w-3xl'. */
1344
+ modalClassName?: string;
1345
+ /** Built-in modal overlay classes — this is where a host raises the z tier
1346
+ * above the surface that launched it. */
1347
+ overlayClassName?: string;
1348
+ previewLabel?: string;
1349
+ className?: string;
1350
+ }
1351
+ declare function DraftMessageReview({ messageId, client, onPreview, onOutcome, onLoadError, modalTitle, modalClassName, overlayClassName, previewLabel, className, }: DraftMessageReviewProps): react_jsx_runtime.JSX.Element | null;
1352
+
1203
1353
  declare const emptyStateStyles: tailwind_variants.TVReturnType<{
1204
1354
  size: {
1205
1355
  sm: {
@@ -2410,4 +2560,4 @@ declare function Tooltip({ className, offset, ...props }: TooltipProps): react_j
2410
2560
 
2411
2561
  declare function cn(...inputs: ClassValue[]): string;
2412
2562
 
2413
- export { ATTRIBUTE_TYPES, ATTRIBUTE_TYPE_ICONS, type ActionsColumnOptions, AttachmentChip, type AttachmentChipProps, type AttachmentChipVariants, AttributePicker, type AttributePickerProps, AttributeType, AttributeTypeIcon, type AttributeTypeIconProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupVariants, type AvatarProps, type AvatarVariants, Badge, BadgeMultiSelect, type BadgeMultiSelectOption, type BadgeMultiSelectProps, type BadgeProps, type BadgeVariants, BooleanCell, type BooleanCellProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariants, COLUMN_DRAG_KIND, Card, CardBody, CardContent, CardEyebrow, CardFeatureTitle, CardFooter, CardHeader, type CardProps, CardTitle, type CardVariants, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChipValue, type ChipValueItemRenderer, type ChipValueProps, type ColumnDragData, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandHint, type CommandHintProps, type CommandHintTone, type CommandProps, type ComparisonOperator, type ComposerAttachment, type ComposerConnectionPicker, type ComposerSendInput, type ComposerValue, CurrencyInput, type CurrencyInputOption, type CurrencyInputProps, type CurrencyInputValue, DataTable, DataTableEmpty, type DataTableEmptyProps, DataTableError, type DataTableErrorProps, type DataTableProps, DataTableSkeleton, type DataTableSkeletonProps, DateCell, type DateCellProps, DatePicker, type DatePickerProps, DateTimeCell, type DateTimeCellProps, DateTimePicker, type DateTimePickerProps, type DraftMessageActions, type DraftMessageClient, DraftMessageComposer, type DraftMessageComposerProps, type DraftMessageOutcome, EmptyState, type EmptyStateProps, type EmptyStateVariants, ErrorAnimation, type ErrorAnimationProps, type FieldAppearance, FieldCaret, type FieldControlVariants, type FieldSize, FileField, type FileFieldProps, type FileFieldValue, FileViewer, FileViewerFallbackCard, type FileViewerFallbackCardProps, type FileViewerFallbackCardVariants, type FileViewerKind, type FileViewerProps, type FileViewerVariants, type FilterElement, type FilterField, type FilterFieldOption, type FilterFieldRelation, type FilterFieldType, type FilterGroup, FilterRow, type FilterRowProps, type FilterValue, FilterValueInput, type FilterValueInputProps, type FilterValueInputRenderer, ImageAttachment, type ImageAttachmentProps, type ImageAttachmentVariants, ImageLightbox, type ImageLightboxProps, type ImageLightboxVariants, type InfiniteQueryLike, Input, type InputProps, Kbd, type KbdProps, type KeyCombo, LinkCell, type LinkCellProps, type LogicalOperator, MAX_COMPOSER_ATTACHMENT_BYTES, Menu, MenuItem, type MenuItemProps, MenuPopover, type MenuPopoverProps, type MenuProps, MenuTrigger, MessageComposer, type MessageComposerProps, Modal, ModalBody, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, type NavItemVariants, NavSection, type NavSectionProps, OPERATORS, type OperatorArity, type OperatorDescriptor, OperatorPicker, type OperatorPickerProps, PROTECTED_COMBOS, Popover, PopoverContent, type PopoverContentProps, PopoverPanelBody, PopoverPanelFooter, PopoverPanelHeader, PressableCard, type PressableCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariants, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RecipientSelect, type RecipientSelectProps, RecordFilterBuilderPanel, type RecordFilterBuilderPanelProps, RecordFilterButton, type RecordFilterButtonProps, RecordFilterChips, type RecordFilterChipsProps, RecordFilterEditor, type RecordFilterEditorProps, RenderChipItemProvider, RenderValueInputProvider, type SearchRecipients, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariants, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonVariants, type SortDirection, SubmenuTrigger, SuccessAnimation, type SuccessAnimationProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderSpacer, type TableProps, TableRow, type TableRowProps, TableScroller, type TableVariants, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTriggerProps, type TabsVariants, TagInput, type TagInputProps, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Tooltip, type TooltipProps, TooltipTrigger, TruncateCell, type TruncateCellProps, type UseCommandOptions, type UseEscapeKeyOptions, type UseInfiniteScrollSentinelOptions, __resetDraftMessageActions, __resetDraftMessageOutcomes, addLeaf as addFilterLeaf, addPendingLeaf, addSubgroup, arityOf, attachmentChipStyles, avatarGroupStyles, avatarStyles, badgeStyles, buttonStyles, cardStyles, cn, countLeaves, createDraftMessageClient, defaultValueFor, draftMessageComposerStyles, emptyStateStyles, fieldControlStyles, fieldErrorStyles, fieldHintStyles, fieldLabelStyles, fileViewerFallbackCardStyles, fileViewerStyles, formatFileSize, formatValue, iconForContentType, imageAttachmentStyles, imageLightboxStyles, isColumnDragData, isEditableTarget, isPreviewableImageName, makeActionsColumn, messageComposerStyles, navItemStyles, operatorById, operatorsForType, parseCombo, progressBarStyles, publishDraftMessageOutcome, rebaseRowOnFieldChange, rebaseRowOnOperatorChange, registerDraftMessageActions, removeLeaf, removeSubgroup, replaceLeaf, segmentedControlStyles, setJoiner, skeletonStyles, subscribeDraftMessageOutcome, tableCellStyles, tableHeaderCellStyles, tabsStyles, updateLeaf, updateSubgroup, useAttributeTypeIcon, useCommand, useDiscoveryActive, useDraftMessageActions, useDraftMessageOutcome, useEscapeKey, useInfiniteScrollSentinel, useRenderChipItem, useRenderValueInput, useShowDetails, viewerKindForContentType, wrapLeafInGroup };
2563
+ export { ATTRIBUTE_TYPES, ATTRIBUTE_TYPE_ICONS, type ActionsColumnOptions, AttachmentChip, type AttachmentChipProps, type AttachmentChipVariants, AttributePicker, type AttributePickerProps, AttributeType, AttributeTypeIcon, type AttributeTypeIconProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupVariants, type AvatarProps, type AvatarVariants, Badge, BadgeMultiSelect, type BadgeMultiSelectOption, type BadgeMultiSelectProps, type BadgeProps, type BadgeVariants, BooleanCell, type BooleanCellProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, type ButtonVariants, COLUMN_DRAG_KIND, Card, CardBody, CardContent, CardEyebrow, CardFeatureTitle, CardFooter, CardHeader, type CardProps, CardTitle, type CardVariants, ChannelIcon, type ChannelIconProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, ChipValue, type ChipValueItemRenderer, type ChipValueProps, type ColumnDragData, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandHint, type CommandHintProps, type CommandHintTone, type CommandProps, type ComparisonOperator, type ComposerAttachment, type ComposerConnectionPicker, type ComposerSendInput, type ComposerValue, CurrencyInput, type CurrencyInputOption, type CurrencyInputProps, type CurrencyInputValue, DRAFT_OUTCOME_LABEL, DataTable, DataTableEmpty, type DataTableEmptyProps, DataTableError, type DataTableErrorProps, type DataTableProps, DataTableSkeleton, type DataTableSkeletonProps, DateCell, type DateCellProps, DatePicker, type DatePickerProps, DateTimeCell, type DateTimeCellProps, DateTimePicker, type DateTimePickerProps, type DraftMessageActions, DraftMessageCard, type DraftMessageCardProps, type DraftMessageClient, DraftMessageComposer, type DraftMessageComposerProps, type DraftMessageOutcome, DraftMessageReview, type DraftMessageReviewProps, type DraftReviewOutcome, EmptyState, type EmptyStateProps, type EmptyStateVariants, ErrorAnimation, type ErrorAnimationProps, type FieldAppearance, FieldCaret, type FieldControlVariants, type FieldSize, FileField, type FileFieldProps, type FileFieldValue, FileViewer, FileViewerFallbackCard, type FileViewerFallbackCardProps, type FileViewerFallbackCardVariants, type FileViewerKind, type FileViewerProps, type FileViewerVariants, type FilterElement, type FilterField, type FilterFieldOption, type FilterFieldRelation, type FilterFieldType, type FilterGroup, FilterRow, type FilterRowProps, type FilterValue, FilterValueInput, type FilterValueInputProps, type FilterValueInputRenderer, ImageAttachment, type ImageAttachmentProps, type ImageAttachmentVariants, ImageLightbox, type ImageLightboxProps, type ImageLightboxVariants, type InfiniteQueryLike, Input, type InputProps, Kbd, type KbdProps, type KeyCombo, LinkCell, type LinkCellProps, type LogicalOperator, MAX_COMPOSER_ATTACHMENT_BYTES, Menu, MenuItem, type MenuItemProps, MenuPopover, type MenuPopoverProps, type MenuProps, MenuTrigger, MessageComposer, type MessageComposerProps, Modal, ModalBody, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalTitle, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, type NavItemVariants, NavSection, type NavSectionProps, OPERATORS, type OperatorArity, type OperatorDescriptor, OperatorPicker, type OperatorPickerProps, PROTECTED_COMBOS, Popover, PopoverContent, type PopoverContentProps, PopoverPanelBody, PopoverPanelFooter, PopoverPanelHeader, PressableCard, type PressableCardProps, ProgressBar, type ProgressBarProps, type ProgressBarVariants, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RecipientSelect, type RecipientSelectProps, RecordFilterBuilderPanel, type RecordFilterBuilderPanelProps, RecordFilterButton, type RecordFilterButtonProps, RecordFilterChips, type RecordFilterChipsProps, RecordFilterEditor, type RecordFilterEditorProps, RenderChipItemProvider, RenderValueInputProvider, type SearchRecipients, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SegmentedControlVariants, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonVariants, type SortDirection, SubmenuTrigger, SuccessAnimation, type SuccessAnimationProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderSpacer, type TableProps, TableRow, type TableRowProps, TableScroller, type TableVariants, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, type TabsTriggerProps, type TabsVariants, TagInput, type TagInputProps, type TerminalKind, Textarea, type TextareaProps, TimeField, type TimeFieldProps, Tooltip, type TooltipProps, TooltipTrigger, TruncateCell, type TruncateCellProps, type UseCommandOptions, type UseEscapeKeyOptions, type UseInfiniteScrollSentinelOptions, __resetDraftMessageActions, __resetDraftMessageOutcomes, addLeaf as addFilterLeaf, addPendingLeaf, addSubgroup, arityOf, attachmentChipStyles, avatarGroupStyles, avatarStyles, badgeStyles, buttonStyles, cardStyles, channelIcon, cn, countLeaves, createDraftMessageClient, defaultValueFor, draftMessageCardStyles, draftMessageComposerStyles, draftOutcomeFor, emptyStateStyles, fieldControlStyles, fieldErrorStyles, fieldHintStyles, fieldLabelStyles, fileViewerFallbackCardStyles, fileViewerStyles, formatFileSize, formatValue, iconForContentType, imageAttachmentStyles, imageLightboxStyles, isColumnDragData, isDraftReviewOutcome, isEditableTarget, isPreviewableImageName, makeActionsColumn, messageComposerStyles, navItemStyles, operatorById, operatorsForType, parseCombo, progressBarStyles, publishDraftMessageOutcome, rebaseRowOnFieldChange, rebaseRowOnOperatorChange, registerDraftMessageActions, removeLeaf, removeSubgroup, replaceLeaf, segmentedControlStyles, setJoiner, skeletonStyles, subscribeDraftMessageOutcome, tableCellStyles, tableHeaderCellStyles, tabsStyles, terminalKindFor, updateLeaf, updateSubgroup, useAttributeTypeIcon, useCommand, useDiscoveryActive, useDraftMessageActions, useDraftMessageOutcome, useEscapeKey, useInfiniteScrollSentinel, useRenderChipItem, useRenderValueInput, useShowDetails, viewerKindForContentType, wrapLeafInGroup };