@almadar/ui 5.107.0 → 5.108.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.
Files changed (81) hide show
  1. package/dist/avl/index.cjs +1427 -2828
  2. package/dist/avl/index.js +525 -1926
  3. package/dist/components/{game → core}/atoms/GameIcon.d.ts +1 -1
  4. package/dist/components/core/atoms/index.d.ts +1 -0
  5. package/dist/components/core/templates/index.d.ts +0 -1
  6. package/dist/components/game/molecules/index.d.ts +8 -28
  7. package/dist/components/index.cjs +223 -1691
  8. package/dist/components/index.js +213 -1671
  9. package/dist/lib/drawable/projector.d.ts +1 -1
  10. package/dist/{components/game/three/molecules/GameCanvas3D.d.ts → lib/drawable/three/Canvas3DHost.d.ts} +12 -9
  11. package/dist/lib/drawable/{Drawable3D.d.ts → three/Drawable3D.d.ts} +2 -2
  12. package/dist/lib/drawable/three/GameCamera3D.d.ts +16 -0
  13. package/dist/lib/drawable/three/game3dTheme.d.ts +14 -0
  14. package/dist/{components/game → lib/drawable}/three/hooks/useGameCanvas3DEvents.d.ts +1 -1
  15. package/dist/{components/game → lib/drawable}/three/index.cjs +2019 -2020
  16. package/dist/{components/game → lib/drawable}/three/index.css +3 -3
  17. package/dist/lib/drawable/three/index.d.ts +39 -0
  18. package/dist/{components/game → lib/drawable}/three/index.js +1932 -1934
  19. package/dist/lib/drawable/{mesh3d.d.ts → three/mesh3d.d.ts} +4 -4
  20. package/dist/{components/game/lib → lib}/puzzleObject.d.ts +11 -2
  21. package/dist/{components/game/providers → providers}/GameAudioProvider.d.ts +1 -1
  22. package/dist/providers/index.cjs +1619 -2690
  23. package/dist/providers/index.d.ts +2 -0
  24. package/dist/providers/index.js +827 -1902
  25. package/dist/runtime/index.cjs +1288 -2689
  26. package/dist/runtime/index.js +505 -1906
  27. package/package.json +7 -7
  28. package/dist/components/game/atoms/ActionButton.d.ts +0 -31
  29. package/dist/components/game/atoms/ComboCounter.d.ts +0 -20
  30. package/dist/components/game/atoms/DamageNumber.d.ts +0 -18
  31. package/dist/components/game/atoms/GameCard.d.ts +0 -34
  32. package/dist/components/game/atoms/ItemSlot.d.ts +0 -31
  33. package/dist/components/game/atoms/ResourceCounter.d.ts +0 -26
  34. package/dist/components/game/atoms/Sprite.d.ts +0 -52
  35. package/dist/components/game/atoms/StatusEffect.d.ts +0 -25
  36. package/dist/components/game/atoms/TurnIndicator.d.ts +0 -22
  37. package/dist/components/game/atoms/WaypointMarker.d.ts +0 -23
  38. package/dist/components/game/molecules/EventLog.d.ts +0 -31
  39. package/dist/components/game/molecules/InventoryGrid.d.ts +0 -35
  40. package/dist/components/game/molecules/ObjectRulePanel.d.ts +0 -32
  41. package/dist/components/game/molecules/ResourceBar.d.ts +0 -26
  42. package/dist/components/game/molecules/RuleEditor.d.ts +0 -39
  43. package/dist/components/game/molecules/VariablePanel.d.ts +0 -28
  44. package/dist/components/game/templates/GameTemplate.d.ts +0 -35
  45. package/dist/components/game/three/atoms/SpriteBillboard3D.d.ts +0 -18
  46. package/dist/components/game/three/game3dTheme.d.ts +0 -55
  47. package/dist/components/game/three/index.d.ts +0 -12
  48. package/dist/components/game/three/lib/game3dAssetManifest.d.ts +0 -48
  49. package/dist/components/game/three/molecules/GameCamera3D.d.ts +0 -35
  50. package/dist/components/game/three/molecules/index.d.ts +0 -32
  51. package/dist/components/game/three/patterns.d.ts +0 -16
  52. /package/dist/{components/game/hooks → hooks}/useCamera.d.ts +0 -0
  53. /package/dist/{components/game/hooks → hooks}/useGameAudio.d.ts +0 -0
  54. /package/dist/{components/game/hooks → hooks}/useImageCache.d.ts +0 -0
  55. /package/dist/{components/game/hooks → hooks}/useUnitSpriteAtlas.d.ts +0 -0
  56. /package/dist/{components/game/lib → lib}/boardEntity.d.ts +0 -0
  57. /package/dist/{components/game/three/molecules → lib/drawable/three}/Camera3D.d.ts +0 -0
  58. /package/dist/{components/game/three/molecules → lib/drawable/three}/Canvas3DErrorBoundary.d.ts +0 -0
  59. /package/dist/{components/game/three/molecules → lib/drawable/three}/Canvas3DLoadingState.d.ts +0 -0
  60. /package/dist/{components/game/three/molecules → lib/drawable/three}/Lighting3D.d.ts +0 -0
  61. /package/dist/{components/game/three/molecules → lib/drawable/three}/ModelLoader.d.ts +0 -0
  62. /package/dist/{components/game/three/molecules → lib/drawable/three}/Scene3D.d.ts +0 -0
  63. /package/dist/{components/game → lib/drawable}/three/hooks/useAssetLoader.d.ts +0 -0
  64. /package/dist/{components/game → lib/drawable}/three/hooks/useRaycaster.d.ts +0 -0
  65. /package/dist/{components/game → lib/drawable}/three/hooks/useSceneGraph.d.ts +0 -0
  66. /package/dist/{components/game → lib/drawable}/three/hooks/useThree.d.ts +0 -0
  67. /package/dist/{components/game → lib/drawable}/three/lib/AssetLoader.d.ts +0 -0
  68. /package/dist/{components/game → lib/drawable}/three/lib/culling.d.ts +0 -0
  69. /package/dist/{components/game → lib/drawable}/three/lib/grid3D.d.ts +0 -0
  70. /package/dist/{components/game/lib → lib}/editorUtils.d.ts +0 -0
  71. /package/dist/{components/game/lib → lib}/game.d.ts +0 -0
  72. /package/dist/{components/game/lib/index.d.ts → lib/gameShared.d.ts} +0 -0
  73. /package/dist/{components/game/lib → lib}/isometric.d.ts +0 -0
  74. /package/dist/{components/game/lib → lib}/isometricTypes.d.ts +0 -0
  75. /package/dist/{components/game/lib → lib}/makeAsset.d.ts +0 -0
  76. /package/dist/{components/game/lib → lib}/mechanics.d.ts +0 -0
  77. /package/dist/{components/game/lib → lib}/physicsPresets.d.ts +0 -0
  78. /package/dist/{components/game/lib → lib}/physicsTypes.d.ts +0 -0
  79. /package/dist/{components/game/lib → lib}/spriteAnimation.d.ts +0 -0
  80. /package/dist/{components/game/lib → lib}/spriteAnimationTypes.d.ts +0 -0
  81. /package/dist/{components/game/lib → lib}/spriteSheetConstants.d.ts +0 -0
