@tensor_1/react 2.18.0 → 2.19.0

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.
Files changed (53) hide show
  1. package/README.md +102 -1
  2. package/dist/components/Comments.d.ts +18 -2
  3. package/dist/components/Comments.js +37 -12
  4. package/dist/components/EditorIcons.d.ts +39 -0
  5. package/dist/components/EditorIcons.js +51 -0
  6. package/dist/components/EmojiGlyph.d.ts +10 -0
  7. package/dist/components/EmojiGlyph.js +18 -0
  8. package/dist/components/EmojiPicker.d.ts +60 -0
  9. package/dist/components/EmojiPicker.js +277 -0
  10. package/dist/components/Markdown.d.ts +36 -0
  11. package/dist/components/Markdown.js +104 -0
  12. package/dist/components/ReactionBar.d.ts +57 -0
  13. package/dist/components/ReactionBar.js +81 -0
  14. package/dist/components/RelationshipGraph.js +23 -4
  15. package/dist/components/RichTextEditor.d.ts +128 -0
  16. package/dist/components/RichTextEditor.js +954 -0
  17. package/dist/components/SaveStatus.d.ts +32 -0
  18. package/dist/components/SaveStatus.js +21 -0
  19. package/dist/components/Tabs.d.ts +10 -3
  20. package/dist/components/Tabs.js +5 -3
  21. package/dist/emoji-image-WQLh8ZQP.d.cts +128 -0
  22. package/dist/emoji-image.d.ts +25 -0
  23. package/dist/emoji-image.js +80 -0
  24. package/dist/emoji-model.d.ts +66 -0
  25. package/dist/emoji-model.js +108 -0
  26. package/dist/emoji.cjs +871 -0
  27. package/dist/emoji.d.cts +57 -0
  28. package/dist/emoji.d.ts +6 -0
  29. package/dist/emoji.js +18 -0
  30. package/dist/index.cjs +587 -519
  31. package/dist/index.d.cts +59 -64
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +3 -0
  34. package/dist/markdown-model.d.ts +75 -0
  35. package/dist/markdown-model.js +438 -0
  36. package/dist/markdown.cjs +585 -0
  37. package/dist/markdown.d.cts +115 -0
  38. package/dist/markdown.d.ts +4 -0
  39. package/dist/markdown.js +9 -0
  40. package/dist/overlay-position-CEGSz6Z2.d.cts +59 -0
  41. package/dist/rich-text/emoji-items.d.ts +14 -0
  42. package/dist/rich-text/emoji-items.js +7 -0
  43. package/dist/rich-text/pipeline.d.ts +91 -0
  44. package/dist/rich-text/pipeline.js +379 -0
  45. package/dist/rich-text/round-trip.d.ts +24 -0
  46. package/dist/rich-text/round-trip.js +11 -0
  47. package/dist/rich-text.cjs +2578 -0
  48. package/dist/rich-text.d.cts +148 -0
  49. package/dist/rich-text.d.ts +8 -0
  50. package/dist/rich-text.js +10 -0
  51. package/dist/url-policy.d.ts +9 -0
  52. package/dist/url-policy.js +11 -0
  53. package/package.json +82 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { RefObject, ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, AriaAttributes, HTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, AnchorHTMLAttributes, DetailsHTMLAttributes, TdHTMLAttributes, TableHTMLAttributes, ThHTMLAttributes } from 'react';
3
+ import { P as Placement } from './overlay-position-CEGSz6Z2.cjs';
4
+ export { A as Align, a as PositionOptions, b as PositionResult, R as Rect, S as Side, c as Size, d as computePosition } from './overlay-position-CEGSz6Z2.cjs';
3
5
 
4
6
  declare function cx(...args: (string | false | null | undefined | 0)[]): string;
5
7
 
