@almadar/ui 5.111.0 → 5.113.0
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/GameAudioProvider-CPGwD49P.d.cts +151 -0
- package/dist/GameAudioProvider-CPGwD49P.d.ts +151 -0
- package/dist/TraitProvider-YkK6tXDw.d.cts +236 -0
- package/dist/TraitProvider-YkK6tXDw.d.ts +236 -0
- package/dist/{providers/UISlotContext.d.ts → UISlotContext-C1FsU9GB.d.ts} +14 -10
- package/dist/UISlotContext-D8_SoDsD.d.cts +79 -0
- package/dist/UserContext-bziZwgFL.d.cts +278 -0
- package/dist/UserContext-bziZwgFL.d.ts +278 -0
- package/dist/avl/index.cjs +137 -18
- package/dist/avl/index.js +139 -20
- package/dist/avl-schema-parser-B8Onmfsu.d.cts +393 -0
- package/dist/avl-schema-parser-B8Onmfsu.d.ts +393 -0
- package/dist/cn-BkQrMR01.d.cts +295 -0
- package/dist/cn-CTEFm9PC.d.ts +295 -0
- package/dist/components/index.cjs +33 -6
- package/dist/components/index.d.cts +11225 -0
- package/dist/components/index.d.ts +11225 -6
- package/dist/components/index.js +33 -6
- package/dist/{lib/themeTokens.d.ts → context/index.d.cts} +13 -4
- package/dist/context/index.d.ts +62 -9
- package/dist/{types/event-bus-types.d.ts → event-bus-types-Bl78kokd.d.cts} +7 -6
- package/dist/event-bus-types-Bl78kokd.d.ts +65 -0
- package/dist/hooks/index.d.cts +995 -0
- package/dist/hooks/index.d.ts +994 -32
- package/dist/lib/drawable/three/index.cjs +11 -24
- package/dist/lib/drawable/three/index.d.cts +1485 -0
- package/dist/lib/drawable/three/index.d.ts +1484 -38
- package/dist/lib/drawable/three/index.js +11 -24
- package/dist/lib/index.d.cts +505 -0
- package/dist/lib/index.d.ts +504 -18
- package/dist/locales/index.d.cts +22 -0
- package/dist/locales/index.d.ts +7 -5
- package/dist/offline-executor-aRuNznZx.d.cts +520 -0
- package/dist/offline-executor-aRuNznZx.d.ts +520 -0
- package/dist/paintDispatch-DR942knx.d.cts +221 -0
- package/dist/paintDispatch-DR942knx.d.ts +221 -0
- package/dist/providers/index.cjs +33 -6
- package/dist/providers/index.d.cts +428 -0
- package/dist/providers/index.d.ts +427 -26
- package/dist/providers/index.js +33 -6
- package/dist/renderer/index.cjs +1 -1
- package/dist/renderer/index.d.cts +343 -0
- package/dist/renderer/index.d.ts +337 -22
- package/dist/renderer/index.js +1 -1
- package/dist/runtime/index.cjs +137 -18
- package/dist/runtime/index.d.cts +426 -0
- package/dist/runtime/index.d.ts +421 -16
- package/dist/runtime/index.js +139 -20
- package/dist/useEventBus-CQWyAWpK.d.ts +65 -0
- package/dist/useEventBus-Ckr4wqW3.d.cts +65 -0
- package/dist/{hooks/useUISlots.d.ts → useUISlots-BesZYMks.d.cts} +16 -14
- package/dist/useUISlots-BesZYMks.d.ts +216 -0
- package/package.json +11 -11
- package/dist/avl/index.d.cts +0 -1853
- package/dist/avl/index.d.ts +0 -64
- package/dist/components/avl/atoms/Avl3DLabel.d.ts +0 -23
- package/dist/components/avl/atoms/Avl3DTooltip.d.ts +0 -25
- package/dist/components/avl/atoms/AvlApplication.d.ts +0 -8
- package/dist/components/avl/atoms/AvlBinding.d.ts +0 -12
- package/dist/components/avl/atoms/AvlBindingRef.d.ts +0 -7
- package/dist/components/avl/atoms/AvlEffect.d.ts +0 -10
- package/dist/components/avl/atoms/AvlEntity.d.ts +0 -9
- package/dist/components/avl/atoms/AvlEvent.d.ts +0 -7
- package/dist/components/avl/atoms/AvlField.d.ts +0 -10
- package/dist/components/avl/atoms/AvlFieldType.d.ts +0 -8
- package/dist/components/avl/atoms/AvlGuard.d.ts +0 -7
- package/dist/components/avl/atoms/AvlLiteral.d.ts +0 -7
- package/dist/components/avl/atoms/AvlOperator.d.ts +0 -8
- package/dist/components/avl/atoms/AvlOrbital.d.ts +0 -11
- package/dist/components/avl/atoms/AvlPage.d.ts +0 -7
- package/dist/components/avl/atoms/AvlPersistence.d.ts +0 -8
- package/dist/components/avl/atoms/AvlSExpr.d.ts +0 -8
- package/dist/components/avl/atoms/AvlState.d.ts +0 -15
- package/dist/components/avl/atoms/AvlTrait.d.ts +0 -13
- package/dist/components/avl/atoms/AvlTransition.d.ts +0 -18
- package/dist/components/avl/atoms/index.d.ts +0 -24
- package/dist/components/avl/hooks/useCanvasDnd.d.ts +0 -155
- package/dist/components/avl/lib/avl-3d-layout.d.ts +0 -116
- package/dist/components/avl/lib/avl-behavior-compose-converter.d.ts +0 -55
- package/dist/components/avl/lib/avl-elk-layout.d.ts +0 -55
- package/dist/components/avl/lib/avl-flow-converter.d.ts +0 -17
- package/dist/components/avl/lib/avl-layout.d.ts +0 -32
- package/dist/components/avl/lib/avl-preview-converter.d.ts +0 -71
- package/dist/components/avl/lib/avl-schema-parser.d.ts +0 -128
- package/dist/components/avl/lib/avl-story-schemas.d.ts +0 -34
- package/dist/components/avl/lib/avl-zoom-band.d.ts +0 -19
- package/dist/components/avl/lib/avl-zoom-state.d.ts +0 -72
- package/dist/components/avl/lib/derive-edit-focus.d.ts +0 -8
- package/dist/components/avl/lib/wire-validation.d.ts +0 -30
- package/dist/components/avl/molecules/Avl3DCrossWire.d.ts +0 -22
- package/dist/components/avl/molecules/Avl3DEntityCore.d.ts +0 -26
- package/dist/components/avl/molecules/Avl3DExprTree.d.ts +0 -21
- package/dist/components/avl/molecules/Avl3DOrbitalNode.d.ts +0 -29
- package/dist/components/avl/molecules/Avl3DStateNode.d.ts +0 -34
- package/dist/components/avl/molecules/Avl3DTransitionArc.d.ts +0 -38
- package/dist/components/avl/molecules/AvlBackwardEdge.d.ts +0 -8
- package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +0 -61
- package/dist/components/avl/molecules/AvlBindingEdge.d.ts +0 -9
- package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +0 -20
- package/dist/components/avl/molecules/AvlEmitListen.d.ts +0 -16
- package/dist/components/avl/molecules/AvlEventWireEdge.d.ts +0 -15
- package/dist/components/avl/molecules/AvlExprTree.d.ts +0 -13
- package/dist/components/avl/molecules/AvlOrbitalNode.d.ts +0 -12
- package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +0 -20
- package/dist/components/avl/molecules/AvlPageEdge.d.ts +0 -8
- package/dist/components/avl/molecules/AvlSlotMap.d.ts +0 -18
- package/dist/components/avl/molecules/AvlStateMachine.d.ts +0 -22
- package/dist/components/avl/molecules/AvlSwimLane.d.ts +0 -10
- package/dist/components/avl/molecules/AvlTransitionEdge.d.ts +0 -17
- package/dist/components/avl/molecules/AvlTransitionLane.d.ts +0 -18
- package/dist/components/avl/molecules/BehaviorComposeNode.d.ts +0 -13
- package/dist/components/avl/molecules/BehaviorView.d.ts +0 -12
- package/dist/components/avl/molecules/DetailView.d.ts +0 -13
- package/dist/components/avl/molecules/EventFlowEdge.d.ts +0 -13
- package/dist/components/avl/molecules/MiniStateMachine.d.ts +0 -14
- package/dist/components/avl/molecules/ModuleCard.d.ts +0 -22
- package/dist/components/avl/molecules/OrbPreviewNode.d.ts +0 -38
- package/dist/components/avl/molecules/SystemNode.d.ts +0 -12
- package/dist/components/avl/molecules/TraitCardNode.d.ts +0 -33
- package/dist/components/avl/molecules/index.d.ts +0 -38
- package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +0 -19
- package/dist/components/avl/organisms/Avl3DEffects.d.ts +0 -18
- package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +0 -23
- package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +0 -19
- package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +0 -17
- package/dist/components/avl/organisms/Avl3DViewer.d.ts +0 -40
- package/dist/components/avl/organisms/AvlClickTarget.d.ts +0 -31
- package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +0 -41
- package/dist/components/avl/organisms/AvlLegend.d.ts +0 -15
- package/dist/components/avl/organisms/AvlOrbitalsCosmicZoom.d.ts +0 -54
- package/dist/components/avl/organisms/AvlTraitScene.d.ts +0 -17
- package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +0 -20
- package/dist/components/avl/organisms/AvlTransitionScene.d.ts +0 -13
- package/dist/components/avl/organisms/FlowCanvas.d.ts +0 -134
- package/dist/components/avl/organisms/OrbInspector.d.ts +0 -45
- package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +0 -16
- package/dist/components/avl/organisms/ZoomLegend.d.ts +0 -10
- package/dist/components/avl/organisms/index.d.ts +0 -19
- package/dist/components/avl/providers/avl-3d-context.d.ts +0 -32
- package/dist/components/avl/types/avl-atom-types.d.ts +0 -53
- package/dist/components/avl/types/avl-behavior-compose-types.d.ts +0 -120
- package/dist/components/avl/types/avl-canvas-types.d.ts +0 -39
- package/dist/components/avl/types/avl-preview-types.d.ts +0 -240
- package/dist/components/core/atoms/Aside.d.ts +0 -15
- package/dist/components/core/atoms/AtlasImage.d.ts +0 -58
- package/dist/components/core/atoms/Avatar.d.ts +0 -61
- package/dist/components/core/atoms/Badge.d.ts +0 -29
- package/dist/components/core/atoms/Box.d.ts +0 -68
- package/dist/components/core/atoms/Button.d.ts +0 -33
- package/dist/components/core/atoms/Card.d.ts +0 -34
- package/dist/components/core/atoms/Center.d.ts +0 -33
- package/dist/components/core/atoms/Checkbox.d.ts +0 -14
- package/dist/components/core/atoms/ConditionalWrapper.d.ts +0 -69
- package/dist/components/core/atoms/ConfettiEffect.d.ts +0 -19
- package/dist/components/core/atoms/DayCell.d.ts +0 -22
- package/dist/components/core/atoms/Dialog.d.ts +0 -18
- package/dist/components/core/atoms/Divider.d.ts +0 -29
- package/dist/components/core/atoms/FilterPill.d.ts +0 -30
- package/dist/components/core/atoms/FlipContainer.d.ts +0 -21
- package/dist/components/core/atoms/GameIcon.d.ts +0 -19
- package/dist/components/core/atoms/Icon.d.ts +0 -57
- package/dist/components/core/atoms/InfiniteScrollSentinel.d.ts +0 -24
- package/dist/components/core/atoms/Input.d.ts +0 -39
- package/dist/components/core/atoms/Label.d.ts +0 -12
- package/dist/components/core/atoms/LawReferenceTooltip.d.ts +0 -48
- package/dist/components/core/atoms/Overlay.d.ts +0 -17
- package/dist/components/core/atoms/ProgressBar.d.ts +0 -63
- package/dist/components/core/atoms/Radio.d.ts +0 -35
- package/dist/components/core/atoms/RangeSlider.d.ts +0 -34
- package/dist/components/core/atoms/SectionHeader.d.ts +0 -14
- package/dist/components/core/atoms/Select.d.ts +0 -49
- package/dist/components/core/atoms/Spacer.d.ts +0 -25
- package/dist/components/core/atoms/Sparkline.d.ts +0 -30
- package/dist/components/core/atoms/Spinner.d.ts +0 -10
- package/dist/components/core/atoms/Stack.d.ts +0 -67
- package/dist/components/core/atoms/StatusDot.d.ts +0 -16
- package/dist/components/core/atoms/Switch.d.ts +0 -12
- package/dist/components/core/atoms/TextHighlight.d.ts +0 -54
- package/dist/components/core/atoms/Textarea.d.ts +0 -17
- package/dist/components/core/atoms/ThemeToggle.d.ts +0 -33
- package/dist/components/core/atoms/TimeSlotCell.d.ts +0 -23
- package/dist/components/core/atoms/TraitFrame.d.ts +0 -54
- package/dist/components/core/atoms/TrendIndicator.d.ts +0 -20
- package/dist/components/core/atoms/TypewriterText.d.ts +0 -20
- package/dist/components/core/atoms/Typography.d.ts +0 -39
- package/dist/components/core/atoms/index.d.ts +0 -52
- package/dist/components/core/atoms/svg/SvgBranch.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgConnection.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgFlow.d.ts +0 -14
- package/dist/components/core/atoms/svg/SvgGrid.d.ts +0 -18
- package/dist/components/core/atoms/svg/SvgLobe.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgMesh.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgMorph.d.ts +0 -15
- package/dist/components/core/atoms/svg/SvgNode.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgPulse.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgRing.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgShield.d.ts +0 -15
- package/dist/components/core/atoms/svg/SvgStack.d.ts +0 -17
- package/dist/components/core/atoms/svg/index.d.ts +0 -12
- package/dist/components/core/atoms/types.d.ts +0 -47
- package/dist/components/core/molecules/Accordion.d.ts +0 -71
- package/dist/components/core/molecules/ActivationBlock.d.ts +0 -22
- package/dist/components/core/molecules/Alert.d.ts +0 -25
- package/dist/components/core/molecules/AnimatedCounter.d.ts +0 -18
- package/dist/components/core/molecules/AssetPicker.d.ts +0 -21
- package/dist/components/core/molecules/BloomQuizBlock.d.ts +0 -25
- package/dist/components/core/molecules/BranchingLogicBuilder.d.ts +0 -33
- package/dist/components/core/molecules/Breadcrumb.d.ts +0 -55
- package/dist/components/core/molecules/ButtonGroup.d.ts +0 -77
- package/dist/components/core/molecules/CalendarGrid.d.ts +0 -61
- package/dist/components/core/molecules/Card.d.ts +0 -58
- package/dist/components/core/molecules/Carousel.d.ts +0 -42
- package/dist/components/core/molecules/Chart.d.ts +0 -106
- package/dist/components/core/molecules/ChartLegend.d.ts +0 -20
- package/dist/components/core/molecules/Coachmark.d.ts +0 -47
- package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -49
- package/dist/components/core/molecules/ConnectionBlock.d.ts +0 -18
- package/dist/components/core/molecules/Container.d.ts +0 -30
- package/dist/components/core/molecules/ContentRenderer.d.ts +0 -23
- package/dist/components/core/molecules/DataGrid.d.ts +0 -117
- package/dist/components/core/molecules/DataList.d.ts +0 -129
- package/dist/components/core/molecules/DateRangePicker.d.ts +0 -56
- package/dist/components/core/molecules/DateRangeSelector.d.ts +0 -21
- package/dist/components/core/molecules/DocBreadcrumb.d.ts +0 -20
- package/dist/components/core/molecules/DocPagination.d.ts +0 -21
- package/dist/components/core/molecules/DocSearch.d.ts +0 -22
- package/dist/components/core/molecules/DocSidebar.d.ts +0 -24
- package/dist/components/core/molecules/DocTOC.d.ts +0 -24
- package/dist/components/core/molecules/DocumentViewer.d.ts +0 -61
- package/dist/components/core/molecules/Drawer.d.ts +0 -47
- package/dist/components/core/molecules/EdgeDecoration.d.ts +0 -36
- package/dist/components/core/molecules/EmptyState.d.ts +0 -29
- package/dist/components/core/molecules/ErrorBoundary.d.ts +0 -54
- package/dist/components/core/molecules/ErrorState.d.ts +0 -14
- package/dist/components/core/molecules/FeatureGrid.d.ts +0 -19
- package/dist/components/core/molecules/FileTree.d.ts +0 -37
- package/dist/components/core/molecules/FilterGroup.d.ts +0 -61
- package/dist/components/core/molecules/Flex.d.ts +0 -43
- package/dist/components/core/molecules/FlipCard.d.ts +0 -24
- package/dist/components/core/molecules/FloatingActionButton.d.ts +0 -83
- package/dist/components/core/molecules/FormField.d.ts +0 -16
- package/dist/components/core/molecules/FormSection.d.ts +0 -39
- package/dist/components/core/molecules/FormSectionHeader.d.ts +0 -31
- package/dist/components/core/molecules/GradientDivider.d.ts +0 -15
- package/dist/components/core/molecules/GraphCanvas.d.ts +0 -83
- package/dist/components/core/molecules/GraphView.d.ts +0 -45
- package/dist/components/core/molecules/Grid.d.ts +0 -54
- package/dist/components/core/molecules/GridPicker.d.ts +0 -44
- package/dist/components/core/molecules/Header.d.ts +0 -113
- package/dist/components/core/molecules/IconPicker.d.ts +0 -18
- package/dist/components/core/molecules/InputGroup.d.ts +0 -24
- package/dist/components/core/molecules/JazariStateMachine.d.ts +0 -34
- package/dist/components/core/molecules/JsonTreeEditor.d.ts +0 -13
- package/dist/components/core/molecules/Lightbox.d.ts +0 -26
- package/dist/components/core/molecules/LikertScale.d.ts +0 -34
- package/dist/components/core/molecules/LineChart.d.ts +0 -35
- package/dist/components/core/molecules/LoadingState.d.ts +0 -7
- package/dist/components/core/molecules/MapView.d.ts +0 -87
- package/dist/components/core/molecules/MatrixQuestion.d.ts +0 -35
- package/dist/components/core/molecules/Menu.d.ts +0 -44
- package/dist/components/core/molecules/Meter.d.ts +0 -52
- package/dist/components/core/molecules/Modal.d.ts +0 -36
- package/dist/components/core/molecules/Navigation.d.ts +0 -67
- package/dist/components/core/molecules/NodeSlotEditor.d.ts +0 -17
- package/dist/components/core/molecules/NumberStepper.d.ts +0 -28
- package/dist/components/core/molecules/OnboardingSpotlight.d.ts +0 -27
- package/dist/components/core/molecules/OptionConstraintGroup.d.ts +0 -44
- package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -48
- package/dist/components/core/molecules/PageHeader.d.ts +0 -60
- package/dist/components/core/molecules/Pagination.d.ts +0 -71
- package/dist/components/core/molecules/Popover.d.ts +0 -39
- package/dist/components/core/molecules/PositionedCanvas.d.ts +0 -40
- package/dist/components/core/molecules/ProgressDots.d.ts +0 -24
- package/dist/components/core/molecules/PropertyInspector.d.ts +0 -38
- package/dist/components/core/molecules/PullToRefresh.d.ts +0 -22
- package/dist/components/core/molecules/QrScanner.d.ts +0 -24
- package/dist/components/core/molecules/QuizBlock.d.ts +0 -20
- package/dist/components/core/molecules/ReflectionBlock.d.ts +0 -23
- package/dist/components/core/molecules/RelationSelect.d.ts +0 -48
- package/dist/components/core/molecules/RepeatableFormSection.d.ts +0 -60
- package/dist/components/core/molecules/ReplyTree.d.ts +0 -46
- package/dist/components/core/molecules/RichBlockEditor.d.ts +0 -43
- package/dist/components/core/molecules/ScaledDiagram.d.ts +0 -20
- package/dist/components/core/molecules/SearchInput.d.ts +0 -60
- package/dist/components/core/molecules/Section.d.ts +0 -43
- package/dist/components/core/molecules/SidePanel.d.ts +0 -53
- package/dist/components/core/molecules/Sidebar.d.ts +0 -72
- package/dist/components/core/molecules/SignaturePad.d.ts +0 -46
- package/dist/components/core/molecules/SimpleGrid.d.ts +0 -27
- package/dist/components/core/molecules/Skeleton.d.ts +0 -35
- package/dist/components/core/molecules/SocialProof.d.ts +0 -25
- package/dist/components/core/molecules/SortableList.d.ts +0 -19
- package/dist/components/core/molecules/Split.d.ts +0 -41
- package/dist/components/core/molecules/StarRating.d.ts +0 -27
- package/dist/components/core/molecules/StatDisplay.d.ts +0 -58
- package/dist/components/core/molecules/SwipeableRow.d.ts +0 -26
- package/dist/components/core/molecules/TableView.d.ts +0 -111
- package/dist/components/core/molecules/Tabs.d.ts +0 -60
- package/dist/components/core/molecules/TagInput.d.ts +0 -52
- package/dist/components/core/molecules/Toast.d.ts +0 -36
- package/dist/components/core/molecules/Tooltip.d.ts +0 -25
- package/dist/components/core/molecules/UploadDropZone.d.ts +0 -28
- package/dist/components/core/molecules/VersionDiff.d.ts +0 -62
- package/dist/components/core/molecules/ViolationAlert.d.ts +0 -46
- package/dist/components/core/molecules/VoteStack.d.ts +0 -35
- package/dist/components/core/molecules/WizardContainer.d.ts +0 -166
- package/dist/components/core/molecules/WizardNavigation.d.ts +0 -61
- package/dist/components/core/molecules/WizardProgress.d.ts +0 -45
- package/dist/components/core/molecules/index.d.ts +0 -138
- package/dist/components/core/molecules/lessonSegmentUtils.d.ts +0 -18
- package/dist/components/core/molecules/markdown/CodeBlock.d.ts +0 -108
- package/dist/components/core/molecules/markdown/MarkdownContent.d.ts +0 -26
- package/dist/components/core/molecules/markdown/index.d.ts +0 -2
- package/dist/components/core/molecules/parseLessonSegments.d.ts +0 -44
- package/dist/components/core/molecules/useDataDnd.d.ts +0 -63
- package/dist/components/core/organisms/CardGrid.d.ts +0 -84
- package/dist/components/core/organisms/ChatBar.d.ts +0 -31
- package/dist/components/core/organisms/CodeRunnerPanel.d.ts +0 -42
- package/dist/components/core/organisms/ComponentPatterns.d.ts +0 -185
- package/dist/components/core/organisms/CustomPattern.d.ts +0 -105
- package/dist/components/core/organisms/DataTable.d.ts +0 -79
- package/dist/components/core/organisms/DetailPanel.d.ts +0 -80
- package/dist/components/core/organisms/DrawerSlot.d.ts +0 -42
- package/dist/components/core/organisms/Form.d.ts +0 -214
- package/dist/components/core/organisms/LayoutPatterns.d.ts +0 -108
- package/dist/components/core/organisms/List.d.ts +0 -81
- package/dist/components/core/organisms/MasterDetail.d.ts +0 -35
- package/dist/components/core/organisms/MediaGallery.d.ts +0 -63
- package/dist/components/core/organisms/ModalSlot.d.ts +0 -38
- package/dist/components/core/organisms/NotifyListener.d.ts +0 -15
- package/dist/components/core/organisms/SegmentRenderer.d.ts +0 -38
- package/dist/components/core/organisms/StatCard.d.ts +0 -65
- package/dist/components/core/organisms/StateMachineView.d.ts +0 -45
- package/dist/components/core/organisms/SubagentTracePanel.d.ts +0 -50
- package/dist/components/core/organisms/Timeline.d.ts +0 -71
- package/dist/components/core/organisms/ToastSlot.d.ts +0 -41
- package/dist/components/core/organisms/UISlotRenderer.d.ts +0 -116
- package/dist/components/core/organisms/book/index.d.ts +0 -7
- package/dist/components/core/organisms/book/types.d.ts +0 -62
- package/dist/components/core/organisms/component-registry.generated.d.ts +0 -9
- package/dist/components/core/organisms/debug/RuntimeDebugger.d.ts +0 -29
- package/dist/components/core/organisms/debug/WalkMinimap.d.ts +0 -17
- package/dist/components/core/organisms/debug/hooks/useDebugData.d.ts +0 -25
- package/dist/components/core/organisms/debug/index.d.ts +0 -13
- package/dist/components/core/organisms/debug/tabs/EntitiesTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/EventDispatcherTab.d.ts +0 -18
- package/dist/components/core/organisms/debug/tabs/EventFlowTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/GuardsPanel.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/ServerBridgeTab.d.ts +0 -20
- package/dist/components/core/organisms/debug/tabs/TicksTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/TraitsTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/TransitionTimeline.d.ts +0 -19
- package/dist/components/core/organisms/debug/tabs/VerificationTab.d.ts +0 -17
- package/dist/components/core/organisms/index.d.ts +0 -33
- package/dist/components/core/organisms/layout/DashboardGrid.d.ts +0 -33
- package/dist/components/core/organisms/layout/MasterDetailLayout.d.ts +0 -32
- package/dist/components/core/organisms/layout/SplitPane.d.ts +0 -34
- package/dist/components/core/organisms/layout/TabbedContainer.d.ts +0 -42
- package/dist/components/core/organisms/layout/index.d.ts +0 -9
- package/dist/components/core/organisms/marketing-types.d.ts +0 -8
- package/dist/components/core/organisms/trace-edit-focus.d.ts +0 -14
- package/dist/components/core/organisms/types.d.ts +0 -72
- package/dist/components/core/templates/CounterTemplate.d.ts +0 -51
- package/dist/components/core/templates/DashboardLayout.d.ts +0 -110
- package/dist/components/core/templates/GenericAppTemplate.d.ts +0 -24
- package/dist/components/core/templates/index.d.ts +0 -10
- package/dist/components/core/templates/types.d.ts +0 -35
- package/dist/components/game/atoms/ChoiceButton.d.ts +0 -29
- package/dist/components/game/atoms/ControlButton.d.ts +0 -35
- package/dist/components/game/atoms/DialogueBubble.d.ts +0 -26
- package/dist/components/game/atoms/DrawShape.d.ts +0 -50
- package/dist/components/game/atoms/DrawSprite.d.ts +0 -47
- package/dist/components/game/atoms/DrawText.d.ts +0 -31
- package/dist/components/game/atoms/GameAudioToggle.d.ts +0 -34
- package/dist/components/game/atoms/HealthBar.d.ts +0 -32
- package/dist/components/game/atoms/MiniMap.d.ts +0 -40
- package/dist/components/game/atoms/ScoreDisplay.d.ts +0 -25
- package/dist/components/game/atoms/StateIndicator.d.ts +0 -29
- package/dist/components/game/atoms/TimerDisplay.d.ts +0 -22
- package/dist/components/game/molecules/ActionPalette.d.ts +0 -34
- package/dist/components/game/molecules/ActionTile.d.ts +0 -30
- package/dist/components/game/molecules/Canvas.d.ts +0 -96
- package/dist/components/game/molecules/Canvas2D.d.ts +0 -120
- package/dist/components/game/molecules/ControlGrid.d.ts +0 -49
- package/dist/components/game/molecules/DrawShapeLayer.d.ts +0 -19
- package/dist/components/game/molecules/DrawSpriteLayer.d.ts +0 -21
- package/dist/components/game/molecules/DrawTextLayer.d.ts +0 -22
- package/dist/components/game/molecules/GameHud.d.ts +0 -52
- package/dist/components/game/molecules/GameMenu.d.ts +0 -42
- package/dist/components/game/molecules/SequenceBar.d.ts +0 -51
- package/dist/components/game/molecules/StatBadge.d.ts +0 -39
- package/dist/components/game/molecules/StateGraph.d.ts +0 -38
- package/dist/components/game/molecules/StateJsonView.d.ts +0 -37
- package/dist/components/game/molecules/StateNode.d.ts +0 -31
- package/dist/components/game/molecules/TraitSlot.d.ts +0 -99
- package/dist/components/game/molecules/TraitStateViewer.d.ts +0 -52
- package/dist/components/game/molecules/TransitionArrow.d.ts +0 -31
- package/dist/components/game/molecules/index.d.ts +0 -39
- package/dist/components/game/patterns.d.ts +0 -20
- package/dist/components/game/templates/GameShell.d.ts +0 -35
- package/dist/components/learning/atoms/LearningCanvas.d.ts +0 -80
- package/dist/components/learning/molecules/AlgorithmCanvas.d.ts +0 -58
- package/dist/components/learning/molecules/BiologyCanvas.d.ts +0 -47
- package/dist/components/learning/molecules/ChemistryCanvas.d.ts +0 -55
- package/dist/components/learning/molecules/MathCanvas.d.ts +0 -61
- package/dist/components/learning/molecules/PhysicsCanvas.d.ts +0 -54
- package/dist/components/marketing/atoms/AnimatedCounter.d.ts +0 -20
- package/dist/components/marketing/atoms/AnimatedGraphic.d.ts +0 -32
- package/dist/components/marketing/atoms/AnimatedReveal.d.ts +0 -26
- package/dist/components/marketing/atoms/ContentSection.d.ts +0 -16
- package/dist/components/marketing/atoms/MarketingStatCard.d.ts +0 -13
- package/dist/components/marketing/atoms/PatternTile.d.ts +0 -41
- package/dist/components/marketing/molecules/ArticleSection.d.ts +0 -18
- package/dist/components/marketing/molecules/CTABanner.d.ts +0 -26
- package/dist/components/marketing/molecules/CaseStudyCard.d.ts +0 -24
- package/dist/components/marketing/molecules/CommunityLinks.d.ts +0 -28
- package/dist/components/marketing/molecules/FeatureCard.d.ts +0 -26
- package/dist/components/marketing/molecules/GeometricPattern.d.ts +0 -33
- package/dist/components/marketing/molecules/HeroSection.d.ts +0 -28
- package/dist/components/marketing/molecules/InstallBox.d.ts +0 -16
- package/dist/components/marketing/molecules/MarketingFooter.d.ts +0 -29
- package/dist/components/marketing/molecules/PricingCard.d.ts +0 -19
- package/dist/components/marketing/molecules/PricingGrid.d.ts +0 -13
- package/dist/components/marketing/molecules/PullQuote.d.ts +0 -14
- package/dist/components/marketing/molecules/ServiceCatalog.d.ts +0 -19
- package/dist/components/marketing/molecules/ShowcaseCard.d.ts +0 -18
- package/dist/components/marketing/molecules/SplitSection.d.ts +0 -19
- package/dist/components/marketing/molecules/StatsGrid.d.ts +0 -18
- package/dist/components/marketing/molecules/StepFlow.d.ts +0 -21
- package/dist/components/marketing/molecules/TagCloud.d.ts +0 -18
- package/dist/components/marketing/molecules/TeamCard.d.ts +0 -19
- package/dist/components/marketing/organisms/CaseStudyOrganism.d.ts +0 -29
- package/dist/components/marketing/organisms/FeatureGridOrganism.d.ts +0 -30
- package/dist/components/marketing/organisms/HeroOrganism.d.ts +0 -42
- package/dist/components/marketing/organisms/PricingOrganism.d.ts +0 -33
- package/dist/components/marketing/organisms/ShowcaseOrganism.d.ts +0 -34
- package/dist/components/marketing/organisms/StatsOrganism.d.ts +0 -23
- package/dist/components/marketing/organisms/StepFlowOrganism.d.ts +0 -29
- package/dist/components/marketing/organisms/TeamOrganism.d.ts +0 -28
- package/dist/components/marketing/organisms/book/BookChapterView.d.ts +0 -21
- package/dist/components/marketing/organisms/book/BookCoverPage.d.ts +0 -21
- package/dist/components/marketing/organisms/book/BookNavBar.d.ts +0 -19
- package/dist/components/marketing/organisms/book/BookTableOfContents.d.ts +0 -20
- package/dist/components/marketing/organisms/book/BookViewer.d.ts +0 -31
- package/dist/components/marketing/templates/AboutPageTemplate.d.ts +0 -53
- package/dist/components/marketing/templates/AuthLayout.d.ts +0 -15
- package/dist/components/marketing/templates/FeatureDetailPageTemplate.d.ts +0 -37
- package/dist/components/marketing/templates/LandingPageTemplate.d.ts +0 -70
- package/dist/components/marketing/templates/PricingPageTemplate.d.ts +0 -44
- package/dist/hooks/useAgentChat.d.ts +0 -105
- package/dist/hooks/useAlmadarDndCollision.d.ts +0 -34
- package/dist/hooks/useAuthContext.d.ts +0 -25
- package/dist/hooks/useCamera.d.ts +0 -57
- package/dist/hooks/useCanvasGestures.d.ts +0 -44
- package/dist/hooks/useClientEffects.d.ts +0 -88
- package/dist/hooks/useCompile.d.ts +0 -18
- package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
- package/dist/hooks/useDragReorder.d.ts +0 -26
- package/dist/hooks/useDraggable.d.ts +0 -25
- package/dist/hooks/useDropZone.d.ts +0 -23
- package/dist/hooks/useEventBus.d.ts +0 -99
- package/dist/hooks/useExtensions.d.ts +0 -32
- package/dist/hooks/useFileEditor.d.ts +0 -32
- package/dist/hooks/useFileSystem.d.ts +0 -50
- package/dist/hooks/useGameAudio.d.ts +0 -47
- package/dist/hooks/useGitHub.d.ts +0 -58
- package/dist/hooks/useImageCache.d.ts +0 -16
- package/dist/hooks/useInfiniteScroll.d.ts +0 -13
- package/dist/hooks/useLongPress.d.ts +0 -16
- package/dist/hooks/useOrbitalHistory.d.ts +0 -39
- package/dist/hooks/usePreview.d.ts +0 -57
- package/dist/hooks/usePullToRefresh.d.ts +0 -25
- package/dist/hooks/useQuerySingleton.d.ts +0 -79
- package/dist/hooks/useRenderInterpolation.d.ts +0 -33
- package/dist/hooks/useResolvedSchema.d.ts +0 -45
- package/dist/hooks/useSharedEntityStore.d.ts +0 -53
- package/dist/hooks/useSwipeGesture.d.ts +0 -26
- package/dist/hooks/useTapReveal.d.ts +0 -32
- package/dist/hooks/useTraitStateMachine.d.ts +0 -136
- package/dist/hooks/useTranslate.d.ts +0 -35
- package/dist/hooks/useUIEvents.d.ts +0 -41
- package/dist/hooks/useUnitSpriteAtlas.d.ts +0 -24
- package/dist/hooks/useValidation.d.ts +0 -46
- package/dist/lib/api-client.d.ts +0 -43
- package/dist/lib/atlasSlice.d.ts +0 -58
- package/dist/lib/boardEntity.d.ts +0 -44
- package/dist/lib/client-effect-executor.d.ts +0 -57
- package/dist/lib/cn.d.ts +0 -6
- package/dist/lib/createClientEffectHandlers.d.ts +0 -42
- package/dist/lib/data-resolver.d.ts +0 -55
- package/dist/lib/debug.d.ts +0 -36
- package/dist/lib/debugRegistry.d.ts +0 -30
- package/dist/lib/debugUtils.d.ts +0 -27
- package/dist/lib/drawable/contract.d.ts +0 -68
- package/dist/lib/drawable/hitTest.d.ts +0 -23
- package/dist/lib/drawable/paintDispatch.d.ts +0 -22
- package/dist/lib/drawable/projector.d.ts +0 -14
- package/dist/lib/drawable/projector3d.d.ts +0 -20
- package/dist/lib/drawable/three/Camera3D.d.ts +0 -60
- package/dist/lib/drawable/three/Canvas3DErrorBoundary.d.ts +0 -51
- package/dist/lib/drawable/three/Canvas3DHost.d.ts +0 -178
- package/dist/lib/drawable/three/Canvas3DLoadingState.d.ts +0 -44
- package/dist/lib/drawable/three/Drawable3D.d.ts +0 -20
- package/dist/lib/drawable/three/GameCamera3D.d.ts +0 -16
- package/dist/lib/drawable/three/Lighting3D.d.ts +0 -55
- package/dist/lib/drawable/three/ModelLoader.d.ts +0 -52
- package/dist/lib/drawable/three/Scene3D.d.ts +0 -37
- package/dist/lib/drawable/three/game3dTheme.d.ts +0 -14
- package/dist/lib/drawable/three/hooks/useAssetLoader.d.ts +0 -58
- package/dist/lib/drawable/three/hooks/useGameCanvas3DEvents.d.ts +0 -124
- package/dist/lib/drawable/three/hooks/useRaycaster.d.ts +0 -86
- package/dist/lib/drawable/three/hooks/useSceneGraph.d.ts +0 -67
- package/dist/lib/drawable/three/hooks/useThree.d.ts +0 -58
- package/dist/lib/drawable/three/lib/AssetLoader.d.ts +0 -80
- package/dist/lib/drawable/three/lib/culling.d.ts +0 -134
- package/dist/lib/drawable/three/lib/grid3D.d.ts +0 -154
- package/dist/lib/drawable/three/mesh3d.d.ts +0 -28
- package/dist/lib/editorUtils.d.ts +0 -114
- package/dist/lib/embedded-traits.d.ts +0 -39
- package/dist/lib/entityDebug.d.ts +0 -39
- package/dist/lib/fn-form-lambda.d.ts +0 -27
- package/dist/lib/game.d.ts +0 -92
- package/dist/lib/gameShared.d.ts +0 -18
- package/dist/lib/getNestedValue.d.ts +0 -34
- package/dist/lib/guardRegistry.d.ts +0 -33
- package/dist/lib/iconFamily.d.ts +0 -41
- package/dist/lib/imageCache.d.ts +0 -9
- package/dist/lib/init.d.ts +0 -14
- package/dist/lib/isometric.d.ts +0 -121
- package/dist/lib/isometricTypes.d.ts +0 -141
- package/dist/lib/jazari/index.d.ts +0 -5
- package/dist/lib/jazari/layout.d.ts +0 -31
- package/dist/lib/jazari/svg-paths.d.ts +0 -61
- package/dist/lib/jazari/types.d.ts +0 -91
- package/dist/lib/makeAsset.d.ts +0 -5
- package/dist/lib/mechanics.d.ts +0 -4
- package/dist/lib/offline-executor.d.ts +0 -239
- package/dist/lib/orbitalsByTrait.d.ts +0 -34
- package/dist/lib/painter2d.d.ts +0 -81
- package/dist/lib/parseContentSegments.d.ts +0 -42
- package/dist/lib/pattern-resolver.d.ts +0 -88
- package/dist/lib/perf.d.ts +0 -32
- package/dist/lib/physicsPresets.d.ts +0 -4
- package/dist/lib/physicsTypes.d.ts +0 -43
- package/dist/lib/prepareSchemaForPreview.d.ts +0 -71
- package/dist/lib/puzzleObject.d.ts +0 -41
- package/dist/lib/slot-definitions.d.ts +0 -33
- package/dist/lib/spriteAnimation.d.ts +0 -85
- package/dist/lib/spriteAnimationTypes.d.ts +0 -72
- package/dist/lib/spriteSheetConstants.d.ts +0 -16
- package/dist/lib/tickRegistry.d.ts +0 -40
- package/dist/lib/trait-binding-resolver.d.ts +0 -57
- package/dist/lib/traitRegistry.d.ts +0 -34
- package/dist/lib/verificationRegistry.d.ts +0 -97
- package/dist/lib/visualizer/browser.d.ts +0 -48
- package/dist/lib/visualizer/index.d.ts +0 -144
- package/dist/lib/webPainter2d.d.ts +0 -7
- package/dist/lib/wrapCallbackForEvent.d.ts +0 -16
- package/dist/marketing/index.d.cts +0 -1067
- package/dist/marketing/index.d.ts +0 -72
- package/dist/providers/CurrentPagePathContext.d.ts +0 -9
- package/dist/providers/DesignThemeContext.d.ts +0 -21
- package/dist/providers/EntitySchemaContext.d.ts +0 -81
- package/dist/providers/EventBusProvider.d.ts +0 -47
- package/dist/providers/GameAudioProvider.d.ts +0 -53
- package/dist/providers/OfflineModeProvider.d.ts +0 -79
- package/dist/providers/OrbitalProvider.d.ts +0 -110
- package/dist/providers/OrbitalThemeProvider.d.ts +0 -37
- package/dist/providers/SelectionProvider.d.ts +0 -82
- package/dist/providers/ServerBridge.d.ts +0 -102
- package/dist/providers/ThemeContext.d.ts +0 -104
- package/dist/providers/TraitProvider.d.ts +0 -53
- package/dist/providers/TraitScopeProvider.d.ts +0 -43
- package/dist/providers/UserContext.d.ts +0 -112
- package/dist/providers/VerificationProvider.d.ts +0 -64
- package/dist/providers/navigation.d.ts +0 -142
- package/dist/runtime/BrowserPlayground.d.ts +0 -34
- package/dist/runtime/OrbPreview.d.ts +0 -84
- package/dist/scripts/audit-tailwind-safelist.d.ts +0 -27
- package/dist/scripts/generate-design-system.d.ts +0 -29
- package/dist/scripts/generate-theme-from-schema.d.ts +0 -10
- package/dist/scripts/generate.d.ts +0 -12
- package/dist/scripts/suggest-components.d.ts +0 -31
- package/dist/scripts/types.d.ts +0 -129
- package/dist/tsup.config.d.ts +0 -3
- package/dist/types/renderer-types.d.ts +0 -146
- package/dist/types/runtime-types.d.ts +0 -21
- package/dist/types/slot-types.d.ts +0 -49
- package/dist/vitest.config.d.ts +0 -2
|
@@ -0,0 +1,995 @@
|
|
|
1
|
+
import { OrbitalSchema, FieldValue, EventPayload, EntityFrameState, EntityFieldWrite } from '@almadar/core';
|
|
2
|
+
export { BusEvent, BusEventListener, BusEventSource, BusEventListener as EventListener, UISlot, Unsubscribe } from '@almadar/core';
|
|
3
|
+
import { a as useEventBus } from '../useEventBus-Ckr4wqW3.cjs';
|
|
4
|
+
export { u as useEmitEvent, b as useEventListener } from '../useEventBus-Ckr4wqW3.cjs';
|
|
5
|
+
export { E as EventBusContextType } from '../event-bus-types-Bl78kokd.cjs';
|
|
6
|
+
export { D as DEFAULT_SLOTS, S as SlotAnimation, a as SlotChangeCallback, b as SlotContent, c as SlotRenderConfig, U as UISlotManager, u as useUISlotManager } from '../useUISlots-BesZYMks.cjs';
|
|
7
|
+
import * as React$1 from 'react';
|
|
8
|
+
import React__default from 'react';
|
|
9
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
10
|
+
|
|
11
|
+
interface HistoryChangeSummary {
|
|
12
|
+
added: number;
|
|
13
|
+
modified: number;
|
|
14
|
+
removed: number;
|
|
15
|
+
}
|
|
16
|
+
interface HistoryTimelineItem {
|
|
17
|
+
id: string;
|
|
18
|
+
type: 'changeset' | 'snapshot';
|
|
19
|
+
version: number;
|
|
20
|
+
timestamp: number;
|
|
21
|
+
description: string;
|
|
22
|
+
source?: string;
|
|
23
|
+
summary?: HistoryChangeSummary;
|
|
24
|
+
reason?: string;
|
|
25
|
+
}
|
|
26
|
+
interface RevertResult {
|
|
27
|
+
success: boolean;
|
|
28
|
+
error?: string;
|
|
29
|
+
restoredSchema?: OrbitalSchema;
|
|
30
|
+
}
|
|
31
|
+
interface UseOrbitalHistoryOptions {
|
|
32
|
+
appId: string | null;
|
|
33
|
+
/** Firebase auth token for authenticated API requests */
|
|
34
|
+
authToken?: string | null;
|
|
35
|
+
/** User ID for x-user-id header (required for Firestore path) */
|
|
36
|
+
userId?: string | null;
|
|
37
|
+
onHistoryChange?: (timeline: HistoryTimelineItem[]) => void;
|
|
38
|
+
onRevertSuccess?: (restoredSchema: OrbitalSchema) => void;
|
|
39
|
+
}
|
|
40
|
+
interface UseOrbitalHistoryResult {
|
|
41
|
+
timeline: HistoryTimelineItem[];
|
|
42
|
+
currentVersion: number;
|
|
43
|
+
isLoading: boolean;
|
|
44
|
+
error: string | null;
|
|
45
|
+
revertToSnapshot: (snapshotId: string) => Promise<RevertResult>;
|
|
46
|
+
refresh: () => Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
declare function useOrbitalHistory(options: UseOrbitalHistoryOptions): UseOrbitalHistoryResult;
|
|
49
|
+
|
|
50
|
+
interface FileSystemTree {
|
|
51
|
+
[name: string]: {
|
|
52
|
+
file: {
|
|
53
|
+
contents: string;
|
|
54
|
+
};
|
|
55
|
+
} | {
|
|
56
|
+
directory: FileSystemTree;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
interface FileNode {
|
|
60
|
+
path: string;
|
|
61
|
+
name: string;
|
|
62
|
+
type: 'file' | 'directory';
|
|
63
|
+
children?: FileNode[];
|
|
64
|
+
}
|
|
65
|
+
type FileSystemStatus = 'idle' | 'booting' | 'ready' | 'running' | 'error';
|
|
66
|
+
interface FileSystemFile {
|
|
67
|
+
path: string;
|
|
68
|
+
content: string;
|
|
69
|
+
}
|
|
70
|
+
interface SelectedFile {
|
|
71
|
+
path: string;
|
|
72
|
+
content: string;
|
|
73
|
+
language?: string;
|
|
74
|
+
isDirty?: boolean;
|
|
75
|
+
}
|
|
76
|
+
interface UseFileSystemResult {
|
|
77
|
+
status: FileSystemStatus;
|
|
78
|
+
error: string | null;
|
|
79
|
+
isLoading: boolean;
|
|
80
|
+
files: FileNode[];
|
|
81
|
+
selectedFile: SelectedFile | null;
|
|
82
|
+
selectedPath: string | null;
|
|
83
|
+
previewUrl: string | null;
|
|
84
|
+
boot: () => Promise<void>;
|
|
85
|
+
mountFiles: (files: FileSystemFile[] | FileSystemTree) => Promise<void>;
|
|
86
|
+
readFile: (path: string) => Promise<string>;
|
|
87
|
+
writeFile: (path: string, content: string) => Promise<void>;
|
|
88
|
+
selectFile: (path: string) => Promise<void>;
|
|
89
|
+
updateContent: (pathOrContent: string, content?: string) => void;
|
|
90
|
+
updateSelectedContent: (content: string) => void;
|
|
91
|
+
refreshTree: () => Promise<void>;
|
|
92
|
+
runCommand: (command: string) => Promise<{
|
|
93
|
+
exitCode: number;
|
|
94
|
+
output: string;
|
|
95
|
+
}>;
|
|
96
|
+
startDevServer: () => Promise<void>;
|
|
97
|
+
}
|
|
98
|
+
declare function useFileSystem(): UseFileSystemResult;
|
|
99
|
+
|
|
100
|
+
interface Extension {
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
language?: string;
|
|
104
|
+
loaded: boolean;
|
|
105
|
+
}
|
|
106
|
+
interface ExtensionEntry {
|
|
107
|
+
file: string;
|
|
108
|
+
language?: string;
|
|
109
|
+
}
|
|
110
|
+
interface ExtensionManifest {
|
|
111
|
+
languages: Record<string, {
|
|
112
|
+
extensions: string[];
|
|
113
|
+
icon?: string;
|
|
114
|
+
color?: string;
|
|
115
|
+
}>;
|
|
116
|
+
extensions: ExtensionEntry[];
|
|
117
|
+
}
|
|
118
|
+
interface UseExtensionsOptions {
|
|
119
|
+
appId: string;
|
|
120
|
+
loadOnMount?: boolean;
|
|
121
|
+
}
|
|
122
|
+
interface UseExtensionsResult {
|
|
123
|
+
extensions: Extension[];
|
|
124
|
+
manifest: ExtensionManifest;
|
|
125
|
+
isLoading: boolean;
|
|
126
|
+
error: string | null;
|
|
127
|
+
loadExtension: (extensionId: string) => Promise<void>;
|
|
128
|
+
loadExtensions: () => Promise<void>;
|
|
129
|
+
getExtensionForFile: (filename: string) => Extension | null;
|
|
130
|
+
}
|
|
131
|
+
declare function useExtensions(options: UseExtensionsOptions): UseExtensionsResult;
|
|
132
|
+
|
|
133
|
+
interface OpenFile {
|
|
134
|
+
path: string;
|
|
135
|
+
content: string;
|
|
136
|
+
isDirty: boolean;
|
|
137
|
+
language?: string;
|
|
138
|
+
}
|
|
139
|
+
interface UseFileEditorOptions {
|
|
140
|
+
extensions: UseExtensionsResult;
|
|
141
|
+
fileSystem: UseFileSystemResult;
|
|
142
|
+
onSchemaUpdate?: (schema: OrbitalSchema) => Promise<void>;
|
|
143
|
+
}
|
|
144
|
+
interface FileEditResult {
|
|
145
|
+
success: boolean;
|
|
146
|
+
action?: 'updated_schema' | 'converted_extension' | 'saved_extension' | 'saved';
|
|
147
|
+
error?: string;
|
|
148
|
+
}
|
|
149
|
+
interface UseFileEditorResult {
|
|
150
|
+
openFiles: OpenFile[];
|
|
151
|
+
activeFile: OpenFile | null;
|
|
152
|
+
isSaving: boolean;
|
|
153
|
+
openFile: (path: string) => Promise<void>;
|
|
154
|
+
closeFile: (path: string) => void;
|
|
155
|
+
setActiveFile: (path: string) => void;
|
|
156
|
+
updateFileContent: (path: string, content: string) => void;
|
|
157
|
+
handleFileEdit: (path: string, content: string) => Promise<FileEditResult>;
|
|
158
|
+
saveFile: (path: string) => Promise<void>;
|
|
159
|
+
saveAllFiles: () => Promise<void>;
|
|
160
|
+
}
|
|
161
|
+
declare function useFileEditor(options: UseFileEditorOptions): UseFileEditorResult;
|
|
162
|
+
|
|
163
|
+
type CompileStage = 'idle' | 'compiling' | 'done' | 'error';
|
|
164
|
+
interface CompileResult {
|
|
165
|
+
success: boolean;
|
|
166
|
+
files?: Array<{
|
|
167
|
+
path: string;
|
|
168
|
+
content: string;
|
|
169
|
+
}>;
|
|
170
|
+
errors?: string[];
|
|
171
|
+
}
|
|
172
|
+
interface UseCompileResult {
|
|
173
|
+
isCompiling: boolean;
|
|
174
|
+
stage: CompileStage;
|
|
175
|
+
lastResult: CompileResult | null;
|
|
176
|
+
error: string | null;
|
|
177
|
+
compileSchema: (schema: OrbitalSchema) => Promise<CompileResult | null>;
|
|
178
|
+
}
|
|
179
|
+
declare function useCompile(): UseCompileResult;
|
|
180
|
+
|
|
181
|
+
interface PreviewApp {
|
|
182
|
+
id: string;
|
|
183
|
+
name: string;
|
|
184
|
+
status: 'loading' | 'ready' | 'error';
|
|
185
|
+
schema?: OrbitalSchema;
|
|
186
|
+
graphView: {
|
|
187
|
+
version: string;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
interface Notification {
|
|
191
|
+
id: string;
|
|
192
|
+
type: 'info' | 'warning' | 'error' | 'success';
|
|
193
|
+
title: string;
|
|
194
|
+
message: string;
|
|
195
|
+
timestamp: number;
|
|
196
|
+
read?: boolean;
|
|
197
|
+
actionLabel?: string;
|
|
198
|
+
onAction?: () => void;
|
|
199
|
+
autoDismiss?: boolean;
|
|
200
|
+
dismissAfter?: number;
|
|
201
|
+
}
|
|
202
|
+
interface NotificationsState {
|
|
203
|
+
notifications: Notification[];
|
|
204
|
+
isPanelOpen: boolean;
|
|
205
|
+
closePanel: () => void;
|
|
206
|
+
dismissNotification: (id: string) => void;
|
|
207
|
+
markAsRead: (id: string) => void;
|
|
208
|
+
clearAll: () => void;
|
|
209
|
+
}
|
|
210
|
+
interface ErrorToast {
|
|
211
|
+
message: string;
|
|
212
|
+
}
|
|
213
|
+
interface UsePreviewResult {
|
|
214
|
+
previewUrl: string | null;
|
|
215
|
+
isLoading: boolean;
|
|
216
|
+
error: string | null;
|
|
217
|
+
loadError: string | null;
|
|
218
|
+
app: PreviewApp | null;
|
|
219
|
+
isFullscreen: boolean;
|
|
220
|
+
isExecutingEvent: boolean;
|
|
221
|
+
errorToast: ErrorToast | null;
|
|
222
|
+
currentStateName: string | null;
|
|
223
|
+
notifications: NotificationsState;
|
|
224
|
+
startPreview: () => Promise<void>;
|
|
225
|
+
stopPreview: () => Promise<void>;
|
|
226
|
+
refresh: () => Promise<void>;
|
|
227
|
+
handleRefresh: () => Promise<void>;
|
|
228
|
+
handleReset: () => Promise<void>;
|
|
229
|
+
toggleFullscreen: () => void;
|
|
230
|
+
setErrorToast: (toast: ErrorToast | null) => void;
|
|
231
|
+
dismissErrorToast: () => void;
|
|
232
|
+
}
|
|
233
|
+
interface UsePreviewOptions {
|
|
234
|
+
appId?: string;
|
|
235
|
+
}
|
|
236
|
+
declare function usePreview(options?: UsePreviewOptions): UsePreviewResult;
|
|
237
|
+
|
|
238
|
+
interface DeepAgentActionRequest {
|
|
239
|
+
id: string;
|
|
240
|
+
type: string;
|
|
241
|
+
tool: string;
|
|
242
|
+
args: Record<string, FieldValue>;
|
|
243
|
+
description?: string;
|
|
244
|
+
allowedDecisions: ('approve' | 'edit' | 'reject')[];
|
|
245
|
+
status: 'pending' | 'approved' | 'rejected' | 'edited';
|
|
246
|
+
}
|
|
247
|
+
interface DeepAgentInterrupt {
|
|
248
|
+
id: string;
|
|
249
|
+
type: 'tool_calls' | 'confirmation' | 'error';
|
|
250
|
+
message?: string;
|
|
251
|
+
actionRequests: DeepAgentActionRequest[];
|
|
252
|
+
timestamp: number;
|
|
253
|
+
threadId?: string;
|
|
254
|
+
}
|
|
255
|
+
interface GenerationRequest {
|
|
256
|
+
id: string;
|
|
257
|
+
prompt: string;
|
|
258
|
+
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
259
|
+
result?: OrbitalSchema;
|
|
260
|
+
error?: string;
|
|
261
|
+
}
|
|
262
|
+
interface GenerationProgress {
|
|
263
|
+
stage: string;
|
|
264
|
+
percent: number;
|
|
265
|
+
message: string;
|
|
266
|
+
}
|
|
267
|
+
interface UseDeepAgentGenerationResult {
|
|
268
|
+
requests: GenerationRequest[];
|
|
269
|
+
currentRequest: GenerationRequest | null;
|
|
270
|
+
isGenerating: boolean;
|
|
271
|
+
isLoading: boolean;
|
|
272
|
+
isComplete: boolean;
|
|
273
|
+
progress: GenerationProgress;
|
|
274
|
+
error: string | null;
|
|
275
|
+
interrupt: DeepAgentInterrupt | null;
|
|
276
|
+
generate: (prompt: string) => Promise<OrbitalSchema | null>;
|
|
277
|
+
startGeneration: (skill: string, prompt: string, options?: Record<string, FieldValue>) => Promise<void>;
|
|
278
|
+
cancelGeneration: () => void;
|
|
279
|
+
clearRequests: () => void;
|
|
280
|
+
submitInterruptDecisions: (decisions: FieldValue[]) => void;
|
|
281
|
+
}
|
|
282
|
+
declare function useDeepAgentGeneration(): UseDeepAgentGenerationResult;
|
|
283
|
+
|
|
284
|
+
interface ChatMessage {
|
|
285
|
+
id: string;
|
|
286
|
+
role: 'user' | 'assistant' | 'system';
|
|
287
|
+
content: string;
|
|
288
|
+
timestamp: number;
|
|
289
|
+
}
|
|
290
|
+
type AvatarRole = 'user' | 'assistant' | 'system';
|
|
291
|
+
type FileOperation = 'ls' | 'read_file' | 'write_file' | 'edit_file';
|
|
292
|
+
type Activity = {
|
|
293
|
+
type: 'message';
|
|
294
|
+
role: AvatarRole;
|
|
295
|
+
content: string;
|
|
296
|
+
timestamp: number;
|
|
297
|
+
isStreaming?: boolean;
|
|
298
|
+
} | {
|
|
299
|
+
type: 'tool_call';
|
|
300
|
+
tool: string;
|
|
301
|
+
args: Record<string, FieldValue>;
|
|
302
|
+
timestamp: number;
|
|
303
|
+
isExecuting?: boolean;
|
|
304
|
+
} | {
|
|
305
|
+
type: 'tool_result';
|
|
306
|
+
tool: string;
|
|
307
|
+
result: FieldValue | null;
|
|
308
|
+
success: boolean;
|
|
309
|
+
timestamp: number;
|
|
310
|
+
} | {
|
|
311
|
+
type: 'file_operation';
|
|
312
|
+
operation: FileOperation;
|
|
313
|
+
path: string;
|
|
314
|
+
success?: boolean;
|
|
315
|
+
timestamp: number;
|
|
316
|
+
} | {
|
|
317
|
+
type: 'schema_diff';
|
|
318
|
+
filePath: string;
|
|
319
|
+
hunks: DiffHunk[];
|
|
320
|
+
timestamp: number;
|
|
321
|
+
} | {
|
|
322
|
+
type: 'error';
|
|
323
|
+
message: string;
|
|
324
|
+
code?: string;
|
|
325
|
+
timestamp: number;
|
|
326
|
+
};
|
|
327
|
+
interface TodoActivity {
|
|
328
|
+
type: 'thinking' | 'tool_call' | 'tool_result' | 'code_change';
|
|
329
|
+
content: string;
|
|
330
|
+
timestamp: number;
|
|
331
|
+
tool?: string;
|
|
332
|
+
success?: boolean;
|
|
333
|
+
filePath?: string;
|
|
334
|
+
diff?: string;
|
|
335
|
+
}
|
|
336
|
+
interface Todo {
|
|
337
|
+
id: string;
|
|
338
|
+
task: string;
|
|
339
|
+
status: 'pending' | 'in_progress' | 'completed';
|
|
340
|
+
latestActivity?: TodoActivity;
|
|
341
|
+
activityHistory?: TodoActivity[];
|
|
342
|
+
}
|
|
343
|
+
interface DiffHunk {
|
|
344
|
+
oldStart: number;
|
|
345
|
+
oldLines: number;
|
|
346
|
+
newStart: number;
|
|
347
|
+
newLines: number;
|
|
348
|
+
lines: Array<{
|
|
349
|
+
type: 'add' | 'remove' | 'context';
|
|
350
|
+
content: string;
|
|
351
|
+
}>;
|
|
352
|
+
}
|
|
353
|
+
interface SchemaDiff {
|
|
354
|
+
id: string;
|
|
355
|
+
filePath: string;
|
|
356
|
+
hunks: DiffHunk[];
|
|
357
|
+
timestamp: number;
|
|
358
|
+
addedLines: number;
|
|
359
|
+
removedLines: number;
|
|
360
|
+
}
|
|
361
|
+
type AgentStatus = 'idle' | 'running' | 'complete' | 'error' | 'interrupted';
|
|
362
|
+
interface UseAgentChatOptions {
|
|
363
|
+
appId?: string;
|
|
364
|
+
onComplete?: (schema?: OrbitalSchema) => void;
|
|
365
|
+
onSchemaChange?: (diff?: OrbitalSchema) => void;
|
|
366
|
+
onError?: (error: Error | string) => void;
|
|
367
|
+
}
|
|
368
|
+
interface UseAgentChatResult {
|
|
369
|
+
messages: ChatMessage[];
|
|
370
|
+
status: AgentStatus;
|
|
371
|
+
activities: Activity[];
|
|
372
|
+
todos: Todo[];
|
|
373
|
+
schemaDiffs: SchemaDiff[];
|
|
374
|
+
isLoading: boolean;
|
|
375
|
+
error: string | null;
|
|
376
|
+
threadId: string | null;
|
|
377
|
+
interrupt: DeepAgentInterrupt | null;
|
|
378
|
+
sendMessage: (content: string) => Promise<void>;
|
|
379
|
+
startGeneration: (skill: string | string[], prompt: string, options?: Record<string, FieldValue>) => Promise<void>;
|
|
380
|
+
continueConversation: (message: string | string[]) => Promise<void>;
|
|
381
|
+
resumeWithDecision: (decisions: FieldValue[]) => Promise<void>;
|
|
382
|
+
cancel: () => void;
|
|
383
|
+
clearMessages: () => void;
|
|
384
|
+
clearHistory: () => void;
|
|
385
|
+
}
|
|
386
|
+
declare function useAgentChat(options?: UseAgentChatOptions): UseAgentChatResult;
|
|
387
|
+
|
|
388
|
+
interface LLMErrorContext {
|
|
389
|
+
rawValuePreview?: string;
|
|
390
|
+
expectedType?: string;
|
|
391
|
+
actualType?: string;
|
|
392
|
+
source?: {
|
|
393
|
+
agent: 'requirements' | 'builder' | 'view-planner';
|
|
394
|
+
operation: string;
|
|
395
|
+
promptHash?: string;
|
|
396
|
+
};
|
|
397
|
+
tokenUsage?: {
|
|
398
|
+
prompt: number;
|
|
399
|
+
completion: number;
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
interface ValidationError {
|
|
403
|
+
code: string;
|
|
404
|
+
message: string;
|
|
405
|
+
path?: string;
|
|
406
|
+
severity: 'error' | 'warning';
|
|
407
|
+
suggestion?: string;
|
|
408
|
+
validValues?: string[];
|
|
409
|
+
expectedShape?: string;
|
|
410
|
+
fixGuidance?: string;
|
|
411
|
+
llmContext?: LLMErrorContext;
|
|
412
|
+
}
|
|
413
|
+
interface ValidationResult {
|
|
414
|
+
valid: boolean;
|
|
415
|
+
errors: ValidationError[];
|
|
416
|
+
warnings: ValidationError[];
|
|
417
|
+
}
|
|
418
|
+
type ValidationStage = 'idle' | 'validating' | 'fixing' | 'complete';
|
|
419
|
+
interface UseValidationResult {
|
|
420
|
+
result: ValidationResult | null;
|
|
421
|
+
isValidating: boolean;
|
|
422
|
+
error: string | null;
|
|
423
|
+
stage: ValidationStage;
|
|
424
|
+
isFixing: boolean;
|
|
425
|
+
progressMessage: string | null;
|
|
426
|
+
errors: ValidationError[];
|
|
427
|
+
warnings: ValidationError[];
|
|
428
|
+
isValid: boolean;
|
|
429
|
+
validate: (appId: string) => Promise<ValidationResult>;
|
|
430
|
+
clearResult: () => void;
|
|
431
|
+
reset: () => void;
|
|
432
|
+
}
|
|
433
|
+
declare function useValidation(): UseValidationResult;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Hook to bridge UI events to state machine dispatch.
|
|
437
|
+
*
|
|
438
|
+
* @param dispatch - The state machine dispatch function
|
|
439
|
+
* @param traitName - Owning trait name; used to construct the qualified
|
|
440
|
+
* subscription key `UI:{traitName}.{event}`. Required — bare-key
|
|
441
|
+
* subscriptions were removed when the bus namespace unified on the
|
|
442
|
+
* listens grammar (gap #13, Phase 4 of the cross-orbital plan).
|
|
443
|
+
* @param validEvents - Local event names (transition triggers) the
|
|
444
|
+
* trait reacts to. The hook subscribes to `UI:{traitName}.{event}`
|
|
445
|
+
* for each entry.
|
|
446
|
+
* @param eventBusInstance - Optional event bus instance (for testing)
|
|
447
|
+
*/
|
|
448
|
+
declare function useUIEvents<E extends string>(dispatch: (event: E, payload?: EventPayload) => void, traitName: string, validEvents: readonly E[], eventBusInstance?: ReturnType<typeof useEventBus>): void;
|
|
449
|
+
/**
|
|
450
|
+
* Hook to subscribe to cross-trait listens (gap #13, Phase 4 codegen).
|
|
451
|
+
*
|
|
452
|
+
* The schema's `listens { Source EVENT -> TRIGGER }` block resolves at
|
|
453
|
+
* lower-time to a typed `ListenSource` enum (intra-orbital `Trait` or
|
|
454
|
+
* cross-orbital `Orbital.Trait`). Codegen materializes one
|
|
455
|
+
* `useTraitListens` call per trait, listing every `(sourceTrait,
|
|
456
|
+
* sourceEvent, localTrigger)` tuple from the listens block. The hook
|
|
457
|
+
* subscribes to the qualified bus key — `UI:Trait.EVENT` (intra-orbital)
|
|
458
|
+
* or `UI:Orbital.Trait.EVENT` (cross-orbital) — and dispatches the
|
|
459
|
+
* local trigger when the source fires.
|
|
460
|
+
*
|
|
461
|
+
* Replaces the old bare-event cross-trait fan-out that lived inside
|
|
462
|
+
* `useUIEvents`. Pre-unification, `useUIEvents` subscribed to bare
|
|
463
|
+
* `EVENT` keys and matched on `source.trait !== own`; post-unification,
|
|
464
|
+
* the qualified bus key carries the source identity directly, no
|
|
465
|
+
* `source` filtering needed.
|
|
466
|
+
*/
|
|
467
|
+
interface TraitListenSpec<E extends string> {
|
|
468
|
+
/** Qualified `Trait.EVENT` or `Orbital.Trait.EVENT` source. */
|
|
469
|
+
sourceKey: string;
|
|
470
|
+
/** Local trigger event to dispatch when the source fires. */
|
|
471
|
+
trigger: E;
|
|
472
|
+
}
|
|
473
|
+
declare function useTraitListens<E extends string>(dispatch: (event: E, payload?: EventPayload) => void, listens: readonly TraitListenSpec<E>[], eventBusInstance?: ReturnType<typeof useEventBus>): void;
|
|
474
|
+
|
|
475
|
+
/** Notification callback fired after a `commit()` for the subscribed entity id. */
|
|
476
|
+
type SharedEntitySubscriber = () => void;
|
|
477
|
+
/**
|
|
478
|
+
* One writer trait's per-frame step: reads the live running scratch
|
|
479
|
+
* (reflecting every earlier writer's writes this frame) and returns its own
|
|
480
|
+
* field writes. Pure — writers never call `store.commit`; only `runTickFrame`
|
|
481
|
+
* does, once per frame.
|
|
482
|
+
*/
|
|
483
|
+
type SharedEntityWriter = (scratch: EntityFrameState) => readonly EntityFieldWrite[];
|
|
484
|
+
/** Manager surface, keyed by entity id. */
|
|
485
|
+
interface SharedEntityStore {
|
|
486
|
+
getSnapshot: (entityId: string) => EntityFrameState;
|
|
487
|
+
subscribe: (entityId: string, callback: SharedEntitySubscriber) => () => void;
|
|
488
|
+
commit: (entityId: string, nextState: EntityFrameState) => void;
|
|
489
|
+
/**
|
|
490
|
+
* Set the initial state for an entity id, but ONLY if nothing is committed
|
|
491
|
+
* yet — idempotent, and (unlike `commit`) does NOT notify subscribers, so it
|
|
492
|
+
* is safe to call during render. Both execution paths seed from the entity's
|
|
493
|
+
* declared field defaults at init, so frame 0 reads the defaults on both.
|
|
494
|
+
*/
|
|
495
|
+
seed: (entityId: string, initialState: EntityFrameState) => void;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Create a standalone shared-entity store. Plain factory — no React — so a
|
|
499
|
+
* clock owner (the interpreter's TickScheduler, or a codegen rAF
|
|
500
|
+
* `useEffect`) can hold one instance and pass it to `runTickFrame` without
|
|
501
|
+
* going through a hook.
|
|
502
|
+
*/
|
|
503
|
+
declare function createSharedEntityStore(): SharedEntityStore;
|
|
504
|
+
/**
|
|
505
|
+
* React hook: one stable `SharedEntityStore` instance for this component's
|
|
506
|
+
* lifetime (useUISlotManager's ref-backed-instance pattern — no re-creation
|
|
507
|
+
* across re-renders). Callers own one store per running orbital instance and
|
|
508
|
+
* thread it to each writer trait plus the render trait via `runTickFrame` /
|
|
509
|
+
* `useSharedEntitySnapshot`.
|
|
510
|
+
*/
|
|
511
|
+
declare function useSharedEntityStore(): SharedEntityStore;
|
|
512
|
+
/**
|
|
513
|
+
* Bridge one entity's snapshot into React via `useSyncExternalStore` (the
|
|
514
|
+
* codebase's established store->React bridge, see `lib/perf.ts`). The render
|
|
515
|
+
* trait re-renders exactly when `runTickFrame` commits this entity — never on
|
|
516
|
+
* an intermediate per-writer write, since those never call `store.commit`.
|
|
517
|
+
*/
|
|
518
|
+
declare function useSharedEntitySnapshot(store: SharedEntityStore, entityId: string): EntityFrameState;
|
|
519
|
+
/**
|
|
520
|
+
* Run one frame for `entityId`: fold each writer's writes into a running
|
|
521
|
+
* scratch in binding order via `mergeEntityFrame` (field-level, so writer
|
|
522
|
+
* k+1 reads writer k's same-frame writes), then commit the merged result
|
|
523
|
+
* exactly ONCE. Clock-agnostic — the caller (a TickScheduler tick or a
|
|
524
|
+
* codegen rAF loop) invokes this once per frame; it owns no timer itself.
|
|
525
|
+
*/
|
|
526
|
+
declare function runTickFrame(entityId: string, orderedWriters: readonly SharedEntityWriter[], store: SharedEntityStore): EntityFrameState;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Query state for filters and search
|
|
530
|
+
*/
|
|
531
|
+
interface QueryState {
|
|
532
|
+
search?: string;
|
|
533
|
+
filters?: Record<string, FieldValue>;
|
|
534
|
+
sortField?: string;
|
|
535
|
+
sortDirection?: 'asc' | 'desc';
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Query singleton entity reference
|
|
539
|
+
*/
|
|
540
|
+
interface QuerySingletonEntity {
|
|
541
|
+
name: string;
|
|
542
|
+
fields: Record<string, FieldValue>;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Query singleton result type
|
|
546
|
+
*/
|
|
547
|
+
interface QuerySingletonResult {
|
|
548
|
+
state: QueryState;
|
|
549
|
+
setState: (state: Partial<QueryState>) => void;
|
|
550
|
+
reset: () => void;
|
|
551
|
+
}
|
|
552
|
+
interface QuerySingletonState {
|
|
553
|
+
/** Current search term */
|
|
554
|
+
search: string;
|
|
555
|
+
/** Set search term */
|
|
556
|
+
setSearch: (value: string) => void;
|
|
557
|
+
/** Current filters */
|
|
558
|
+
filters: Record<string, FieldValue>;
|
|
559
|
+
/** Set a filter value */
|
|
560
|
+
setFilter: (key: string, value: FieldValue) => void;
|
|
561
|
+
/** Clear all filters */
|
|
562
|
+
clearFilters: () => void;
|
|
563
|
+
/** Current sort field */
|
|
564
|
+
sortField?: string;
|
|
565
|
+
/** Current sort direction */
|
|
566
|
+
sortDirection?: 'asc' | 'desc';
|
|
567
|
+
/** Set sort */
|
|
568
|
+
setSort: (field: string, direction: 'asc' | 'desc') => void;
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Hook for accessing a query singleton by name
|
|
572
|
+
*
|
|
573
|
+
* @param query - Query singleton name (e.g., "@TaskQuery")
|
|
574
|
+
* @returns Query singleton state or null if no query provided
|
|
575
|
+
*
|
|
576
|
+
* @example
|
|
577
|
+
* ```tsx
|
|
578
|
+
* const queryState = useQuerySingleton('@TaskQuery');
|
|
579
|
+
*
|
|
580
|
+
* // Use search state
|
|
581
|
+
* queryState?.search
|
|
582
|
+
* queryState?.setSearch('new search term')
|
|
583
|
+
* ```
|
|
584
|
+
*/
|
|
585
|
+
declare function useQuerySingleton(query?: string): QuerySingletonState | null;
|
|
586
|
+
/**
|
|
587
|
+
* Parse a query binding string to extract the query singleton name
|
|
588
|
+
*
|
|
589
|
+
* @param binding - Binding string like "@TaskQuery.search" or "@TaskQuery"
|
|
590
|
+
* @returns Object with query name and optional field path
|
|
591
|
+
*
|
|
592
|
+
* @example
|
|
593
|
+
* ```tsx
|
|
594
|
+
* parseQueryBinding('@TaskQuery.search')
|
|
595
|
+
* // { query: 'TaskQuery', field: 'search' }
|
|
596
|
+
*
|
|
597
|
+
* parseQueryBinding('@TaskQuery')
|
|
598
|
+
* // { query: 'TaskQuery', field: undefined }
|
|
599
|
+
* ```
|
|
600
|
+
*/
|
|
601
|
+
declare function parseQueryBinding(binding: string): {
|
|
602
|
+
query: string;
|
|
603
|
+
field?: string;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
type TranslateFunction = (key: string, params?: Record<string, string | number>) => string;
|
|
607
|
+
interface I18nContextValue {
|
|
608
|
+
/** Current locale code (e.g. 'en', 'ar', 'sl') */
|
|
609
|
+
locale: string;
|
|
610
|
+
/** Text direction for the current locale */
|
|
611
|
+
direction: 'ltr' | 'rtl';
|
|
612
|
+
/** Translate a key, with optional interpolation params */
|
|
613
|
+
t: TranslateFunction;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Provider component — wrap your app or Storybook decorator with this.
|
|
617
|
+
*
|
|
618
|
+
* ```tsx
|
|
619
|
+
* <I18nProvider value={{ locale: 'ar', direction: 'rtl', t: createTranslate(arMessages) }}>
|
|
620
|
+
* <App />
|
|
621
|
+
* </I18nProvider>
|
|
622
|
+
* ```
|
|
623
|
+
*/
|
|
624
|
+
declare const I18nProvider: React$1.Provider<I18nContextValue>;
|
|
625
|
+
/**
|
|
626
|
+
* Hook to access the current locale and translate function.
|
|
627
|
+
* Safe to call without a provider — returns passthrough t().
|
|
628
|
+
*/
|
|
629
|
+
declare function useTranslate(): I18nContextValue;
|
|
630
|
+
/**
|
|
631
|
+
* Create a translate function from a flat messages object.
|
|
632
|
+
*
|
|
633
|
+
* ```ts
|
|
634
|
+
* const t = createTranslate({ 'common.save': 'Save', 'table.showing': 'Showing {{count}} of {{total}}' });
|
|
635
|
+
* t('common.save') // → 'Save'
|
|
636
|
+
* t('table.showing', { count: 5, total: 20 }) // → 'Showing 5 of 20'
|
|
637
|
+
* t('missing.key') // → 'missing.key' (fallback)
|
|
638
|
+
* ```
|
|
639
|
+
*/
|
|
640
|
+
declare function createTranslate(messages: Record<string, string>): TranslateFunction;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Auth Context Hook Stub
|
|
644
|
+
*
|
|
645
|
+
* Provides a placeholder auth context for the design system.
|
|
646
|
+
* Applications should provide their own AuthContext provider
|
|
647
|
+
* that implements this interface.
|
|
648
|
+
*/
|
|
649
|
+
interface AuthUser {
|
|
650
|
+
uid: string;
|
|
651
|
+
email: string | null;
|
|
652
|
+
displayName: string | null;
|
|
653
|
+
photoURL: string | null;
|
|
654
|
+
}
|
|
655
|
+
interface AuthContextValue {
|
|
656
|
+
user: AuthUser | null;
|
|
657
|
+
loading: boolean;
|
|
658
|
+
signIn?: () => Promise<void>;
|
|
659
|
+
signOut?: () => Promise<void>;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Stub hook that returns empty auth context.
|
|
663
|
+
* Applications should wrap their app with an AuthProvider
|
|
664
|
+
* that supplies real auth state.
|
|
665
|
+
*/
|
|
666
|
+
declare function useAuthContext(): AuthContextValue;
|
|
667
|
+
|
|
668
|
+
interface SwipeGestureOptions {
|
|
669
|
+
/** Minimum distance in px to trigger a swipe (default: 50) */
|
|
670
|
+
threshold?: number;
|
|
671
|
+
/** Minimum velocity in px/ms to qualify (default: 0.3) */
|
|
672
|
+
velocityThreshold?: number;
|
|
673
|
+
/** Prevent default touch behavior during swipe (default: false) */
|
|
674
|
+
preventDefault?: boolean;
|
|
675
|
+
}
|
|
676
|
+
interface SwipeGestureResult {
|
|
677
|
+
onSwipeLeft?: () => void;
|
|
678
|
+
onSwipeRight?: () => void;
|
|
679
|
+
onSwipeUp?: () => void;
|
|
680
|
+
onSwipeDown?: () => void;
|
|
681
|
+
}
|
|
682
|
+
interface SwipeHandlers {
|
|
683
|
+
onPointerDown: (e: React__default.PointerEvent) => void;
|
|
684
|
+
onPointerMove: (e: React__default.PointerEvent) => void;
|
|
685
|
+
onPointerUp: (e: React__default.PointerEvent) => void;
|
|
686
|
+
onPointerCancel: (e: React__default.PointerEvent) => void;
|
|
687
|
+
/** Current horizontal offset during swipe (for animation) */
|
|
688
|
+
offsetX: number;
|
|
689
|
+
/** Whether a swipe gesture is in progress */
|
|
690
|
+
isSwiping: boolean;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
declare function useSwipeGesture(callbacks: SwipeGestureResult, options?: SwipeGestureOptions): SwipeHandlers;
|
|
694
|
+
|
|
695
|
+
interface LongPressOptions {
|
|
696
|
+
/** Hold duration in ms before triggering (default: 500) */
|
|
697
|
+
duration?: number;
|
|
698
|
+
/** Movement tolerance in px before canceling (default: 10) */
|
|
699
|
+
moveThreshold?: number;
|
|
700
|
+
}
|
|
701
|
+
interface LongPressHandlers {
|
|
702
|
+
onPointerDown: (e: React__default.PointerEvent) => void;
|
|
703
|
+
onPointerMove: (e: React__default.PointerEvent) => void;
|
|
704
|
+
onPointerUp: () => void;
|
|
705
|
+
onPointerCancel: () => void;
|
|
706
|
+
/** Whether the long press is currently active (held down, timer running) */
|
|
707
|
+
isPressed: boolean;
|
|
708
|
+
}
|
|
709
|
+
declare function useLongPress(onLongPress: () => void, options?: LongPressOptions): LongPressHandlers;
|
|
710
|
+
|
|
711
|
+
interface DragReorderResult<T> {
|
|
712
|
+
/** The reordered items array */
|
|
713
|
+
items: T[];
|
|
714
|
+
/** Index of the item currently being dragged (-1 if not dragging) */
|
|
715
|
+
dragIndex: number;
|
|
716
|
+
/** Index of the drop target (-1 if not over any target) */
|
|
717
|
+
dragOverIndex: number;
|
|
718
|
+
/** Whether a drag is in progress */
|
|
719
|
+
isDragging: boolean;
|
|
720
|
+
/** Props to spread on the drag handle element for a given index */
|
|
721
|
+
getDragHandleProps: (index: number) => {
|
|
722
|
+
onPointerDown: (e: React__default.PointerEvent) => void;
|
|
723
|
+
style: React__default.CSSProperties;
|
|
724
|
+
'aria-grabbed': boolean;
|
|
725
|
+
role: string;
|
|
726
|
+
};
|
|
727
|
+
/** Props to spread on each list item for a given index */
|
|
728
|
+
getItemProps: (index: number) => {
|
|
729
|
+
onPointerMove: (e: React__default.PointerEvent) => void;
|
|
730
|
+
onPointerUp: () => void;
|
|
731
|
+
'aria-dropeffect': string;
|
|
732
|
+
style: React__default.CSSProperties;
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
declare function useDragReorder<T>(initialItems: T[], onReorder: (fromIndex: number, toIndex: number, item: T) => void): DragReorderResult<T>;
|
|
736
|
+
|
|
737
|
+
interface InfiniteScrollOptions {
|
|
738
|
+
/** Root margin for IntersectionObserver (default: "200px") */
|
|
739
|
+
rootMargin?: string;
|
|
740
|
+
/** Whether more items are available to load */
|
|
741
|
+
hasMore?: boolean;
|
|
742
|
+
/** Whether a load is currently in progress */
|
|
743
|
+
isLoading?: boolean;
|
|
744
|
+
}
|
|
745
|
+
interface InfiniteScrollResult {
|
|
746
|
+
/** Ref to attach to the sentinel element */
|
|
747
|
+
sentinelRef: React.RefCallback<HTMLElement>;
|
|
748
|
+
}
|
|
749
|
+
declare function useInfiniteScroll(onLoadMore: () => void, options?: InfiniteScrollOptions): InfiniteScrollResult;
|
|
750
|
+
|
|
751
|
+
interface PullToRefreshOptions {
|
|
752
|
+
/** Distance in px to pull before triggering refresh (default: 60) */
|
|
753
|
+
threshold?: number;
|
|
754
|
+
/** Maximum pull distance in px (default: 120) */
|
|
755
|
+
maxPull?: number;
|
|
756
|
+
}
|
|
757
|
+
interface PullToRefreshResult {
|
|
758
|
+
/** Current pull distance in px */
|
|
759
|
+
pullDistance: number;
|
|
760
|
+
/** Whether the user is actively pulling */
|
|
761
|
+
isPulling: boolean;
|
|
762
|
+
/** Whether a refresh was triggered and is in progress */
|
|
763
|
+
isRefreshing: boolean;
|
|
764
|
+
/** Props to spread on the scrollable container */
|
|
765
|
+
containerProps: {
|
|
766
|
+
onTouchStart: (e: React__default.TouchEvent) => void;
|
|
767
|
+
onTouchMove: (e: React__default.TouchEvent) => void;
|
|
768
|
+
onTouchEnd: () => void;
|
|
769
|
+
style: React__default.CSSProperties;
|
|
770
|
+
};
|
|
771
|
+
/** Call this when the refresh operation completes */
|
|
772
|
+
endRefresh: () => void;
|
|
773
|
+
}
|
|
774
|
+
declare function usePullToRefresh(onRefresh: () => void, options?: PullToRefreshOptions): PullToRefreshResult;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Unified pointer/touch gesture detection for canvas surfaces (graph, isometric, etc.).
|
|
778
|
+
*
|
|
779
|
+
* It owns the hard part — pointer tracking + two-finger pinch (scale factor + centroid) —
|
|
780
|
+
* and DELEGATES application to the consumer via callbacks, so each canvas applies pan/zoom
|
|
781
|
+
* in its own coordinate convention (screen-offset vs world-camera). A single pointer is
|
|
782
|
+
* passed straight through to the consumer's domain handlers (pan / node-drag / tile-select);
|
|
783
|
+
* a second pointer takes over as a pinch and cancels any in-flight single-pointer action.
|
|
784
|
+
*
|
|
785
|
+
* Pointer Events cover mouse, touch and pen, so this REPLACES mouse handlers — no dual paths.
|
|
786
|
+
*/
|
|
787
|
+
interface CanvasGestureCallbacks {
|
|
788
|
+
/** Single-pointer down — start the consumer's pan / drag / select (domain-specific). */
|
|
789
|
+
onPointerDown?: (e: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
790
|
+
/** Single-pointer move. */
|
|
791
|
+
onPointerMove?: (e: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
792
|
+
/** Single-pointer up. */
|
|
793
|
+
onPointerUp?: (e: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
794
|
+
/**
|
|
795
|
+
* Multiplicative zoom around a canvas-local point. Fired by wheel and by pinch.
|
|
796
|
+
* Consumer applies `newZoom = clamp(oldZoom * factor)` keeping (centerX,centerY) fixed.
|
|
797
|
+
*/
|
|
798
|
+
onZoom?: (factor: number, centerX: number, centerY: number) => void;
|
|
799
|
+
/** Two-finger pan delta in canvas-local px (fired alongside pinch). */
|
|
800
|
+
onPanDelta?: (dx: number, dy: number) => void;
|
|
801
|
+
/** A second pointer arrived — cancel any single-pointer pan/drag the consumer started. */
|
|
802
|
+
onMultiTouchStart?: () => void;
|
|
803
|
+
}
|
|
804
|
+
interface UseCanvasGesturesOptions extends CanvasGestureCallbacks {
|
|
805
|
+
/** The canvas being gestured on (for coordinate translation). */
|
|
806
|
+
canvasRef: React.RefObject<HTMLCanvasElement | null>;
|
|
807
|
+
/** When false, all gestures are inert. Default true. */
|
|
808
|
+
enabled?: boolean;
|
|
809
|
+
/** Wheel zoom step per notch (>1). Default 1.1. */
|
|
810
|
+
wheelStep?: number;
|
|
811
|
+
}
|
|
812
|
+
interface CanvasGestureHandlers {
|
|
813
|
+
onPointerDown: (e: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
814
|
+
onPointerMove: (e: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
815
|
+
onPointerUp: (e: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
816
|
+
onPointerCancel: (e: React.PointerEvent<HTMLCanvasElement>) => void;
|
|
817
|
+
onWheel: (e: React.WheelEvent<HTMLCanvasElement>) => void;
|
|
818
|
+
}
|
|
819
|
+
declare function useCanvasGestures(options: UseCanvasGesturesOptions): CanvasGestureHandlers;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Hover-only reveals (tooltips, hover-popovers, submenus, `Box.hoverEvent`) have no hover on
|
|
823
|
+
* touch, so they're invisible/unreachable. This adds the tap-to-reveal fallback: on a touch/pen
|
|
824
|
+
* tap the surface reveals and fires the SAME event the hover path fires; a tap outside dismisses.
|
|
825
|
+
* Mouse is left to the component's existing hover handlers (`pointerType === 'mouse'` is ignored),
|
|
826
|
+
* so this is purely additive — no behavior change on desktop.
|
|
827
|
+
*/
|
|
828
|
+
interface TapRevealOptions {
|
|
829
|
+
/** Fired when a tap reveals — reuse to emit the component's existing hover event. */
|
|
830
|
+
onReveal?: () => void;
|
|
831
|
+
/** Fired when an outside tap (or a second trigger tap) dismisses. */
|
|
832
|
+
onDismiss?: () => void;
|
|
833
|
+
/**
|
|
834
|
+
* Elements considered "inside" for outside-tap detection. Pass the trigger and the surface
|
|
835
|
+
* (the surface may be portaled, so it isn't a DOM descendant of the trigger). A tap whose
|
|
836
|
+
* target is inside none of these dismisses.
|
|
837
|
+
*/
|
|
838
|
+
refs?: ReadonlyArray<React.RefObject<HTMLElement | null>>;
|
|
839
|
+
/** When false, taps are ignored (hover-only). Default true. */
|
|
840
|
+
enabled?: boolean;
|
|
841
|
+
}
|
|
842
|
+
interface TapRevealResult {
|
|
843
|
+
/** Whether the surface is currently revealed via a tap. OR this with the hover state. */
|
|
844
|
+
revealed: boolean;
|
|
845
|
+
/** Spread on the trigger; toggles reveal on a touch/pen tap (ignores mouse). */
|
|
846
|
+
triggerProps: {
|
|
847
|
+
onPointerDown: (e: React.PointerEvent) => void;
|
|
848
|
+
};
|
|
849
|
+
reveal: () => void;
|
|
850
|
+
dismiss: () => void;
|
|
851
|
+
}
|
|
852
|
+
declare function useTapReveal(options?: TapRevealOptions): TapRevealResult;
|
|
853
|
+
|
|
854
|
+
/** Discriminated payload carried by every drag operation. */
|
|
855
|
+
interface DraggablePayload {
|
|
856
|
+
kind: 'pattern' | 'behavior' | 'tree-node' | 'event-wire';
|
|
857
|
+
data: EventPayload;
|
|
858
|
+
}
|
|
859
|
+
interface UseDraggableOptions {
|
|
860
|
+
/** The payload that will be serialised into dataTransfer. */
|
|
861
|
+
payload: DraggablePayload;
|
|
862
|
+
/** When true the element cannot be dragged. */
|
|
863
|
+
disabled?: boolean;
|
|
864
|
+
}
|
|
865
|
+
interface UseDraggableResult {
|
|
866
|
+
/** Spread these onto the draggable element. */
|
|
867
|
+
dragProps: {
|
|
868
|
+
draggable: boolean;
|
|
869
|
+
onDragStart: (e: React.DragEvent) => void;
|
|
870
|
+
onDragEnd: (e: React.DragEvent) => void;
|
|
871
|
+
'aria-grabbed': boolean;
|
|
872
|
+
};
|
|
873
|
+
/** True while the element is being dragged. */
|
|
874
|
+
isDragging: boolean;
|
|
875
|
+
}
|
|
876
|
+
declare const ALMADAR_DND_MIME = "application/x-almadar-dnd";
|
|
877
|
+
declare function useDraggable({ payload, disabled }: UseDraggableOptions): UseDraggableResult;
|
|
878
|
+
|
|
879
|
+
interface UseDropZoneOptions {
|
|
880
|
+
/** Which payload kinds this zone accepts. */
|
|
881
|
+
accepts: DraggablePayload['kind'][];
|
|
882
|
+
/** Called when a valid payload is dropped. */
|
|
883
|
+
onDrop: (payload: DraggablePayload, position: {
|
|
884
|
+
x: number;
|
|
885
|
+
y: number;
|
|
886
|
+
}) => void;
|
|
887
|
+
/** When true the zone rejects all drops. */
|
|
888
|
+
disabled?: boolean;
|
|
889
|
+
}
|
|
890
|
+
interface UseDropZoneResult {
|
|
891
|
+
/** Spread these onto the drop-target element. */
|
|
892
|
+
dropProps: {
|
|
893
|
+
onDragOver: (e: React.DragEvent) => void;
|
|
894
|
+
onDragLeave: (e: React.DragEvent) => void;
|
|
895
|
+
onDrop: (e: React.DragEvent) => void;
|
|
896
|
+
};
|
|
897
|
+
/** True while a valid drag payload is hovering over this zone. */
|
|
898
|
+
isOver: boolean;
|
|
899
|
+
}
|
|
900
|
+
declare function useDropZone({ accepts, onDrop, disabled }: UseDropZoneOptions): UseDropZoneResult;
|
|
901
|
+
|
|
902
|
+
interface Positioned {
|
|
903
|
+
id: string;
|
|
904
|
+
x: number;
|
|
905
|
+
y: number;
|
|
906
|
+
}
|
|
907
|
+
interface RenderInterpolationOptions {
|
|
908
|
+
/** Expected tick interval in ms (default: 1000/30 ≈ 33.3ms) */
|
|
909
|
+
tickIntervalMs?: number;
|
|
910
|
+
}
|
|
911
|
+
interface RenderInterpolationHandle<T extends Positioned> {
|
|
912
|
+
/** Call when a new authoritative snapshot arrives from the model */
|
|
913
|
+
onSnapshot: (entities: readonly T[]) => void;
|
|
914
|
+
/** Returns interpolated positions for the current rAF timestamp; falls back to authoritative values */
|
|
915
|
+
getInterpolated: (now: number) => Map<string, {
|
|
916
|
+
x: number;
|
|
917
|
+
y: number;
|
|
918
|
+
}>;
|
|
919
|
+
/** Start the rAF loop; call the supplied draw fn on every frame */
|
|
920
|
+
startLoop: (draw: (positions: Map<string, {
|
|
921
|
+
x: number;
|
|
922
|
+
y: number;
|
|
923
|
+
}>) => void) => () => void;
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Fixed-timestep render interpolation between the last two authoritative model snapshots.
|
|
927
|
+
*
|
|
928
|
+
* Buffers two snapshots. On each rAF frame computes
|
|
929
|
+
* alpha = clamp((now - lastArrival) / tickIntervalMs, 0, 1)
|
|
930
|
+
* and lerps x/y between prev and curr, matched by entity id.
|
|
931
|
+
* New or removed entities fall back to their authoritative value directly.
|
|
932
|
+
* Never throws; never causes a React re-render per frame.
|
|
933
|
+
*/
|
|
934
|
+
declare function useRenderInterpolation<T extends Positioned>(options?: RenderInterpolationOptions): RenderInterpolationHandle<T>;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* GitHub connection status
|
|
938
|
+
*/
|
|
939
|
+
interface GitHubStatus {
|
|
940
|
+
connected: boolean;
|
|
941
|
+
username?: string;
|
|
942
|
+
avatarUrl?: string;
|
|
943
|
+
scopes?: string[];
|
|
944
|
+
connectedAt?: number;
|
|
945
|
+
lastUsedAt?: number;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* GitHub repository
|
|
949
|
+
*/
|
|
950
|
+
interface GitHubRepo {
|
|
951
|
+
id: number;
|
|
952
|
+
name: string;
|
|
953
|
+
fullName: string;
|
|
954
|
+
owner: string;
|
|
955
|
+
isPrivate: boolean;
|
|
956
|
+
description: string | null;
|
|
957
|
+
defaultBranch: string;
|
|
958
|
+
url: string;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Hook to get GitHub connection status
|
|
962
|
+
*/
|
|
963
|
+
declare function useGitHubStatus(): _tanstack_react_query.UseQueryResult<NoInfer<GitHubStatus>, Error>;
|
|
964
|
+
/**
|
|
965
|
+
* Hook to connect GitHub (initiate OAuth flow)
|
|
966
|
+
*/
|
|
967
|
+
declare function useConnectGitHub(): {
|
|
968
|
+
connectGitHub: () => void;
|
|
969
|
+
};
|
|
970
|
+
/**
|
|
971
|
+
* Hook to disconnect GitHub
|
|
972
|
+
*/
|
|
973
|
+
declare function useDisconnectGitHub(): _tanstack_react_query.UseMutationResult<unknown, Error, void, unknown>;
|
|
974
|
+
/**
|
|
975
|
+
* Hook to list GitHub repositories
|
|
976
|
+
*/
|
|
977
|
+
declare function useGitHubRepos(page?: number, perPage?: number): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
978
|
+
repos: GitHubRepo[];
|
|
979
|
+
page: number;
|
|
980
|
+
perPage: number;
|
|
981
|
+
}>, Error>;
|
|
982
|
+
/**
|
|
983
|
+
* Hook to get repository details
|
|
984
|
+
*/
|
|
985
|
+
declare function useGitHubRepo(owner: string, repo: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
986
|
+
repo: GitHubRepo;
|
|
987
|
+
}>, Error>;
|
|
988
|
+
/**
|
|
989
|
+
* Hook to list repository branches
|
|
990
|
+
*/
|
|
991
|
+
declare function useGitHubBranches(owner: string, repo: string, enabled?: boolean): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
992
|
+
branches: string[];
|
|
993
|
+
}>, Error>;
|
|
994
|
+
|
|
995
|
+
export { ALMADAR_DND_MIME, type AuthContextValue, type AuthUser, type CanvasGestureCallbacks, type CanvasGestureHandlers, type CompileResult, type CompileStage, type DragReorderResult, type DraggablePayload, type Extension, type ExtensionManifest, type FileSystemFile, type FileSystemStatus, type GitHubRepo, type GitHubStatus, type HistoryChangeSummary, type HistoryTimelineItem, type I18nContextValue, I18nProvider, type InfiniteScrollOptions, type InfiniteScrollResult, type LongPressHandlers, type LongPressOptions, type OpenFile, type Positioned, type PullToRefreshOptions, type PullToRefreshResult, type QuerySingletonEntity, type QuerySingletonResult, type QuerySingletonState, type QueryState, type RenderInterpolationHandle, type RenderInterpolationOptions, type RevertResult, type SelectedFile, type SharedEntityStore, type SharedEntitySubscriber, type SharedEntityWriter, type SwipeGestureOptions, type SwipeGestureResult, type SwipeHandlers, type TapRevealOptions, type TapRevealResult, type TraitListenSpec, type TranslateFunction, type UseCanvasGesturesOptions, type UseCompileResult, type UseDraggableOptions, type UseDraggableResult, type UseDropZoneOptions, type UseDropZoneResult, type UseExtensionsOptions, type UseExtensionsResult, type UseFileEditorOptions, type UseFileEditorResult, type UseFileSystemResult, type UseOrbitalHistoryOptions, type UseOrbitalHistoryResult, createSharedEntityStore, createTranslate, parseQueryBinding, runTickFrame, useAgentChat, useAuthContext, useCanvasGestures, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useDragReorder, useDraggable, useDropZone, useEventBus, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInfiniteScroll, useLongPress, useOrbitalHistory, usePreview, usePullToRefresh, useQuerySingleton, useRenderInterpolation, useSharedEntitySnapshot, useSharedEntityStore, useSwipeGesture, useTapReveal, useTraitListens, useTranslate, useUIEvents, useValidation };
|