@asymmetric-effort/specifyjs 0.2.39 → 0.2.45

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.
@@ -1872,6 +1872,10 @@ interface ClassComponentInstance<P extends Props = Props, S = unknown> {
1872
1872
  shouldComponentUpdate?(nextProps: P, nextState: S): boolean;
1873
1873
  getSnapshotBeforeUpdate?(prevProps: P, prevState: S): unknown;
1874
1874
  componentDidCatch?(error: unknown, info: ErrorInfo): void;
1875
+ _fiber: unknown;
1876
+ _pendingState: Array<Partial<S> | ((prevState: S, props: P) => Partial<S> | null)>;
1877
+ _forceUpdate: boolean;
1878
+ _enqueueUpdate(callback?: () => void): void;
1875
1879
  }
1876
1880
  interface ErrorInfo {
1877
1881
  componentStack: string;
@@ -2195,14 +2199,68 @@ interface FooterProps {
2195
2199
  }
2196
2200
  declare function Footer(props: FooterProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props>;
2197
2201
 
2202
+ interface UnityDesktopApp {
2203
+ id: string;
2204
+ icon: string;
2205
+ label: string;
2206
+ }
2207
+ interface UnityDesktopUser {
2208
+ name: string;
2209
+ avatar?: string;
2210
+ }
2198
2211
  interface UnityDesktopProps {
2199
- /** Content rendered in the main desktop area */
2212
+ /** Application definitions for the dock launcher */
2213
+ apps: UnityDesktopApp[];
2214
+ /** User info for the system tray */
2215
+ user?: UnityDesktopUser;
2216
+ /** Called when an app icon is clicked in the dock */
2217
+ onAppOpen?: (appId: string) => void;
2218
+ /** Called when the user selects logout from the user menu */
2219
+ onLogout?: () => void;
2220
+ /** Color theme */
2221
+ theme?: 'dark' | 'light';
2222
+ /** UnityApp windows render here */
2200
2223
  children?: unknown;
2201
- /** Extra class name */
2202
- className?: string;
2224
+ }
2225
+ interface ToastNotification {
2226
+ id: number;
2227
+ message: string;
2228
+ severity: 'info' | 'warning' | 'error';
2229
+ timestamp: number;
2203
2230
  }
2204
2231
  declare function UnityDesktop(props: UnityDesktopProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props>;
2205
2232
 
2233
+ interface UnityAppProps {
2234
+ /** Unique identifier for this app window */
2235
+ id: string;
2236
+ /** Window title */
2237
+ title: string;
2238
+ /** Optional icon (URL or emoji) */
2239
+ icon?: string;
2240
+ /** Default position when first opened */
2241
+ defaultPosition?: {
2242
+ x: number;
2243
+ y: number;
2244
+ };
2245
+ /** Default size when first opened */
2246
+ defaultSize?: {
2247
+ width: number;
2248
+ height: number;
2249
+ };
2250
+ /** Minimum size constraints */
2251
+ minSize?: {
2252
+ width: number;
2253
+ height: number;
2254
+ };
2255
+ /** Whether the window can be resized. Default: true */
2256
+ resizable?: boolean;
2257
+ /** Called when the window is closed */
2258
+ onClose?: () => void;
2259
+ /** Application content */
2260
+ children?: unknown;
2261
+ }
2262
+ declare function UnityApp(props: UnityAppProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props> | null;
2263
+
2206
2264
  interface WordProcessorProps {
2207
2265
  /** Document content rendered in the page area */
2208
2266
  content?: string;
@@ -3272,5 +3330,5 @@ interface DiscreteCartesian2DProps {
3272
3330
  }
3273
3331
  declare function DiscreteCartesian2D(props: DiscreteCartesian2DProps): specifyjs_shared_types.SpecElement<specifyjs_shared_types.Props>;
3274
3332
 
3275
- export { Accordion, Alert, AnalogClock, Avatar, Badge, BarGraph, BigNumber, BlochSphere, BoxPlot, Breadcrumb, BubbleChart, Button, CalendarHeatMap, Card, Carousel, CartesianGraph2D, Checkbox, ChordDiagram, ColorPicker, ColorWheel, ComplexGraph2D, ContextMenu, DataGrid, DatePicker, DecompositionTree, DigitalClock, DiscreteCartesian2D, Drawer, Dropdown, EmptyState, FileUpload, FlexContainer, FlexItem, Footer, ForceGraph, FormFieldWrapper, FunnelChart, GanttChart, Gauge, GoogleAnalytics, Grid, GridItem, HeatMap, Histogram, HypercubeGraph, IDE, Image, LineGraph, ListView, LollipopChart, Matrix, Menubar, Modal, MultilineField, NavWrapper, NumberSpinner, Pagination, Panel, Partition, PieGraph, PivotTable, PolarGraph2D, Popover, ProgressBar, RadarChart, RadioGroup, SankeyDiagram, ScrollContainer, Select, Sidebar, Skeleton, Slider, Spinner, Splitter, Stepper, Sunburst, Tabs, Tag, TextEditor, TextField, ThreeDLayers, TimePicker, ToastContainer, Toggle, Toolbar, Tooltip, TradingDashboard, TreeMap, TreeNav, TreeNode, USStateMap, US_STATE_PATHS, UnityDesktop, VectorField, VideoPlayer, VirtualScroll, VizWrapper, WaterfallChart, WordCloud, WordProcessor, applyGate, blochToCartesian, buildInputStyle, buildNavItemStyle, buildRotationMatrix, cartesianToBloch, computeBoxStats, computeMandelbrotGrid, computeSlices, createToaster, describeArc, generateEdges, generateHypercube, generatePalette, generateVertices, numRotationAngles, projectTo2D, transformVec, useBarGraphScales, useHover, useHypercube, useLineGraphScales, useToast };
3276
- export type { AccordionContentStyle, AccordionHeaderStyle, AccordionProps, AccordionSection, AlertProps, AnalogClockProps, AvatarProps, BadgeProps, BarDatum, BarGraphProps, BarGraphScales, BigNumberProps, BlochSphereProps, BlochState, BoxPlotDatum, BoxPlotProps, BoxStats, BreadcrumbItem, BreadcrumbProps, BreadcrumbSize, BubbleChartProps, BubbleDatum, ButtonProps, CalendarDatum, CalendarHeatMapProps, CardProps, CarouselProps, CartesianGraph2DProps, CheckboxProps, ChordDiagramProps, ColorPickerProps, ColorWheelProps, ComplexGraph2DProps, ComplexPointInfo, ComputeWorkerFn, ComputedSlice, ContextMenuItem, ContextMenuProps, CustomForceFunction, DataGridColumn, DataGridProps, DatePickerProps, DecompNode, DecompositionTreeProps, DigitalClockProps, DiscreteCartesian2DProps, DrawerPosition, DrawerProps, DropdownItem, DropdownProps, Edge, EmptyStateProps, FileUploadProps, FlexContainerProps, FlexItemProps, FooterProps, ForceEdge, ForceGraphProps, ForceNode, ForceSimNode, FormFieldWrapperProps, FormFieldWrapperStyle, FunnelChartProps, FunnelDatum, GanttChartProps, GanttTask, GateName, GateOp, GaugeProps, GoogleAnalyticsProps, GridBreakpoint, GridItemProps, GridProps, HeatMapProps, HistogramProps, HypercubeData, HypercubeGraphProps, IDEProps, ImageProps, InputBaseStyle, Layer3D, LegendItem, LineGraphProps, LineSeries, ListViewProps, LollipopChartProps, LollipopDatum, MatrixProps, MenuDefinition, MenuItem, MenubarProps, ModalProps, ModalSize, MousePosition, MultilineFieldProps, NavItemStyle, NavOrientation, NavWrapperProps, NavWrapperStyle, NumberSpinnerProps, PaginationProps, PanelProps, PartitionNode, PartitionProps, PieGraphProps, PieSliceDatum, PivotTableProps, Point, PointEvent, PointShape, PolarGraph2DProps, PolarPointInfo, PopoverPlacement, PopoverProps, Position, ProgressBarProps, RadarAxis, RadarChartProps, RadarSeries, RadioGroupProps, RadioOption, SankeyDiagramProps, SankeyLink, SankeyNode, ScrollContainerProps, SelectOption, SelectProps, SidebarItem, SidebarProps, SkeletonProps, SliderMark, SliderProps, SpinnerProps, SplitterProps, StackedBarDatum, StatePathData, StepItem, StepperOrientation, StepperProps, StepperVariant, SunburstNode, SunburstProps, TabDefinition, TabsProps, TagProps, TextEditorProps, TextFieldProps, ThreeDLayersProps, TimePickerProps, ToastAction, ToastItem, ToastOptions, ToastPosition, ToastType, Toaster, ToasterConfig, ToggleProps, ToolbarButton, ToolbarItem, ToolbarProps, ToolbarSize, ToolbarVariant, TooltipPlacement, TooltipProps, TradingDashboardProps, TrailConfig, TrailPoint, TreeMapNode, TreeMapProps, TreeNavProps, TreeNodeData, USStateMapProps, UnityDesktopProps, UseHypercubeOptions, Vec, VectorDatum, VectorFieldProps, Vertex, VideoPlayerProps, VirtualScrollProps, VizWrapperProps, WaterfallChartProps, WaterfallDatum, WordCloudProps, WordDatum, WordProcessorProps };
3333
+ export { Accordion, Alert, AnalogClock, Avatar, Badge, BarGraph, BigNumber, BlochSphere, BoxPlot, Breadcrumb, BubbleChart, Button, CalendarHeatMap, Card, Carousel, CartesianGraph2D, Checkbox, ChordDiagram, ColorPicker, ColorWheel, ComplexGraph2D, ContextMenu, DataGrid, DatePicker, DecompositionTree, DigitalClock, DiscreteCartesian2D, Drawer, Dropdown, EmptyState, FileUpload, FlexContainer, FlexItem, Footer, ForceGraph, FormFieldWrapper, FunnelChart, GanttChart, Gauge, GoogleAnalytics, Grid, GridItem, HeatMap, Histogram, HypercubeGraph, IDE, Image, LineGraph, ListView, LollipopChart, Matrix, Menubar, Modal, MultilineField, NavWrapper, NumberSpinner, Pagination, Panel, Partition, PieGraph, PivotTable, PolarGraph2D, Popover, ProgressBar, RadarChart, RadioGroup, SankeyDiagram, ScrollContainer, Select, Sidebar, Skeleton, Slider, Spinner, Splitter, Stepper, Sunburst, Tabs, Tag, TextEditor, TextField, ThreeDLayers, TimePicker, ToastContainer, Toggle, Toolbar, Tooltip, TradingDashboard, TreeMap, TreeNav, TreeNode, USStateMap, US_STATE_PATHS, UnityApp, UnityDesktop, VectorField, VideoPlayer, VirtualScroll, VizWrapper, WaterfallChart, WordCloud, WordProcessor, applyGate, blochToCartesian, buildInputStyle, buildNavItemStyle, buildRotationMatrix, cartesianToBloch, computeBoxStats, computeMandelbrotGrid, computeSlices, createToaster, describeArc, generateEdges, generateHypercube, generatePalette, generateVertices, numRotationAngles, projectTo2D, transformVec, useBarGraphScales, useHover, useHypercube, useLineGraphScales, useToast };
3334
+ export type { AccordionContentStyle, AccordionHeaderStyle, AccordionProps, AccordionSection, AlertProps, AnalogClockProps, AvatarProps, BadgeProps, BarDatum, BarGraphProps, BarGraphScales, BigNumberProps, BlochSphereProps, BlochState, BoxPlotDatum, BoxPlotProps, BoxStats, BreadcrumbItem, BreadcrumbProps, BreadcrumbSize, BubbleChartProps, BubbleDatum, ButtonProps, CalendarDatum, CalendarHeatMapProps, CardProps, CarouselProps, CartesianGraph2DProps, CheckboxProps, ChordDiagramProps, ColorPickerProps, ColorWheelProps, ComplexGraph2DProps, ComplexPointInfo, ComputeWorkerFn, ComputedSlice, ContextMenuItem, ContextMenuProps, CustomForceFunction, DataGridColumn, DataGridProps, DatePickerProps, DecompNode, DecompositionTreeProps, DigitalClockProps, DiscreteCartesian2DProps, DrawerPosition, DrawerProps, DropdownItem, DropdownProps, Edge, EmptyStateProps, FileUploadProps, FlexContainerProps, FlexItemProps, FooterProps, ForceEdge, ForceGraphProps, ForceNode, ForceSimNode, FormFieldWrapperProps, FormFieldWrapperStyle, FunnelChartProps, FunnelDatum, GanttChartProps, GanttTask, GateName, GateOp, GaugeProps, GoogleAnalyticsProps, GridBreakpoint, GridItemProps, GridProps, HeatMapProps, HistogramProps, HypercubeData, HypercubeGraphProps, IDEProps, ImageProps, InputBaseStyle, Layer3D, LegendItem, LineGraphProps, LineSeries, ListViewProps, LollipopChartProps, LollipopDatum, MatrixProps, MenuDefinition, MenuItem, MenubarProps, ModalProps, ModalSize, MousePosition, MultilineFieldProps, NavItemStyle, NavOrientation, NavWrapperProps, NavWrapperStyle, NumberSpinnerProps, PaginationProps, PanelProps, PartitionNode, PartitionProps, PieGraphProps, PieSliceDatum, PivotTableProps, Point, PointEvent, PointShape, PolarGraph2DProps, PolarPointInfo, PopoverPlacement, PopoverProps, Position, ProgressBarProps, RadarAxis, RadarChartProps, RadarSeries, RadioGroupProps, RadioOption, SankeyDiagramProps, SankeyLink, SankeyNode, ScrollContainerProps, SelectOption, SelectProps, SidebarItem, SidebarProps, SkeletonProps, SliderMark, SliderProps, SpinnerProps, SplitterProps, StackedBarDatum, StatePathData, StepItem, StepperOrientation, StepperProps, StepperVariant, SunburstNode, SunburstProps, TabDefinition, TabsProps, TagProps, TextEditorProps, TextFieldProps, ThreeDLayersProps, TimePickerProps, ToastAction, ToastItem, ToastNotification, ToastOptions, ToastPosition, ToastType, Toaster, ToasterConfig, ToggleProps, ToolbarButton, ToolbarItem, ToolbarProps, ToolbarSize, ToolbarVariant, TooltipPlacement, TooltipProps, TradingDashboardProps, TrailConfig, TrailPoint, TreeMapNode, TreeMapProps, TreeNavProps, TreeNodeData, USStateMapProps, UnityAppProps, UnityDesktopApp, UnityDesktopProps, UnityDesktopUser, UseHypercubeOptions, Vec, VectorDatum, VectorFieldProps, Vertex, VideoPlayerProps, VirtualScrollProps, VizWrapperProps, WaterfallChartProps, WaterfallDatum, WordCloudProps, WordDatum, WordProcessorProps };