@sovereignfs/ui 0.104.0 → 0.106.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.
- package/CHANGELOG.md +19 -0
- package/dist/index.d.ts +30 -3
- package/dist/index.js +1300 -1211
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ versions follow [semver](https://semver.org/). A version's section is written in
|
|
|
5
5
|
and becomes the release notes when the version is published. This file starts at 0.96.0; earlier versions are in the repository's
|
|
6
6
|
history and tags.
|
|
7
7
|
|
|
8
|
+
## [0.106.0] - 2026-11-22
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `LinkSovereignPanel`: linking an account of an app's own to the person's Sovereign account, after their password, and what came back
|
|
13
|
+
(`LinkOutcome`: `done`, `taken`, `address`).
|
|
14
|
+
|
|
15
|
+
## [0.105.0] - 2026-11-21
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- `SessionsPanel` takes `timeZone`, the person's own, for the times it writes.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- `SessionsPanel` wrote "Signed in" and "Last active" in the runtime's own language and zone, which differ between the server and the
|
|
24
|
+
browser, so React threw the server's page away and logged error #418. It now writes them the same way everywhere: in `timeZone`,
|
|
25
|
+
or in UTC without one.
|
|
26
|
+
|
|
8
27
|
## [0.104.0] - 2026-11-20
|
|
9
28
|
|
|
10
29
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -306,9 +306,14 @@ interface SessionsPanelProps {
|
|
|
306
306
|
endSession: (id: string, previous: ActionResult | null, form: FormData) => Promise<ActionResult>;
|
|
307
307
|
/** Ends every session but this one. */
|
|
308
308
|
endOthers: PanelAction;
|
|
309
|
+
/**
|
|
310
|
+
* The time zone the times are written in: the person's own, where the app knows it. Default UTC. Times are written the same way on
|
|
311
|
+
* the server and in the browser, so the page the server sent is the page the browser shows.
|
|
312
|
+
*/
|
|
313
|
+
timeZone?: string;
|
|
309
314
|
}
|
|
310
315
|
/** The person's open sessions, with a way to end any of them, or all but this one (auth.md §7). */
|
|
311
|
-
declare function SessionsPanel({ sessions, endSession, endOthers }: SessionsPanelProps): react.JSX.Element;
|
|
316
|
+
declare function SessionsPanel({ sessions, endSession, endOthers, timeZone, }: SessionsPanelProps): react.JSX.Element;
|
|
312
317
|
|
|
313
318
|
interface ChangePasswordFormProps {
|
|
314
319
|
error?: string | undefined;
|
|
@@ -324,6 +329,28 @@ interface ChangePasswordFormProps {
|
|
|
324
329
|
/** Changing the password (auth.md §7): it asks for the current one, and ends every other session. */
|
|
325
330
|
declare function ChangePasswordForm({ error, done, pending, onSubmit, }: ChangePasswordFormProps): react.JSX.Element;
|
|
326
331
|
|
|
332
|
+
/** How a link came back from Sovereign: `done`, or why it was refused. */
|
|
333
|
+
type LinkOutcome = 'done' | 'taken' | 'address';
|
|
334
|
+
interface LinkSovereignPanelProps {
|
|
335
|
+
/** Whether this account already signs in through Sovereign. */
|
|
336
|
+
linked: boolean;
|
|
337
|
+
/** What the instance is called, as people know it. Default "Sovereign". */
|
|
338
|
+
instanceName?: string;
|
|
339
|
+
/** How the last link came back (the page reads it from its address). */
|
|
340
|
+
outcome?: LinkOutcome | undefined;
|
|
341
|
+
error?: string | undefined;
|
|
342
|
+
pending?: boolean;
|
|
343
|
+
/** The password, once the person submits it. The panel never sends anything itself. */
|
|
344
|
+
onSubmit: (values: {
|
|
345
|
+
password: string;
|
|
346
|
+
}) => void;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Linking an account of the app's own to the person's Sovereign account (auth.md §8.2): after their password, they sign in at Sovereign,
|
|
350
|
+
* and whoever signs in there is linked to this account. Nothing is ever linked because two addresses match.
|
|
351
|
+
*/
|
|
352
|
+
declare function LinkSovereignPanel({ linked, instanceName, outcome, error, pending, onSubmit, }: LinkSovereignPanelProps): react.JSX.Element;
|
|
353
|
+
|
|
327
354
|
/** A change to the second step, which always asks for the password first. */
|
|
328
355
|
type TwoFactorAction = 'enable' | 'regenerate' | 'disable';
|
|
329
356
|
/** What starting a change came to: a sentence to show, an enrolment to confirm, new backup codes, or the second step turned off. */
|
|
@@ -4195,5 +4222,5 @@ interface QrCodeProps {
|
|
|
4195
4222
|
*/
|
|
4196
4223
|
declare function QrCode({ modules, label }: QrCodeProps): react.JSX.Element;
|
|
4197
4224
|
|
|
4198
|
-
export { Accordion, Alert, AppTile, AppsLauncher, AspectRatio, AuthButton, AuthCard, AuthCodeInput, AuthDivider, AuthError, AuthField, AuthFooter, AuthForm, AuthLink, AuthLinkButton, AuthNotice, AuthShell, Avatar, AvatarStack, Badge, BalanceChip, BrandBadge, Breadcrumb, Button, ButtonGroup, ButtonLink, Calendar, Card, CardTile, CardTileGrid, ChangePasswordForm, CheckableListRow, Checkbox, CodeTextarea, Collapsible, ColorPicker, Combobox, Command, ConfirmDialog, ConsentPrompt, ContextMenu, CopyButton, CurrencyInput, DataTable, DatePicker, DateRangePicker, DeviceOnlyGate, DeviceStorageKeyGate, Dialog, DragHandleRow, Drawer, EmptyState, ExportPanel, FileDropzone, FloatingActionButton, ForgotPasswordForm, FormField, GripIcon, Header, HeaderFooterLayout, HoverCard, IOS_INSTALL_STEPS, Icon, IconPicker, Input, InstallHint, InstallPrompt, Item, Kbd, Label, LegalLinks, LockedState, MOBILE_BREAKPOINT_PX, Markdown, Marker, MemberMultiSelect, Menu, MenuEntries, Menubar, Message, MessageScroller, MobileAppsDrawer, MobileFooter, MobileHeader, NavList, NavTabs, NavigationMenu, NewCardTile, NotificationsPanel, OfflineGate, OverlayHeader, PageContainer, PageHeader, PageLayout, Pagination, PhotoGallery, PhotoGrid, PhotoViewer, Popover, ProfilePanel, Progress, PushControl, QrCode, QuantityStepper, RadioGroup, RangeCalendar, RecoveryKit, ResetPasswordForm, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveSurface, RootLayout, SWIPE_STACK_TRANSITION_MS, ScrollArea, SegmentedControl, Select, SessionsPanel, Sheet, SignInForm, SignUpForm, Slider, Spinner, SplitMethodSelector, SplitPane, StatusBadge, StepStrip, SuggestionInput, SwipableMobileCarousel, SwipableMobileCarouselDots, SwipableMobileCarouselSlide, SwipableMobileCarouselSlideBody, SwipableMobileCarouselSlideFooter, SwipableMobileCarouselSlideHeader, SwipeStack, SwipeStackCard, SystemBanner, THEME_PRESETS, THEME_PRESET_NAMES, Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow, Tabs, TagInput, Textarea, ThreeColumnLayout, ToastProvider, Toggle, Tooltip, TwoFactorForm, TwoFactorPanel, Typography, UpdateNotice, UserMenu, isInstalledDisplay, recoveryKitFileName, recoveryKitFileText, shouldHandleDndEvent, useCarouselRouteSync, useCommitOnEnterOrBlur, useDoubleTapHandler, useInstallPrompt, useIsMobile, useIsOffline, useLongPress, useOfflineTileState, useOverlaySecondRow, useReorderSensors, useResponsiveLayout, useSingleOrDoubleTap, useSnapCarousel, useSwipeReveal, useSwipeStack, useToast };
|
|
4199
|
-
export type { AccordionItem, AccordionProps, ActionResult, AlertProps, AlertVariant, AppTileProps, AppsLauncherItem, AppsLauncherProps, AspectRatioProps, AuthCardProps, AuthCodeInputProps, AuthFieldControl, AuthFieldProps, AuthFooterProps, AuthLinkRenderer, AvatarProps, AvatarStackPerson, AvatarStackProps, BadgeProps, BadgeStatus, BadgeVariant, BalanceChipProps, BannerVariant, BrandBadgeProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant, CalendarProps, CardProps, CardTileGridProps, CardTileProps, ChangePasswordFormProps, CheckableListRowProps, CheckboxProps, CodeTextareaProps, CollapsibleProps, ColorPickerProps, ColorPickerSwatch, ComboboxOption, ComboboxProps, CommandItem, CommandProps, CommitOnEnterOrBlurHandlers, ConfirmDialogProps, ConsentPromptProps, ContextMenuProps, CopyButtonProps, CurrencyInputProps, DataTableColumn, DataTableProps, DatePickerProps, DateRange, DateRangePickerProps, DeviceOnlyGateProps, DeviceStorageKeyGateProps, DeviceStorageKeyGateStatus, DialogProps, DialogSize, DragHandleRowProps, DrawerProps, EmptyStateProps, ExportPanelProps, ExportPanelStatus, ExportStartResult, FileDropzoneProps, FloatingActionButtonProps, FooterIcon, ForgotPasswordFormProps, FormFieldProps, FormFieldRenderProps, GripIconProps, HeaderFooterLayoutProps, HeaderPlugin, HeaderProps, HoverCardProps, IconName, IconPickerProps, IconProps, InputProps, InstallHintProps, InstallKind, InstallPromptProps, ItemProps, KbdProps, LabelProps, LegalLinksProps, LockedReason, LockedStateProps, LongPressHandlers, MarkdownProps, MarkerProps, MemberMultiSelectOption, MemberMultiSelectProps, MenuEntry, MenuItem, MenuLabel, MenuProps, MenuSeparator, MenubarMenu, MenubarProps, MessageProps, MessageScrollerProps, MessageSender, MobileAppsDrawerItem, MobileAppsDrawerProps, MobileFooterProps, MobileHeaderProps, NavListGroup, NavListItem, NavListLinkProps, NavListProps, NavTabItem, NavTabLinkProps, NavTabsProps, NavigationMenuItem, NavigationMenuProps, NewCardTileProps, NotificationsPanelItem, NotificationsPanelProps, OfflineGateProps, OfflineTileState, OverlayHeaderProps, PageContainerProps, PageHeaderProps, PageLayoutPadding, PageLayoutProps, PaginationProps, PanelAction, Photo, PhotoGalleryProps, PhotoGridProps, PhotoViewerProps, PopoverProps, ProfilePanelProps, ProgressProps, PushControlProps, PushControlState, QrCodeProps, QuantityStepperProps, RadioGroupItem, RadioGroupProps, RangeCalendarProps, RecoveryKitProps, ResetPasswordFormProps, ResizableDirection, ResizableHandleProps, ResizablePanelGroupProps, ResizablePanelProps, ResponsiveSurfaceProps, RootLayoutProps, RootLayoutVariant, ScrollAreaProps, SegmentedControlProps, SegmentedOption, SelectProps, SessionRow, SessionsPanelProps, SheetProps, SignInFormProps, SignUpFormProps, SignUpValues, SliderProps, SortDirection, SpinnerProps, SplitMethod, SplitMethodSelectorProps, SplitPaneProps, StatusBadgeProps, StatusBadgeStatus, StepStripItem, StepStripProps, SuggestionInputProps, SuggestionOption, SwipableMobileCarouselDotsProps, SwipableMobileCarouselIndicatorProps, SwipableMobileCarouselProps, SwipableMobileCarouselSlideBodyProps, SwipableMobileCarouselSlideFooterProps, SwipableMobileCarouselSlideHeaderProps, SwipableMobileCarouselSlideProps, SwipeDirection, SwipeDirectionMeta, SwipeStackCardProps, SwipeStackProps, SystemBannerProps, TabItem, TableProps, TabsProps, TagInputProps, TextareaProps, ThemePresetName, ThemePresetTokens, ThreeColumnLayoutProps, ToastContextValue, ToastItem, ToggleProps, TooltipProps, TwoFactorAction, TwoFactorFormProps, TwoFactorPanelProps, TwoFactorStart, TypographyProps, TypographyVariant, UpdateNoticeProps, UseCarouselRouteSyncOptions, UseCarouselRouteSyncResult, UseInstallPrompt, UseLongPressOptions, UseReorderSensorsOptions, UseResponsiveLayoutOptions, UseResponsiveLayoutResult, UseSnapCarouselOptions, UseSnapCarouselResult, UseSwipeRevealHandlers, UseSwipeRevealOptions, UseSwipeRevealResult, UseSwipeStackHandlers, UseSwipeStackOptions, UseSwipeStackResult, UserMenuItem, UserMenuProps };
|
|
4225
|
+
export { Accordion, Alert, AppTile, AppsLauncher, AspectRatio, AuthButton, AuthCard, AuthCodeInput, AuthDivider, AuthError, AuthField, AuthFooter, AuthForm, AuthLink, AuthLinkButton, AuthNotice, AuthShell, Avatar, AvatarStack, Badge, BalanceChip, BrandBadge, Breadcrumb, Button, ButtonGroup, ButtonLink, Calendar, Card, CardTile, CardTileGrid, ChangePasswordForm, CheckableListRow, Checkbox, CodeTextarea, Collapsible, ColorPicker, Combobox, Command, ConfirmDialog, ConsentPrompt, ContextMenu, CopyButton, CurrencyInput, DataTable, DatePicker, DateRangePicker, DeviceOnlyGate, DeviceStorageKeyGate, Dialog, DragHandleRow, Drawer, EmptyState, ExportPanel, FileDropzone, FloatingActionButton, ForgotPasswordForm, FormField, GripIcon, Header, HeaderFooterLayout, HoverCard, IOS_INSTALL_STEPS, Icon, IconPicker, Input, InstallHint, InstallPrompt, Item, Kbd, Label, LegalLinks, LinkSovereignPanel, LockedState, MOBILE_BREAKPOINT_PX, Markdown, Marker, MemberMultiSelect, Menu, MenuEntries, Menubar, Message, MessageScroller, MobileAppsDrawer, MobileFooter, MobileHeader, NavList, NavTabs, NavigationMenu, NewCardTile, NotificationsPanel, OfflineGate, OverlayHeader, PageContainer, PageHeader, PageLayout, Pagination, PhotoGallery, PhotoGrid, PhotoViewer, Popover, ProfilePanel, Progress, PushControl, QrCode, QuantityStepper, RadioGroup, RangeCalendar, RecoveryKit, ResetPasswordForm, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveSurface, RootLayout, SWIPE_STACK_TRANSITION_MS, ScrollArea, SegmentedControl, Select, SessionsPanel, Sheet, SignInForm, SignUpForm, Slider, Spinner, SplitMethodSelector, SplitPane, StatusBadge, StepStrip, SuggestionInput, SwipableMobileCarousel, SwipableMobileCarouselDots, SwipableMobileCarouselSlide, SwipableMobileCarouselSlideBody, SwipableMobileCarouselSlideFooter, SwipableMobileCarouselSlideHeader, SwipeStack, SwipeStackCard, SystemBanner, THEME_PRESETS, THEME_PRESET_NAMES, Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow, Tabs, TagInput, Textarea, ThreeColumnLayout, ToastProvider, Toggle, Tooltip, TwoFactorForm, TwoFactorPanel, Typography, UpdateNotice, UserMenu, isInstalledDisplay, recoveryKitFileName, recoveryKitFileText, shouldHandleDndEvent, useCarouselRouteSync, useCommitOnEnterOrBlur, useDoubleTapHandler, useInstallPrompt, useIsMobile, useIsOffline, useLongPress, useOfflineTileState, useOverlaySecondRow, useReorderSensors, useResponsiveLayout, useSingleOrDoubleTap, useSnapCarousel, useSwipeReveal, useSwipeStack, useToast };
|
|
4226
|
+
export type { AccordionItem, AccordionProps, ActionResult, AlertProps, AlertVariant, AppTileProps, AppsLauncherItem, AppsLauncherProps, AspectRatioProps, AuthCardProps, AuthCodeInputProps, AuthFieldControl, AuthFieldProps, AuthFooterProps, AuthLinkRenderer, AvatarProps, AvatarStackPerson, AvatarStackProps, BadgeProps, BadgeStatus, BadgeVariant, BalanceChipProps, BannerVariant, BrandBadgeProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant, CalendarProps, CardProps, CardTileGridProps, CardTileProps, ChangePasswordFormProps, CheckableListRowProps, CheckboxProps, CodeTextareaProps, CollapsibleProps, ColorPickerProps, ColorPickerSwatch, ComboboxOption, ComboboxProps, CommandItem, CommandProps, CommitOnEnterOrBlurHandlers, ConfirmDialogProps, ConsentPromptProps, ContextMenuProps, CopyButtonProps, CurrencyInputProps, DataTableColumn, DataTableProps, DatePickerProps, DateRange, DateRangePickerProps, DeviceOnlyGateProps, DeviceStorageKeyGateProps, DeviceStorageKeyGateStatus, DialogProps, DialogSize, DragHandleRowProps, DrawerProps, EmptyStateProps, ExportPanelProps, ExportPanelStatus, ExportStartResult, FileDropzoneProps, FloatingActionButtonProps, FooterIcon, ForgotPasswordFormProps, FormFieldProps, FormFieldRenderProps, GripIconProps, HeaderFooterLayoutProps, HeaderPlugin, HeaderProps, HoverCardProps, IconName, IconPickerProps, IconProps, InputProps, InstallHintProps, InstallKind, InstallPromptProps, ItemProps, KbdProps, LabelProps, LegalLinksProps, LinkOutcome, LinkSovereignPanelProps, LockedReason, LockedStateProps, LongPressHandlers, MarkdownProps, MarkerProps, MemberMultiSelectOption, MemberMultiSelectProps, MenuEntry, MenuItem, MenuLabel, MenuProps, MenuSeparator, MenubarMenu, MenubarProps, MessageProps, MessageScrollerProps, MessageSender, MobileAppsDrawerItem, MobileAppsDrawerProps, MobileFooterProps, MobileHeaderProps, NavListGroup, NavListItem, NavListLinkProps, NavListProps, NavTabItem, NavTabLinkProps, NavTabsProps, NavigationMenuItem, NavigationMenuProps, NewCardTileProps, NotificationsPanelItem, NotificationsPanelProps, OfflineGateProps, OfflineTileState, OverlayHeaderProps, PageContainerProps, PageHeaderProps, PageLayoutPadding, PageLayoutProps, PaginationProps, PanelAction, Photo, PhotoGalleryProps, PhotoGridProps, PhotoViewerProps, PopoverProps, ProfilePanelProps, ProgressProps, PushControlProps, PushControlState, QrCodeProps, QuantityStepperProps, RadioGroupItem, RadioGroupProps, RangeCalendarProps, RecoveryKitProps, ResetPasswordFormProps, ResizableDirection, ResizableHandleProps, ResizablePanelGroupProps, ResizablePanelProps, ResponsiveSurfaceProps, RootLayoutProps, RootLayoutVariant, ScrollAreaProps, SegmentedControlProps, SegmentedOption, SelectProps, SessionRow, SessionsPanelProps, SheetProps, SignInFormProps, SignUpFormProps, SignUpValues, SliderProps, SortDirection, SpinnerProps, SplitMethod, SplitMethodSelectorProps, SplitPaneProps, StatusBadgeProps, StatusBadgeStatus, StepStripItem, StepStripProps, SuggestionInputProps, SuggestionOption, SwipableMobileCarouselDotsProps, SwipableMobileCarouselIndicatorProps, SwipableMobileCarouselProps, SwipableMobileCarouselSlideBodyProps, SwipableMobileCarouselSlideFooterProps, SwipableMobileCarouselSlideHeaderProps, SwipableMobileCarouselSlideProps, SwipeDirection, SwipeDirectionMeta, SwipeStackCardProps, SwipeStackProps, SystemBannerProps, TabItem, TableProps, TabsProps, TagInputProps, TextareaProps, ThemePresetName, ThemePresetTokens, ThreeColumnLayoutProps, ToastContextValue, ToastItem, ToggleProps, TooltipProps, TwoFactorAction, TwoFactorFormProps, TwoFactorPanelProps, TwoFactorStart, TypographyProps, TypographyVariant, UpdateNoticeProps, UseCarouselRouteSyncOptions, UseCarouselRouteSyncResult, UseInstallPrompt, UseLongPressOptions, UseReorderSensorsOptions, UseResponsiveLayoutOptions, UseResponsiveLayoutResult, UseSnapCarouselOptions, UseSnapCarouselResult, UseSwipeRevealHandlers, UseSwipeRevealOptions, UseSwipeRevealResult, UseSwipeStackHandlers, UseSwipeStackOptions, UseSwipeStackResult, UserMenuItem, UserMenuProps };
|