@@ -7,10 +7,10 @@
7
7
  * canvas-3d render the same `children`.
8
8
  */
9
9
  import React from 'react';
10
- import type { DrawSpriteProps } from '../../components/game/atoms/DrawSprite';
11
- import type { DrawShapeProps } from '../../components/game/atoms/DrawShape';
12
- import type { DrawTextProps } from '../../components/game/atoms/DrawText';
13
- import type { Projector3D } from './projector3d';
10
+ import type { DrawSpriteProps } from '../../../components/game/atoms/DrawSprite';
11
+ import type { DrawShapeProps } from '../../../components/game/atoms/DrawShape';
12
+ import type { DrawTextProps } from '../../../components/game/atoms/DrawText';
13
+ import type { Projector3D } from '../projector3d';
14
14
  /** R3F mesh backend for `draw-sprite`: a GLB via `ModelLoader` when `asset.dimension === '3d'`; else a billboard. */
15
15
  export declare function Sprite3D({ node, projector }: {
16
16
  node: DrawSpriteProps;
@@ -4,12 +4,21 @@
4
4
  *
5
5
  * The puzzle objects the kid configures arrive as `entity.objects` (an array of
6
6
  * `EntityRow`). These helpers narrow the weakly-typed fields the panel reads.
7
- * `RuleDefinition` / `RuleOption` remain plain UI value DTOs (see `RuleEditor`).
7
+ * `RuleDefinition` / `RuleOption` are plain UI value DTOs, defined below.
8
8
  *
9
9
  * @packageDocumentation
10
10
  */
11
11
  import type { EntityWith } from '@almadar/core';
12
- import type { RuleDefinition, RuleOption } from '../molecules/RuleEditor';
12
+ /** A single Event-Handler puzzle rule: "when <event> then <action>". Plain value DTO. */
13
+ export type RuleDefinition = {
14
+ whenEvent: string;
15
+ thenAction: string;
16
+ };
17
+ /** An option (event or action) selectable in a puzzle rule. Plain value DTO. */
18
+ export interface RuleOption {
19
+ value: string;
20
+ label: string;
21
+ }
13
22
  type PuzzleObjectRow = EntityWith<{
14
23
  name?: string;
15
24
  icon?: string;
@@ -18,7 +18,7 @@
18
18
  */
19
19
  import React from 'react';
20
20
  import { type AudioManifest, type GameAudioControls } from '../hooks/useGameAudio';
21
- import type { UiError } from '../../core/atoms/types';
21
+ import type { UiError } from '../components/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
  /**