@synnaxlabs/pluto 0.37.0 → 0.38.1

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 (393) hide show
  1. package/dist/{Animated-ByIJT_wA.js → Animated-BWcO40x5.js} +3 -3
  2. package/dist/{Animated-BOjwPkTJ.cjs → Animated-Cxl7iHik.cjs} +1 -1
  3. package/dist/{Item-CQ2ZuDfi.js → Item-BZvmqn4h.js} +9 -9
  4. package/dist/{Item-Bamd13Tl.cjs → Item-C4SOBynl.cjs} +1 -1
  5. package/dist/{LinePlot-Ci-61YDW.js → LinePlot-B_tFyvNo.js} +2258 -2203
  6. package/dist/LinePlot-C_uxbSzY.cjs +56 -0
  7. package/dist/{Link-ZlOdu4jA.js → Link-BIWA4Kdj.js} +2 -2
  8. package/dist/{Link-Cm6yn4zC.cjs → Link-DO2YbtQM.cjs} +1 -1
  9. package/dist/Pack-B7_tAsYd.cjs +1 -0
  10. package/dist/Pack-Di5J8hmU.js +143 -0
  11. package/dist/Toggle-BOWYgKry.cjs +163 -0
  12. package/dist/{Toggle-DlYB4nmh.js → Toggle-DvdBHJvZ.js} +15334 -15692
  13. package/dist/Video-CAbdyjCE.js +9 -0
  14. package/dist/Video-usN9Roxq.cjs +1 -0
  15. package/dist/aggregator-B4RWbN9h.cjs +77 -0
  16. package/dist/{aggregator-CWsCIyed.js → aggregator-Bl15iClv.js} +3507 -3512
  17. package/dist/align.cjs +1 -1
  18. package/dist/align.js +1 -1
  19. package/dist/button.cjs +1 -1
  20. package/dist/button.js +1 -1
  21. package/dist/color.cjs +1 -1
  22. package/dist/color.js +1 -1
  23. package/dist/{css-Csw1Dn4s.js → css-Bbri4zkj.js} +299 -293
  24. package/dist/css-DT9dIVAb.cjs +1 -0
  25. package/dist/css.cjs +1 -1
  26. package/dist/css.js +2 -2
  27. package/dist/dropdown.cjs +1 -1
  28. package/dist/dropdown.js +1 -1
  29. package/dist/ether.cjs +1 -1
  30. package/dist/ether.js +49 -51
  31. package/dist/external-8OKX45Jc.cjs +1 -0
  32. package/dist/external-9Q86X8hc.cjs +1 -0
  33. package/dist/{external-CyYaJ5TW.js → external-B45MvYg8.js} +5 -5
  34. package/dist/external-BP5euc4j.js +34 -0
  35. package/dist/external-Ba8go3wq.cjs +1 -0
  36. package/dist/{external-DXD4PtTK.js → external-C59dex28.js} +2 -2
  37. package/dist/external-CKXRIr4_.cjs +1 -0
  38. package/dist/{external-4ikhWnyq.js → external-CML3oqyJ.js} +2 -2
  39. package/dist/external-CW61uh4b.cjs +1 -0
  40. package/dist/{external-vMTeF1dc.cjs → external-CWIwuJks.cjs} +1 -1
  41. package/dist/{external-2PznkZYs.js → external-CcuRxo0Z.js} +105 -104
  42. package/dist/{external-VEFOprRU.cjs → external-CigHe3w_.cjs} +1 -1
  43. package/dist/external-Cm1kldLr.js +123 -0
  44. package/dist/{external-vYsKqfFS.js → external-DNjLBxYA.js} +186 -187
  45. package/dist/{external-BTnFzhMM.js → external-DTDBfIqD.js} +4 -5
  46. package/dist/{external-C_th4MW9.cjs → external-DkXE1VK8.cjs} +1 -1
  47. package/dist/{external-CyPQsB1T.cjs → external-Dt4ggRt2.cjs} +1 -1
  48. package/dist/{external-DIwKYTmY.js → external-DuGCS_ZD.js} +2 -2
  49. package/dist/{external-BpeQ9rNJ.js → external-DuK5v_sl.js} +108 -106
  50. package/dist/external-SsIgRo40.cjs +1 -0
  51. package/dist/{external-rGv5AzBK.js → external-U33eEFR3.js} +16 -16
  52. package/dist/external-bw66TR6V.js +277 -0
  53. package/dist/{external-DsJYjdNk.cjs → external-kZBV4X9L.cjs} +1 -1
  54. package/dist/external-ok_ye4LF.cjs +1 -0
  55. package/dist/header.cjs +1 -1
  56. package/dist/header.js +1 -1
  57. package/dist/index.cjs +13 -13
  58. package/dist/index.js +6734 -6600
  59. package/dist/input.cjs +1 -1
  60. package/dist/input.js +1 -1
  61. package/dist/{jsx-runtime-Dx-03ztt.js → jsx-runtime-Bdg6XQ1m.js} +134 -134
  62. package/dist/jsx-runtime-D8EVjfnb.cjs +31 -0
  63. package/dist/list.cjs +1 -1
  64. package/dist/list.js +1 -1
  65. package/dist/menu.cjs +1 -1
  66. package/dist/menu.js +1 -1
  67. package/dist/pluto.css +1 -1
  68. package/dist/src/aether/aether/aether.bench.d.ts +2 -0
  69. package/dist/src/aether/aether/aether.bench.d.ts.map +1 -0
  70. package/dist/src/aether/aether/aether.d.ts +143 -136
  71. package/dist/src/aether/aether/aether.d.ts.map +1 -1
  72. package/dist/src/aether/aether/{worker.spec.d.ts → aether.spec.spec.d.ts} +1 -1
  73. package/dist/src/aether/aether/aether.spec.spec.d.ts.map +1 -0
  74. package/dist/src/aether/aether/index.d.ts +1 -2
  75. package/dist/src/aether/aether/index.d.ts.map +1 -1
  76. package/dist/src/aether/main.d.ts +18 -19
  77. package/dist/src/aether/main.d.ts.map +1 -1
  78. package/dist/src/alamos/Provider.d.ts +2 -4
  79. package/dist/src/alamos/Provider.d.ts.map +1 -1
  80. package/dist/src/alamos/aether/alamos.d.ts +2 -2
  81. package/dist/src/alamos/aether/alamos.d.ts.map +1 -1
  82. package/dist/src/align/Center.d.ts +2 -3
  83. package/dist/src/align/Center.d.ts.map +1 -1
  84. package/dist/src/align/Pack.d.ts +1 -2
  85. package/dist/src/align/Pack.d.ts.map +1 -1
  86. package/dist/src/align/Space.d.ts +1 -1
  87. package/dist/src/align/Space.d.ts.map +1 -1
  88. package/dist/src/breadcrumb/Breadcrumb.d.ts +2 -2
  89. package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
  90. package/dist/src/button/Button.d.ts +8 -8
  91. package/dist/src/button/Button.d.ts.map +1 -1
  92. package/dist/src/button/Icon.d.ts +2 -2
  93. package/dist/src/button/Icon.d.ts.map +1 -1
  94. package/dist/src/button/Toggle.d.ts +5 -5
  95. package/dist/src/button/Toggle.d.ts.map +1 -1
  96. package/dist/src/channel/LinePlot.d.ts.map +1 -1
  97. package/dist/src/channel/Select.d.ts +2 -0
  98. package/dist/src/channel/Select.d.ts.map +1 -1
  99. package/dist/src/color/Provider.d.ts.map +1 -1
  100. package/dist/src/color/core/external.d.ts +1 -0
  101. package/dist/src/color/core/external.d.ts.map +1 -1
  102. package/dist/src/color/core/transformColorsToHex.d.ts +6 -0
  103. package/dist/src/color/core/transformColorsToHex.d.ts.map +1 -0
  104. package/dist/src/color/external.d.ts +1 -0
  105. package/dist/src/color/external.d.ts.map +1 -1
  106. package/dist/src/divider/index.d.ts +1 -2
  107. package/dist/src/divider/index.d.ts.map +1 -1
  108. package/dist/src/dropdown/index.d.ts +1 -2
  109. package/dist/src/dropdown/index.d.ts.map +1 -1
  110. package/dist/src/form/Field.d.ts +6 -6
  111. package/dist/src/form/Field.d.ts.map +1 -1
  112. package/dist/src/form/synced.d.ts.map +1 -1
  113. package/dist/src/generic/Generic.d.ts +1 -1
  114. package/dist/src/generic/Generic.d.ts.map +1 -1
  115. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  116. package/dist/src/haul/Haul.d.ts +3 -3
  117. package/dist/src/haul/Haul.d.ts.map +1 -1
  118. package/dist/src/hooks/effect.d.ts +2 -2
  119. package/dist/src/hooks/effect.d.ts.map +1 -1
  120. package/dist/src/hooks/ref.d.ts +5 -5
  121. package/dist/src/hooks/ref.d.ts.map +1 -1
  122. package/dist/src/hooks/useCursorDrag/useVirtualCursorDragWebKit.d.ts.map +1 -1
  123. package/dist/src/icon/Icon.d.ts +11 -4
  124. package/dist/src/icon/Icon.d.ts.map +1 -1
  125. package/dist/src/index.d.ts +2 -3
  126. package/dist/src/index.d.ts.map +1 -1
  127. package/dist/src/input/Date.d.ts +2 -1
  128. package/dist/src/input/Date.d.ts.map +1 -1
  129. package/dist/src/input/Numeric.d.ts +2 -1
  130. package/dist/src/input/Numeric.d.ts.map +1 -1
  131. package/dist/src/input/Switch.d.ts +2 -1
  132. package/dist/src/input/Switch.d.ts.map +1 -1
  133. package/dist/src/input/Text.d.ts +2 -1
  134. package/dist/src/input/Text.d.ts.map +1 -1
  135. package/dist/src/input/TextArea.d.ts +3 -3
  136. package/dist/src/input/TextArea.d.ts.map +1 -1
  137. package/dist/src/input/Time.d.ts +1 -1
  138. package/dist/src/input/Time.d.ts.map +1 -1
  139. package/dist/src/input/types.d.ts +2 -2
  140. package/dist/src/input/types.d.ts.map +1 -1
  141. package/dist/src/label/Select.d.ts.map +1 -1
  142. package/dist/src/list/Hover.d.ts.map +1 -1
  143. package/dist/src/list/Selector.d.ts.map +1 -1
  144. package/dist/src/menu/ContextMenu.d.ts +2 -2
  145. package/dist/src/menu/ContextMenu.d.ts.map +1 -1
  146. package/dist/src/menu/Item.d.ts.map +1 -1
  147. package/dist/src/mosaic/Mosaic.d.ts +2 -5
  148. package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
  149. package/dist/src/nav/Drawer.d.ts +1 -3
  150. package/dist/src/nav/Drawer.d.ts.map +1 -1
  151. package/dist/src/os/Controls/Controls.d.ts.map +1 -1
  152. package/dist/src/os/Controls/index.d.ts +2 -3
  153. package/dist/src/os/Controls/index.d.ts.map +1 -1
  154. package/dist/src/os/use.d.ts.map +1 -1
  155. package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
  156. package/dist/src/ranger/SelectLabel.d.ts.map +1 -1
  157. package/dist/src/resize/Core.d.ts +2 -2
  158. package/dist/src/resize/Core.d.ts.map +1 -1
  159. package/dist/src/resize/Multiple.d.ts +1 -1
  160. package/dist/src/resize/Multiple.d.ts.map +1 -1
  161. package/dist/src/select/Alignment.d.ts +1 -1
  162. package/dist/src/select/Alignment.d.ts.map +1 -1
  163. package/dist/src/select/ComponentSize.d.ts +1 -1
  164. package/dist/src/select/ComponentSize.d.ts.map +1 -1
  165. package/dist/src/select/Direction.d.ts +1 -1
  166. package/dist/src/select/Direction.d.ts.map +1 -1
  167. package/dist/src/select/Multiple.d.ts +13 -12
  168. package/dist/src/select/Multiple.d.ts.map +1 -1
  169. package/dist/src/select/Select.spec.d.ts.map +1 -1
  170. package/dist/src/select/Single.d.ts +2 -2
  171. package/dist/src/select/Single.d.ts.map +1 -1
  172. package/dist/src/select/external.d.ts +1 -1
  173. package/dist/src/select/external.d.ts.map +1 -1
  174. package/dist/src/status/Aggregator.d.ts +6 -6
  175. package/dist/src/status/Aggregator.d.ts.map +1 -1
  176. package/dist/src/status/aether/aggregator.d.ts +10 -4
  177. package/dist/src/status/aether/aggregator.d.ts.map +1 -1
  178. package/dist/src/synnax/Provider.d.ts +2 -4
  179. package/dist/src/synnax/Provider.d.ts.map +1 -1
  180. package/dist/src/synnax/aether/provider.d.ts +2 -2
  181. package/dist/src/synnax/aether/provider.d.ts.map +1 -1
  182. package/dist/src/table/Table.d.ts +4 -6
  183. package/dist/src/table/Table.d.ts.map +1 -1
  184. package/dist/src/table/aether/Table.d.ts +3 -1
  185. package/dist/src/table/aether/Table.d.ts.map +1 -1
  186. package/dist/src/table/cells/Cells.d.ts +4 -4
  187. package/dist/src/table/cells/registry.d.ts.map +1 -1
  188. package/dist/src/table/external.d.ts.map +1 -1
  189. package/dist/src/tabs/Selector.d.ts.map +1 -1
  190. package/dist/src/tabs/types.d.ts +2 -2
  191. package/dist/src/tabs/types.d.ts.map +1 -1
  192. package/dist/src/tag/Tag.d.ts +1 -1
  193. package/dist/src/tag/Tag.d.ts.map +1 -1
  194. package/dist/src/telem/Provider.d.ts +2 -4
  195. package/dist/src/telem/Provider.d.ts.map +1 -1
  196. package/dist/src/telem/aether/context.d.ts +22 -22
  197. package/dist/src/telem/aether/context.d.ts.map +1 -1
  198. package/dist/src/telem/aether/convertSeries.d.ts +20 -6
  199. package/dist/src/telem/aether/convertSeries.d.ts.map +1 -1
  200. package/dist/src/telem/aether/factory.d.ts +1 -1
  201. package/dist/src/telem/aether/factory.d.ts.map +1 -1
  202. package/dist/src/telem/aether/pipeline.d.ts +16 -16
  203. package/dist/src/telem/aether/provider.d.ts +3 -13
  204. package/dist/src/telem/aether/provider.d.ts.map +1 -1
  205. package/dist/src/telem/aether/remote.d.ts.map +1 -1
  206. package/dist/src/telem/aether/telem.d.ts +30 -30
  207. package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
  208. package/dist/src/telem/client/cache/index.d.ts +1 -2
  209. package/dist/src/telem/client/cache/index.d.ts.map +1 -1
  210. package/dist/src/telem/client/cache/static.d.ts.map +1 -1
  211. package/dist/src/telem/client/client.d.ts +8 -12
  212. package/dist/src/telem/client/client.d.ts.map +1 -1
  213. package/dist/src/telem/control/Chip.d.ts +2 -3
  214. package/dist/src/telem/control/Chip.d.ts.map +1 -1
  215. package/dist/src/telem/control/Controller.d.ts +2 -4
  216. package/dist/src/telem/control/Controller.d.ts.map +1 -1
  217. package/dist/src/telem/control/Indicator.d.ts +2 -4
  218. package/dist/src/telem/control/Indicator.d.ts.map +1 -1
  219. package/dist/src/telem/control/Legend.d.ts +2 -3
  220. package/dist/src/telem/control/Legend.d.ts.map +1 -1
  221. package/dist/src/telem/control/StateProvider.d.ts +2 -4
  222. package/dist/src/telem/control/StateProvider.d.ts.map +1 -1
  223. package/dist/src/telem/control/aether/chip.d.ts +17 -18
  224. package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
  225. package/dist/src/telem/control/aether/controller.d.ts +3 -2
  226. package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
  227. package/dist/src/telem/control/aether/indicator.d.ts +17 -18
  228. package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
  229. package/dist/src/telem/control/aether/legend.d.ts +1 -1
  230. package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
  231. package/dist/src/telem/control/aether/state.d.ts +1 -1
  232. package/dist/src/telem/control/aether/state.d.ts.map +1 -1
  233. package/dist/src/text/DateTime.d.ts +3 -6
  234. package/dist/src/text/DateTime.d.ts.map +1 -1
  235. package/dist/src/text/Editable.d.ts.map +1 -1
  236. package/dist/src/text/Link.d.ts +3 -5
  237. package/dist/src/text/Link.d.ts.map +1 -1
  238. package/dist/src/text/Text.d.ts +1 -1
  239. package/dist/src/text/Text.d.ts.map +1 -1
  240. package/dist/src/theming/Provider.d.ts +1 -3
  241. package/dist/src/theming/Provider.d.ts.map +1 -1
  242. package/dist/src/theming/aether/index.d.ts +1 -2
  243. package/dist/src/theming/aether/index.d.ts.map +1 -1
  244. package/dist/src/theming/aether/provider.d.ts +316 -316
  245. package/dist/src/theming/aether/provider.d.ts.map +1 -1
  246. package/dist/src/theming/core/theme.d.ts +116 -116
  247. package/dist/src/theming/core/theme.d.ts.map +1 -1
  248. package/dist/src/tooltip/wrap.d.ts +2 -2
  249. package/dist/src/tooltip/wrap.d.ts.map +1 -1
  250. package/dist/src/tree/Tree.d.ts +2 -2
  251. package/dist/src/tree/Tree.d.ts.map +1 -1
  252. package/dist/src/tree/core.d.ts +1 -2
  253. package/dist/src/tree/core.d.ts.map +1 -1
  254. package/dist/src/triggers/Provider.d.ts.map +1 -1
  255. package/dist/src/triggers/hooks.d.ts +2 -2
  256. package/dist/src/triggers/hooks.d.ts.map +1 -1
  257. package/dist/src/util/canDisable.d.ts.map +1 -1
  258. package/dist/src/util/reflow.d.ts.map +1 -1
  259. package/dist/src/util/removeProps.d.ts.map +1 -1
  260. package/dist/src/video/Video.d.ts +2 -2
  261. package/dist/src/video/Video.d.ts.map +1 -1
  262. package/dist/src/viewport/Mask.d.ts +2 -1
  263. package/dist/src/viewport/Mask.d.ts.map +1 -1
  264. package/dist/src/viewport/use.d.ts +3 -3
  265. package/dist/src/viewport/use.d.ts.map +1 -1
  266. package/dist/src/vis/axis/canvas.d.ts +1 -1
  267. package/dist/src/vis/axis/canvas.d.ts.map +1 -1
  268. package/dist/src/vis/button/aether/button.d.ts +9 -9
  269. package/dist/src/vis/button/aether/button.d.ts.map +1 -1
  270. package/dist/src/vis/canvas/Canvas.d.ts +2 -4
  271. package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
  272. package/dist/src/vis/canvas/aether/canvas.d.ts +9 -8
  273. package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
  274. package/dist/src/vis/diagram/Diagram.d.ts +2 -1
  275. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  276. package/dist/src/vis/diagram/aether/Diagram.d.ts +2 -2
  277. package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
  278. package/dist/src/vis/diagram/edge/paths.d.ts.map +1 -1
  279. package/dist/src/vis/eraser/aether/eraser.d.ts +4 -4
  280. package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
  281. package/dist/src/vis/eraser/use.d.ts +5 -6
  282. package/dist/src/vis/eraser/use.d.ts.map +1 -1
  283. package/dist/src/vis/light/aether/light.d.ts +10 -10
  284. package/dist/src/vis/light/aether/light.d.ts.map +1 -1
  285. package/dist/src/vis/line/Line.d.ts +4 -4
  286. package/dist/src/vis/line/Line.d.ts.map +1 -1
  287. package/dist/src/vis/line/aether/line.d.ts +25 -17
  288. package/dist/src/vis/line/aether/line.d.ts.map +1 -1
  289. package/dist/src/vis/lineplot/Axis.d.ts +2 -1
  290. package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
  291. package/dist/src/vis/lineplot/Legend.d.ts +1 -1
  292. package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
  293. package/dist/src/vis/lineplot/Line.d.ts +4 -4
  294. package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
  295. package/dist/src/vis/lineplot/LinePlot.d.ts +4 -5
  296. package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
  297. package/dist/src/vis/lineplot/Title.d.ts.map +1 -1
  298. package/dist/src/vis/lineplot/Viewport.d.ts +2 -2
  299. package/dist/src/vis/lineplot/Viewport.d.ts.map +1 -1
  300. package/dist/src/vis/lineplot/aether/LinePlot.d.ts +3 -3
  301. package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
  302. package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
  303. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  304. package/dist/src/vis/lineplot/aether/index.d.ts +1 -2
  305. package/dist/src/vis/lineplot/aether/index.d.ts.map +1 -1
  306. package/dist/src/vis/lineplot/range/Annotation.d.ts +3 -4
  307. package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
  308. package/dist/src/vis/lineplot/range/Provider.d.ts +4 -4
  309. package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
  310. package/dist/src/vis/lineplot/range/aether/annotation.d.ts +1 -1
  311. package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
  312. package/dist/src/vis/lineplot/range/aether/provider.d.ts +1 -1
  313. package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
  314. package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts +4 -4
  315. package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts.map +1 -1
  316. package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +2 -2
  317. package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
  318. package/dist/src/vis/log/Log.d.ts +3 -4
  319. package/dist/src/vis/log/Log.d.ts.map +1 -1
  320. package/dist/src/vis/log/aether/Log.d.ts +13 -13
  321. package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
  322. package/dist/src/vis/log/index.d.ts.map +1 -1
  323. package/dist/src/vis/measure/Measure.d.ts +4 -4
  324. package/dist/src/vis/measure/Measure.d.ts.map +1 -1
  325. package/dist/src/vis/measure/aether/measure.d.ts +3 -3
  326. package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
  327. package/dist/src/vis/render/GLProgram.d.ts +1 -1
  328. package/dist/src/vis/render/GLProgram.d.ts.map +1 -1
  329. package/dist/src/vis/render/external.d.ts +0 -1
  330. package/dist/src/vis/render/external.d.ts.map +1 -1
  331. package/dist/src/vis/render/loop.d.ts +1 -1
  332. package/dist/src/vis/render/loop.d.ts.map +1 -1
  333. package/dist/src/vis/rule/Rule.d.ts +4 -4
  334. package/dist/src/vis/rule/Rule.d.ts.map +1 -1
  335. package/dist/src/vis/rule/aether/aether.d.ts +3 -3
  336. package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
  337. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  338. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  339. package/dist/src/vis/setpoint/aether/setpoint.d.ts +18 -18
  340. package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
  341. package/dist/src/vis/toggle/aether/toggle.d.ts +18 -18
  342. package/dist/src/vis/toggle/aether/toggle.d.ts.map +1 -1
  343. package/dist/src/vis/value/aether/value.d.ts +26 -26
  344. package/dist/src/vis/value/aether/value.d.ts.map +1 -1
  345. package/dist/src/vis/value/use.d.ts +8 -8
  346. package/dist/src/worker/Context.d.ts.map +1 -1
  347. package/dist/tabs.cjs +1 -1
  348. package/dist/tabs.js +1 -1
  349. package/dist/text.cjs +1 -1
  350. package/dist/text.js +2 -2
  351. package/dist/theming.cjs +1 -1
  352. package/dist/theming.js +2 -2
  353. package/dist/transformColorsToHex-CDwcIPob.cjs +1 -0
  354. package/dist/transformColorsToHex-CnZpPlL2.js +14 -0
  355. package/dist/tree.cjs +1 -1
  356. package/dist/tree.js +1 -1
  357. package/dist/triggers.cjs +1 -1
  358. package/dist/triggers.js +1 -1
  359. package/dist/{units-CXFC0OLO.cjs → units-BpKy5yTv.cjs} +1 -1
  360. package/dist/{units-CJ76Jzvw.js → units-CNGjg1NV.js} +1 -1
  361. package/dist/video.cjs +1 -1
  362. package/dist/video.js +1 -1
  363. package/package.json +14 -15
  364. package/dist/LinePlot-D4V1ltNT.cjs +0 -24
  365. package/dist/Pack-CyaEXvnu.cjs +0 -1
  366. package/dist/Pack-DNCFnyuR.js +0 -140
  367. package/dist/Toggle-vgmhy8wZ.cjs +0 -163
  368. package/dist/Video-g30B90s-.cjs +0 -1
  369. package/dist/Video-jaT7Y97L.js +0 -14
  370. package/dist/aggregator-DX8ts24k.cjs +0 -77
  371. package/dist/css-Bo-hsQHb.cjs +0 -1
  372. package/dist/external-BS9Bfsj3.cjs +0 -1
  373. package/dist/external-Bt_kX5KM.cjs +0 -1
  374. package/dist/external-CEcxrva2.js +0 -254
  375. package/dist/external-CMEDU76u.cjs +0 -1
  376. package/dist/external-CWincA61.cjs +0 -1
  377. package/dist/external-Dn4tpDVi.js +0 -32
  378. package/dist/external-Dtr4ZxR6.cjs +0 -1
  379. package/dist/external-IztUjYjX.cjs +0 -1
  380. package/dist/external-WZW4OBZx.js +0 -91
  381. package/dist/external-kAduhcvp.cjs +0 -1
  382. package/dist/jsx-runtime-DGh1k5sI.cjs +0 -31
  383. package/dist/src/aether/aether/worker.spec.d.ts.map +0 -1
  384. package/dist/src/aether/test/index.d.ts +0 -2
  385. package/dist/src/aether/test/index.d.ts.map +0 -1
  386. package/dist/src/aether/test/test.d.ts +0 -11
  387. package/dist/src/aether/test/test.d.ts.map +0 -1
  388. package/dist/src/telem/test/index.d.ts +0 -2
  389. package/dist/src/telem/test/index.d.ts.map +0 -1
  390. package/dist/src/telem/test/mock.d.ts +0 -33
  391. package/dist/src/telem/test/mock.d.ts.map +0 -1
  392. package/dist/src/vis/render/eraser.d.ts +0 -20
  393. package/dist/src/vis/render/eraser.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=aether.bench.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aether.bench.d.ts","sourceRoot":"","sources":["../../../../src/aether/aether/aether.bench.ts"],"names":[],"mappings":""}
