@almadar/ui 2.13.3 → 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-UNDQO6DL.js → chunk-4KP6IZEQ.js} +3 -3
- package/dist/chunk-4N3BAPDB.js +1667 -0
- package/dist/{chunk-PERGHHON.js → chunk-IRIGCHP4.js} +2 -12
- package/dist/{chunk-Y7IHEYYE.js → chunk-QU2X55WH.js} +11 -1
- package/dist/{chunk-4ZBSL37D.js → chunk-XL7WB2O5.js} +415 -58
- package/dist/{chunk-MSLMORZK.js → chunk-YPY74G7F.js} +13434 -2264
- 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.css +508 -0
- package/dist/components/index.d.ts +6 -9788
- package/dist/components/index.js +769 -11187
- 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 +18 -1228
- package/dist/components/organisms/game/three/index.js +49 -1709
- 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/{isometric-ynNHVPZx.d.ts → components/organisms/game/types/isometric.d.ts} +4 -6
- 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/{ThemeContext-D9xUORq5.d.ts → context/ThemeContext.d.ts} +15 -16
- package/dist/context/UISlotContext.d.ts +75 -0
- package/dist/context/UserContext.d.ts +111 -0
- package/dist/context/index.d.ts +6 -206
- package/dist/{event-bus-types-CjJduURa.d.ts → hooks/event-bus-types.d.ts} +4 -6
- package/dist/hooks/index.d.ts +30 -1220
- package/dist/hooks/index.js +2 -2
- 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/{useUISlots-BBjNvQtb.d.ts → hooks/useUISlots.d.ts} +8 -9
- 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 +17 -319
- package/dist/lib/index.js +1 -3
- 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 +5 -7
- 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.css +599 -0
- package/dist/providers/index.d.ts +16 -464
- package/dist/providers/index.js +5 -4
- 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 +22 -519
- package/dist/renderer/init.d.ts +14 -0
- package/dist/renderer/navigation.d.ts +142 -0
- package/dist/{offline-executor-CHr4uAhf.d.ts → renderer/offline-executor.d.ts} +9 -172
- 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.css +599 -0
- package/dist/runtime/index.d.ts +10 -275
- package/dist/runtime/index.js +6 -6
- 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 +4 -148
- package/dist/tsup.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +5 -4
- package/dist/chunk-42YQ6JVR.js +0 -48
- package/dist/chunk-WCTZ7WZX.js +0 -311
- package/dist/cn-C_ATNPvi.d.ts +0 -332
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design System Generator Types
|
|
3
|
+
*
|
|
4
|
+
* Input configuration for generating a customized design system
|
|
5
|
+
* that gets output to a project folder.
|
|
6
|
+
*/
|
|
7
|
+
export interface DesignSystemConfig {
|
|
8
|
+
/** Project/client name (e.g., "winning-11") */
|
|
9
|
+
projectName: string;
|
|
10
|
+
/** Output directory for the generated design system */
|
|
11
|
+
outputDir: string;
|
|
12
|
+
/** Theme configuration */
|
|
13
|
+
theme: ThemeConfig;
|
|
14
|
+
/** Custom components not in the standard library */
|
|
15
|
+
customComponents?: CustomComponentConfig[];
|
|
16
|
+
/** Which standard components to include (default: all) */
|
|
17
|
+
includeComponents?: ComponentFilter;
|
|
18
|
+
/** Storybook configuration */
|
|
19
|
+
storybook?: StorybookConfig;
|
|
20
|
+
}
|
|
21
|
+
export interface ThemeConfig {
|
|
22
|
+
/** Theme name (used in data-design-theme attribute) */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Theme display name for documentation */
|
|
25
|
+
displayName?: string;
|
|
26
|
+
/** Design metaphor/style description */
|
|
27
|
+
metaphor?: string;
|
|
28
|
+
/** Color palette */
|
|
29
|
+
colors: {
|
|
30
|
+
primary: string;
|
|
31
|
+
primaryHover?: string;
|
|
32
|
+
primaryForeground?: string;
|
|
33
|
+
secondary: string;
|
|
34
|
+
secondaryHover?: string;
|
|
35
|
+
secondaryForeground?: string;
|
|
36
|
+
accent: string;
|
|
37
|
+
accentForeground?: string;
|
|
38
|
+
muted: string;
|
|
39
|
+
mutedForeground?: string;
|
|
40
|
+
background: string;
|
|
41
|
+
foreground: string;
|
|
42
|
+
card?: string;
|
|
43
|
+
cardForeground?: string;
|
|
44
|
+
border: string;
|
|
45
|
+
input?: string;
|
|
46
|
+
ring?: string;
|
|
47
|
+
/** Semantic colors */
|
|
48
|
+
success?: string;
|
|
49
|
+
warning?: string;
|
|
50
|
+
error?: string;
|
|
51
|
+
info?: string;
|
|
52
|
+
/** Custom domain-specific colors */
|
|
53
|
+
custom?: Record<string, string>;
|
|
54
|
+
};
|
|
55
|
+
/** Shadow style preset or custom shadows */
|
|
56
|
+
shadows?: 'soft-organic' | 'minimal' | 'corporate' | 'playful' | 'dramatic' | 'soft' | ShadowConfig;
|
|
57
|
+
/** Border radius preset or custom radii */
|
|
58
|
+
radius?: 'organic' | 'gentle' | 'sharp' | 'rounded' | 'friendly' | RadiusConfig;
|
|
59
|
+
/** Typography overrides */
|
|
60
|
+
typography?: {
|
|
61
|
+
fontFamily?: string;
|
|
62
|
+
fontWeightNormal?: number;
|
|
63
|
+
fontWeightMedium?: number;
|
|
64
|
+
fontWeightBold?: number;
|
|
65
|
+
};
|
|
66
|
+
/** Dark mode variant */
|
|
67
|
+
darkMode?: Partial<ThemeConfig['colors']>;
|
|
68
|
+
}
|
|
69
|
+
export interface ShadowConfig {
|
|
70
|
+
main: string;
|
|
71
|
+
sm: string;
|
|
72
|
+
lg: string;
|
|
73
|
+
hover: string;
|
|
74
|
+
inner?: string;
|
|
75
|
+
active?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface RadiusConfig {
|
|
78
|
+
sm: string;
|
|
79
|
+
md: string;
|
|
80
|
+
lg: string;
|
|
81
|
+
xl: string;
|
|
82
|
+
}
|
|
83
|
+
export interface CustomComponentConfig {
|
|
84
|
+
/** Component name (PascalCase) */
|
|
85
|
+
name: string;
|
|
86
|
+
/** Component description */
|
|
87
|
+
description: string;
|
|
88
|
+
/** Category in the component library */
|
|
89
|
+
category: 'atoms' | 'molecules' | 'organisms' | 'templates';
|
|
90
|
+
/** Component props */
|
|
91
|
+
props: ComponentProp[];
|
|
92
|
+
/** Why this component is needed */
|
|
93
|
+
reasoning?: string;
|
|
94
|
+
/** Priority for implementation */
|
|
95
|
+
priority?: 'high' | 'medium' | 'low';
|
|
96
|
+
/** Optional implementation code */
|
|
97
|
+
implementation?: string;
|
|
98
|
+
/** Optional Storybook stories */
|
|
99
|
+
stories?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ComponentProp {
|
|
102
|
+
name: string;
|
|
103
|
+
type: string;
|
|
104
|
+
description: string;
|
|
105
|
+
required?: boolean;
|
|
106
|
+
defaultValue?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface ComponentFilter {
|
|
109
|
+
/** Include all components (default: true) */
|
|
110
|
+
all?: boolean;
|
|
111
|
+
/** Specific categories to include */
|
|
112
|
+
categories?: ('atoms' | 'molecules' | 'organisms' | 'templates')[];
|
|
113
|
+
/** Specific components to include (by name) */
|
|
114
|
+
include?: string[];
|
|
115
|
+
/** Specific components to exclude (by name) */
|
|
116
|
+
exclude?: string[];
|
|
117
|
+
}
|
|
118
|
+
export interface StorybookConfig {
|
|
119
|
+
/** Build Storybook (default: true) */
|
|
120
|
+
build?: boolean;
|
|
121
|
+
/** Include Storybook source in output (default: true) */
|
|
122
|
+
includeSource?: boolean;
|
|
123
|
+
/** Custom Storybook title */
|
|
124
|
+
title?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Example configuration for Winning-11 (Garden theme)
|
|
128
|
+
*/
|
|
129
|
+
export declare const WINNING_11_CONFIG: DesignSystemConfig;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entity Store
|
|
3
|
+
*
|
|
4
|
+
* Simple module-level store for runtime entities.
|
|
5
|
+
* No providers needed - hooks import and use directly.
|
|
6
|
+
*
|
|
7
|
+
* NOTE: Mutations create new Map instances to trigger React rerenders
|
|
8
|
+
* when using useSyncExternalStore.
|
|
9
|
+
*/
|
|
10
|
+
import { type EntityFilterValue, type FilterOperator, type EntityFilters, applyFilters, createFilter } from './filtering';
|
|
11
|
+
export type { EntityFilterValue, FilterOperator, EntityFilters };
|
|
12
|
+
export { applyFilters, createFilter };
|
|
13
|
+
export interface Entity {
|
|
14
|
+
id: string;
|
|
15
|
+
type: string;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
type Listener = () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Subscribe to store changes
|
|
21
|
+
*/
|
|
22
|
+
export declare function subscribe(listener: Listener): () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Get all entities
|
|
25
|
+
*/
|
|
26
|
+
export declare function getEntities(): Map<string, Entity>;
|
|
27
|
+
/**
|
|
28
|
+
* Get entity by ID
|
|
29
|
+
*/
|
|
30
|
+
export declare function getEntity(id: string): Entity | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Get entities by type
|
|
33
|
+
*/
|
|
34
|
+
export declare function getByType(type: string | string[]): Entity[];
|
|
35
|
+
/**
|
|
36
|
+
* Get all entities as array
|
|
37
|
+
*/
|
|
38
|
+
export declare function getAllEntities(): Entity[];
|
|
39
|
+
/**
|
|
40
|
+
* Get singleton entity by type (first of that type)
|
|
41
|
+
*/
|
|
42
|
+
export declare function getSingleton(type: string): Entity | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Spawn a new entity
|
|
45
|
+
*/
|
|
46
|
+
export declare function spawnEntity(config: {
|
|
47
|
+
type: string;
|
|
48
|
+
id?: string;
|
|
49
|
+
[key: string]: unknown;
|
|
50
|
+
}): string;
|
|
51
|
+
/**
|
|
52
|
+
* Update an entity
|
|
53
|
+
*/
|
|
54
|
+
export declare function updateEntity(id: string, updates: Partial<Entity>): void;
|
|
55
|
+
/**
|
|
56
|
+
* Update singleton entity by type
|
|
57
|
+
*/
|
|
58
|
+
export declare function updateSingleton(type: string, updates: Partial<Entity>): void;
|
|
59
|
+
/**
|
|
60
|
+
* Remove an entity
|
|
61
|
+
*/
|
|
62
|
+
export declare function removeEntity(id: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* Clear all entities
|
|
65
|
+
*/
|
|
66
|
+
export declare function clearEntities(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Set a filter for an entity type
|
|
69
|
+
* @param entityType - The entity type to filter (e.g., "Player", "Enemy")
|
|
70
|
+
* @param field - The filter key (e.g., 'status' or 'date_from')
|
|
71
|
+
* @param value - The filter value
|
|
72
|
+
* @param operator - The comparison operator
|
|
73
|
+
* @param targetField - The actual record field to compare (defaults to field)
|
|
74
|
+
*/
|
|
75
|
+
export declare function setFilter(entityType: string, field: string, value: unknown, operator?: FilterOperator, targetField?: string): void;
|
|
76
|
+
/**
|
|
77
|
+
* Clear a specific filter
|
|
78
|
+
*/
|
|
79
|
+
export declare function clearFilter(entityType: string, field: string): void;
|
|
80
|
+
/**
|
|
81
|
+
* Clear all filters for an entity type
|
|
82
|
+
*/
|
|
83
|
+
export declare function clearAllFilters(entityType: string): void;
|
|
84
|
+
/**
|
|
85
|
+
* Get active filters for an entity type
|
|
86
|
+
*/
|
|
87
|
+
export declare function getFilters(entityType: string): EntityFilters;
|
|
88
|
+
/**
|
|
89
|
+
* Get entities by type with optional filtering
|
|
90
|
+
*/
|
|
91
|
+
export declare function getByTypeFiltered(type: string | string[]): Entity[];
|
|
92
|
+
/**
|
|
93
|
+
* Get snapshot for React useSyncExternalStore
|
|
94
|
+
*/
|
|
95
|
+
export declare function getSnapshot(): Map<string, Entity>;
|
|
96
|
+
/**
|
|
97
|
+
* Get filter snapshot for React useSyncExternalStore
|
|
98
|
+
*/
|
|
99
|
+
export declare function getFilterSnapshot(): Map<string, EntityFilters>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entity Filtering Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides filter types and utility functions for filtering entity records.
|
|
5
|
+
* Used by EntityStore and can be imported by runtime preview.
|
|
6
|
+
*/
|
|
7
|
+
/** Filter value for a single field (entity filtering) */
|
|
8
|
+
export interface EntityFilterValue {
|
|
9
|
+
/** The field key (may include suffix like _from, _to for date ranges) */
|
|
10
|
+
field: string;
|
|
11
|
+
/** The actual record field to compare against (defaults to field if not specified) */
|
|
12
|
+
targetField?: string;
|
|
13
|
+
value: unknown;
|
|
14
|
+
/** Comparison operator for filtering
|
|
15
|
+
* - eq: exact match (default)
|
|
16
|
+
* - contains: substring match for strings
|
|
17
|
+
* - in: value is in array
|
|
18
|
+
* - date_eq: same date (ignoring time)
|
|
19
|
+
* - date_gte: on or after date
|
|
20
|
+
* - date_lte: on or before date
|
|
21
|
+
*/
|
|
22
|
+
operator?: FilterOperator;
|
|
23
|
+
}
|
|
24
|
+
/** Operator type for filter */
|
|
25
|
+
export type FilterOperator = 'eq' | 'contains' | 'in' | 'date_eq' | 'date_gte' | 'date_lte' | 'search';
|
|
26
|
+
/** Filter state for an entity - Map of field key to filter value */
|
|
27
|
+
export type EntityFilters = Map<string, EntityFilterValue>;
|
|
28
|
+
/** Record type that can be filtered */
|
|
29
|
+
export interface FilterableRecord {
|
|
30
|
+
id: string;
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Extract date part from ISO string or Date object.
|
|
35
|
+
* Returns format: "YYYY-MM-DD"
|
|
36
|
+
*/
|
|
37
|
+
export declare function getDateString(value: unknown): string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Apply a single filter to check if a record matches.
|
|
40
|
+
* Returns true if the record passes the filter.
|
|
41
|
+
*/
|
|
42
|
+
export declare function matchesFilter(record: FilterableRecord, filter: EntityFilterValue): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Apply all filters to a list of records.
|
|
45
|
+
* Returns only records that match ALL filters.
|
|
46
|
+
*/
|
|
47
|
+
export declare function applyFilters<T extends FilterableRecord>(records: T[], entityFilters: EntityFilters): T[];
|
|
48
|
+
/**
|
|
49
|
+
* Create a filter value with proper defaults.
|
|
50
|
+
*/
|
|
51
|
+
export declare function createFilter(field: string, value: unknown, operator?: FilterOperator, targetField?: string): EntityFilterValue;
|
package/dist/stores/index.d.ts
CHANGED
|
@@ -1,151 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Stores
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* Used by EntityStore and can be imported by runtime preview.
|
|
4
|
+
* Module-level state management for entities and filtering.
|
|
6
5
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** The field key (may include suffix like _from, _to for date ranges) */
|
|
10
|
-
field: string;
|
|
11
|
-
/** The actual record field to compare against (defaults to field if not specified) */
|
|
12
|
-
targetField?: string;
|
|
13
|
-
value: unknown;
|
|
14
|
-
/** Comparison operator for filtering
|
|
15
|
-
* - eq: exact match (default)
|
|
16
|
-
* - contains: substring match for strings
|
|
17
|
-
* - in: value is in array
|
|
18
|
-
* - date_eq: same date (ignoring time)
|
|
19
|
-
* - date_gte: on or after date
|
|
20
|
-
* - date_lte: on or before date
|
|
21
|
-
*/
|
|
22
|
-
operator?: FilterOperator;
|
|
23
|
-
}
|
|
24
|
-
/** Operator type for filter */
|
|
25
|
-
type FilterOperator = 'eq' | 'contains' | 'in' | 'date_eq' | 'date_gte' | 'date_lte' | 'search';
|
|
26
|
-
/** Filter state for an entity - Map of field key to filter value */
|
|
27
|
-
type EntityFilters = Map<string, EntityFilterValue>;
|
|
28
|
-
/** Record type that can be filtered */
|
|
29
|
-
interface FilterableRecord {
|
|
30
|
-
id: string;
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Extract date part from ISO string or Date object.
|
|
35
|
-
* Returns format: "YYYY-MM-DD"
|
|
36
|
-
*/
|
|
37
|
-
declare function getDateString(value: unknown): string | null;
|
|
38
|
-
/**
|
|
39
|
-
* Apply a single filter to check if a record matches.
|
|
40
|
-
* Returns true if the record passes the filter.
|
|
41
|
-
*/
|
|
42
|
-
declare function matchesFilter(record: FilterableRecord, filter: EntityFilterValue): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Apply all filters to a list of records.
|
|
45
|
-
* Returns only records that match ALL filters.
|
|
46
|
-
*/
|
|
47
|
-
declare function applyFilters<T extends FilterableRecord>(records: T[], entityFilters: EntityFilters): T[];
|
|
48
|
-
/**
|
|
49
|
-
* Create a filter value with proper defaults.
|
|
50
|
-
*/
|
|
51
|
-
declare function createFilter(field: string, value: unknown, operator?: FilterOperator, targetField?: string): EntityFilterValue;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Entity Store
|
|
55
|
-
*
|
|
56
|
-
* Simple module-level store for runtime entities.
|
|
57
|
-
* No providers needed - hooks import and use directly.
|
|
58
|
-
*
|
|
59
|
-
* NOTE: Mutations create new Map instances to trigger React rerenders
|
|
60
|
-
* when using useSyncExternalStore.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
interface Entity {
|
|
64
|
-
id: string;
|
|
65
|
-
type: string;
|
|
66
|
-
[key: string]: unknown;
|
|
67
|
-
}
|
|
68
|
-
type Listener = () => void;
|
|
69
|
-
/**
|
|
70
|
-
* Subscribe to store changes
|
|
71
|
-
*/
|
|
72
|
-
declare function subscribe(listener: Listener): () => void;
|
|
73
|
-
/**
|
|
74
|
-
* Get all entities
|
|
75
|
-
*/
|
|
76
|
-
declare function getEntities(): Map<string, Entity>;
|
|
77
|
-
/**
|
|
78
|
-
* Get entity by ID
|
|
79
|
-
*/
|
|
80
|
-
declare function getEntity(id: string): Entity | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Get entities by type
|
|
83
|
-
*/
|
|
84
|
-
declare function getByType(type: string | string[]): Entity[];
|
|
85
|
-
/**
|
|
86
|
-
* Get all entities as array
|
|
87
|
-
*/
|
|
88
|
-
declare function getAllEntities(): Entity[];
|
|
89
|
-
/**
|
|
90
|
-
* Get singleton entity by type (first of that type)
|
|
91
|
-
*/
|
|
92
|
-
declare function getSingleton(type: string): Entity | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* Spawn a new entity
|
|
95
|
-
*/
|
|
96
|
-
declare function spawnEntity(config: {
|
|
97
|
-
type: string;
|
|
98
|
-
id?: string;
|
|
99
|
-
[key: string]: unknown;
|
|
100
|
-
}): string;
|
|
101
|
-
/**
|
|
102
|
-
* Update an entity
|
|
103
|
-
*/
|
|
104
|
-
declare function updateEntity(id: string, updates: Partial<Entity>): void;
|
|
105
|
-
/**
|
|
106
|
-
* Update singleton entity by type
|
|
107
|
-
*/
|
|
108
|
-
declare function updateSingleton(type: string, updates: Partial<Entity>): void;
|
|
109
|
-
/**
|
|
110
|
-
* Remove an entity
|
|
111
|
-
*/
|
|
112
|
-
declare function removeEntity(id: string): void;
|
|
113
|
-
/**
|
|
114
|
-
* Clear all entities
|
|
115
|
-
*/
|
|
116
|
-
declare function clearEntities(): void;
|
|
117
|
-
/**
|
|
118
|
-
* Set a filter for an entity type
|
|
119
|
-
* @param entityType - The entity type to filter (e.g., "Player", "Enemy")
|
|
120
|
-
* @param field - The filter key (e.g., 'status' or 'date_from')
|
|
121
|
-
* @param value - The filter value
|
|
122
|
-
* @param operator - The comparison operator
|
|
123
|
-
* @param targetField - The actual record field to compare (defaults to field)
|
|
124
|
-
*/
|
|
125
|
-
declare function setFilter(entityType: string, field: string, value: unknown, operator?: FilterOperator, targetField?: string): void;
|
|
126
|
-
/**
|
|
127
|
-
* Clear a specific filter
|
|
128
|
-
*/
|
|
129
|
-
declare function clearFilter(entityType: string, field: string): void;
|
|
130
|
-
/**
|
|
131
|
-
* Clear all filters for an entity type
|
|
132
|
-
*/
|
|
133
|
-
declare function clearAllFilters(entityType: string): void;
|
|
134
|
-
/**
|
|
135
|
-
* Get active filters for an entity type
|
|
136
|
-
*/
|
|
137
|
-
declare function getFilters(entityType: string): EntityFilters;
|
|
138
|
-
/**
|
|
139
|
-
* Get entities by type with optional filtering
|
|
140
|
-
*/
|
|
141
|
-
declare function getByTypeFiltered(type: string | string[]): Entity[];
|
|
142
|
-
/**
|
|
143
|
-
* Get snapshot for React useSyncExternalStore
|
|
144
|
-
*/
|
|
145
|
-
declare function getSnapshot(): Map<string, Entity>;
|
|
146
|
-
/**
|
|
147
|
-
* Get filter snapshot for React useSyncExternalStore
|
|
148
|
-
*/
|
|
149
|
-
declare function getFilterSnapshot(): Map<string, EntityFilters>;
|
|
150
|
-
|
|
151
|
-
export { type Entity, type EntityFilterValue, type EntityFilters, type FilterOperator, type FilterableRecord, applyFilters, clearAllFilters, clearEntities, clearFilter, createFilter, getAllEntities, getByType, getByTypeFiltered, getDateString, getEntities, getEntity, getFilterSnapshot, getFilters, getSingleton, getSnapshot, matchesFilter, removeEntity, setFilter, spawnEntity, subscribe, updateEntity, updateSingleton };
|
|
6
|
+
export * from './filtering';
|
|
7
|
+
export * from './entityStore';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"themes"
|
|
83
83
|
],
|
|
84
84
|
"publishConfig": {
|
|
85
|
+
"registry": "https://registry.npmjs.org",
|
|
85
86
|
"access": "public"
|
|
86
87
|
},
|
|
87
88
|
"dependencies": {
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
},
|
|
103
104
|
"peerDependencies": {
|
|
104
105
|
"@react-three/drei": "^9.92.0 || ^10.0.0",
|
|
105
|
-
"@react-three/fiber": "^
|
|
106
|
+
"@react-three/fiber": "^9.0.0",
|
|
106
107
|
"@tanstack/react-query": "^5.0.0",
|
|
107
108
|
"react": ">=18.0.0",
|
|
108
109
|
"react-dom": ">=18.0.0",
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
},
|
|
151
152
|
"repository": {
|
|
152
153
|
"type": "git",
|
|
153
|
-
"url": "https://github.com/almadar-io/almadar.git",
|
|
154
|
+
"url": "https://github.com/almadar-io/almadar-ui.git",
|
|
154
155
|
"directory": "docs/packages/ui"
|
|
155
156
|
},
|
|
156
157
|
"license": "MIT",
|
|
@@ -163,7 +164,7 @@
|
|
|
163
164
|
],
|
|
164
165
|
"homepage": "https://github.com/almadar-io/almadar#readme",
|
|
165
166
|
"scripts": {
|
|
166
|
-
"build": "tsup && tsc
|
|
167
|
+
"build": "tsup && tsc -p tsconfig.build.json",
|
|
167
168
|
"build:watch": "tsup --watch",
|
|
168
169
|
"storybook": "storybook dev -p 6006",
|
|
169
170
|
"build-storybook": "storybook build -o storybook-static",
|
package/dist/chunk-42YQ6JVR.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// lib/traitRegistry.ts
|
|
2
|
-
var traits = /* @__PURE__ */ new Map();
|
|
3
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
4
|
-
function notifyListeners() {
|
|
5
|
-
listeners.forEach((listener) => listener());
|
|
6
|
-
}
|
|
7
|
-
function registerTrait(info) {
|
|
8
|
-
traits.set(info.id, info);
|
|
9
|
-
notifyListeners();
|
|
10
|
-
}
|
|
11
|
-
function updateTraitState(id, newState) {
|
|
12
|
-
const trait = traits.get(id);
|
|
13
|
-
if (trait) {
|
|
14
|
-
trait.currentState = newState;
|
|
15
|
-
trait.transitionCount++;
|
|
16
|
-
notifyListeners();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function updateGuardResult(traitId, guardName, result) {
|
|
20
|
-
const trait = traits.get(traitId);
|
|
21
|
-
if (trait) {
|
|
22
|
-
const guard = trait.guards.find((g) => g.name === guardName);
|
|
23
|
-
if (guard) {
|
|
24
|
-
guard.lastResult = result;
|
|
25
|
-
notifyListeners();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function unregisterTrait(id) {
|
|
30
|
-
traits.delete(id);
|
|
31
|
-
notifyListeners();
|
|
32
|
-
}
|
|
33
|
-
function getAllTraits() {
|
|
34
|
-
return Array.from(traits.values());
|
|
35
|
-
}
|
|
36
|
-
function getTrait(id) {
|
|
37
|
-
return traits.get(id);
|
|
38
|
-
}
|
|
39
|
-
function subscribeToTraitChanges(listener) {
|
|
40
|
-
listeners.add(listener);
|
|
41
|
-
return () => listeners.delete(listener);
|
|
42
|
-
}
|
|
43
|
-
function clearTraits() {
|
|
44
|
-
traits.clear();
|
|
45
|
-
notifyListeners();
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { clearTraits, getAllTraits, getTrait, registerTrait, subscribeToTraitChanges, unregisterTrait, updateGuardResult, updateTraitState };
|