@almadar/ui 2.14.0 → 2.15.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/{chunk-M7MOIE46.js → chunk-4KP6IZEQ.js} +1 -1
- package/dist/{chunk-SKWPSQHQ.js → chunk-YPY74G7F.js} +16 -8
- package/dist/components/atoms/AnimatedCounter.d.ts +20 -0
- package/dist/components/atoms/Avatar.d.ts +58 -0
- package/dist/components/atoms/Badge.d.ts +14 -0
- package/dist/components/atoms/Box.d.ts +57 -0
- package/dist/components/atoms/Button.d.ts +24 -0
- package/dist/components/atoms/Card.d.ts +18 -0
- package/dist/components/atoms/Center.d.ts +33 -0
- package/dist/components/atoms/Checkbox.d.ts +9 -0
- package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
- package/dist/components/atoms/ConfettiEffect.d.ts +19 -0
- package/dist/components/atoms/DayCell.d.ts +21 -0
- package/dist/components/atoms/Divider.d.ts +29 -0
- package/dist/components/atoms/FlipContainer.d.ts +21 -0
- package/dist/components/atoms/Icon.d.ts +39 -0
- package/dist/components/atoms/InfiniteScrollSentinel.d.ts +23 -0
- package/dist/components/atoms/Input.d.ts +26 -0
- package/dist/components/atoms/Label.d.ts +5 -0
- package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
- package/dist/components/atoms/Overlay.d.ts +16 -0
- package/dist/components/atoms/ProgressBar.d.ts +63 -0
- package/dist/components/atoms/Radio.d.ts +26 -0
- package/dist/components/atoms/RangeSlider.d.ts +31 -0
- package/dist/components/atoms/Select.d.ts +12 -0
- package/dist/components/atoms/Spacer.d.ts +25 -0
- package/dist/components/atoms/Spinner.d.ts +6 -0
- package/dist/components/atoms/Stack.d.ts +66 -0
- package/dist/components/atoms/StatusDot.d.ts +14 -0
- package/dist/components/atoms/Switch.d.ts +12 -0
- package/dist/components/atoms/TextHighlight.d.ts +53 -0
- package/dist/components/atoms/Textarea.d.ts +5 -0
- package/dist/components/atoms/ThemeSelector.d.ts +21 -0
- package/dist/components/atoms/ThemeToggle.d.ts +33 -0
- package/dist/components/atoms/TimeSlotCell.d.ts +23 -0
- package/dist/components/atoms/TrendIndicator.d.ts +18 -0
- package/dist/components/atoms/TypewriterText.d.ts +20 -0
- package/dist/components/atoms/Typography.d.ts +57 -0
- package/dist/components/atoms/game/ActionButton.d.ts +25 -0
- package/dist/components/atoms/game/ChoiceButton.d.ts +18 -0
- package/dist/components/atoms/game/ComboCounter.d.ts +16 -0
- package/dist/components/atoms/game/ControlButton.d.ts +31 -0
- package/dist/components/atoms/game/DamageNumber.d.ts +14 -0
- package/dist/components/atoms/game/DialogueBubble.d.ts +16 -0
- package/dist/components/atoms/game/HealthBar.d.ts +18 -0
- package/dist/components/atoms/game/ItemSlot.d.ts +25 -0
- package/dist/components/atoms/game/MiniMap.d.ts +36 -0
- package/dist/components/atoms/game/ResourceCounter.d.ts +21 -0
- package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
- package/dist/components/atoms/game/Sprite.d.ts +63 -0
- package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
- package/dist/components/atoms/game/StatusEffect.d.ts +21 -0
- package/dist/components/atoms/game/TimerDisplay.d.ts +18 -0
- package/dist/components/atoms/game/TurnIndicator.d.ts +18 -0
- package/dist/components/atoms/game/WaypointMarker.d.ts +19 -0
- package/dist/components/atoms/game/XPBar.d.ts +20 -0
- package/dist/components/atoms/game/index.d.ts +25 -0
- package/dist/components/atoms/index.d.ts +37 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +2 -2
- package/dist/components/molecules/Accordion.d.ts +67 -0
- package/dist/components/molecules/Alert.d.ts +24 -0
- package/dist/components/molecules/Breadcrumb.d.ts +55 -0
- package/dist/components/molecules/ButtonGroup.d.ts +67 -0
- package/dist/components/molecules/CalendarGrid.d.ts +43 -0
- package/dist/components/molecules/Card.d.ts +56 -0
- package/dist/components/molecules/Carousel.d.ts +31 -0
- package/dist/components/molecules/ChartLegend.d.ts +20 -0
- package/dist/components/molecules/Container.d.ts +30 -0
- package/dist/components/molecules/DataGrid.d.ts +75 -0
- package/dist/components/molecules/DataList.d.ts +95 -0
- package/dist/components/molecules/DateRangeSelector.d.ts +22 -0
- package/dist/components/molecules/Drawer.d.ts +46 -0
- package/dist/components/molecules/EmptyState.d.ts +25 -0
- package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
- package/dist/components/molecules/ErrorState.d.ts +13 -0
- package/dist/components/molecules/FilterGroup.d.ts +54 -0
- package/dist/components/molecules/Flex.d.ts +43 -0
- package/dist/components/molecules/FlipCard.d.ts +25 -0
- package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
- package/dist/components/molecules/FormField.d.ts +16 -0
- package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
- package/dist/components/molecules/GraphView.d.ts +45 -0
- package/dist/components/molecules/Grid.d.ts +54 -0
- package/dist/components/molecules/InputGroup.d.ts +24 -0
- package/dist/components/molecules/Lightbox.d.ts +25 -0
- package/dist/components/molecules/LineChart.d.ts +33 -0
- package/dist/components/molecules/LoadingState.d.ts +7 -0
- package/dist/components/molecules/MapView.d.ts +40 -0
- package/dist/components/molecules/Menu.d.ts +40 -0
- package/dist/components/molecules/Meter.d.ts +51 -0
- package/dist/components/molecules/Modal.d.ts +28 -0
- package/dist/components/molecules/NumberStepper.d.ts +27 -0
- package/dist/components/molecules/Pagination.d.ts +66 -0
- package/dist/components/molecules/Popover.d.ts +39 -0
- package/dist/components/molecules/ProgressDots.d.ts +24 -0
- package/dist/components/molecules/PullToRefresh.d.ts +21 -0
- package/dist/components/molecules/QuizBlock.d.ts +20 -0
- package/dist/components/molecules/RelationSelect.d.ts +48 -0
- package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
- package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
- package/dist/components/molecules/SearchInput.d.ts +60 -0
- package/dist/components/molecules/SidePanel.d.ts +47 -0
- package/dist/components/molecules/SimpleGrid.d.ts +27 -0
- package/dist/components/molecules/Skeleton.d.ts +35 -0
- package/dist/components/molecules/SortableList.d.ts +17 -0
- package/dist/components/molecules/StarRating.d.ts +26 -0
- package/dist/components/molecules/StatDisplay.d.ts +37 -0
- package/dist/components/molecules/SwipeableRow.d.ts +24 -0
- package/dist/components/molecules/Tabs.d.ts +45 -0
- package/dist/components/molecules/Toast.d.ts +35 -0
- package/dist/components/molecules/Tooltip.d.ts +25 -0
- package/dist/components/molecules/UploadDropZone.d.ts +26 -0
- package/dist/components/molecules/ViolationAlert.d.ts +49 -0
- package/dist/components/molecules/WizardNavigation.d.ts +51 -0
- package/dist/components/molecules/WizardProgress.d.ts +42 -0
- package/dist/components/molecules/game/ActionButtons.d.ts +34 -0
- package/dist/components/molecules/game/CombatLog.d.ts +30 -0
- package/dist/components/molecules/game/CraftingRecipe.d.ts +33 -0
- package/dist/components/molecules/game/DPad.d.ts +22 -0
- package/dist/components/molecules/game/DialogueBox.d.ts +78 -0
- package/dist/components/molecules/game/EnemyPlate.d.ts +27 -0
- package/dist/components/molecules/game/GameCanvas2D.d.ts +18 -0
- package/dist/components/molecules/game/GameHud.d.ts +49 -0
- package/dist/components/molecules/game/GameMenu.d.ts +43 -0
- package/dist/components/molecules/game/GameOverScreen.d.ts +56 -0
- package/dist/components/molecules/game/HealthPanel.d.ts +27 -0
- package/dist/components/molecules/game/InventoryGrid.d.ts +30 -0
- package/dist/components/molecules/game/InventoryPanel.d.ts +67 -0
- package/dist/components/molecules/game/IsometricCanvas.d.ts +127 -0
- package/dist/components/molecules/game/PlatformerCanvas.d.ts +52 -0
- package/dist/components/molecules/game/PowerupSlots.d.ts +23 -0
- package/dist/components/molecules/game/QuestTracker.d.ts +20 -0
- package/dist/components/molecules/game/ResourceBar.d.ts +23 -0
- package/dist/components/molecules/game/ScoreBoard.d.ts +18 -0
- package/dist/components/molecules/game/StatBadge.d.ts +27 -0
- package/dist/components/molecules/game/TurnPanel.d.ts +29 -0
- package/dist/components/molecules/game/UnitCommandBar.d.ts +25 -0
- package/dist/components/molecules/game/index.d.ts +30 -0
- package/dist/components/molecules/index.d.ts +59 -0
- package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
- package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
- package/dist/components/molecules/markdown/index.d.ts +2 -0
- package/dist/components/organisms/CardGrid.d.ts +80 -0
- package/dist/components/organisms/Chart.d.ts +59 -0
- package/dist/components/organisms/CodeViewer.d.ts +67 -0
- package/dist/components/organisms/ComponentPatterns.d.ts +453 -0
- package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
- package/dist/components/organisms/ContentRenderer.d.ts +23 -0
- package/dist/components/organisms/CustomPattern.d.ts +104 -0
- package/dist/components/organisms/DataTable.d.ts +67 -0
- package/dist/components/organisms/DetailPanel.d.ts +78 -0
- package/dist/components/organisms/DocumentViewer.d.ts +60 -0
- package/dist/components/organisms/DrawerSlot.d.ts +39 -0
- package/dist/components/organisms/Form.d.ts +206 -0
- package/dist/components/organisms/FormSection.d.ts +41 -0
- package/dist/components/organisms/GraphCanvas.d.ts +69 -0
- package/dist/components/organisms/Header.d.ts +110 -0
- package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
- package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
- package/dist/components/organisms/List.d.ts +78 -0
- package/dist/components/organisms/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/MediaGallery.d.ts +57 -0
- package/dist/components/organisms/Meter.d.ts +58 -0
- package/dist/components/organisms/ModalSlot.d.ts +35 -0
- package/dist/components/organisms/Navigation.d.ts +68 -0
- package/dist/components/organisms/NotifyListener.d.ts +15 -0
- package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
- package/dist/components/organisms/PageHeader.d.ts +59 -0
- package/dist/components/organisms/Section.d.ts +44 -0
- package/dist/components/organisms/Sidebar.d.ts +63 -0
- package/dist/components/organisms/SignaturePad.d.ts +44 -0
- package/dist/components/organisms/Split.d.ts +42 -0
- package/dist/components/organisms/StatCard.d.ts +62 -0
- package/dist/components/organisms/StateMachineView.d.ts +36 -0
- package/dist/components/organisms/Table.d.ts +99 -0
- package/dist/components/organisms/Timeline.d.ts +49 -0
- package/dist/components/organisms/ToastSlot.d.ts +38 -0
- package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
- package/dist/components/organisms/WizardContainer.d.ts +160 -0
- package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
- package/dist/components/organisms/book/BookCoverPage.d.ts +20 -0
- package/dist/components/organisms/book/BookNavBar.d.ts +19 -0
- package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
- package/dist/components/organisms/book/BookViewer.d.ts +28 -0
- package/dist/components/organisms/book/index.d.ts +7 -0
- package/dist/components/organisms/book/types.d.ts +77 -0
- package/dist/components/organisms/component-registry.generated.d.ts +9 -0
- package/dist/components/organisms/debug/RuntimeDebugger.d.ts +19 -0
- package/dist/components/organisms/debug/hooks/useDebugData.d.ts +25 -0
- package/dist/components/organisms/debug/index.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/EntitiesTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/EventDispatcherTab.d.ts +16 -0
- package/dist/components/organisms/debug/tabs/EventFlowTab.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/GuardsPanel.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/ServerBridgeTab.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/TicksTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/TraitsTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/TransitionTimeline.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/VerificationTab.d.ts +10 -0
- package/dist/components/organisms/game/BattleBoard.d.ts +175 -0
- package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
- package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
- package/dist/components/organisms/game/CombatLog.d.ts +2 -0
- package/dist/components/organisms/game/DialogueBox.d.ts +2 -0
- package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
- package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
- package/dist/components/organisms/game/GameCanvas3D.d.ts +181 -0
- package/dist/components/organisms/game/GameHud.d.ts +2 -0
- package/dist/components/organisms/game/GameMenu.d.ts +2 -0
- package/dist/components/organisms/game/GameOverScreen.d.ts +2 -0
- package/dist/components/organisms/game/InventoryPanel.d.ts +2 -0
- package/dist/components/organisms/game/IsometricCanvas.d.ts +3 -0
- package/dist/components/organisms/game/PlatformerCanvas.d.ts +2 -0
- package/dist/components/organisms/game/TraitSlot.d.ts +90 -0
- package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
- package/dist/components/organisms/game/WorldMapBoard.d.ts +156 -0
- package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
- package/dist/components/organisms/game/editor/index.d.ts +9 -0
- package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
- package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
- package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
- package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
- package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
- package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
- package/dist/components/organisms/game/index.d.ts +52 -0
- package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
- package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts +20 -0
- package/dist/components/organisms/game/physics-sim/SimulationControls.d.ts +28 -0
- package/dist/components/organisms/game/physics-sim/SimulationGraph.d.ts +25 -0
- package/dist/components/organisms/game/physics-sim/index.d.ts +7 -0
- package/dist/components/organisms/game/physics-sim/presets/index.d.ts +4 -0
- package/dist/components/organisms/game/physics-sim/presets/mechanics.d.ts +4 -0
- package/dist/components/organisms/game/physics-sim/presets/types.d.ts +43 -0
- package/dist/components/organisms/game/puzzles/builder/BuilderBoard.d.ts +52 -0
- package/dist/components/organisms/game/puzzles/builder/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/classifier/ClassifierBoard.d.ts +53 -0
- package/dist/components/organisms/game/puzzles/classifier/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/debugger/DebuggerBoard.d.ts +45 -0
- package/dist/components/organisms/game/puzzles/debugger/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventHandlerBoard.d.ts +55 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventLog.d.ts +31 -0
- package/dist/components/organisms/game/puzzles/event-handler/ObjectRulePanel.d.ts +45 -0
- package/dist/components/organisms/game/puzzles/event-handler/RuleEditor.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/event-handler/index.d.ts +8 -0
- package/dist/components/organisms/game/puzzles/negotiator/NegotiatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/negotiator/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts +34 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts +30 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequencerBoard.d.ts +72 -0
- package/dist/components/organisms/game/puzzles/sequencer/index.d.ts +8 -0
- package/dist/components/organisms/game/puzzles/simulator/SimulatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/simulator/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts +24 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts +76 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts +33 -0
- package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts +36 -0
- package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts +28 -0
- package/dist/components/organisms/game/puzzles/state-architect/index.d.ts +10 -0
- package/dist/components/organisms/game/three/Camera3D.d.ts +60 -0
- package/dist/components/organisms/game/three/Lighting3D.d.ts +47 -0
- package/dist/components/organisms/game/three/Scene3D.d.ts +37 -0
- package/dist/components/organisms/game/three/components/Canvas3DErrorBoundary.d.ts +51 -0
- package/dist/components/organisms/game/three/components/Canvas3DLoadingState.d.ts +44 -0
- package/dist/components/organisms/game/three/components/ModelLoader.d.ts +44 -0
- package/dist/components/organisms/game/three/components/PhysicsObject3D.d.ts +74 -0
- package/dist/components/organisms/game/three/components/index.d.ts +10 -0
- package/dist/components/organisms/game/three/hooks/useAssetLoader.d.ts +58 -0
- package/dist/components/organisms/game/three/hooks/useGameCanvas3DEvents.d.ts +79 -0
- package/dist/components/organisms/game/three/hooks/useRaycaster.d.ts +86 -0
- package/dist/components/organisms/game/three/hooks/useSceneGraph.d.ts +66 -0
- package/dist/components/organisms/game/three/hooks/useThree.d.ts +58 -0
- package/dist/components/organisms/game/three/index.d.ts +23 -0
- package/dist/components/organisms/game/three/loaders/AssetLoader.d.ts +80 -0
- package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +44 -0
- package/dist/components/organisms/game/three/renderers/FeatureRenderer3D.d.ts +44 -0
- package/dist/components/organisms/game/three/renderers/TileRenderer.d.ts +57 -0
- package/dist/components/organisms/game/three/renderers/UnitRenderer.d.ts +46 -0
- package/dist/components/organisms/game/three/renderers/index.d.ts +11 -0
- package/dist/components/organisms/game/three/utils/culling.d.ts +134 -0
- package/dist/components/organisms/game/three/utils/grid3D.d.ts +154 -0
- package/dist/components/organisms/game/types/effects.d.ts +253 -0
- package/dist/components/organisms/game/types/game.d.ts +92 -0
- package/dist/components/organisms/game/types/isometric.d.ts +109 -0
- package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
- package/dist/components/organisms/game/useCanvasEffects.d.ts +26 -0
- package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
- package/dist/components/organisms/game/utils/combatEffects.d.ts +64 -0
- package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
- package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
- package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
- package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
- package/dist/components/organisms/index.d.ts +38 -0
- package/dist/components/organisms/layout/DashboardGrid.d.ts +35 -0
- package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
- package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
- package/dist/components/organisms/layout/index.d.ts +9 -0
- package/dist/components/organisms/types.d.ts +63 -0
- package/dist/components/templates/AuthLayout.d.ts +14 -0
- package/dist/components/templates/BattleTemplate.d.ts +25 -0
- package/dist/components/templates/CastleTemplate.d.ts +23 -0
- package/dist/components/templates/CounterTemplate.d.ts +44 -0
- package/dist/components/templates/DashboardLayout.d.ts +34 -0
- package/dist/components/templates/GameCanvas3DBattleTemplate.d.ts +96 -0
- package/dist/components/templates/GameCanvas3DCastleTemplate.d.ts +90 -0
- package/dist/components/templates/GameCanvas3DWorldMapTemplate.d.ts +96 -0
- package/dist/components/templates/GameShell.d.ts +34 -0
- package/dist/components/templates/GameTemplate.d.ts +36 -0
- package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
- package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
- package/dist/components/templates/index.d.ts +10 -0
- package/dist/components/templates/types.d.ts +22 -0
- package/dist/context/DesignThemeContext.d.ts +21 -0
- package/dist/context/ThemeContext.d.ts +104 -0
- package/dist/context/UISlotContext.d.ts +75 -0
- package/dist/context/UserContext.d.ts +111 -0
- package/dist/context/index.d.ts +8 -0
- package/dist/hooks/event-bus-types.d.ts +71 -0
- package/dist/hooks/index.d.ts +31 -0
- package/dist/hooks/useAgentChat.d.ts +104 -0
- package/dist/hooks/useAuthContext.d.ts +25 -0
- package/dist/hooks/useCompile.d.ts +22 -0
- package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
- package/dist/hooks/useDragReorder.d.ts +26 -0
- package/dist/hooks/useEntities.d.ts +52 -0
- package/dist/hooks/useEntityData.d.ts +155 -0
- package/dist/hooks/useEntityMutations.d.ts +80 -0
- package/dist/hooks/useEventBus.d.ts +96 -0
- package/dist/hooks/useExtensions.d.ts +32 -0
- package/dist/hooks/useFileEditor.d.ts +32 -0
- package/dist/hooks/useFileSystem.d.ts +40 -0
- package/dist/hooks/useGitHub.d.ts +58 -0
- package/dist/hooks/useInfiniteScroll.d.ts +13 -0
- package/dist/hooks/useLongPress.d.ts +16 -0
- package/dist/hooks/useOrbitalHistory.d.ts +39 -0
- package/dist/hooks/useOrbitalMutations.d.ts +95 -0
- package/dist/hooks/usePinchZoom.d.ts +22 -0
- package/dist/hooks/usePreview.d.ts +57 -0
- package/dist/hooks/usePullToRefresh.d.ts +25 -0
- package/dist/hooks/useQuerySingleton.d.ts +78 -0
- package/dist/hooks/useResolvedEntity.d.ts +32 -0
- package/dist/hooks/useSwipeGesture.d.ts +26 -0
- package/dist/hooks/useTranslate.d.ts +35 -0
- package/dist/hooks/useUIEvents.d.ts +35 -0
- package/dist/hooks/useUISlots.d.ts +84 -0
- package/dist/hooks/useValidation.d.ts +46 -0
- package/dist/lib/api-client.d.ts +42 -0
- package/dist/lib/cn.d.ts +6 -0
- package/dist/lib/debug.d.ts +43 -0
- package/dist/lib/debugRegistry.d.ts +29 -0
- package/dist/lib/debugUtils.d.ts +27 -0
- package/dist/lib/entityDebug.d.ts +38 -0
- package/dist/lib/getNestedValue.d.ts +33 -0
- package/dist/lib/guardRegistry.d.ts +32 -0
- package/dist/lib/index.d.ts +18 -0
- package/dist/lib/jazari/index.d.ts +5 -0
- package/dist/lib/jazari/layout.d.ts +30 -0
- package/dist/lib/jazari/svg-paths.d.ts +61 -0
- package/dist/lib/jazari/types.d.ts +91 -0
- package/dist/lib/parseContentSegments.d.ts +41 -0
- package/dist/lib/tickRegistry.d.ts +40 -0
- package/dist/lib/traitRegistry.d.ts +34 -0
- package/dist/lib/verificationRegistry.d.ts +138 -0
- package/dist/lib/visualizer/browser.d.ts +47 -0
- package/dist/lib/visualizer/index.d.ts +143 -0
- package/dist/locales/index.d.ts +20 -0
- package/dist/providers/EventBusProvider.d.ts +60 -0
- package/dist/providers/FetchedDataProvider.d.ts +105 -0
- package/dist/providers/OfflineModeProvider.d.ts +79 -0
- package/dist/providers/OrbitalProvider.d.ts +101 -0
- package/dist/providers/SelectionProvider.d.ts +81 -0
- package/dist/providers/VerificationProvider.d.ts +63 -0
- package/dist/providers/index.d.ts +17 -0
- package/dist/providers/index.js +2 -2
- package/dist/renderer/client-effect-executor.d.ts +68 -0
- package/dist/renderer/data-resolver.d.ts +68 -0
- package/dist/renderer/index.d.ts +28 -0
- package/dist/renderer/init.d.ts +14 -0
- package/dist/renderer/navigation.d.ts +142 -0
- package/dist/renderer/offline-executor.d.ts +238 -0
- package/dist/renderer/pattern-resolver.d.ts +91 -0
- package/dist/renderer/slot-definitions.d.ts +45 -0
- package/dist/renderer/types.d.ts +160 -0
- package/dist/renderer/useClientEffects.d.ts +88 -0
- package/dist/runtime/EntitySchemaContext.d.ts +40 -0
- package/dist/runtime/TraitProvider.d.ts +52 -0
- package/dist/runtime/createClientEffectHandlers.d.ts +23 -0
- package/dist/runtime/index.d.ts +15 -0
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/types.d.ts +10 -0
- package/dist/runtime/ui/SlotsContext.d.ts +71 -0
- package/dist/runtime/useResolvedSchema.d.ts +45 -0
- package/dist/runtime/useTraitStateMachine.d.ts +48 -0
- package/dist/scripts/generate-design-system.d.ts +29 -0
- package/dist/scripts/generate-theme-from-schema.d.ts +10 -0
- package/dist/scripts/generate.d.ts +12 -0
- package/dist/scripts/suggest-components.d.ts +31 -0
- package/dist/scripts/types.d.ts +129 -0
- package/dist/stores/entityStore.d.ts +99 -0
- package/dist/stores/filtering.d.ts +51 -0
- package/dist/stores/index.d.ts +7 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Game Organism Components
|
|
3
|
+
*
|
|
4
|
+
* Complex UI patterns for game interfaces.
|
|
5
|
+
* Composable isometric canvas system with hooks, utils, and types.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export { IsometricCanvas, type IsometricCanvasProps } from './IsometricCanvas';
|
|
10
|
+
export { PlatformerCanvas, type PlatformerCanvasProps, type PlatformerPlatform, type PlatformerPlayer } from './PlatformerCanvas';
|
|
11
|
+
export { CanvasEffect, type CanvasEffectProps, type CombatActionType } from './CanvasEffect';
|
|
12
|
+
export type { IsometricTile, IsometricUnit, IsometricFeature, CameraState, } from './types/isometric';
|
|
13
|
+
export type { AnimationName, FacingDirection, SpriteDirection, ResolvedFrame, UnitAnimationState, SpriteFrameDims, SpriteSheetUrls, AnimationDef, } from './types/spriteAnimation';
|
|
14
|
+
export { GameAudioProvider, GameAudioContext, useGameAudioContext, type GameAudioProviderProps, type GameAudioContextValue, } from './GameAudioProvider';
|
|
15
|
+
export { GameAudioToggle, type GameAudioToggleProps, } from './GameAudioToggle';
|
|
16
|
+
export { useGameAudio, type AudioManifest, type SoundEntry, type GameAudioControls, type UseGameAudioOptions, } from './hooks/useGameAudio';
|
|
17
|
+
export { useImageCache } from './hooks/useImageCache';
|
|
18
|
+
export { useCamera } from './hooks/useCamera';
|
|
19
|
+
export { useSpriteAnimations, type UseSpriteAnimationsResult, type UseSpriteAnimationsOptions, type SheetUrlResolver, type FrameDimsResolver, } from './hooks/useSpriteAnimations';
|
|
20
|
+
export { usePhysics2D, type UsePhysics2DOptions, type UsePhysics2DReturn, } from './hooks/usePhysics2D';
|
|
21
|
+
export { PhysicsManager, type Physics2DState, type PhysicsBounds, type PhysicsConfig, } from './managers/PhysicsManager';
|
|
22
|
+
export { isoToScreen, screenToIso, TILE_WIDTH, TILE_HEIGHT, FLOOR_HEIGHT, DIAMOND_TOP_Y, FEATURE_COLORS, } from './utils/isometric';
|
|
23
|
+
export { inferDirection, resolveSheetDirection, getCurrentFrame, resolveFrame, createUnitAnimationState, transitionAnimation, tickAnimationState, } from './utils/spriteAnimation';
|
|
24
|
+
export { SPRITE_SHEET_LAYOUT, SHEET_COLUMNS } from './utils/spriteSheetConstants';
|
|
25
|
+
export { GameHud, type GameHudProps, type GameHudStat, type GameHudElement } from './GameHud';
|
|
26
|
+
export { GameMenu, type GameMenuProps, type MenuOption } from './GameMenu';
|
|
27
|
+
export { GameOverScreen, type GameOverScreenProps, type GameOverStat, type GameOverAction } from './GameOverScreen';
|
|
28
|
+
export { InventoryPanel, type InventoryPanelProps, type InventoryItem } from './InventoryPanel';
|
|
29
|
+
export { DialogueBox, type DialogueBoxProps, type DialogueNode, type DialogueChoice } from './DialogueBox';
|
|
30
|
+
export { BattleBoard, type BattleBoardProps, type BattleEntity, type BattlePhase, type BattleUnit, type BattleTile, type BattleSlotContext, } from './BattleBoard';
|
|
31
|
+
export { UncontrolledBattleBoard, type UncontrolledBattleBoardProps, } from './UncontrolledBattleBoard';
|
|
32
|
+
export { useBattleState, type BattleStateEventConfig, type BattleStateCallbacks, type BattleStateResult, } from './hooks/useBattleState';
|
|
33
|
+
export { WorldMapBoard, type WorldMapBoardProps, type WorldMapEntity, type MapHero, type MapHex, type WorldMapSlotContext, } from './WorldMapBoard';
|
|
34
|
+
export { CastleBoard, type CastleBoardProps, type CastleEntity, type CastleSlotContext, } from './CastleBoard';
|
|
35
|
+
export { TraitStateViewer, type TraitStateViewerProps, type TraitStateMachineDefinition, type TraitTransition, } from './TraitStateViewer';
|
|
36
|
+
export { TraitSlot, type TraitSlotProps, type SlotItemData, } from './TraitSlot';
|
|
37
|
+
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 './editor';
|
|
38
|
+
export * from './puzzles/sequencer';
|
|
39
|
+
export * from './puzzles/event-handler';
|
|
40
|
+
export * from './puzzles/state-architect';
|
|
41
|
+
export * from './puzzles/simulator';
|
|
42
|
+
export * from './puzzles/classifier';
|
|
43
|
+
export * from './puzzles/builder';
|
|
44
|
+
export * from './puzzles/debugger';
|
|
45
|
+
export * from './puzzles/negotiator';
|
|
46
|
+
export * from './physics-sim';
|
|
47
|
+
export { CombatLog } from './CombatLog';
|
|
48
|
+
export type { CombatLogProps, CombatEvent, CombatLogEventType } from './CombatLog';
|
|
49
|
+
export { createInitialGameState, calculateValidMoves, calculateAttackTargets, } from './types/game';
|
|
50
|
+
export type { Position, GameUnit, UnitTrait, BoardTile, GamePhase, GameState, GameAction, } from './types/game';
|
|
51
|
+
export { combatAnimations, combatClasses, combatEffects, applyTemporaryEffect, calculateDamage, generateCombatMessage, } from './utils/combatEffects';
|
|
52
|
+
export type { CombatEffect, DamageResult, CombatEventType, CombatEventData, } from './utils/combatEffects';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PhysicsManager
|
|
3
|
+
*
|
|
4
|
+
* Manages 2D physics simulation for entities with Physics2D state.
|
|
5
|
+
* This implements the tick logic that would normally be compiled from .orb schemas.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export interface Physics2DState {
|
|
10
|
+
id: string;
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
vx: number;
|
|
14
|
+
vy: number;
|
|
15
|
+
isGrounded: boolean;
|
|
16
|
+
gravity: number;
|
|
17
|
+
friction: number;
|
|
18
|
+
airResistance: number;
|
|
19
|
+
maxVelocityY: number;
|
|
20
|
+
mass?: number;
|
|
21
|
+
restitution?: number;
|
|
22
|
+
state: 'Active' | 'Frozen';
|
|
23
|
+
}
|
|
24
|
+
export interface PhysicsBounds {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
}
|
|
30
|
+
export interface PhysicsConfig {
|
|
31
|
+
gravity?: number;
|
|
32
|
+
friction?: number;
|
|
33
|
+
airResistance?: number;
|
|
34
|
+
maxVelocityY?: number;
|
|
35
|
+
groundY?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare class PhysicsManager {
|
|
38
|
+
private entities;
|
|
39
|
+
private config;
|
|
40
|
+
constructor(config?: PhysicsConfig);
|
|
41
|
+
/**
|
|
42
|
+
* Register an entity for physics simulation
|
|
43
|
+
*/
|
|
44
|
+
registerEntity(entityId: string, initialState?: Partial<Physics2DState>): Physics2DState;
|
|
45
|
+
/**
|
|
46
|
+
* Unregister an entity from physics simulation
|
|
47
|
+
*/
|
|
48
|
+
unregisterEntity(entityId: string): void;
|
|
49
|
+
/**
|
|
50
|
+
* Get physics state for an entity
|
|
51
|
+
*/
|
|
52
|
+
getState(entityId: string): Physics2DState | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Get all registered entities
|
|
55
|
+
*/
|
|
56
|
+
getAllEntities(): Physics2DState[];
|
|
57
|
+
/**
|
|
58
|
+
* Apply a force to an entity (impulse)
|
|
59
|
+
*/
|
|
60
|
+
applyForce(entityId: string, fx: number, fy: number): void;
|
|
61
|
+
/**
|
|
62
|
+
* Set velocity directly
|
|
63
|
+
*/
|
|
64
|
+
setVelocity(entityId: string, vx: number, vy: number): void;
|
|
65
|
+
/**
|
|
66
|
+
* Set position directly
|
|
67
|
+
*/
|
|
68
|
+
setPosition(entityId: string, x: number, y: number): void;
|
|
69
|
+
/**
|
|
70
|
+
* Freeze/unfreeze an entity
|
|
71
|
+
*/
|
|
72
|
+
setFrozen(entityId: string, frozen: boolean): void;
|
|
73
|
+
/**
|
|
74
|
+
* Main tick function - call this every frame
|
|
75
|
+
* Implements the logic from std-physics2d ticks
|
|
76
|
+
*/
|
|
77
|
+
tick(deltaTime?: number): void;
|
|
78
|
+
/**
|
|
79
|
+
* ApplyGravity tick implementation
|
|
80
|
+
*/
|
|
81
|
+
private applyGravity;
|
|
82
|
+
/**
|
|
83
|
+
* ApplyVelocity tick implementation
|
|
84
|
+
*/
|
|
85
|
+
private applyVelocity;
|
|
86
|
+
/**
|
|
87
|
+
* Check and handle ground collision
|
|
88
|
+
*/
|
|
89
|
+
private checkGroundCollision;
|
|
90
|
+
/**
|
|
91
|
+
* Check AABB collision between two entities
|
|
92
|
+
*/
|
|
93
|
+
checkCollision(entityIdA: string, entityIdB: string, boundsA: PhysicsBounds, boundsB: PhysicsBounds): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Resolve collision with bounce
|
|
96
|
+
*/
|
|
97
|
+
resolveCollision(entityIdA: string, entityIdB: string): void;
|
|
98
|
+
/**
|
|
99
|
+
* Reset all physics state
|
|
100
|
+
*/
|
|
101
|
+
reset(): void;
|
|
102
|
+
}
|
|
103
|
+
export default PhysicsManager;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SimulationCanvas
|
|
3
|
+
*
|
|
4
|
+
* Self-contained 2D physics canvas for educational presets.
|
|
5
|
+
* Runs its own Euler integration loop — no external physics hook needed.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { PhysicsPreset } from './presets/types';
|
|
9
|
+
export interface SimulationCanvasProps {
|
|
10
|
+
preset: string | PhysicsPreset;
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
running: boolean;
|
|
14
|
+
speed?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function SimulationCanvas({ preset: presetProp, width, height, running, speed, className, }: SimulationCanvasProps): React.JSX.Element;
|
|
18
|
+
export declare namespace SimulationCanvas {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SimulationControls
|
|
3
|
+
*
|
|
4
|
+
* Play/pause/step/reset controls with speed and parameter sliders.
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
export interface SimulationControlsProps {
|
|
8
|
+
running: boolean;
|
|
9
|
+
speed: number;
|
|
10
|
+
parameters: Record<string, {
|
|
11
|
+
value: number;
|
|
12
|
+
min: number;
|
|
13
|
+
max: number;
|
|
14
|
+
step: number;
|
|
15
|
+
label: string;
|
|
16
|
+
}>;
|
|
17
|
+
onPlay: () => void;
|
|
18
|
+
onPause: () => void;
|
|
19
|
+
onStep: () => void;
|
|
20
|
+
onReset: () => void;
|
|
21
|
+
onSpeedChange: (speed: number) => void;
|
|
22
|
+
onParameterChange: (name: string, value: number) => void;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function SimulationControls({ running, speed, parameters, onPlay, onPause, onStep, onReset, onSpeedChange, onParameterChange, className, }: SimulationControlsProps): React.JSX.Element;
|
|
26
|
+
export declare namespace SimulationControls {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SimulationGraph
|
|
3
|
+
*
|
|
4
|
+
* Real-time measurement graph for physics simulations.
|
|
5
|
+
* Renders measurement data as a simple line chart on canvas.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export interface MeasurementPoint {
|
|
9
|
+
time: number;
|
|
10
|
+
value: number;
|
|
11
|
+
}
|
|
12
|
+
export interface SimulationGraphProps {
|
|
13
|
+
label: string;
|
|
14
|
+
unit: string;
|
|
15
|
+
data: MeasurementPoint[];
|
|
16
|
+
maxPoints?: number;
|
|
17
|
+
width?: number;
|
|
18
|
+
height?: number;
|
|
19
|
+
color?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function SimulationGraph({ label, unit, data, maxPoints, width, height, color, className, }: SimulationGraphProps): React.JSX.Element;
|
|
23
|
+
export declare namespace SimulationGraph {
|
|
24
|
+
var displayName: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { SimulationCanvas } from './SimulationCanvas';
|
|
2
|
+
export type { SimulationCanvasProps } from './SimulationCanvas';
|
|
3
|
+
export { SimulationControls } from './SimulationControls';
|
|
4
|
+
export type { SimulationControlsProps } from './SimulationControls';
|
|
5
|
+
export { SimulationGraph } from './SimulationGraph';
|
|
6
|
+
export type { SimulationGraphProps, MeasurementPoint } from './SimulationGraph';
|
|
7
|
+
export * from './presets';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Physics Preset Types
|
|
3
|
+
*
|
|
4
|
+
* Configuration for physics simulation presets.
|
|
5
|
+
*/
|
|
6
|
+
export interface PhysicsBody {
|
|
7
|
+
id: string;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
vx: number;
|
|
11
|
+
vy: number;
|
|
12
|
+
mass: number;
|
|
13
|
+
radius: number;
|
|
14
|
+
color: string;
|
|
15
|
+
fixed: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface PhysicsConstraint {
|
|
18
|
+
bodyA: number;
|
|
19
|
+
bodyB: number;
|
|
20
|
+
length: number;
|
|
21
|
+
stiffness: number;
|
|
22
|
+
}
|
|
23
|
+
export interface PhysicsPreset {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
domain: string;
|
|
28
|
+
gravity?: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
bodies: PhysicsBody[];
|
|
33
|
+
constraints?: PhysicsConstraint[];
|
|
34
|
+
backgroundColor?: string;
|
|
35
|
+
showVelocity?: boolean;
|
|
36
|
+
parameters: Record<string, {
|
|
37
|
+
value: number;
|
|
38
|
+
min: number;
|
|
39
|
+
max: number;
|
|
40
|
+
step: number;
|
|
41
|
+
label: string;
|
|
42
|
+
}>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BuilderBoard
|
|
3
|
+
*
|
|
4
|
+
* Component-snapping game board. The player places components
|
|
5
|
+
* onto slots in a blueprint. Correct placement completes the build.
|
|
6
|
+
*
|
|
7
|
+
* Good for: architecture, circuits, molecules, system design stories.
|
|
8
|
+
*
|
|
9
|
+
* Events emitted via completeEvent (default UI:PUZZLE_COMPLETE).
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import type { EntityDisplayProps } from '../../../types';
|
|
13
|
+
export interface BuilderComponent {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
iconEmoji?: string;
|
|
18
|
+
/** Image URL icon (takes precedence over iconEmoji) */
|
|
19
|
+
iconUrl?: string;
|
|
20
|
+
category?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BuilderSlot {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
acceptsComponentId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface BuilderPuzzleEntity {
|
|
29
|
+
id: string;
|
|
30
|
+
title: string;
|
|
31
|
+
description: string;
|
|
32
|
+
components: BuilderComponent[];
|
|
33
|
+
slots: BuilderSlot[];
|
|
34
|
+
successMessage?: string;
|
|
35
|
+
failMessage?: string;
|
|
36
|
+
hint?: string;
|
|
37
|
+
/** Header image URL displayed above the title */
|
|
38
|
+
headerImage?: string;
|
|
39
|
+
/** Visual theme overrides */
|
|
40
|
+
theme?: {
|
|
41
|
+
background?: string;
|
|
42
|
+
accentColor?: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface BuilderBoardProps extends Omit<EntityDisplayProps, 'entity'> {
|
|
46
|
+
entity: BuilderPuzzleEntity;
|
|
47
|
+
completeEvent?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function BuilderBoard({ entity, completeEvent, className, }: BuilderBoardProps): React.JSX.Element;
|
|
50
|
+
export declare namespace BuilderBoard {
|
|
51
|
+
var displayName: string;
|
|
52
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClassifierBoard
|
|
3
|
+
*
|
|
4
|
+
* Drag-and-drop classification game. The player sorts items
|
|
5
|
+
* into the correct category buckets. All items must be correctly
|
|
6
|
+
* classified to win.
|
|
7
|
+
*
|
|
8
|
+
* Good for: taxonomy, pattern recognition, sorting stories.
|
|
9
|
+
*
|
|
10
|
+
* Events emitted via completeEvent (default UI:PUZZLE_COMPLETE).
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import type { EntityDisplayProps } from '../../../types';
|
|
14
|
+
export interface ClassifierItem {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
correctCategory: string;
|
|
19
|
+
/** Image URL icon for story-specific visual skin */
|
|
20
|
+
iconUrl?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ClassifierCategory {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
color?: string;
|
|
26
|
+
/** Image URL for story-specific category header */
|
|
27
|
+
imageUrl?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ClassifierPuzzleEntity {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
items: ClassifierItem[];
|
|
34
|
+
categories: ClassifierCategory[];
|
|
35
|
+
successMessage?: string;
|
|
36
|
+
failMessage?: string;
|
|
37
|
+
hint?: string;
|
|
38
|
+
/** Header image URL displayed above the title */
|
|
39
|
+
headerImage?: string;
|
|
40
|
+
/** Visual theme overrides */
|
|
41
|
+
theme?: {
|
|
42
|
+
background?: string;
|
|
43
|
+
accentColor?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface ClassifierBoardProps extends Omit<EntityDisplayProps, 'entity'> {
|
|
47
|
+
entity: ClassifierPuzzleEntity;
|
|
48
|
+
completeEvent?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare function ClassifierBoard({ entity, completeEvent, className, }: ClassifierBoardProps): React.JSX.Element;
|
|
51
|
+
export declare namespace ClassifierBoard {
|
|
52
|
+
var displayName: string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DebuggerBoard
|
|
3
|
+
*
|
|
4
|
+
* Error-finding game board. The player reviews a code/system
|
|
5
|
+
* listing and identifies lines or elements that contain bugs.
|
|
6
|
+
*
|
|
7
|
+
* Good for: programming, logic, troubleshooting stories.
|
|
8
|
+
*
|
|
9
|
+
* Events emitted via completeEvent (default UI:PUZZLE_COMPLETE).
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import type { EntityDisplayProps } from '../../../types';
|
|
13
|
+
export interface DebuggerLine {
|
|
14
|
+
id: string;
|
|
15
|
+
content: string;
|
|
16
|
+
isBug: boolean;
|
|
17
|
+
explanation?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface DebuggerPuzzleEntity {
|
|
20
|
+
id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
language?: string;
|
|
24
|
+
lines: DebuggerLine[];
|
|
25
|
+
/** How many bugs the player should find */
|
|
26
|
+
bugCount: number;
|
|
27
|
+
successMessage?: string;
|
|
28
|
+
failMessage?: string;
|
|
29
|
+
hint?: string;
|
|
30
|
+
/** Header image URL displayed above the title */
|
|
31
|
+
headerImage?: string;
|
|
32
|
+
/** Visual theme overrides */
|
|
33
|
+
theme?: {
|
|
34
|
+
background?: string;
|
|
35
|
+
accentColor?: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface DebuggerBoardProps extends Omit<EntityDisplayProps, 'entity'> {
|
|
39
|
+
entity: DebuggerPuzzleEntity;
|
|
40
|
+
completeEvent?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function DebuggerBoard({ entity, completeEvent, className, }: DebuggerBoardProps): React.JSX.Element;
|
|
43
|
+
export declare namespace DebuggerBoard {
|
|
44
|
+
var displayName: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventHandlerBoard Organism
|
|
3
|
+
*
|
|
4
|
+
* Contains ALL game logic for the Event Handler tier (ages 9-12).
|
|
5
|
+
* Kids click on world objects, set WHEN/THEN rules, and watch
|
|
6
|
+
* event chains cascade during playback.
|
|
7
|
+
*
|
|
8
|
+
* Encourages experimentation: on failure, resets to editing so the kid
|
|
9
|
+
* can try different rules. After 3 failures, shows a progressive hint.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import type { EntityDisplayProps } from '../../../types';
|
|
15
|
+
import { type PuzzleObjectDef } from './ObjectRulePanel';
|
|
16
|
+
export interface EventHandlerPuzzleEntity {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
/** Objects the kid can configure */
|
|
21
|
+
objects: PuzzleObjectDef[];
|
|
22
|
+
/** Goal condition description */
|
|
23
|
+
goalCondition: string;
|
|
24
|
+
/** Event that represents goal completion */
|
|
25
|
+
goalEvent: string;
|
|
26
|
+
/** Sequence of events that auto-fire to start the simulation */
|
|
27
|
+
triggerEvents?: string[];
|
|
28
|
+
/** Feedback */
|
|
29
|
+
successMessage?: string;
|
|
30
|
+
failMessage?: string;
|
|
31
|
+
/** Progressive hint shown after 3 failures */
|
|
32
|
+
hint?: string;
|
|
33
|
+
/** Header image URL displayed above the title */
|
|
34
|
+
headerImage?: string;
|
|
35
|
+
/** Visual theme overrides */
|
|
36
|
+
theme?: {
|
|
37
|
+
background?: string;
|
|
38
|
+
accentColor?: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface EventHandlerBoardProps extends Omit<EntityDisplayProps, 'entity'> {
|
|
42
|
+
/** Puzzle data */
|
|
43
|
+
entity: EventHandlerPuzzleEntity;
|
|
44
|
+
/** Playback speed in ms per event */
|
|
45
|
+
stepDurationMs?: number;
|
|
46
|
+
/** Emits UI:{playEvent} */
|
|
47
|
+
playEvent?: string;
|
|
48
|
+
/** Emits UI:{completeEvent} with { success } */
|
|
49
|
+
completeEvent?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare function EventHandlerBoard({ entity, stepDurationMs, playEvent, completeEvent, className, }: EventHandlerBoardProps): React.JSX.Element;
|
|
52
|
+
export declare namespace EventHandlerBoard {
|
|
53
|
+
var displayName: string;
|
|
54
|
+
}
|
|
55
|
+
export default EventHandlerBoard;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventLog Component
|
|
3
|
+
*
|
|
4
|
+
* Scrolling log of events during playback in the Event Handler tier.
|
|
5
|
+
* Shows the chain reaction as events cascade through objects.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export interface EventLogEntry {
|
|
11
|
+
id: string;
|
|
12
|
+
timestamp: number;
|
|
13
|
+
icon: string;
|
|
14
|
+
message: string;
|
|
15
|
+
status: 'pending' | 'active' | 'done' | 'error';
|
|
16
|
+
}
|
|
17
|
+
export interface EventLogProps {
|
|
18
|
+
/** Log entries */
|
|
19
|
+
entries: EventLogEntry[];
|
|
20
|
+
/** Max visible height before scroll */
|
|
21
|
+
maxHeight?: number;
|
|
22
|
+
/** Title label */
|
|
23
|
+
label?: string;
|
|
24
|
+
/** Additional CSS classes */
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function EventLog({ entries, maxHeight, label, className, }: EventLogProps): React.JSX.Element;
|
|
28
|
+
export declare namespace EventLog {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
export default EventLog;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ObjectRulePanel Component
|
|
3
|
+
*
|
|
4
|
+
* Shows the rules panel for a selected world object in the Event Handler tier.
|
|
5
|
+
* Displays object info, its current state (via TraitStateViewer), and
|
|
6
|
+
* a list of WHEN/THEN rules the kid has set.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { type RuleDefinition } from './RuleEditor';
|
|
12
|
+
export interface PuzzleObjectDef {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
states: string[];
|
|
17
|
+
initialState: string;
|
|
18
|
+
currentState: string;
|
|
19
|
+
availableEvents: Array<{
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}>;
|
|
23
|
+
availableActions: Array<{
|
|
24
|
+
value: string;
|
|
25
|
+
label: string;
|
|
26
|
+
}>;
|
|
27
|
+
rules: RuleDefinition[];
|
|
28
|
+
/** Max rules allowed on this object */
|
|
29
|
+
maxRules?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface ObjectRulePanelProps {
|
|
32
|
+
/** The selected object */
|
|
33
|
+
object: PuzzleObjectDef;
|
|
34
|
+
/** Called when rules change */
|
|
35
|
+
onRulesChange: (objectId: string, rules: RuleDefinition[]) => void;
|
|
36
|
+
/** Whether editing is disabled */
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/** Additional CSS classes */
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function ObjectRulePanel({ object, onRulesChange, disabled, className, }: ObjectRulePanelProps): React.JSX.Element;
|
|
42
|
+
export declare namespace ObjectRulePanel {
|
|
43
|
+
var displayName: string;
|
|
44
|
+
}
|
|
45
|
+
export default ObjectRulePanel;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RuleEditor Component
|
|
3
|
+
*
|
|
4
|
+
* A single WHEN/THEN rule row for the Event Handler tier (ages 9-12).
|
|
5
|
+
* Kid picks an event trigger and an action from dropdowns.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export interface RuleDefinition {
|
|
11
|
+
id: string;
|
|
12
|
+
whenEvent: string;
|
|
13
|
+
thenAction: string;
|
|
14
|
+
}
|
|
15
|
+
export interface RuleEditorProps {
|
|
16
|
+
/** The current rule */
|
|
17
|
+
rule: RuleDefinition;
|
|
18
|
+
/** Available event triggers to listen for */
|
|
19
|
+
availableEvents: Array<{
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}>;
|
|
23
|
+
/** Available actions to perform */
|
|
24
|
+
availableActions: Array<{
|
|
25
|
+
value: string;
|
|
26
|
+
label: string;
|
|
27
|
+
}>;
|
|
28
|
+
/** Called when rule changes */
|
|
29
|
+
onChange: (rule: RuleDefinition) => void;
|
|
30
|
+
/** Called when rule is removed */
|
|
31
|
+
onRemove?: () => void;
|
|
32
|
+
/** Whether editing is disabled (during playback) */
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/** Additional CSS classes */
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function RuleEditor({ rule, availableEvents, availableActions, onChange, onRemove, disabled, className, }: RuleEditorProps): React.JSX.Element;
|
|
38
|
+
export declare namespace RuleEditor {
|
|
39
|
+
var displayName: string;
|
|
40
|
+
}
|
|
41
|
+
export default RuleEditor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { RuleEditor } from './RuleEditor';
|
|
2
|
+
export type { RuleEditorProps, RuleDefinition } from './RuleEditor';
|
|
3
|
+
export { EventLog } from './EventLog';
|
|
4
|
+
export type { EventLogProps, EventLogEntry } from './EventLog';
|
|
5
|
+
export { ObjectRulePanel } from './ObjectRulePanel';
|
|
6
|
+
export type { ObjectRulePanelProps, PuzzleObjectDef } from './ObjectRulePanel';
|
|
7
|
+
export { EventHandlerBoard } from './EventHandlerBoard';
|
|
8
|
+
export type { EventHandlerBoardProps, EventHandlerPuzzleEntity } from './EventHandlerBoard';
|