@@ -1,38 +1,20 @@
1
1
  import { alamos } from '@synnaxlabs/alamos';
2
2
  import { Sender, SenderHandler, UnknownRecord } from '@synnaxlabs/x';
3
- import { Mutex } from 'async-mutex';
4
3
  import { z } from 'zod';
5
4
  import { MainMessage, WorkerMessage } from '../message';
6
5
  import { state } from '../../state';
7
- type UpdateVariant = "state" | "context";
8
- /** An update to an AetherComponent from the main React tree. */
9
- export interface Update {
10
- /**
11
- * The variant of update being performed. State updates are used to update
12
- * the state of a particular component, while context updates are used to propagate
13
- * context changes to children in the tree.
14
- */
15
- variant: UpdateVariant;
16
- ctx: Context;
17
- /**
18
- * The path of the component in the tree. This path is shortened as the update is
19
- * propagated through the tree
20
- */
21
- path: string[];
22
- /**
23
- * The type of the component being updated. This is used to create the component
24
- * if it does not already exist.
25
- */
26
- type: string;
27
- /**
28
- * The state to update on the component . This is only present if the variant is
29
- * "state".
30
- */
31
- state: UnknownRecord;
32
- /**
33
- * instrumentation is used for logging and tracing.
34
- */
35
- instrumentation: alamos.Instrumentation;
6
+ /**
7
+ * A selected subset of the Map interface used for efficiently propagating context
8
+ * updates through the tree.
9
+ */
10
+ export interface ContextMap extends Pick<Map<string, unknown>, "get" | "forEach"> {
11
+ }
12
+ /**
13
+ * An internal function alias that creates a new component with the specified
14
+ * initial parent context
15
+ */
16
+ interface CreateComponent {
17
+ (initialParentCtxValues: ContextMap): Component;
36
18
  }
37
19
  /**
38
20
  * A component in the Aether tree. Each component instance has a unique key identifying
@@ -45,14 +27,22 @@ export interface Component {
45
27
  type: string;
46
28
  /** A unique key identifying the component within the tree. */
47
29
  key: string;
48
- ctx: Context;
49
30
  /**
50
- * Propagates an update to the internal tree of the component, updating the component
51
- * itself and any children as necessary.
31
+ * Propagates a state update to the component at the given path. This is an internal
32
+ * method, should not be called by subclasses outside of this file.
52
33
  *
53
- * @param update - The update to propagate.
34
+ * @param path - The path of the component to update. The length of the path indicates
35
+ * the depth of the component in the aether tree. This method should propagate the
36
+ * state if the path has a length greater than 1.
37
+ * @param state - The state to update the component with.
38
+ * @param create - A function that creates a new component of the appropriate type if
39
+ * it doesn't exist in the tree.
40
+ */
41
+ _updateState: (path: string[], state: UnknownRecord, create: CreateComponent) => Promise<void>;
42
+ /**
43
+ * Propagates a context update to the children and all of its descendants.
54
44
  */
55
- internalUpdate: (update: Update) => Promise<void>;
45
+ _updateContext: (values: ContextMap) => Promise<void>;
56
46
  /**
57
47
  * Propagates a delete to the internal tree of the component, calling the handleDelete
58
48
  * component on the component itself and any children as necessary. It is up to
@@ -60,98 +50,91 @@ export interface Component {
60
50
  *
61
51
  * @param path - The path of the component to delete.
62
52
  */
63
- internalDelete: (path: string[]) => Promise<void>;
53
+ _delete: (path: string[]) => Promise<void>;
54
+ }
55
+ /** Constructor props that all aether components must accept. */
56
+ interface ComponentConstructorProps {
57
+ /** The key of the component. */
58
+ key: string;
59
+ /** The type of the component. */
60
+ type: string;
61
+ /** A sender used to propagate messages back to the main thread. */
62
+ sender: Sender<WorkerMessage>;
63
+ /** Instrumentation used for logging and tracing. */
64
+ instrumentation: alamos.Instrumentation;
65
+ /** Initial parent context values for the component. These should be intentionally
66
+ * set to null if no values exists.
67
+ */
68
+ parentCtxValues: ContextMap | null;
64
69
  }
