@asymmetric-effort/specifyjs 0.2.109 → 0.2.113

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 (161) hide show
  1. package/dist/esm/chunks/chunk-2Y3QZBBL.js +221 -0
  2. package/dist/esm/chunks/{chunk-3SXNLMCH.js.map → chunk-2Y3QZBBL.js.map} +2 -2
  3. package/dist/esm/chunks/chunk-5OX5JKEY.js +174 -0
  4. package/dist/esm/chunks/{chunk-VAF4KNDP.js.map → chunk-5OX5JKEY.js.map} +2 -2
  5. package/dist/esm/chunks/chunk-AVA7QEGU.js +625 -0
  6. package/dist/esm/chunks/{chunk-A7AAS5ZR.js.map → chunk-AVA7QEGU.js.map} +2 -2
  7. package/dist/esm/chunks/chunk-BLIAKWAU.js +42 -0
  8. package/dist/esm/chunks/{chunk-TVDAY42P.js.map → chunk-BLIAKWAU.js.map} +2 -2
  9. package/dist/esm/chunks/chunk-CWCWXKVV.js +202 -0
  10. package/dist/esm/chunks/{chunk-MCXU6QF3.js.map → chunk-CWCWXKVV.js.map} +2 -2
  11. package/dist/esm/chunks/chunk-HINJXYXY.js +29 -0
  12. package/dist/esm/chunks/{chunk-3J4RXW7E.js.map → chunk-HINJXYXY.js.map} +2 -2
  13. package/dist/esm/chunks/chunk-MKUA6QTB.js +9 -0
  14. package/dist/esm/chunks/chunk-NF4555DU.js +58 -0
  15. package/dist/esm/chunks/{chunk-ODCBJ22O.js.map → chunk-NF4555DU.js.map} +2 -2
  16. package/dist/esm/chunks/chunk-RSL3RU56.js +14 -0
  17. package/dist/esm/chunks/{chunk-E43OK6IZ.js.map → chunk-RSL3RU56.js.map} +2 -2
  18. package/dist/esm/chunks/chunk-T7EHIXSF.js +17 -0
  19. package/dist/esm/chunks/{chunk-LWOMFZ4C.js.map → chunk-T7EHIXSF.js.map} +2 -2
  20. package/dist/esm/chunks/metrics-6LW2N3GU.js +16 -0
  21. package/dist/esm/client/index.js +670 -1
  22. package/dist/esm/components-barrel.js +25688 -3
  23. package/dist/esm/dom/index.js +1902 -1
  24. package/dist/esm/index.js +117 -1
  25. package/dist/esm/jsx-dev-runtime.js +12 -1
  26. package/dist/esm/jsx-runtime.js +13 -1
  27. package/dist/esm/server/index.js +381 -1
  28. package/dist/esm/telemetry/index.js +188 -1
  29. package/dist/specifyjs-client.esm.js +670 -1
  30. package/dist/specifyjs-client.esm.js.map +2 -2
  31. package/dist/specifyjs-components.cjs.js.map +1 -1
  32. package/dist/specifyjs-components.esm.js +25688 -3
  33. package/dist/specifyjs-components.esm.js.map +3 -3
  34. package/dist/specifyjs-dom.esm.js +1902 -1
  35. package/dist/specifyjs-dom.esm.js.map +2 -2
  36. package/dist/specifyjs-jsx-dev-runtime.esm.js +12 -1
  37. package/dist/specifyjs-jsx-runtime.esm.js +13 -1
  38. package/dist/specifyjs-server.esm.js +381 -1
  39. package/dist/specifyjs-server.esm.js.map +2 -2
  40. package/dist/specifyjs-telemetry.esm.js +188 -1
  41. package/dist/specifyjs-telemetry.esm.js.map +2 -2
  42. package/dist/specifyjs.esm.js +117 -1
  43. package/dist/types/components/ad/adsense/src/AdSense.d.ts +1 -1
  44. package/dist/types/components/data/analog-clock/src/AnalogClock.d.ts +1 -1
  45. package/dist/types/components/data/avatar/src/Avatar.d.ts +1 -1
  46. package/dist/types/components/data/badge/src/Badge.d.ts +1 -1
  47. package/dist/types/components/data/data-grid/src/DataGrid.d.ts +1 -1
  48. package/dist/types/components/data/digital-clock/src/DigitalClock.d.ts +1 -1
  49. package/dist/types/components/data/list-view/src/ListView.d.ts +1 -1
  50. package/dist/types/components/data/tag/src/Tag.d.ts +1 -1
  51. package/dist/types/components/data/virtual-scroll/src/VirtualScroll.d.ts +1 -1
  52. package/dist/types/components/feedback/alert/src/Alert.d.ts +1 -1
  53. package/dist/types/components/feedback/empty-state/src/EmptyState.d.ts +1 -1
  54. package/dist/types/components/feedback/progress-bar/src/ProgressBar.d.ts +1 -1
  55. package/dist/types/components/feedback/skeleton/src/Skeleton.d.ts +1 -1
  56. package/dist/types/components/feedback/spinner/src/Spinner.d.ts +1 -1
  57. package/dist/types/components/form/button/src/Button.d.ts +1 -1
  58. package/dist/types/components/form/checkbox/src/Checkbox.d.ts +1 -1
  59. package/dist/types/components/form/color-picker/src/ColorPicker.d.ts +1 -1
  60. package/dist/types/components/form/color-wheel/src/ColorWheel.d.ts +1 -1
  61. package/dist/types/components/form/datepicker/src/DatePicker.d.ts +1 -1
  62. package/dist/types/components/form/file-upload/src/FileUpload.d.ts +1 -1
  63. package/dist/types/components/form/multiline/src/MultilineField.d.ts +1 -1
  64. package/dist/types/components/form/number-spinner/src/NumberSpinner.d.ts +1 -1
  65. package/dist/types/components/form/radio/src/RadioGroup.d.ts +1 -1
  66. package/dist/types/components/form/select/src/Select.d.ts +1 -1
  67. package/dist/types/components/form/slider/src/Slider.d.ts +1 -1
  68. package/dist/types/components/form/texteditor/src/TextEditor.d.ts +1 -1
  69. package/dist/types/components/form/textfield/src/TextField.d.ts +1 -1
  70. package/dist/types/components/form/timepicker/src/TimePicker.d.ts +1 -1
  71. package/dist/types/components/form/toggle/src/Toggle.d.ts +1 -1
  72. package/dist/types/components/form/wrapper/src/FormFieldWrapper.d.ts +1 -1
  73. package/dist/types/components/layout/card/src/Card.d.ts +1 -1
  74. package/dist/types/components/layout/desktop-background/src/DesktopBackground.d.ts +1 -1
  75. package/dist/types/components/layout/flex-container/src/FlexContainer.d.ts +2 -2
  76. package/dist/types/components/layout/footer/src/Footer.d.ts +1 -1
  77. package/dist/types/components/layout/grid/src/Grid.d.ts +2 -2
  78. package/dist/types/components/layout/panel/src/Panel.d.ts +1 -1
  79. package/dist/types/components/layout/scroll-container/src/ScrollContainer.d.ts +1 -1
  80. package/dist/types/components/layout/splitter/src/Splitter.d.ts +1 -1
  81. package/dist/types/components/layout/tabs/src/Tabs.d.ts +1 -1
  82. package/dist/types/components/layout/window-manager/src/WindowManager.d.ts +1 -1
  83. package/dist/types/components/media/carousel/src/Carousel.d.ts +1 -1
  84. package/dist/types/components/media/image/src/Image.d.ts +1 -1
  85. package/dist/types/components/media/video-player/src/VideoPlayer.d.ts +1 -1
  86. package/dist/types/components/nav/accordion/src/Accordion.d.ts +1 -1
  87. package/dist/types/components/nav/breadcrumb/src/Breadcrumb.d.ts +1 -1
  88. package/dist/types/components/nav/dock/src/Dock.d.ts +1 -1
  89. package/dist/types/components/nav/dropdown/src/Dropdown.d.ts +1 -1
  90. package/dist/types/components/nav/menubar/src/Menubar.d.ts +1 -1
  91. package/dist/types/components/nav/pagination/src/Pagination.d.ts +1 -1
  92. package/dist/types/components/nav/sidebar/src/Sidebar.d.ts +1 -1
  93. package/dist/types/components/nav/stepper/src/Stepper.d.ts +1 -1
  94. package/dist/types/components/nav/system-tray/src/SystemTray.d.ts +1 -1
  95. package/dist/types/components/nav/toolbar/src/Toolbar.d.ts +1 -1
  96. package/dist/types/components/nav/treenav/src/TreeNav.d.ts +1 -1
  97. package/dist/types/components/nav/wrapper/src/NavWrapper.d.ts +1 -1
  98. package/dist/types/components/overlay/context-menu/src/ContextMenu.d.ts +1 -1
  99. package/dist/types/components/overlay/drawer/src/Drawer.d.ts +1 -1
  100. package/dist/types/components/overlay/modal/src/Modal.d.ts +1 -1
  101. package/dist/types/components/overlay/popover/src/Popover.d.ts +1 -1
  102. package/dist/types/components/overlay/toast/src/Toast.d.ts +2 -2
  103. package/dist/types/components/overlay/tooltip/src/Tooltip.d.ts +1 -1
  104. package/dist/types/components/page/ide/src/IDE.d.ts +1 -1
  105. package/dist/types/components/page/trading-dashboard/src/TradingDashboard.d.ts +1 -1
  106. package/dist/types/components/page/unity-desktop/src/UnityApp.d.ts +1 -1
  107. package/dist/types/components/page/unity-desktop/src/UnityDesktop.d.ts +1 -1
  108. package/dist/types/components/page/word-processor/src/WordProcessor.d.ts +1 -1
  109. package/dist/types/components/viz/2D-bar-graph/src/BarGraph.d.ts +1 -1
  110. package/dist/types/components/viz/2D-discrete-cartesian/src/DiscreteCartesian2D.d.ts +1 -1
  111. package/dist/types/components/viz/2D-line-graph/src/LineGraph.d.ts +1 -1
  112. package/dist/types/components/viz/2D-pie-graph/src/PieGraph.d.ts +1 -1
  113. package/dist/types/components/viz/3d-force-graph/src/ForceGraph3D.d.ts +27 -119
  114. package/dist/types/components/viz/3d-force-graph/src/force-sim.d.ts +49 -0
  115. package/dist/types/components/viz/3d-force-graph/src/index.d.ts +5 -1
  116. package/dist/types/components/viz/3d-force-graph/src/types.d.ts +88 -0
  117. package/dist/types/components/viz/3d-layers/src/ThreeDLayers.d.ts +1 -1
  118. package/dist/types/components/viz/3dSpace/src/Space3D.d.ts +1 -1
  119. package/dist/types/components/viz/3dSpace/src/geom-polyhedron.d.ts +49 -0
  120. package/dist/types/components/viz/3dSpace/src/geom-sphere.d.ts +27 -0
  121. package/dist/types/components/viz/3dSpace/src/index.d.ts +5 -0
  122. package/dist/types/components/viz/3dSpace/src/mesh.d.ts +22 -0
  123. package/dist/types/components/viz/3dSpace/src/scene-object.d.ts +4 -0
  124. package/dist/types/components/viz/big-number/src/BigNumber.d.ts +1 -1
  125. package/dist/types/components/viz/bloch-sphere/src/BlochSphere.d.ts +1 -1
  126. package/dist/types/components/viz/box-plot/src/BoxPlot.d.ts +1 -1
  127. package/dist/types/components/viz/bubble-chart/src/BubbleChart.d.ts +1 -1
  128. package/dist/types/components/viz/calendar-heat-map/src/CalendarHeatMap.d.ts +1 -1
  129. package/dist/types/components/viz/chord/src/ChordDiagram.d.ts +1 -1
  130. package/dist/types/components/viz/decomposition-tree/src/DecompositionTree.d.ts +1 -1
  131. package/dist/types/components/viz/funnel/src/FunnelChart.d.ts +1 -1
  132. package/dist/types/components/viz/gantt-chart/src/GanttChart.d.ts +1 -1
  133. package/dist/types/components/viz/gauge/src/Gauge.d.ts +1 -1
  134. package/dist/types/components/viz/graph/src/HypercubeGraph.d.ts +1 -1
  135. package/dist/types/components/viz/heat-map/src/HeatMap.d.ts +1 -1
  136. package/dist/types/components/viz/histogram/src/Histogram.d.ts +1 -1
  137. package/dist/types/components/viz/matrix/src/Matrix.d.ts +1 -1
  138. package/dist/types/components/viz/partition/src/Partition.d.ts +1 -1
  139. package/dist/types/components/viz/pivot-table/src/PivotTable.d.ts +1 -1
  140. package/dist/types/components/viz/radar-chart/src/RadarChart.d.ts +1 -1
  141. package/dist/types/components/viz/sankey/src/SankeyDiagram.d.ts +1 -1
  142. package/dist/types/components/viz/sunburst/src/Sunburst.d.ts +1 -1
  143. package/dist/types/components/viz/tree-map/src/TreeMap.d.ts +1 -1
  144. package/dist/types/components/viz/vector-field/src/VectorField.d.ts +1 -1
  145. package/dist/types/components/viz/waterfall/src/WaterfallChart.d.ts +1 -1
  146. package/dist/types/components/viz/word-cloud/src/WordCloud.d.ts +1 -1
  147. package/dist/types/components/viz/wrapper/src/VizWrapper.d.ts +1 -1
  148. package/package.json +1 -1
  149. package/dist/esm/chunks/chunk-3J4RXW7E.js +0 -3
  150. package/dist/esm/chunks/chunk-3SXNLMCH.js +0 -3
  151. package/dist/esm/chunks/chunk-A7AAS5ZR.js +0 -3
  152. package/dist/esm/chunks/chunk-E43OK6IZ.js +0 -3
  153. package/dist/esm/chunks/chunk-LWOMFZ4C.js +0 -3
  154. package/dist/esm/chunks/chunk-MCXU6QF3.js +0 -3
  155. package/dist/esm/chunks/chunk-ODCBJ22O.js +0 -3
  156. package/dist/esm/chunks/chunk-TVDAY42P.js +0 -3
  157. package/dist/esm/chunks/chunk-VAF4KNDP.js +0 -3
  158. package/dist/esm/chunks/chunk-ZDPD2MPQ.js +0 -3
  159. package/dist/esm/chunks/metrics-56RIK7JQ.js +0 -3
  160. /package/dist/esm/chunks/{chunk-ZDPD2MPQ.js.map → chunk-MKUA6QTB.js.map} +0 -0
  161. /package/dist/esm/chunks/{metrics-56RIK7JQ.js.map → metrics-6LW2N3GU.js.map} +0 -0
