@almadar/ui 5.74.0 → 5.76.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/avl/index.cjs +39646 -43579
- package/dist/avl/index.css +0 -504
- package/dist/avl/index.d.ts +43 -43
- package/dist/avl/index.js +38906 -42838
- package/dist/components/avl/atoms/AvlApplication.d.ts +1 -1
- package/dist/components/avl/atoms/AvlBindingRef.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEffect.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEntity.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEvent.d.ts +1 -1
- package/dist/components/avl/atoms/AvlField.d.ts +1 -1
- package/dist/components/avl/atoms/AvlFieldType.d.ts +1 -1
- package/dist/components/avl/atoms/AvlGuard.d.ts +1 -1
- package/dist/components/avl/atoms/AvlLiteral.d.ts +1 -1
- package/dist/components/avl/atoms/AvlOperator.d.ts +1 -1
- package/dist/components/avl/atoms/AvlPage.d.ts +1 -1
- package/dist/components/avl/atoms/AvlPersistence.d.ts +1 -1
- package/dist/components/avl/atoms/AvlSExpr.d.ts +1 -1
- package/dist/components/avl/atoms/AvlState.d.ts +2 -2
- package/dist/components/avl/atoms/index.d.ts +4 -4
- package/dist/components/avl/{molecules → lib}/avl-behavior-compose-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-elk-layout.d.ts +2 -2
- package/dist/components/avl/{molecules → lib}/avl-flow-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-preview-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-story-schemas.d.ts +6 -6
- package/dist/components/avl/{molecules → lib}/avl-zoom-band.d.ts +1 -1
- package/dist/components/avl/molecules/Avl3DExprTree.d.ts +1 -1
- package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +1 -1
- package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +1 -1
- package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +1 -1
- package/dist/components/avl/molecules/AvlStateMachine.d.ts +1 -1
- package/dist/components/avl/molecules/AvlTransitionLane.d.ts +1 -1
- package/dist/components/avl/molecules/BehaviorView.d.ts +1 -1
- package/dist/components/avl/molecules/DetailView.d.ts +1 -1
- package/dist/components/avl/molecules/MiniStateMachine.d.ts +1 -1
- package/dist/components/avl/molecules/ModuleCard.d.ts +1 -1
- package/dist/components/avl/molecules/OrbPreviewNode.d.ts +1 -1
- package/dist/components/avl/molecules/SystemNode.d.ts +1 -1
- package/dist/components/avl/molecules/index.d.ts +9 -9
- package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DEffects.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DViewer.d.ts +2 -2
- package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +1 -1
- package/dist/components/avl/organisms/AvlLegend.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTraitScene.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTransitionScene.d.ts +1 -1
- package/dist/components/avl/organisms/FlowCanvas.d.ts +2 -2
- package/dist/components/avl/organisms/OrbInspector.d.ts +1 -1
- package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +1 -1
- package/dist/components/avl/organisms/ZoomLegend.d.ts +1 -1
- package/dist/components/avl/organisms/index.d.ts +2 -2
- package/dist/components/avl/{molecules → types}/avl-behavior-compose-types.d.ts +1 -1
- package/dist/components/avl/{molecules → types}/avl-canvas-types.d.ts +1 -1
- package/dist/components/core/atoms/index.d.ts +2 -3
- package/dist/components/core/molecules/Breadcrumb.d.ts +1 -1
- package/dist/components/core/molecules/Card.d.ts +1 -1
- package/dist/components/core/molecules/Chart.d.ts +0 -2
- package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -2
- package/dist/components/core/molecules/DataGrid.d.ts +1 -1
- package/dist/components/core/molecules/DataList.d.ts +1 -1
- package/dist/components/core/molecules/EmptyState.d.ts +1 -1
- package/dist/components/core/molecules/FloatingActionButton.d.ts +1 -1
- package/dist/components/core/molecules/FormSectionHeader.d.ts +1 -1
- package/dist/components/core/molecules/GraphCanvas.d.ts +0 -2
- package/dist/components/core/molecules/Header.d.ts +1 -1
- package/dist/components/core/molecules/Menu.d.ts +1 -1
- package/dist/components/core/molecules/Navigation.d.ts +1 -1
- package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -2
- package/dist/components/core/molecules/PageHeader.d.ts +1 -1
- package/dist/components/core/molecules/RepeatableFormSection.d.ts +6 -5
- package/dist/components/core/molecules/Section.d.ts +0 -2
- package/dist/components/core/molecules/Sidebar.d.ts +1 -1
- package/dist/components/core/molecules/SignaturePad.d.ts +0 -2
- package/dist/components/core/molecules/Split.d.ts +0 -2
- package/dist/components/core/molecules/StatDisplay.d.ts +1 -1
- package/dist/components/core/molecules/SwipeableRow.d.ts +1 -1
- package/dist/components/core/molecules/TableView.d.ts +1 -1
- package/dist/components/core/molecules/Tabs.d.ts +1 -1
- package/dist/components/core/molecules/UploadDropZone.d.ts +1 -1
- package/dist/components/core/molecules/WizardContainer.d.ts +0 -2
- package/dist/components/core/molecules/index.d.ts +1 -1
- package/dist/components/core/organisms/UISlotRenderer.d.ts +1 -1
- package/dist/components/core/organisms/index.d.ts +4 -4
- package/dist/components/core/templates/index.d.ts +12 -12
- package/dist/components/game/{atoms → 2d/atoms}/ActionButton.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/ChoiceButton.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/ControlButton.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/atoms}/GameAudioToggle.d.ts +1 -3
- package/dist/components/game/2d/atoms/GameCard.d.ts +26 -0
- package/dist/components/game/2d/atoms/GameIcon.d.ts +18 -0
- package/dist/components/game/2d/atoms/HealthBar.d.ts +26 -0
- package/dist/components/game/{atoms → 2d/atoms}/ItemSlot.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/MiniMap.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/ResourceCounter.d.ts +2 -2
- package/dist/components/game/{atoms → 2d/atoms}/ScoreDisplay.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/Sprite.d.ts +1 -1
- package/dist/components/game/{atoms → 2d/atoms}/StateIndicator.d.ts +5 -4
- package/dist/components/game/{atoms → 2d/atoms}/StatusEffect.d.ts +2 -2
- package/dist/components/game/{atoms → 2d/atoms}/WaypointMarker.d.ts +1 -1
- package/dist/components/game/2d/molecules/Canvas2D.d.ts +161 -0
- package/dist/components/game/2d/molecules/ControlGrid.d.ts +42 -0
- package/dist/components/game/{molecules → 2d/molecules}/GameHud.d.ts +3 -1
- package/dist/components/game/{molecules → 2d/molecules}/GameMenu.d.ts +1 -1
- package/dist/components/game/{molecules → 2d/molecules}/InventoryGrid.d.ts +3 -2
- package/dist/components/game/{molecules → 2d/molecules}/ResourceBar.d.ts +3 -1
- package/dist/components/game/{molecules → 2d/molecules}/StatBadge.d.ts +1 -1
- package/dist/components/game/2d/molecules/index.d.ts +107 -0
- package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/ActionPalette.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/ActionTile.d.ts +2 -2
- package/dist/components/game/{organisms → 2d/organisms}/BattleBoard.d.ts +4 -3
- package/dist/components/game/{organisms → 2d/organisms}/BoardgameBoard.d.ts +5 -5
- package/dist/components/game/{organisms/puzzles/builder → 2d/organisms}/BuilderBoard.d.ts +7 -3
- package/dist/components/game/{organisms → 2d/organisms}/CanvasEffect.d.ts +4 -4
- package/dist/components/game/{organisms → 2d/organisms}/CardBattlerBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/CastleBoard.d.ts +2 -1
- package/dist/components/game/{organisms → 2d/organisms}/CityBuilderBoard.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/classifier → 2d/organisms}/ClassifierBoard.d.ts +7 -3
- package/dist/components/game/{organisms/puzzles/debugger → 2d/organisms}/DebuggerBoard.d.ts +7 -3
- package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/EventHandlerBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/FishingBoard.d.ts +12 -2
- package/dist/components/game/{organisms → 2d/organisms}/HexStrategyBoard.d.ts +13 -6
- package/dist/components/game/{organisms → 2d/organisms}/HolidayRunnerBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/MatchPuzzleBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/MinigolfBoard.d.ts +5 -5
- package/dist/components/game/{organisms/puzzles/negotiator → 2d/organisms}/NegotiatorBoard.d.ts +7 -3
- package/dist/components/game/{organisms → 2d/organisms}/PinballBoard.d.ts +12 -4
- package/dist/components/game/{organisms → 2d/organisms}/PirateBoard.d.ts +13 -6
- package/dist/components/game/{organisms → 2d/organisms}/PlatformerBoard.d.ts +9 -14
- package/dist/components/game/{organisms → 2d/organisms}/RacingBoard.d.ts +13 -6
- package/dist/components/game/{organisms → 2d/organisms}/RoguelikeBoard.d.ts +2 -2
- package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/SequenceBar.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/sequencer → 2d/organisms}/SequencerBoard.d.ts +1 -1
- package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationCanvas.d.ts +3 -2
- package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationControls.d.ts +6 -1
- package/dist/components/game/{organisms/puzzles/simulator → 2d/organisms}/SimulatorBoard.d.ts +7 -3
- package/dist/components/game/{organisms → 2d/organisms}/SokobanBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/SpaceShmupBoard.d.ts +13 -6
- package/dist/components/game/{organisms → 2d/organisms}/SpaceStationBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/SportsBoard.d.ts +5 -5
- package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateArchitectBoard.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateNode.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/TanksBoard.d.ts +5 -5
- package/dist/components/game/{organisms → 2d/organisms}/TowerDefenseBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/TraitSlot.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/TraitStateViewer.d.ts +1 -1
- package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/TransitionArrow.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/UncontrolledBattleBoard.d.ts +1 -1
- package/dist/components/game/{organisms → 2d/organisms}/VisualNovelBoard.d.ts +1 -9
- package/dist/components/game/{organisms → 2d/organisms}/WorldMapBoard.d.ts +4 -3
- package/dist/components/game/{templates → 2d/templates}/BattleTemplate.d.ts +2 -2
- package/dist/components/game/{templates → 2d/templates}/CardBattlerTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/CastleTemplate.d.ts +2 -2
- package/dist/components/game/{templates → 2d/templates}/CityBuilderTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/GameTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/PlatformerTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/RoguelikeTemplate.d.ts +2 -2
- package/dist/components/game/{templates → 2d/templates}/TopDownShooterTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/TowerDefenseTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/VisualNovelTemplate.d.ts +1 -1
- package/dist/components/game/{templates → 2d/templates}/WorldMapTemplate.d.ts +2 -2
- package/dist/components/game/3d/molecules/Canvas3D.d.ts +45 -0
- package/dist/components/game/{molecules → 3d/molecules}/GameCanvas3D.d.ts +3 -3
- package/dist/components/game/{molecules/three → 3d/molecules}/index.d.ts +22 -21
- package/dist/components/game/{organisms → 3d/organisms}/GameBoard3D.d.ts +1 -1
- package/dist/components/game/{templates → 3d/templates}/GameCanvas3DBattleTemplate.d.ts +3 -3
- package/dist/components/game/{templates → 3d/templates}/GameCanvas3DCastleTemplate.d.ts +3 -3
- package/dist/components/game/{templates → 3d/templates}/GameCanvas3DWorldMapTemplate.d.ts +3 -3
- package/dist/components/game/{organisms/utils → shared}/canvasEffects.d.ts +1 -1
- package/dist/components/game/{organisms/utils → shared}/combatPresets.d.ts +1 -1
- package/dist/components/game/{organisms/types → shared}/game.d.ts +2 -2
- package/dist/components/game/{molecules/three → shared}/hooks/useAssetLoader.d.ts +1 -1
- package/dist/components/game/{organisms → shared}/hooks/useBattleState.d.ts +1 -1
- package/dist/components/game/{organisms → shared}/hooks/useCamera.d.ts +1 -1
- package/dist/components/game/{organisms → shared/hooks}/useCanvasEffects.d.ts +1 -1
- package/dist/components/game/{molecules/three → shared}/hooks/useGameCanvas3DEvents.d.ts +1 -1
- package/dist/components/game/{molecules/three → shared}/hooks/useThree.d.ts +1 -1
- package/dist/components/game/{molecules → shared/hooks}/useUnitSpriteAtlas.d.ts +2 -2
- package/dist/components/game/shared/index.d.ts +21 -0
- package/dist/components/game/{organisms/types/isometric.d.ts → shared/isometricTypes.d.ts} +3 -7
- package/dist/components/game/{organisms/editor → shared/lib}/editorUtils.d.ts +6 -1
- package/dist/components/game/{templates → shared/lib}/game3dAssetManifest.d.ts +1 -1
- package/dist/components/game/{organisms/physics-sim/presets → shared/lib}/mechanics.d.ts +1 -1
- package/dist/components/game/{organisms/physics-sim/presets/index.d.ts → shared/lib/physicsPresets.d.ts} +2 -2
- package/dist/components/game/{organisms/puzzles/event-handler → shared/lib}/puzzleObject.d.ts +1 -1
- package/dist/components/game/{organisms → shared/providers}/GameAudioProvider.d.ts +3 -4
- package/dist/components/game/{organisms/utils → shared}/spriteAnimation.d.ts +1 -1
- package/dist/components/game/{organisms/utils → shared}/spriteSheetConstants.d.ts +1 -1
- package/dist/components/index.cjs +26303 -27705
- package/dist/components/index.css +0 -504
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +25707 -27155
- package/dist/context/index.cjs +93 -829
- package/dist/context/index.d.ts +8 -8
- package/dist/context/index.js +3 -809
- package/dist/hooks/index.cjs +14 -285
- package/dist/hooks/index.d.ts +5 -6
- package/dist/hooks/index.js +16 -269
- package/dist/hooks/useAgentChat.d.ts +7 -6
- package/dist/{renderer → hooks}/useClientEffects.d.ts +1 -1
- package/dist/hooks/useCompile.d.ts +2 -6
- package/dist/hooks/useDeepAgentGeneration.d.ts +4 -4
- package/dist/hooks/useEventBus.d.ts +5 -3
- package/dist/hooks/useFileSystem.d.ts +11 -1
- package/dist/hooks/useOrbitalHistory.d.ts +2 -2
- package/dist/hooks/useQuerySingleton.d.ts +5 -4
- package/dist/{runtime → hooks}/useResolvedSchema.d.ts +1 -1
- package/dist/{runtime → hooks}/useTraitStateMachine.d.ts +5 -5
- package/dist/hooks/useUISlots.d.ts +7 -10
- package/dist/lib/api-client.d.ts +4 -3
- package/dist/{renderer → lib}/client-effect-executor.d.ts +4 -15
- package/dist/{runtime → lib}/createClientEffectHandlers.d.ts +4 -4
- package/dist/{renderer → lib}/data-resolver.d.ts +3 -16
- package/dist/lib/debugRegistry.d.ts +8 -7
- package/dist/lib/entityDebug.d.ts +4 -3
- package/dist/lib/getNestedValue.d.ts +15 -3
- package/dist/lib/guardRegistry.d.ts +3 -2
- package/dist/lib/index.cjs +11 -12
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +11 -12
- package/dist/lib/jazari/layout.d.ts +3 -2
- package/dist/{renderer → lib}/offline-executor.d.ts +6 -5
- package/dist/lib/parseContentSegments.d.ts +2 -1
- package/dist/{renderer → lib}/pattern-resolver.d.ts +2 -2
- package/dist/{runtime → lib}/perf.d.ts +0 -2
- package/dist/{renderer → lib}/slot-definitions.d.ts +3 -15
- package/dist/{renderer → lib}/trait-binding-resolver.d.ts +6 -2
- package/dist/lib/visualizer/browser.d.ts +3 -2
- package/dist/lib/visualizer/index.d.ts +6 -5
- package/dist/marketing/index.cjs +6 -6
- package/dist/marketing/index.js +6 -6
- package/dist/{runtime → providers}/EntitySchemaContext.d.ts +0 -4
- package/dist/providers/EventBusProvider.d.ts +3 -2
- package/dist/providers/OfflineModeProvider.d.ts +1 -1
- package/dist/providers/OrbitalProvider.d.ts +5 -4
- package/dist/providers/SelectionProvider.d.ts +6 -5
- package/dist/{runtime → providers}/ServerBridge.d.ts +14 -11
- package/dist/{context → providers}/ThemeContext.d.ts +5 -5
- package/dist/{runtime → providers}/TraitProvider.d.ts +4 -3
- package/dist/{context → providers}/UISlotContext.d.ts +2 -2
- package/dist/{context → providers}/UserContext.d.ts +3 -2
- package/dist/providers/VerificationProvider.d.ts +2 -1
- package/dist/providers/index.cjs +40362 -43663
- package/dist/providers/index.css +0 -504
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +41036 -44336
- package/dist/{renderer → providers}/navigation.d.ts +7 -7
- package/dist/renderer/index.cjs +84 -322
- package/dist/renderer/index.d.ts +12 -12
- package/dist/renderer/index.js +30 -301
- package/dist/runtime/OrbPreview.d.ts +1 -1
- package/dist/runtime/index.cjs +41094 -45072
- package/dist/runtime/index.css +0 -504
- package/dist/runtime/index.d.ts +11 -11
- package/dist/runtime/index.js +40822 -44823
- package/dist/{hooks → types}/event-bus-types.d.ts +2 -1
- package/dist/{renderer/types.d.ts → types/renderer-types.d.ts} +14 -28
- package/dist/types/runtime-types.d.ts +21 -0
- package/dist/{runtime/ui → types}/slot-types.d.ts +5 -4
- package/locales/index.ts +1 -1
- package/package.json +14 -31
- package/dist/components/core/atoms/ThemeSelector.d.ts +0 -21
- package/dist/components/game/atoms/HealthBar.d.ts +0 -18
- package/dist/components/game/atoms/XPBar.d.ts +0 -20
- package/dist/components/game/atoms/index.d.ts +0 -25
- package/dist/components/game/molecules/ActionButtons.d.ts +0 -38
- package/dist/components/game/molecules/CardHand.d.ts +0 -35
- package/dist/components/game/molecules/CombatLog.d.ts +0 -30
- package/dist/components/game/molecules/CraftingRecipe.d.ts +0 -40
- package/dist/components/game/molecules/DPad.d.ts +0 -26
- package/dist/components/game/molecules/DialogueBox.d.ts +0 -66
- package/dist/components/game/molecules/EnemyPlate.d.ts +0 -30
- package/dist/components/game/molecules/GameCanvas2D.d.ts +0 -27
- package/dist/components/game/molecules/GameOverScreen.d.ts +0 -57
- package/dist/components/game/molecules/HealthPanel.d.ts +0 -31
- package/dist/components/game/molecules/InventoryPanel.d.ts +0 -58
- package/dist/components/game/molecules/IsometricCanvas.d.ts +0 -137
- package/dist/components/game/molecules/PlatformerCanvas.d.ts +0 -60
- package/dist/components/game/molecules/PowerupSlots.d.ts +0 -26
- package/dist/components/game/molecules/QuestTracker.d.ts +0 -20
- package/dist/components/game/molecules/ScoreBoard.d.ts +0 -18
- package/dist/components/game/molecules/TurnPanel.d.ts +0 -32
- package/dist/components/game/molecules/UnitCommandBar.d.ts +0 -25
- package/dist/components/game/molecules/index.d.ts +0 -32
- package/dist/components/game/molecules/three/components/PhysicsObject3D.d.ts +0 -74
- package/dist/components/game/molecules/three/components/index.d.ts +0 -10
- package/dist/components/game/molecules/three/index.cjs +0 -7798
- package/dist/components/game/molecules/three/index.css +0 -503
- package/dist/components/game/molecules/three/index.js +0 -7717
- package/dist/components/game/molecules/three/patterns.d.ts +0 -20
- package/dist/components/game/molecules/three/renderers/FeatureRenderer.d.ts +0 -38
- package/dist/components/game/molecules/three/renderers/FeatureRenderer3D.d.ts +0 -44
- package/dist/components/game/molecules/three/renderers/TileRenderer.d.ts +0 -57
- package/dist/components/game/molecules/three/renderers/UnitRenderer.d.ts +0 -46
- package/dist/components/game/molecules/three/renderers/index.d.ts +0 -11
- package/dist/components/game/organisms/editor/index.d.ts +0 -9
- package/dist/components/game/organisms/hooks/usePhysics2D.d.ts +0 -45
- package/dist/components/game/organisms/hooks/useSpriteAnimations.d.ts +0 -43
- package/dist/components/game/organisms/index.d.ts +0 -66
- package/dist/components/game/organisms/managers/PhysicsManager.d.ts +0 -103
- package/dist/components/game/organisms/physics-sim/index.d.ts +0 -7
- package/dist/components/game/organisms/puzzles/builder/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/classifier/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/debugger/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/event-handler/index.d.ts +0 -8
- package/dist/components/game/organisms/puzzles/negotiator/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/sequencer/index.d.ts +0 -8
- package/dist/components/game/organisms/puzzles/simulator/index.d.ts +0 -2
- package/dist/components/game/organisms/puzzles/state-architect/index.d.ts +0 -10
- package/dist/components/game/organisms/utils/combatEffects.d.ts +0 -64
- package/dist/components/game/templates/index.d.ts +0 -4
- package/dist/docs/index.cjs +0 -6969
- package/dist/docs/index.css +0 -1756
- package/dist/docs/index.d.cts +0 -574
- package/dist/docs/index.d.ts +0 -29
- package/dist/docs/index.js +0 -6926
- package/dist/hooks/useAgentTrace.d.ts +0 -85
- package/dist/hooks/useEntities.d.ts +0 -52
- package/dist/hooks/usePinchZoom.d.ts +0 -22
- package/dist/runtime/types.d.ts +0 -37
- package/dist/stores/entityStore.d.ts +0 -99
- package/dist/stores/filtering.d.ts +0 -51
- package/dist/stores/index.cjs +0 -217
- package/dist/stores/index.d.ts +0 -7
- package/dist/stores/index.js +0 -194
- /package/dist/components/avl/{molecules → hooks}/useCanvasDnd.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-3d-layout.d.ts +0 -0
- /package/dist/components/avl/{molecules → lib}/avl-layout.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-schema-parser.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-zoom-state.d.ts +0 -0
- /package/dist/components/avl/{derive-edit-focus.d.ts → lib/derive-edit-focus.d.ts} +0 -0
- /package/dist/components/avl/{molecules → lib}/wire-validation.d.ts +0 -0
- /package/dist/components/avl/{organisms → providers}/avl-3d-context.d.ts +0 -0
- /package/dist/components/avl/{atoms/types.d.ts → types/avl-atom-types.d.ts} +0 -0
- /package/dist/components/avl/{molecules → types}/avl-preview-types.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/ComboCounter.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/DamageNumber.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/DialogueBubble.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/TimerDisplay.d.ts +0 -0
- /package/dist/components/game/{atoms → 2d/atoms}/TurnIndicator.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/EventLog.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/ObjectRulePanel.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/event-handler → 2d/organisms}/RuleEditor.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim → 2d/organisms}/SimulationGraph.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/StateJsonView.d.ts +0 -0
- /package/dist/components/game/{organisms → 2d/organisms}/TopDownShooterBoard.d.ts +0 -0
- /package/dist/components/game/{organisms/puzzles/state-architect → 2d/organisms}/VariablePanel.d.ts +0 -0
- /package/dist/components/game/{templates → 2d/templates}/GameShell.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d/molecules}/Camera3D.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d/molecules}/Canvas3DErrorBoundary.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d/molecules}/Canvas3DLoadingState.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d/molecules}/Lighting3D.d.ts +0 -0
- /package/dist/components/game/{molecules/three/components → 3d/molecules}/ModelLoader.d.ts +0 -0
- /package/dist/components/game/{molecules/three → 3d/molecules}/Scene3D.d.ts +0 -0
- /package/dist/components/game/{organisms → shared}/boardEntity.d.ts +0 -0
- /package/dist/components/game/{organisms/types → shared}/effects.d.ts +0 -0
- /package/dist/components/game/{organisms → shared}/hooks/useGameAudio.d.ts +0 -0
- /package/dist/components/game/{molecules/three → shared}/hooks/useRaycaster.d.ts +0 -0
- /package/dist/components/game/{molecules/three → shared}/hooks/useSceneGraph.d.ts +0 -0
- /package/dist/components/game/{organisms/utils → shared}/isometric.d.ts +0 -0
- /package/dist/components/game/{molecules/three/loaders → shared/lib}/AssetLoader.d.ts +0 -0
- /package/dist/components/game/{molecules/three/utils → shared/lib}/culling.d.ts +0 -0
- /package/dist/components/game/{molecules/three/utils → shared/lib}/grid3D.d.ts +0 -0
- /package/dist/components/game/{organisms/physics-sim/presets/types.d.ts → shared/lib/physicsTypes.d.ts} +0 -0
- /package/dist/components/game/{organisms/utils → shared}/makeAsset.d.ts +0 -0
- /package/dist/components/game/{organisms/types/spriteAnimation.d.ts → shared/spriteAnimationTypes.d.ts} +0 -0
- /package/dist/components/game/{organisms/hooks → shared}/useImageCache.d.ts +0 -0
- /package/dist/{runtime → lib}/embedded-traits.d.ts +0 -0
- /package/dist/{runtime → lib}/fn-form-lambda.d.ts +0 -0
- /package/dist/{renderer → lib}/init.d.ts +0 -0
- /package/dist/{runtime → lib}/orbitalsByTrait.d.ts +0 -0
- /package/dist/{runtime → lib}/prepareSchemaForPreview.d.ts +0 -0
- /package/dist/{context → lib}/themeTokens.d.ts +0 -0
- /package/dist/{runtime → lib}/wrapCallbackForEvent.d.ts +0 -0
- /package/dist/{context → providers}/CurrentPagePathContext.d.ts +0 -0
- /package/dist/{context → providers}/DesignThemeContext.d.ts +0 -0
- /package/dist/{context → providers}/OrbitalThemeProvider.d.ts +0 -0
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import type { TemplateProps } from '
|
|
12
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
13
13
|
import type { BattleBoardProps } from '../organisms/BattleBoard';
|
|
14
|
-
import type { IsometricTile, IsometricUnit, IsometricFeature } from '
|
|
14
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../shared/isometricTypes';
|
|
15
15
|
export type { BattlePhase, BattleSlotContext, } from '../organisms/BattleBoard';
|
|
16
16
|
export interface BattleTemplateProps extends TemplateProps {
|
|
17
17
|
/** Canvas render scale */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import type { EventEmit } from '@almadar/core';
|
|
9
|
-
import type { TemplateProps } from '
|
|
9
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
10
10
|
import type { CardBattlerBoardProps, CardBattlerCard } from '../organisms/CardBattlerBoard';
|
|
11
11
|
export interface CardBattlerTemplateProps extends TemplateProps {
|
|
12
12
|
title?: string;
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import type { TemplateProps } from '
|
|
12
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
13
13
|
import type { CastleBoardProps } from '../organisms/CastleBoard';
|
|
14
|
-
import type { IsometricTile, IsometricUnit, IsometricFeature } from '
|
|
14
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../shared/isometricTypes';
|
|
15
15
|
export type { CastleSlotContext } from '../organisms/CastleBoard';
|
|
16
16
|
export interface CastleTemplateProps extends TemplateProps {
|
|
17
17
|
/** Canvas render scale */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import type { EventEmit } from '@almadar/core';
|
|
9
|
-
import type { TemplateProps } from '
|
|
9
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
10
10
|
import type { CityBuilderBoardProps, CityBuilderTile, CityBuilderBuilding, CityBuilderBuildType } from '../organisms/CityBuilderBoard';
|
|
11
11
|
export interface CityBuilderTemplateProps extends TemplateProps {
|
|
12
12
|
title?: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* **Atomic Design**: Composed using Box, Typography, and Layout molecules/atoms.
|
|
7
7
|
*/
|
|
8
8
|
import React from "react";
|
|
9
|
-
import type { TemplateProps } from "
|
|
9
|
+
import type { TemplateProps } from "../../../core/templates/types";
|
|
10
10
|
export interface GameControls {
|
|
11
11
|
onPlay?: () => void;
|
|
12
12
|
onPause?: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Asset } from '@almadar/core';
|
|
3
|
-
import type { TemplateProps } from '
|
|
3
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
4
4
|
import type { PlatformerBoardProps } from '../organisms/PlatformerBoard';
|
|
5
5
|
export interface PlatformerTemplateProps extends TemplateProps {
|
|
6
6
|
/** Level geometry forwarded to PlatformerBoard */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EventEmit } from '@almadar/core';
|
|
3
|
-
import type { TemplateProps } from '
|
|
3
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
4
4
|
import type { RoguelikeBoardProps } from '../organisms/RoguelikeBoard';
|
|
5
|
-
import type { IsometricTile } from '
|
|
5
|
+
import type { IsometricTile } from '../../shared/isometricTypes';
|
|
6
6
|
export interface RoguelikeTemplateProps extends TemplateProps {
|
|
7
7
|
scale?: number;
|
|
8
8
|
unitScale?: number;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import type { EventEmit } from '@almadar/core';
|
|
9
|
-
import type { TemplateProps } from '
|
|
9
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
10
10
|
import type { TopDownShooterBoardProps, ShooterPlayer, ShooterEnemy, ShooterProjectile } from '../organisms/TopDownShooterBoard';
|
|
11
11
|
export interface TopDownShooterTemplateProps extends TemplateProps {
|
|
12
12
|
title?: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* All game state is driven by the entity prop (passed through from the orbital trait).
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import type { TemplateProps } from '
|
|
8
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
9
9
|
import type { TowerDefenseTile, TowerDefensePathPoint, TowerDefenseTower } from '../organisms/TowerDefenseBoard';
|
|
10
10
|
import type { EventEmit } from '@almadar/core';
|
|
11
11
|
export interface TowerDefenseTemplateProps extends TemplateProps {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import type { EventEmit } from '@almadar/core';
|
|
9
|
-
import type { TemplateProps } from '
|
|
9
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
10
10
|
import type { VisualNovelNode } from '../organisms/VisualNovelBoard';
|
|
11
11
|
export interface VisualNovelTemplateProps extends TemplateProps {
|
|
12
12
|
title?: string;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import type { WorldMapBoardProps } from '../organisms/WorldMapBoard';
|
|
13
|
-
import type { TemplateProps } from '
|
|
14
|
-
import type { IsometricTile, IsometricUnit, IsometricFeature } from '
|
|
13
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
14
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../shared/isometricTypes';
|
|
15
15
|
export type { WorldMapSlotContext } from '../organisms/WorldMapBoard';
|
|
16
16
|
export interface WorldMapTemplateProps extends TemplateProps {
|
|
17
17
|
/** Canvas render scale */
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EventEmit } from '@almadar/core';
|
|
3
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../shared/isometricTypes';
|
|
4
|
+
/** Props for Canvas3D — cleaned prop surface per docs/Almadar_Std_Game.md §4.4 */
|
|
5
|
+
export interface Canvas3DProps {
|
|
6
|
+
tiles?: IsometricTile[];
|
|
7
|
+
units?: IsometricUnit[];
|
|
8
|
+
features?: IsometricFeature[];
|
|
9
|
+
cameraMode?: 'isometric' | 'perspective' | 'top-down';
|
|
10
|
+
shadows?: boolean;
|
|
11
|
+
showGrid?: boolean;
|
|
12
|
+
selectedUnitId?: string | null;
|
|
13
|
+
validMoves?: Array<{
|
|
14
|
+
x: number;
|
|
15
|
+
z: number;
|
|
16
|
+
}>;
|
|
17
|
+
attackTargets?: Array<{
|
|
18
|
+
x: number;
|
|
19
|
+
z: number;
|
|
20
|
+
}>;
|
|
21
|
+
tileClickEvent?: EventEmit<{
|
|
22
|
+
tileId: string;
|
|
23
|
+
x: number;
|
|
24
|
+
z: number;
|
|
25
|
+
}>;
|
|
26
|
+
unitClickEvent?: EventEmit<{
|
|
27
|
+
unitId: string;
|
|
28
|
+
x: number;
|
|
29
|
+
z: number;
|
|
30
|
+
}>;
|
|
31
|
+
unitScale?: number;
|
|
32
|
+
className?: string;
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
error?: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Canvas3D — pure 3D renderer. Game logic lives in LOLO; this component
|
|
38
|
+
* receives pre-computed state via props and emits events via EventEmit props.
|
|
39
|
+
*
|
|
40
|
+
* Wraps GameCanvas3D under the canonical §4.4 prop surface.
|
|
41
|
+
* GameCanvas3D is preserved for the Wave 4 migration; Canvas3D is the
|
|
42
|
+
* stable public name going forward.
|
|
43
|
+
*/
|
|
44
|
+
export declare function Canvas3D(props: Canvas3DProps): React.JSX.Element;
|
|
45
|
+
export default Canvas3D;
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import type { EventEmit } from '@almadar/core';
|
|
18
18
|
import * as THREE from 'three';
|
|
19
|
-
import { AssetLoader } from '
|
|
20
|
-
import { type MinimalMouseEvent } from '
|
|
21
|
-
import type { IsometricTile, IsometricUnit, IsometricFeature } from '
|
|
19
|
+
import { AssetLoader } from '../../shared/lib/AssetLoader';
|
|
20
|
+
import { type MinimalMouseEvent } from '../../shared/hooks/useGameCanvas3DEvents';
|
|
21
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../shared/isometricTypes';
|
|
22
22
|
import './GameCanvas3D.css';
|
|
23
23
|
export type { IsometricTile, IsometricUnit, IsometricFeature };
|
|
24
24
|
/** Game event for canvas display */
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Game 3D (three.js)
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Three.js components, hooks, loaders, renderers, and the GameCanvas3D family.
|
|
5
|
+
* Code-split behind the `@almadar/ui/components/molecules/game/three` subpath.
|
|
5
6
|
*
|
|
6
7
|
* @packageDocumentation
|
|
7
8
|
*/
|
|
8
9
|
export { Scene3D, type Scene3DProps } from './Scene3D';
|
|
9
10
|
export { Camera3D, type Camera3DProps, type Camera3DHandle, type CameraMode } from './Camera3D';
|
|
10
11
|
export { Lighting3D, type Lighting3DProps } from './Lighting3D';
|
|
11
|
-
export { Canvas3DLoadingState, type Canvas3DLoadingStateProps, } from './
|
|
12
|
-
export { Canvas3DErrorBoundary, type Canvas3DErrorBoundaryProps, type Canvas3DErrorBoundaryState, } from './
|
|
13
|
-
export { ModelLoader, type ModelLoaderProps, } from './
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export { GameCanvas3DBattleTemplate, type GameCanvas3DBattleTemplateProps } from '
|
|
24
|
-
export { GameCanvas3DCastleTemplate, type GameCanvas3DCastleTemplateProps } from '
|
|
25
|
-
export { GameCanvas3DWorldMapTemplate, type GameCanvas3DWorldMapTemplateProps } from '
|
|
26
|
-
export { gridToWorld, worldToGrid, raycastToPlane, raycastToObjects, gridDistance, gridManhattanDistance, getNeighbors, isInBounds, getCellsInRadius, createGridHighlight, normalizeMouseCoordinates, type Grid3DConfig, type GridCoordinate, } from '
|
|
12
|
+
export { Canvas3DLoadingState, type Canvas3DLoadingStateProps, } from './Canvas3DLoadingState';
|
|
13
|
+
export { Canvas3DErrorBoundary, type Canvas3DErrorBoundaryProps, type Canvas3DErrorBoundaryState, } from './Canvas3DErrorBoundary';
|
|
14
|
+
export { ModelLoader, type ModelLoaderProps, } from './ModelLoader';
|
|
15
|
+
export { useThree, type UseThreeOptions, type UseThreeReturn, } from '../../shared/hooks/useThree';
|
|
16
|
+
export { useAssetLoader, type UseAssetLoaderOptions, type UseAssetLoaderReturn, type AssetLoadingState, } from '../../shared/hooks/useAssetLoader';
|
|
17
|
+
export { useSceneGraph, type UseSceneGraphReturn, type SceneGraphNode, type NodeType, } from '../../shared/hooks/useSceneGraph';
|
|
18
|
+
export { useRaycaster, type UseRaycasterOptions, type UseRaycasterReturn, type RaycastHit, type GridHit, } from '../../shared/hooks/useRaycaster';
|
|
19
|
+
export { useGameCanvas3DEvents, type UseGameCanvas3DEventsOptions, type UseGameCanvas3DEventsReturn, type GameCanvas3DEventConfig, } from '../../shared/hooks/useGameCanvas3DEvents';
|
|
20
|
+
export { AssetLoader, assetLoader, type LoadedModel, } from '../../shared/lib/AssetLoader';
|
|
21
|
+
export type { UnitAnimationState } from '../../shared/spriteAnimationTypes';
|
|
22
|
+
export { GameCanvas3D, type GameCanvas3DProps } from './GameCanvas3D';
|
|
23
|
+
export { Canvas3D, type Canvas3DProps } from './Canvas3D';
|
|
24
|
+
export { GameCanvas3DBattleTemplate, type GameCanvas3DBattleTemplateProps } from '../templates/GameCanvas3DBattleTemplate';
|
|
25
|
+
export { GameCanvas3DCastleTemplate, type GameCanvas3DCastleTemplateProps } from '../templates/GameCanvas3DCastleTemplate';
|
|
26
|
+
export { GameCanvas3DWorldMapTemplate, type GameCanvas3DWorldMapTemplateProps } from '../templates/GameCanvas3DWorldMapTemplate';
|
|
27
|
+
export { gridToWorld, worldToGrid, raycastToPlane, raycastToObjects, gridDistance, gridManhattanDistance, getNeighbors, isInBounds, getCellsInRadius, createGridHighlight, normalizeMouseCoordinates, type Grid3DConfig, type GridCoordinate, } from '../../shared/lib/grid3D';
|
|
27
28
|
export { Avl3DViewer, type Avl3DViewerProps } from '../../../avl/organisms/Avl3DViewer';
|
|
28
29
|
export { Avl3DApplicationScene, type Avl3DApplicationSceneProps } from '../../../avl/organisms/Avl3DApplicationScene';
|
|
29
30
|
export { Avl3DOrbitalScene, type Avl3DOrbitalSceneProps } from '../../../avl/organisms/Avl3DOrbitalScene';
|
|
30
31
|
export { Avl3DTraitScene, type Avl3DTraitSceneProps } from '../../../avl/organisms/Avl3DTraitScene';
|
|
31
32
|
export { Avl3DTransitionScene, type Avl3DTransitionSceneProps } from '../../../avl/organisms/Avl3DTransitionScene';
|
|
32
33
|
export { Avl3DEffects, type Avl3DEffectsProps } from '../../../avl/organisms/Avl3DEffects';
|
|
33
|
-
export { Avl3DContext, useAvl3DConfig, type Avl3DModelOverrides, type Avl3DConfig } from '../../../avl/
|
|
34
|
-
export { AVL_3D_COLORS, CAMERA_POSITIONS, goldenSpiralPositions, fibonacciSpherePositions, orbitRingPositions, arcCurve3D, selfLoopCurve3D, treeLayout3D, type Position3D, } from '../../../avl/
|
|
35
|
-
export { isInFrustum, filterByFrustum, getVisibleIndices, calculateLODLevel, updateInstanceLOD, cullInstancedMesh, SpatialHashGrid, type CullingOptions, type LODLevel, type LODConfig, } from '
|
|
34
|
+
export { Avl3DContext, useAvl3DConfig, type Avl3DModelOverrides, type Avl3DConfig } from '../../../avl/providers/avl-3d-context';
|
|
35
|
+
export { AVL_3D_COLORS, CAMERA_POSITIONS, goldenSpiralPositions, fibonacciSpherePositions, orbitRingPositions, arcCurve3D, selfLoopCurve3D, treeLayout3D, type Position3D, } from '../../../avl/lib/avl-3d-layout';
|
|
36
|
+
export { isInFrustum, filterByFrustum, getVisibleIndices, calculateLODLevel, updateInstanceLOD, cullInstancedMesh, SpatialHashGrid, type CullingOptions, type LODLevel, type LODConfig, } from '../../shared/lib/culling';
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import type { EventEmit, EntityRow } from '@almadar/core';
|
|
14
14
|
import type { CameraMode } from '../molecules/GameCanvas3D';
|
|
15
|
-
import type { IsometricTile, IsometricFeature } from '
|
|
15
|
+
import type { IsometricTile, IsometricFeature } from '../../shared/isometricTypes';
|
|
16
16
|
export interface GameBoard3DProps {
|
|
17
17
|
/** Entity row carrying all gameplay state (controlled). */
|
|
18
18
|
entity?: EntityRow | readonly EntityRow[];
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import type { IsometricTile, IsometricFeature } from '
|
|
22
|
-
import type { TemplateProps } from '
|
|
23
|
-
import { type Game3DAssetManifest } from '
|
|
21
|
+
import type { IsometricTile, IsometricFeature } from '../../shared/isometricTypes';
|
|
22
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
23
|
+
import { type Game3DAssetManifest } from '../../shared/lib/game3dAssetManifest';
|
|
24
24
|
export interface GameCanvas3DBattleTemplateProps extends TemplateProps {
|
|
25
25
|
/** Fallback tile data when no entity is present (layout only — model URLs resolve from assetManifest) */
|
|
26
26
|
tiles?: IsometricTile[];
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* @packageDocumentation
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import type { IsometricTile, IsometricFeature } from '
|
|
23
|
-
import type { TemplateProps } from '
|
|
24
|
-
import { type Game3DAssetManifest } from '
|
|
22
|
+
import type { IsometricTile, IsometricFeature } from '../../shared/isometricTypes';
|
|
23
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
24
|
+
import { type Game3DAssetManifest } from '../../shared/lib/game3dAssetManifest';
|
|
25
25
|
export interface GameCanvas3DCastleTemplateProps extends TemplateProps {
|
|
26
26
|
/** Fallback tile data when no entity is present (layout only — model URLs resolve from assetManifest) */
|
|
27
27
|
tiles?: IsometricTile[];
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
* @packageDocumentation
|
|
21
21
|
*/
|
|
22
22
|
import React from 'react';
|
|
23
|
-
import type { IsometricTile, IsometricFeature } from '
|
|
24
|
-
import type { TemplateProps } from '
|
|
25
|
-
import { type Game3DAssetManifest } from '
|
|
23
|
+
import type { IsometricTile, IsometricFeature } from '../../shared/isometricTypes';
|
|
24
|
+
import type { TemplateProps } from '../../../core/templates/types';
|
|
25
|
+
import { type Game3DAssetManifest } from '../../shared/lib/game3dAssetManifest';
|
|
26
26
|
export interface GameCanvas3DWorldMapTemplateProps extends TemplateProps {
|
|
27
27
|
/** Fallback tile data when no entity is present (layout only — model URLs resolve from assetManifest) */
|
|
28
28
|
tiles?: IsometricTile[];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Ported from trait-wars and generalized for any almadar-ui client.
|
|
8
8
|
*/
|
|
9
|
-
import type { CanvasParticle, CanvasSequence, CanvasOverlay, CanvasEffectState, ParticleEmitterConfig, SequenceConfig, OverlayConfig } from '
|
|
9
|
+
import type { CanvasParticle, CanvasSequence, CanvasOverlay, CanvasEffectState, ParticleEmitterConfig, SequenceConfig, OverlayConfig } from './effects';
|
|
10
10
|
/**
|
|
11
11
|
* Draw a sprite tinted with an RGB color onto the main canvas.
|
|
12
12
|
* Uses offscreen canvas with `source-atop` compositing to recolor
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Generalized from trait-wars: uses EffectAssetManifest instead of TraitWarsAssetManifest.
|
|
8
8
|
*/
|
|
9
|
-
import type { CombatActionType, CombatPreset, EffectAssetManifest } from '
|
|
9
|
+
import type { CombatActionType, CombatPreset, EffectAssetManifest } from './effects';
|
|
10
10
|
type PresetFactory = (originX: number, originY: number) => CombatPreset;
|
|
11
11
|
/**
|
|
12
12
|
* Create combat preset factories from an effect asset manifest.
|
|
@@ -12,7 +12,7 @@ export interface GameUnit {
|
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
14
|
characterType: string;
|
|
15
|
-
team: 'player' | 'enemy';
|
|
15
|
+
team: 'player' | 'enemy' | 'neutral';
|
|
16
16
|
position: Position;
|
|
17
17
|
health: number;
|
|
18
18
|
maxHealth: number;
|
|
@@ -38,7 +38,7 @@ export interface GameState {
|
|
|
38
38
|
units: Record<string, GameUnit>;
|
|
39
39
|
currentPhase: GamePhase;
|
|
40
40
|
currentTurn: number;
|
|
41
|
-
activeTeam: 'player' | 'enemy';
|
|
41
|
+
activeTeam: 'player' | 'enemy' | 'neutral';
|
|
42
42
|
selectedUnitId?: string;
|
|
43
43
|
validMoves: Position[];
|
|
44
44
|
attackTargets: Position[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AssetUrl } from '@almadar/core';
|
|
2
|
-
import type { CombatActionType, EffectAssetManifest } from '
|
|
2
|
+
import type { CombatActionType, EffectAssetManifest } from '../effects';
|
|
3
3
|
export interface UseCanvasEffectsOptions {
|
|
4
4
|
/** Effect asset manifest (baseUrl + particles + animations) */
|
|
5
5
|
manifest: EffectAssetManifest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EventEmit } from '@almadar/core';
|
|
2
|
-
import type { IsometricTile, IsometricUnit, IsometricFeature } from '
|
|
2
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../isometricTypes';
|
|
3
3
|
export interface GameCanvas3DEventConfig {
|
|
4
4
|
/** Event name for tile clicks */
|
|
5
5
|
tileClickEvent?: EventEmit<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
3
|
-
import { AssetLoader } from '../
|
|
3
|
+
import { AssetLoader } from '../lib/AssetLoader';
|
|
4
4
|
export type CameraMode = 'isometric' | 'perspective' | 'top-down';
|
|
5
5
|
export interface UseThreeOptions {
|
|
6
6
|
/** Camera mode for viewing the scene */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IsometricUnit } from '../
|
|
2
|
-
import type { ResolvedFrame } from '../
|
|
1
|
+
import type { IsometricUnit } from '../isometricTypes';
|
|
2
|
+
import type { ResolvedFrame } from '../spriteAnimationTypes';
|
|
3
3
|
/**
|
|
4
4
|
* Resolve the sprite-sheet atlas-JSON URL for a unit.
|
|
5
5
|
*
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Game Shared (dimension-agnostic)
|
|
3
|
+
*
|
|
4
|
+
* Render DTO types, pure projection/animation utils, and the shared image cache hook.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
*/
|
|
8
|
+
export type { IsometricTile, IsometricUnit, IsometricFeature, CameraState, } from './isometricTypes';
|
|
9
|
+
export type { AnimationName, FacingDirection, SpriteDirection, ResolvedFrame, UnitAnimationState, SpriteFrameDims, SpriteSheetUrls, AnimationDef, } from './spriteAnimationTypes';
|
|
10
|
+
export { createInitialGameState, calculateValidMoves, calculateAttackTargets, } from './game';
|
|
11
|
+
export type { Position, GameUnit, UnitTrait, BoardTile, GamePhase, GameState, GameAction, } from './game';
|
|
12
|
+
export * from './effects';
|
|
13
|
+
export * from './boardEntity';
|
|
14
|
+
export * from './makeAsset';
|
|
15
|
+
export { useImageCache } from './useImageCache';
|
|
16
|
+
export { isoToScreen, screenToIso, TILE_WIDTH, TILE_HEIGHT, FLOOR_HEIGHT, DIAMOND_TOP_Y, FEATURE_COLORS, } from './isometric';
|
|
17
|
+
export type { TileLayout } from './isometric';
|
|
18
|
+
export { inferDirection, resolveSheetDirection, getCurrentFrame, resolveFrame, createUnitAnimationState, transitionAnimation, tickAnimationState, } from './spriteAnimation';
|
|
19
|
+
export { SPRITE_SHEET_LAYOUT, SHEET_COLUMNS } from './spriteSheetConstants';
|
|
20
|
+
export * from './combatPresets';
|
|
21
|
+
export * from './canvasEffects';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Asset } from '@almadar/core';
|
|
2
|
-
import type { AnimationName } from './
|
|
2
|
+
import type { AnimationName } from './spriteAnimationTypes';
|
|
3
|
+
import type { UnitTrait } from './game';
|
|
3
4
|
/**
|
|
4
5
|
* Isometric Game Types
|
|
5
6
|
*
|
|
@@ -84,12 +85,7 @@ export type IsometricUnit = {
|
|
|
84
85
|
/** Maximum health */
|
|
85
86
|
maxHealth?: number;
|
|
86
87
|
/** Trait attachments for state display */
|
|
87
|
-
traits?:
|
|
88
|
-
name: string;
|
|
89
|
-
currentState: string;
|
|
90
|
-
states: string[];
|
|
91
|
-
cooldown: number;
|
|
92
|
-
}[];
|
|
88
|
+
traits?: UnitTrait[];
|
|
93
89
|
/** Previous position for movement trail ghost */
|
|
94
90
|
previousPosition?: {
|
|
95
91
|
x: number;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* They use native HTML inputs wrapped in Box for lightweight editor UX.
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
|
+
import type { Asset } from '@almadar/core';
|
|
11
12
|
export type EditorMode = 'select' | 'paint' | 'unit' | 'feature' | 'erase';
|
|
12
13
|
export declare const TERRAIN_COLORS: Record<string, string>;
|
|
13
14
|
export declare const FEATURE_TYPES: readonly ["goldMine", "resonanceCrystal", "traitCache", "salvageYard", "portal", "battleMarker", "treasure", "castle"];
|
|
@@ -16,9 +17,13 @@ export interface CollapsibleSectionProps {
|
|
|
16
17
|
expanded: boolean;
|
|
17
18
|
onToggle: () => void;
|
|
18
19
|
children: React.ReactNode;
|
|
20
|
+
/** Optional per-semantic-key asset overrides for icons (expand/collapse). */
|
|
21
|
+
assetManifest?: {
|
|
22
|
+
ui?: Record<string, Asset>;
|
|
23
|
+
};
|
|
19
24
|
className?: string;
|
|
20
25
|
}
|
|
21
|
-
export declare function CollapsibleSection({ title, expanded, onToggle, children, className }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function CollapsibleSection({ title, expanded, onToggle, children, assetManifest, className }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
27
|
export declare namespace CollapsibleSection {
|
|
23
28
|
var displayName: string;
|
|
24
29
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset, EntityRow } from '@almadar/core';
|
|
13
|
-
import type { IsometricTile, IsometricFeature } from '../
|
|
13
|
+
import type { IsometricTile, IsometricFeature } from '../isometricTypes';
|
|
14
14
|
/** GLB model assets for a 3D board, keyed by terrain "kind" and (optionally) feature type. */
|
|
15
15
|
export interface Game3DAssetManifest {
|
|
16
16
|
/** Floor model assets by terrain kind ('wall' | 'dirt' | 'open'). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { PhysicsPreset, PhysicsBody, PhysicsConstraint } from './
|
|
1
|
+
export type { PhysicsPreset, PhysicsBody, PhysicsConstraint } from './physicsTypes';
|
|
2
2
|
export { projectileMotion, pendulum, springOscillator } from './mechanics';
|
|
3
|
-
import type { PhysicsPreset } from './
|
|
3
|
+
import type { PhysicsPreset } from './physicsTypes';
|
|
4
4
|
export declare const ALL_PRESETS: PhysicsPreset[];
|
package/dist/components/game/{organisms/puzzles/event-handler → shared/lib}/puzzleObject.d.ts
RENAMED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
*/
|
|
11
11
|
import type { EntityWith } from '@almadar/core';
|
|
12
|
-
import type { RuleDefinition, RuleOption } from '
|
|
12
|
+
import type { RuleDefinition, RuleOption } from '../../2d/organisms/RuleEditor';
|
|
13
13
|
type PuzzleObjectRow = EntityWith<{
|
|
14
14
|
name?: string;
|
|
15
15
|
icon?: string;
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
* The provider also exposes `muted`/`setMuted` and `masterVolume`/
|
|
12
12
|
* `setMasterVolume` via the `GameAudioContext` for toggle buttons.
|
|
13
13
|
*
|
|
14
|
-
* Closed-circuit props (`className`, `isLoading`, `error
|
|
14
|
+
* Closed-circuit props (`className`, `isLoading`, `error`) are
|
|
15
15
|
* accepted but intentionally unused — the provider renders only its children.
|
|
16
16
|
*
|
|
17
17
|
* @packageDocumentation
|
|
18
18
|
*/
|
|
19
19
|
import React from 'react';
|
|
20
|
-
import { type AudioManifest, type GameAudioControls } from '
|
|
21
|
-
import type { UiError } from '
|
|
20
|
+
import { type AudioManifest, type GameAudioControls } from '../hooks/useGameAudio';
|
|
21
|
+
import type { UiError } from '../../../core/atoms/types';
|
|
22
22
|
export type GameAudioContextValue = Pick<GameAudioControls, 'muted' | 'setMuted' | 'masterVolume' | 'setMasterVolume' | 'play' | 'playMusic' | 'stopMusic'>;
|
|
23
23
|
export declare const GameAudioContext: React.Context<GameAudioContextValue | null>;
|
|
24
24
|
/**
|
|
@@ -45,7 +45,6 @@ export interface GameAudioProviderProps {
|
|
|
45
45
|
className?: string;
|
|
46
46
|
isLoading?: boolean;
|
|
47
47
|
error?: UiError | null;
|
|
48
|
-
entity?: string;
|
|
49
48
|
}
|
|
50
49
|
export declare function GameAudioProvider({ manifest, baseUrl, children, initialMuted, }: GameAudioProviderProps): React.JSX.Element;
|
|
51
50
|
export declare namespace GameAudioProvider {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
|
-
import type { AnimationDef, AnimationName, FacingDirection, SpriteDirection, ResolvedFrame, UnitAnimationState, SpriteFrameDims, SpriteSheetUrls } from '
|
|
10
|
+
import type { AnimationDef, AnimationName, FacingDirection, SpriteDirection, ResolvedFrame, UnitAnimationState, SpriteFrameDims, SpriteSheetUrls } from './spriteAnimationTypes';
|
|
11
11
|
/**
|
|
12
12
|
* Infer facing direction from a movement delta on the isometric grid.
|
|
13
13
|
* dx/dy are tile coordinate deltas (not screen pixels).
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
|
-
import type { AnimationDef, AnimationName } from '
|
|
9
|
+
import type { AnimationDef, AnimationName } from './spriteAnimationTypes';
|
|
10
10
|
/** Number of columns in a sprite sheet (frames per row) */
|
|
11
11
|
export declare const SHEET_COLUMNS = 8;
|
|
12
12
|
/**
|