@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
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface ImageCacheResult {
|
|
2
|
-
/** Get a cached image by URL. Returns undefined if not yet loaded. */
|
|
3
|
-
getImage: (url: string) => HTMLImageElement | undefined;
|
|
4
|
-
/** Whether all requested images have loaded */
|
|
5
|
-
isLoaded: boolean;
|
|
6
|
-
/** Number of images currently loading */
|
|
7
|
-
pendingCount: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Preload and cache images for canvas rendering.
|
|
11
|
-
*
|
|
12
|
-
* @param urls - Array of image URLs to preload
|
|
13
|
-
* @returns Cache getter, loading state, and pending count
|
|
14
|
-
*/
|
|
15
|
-
export declare function useImageCache(urls: string[]): ImageCacheResult;
|
|
16
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface InfiniteScrollOptions {
|
|
2
|
-
/** Root margin for IntersectionObserver (default: "200px") */
|
|
3
|
-
rootMargin?: string;
|
|
4
|
-
/** Whether more items are available to load */
|
|
5
|
-
hasMore?: boolean;
|
|
6
|
-
/** Whether a load is currently in progress */
|
|
7
|
-
isLoading?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface InfiniteScrollResult {
|
|
10
|
-
/** Ref to attach to the sentinel element */
|
|
11
|
-
sentinelRef: React.RefCallback<HTMLElement>;
|
|
12
|
-
}
|
|
13
|
-
export declare function useInfiniteScroll(onLoadMore: () => void, options?: InfiniteScrollOptions): InfiniteScrollResult;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
export interface LongPressOptions {
|
|
3
|
-
/** Hold duration in ms before triggering (default: 500) */
|
|
4
|
-
duration?: number;
|
|
5
|
-
/** Movement tolerance in px before canceling (default: 10) */
|
|
6
|
-
moveThreshold?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface LongPressHandlers {
|
|
9
|
-
onPointerDown: (e: React.PointerEvent) => void;
|
|
10
|
-
onPointerMove: (e: React.PointerEvent) => void;
|
|
11
|
-
onPointerUp: () => void;
|
|
12
|
-
onPointerCancel: () => void;
|
|
13
|
-
/** Whether the long press is currently active (held down, timer running) */
|
|
14
|
-
isPressed: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare function useLongPress(onLongPress: () => void, options?: LongPressOptions): LongPressHandlers;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { OrbitalSchema } from '@almadar/core';
|
|
2
|
-
export interface HistoryChangeSummary {
|
|
3
|
-
added: number;
|
|
4
|
-
modified: number;
|
|
5
|
-
removed: number;
|
|
6
|
-
}
|
|
7
|
-
export interface HistoryTimelineItem {
|
|
8
|
-
id: string;
|
|
9
|
-
type: 'changeset' | 'snapshot';
|
|
10
|
-
version: number;
|
|
11
|
-
timestamp: number;
|
|
12
|
-
description: string;
|
|
13
|
-
source?: string;
|
|
14
|
-
summary?: HistoryChangeSummary;
|
|
15
|
-
reason?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface RevertResult {
|
|
18
|
-
success: boolean;
|
|
19
|
-
error?: string;
|
|
20
|
-
restoredSchema?: OrbitalSchema;
|
|
21
|
-
}
|
|
22
|
-
export interface UseOrbitalHistoryOptions {
|
|
23
|
-
appId: string | null;
|
|
24
|
-
/** Firebase auth token for authenticated API requests */
|
|
25
|
-
authToken?: string | null;
|
|
26
|
-
/** User ID for x-user-id header (required for Firestore path) */
|
|
27
|
-
userId?: string | null;
|
|
28
|
-
onHistoryChange?: (timeline: HistoryTimelineItem[]) => void;
|
|
29
|
-
onRevertSuccess?: (restoredSchema: OrbitalSchema) => void;
|
|
30
|
-
}
|
|
31
|
-
export interface UseOrbitalHistoryResult {
|
|
32
|
-
timeline: HistoryTimelineItem[];
|
|
33
|
-
currentVersion: number;
|
|
34
|
-
isLoading: boolean;
|
|
35
|
-
error: string | null;
|
|
36
|
-
revertToSnapshot: (snapshotId: string) => Promise<RevertResult>;
|
|
37
|
-
refresh: () => Promise<void>;
|
|
38
|
-
}
|
|
39
|
-
export declare function useOrbitalHistory(options: UseOrbitalHistoryOptions): UseOrbitalHistoryResult;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { OrbitalSchema } from '@almadar/core';
|
|
2
|
-
export interface PreviewApp {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
status: 'loading' | 'ready' | 'error';
|
|
6
|
-
schema?: OrbitalSchema;
|
|
7
|
-
graphView: {
|
|
8
|
-
version: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface Notification {
|
|
12
|
-
id: string;
|
|
13
|
-
type: 'info' | 'warning' | 'error' | 'success';
|
|
14
|
-
title: string;
|
|
15
|
-
message: string;
|
|
16
|
-
timestamp: number;
|
|
17
|
-
read?: boolean;
|
|
18
|
-
actionLabel?: string;
|
|
19
|
-
onAction?: () => void;
|
|
20
|
-
autoDismiss?: boolean;
|
|
21
|
-
dismissAfter?: number;
|
|
22
|
-
}
|
|
23
|
-
export interface NotificationsState {
|
|
24
|
-
notifications: Notification[];
|
|
25
|
-
isPanelOpen: boolean;
|
|
26
|
-
closePanel: () => void;
|
|
27
|
-
dismissNotification: (id: string) => void;
|
|
28
|
-
markAsRead: (id: string) => void;
|
|
29
|
-
clearAll: () => void;
|
|
30
|
-
}
|
|
31
|
-
export interface ErrorToast {
|
|
32
|
-
message: string;
|
|
33
|
-
}
|
|
34
|
-
export interface UsePreviewResult {
|
|
35
|
-
previewUrl: string | null;
|
|
36
|
-
isLoading: boolean;
|
|
37
|
-
error: string | null;
|
|
38
|
-
loadError: string | null;
|
|
39
|
-
app: PreviewApp | null;
|
|
40
|
-
isFullscreen: boolean;
|
|
41
|
-
isExecutingEvent: boolean;
|
|
42
|
-
errorToast: ErrorToast | null;
|
|
43
|
-
currentStateName: string | null;
|
|
44
|
-
notifications: NotificationsState;
|
|
45
|
-
startPreview: () => Promise<void>;
|
|
46
|
-
stopPreview: () => Promise<void>;
|
|
47
|
-
refresh: () => Promise<void>;
|
|
48
|
-
handleRefresh: () => Promise<void>;
|
|
49
|
-
handleReset: () => Promise<void>;
|
|
50
|
-
toggleFullscreen: () => void;
|
|
51
|
-
setErrorToast: (toast: ErrorToast | null) => void;
|
|
52
|
-
dismissErrorToast: () => void;
|
|
53
|
-
}
|
|
54
|
-
export interface UsePreviewOptions {
|
|
55
|
-
appId?: string;
|
|
56
|
-
}
|
|
57
|
-
export declare function usePreview(options?: UsePreviewOptions): UsePreviewResult;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
export interface PullToRefreshOptions {
|
|
3
|
-
/** Distance in px to pull before triggering refresh (default: 60) */
|
|
4
|
-
threshold?: number;
|
|
5
|
-
/** Maximum pull distance in px (default: 120) */
|
|
6
|
-
maxPull?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface PullToRefreshResult {
|
|
9
|
-
/** Current pull distance in px */
|
|
10
|
-
pullDistance: number;
|
|
11
|
-
/** Whether the user is actively pulling */
|
|
12
|
-
isPulling: boolean;
|
|
13
|
-
/** Whether a refresh was triggered and is in progress */
|
|
14
|
-
isRefreshing: boolean;
|
|
15
|
-
/** Props to spread on the scrollable container */
|
|
16
|
-
containerProps: {
|
|
17
|
-
onTouchStart: (e: React.TouchEvent) => void;
|
|
18
|
-
onTouchMove: (e: React.TouchEvent) => void;
|
|
19
|
-
onTouchEnd: () => void;
|
|
20
|
-
style: React.CSSProperties;
|
|
21
|
-
};
|
|
22
|
-
/** Call this when the refresh operation completes */
|
|
23
|
-
endRefresh: () => void;
|
|
24
|
-
}
|
|
25
|
-
export declare function usePullToRefresh(onRefresh: () => void, options?: PullToRefreshOptions): PullToRefreshResult;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { FieldValue } from '@almadar/core';
|
|
2
|
-
/**
|
|
3
|
-
* Query state for filters and search
|
|
4
|
-
*/
|
|
5
|
-
export interface QueryState {
|
|
6
|
-
search?: string;
|
|
7
|
-
filters?: Record<string, FieldValue>;
|
|
8
|
-
sortField?: string;
|
|
9
|
-
sortDirection?: 'asc' | 'desc';
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Query singleton entity reference
|
|
13
|
-
*/
|
|
14
|
-
export interface QuerySingletonEntity {
|
|
15
|
-
name: string;
|
|
16
|
-
fields: Record<string, FieldValue>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Query singleton result type
|
|
20
|
-
*/
|
|
21
|
-
export interface QuerySingletonResult {
|
|
22
|
-
state: QueryState;
|
|
23
|
-
setState: (state: Partial<QueryState>) => void;
|
|
24
|
-
reset: () => void;
|
|
25
|
-
}
|
|
26
|
-
export interface QuerySingletonState {
|
|
27
|
-
/** Current search term */
|
|
28
|
-
search: string;
|
|
29
|
-
/** Set search term */
|
|
30
|
-
setSearch: (value: string) => void;
|
|
31
|
-
/** Current filters */
|
|
32
|
-
filters: Record<string, FieldValue>;
|
|
33
|
-
/** Set a filter value */
|
|
34
|
-
setFilter: (key: string, value: FieldValue) => void;
|
|
35
|
-
/** Clear all filters */
|
|
36
|
-
clearFilters: () => void;
|
|
37
|
-
/** Current sort field */
|
|
38
|
-
sortField?: string;
|
|
39
|
-
/** Current sort direction */
|
|
40
|
-
sortDirection?: 'asc' | 'desc';
|
|
41
|
-
/** Set sort */
|
|
42
|
-
setSort: (field: string, direction: 'asc' | 'desc') => void;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Hook for accessing a query singleton by name
|
|
46
|
-
*
|
|
47
|
-
* @param query - Query singleton name (e.g., "@TaskQuery")
|
|
48
|
-
* @returns Query singleton state or null if no query provided
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```tsx
|
|
52
|
-
* const queryState = useQuerySingleton('@TaskQuery');
|
|
53
|
-
*
|
|
54
|
-
* // Use search state
|
|
55
|
-
* queryState?.search
|
|
56
|
-
* queryState?.setSearch('new search term')
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
export declare function useQuerySingleton(query?: string): QuerySingletonState | null;
|
|
60
|
-
/**
|
|
61
|
-
* Parse a query binding string to extract the query singleton name
|
|
62
|
-
*
|
|
63
|
-
* @param binding - Binding string like "@TaskQuery.search" or "@TaskQuery"
|
|
64
|
-
* @returns Object with query name and optional field path
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```tsx
|
|
68
|
-
* parseQueryBinding('@TaskQuery.search')
|
|
69
|
-
* // { query: 'TaskQuery', field: 'search' }
|
|
70
|
-
*
|
|
71
|
-
* parseQueryBinding('@TaskQuery')
|
|
72
|
-
* // { query: 'TaskQuery', field: undefined }
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
export declare function parseQueryBinding(binding: string): {
|
|
76
|
-
query: string;
|
|
77
|
-
field?: string;
|
|
78
|
-
};
|
|
79
|
-
export default useQuerySingleton;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface Positioned {
|
|
2
|
-
id: string;
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
export interface RenderInterpolationOptions {
|
|
7
|
-
/** Expected tick interval in ms (default: 1000/30 ≈ 33.3ms) */
|
|
8
|
-
tickIntervalMs?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface RenderInterpolationHandle<T extends Positioned> {
|
|
11
|
-
/** Call when a new authoritative snapshot arrives from the model */
|
|
12
|
-
onSnapshot: (entities: readonly T[]) => void;
|
|
13
|
-
/** Returns interpolated positions for the current rAF timestamp; falls back to authoritative values */
|
|
14
|
-
getInterpolated: (now: number) => Map<string, {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
}>;
|
|
18
|
-
/** Start the rAF loop; call the supplied draw fn on every frame */
|
|
19
|
-
startLoop: (draw: (positions: Map<string, {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
}>) => void) => () => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Fixed-timestep render interpolation between the last two authoritative model snapshots.
|
|
26
|
-
*
|
|
27
|
-
* Buffers two snapshots. On each rAF frame computes
|
|
28
|
-
* alpha = clamp((now - lastArrival) / tickIntervalMs, 0, 1)
|
|
29
|
-
* and lerps x/y between prev and curr, matched by entity id.
|
|
30
|
-
* New or removed entities fall back to their authoritative value directly.
|
|
31
|
-
* Never throws; never causes a React re-render per frame.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useRenderInterpolation<T extends Positioned>(options?: RenderInterpolationOptions): RenderInterpolationHandle<T>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useResolvedSchema Hook
|
|
3
|
-
*
|
|
4
|
-
* Resolves OrbitalSchema to IR for the OrbitalRuntime.
|
|
5
|
-
* Uses the shared resolver to ensure consistency with the compiler.
|
|
6
|
-
*
|
|
7
|
-
* TRAIT-DRIVEN ARCHITECTURE:
|
|
8
|
-
* - Pages have traits, NOT sections
|
|
9
|
-
* - UI is produced by trait effects (render_ui)
|
|
10
|
-
* - No backwards compatibility with legacy formats
|
|
11
|
-
*
|
|
12
|
-
* @packageDocumentation
|
|
13
|
-
*/
|
|
14
|
-
import type { OrbitalSchema } from '@almadar/core';
|
|
15
|
-
import type { ResolvedIR, ResolvedPage, ResolvedTrait, ResolvedEntity, ResolvedTraitBinding } from '../types/runtime-types';
|
|
16
|
-
export interface ResolvedSchemaResult {
|
|
17
|
-
/** The resolved page (or undefined if not found) */
|
|
18
|
-
page: ResolvedPage | undefined;
|
|
19
|
-
/** Trait bindings for this page */
|
|
20
|
-
traits: ResolvedTraitBinding[];
|
|
21
|
-
/** Entities used by this page */
|
|
22
|
-
entities: Map<string, ResolvedEntity>;
|
|
23
|
-
/** All entities from schema */
|
|
24
|
-
allEntities: Map<string, ResolvedEntity>;
|
|
25
|
-
/** All resolved traits */
|
|
26
|
-
allTraits: Map<string, ResolvedTrait>;
|
|
27
|
-
/** Loading state */
|
|
28
|
-
loading: boolean;
|
|
29
|
-
/** Error message if resolution failed */
|
|
30
|
-
error: string | null;
|
|
31
|
-
/** Full IR (for debugging) */
|
|
32
|
-
ir: ResolvedIR | null;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Hook to resolve an OrbitalSchema to IR.
|
|
36
|
-
*
|
|
37
|
-
* @param schema - The OrbitalSchema to resolve
|
|
38
|
-
* @param pageName - Optional page name (defaults to first page or initial page)
|
|
39
|
-
* @returns Resolved schema data including page, traits, and entities
|
|
40
|
-
*/
|
|
41
|
-
export declare function useResolvedSchema(schema: OrbitalSchema | null | undefined, pageName?: string): ResolvedSchemaResult;
|
|
42
|
-
/**
|
|
43
|
-
* Clear the schema resolution cache
|
|
44
|
-
*/
|
|
45
|
-
export declare function clearSchemaCache(): void;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { EntityFieldWrite, EntityFrameState } from '@almadar/core';
|
|
2
|
-
/** Notification callback fired after a `commit()` for the subscribed entity id. */
|
|
3
|
-
export type SharedEntitySubscriber = () => void;
|
|
4
|
-
/**
|
|
5
|
-
* One writer trait's per-frame step: reads the live running scratch
|
|
6
|
-
* (reflecting every earlier writer's writes this frame) and returns its own
|
|
7
|
-
* field writes. Pure — writers never call `store.commit`; only `runTickFrame`
|
|
8
|
-
* does, once per frame.
|
|
9
|
-
*/
|
|
10
|
-
export type SharedEntityWriter = (scratch: EntityFrameState) => readonly EntityFieldWrite[];
|
|
11
|
-
/** Manager surface, keyed by entity id. */
|
|
12
|
-
export interface SharedEntityStore {
|
|
13
|
-
getSnapshot: (entityId: string) => EntityFrameState;
|
|
14
|
-
subscribe: (entityId: string, callback: SharedEntitySubscriber) => () => void;
|
|
15
|
-
commit: (entityId: string, nextState: EntityFrameState) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Set the initial state for an entity id, but ONLY if nothing is committed
|
|
18
|
-
* yet — idempotent, and (unlike `commit`) does NOT notify subscribers, so it
|
|
19
|
-
* is safe to call during render. Both execution paths seed from the entity's
|
|
20
|
-
* declared field defaults at init, so frame 0 reads the defaults on both.
|
|
21
|
-
*/
|
|
22
|
-
seed: (entityId: string, initialState: EntityFrameState) => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Create a standalone shared-entity store. Plain factory — no React — so a
|
|
26
|
-
* clock owner (the interpreter's TickScheduler, or a codegen rAF
|
|
27
|
-
* `useEffect`) can hold one instance and pass it to `runTickFrame` without
|
|
28
|
-
* going through a hook.
|
|
29
|
-
*/
|
|
30
|
-
export declare function createSharedEntityStore(): SharedEntityStore;
|
|
31
|
-
/**
|
|
32
|
-
* React hook: one stable `SharedEntityStore` instance for this component's
|
|
33
|
-
* lifetime (useUISlotManager's ref-backed-instance pattern — no re-creation
|
|
34
|
-
* across re-renders). Callers own one store per running orbital instance and
|
|
35
|
-
* thread it to each writer trait plus the render trait via `runTickFrame` /
|
|
36
|
-
* `useSharedEntitySnapshot`.
|
|
37
|
-
*/
|
|
38
|
-
export declare function useSharedEntityStore(): SharedEntityStore;
|
|
39
|
-
/**
|
|
40
|
-
* Bridge one entity's snapshot into React via `useSyncExternalStore` (the
|
|
41
|
-
* codebase's established store->React bridge, see `lib/perf.ts`). The render
|
|
42
|
-
* trait re-renders exactly when `runTickFrame` commits this entity — never on
|
|
43
|
-
* an intermediate per-writer write, since those never call `store.commit`.
|
|
44
|
-
*/
|
|
45
|
-
export declare function useSharedEntitySnapshot(store: SharedEntityStore, entityId: string): EntityFrameState;
|
|
46
|
-
/**
|
|
47
|
-
* Run one frame for `entityId`: fold each writer's writes into a running
|
|
48
|
-
* scratch in binding order via `mergeEntityFrame` (field-level, so writer
|
|
49
|
-
* k+1 reads writer k's same-frame writes), then commit the merged result
|
|
50
|
-
* exactly ONCE. Clock-agnostic — the caller (a TickScheduler tick or a
|
|
51
|
-
* codegen rAF loop) invokes this once per frame; it owns no timer itself.
|
|
52
|
-
*/
|
|
53
|
-
export declare function runTickFrame(entityId: string, orderedWriters: readonly SharedEntityWriter[], store: SharedEntityStore): EntityFrameState;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface SwipeGestureOptions {
|
|
2
|
-
/** Minimum distance in px to trigger a swipe (default: 50) */
|
|
3
|
-
threshold?: number;
|
|
4
|
-
/** Minimum velocity in px/ms to qualify (default: 0.3) */
|
|
5
|
-
velocityThreshold?: number;
|
|
6
|
-
/** Prevent default touch behavior during swipe (default: false) */
|
|
7
|
-
preventDefault?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface SwipeGestureResult {
|
|
10
|
-
onSwipeLeft?: () => void;
|
|
11
|
-
onSwipeRight?: () => void;
|
|
12
|
-
onSwipeUp?: () => void;
|
|
13
|
-
onSwipeDown?: () => void;
|
|
14
|
-
}
|
|
15
|
-
export interface SwipeHandlers {
|
|
16
|
-
onPointerDown: (e: React.PointerEvent) => void;
|
|
17
|
-
onPointerMove: (e: React.PointerEvent) => void;
|
|
18
|
-
onPointerUp: (e: React.PointerEvent) => void;
|
|
19
|
-
onPointerCancel: (e: React.PointerEvent) => void;
|
|
20
|
-
/** Current horizontal offset during swipe (for animation) */
|
|
21
|
-
offsetX: number;
|
|
22
|
-
/** Whether a swipe gesture is in progress */
|
|
23
|
-
isSwiping: boolean;
|
|
24
|
-
}
|
|
25
|
-
import type React from 'react';
|
|
26
|
-
export declare function useSwipeGesture(callbacks: SwipeGestureResult, options?: SwipeGestureOptions): SwipeHandlers;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hover-only reveals (tooltips, hover-popovers, submenus, `Box.hoverEvent`) have no hover on
|
|
3
|
-
* touch, so they're invisible/unreachable. This adds the tap-to-reveal fallback: on a touch/pen
|
|
4
|
-
* tap the surface reveals and fires the SAME event the hover path fires; a tap outside dismisses.
|
|
5
|
-
* Mouse is left to the component's existing hover handlers (`pointerType === 'mouse'` is ignored),
|
|
6
|
-
* so this is purely additive — no behavior change on desktop.
|
|
7
|
-
*/
|
|
8
|
-
export interface TapRevealOptions {
|
|
9
|
-
/** Fired when a tap reveals — reuse to emit the component's existing hover event. */
|
|
10
|
-
onReveal?: () => void;
|
|
11
|
-
/** Fired when an outside tap (or a second trigger tap) dismisses. */
|
|
12
|
-
onDismiss?: () => void;
|
|
13
|
-
/**
|
|
14
|
-
* Elements considered "inside" for outside-tap detection. Pass the trigger and the surface
|
|
15
|
-
* (the surface may be portaled, so it isn't a DOM descendant of the trigger). A tap whose
|
|
16
|
-
* target is inside none of these dismisses.
|
|
17
|
-
*/
|
|
18
|
-
refs?: ReadonlyArray<React.RefObject<HTMLElement | null>>;
|
|
19
|
-
/** When false, taps are ignored (hover-only). Default true. */
|
|
20
|
-
enabled?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface TapRevealResult {
|
|
23
|
-
/** Whether the surface is currently revealed via a tap. OR this with the hover state. */
|
|
24
|
-
revealed: boolean;
|
|
25
|
-
/** Spread on the trigger; toggles reveal on a touch/pen tap (ignores mouse). */
|
|
26
|
-
triggerProps: {
|
|
27
|
-
onPointerDown: (e: React.PointerEvent) => void;
|
|
28
|
-
};
|
|
29
|
-
reveal: () => void;
|
|
30
|
-
dismiss: () => void;
|
|
31
|
-
}
|
|
32
|
-
export declare function useTapReveal(options?: TapRevealOptions): TapRevealResult;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useTraitStateMachine Hook
|
|
3
|
-
*
|
|
4
|
-
* Manages trait state machines with event-driven transitions.
|
|
5
|
-
* Subscribes to eventBus events and executes effects when transitions occur.
|
|
6
|
-
*
|
|
7
|
-
* CONSOLIDATED RUNTIME:
|
|
8
|
-
* - Uses StateMachineManager from @almadar/runtime for state management
|
|
9
|
-
* - Uses the same state machine logic as the server runtime (OrbitalServerRuntime)
|
|
10
|
-
* - Ensures consistent behavior between client preview and server execution
|
|
11
|
-
*
|
|
12
|
-
* SLOT MANAGEMENT:
|
|
13
|
-
* - Collects all render-ui effects from a transition, groups by slot
|
|
14
|
-
* - Sets each slot's patterns array atomically via SlotsActions
|
|
15
|
-
* - No stacking logic, no priority system — transition produces complete slot content
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
import { type MutableRefObject } from 'react';
|
|
20
|
-
import { type SharedEntityWriter } from './index';
|
|
21
|
-
import type { ResolvedTraitTick, EventPayload, SExpr, ServiceParams, ResolvedTrait } from '@almadar/core';
|
|
22
|
-
import { type TraitState } from '@almadar/runtime';
|
|
23
|
-
import type { ResolvedTraitBinding } from '../types/runtime-types';
|
|
24
|
-
import type { useUISlots } from '../providers/UISlotContext';
|
|
25
|
-
export type { TraitState };
|
|
26
|
-
export interface TraitStateMachineResult {
|
|
27
|
-
/** Current state for each trait */
|
|
28
|
-
traitStates: Map<string, TraitState>;
|
|
29
|
-
/** Send an event to trigger a transition */
|
|
30
|
-
sendEvent: (eventKey: string, payload?: EventPayload) => void;
|
|
31
|
-
/** Get current state for a specific trait */
|
|
32
|
-
getTraitState: (traitName: string) => TraitState | undefined;
|
|
33
|
-
/** Check if a trait can handle an event from its current state */
|
|
34
|
-
canHandleEvent: (traitName: string, eventKey: string) => boolean;
|
|
35
|
-
}
|
|
36
|
-
/** Effect head-operator that writes a field onto a shared entity. */
|
|
37
|
-
export declare const SHARED_ENTITY_WRITE_OPS: ReadonlySet<string>;
|
|
38
|
-
/** Effect head-operators that paint a shared entity's merged state. */
|
|
39
|
-
export declare const SHARED_ENTITY_RENDER_OPS: ReadonlySet<string>;
|
|
40
|
-
/** Every tick + transition effect a trait declares, flattened for a structural scan. */
|
|
41
|
-
export declare function collectAllTraitEffects(trait: ResolvedTrait): SExpr[];
|
|
42
|
-
/**
|
|
43
|
-
* Does ANY effect in this list call one of `ops` anywhere in its (possibly
|
|
44
|
-
* `do`/`if`/`when`/`let`-nested) tree? Reuses `@almadar/core`'s canonical
|
|
45
|
-
* `walkSExpr` rather than a bespoke recursive walk, and looks only at the
|
|
46
|
-
* effect's head operator — a structural presence check, no name-matching.
|
|
47
|
-
*/
|
|
48
|
-
export declare function effectsCallOp(effects: SExpr[], ops: ReadonlySet<string>): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Build one writer trait's tick into a synchronous `SharedEntityWriter`
|
|
51
|
-
* (`(scratch) => writes[]`) so `runTickFrame` can fold several writer ticks
|
|
52
|
-
* into one merged commit, in binding order.
|
|
53
|
-
*
|
|
54
|
-
* `runTickFrame`'s writer contract is synchronous, but `@almadar/runtime`'s
|
|
55
|
-
* `EffectExecutor` is inherently async (`executeAll`'s `for...of await`
|
|
56
|
-
* sequencing only guarantees the FIRST top-level effect lands before a
|
|
57
|
-
* fire-and-forget caller reads the result back — everything after the first
|
|
58
|
-
* `await` boundary would be silently dropped). `@almadar/evaluator`'s
|
|
59
|
-
* `executeEffects` is fully synchronous end-to-end (its `set`/`do`/`if`/
|
|
60
|
-
* `when`/`let` dispatch never awaits), so it — not `EffectExecutor` — is the
|
|
61
|
-
* correct tool here; `ctx.mutateEntity` captures each write instead of
|
|
62
|
-
* applying it through a handler.
|
|
63
|
-
*/
|
|
64
|
-
export declare function createSharedEntityWriter(binding: ResolvedTraitBinding, tick: ResolvedTraitTick, traitStatesRef: MutableRefObject<Map<string, TraitState>>, emit: (event: string, payload?: EventPayload) => void): SharedEntityWriter;
|
|
65
|
-
export interface UseTraitStateMachineOptions {
|
|
66
|
-
/**
|
|
67
|
-
* Callback invoked after each event is processed (for server forwarding).
|
|
68
|
-
*
|
|
69
|
-
* `dispatchedOrbitals` is the set of orbital names whose traits actually
|
|
70
|
-
* executed a transition for this event. The server-bridge fan-out should
|
|
71
|
-
* be scoped to this set; sending the event to other orbitals fires
|
|
72
|
-
* same-named transitions in unrelated orbitals and stacks their UI into
|
|
73
|
-
* the wrong slot (gap #11 in `docs/Almadar_Std_Verification.md`). Empty
|
|
74
|
-
* set means no local transition matched — leave the legacy fallback to
|
|
75
|
-
* the consumer.
|
|
76
|
-
*/
|
|
77
|
-
onEventProcessed?: (eventKey: string, payload?: EventPayload, dispatchedOrbitals?: Set<string>) => void | Promise<void>;
|
|
78
|
-
/** Router navigate function for navigate effects */
|
|
79
|
-
navigate?: (path: string, params?: Record<string, string>) => void;
|
|
80
|
-
/** Notification function for notify effects */
|
|
81
|
-
notify?: (message: string, type?: 'success' | 'error' | 'warning' | 'info') => void;
|
|
82
|
-
/**
|
|
83
|
-
* Offline-preview persistence layer. When set, the client runtime merges
|
|
84
|
-
* `@almadar/runtime` `createServerEffectHandlers` on top of the default
|
|
85
|
-
* client handlers so `fetch` / `persist` / `set` / `ref` / `deref` /
|
|
86
|
-
* `swap!` / `atomic` / `callService` run against this adapter — matching
|
|
87
|
-
* what `OrbitalServerRuntime` would do on the server. Left unset in the
|
|
88
|
-
* server-bridge path; effects there flow to the real server.
|
|
89
|
-
*/
|
|
90
|
-
persistence?: import('@almadar/runtime').PersistenceAdapter;
|
|
91
|
-
/** Optional consumer `call-service` hook forwarded to the mock server handlers. */
|
|
92
|
-
callService?: (service: string, action: string, params?: ServiceParams) => Promise<EventPayload>;
|
|
93
|
-
/**
|
|
94
|
-
* Trait configs keyed by trait name. Threaded into setTraitConfig so
|
|
95
|
-
* `@config.X` resolves inside guard expressions on the client. Page-level
|
|
96
|
-
* `ResolvedTraitBinding`s often arrive without a config (the orbital-level
|
|
97
|
-
* config doesn't propagate through `@almadar/core`'s page resolver), so the
|
|
98
|
-
* caller assembles this map from the orbital schema directly.
|
|
99
|
-
*/
|
|
100
|
-
traitConfigsByName?: Record<string, import('@almadar/core').TraitConfig>;
|
|
101
|
-
/**
|
|
102
|
-
* Trait → orbital map built from `schema.orbitals[].traits[]` by the
|
|
103
|
-
* caller. Threaded down so bus emits (`UI:Orbital.Trait.Event`) and
|
|
104
|
-
* subscriptions can carry the qualified `Orbital.Trait` scope —
|
|
105
|
-
* gap #13 unification. Same mechanism as `traitConfigsByName`: the
|
|
106
|
-
* orbital boundary doesn't propagate through `@almadar/core`'s
|
|
107
|
-
* `ResolvedTraitBinding`, so the caller assembles the map directly.
|
|
108
|
-
*/
|
|
109
|
-
orbitalsByTrait?: Record<string, string>;
|
|
110
|
-
/**
|
|
111
|
-
* Set of trait names referenced via `@trait.X` by some sibling
|
|
112
|
-
* layout in the resolved schema. Slot writes from these traits go
|
|
113
|
-
* to the per-trait sidecar via `uiSlots.updateTraitContent`; the
|
|
114
|
-
* layout owns the slot and embeds via `<TraitFrame>`. Mirrors
|
|
115
|
-
* compiled-path codegen semantics.
|
|
116
|
-
*/
|
|
117
|
-
embeddedTraits?: ReadonlySet<string>;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* useTraitStateMachine - Manages state machines for multiple traits
|
|
121
|
-
*
|
|
122
|
-
* Uses the shared StateMachineManager for consistent behavior with server runtime.
|
|
123
|
-
* Collects render-ui effects per transition and sets slot content atomically.
|
|
124
|
-
*
|
|
125
|
-
* Slot writes go directly to `useUISlots` (the canonical store the DOM
|
|
126
|
-
* reads from) instead of routing through the now-removed `SlotsContext`
|
|
127
|
-
* + `SlotBridge` mirror. Trait names listed in `embeddedTraits` are
|
|
128
|
-
* referenced via `@trait.X` by some sibling layout's render-ui — for
|
|
129
|
-
* those, slot writes update the per-trait sidecar (via
|
|
130
|
-
* `updateTraitContent`) so `<TraitFrame>` can pick them up without the
|
|
131
|
-
* atom landing as a separate slot source. Mirrors compiled-path
|
|
132
|
-
* codegen, where atom views are inlined as JSX inside the layout's
|
|
133
|
-
* pattern rather than each writing a shared slot.
|
|
134
|
-
*/
|
|
135
|
-
export declare function useTraitStateMachine(traitBindings: ResolvedTraitBinding[], uiSlots: ReturnType<typeof useUISlots>, options?: UseTraitStateMachineOptions): TraitStateMachineResult;
|
|
136
|
-
export default useTraitStateMachine;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export type TranslateFunction = (key: string, params?: Record<string, string | number>) => string;
|
|
2
|
-
export interface I18nContextValue {
|
|
3
|
-
/** Current locale code (e.g. 'en', 'ar', 'sl') */
|
|
4
|
-
locale: string;
|
|
5
|
-
/** Text direction for the current locale */
|
|
6
|
-
direction: 'ltr' | 'rtl';
|
|
7
|
-
/** Translate a key, with optional interpolation params */
|
|
8
|
-
t: TranslateFunction;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Provider component — wrap your app or Storybook decorator with this.
|
|
12
|
-
*
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <I18nProvider value={{ locale: 'ar', direction: 'rtl', t: createTranslate(arMessages) }}>
|
|
15
|
-
* <App />
|
|
16
|
-
* </I18nProvider>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare const I18nProvider: import("react").Provider<I18nContextValue>;
|
|
20
|
-
/**
|
|
21
|
-
* Hook to access the current locale and translate function.
|
|
22
|
-
* Safe to call without a provider — returns passthrough t().
|
|
23
|
-
*/
|
|
24
|
-
export declare function useTranslate(): I18nContextValue;
|
|
25
|
-
/**
|
|
26
|
-
* Create a translate function from a flat messages object.
|
|
27
|
-
*
|
|
28
|
-
* ```ts
|
|
29
|
-
* const t = createTranslate({ 'common.save': 'Save', 'table.showing': 'Showing {{count}} of {{total}}' });
|
|
30
|
-
* t('common.save') // → 'Save'
|
|
31
|
-
* t('table.showing', { count: 5, total: 20 }) // → 'Showing 5 of 20'
|
|
32
|
-
* t('missing.key') // → 'missing.key' (fallback)
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare function createTranslate(messages: Record<string, string>): TranslateFunction;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { useEventBus } from "./useEventBus";
|
|
2
|
-
import type { EventPayload } from "@almadar/core";
|
|
3
|
-
/**
|
|
4
|
-
* Hook to bridge UI events to state machine dispatch.
|
|
5
|
-
*
|
|
6
|
-
* @param dispatch - The state machine dispatch function
|
|
7
|
-
* @param traitName - Owning trait name; used to construct the qualified
|
|
8
|
-
* subscription key `UI:{traitName}.{event}`. Required — bare-key
|
|
9
|
-
* subscriptions were removed when the bus namespace unified on the
|
|
10
|
-
* listens grammar (gap #13, Phase 4 of the cross-orbital plan).
|
|
11
|
-
* @param validEvents - Local event names (transition triggers) the
|
|
12
|
-
* trait reacts to. The hook subscribes to `UI:{traitName}.{event}`
|
|
13
|
-
* for each entry.
|
|
14
|
-
* @param eventBusInstance - Optional event bus instance (for testing)
|
|
15
|
-
*/
|
|
16
|
-
export declare function useUIEvents<E extends string>(dispatch: (event: E, payload?: EventPayload) => void, traitName: string, validEvents: readonly E[], eventBusInstance?: ReturnType<typeof useEventBus>): void;
|
|
17
|
-
/**
|
|
18
|
-
* Hook to subscribe to cross-trait listens (gap #13, Phase 4 codegen).
|
|
19
|
-
*
|
|
20
|
-
* The schema's `listens { Source EVENT -> TRIGGER }` block resolves at
|
|
21
|
-
* lower-time to a typed `ListenSource` enum (intra-orbital `Trait` or
|
|
22
|
-
* cross-orbital `Orbital.Trait`). Codegen materializes one
|
|
23
|
-
* `useTraitListens` call per trait, listing every `(sourceTrait,
|
|
24
|
-
* sourceEvent, localTrigger)` tuple from the listens block. The hook
|
|
25
|
-
* subscribes to the qualified bus key — `UI:Trait.EVENT` (intra-orbital)
|
|
26
|
-
* or `UI:Orbital.Trait.EVENT` (cross-orbital) — and dispatches the
|
|
27
|
-
* local trigger when the source fires.
|
|
28
|
-
*
|
|
29
|
-
* Replaces the old bare-event cross-trait fan-out that lived inside
|
|
30
|
-
* `useUIEvents`. Pre-unification, `useUIEvents` subscribed to bare
|
|
31
|
-
* `EVENT` keys and matched on `source.trait !== own`; post-unification,
|
|
32
|
-
* the qualified bus key carries the source identity directly, no
|
|
33
|
-
* `source` filtering needed.
|
|
34
|
-
*/
|
|
35
|
-
export interface TraitListenSpec<E extends string> {
|
|
36
|
-
/** Qualified `Trait.EVENT` or `Orbital.Trait.EVENT` source. */
|
|
37
|
-
sourceKey: string;
|
|
38
|
-
/** Local trigger event to dispatch when the source fires. */
|
|
39
|
-
trigger: E;
|
|
40
|
-
}
|
|
41
|
-
export declare function useTraitListens<E extends string>(dispatch: (event: E, payload?: EventPayload) => void, listens: readonly TraitListenSpec<E>[], eventBusInstance?: ReturnType<typeof useEventBus>): void;
|