@@ -38,5 +38,5 @@ export interface FlexItemProps {
38
38
  /** Children */
39
39
  children?: unknown;
40
40
  }
41
- export declare function FlexContainer(props: FlexContainerProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
42
- export declare function FlexItem(props: FlexItemProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
41
+ export declare function FlexContainer(props: FlexContainerProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
42
+ export declare function FlexItem(props: FlexItemProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -22,4 +22,4 @@ export interface FooterProps {
22
22
  /** ARIA label for the footer landmark */
23
23
  ariaLabel?: string;
24
24
  }
25
- export declare function Footer(props: FooterProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
25
+ export declare function Footer(props: FooterProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -50,5 +50,5 @@ export interface GridItemProps {
50
50
  /** Children */
51
51
  children?: unknown;
52
52
  }
53
- export declare function Grid(props: GridProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
54
- export declare function GridItem(props: GridItemProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
53
+ export declare function Grid(props: GridProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
54
+ export declare function GridItem(props: GridItemProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -20,4 +20,4 @@ export interface PanelProps {
20
20
  /** Body content */
21
21
  children?: unknown;
22
22
  }
23
- export declare function Panel(props: PanelProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
23
+ export declare function Panel(props: PanelProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -18,4 +18,4 @@ export interface ScrollContainerProps {
18
18
  /** Children */
19
19
  children?: unknown;
20
20
  }
21
- export declare function ScrollContainer(props: ScrollContainerProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
21
+ export declare function ScrollContainer(props: ScrollContainerProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -16,4 +16,4 @@ export interface SplitterProps {
16
16
  /** Exactly two children */
17
17
  children?: unknown[];
18
18
  }
19
- export declare function Splitter(props: SplitterProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
19
+ export declare function Splitter(props: SplitterProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -26,4 +26,4 @@ export interface TabsProps {
26
26
  /** Extra class name */
27
27
  className?: string;
28
28
  }
29
- export declare function Tabs(props: TabsProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
29
+ export declare function Tabs(props: TabsProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -1,4 +1,4 @@
1
- import type { SpecNode } from '../../../../core/src/shared/types';
1
+ import type { SpecNode } from 'specifyjs';
2
2
  export interface WindowState {
3
3
  /** Unique window identifier */
4
4
  id: string;
@@ -20,4 +20,4 @@ export interface CarouselProps {
20
20
  /** Called when the active index changes */
21
21
  onChange?: (index: number) => void;
22
22
  }
23
- export declare function Carousel(props: CarouselProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
23
+ export declare function Carousel(props: CarouselProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -20,4 +20,4 @@ export interface ImageProps {
20
20
  /** Caption text rendered below the image */
21
21
  caption?: string;
22
22
  }
23
- export declare function Image(props: ImageProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
23
+ export declare function Image(props: ImageProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -24,4 +24,4 @@ export interface VideoPlayerProps {
24
24
  /** Time update callback */
25
25
  onTimeUpdate?: (currentTime: number, duration: number) => void;
26
26
  }
27
- export declare function VideoPlayer(props: VideoPlayerProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
27
+ export declare function VideoPlayer(props: VideoPlayerProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -49,4 +49,4 @@ export interface AccordionProps {
49
49
  /** Callback fired with the array of currently expanded section IDs */
50
50
  onChange?: (expandedIds: string[]) => void;
51
51
  }
52
- export declare function Accordion(props: AccordionProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
52
+ export declare function Accordion(props: AccordionProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -17,4 +17,4 @@ export interface BreadcrumbProps {
17
17
  /** Size variant (default: 'md') */
18
18
  size?: BreadcrumbSize;
19
19
  }
20
- export declare function Breadcrumb(props: BreadcrumbProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
20
+ export declare function Breadcrumb(props: BreadcrumbProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -5,7 +5,7 @@
5
5
  * launchers with active/running indicators, badges, tooltips, and
6
6
  * click-to-open behavior. Inspired by the Ubuntu Unity launcher and macOS dock.
7
7
  */
8
- import { type SpecNode } from '../../../../core/src/index';
8
+ import { type SpecNode } from 'specifyjs';
9
9
  export interface DockItem {
10
10
  /** Unique identifier for this dock entry */
11
11
  id: string;
@@ -33,4 +33,4 @@ export interface DropdownProps {
33
33
  /** Width of the dropdown panel (default: '220px') */
34
34
  width?: string | number;
35
35
  }
36
- export declare function Dropdown(props: DropdownProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
36
+ export declare function Dropdown(props: DropdownProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -24,4 +24,4 @@ export interface MenubarProps {
24
24
  /** Array of top-level menu definitions */
25
25
  menus: MenuDefinition[];
26
26
  }
27
- export declare function Menubar(props: MenubarProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
27
+ export declare function Menubar(props: MenubarProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -16,4 +16,4 @@ export interface PaginationProps {
16
16
  /** Disable all controls */
17
17
  disabled?: boolean;
18
18
  }
19
- export declare function Pagination(props: PaginationProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
19
+ export declare function Pagination(props: PaginationProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -26,4 +26,4 @@ export interface SidebarProps {
26
26
  /** Collapsed width (default: '56px') */
27
27
  collapsedWidth?: string | number;
28
28
  }
29
- export declare function Sidebar(props: SidebarProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
29
+ export declare function Sidebar(props: SidebarProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -22,4 +22,4 @@ export interface StepperProps {
22
22
  /** Visual variant (default: 'circle') */
23
23
  variant?: StepperVariant;
24
24
  }
25
- export declare function Stepper(props: StepperProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
25
+ export declare function Stepper(props: StepperProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -44,4 +44,4 @@ export interface SystemTrayProps {
44
44
  /** Children -- additional elements to render in the center area */
45
45
  children?: unknown;
46
46
  }
47
- export declare function SystemTray(props: SystemTrayProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
47
+ export declare function SystemTray(props: SystemTrayProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -24,4 +24,4 @@ export interface ToolbarProps {
24
24
  /** Visual variant (default: 'flat') */
25
25
  variant?: ToolbarVariant;
26
26
  }
27
- export declare function Toolbar(props: ToolbarProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
27
+ export declare function Toolbar(props: ToolbarProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -31,4 +31,4 @@ export interface TreeNavProps {
31
31
  /** Custom node renderer for full control over node appearance */
32
32
  renderNode?: (node: TreeNode, isSelected: boolean) => unknown;
33
33
  }
34
- export declare function TreeNav(props: TreeNavProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
34
+ export declare function TreeNav(props: TreeNavProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -39,7 +39,7 @@ export interface NavWrapperProps {
39
39
  /** Children */
40
40
  children?: unknown;
41
41
  }
42
- export declare function NavWrapper(props: NavWrapperProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
42
+ export declare function NavWrapper(props: NavWrapperProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
43
43
  export interface NavItemStyle {
44
44
  /** Padding (default: '10px 16px') */
45
45
  padding?: string;
@@ -18,4 +18,4 @@ export interface ContextMenuProps {
18
18
  /** Trigger area children */
19
19
  children?: unknown;
20
20
  }
21
- export declare function ContextMenu(props: ContextMenuProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
21
+ export declare function ContextMenu(props: ContextMenuProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -19,4 +19,4 @@ export interface DrawerProps {
19
19
  /** Drawer body children */
20
20
  children?: unknown;
21
21
  }
22
- export declare function Drawer(props: DrawerProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props> | null;
22
+ export declare function Drawer(props: DrawerProps): import("specifyjs").SpecElement<import("specifyjs").Props> | null;
@@ -19,4 +19,4 @@ export interface ModalProps {
19
19
  /** Modal body children */
20
20
  children?: unknown;
21
21
  }
22
- export declare function Modal(props: ModalProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props> | null;
22
+ export declare function Modal(props: ModalProps): import("specifyjs").SpecElement<import("specifyjs").Props> | null;
@@ -17,4 +17,4 @@ export interface PopoverProps {
17
17
  /** Callback when open state changes (for controlled mode) */
18
18
  onOpenChange?: (open: boolean) => void;
19
19
  }
20
- export declare function Popover(props: PopoverProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
20
+ export declare function Popover(props: PopoverProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -45,7 +45,7 @@ export declare function createToaster(config?: ToasterConfig): Toaster;
45
45
  */
46
46
  export declare function ToastContainer(props: {
47
47
  toaster: Toaster;
48
- }): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props> | null;
48
+ }): import("specifyjs").SpecElement<import("specifyjs").Props> | null;
49
49
  /**
50
50
  * useToast — Hook that creates a toaster and returns toast() + ToastContainer.
51
51
  */
@@ -53,7 +53,7 @@ export declare function useToast(config?: ToasterConfig): {
53
53
  toast: (message: string, opts?: ToastOptions) => string;
54
54
  dismiss: (id: string) => void;
55
55
  dismissAll: () => void;
56
- ToastContainer: () => import("specifyjs/shared/types").SpecElement<{
56
+ ToastContainer: () => import("specifyjs").SpecElement<{
57
57
  toaster: Toaster;
58
58
  }>;
59
59
  };
@@ -11,4 +11,4 @@ export interface TooltipProps {
11
11
  /** Trigger element(s) */
12
12
  children?: unknown;
13
13
  }
14
- export declare function Tooltip(props: TooltipProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
14
+ export declare function Tooltip(props: TooltipProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -2,4 +2,4 @@ export interface IDEProps {
2
2
  /** Extra class name */
3
3
  className?: string;
4
4
  }
5
- export declare function IDE(props: IDEProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
5
+ export declare function IDE(props: IDEProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -2,4 +2,4 @@ export interface TradingDashboardProps {
2
2
  /** Extra class name */
3
3
  className?: string;
4
4
  }
5
- export declare function TradingDashboard(props: TradingDashboardProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
5
+ export declare function TradingDashboard(props: TradingDashboardProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -27,4 +27,4 @@ export interface UnityAppProps {
27
27
  /** Application content */
28
28
  children?: unknown;
29
29
  }
30
- export declare function UnityApp(props: UnityAppProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props> | null;
30
+ export declare function UnityApp(props: UnityAppProps): import("specifyjs").SpecElement<import("specifyjs").Props> | null;
@@ -27,4 +27,4 @@ export interface ToastNotification {
27
27
  severity: 'info' | 'warning' | 'error';
28
28
  timestamp: number;
29
29
  }
30
- export declare function UnityDesktop(props: UnityDesktopProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
30
+ export declare function UnityDesktop(props: UnityDesktopProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -4,4 +4,4 @@ export interface WordProcessorProps {
4
4
  /** Extra class name */
5
5
  className?: string;
6
6
  }
7
- export declare function WordProcessor(props: WordProcessorProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
7
+ export declare function WordProcessor(props: WordProcessorProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -58,4 +58,4 @@ export interface BarGraphScales {
58
58
  categoryAxisLength: number;
59
59
  }
60
60
  export declare function useBarGraphScales(count: number, maxValue: number, axisLength: number, categoryAxisLength: number, barGap: number): BarGraphScales;
61
- export declare function BarGraph(props: BarGraphProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
61
+ export declare function BarGraph(props: BarGraphProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -28,4 +28,4 @@ export interface DiscreteCartesian2DProps {
28
28
  /** Title */
29
29
  title?: string;
30
30
  }
31
- export declare function DiscreteCartesian2D(props: DiscreteCartesian2DProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
31
+ export declare function DiscreteCartesian2D(props: DiscreteCartesian2DProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -49,5 +49,5 @@ interface ScaleResult {
49
49
  yMax: number;
50
50
  }
51
51
  export declare function useLineGraphScales(data: Point[], width: number, height: number, padding: number): ScaleResult;
52
- export declare function LineGraph(props: LineGraphProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
52
+ export declare function LineGraph(props: LineGraphProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
53
53
  export {};
@@ -1,4 +1,4 @@
1
- import { type SpecElement } from '../../../../core/src/index';
1
+ import { type SpecElement } from 'specifyjs';
2
2
  export interface PieSliceDatum {
3
3
  label: string;
4
4
  value: number;
@@ -1,123 +1,31 @@
1
- /** A node in the 3D force graph. */
2
- export interface ForceGraph3DNode {
3
- id: string;
4
- label?: string;
5
- /** Initial position (randomized if omitted) */
6
- x?: number;
7
- y?: number;
8
- z?: number;
9
- /** Node size. Default: 5 */
10
- size?: number;
11
- /** Node color. Default: '#3b82f6' */
12
- color?: string;
13
- /** Arbitrary metadata accessible in callbacks */
14
- data?: Record<string, unknown>;
1
+ import type { Vec3 } from '../../../math/src/vec';
2
+ import type { Quaternion } from '../../../math/src/quaternion';
3
+ import { SceneObject } from '../../3dSpace/src/scene-object';
4
+ import type { ForceGraph3DNode, ForceGraph3DEdge, ForceGraph3DProps } from './types';
5
+ /** Internal state for a node, mapping config to SceneObject. */
6
+ export interface NodeState {
7
+ config: ForceGraph3DNode;
8
+ sceneObjectId: string;
9
+ labelObjectId?: string;
15
10
  }
16
- /** An edge in the 3D force graph. */
17
- export interface ForceGraph3DEdge {
18
- source: string;
19
- target: string;
20
- /** Edge color. Default: '#94a3b8' */
21
- color?: string;
22
- /** Edge width. Default: 1 */
23
- width?: number;
24
- /** Edge label */
25
- label?: string;
11
+ /** Internal state for an edge, mapping config to SceneObject. */
12
+ export interface EdgeState {
13
+ config: ForceGraph3DEdge;
14
+ sceneObjectId: string;
26
15
  }
27
- export interface ForceGraph3DProps {
28
- /** Node definitions */
29
- nodes: ForceGraph3DNode[];
30
- /** Edge definitions (references node ids) */
31
- edges: ForceGraph3DEdge[];
32
- /** Canvas width. Default: 600 */
33
- width?: number;
34
- /** Canvas height. Default: 400 */
35
- height?: number;
36
- /** Force simulation parameters */
37
- simulation?: {
38
- /** Repulsion strength between nodes. Default: -100 */
39
- repulsion?: number;
40
- /** Spring strength for edges. Default: 0.01 */
41
- springStrength?: number;
42
- /** Ideal spring length. Default: 100 */
43
- springLength?: number;
44
- /** Velocity damping per tick. Default: 0.9 */
45
- damping?: number;
46
- /** Simulation iterations per frame. Default: 1 */
47
- iterations?: number;
48
- };
49
- /** Camera controls */
50
- camera?: {
51
- /** Initial distance from origin. Default: 300 */
52
- distance?: number;
53
- /** Auto-rotate speed (degrees/sec, 0 to disable). Default: 0 */
54
- autoRotateSpeed?: number;
55
- };
56
- /** Called when a node is clicked */
57
- onNodeClick?: (node: ForceGraph3DNode) => void;
58
- /** Called when a node is hovered */
59
- onNodeHover?: (node: ForceGraph3DNode | null) => void;
60
- /** Background color. Default: '#0f172a' */
61
- backgroundColor?: string;
62
- }
63
- /** Internal simulation node with velocity. */
64
- export interface ForceGraph3DSimNode {
65
- id: string;
66
- label: string;
67
- x: number;
68
- y: number;
69
- z: number;
70
- vx: number;
71
- vy: number;
72
- vz: number;
73
- size: number;
74
- color: string;
75
- data: Record<string, unknown>;
76
- }
77
- interface CameraState {
78
- /** Azimuth angle in radians (horizontal orbit) */
79
- azimuth: number;
80
- /** Elevation angle in radians (vertical orbit, clamped) */
81
- elevation: number;
82
- /** Distance from origin */
83
- distance: number;
84
- }
85
- /** Initialize simulation nodes from props using spherical distribution. */
86
- export declare function initSimNodes3D(nodes: ForceGraph3DNode[]): ForceGraph3DSimNode[];
87
- /**
88
- * Run one tick of the 3D force simulation. Returns new node states.
89
- *
90
- * Forces:
91
- * - Coulomb repulsion between all node pairs (O(n^2))
92
- * - Hooke spring attraction along edges
93
- * - Center gravity — gentle pull toward origin
94
- */
95
- export declare function simulationTick3D(simNodes: ForceGraph3DSimNode[], edges: ForceGraph3DEdge[], repulsion: number, springStrength: number, springLength: number, damping: number): ForceGraph3DSimNode[];
96
- /** Compute total kinetic energy to determine when simulation is settled. */
97
- export declare function kineticEnergy3D(simNodes: ForceGraph3DSimNode[]): number;
98
- /** Compute camera position from spherical coordinates. */
99
- export declare function cameraPosition(cam: CameraState): {
100
- x: number;
101
- y: number;
102
- z: number;
103
- };
16
+ /** Generate edge key from source+target. */
17
+ export declare function edgeKey(source: string, target: string): string;
18
+ /** Auto-compute rest length based on node count. */
19
+ export declare function autoRestLength(nodeCount: number): number;
104
20
  /**
105
- * Project a 3D point to 2D screen coordinates using perspective projection.
106
- * Returns { sx, sy, depth } where sx/sy are screen coords and depth is for sorting.
107
- * Returns null if the point is behind the camera.
108
- *
109
- * The camera orbits around the origin. Its "forward" direction is from camPos
110
- * toward the origin. We build an orthonormal camera basis (right, up, forward)
111
- * and project the camera-to-point vector onto that basis.
21
+ * Compute quaternion that rotates the Y-axis (0,1,0) to the given direction.
112
22
  */
113
- export declare function projectPoint(px: number, py: number, pz: number, camPos: {
114
- x: number;
115
- y: number;
116
- z: number;
117
- }, camAzimuth: number, camElevation: number, width: number, height: number, fov: number): {
118
- sx: number;
119
- sy: number;
120
- depth: number;
121
- } | null;
122
- export declare function ForceGraph3D(props: ForceGraph3DProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
123
- export {};
23
+ export declare function quaternionFromYAxisTo(dir: Vec3): Quaternion;
24
+ /** Create a SceneObject for a node based on its shape config. */
25
+ export declare function createNodeSceneObject(nodeId: string, node: ForceGraph3DNode, position: Vec3): SceneObject;
26
+ /** Create a SceneObject for an edge (unit cylinder). */
27
+ export declare function createEdgeSceneObject(source: string, target: string, edge: ForceGraph3DEdge): SceneObject;
28
+ /** Update edge SceneObject transform to connect source and target positions. */
29
+ export declare function updateEdgeTransform(edgeObj: SceneObject, sourcePos: Vec3, targetPos: Vec3, thickness: number): void;
30
+ /** ForceGraph3D component. */
31
+ export declare function ForceGraph3D(props: ForceGraph3DProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * force-sim.ts -- Pure math 3D force simulation engine.
3
+ *
4
+ * No rendering, no DOM, no 3dSpace dependencies.
5
+ * Suitable for testing in isolation.
6
+ */
7
+ import type { Vec3 } from '../../../math/src/vec';
8
+ /** A simulation node. */
9
+ export interface SimNode {
10
+ id: string;
11
+ position: Vec3;
12
+ velocity: Vec3;
13
+ mass: number;
14
+ fixed: boolean;
15
+ }
16
+ /** A simulation edge. */
17
+ export interface SimEdge {
18
+ source: string;
19
+ target: string;
20
+ restLength: number;
21
+ stiffness: number;
22
+ }
23
+ /** Simulation configuration. */
24
+ export interface SimConfig {
25
+ repulsionStrength: number;
26
+ attractionStrength: number;
27
+ damping: number;
28
+ centerGravity: number;
29
+ timeStep: number;
30
+ bounds: {
31
+ min: Vec3;
32
+ max: Vec3;
33
+ };
34
+ }
35
+ /**
36
+ * Run one step of the 3D force simulation.
37
+ * Mutates node positions and velocities in place.
38
+ *
39
+ * Forces applied:
40
+ * 1. Repulsion: Coulomb-like between all pairs F = repulsion * m1 * m2 / dist^2
41
+ * 2. Attraction: Hooke spring along edges F = stiffness * (dist - restLength)
42
+ * 3. Center gravity: pull toward origin F = centerGravity * mass * (-position)
43
+ * 4. Damping: velocity *= damping
44
+ * 5. Semi-implicit Euler integration
45
+ * 6. Boundary clamping
46
+ */
47
+ export declare function stepSimulation(nodes: Map<string, SimNode>, edges: SimEdge[], config: SimConfig): void;
48
+ /** Compute the total kinetic energy of the simulation. */
49
+ export declare function computeKineticEnergy(nodes: Map<string, SimNode>): number;
@@ -1,2 +1,6 @@
1
1
  export { ForceGraph3D } from './ForceGraph3D';
2
- export type { ForceGraph3DProps, ForceGraph3DNode, ForceGraph3DEdge, ForceGraph3DSimNode, } from './ForceGraph3D';
2
+ export type { NodeState, EdgeState } from './ForceGraph3D';
3
+ export { edgeKey, autoRestLength, quaternionFromYAxisTo, createNodeSceneObject, createEdgeSceneObject, updateEdgeTransform, } from './ForceGraph3D';
4
+ export type { ForceGraph3DProps, ForceGraph3DNode, ForceGraph3DEdge, ForceGraph3DAPI, } from './types';
5
+ export type { SimNode, SimEdge, SimConfig } from './force-sim';
6
+ export { stepSimulation, computeKineticEnergy } from './force-sim';
@@ -0,0 +1,88 @@
1
+ import type { Vec3 } from '../../../math/src/vec';
2
+ import type { Color } from '../../3dSpace/src/types';
3
+ import type { PolyhedronGeometry } from '../../3dSpace/src/geom-polyhedron';
4
+ import type { LightingModel } from '../../3dSpace/src/lighting-model';
5
+ import type { SceneGraph } from '../../3dSpace/src/scene-graph';
6
+ /** A node in the 3D force graph. */
7
+ export interface ForceGraph3DNode {
8
+ id: string;
9
+ label?: string;
10
+ position?: Vec3;
11
+ shape?: 'sphere' | 'cube' | 'tetrahedron' | 'octahedron' | 'icosahedron' | 'custom';
12
+ customGeometry?: PolyhedronGeometry;
13
+ /** Radius for spheres, scale for polyhedra. Default: 1.0. */
14
+ size?: number;
15
+ color?: Color;
16
+ textColor?: Color;
17
+ /** Exempt from force simulation. Default: false. */
18
+ fixed?: boolean;
19
+ /** Affects force response. Default: 1.0. */
20
+ mass?: number;
21
+ }
22
+ /** An edge in the 3D force graph. */
23
+ export interface ForceGraph3DEdge {
24
+ source: string;
25
+ target: string;
26
+ /** Default: 'cylinder-solid'. */
27
+ style?: 'cylinder-solid' | 'cylinder-mesh' | 'line';
28
+ /** Cylinder radius or line width. Default: 0.1. */
29
+ thickness?: number;
30
+ color?: Color;
31
+ /** Rest length for spring force. Default: auto-computed. */
32
+ length?: number;
33
+ /** Spring constant. Default: 0.1. */
34
+ stiffness?: number;
35
+ }
36
+ /** Props for the ForceGraph3D component. */
37
+ export interface ForceGraph3DProps {
38
+ width: number;
39
+ height: number;
40
+ nodes: ForceGraph3DNode[];
41
+ edges: ForceGraph3DEdge[];
42
+ /** Default: +/-50 on all axes. */
43
+ bounds?: {
44
+ min: Vec3;
45
+ max: Vec3;
46
+ };
47
+ /** Coulomb constant. Default: 100. */
48
+ repulsionStrength?: number;
49
+ /** Hooke constant. Default: 0.1. */
50
+ attractionStrength?: number;
51
+ /** Velocity decay 0-1. Default: 0.9. */
52
+ damping?: number;
53
+ /** Pull toward origin. Default: 0.01. */
54
+ centerGravity?: number;
55
+ /** Simulation active. Default: true. */
56
+ running?: boolean;
57
+ /** Seconds per step. Default: 0.016. */
58
+ timeStep?: number;
59
+ /** Default: auto-fit to graph. */
60
+ cameraDistance?: number;
61
+ /** Default: true. */
62
+ orbitControls?: boolean;
63
+ onNodeClick?: (nodeId: string, node: ForceGraph3DNode) => void;
64
+ onNodeHover?: (nodeId: string | null) => void;
65
+ onEdgeClick?: (edge: ForceGraph3DEdge) => void;
66
+ /** Dynamic API ref. */
67
+ apiRef?: (api: ForceGraph3DAPI) => void;
68
+ lightingModel?: LightingModel;
69
+ backgroundColor?: Color;
70
+ }
71
+ /** Imperative API for dynamic graph manipulation. */
72
+ export interface ForceGraph3DAPI {
73
+ addNode(node: ForceGraph3DNode): void;
74
+ removeNode(nodeId: string): void;
75
+ addEdge(edge: ForceGraph3DEdge): void;
76
+ removeEdge(source: string, target: string): void;
77
+ updateNode(nodeId: string, updates: Partial<ForceGraph3DNode>): void;
78
+ updateEdge(source: string, target: string, updates: Partial<ForceGraph3DEdge>): void;
79
+ getNodePositions(): Map<string, Vec3>;
80
+ setRunning(running: boolean): void;
81
+ resetPositions(): void;
82
+ fitCamera(): void;
83
+ loadGraph(graph: {
84
+ nodes: ForceGraph3DNode[];
85
+ edges: ForceGraph3DEdge[];
86
+ }): void;
87
+ getSceneGraph(): SceneGraph;
88
+ }
@@ -32,4 +32,4 @@ export interface ThreeDLayersProps {
32
32
  /** Chart title */
33
33
  title?: string;
34
34
  }
35
- export declare function ThreeDLayers(props: ThreeDLayersProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
35
+ export declare function ThreeDLayers(props: ThreeDLayersProps): import("specifyjs").SpecElement<import("specifyjs").Props>;
@@ -60,4 +60,4 @@ export interface Space3DProps {
60
60
  * Assembles the render pipeline, scene graph, cameras, viewports, and
61
61
  * runs a requestAnimationFrame loop for continuous rendering.
62
62
  */
63
- export declare function Space3D(props: Space3DProps): import("specifyjs/shared/types").SpecElement<import("specifyjs/shared/types").Props>;
63
+ export declare function Space3D(props: Space3DProps): import("specifyjs").SpecElement<import("specifyjs").Props>;