@asymmetric-effort/specifyjs 0.2.98 → 0.2.100
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/specifyjs-build.cjs.js +160 -1
- package/dist/specifyjs-build.cjs.js.map +7 -1
- package/dist/specifyjs-build.d.ts +1 -110
- package/dist/specifyjs-build.esm.js +160 -1
- package/dist/specifyjs-build.esm.js.map +7 -1
- package/dist/specifyjs-client.cjs.js +2 -1
- package/dist/specifyjs-client.cjs.js.map +7 -1
- package/dist/specifyjs-client.d.ts +1 -159
- package/dist/specifyjs-client.esm.js +2 -1
- package/dist/specifyjs-client.esm.js.map +7 -1
- package/dist/specifyjs-components.cjs.js +8 -1
- package/dist/specifyjs-components.cjs.js.map +7 -1
- package/dist/specifyjs-components.d.ts +1 -3334
- package/dist/specifyjs-components.esm.js +8 -1
- package/dist/specifyjs-components.esm.js.map +7 -1
- package/dist/specifyjs-dom.cjs.js +2 -1
- package/dist/specifyjs-dom.cjs.js.map +7 -1
- package/dist/specifyjs-dom.d.ts +1 -107
- package/dist/specifyjs-dom.esm.js +2 -1
- package/dist/specifyjs-dom.esm.js.map +7 -1
- package/dist/specifyjs-jsx-dev-runtime.cjs.js +2 -1
- package/dist/specifyjs-jsx-dev-runtime.cjs.js.map +7 -1
- package/dist/specifyjs-jsx-dev-runtime.esm.js +2 -1
- package/dist/specifyjs-jsx-dev-runtime.esm.js.map +7 -1
- package/dist/specifyjs-jsx-runtime.cjs.js +2 -1
- package/dist/specifyjs-jsx-runtime.cjs.js.map +7 -1
- package/dist/specifyjs-jsx-runtime.esm.js +2 -1
- package/dist/specifyjs-jsx-runtime.esm.js.map +7 -1
- package/dist/specifyjs-server.cjs.js +2 -1
- package/dist/specifyjs-server.cjs.js.map +7 -1
- package/dist/specifyjs-server.d.ts +1 -136
- package/dist/specifyjs-server.esm.js +2 -1
- package/dist/specifyjs-server.esm.js.map +7 -1
- package/dist/specifyjs-telemetry.cjs.js +2 -1
- package/dist/specifyjs-telemetry.cjs.js.map +7 -1
- package/dist/specifyjs-telemetry.d.ts +1 -165
- package/dist/specifyjs-telemetry.esm.js +2 -1
- package/dist/specifyjs-telemetry.esm.js.map +7 -1
- package/dist/specifyjs.cjs.js +2 -1
- package/dist/specifyjs.cjs.js.map +7 -1
- package/dist/specifyjs.d.ts +1 -581
- package/dist/specifyjs.esm.js +2 -1
- package/dist/specifyjs.esm.js.map +7 -1
- package/dist/types/build/index.d.ts +5 -0
- package/dist/types/build/index.d.ts.map +1 -0
- package/dist/types/build/noscript-plugin.d.ts +63 -0
- package/dist/types/build/noscript-plugin.d.ts.map +1 -0
- package/dist/types/build/seo-plugin.d.ts +43 -0
- package/dist/types/build/seo-plugin.d.ts.map +1 -0
- package/dist/types/client/graphql.d.ts +64 -0
- package/dist/types/client/graphql.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +4 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/client/protobuf.d.ts +40 -0
- package/dist/types/client/protobuf.d.ts.map +1 -0
- package/dist/types/client/rest.d.ts +61 -0
- package/dist/types/client/rest.d.ts.map +1 -0
- package/dist/types/components/ad/adsense/src/AdSense.d.ts +19 -0
- package/dist/types/components/ad/adsense/src/index.d.ts +2 -0
- package/dist/types/components/analytics/google-analytics/src/GoogleAnalytics.d.ts +13 -0
- package/dist/types/components/analytics/google-analytics/src/index.d.ts +2 -0
- package/dist/types/components/component.d.ts +39 -0
- package/dist/types/components/component.d.ts.map +1 -0
- package/dist/types/components/data/analog-clock/src/AnalogClock.d.ts +17 -0
- package/dist/types/components/data/analog-clock/src/index.d.ts +2 -0
- package/dist/types/components/data/avatar/src/Avatar.d.ts +19 -0
- package/dist/types/components/data/avatar/src/index.d.ts +2 -0
- package/dist/types/components/data/badge/src/Badge.d.ts +17 -0
- package/dist/types/components/data/badge/src/index.d.ts +2 -0
- package/dist/types/components/data/data-grid/src/DataGrid.d.ts +47 -0
- package/dist/types/components/data/data-grid/src/index.d.ts +2 -0
- package/dist/types/components/data/digital-clock/src/DigitalClock.d.ts +15 -0
- package/dist/types/components/data/digital-clock/src/index.d.ts +2 -0
- package/dist/types/components/data/list-view/src/ListView.d.ts +23 -0
- package/dist/types/components/data/list-view/src/index.d.ts +2 -0
- package/dist/types/components/data/tag/src/Tag.d.ts +21 -0
- package/dist/types/components/data/tag/src/index.d.ts +2 -0
- package/dist/types/components/data/virtual-scroll/src/VirtualScroll.d.ts +13 -0
- package/dist/types/components/data/virtual-scroll/src/index.d.ts +2 -0
- package/dist/types/components/error-boundary.d.ts +23 -0
- package/dist/types/components/error-boundary.d.ts.map +1 -0
- package/dist/types/components/errors/_shared/src/HttpErrorPage.d.ts +15 -0
- package/dist/types/components/errors/_shared/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-400/src/Http400.d.ts +9 -0
- package/dist/types/components/errors/http-400/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-401/src/Http401.d.ts +9 -0
- package/dist/types/components/errors/http-401/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-403/src/Http403.d.ts +9 -0
- package/dist/types/components/errors/http-403/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-404/src/Http404.d.ts +9 -0
- package/dist/types/components/errors/http-404/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-405/src/Http405.d.ts +9 -0
- package/dist/types/components/errors/http-405/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-408/src/Http408.d.ts +9 -0
- package/dist/types/components/errors/http-408/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-429/src/Http429.d.ts +9 -0
- package/dist/types/components/errors/http-429/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-500/src/Http500.d.ts +9 -0
- package/dist/types/components/errors/http-500/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-502/src/Http502.d.ts +9 -0
- package/dist/types/components/errors/http-502/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-503/src/Http503.d.ts +9 -0
- package/dist/types/components/errors/http-503/src/index.d.ts +2 -0
- package/dist/types/components/errors/http-504/src/Http504.d.ts +9 -0
- package/dist/types/components/errors/http-504/src/index.d.ts +2 -0
- package/dist/types/components/feedback/alert/src/Alert.d.ts +25 -0
- package/dist/types/components/feedback/alert/src/index.d.ts +2 -0
- package/dist/types/components/feedback/empty-state/src/EmptyState.d.ts +17 -0
- package/dist/types/components/feedback/empty-state/src/index.d.ts +2 -0
- package/dist/types/components/feedback/progress-bar/src/ProgressBar.d.ts +23 -0
- package/dist/types/components/feedback/progress-bar/src/index.d.ts +2 -0
- package/dist/types/components/feedback/skeleton/src/Skeleton.d.ts +15 -0
- package/dist/types/components/feedback/skeleton/src/index.d.ts +2 -0
- package/dist/types/components/feedback/spinner/src/Spinner.d.ts +13 -0
- package/dist/types/components/feedback/spinner/src/index.d.ts +2 -0
- package/dist/types/components/form/button/src/Button.d.ts +25 -0
- package/dist/types/components/form/button/src/index.d.ts +2 -0
- package/dist/types/components/form/checkbox/src/Checkbox.d.ts +19 -0
- package/dist/types/components/form/checkbox/src/index.d.ts +2 -0
- package/dist/types/components/form/color-picker/src/ColorPicker.d.ts +19 -0
- package/dist/types/components/form/color-picker/src/index.d.ts +2 -0
- package/dist/types/components/form/color-wheel/src/ColorWheel.d.ts +17 -0
- package/dist/types/components/form/color-wheel/src/index.d.ts +2 -0
- package/dist/types/components/form/datepicker/src/DatePicker.d.ts +23 -0
- package/dist/types/components/form/datepicker/src/index.d.ts +2 -0
- package/dist/types/components/form/file-upload/src/FileUpload.d.ts +19 -0
- package/dist/types/components/form/file-upload/src/index.d.ts +2 -0
- package/dist/types/components/form/multiline/src/MultilineField.d.ts +41 -0
- package/dist/types/components/form/multiline/src/index.d.ts +2 -0
- package/dist/types/components/form/number-spinner/src/NumberSpinner.d.ts +25 -0
- package/dist/types/components/form/number-spinner/src/index.d.ts +2 -0
- package/dist/types/components/form/radio/src/RadioGroup.d.ts +26 -0
- package/dist/types/components/form/radio/src/index.d.ts +2 -0
- package/dist/types/components/form/select/src/Select.d.ts +33 -0
- package/dist/types/components/form/select/src/index.d.ts +2 -0
- package/dist/types/components/form/slider/src/Slider.d.ts +33 -0
- package/dist/types/components/form/slider/src/index.d.ts +2 -0
- package/dist/types/components/form/texteditor/src/TextEditor.d.ts +46 -0
- package/dist/types/components/form/texteditor/src/index.d.ts +2 -0
- package/dist/types/components/form/textfield/src/TextField.d.ts +48 -0
- package/dist/types/components/form/textfield/src/index.d.ts +2 -0
- package/dist/types/components/form/timepicker/src/TimePicker.d.ts +29 -0
- package/dist/types/components/form/timepicker/src/index.d.ts +2 -0
- package/dist/types/components/form/toggle/src/Toggle.d.ts +19 -0
- package/dist/types/components/form/toggle/src/index.d.ts +2 -0
- package/dist/types/components/form/wrapper/src/FormFieldWrapper.d.ts +67 -0
- package/dist/types/components/form/wrapper/src/index.d.ts +2 -0
- package/dist/types/components/layout/card/src/Card.d.ts +31 -0
- package/dist/types/components/layout/card/src/index.d.ts +2 -0
- package/dist/types/components/layout/desktop-background/src/DesktopBackground.d.ts +23 -0
- package/dist/types/components/layout/desktop-background/src/index.d.ts +2 -0
- package/dist/types/components/layout/draggable-window/src/DraggableWindow.d.ts +59 -0
- package/dist/types/components/layout/draggable-window/src/index.d.ts +2 -0
- package/dist/types/components/layout/flex-container/src/FlexContainer.d.ts +42 -0
- package/dist/types/components/layout/flex-container/src/index.d.ts +2 -0
- package/dist/types/components/layout/footer/src/Footer.d.ts +25 -0
- package/dist/types/components/layout/footer/src/index.d.ts +2 -0
- package/dist/types/components/layout/grid/src/Grid.d.ts +54 -0
- package/dist/types/components/layout/grid/src/index.d.ts +2 -0
- package/dist/types/components/layout/panel/src/Panel.d.ts +23 -0
- package/dist/types/components/layout/panel/src/index.d.ts +2 -0
- package/dist/types/components/layout/scroll-container/src/ScrollContainer.d.ts +21 -0
- package/dist/types/components/layout/scroll-container/src/index.d.ts +2 -0
- package/dist/types/components/layout/splitter/src/Splitter.d.ts +19 -0
- package/dist/types/components/layout/splitter/src/index.d.ts +2 -0
- package/dist/types/components/layout/tabs/src/Tabs.d.ts +29 -0
- package/dist/types/components/layout/tabs/src/index.d.ts +2 -0
- package/dist/types/components/layout/window-manager/src/WindowManager.d.ts +106 -0
- package/dist/types/components/layout/window-manager/src/index.d.ts +2 -0
- package/dist/types/components/math/src/index.d.ts +5 -0
- package/dist/types/components/math/src/mat.d.ts +71 -0
- package/dist/types/components/math/src/mat4.d.ts +101 -0
- package/dist/types/components/math/src/quaternion.d.ts +62 -0
- package/dist/types/components/math/src/solver.d.ts +55 -0
- package/dist/types/components/math/src/vec.d.ts +54 -0
- package/dist/types/components/media/carousel/src/Carousel.d.ts +23 -0
- package/dist/types/components/media/carousel/src/index.d.ts +2 -0
- package/dist/types/components/media/image/src/Image.d.ts +23 -0
- package/dist/types/components/media/image/src/index.d.ts +2 -0
- package/dist/types/components/media/video-player/src/VideoPlayer.d.ts +27 -0
- package/dist/types/components/media/video-player/src/index.d.ts +2 -0
- package/dist/types/components/nav/accordion/src/Accordion.d.ts +52 -0
- package/dist/types/components/nav/accordion/src/index.d.ts +2 -0
- package/dist/types/components/nav/breadcrumb/src/Breadcrumb.d.ts +20 -0
- package/dist/types/components/nav/breadcrumb/src/index.d.ts +2 -0
- package/dist/types/components/nav/dock/src/Dock.d.ts +46 -0
- package/dist/types/components/nav/dock/src/index.d.ts +2 -0
- package/dist/types/components/nav/dropdown/src/Dropdown.d.ts +36 -0
- package/dist/types/components/nav/dropdown/src/index.d.ts +2 -0
- package/dist/types/components/nav/menubar/src/Menubar.d.ts +27 -0
- package/dist/types/components/nav/menubar/src/index.d.ts +2 -0
- package/dist/types/components/nav/pagination/src/Pagination.d.ts +19 -0
- package/dist/types/components/nav/pagination/src/index.d.ts +2 -0
- package/dist/types/components/nav/sidebar/src/Sidebar.d.ts +29 -0
- package/dist/types/components/nav/sidebar/src/index.d.ts +2 -0
- package/dist/types/components/nav/stepper/src/Stepper.d.ts +25 -0
- package/dist/types/components/nav/stepper/src/index.d.ts +2 -0
- package/dist/types/components/nav/system-tray/src/SystemTray.d.ts +47 -0
- package/dist/types/components/nav/system-tray/src/index.d.ts +2 -0
- package/dist/types/components/nav/toolbar/src/Toolbar.d.ts +27 -0
- package/dist/types/components/nav/toolbar/src/index.d.ts +2 -0
- package/dist/types/components/nav/treenav/src/TreeNav.d.ts +34 -0
- package/dist/types/components/nav/treenav/src/TreeNode.d.ts +74 -0
- package/dist/types/components/nav/treenav/src/index.d.ts +4 -0
- package/dist/types/components/nav/wrapper/src/NavWrapper.d.ts +73 -0
- package/dist/types/components/nav/wrapper/src/index.d.ts +2 -0
- package/dist/types/components/overlay/context-menu/src/ContextMenu.d.ts +21 -0
- package/dist/types/components/overlay/context-menu/src/index.d.ts +2 -0
- package/dist/types/components/overlay/drawer/src/Drawer.d.ts +22 -0
- package/dist/types/components/overlay/drawer/src/index.d.ts +2 -0
- package/dist/types/components/overlay/modal/src/Modal.d.ts +22 -0
- package/dist/types/components/overlay/modal/src/index.d.ts +2 -0
- package/dist/types/components/overlay/popover/src/Popover.d.ts +20 -0
- package/dist/types/components/overlay/popover/src/index.d.ts +2 -0
- package/dist/types/components/overlay/toast/src/Toast.d.ts +59 -0
- package/dist/types/components/overlay/toast/src/index.d.ts +2 -0
- package/dist/types/components/overlay/tooltip/src/Tooltip.d.ts +14 -0
- package/dist/types/components/overlay/tooltip/src/index.d.ts +2 -0
- package/dist/types/components/page/ide/src/IDE.d.ts +5 -0
- package/dist/types/components/page/ide/src/index.d.ts +2 -0
- package/dist/types/components/page/trading-dashboard/src/TradingDashboard.d.ts +5 -0
- package/dist/types/components/page/trading-dashboard/src/index.d.ts +2 -0
- package/dist/types/components/page/unity-desktop/src/UnityApp.d.ts +30 -0
- package/dist/types/components/page/unity-desktop/src/UnityDesktop.d.ts +30 -0
- package/dist/types/components/page/unity-desktop/src/index.d.ts +4 -0
- package/dist/types/components/page/word-processor/src/WordProcessor.d.ts +7 -0
- package/dist/types/components/page/word-processor/src/index.d.ts +2 -0
- package/dist/types/components/profiler.d.ts +6 -0
- package/dist/types/components/profiler.d.ts.map +1 -0
- package/dist/types/components/strict-mode.d.ts +6 -0
- package/dist/types/components/strict-mode.d.ts.map +1 -0
- package/dist/types/components/suspense.d.ts +6 -0
- package/dist/types/components/suspense.d.ts.map +1 -0
- package/dist/types/components/viz/2D-bar-graph/src/BarGraph.d.ts +61 -0
- package/dist/types/components/viz/2D-bar-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-cartesian-raw/src/CartesianGraph2D.d.ts +40 -0
- package/dist/types/components/viz/2D-cartesian-raw/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-complex-graph/src/ComplexGraph2D.d.ts +33 -0
- package/dist/types/components/viz/2D-complex-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-discrete-cartesian/src/DiscreteCartesian2D.d.ts +31 -0
- package/dist/types/components/viz/2D-discrete-cartesian/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-line-graph/src/LineGraph.d.ts +53 -0
- package/dist/types/components/viz/2D-line-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/2D-pie-graph/src/PieGraph.d.ts +49 -0
- package/dist/types/components/viz/2D-pie-graph/src/index.d.ts +3 -0
- package/dist/types/components/viz/2D-polar-graph/src/PolarGraph2D.d.ts +35 -0
- package/dist/types/components/viz/2D-polar-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/3d-layers/src/ThreeDLayers.d.ts +35 -0
- package/dist/types/components/viz/3d-layers/src/index.d.ts +2 -0
- package/dist/types/components/viz/3dSpace/src/Space3D.d.ts +63 -0
- package/dist/types/components/viz/3dSpace/src/animation.d.ts +75 -0
- package/dist/types/components/viz/3dSpace/src/bounds.d.ts +36 -0
- package/dist/types/components/viz/3dSpace/src/camera-controller.d.ts +59 -0
- package/dist/types/components/viz/3dSpace/src/camera.d.ts +43 -0
- package/dist/types/components/viz/3dSpace/src/collision.d.ts +54 -0
- package/dist/types/components/viz/3dSpace/src/cpu-pipeline.d.ts +47 -0
- package/dist/types/components/viz/3dSpace/src/index.d.ts +32 -0
- package/dist/types/components/viz/3dSpace/src/light.d.ts +23 -0
- package/dist/types/components/viz/3dSpace/src/lighting-model.d.ts +34 -0
- package/dist/types/components/viz/3dSpace/src/material.d.ts +12 -0
- package/dist/types/components/viz/3dSpace/src/mesh.d.ts +35 -0
- package/dist/types/components/viz/3dSpace/src/picking.d.ts +51 -0
- package/dist/types/components/viz/3dSpace/src/render-pipeline.d.ts +12 -0
- package/dist/types/components/viz/3dSpace/src/scene-graph.d.ts +20 -0
- package/dist/types/components/viz/3dSpace/src/scene-object.d.ts +31 -0
- package/dist/types/components/viz/3dSpace/src/terrain.d.ts +34 -0
- package/dist/types/components/viz/3dSpace/src/texture.d.ts +22 -0
- package/dist/types/components/viz/3dSpace/src/types.d.ts +42 -0
- package/dist/types/components/viz/3dSpace/src/viewport.d.ts +19 -0
- package/dist/types/components/viz/3dSpace/src/webgl-pipeline.d.ts +54 -0
- package/dist/types/components/viz/big-number/src/BigNumber.d.ts +29 -0
- package/dist/types/components/viz/big-number/src/index.d.ts +2 -0
- package/dist/types/components/viz/bloch-sphere/src/BlochSphere.d.ts +73 -0
- package/dist/types/components/viz/bloch-sphere/src/index.d.ts +2 -0
- package/dist/types/components/viz/box-plot/src/BoxPlot.d.ts +47 -0
- package/dist/types/components/viz/box-plot/src/index.d.ts +2 -0
- package/dist/types/components/viz/bubble-chart/src/BubbleChart.d.ts +38 -0
- package/dist/types/components/viz/bubble-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/calendar-heat-map/src/CalendarHeatMap.d.ts +29 -0
- package/dist/types/components/viz/calendar-heat-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/chord/src/ChordDiagram.d.ts +25 -0
- package/dist/types/components/viz/chord/src/index.d.ts +2 -0
- package/dist/types/components/viz/decomposition-tree/src/DecompositionTree.d.ts +33 -0
- package/dist/types/components/viz/decomposition-tree/src/index.d.ts +2 -0
- package/dist/types/components/viz/earth-globe/src/EarthGlobe.d.ts +62 -0
- package/dist/types/components/viz/earth-globe/src/globe-data.d.ts +23 -0
- package/dist/types/components/viz/earth-globe/src/index.d.ts +5 -0
- package/dist/types/components/viz/force-graph/src/ForceGraph.d.ts +99 -0
- package/dist/types/components/viz/force-graph/src/index.d.ts +2 -0
- package/dist/types/components/viz/funnel/src/FunnelChart.d.ts +28 -0
- package/dist/types/components/viz/funnel/src/index.d.ts +2 -0
- package/dist/types/components/viz/gantt-chart/src/GanttChart.d.ts +33 -0
- package/dist/types/components/viz/gantt-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/gauge/src/Gauge.d.ts +37 -0
- package/dist/types/components/viz/gauge/src/index.d.ts +2 -0
- package/dist/types/components/viz/graph/src/HypercubeGraph.d.ts +43 -0
- package/dist/types/components/viz/graph/src/hypercube.d.ts +78 -0
- package/dist/types/components/viz/graph/src/index.d.ts +4 -0
- package/dist/types/components/viz/heat-map/src/HeatMap.d.ts +29 -0
- package/dist/types/components/viz/heat-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/histogram/src/Histogram.d.ts +27 -0
- package/dist/types/components/viz/histogram/src/index.d.ts +2 -0
- package/dist/types/components/viz/lollipop/src/LollipopChart.d.ts +32 -0
- package/dist/types/components/viz/lollipop/src/index.d.ts +2 -0
- package/dist/types/components/viz/matrix/src/Matrix.d.ts +29 -0
- package/dist/types/components/viz/matrix/src/index.d.ts +2 -0
- package/dist/types/components/viz/partition/src/Partition.d.ts +31 -0
- package/dist/types/components/viz/partition/src/index.d.ts +2 -0
- package/dist/types/components/viz/pivot-table/src/PivotTable.d.ts +25 -0
- package/dist/types/components/viz/pivot-table/src/index.d.ts +2 -0
- package/dist/types/components/viz/radar-chart/src/RadarChart.d.ts +35 -0
- package/dist/types/components/viz/radar-chart/src/index.d.ts +2 -0
- package/dist/types/components/viz/sankey/src/SankeyDiagram.d.ts +38 -0
- package/dist/types/components/viz/sankey/src/index.d.ts +2 -0
- package/dist/types/components/viz/sunburst/src/Sunburst.d.ts +27 -0
- package/dist/types/components/viz/sunburst/src/index.d.ts +2 -0
- package/dist/types/components/viz/tree-map/src/TreeMap.d.ts +29 -0
- package/dist/types/components/viz/tree-map/src/index.d.ts +2 -0
- package/dist/types/components/viz/us-state-map/src/USStateMap.d.ts +23 -0
- package/dist/types/components/viz/us-state-map/src/index.d.ts +4 -0
- package/dist/types/components/viz/us-state-map/src/us-state-paths.d.ts +10 -0
- package/dist/types/components/viz/vector-field/src/VectorField.d.ts +61 -0
- package/dist/types/components/viz/vector-field/src/index.d.ts +2 -0
- package/dist/types/components/viz/waterfall/src/WaterfallChart.d.ts +32 -0
- package/dist/types/components/viz/waterfall/src/index.d.ts +2 -0
- package/dist/types/components/viz/word-cloud/src/WordCloud.d.ts +30 -0
- package/dist/types/components/viz/word-cloud/src/index.d.ts +2 -0
- package/dist/types/components/viz/wrapper/src/VizWrapper.d.ts +60 -0
- package/dist/types/components/viz/wrapper/src/index.d.ts +2 -0
- package/dist/types/compute/context.d.ts +20 -0
- package/dist/types/compute/context.d.ts.map +1 -0
- package/dist/types/compute/cpu-backend.d.ts +15 -0
- package/dist/types/compute/cpu-backend.d.ts.map +1 -0
- package/dist/types/compute/index.d.ts +3 -0
- package/dist/types/compute/index.d.ts.map +1 -0
- package/dist/types/compute/types.d.ts +57 -0
- package/dist/types/compute/types.d.ts.map +1 -0
- package/dist/types/compute/webgl-backend.d.ts +33 -0
- package/dist/types/compute/webgl-backend.d.ts.map +1 -0
- package/dist/types/compute/webgpu-backend.d.ts +50 -0
- package/dist/types/compute/webgpu-backend.d.ts.map +1 -0
- package/dist/types/context/create-context.d.ts +15 -0
- package/dist/types/context/create-context.d.ts.map +1 -0
- package/dist/types/core/children.d.ts +15 -0
- package/dist/types/core/children.d.ts.map +1 -0
- package/dist/types/core/clone-element.d.ts +10 -0
- package/dist/types/core/clone-element.d.ts.map +1 -0
- package/dist/types/core/create-element.d.ts +20 -0
- package/dist/types/core/create-element.d.ts.map +1 -0
- package/dist/types/core/create-ref.d.ts +7 -0
- package/dist/types/core/create-ref.d.ts.map +1 -0
- package/dist/types/core/fiber.d.ts +30 -0
- package/dist/types/core/fiber.d.ts.map +1 -0
- package/dist/types/core/forward-ref.d.ts +16 -0
- package/dist/types/core/forward-ref.d.ts.map +1 -0
- package/dist/types/core/fragment.d.ts +6 -0
- package/dist/types/core/fragment.d.ts.map +1 -0
- package/dist/types/core/is-valid-element.d.ts +7 -0
- package/dist/types/core/is-valid-element.d.ts.map +1 -0
- package/dist/types/core/lanes.d.ts +47 -0
- package/dist/types/core/lanes.d.ts.map +1 -0
- package/dist/types/core/lazy.d.ts +20 -0
- package/dist/types/core/lazy.d.ts.map +1 -0
- package/dist/types/core/memo.d.ts +13 -0
- package/dist/types/core/memo.d.ts.map +1 -0
- package/dist/types/core/reconciler.d.ts +12 -0
- package/dist/types/core/reconciler.d.ts.map +1 -0
- package/dist/types/core/scheduler-host-config.d.ts +37 -0
- package/dist/types/core/scheduler-host-config.d.ts.map +1 -0
- package/dist/types/core/scheduler.d.ts +29 -0
- package/dist/types/core/scheduler.d.ts.map +1 -0
- package/dist/types/core/src/build/index.d.ts +4 -0
- package/dist/types/core/src/build/noscript-plugin.d.ts +62 -0
- package/dist/types/core/src/build/seo-plugin.d.ts +42 -0
- package/dist/types/core/src/client/graphql.d.ts +63 -0
- package/dist/types/core/src/client/index.d.ts +3 -0
- package/dist/types/core/src/client/protobuf.d.ts +39 -0
- package/dist/types/core/src/client/rest.d.ts +60 -0
- package/dist/types/core/src/components/component.d.ts +38 -0
- package/dist/types/core/src/components/error-boundary.d.ts +22 -0
- package/dist/types/core/src/components/profiler.d.ts +5 -0
- package/dist/types/core/src/components/strict-mode.d.ts +5 -0
- package/dist/types/core/src/components/suspense.d.ts +5 -0
- package/dist/types/core/src/components-barrel.d.ts +100 -0
- package/dist/types/core/src/compute/context.d.ts +19 -0
- package/dist/types/core/src/compute/cpu-backend.d.ts +14 -0
- package/dist/types/core/src/compute/index.d.ts +2 -0
- package/dist/types/core/src/compute/types.d.ts +56 -0
- package/dist/types/core/src/compute/webgl-backend.d.ts +32 -0
- package/dist/types/core/src/compute/webgpu-backend.d.ts +49 -0
- package/dist/types/core/src/context/create-context.d.ts +14 -0
- package/dist/types/core/src/core/children.d.ts +14 -0
- package/dist/types/core/src/core/clone-element.d.ts +9 -0
- package/dist/types/core/src/core/create-element.d.ts +19 -0
- package/dist/types/core/src/core/create-ref.d.ts +6 -0
- package/dist/types/core/src/core/fiber.d.ts +29 -0
- package/dist/types/core/src/core/forward-ref.d.ts +15 -0
- package/dist/types/core/src/core/fragment.d.ts +5 -0
- package/dist/types/core/src/core/is-valid-element.d.ts +6 -0
- package/dist/types/core/src/core/lanes.d.ts +46 -0
- package/dist/types/core/src/core/lazy.d.ts +19 -0
- package/dist/types/core/src/core/memo.d.ts +12 -0
- package/dist/types/core/src/core/reconciler.d.ts +11 -0
- package/dist/types/core/src/core/scheduler-host-config.d.ts +36 -0
- package/dist/types/core/src/core/scheduler.d.ts +28 -0
- package/dist/types/core/src/core/transitions.d.ts +31 -0
- package/dist/types/core/src/devtools/index.d.ts +21 -0
- package/dist/types/core/src/dom/create-portal.d.ts +6 -0
- package/dist/types/core/src/dom/create-root.d.ts +23 -0
- package/dist/types/core/src/dom/flush-sync.d.ts +1 -0
- package/dist/types/core/src/dom/index.d.ts +4 -0
- package/dist/types/core/src/dom/legacy.d.ts +16 -0
- package/dist/types/core/src/dom/synthetic-event.d.ts +90 -0
- package/dist/types/core/src/dom/work-loop.d.ts +34 -0
- package/dist/types/core/src/features/feature-flags.d.ts +38 -0
- package/dist/types/core/src/features/index.d.ts +27 -0
- package/dist/types/core/src/hooks/dispatcher.d.ts +26 -0
- package/dist/types/core/src/hooks/hook-state.d.ts +46 -0
- package/dist/types/core/src/hooks/index.d.ts +47 -0
- package/dist/types/core/src/hooks/install-dispatcher.d.ts +2 -0
- package/dist/types/core/src/hooks/use-head.d.ts +54 -0
- package/dist/types/core/src/index.d.ts +23 -0
- package/dist/types/core/src/jsx-dev-runtime.d.ts +1 -0
- package/dist/types/core/src/jsx-runtime.d.ts +7 -0
- package/dist/types/core/src/router/index.d.ts +12 -0
- package/dist/types/core/src/router/link-component.d.ts +16 -0
- package/dist/types/core/src/router/match-path.d.ts +28 -0
- package/dist/types/core/src/router/route-component.d.ts +12 -0
- package/dist/types/core/src/router/router-component.d.ts +5 -0
- package/dist/types/core/src/router/router-context.d.ts +13 -0
- package/dist/types/core/src/router/router-store.d.ts +22 -0
- package/dist/types/core/src/router/use-navigate.d.ts +4 -0
- package/dist/types/core/src/router/use-params.d.ts +2 -0
- package/dist/types/core/src/router/use-router.d.ts +3 -0
- package/dist/types/core/src/server/index.d.ts +3 -0
- package/dist/types/core/src/server/render-to-pipeable-stream.d.ts +31 -0
- package/dist/types/core/src/server/render-to-readable-stream.d.ts +19 -0
- package/dist/types/core/src/server/render-to-string.d.ts +25 -0
- package/dist/types/core/src/shared/act.d.ts +1 -0
- package/dist/types/core/src/shared/aria-warnings.d.ts +1 -0
- package/dist/types/core/src/shared/async-compute.d.ts +63 -0
- package/dist/types/core/src/shared/component-registry.d.ts +53 -0
- package/dist/types/core/src/shared/render-guard.d.ts +47 -0
- package/dist/types/core/src/shared/secure-fetch.d.ts +21 -0
- package/dist/types/core/src/shared/types.d.ts +127 -0
- package/dist/types/core/src/shared/warnings.d.ts +19 -0
- package/dist/types/core/src/telemetry/index.d.ts +2 -0
- package/dist/types/core/src/telemetry/metrics.d.ts +67 -0
- package/dist/types/core/src/telemetry/tracing.d.ts +95 -0
- package/dist/types/core/transitions.d.ts +32 -0
- package/dist/types/core/transitions.d.ts.map +1 -0
- package/dist/types/devtools/index.d.ts +22 -0
- package/dist/types/devtools/index.d.ts.map +1 -0
- package/dist/types/dom/create-portal.d.ts +7 -0
- package/dist/types/dom/create-portal.d.ts.map +1 -0
- package/dist/types/dom/create-root.d.ts +24 -0
- package/dist/types/dom/create-root.d.ts.map +1 -0
- package/dist/types/dom/flush-sync.d.ts +2 -0
- package/dist/types/dom/flush-sync.d.ts.map +1 -0
- package/dist/types/dom/index.d.ts +5 -0
- package/dist/types/dom/index.d.ts.map +1 -0
- package/dist/types/dom/legacy.d.ts +17 -0
- package/dist/types/dom/legacy.d.ts.map +1 -0
- package/dist/types/dom/synthetic-event.d.ts +91 -0
- package/dist/types/dom/synthetic-event.d.ts.map +1 -0
- package/dist/types/dom/work-loop.d.ts +35 -0
- package/dist/types/dom/work-loop.d.ts.map +1 -0
- package/dist/types/features/feature-flags.d.ts +39 -0
- package/dist/types/features/feature-flags.d.ts.map +1 -0
- package/dist/types/features/index.d.ts +28 -0
- package/dist/types/features/index.d.ts.map +1 -0
- package/dist/types/hooks/dispatcher.d.ts +27 -0
- package/dist/types/hooks/dispatcher.d.ts.map +1 -0
- package/dist/types/hooks/hook-state.d.ts +47 -0
- package/dist/types/hooks/hook-state.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +48 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/install-dispatcher.d.ts +3 -0
- package/dist/types/hooks/install-dispatcher.d.ts.map +1 -0
- package/dist/types/hooks/use-head.d.ts +55 -0
- package/dist/types/hooks/use-head.d.ts.map +1 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/jsx-dev-runtime.d.ts +2 -0
- package/dist/types/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/types/jsx-runtime.d.ts +8 -0
- package/dist/types/jsx-runtime.d.ts.map +1 -0
- package/dist/types/router/index.d.ts +13 -0
- package/dist/types/router/index.d.ts.map +1 -0
- package/dist/types/router/link-component.d.ts +17 -0
- package/dist/types/router/link-component.d.ts.map +1 -0
- package/dist/types/router/match-path.d.ts +29 -0
- package/dist/types/router/match-path.d.ts.map +1 -0
- package/dist/types/router/route-component.d.ts +13 -0
- package/dist/types/router/route-component.d.ts.map +1 -0
- package/dist/types/router/router-component.d.ts +6 -0
- package/dist/types/router/router-component.d.ts.map +1 -0
- package/dist/types/router/router-context.d.ts +14 -0
- package/dist/types/router/router-context.d.ts.map +1 -0
- package/dist/types/router/router-store.d.ts +23 -0
- package/dist/types/router/router-store.d.ts.map +1 -0
- package/dist/types/router/use-navigate.d.ts +5 -0
- package/dist/types/router/use-navigate.d.ts.map +1 -0
- package/dist/types/router/use-params.d.ts +3 -0
- package/dist/types/router/use-params.d.ts.map +1 -0
- package/dist/types/router/use-router.d.ts +4 -0
- package/dist/types/router/use-router.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +4 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/server/render-to-pipeable-stream.d.ts +32 -0
- package/dist/types/server/render-to-pipeable-stream.d.ts.map +1 -0
- package/dist/types/server/render-to-readable-stream.d.ts +20 -0
- package/dist/types/server/render-to-readable-stream.d.ts.map +1 -0
- package/dist/types/server/render-to-string.d.ts +26 -0
- package/dist/types/server/render-to-string.d.ts.map +1 -0
- package/dist/types/shared/act.d.ts +2 -0
- package/dist/types/shared/act.d.ts.map +1 -0
- package/dist/types/shared/aria-warnings.d.ts +2 -0
- package/dist/types/shared/aria-warnings.d.ts.map +1 -0
- package/dist/types/shared/async-compute.d.ts +64 -0
- package/dist/types/shared/async-compute.d.ts.map +1 -0
- package/dist/types/shared/component-registry.d.ts +54 -0
- package/dist/types/shared/component-registry.d.ts.map +1 -0
- package/dist/types/shared/render-guard.d.ts +48 -0
- package/dist/types/shared/render-guard.d.ts.map +1 -0
- package/dist/types/shared/secure-fetch.d.ts +22 -0
- package/dist/types/shared/secure-fetch.d.ts.map +1 -0
- package/dist/types/shared/types.d.ts +128 -0
- package/dist/types/shared/types.d.ts.map +1 -0
- package/dist/types/shared/warnings.d.ts +20 -0
- package/dist/types/shared/warnings.d.ts.map +1 -0
- package/dist/types/telemetry/index.d.ts +3 -0
- package/dist/types/telemetry/index.d.ts.map +1 -0
- package/dist/types/telemetry/metrics.d.ts +68 -0
- package/dist/types/telemetry/metrics.d.ts.map +1 -0
- package/dist/types/telemetry/tracing.d.ts +96 -0
- package/dist/types/telemetry/tracing.d.ts.map +1 -0
- package/package.json +8 -17
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export interface HeadHttpEquiv {
|
|
2
|
+
/** Content-Security-Policy */
|
|
3
|
+
csp?: string;
|
|
4
|
+
/** Referrer-Policy */
|
|
5
|
+
referrer?: string;
|
|
6
|
+
/** X-Content-Type-Options */
|
|
7
|
+
contentType?: string;
|
|
8
|
+
/** X-Frame-Options (via Content-Security-Policy frame-ancestors) */
|
|
9
|
+
frameOptions?: string;
|
|
10
|
+
/** Cache-Control */
|
|
11
|
+
cacheControl?: string;
|
|
12
|
+
/** Arbitrary http-equiv tags */
|
|
13
|
+
[key: string]: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export interface HeadMeta {
|
|
16
|
+
/** Document title */
|
|
17
|
+
title?: string;
|
|
18
|
+
/** Meta description */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** Meta keywords (comma-separated) */
|
|
21
|
+
keywords?: string;
|
|
22
|
+
/** Meta author */
|
|
23
|
+
author?: string;
|
|
24
|
+
/** Canonical URL */
|
|
25
|
+
canonical?: string;
|
|
26
|
+
/** Open Graph tags */
|
|
27
|
+
og?: Record<string, string>;
|
|
28
|
+
/** Twitter card tags */
|
|
29
|
+
twitter?: Record<string, string>;
|
|
30
|
+
/** HTTP-equiv meta tags (security headers, caching, etc.) */
|
|
31
|
+
httpEquiv?: HeadHttpEquiv;
|
|
32
|
+
/** Arbitrary meta tags: [{ name, content }] or [{ property, content }] */
|
|
33
|
+
meta?: Array<{
|
|
34
|
+
name?: string;
|
|
35
|
+
property?: string;
|
|
36
|
+
content: string;
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Sets document head meta tags. Tags are applied when the component
|
|
41
|
+
* mounts and removed when it unmounts, preventing stale meta from
|
|
42
|
+
* persisting across route changes.
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* useHead({
|
|
46
|
+
* title: 'My Page',
|
|
47
|
+
* description: 'Page description for SEO',
|
|
48
|
+
* keywords: 'specifyjs, framework, spa',
|
|
49
|
+
* author: 'Your Name',
|
|
50
|
+
* og: { title: 'My Page', image: '/og-image.png' },
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare function useHead(head: HeadMeta): void;
|
|
55
|
+
//# sourceMappingURL=use-head.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-head.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-head.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,aAAa;IAC5B,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,WAAW,QAAQ;IACvB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,0EAA0E;IAC1E,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAgG5C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { createElement, createElement as h, createFactory } from './core/create-element';
|
|
2
|
+
export { Fragment } from './core/fragment';
|
|
3
|
+
export { createContext } from './context/create-context';
|
|
4
|
+
export { createRef } from './core/create-ref';
|
|
5
|
+
export { forwardRef } from './core/forward-ref';
|
|
6
|
+
export { memo } from './core/memo';
|
|
7
|
+
export { lazy } from './core/lazy';
|
|
8
|
+
export { isValidElement } from './core/is-valid-element';
|
|
9
|
+
export { cloneElement } from './core/clone-element';
|
|
10
|
+
export { Children } from './core/children';
|
|
11
|
+
export { Component, PureComponent } from './components/component';
|
|
12
|
+
export { ErrorBoundary } from './components/error-boundary';
|
|
13
|
+
export { useState, useEffect, useContext, useReducer, useCallback, useMemo, useRef, useImperativeHandle, useLayoutEffect, useDebugValue, useId, useDeferredValue, useTransition, useSyncExternalStore, useInsertionEffect, useHead, } from './hooks/index';
|
|
14
|
+
export { Suspense } from './components/suspense';
|
|
15
|
+
export { StrictMode } from './components/strict-mode';
|
|
16
|
+
export { Profiler } from './components/profiler';
|
|
17
|
+
export { Router, Route, Link, useRouter, useParams, useNavigate, matchPath } from './router/index';
|
|
18
|
+
export { startTransition } from './core/transitions';
|
|
19
|
+
export { act } from './shared/act';
|
|
20
|
+
export { secureFetch, assertSecureUrl } from './shared/secure-fetch';
|
|
21
|
+
export { resolveComponentId, getComponentTypeTable, setComponentIdsEnabled, } from './shared/component-registry';
|
|
22
|
+
export { FeatureFlagProvider, FeatureGate, useFeatureFlags } from './features/index';
|
|
23
|
+
export type { SpecElement, SpecNode, SpecChild, Props, Key, Ref, RefObject, RefCallback, FunctionComponent, ClassComponentConstructor, ClassComponentInstance, SpecContext, ErrorInfo, Fiber, } from './shared/types';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,CAAC,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,OAAO,EACP,MAAM,EACN,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,KAAK,EACL,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,GACR,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGnG,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGrF,YAAY,EACV,WAAW,EACX,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,EACH,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,yBAAyB,EACzB,sBAAsB,EACtB,WAAW,EACX,SAAS,EACT,KAAK,GACN,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx-dev-runtime.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Fragment } from './core/fragment';
|
|
2
|
+
import type { Props, Key, ComponentType, SpecElement } from './shared/types';
|
|
3
|
+
export { Fragment };
|
|
4
|
+
export declare function jsx<P extends Props>(type: ComponentType<P>, config: P & {
|
|
5
|
+
key?: Key;
|
|
6
|
+
}, maybeKey?: Key): SpecElement<P>;
|
|
7
|
+
export { jsx as jsxs };
|
|
8
|
+
//# sourceMappingURL=jsx-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../../src/jsx-runtime.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7E,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,wBAAgB,GAAG,CAAC,CAAC,SAAS,KAAK,EACjC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EACtB,MAAM,EAAE,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,EACzB,QAAQ,CAAC,EAAE,GAAG,GACb,WAAW,CAAC,CAAC,CAAC,CAKhB;AAED,OAAO,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { Router } from './router-component';
|
|
2
|
+
export { Route } from './route-component';
|
|
3
|
+
export { Link } from './link-component';
|
|
4
|
+
export { useRouter } from './use-router';
|
|
5
|
+
export { useParams } from './use-params';
|
|
6
|
+
export { useNavigate } from './use-navigate';
|
|
7
|
+
export { matchPath } from './match-path';
|
|
8
|
+
export type { MatchResult, MatchOptions } from './match-path';
|
|
9
|
+
export type { RouterContextValue } from './router-context';
|
|
10
|
+
export type { RouterProps } from './router-component';
|
|
11
|
+
export type { RouteProps } from './route-component';
|
|
12
|
+
export type { LinkProps } from './link-component';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/router/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SpecNode } from '../shared/types';
|
|
2
|
+
export interface LinkProps {
|
|
3
|
+
/** Target path (e.g., '/about') */
|
|
4
|
+
to: string;
|
|
5
|
+
/** CSS class name */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Additional class when the link's path matches the current route */
|
|
8
|
+
activeClassName?: string;
|
|
9
|
+
/** If true, activeClassName requires exact path match. Default: false. */
|
|
10
|
+
exact?: boolean;
|
|
11
|
+
/** Children (link text/content) */
|
|
12
|
+
children?: SpecNode;
|
|
13
|
+
/** Additional props passed to the anchor element */
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export declare function Link(props: LinkProps): SpecNode;
|
|
17
|
+
//# sourceMappingURL=link-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-component.d.ts","sourceRoot":"","sources":["../../../src/router/link-component.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,WAAW,SAAS;IACxB,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,oDAAoD;IACpD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,QAAQ,CA2B/C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Path matching utility for hash-based routing.
|
|
3
|
+
*
|
|
4
|
+
* Supports:
|
|
5
|
+
* - Literal segments: `/about` matches `/about`
|
|
6
|
+
* - Named parameters: `/users/:id` matches `/users/123` → { id: '123' }
|
|
7
|
+
* - Wildcards: `/files/*` matches `/files/a/b/c` → { '*': 'a/b/c' }
|
|
8
|
+
* - Exact vs. partial matching for nested routes
|
|
9
|
+
*/
|
|
10
|
+
export interface MatchResult {
|
|
11
|
+
/** Extracted route parameters */
|
|
12
|
+
params: Record<string, string>;
|
|
13
|
+
/** Whether the entire pathname was consumed */
|
|
14
|
+
isExact: boolean;
|
|
15
|
+
/** The pattern that was matched */
|
|
16
|
+
path: string;
|
|
17
|
+
/** The matched portion of the pathname */
|
|
18
|
+
url: string;
|
|
19
|
+
}
|
|
20
|
+
export interface MatchOptions {
|
|
21
|
+
/** If true, the pattern must match the entire pathname. Default: false. */
|
|
22
|
+
exact?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Match a route pattern against a pathname.
|
|
26
|
+
* Returns a MatchResult if the pattern matches, or null if it doesn't.
|
|
27
|
+
*/
|
|
28
|
+
export declare function matchPath(pattern: string, pathname: string, options?: MatchOptions): MatchResult | null;
|
|
29
|
+
//# sourceMappingURL=match-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-path.d.ts","sourceRoot":"","sources":["../../../src/router/match-path.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,2EAA2E;IAC3E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAWD;;;GAGG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,YAAY,GACrB,WAAW,GAAG,IAAI,CAyFpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SpecNode, FunctionComponent } from '../shared/types';
|
|
2
|
+
export interface RouteProps {
|
|
3
|
+
/** Path pattern to match (e.g., '/users/:id') */
|
|
4
|
+
path: string;
|
|
5
|
+
/** Component to render when matched. Receives route params as props. */
|
|
6
|
+
component?: FunctionComponent;
|
|
7
|
+
/** If true, path must match the entire pathname. Default: false. */
|
|
8
|
+
exact?: boolean;
|
|
9
|
+
/** Children to render when matched (alternative to component). */
|
|
10
|
+
children?: SpecNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function Route(props: RouteProps): SpecNode;
|
|
13
|
+
//# sourceMappingURL=route-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-component.d.ts","sourceRoot":"","sources":["../../../src/router/route-component.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAInE,MAAM,WAAW,UAAU;IACzB,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,oEAAoE;IACpE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,QAAQ,CAmCjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-component.d.ts","sourceRoot":"","sources":["../../../src/router/router-component.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,QAAQ,CA6BnD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface RouterContextValue {
|
|
2
|
+
/** Current hash pathname */
|
|
3
|
+
pathname: string;
|
|
4
|
+
/** Matched route parameters */
|
|
5
|
+
params: Record<string, string>;
|
|
6
|
+
/** Navigate to a new path */
|
|
7
|
+
navigate: (to: string, options?: {
|
|
8
|
+
replace?: boolean;
|
|
9
|
+
}) => void;
|
|
10
|
+
/** Base path for nested routing (parent route's matched URL) */
|
|
11
|
+
basePath: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const RouterContext: import("..").SpecContext<RouterContextValue>;
|
|
14
|
+
//# sourceMappingURL=router-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-context.d.ts","sourceRoot":"","sources":["../../../src/router/router-context.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,6BAA6B;IAC7B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;IAChE,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,8CAQxB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External store for hash-based routing state.
|
|
3
|
+
* Compatible with useSyncExternalStore for tear-free reads.
|
|
4
|
+
*/
|
|
5
|
+
export interface RouterSnapshot {
|
|
6
|
+
/** Hash path without '#', e.g., '/users/123' */
|
|
7
|
+
pathname: string;
|
|
8
|
+
/** Full hash string, e.g., '#/users/123' */
|
|
9
|
+
hash: string;
|
|
10
|
+
}
|
|
11
|
+
/** Force-refresh the snapshot from the current hash. For testing. */
|
|
12
|
+
export declare function __resetSnapshot(): void;
|
|
13
|
+
/** Subscribe to hash changes. Returns unsubscribe function. */
|
|
14
|
+
export declare function subscribe(callback: () => void): () => void;
|
|
15
|
+
/** Get the current router snapshot. */
|
|
16
|
+
export declare function getSnapshot(): RouterSnapshot;
|
|
17
|
+
/** Server-side snapshot (always root). */
|
|
18
|
+
export declare function getServerSnapshot(): RouterSnapshot;
|
|
19
|
+
/** Navigate to a new hash path. */
|
|
20
|
+
export declare function navigate(to: string, options?: {
|
|
21
|
+
replace?: boolean;
|
|
22
|
+
}): void;
|
|
23
|
+
//# sourceMappingURL=router-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-store.d.ts","sourceRoot":"","sources":["../../../src/router/router-store.ts"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd;AAiBD,qEAAqE;AACrE,wBAAgB,eAAe,IAAI,IAAI,CAMtC;AAmBD,+DAA+D;AAC/D,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAK1D;AAED,uCAAuC;AACvC,wBAAgB,WAAW,IAAI,cAAc,CAE5C;AAED,0CAA0C;AAC1C,wBAAgB,iBAAiB,IAAI,cAAc,CAElD;AAED,mCAAmC;AACnC,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAc1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-navigate.d.ts","sourceRoot":"","sources":["../../../src/router/use-navigate.ts"],"names":[],"mappings":"AAMA,6DAA6D;AAC7D,wBAAgB,WAAW,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KAAK,IAAI,CAEnF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-params.d.ts","sourceRoot":"","sources":["../../../src/router/use-params.ts"],"names":[],"mappings":"AAMA,4CAA4C;AAC5C,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAExF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-router.d.ts","sourceRoot":"","sources":["../../../src/router/use-router.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE1E,6CAA6C;AAC7C,wBAAgB,SAAS,IAAI,kBAAkB,CAE9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SpecNode } from '../shared/types';
|
|
2
|
+
import type { Writable } from 'stream';
|
|
3
|
+
export interface PipeableStream {
|
|
4
|
+
pipe<T extends Writable>(destination: T): T;
|
|
5
|
+
abort(reason?: unknown): void;
|
|
6
|
+
}
|
|
7
|
+
export interface RenderToPipeableStreamOptions {
|
|
8
|
+
identifierPrefix?: string;
|
|
9
|
+
onShellReady?: () => void;
|
|
10
|
+
onShellError?: (error: unknown) => void;
|
|
11
|
+
onAllReady?: () => void;
|
|
12
|
+
onError?: (error: unknown) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of bytes to write per chunk.
|
|
15
|
+
* Smaller values allow the event loop to process other work between chunks.
|
|
16
|
+
* Default: 8192 (8KB)
|
|
17
|
+
*/
|
|
18
|
+
progressiveChunkSize?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Renders a SpecifyJS component tree to a Node.js pipeable stream.
|
|
22
|
+
*
|
|
23
|
+
* **Build-time pre-rendering only.** Intended for build scripts that
|
|
24
|
+
* generate static HTML files, not for runtime server request handlers.
|
|
25
|
+
* Renders the full HTML string, then writes it in chunks to the writable
|
|
26
|
+
* stream for efficient file I/O during static site generation.
|
|
27
|
+
*
|
|
28
|
+
* For dynamic content, use SpecifyJS's client-side rendering with data
|
|
29
|
+
* fetched via HTTPS from API endpoints.
|
|
30
|
+
*/
|
|
31
|
+
export declare function renderToPipeableStream(element: SpecNode, options?: RenderToPipeableStreamOptions): PipeableStream;
|
|
32
|
+
//# sourceMappingURL=render-to-pipeable-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-to-pipeable-stream.d.ts","sourceRoot":"","sources":["../../../src/server/render-to-pipeable-stream.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGvC,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,CAAC,SAAS,QAAQ,EAAE,WAAW,EAAE,CAAC,GAAG,CAAC,CAAC;IAC5C,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,QAAQ,EACjB,OAAO,CAAC,EAAE,6BAA6B,GACtC,cAAc,CA+DhB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SpecNode } from '../shared/types';
|
|
2
|
+
export interface RenderToReadableStreamOptions {
|
|
3
|
+
identifierPrefix?: string;
|
|
4
|
+
signal?: AbortSignal;
|
|
5
|
+
onError?: (error: unknown) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Maximum bytes per chunk for progressive flushing.
|
|
8
|
+
* Default: 8192 (8KB)
|
|
9
|
+
*/
|
|
10
|
+
progressiveChunkSize?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Renders a SpecifyJS tree to a web ReadableStream.
|
|
14
|
+
* **Build-time pre-rendering only.** Intended for build scripts that
|
|
15
|
+
* generate static HTML files, not for runtime server request handlers.
|
|
16
|
+
* Renders the full HTML, then enqueues it in chunks for efficient
|
|
17
|
+
* file I/O during static site generation.
|
|
18
|
+
*/
|
|
19
|
+
export declare function renderToReadableStream(element: SpecNode, options?: RenderToReadableStreamOptions): Promise<ReadableStream<Uint8Array>>;
|
|
20
|
+
//# sourceMappingURL=render-to-readable-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-to-readable-stream.d.ts","sourceRoot":"","sources":["../../../src/server/render-to-readable-stream.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,QAAQ,EACjB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CA+BrC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type SpecNode } from '../shared/types';
|
|
2
|
+
/**
|
|
3
|
+
* Renders a SpecifyJS component tree to an HTML string.
|
|
4
|
+
*
|
|
5
|
+
* **Build-time pre-rendering only.** This function is designed for use
|
|
6
|
+
* during the build process (e.g., static site generation, build scripts)
|
|
7
|
+
* to produce HTML files that are served statically. It must NOT be called
|
|
8
|
+
* in server request handlers, middleware, or any runtime code path that
|
|
9
|
+
* responds to HTTP requests.
|
|
10
|
+
*
|
|
11
|
+
* For dynamic content, use SpecifyJS's client-side rendering with data
|
|
12
|
+
* fetched via HTTPS from API endpoints.
|
|
13
|
+
*
|
|
14
|
+
* @throws {Error} If called in a detected server request context
|
|
15
|
+
*/
|
|
16
|
+
export declare function renderToString(element: SpecNode): string;
|
|
17
|
+
/**
|
|
18
|
+
* Renders a SpecifyJS component tree to static HTML (no hydration markers).
|
|
19
|
+
*
|
|
20
|
+
* **Build-time pre-rendering only.** Use in build scripts to generate
|
|
21
|
+
* static HTML pages. Do NOT use in server request handlers.
|
|
22
|
+
*
|
|
23
|
+
* @throws {Error} If called in a detected server request context
|
|
24
|
+
*/
|
|
25
|
+
export declare function renderToStaticMarkup(element: SpecNode): string;
|
|
26
|
+
//# sourceMappingURL=render-to-string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-to-string.d.ts","sourceRoot":"","sources":["../../../src/server/render-to-string.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,QAAQ,EAWd,MAAM,iBAAiB,CAAC;AAiDzB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,CAGxD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,CAG9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"act.d.ts","sourceRoot":"","sources":["../../../src/shared/act.ts"],"names":[],"mappings":"AAUA,wBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAW9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria-warnings.d.ts","sourceRoot":"","sources":["../../../src/shared/aria-warnings.ts"],"names":[],"mappings":"AAWA,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CA0DrF"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Async function evaluation engine for graph components.
|
|
3
|
+
*
|
|
4
|
+
* Computes f(x) for a range of x values in batches, yielding to the
|
|
5
|
+
* browser between batches so the UI remains responsive. When all values
|
|
6
|
+
* are computed, calls the onComplete callback with the results.
|
|
7
|
+
*
|
|
8
|
+
* Two modes:
|
|
9
|
+
* - **async** (default): computes in batches via requestIdleCallback/setTimeout
|
|
10
|
+
* - **sync**: computes all values immediately in one pass
|
|
11
|
+
*/
|
|
12
|
+
/** A single computed point. */
|
|
13
|
+
export interface ComputedPoint {
|
|
14
|
+
input: number;
|
|
15
|
+
output: number;
|
|
16
|
+
}
|
|
17
|
+
/** Range specification: start, end, step. */
|
|
18
|
+
export interface RangeSpec {
|
|
19
|
+
start: number;
|
|
20
|
+
end: number;
|
|
21
|
+
step: number;
|
|
22
|
+
}
|
|
23
|
+
/** Options for async computation. */
|
|
24
|
+
export interface AsyncComputeOptions {
|
|
25
|
+
/** The function to evaluate */
|
|
26
|
+
fn: (x: number) => number;
|
|
27
|
+
/** Range of input values */
|
|
28
|
+
range: RangeSpec;
|
|
29
|
+
/** If true, compute synchronously (blocking). Default: false (async). */
|
|
30
|
+
sync?: boolean;
|
|
31
|
+
/** Batch size for async mode — how many evaluations per idle tick (default: 200) */
|
|
32
|
+
batchSize?: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Generate the full set of input values for a range.
|
|
36
|
+
*/
|
|
37
|
+
export declare function generateInputs(range: RangeSpec): number[];
|
|
38
|
+
/**
|
|
39
|
+
* Compute all values synchronously.
|
|
40
|
+
*/
|
|
41
|
+
export declare function computeSync(fn: (x: number) => number, inputs: number[]): ComputedPoint[];
|
|
42
|
+
/**
|
|
43
|
+
* Compute values asynchronously in batches.
|
|
44
|
+
* Returns a cancel function.
|
|
45
|
+
*
|
|
46
|
+
* @param fn - The function to evaluate
|
|
47
|
+
* @param inputs - Array of input values
|
|
48
|
+
* @param batchSize - How many evaluations per tick
|
|
49
|
+
* @param onProgress - Called after each batch with results so far
|
|
50
|
+
* @param onComplete - Called when all values are computed
|
|
51
|
+
* @returns A cancel function to abort computation
|
|
52
|
+
*/
|
|
53
|
+
export declare function computeAsync(fn: (x: number) => number, inputs: number[], batchSize: number, onProgress: (results: ComputedPoint[], done: boolean) => void): () => void;
|
|
54
|
+
/**
|
|
55
|
+
* High-level: evaluate a function over a range, async by default.
|
|
56
|
+
*
|
|
57
|
+
* @returns For sync mode: the computed points immediately.
|
|
58
|
+
* For async mode: null initially (use the callback).
|
|
59
|
+
*/
|
|
60
|
+
export declare function evaluateFunction(options: AsyncComputeOptions, onResult: (points: ComputedPoint[]) => void): {
|
|
61
|
+
points: ComputedPoint[] | null;
|
|
62
|
+
cancel: () => void;
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=async-compute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-compute.d.ts","sourceRoot":"","sources":["../../../src/shared/async-compute.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAEH,+BAA+B;AAC/B,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qCAAqC;AACrC,MAAM,WAAW,mBAAmB;IAClC,+BAA+B;IAC/B,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1B,4BAA4B;IAC5B,KAAK,EAAE,SAAS,CAAC;IACjB,yEAAyE;IACzE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,EAAE,CAazD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAUxF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EACzB,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,GAC5D,MAAM,IAAI,CAiCZ;AAcD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,IAAI,GAC1C;IAAE,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAiBxD"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component Registry — assigns compact, deterministic IDs to component instances.
|
|
3
|
+
*
|
|
4
|
+
* Each component TYPE gets a numeric index (0, 1, 2, ...) on first registration.
|
|
5
|
+
* Each component INSTANCE gets a sequential instance number within its type.
|
|
6
|
+
*
|
|
7
|
+
* DOM elements receive: id="s-{typeIndex}-{instanceId}"
|
|
8
|
+
* Example: s-3-12 = type index 3, instance 12
|
|
9
|
+
*
|
|
10
|
+
* The lookup table at window.__SPECIFYJS_COMPONENTS__ maps indices to names
|
|
11
|
+
* for debugging, testing, and programmatic interaction.
|
|
12
|
+
*/
|
|
13
|
+
interface ComponentTypeEntry {
|
|
14
|
+
name: string;
|
|
15
|
+
index: number;
|
|
16
|
+
instanceCount: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Enable or disable component ID assignment.
|
|
20
|
+
* When disabled, registerComponentInstance returns '' and no IDs are assigned.
|
|
21
|
+
*/
|
|
22
|
+
export declare function setComponentIdsEnabled(value: boolean): void;
|
|
23
|
+
/**
|
|
24
|
+
* Register a component type and get a unique instance ID.
|
|
25
|
+
* Returns the compact ID string: "s-{typeIndex}-{instanceId}"
|
|
26
|
+
*/
|
|
27
|
+
export declare function registerComponentInstance(componentName: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Resolve a compact ID back to component metadata.
|
|
30
|
+
* Returns null if the ID is not recognized.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveComponentId(id: string): {
|
|
33
|
+
typeName: string;
|
|
34
|
+
typeIndex: number;
|
|
35
|
+
instanceId: number;
|
|
36
|
+
} | null;
|
|
37
|
+
/**
|
|
38
|
+
* Get the full component type table (for debugging/DevTools).
|
|
39
|
+
*/
|
|
40
|
+
export declare function getComponentTypeTable(): ReadonlyMap<string, Readonly<ComponentTypeEntry>>;
|
|
41
|
+
/**
|
|
42
|
+
* Derive a short component name from a fiber's type.
|
|
43
|
+
* - Function components: function.name
|
|
44
|
+
* - Class components: constructor.name
|
|
45
|
+
* - Host components: tag name
|
|
46
|
+
* - Fragments/portals: type description
|
|
47
|
+
*/
|
|
48
|
+
export declare function getComponentName(type: unknown): string;
|
|
49
|
+
/**
|
|
50
|
+
* Reset the registry (for testing).
|
|
51
|
+
*/
|
|
52
|
+
export declare function resetComponentRegistry(): void;
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=component-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-registry.d.ts","sourceRoot":"","sources":["../../../src/shared/component-registry.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AAEH,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB;AAMD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAE3D;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAUvE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,EAAE,EAAE,MAAM,GACT;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAWpE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAEzF;AAeD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAKtD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Call at the start of each work cycle (performWork).
|
|
3
|
+
* Resets the cycle ID so per-fiber counts start fresh.
|
|
4
|
+
*/
|
|
5
|
+
export declare function beginRenderCycle(): void;
|
|
6
|
+
/**
|
|
7
|
+
* Call before each component render in reconcileFunctionComponent.
|
|
8
|
+
* Tracks render count per fiber per cycle. Throws if limit exceeded.
|
|
9
|
+
*
|
|
10
|
+
* @param fiber - The fiber being rendered (used as WeakMap key)
|
|
11
|
+
* @param componentName - Display name for diagnostics
|
|
12
|
+
*/
|
|
13
|
+
export declare function trackRender(fiber: object, componentName: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Call at the start of each commit phase (commitRoot).
|
|
16
|
+
*/
|
|
17
|
+
export declare function beginCommitCycle(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Call before each effect execution in runEffects.
|
|
20
|
+
* Warns if effects fire too many times per commit cycle.
|
|
21
|
+
*
|
|
22
|
+
* @param fiber - The fiber owning the effect
|
|
23
|
+
* @param componentName - Display name for diagnostics
|
|
24
|
+
*/
|
|
25
|
+
export declare function trackEffect(fiber: object, componentName: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Call when an effect's dependency comparison runs (in useEffect).
|
|
28
|
+
* Detects deps that change on every render (unstable references).
|
|
29
|
+
*
|
|
30
|
+
* @param fiber - The fiber owning the effect
|
|
31
|
+
* @param hookIndex - Which hook slot this effect occupies
|
|
32
|
+
* @param deps - The current dependency array
|
|
33
|
+
* @param depsChanged - Whether deps differed from previous render
|
|
34
|
+
* @param componentName - Display name for diagnostics
|
|
35
|
+
*/
|
|
36
|
+
export declare function trackEffectDeps(fiber: object, hookIndex: number, deps: unknown[] | undefined, depsChanged: boolean, componentName: string): void;
|
|
37
|
+
/** Call once per browser frame / microtask batch to reset frame ID. */
|
|
38
|
+
export declare function beginFrame(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Call when setState/dispatch is invoked.
|
|
41
|
+
* Warns if a single fiber calls setState too many times in one frame.
|
|
42
|
+
*
|
|
43
|
+
* @param fiber - The fiber calling setState
|
|
44
|
+
* @param componentName - Display name for diagnostics
|
|
45
|
+
*/
|
|
46
|
+
export declare function trackStateUpdate(fiber: object, componentName: string): void;
|
|
47
|
+
export declare function resetRenderGuard(): void;
|
|
48
|
+
//# sourceMappingURL=render-guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-guard.d.ts","sourceRoot":"","sources":["../../../src/shared/render-guard.ts"],"names":[],"mappings":"AA4DA;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAmBtE;AAcD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAgBtE;AAiBD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,OAAO,EAAE,GAAG,SAAS,EAC3B,WAAW,EAAE,OAAO,EACpB,aAAa,EAAE,MAAM,GACpB,IAAI,CA8BN;AAcD,uEAAuE;AACvE,wBAAgB,UAAU,IAAI,IAAI,CAEjC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAe3E;AAMD,wBAAgB,gBAAgB,IAAI,IAAI,CAIvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secure fetch wrapper — enforces HTTPS-only policy.
|
|
3
|
+
*
|
|
4
|
+
* SpecifyJS prohibits HTTP connections. All network requests must use
|
|
5
|
+
* HTTPS or be relative URLs. This prevents data from being transmitted
|
|
6
|
+
* in plaintext, protecting against eavesdropping and MITM attacks.
|
|
7
|
+
*
|
|
8
|
+
* Exceptions:
|
|
9
|
+
* - Relative URLs (./path, /path) — resolved by the browser
|
|
10
|
+
* - localhost and 127.0.0.1 — development only
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Validate that a URL uses HTTPS or is a relative/localhost URL.
|
|
14
|
+
* Throws if the URL uses plaintext HTTP.
|
|
15
|
+
*/
|
|
16
|
+
export declare function assertSecureUrl(url: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* Secure fetch — drop-in replacement for window.fetch that enforces HTTPS.
|
|
19
|
+
* Use this instead of fetch() directly to comply with the HTTPS-only policy.
|
|
20
|
+
*/
|
|
21
|
+
export declare function secureFetch(input: string | URL | Request, init?: RequestInit): Promise<Response>;
|
|
22
|
+
//# sourceMappingURL=secure-fetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secure-fetch.d.ts","sourceRoot":"","sources":["../../../src/shared/secure-fetch.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAEH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CA4CjD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAIhG"}
|