@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,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TraitSlot Component
|
|
3
|
-
*
|
|
4
|
-
* A generic equippable slot with drag-and-drop support.
|
|
5
|
-
* Shows a TraitStateViewer tooltip on hover for equipped items.
|
|
6
|
-
* Used across game tiers:
|
|
7
|
-
* - Sequencer (5-8): action slots in the sequence bar
|
|
8
|
-
* - Event Handler (9-12): rule slots on world objects
|
|
9
|
-
* - State Architect (13+): transition slots on state nodes
|
|
10
|
-
*
|
|
11
|
-
* **State categories (closed-circuit compliant):**
|
|
12
|
-
* - Data (equippedItem, slotNumber, locked, selected, feedback) → received via props
|
|
13
|
-
* - UI-transient (isHovered, isDragOver) → local only
|
|
14
|
-
* - Events → emitted via `useEventBus()` (click, remove)
|
|
15
|
-
*
|
|
16
|
-
* Local state is hover/drag-over detection only — rendering-only concerns.
|
|
17
|
-
*
|
|
18
|
-
* @packageDocumentation
|
|
19
|
-
*/
|
|
20
|
-
import React from 'react';
|
|
21
|
-
import type { Asset, EventEmit } from '@almadar/core';
|
|
22
|
-
import { type TraitStateMachineDefinition } from './TraitStateViewer';
|
|
23
|
-
import type { UiError } from '../../core/atoms/types';
|
|
24
|
-
/** Data shape for a slot's equipped item */
|
|
25
|
-
export type SlotItemData = {
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
category: string;
|
|
29
|
-
description?: string;
|
|
30
|
-
/** Emoji or text icon */
|
|
31
|
-
iconEmoji?: string;
|
|
32
|
-
/** Asset icon (takes precedence over iconEmoji); falls back to iconEmoji when absent. */
|
|
33
|
-
iconUrl?: Asset;
|
|
34
|
-
/** Optional state machine for tooltip display */
|
|
35
|
-
stateMachine?: TraitStateMachineDefinition;
|
|
36
|
-
};
|
|
37
|
-
/** Event Contract:
|
|
38
|
-
* Emits: UI:CLICK
|
|
39
|
-
* Emits: UI:REMOVE
|
|
40
|
-
*/
|
|
41
|
-
export interface TraitSlotProps {
|
|
42
|
-
/** Slot index (1-based) */
|
|
43
|
-
slotNumber: number;
|
|
44
|
-
/** Currently equipped item, if any */
|
|
45
|
-
equippedItem?: SlotItemData;
|
|
46
|
-
/** Whether slot is locked */
|
|
47
|
-
locked?: boolean;
|
|
48
|
-
/** Label shown when locked */
|
|
49
|
-
lockLabel?: string;
|
|
50
|
-
/** Whether slot is selected */
|
|
51
|
-
selected?: boolean;
|
|
52
|
-
/** Size variant */
|
|
53
|
-
size?: 'sm' | 'md' | 'lg';
|
|
54
|
-
/** Show tooltip on hover */
|
|
55
|
-
showTooltip?: boolean;
|
|
56
|
-
/** Category → color mapping */
|
|
57
|
-
categoryColors?: Record<string, {
|
|
58
|
-
bg: string;
|
|
59
|
-
border: string;
|
|
60
|
-
}>;
|
|
61
|
-
/** Optional tooltip frame image asset */
|
|
62
|
-
tooltipFrameUrl?: Asset;
|
|
63
|
-
/** Additional CSS classes */
|
|
64
|
-
className?: string;
|
|
65
|
-
/** Loading state */
|
|
66
|
-
isLoading?: boolean;
|
|
67
|
-
/** Error state */
|
|
68
|
-
error?: UiError | null;
|
|
69
|
-
/** Called when an item is dropped on this slot */
|
|
70
|
-
onItemDrop?: (item: SlotItemData) => void;
|
|
71
|
-
/** Whether this slot's equipped item is draggable */
|
|
72
|
-
draggable?: boolean;
|
|
73
|
-
/** Called when drag starts from this slot */
|
|
74
|
-
onDragStart?: (item: SlotItemData) => void;
|
|
75
|
-
/** Per-slot correctness feedback after a failed attempt */
|
|
76
|
-
feedback?: 'correct' | 'wrong' | null;
|
|
77
|
-
/** Click handler */
|
|
78
|
-
onClick?: () => void;
|
|
79
|
-
/** Remove handler */
|
|
80
|
-
onRemove?: () => void;
|
|
81
|
-
/** Emits UI:{clickEvent} with { slotNumber } */
|
|
82
|
-
clickEvent?: EventEmit<{
|
|
83
|
-
slotNumber: number;
|
|
84
|
-
}>;
|
|
85
|
-
/** Emits UI:{removeEvent} with { slotNumber } */
|
|
86
|
-
removeEvent?: EventEmit<{
|
|
87
|
-
slotNumber: number;
|
|
88
|
-
}>;
|
|
89
|
-
/** Emits UI:{dropEvent} with { slotNumber, itemId } when an item is dropped into this slot */
|
|
90
|
-
dropEvent?: EventEmit<{
|
|
91
|
-
slotNumber: number;
|
|
92
|
-
itemId: string;
|
|
93
|
-
}>;
|
|
94
|
-
}
|
|
95
|
-
export declare function TraitSlot({ slotNumber, equippedItem, locked, lockLabel, selected, size, showTooltip, categoryColors, tooltipFrameUrl, className, feedback, onItemDrop, draggable, onDragStart, onClick, onRemove, clickEvent, removeEvent, dropEvent, }: TraitSlotProps): React.JSX.Element;
|
|
96
|
-
export declare namespace TraitSlot {
|
|
97
|
-
var displayName: string;
|
|
98
|
-
}
|
|
99
|
-
export default TraitSlot;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TraitStateViewer Component
|
|
3
|
-
*
|
|
4
|
-
* Displays a state machine visualization for a trait / behavior.
|
|
5
|
-
* Three variants for different complexity levels:
|
|
6
|
-
* - `linear` — simple step progression (ages 5-8)
|
|
7
|
-
* - `compact` — current state + available actions (ages 9-12)
|
|
8
|
-
* - `full` — all states, transitions, guards (ages 13+)
|
|
9
|
-
*
|
|
10
|
-
* @packageDocumentation
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { type StateStyle } from '../atoms/StateIndicator';
|
|
14
|
-
import type { UiError } from '../../core/atoms/types';
|
|
15
|
-
export type TraitTransition = {
|
|
16
|
-
from: string;
|
|
17
|
-
to: string;
|
|
18
|
-
event: string;
|
|
19
|
-
guardHint?: string;
|
|
20
|
-
};
|
|
21
|
-
export type TraitStateMachineDefinition = {
|
|
22
|
-
name: string;
|
|
23
|
-
states: string[];
|
|
24
|
-
currentState: string;
|
|
25
|
-
transitions: TraitTransition[];
|
|
26
|
-
description?: string;
|
|
27
|
-
};
|
|
28
|
-
export interface TraitStateViewerProps {
|
|
29
|
-
/** The trait / state machine to visualize */
|
|
30
|
-
trait: TraitStateMachineDefinition;
|
|
31
|
-
/** Display variant */
|
|
32
|
-
variant?: 'linear' | 'compact' | 'full';
|
|
33
|
-
/** Size variant */
|
|
34
|
-
size?: 'sm' | 'md' | 'lg';
|
|
35
|
-
/** Whether to show transition labels */
|
|
36
|
-
showTransitions?: boolean;
|
|
37
|
-
/** Click handler for states */
|
|
38
|
-
onStateClick?: (state: string) => void;
|
|
39
|
-
/** Custom state styles passed to StateIndicator */
|
|
40
|
-
stateStyles?: Record<string, StateStyle>;
|
|
41
|
-
/** Additional CSS classes */
|
|
42
|
-
className?: string;
|
|
43
|
-
/** Loading state */
|
|
44
|
-
isLoading?: boolean;
|
|
45
|
-
/** Error state */
|
|
46
|
-
error?: UiError | null;
|
|
47
|
-
}
|
|
48
|
-
export declare function TraitStateViewer({ trait, variant, size, showTransitions, onStateClick, stateStyles, className, }: TraitStateViewerProps): React.JSX.Element;
|
|
49
|
-
export declare namespace TraitStateViewer {
|
|
50
|
-
var displayName: string;
|
|
51
|
-
}
|
|
52
|
-
export default TraitStateViewer;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TransitionArrow Component
|
|
3
|
-
*
|
|
4
|
-
* An SVG arrow connecting two state nodes in the graph editor.
|
|
5
|
-
* Shows the event name as a label on the arrow.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import type { Point } from '../../core/atoms/types';
|
|
11
|
-
export interface TransitionArrowProps {
|
|
12
|
-
/** Start position (center of from-node) */
|
|
13
|
-
from: Point;
|
|
14
|
-
/** End position (center of to-node) */
|
|
15
|
-
to: Point;
|
|
16
|
-
/** Event label shown on the arrow */
|
|
17
|
-
eventLabel: string;
|
|
18
|
-
/** Guard hint shown below event */
|
|
19
|
-
guardHint?: string;
|
|
20
|
-
/** Whether this transition is currently active */
|
|
21
|
-
isActive?: boolean;
|
|
22
|
-
/** Click handler */
|
|
23
|
-
onClick?: () => void;
|
|
24
|
-
/** Additional CSS classes for the SVG group */
|
|
25
|
-
className?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare function TransitionArrow({ from, to, eventLabel, guardHint, isActive, onClick, className, }: TransitionArrowProps): React.JSX.Element;
|
|
28
|
-
export declare namespace TransitionArrow {
|
|
29
|
-
var displayName: string;
|
|
30
|
-
}
|
|
31
|
-
export default TransitionArrow;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Game 2D Components (flat)
|
|
3
|
-
*
|
|
4
|
-
* Atoms, molecules, board organisms, templates, puzzles, editor, and physics-sim.
|
|
5
|
-
* Dimension-agnostic DTO types/utils/hooks are re-surfaced from ../shared.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
export * from '../../../lib/gameShared';
|
|
10
|
-
export { HealthBar, type HealthBarProps } from '../atoms/HealthBar';
|
|
11
|
-
export { ScoreDisplay, type ScoreDisplayProps } from '../atoms/ScoreDisplay';
|
|
12
|
-
export { ControlButton, type ControlButtonProps } from '../atoms/ControlButton';
|
|
13
|
-
export { TimerDisplay, type TimerDisplayProps } from '../atoms/TimerDisplay';
|
|
14
|
-
export { DialogueBubble, type DialogueBubbleProps } from '../atoms/DialogueBubble';
|
|
15
|
-
export { ChoiceButton, type ChoiceButtonProps } from '../atoms/ChoiceButton';
|
|
16
|
-
export { ControlGrid, type ControlGridProps, type ControlGridButton, type ControlGridKind, type DPadDirection } from './ControlGrid';
|
|
17
|
-
export { StatBadge, type StatBadgeProps } from './StatBadge';
|
|
18
|
-
export { GameHud, type GameHudProps, type GameHudStat, type GameHudElement } from './GameHud';
|
|
19
|
-
export { GameMenu, type GameMenuProps, type MenuOption } from './GameMenu';
|
|
20
|
-
export { StateGraph, type StateGraphProps, type StateGraphTransition } from './StateGraph';
|
|
21
|
-
export { Canvas2D, type Canvas2DProps, type Projection, type CameraMode, type Platform, type SidePlayer, type TileCoord, } from './Canvas2D';
|
|
22
|
-
export { Canvas, type CanvasProps, type CanvasMode } from './Canvas';
|
|
23
|
-
export { useUnitSpriteAtlas } from '../../../hooks/useUnitSpriteAtlas';
|
|
24
|
-
export { GameAudioProvider, GameAudioContext, useGameAudioContext, type GameAudioProviderProps, type GameAudioContextValue, } from '../../../providers/GameAudioProvider';
|
|
25
|
-
export { GameAudioToggle, type GameAudioToggleProps, } from '../atoms/GameAudioToggle';
|
|
26
|
-
export { useGameAudio, type AudioManifest, type SoundEntry, type GameAudioControls, type UseGameAudioOptions, } from '../../../hooks/useGameAudio';
|
|
27
|
-
export { useCamera } from '../../../hooks/useCamera';
|
|
28
|
-
export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from './TraitStateViewer';
|
|
29
|
-
export { TraitSlot, type TraitSlotProps, type SlotItemData, } from './TraitSlot';
|
|
30
|
-
export { CollapsibleSection, EditorSlider, EditorSelect, EditorCheckbox, EditorTextInput, StatusBar, TerrainPalette, EditorToolbar, TERRAIN_COLORS, FEATURE_TYPES, type EditorMode, type CollapsibleSectionProps, type EditorSliderProps, type EditorSelectProps, type EditorCheckboxProps, type EditorTextInputProps, type StatusBarProps, type TerrainPaletteProps, type EditorToolbarProps, } from '../../../lib/editorUtils';
|
|
31
|
-
export { ActionTile, type ActionTileProps } from './ActionTile';
|
|
32
|
-
export { ActionPalette, type ActionPaletteProps } from './ActionPalette';
|
|
33
|
-
export { SequenceBar, type SequenceBarProps } from './SequenceBar';
|
|
34
|
-
export * from '../../../lib/puzzleObject';
|
|
35
|
-
export { StateNode, type StateNodeProps } from './StateNode';
|
|
36
|
-
export { TransitionArrow, type TransitionArrowProps } from './TransitionArrow';
|
|
37
|
-
export { StateJsonView, type StateJsonViewProps } from './StateJsonView';
|
|
38
|
-
export { projectileMotion, pendulum, springOscillator, ALL_PRESETS } from '../../../lib/physicsPresets';
|
|
39
|
-
export { GameShell, type GameShellProps } from '../templates/GameShell';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Curated list of the neutral DRAWABLE render-ui pattern components — the
|
|
3
|
-
* dimension-agnostic primitives a canvas draw-host paints under its `children`.
|
|
4
|
-
*
|
|
5
|
-
* These atoms/molecules are R3F-free (the 3D mesh backends live in
|
|
6
|
-
* `lib/drawable/mesh3d`, pulled in only by the code-split 3D host), so they are
|
|
7
|
-
* safe to admit to the public pattern surface. `pattern-sync` discovers
|
|
8
|
-
* `patterns.ts` files by walking the tree and admits exactly the names listed
|
|
9
|
-
* here, taking each one's tier from its source path (atoms / molecules) — so the
|
|
10
|
-
* dispatch/painter infra co-located under `lib/` never leaks in as a pattern.
|
|
11
|
-
* Move this file anywhere under `components/` and the scanner still finds it.
|
|
12
|
-
*
|
|
13
|
-
* @packageDocumentation
|
|
14
|
-
*/
|
|
15
|
-
export { DrawSprite } from './atoms/DrawSprite';
|
|
16
|
-
export { DrawShape } from './atoms/DrawShape';
|
|
17
|
-
export { DrawText } from './atoms/DrawText';
|
|
18
|
-
export { DrawSpriteLayer } from './molecules/DrawSpriteLayer';
|
|
19
|
-
export { DrawShapeLayer } from './molecules/DrawShapeLayer';
|
|
20
|
-
export { DrawTextLayer } from './molecules/DrawTextLayer';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GameShell — thin fullscreen game SURFACE.
|
|
3
|
-
*
|
|
4
|
-
* Contributes positioning + the game skin (Kenney font, 9-slice panel chrome, floating overlays)
|
|
5
|
-
* and nothing else: the canvas fills the viewport underneath; composed atoms/molecules land in
|
|
6
|
-
* overlay slots. `hud` floats top; `addons` floats bottom-right (action cluster). Dumb: props in,
|
|
7
|
-
* layout out — no descriptor resolution, no runtime logic.
|
|
8
|
-
*/
|
|
9
|
-
import React from "react";
|
|
10
|
-
import type { Asset } from "@almadar/core";
|
|
11
|
-
export interface GameShellProps {
|
|
12
|
-
/** Application / game title shown as a floating chip */
|
|
13
|
-
appName?: string;
|
|
14
|
-
/** Stat chips row — floats along the top edge */
|
|
15
|
-
hud?: React.ReactNode;
|
|
16
|
-
/** Action cluster — floats bottom-right (End Turn, Fire, Reset, …) */
|
|
17
|
-
addons?: React.ReactNode;
|
|
18
|
-
/** Movement controls — floats bottom-left (d-pad / control-grid). */
|
|
19
|
-
controls?: React.ReactNode;
|
|
20
|
-
/** Centered overlay layer (victory/defeat banners, dialogs). */
|
|
21
|
-
overlay?: React.ReactNode;
|
|
22
|
-
/** Extra class name on the root container */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** Whether to show the title chip (default: true) */
|
|
25
|
-
showTopBar?: boolean;
|
|
26
|
-
/** Game content — fills the whole surface underneath the overlays */
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
/** Pattern slice tiled at low opacity across the surface (never cover-stretched). */
|
|
29
|
-
backgroundAsset?: Asset;
|
|
30
|
-
/** 9-sliced panel skin for the HUD chips row + title chip. */
|
|
31
|
-
hudBackgroundAsset?: Asset;
|
|
32
|
-
/** Game font key (future | future-narrow | pixel | blocks | mini) or a CSS font-family. */
|
|
33
|
-
fontFamily?: string;
|
|
34
|
-
}
|
|
35
|
-
export declare const GameShell: React.FC<GameShellProps>;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LearningCanvas
|
|
3
|
-
*
|
|
4
|
-
* A pure, declarative HTML5 canvas atom for math and science visualizations.
|
|
5
|
-
* Accepts a list of primitive shapes (line, arrow, circle, rect, polygon, path,
|
|
6
|
-
* text, axis, grid) and renders them. Optional interactivity emits click/hover
|
|
7
|
-
* events, and optional animation drives a continuous render loop.
|
|
8
|
-
*
|
|
9
|
-
* This is the foundational atom for the `learning/` behavior family.
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
import * as React from 'react';
|
|
14
|
-
import type { UiError } from '../../core/atoms/types';
|
|
15
|
-
export type LearningShapeType = 'line' | 'arrow' | 'circle' | 'rect' | 'polygon' | 'path' | 'text' | 'axis' | 'grid';
|
|
16
|
-
export interface LearningPoint {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
}
|
|
20
|
-
export interface LearningShape {
|
|
21
|
-
type: LearningShapeType;
|
|
22
|
-
/** Optional stable id for interaction payloads. */
|
|
23
|
-
id?: string;
|
|
24
|
-
x?: number;
|
|
25
|
-
y?: number;
|
|
26
|
-
x1?: number;
|
|
27
|
-
y1?: number;
|
|
28
|
-
x2?: number;
|
|
29
|
-
y2?: number;
|
|
30
|
-
radius?: number;
|
|
31
|
-
width?: number;
|
|
32
|
-
height?: number;
|
|
33
|
-
points?: LearningPoint[];
|
|
34
|
-
path?: string;
|
|
35
|
-
text?: string;
|
|
36
|
-
label?: string;
|
|
37
|
-
fontSize?: number;
|
|
38
|
-
align?: 'left' | 'center' | 'right';
|
|
39
|
-
axis?: 'x' | 'y';
|
|
40
|
-
min?: number;
|
|
41
|
-
max?: number;
|
|
42
|
-
step?: number;
|
|
43
|
-
color?: string;
|
|
44
|
-
fill?: string;
|
|
45
|
-
lineWidth?: number;
|
|
46
|
-
opacity?: number;
|
|
47
|
-
}
|
|
48
|
-
export interface LearningCanvasProps {
|
|
49
|
-
/** Additional CSS classes. */
|
|
50
|
-
className?: string;
|
|
51
|
-
/** Canvas width in CSS pixels. */
|
|
52
|
-
width?: number;
|
|
53
|
-
/** Canvas height in CSS pixels. */
|
|
54
|
-
height?: number;
|
|
55
|
-
/** Background color (default transparent). */
|
|
56
|
-
backgroundColor?: string;
|
|
57
|
-
/** Declarative shapes to draw. */
|
|
58
|
-
shapes?: LearningShape[];
|
|
59
|
-
/** Enable pointer interaction (click/hover). */
|
|
60
|
-
interactive?: boolean;
|
|
61
|
-
/** Enable continuous redraw loop. */
|
|
62
|
-
animate?: boolean;
|
|
63
|
-
/** Clicked shape payload: { id?, type?, index }. */
|
|
64
|
-
onShapeClick?: (payload: {
|
|
65
|
-
id?: string;
|
|
66
|
-
type?: string;
|
|
67
|
-
index: number;
|
|
68
|
-
}) => void;
|
|
69
|
-
/** Hovered shape payload: { id?, type?, index }. */
|
|
70
|
-
onShapeHover?: (payload: {
|
|
71
|
-
id?: string;
|
|
72
|
-
type?: string;
|
|
73
|
-
index: number;
|
|
74
|
-
}) => void;
|
|
75
|
-
/** Loading state. */
|
|
76
|
-
isLoading?: boolean;
|
|
77
|
-
/** Error state. */
|
|
78
|
-
error?: UiError | null;
|
|
79
|
-
}
|
|
80
|
-
export declare const LearningCanvas: React.FC<LearningCanvasProps>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AlgorithmCanvas
|
|
3
|
-
*
|
|
4
|
-
* A field-scoped learning molecule for computer-science algorithm visualizations.
|
|
5
|
-
* Projects semantic `bars` (sorting/histograms), `cells` (grids/arrays/DP tables),
|
|
6
|
-
* and `pointers` (index cursors) into pixel-space shapes on the declarative
|
|
7
|
-
* `LearningCanvas` atom, so a `.lolo` behavior never computes pixel coordinates —
|
|
8
|
-
* it just sets `bars`/`cells`/`pointers` and lets this molecule lay them out.
|
|
9
|
-
* Graph/tree algorithms reuse `BiologyCanvas` (nodes + edges); this canvas owns
|
|
10
|
-
* only the bar/cell/pointer vocabulary.
|
|
11
|
-
*
|
|
12
|
-
* @packageDocumentation
|
|
13
|
-
*/
|
|
14
|
-
import * as React from 'react';
|
|
15
|
-
import type { LearningShape } from '../atoms/LearningCanvas';
|
|
16
|
-
import type { UiError } from '../../core/atoms/types';
|
|
17
|
-
export interface AlgorithmBar {
|
|
18
|
-
value: number;
|
|
19
|
-
color?: string;
|
|
20
|
-
label?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface AlgorithmCell {
|
|
23
|
-
row: number;
|
|
24
|
-
col: number;
|
|
25
|
-
value?: number;
|
|
26
|
-
color?: string;
|
|
27
|
-
label?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface AlgorithmPointer {
|
|
30
|
-
index: number;
|
|
31
|
-
label?: string;
|
|
32
|
-
color?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface AlgorithmCanvasProps {
|
|
35
|
-
className?: string;
|
|
36
|
-
width?: number;
|
|
37
|
-
height?: number;
|
|
38
|
-
title?: string;
|
|
39
|
-
backgroundColor?: string;
|
|
40
|
-
/** Sorting/histogram bars; laid out left-to-right, height proportional to value. */
|
|
41
|
-
bars?: AlgorithmBar[];
|
|
42
|
-
/** Grid/array/DP cells; laid out on a row/col lattice sized to the extent. */
|
|
43
|
-
cells?: AlgorithmCell[];
|
|
44
|
-
/** Index cursors (i/j/lo/hi/mid); drawn as markers beneath the referenced bar/cell column. */
|
|
45
|
-
pointers?: AlgorithmPointer[];
|
|
46
|
-
/** Extra declarative shapes in canvas pixel coordinates. */
|
|
47
|
-
shapes?: LearningShape[];
|
|
48
|
-
interactive?: boolean;
|
|
49
|
-
animate?: boolean;
|
|
50
|
-
onShapeClick?: (payload: {
|
|
51
|
-
id?: string;
|
|
52
|
-
type?: string;
|
|
53
|
-
index: number;
|
|
54
|
-
}) => void;
|
|
55
|
-
isLoading?: boolean;
|
|
56
|
-
error?: UiError | null;
|
|
57
|
-
}
|
|
58
|
-
export declare const AlgorithmCanvas: React.FC<AlgorithmCanvasProps>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BiologyCanvas
|
|
3
|
-
*
|
|
4
|
-
* A field-scoped learning molecule for biology. Renders cells, organelles,
|
|
5
|
-
* membranes, and connections on top of the declarative `LearningCanvas` atom.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
import * as React from 'react';
|
|
10
|
-
import type { LearningShape } from '../atoms/LearningCanvas';
|
|
11
|
-
import type { UiError } from '../../core/atoms/types';
|
|
12
|
-
export interface BiologyNode {
|
|
13
|
-
id?: string;
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
radius?: number;
|
|
17
|
-
color?: string;
|
|
18
|
-
label?: string;
|
|
19
|
-
kind?: 'cell' | 'organelle' | 'molecule' | 'organism';
|
|
20
|
-
}
|
|
21
|
-
export interface BiologyEdge {
|
|
22
|
-
from: string;
|
|
23
|
-
to: string;
|
|
24
|
-
color?: string;
|
|
25
|
-
label?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface BiologyCanvasProps {
|
|
28
|
-
className?: string;
|
|
29
|
-
width?: number;
|
|
30
|
-
height?: number;
|
|
31
|
-
title?: string;
|
|
32
|
-
backgroundColor?: string;
|
|
33
|
-
nodes?: BiologyNode[];
|
|
34
|
-
edges?: BiologyEdge[];
|
|
35
|
-
/** Extra declarative shapes in canvas pixel coordinates. */
|
|
36
|
-
shapes?: LearningShape[];
|
|
37
|
-
interactive?: boolean;
|
|
38
|
-
animate?: boolean;
|
|
39
|
-
onShapeClick?: (payload: {
|
|
40
|
-
id?: string;
|
|
41
|
-
type?: string;
|
|
42
|
-
index: number;
|
|
43
|
-
}) => void;
|
|
44
|
-
isLoading?: boolean;
|
|
45
|
-
error?: UiError | null;
|
|
46
|
-
}
|
|
47
|
-
export declare const BiologyCanvas: React.FC<BiologyCanvasProps>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ChemistryCanvas
|
|
3
|
-
*
|
|
4
|
-
* A field-scoped learning molecule for chemistry. Renders atoms, bonds, and
|
|
5
|
-
* reaction arrows on top of the declarative `LearningCanvas` atom.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
import * as React from 'react';
|
|
10
|
-
import type { LearningShape } from '../atoms/LearningCanvas';
|
|
11
|
-
import type { UiError } from '../../core/atoms/types';
|
|
12
|
-
export interface ChemistryAtom {
|
|
13
|
-
id?: string;
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
element?: string;
|
|
17
|
-
radius?: number;
|
|
18
|
-
color?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ChemistryBond {
|
|
21
|
-
from: string;
|
|
22
|
-
to: string;
|
|
23
|
-
type?: 'single' | 'double' | 'triple';
|
|
24
|
-
color?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ChemistryArrow {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
angle?: number;
|
|
30
|
-
length?: number;
|
|
31
|
-
color?: string;
|
|
32
|
-
label?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface ChemistryCanvasProps {
|
|
35
|
-
className?: string;
|
|
36
|
-
width?: number;
|
|
37
|
-
height?: number;
|
|
38
|
-
title?: string;
|
|
39
|
-
backgroundColor?: string;
|
|
40
|
-
atoms?: ChemistryAtom[];
|
|
41
|
-
bonds?: ChemistryBond[];
|
|
42
|
-
arrows?: ChemistryArrow[];
|
|
43
|
-
/** Extra declarative shapes in canvas pixel coordinates. */
|
|
44
|
-
shapes?: LearningShape[];
|
|
45
|
-
interactive?: boolean;
|
|
46
|
-
animate?: boolean;
|
|
47
|
-
onShapeClick?: (payload: {
|
|
48
|
-
id?: string;
|
|
49
|
-
type?: string;
|
|
50
|
-
index: number;
|
|
51
|
-
}) => void;
|
|
52
|
-
isLoading?: boolean;
|
|
53
|
-
error?: UiError | null;
|
|
54
|
-
}
|
|
55
|
-
export declare const ChemistryCanvas: React.FC<ChemistryCanvasProps>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MathCanvas
|
|
3
|
-
*
|
|
4
|
-
* A field-scoped learning molecule for mathematics. Renders a coordinate plane
|
|
5
|
-
* with axes, grid, curves (sampled points), scatter points, and vectors on top
|
|
6
|
-
* of the declarative `LearningCanvas` atom.
|
|
7
|
-
*
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
import * as React from 'react';
|
|
11
|
-
import type { LearningShape, LearningPoint } from '../atoms/LearningCanvas';
|
|
12
|
-
import type { UiError } from '../../core/atoms/types';
|
|
13
|
-
export interface MathCurve {
|
|
14
|
-
label?: string;
|
|
15
|
-
color?: string;
|
|
16
|
-
/** Sampled {x,y} points in math coordinates. */
|
|
17
|
-
samples: LearningPoint[];
|
|
18
|
-
}
|
|
19
|
-
export interface MathPoint {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
label?: string;
|
|
23
|
-
color?: string;
|
|
24
|
-
radius?: number;
|
|
25
|
-
}
|
|
26
|
-
export interface MathVector {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
vx: number;
|
|
30
|
-
vy: number;
|
|
31
|
-
color?: string;
|
|
32
|
-
label?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface MathCanvasProps {
|
|
35
|
-
className?: string;
|
|
36
|
-
width?: number;
|
|
37
|
-
height?: number;
|
|
38
|
-
title?: string;
|
|
39
|
-
xMin?: number;
|
|
40
|
-
xMax?: number;
|
|
41
|
-
yMin?: number;
|
|
42
|
-
yMax?: number;
|
|
43
|
-
showAxes?: boolean;
|
|
44
|
-
showGrid?: boolean;
|
|
45
|
-
gridStep?: number;
|
|
46
|
-
curves?: MathCurve[];
|
|
47
|
-
points?: MathPoint[];
|
|
48
|
-
vectors?: MathVector[];
|
|
49
|
-
/** Extra declarative shapes in canvas pixel coordinates. */
|
|
50
|
-
shapes?: LearningShape[];
|
|
51
|
-
interactive?: boolean;
|
|
52
|
-
animate?: boolean;
|
|
53
|
-
onShapeClick?: (payload: {
|
|
54
|
-
id?: string;
|
|
55
|
-
type?: string;
|
|
56
|
-
index: number;
|
|
57
|
-
}) => void;
|
|
58
|
-
isLoading?: boolean;
|
|
59
|
-
error?: UiError | null;
|
|
60
|
-
}
|
|
61
|
-
export declare const MathCanvas: React.FC<MathCanvasProps>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PhysicsCanvas
|
|
3
|
-
*
|
|
4
|
-
* A field-scoped learning molecule for physics. Renders bodies, constraints,
|
|
5
|
-
* velocity arrows, and force arrows on top of the declarative `LearningCanvas`
|
|
6
|
-
* atom.
|
|
7
|
-
*
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
import * as React from 'react';
|
|
11
|
-
import type { LearningShape } from '../atoms/LearningCanvas';
|
|
12
|
-
import type { UiError } from '../../core/atoms/types';
|
|
13
|
-
export interface LearningPhysicsBody {
|
|
14
|
-
id?: string;
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
radius?: number;
|
|
18
|
-
color?: string;
|
|
19
|
-
label?: string;
|
|
20
|
-
vx?: number;
|
|
21
|
-
vy?: number;
|
|
22
|
-
fx?: number;
|
|
23
|
-
fy?: number;
|
|
24
|
-
}
|
|
25
|
-
export interface LearningPhysicsConstraint {
|
|
26
|
-
from: string;
|
|
27
|
-
to: string;
|
|
28
|
-
color?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface PhysicsCanvasProps {
|
|
31
|
-
className?: string;
|
|
32
|
-
width?: number;
|
|
33
|
-
height?: number;
|
|
34
|
-
title?: string;
|
|
35
|
-
backgroundColor?: string;
|
|
36
|
-
bodies?: LearningPhysicsBody[];
|
|
37
|
-
constraints?: LearningPhysicsConstraint[];
|
|
38
|
-
showVelocity?: boolean;
|
|
39
|
-
showForces?: boolean;
|
|
40
|
-
velocityScale?: number;
|
|
41
|
-
forceScale?: number;
|
|
42
|
-
/** Extra declarative shapes in canvas pixel coordinates. */
|
|
43
|
-
shapes?: LearningShape[];
|
|
44
|
-
interactive?: boolean;
|
|
45
|
-
animate?: boolean;
|
|
46
|
-
onShapeClick?: (payload: {
|
|
47
|
-
id?: string;
|
|
48
|
-
type?: string;
|
|
49
|
-
index: number;
|
|
50
|
-
}) => void;
|
|
51
|
-
isLoading?: boolean;
|
|
52
|
-
error?: UiError | null;
|
|
53
|
-
}
|
|
54
|
-
export declare const PhysicsCanvas: React.FC<PhysicsCanvasProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AnimatedCounter Atom Component
|
|
3
|
-
*
|
|
4
|
-
* Animates a number from its previous value to the current value
|
|
5
|
-
* using requestAnimationFrame and ease-out easing.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export interface AnimatedCounterProps {
|
|
9
|
-
/** The target value to animate to. Strings are parsed numerically (e.g. "500", "99.9"). */
|
|
10
|
-
value: number | string;
|
|
11
|
-
/** Animation duration in milliseconds */
|
|
12
|
-
duration?: number;
|
|
13
|
-
/** Text to display before the number */
|
|
14
|
-
prefix?: string;
|
|
15
|
-
/** Text to display after the number */
|
|
16
|
-
suffix?: string;
|
|
17
|
-
/** Additional class names */
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const AnimatedCounter: React.FC<AnimatedCounterProps>;
|