@asymmetric-effort/specifyjs 0.2.97 → 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
package/dist/specifyjs.d.ts
CHANGED
|
@@ -1,581 +1 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SPEC_ELEMENT_TYPE: unique symbol;
|
|
3
|
-
declare const SPEC_FORWARD_REF_TYPE: unique symbol;
|
|
4
|
-
declare const SPEC_MEMO_TYPE: unique symbol;
|
|
5
|
-
declare const SPEC_LAZY_TYPE: unique symbol;
|
|
6
|
-
/** A key used for reconciliation */
|
|
7
|
-
type Key = string | number | null;
|
|
8
|
-
/** A ref can be a callback, an object, or null */
|
|
9
|
-
type Ref<T = unknown> = RefCallback<T> | RefObject<T> | null;
|
|
10
|
-
type RefCallback<T> = (instance: T | null) => void;
|
|
11
|
-
interface RefObject<T> {
|
|
12
|
-
current: T | null;
|
|
13
|
-
}
|
|
14
|
-
/** Props are an arbitrary key-value map */
|
|
15
|
-
type Props = Record<string, unknown> & {
|
|
16
|
-
children?: SpecNode;
|
|
17
|
-
key?: Key;
|
|
18
|
-
ref?: Ref;
|
|
19
|
-
};
|
|
20
|
-
/** Valid child types in a SpecifyJS tree */
|
|
21
|
-
type SpecChild = SpecElement | string | number | boolean | null | undefined;
|
|
22
|
-
type SpecNode = SpecChild | SpecNode[];
|
|
23
|
-
/** A functional component */
|
|
24
|
-
type FunctionComponent<P extends Props = Props> = (props: P) => SpecNode;
|
|
25
|
-
/** A class component constructor */
|
|
26
|
-
interface ClassComponentConstructor<P extends Props = Props, S = unknown> {
|
|
27
|
-
new (props: P): ClassComponentInstance<P, S>;
|
|
28
|
-
getDerivedStateFromProps?(props: P, state: S): Partial<S> | null;
|
|
29
|
-
getDerivedStateFromError?(error: unknown): Partial<S> | null;
|
|
30
|
-
}
|
|
31
|
-
/** Instance of a class component */
|
|
32
|
-
interface ClassComponentInstance<P extends Props = Props, S = unknown> {
|
|
33
|
-
props: P;
|
|
34
|
-
state: S;
|
|
35
|
-
setState(updater: Partial<S> | ((prevState: S, props: P) => Partial<S> | null)): void;
|
|
36
|
-
forceUpdate(callback?: () => void): void;
|
|
37
|
-
render(): SpecNode;
|
|
38
|
-
componentDidMount?(): void;
|
|
39
|
-
componentDidUpdate?(prevProps: P, prevState: S, snapshot?: unknown): void;
|
|
40
|
-
componentWillUnmount?(): void;
|
|
41
|
-
shouldComponentUpdate?(nextProps: P, nextState: S): boolean;
|
|
42
|
-
getSnapshotBeforeUpdate?(prevProps: P, prevState: S): unknown;
|
|
43
|
-
componentDidCatch?(error: unknown, info: ErrorInfo): void;
|
|
44
|
-
_fiber: unknown;
|
|
45
|
-
_pendingState: Array<Partial<S> | ((prevState: S, props: P) => Partial<S> | null)>;
|
|
46
|
-
_forceUpdate: boolean;
|
|
47
|
-
_enqueueUpdate(callback?: () => void): void;
|
|
48
|
-
}
|
|
49
|
-
interface ErrorInfo {
|
|
50
|
-
componentStack: string;
|
|
51
|
-
}
|
|
52
|
-
/** A component type can be a function, a class, or a special symbol type */
|
|
53
|
-
type ComponentType<P extends Props = Props> = FunctionComponent<P> | ClassComponentConstructor<P> | string | symbol;
|
|
54
|
-
/** The core element structure — equivalent to React.Element */
|
|
55
|
-
interface SpecElement<P extends Props = Props> {
|
|
56
|
-
$$typeof: typeof SPEC_ELEMENT_TYPE;
|
|
57
|
-
type: ComponentType<P>;
|
|
58
|
-
props: P;
|
|
59
|
-
key: Key;
|
|
60
|
-
ref: Ref;
|
|
61
|
-
}
|
|
62
|
-
/** Fiber node types for the reconciler */
|
|
63
|
-
declare const enum FiberTag {
|
|
64
|
-
FunctionComponent = 0,
|
|
65
|
-
ClassComponent = 1,
|
|
66
|
-
HostRoot = 2,
|
|
67
|
-
HostComponent = 3,
|
|
68
|
-
HostText = 4,
|
|
69
|
-
Fragment = 5,
|
|
70
|
-
ContextProvider = 6,
|
|
71
|
-
ContextConsumer = 7,
|
|
72
|
-
ForwardRef = 8,
|
|
73
|
-
MemoComponent = 9,
|
|
74
|
-
LazyComponent = 10,
|
|
75
|
-
SuspenseComponent = 11,
|
|
76
|
-
Profiler = 12,
|
|
77
|
-
Portal = 13
|
|
78
|
-
}
|
|
79
|
-
/** Effect flags for fiber work */
|
|
80
|
-
declare const enum EffectTag {
|
|
81
|
-
NoEffect = 0,
|
|
82
|
-
Placement = 1,
|
|
83
|
-
Update = 2,
|
|
84
|
-
Deletion = 4,
|
|
85
|
-
ChildDeletion = 8,
|
|
86
|
-
Snapshot = 16,
|
|
87
|
-
Passive = 32,
|
|
88
|
-
Layout = 64,
|
|
89
|
-
Ref = 128
|
|
90
|
-
}
|
|
91
|
-
/** Fiber node — the internal work unit */
|
|
92
|
-
interface Fiber<P extends Props = Props> {
|
|
93
|
-
tag: FiberTag;
|
|
94
|
-
type: ComponentType<P> | null;
|
|
95
|
-
key: Key;
|
|
96
|
-
ref: Ref;
|
|
97
|
-
stateNode: unknown;
|
|
98
|
-
pendingProps: P;
|
|
99
|
-
memoizedProps: P | null;
|
|
100
|
-
memoizedState: unknown;
|
|
101
|
-
return: Fiber | null;
|
|
102
|
-
child: Fiber | null;
|
|
103
|
-
sibling: Fiber | null;
|
|
104
|
-
index: number;
|
|
105
|
-
alternate: Fiber | null;
|
|
106
|
-
effectTag: EffectTag;
|
|
107
|
-
updateQueue: unknown;
|
|
108
|
-
dependencies: unknown;
|
|
109
|
-
lanes: number;
|
|
110
|
-
childLanes: number;
|
|
111
|
-
}
|
|
112
|
-
/** Context type */
|
|
113
|
-
interface SpecContext<T> {
|
|
114
|
-
$$typeof: symbol;
|
|
115
|
-
Provider: ComponentType;
|
|
116
|
-
Consumer: ComponentType;
|
|
117
|
-
_currentValue: T;
|
|
118
|
-
_defaultValue: T;
|
|
119
|
-
displayName?: string;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Creates a SpecifyJS element (virtual DOM node).
|
|
124
|
-
* Equivalent to React.createElement.
|
|
125
|
-
*/
|
|
126
|
-
declare function createElement<P extends Props>(type: ComponentType<P>, config: (Omit<P, 'children'> & {
|
|
127
|
-
key?: Key;
|
|
128
|
-
ref?: Ref;
|
|
129
|
-
}) | null, ...children: unknown[]): SpecElement<P>;
|
|
130
|
-
/**
|
|
131
|
-
* Creates a factory function for producing elements of a given type.
|
|
132
|
-
* Legacy API — equivalent to React.createFactory.
|
|
133
|
-
*
|
|
134
|
-
* @deprecated Use createElement directly or JSX instead.
|
|
135
|
-
*/
|
|
136
|
-
declare function createFactory<P extends Props>(type: ComponentType<P>): (config?: (Omit<P, 'children'> & {
|
|
137
|
-
key?: Key;
|
|
138
|
-
ref?: Ref;
|
|
139
|
-
}) | null, ...children: unknown[]) => SpecElement<P>;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Fragment allows grouping children without adding extra DOM nodes.
|
|
143
|
-
* Usage: <Fragment>...</Fragment> or <>...</>
|
|
144
|
-
*/
|
|
145
|
-
declare const Fragment: symbol;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Creates a context object with Provider and Consumer.
|
|
149
|
-
* Equivalent to React.createContext.
|
|
150
|
-
*/
|
|
151
|
-
declare function createContext<T>(defaultValue: T): SpecContext<T>;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Creates a ref object with a mutable .current property.
|
|
155
|
-
* Equivalent to React.createRef.
|
|
156
|
-
*/
|
|
157
|
-
declare function createRef<T = unknown>(): RefObject<T>;
|
|
158
|
-
|
|
159
|
-
interface ForwardRefRenderFunction<T, P extends Props = Props> {
|
|
160
|
-
(props: P, ref: Ref<T>): SpecNode;
|
|
161
|
-
displayName?: string;
|
|
162
|
-
}
|
|
163
|
-
interface ForwardRefComponent<T, P extends Props = Props> {
|
|
164
|
-
$$typeof: typeof SPEC_FORWARD_REF_TYPE;
|
|
165
|
-
render: ForwardRefRenderFunction<T, P>;
|
|
166
|
-
displayName?: string;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Forwards a ref through a component to a child.
|
|
170
|
-
* Equivalent to React.forwardRef.
|
|
171
|
-
*/
|
|
172
|
-
declare function forwardRef<T, P extends Props = Props>(render: ForwardRefRenderFunction<T, P>): ForwardRefComponent<T, P>;
|
|
173
|
-
|
|
174
|
-
interface MemoComponent<P extends Props = Props> {
|
|
175
|
-
$$typeof: typeof SPEC_MEMO_TYPE;
|
|
176
|
-
type: ComponentType<P>;
|
|
177
|
-
compare: ((prevProps: P, nextProps: P) => boolean) | null;
|
|
178
|
-
displayName?: string;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Memoizes a component, skipping re-render if props are shallowly equal.
|
|
182
|
-
* Equivalent to React.memo.
|
|
183
|
-
*/
|
|
184
|
-
declare function memo<P extends Props>(component: ComponentType<P>, compare?: (prevProps: P, nextProps: P) => boolean): MemoComponent<P>;
|
|
185
|
-
|
|
186
|
-
type LazyStatus = 'pending' | 'resolved' | 'rejected';
|
|
187
|
-
interface LazyComponent<P extends Props = Props> {
|
|
188
|
-
$$typeof: typeof SPEC_LAZY_TYPE;
|
|
189
|
-
_payload: {
|
|
190
|
-
_status: LazyStatus;
|
|
191
|
-
_result: ComponentType<P> | unknown;
|
|
192
|
-
};
|
|
193
|
-
_init: () => ComponentType<P>;
|
|
194
|
-
displayName?: string;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Lazily loads a component. Must be used with Suspense.
|
|
198
|
-
* Equivalent to React.lazy.
|
|
199
|
-
*/
|
|
200
|
-
declare function lazy<P extends Props>(factory: () => Promise<{
|
|
201
|
-
default: ComponentType<P>;
|
|
202
|
-
}>): LazyComponent<P>;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Checks if a value is a valid SpecifyJS element.
|
|
206
|
-
* Equivalent to React.isValidElement.
|
|
207
|
-
*/
|
|
208
|
-
declare function isValidElement(object: unknown): object is SpecElement;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Clones a SpecifyJS element with new props merged in.
|
|
212
|
-
* Equivalent to React.cloneElement.
|
|
213
|
-
*/
|
|
214
|
-
declare function cloneElement<P extends Props>(element: SpecElement<P>, config?: Partial<P> & {
|
|
215
|
-
key?: Key;
|
|
216
|
-
ref?: Ref;
|
|
217
|
-
}, ...children: unknown[]): SpecElement<P>;
|
|
218
|
-
|
|
219
|
-
declare function mapChildren(children: SpecNode, fn: (child: SpecChild, index: number) => SpecChild): SpecChild[];
|
|
220
|
-
declare function forEachChildren(children: SpecNode, fn: (child: SpecChild, index: number) => void): void;
|
|
221
|
-
declare function countChildren(children: SpecNode): number;
|
|
222
|
-
declare function onlyChild(children: SpecNode): SpecElement;
|
|
223
|
-
declare function toArray(children: SpecNode): SpecChild[];
|
|
224
|
-
declare const Children: {
|
|
225
|
-
map: typeof mapChildren;
|
|
226
|
-
forEach: typeof forEachChildren;
|
|
227
|
-
count: typeof countChildren;
|
|
228
|
-
only: typeof onlyChild;
|
|
229
|
-
toArray: typeof toArray;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Base class for class components.
|
|
234
|
-
* Equivalent to React.Component.
|
|
235
|
-
*/
|
|
236
|
-
declare class Component<P extends Props = Props, S = unknown> {
|
|
237
|
-
static contextType?: unknown;
|
|
238
|
-
static getDerivedStateFromProps?(_props: Props, _state: unknown): Partial<unknown> | null;
|
|
239
|
-
static getDerivedStateFromError?(_error: unknown): Partial<unknown> | null;
|
|
240
|
-
props: P;
|
|
241
|
-
state: S;
|
|
242
|
-
context: unknown;
|
|
243
|
-
_fiber: unknown;
|
|
244
|
-
_pendingState: Array<Partial<S> | ((prevState: S, props: P) => Partial<S> | null)>;
|
|
245
|
-
_forceUpdate: boolean;
|
|
246
|
-
constructor(props: P);
|
|
247
|
-
setState(updater: Partial<S> | ((prevState: S, props: P) => Partial<S> | null), callback?: () => void): void;
|
|
248
|
-
forceUpdate(callback?: () => void): void;
|
|
249
|
-
render(): SpecNode;
|
|
250
|
-
componentDidMount?(): void;
|
|
251
|
-
componentDidUpdate?(_prevProps: P, _prevState: S, _snapshot?: unknown): void;
|
|
252
|
-
componentWillUnmount?(): void;
|
|
253
|
-
shouldComponentUpdate?(_nextProps: P, _nextState: S): boolean;
|
|
254
|
-
getSnapshotBeforeUpdate?(_prevProps: P, _prevState: S): unknown;
|
|
255
|
-
componentDidCatch?(_error: unknown, _info: ErrorInfo): void;
|
|
256
|
-
_enqueueUpdate(_callback?: () => void): void;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* PureComponent implements shouldComponentUpdate with shallow prop/state comparison.
|
|
260
|
-
* Equivalent to React.PureComponent.
|
|
261
|
-
*/
|
|
262
|
-
declare class PureComponent<P extends Props = Props, S = unknown> extends Component<P, S> {
|
|
263
|
-
shouldComponentUpdate(nextProps: P, nextState: S): boolean;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
interface ErrorBoundaryProps extends Props {
|
|
267
|
-
fallback?: SpecNode;
|
|
268
|
-
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
269
|
-
children?: SpecNode;
|
|
270
|
-
}
|
|
271
|
-
interface ErrorBoundaryState {
|
|
272
|
-
hasError: boolean;
|
|
273
|
-
error: unknown;
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* A built-in error boundary component.
|
|
277
|
-
* Users can also create their own by implementing componentDidCatch
|
|
278
|
-
* and getDerivedStateFromError on a class component.
|
|
279
|
-
*/
|
|
280
|
-
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
281
|
-
static getDerivedStateFromError(error: unknown): Partial<ErrorBoundaryState>;
|
|
282
|
-
constructor(props: ErrorBoundaryProps);
|
|
283
|
-
componentDidCatch(error: unknown, info: ErrorInfo): void;
|
|
284
|
-
render(): SpecNode;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
interface HeadHttpEquiv {
|
|
288
|
-
/** Content-Security-Policy */
|
|
289
|
-
csp?: string;
|
|
290
|
-
/** Referrer-Policy */
|
|
291
|
-
referrer?: string;
|
|
292
|
-
/** X-Content-Type-Options */
|
|
293
|
-
contentType?: string;
|
|
294
|
-
/** X-Frame-Options (via Content-Security-Policy frame-ancestors) */
|
|
295
|
-
frameOptions?: string;
|
|
296
|
-
/** Cache-Control */
|
|
297
|
-
cacheControl?: string;
|
|
298
|
-
/** Arbitrary http-equiv tags */
|
|
299
|
-
[key: string]: string | undefined;
|
|
300
|
-
}
|
|
301
|
-
interface HeadMeta {
|
|
302
|
-
/** Document title */
|
|
303
|
-
title?: string;
|
|
304
|
-
/** Meta description */
|
|
305
|
-
description?: string;
|
|
306
|
-
/** Meta keywords (comma-separated) */
|
|
307
|
-
keywords?: string;
|
|
308
|
-
/** Meta author */
|
|
309
|
-
author?: string;
|
|
310
|
-
/** Canonical URL */
|
|
311
|
-
canonical?: string;
|
|
312
|
-
/** Open Graph tags */
|
|
313
|
-
og?: Record<string, string>;
|
|
314
|
-
/** Twitter card tags */
|
|
315
|
-
twitter?: Record<string, string>;
|
|
316
|
-
/** HTTP-equiv meta tags (security headers, caching, etc.) */
|
|
317
|
-
httpEquiv?: HeadHttpEquiv;
|
|
318
|
-
/** Arbitrary meta tags: [{ name, content }] or [{ property, content }] */
|
|
319
|
-
meta?: Array<{
|
|
320
|
-
name?: string;
|
|
321
|
-
property?: string;
|
|
322
|
-
content: string;
|
|
323
|
-
}>;
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Sets document head meta tags. Tags are applied when the component
|
|
327
|
-
* mounts and removed when it unmounts, preventing stale meta from
|
|
328
|
-
* persisting across route changes.
|
|
329
|
-
*
|
|
330
|
-
* ```typescript
|
|
331
|
-
* useHead({
|
|
332
|
-
* title: 'My Page',
|
|
333
|
-
* description: 'Page description for SEO',
|
|
334
|
-
* keywords: 'specifyjs, framework, spa',
|
|
335
|
-
* author: 'Your Name',
|
|
336
|
-
* og: { title: 'My Page', image: '/og-image.png' },
|
|
337
|
-
* });
|
|
338
|
-
* ```
|
|
339
|
-
*/
|
|
340
|
-
declare function useHead(head: HeadMeta): void;
|
|
341
|
-
|
|
342
|
-
declare function useState<T>(initialState: T | (() => T)): [T, (action: T | ((prev: T) => T)) => void];
|
|
343
|
-
declare function useEffect(create: () => void | (() => void), deps?: readonly unknown[]): void;
|
|
344
|
-
declare function useContext<T>(context: SpecContext<T>): T;
|
|
345
|
-
declare function useReducer<S, A>(reducer: (state: S, action: A) => S, initialArg: S, init?: (arg: S) => S): [S, (action: A) => void];
|
|
346
|
-
declare function useCallback<T extends (...args: any[]) => any>(callback: T, deps: readonly unknown[]): T;
|
|
347
|
-
declare function useMemo<T>(factory: () => T, deps: readonly unknown[]): T;
|
|
348
|
-
declare function useRef<T>(initialValue: T): {
|
|
349
|
-
current: T;
|
|
350
|
-
};
|
|
351
|
-
declare function useRef<T>(initialValue: T | null): {
|
|
352
|
-
current: T | null;
|
|
353
|
-
};
|
|
354
|
-
declare function useRef<T>(): {
|
|
355
|
-
current: T | undefined;
|
|
356
|
-
};
|
|
357
|
-
declare function useImperativeHandle<T>(ref: {
|
|
358
|
-
current: T | null;
|
|
359
|
-
} | ((instance: T | null) => void) | null, createHandle: () => T, deps?: readonly unknown[]): void;
|
|
360
|
-
declare function useLayoutEffect(create: () => void | (() => void), deps?: readonly unknown[]): void;
|
|
361
|
-
declare function useDebugValue<T>(value: T, format?: (value: T) => unknown): void;
|
|
362
|
-
declare function useId(): string;
|
|
363
|
-
declare function useDeferredValue<T>(value: T): T;
|
|
364
|
-
declare function useTransition(): [boolean, (callback: () => void) => void];
|
|
365
|
-
declare function useSyncExternalStore<T>(subscribe: (onStoreChange: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T): T;
|
|
366
|
-
declare function useInsertionEffect(create: () => void | (() => void), deps?: readonly unknown[]): void;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* Suspense component for handling async loading states.
|
|
370
|
-
* Equivalent to React.Suspense.
|
|
371
|
-
*/
|
|
372
|
-
declare const Suspense: symbol;
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* StrictMode enables additional development checks.
|
|
376
|
-
* Equivalent to React.StrictMode.
|
|
377
|
-
*/
|
|
378
|
-
declare const StrictMode: symbol;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Profiler measures rendering performance of its subtree.
|
|
382
|
-
* Equivalent to React.Profiler.
|
|
383
|
-
*/
|
|
384
|
-
declare const Profiler: symbol;
|
|
385
|
-
|
|
386
|
-
interface RouterProps {
|
|
387
|
-
children?: SpecNode;
|
|
388
|
-
}
|
|
389
|
-
declare function Router(props: RouterProps): SpecNode;
|
|
390
|
-
|
|
391
|
-
interface RouteProps {
|
|
392
|
-
/** Path pattern to match (e.g., '/users/:id') */
|
|
393
|
-
path: string;
|
|
394
|
-
/** Component to render when matched. Receives route params as props. */
|
|
395
|
-
component?: FunctionComponent;
|
|
396
|
-
/** If true, path must match the entire pathname. Default: false. */
|
|
397
|
-
exact?: boolean;
|
|
398
|
-
/** Children to render when matched (alternative to component). */
|
|
399
|
-
children?: SpecNode;
|
|
400
|
-
}
|
|
401
|
-
declare function Route(props: RouteProps): SpecNode;
|
|
402
|
-
|
|
403
|
-
interface LinkProps {
|
|
404
|
-
/** Target path (e.g., '/about') */
|
|
405
|
-
to: string;
|
|
406
|
-
/** CSS class name */
|
|
407
|
-
className?: string;
|
|
408
|
-
/** Additional class when the link's path matches the current route */
|
|
409
|
-
activeClassName?: string;
|
|
410
|
-
/** If true, activeClassName requires exact path match. Default: false. */
|
|
411
|
-
exact?: boolean;
|
|
412
|
-
/** Children (link text/content) */
|
|
413
|
-
children?: SpecNode;
|
|
414
|
-
/** Additional props passed to the anchor element */
|
|
415
|
-
[key: string]: unknown;
|
|
416
|
-
}
|
|
417
|
-
declare function Link(props: LinkProps): SpecNode;
|
|
418
|
-
|
|
419
|
-
interface RouterContextValue {
|
|
420
|
-
/** Current hash pathname */
|
|
421
|
-
pathname: string;
|
|
422
|
-
/** Matched route parameters */
|
|
423
|
-
params: Record<string, string>;
|
|
424
|
-
/** Navigate to a new path */
|
|
425
|
-
navigate: (to: string, options?: {
|
|
426
|
-
replace?: boolean;
|
|
427
|
-
}) => void;
|
|
428
|
-
/** Base path for nested routing (parent route's matched URL) */
|
|
429
|
-
basePath: string;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/** Returns the full router context value. */
|
|
433
|
-
declare function useRouter(): RouterContextValue;
|
|
434
|
-
|
|
435
|
-
/** Returns the matched route parameters. */
|
|
436
|
-
declare function useParams<T extends Record<string, string> = Record<string, string>>(): T;
|
|
437
|
-
|
|
438
|
-
/** Returns the navigate function from the nearest Router. */
|
|
439
|
-
declare function useNavigate(): (to: string, options?: {
|
|
440
|
-
replace?: boolean;
|
|
441
|
-
}) => void;
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* Path matching utility for hash-based routing.
|
|
445
|
-
*
|
|
446
|
-
* Supports:
|
|
447
|
-
* - Literal segments: `/about` matches `/about`
|
|
448
|
-
* - Named parameters: `/users/:id` matches `/users/123` → { id: '123' }
|
|
449
|
-
* - Wildcards: `/files/*` matches `/files/a/b/c` → { '*': 'a/b/c' }
|
|
450
|
-
* - Exact vs. partial matching for nested routes
|
|
451
|
-
*/
|
|
452
|
-
interface MatchResult {
|
|
453
|
-
/** Extracted route parameters */
|
|
454
|
-
params: Record<string, string>;
|
|
455
|
-
/** Whether the entire pathname was consumed */
|
|
456
|
-
isExact: boolean;
|
|
457
|
-
/** The pattern that was matched */
|
|
458
|
-
path: string;
|
|
459
|
-
/** The matched portion of the pathname */
|
|
460
|
-
url: string;
|
|
461
|
-
}
|
|
462
|
-
interface MatchOptions {
|
|
463
|
-
/** If true, the pattern must match the entire pathname. Default: false. */
|
|
464
|
-
exact?: boolean;
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Match a route pattern against a pathname.
|
|
468
|
-
* Returns a MatchResult if the pattern matches, or null if it doesn't.
|
|
469
|
-
*/
|
|
470
|
-
declare function matchPath(pattern: string, pathname: string, options?: MatchOptions): MatchResult | null;
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* Marks a state update as a transition (non-urgent).
|
|
474
|
-
* Equivalent to React.startTransition.
|
|
475
|
-
*
|
|
476
|
-
* State updates called within the callback receive TransitionLane priority
|
|
477
|
-
* instead of DefaultLane, allowing them to be interrupted by higher-priority
|
|
478
|
-
* updates (user input, flushSync, etc.).
|
|
479
|
-
*/
|
|
480
|
-
declare function startTransition(callback: () => void): void;
|
|
481
|
-
|
|
482
|
-
declare function act(callback: () => void | Promise<void>): void;
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Secure fetch wrapper — enforces HTTPS-only policy.
|
|
486
|
-
*
|
|
487
|
-
* SpecifyJS prohibits HTTP connections. All network requests must use
|
|
488
|
-
* HTTPS or be relative URLs. This prevents data from being transmitted
|
|
489
|
-
* in plaintext, protecting against eavesdropping and MITM attacks.
|
|
490
|
-
*
|
|
491
|
-
* Exceptions:
|
|
492
|
-
* - Relative URLs (./path, /path) — resolved by the browser
|
|
493
|
-
* - localhost and 127.0.0.1 — development only
|
|
494
|
-
*/
|
|
495
|
-
/**
|
|
496
|
-
* Validate that a URL uses HTTPS or is a relative/localhost URL.
|
|
497
|
-
* Throws if the URL uses plaintext HTTP.
|
|
498
|
-
*/
|
|
499
|
-
declare function assertSecureUrl(url: string): void;
|
|
500
|
-
/**
|
|
501
|
-
* Secure fetch — drop-in replacement for window.fetch that enforces HTTPS.
|
|
502
|
-
* Use this instead of fetch() directly to comply with the HTTPS-only policy.
|
|
503
|
-
*/
|
|
504
|
-
declare function secureFetch(input: string | URL | Request, init?: RequestInit): Promise<Response>;
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* Component Registry — assigns compact, deterministic IDs to component instances.
|
|
508
|
-
*
|
|
509
|
-
* Each component TYPE gets a numeric index (0, 1, 2, ...) on first registration.
|
|
510
|
-
* Each component INSTANCE gets a sequential instance number within its type.
|
|
511
|
-
*
|
|
512
|
-
* DOM elements receive: id="s-{typeIndex}-{instanceId}"
|
|
513
|
-
* Example: s-3-12 = type index 3, instance 12
|
|
514
|
-
*
|
|
515
|
-
* The lookup table at window.__SPECIFYJS_COMPONENTS__ maps indices to names
|
|
516
|
-
* for debugging, testing, and programmatic interaction.
|
|
517
|
-
*/
|
|
518
|
-
interface ComponentTypeEntry {
|
|
519
|
-
name: string;
|
|
520
|
-
index: number;
|
|
521
|
-
instanceCount: number;
|
|
522
|
-
}
|
|
523
|
-
/**
|
|
524
|
-
* Enable or disable component ID assignment.
|
|
525
|
-
* When disabled, registerComponentInstance returns '' and no IDs are assigned.
|
|
526
|
-
*/
|
|
527
|
-
declare function setComponentIdsEnabled(value: boolean): void;
|
|
528
|
-
/**
|
|
529
|
-
* Resolve a compact ID back to component metadata.
|
|
530
|
-
* Returns null if the ID is not recognized.
|
|
531
|
-
*/
|
|
532
|
-
declare function resolveComponentId(id: string): {
|
|
533
|
-
typeName: string;
|
|
534
|
-
typeIndex: number;
|
|
535
|
-
instanceId: number;
|
|
536
|
-
} | null;
|
|
537
|
-
/**
|
|
538
|
-
* Get the full component type table (for debugging/DevTools).
|
|
539
|
-
*/
|
|
540
|
-
declare function getComponentTypeTable(): ReadonlyMap<string, Readonly<ComponentTypeEntry>>;
|
|
541
|
-
|
|
542
|
-
type FeatureFlags = Record<string, boolean>;
|
|
543
|
-
interface FeatureFlagContextValue {
|
|
544
|
-
/** Current flag states */
|
|
545
|
-
flags: FeatureFlags;
|
|
546
|
-
/** Check if a flag is enabled */
|
|
547
|
-
isEnabled: (flag: string) => boolean;
|
|
548
|
-
/** Set a flag's state at runtime */
|
|
549
|
-
setFlag: (flag: string, enabled: boolean) => void;
|
|
550
|
-
/** Whether flags are still loading from remote */
|
|
551
|
-
loading: boolean;
|
|
552
|
-
}
|
|
553
|
-
interface FeatureFlagProviderProps {
|
|
554
|
-
/** URL to fetch feature flags JSON from (optional) */
|
|
555
|
-
url?: string;
|
|
556
|
-
/** Initial/default flag values */
|
|
557
|
-
defaults?: FeatureFlags;
|
|
558
|
-
/** Children */
|
|
559
|
-
children?: SpecNode;
|
|
560
|
-
}
|
|
561
|
-
declare function FeatureFlagProvider(props: FeatureFlagProviderProps): SpecNode;
|
|
562
|
-
interface FeatureGateProps {
|
|
563
|
-
/** Flag name to check */
|
|
564
|
-
flag: string;
|
|
565
|
-
/** Content to render when flag is enabled */
|
|
566
|
-
children?: SpecNode;
|
|
567
|
-
/** Content to render when flag is disabled (optional) */
|
|
568
|
-
fallback?: SpecNode;
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* Conditionally renders children based on a feature flag.
|
|
572
|
-
* Renders nothing (or fallback) when the flag is disabled.
|
|
573
|
-
*/
|
|
574
|
-
declare function FeatureGate(props: FeatureGateProps): SpecNode;
|
|
575
|
-
/**
|
|
576
|
-
* Hook to access feature flag state and controls.
|
|
577
|
-
*/
|
|
578
|
-
declare function useFeatureFlags(): FeatureFlagContextValue;
|
|
579
|
-
|
|
580
|
-
export { Children, Component, ErrorBoundary, FeatureFlagProvider, FeatureGate, Fragment, Link, Profiler, PureComponent, Route, Router, StrictMode, Suspense, act, assertSecureUrl, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, getComponentTypeTable, createElement as h, isValidElement, lazy, matchPath, memo, resolveComponentId, secureFetch, setComponentIdsEnabled, startTransition, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useFeatureFlags, useHead, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useNavigate, useParams, useReducer, useRef, useRouter, useState, useSyncExternalStore, useTransition };
|
|
581
|
-
export type { ClassComponentConstructor, ClassComponentInstance, ErrorInfo, Fiber, FunctionComponent, Key, Props, Ref, RefCallback, RefObject, SpecChild, SpecContext, SpecElement, SpecNode };
|
|
1
|
+
export * from "./types/index";
|
package/dist/specifyjs.esm.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
const t=Symbol.for("spec.element"),e=Symbol.for("spec.fragment"),n=Symbol.for("spec.provider"),o=Symbol.for("spec.consumer"),r=Symbol.for("spec.forward_ref"),s=Symbol.for("spec.memo"),c=Symbol.for("spec.lazy"),a=Symbol.for("spec.suspense"),i=Symbol.for("spec.strict_mode"),u=Symbol.for("spec.profiler");function l(e,n,...o){let r=null,s=null;const c={};if(null!=n){void 0!==n.key&&(r=""+n.key),void 0!==n.ref&&(s=n.ref);for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&"key"!==t&&"ref"!==t&&"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&(c[t]=n[t])}if(1===o.length?c.children=o[0]:o.length>1&&(c.children=o),"function"==typeof e&&e.defaultProps){const t=e.defaultProps;for(const e of Object.keys(t))"__proto__"!==e&&"constructor"!==e&&void 0===c[e]&&(c[e]=t[e])}return{$$typeof:t,type:e,props:c,key:r,ref:s}}function f(t){return(e,...n)=>l(t,e??null,...n)}const p=e;function h(t){const e={$$typeof:Symbol.for("spec.context"),Provider:null,Consumer:null,_currentValue:t,_defaultValue:t},r={$$typeof:n,_context:e},s={$$typeof:o,_context:e};return e.Provider=r,e.Consumer=s,e}function d(){return{current:null}}function m(t){return{$$typeof:r,render:t,displayName:t.displayName||t.name||"ForwardRef"}}function y(t,e){return{$$typeof:s,type:t,compare:e||null,displayName:t.displayName||t.name||"Memo"}}function w(t){const e={_status:"pending",_result:void 0};return{$$typeof:c,_payload:e,_init:()=>{if("resolved"===e._status)return e._result;if("rejected"===e._status)throw e._result;const n=t();throw e._status="pending",n.then(t=>{e._status="resolved",e._result=t.default},t=>{e._status="rejected",e._result=t}),n},displayName:"Lazy"}}function g(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function b(e,n,...o){if(!g(e))throw new Error("cloneElement: argument must be a valid SpecifyJS element");let r=e.key,s=e.ref;const c={...e.props};if(null!=n){void 0!==n.key&&(r=""+n.key),void 0!==n.ref&&(s=n.ref);for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&"key"!==t&&"ref"!==t&&"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&(c[t]=n[t])}return 1===o.length?c.children=o[0]:o.length>1&&(c.children=o),{$$typeof:t,type:e.type,props:c,key:r,ref:s}}function v(t){const e=[],n=[t];for(;n.length>0;){const t=n.pop();if(Array.isArray(t))for(let e=t.length-1;e>=0;e--)n.push(t[e]);else e.push(t)}return e}const _={map:function(t,e){const n=v(t),o=[];for(let t=0;t<n.length;t++){const r=n[t];null!=r&&"boolean"!=typeof r&&o.push(e(r,t))}return o},forEach:function(t,e){const n=v(t);let o=0;for(const t of n)null!=t&&"boolean"!=typeof t&&e(t,o++)},count:function(t){const e=v(t);let n=0;for(const t of e)null!=t&&"boolean"!=typeof t&&n++;return n},only:function(t){if(!g(t))throw new Error("Children.only: expected a single SpecifyJS element child");return t},toArray:function(t){return v(t).filter(t=>null!=t&&"boolean"!=typeof t)}};class S{constructor(t){this._fiber=null,this._pendingState=[],this._forceUpdate=!1,this.props=t,this.state={},this.context=void 0}setState(t,e){this._pendingState.push(t),this._enqueueUpdate(e)}forceUpdate(t){this._forceUpdate=!0,this._enqueueUpdate(t)}render(){return null}_enqueueUpdate(t){}}S.prototype.isSpecComponent=!0;class E extends S{shouldComponentUpdate(t,e){return!$(this.props,t)||!$(this.state,e)}}function $(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;const r=t,s=e;for(const t of n)if(!Object.prototype.hasOwnProperty.call(s,t)||!Object.is(r[t],s[t]))return!1;return!0}E.prototype.isPureSpecComponent=!0;class k extends S{static getDerivedStateFromError(t){return{hasError:!0,error:t}}constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,e){this.props.onError?.(t,e)}render(){return this.state.hasError?this.props.fallback??null:this.props.children??null}}function j(t){const e=T(t);e.current=t,L(()=>{const t=e.current,n=[],o=document.title;if(t.title&&(document.title=t.title,n.push(()=>{document.title=o})),t.description&&n.push(x("name","description",t.description)),t.keywords&&n.push(x("name","keywords",t.keywords)),t.author&&n.push(x("name","author",t.author)),t.canonical){const e=document.createElement("link");e.rel="canonical",e.href=t.canonical,document.head.appendChild(e),n.push(()=>e.remove())}if(t.og)for(const[e,o]of Object.entries(t.og))n.push(x("property",`og:${e}`,o));if(t.twitter)for(const[e,o]of Object.entries(t.twitter))n.push(x("name",`twitter:${e}`,o));if(t.httpEquiv){const e={csp:"Content-Security-Policy",referrer:"Referrer-Policy",contentType:"X-Content-Type-Options",frameOptions:"X-Frame-Options",cacheControl:"Cache-Control"};for(const[o,r]of Object.entries(t.httpEquiv)){if(void 0===r)continue;const t=e[o]??o;n.push(P(t,r))}}if(t.meta)for(const e of t.meta)e.name?n.push(x("name",e.name,e.content)):e.property&&n.push(x("property",e.property,e.content));return()=>{for(const t of n)t()}},[JSON.stringify([t.title,t.description,t.keywords,t.author,t.canonical,t.og,t.twitter,t.httpEquiv,t.meta])])}function C(t){return t.replace(/["\\]/g,"\\$&")}function x(t,e,n){const o=`meta[${t}="${C(e)}"]`;let r=document.querySelector(o);const s=null!==r,c=r?.content;return r||(r=document.createElement("meta"),r.setAttribute(t,e),document.head.appendChild(r)),r.content=n,()=>{s&&void 0!==c?r.content=c:s||r.remove()}}function P(t,e){const n=`meta[http-equiv="${C(t)}"]`;let o=document.querySelector(n);const r=null!==o,s=o?.content;return o||(o=document.createElement("meta"),o.setAttribute("http-equiv",t),document.head.appendChild(o)),o.content=e,()=>{r&&void 0!==s?o.content=s:r||o.remove()}}function O(){throw new Error("Invalid hook call. Hooks can only be called inside the body of a function component.")}function U(t){return O().useState(t)}function L(t,e){return O().useEffect(t,e)}function R(t){return O().useContext(t)}function q(t,e,n){return O().useReducer(t,e,n)}function N(t,e){return O().useCallback(t,e)}function I(t,e){return O().useMemo(t,e)}function T(t){return O().useRef(t)}function W(t,e,n){return O().useImperativeHandle(t,e,n)}function A(t,e){return O().useLayoutEffect(t,e)}function J(t,e){return O().useDebugValue(t,e)}function D(){return O().useId()}function F(t){return O().useDeferredValue(t)}function H(){return O().useTransition()}function V(t,e,n){return O().useSyncExternalStore(t,e,n)}function B(t,e){return O().useInsertionEffect(t,e)}const M=a,z=i,X=u,G=h({pathname:"/",params:{},navigate:()=>{throw new Error("useNavigate must be used inside a <Router> component.")},basePath:""});function K(){const t=("undefined"!=typeof window?window.location.hash:"").replace(/^#\/?/,"/");return""===t?"/":t}let Q={pathname:K(),hash:"undefined"!=typeof window?window.location.hash:""};const Y=new Set;function Z(){Q={pathname:K(),hash:"undefined"!=typeof window?window.location.hash:""};for(const t of Y)t()}function tt(){return Q}function et(t){const[e,n]=U(()=>tt().pathname);L(()=>{var t;return n(tt().pathname),t=()=>{n(tt().pathname)},Y.add(t),()=>{Y.delete(t)}},[]);const o=N((...t)=>{!function(t,e){const n=t.startsWith("#")?t:"#"+t;if(e?.replace){const t=window.location.pathname+window.location.search+n;window.history.replaceState(null,"",t)}else window.location.hash=n;Z()}(t[0],t[1])},[]),r=I(()=>({pathname:e,params:{},navigate:o,basePath:""}),[e,o]);return l(G.Provider,{value:r},t.children)}function nt(t){let e=t.length;for(;e>1&&47===t.charCodeAt(e-1);)e--;return e===t.length?t:t.slice(0,e)}function ot(t,e,n){const o=n?.exact??!1,r="/"===t?"/":nt(t),s="/"===e?"/":nt(e);if("/"===r){const e="/"===s;return o&&!e?null:{params:{},isExact:e,path:t,url:"/"}}const c=r.split("/").filter(Boolean),a=s.split("/").filter(Boolean),i="*"===c[c.length-1];if(!i&&o&&a.length!==c.length)return null;if(!i&&a.length<c.length)return null;const u={},l=[];for(let e=0;e<c.length;e++){const n=c[e];if("*"===n){const n=a.slice(e).join("/");return u["*"]=n,{params:u,isExact:!0,path:t,url:"/"+a.join("/")}}if(e>=a.length)return null;const o=a[e];if(n.startsWith(":"))u[n.slice(1)]=decodeURIComponent(o),l.push(o);else{if(n.toLowerCase()!==o.toLowerCase())return null;l.push(o)}}const f="/"+l.join("/"),p=a.length===c.length;return o&&!p?null:{params:u,isExact:p,path:t,url:f}}function rt(t){const e=R(G),n=ot(e.basePath+t.path,e.pathname,{exact:t.exact??!1}),o=I(()=>({pathname:e.pathname,params:{...e.params,...n?n.params:{}},navigate:e.navigate,basePath:n?n.url:e.basePath}),[e.pathname,e.navigate,e.params,e.basePath,n]);if(!n)return null;for(const t of Object.keys(e.params))t in o.params||(o.params[t]=e.params[t]);const r=t.component?l(t.component,{...o.params}):t.children;return l(G.Provider,{value:o},r)}function st(t){const{to:e,className:n,activeClassName:o,exact:r,children:s,...c}=t,a=R(G),i=null!==ot(e,a.pathname,{exact:r??!1}),u=N((...t)=>{t[0].preventDefault(),a.navigate(e)},[e,a.navigate]),f=[n,i?o:null].filter(Boolean).join(" ")||void 0;return l("a",{...c,href:"#"+e,onClick:u,className:f},s)}function ct(){return R(G)}function at(){return R(G).params}function it(){return R(G).navigate}"undefined"!=typeof window&&window.addEventListener("hashchange",Z);let ut=[];function lt(t){try{t()}finally{!function(){const t=ut;ut=[];for(const e of t)e()}()}}let ft=[];function pt(){const t=ft;ft=[];for(const e of t)e()}function ht(t){const e=t();pt(),e&&"function"==typeof e.then&&e.then(()=>{pt()})}function dt(t){if(t.startsWith("//"))throw new Error(`[SpecifyJS] Protocol-relative URL rejected: "${t}". Use an explicit https:// prefix.`);if(t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))return;if(t.startsWith("data:"))return;let e;try{e=new URL(t,"undefined"!=typeof window?window.location.href:void 0)}catch{return}if("https:"!==e.protocol&&"localhost"!==e.hostname&&"127.0.0.1"!==e.hostname)throw new Error(`[SpecifyJS] Insecure URL rejected: "${t}". SpecifyJS enforces HTTPS-only for all network requests. Use https:// or a relative URL. Localhost URLs are allowed for development.`)}function mt(t,e){return dt("string"==typeof t?t:t instanceof URL?t.href:t.url),fetch(t,e)}const yt=new Map;function wt(t){}function gt(t){const e=t.match(/^s-(\d+)-(\d+)$/);if(!e||!e[1]||!e[2])return null;const n=parseInt(e[1],10),o=parseInt(e[2],10);for(const t of yt.values())if(t.index===n)return{typeName:t.name,typeIndex:n,instanceId:o};return null}function bt(){return yt}const vt=h({flags:{},isEnabled:()=>!1,setFlag:()=>{},loading:!1});function _t(t){const[e,n]=U(()=>({...t.defaults})),[o,r]=U(!!t.url);L(()=>{if(!t.url)return;let e=!1;return r(!0),mt(t.url).then(t=>{if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}).then(t=>{if(!e&&"object"==typeof t&&null!==t){const e={};for(const n of Object.keys(t))"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=!0===t[n]);n(t=>({...t,...e}))}e||r(!1)}).catch(()=>{e||r(!1)}),()=>{e=!0}},[t.url]);const s=N((...t)=>{const n=t[0];return!0===e[n]},[e]),c=N((...t)=>{const e=t[0],o=t[1];n(t=>({...t,[e]:o}))},[]),a={flags:e,isEnabled:s,setFlag:c,loading:o};return l(vt.Provider,{value:a},t.children)}function St(t){const{isEnabled:e}=R(vt);return e(t.flag)?t.children:t.fallback??null}function Et(){return R(vt)}export{_ as Children,S as Component,k as ErrorBoundary,_t as FeatureFlagProvider,St as FeatureGate,p as Fragment,st as Link,X as Profiler,E as PureComponent,rt as Route,et as Router,z as StrictMode,M as Suspense,ht as act,dt as assertSecureUrl,b as cloneElement,h as createContext,l as createElement,f as createFactory,d as createRef,m as forwardRef,bt as getComponentTypeTable,l as h,g as isValidElement,w as lazy,ot as matchPath,y as memo,gt as resolveComponentId,mt as secureFetch,wt as setComponentIdsEnabled,lt as startTransition,N as useCallback,R as useContext,J as useDebugValue,F as useDeferredValue,L as useEffect,Et as useFeatureFlags,j as useHead,D as useId,W as useImperativeHandle,B as useInsertionEffect,A as useLayoutEffect,I as useMemo,it as useNavigate,at as useParams,q as useReducer,T as useRef,ct as useRouter,U as useState,V as useSyncExternalStore,H as useTransition};
|
|
1
|
+
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
|
+
var g=Symbol.for("spec.element"),j=Symbol.for("spec.fragment"),nt=Symbol.for("spec.portal"),H=Symbol.for("spec.provider"),q=Symbol.for("spec.consumer"),B=Symbol.for("spec.forward_ref"),K=Symbol.for("spec.memo"),z=Symbol.for("spec.lazy"),W=Symbol.for("spec.suspense"),G=Symbol.for("spec.strict_mode"),J=Symbol.for("spec.profiler");function m(e,t,...o){let n=null,r=null,a={};if(t!=null){t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(r=t.ref);for(let s in t)Object.prototype.hasOwnProperty.call(t,s)&&s!=="key"&&s!=="ref"&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"&&(a[s]=t[s])}if(o.length===1?a.children=o[0]:o.length>1&&(a.children=o),typeof e=="function"&&e.defaultProps){let s=e.defaultProps;for(let i of Object.keys(s))i!=="__proto__"&&i!=="constructor"&&a[i]===void 0&&(a[i]=s[i])}return{$$typeof:g,type:e,props:a,key:n,ref:r}}function Ee(e){return(t,...o)=>m(e,t??null,...o)}var ve=j;function k(e){let t={$$typeof:Symbol.for("spec.context"),Provider:null,Consumer:null,_currentValue:e,_defaultValue:e},o={$$typeof:H,_context:t},n={$$typeof:q,_context:t};return t.Provider=o,t.Consumer=n,t}function ke(){return{current:null}}function Re(e){return{$$typeof:B,render:e,displayName:e.displayName||e.name||"ForwardRef"}}function be(e,t){return{$$typeof:K,type:e,compare:t||null,displayName:e.displayName||e.name||"Memo"}}function we(e){let t={_status:"pending",_result:void 0};return{$$typeof:z,_payload:t,_init:()=>{if(t._status==="resolved")return t._result;if(t._status==="rejected")throw t._result;let n=e();throw t._status="pending",n.then(r=>{t._status="resolved",t._result=r.default},r=>{t._status="rejected",t._result=r}),n},displayName:"Lazy"}}function R(e){return typeof e=="object"&&e!==null&&e.$$typeof===g}function Te(e,t,...o){if(!R(e))throw new Error("cloneElement: argument must be a valid SpecifyJS element");let n=e.key,r=e.ref,a={...e.props};if(t!=null){t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(r=t.ref);for(let s in t)Object.prototype.hasOwnProperty.call(t,s)&&s!=="key"&&s!=="ref"&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"&&(a[s]=t[s])}return o.length===1?a.children=o[0]:o.length>1&&(a.children=o),{$$typeof:g,type:e.type,props:a,key:n,ref:r}}function _(e){let t=[],o=[e];for(;o.length>0;){let n=o.pop();if(Array.isArray(n))for(let r=n.length-1;r>=0;r--)o.push(n[r]);else t.push(n)}return t}function _e(e,t){let o=_(e),n=[];for(let r=0;r<o.length;r++){let a=o[r];a==null||typeof a=="boolean"||n.push(t(a,r))}return n}function Ne(e,t){let o=_(e),n=0;for(let r of o)r==null||typeof r=="boolean"||t(r,n++)}function Le(e){let t=_(e),o=0;for(let n of t)n!=null&&typeof n!="boolean"&&o++;return o}function Fe(e){if(!R(e))throw new Error("Children.only: expected a single SpecifyJS element child");return e}function Ie(e){return _(e).filter(o=>o!=null&&typeof o!="boolean")}var Me={map:_e,forEach:Ne,count:Le,only:Fe,toArray:Ie};var P=class{constructor(t){this._fiber=null;this._pendingState=[];this._forceUpdate=!1;this.props=t,this.state={},this.context=void 0}setState(t,o){this._pendingState.push(t),this._enqueueUpdate(o)}forceUpdate(t){this._forceUpdate=!0,this._enqueueUpdate(t)}render(){return null}_enqueueUpdate(t){}};P.prototype.isSpecComponent=!0;var N=class extends P{shouldComponentUpdate(t,o){return!X(this.props,t)||!X(this.state,o)}};N.prototype.isPureSpecComponent=!0;function X(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;let r=e,a=t;for(let s of o)if(!Object.prototype.hasOwnProperty.call(a,s)||!Object.is(r[s],a[s]))return!1;return!0}var M=class extends P{static getDerivedStateFromError(t){return{hasError:!0,error:t}}constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,o){this.props.onError?.(t,o)}render(){return this.state.hasError?this.props.fallback??null:this.props.children??null}};function Z(e){let t=O(e);t.current=e;let o=JSON.stringify([e.title,e.description,e.keywords,e.author,e.canonical,e.og,e.twitter,e.httpEquiv,e.meta]);C(()=>{let n=t.current,r=[],a=document.title;if(n.title&&(document.title=n.title,r.push(()=>{document.title=a})),n.description&&r.push(S("name","description",n.description)),n.keywords&&r.push(S("name","keywords",n.keywords)),n.author&&r.push(S("name","author",n.author)),n.canonical){let s=document.createElement("link");s.rel="canonical",s.href=n.canonical,document.head.appendChild(s),r.push(()=>s.remove())}if(n.og)for(let[s,i]of Object.entries(n.og))r.push(S("property",`og:${s}`,i));if(n.twitter)for(let[s,i]of Object.entries(n.twitter))r.push(S("name",`twitter:${s}`,i));if(n.httpEquiv){let s={csp:"Content-Security-Policy",referrer:"Referrer-Policy",contentType:"X-Content-Type-Options",frameOptions:"X-Frame-Options",cacheControl:"Cache-Control"};for(let[i,u]of Object.entries(n.httpEquiv)){if(u===void 0)continue;let p=s[i]??i;r.push(Oe(p,u))}}if(n.meta)for(let s of n.meta)s.name?r.push(S("name",s.name,s.content)):s.property&&r.push(S("property",s.property,s.content));return()=>{for(let s of r)s()}},[o])}function Q(e){return e.replace(/["\\]/g,"\\$&")}function S(e,t,o){let n=`meta[${e}="${Q(t)}"]`,r=document.querySelector(n),a=r!==null,s=r?.content;return r||(r=document.createElement("meta"),r.setAttribute(e,t),document.head.appendChild(r)),r.content=o,()=>{a&&s!==void 0?r.content=s:a||r.remove()}}function Oe(e,t){let o=`meta[http-equiv="${Q(e)}"]`,n=document.querySelector(o),r=n!==null,a=n?.content;return n||(n=document.createElement("meta"),n.setAttribute("http-equiv",e),document.head.appendChild(n)),n.content=t,()=>{r&&a!==void 0?n.content=a:r||n.remove()}}var ee=null;function c(){if(ee===null)throw new Error("Invalid hook call. Hooks can only be called inside the body of a function component.");return ee}function E(e){return c().useState(e)}function C(e,t){return c().useEffect(e,t)}function l(e){return c().useContext(e)}function De(e,t,o){return c().useReducer(e,t,o)}function h(e,t){return c().useCallback(e,t)}function b(e,t){return c().useMemo(e,t)}function O(e){return c().useRef(e)}function Ue(e,t,o){return c().useImperativeHandle(e,t,o)}function $e(e,t){return c().useLayoutEffect(e,t)}function Ve(e,t){return c().useDebugValue(e,t)}function Ye(){return c().useId()}function Ae(e){return c().useDeferredValue(e)}function je(){return c().useTransition()}function He(e,t,o){return c().useSyncExternalStore(e,t,o)}function qe(e,t){return c().useInsertionEffect(e,t)}var Be=W;var Ke=G;var ze=J;var d=k({pathname:"/",params:{},navigate:()=>{throw new Error("useNavigate must be used inside a <Router> component.")},basePath:""});function te(){let t=(typeof window<"u"?window.location.hash:"").replace(/^#\/?/,"/");return t===""?"/":t}var ne={pathname:te(),hash:typeof window<"u"?window.location.hash:""},D=new Set;function oe(){ne={pathname:te(),hash:typeof window<"u"?window.location.hash:""};for(let e of D)e()}typeof window<"u"&&window.addEventListener("hashchange",oe);function re(e){return D.add(e),()=>{D.delete(e)}}function L(){return ne}function se(e,t){let o=e.startsWith("#")?e:"#"+e;if(t?.replace){let n=window.location.pathname+window.location.search+o;window.history.replaceState(null,"",n)}else window.location.hash=o;oe()}function ae(e){let[t,o]=E(()=>L().pathname);C(()=>(o(L().pathname),re(()=>{o(L().pathname)})),[]);let n=h((...a)=>{se(a[0],a[1])},[]),r=b(()=>({pathname:t,params:{},navigate:n,basePath:""}),[t,n]);return m(d.Provider,{value:r},e.children)}function ie(e){let t=e.length;for(;t>1&&e.charCodeAt(t-1)===47;)t--;return t===e.length?e:e.slice(0,t)}function v(e,t,o){let n=o?.exact??!1,r=e==="/"?"/":ie(e),a=t==="/"?"/":ie(t);if(r==="/"){let x=a==="/";return n&&!x?null:{params:{},isExact:x,path:e,url:"/"}}let s=r.split("/").filter(Boolean),i=a.split("/").filter(Boolean),u=s[s.length-1]==="*";if(!u&&n&&i.length!==s.length||!u&&i.length<s.length)return null;let p={},y=[];for(let x=0;x<s.length;x++){let w=s[x];if(w==="*"){let I=i.slice(x).join("/");return p["*"]=I,{params:p,isExact:!0,path:e,url:"/"+i.join("/")}}if(x>=i.length)return null;let T=i[x];if(w.startsWith(":")){let I=w.slice(1);p[I]=decodeURIComponent(T),y.push(T);continue}if(w.toLowerCase()!==T.toLowerCase())return null;y.push(T)}let f="/"+y.join("/"),F=i.length===s.length;return n&&!F?null:{params:p,isExact:F,path:e,url:f}}function pe(e){let t=l(d),o=t.basePath+e.path,n=v(o,t.pathname,{exact:e.exact??!1}),r=b(()=>({pathname:t.pathname,params:{...t.params,...n?n.params:{}},navigate:t.navigate,basePath:n?n.url:t.basePath}),[t.pathname,t.navigate,t.params,t.basePath,n]);if(!n)return null;for(let s of Object.keys(t.params))s in r.params||(r.params[s]=t.params[s]);let a=e.component?m(e.component,{...r.params}):e.children;return m(d.Provider,{value:r},a)}function ue(e){let{to:t,className:o,activeClassName:n,exact:r,children:a,...s}=e,i=l(d),u=v(t,i.pathname,{exact:r??!1})!==null,p=h(((...f)=>{f[0].preventDefault(),i.navigate(t)}),[t,i.navigate]),y=[o,u?n:null].filter(Boolean).join(" ")||void 0;return m("a",{...s,href:"#"+t,onClick:p,className:y},a)}function ce(){return l(d)}function le(){return l(d).params}function fe(){return l(d).navigate}var de=8;function me(){let e=de;return de=e===8?16:8,e}var U=4,$=!1;var ye=[];function Ge(e){let t=U,o=$;U=me(),$=!0;try{e()}finally{U=t,$=o,Je()}}function Je(){let e=ye;ye=[];for(let t of e)t()}var xe=[];function V(){let e=xe;xe=[];for(let t of e)t()}function Xe(e){let t=e();V(),t&&typeof t.then=="function"&&t.then(()=>{V()})}function he(e){if(e.startsWith("//"))throw new Error(`[SpecifyJS] Protocol-relative URL rejected: "${e}". Use an explicit https:// prefix.`);if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||e.startsWith("data:"))return;let t;try{t=new URL(e,typeof window<"u"?window.location.href:void 0)}catch{return}if(t.protocol!=="https:"&&!(t.hostname==="localhost"||t.hostname==="127.0.0.1"))throw new Error(`[SpecifyJS] Insecure URL rejected: "${e}". SpecifyJS enforces HTTPS-only for all network requests. Use https:// or a relative URL. Localhost URLs are allowed for development.`)}function Y(e,t){let o=typeof e=="string"?e:e instanceof URL?e.href:e.url;return he(o),fetch(e,t)}var Pe=new Map;var Ze=!0;function Qe(e){Ze=e}function et(e){let t=e.match(/^s-(\d+)-(\d+)$/);if(!t||!t[1]||!t[2])return null;let o=parseInt(t[1],10),n=parseInt(t[2],10);for(let r of Pe.values())if(r.index===o)return{typeName:r.name,typeIndex:o,instanceId:n};return null}function tt(){return Pe}var A=k({flags:{},isEnabled:()=>!1,setFlag:()=>{},loading:!1});function Se(e){let[t,o]=E(()=>({...e.defaults})),[n,r]=E(!!e.url);C(()=>{if(!e.url)return;let u=!1;return r(!0),Y(e.url).then(p=>{if(!p.ok)throw new Error(`HTTP ${p.status}`);return p.json()}).then(p=>{if(!u&&typeof p=="object"&&p!==null){let y={};for(let f of Object.keys(p))f!=="__proto__"&&f!=="constructor"&&f!=="prototype"&&(y[f]=p[f]===!0);o(f=>({...f,...y}))}u||r(!1)}).catch(()=>{u||r(!1)}),()=>{u=!0}},[e.url]);let a=h(((...u)=>{let p=u[0];return t[p]===!0}),[t]),s=h(((...u)=>{let p=u[0],y=u[1];o(f=>({...f,[p]:y}))}),[]),i={flags:t,isEnabled:a,setFlag:s,loading:n};return m(A.Provider,{value:i},e.children)}function Ce(e){let{isEnabled:t}=l(A);return t(e.flag)?e.children:e.fallback??null}function ge(){return l(A)}export{Me as Children,P as Component,M as ErrorBoundary,Se as FeatureFlagProvider,Ce as FeatureGate,ve as Fragment,ue as Link,ze as Profiler,N as PureComponent,pe as Route,ae as Router,Ke as StrictMode,Be as Suspense,Xe as act,he as assertSecureUrl,Te as cloneElement,k as createContext,m as createElement,Ee as createFactory,ke as createRef,Re as forwardRef,tt as getComponentTypeTable,m as h,R as isValidElement,we as lazy,v as matchPath,be as memo,et as resolveComponentId,Y as secureFetch,Qe as setComponentIdsEnabled,Ge as startTransition,h as useCallback,l as useContext,Ve as useDebugValue,Ae as useDeferredValue,C as useEffect,ge as useFeatureFlags,Z as useHead,Ye as useId,Ue as useImperativeHandle,qe as useInsertionEffect,$e as useLayoutEffect,b as useMemo,fe as useNavigate,le as useParams,De as useReducer,O as useRef,ce as useRouter,E as useState,He as useSyncExternalStore,je as useTransition};
|
|
2
3
|
//# sourceMappingURL=specifyjs.esm.js.map
|