@almadar/ui 5.103.0 → 5.105.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 +168 -88
- package/dist/avl/index.css +3 -3
- package/dist/avl/index.js +168 -88
- package/dist/components/core/atoms/AtlasImage.d.ts +2 -2
- package/dist/components/core/atoms/FlipContainer.d.ts +1 -1
- package/dist/components/core/molecules/Card.d.ts +1 -1
- package/dist/components/core/molecules/Chart.d.ts +3 -3
- 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/DocPagination.d.ts +8 -1
- package/dist/components/core/molecules/DocSearch.d.ts +8 -1
- package/dist/components/core/molecules/FlipCard.d.ts +1 -1
- package/dist/components/core/molecules/LineChart.d.ts +3 -1
- package/dist/components/core/molecules/MapView.d.ts +18 -1
- package/dist/components/core/molecules/SortableList.d.ts +1 -1
- package/dist/components/core/molecules/TableView.d.ts +1 -1
- package/dist/components/core/organisms/DataTable.d.ts +7 -3
- package/dist/components/core/organisms/debug/RuntimeDebugger.d.ts +10 -1
- package/dist/components/core/organisms/debug/tabs/EntitiesTab.d.ts +2 -1
- package/dist/components/core/organisms/debug/tabs/EventDispatcherTab.d.ts +2 -1
- package/dist/components/core/organisms/debug/tabs/EventFlowTab.d.ts +6 -1
- package/dist/components/core/organisms/debug/tabs/GuardsPanel.d.ts +6 -1
- package/dist/components/core/organisms/debug/tabs/ServerBridgeTab.d.ts +12 -1
- package/dist/components/core/organisms/debug/tabs/TicksTab.d.ts +2 -1
- package/dist/components/core/organisms/debug/tabs/TraitsTab.d.ts +2 -1
- package/dist/components/core/organisms/debug/tabs/TransitionTimeline.d.ts +11 -1
- package/dist/components/core/organisms/debug/tabs/VerificationTab.d.ts +8 -1
- package/dist/components/game/2d/atoms/ActionButton.d.ts +2 -1
- package/dist/components/game/2d/atoms/ChoiceButton.d.ts +2 -1
- package/dist/components/game/2d/atoms/ComboCounter.d.ts +2 -1
- package/dist/components/game/2d/atoms/ControlButton.d.ts +2 -1
- package/dist/components/game/2d/atoms/DamageNumber.d.ts +2 -1
- package/dist/components/game/2d/atoms/DialogueBubble.d.ts +2 -1
- package/dist/components/game/2d/atoms/GameIcon.d.ts +2 -1
- package/dist/components/game/2d/atoms/HealthBar.d.ts +2 -1
- package/dist/components/game/2d/atoms/ItemSlot.d.ts +2 -1
- package/dist/components/game/2d/atoms/MiniMap.d.ts +2 -1
- package/dist/components/game/2d/atoms/ResourceCounter.d.ts +2 -1
- package/dist/components/game/2d/atoms/ScoreDisplay.d.ts +2 -1
- package/dist/components/game/2d/atoms/StatusEffect.d.ts +2 -1
- package/dist/components/game/2d/atoms/TimerDisplay.d.ts +2 -1
- package/dist/components/game/2d/atoms/TurnIndicator.d.ts +2 -1
- package/dist/components/game/2d/atoms/WaypointMarker.d.ts +2 -1
- package/dist/components/game/2d/molecules/Canvas2D.d.ts +6 -5
- package/dist/components/game/2d/molecules/GameHud.d.ts +2 -1
- package/dist/components/game/2d/molecules/GameMenu.d.ts +2 -1
- package/dist/components/game/2d/molecules/InventoryGrid.d.ts +2 -1
- package/dist/components/game/2d/molecules/ResourceBar.d.ts +2 -1
- package/dist/components/game/2d/molecules/SideCanvas2D.d.ts +36 -0
- package/dist/components/game/2d/molecules/StatBadge.d.ts +2 -1
- package/dist/components/game/3d/atoms/EventMarker3D.d.ts +17 -0
- package/dist/components/game/3d/atoms/SpriteBillboard3D.d.ts +18 -0
- package/dist/components/game/3d/index.cjs +539 -496
- package/dist/components/game/3d/index.js +367 -324
- package/dist/components/game/3d/molecules/FeatureMesh3D.d.ts +21 -0
- package/dist/components/game/3d/molecules/GameCamera3D.d.ts +35 -0
- package/dist/components/game/3d/molecules/Lighting3D.d.ts +10 -2
- package/dist/components/game/3d/molecules/SideScene3D.d.ts +31 -0
- package/dist/components/game/3d/molecules/TileMesh3D.d.ts +28 -0
- package/dist/components/game/3d/molecules/UnitMesh3D.d.ts +29 -0
- package/dist/components/game/shared/game3dTheme.d.ts +55 -0
- package/dist/components/game/shared/isometric.d.ts +38 -0
- package/dist/components/game/shared/isometricTypes.d.ts +4 -0
- package/dist/components/game/shared/lib/editorUtils.d.ts +8 -8
- package/dist/components/index.cjs +156 -83
- package/dist/components/index.css +3 -3
- package/dist/components/index.js +160 -87
- package/dist/hooks/useGitHub.d.ts +7 -7
- package/dist/marketing/index.cjs +2 -2
- package/dist/marketing/index.js +2 -2
- package/dist/providers/EventBusProvider.d.ts +1 -1
- package/dist/providers/SelectionProvider.d.ts +1 -1
- package/dist/providers/ServerBridge.d.ts +1 -1
- package/dist/providers/index.cjs +164 -84
- package/dist/providers/index.css +3 -3
- package/dist/providers/index.js +164 -84
- package/dist/runtime/index.cjs +164 -84
- package/dist/runtime/index.css +3 -3
- package/dist/runtime/index.js +164 -84
- package/package.json +10 -15
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import type { EventKey, EventPayload, Asset } from "@almadar/core";
|
|
2
3
|
export type MenuOption = EventPayload & {
|
|
3
4
|
/** Optional ID (generated from index if not provided) */
|
|
@@ -35,7 +36,7 @@ export interface GameMenuProps {
|
|
|
35
36
|
/** Additional CSS classes */
|
|
36
37
|
className?: string;
|
|
37
38
|
}
|
|
38
|
-
export declare function GameMenu({ title, subtitle, options, menuItems, onSelect, background, logo, className, }: GameMenuProps):
|
|
39
|
+
export declare function GameMenu({ title, subtitle, options, menuItems, onSelect, background, logo, className, }: GameMenuProps): React.JSX.Element;
|
|
39
40
|
export declare namespace GameMenu {
|
|
40
41
|
var displayName: string;
|
|
41
42
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { EventEmit, Asset } from '@almadar/core';
|
|
2
3
|
import type { IconInput } from '../../../core/atoms/index';
|
|
3
4
|
export interface InventoryGridItem {
|
|
@@ -28,7 +29,7 @@ export interface InventoryGridProps {
|
|
|
28
29
|
/** Additional CSS classes */
|
|
29
30
|
className?: string;
|
|
30
31
|
}
|
|
31
|
-
export declare function InventoryGrid({ items, columns, totalSlots, selectedId, onSelect, selectEvent, size, className, }: InventoryGridProps):
|
|
32
|
+
export declare function InventoryGrid({ items, columns, totalSlots, selectedId, onSelect, selectEvent, size, className, }: InventoryGridProps): React.JSX.Element;
|
|
32
33
|
export declare namespace InventoryGrid {
|
|
33
34
|
var displayName: string;
|
|
34
35
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { Asset } from '@almadar/core';
|
|
2
3
|
import type { IconInput } from '../../../core/atoms/index';
|
|
3
4
|
export interface ResourceBarResource {
|
|
@@ -19,7 +20,7 @@ export interface ResourceBarProps {
|
|
|
19
20
|
/** Additional CSS classes */
|
|
20
21
|
className?: string;
|
|
21
22
|
}
|
|
22
|
-
export declare function ResourceBar({ resources, size, className, }: ResourceBarProps):
|
|
23
|
+
export declare function ResourceBar({ resources, size, className, }: ResourceBarProps): React.JSX.Element;
|
|
23
24
|
export declare namespace ResourceBar {
|
|
24
25
|
var displayName: string;
|
|
25
26
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SideCanvas2D
|
|
3
|
+
*
|
|
4
|
+
* Side-view platformer renderer — extracted from Canvas2D's private `SideView` branch.
|
|
5
|
+
* Physics is NOT here (it lives in the LOLO model); this only interpolates+draws the
|
|
6
|
+
* authoritative `player`/`platforms` props and translates keyboard input into the
|
|
7
|
+
* board's semantic events via keyMap/keyUpMap.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
import type { Asset, AssetUrl } from '@almadar/core';
|
|
13
|
+
import type { ActiveEffect } from '../../shared/isometricTypes';
|
|
14
|
+
import type { Platform, SidePlayer } from './Canvas2D';
|
|
15
|
+
export interface SideCanvas2DProps {
|
|
16
|
+
player?: SidePlayer;
|
|
17
|
+
platforms: Platform[];
|
|
18
|
+
worldWidth: number;
|
|
19
|
+
worldHeight: number;
|
|
20
|
+
canvasWidth: number;
|
|
21
|
+
canvasHeight: number;
|
|
22
|
+
follow: boolean;
|
|
23
|
+
bgColor: string;
|
|
24
|
+
backgroundImage?: AssetUrl | Asset;
|
|
25
|
+
playerSprite?: Asset;
|
|
26
|
+
tileSprites?: Record<string, Asset>;
|
|
27
|
+
effects: ActiveEffect[];
|
|
28
|
+
keyMap?: Record<string, string>;
|
|
29
|
+
keyUpMap?: Record<string, string>;
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function SideCanvas2D({ player, platforms, worldWidth, worldHeight, canvasWidth, canvasHeight, follow, bgColor, backgroundImage: backgroundImageRaw, playerSprite, tileSprites, effects, keyMap, keyUpMap, className, }: SideCanvas2DProps): React.JSX.Element;
|
|
33
|
+
export declare namespace SideCanvas2D {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
36
|
+
export default SideCanvas2D;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { type IconInput } from '../../../core/atoms/Icon';
|
|
2
3
|
import type { Asset } from '@almadar/core';
|
|
3
4
|
/**
|
|
@@ -32,7 +33,7 @@ export interface StatBadgeProps {
|
|
|
32
33
|
/** Additional CSS classes */
|
|
33
34
|
className?: string;
|
|
34
35
|
}
|
|
35
|
-
export declare function StatBadge({ assetUrl, iconUrl, label, value, max, format, icon, size, variant, className, source: _source, field: _field, }: StatBadgeProps):
|
|
36
|
+
export declare function StatBadge({ assetUrl, iconUrl, label, value, max, format, icon, size, variant, className, source: _source, field: _field, }: StatBadgeProps): React.JSX.Element;
|
|
36
37
|
export declare namespace StatBadge {
|
|
37
38
|
var displayName: string;
|
|
38
39
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventMarker3D
|
|
3
|
+
*
|
|
4
|
+
* Floating combat/feedback marker for one `GameEvent` — billboarded text above
|
|
5
|
+
* the cell. Lifetime is LOLO-owned: boards append events on actions and expire
|
|
6
|
+
* them in their tick (same contract as the 2D effects array).
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import type { GameEvent } from '../molecules/GameCanvas3D';
|
|
12
|
+
export interface EventMarker3DProps {
|
|
13
|
+
event: GameEvent;
|
|
14
|
+
position: [number, number, number];
|
|
15
|
+
}
|
|
16
|
+
export declare function EventMarker3D({ event, position }: EventMarker3DProps): React.JSX.Element;
|
|
17
|
+
export default EventMarker3D;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SpriteBillboard3D
|
|
3
|
+
*
|
|
4
|
+
* Billboarded sprite-sheet plane for a unit. Loads the atlas's PNG sheet as a
|
|
5
|
+
* texture and crops a SINGLE frame via UV `repeat`/`offset`, advancing per
|
|
6
|
+
* animation state. Mirrors the 2D canvas: one frame, never the whole sheet.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import type { ResolvedFrame } from '../../shared/spriteAnimationTypes';
|
|
12
|
+
export interface SpriteBillboard3DProps {
|
|
13
|
+
sheetUrl: string;
|
|
14
|
+
resolveFrame: () => ResolvedFrame | null;
|
|
15
|
+
height?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function SpriteBillboard3D({ sheetUrl, resolveFrame, height, }: SpriteBillboard3DProps): React.JSX.Element | null;
|
|
18
|
+
export default SpriteBillboard3D;
|