65
70
  /** A constructor type for an AetherComponent. */
66
- export type ComponentConstructor = new (update: Update) => Component;
71
+ export interface ComponentConstructor {
72
+ new (props: ComponentConstructorProps): Component;
73
+ }
67
74
  /**
68
- * AetherContext is used to propagate environment information to components in the
69
- * aether tree. It allows components to propagate state changes to the main react
70
- * tree, create new components, and set/get values from the environment, passing
71
- * them to children as necessary.
75
+ * The Context interface allows for parent components to pass context values to
76
+ * arbitrarily nested children.
72
77
  */
73
- export declare class Context {
74
- readonly providers: Map<string, any>;
75
- private readonly registry;
76
- private readonly sender;
77
- changedKeys: string[];
78
- constructor(sender: Sender<WorkerMessage>, registry: Record<string, ComponentConstructor>, providers?: Map<string, any>);
79
- /**
80
- * Propagates the given state for the component with the given key to the main
81
- * react tree.
82
- *
83
- * @param key - The key of the component to propagate the state for.
84
- * @param state - The state to propagate.
85
- * @param transfer - Any transferable objects to transfer to the main thread.
86
- */
87
- propagateState(key: string, state: any, transfer?: Transferable[]): void;
88
- /**
89
- * Copies the context, setting it's 'changed' flag to false, and optionally merging
90
- * another set of context values into it.
91
- *
92
- * @param merge - The context to merge into the copy.
93
- * @returns The copied context.
94
- */
95
- copyAndMerge(merge?: Context): Context;
96
- get changed(): boolean;
78
+ export interface Context {
97
79
  /**
98
- * Sets a value on the context and flags the context as changed.
99
- *
100
- * @param key - The key to set.
101
- * @param value - The value to set.
80
+ * Gets a context value, interpreting it as the given type, and returning it. This
81
+ * method does no internal type checking - it is up to the caller to ensure that the
82
+ * value exists for the given key and is of the correct type.
83
+ * @throws a NotFoundError if the value does not exist for the given key.
84
+ * @returns the context value interpreted as the given type.
102
85
  */
103
- set(key: string, value: any, trigger?: boolean): void;
104
- setIfNotHas(key: string, value: any): void;
105
- /**
106
- * Creates a new component using the given update. It is up to the caller to
107
- * validate that the component type is valid.
108
- *
109
- * @param update - The update to create the component from.
110
- * @returns The created component.
111
- */
112
- create<C extends Component>(update: Update): Promise<C>;
86
+ get<P>(key: string): P;
113
87
  /**
114
- * Gets a value from the context, returning null if the value does not exist. It's
115
- * imporant to note that the context provides no validation of the type of the
116
- * value, so it is up to the caller to ensure that the value is of the correct type.
117
- *
118
- * @param key - The key to get.
119
- * @returns The value, or null if it does not exist.
88
+ * Gets a context value, interpreting it as the given type, and returning it. This
89
+ * method does no internal type checking - it is up to the caller to ensure that the
90
+ * value is of the correct type.
91
+ * @returns the context value, or null if no value exists for the given key.
120
92
  */
121
93
  getOptional<P>(key: string): P | null;
122
94
  /**
123
- * Checks if the context has a value for the given key.
124
- *
125
- * @param key - The key to check.
126
- * @returns True if the context has a value for the given key, false otherwise.
95
+ * Checks if a parent context value exists for the given key. Note that this will
96
+ * return false for all context values set by the component itself.
97
+ * @returns true if a value exists for the given key, false otherwise.
127
98
  */
128
99
  has(key: string): boolean;
129
100
  /**
130
- * Gets a value from the context, throwing an error if the value does not exist.
131
- * It's imporant to note that the context provides no validation of the type of
132
- * the value, so it is up to the caller to ensure that the value is of the correct
101
+ * Sets a context value for the given key, making it available to all children of the
102
+ * component, but NOT to the component itself. This detail is crucial, as it means
103
+ * the component can override the value of an existing parent key and propagate it
104
+ * to its children, while still being able to access the original parent value.
133
105
  *
134
- * @param key - The key to get.
135
- * @returns The value.
106
+ * @param key - The key of the context value to set.
107
+ * @param value - The value to set for the given key.
108
+ * @param trigger - If true, the component will be notified of the change.
136
109
  */
137
- get<P>(key: string): P;
110
+ set(key: string, value: any, trigger?: boolean): void;
111
+ /**
112
+ * Checks if the component has previously set a context value for the given key. This
113
+ * is an alternative to {@link has} that checks whether the component has set the value
114
+ * itself, as opposed to whether it has been set by a parent.
115
+ * @returns true if the component has set the value itself, false otherwise.
116
+ */
117
+ setPreviously(key: string): boolean;
138
118
  }
139
119
  /**
140
- * Implements an AtherComponent that does not have any children, and servers as the base
120
+ * Implements an AetherComponent that does not have any children, and servers as the base
141
121
  * class for the AetherComposite type. The corresponding react component should NOT have
142
122
  * any children that use Aether functionality; for those cases, use AetherComposite instead.
143
123
  */
144
- export declare class Leaf<S extends z.ZodTypeAny, IS extends {} = {}> implements Component {
124
+ export declare abstract class Leaf<StateSchema extends z.ZodTypeAny, InternalState extends {} = {}> implements Component {
145
125
  readonly type: string;
146
126
  readonly key: string;
147
- _ctx: Context;
127
+ private readonly sender;
148
128
  private readonly _internalState;
149
129
  private _state;
150
130
  private _prevState;
151
131
  private _deleted;
152
- instrumentation: alamos.Instrumentation;
153
- schema: S | undefined;
154
- constructor(u: Update);
132
+ protected readonly parentCtxValues: Map<string, any>;
133
+ protected readonly childCtxValues: Map<string, any>;
134
+ protected readonly childCtxChangedKeys: Set<string>;
135
+ readonly instrumentation: alamos.Instrumentation;
136
+ schema: StateSchema | undefined;
137
+ constructor({ key, type, sender, instrumentation, parentCtxValues, }: ComponentConstructorProps);
155
138
  private get _schema();
156
139
  /**
157
140
  * Sets the state on the component, communicating the change to the corresponding
@@ -160,40 +143,39 @@ export declare class Leaf<S extends z.ZodTypeAny, IS extends {} = {}> implements
160
143
  * @param next - The new state to set on the component. This can be the state object
161
144
  * or a pure function that takes in the previous state and returns the next state.
162
145
  */
163
- setState(next: state.SetArg<z.input<S> | z.output<S>, z.output<S>>): void;
164
- /** Returns the current context on the component. */
165
- get ctx(): Context;
146
+ setState(next: state.SetArg<z.input<StateSchema> | z.output<StateSchema>, z.output<StateSchema>>): void;
166
147
  /** @returns the current state of the component. */
167
- get state(): z.output<S>;
168
- get internal(): IS;
148
+ get state(): z.output<StateSchema>;
149
+ get internal(): InternalState;
169
150
  /** @returns the previous state of the component. */
170
- get prevState(): z.output<S>;
151
+ get prevState(): z.output<StateSchema>;
171
152
  get deleted(): boolean;
153
+ private get ctx();
172
154
  /**
173
155
  * @implements AetherComponent, and should NOT be called by a subclass other than
174
156
  * AetherComposite.
175
157
  */
176
- internalUpdate({ variant, path, ctx, state }: Update): Promise<void>;
158
+ _updateState(path: string[], state: UnknownRecord, _: CreateComponent): Promise<void>;
159
+ _updateContext(values: ContextMap): Promise<void>;
177
160
  /**
178
161
  * @implements AetherComponent, and should NOT be called by a subclass other than
179
162
  * AetherComposite.
180
163
  */
181
- internalDelete(path: string[]): Promise<void>;
182
- beforeUpdate(): void;
164
+ _delete(path: string[]): Promise<void>;
183
165
  /**
184
166
  * afterUpdate is optionally defined by a subclass, allowing the component to
185
167
  * perform some action after the component is updated. At this point, the current
186
168
  * state, previous state, derived state, and current context are all available to
187
169
  * the component.
188
170
  */
189
- afterUpdate(): Promise<void>;
171
+ afterUpdate(_: Context): Promise<void>;
190
172
  /**
191
173
  * Runs after the component has been spliced out of the tree. This is useful for
192
174
  * running cleanup code, such as unsubscribing from an event emitter. At this point,
193
175
  * the current state, previous state, derived state, and current context are all
194
176
  * available to the component, and this.deleted is true.
195
177
  */
196
- afterDelete(): Promise<void>;
178
+ afterDelete(_: Context): Promise<void>;
197
179
  private validatePath;
198
180
  }
199
181
  /**
@@ -201,54 +183,79 @@ export declare class Leaf<S extends z.ZodTypeAny, IS extends {} = {}> implements
201
183
  * child components. It is the base class for all composite components, and should not
202
184
  * be used directly.
203
185
  */
204
- export declare class Composite<S extends z.ZodTypeAny, IS extends {} = {}, C extends Component = Component> extends Leaf<S, IS> implements Component {
205
- private _children;
206
- constructor(u: Update);
186
+ export declare abstract class Composite<StateSchema extends z.ZodTypeAny, InternalState extends {} = {}, ChildComponents extends Component = Component> extends Leaf<StateSchema, InternalState> implements Component {
187
+ private readonly _children;
207
188
  /** @returns a readonly array of the children of the component. */
208
- get children(): readonly C[];
209
- /**
210
- * @implements AetherComponent, and should NOT be called by a subclass, except for
211
- * AetherRoot.
212
- */
213
- internalUpdate(u: Update): Promise<void>;
214
- private updateContext;
215
- private updateChild;
216
- private updateThis;
217
- internalDelete(path: string[]): Promise<void>;
218
- getRequiredKey(path: string[], type?: string): [string, string[]];
189
+ get children(): readonly ChildComponents[];
219
190
  /**
220
191
  * Finds a child component with the given key.
221
192
  *
222
193
  * @param key - the key of the child component to find.
223
194
  * @returns the child component, or null if no child component with the given key
224
195
  */
225
- getChild<T extends C = C>(key: string): T | null;
196
+ getChild<T extends ChildComponents = ChildComponents>(key: string): T | null;
226
197
  /**
227
198
  * Finds all children of the component with the given type
228
199
  *
229
200
  * @param types - the type of the children to find
230
201
  * @returns an array of all children of the component with the given type
231
202
  */
232
- childrenOfType<T extends C = C>(...types: Array<T["type"]>): readonly T[];
203
+ childrenOfType<T extends ChildComponents = ChildComponents>(...types: Array<T["type"]>): readonly T[];
204
+ _updateState(path: string[], state: UnknownRecord, create: CreateComponent): Promise<void>;
205
+ _updateContext(values: ContextMap): Promise<void>;
206
+ private childCtx;
207
+ private updateChildContexts;
208
+ _delete(path: string[]): Promise<void>;
209
+ private parsePath;
233
210
  }
234
211
  export type ComponentRegistry = Record<string, ComponentConstructor>;
235
212
  declare const aetherRootState: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
213
+ /**
214
+ * The props for creating the root of the Aether tree.
215
+ */
236
216
  export interface RootProps {
237
- worker: SenderHandler<WorkerMessage, MainMessage>;
217
+ /** A communication mechanism for sending messages to the main thread. */
218
+ comms: SenderHandler<WorkerMessage, MainMessage>;
219
+ /** A registry of available components that can be used to mirror those on the main thread. */
238
220
  registry: ComponentRegistry;
221
+ /** Instrumentation used for logging and tracing. */
239
222
  instrumentation?: alamos.Instrumentation;
240
223
  }
241
224
  export declare class Root extends Composite<typeof aetherRootState> {
242
- wrap: SenderHandler<WorkerMessage, MainMessage>;
225
+ /** Key of the root component. */
243
226
  private static readonly TYPE;
227
+ /** Type of the root component. */
244
228
  private static readonly KEY;
245
- private static readonly ZERO_UPDATE;
246
- static readonly schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
229
+ /** A communication mechanism for sending messages to the main thread. */
230
+ private readonly comms;
231
+ /** A registry used for creating new components in the tree. */
232
+ private readonly registry;
233
+ /** Mutex used for serializing state updates to the tree. */
234
+ private readonly mu;
247
235
  schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
248
- mu: Mutex;
249
- constructor({ worker: wrap, registry, instrumentation, }: RootProps);
250
- handle(msg: MainMessage): Promise<void>;
236
+ constructor({ comms, instrumentation, registry, }: RootProps);
237
+ /**
238
+ * Creates a new aether tree with the provided props, and starts listing for state
239
+ * updates on the provided comms.
240
+ */
241
+ static render(props: RootProps): Promise<Root>;
242
+ /**
243
+ * Handles messages from the worker thread and applies them as updates in the
244
+ * aether tree.
245
+ */
246
+ private handle;
247
+ /** Creates a new component from the registry */
248
+ private create;
251
249
  }
252
- export declare const render: (props: RootProps) => Root;
250
+ /**
251
+ * Creates a new aether tree with the provided props.
252
+ *
253
+ * @param props - The props for the root component.
254
+ * @param props.comms - A communication mechanism for sending messages to the main thread.
255
+ * Typically this is implemented by a web worker.
256
+ * @param props.registry - A registry of available components that can be used to mirror
257
+ * those on the main thread.
258
+ */
259
+ export declare const render: typeof Root.render;
253
260
  export {};
254
261
  //# sourceMappingURL=aether.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aether.d.ts","sourceRoot":"","sources":["../../../../src/aether/aether/aether.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEpF,OAAO,EAAE,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
7
7
  x: number;
8
8
  }>;
9
- //# sourceMappingURL=worker.spec.d.ts.map
9
+ //# sourceMappingURL=aether.spec.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aether.spec.spec.d.ts","sourceRoot":"","sources":["../../../../src/aether/aether/aether.spec.spec.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqDxB,eAAO,MAAM,YAAY;;;;;;EAEvB,CAAC"}
@@ -1,3 +1,2 @@
1
- import * as aether from "@/aether/aether/aether";
2
- export { aether };
1
+ export * as aether from './aether';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/aether/aether/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/aether/aether/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { SenderHandler } from '@synnaxlabs/x';
2
- import { ComponentType, FC, PropsWithChildren, ReactElement } from 'react';
2
+ import { PropsWithChildren, ReactElement } from 'react';
3
3
  import { z } from 'zod';
4
4
  import { MainMessage, WorkerMessage } from './message';
5
5
  import { state } from '../state';
@@ -25,21 +25,34 @@ export interface UseLifecycleReturn<S extends z.ZodTypeAny> {
25
25
  export interface UseLifecycleProps<S extends z.ZodTypeAny> {
26
26
  type: string;
27
27
  schema: S;
28
- aetherKey: string;
28
+ aetherKey?: string;
29
29
  initialState: z.input<S>;
30
30
  initialTransfer?: Transferable[];
31
31
  onReceive?: StateHandler;
32
32
  }
33
+ export interface CProps {
34
+ aetherKey?: string;
35
+ }
33
36
  export interface UseProps<S extends z.ZodTypeAny> extends Omit<UseLifecycleProps<S>, "onReceive"> {
34
37
  onAetherChange?: (state: z.output<S>) => void;
35
38
  }
39
+ interface ComponentContext {
40
+ path: string[];
41
+ }
36
42
  export type UseReturn<S extends z.ZodTypeAny> = [
37
- {
38
- path: string[];
39
- },
43
+ ComponentContext,
40
44
  z.output<S>,
41
45
  (state: state.SetArg<z.input<S>>, transfer?: Transferable[]) => void
42
46
  ];
47
+ export interface UsePropsProps<S extends z.ZodTypeAny> extends Pick<UseLifecycleProps<S>, "schema" | "aetherKey"> {
48
+ type: string;
49
+ state: z.input<S>;
50
+ }
51
+ /***
52
+ * A simpler version of {@link use} that assumes the caller only wants to propagate
53
+ * state to the aether component, and not receive state from the aether component.
54
+ */
55
+ export declare const useUnidirectional: <S extends z.ZodTypeAny>({ state, ...props }: UsePropsProps<S>) => ComponentContext;
43
56
  /**
44
57
  * Use creates a new aether component with a unique key and type.
45
58
  *
@@ -80,19 +93,5 @@ export interface CompositeProps extends PropsWithChildren {
80
93
  * Naturally, composites can be nested within each other. Child components that are
81
94
  */
82
95
  export declare const Composite: import('react').MemoExoticComponent<({ children, path }: CompositeProps) => ReactElement>;
83
- /**
84
- * Wrap wraps a component to generate a unique key that persists across re-renders. This
85
- * hook is necessary to create an aether enhanced component when using React.StrictMode.
86
- *
87
- * @param displayName - The display name of the component. Used or react devtools.
88
- * @param Component - The component to wrap. This component receives an additional
89
- * aetherKey prop along with its normal props.
90
- * @returns A wrapped component that is behaviorally identical to the original component.
91
- */
92
- export declare const wrap: <P extends {}>(displayName: string, Component: ComponentType<P & {
93
- aetherKey: string;
94
- }>) => FC<P & {
95
- aetherKey?: string;
96
- }>;
97
96
  export {};
98
97
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/aether/main.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,EAAE,EAEP,KAAK,iBAAiB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M,CAAC;IACb,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,uBAGrD,aAAa,CAAC,CAAC,CAAC,KAAG,gBAQrB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,GAAG,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,SAAS,QAAQ,CAAC,CAAC,CAAC,KAAG,SAAS,CAAC,CAAC,CA4C3E,CAAC;AAEF,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;AAOzC,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,2DAA6B,cAAc,KAAG,YAAY,CAI9E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Instrumentation } from '@synnaxlabs/alamos';
2
- import { PropsWithChildren } from 'react';
2
+ import { PropsWithChildren, ReactElement } from 'react';
3
3
  import { alamos } from './aether';
4
4
  export interface ContextValue {
5
5
  instrumentation: Instrumentation;
@@ -7,7 +7,5 @@ export interface ContextValue {
7
7
  export interface ProviderProps extends PropsWithChildren, alamos.ProviderState {
8
8
  }
9
9
  export declare const useInstrumentation: () => Instrumentation;
10
- export declare const Provider: import('react').FC<ProviderProps & {
11
- aetherKey?: string;
12
- }>;
10
+ export declare const Provider: ({ children, ...props }: ProviderProps) => ReactElement;
13
11
  //# sourceMappingURL=Provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/alamos/Provider.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,eAAe,CAAC;CAClC;AAMD,MAAM,WAAW,aAAc,SAAQ,iBAAiB,EAAE,MAAM,CAAC,aAAa;CAAG;AAEjF,eAAO,MAAM,kBAAkB,QAAO,eACD,CAAC;AAEtC,eAAO,MAAM,QAAQ;;EAiBpB,CAAC"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/alamos/Provider.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,eAAe,CAAC;CAClC;AAMD,MAAM,WAAW,aAAc,SAAQ,iBAAiB,EAAE,MAAM,CAAC,aAAa;CAAG;AAEjF,eAAO,MAAM,kBAAkB,QAAO,eACD,CAAC;AAEtC,eAAO,MAAM,QAAQ,2BAA4B,aAAa,KAAG,YAOhE,CAAC"}
@@ -19,7 +19,7 @@ export interface InternalState {
19
19
  ins: alamos.Instrumentation;
20
20
  }
21
21
  export declare class Provider extends aether.Composite<typeof providerStateZ, InternalState> {
22
- static readonly TYPE = "AlamosProvider";
22
+ static readonly TYPE = "alamos.Provider";
23
23
  schema: z.ZodObject<{
24
24
  include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
25
  exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -33,7 +33,7 @@ export declare class Provider extends aether.Composite<typeof providerStateZ, In
33
33
  exclude?: string[] | undefined;
34
34
  include?: string[] | undefined;
35
35
  }>;
36
- afterUpdate(): Promise<void>;
36
+ afterUpdate(ctx: aether.Context): Promise<void>;
37
37
  }
38
38
  export declare const useInstrumentation: (ctx: aether.Context, name?: string) => alamos.Instrumentation;
39
39
  export declare const REGISTRY: aether.ComponentRegistry;
@@ -1 +1 @@
1
- {"version":3,"file":"alamos.d.ts","sourceRoot":"","sources":["../../../../src/alamos/aether/alamos.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,eAAO,MAAM,cAAc;;;;;;;;;;;;EAIzB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAI3D,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC,eAAe,CAAC;CAC7B;AAED,qBAAa,QAAS,SAAQ,MAAM,CAAC,SAAS,CAAC,OAAO,cAAc,EAAE,aAAa,CAAC;IAClF,MAAM,CAAC,QAAQ,CAAC,IAAI,oBAAoB;IACxC,MAAM;;;;;;;;;;;;OAAkB;IAElB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAiBnC;AAED,eAAO,MAAM,kBAAkB,QACxB,MAAM,CAAC,OAAO,SACZ,MAAM,KACZ,MAAM,CAAC,eAIT,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,iBAE7B,CAAC"}
1
+ {"version":3,"file":"alamos.d.ts","sourceRoot":"","sources":["../../../../src/alamos/aether/alamos.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,eAAO,MAAM,cAAc;;;;;;;;;;;;EAIzB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAI3D,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC,eAAe,CAAC;CAC7B;AAED,qBAAa,QAAS,SAAQ,MAAM,CAAC,SAAS,CAAC,OAAO,cAAc,EAAE,aAAa,CAAC;IAClF,MAAM,CAAC,QAAQ,CAAC,IAAI,qBAAqB;IACzC,MAAM;;;;;;;;;;;;OAAkB;IAElB,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAiBtD;AAED,eAAO,MAAM,kBAAkB,QACxB,MAAM,CAAC,OAAO,SACZ,MAAM,KACZ,MAAM,CAAC,eAIT,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,iBAE7B,CAAC"}
@@ -1,9 +1,8 @@
1
- import { ForwardedRef, JSX, ReactElement } from 'react';
1
+ import { ReactElement } from 'react';
2
2
  import { SpaceElementType, SpaceProps } from './Space';
3
- export declare const CoreCenter: <E extends SpaceElementType = "div">({ className, justify, align, ...props }: SpaceProps<E>, ref: ForwardedRef<JSX.IntrinsicElements[E]>) => ReactElement;
4
3
  /**
5
4
  * An element whose width and height is 100% and whose alignment and justification
6
5
  * is centered. Props are the same as {@link Space}.
7
6
  */
8
- export declare const Center: <E extends SpaceElementType = "div">(props: SpaceProps<E>) => ReactElement;
7
+ export declare const Center: <E extends SpaceElementType = "div">({ className, justify, align, ref, ...props }: SpaceProps<E>) => ReactElement;
9
8
  //# sourceMappingURL=Center.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/align/Center.tsx"],"names":[],"mappings":"AASA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,YAAY,EAAc,KAAK,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEnF,OAAO,EAAS,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAG9E,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,gBAAgB,mDACY,UAAU,CAAC,CAAC,CAAC,OACvE,YAAY,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,KAC1C,YASF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,EAA6B,CAAC,CAAC,SAAS,gBAAgB,GAAG,KAAK,EACjF,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,KACjB,YAAY,CAAC"}
1
+ {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/align/Center.tsx"],"names":[],"mappings":"AASA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAS,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAG9E;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,gBAAgB,wDAM9C,UAAU,CAAC,CAAC,CAAC,KAAG,YASlB,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { SpaceElementType, SpaceProps } from './Space';
3
- /** Props for the {@link Pack} component. */
4
3
  export type PackProps<E extends SpaceElementType = "div"> = Omit<SpaceProps<E>, "empty"> & {
5
4
  shadow?: boolean;
6
5
  borderWidth?: number;
@@ -21,5 +20,5 @@ export type PackProps<E extends SpaceElementType = "div"> = Omit<SpaceProps<E>,
21
20
  * @param props.el - The element type to use as the root element for the Pack.
22
21
  * Defaults to "div".
23
22
  */
24
- export declare const Pack: <E extends SpaceElementType = "div">(props: PackProps<E>) => ReactElement;
23
+ export declare const Pack: <E extends SpaceElementType = "div">({ className, size, reverse, direction, bordered, borderShade, rounded, shadow, borderWidth, style, ...props }: PackProps<E>) => ReactElement;
25
24
  //# sourceMappingURL=Pack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pack.d.ts","sourceRoot":"","sources":["../../../src/align/Pack.tsx"],"names":[],"mappings":"AASA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAA2C,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEnF,OAAO,EAAS,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAI9E,4CAA4C;AAC5C,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,gBAAgB,GAAG,KAAK,IAAI,IAAI,CAC9D,UAAU,CAAC,CAAC,CAAC,EACb,OAAO,CACR,GAAG;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAkDF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI,EAED,CAAC,CAAC,SAAS,gBAAgB,GAAG,KAAK,EACjD,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAChB,YAAY,CAAC"}
1
+ {"version":3,"file":"Pack.d.ts","sourceRoot":"","sources":["../../../src/align/Pack.tsx"],"names":[],"mappings":"AASA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAS,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAI9E,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,gBAAgB,GAAG,KAAK,IAAI,IAAI,CAC9D,UAAU,CAAC,CAAC,CAAC,EACb,OAAO,CACR,GAAG;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,gBAAgB,yHAY5C,SAAS,CAAC,CAAC,CAAC,KAAG,YA6BjB,CAAC"}