@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.
- package/dist/{Animated-ByIJT_wA.js → Animated-BWcO40x5.js} +3 -3
- package/dist/{Animated-BOjwPkTJ.cjs → Animated-Cxl7iHik.cjs} +1 -1
- package/dist/{Item-CQ2ZuDfi.js → Item-BZvmqn4h.js} +9 -9
- package/dist/{Item-Bamd13Tl.cjs → Item-C4SOBynl.cjs} +1 -1
- package/dist/{LinePlot-Ci-61YDW.js → LinePlot-B_tFyvNo.js} +2258 -2203
- package/dist/LinePlot-C_uxbSzY.cjs +56 -0
- package/dist/{Link-ZlOdu4jA.js → Link-BIWA4Kdj.js} +2 -2
- package/dist/{Link-Cm6yn4zC.cjs → Link-DO2YbtQM.cjs} +1 -1
- package/dist/Pack-B7_tAsYd.cjs +1 -0
- package/dist/Pack-Di5J8hmU.js +143 -0
- package/dist/Toggle-BOWYgKry.cjs +163 -0
- package/dist/{Toggle-DlYB4nmh.js → Toggle-DvdBHJvZ.js} +15334 -15692
- package/dist/Video-CAbdyjCE.js +9 -0
- package/dist/Video-usN9Roxq.cjs +1 -0
- package/dist/aggregator-B4RWbN9h.cjs +77 -0
- package/dist/{aggregator-CWsCIyed.js → aggregator-Bl15iClv.js} +3507 -3512
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-Csw1Dn4s.js → css-Bbri4zkj.js} +299 -293
- package/dist/css-DT9dIVAb.cjs +1 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +49 -51
- package/dist/external-8OKX45Jc.cjs +1 -0
- package/dist/external-9Q86X8hc.cjs +1 -0
- package/dist/{external-CyYaJ5TW.js → external-B45MvYg8.js} +5 -5
- package/dist/external-BP5euc4j.js +34 -0
- package/dist/external-Ba8go3wq.cjs +1 -0
- package/dist/{external-DXD4PtTK.js → external-C59dex28.js} +2 -2
- package/dist/external-CKXRIr4_.cjs +1 -0
- package/dist/{external-4ikhWnyq.js → external-CML3oqyJ.js} +2 -2
- package/dist/external-CW61uh4b.cjs +1 -0
- package/dist/{external-vMTeF1dc.cjs → external-CWIwuJks.cjs} +1 -1
- package/dist/{external-2PznkZYs.js → external-CcuRxo0Z.js} +105 -104
- package/dist/{external-VEFOprRU.cjs → external-CigHe3w_.cjs} +1 -1
- package/dist/external-Cm1kldLr.js +123 -0
- package/dist/{external-vYsKqfFS.js → external-DNjLBxYA.js} +186 -187
- package/dist/{external-BTnFzhMM.js → external-DTDBfIqD.js} +4 -5
- package/dist/{external-C_th4MW9.cjs → external-DkXE1VK8.cjs} +1 -1
- package/dist/{external-CyPQsB1T.cjs → external-Dt4ggRt2.cjs} +1 -1
- package/dist/{external-DIwKYTmY.js → external-DuGCS_ZD.js} +2 -2
- package/dist/{external-BpeQ9rNJ.js → external-DuK5v_sl.js} +108 -106
- package/dist/external-SsIgRo40.cjs +1 -0
- package/dist/{external-rGv5AzBK.js → external-U33eEFR3.js} +16 -16
- package/dist/external-bw66TR6V.js +277 -0
- package/dist/{external-DsJYjdNk.cjs → external-kZBV4X9L.cjs} +1 -1
- package/dist/external-ok_ye4LF.cjs +1 -0
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.js +6734 -6600
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/{jsx-runtime-Dx-03ztt.js → jsx-runtime-Bdg6XQ1m.js} +134 -134
- package/dist/jsx-runtime-D8EVjfnb.cjs +31 -0
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/pluto.css +1 -1
- package/dist/src/aether/aether/aether.bench.d.ts +2 -0
- package/dist/src/aether/aether/aether.bench.d.ts.map +1 -0
- package/dist/src/aether/aether/aether.d.ts +143 -136
- package/dist/src/aether/aether/aether.d.ts.map +1 -1
- package/dist/src/aether/aether/{worker.spec.d.ts → aether.spec.spec.d.ts} +1 -1
- package/dist/src/aether/aether/aether.spec.spec.d.ts.map +1 -0
- package/dist/src/aether/aether/index.d.ts +1 -2
- package/dist/src/aether/aether/index.d.ts.map +1 -1
- package/dist/src/aether/main.d.ts +18 -19
- package/dist/src/aether/main.d.ts.map +1 -1
- package/dist/src/alamos/Provider.d.ts +2 -4
- package/dist/src/alamos/Provider.d.ts.map +1 -1
- package/dist/src/alamos/aether/alamos.d.ts +2 -2
- package/dist/src/alamos/aether/alamos.d.ts.map +1 -1
- package/dist/src/align/Center.d.ts +2 -3
- package/dist/src/align/Center.d.ts.map +1 -1
- package/dist/src/align/Pack.d.ts +1 -2
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts +1 -1
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/button/Button.d.ts +8 -8
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/button/Icon.d.ts +2 -2
- package/dist/src/button/Icon.d.ts.map +1 -1
- package/dist/src/button/Toggle.d.ts +5 -5
- package/dist/src/button/Toggle.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/channel/Select.d.ts +2 -0
- package/dist/src/channel/Select.d.ts.map +1 -1
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/color/core/external.d.ts +1 -0
- package/dist/src/color/core/external.d.ts.map +1 -1
- package/dist/src/color/core/transformColorsToHex.d.ts +6 -0
- package/dist/src/color/core/transformColorsToHex.d.ts.map +1 -0
- package/dist/src/color/external.d.ts +1 -0
- package/dist/src/color/external.d.ts.map +1 -1
- package/dist/src/divider/index.d.ts +1 -2
- package/dist/src/divider/index.d.ts.map +1 -1
- package/dist/src/dropdown/index.d.ts +1 -2
- package/dist/src/dropdown/index.d.ts.map +1 -1
- package/dist/src/form/Field.d.ts +6 -6
- package/dist/src/form/Field.d.ts.map +1 -1
- package/dist/src/form/synced.d.ts.map +1 -1
- package/dist/src/generic/Generic.d.ts +1 -1
- package/dist/src/generic/Generic.d.ts.map +1 -1
- package/dist/src/hardware/device/Select.d.ts.map +1 -1
- package/dist/src/haul/Haul.d.ts +3 -3
- package/dist/src/haul/Haul.d.ts.map +1 -1
- package/dist/src/hooks/effect.d.ts +2 -2
- package/dist/src/hooks/effect.d.ts.map +1 -1
- package/dist/src/hooks/ref.d.ts +5 -5
- package/dist/src/hooks/ref.d.ts.map +1 -1
- package/dist/src/hooks/useCursorDrag/useVirtualCursorDragWebKit.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts +11 -4
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Date.d.ts +2 -1
- package/dist/src/input/Date.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts +2 -1
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Switch.d.ts +2 -1
- package/dist/src/input/Switch.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts +2 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/TextArea.d.ts +3 -3
- package/dist/src/input/TextArea.d.ts.map +1 -1
- package/dist/src/input/Time.d.ts +1 -1
- package/dist/src/input/Time.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +2 -2
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/label/Select.d.ts.map +1 -1
- package/dist/src/list/Hover.d.ts.map +1 -1
- package/dist/src/list/Selector.d.ts.map +1 -1
- package/dist/src/menu/ContextMenu.d.ts +2 -2
- package/dist/src/menu/ContextMenu.d.ts.map +1 -1
- package/dist/src/menu/Item.d.ts.map +1 -1
- package/dist/src/mosaic/Mosaic.d.ts +2 -5
- package/dist/src/mosaic/Mosaic.d.ts.map +1 -1
- package/dist/src/nav/Drawer.d.ts +1 -3
- package/dist/src/nav/Drawer.d.ts.map +1 -1
- package/dist/src/os/Controls/Controls.d.ts.map +1 -1
- package/dist/src/os/Controls/index.d.ts +2 -3
- package/dist/src/os/Controls/index.d.ts.map +1 -1
- package/dist/src/os/use.d.ts.map +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -1
- package/dist/src/ranger/SelectLabel.d.ts.map +1 -1
- package/dist/src/resize/Core.d.ts +2 -2
- package/dist/src/resize/Core.d.ts.map +1 -1
- package/dist/src/resize/Multiple.d.ts +1 -1
- package/dist/src/resize/Multiple.d.ts.map +1 -1
- package/dist/src/select/Alignment.d.ts +1 -1
- package/dist/src/select/Alignment.d.ts.map +1 -1
- package/dist/src/select/ComponentSize.d.ts +1 -1
- package/dist/src/select/ComponentSize.d.ts.map +1 -1
- package/dist/src/select/Direction.d.ts +1 -1
- package/dist/src/select/Direction.d.ts.map +1 -1
- package/dist/src/select/Multiple.d.ts +13 -12
- package/dist/src/select/Multiple.d.ts.map +1 -1
- package/dist/src/select/Select.spec.d.ts.map +1 -1
- package/dist/src/select/Single.d.ts +2 -2
- package/dist/src/select/Single.d.ts.map +1 -1
- package/dist/src/select/external.d.ts +1 -1
- package/dist/src/select/external.d.ts.map +1 -1
- package/dist/src/status/Aggregator.d.ts +6 -6
- package/dist/src/status/Aggregator.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +10 -4
- package/dist/src/status/aether/aggregator.d.ts.map +1 -1
- package/dist/src/synnax/Provider.d.ts +2 -4
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts +2 -2
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/table/Table.d.ts +4 -6
- package/dist/src/table/Table.d.ts.map +1 -1
- package/dist/src/table/aether/Table.d.ts +3 -1
- package/dist/src/table/aether/Table.d.ts.map +1 -1
- package/dist/src/table/cells/Cells.d.ts +4 -4
- package/dist/src/table/cells/registry.d.ts.map +1 -1
- package/dist/src/table/external.d.ts.map +1 -1
- package/dist/src/tabs/Selector.d.ts.map +1 -1
- package/dist/src/tabs/types.d.ts +2 -2
- package/dist/src/tabs/types.d.ts.map +1 -1
- package/dist/src/tag/Tag.d.ts +1 -1
- package/dist/src/tag/Tag.d.ts.map +1 -1
- package/dist/src/telem/Provider.d.ts +2 -4
- package/dist/src/telem/Provider.d.ts.map +1 -1
- package/dist/src/telem/aether/context.d.ts +22 -22
- package/dist/src/telem/aether/context.d.ts.map +1 -1
- package/dist/src/telem/aether/convertSeries.d.ts +20 -6
- package/dist/src/telem/aether/convertSeries.d.ts.map +1 -1
- package/dist/src/telem/aether/factory.d.ts +1 -1
- package/dist/src/telem/aether/factory.d.ts.map +1 -1
- package/dist/src/telem/aether/pipeline.d.ts +16 -16
- package/dist/src/telem/aether/provider.d.ts +3 -13
- package/dist/src/telem/aether/provider.d.ts.map +1 -1
- package/dist/src/telem/aether/remote.d.ts.map +1 -1
- package/dist/src/telem/aether/telem.d.ts +30 -30
- package/dist/src/telem/client/cache/dynamic.d.ts.map +1 -1
- package/dist/src/telem/client/cache/index.d.ts +1 -2
- package/dist/src/telem/client/cache/index.d.ts.map +1 -1
- package/dist/src/telem/client/cache/static.d.ts.map +1 -1
- package/dist/src/telem/client/client.d.ts +8 -12
- package/dist/src/telem/client/client.d.ts.map +1 -1
- package/dist/src/telem/control/Chip.d.ts +2 -3
- package/dist/src/telem/control/Chip.d.ts.map +1 -1
- package/dist/src/telem/control/Controller.d.ts +2 -4
- package/dist/src/telem/control/Controller.d.ts.map +1 -1
- package/dist/src/telem/control/Indicator.d.ts +2 -4
- package/dist/src/telem/control/Indicator.d.ts.map +1 -1
- package/dist/src/telem/control/Legend.d.ts +2 -3
- package/dist/src/telem/control/Legend.d.ts.map +1 -1
- package/dist/src/telem/control/StateProvider.d.ts +2 -4
- package/dist/src/telem/control/StateProvider.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +17 -18
- package/dist/src/telem/control/aether/chip.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts +3 -2
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/telem/control/aether/indicator.d.ts +17 -18
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +1 -1
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +1 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/text/DateTime.d.ts +3 -6
- package/dist/src/text/DateTime.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/text/Link.d.ts +3 -5
- package/dist/src/text/Link.d.ts.map +1 -1
- package/dist/src/text/Text.d.ts +1 -1
- package/dist/src/text/Text.d.ts.map +1 -1
- package/dist/src/theming/Provider.d.ts +1 -3
- package/dist/src/theming/Provider.d.ts.map +1 -1
- package/dist/src/theming/aether/index.d.ts +1 -2
- package/dist/src/theming/aether/index.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +316 -316
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +116 -116
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/tooltip/wrap.d.ts +2 -2
- package/dist/src/tooltip/wrap.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts +2 -2
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/tree/core.d.ts +1 -2
- package/dist/src/tree/core.d.ts.map +1 -1
- package/dist/src/triggers/Provider.d.ts.map +1 -1
- package/dist/src/triggers/hooks.d.ts +2 -2
- package/dist/src/triggers/hooks.d.ts.map +1 -1
- package/dist/src/util/canDisable.d.ts.map +1 -1
- package/dist/src/util/reflow.d.ts.map +1 -1
- package/dist/src/util/removeProps.d.ts.map +1 -1
- package/dist/src/video/Video.d.ts +2 -2
- package/dist/src/video/Video.d.ts.map +1 -1
- package/dist/src/viewport/Mask.d.ts +2 -1
- package/dist/src/viewport/Mask.d.ts.map +1 -1
- package/dist/src/viewport/use.d.ts +3 -3
- package/dist/src/viewport/use.d.ts.map +1 -1
- package/dist/src/vis/axis/canvas.d.ts +1 -1
- package/dist/src/vis/axis/canvas.d.ts.map +1 -1
- package/dist/src/vis/button/aether/button.d.ts +9 -9
- package/dist/src/vis/button/aether/button.d.ts.map +1 -1
- package/dist/src/vis/canvas/Canvas.d.ts +2 -4
- package/dist/src/vis/canvas/Canvas.d.ts.map +1 -1
- package/dist/src/vis/canvas/aether/canvas.d.ts +9 -8
- package/dist/src/vis/canvas/aether/canvas.d.ts.map +1 -1
- package/dist/src/vis/diagram/Diagram.d.ts +2 -1
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +2 -2
- package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
- package/dist/src/vis/diagram/edge/paths.d.ts.map +1 -1
- package/dist/src/vis/eraser/aether/eraser.d.ts +4 -4
- package/dist/src/vis/eraser/aether/eraser.d.ts.map +1 -1
- package/dist/src/vis/eraser/use.d.ts +5 -6
- package/dist/src/vis/eraser/use.d.ts.map +1 -1
- package/dist/src/vis/light/aether/light.d.ts +10 -10
- package/dist/src/vis/light/aether/light.d.ts.map +1 -1
- package/dist/src/vis/line/Line.d.ts +4 -4
- package/dist/src/vis/line/Line.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +25 -17
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Axis.d.ts +2 -1
- package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts +1 -1
- package/dist/src/vis/lineplot/Legend.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Line.d.ts +4 -4
- package/dist/src/vis/lineplot/Line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts +4 -5
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Title.d.ts.map +1 -1
- package/dist/src/vis/lineplot/Viewport.d.ts +2 -2
- package/dist/src/vis/lineplot/Viewport.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts +3 -3
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +2 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/index.d.ts +1 -2
- package/dist/src/vis/lineplot/aether/index.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Annotation.d.ts +3 -4
- package/dist/src/vis/lineplot/range/Annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts +4 -4
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts +1 -1
- package/dist/src/vis/lineplot/range/aether/annotation.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts +4 -4
- package/dist/src/vis/lineplot/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +2 -2
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/log/Log.d.ts +3 -4
- package/dist/src/vis/log/Log.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +13 -13
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/log/index.d.ts.map +1 -1
- package/dist/src/vis/measure/Measure.d.ts +4 -4
- package/dist/src/vis/measure/Measure.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +3 -3
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/render/GLProgram.d.ts +1 -1
- package/dist/src/vis/render/GLProgram.d.ts.map +1 -1
- package/dist/src/vis/render/external.d.ts +0 -1
- package/dist/src/vis/render/external.d.ts.map +1 -1
- package/dist/src/vis/render/loop.d.ts +1 -1
- package/dist/src/vis/render/loop.d.ts.map +1 -1
- package/dist/src/vis/rule/Rule.d.ts +4 -4
- package/dist/src/vis/rule/Rule.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +3 -3
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/setpoint/aether/setpoint.d.ts +18 -18
- package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -1
- package/dist/src/vis/toggle/aether/toggle.d.ts +18 -18
- package/dist/src/vis/toggle/aether/toggle.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +26 -26
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +8 -8
- package/dist/src/worker/Context.d.ts.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/transformColorsToHex-CDwcIPob.cjs +1 -0
- package/dist/transformColorsToHex-CnZpPlL2.js +14 -0
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-CXFC0OLO.cjs → units-BpKy5yTv.cjs} +1 -1
- package/dist/{units-CJ76Jzvw.js → units-CNGjg1NV.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +14 -15
- package/dist/LinePlot-D4V1ltNT.cjs +0 -24
- package/dist/Pack-CyaEXvnu.cjs +0 -1
- package/dist/Pack-DNCFnyuR.js +0 -140
- package/dist/Toggle-vgmhy8wZ.cjs +0 -163
- package/dist/Video-g30B90s-.cjs +0 -1
- package/dist/Video-jaT7Y97L.js +0 -14
- package/dist/aggregator-DX8ts24k.cjs +0 -77
- package/dist/css-Bo-hsQHb.cjs +0 -1
- package/dist/external-BS9Bfsj3.cjs +0 -1
- package/dist/external-Bt_kX5KM.cjs +0 -1
- package/dist/external-CEcxrva2.js +0 -254
- package/dist/external-CMEDU76u.cjs +0 -1
- package/dist/external-CWincA61.cjs +0 -1
- package/dist/external-Dn4tpDVi.js +0 -32
- package/dist/external-Dtr4ZxR6.cjs +0 -1
- package/dist/external-IztUjYjX.cjs +0 -1
- package/dist/external-WZW4OBZx.js +0 -91
- package/dist/external-kAduhcvp.cjs +0 -1
- package/dist/jsx-runtime-DGh1k5sI.cjs +0 -31
- package/dist/src/aether/aether/worker.spec.d.ts.map +0 -1
- package/dist/src/aether/test/index.d.ts +0 -2
- package/dist/src/aether/test/index.d.ts.map +0 -1
- package/dist/src/aether/test/test.d.ts +0 -11
- package/dist/src/aether/test/test.d.ts.map +0 -1
- package/dist/src/telem/test/index.d.ts +0 -2
- package/dist/src/telem/test/index.d.ts.map +0 -1
- package/dist/src/telem/test/mock.d.ts +0 -33
- package/dist/src/telem/test/mock.d.ts.map +0 -1
- package/dist/src/vis/render/eraser.d.ts +0 -20
- package/dist/src/vis/render/eraser.d.ts.map +0 -1
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|
51
|
-
*
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
71
|
+
export interface ComponentConstructor {
|
|
72
|
+
new (props: ComponentConstructorProps): Component;
|
|
73
|
+
}
|
|
67
74
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
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
|
|
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
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* @
|
|
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
|
-
|
|
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
|
|
115
|
-
*
|
|
116
|
-
* value
|
|
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
|
|
124
|
-
*
|
|
125
|
-
* @
|
|
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
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* the
|
|
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
|
|
135
|
-
* @
|
|
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
|
-
|
|
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
|
|
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<
|
|
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
|
-
|
|
127
|
+
private readonly sender;
|
|
148
128
|
private readonly _internalState;
|
|
149
129
|
private _state;
|
|
150
130
|
private _prevState;
|
|
151
131
|
private _deleted;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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<
|
|
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<
|
|
168
|
-
get internal():
|
|
148
|
+
get state(): z.output<StateSchema>;
|
|
149
|
+
get internal(): InternalState;
|
|
169
150
|
/** @returns the previous state of the component. */
|
|
170
|
-
get prevState(): z.output<
|
|
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
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
246
|
-
|
|
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
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
|
|
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;
|
|
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;AAGpF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,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C,EAAE,CAAe;IAElC,MAAM,iDAAmB;gBAEb,EACV,KAAK,EACL,eAA6C,EAC7C,QAAQ,GACT,EAAE,SAAS;IAYZ;;;OAGG;WACU,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBpD;;;OAGG;YACW,MAAM;IAUpB,gDAAgD;IAChD,OAAO,CAAC,MAAM;CAgBf;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,oBAAyB,CAAC"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/aether/aether/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,wBAAwB,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 {
|
|
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
|
|
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,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/aether/main.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAQlB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGxE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAC1D,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,YAAY,KAAK,YAAY,CAAC;CAClF;AAOD,eAAO,MAAM,OAAO,uCAAkD,CAAC;AAE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,CAAC,MAAM,CAAC,CAAC,CAAC;IACX,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,YAAY,EAAE,KAAK,IAAI;CACrE,CAAC;AAEF,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,CACnD,SAAQ,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IAC1D,IAAI,EAAE,MAAM,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:
|
|
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,
|
|
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 = "
|
|
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,
|
|
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 {
|
|
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,
|
|
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"}
|
package/dist/src/align/Pack.d.ts
CHANGED
|
@@ -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,
|
|
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"}
|