@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,102 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { BusEventSource, EntityRow, EventPayload, OrbitalSchema, SExpr } from '@almadar/core';
|
|
3
|
-
import type { AnyPatternConfig } from '@almadar/patterns';
|
|
4
|
-
/** Wire-format client effect tuple from the server response. */
|
|
5
|
-
type ClientEffectTuple = ['render-ui', string, AnyPatternConfig | null, ...SExpr[]] | ['navigate', string, ...SExpr[]] | ['notify', string, ...SExpr[]];
|
|
6
|
-
interface OrbitalEventResponse {
|
|
7
|
-
success: boolean;
|
|
8
|
-
transitioned: boolean;
|
|
9
|
-
states: Record<string, string>;
|
|
10
|
-
/**
|
|
11
|
-
* Server-cascade events carried back in the response. Each entry has a
|
|
12
|
-
* `source: BusEventSource` stamped by the compiled handler (`emit ...
|
|
13
|
-
* { source: __ORBITAL_SOURCE }`) so the client can re-broadcast on the
|
|
14
|
-
* qualified `UI:Orbital.Trait.EVENT` bus key (gap #13).
|
|
15
|
-
*/
|
|
16
|
-
emittedEvents?: Array<{
|
|
17
|
-
event: string;
|
|
18
|
-
payload?: EventPayload;
|
|
19
|
-
source?: BusEventSource;
|
|
20
|
-
}>;
|
|
21
|
-
data?: Record<string, EntityRow[]>;
|
|
22
|
-
clientEffects?: ClientEffectTuple[];
|
|
23
|
-
/**
|
|
24
|
-
* Same effects as `clientEffects`, paired with the trait that produced
|
|
25
|
-
* each one. When present, prefer this for trait attribution. Falls back
|
|
26
|
-
* to legacy `clientEffects` parsing on older servers.
|
|
27
|
-
*/
|
|
28
|
-
clientEffectsByTrait?: Array<{
|
|
29
|
-
traitName: string;
|
|
30
|
-
effect: ClientEffectTuple;
|
|
31
|
-
}>;
|
|
32
|
-
error?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface ServerClientEffect {
|
|
35
|
-
type: 'render-ui' | 'navigate' | 'notify';
|
|
36
|
-
slot?: string;
|
|
37
|
-
pattern?: AnyPatternConfig;
|
|
38
|
-
route?: string;
|
|
39
|
-
params?: EventPayload;
|
|
40
|
-
message?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Trait that emitted this effect. Used by `<TraitFrame>` to resolve
|
|
43
|
-
* `@trait.X` bindings. Undefined when the server didn't tag the effect
|
|
44
|
-
* (older servers that pre-date the per-trait sidecar).
|
|
45
|
-
*/
|
|
46
|
-
traitName?: string;
|
|
47
|
-
}
|
|
48
|
-
/** Metadata about what the server returned, for debugger logging */
|
|
49
|
-
export interface ServerResponseMeta {
|
|
50
|
-
success: boolean;
|
|
51
|
-
clientEffects: number;
|
|
52
|
-
dataEntities: Record<string, number>;
|
|
53
|
-
/** Raw entity data from server response (for EntityStore advancement) */
|
|
54
|
-
data?: Record<string, EntityRow[]>;
|
|
55
|
-
emittedEvents: string[];
|
|
56
|
-
error?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface SendEventResult {
|
|
59
|
-
effects: ServerClientEffect[];
|
|
60
|
-
meta: ServerResponseMeta;
|
|
61
|
-
}
|
|
62
|
-
export interface ServerBridgeContextValue {
|
|
63
|
-
connected: boolean;
|
|
64
|
-
sendEvent: (orbitalName: string, event: string, payload?: EventPayload) => Promise<SendEventResult>;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Transport adapter for ServerBridgeProvider. Decouples the bridge's
|
|
68
|
-
* cascade-rebroadcast / effect-parsing logic from its wire format.
|
|
69
|
-
*
|
|
70
|
-
* - The `serverUrl` mode (default) uses an HTTP transport that POSTs to
|
|
71
|
-
* `/register`, `/unregister`, `/:orbital/events`. This is what canonical
|
|
72
|
-
* playground-runtime (`tools/runtime-verify`) and apps/builder-server
|
|
73
|
-
* speak.
|
|
74
|
-
* - The `transport` mode lets a consumer plug in a direct function-call
|
|
75
|
-
* adapter — used by `<BrowserPlayground>` to invoke
|
|
76
|
-
* `OrbitalServerRuntime.processOrbitalEvent` in-process, no HTTP, no
|
|
77
|
-
* server. Both modes return the same `OrbitalEventResponse` shape so the
|
|
78
|
-
* cascade-rebroadcast logic is identical downstream.
|
|
79
|
-
*/
|
|
80
|
-
export interface ServerBridgeTransport {
|
|
81
|
-
register: (schema: OrbitalSchema) => Promise<boolean>;
|
|
82
|
-
unregister: () => Promise<void>;
|
|
83
|
-
sendEvent: (orbitalName: string, event: string, payload?: EventPayload) => Promise<OrbitalEventResponse>;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Access the server bridge. Returns a no-op stub when outside the provider.
|
|
87
|
-
*/
|
|
88
|
-
export declare function useServerBridge(): ServerBridgeContextValue;
|
|
89
|
-
export interface ServerBridgeProviderProps {
|
|
90
|
-
schema: OrbitalSchema;
|
|
91
|
-
/** HTTP server URL (canonical playground-runtime / apps/builder-server). */
|
|
92
|
-
serverUrl?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Custom transport adapter. Use this for in-process execution (e.g.
|
|
95
|
-
* `<BrowserPlayground>` invokes `OrbitalServerRuntime.processOrbitalEvent`
|
|
96
|
-
* directly). Mutually exclusive with `serverUrl`.
|
|
97
|
-
*/
|
|
98
|
-
transport?: ServerBridgeTransport;
|
|
99
|
-
children: ReactNode;
|
|
100
|
-
}
|
|
101
|
-
export declare function ServerBridgeProvider({ schema, serverUrl, transport: customTransport, children, }: ServerBridgeProviderProps): import("react").JSX.Element;
|
|
102
|
-
export {};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unified ThemeContext - Single provider for theme and color mode
|
|
3
|
-
*
|
|
4
|
-
* Combines design theme selection (ocean, wireframe, etc.) with
|
|
5
|
-
* color mode (light/dark) into a single, simple system.
|
|
6
|
-
*
|
|
7
|
-
* Uses a single data attribute: data-theme="ocean-light" or data-theme="ocean-dark"
|
|
8
|
-
*
|
|
9
|
-
* @packageDocumentation
|
|
10
|
-
*/
|
|
11
|
-
import React from "react";
|
|
12
|
-
/** Color mode preference */
|
|
13
|
-
export type ColorMode = "light" | "dark" | "system";
|
|
14
|
-
/** Resolved color mode (what's actually applied) */
|
|
15
|
-
export type ResolvedMode = "light" | "dark";
|
|
16
|
-
/** Theme definition */
|
|
17
|
-
export interface UIThemeDefinition {
|
|
18
|
-
/** Theme identifier (e.g., "ocean", "wireframe") */
|
|
19
|
-
name: string;
|
|
20
|
-
/** Display name for UI (e.g., "Ocean Blue") */
|
|
21
|
-
displayName?: string;
|
|
22
|
-
/** Whether this theme has light mode styles */
|
|
23
|
-
hasLightMode?: boolean;
|
|
24
|
-
/** Whether this theme has dark mode styles */
|
|
25
|
-
hasDarkMode?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/** Built-in themes available in the design system */
|
|
28
|
-
export declare const BUILT_IN_THEMES: UIThemeDefinition[];
|
|
29
|
-
/** Theme context value */
|
|
30
|
-
interface ThemeContextValue {
|
|
31
|
-
/** Current theme name */
|
|
32
|
-
theme: string;
|
|
33
|
-
/** Current color mode setting (may be 'system') */
|
|
34
|
-
mode: ColorMode;
|
|
35
|
-
/** Resolved color mode (always 'light' or 'dark') */
|
|
36
|
-
resolvedMode: ResolvedMode;
|
|
37
|
-
/** Set the theme */
|
|
38
|
-
setTheme: (theme: string) => void;
|
|
39
|
-
/** Set the color mode */
|
|
40
|
-
setMode: (mode: ColorMode) => void;
|
|
41
|
-
/** Toggle between light and dark modes */
|
|
42
|
-
toggleMode: () => void;
|
|
43
|
-
/** Available themes */
|
|
44
|
-
availableThemes: UIThemeDefinition[];
|
|
45
|
-
/** The full theme string applied to data-theme (e.g., "ocean-light") */
|
|
46
|
-
appliedTheme: string;
|
|
47
|
-
}
|
|
48
|
-
declare const ThemeContext: React.Context<ThemeContextValue | undefined>;
|
|
49
|
-
export interface ThemeProviderProps {
|
|
50
|
-
children: React.ReactNode;
|
|
51
|
-
/** Available themes (will be merged with built-in themes) */
|
|
52
|
-
themes?: readonly UIThemeDefinition[] | UIThemeDefinition[];
|
|
53
|
-
/** Default theme name */
|
|
54
|
-
defaultTheme?: string;
|
|
55
|
-
/** Default color mode */
|
|
56
|
-
defaultMode?: ColorMode;
|
|
57
|
-
/** Optional target element ref — when provided, theme attributes are applied to this element instead of document.documentElement */
|
|
58
|
-
targetRef?: React.RefObject<HTMLElement>;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Unified ThemeProvider component
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```tsx
|
|
65
|
-
* // Basic usage with built-in themes
|
|
66
|
-
* <ThemeProvider defaultTheme="wireframe" defaultMode="light">
|
|
67
|
-
* <App />
|
|
68
|
-
* </ThemeProvider>
|
|
69
|
-
*
|
|
70
|
-
* // With custom themes from orbital schema
|
|
71
|
-
* import { THEMES } from './generated/theme-manifest';
|
|
72
|
-
* <ThemeProvider themes={THEMES} defaultTheme="ocean" defaultMode="system">
|
|
73
|
-
* <App />
|
|
74
|
-
* </ThemeProvider>
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
78
|
-
/**
|
|
79
|
-
* Hook for accessing theme context
|
|
80
|
-
*
|
|
81
|
-
* @returns Theme context value
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```tsx
|
|
85
|
-
* const { theme, resolvedMode, toggleMode, setTheme } = useTheme();
|
|
86
|
-
*
|
|
87
|
-
* // Toggle dark mode
|
|
88
|
-
* <button onClick={toggleMode}>
|
|
89
|
-
* {resolvedMode === 'dark' ? 'Light' : 'Dark'}
|
|
90
|
-
* </button>
|
|
91
|
-
*
|
|
92
|
-
* // Change theme
|
|
93
|
-
* <select value={theme} onChange={(e) => setTheme(e.target.value)}>
|
|
94
|
-
* {availableThemes.map(t => (
|
|
95
|
-
* <option key={t.name} value={t.name}>{t.displayName || t.name}</option>
|
|
96
|
-
* ))}
|
|
97
|
-
* </select>
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
export declare function useTheme(): ThemeContextValue;
|
|
101
|
-
export type Theme = ColorMode;
|
|
102
|
-
export type ResolvedTheme = ResolvedMode;
|
|
103
|
-
export type DesignTheme = UIThemeDefinition;
|
|
104
|
-
export default ThemeContext;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TraitProvider Component
|
|
3
|
-
*
|
|
4
|
-
* Provides trait state machines to child components via React context.
|
|
5
|
-
*
|
|
6
|
-
* @packageDocumentation
|
|
7
|
-
*/
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import type { EventPayload } from '@almadar/core';
|
|
10
|
-
import type { ResolvedTrait, ResolvedTraitBinding, ResolvedEntity } from '../types/runtime-types';
|
|
11
|
-
export interface TraitInstance {
|
|
12
|
-
/** Trait name */
|
|
13
|
-
name: string;
|
|
14
|
-
/** Current state */
|
|
15
|
-
currentState: string;
|
|
16
|
-
/** Available events (can be triggered) */
|
|
17
|
-
availableEvents: string[];
|
|
18
|
-
/** Dispatch an event to the state machine */
|
|
19
|
-
dispatch: (eventKey: string, payload?: EventPayload) => void;
|
|
20
|
-
/** Check if an event can be dispatched */
|
|
21
|
-
canDispatch: (eventKey: string) => boolean;
|
|
22
|
-
/** Get the full trait definition */
|
|
23
|
-
trait: ResolvedTrait;
|
|
24
|
-
}
|
|
25
|
-
export interface TraitContextValue {
|
|
26
|
-
/** All trait instances on this page */
|
|
27
|
-
traits: Map<string, TraitInstance>;
|
|
28
|
-
/** Get a trait instance by name */
|
|
29
|
-
getTrait: (name: string) => TraitInstance | undefined;
|
|
30
|
-
/** Dispatch an event to a specific trait */
|
|
31
|
-
dispatchToTrait: (traitName: string, eventKey: string, payload?: EventPayload) => void;
|
|
32
|
-
/** Check if an event can be dispatched to a trait */
|
|
33
|
-
canDispatch: (traitName: string, eventKey: string) => boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare const TraitContext: React.Context<TraitContextValue | null>;
|
|
36
|
-
export interface TraitProviderProps {
|
|
37
|
-
/** Trait bindings for this page */
|
|
38
|
-
traits: ResolvedTraitBinding[];
|
|
39
|
-
/** Entity map for context */
|
|
40
|
-
entities: Map<string, ResolvedEntity>;
|
|
41
|
-
/** Children to render */
|
|
42
|
-
children: React.ReactNode;
|
|
43
|
-
}
|
|
44
|
-
export declare function TraitProvider({ traits: traitBindings, children, }: TraitProviderProps): React.ReactElement;
|
|
45
|
-
/**
|
|
46
|
-
* Access the trait context from within the TraitProvider.
|
|
47
|
-
*/
|
|
48
|
-
export declare function useTraitContext(): TraitContextValue;
|
|
49
|
-
/**
|
|
50
|
-
* Access a specific trait instance.
|
|
51
|
-
*/
|
|
52
|
-
export declare function useTrait(traitName: string): TraitInstance | undefined;
|
|
53
|
-
export default TraitProvider;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TraitScopeProvider
|
|
3
|
-
*
|
|
4
|
-
* Wraps a trait's rendered subtree with its owning `{ orbital, trait }`
|
|
5
|
-
* pair. Pure components inside the subtree (Button, Form, etc.) keep
|
|
6
|
-
* calling `useEventBus().emit('UI:X', ...)` exactly as today; the
|
|
7
|
-
* scoped wrapper that `useEventBus` returns inside this provider
|
|
8
|
-
* rewrites bare `UI:X` keys into the qualified
|
|
9
|
-
* `UI:Orbital.Trait.X` form that `useTraitStateMachine` (and the rest
|
|
10
|
-
* of the post-Phase 4 subscriber side) listens on.
|
|
11
|
-
*
|
|
12
|
-
* Producer-side fix for the gap where Button-emitted bare keys never
|
|
13
|
-
* reached the trait state machine in the runtime path. The compiled
|
|
14
|
-
* path's codegen wraps each trait view with the same provider so both
|
|
15
|
-
* paths share the qualification contract.
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
import React from 'react';
|
|
20
|
-
export interface TraitScope {
|
|
21
|
-
/** Owning orbital name (e.g. `"ContactOrbital"`). */
|
|
22
|
-
orbital: string;
|
|
23
|
-
/** Trait name within the orbital (e.g. `"ContactBrowse"`). */
|
|
24
|
-
trait: string;
|
|
25
|
-
}
|
|
26
|
-
export interface TraitScopeProviderProps {
|
|
27
|
-
orbital: string;
|
|
28
|
-
trait: string;
|
|
29
|
-
children: React.ReactNode;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Wrap a trait's rendered subtree to qualify bare `UI:*` emits with the
|
|
33
|
-
* trait's scope. Mount this at the slot-content boundary in runtime
|
|
34
|
-
* mode (UISlotRenderer) and at each generated trait view's outermost
|
|
35
|
-
* element in compiled mode (orbital-shell-typescript codegen).
|
|
36
|
-
*/
|
|
37
|
-
export declare function TraitScopeProvider({ orbital, trait, children, }: TraitScopeProviderProps): React.ReactElement;
|
|
38
|
-
/**
|
|
39
|
-
* Read the current trait scope. Returns `null` when called outside
|
|
40
|
-
* any `TraitScopeProvider` (e.g. Storybook, design-system catalog).
|
|
41
|
-
*/
|
|
42
|
-
export declare function useTraitScope(): TraitScope | null;
|
|
43
|
-
export default TraitScopeProvider;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UserContext
|
|
3
|
-
*
|
|
4
|
-
* React context for providing user data throughout the application.
|
|
5
|
-
* Enables @user bindings in S-expressions for role-based UI and permissions.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* ```tsx
|
|
9
|
-
* // In App.tsx or layout
|
|
10
|
-
* <UserProvider user={{ id: '123', role: 'admin', permissions: ['read', 'write'] }}>
|
|
11
|
-
* <App />
|
|
12
|
-
* </UserProvider>
|
|
13
|
-
*
|
|
14
|
-
* // In components - access via hook
|
|
15
|
-
* const { user, hasRole, hasPermission } = useUser();
|
|
16
|
-
* if (hasRole('admin')) { ... }
|
|
17
|
-
* if (hasPermission('delete')) { ... }
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @packageDocumentation
|
|
21
|
-
*/
|
|
22
|
-
import React from 'react';
|
|
23
|
-
import type { FieldValue } from '@almadar/core';
|
|
24
|
-
/**
|
|
25
|
-
* User data for @user bindings.
|
|
26
|
-
* Matches UserContext type from evaluator/context.ts
|
|
27
|
-
*/
|
|
28
|
-
export interface UserData {
|
|
29
|
-
/** User's unique ID */
|
|
30
|
-
id: string;
|
|
31
|
-
/** User's email */
|
|
32
|
-
email?: string;
|
|
33
|
-
/** User's display name */
|
|
34
|
-
name?: string;
|
|
35
|
-
/** User's role (for RBAC) */
|
|
36
|
-
role?: string;
|
|
37
|
-
/** User's permissions */
|
|
38
|
-
permissions?: string[];
|
|
39
|
-
/** Additional custom profile fields */
|
|
40
|
-
[key: string]: FieldValue | undefined;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* User context value.
|
|
44
|
-
*/
|
|
45
|
-
export interface UserContextValue {
|
|
46
|
-
/** Current user data (null if not logged in) */
|
|
47
|
-
user: UserData | null;
|
|
48
|
-
/** Check if user is logged in */
|
|
49
|
-
isLoggedIn: boolean;
|
|
50
|
-
/** Check if user has a specific role */
|
|
51
|
-
hasRole: (role: string) => boolean;
|
|
52
|
-
/** Check if user has a specific permission */
|
|
53
|
-
hasPermission: (permission: string) => boolean;
|
|
54
|
-
/** Check if user has any of the specified roles */
|
|
55
|
-
hasAnyRole: (roles: string[]) => boolean;
|
|
56
|
-
/** Check if user has all of the specified permissions */
|
|
57
|
-
hasAllPermissions: (permissions: string[]) => boolean;
|
|
58
|
-
/** Get a user field by path (for @user.field bindings) */
|
|
59
|
-
getUserField: (path: string) => FieldValue | undefined;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Anonymous user for when no user is logged in.
|
|
63
|
-
*/
|
|
64
|
-
declare const ANONYMOUS_USER: UserData;
|
|
65
|
-
declare const UserContext: React.Context<UserContextValue | null>;
|
|
66
|
-
export interface UserProviderProps {
|
|
67
|
-
/** User data (null if not logged in) */
|
|
68
|
-
user?: UserData | null;
|
|
69
|
-
/** Children to render */
|
|
70
|
-
children: React.ReactNode;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Provider component that provides user context to the application.
|
|
74
|
-
*
|
|
75
|
-
* Provides RBAC helpers and field access for @user bindings.
|
|
76
|
-
*/
|
|
77
|
-
export declare function UserProvider({ user, children, }: UserProviderProps): React.ReactElement;
|
|
78
|
-
/**
|
|
79
|
-
* Hook to access the user context.
|
|
80
|
-
*
|
|
81
|
-
* Returns default values if used outside of UserProvider (for resilience).
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```tsx
|
|
85
|
-
* function AdminPanel() {
|
|
86
|
-
* const { user, hasRole, hasPermission } = useUser();
|
|
87
|
-
*
|
|
88
|
-
* if (!hasRole('admin') && !hasPermission('admin:access')) {
|
|
89
|
-
* return <AccessDenied />;
|
|
90
|
-
* }
|
|
91
|
-
*
|
|
92
|
-
* return <div>Welcome, {user?.name}</div>;
|
|
93
|
-
* }
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
|
-
export declare function useUser(): UserContextValue;
|
|
97
|
-
/**
|
|
98
|
-
* Hook to check if user has a specific role.
|
|
99
|
-
* Convenience wrapper around useUser().hasRole().
|
|
100
|
-
*/
|
|
101
|
-
export declare function useHasRole(role: string): boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Hook to check if user has a specific permission.
|
|
104
|
-
* Convenience wrapper around useUser().hasPermission().
|
|
105
|
-
*/
|
|
106
|
-
export declare function useHasPermission(permission: string): boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Hook to get user data for @user bindings in S-expressions.
|
|
109
|
-
* Returns the user data object compatible with EvaluationContext.user
|
|
110
|
-
*/
|
|
111
|
-
export declare function useUserForEvaluation(): UserData | undefined;
|
|
112
|
-
export { UserContext, ANONYMOUS_USER };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* VerificationProvider
|
|
3
|
-
*
|
|
4
|
-
* Wires the verification registry to both compiled and runtime execution paths.
|
|
5
|
-
*
|
|
6
|
-
* **Compiled apps**: Intercepts event bus lifecycle events
|
|
7
|
-
* (`{traitName}:DISPATCH`, `{traitName}:{event}:SUCCESS`, `{traitName}:{event}:ERROR`)
|
|
8
|
-
* emitted by `useOrbitalBridge` and records transitions via `recordTransition()`.
|
|
9
|
-
*
|
|
10
|
-
* **Runtime apps**: Accepts an optional `StateMachineManager` and wires its
|
|
11
|
-
* `TransitionObserver` to `recordTransition()`.
|
|
12
|
-
*
|
|
13
|
-
* **Both**: Calls `bindEventBus()` and `bindTraitStateGetter()` to populate
|
|
14
|
-
* `window.__orbitalVerification` for Playwright/automation.
|
|
15
|
-
*
|
|
16
|
-
* @packageDocumentation
|
|
17
|
-
*/
|
|
18
|
-
import React, { type ReactNode } from 'react';
|
|
19
|
-
import type { FieldValue } from '@almadar/core';
|
|
20
|
-
/**
|
|
21
|
-
* Observer interface compatible with `StateMachineManager.setObserver()`.
|
|
22
|
-
* Defined locally to avoid hard dependency on `@almadar/runtime`.
|
|
23
|
-
*/
|
|
24
|
-
interface TransitionObserver {
|
|
25
|
-
onTransition(trace: {
|
|
26
|
-
traitName: string;
|
|
27
|
-
from: string;
|
|
28
|
-
to: string;
|
|
29
|
-
event: string;
|
|
30
|
-
guardResult?: boolean;
|
|
31
|
-
effects: Array<{
|
|
32
|
-
type: string;
|
|
33
|
-
args: FieldValue[];
|
|
34
|
-
status: 'executed' | 'failed' | 'skipped';
|
|
35
|
-
error?: string;
|
|
36
|
-
durationMs?: number;
|
|
37
|
-
}>;
|
|
38
|
-
}): void;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Minimal interface for StateMachineManager — avoids importing the full runtime.
|
|
42
|
-
*/
|
|
43
|
-
interface StateMachineManagerLike {
|
|
44
|
-
setObserver(observer: TransitionObserver): void;
|
|
45
|
-
getState?(traitName: string): string | undefined;
|
|
46
|
-
}
|
|
47
|
-
export interface VerificationProviderProps {
|
|
48
|
-
children: ReactNode;
|
|
49
|
-
/** Enable verification wiring (default: true in dev, false in prod) */
|
|
50
|
-
enabled?: boolean;
|
|
51
|
-
/** Optional runtime StateMachineManager for interpreted mode */
|
|
52
|
-
runtimeManager?: StateMachineManagerLike;
|
|
53
|
-
/** Optional trait state getter for compiled apps (maps traitName → currentState) */
|
|
54
|
-
traitStateGetter?: (traitName: string) => string | undefined;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* VerificationProvider — wires the verification registry to the event bus
|
|
58
|
-
* and optional runtime manager. Renders children unchanged.
|
|
59
|
-
*/
|
|
60
|
-
export declare function VerificationProvider({ children, enabled, runtimeManager, traitStateGetter, }: VerificationProviderProps): React.ReactElement;
|
|
61
|
-
export declare namespace VerificationProvider {
|
|
62
|
-
var displayName: string;
|
|
63
|
-
}
|
|
64
|
-
export {};
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NavigationContext - Schema-Driven Navigation for Orbital Runtime
|
|
3
|
-
*
|
|
4
|
-
* Provides navigation within the orbital schema without react-router dependency.
|
|
5
|
-
* Navigation works by:
|
|
6
|
-
* 1. Matching path to a page in the schema
|
|
7
|
-
* 2. Extracting route params (e.g., /inspection/:id → { id: "123" })
|
|
8
|
-
* 3. Switching active page
|
|
9
|
-
* 4. Triggering INIT with merged payload
|
|
10
|
-
*
|
|
11
|
-
* This approach works whether OrbitalRuntime is standalone or embedded in another app.
|
|
12
|
-
*
|
|
13
|
-
* Used by both:
|
|
14
|
-
* - Builder runtime (interpreted execution)
|
|
15
|
-
* - Compiled shells (generated applications)
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
import React from 'react';
|
|
20
|
-
import type { OrbitalSchema, OrbitalPage, FieldValue } from '@almadar/core';
|
|
21
|
-
/**
|
|
22
|
-
* Match a concrete path against a pattern with :param placeholders.
|
|
23
|
-
* Returns null if no match, or the extracted params if match.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* matchPath('/inspection/:id', '/inspection/123') // { id: '123' }
|
|
27
|
-
* matchPath('/users/:userId/posts/:postId', '/users/42/posts/7') // { userId: '42', postId: '7' }
|
|
28
|
-
* matchPath('/about', '/about') // {}
|
|
29
|
-
* matchPath('/about', '/contact') // null
|
|
30
|
-
*/
|
|
31
|
-
export declare function matchPath(pattern: string, path: string): Record<string, string> | null;
|
|
32
|
-
/**
|
|
33
|
-
* Extract route params from a path given its pattern.
|
|
34
|
-
* Wrapper around matchPath for explicit use.
|
|
35
|
-
*/
|
|
36
|
-
export declare function extractRouteParams(pattern: string, path: string): Record<string, string>;
|
|
37
|
-
/**
|
|
38
|
-
* Check if a path matches a pattern.
|
|
39
|
-
*/
|
|
40
|
-
export declare function pathMatches(pattern: string, path: string): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Find a page in the schema by matching its path pattern against a concrete path.
|
|
43
|
-
* Returns the page and extracted route params.
|
|
44
|
-
*/
|
|
45
|
-
export declare function findPageByPath(schema: OrbitalSchema, path: string): {
|
|
46
|
-
page: OrbitalPage;
|
|
47
|
-
params: Record<string, string>;
|
|
48
|
-
orbitalName: string;
|
|
49
|
-
} | null;
|
|
50
|
-
/**
|
|
51
|
-
* Find a page by name.
|
|
52
|
-
*/
|
|
53
|
-
export declare function findPageByName(schema: OrbitalSchema, pageName: string): {
|
|
54
|
-
page: OrbitalPage;
|
|
55
|
-
orbitalName: string;
|
|
56
|
-
} | null;
|
|
57
|
-
/**
|
|
58
|
-
* Get the first page in the schema (default page).
|
|
59
|
-
*/
|
|
60
|
-
export declare function getDefaultPage(schema: OrbitalSchema): {
|
|
61
|
-
page: OrbitalPage;
|
|
62
|
-
orbitalName: string;
|
|
63
|
-
} | null;
|
|
64
|
-
/**
|
|
65
|
-
* Get all pages from the schema.
|
|
66
|
-
*/
|
|
67
|
-
export declare function getAllPages(schema: OrbitalSchema): Array<{
|
|
68
|
-
page: OrbitalPage;
|
|
69
|
-
orbitalName: string;
|
|
70
|
-
}>;
|
|
71
|
-
export interface NavigationState {
|
|
72
|
-
/** Current active page name */
|
|
73
|
-
activePage: string;
|
|
74
|
-
/** Current path (for URL sync) */
|
|
75
|
-
currentPath: string;
|
|
76
|
-
/** Payload to pass to INIT when page loads */
|
|
77
|
-
initPayload: Record<string, FieldValue>;
|
|
78
|
-
/** Navigation counter (increments on each navigation) */
|
|
79
|
-
navigationId: number;
|
|
80
|
-
}
|
|
81
|
-
export interface NavigationContextValue {
|
|
82
|
-
/** Current navigation state */
|
|
83
|
-
state: NavigationState;
|
|
84
|
-
/** Navigate to a path with optional payload */
|
|
85
|
-
navigateTo: (path: string, payload?: Record<string, FieldValue>) => void;
|
|
86
|
-
/** Navigate to a page by name with optional payload */
|
|
87
|
-
navigateToPage: (pageName: string, payload?: Record<string, FieldValue>) => void;
|
|
88
|
-
/** The schema being navigated */
|
|
89
|
-
schema: OrbitalSchema;
|
|
90
|
-
/** Whether navigation is ready (schema loaded) */
|
|
91
|
-
isReady: boolean;
|
|
92
|
-
}
|
|
93
|
-
export interface NavigationProviderProps {
|
|
94
|
-
/** The schema to navigate within */
|
|
95
|
-
schema: OrbitalSchema;
|
|
96
|
-
/** Initial page name (optional, defaults to first page) */
|
|
97
|
-
initialPage?: string;
|
|
98
|
-
/** Whether to update browser URL on navigation (default: true) */
|
|
99
|
-
updateUrl?: boolean;
|
|
100
|
-
/** Callback when navigation occurs */
|
|
101
|
-
onNavigate?: (pageName: string, path: string, payload: Record<string, FieldValue>) => void;
|
|
102
|
-
/** Children */
|
|
103
|
-
children: React.ReactNode;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* NavigationProvider - Provides schema-driven navigation context
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* ```tsx
|
|
110
|
-
* <NavigationProvider schema={mySchema}>
|
|
111
|
-
* <OrbitalRuntimeContent />
|
|
112
|
-
* </NavigationProvider>
|
|
113
|
-
* ```
|
|
114
|
-
*/
|
|
115
|
-
export declare function NavigationProvider({ schema, initialPage, updateUrl, onNavigate, children, }: NavigationProviderProps): React.ReactElement;
|
|
116
|
-
/**
|
|
117
|
-
* Hook to access navigation context.
|
|
118
|
-
* Returns null if not within NavigationProvider.
|
|
119
|
-
*/
|
|
120
|
-
export declare function useNavigation(): NavigationContextValue | null;
|
|
121
|
-
/**
|
|
122
|
-
* Hook to get the navigateTo function.
|
|
123
|
-
* Returns a no-op function if not within NavigationProvider.
|
|
124
|
-
*/
|
|
125
|
-
export declare function useNavigateTo(): (path: string, payload?: Record<string, FieldValue>) => void;
|
|
126
|
-
/**
|
|
127
|
-
* Hook to get current navigation state.
|
|
128
|
-
*/
|
|
129
|
-
export declare function useNavigationState(): NavigationState | null;
|
|
130
|
-
/**
|
|
131
|
-
* Hook to get the current INIT payload (for passing to trait INIT events).
|
|
132
|
-
*/
|
|
133
|
-
export declare function useInitPayload(): Record<string, FieldValue>;
|
|
134
|
-
/**
|
|
135
|
-
* Hook to get current active page name.
|
|
136
|
-
*/
|
|
137
|
-
export declare function useActivePage(): string | null;
|
|
138
|
-
/**
|
|
139
|
-
* Hook to get navigation ID (changes on each navigation, useful for triggering effects).
|
|
140
|
-
*/
|
|
141
|
-
export declare function useNavigationId(): number;
|
|
142
|
-
export default NavigationProvider;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BrowserPlayground — in-browser Almadar runtime mount.
|
|
3
|
-
*
|
|
4
|
-
* Runs `OrbitalServerRuntime` (mock mode) in-process and threads it through
|
|
5
|
-
* `<OrbPreview>` via the `ServerBridgeTransport` adapter. Equivalent to
|
|
6
|
-
* canonical playground-runtime's server-mode mount, but without Express,
|
|
7
|
-
* fork, or HTTP — invokes `runtime.processOrbitalEvent` directly.
|
|
8
|
-
*
|
|
9
|
-
* Same React tree as `runtime-verify` (and apps/builder server-mode) speak,
|
|
10
|
-
* so any `@almadar/runtime` fix flows in through one bump cycle.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <BrowserPlayground schema={schema} mode="mock" height="100%" />
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
import React from 'react';
|
|
20
|
-
import type { OrbitalSchema } from '@almadar/core';
|
|
21
|
-
export interface BrowserPlaygroundProps {
|
|
22
|
-
/** OrbitalSchema to render. */
|
|
23
|
-
schema: OrbitalSchema;
|
|
24
|
-
/** Persistence mode for the in-process runtime. Default: 'mock' (Faker-seeded MockPersistenceAdapter). */
|
|
25
|
-
mode?: 'mock';
|
|
26
|
-
/** Initial page path to render (forwarded to OrbPreview). */
|
|
27
|
-
initialPagePath?: string;
|
|
28
|
-
/** Preview container height. Default: '400px'. */
|
|
29
|
-
height?: string;
|
|
30
|
-
/** CSS class for the outer container. */
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare function BrowserPlayground({ schema, mode, initialPagePath, height, className, }: BrowserPlaygroundProps): React.ReactElement;
|
|
34
|
-
export default BrowserPlayground;
|