@asymmetric-effort/specifyjs 0.2.98 → 0.2.103
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/esm/chunks/chunk-3J4RXW7E.js +3 -0
- package/dist/esm/chunks/chunk-3J4RXW7E.js.map +7 -0
- package/dist/esm/chunks/chunk-3SXNLMCH.js +3 -0
- package/dist/esm/chunks/chunk-3SXNLMCH.js.map +7 -0
- package/dist/esm/chunks/chunk-A7AAS5ZR.js +3 -0
- package/dist/esm/chunks/chunk-A7AAS5ZR.js.map +7 -0
- package/dist/esm/chunks/chunk-E43OK6IZ.js +3 -0
- package/dist/esm/chunks/chunk-E43OK6IZ.js.map +7 -0
- package/dist/esm/chunks/chunk-LWOMFZ4C.js +3 -0
- package/dist/esm/chunks/chunk-LWOMFZ4C.js.map +7 -0
- package/dist/esm/chunks/chunk-MCXU6QF3.js +3 -0
- package/dist/esm/chunks/chunk-MCXU6QF3.js.map +7 -0
- package/dist/esm/chunks/chunk-ODCBJ22O.js +3 -0
- package/dist/esm/chunks/chunk-ODCBJ22O.js.map +7 -0
- package/dist/esm/chunks/chunk-TVDAY42P.js +3 -0
- package/dist/esm/chunks/chunk-TVDAY42P.js.map +7 -0
- package/dist/esm/chunks/chunk-VAF4KNDP.js +3 -0
- package/dist/esm/chunks/chunk-VAF4KNDP.js.map +7 -0
- package/dist/esm/chunks/chunk-ZDPD2MPQ.js +3 -0
- package/dist/esm/chunks/chunk-ZDPD2MPQ.js.map +7 -0
- package/dist/esm/chunks/metrics-56RIK7JQ.js +3 -0
- package/dist/esm/chunks/metrics-56RIK7JQ.js.map +7 -0
- package/dist/esm/client/index.js +3 -0
- package/dist/esm/components-barrel.js +9 -0
- package/dist/esm/dom/index.js +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/jsx-dev-runtime.js +3 -0
- package/dist/esm/jsx-runtime.js +3 -0
- package/dist/esm/server/index.js +3 -0
- package/dist/esm/telemetry/index.js +3 -0
- 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 +3 -2
- 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 +9 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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-force-graph/src/ForceGraph3D.d.ts +123 -0
- package/dist/types/components/viz/3d-force-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,25 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function act(callback: () => void | Promise<void>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function checkAriaCompliance(tag: string, props: Record<string, unknown>): void;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
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>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/** Unique symbol to identify SpecifyJS elements */
|
|
2
|
+
export declare const SPEC_ELEMENT_TYPE: unique symbol;
|
|
3
|
+
export declare const SPEC_FRAGMENT_TYPE: unique symbol;
|
|
4
|
+
export declare const SPEC_PORTAL_TYPE: unique symbol;
|
|
5
|
+
export declare const SPEC_PROVIDER_TYPE: unique symbol;
|
|
6
|
+
export declare const SPEC_CONSUMER_TYPE: unique symbol;
|
|
7
|
+
export declare const SPEC_FORWARD_REF_TYPE: unique symbol;
|
|
8
|
+
export declare const SPEC_MEMO_TYPE: unique symbol;
|
|
9
|
+
export declare const SPEC_LAZY_TYPE: unique symbol;
|
|
10
|
+
export declare const SPEC_SUSPENSE_TYPE: unique symbol;
|
|
11
|
+
export declare const SPEC_STRICT_MODE_TYPE: unique symbol;
|
|
12
|
+
export declare const SPEC_PROFILER_TYPE: unique symbol;
|
|
13
|
+
/** A key used for reconciliation */
|
|
14
|
+
export type Key = string | number | null;
|
|
15
|
+
/** A ref can be a callback, an object, or null */
|
|
16
|
+
export type Ref<T = unknown> = RefCallback<T> | RefObject<T> | null;
|
|
17
|
+
export type RefCallback<T> = (instance: T | null) => void;
|
|
18
|
+
export interface RefObject<T> {
|
|
19
|
+
current: T | null;
|
|
20
|
+
}
|
|
21
|
+
/** Props are an arbitrary key-value map */
|
|
22
|
+
export type Props = Record<string, unknown> & {
|
|
23
|
+
children?: SpecNode;
|
|
24
|
+
key?: Key;
|
|
25
|
+
ref?: Ref;
|
|
26
|
+
};
|
|
27
|
+
/** Valid child types in a SpecifyJS tree */
|
|
28
|
+
export type SpecChild = SpecElement | string | number | boolean | null | undefined;
|
|
29
|
+
export type SpecNode = SpecChild | SpecNode[];
|
|
30
|
+
/** A functional component */
|
|
31
|
+
export type FunctionComponent<P extends Props = Props> = (props: P) => SpecNode;
|
|
32
|
+
/** A class component constructor */
|
|
33
|
+
export interface ClassComponentConstructor<P extends Props = Props, S = unknown> {
|
|
34
|
+
new (props: P): ClassComponentInstance<P, S>;
|
|
35
|
+
getDerivedStateFromProps?(props: P, state: S): Partial<S> | null;
|
|
36
|
+
getDerivedStateFromError?(error: unknown): Partial<S> | null;
|
|
37
|
+
}
|
|
38
|
+
/** Instance of a class component */
|
|
39
|
+
export interface ClassComponentInstance<P extends Props = Props, S = unknown> {
|
|
40
|
+
props: P;
|
|
41
|
+
state: S;
|
|
42
|
+
setState(updater: Partial<S> | ((prevState: S, props: P) => Partial<S> | null)): void;
|
|
43
|
+
forceUpdate(callback?: () => void): void;
|
|
44
|
+
render(): SpecNode;
|
|
45
|
+
componentDidMount?(): void;
|
|
46
|
+
componentDidUpdate?(prevProps: P, prevState: S, snapshot?: unknown): void;
|
|
47
|
+
componentWillUnmount?(): void;
|
|
48
|
+
shouldComponentUpdate?(nextProps: P, nextState: S): boolean;
|
|
49
|
+
getSnapshotBeforeUpdate?(prevProps: P, prevState: S): unknown;
|
|
50
|
+
componentDidCatch?(error: unknown, info: ErrorInfo): void;
|
|
51
|
+
_fiber: unknown;
|
|
52
|
+
_pendingState: Array<Partial<S> | ((prevState: S, props: P) => Partial<S> | null)>;
|
|
53
|
+
_forceUpdate: boolean;
|
|
54
|
+
_enqueueUpdate(callback?: () => void): void;
|
|
55
|
+
}
|
|
56
|
+
export interface ErrorInfo {
|
|
57
|
+
componentStack: string;
|
|
58
|
+
}
|
|
59
|
+
/** A component type can be a function, a class, or a special symbol type */
|
|
60
|
+
export type ComponentType<P extends Props = Props> = FunctionComponent<P> | ClassComponentConstructor<P> | string | symbol;
|
|
61
|
+
/** The core element structure — equivalent to React.Element */
|
|
62
|
+
export interface SpecElement<P extends Props = Props> {
|
|
63
|
+
$$typeof: typeof SPEC_ELEMENT_TYPE;
|
|
64
|
+
type: ComponentType<P>;
|
|
65
|
+
props: P;
|
|
66
|
+
key: Key;
|
|
67
|
+
ref: Ref;
|
|
68
|
+
}
|
|
69
|
+
/** Fiber node types for the reconciler */
|
|
70
|
+
export declare const enum FiberTag {
|
|
71
|
+
FunctionComponent = 0,
|
|
72
|
+
ClassComponent = 1,
|
|
73
|
+
HostRoot = 2,
|
|
74
|
+
HostComponent = 3,
|
|
75
|
+
HostText = 4,
|
|
76
|
+
Fragment = 5,
|
|
77
|
+
ContextProvider = 6,
|
|
78
|
+
ContextConsumer = 7,
|
|
79
|
+
ForwardRef = 8,
|
|
80
|
+
MemoComponent = 9,
|
|
81
|
+
LazyComponent = 10,
|
|
82
|
+
SuspenseComponent = 11,
|
|
83
|
+
Profiler = 12,
|
|
84
|
+
Portal = 13
|
|
85
|
+
}
|
|
86
|
+
/** Effect flags for fiber work */
|
|
87
|
+
export declare const enum EffectTag {
|
|
88
|
+
NoEffect = 0,
|
|
89
|
+
Placement = 1,
|
|
90
|
+
Update = 2,
|
|
91
|
+
Deletion = 4,
|
|
92
|
+
ChildDeletion = 8,
|
|
93
|
+
Snapshot = 16,
|
|
94
|
+
Passive = 32,
|
|
95
|
+
Layout = 64,
|
|
96
|
+
Ref = 128
|
|
97
|
+
}
|
|
98
|
+
/** Fiber node — the internal work unit */
|
|
99
|
+
export interface Fiber<P extends Props = Props> {
|
|
100
|
+
tag: FiberTag;
|
|
101
|
+
type: ComponentType<P> | null;
|
|
102
|
+
key: Key;
|
|
103
|
+
ref: Ref;
|
|
104
|
+
stateNode: unknown;
|
|
105
|
+
pendingProps: P;
|
|
106
|
+
memoizedProps: P | null;
|
|
107
|
+
memoizedState: unknown;
|
|
108
|
+
return: Fiber | null;
|
|
109
|
+
child: Fiber | null;
|
|
110
|
+
sibling: Fiber | null;
|
|
111
|
+
index: number;
|
|
112
|
+
alternate: Fiber | null;
|
|
113
|
+
effectTag: EffectTag;
|
|
114
|
+
updateQueue: unknown;
|
|
115
|
+
dependencies: unknown;
|
|
116
|
+
lanes: number;
|
|
117
|
+
childLanes: number;
|
|
118
|
+
}
|
|
119
|
+
/** Context type */
|
|
120
|
+
export interface SpecContext<T> {
|
|
121
|
+
$$typeof: symbol;
|
|
122
|
+
Provider: ComponentType;
|
|
123
|
+
Consumer: ComponentType;
|
|
124
|
+
_currentValue: T;
|
|
125
|
+
_defaultValue: T;
|
|
126
|
+
displayName?: string;
|
|
127
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Issue a one-time warning (deduplicated by message).
|
|
3
|
+
*/
|
|
4
|
+
export declare function warn(message: string): void;
|
|
5
|
+
/**
|
|
6
|
+
* Issue an error-level warning.
|
|
7
|
+
*/
|
|
8
|
+
export declare function error(message: string): void;
|
|
9
|
+
/**
|
|
10
|
+
* Issue a deprecation warning (one-time, deduplicated).
|
|
11
|
+
* @param oldApi - The deprecated API name
|
|
12
|
+
* @param newApi - The replacement API name
|
|
13
|
+
* @param removeVersion - The version when the deprecated API will be removed
|
|
14
|
+
*/
|
|
15
|
+
export declare function deprecate(oldApi: string, newApi: string, removeVersion: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* Reset warned messages (for testing).
|
|
18
|
+
*/
|
|
19
|
+
export declare function resetWarnings(): void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { type TraceId, type SpanId, type TraceContext, type SpanKind, type SpanStatus, type SpanEvent, type Span, type StartSpanOptions, type TracerConfig, type Tracer, generateTraceId, generateSpanId, parseTraceparent, formatTraceparent, startSpan, endSpan, createTracer, useTracing, } from './tracing';
|
|
2
|
+
export { type DataPoint, type Counter, type Histogram, type Gauge, type Instrument, type InstrumentOptions, type MeterProviderConfig, type MeterProvider, createMeterProvider, formatOtlpMetrics, formatOtlpTraces, exportToEndpoint, } from './metrics';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Span } from './tracing';
|
|
2
|
+
export interface DataPoint {
|
|
3
|
+
value: number;
|
|
4
|
+
attributes: Record<string, string | number | boolean>;
|
|
5
|
+
timestamp: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Counter {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly description: string;
|
|
10
|
+
/** Monotonically increment the counter. */
|
|
11
|
+
add(value: number, attributes?: Record<string, string | number | boolean>): void;
|
|
12
|
+
/** Read-only snapshot of data points. */
|
|
13
|
+
readonly dataPoints: ReadonlyArray<DataPoint>;
|
|
14
|
+
}
|
|
15
|
+
export interface Histogram {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly description: string;
|
|
18
|
+
/** Record a measurement. */
|
|
19
|
+
record(value: number, attributes?: Record<string, string | number | boolean>): void;
|
|
20
|
+
/** Read-only snapshot of data points. */
|
|
21
|
+
readonly dataPoints: ReadonlyArray<DataPoint>;
|
|
22
|
+
}
|
|
23
|
+
export interface Gauge {
|
|
24
|
+
readonly name: string;
|
|
25
|
+
readonly description: string;
|
|
26
|
+
/** Set the current value. */
|
|
27
|
+
set(value: number, attributes?: Record<string, string | number | boolean>): void;
|
|
28
|
+
/** Read-only snapshot of data points. */
|
|
29
|
+
readonly dataPoints: ReadonlyArray<DataPoint>;
|
|
30
|
+
}
|
|
31
|
+
export type Instrument = Counter | Histogram | Gauge;
|
|
32
|
+
export interface InstrumentOptions {
|
|
33
|
+
description?: string;
|
|
34
|
+
unit?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface MeterProviderConfig {
|
|
37
|
+
serviceName: string;
|
|
38
|
+
endpoint?: string;
|
|
39
|
+
headers?: Record<string, string>;
|
|
40
|
+
exportInterval?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface MeterProvider {
|
|
43
|
+
counter(name: string, opts?: InstrumentOptions): Counter;
|
|
44
|
+
histogram(name: string, opts?: InstrumentOptions): Histogram;
|
|
45
|
+
gauge(name: string, opts?: InstrumentOptions): Gauge;
|
|
46
|
+
/** Export all instrument data to the configured endpoint. */
|
|
47
|
+
flush(): Promise<void>;
|
|
48
|
+
/** Read-only access to all registered instruments. */
|
|
49
|
+
readonly instruments: ReadonlyArray<Instrument>;
|
|
50
|
+
readonly config: Readonly<MeterProviderConfig>;
|
|
51
|
+
}
|
|
52
|
+
export declare function createMeterProvider(config: MeterProviderConfig): MeterProvider;
|
|
53
|
+
/**
|
|
54
|
+
* Build an OTLP-compatible JSON payload for metrics.
|
|
55
|
+
*
|
|
56
|
+
* Structure follows the OTLP/HTTP JSON proto mapping:
|
|
57
|
+
* https://opentelemetry.io/docs/specs/otlp/#otlphttp
|
|
58
|
+
*/
|
|
59
|
+
export declare function formatOtlpMetrics(instruments: ReadonlyArray<Instrument>, serviceName?: string): Record<string, unknown>;
|
|
60
|
+
/**
|
|
61
|
+
* Build an OTLP-compatible JSON payload for traces/spans.
|
|
62
|
+
*/
|
|
63
|
+
export declare function formatOtlpTraces(spans: ReadonlyArray<Span>, serviceName?: string, serviceVersion?: string): Record<string, unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* Send a JSON payload to an OTLP-compatible endpoint via `fetch`.
|
|
66
|
+
*/
|
|
67
|
+
export declare function exportToEndpoint(url: string, headers: Record<string, string>, body: Record<string, unknown>): Promise<void>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/** 16-byte (32 hex char) trace identifier. */
|
|
2
|
+
export type TraceId = string;
|
|
3
|
+
/** 8-byte (16 hex char) span identifier. */
|
|
4
|
+
export type SpanId = string;
|
|
5
|
+
/** W3C Trace Context carrier. */
|
|
6
|
+
export interface TraceContext {
|
|
7
|
+
traceId: TraceId;
|
|
8
|
+
spanId: SpanId;
|
|
9
|
+
traceFlags: string;
|
|
10
|
+
parentSpanId?: SpanId;
|
|
11
|
+
}
|
|
12
|
+
/** Generate a 32-hex-char trace ID (16 random bytes). */
|
|
13
|
+
export declare function generateTraceId(): TraceId;
|
|
14
|
+
/** Generate a 16-hex-char span ID (8 random bytes). */
|
|
15
|
+
export declare function generateSpanId(): SpanId;
|
|
16
|
+
/**
|
|
17
|
+
* Parse a W3C `traceparent` header.
|
|
18
|
+
*
|
|
19
|
+
* Format: `{version}-{traceId}-{spanId}-{traceFlags}`
|
|
20
|
+
* Returns `null` when the header is invalid.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseTraceparent(header: string): TraceContext | null;
|
|
23
|
+
/**
|
|
24
|
+
* Format a {@link TraceContext} as a W3C `traceparent` header string.
|
|
25
|
+
*
|
|
26
|
+
* Output: `00-{traceId}-{spanId}-{traceFlags}`
|
|
27
|
+
*/
|
|
28
|
+
export declare function formatTraceparent(ctx: TraceContext): string;
|
|
29
|
+
export type SpanKind = 'internal' | 'server' | 'client' | 'producer' | 'consumer';
|
|
30
|
+
export interface SpanStatus {
|
|
31
|
+
code: 'unset' | 'ok' | 'error';
|
|
32
|
+
message?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface SpanEvent {
|
|
35
|
+
name: string;
|
|
36
|
+
timestamp: number;
|
|
37
|
+
attributes?: Record<string, string | number | boolean>;
|
|
38
|
+
}
|
|
39
|
+
export interface Span {
|
|
40
|
+
traceId: TraceId;
|
|
41
|
+
spanId: SpanId;
|
|
42
|
+
parentSpanId?: SpanId;
|
|
43
|
+
name: string;
|
|
44
|
+
kind: SpanKind;
|
|
45
|
+
startTime: number;
|
|
46
|
+
endTime?: number;
|
|
47
|
+
status: SpanStatus;
|
|
48
|
+
attributes: Record<string, string | number | boolean>;
|
|
49
|
+
events: SpanEvent[];
|
|
50
|
+
}
|
|
51
|
+
export interface StartSpanOptions {
|
|
52
|
+
kind?: SpanKind;
|
|
53
|
+
parentSpanId?: SpanId;
|
|
54
|
+
traceId?: TraceId;
|
|
55
|
+
attributes?: Record<string, string | number | boolean>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Create and start a new span. The span is **not** automatically associated
|
|
59
|
+
* with a tracer — use {@link Tracer.startSpan} for automatic parent tracking.
|
|
60
|
+
*/
|
|
61
|
+
export declare function startSpan(name: string, opts?: StartSpanOptions): Span;
|
|
62
|
+
/** End a span by recording its end time. */
|
|
63
|
+
export declare function endSpan(span: Span): void;
|
|
64
|
+
export interface TracerConfig {
|
|
65
|
+
serviceName: string;
|
|
66
|
+
serviceVersion?: string;
|
|
67
|
+
endpoint?: string;
|
|
68
|
+
headers?: Record<string, string>;
|
|
69
|
+
batchSize?: number;
|
|
70
|
+
flushInterval?: number;
|
|
71
|
+
}
|
|
72
|
+
export interface Tracer {
|
|
73
|
+
/** Create a span, automatically parented to the current active span. */
|
|
74
|
+
startSpan(name: string, opts?: StartSpanOptions): Span;
|
|
75
|
+
/**
|
|
76
|
+
* Execute `fn` with `span` as the active span. The span is automatically
|
|
77
|
+
* ended when `fn` completes (sync or async). The previous active span is
|
|
78
|
+
* restored afterward.
|
|
79
|
+
*/
|
|
80
|
+
withSpan<T>(span: Span, fn: () => T): T;
|
|
81
|
+
/** Export all pending (buffered) spans to the configured endpoint. */
|
|
82
|
+
flush(): Promise<void>;
|
|
83
|
+
/** Access the currently-active span (top of the span stack), or `undefined`. */
|
|
84
|
+
activeSpan(): Span | undefined;
|
|
85
|
+
/** Read-only view of the pending span buffer. */
|
|
86
|
+
readonly pendingSpans: ReadonlyArray<Span>;
|
|
87
|
+
/** Tracer configuration. */
|
|
88
|
+
readonly config: Readonly<TracerConfig>;
|
|
89
|
+
}
|
|
90
|
+
export declare function createTracer(config: TracerConfig): Tracer;
|
|
91
|
+
/**
|
|
92
|
+
* Hook that creates a span for the component render lifecycle.
|
|
93
|
+
* Auto-starts on mount, records render duration, ends on unmount.
|
|
94
|
+
*/
|
|
95
|
+
export declare function useTracing(tracer: Tracer, name: string): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the lane that should be assigned to a new state update.
|
|
3
|
+
* Respects the current context: flushSync → SyncLane,
|
|
4
|
+
* startTransition → TransitionLane, else DefaultLane.
|
|
5
|
+
*/
|
|
6
|
+
export declare function requestUpdateLane(): number;
|
|
7
|
+
/**
|
|
8
|
+
* Enter flushSync context. State updates within will use SyncLane.
|
|
9
|
+
*/
|
|
10
|
+
export declare function enterFlushSyncContext(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Exit flushSync context.
|
|
13
|
+
*/
|
|
14
|
+
export declare function exitFlushSyncContext(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Marks a state update as a transition (non-urgent).
|
|
17
|
+
* Equivalent to React.startTransition.
|
|
18
|
+
*
|
|
19
|
+
* State updates called within the callback receive TransitionLane priority
|
|
20
|
+
* instead of DefaultLane, allowing them to be interrupted by higher-priority
|
|
21
|
+
* updates (user input, flushSync, etc.).
|
|
22
|
+
*/
|
|
23
|
+
export declare function startTransition(callback: () => void): void;
|
|
24
|
+
/**
|
|
25
|
+
* Check if we're currently inside a transition.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isInTransition(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Queue a callback to run at the end of the current transition batch.
|
|
30
|
+
*/
|
|
31
|
+
export declare function queueTransitionCallback(callback: () => void): void;
|
|
32
|
+
//# sourceMappingURL=transitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../../src/core/transitions.ts"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAK1C;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAMD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAc1D;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAElE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DevTools integration hooks.
|
|
3
|
+
* Allows browser extensions to inspect the SpecifyJS component tree.
|
|
4
|
+
*/
|
|
5
|
+
import type { Fiber } from '../shared/types';
|
|
6
|
+
/**
|
|
7
|
+
* Connect to DevTools if available (e.g., via browser extension).
|
|
8
|
+
*/
|
|
9
|
+
export declare function connectDevTools(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Notify DevTools of a commit.
|
|
12
|
+
*/
|
|
13
|
+
export declare function notifyDevToolsOfCommit(root: unknown): void;
|
|
14
|
+
/**
|
|
15
|
+
* Notify DevTools of an unmount.
|
|
16
|
+
*/
|
|
17
|
+
export declare function notifyDevToolsOfUnmount(fiber: Fiber): void;
|
|
18
|
+
/**
|
|
19
|
+
* Check if DevTools is connected.
|
|
20
|
+
*/
|
|
21
|
+
export declare function isDevToolsConnected(): boolean;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/devtools/index.ts"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAU7C;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAStC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAE1D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAE1D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type SpecElement, type SpecNode, type Key } from '../shared/types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a portal to render children into a different DOM subtree.
|
|
4
|
+
* Equivalent to ReactDOM.createPortal.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createPortal(children: SpecNode, container: Element, key?: Key): SpecElement;
|
|
7
|
+
//# sourceMappingURL=create-portal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-portal.d.ts","sourceRoot":"","sources":["../../../src/dom/create-portal.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEb,KAAK,GAAG,EACT,MAAM,iBAAiB,CAAC;AAEzB;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,WAAW,CAQ3F"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SpecNode } from '../shared/types';
|
|
2
|
+
export interface Root {
|
|
3
|
+
render(children: SpecNode): void;
|
|
4
|
+
unmount(): void;
|
|
5
|
+
}
|
|
6
|
+
export interface RootOptions {
|
|
7
|
+
onRecoverableError?: (error: unknown) => void;
|
|
8
|
+
identifierPrefix?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Creates a concurrent root for rendering.
|
|
12
|
+
* Equivalent to ReactDOM.createRoot.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createRoot(container: Element | DocumentFragment, _options?: RootOptions): Root;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a root for hydrating server-rendered content.
|
|
17
|
+
* Equivalent to ReactDOM.hydrateRoot.
|
|
18
|
+
*
|
|
19
|
+
* Unlike createRoot, this preserves the existing DOM in the container and
|
|
20
|
+
* attempts to reuse DOM nodes during the initial render. Event listeners
|
|
21
|
+
* and component state are attached to the existing DOM structure.
|
|
22
|
+
*/
|
|
23
|
+
export declare function hydrateRoot(container: Element | Document, initialChildren: SpecNode, _options?: RootOptions): Root;
|
|
24
|
+
//# sourceMappingURL=create-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-root.d.ts","sourceRoot":"","sources":["../../../src/dom/create-root.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,WAAW,IAAI;IACnB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACjC,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,OAAO,GAAG,gBAAgB,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAsB9F;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,SAAS,EAAE,OAAO,GAAG,QAAQ,EAC7B,eAAe,EAAE,QAAQ,EACzB,QAAQ,CAAC,EAAE,WAAW,GACrB,IAAI,CA4BN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flush-sync.d.ts","sourceRoot":"","sources":["../../../src/dom/flush-sync.ts"],"names":[],"mappings":"AAcA,wBAAgB,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAU3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dom/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
|