@@ -169,64 +171,6 @@ interface UseVirtualRowsResult<T> {
169
171
  */
170
172
  declare function useVirtualRows<T>(rows: readonly T[], { rowHeight, overscan, threshold }: UseVirtualRowsOptions): UseVirtualRowsResult<T>;
171
173
 
172
- /**
173
- * uix overlay positioning — framework-agnostic, dependency-free anchored placement.
174
- *
175
- * Pure geometry (no DOM): given the anchor's rect, the floating element's size, and
176
- * the viewport, compute where to put the floating element with two behaviours:
177
- * • flip — if the preferred side doesn't fit, use the opposite side (or whichever
178
- * side has more room);
179
- * • shift — slide along the cross axis so the element stays within the viewport.
180
- *
181
- * The React hook (useAnchoredPosition) and the vanilla styleguide both feed this
182
- * getBoundingClientRect() values, so anchored overlays land in the same place in every
183
- * browser — instead of relying on CSS anchor() positioning, which is Chromium-only and
184
- * silently detaches the overlay from its trigger everywhere else (UIX-FIX-02).
185
- *
186
- * Everything here is deterministic and unit-tested (see overlay-position.test.mjs).
187
- */
188
- type Side = 'top' | 'bottom' | 'left' | 'right';
189
- type Align = 'start' | 'center' | 'end';
190
- type Placement = Side | `${Side}-${Align}`;
191
- /** A viewport-space rectangle, as returned by getBoundingClientRect(). */
192
- interface Rect {
193
- x: number;
194
- y: number;
195
- width: number;
196
- height: number;
197
- }
198
- interface Size {
199
- width: number;
200
- height: number;
201
- }
202
- interface PositionOptions {
203
- /** Preferred placement. Default `'bottom-start'`; a bare side (e.g. `'top'`) centers on the cross axis. */
204
- placement?: Placement;
205
- /** Gap between the anchor and the floating element, in px. Default 6. */
206
- offset?: number;
207
- /** Minimum gap kept from each viewport edge when shifting, in px. Default 8. */
208
- padding?: number;
209
- /** Flip to the opposite side when the preferred one doesn't fit. Default true. */
210
- flip?: boolean;
211
- /** Slide along the cross axis to stay on-screen. Default true. */
212
- shift?: boolean;
213
- }
214
- interface PositionResult {
215
- /** Viewport-space left, for `position: fixed`. */
216
- x: number;
217
- /** Viewport-space top, for `position: fixed`. */
218
- y: number;
219
- /** The placement actually used (after any flip). */
220
- placement: Placement;
221
- side: Side;
222
- align: Align;
223
- }
224
- /**
225
- * Compute the floating element's viewport-space position anchored to `anchor`.
226
- * Coordinates are for `position: fixed` (same space as getBoundingClientRect).
227
- */
228
- declare function computePosition(anchor: Rect, floating: Size, viewport: Size, options?: PositionOptions): PositionResult;
229
-
230
174
  interface UseAnchoredPositionOptions {
231
175
  /** Reposition while true, and (re)attach scroll/resize listeners. */
232
176
  open: boolean;
@@ -612,14 +556,21 @@ interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
612
556
  /** The owning `<Tab>`'s value — the panel renders only while that tab is selected. */
613
557
  value: string;
614
558
  children?: ReactNode;
559
+ /**
560
+ * Keep the panel mounted while another tab is selected, `hidden` instead of removed.
561
+ * Opt in when leaving the tab would throw away work or a fetch the user already paid
562
+ * for — a loaded list, a half-filled form, a scroll position. Off by default: the
563
+ * panel's subtree then costs nothing until it is first shown.
564
+ */
565
+ keepMounted?: boolean;
615
566
  }
616
567
  /**
617
568
  * The tabpanel paired with a `<Tab>` by `value` (UIX-A11Y-2): labelled by its tab,
618
569
  * `tabIndex 0` so Tab from the tablist lands in the content, rendered only while
619
- * selected. Place it as a direct child of `<Tabs>` — it is hoisted out of the tablist —
620
- * or anywhere the Tabs context reaches.
570
+ * selected — or kept `hidden` with `keepMounted`. Place it as a direct child of
571
+ * `<Tabs>` — it is hoisted out of the tablist — or anywhere the Tabs context reaches.
621
572
  */
622
- declare function TabPanel({ value, children, ...props }: TabPanelProps): react.JSX.Element | null;
573
+ declare function TabPanel({ value, children, keepMounted, ...props }: TabPanelProps): react.JSX.Element | null;
623
574
 
624
575
  type ShellNav = 'full' | 'rail' | 'hidden';
625
576
  interface AppShellProps extends HTMLAttributes<HTMLDivElement> {
@@ -1100,9 +1051,53 @@ interface CommentProps extends HTMLAttributes<HTMLDivElement> {
1100
1051
  author?: ReactNode;
1101
1052
  meta?: ReactNode;
1102
1053
  children?: ReactNode;
1054
+ /**
1055
+ * `person` (default) is someone's message. `system` is an event the product recorded —
1056
+ * a status change, an assignment — drawn as chrome rather than as a speech bubble, and
1057
+ * bylined with `systemLabel` instead of a person's name.
1058
+ */
1059
+ variant?: 'person' | 'system';
1060
+ /** Byline for `variant="system"` when no `author` is given. Default "System". */
1061
+ systemLabel?: string;
1062
+ /** The message this one answers, quoted above the body. Text or a link to it. */
1063
+ replyTo?: ReactNode;
1064
+ /** Label on the quote. Default "In reply to". */
1065
+ replyToLabel?: string;
1103
1066
  }
1104
- /** A single comment over `.uix-comment` (avatar column + body). */
1105
- declare function Comment({ avatar, author, meta, children, className, ...props }: CommentProps): react.JSX.Element;
1067
+ /**
1068
+ * A single comment over `.uix-comment` (avatar column + body). `variant="system"` marks
1069
+ * product events apart from people; `replyTo` quotes the answered message. Mentions
1070
+ * inside the body use the `.uix-mention` token.
1071
+ */
1072
+ declare function Comment({ avatar, author, meta, children, className, variant, systemLabel, replyTo, replyToLabel, ...props }: CommentProps): react.JSX.Element;
1073
+
1074
+ type SaveStatusState = 'idle' | 'saving' | 'saved' | 'failed';
1075
+ /** Every visible or announced string. Pass translations; English defaults fill the gaps. */
1076
+ interface SaveStatusLabels {
1077
+ saving: string;
1078
+ saved: string;
1079
+ failed: string;
1080
+ retry: string;
1081
+ }
1082
+ declare const DEFAULT_SAVE_STATUS_LABELS: SaveStatusLabels;
1083
+ interface SaveStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
1084
+ /** Where the save is. `idle` shows nothing but keeps the live region in place. */
1085
+ state: SaveStatusState;
1086
+ labels?: Partial<SaveStatusLabels>;
1087
+ /** Offered as a button only while `state` is `failed`. */
1088
+ onRetry?: () => void;
1089
+ }
1090
+ /**
1091
+ * Inline save feedback over `.uix-save-status`: saving → saved → failed, with a retry.
1092
+ * For autosave and inline edits, where a toast would be too loud and silence leaves the
1093
+ * user guessing (LD-13).
1094
+ *
1095
+ * The status text sits in a polite live region that stays mounted in every state,
1096
+ * including `idle`. A region inserted together with its text announces nothing, so
1097
+ * rendering null while idle would silence the first "Saving…". The retry button sits
1098
+ * outside the region so its label is not read out on every change.
1099
+ */
1100
+ declare function SaveStatus({ state, labels, onRetry, className, ...props }: SaveStatusProps): react.JSX.Element;
1106
1101
 
1107
1102
  interface ComposerProps extends HTMLAttributes<HTMLDivElement> {
1108
1103
  children?: ReactNode;
@@ -2322,4 +2317,4 @@ declare function hsvToHex(value: HsvColor): string;
2322
2317
  declare function contrastRatio(background: string, foreground: string): number | undefined;
2323
2318
  declare function meetsContrast(background: string, foreground: string, minimum?: number): boolean;
2324
2319
 
2325
- export { type AccessStateProps, Alert, type AlertProps, type AlertTone, type Align, AppShell, type AppShellProps, type AppliedBrandProfileSnapshot, type AsyncOperationState, AsyncOperationStatus, type AsyncOperationStatusProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BoundedRelationshipGraph, type BrandProfile, BrandProfileEditor, type BrandProfileEditorProps, type BrandProfileLogo, type BrandProfileTypography, BrandProfiles, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, BuilderCanvas, type BuilderCanvasItem, type BuilderCanvasProps, type BuilderPaletteItem, BulkBar, type BulkBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type CalendarDay, Card, CardLink, type CardLinkProps, type CardProps, CellStrong, CellSub, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ColorPicker, type ColorPickerProps, type ColumnFilter, Combobox, type ComboboxOption, type ComboboxProps, CommandGroup, type CommandGroupProps, CommandItem, type CommandItemProps, CommandPalette, type CommandPaletteProps, Comment, type CommentProps, Comments, type CommentsProps, Composer, ComposerBar, type ComposerBarProps, type ComposerProps, ConfirmDialog, type ConfirmDialogProps, ContentList, ContentListItem, type ContentListItemProps, type ContentListProps, DEFAULT_RELATIONSHIP_GRAPH_LABELS, DateRangePicker, type DateRangePickerProps, type DateRangeValue, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListItem, type DescriptionListProps, DetailLayout, type DetailLayoutProps, DetailPage, type DetailPageMetric, type DetailPageProps, type DetailPageTab, type DiffEntry, type DiffKind, type DiffResolution, type DiffSummary, DiffViewer, type DiffViewerProps, Drawer, type DrawerProps, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, EventRow, type EventRowProps, ExpandToggle, type ExpandToggleProps, FeaturedRundown, FeaturedRundownItem, type FeaturedRundownItemProps, type FeaturedRundownProps, FeaturedStage, type FeaturedStageProps, Field, type FieldProps, type FilterKind, type FilterOp, type FilterOption, FilterPopover, type FilterPopoverProps, FilteredEmptyState, type FlatNode, Flow, FlowNode, type FlowNodeProps, type FlowNodeState, type FlowProps, type FlowVariant, ForbiddenState, Highlighted, type HighlightedProps, type HsvColor, Inbox, InboxDetail, type InboxDetailProps, InboxItem, type InboxItemProps, InboxList, type InboxListProps, type InboxProps, Input, InputGroup, type InputGroupProps, type InputProps, type JsonPrimitive, type JsonValue, Kanban, KanbanCard, type KanbanCardProps, KanbanColumn, type KanbanColumnProps, type KanbanMoveDirection, type KanbanProps, Label, type LabelProps, type LayeredColumn, type LayeredEdgeClassification, type LayeredEdgeKind, type LayeredItem, type LayeredLayout, type LayeredLayoutOptions, type LayeredNavigationKey, LicensePositionBar, type LicensePositionBarProps, List, ListItem, type ListItemProps, type ListProps, LoadingState, type LoadingStateProps, Mark, type MarkProps, type MatchBulkResult, MatchReview, type MatchReviewAction, type MatchReviewCandidate, type MatchReviewField, type MatchReviewProps, Meter, type MeterProps, type MeterTone, MetricInput, type MetricInputProps, Modal, type ModalProps, type NavFavouriteItem, NavFavourites, type NavFavouritesLabels, type NavFavouritesProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, NewsLead, type NewsLeadProps, NotFoundState, Note, type NoteProps, type NoteTone, NoticeQueue, type NoticeQueueProps, PageHeader, type PageHeaderProps, PageIntro, type PageIntroProps, Pagination, type PaginationProps, Peek, type PeekProps, type PillTone, type PillTreatment, Pipeline, type PipelineProps, PipelineStage, type PipelineStageProps, type PipelineStageState, type Placement, Popover, type PopoverProps, type PositionOptions, type PositionResult, type PositionedRelationshipNode, type Primitive, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Prose, type ProseProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type Rect, type RelatedLinkItem, RelatedLinks, type RelatedLinksProps, RelationshipGraph, type RelationshipGraphArrow, type RelationshipGraphCluster, type RelationshipGraphEdge, type RelationshipGraphLabels, type RelationshipGraphLegendItem, type RelationshipGraphNode, type RelationshipGraphProps, RelativeTime, type RelativeTimeFormatContext, type RelativeTimeProps, type RelativeTimeUnit, type RelativeTimeValue, ResourceGrid, type ResourceGridProps, type RgbColor, type RoutedEdge, type Row, RowAction, type RowActionProps, RowActions, type RowActionsProps, type RuleAction, type RuleActionDefinition, RuleBuilder, type RuleBuilderProps, type RuleCondition, type RuleDefinition, type RuleFieldDefinition, type RuleGroup, type RuleOperatorDefinition, type RuleValidationIssue, type RuleValueEditorProps, type SavedViewItem, SavedViewMenu, type SavedViewMenuProps, SchedulingCalendar, type SchedulingCalendarEntry, type SchedulingCalendarOverlay, type SchedulingCalendarProps, type SchedulingCalendarView, type SchedulingEntryState, type SchedulingOverlayKind, SectionHead, type SectionHeadProps, type Segment, Segmented, SegmentedOption, type SegmentedOptionProps, type SegmentedProps, Select, type SelectAllState, type SelectProps, type ShellNav, type Side, Sidebar, type SidebarProps, SidebarSection, type SidebarSectionProps, type Size, Skeleton, type SkeletonProps, type SortDir, type SortDirection, type SortKey, Spinner, type SpinnerProps, StarButton, type StarButtonProps, Stat, StatLine, type StatLineItem, type StatLineProps, type StatProps, type StatTrend, type StateVariant, StatusPill, type StatusPillProps, StatusRow, type StatusRowProps, SubNavItem, type SubNavItemProps, Switch, type SwitchProps, Tab, TabPanel, type TabPanelProps, type TabProps, Table, type TableDensity, type TableProps, TableWrap, type TableWrapProps, Tabs, type TabsProps, Td, type TdProps, Textarea, type TextareaProps, Th, type ThProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, Toast, type ToastProps, type ToastTone, Toaster, type ToasterProps, ToggleRow, type ToggleRowProps, Tooltip, type TooltipProps, Tr, type TrProps, Tree, type TreeLike, type TreeNavAction, type TreeNodeData, type TreeNodeProps, type TreeProps, type UseAnchoredPositionOptions, type UseTableOptions, type UseTableResult, type UseVirtualRowsOptions, type UseVirtualRowsResult, UserChip, type UserChipProps, ViewMenu, type ViewMenuColumn, type ViewMenuProps, type ViewState, type VirtualWindow, type ZonedDateSpan, addCalendarDays, addCalendarMonths, appendRuleNode, applyBrandProfile, applyFilters, boundRelationshipGraph, buildMonthGrid, buildThreeWayDiff, clampMetricValue, clampWidth, classifyLayeredEdges, clusterIdFor, computePosition, contrastRatio, cx, enumerateDateSpan, filterComboboxOptions, findRuleNodeDepth, flattenTree, hexToRgb, highlightSegments, hsvToHex, hsvToRgb, isDateInRange, isDateUnavailable, isRuleGroup, layeredNeighbor, layoutLayeredGraph, layoutRelationshipGraph, mapRuleGroup, matchFilter, meetsContrast, mergePinned, moveRuleNode, multiSort, nextSortDir, normalizeHex, parseDateValue, parseMetricValue, parseView, relationshipNeighbors, relativeTimeValue, removeRuleNode, reorder, restoreBrandProfile, rgbToHex, rgbToHsv, ruleDepth, searchRows, selectAllState, selectRangeDate, serializeView, shouldVirtualize, startOfMonth, stepMetricValue, summarizeDiff, summarizeRule, toDateKey, toggleId, togglePage, toggleSort, traverseRelationshipNode, treeNav, useAnchoredPosition, useDialog, useTable, useVirtualRows, validateRuleDefinition, virtualWindow, wrapEdgeLabel, zonedDateKey, zonedDateSpan };
2320
+ export { type AccessStateProps, Alert, type AlertProps, type AlertTone, AppShell, type AppShellProps, type AppliedBrandProfileSnapshot, type AsyncOperationState, AsyncOperationStatus, type AsyncOperationStatusProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BoundedRelationshipGraph, type BrandProfile, BrandProfileEditor, type BrandProfileEditorProps, type BrandProfileLogo, type BrandProfileTypography, BrandProfiles, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, BuilderCanvas, type BuilderCanvasItem, type BuilderCanvasProps, type BuilderPaletteItem, BulkBar, type BulkBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type CalendarDay, Card, CardLink, type CardLinkProps, type CardProps, CellStrong, CellSub, Checkbox, type CheckboxProps, CollapsibleSection, type CollapsibleSectionProps, ColorPicker, type ColorPickerProps, type ColumnFilter, Combobox, type ComboboxOption, type ComboboxProps, CommandGroup, type CommandGroupProps, CommandItem, type CommandItemProps, CommandPalette, type CommandPaletteProps, Comment, type CommentProps, Comments, type CommentsProps, Composer, ComposerBar, type ComposerBarProps, type ComposerProps, ConfirmDialog, type ConfirmDialogProps, ContentList, ContentListItem, type ContentListItemProps, type ContentListProps, DEFAULT_RELATIONSHIP_GRAPH_LABELS, DEFAULT_SAVE_STATUS_LABELS, DateRangePicker, type DateRangePickerProps, type DateRangeValue, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListItem, type DescriptionListProps, DetailLayout, type DetailLayoutProps, DetailPage, type DetailPageMetric, type DetailPageProps, type DetailPageTab, type DiffEntry, type DiffKind, type DiffResolution, type DiffSummary, DiffViewer, type DiffViewerProps, Drawer, type DrawerProps, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, EventRow, type EventRowProps, ExpandToggle, type ExpandToggleProps, FeaturedRundown, FeaturedRundownItem, type FeaturedRundownItemProps, type FeaturedRundownProps, FeaturedStage, type FeaturedStageProps, Field, type FieldProps, type FilterKind, type FilterOp, type FilterOption, FilterPopover, type FilterPopoverProps, FilteredEmptyState, type FlatNode, Flow, FlowNode, type FlowNodeProps, type FlowNodeState, type FlowProps, type FlowVariant, ForbiddenState, Highlighted, type HighlightedProps, type HsvColor, Inbox, InboxDetail, type InboxDetailProps, InboxItem, type InboxItemProps, InboxList, type InboxListProps, type InboxProps, Input, InputGroup, type InputGroupProps, type InputProps, type JsonPrimitive, type JsonValue, Kanban, KanbanCard, type KanbanCardProps, KanbanColumn, type KanbanColumnProps, type KanbanMoveDirection, type KanbanProps, Label, type LabelProps, type LayeredColumn, type LayeredEdgeClassification, type LayeredEdgeKind, type LayeredItem, type LayeredLayout, type LayeredLayoutOptions, type LayeredNavigationKey, LicensePositionBar, type LicensePositionBarProps, List, ListItem, type ListItemProps, type ListProps, LoadingState, type LoadingStateProps, Mark, type MarkProps, type MatchBulkResult, MatchReview, type MatchReviewAction, type MatchReviewCandidate, type MatchReviewField, type MatchReviewProps, Meter, type MeterProps, type MeterTone, MetricInput, type MetricInputProps, Modal, type ModalProps, type NavFavouriteItem, NavFavourites, type NavFavouritesLabels, type NavFavouritesProps, NavGroup, type NavGroupProps, NavItem, type NavItemProps, NewsLead, type NewsLeadProps, NotFoundState, Note, type NoteProps, type NoteTone, NoticeQueue, type NoticeQueueProps, PageHeader, type PageHeaderProps, PageIntro, type PageIntroProps, Pagination, type PaginationProps, Peek, type PeekProps, type PillTone, type PillTreatment, Pipeline, type PipelineProps, PipelineStage, type PipelineStageProps, type PipelineStageState, Placement, Popover, type PopoverProps, type PositionedRelationshipNode, type Primitive, Progress, type ProgressProps, PromptDialog, type PromptDialogProps, Prose, type ProseProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RelatedLinkItem, RelatedLinks, type RelatedLinksProps, RelationshipGraph, type RelationshipGraphArrow, type RelationshipGraphCluster, type RelationshipGraphEdge, type RelationshipGraphLabels, type RelationshipGraphLegendItem, type RelationshipGraphNode, type RelationshipGraphProps, RelativeTime, type RelativeTimeFormatContext, type RelativeTimeProps, type RelativeTimeUnit, type RelativeTimeValue, ResourceGrid, type ResourceGridProps, type RgbColor, type RoutedEdge, type Row, RowAction, type RowActionProps, RowActions, type RowActionsProps, type RuleAction, type RuleActionDefinition, RuleBuilder, type RuleBuilderProps, type RuleCondition, type RuleDefinition, type RuleFieldDefinition, type RuleGroup, type RuleOperatorDefinition, type RuleValidationIssue, type RuleValueEditorProps, SaveStatus, type SaveStatusLabels, type SaveStatusProps, type SaveStatusState, type SavedViewItem, SavedViewMenu, type SavedViewMenuProps, SchedulingCalendar, type SchedulingCalendarEntry, type SchedulingCalendarOverlay, type SchedulingCalendarProps, type SchedulingCalendarView, type SchedulingEntryState, type SchedulingOverlayKind, SectionHead, type SectionHeadProps, type Segment, Segmented, SegmentedOption, type SegmentedOptionProps, type SegmentedProps, Select, type SelectAllState, type SelectProps, type ShellNav, Sidebar, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonProps, type SortDir, type SortDirection, type SortKey, Spinner, type SpinnerProps, StarButton, type StarButtonProps, Stat, StatLine, type StatLineItem, type StatLineProps, type StatProps, type StatTrend, type StateVariant, StatusPill, type StatusPillProps, StatusRow, type StatusRowProps, SubNavItem, type SubNavItemProps, Switch, type SwitchProps, Tab, TabPanel, type TabPanelProps, type TabProps, Table, type TableDensity, type TableProps, TableWrap, type TableWrapProps, Tabs, type TabsProps, Td, type TdProps, Textarea, type TextareaProps, Th, type ThProps, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, Toast, type ToastProps, type ToastTone, Toaster, type ToasterProps, ToggleRow, type ToggleRowProps, Tooltip, type TooltipProps, Tr, type TrProps, Tree, type TreeLike, type TreeNavAction, type TreeNodeData, type TreeNodeProps, type TreeProps, type UseAnchoredPositionOptions, type UseTableOptions, type UseTableResult, type UseVirtualRowsOptions, type UseVirtualRowsResult, UserChip, type UserChipProps, ViewMenu, type ViewMenuColumn, type ViewMenuProps, type ViewState, type VirtualWindow, type ZonedDateSpan, addCalendarDays, addCalendarMonths, appendRuleNode, applyBrandProfile, applyFilters, boundRelationshipGraph, buildMonthGrid, buildThreeWayDiff, clampMetricValue, clampWidth, classifyLayeredEdges, clusterIdFor, contrastRatio, cx, enumerateDateSpan, filterComboboxOptions, findRuleNodeDepth, flattenTree, hexToRgb, highlightSegments, hsvToHex, hsvToRgb, isDateInRange, isDateUnavailable, isRuleGroup, layeredNeighbor, layoutLayeredGraph, layoutRelationshipGraph, mapRuleGroup, matchFilter, meetsContrast, mergePinned, moveRuleNode, multiSort, nextSortDir, normalizeHex, parseDateValue, parseMetricValue, parseView, relationshipNeighbors, relativeTimeValue, removeRuleNode, reorder, restoreBrandProfile, rgbToHex, rgbToHsv, ruleDepth, searchRows, selectAllState, selectRangeDate, serializeView, shouldVirtualize, startOfMonth, stepMetricValue, summarizeDiff, summarizeRule, toDateKey, toggleId, togglePage, toggleSort, traverseRelationshipNode, treeNav, useAnchoredPosition, useDialog, useTable, useVirtualRows, validateRuleDefinition, virtualWindow, wrapEdgeLabel, zonedDateKey, zonedDateSpan };
package/dist/index.d.ts CHANGED
@@ -51,6 +51,7 @@ export { AsyncOperationState, AsyncOperationStatus, AsyncOperationStatusProps }
51
51
  export { Label, LabelProps } from './components/Label.js';
52
52
  export { Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, UserChip, UserChipProps } from './components/Avatar.js';
53
53
  export { Comment, CommentProps, Comments, CommentsProps } from './components/Comments.js';
54
+ export { DEFAULT_SAVE_STATUS_LABELS, SaveStatus, SaveStatusLabels, SaveStatusProps, SaveStatusState } from './components/SaveStatus.js';
54
55
  export { Composer, ComposerBar, ComposerBarProps, ComposerProps } from './components/Composer.js';
55
56
  export { Segmented, SegmentedOption, SegmentedOptionProps, SegmentedProps } from './components/Segmented.js';
56
57
  export { FilterOption, FilterPopover, FilterPopoverProps, SavedViewItem, SavedViewMenu, SavedViewMenuProps, ViewMenu, ViewMenuColumn, ViewMenuProps } from './components/TableControls.js';
package/dist/index.js CHANGED
@@ -65,6 +65,7 @@ import { AsyncOperationStatus } from "./components/AsyncOperationStatus.js";
65
65
  import { Label } from "./components/Label.js";
66
66
  import { Avatar, AvatarGroup, UserChip } from "./components/Avatar.js";
67
67
  import { Comments, Comment } from "./components/Comments.js";
68
+ import { SaveStatus, DEFAULT_SAVE_STATUS_LABELS } from "./components/SaveStatus.js";
68
69
  import { Composer, ComposerBar } from "./components/Composer.js";
69
70
  import { Segmented, SegmentedOption } from "./components/Segmented.js";
70
71
  import { ViewMenu, FilterPopover, SavedViewMenu } from "./components/TableControls.js";
@@ -164,6 +165,7 @@ export {
164
165
  ContentList,
165
166
  ContentListItem,
166
167
  DEFAULT_RELATIONSHIP_GRAPH_LABELS,
168
+ DEFAULT_SAVE_STATUS_LABELS,
167
169
  DateRangePicker,
168
170
  DescriptionItem,
169
171
  DescriptionList,
@@ -230,6 +232,7 @@ export {
230
232
  RowAction,
231
233
  RowActions,
232
234
  RuleBuilder,
235
+ SaveStatus,
233
236
  SavedViewMenu,
234
237
  SchedulingCalendar,
235
238
  SectionHead,
@@ -0,0 +1,75 @@
1
+ type MarkdownInline = {
2
+ type: 'text';
3
+ value: string;
4
+ } | {
5
+ type: 'code';
6
+ value: string;
7
+ } | {
8
+ type: 'strong';
9
+ children: MarkdownInline[];
10
+ } | {
11
+ type: 'em';
12
+ children: MarkdownInline[];
13
+ } | {
14
+ type: 'del';
15
+ children: MarkdownInline[];
16
+ } | {
17
+ type: 'link';
18
+ href: string;
19
+ title?: string;
20
+ children: MarkdownInline[];
21
+ bare?: boolean;
22
+ } | {
23
+ type: 'image';
24
+ src: string;
25
+ alt: string;
26
+ title?: string;
27
+ } | {
28
+ type: 'br';
29
+ };
30
+ type TableAlign = 'left' | 'center' | 'right' | null;
31
+ interface MarkdownListItem {
32
+ /** `null` for a plain item, otherwise the task state. */
33
+ checked: boolean | null;
34
+ children: MarkdownInline[];
35
+ /** Nested lists. */
36
+ lists: MarkdownList[];
37
+ }
38
+ interface MarkdownList {
39
+ type: 'list';
40
+ ordered: boolean;
41
+ start: number;
42
+ items: MarkdownListItem[];
43
+ }
44
+ type MarkdownBlock = {
45
+ type: 'paragraph';
46
+ children: MarkdownInline[];
47
+ } | {
48
+ type: 'heading';
49
+ level: number;
50
+ children: MarkdownInline[];
51
+ } | {
52
+ type: 'code';
53
+ lang: string;
54
+ value: string;
55
+ } | {
56
+ type: 'quote';
57
+ children: MarkdownInline[];
58
+ } | {
59
+ type: 'rule';
60
+ } | MarkdownList | {
61
+ type: 'table';
62
+ align: TableAlign[];
63
+ head: MarkdownInline[][];
64
+ rows: MarkdownInline[][][];
65
+ };
66
+ /** Inline markdown to nodes. Newlines become line breaks. */
67
+ declare function parseInline(text: string, depth?: number): MarkdownInline[];
68
+ /** The text a reader sees, for accessible names and image alt text. */
69
+ declare function plainText(nodes: ReadonlyArray<MarkdownInline>): string;
70
+ /** Split a table row on unescaped pipes outside code spans. */
71
+ declare function splitTableRow(line: string): string[];
72
+ /** Markdown source to blocks. Empty or whitespace-only input yields no blocks. */
73
+ declare function parseMarkdown(source: string): MarkdownBlock[];
74
+
75
+ export { type MarkdownBlock, type MarkdownInline, type MarkdownList, type MarkdownListItem, type TableAlign, parseInline, parseMarkdown, plainText, splitTableRow };