@almadar/ui 5.21.11 → 5.22.2

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 (87) hide show
  1. package/dist/avl/index.cjs +939 -638
  2. package/dist/avl/index.js +939 -638
  3. package/dist/components/core/molecules/CalendarGrid.d.ts +3 -10
  4. package/dist/components/core/molecules/ContentRenderer.d.ts +2 -2
  5. package/dist/components/core/molecules/DataGrid.d.ts +11 -20
  6. package/dist/components/core/molecules/DataList.d.ts +9 -15
  7. package/dist/components/core/molecules/FormSection.d.ts +4 -4
  8. package/dist/components/core/molecules/PositionedCanvas.d.ts +4 -17
  9. package/dist/components/core/molecules/ReplyTree.d.ts +2 -13
  10. package/dist/components/core/molecules/RichBlockEditor.d.ts +3 -6
  11. package/dist/components/core/molecules/SortableList.d.ts +7 -5
  12. package/dist/components/core/molecules/TableView.d.ts +7 -7
  13. package/dist/components/core/molecules/index.d.ts +3 -3
  14. package/dist/components/core/molecules/useDataDnd.d.ts +5 -5
  15. package/dist/components/core/organisms/CardGrid.d.ts +5 -2
  16. package/dist/components/core/organisms/CaseStudyOrganism.d.ts +4 -3
  17. package/dist/components/core/organisms/DataTable.d.ts +4 -2
  18. package/dist/components/core/organisms/DetailPanel.d.ts +6 -6
  19. package/dist/components/core/organisms/FeatureGridOrganism.d.ts +4 -3
  20. package/dist/components/core/organisms/HeroOrganism.d.ts +4 -5
  21. package/dist/components/core/organisms/List.d.ts +5 -2
  22. package/dist/components/core/organisms/MasterDetail.d.ts +4 -2
  23. package/dist/components/core/organisms/MediaGallery.d.ts +4 -2
  24. package/dist/components/core/organisms/ShowcaseOrganism.d.ts +4 -3
  25. package/dist/components/core/organisms/StatCard.d.ts +5 -2
  26. package/dist/components/core/organisms/StepFlowOrganism.d.ts +4 -3
  27. package/dist/components/core/organisms/Timeline.d.ts +2 -2
  28. package/dist/components/core/organisms/book/index.d.ts +1 -1
  29. package/dist/components/core/organisms/book/types.d.ts +28 -48
  30. package/dist/components/core/organisms/index.d.ts +1 -2
  31. package/dist/components/core/organisms/layout/DashboardGrid.d.ts +2 -2
  32. package/dist/components/core/organisms/marketing-types.d.ts +5 -94
  33. package/dist/components/core/organisms/types.d.ts +9 -27
  34. package/dist/components/core/templates/index.d.ts +6 -6
  35. package/dist/components/game/organisms/BattleBoard.d.ts +14 -90
  36. package/dist/components/game/organisms/CastleBoard.d.ts +7 -21
  37. package/dist/components/game/organisms/UncontrolledBattleBoard.d.ts +2 -7
  38. package/dist/components/game/organisms/WorldMapBoard.d.ts +13 -59
  39. package/dist/components/game/organisms/boardEntity.d.ts +44 -0
  40. package/dist/components/game/organisms/hooks/useBattleState.d.ts +7 -7
  41. package/dist/components/game/organisms/index.d.ts +3 -3
  42. package/dist/components/game/organisms/puzzles/builder/BuilderBoard.d.ts +7 -20
  43. package/dist/components/game/organisms/puzzles/builder/index.d.ts +1 -1
  44. package/dist/components/game/organisms/puzzles/classifier/ClassifierBoard.d.ts +7 -20
  45. package/dist/components/game/organisms/puzzles/classifier/index.d.ts +1 -1
  46. package/dist/components/game/organisms/puzzles/debugger/DebuggerBoard.d.ts +6 -22
  47. package/dist/components/game/organisms/puzzles/debugger/index.d.ts +1 -1
  48. package/dist/components/game/organisms/puzzles/event-handler/EventHandlerBoard.d.ts +6 -33
  49. package/dist/components/game/organisms/puzzles/event-handler/ObjectRulePanel.d.ts +3 -21
  50. package/dist/components/game/organisms/puzzles/event-handler/index.d.ts +2 -2
  51. package/dist/components/game/organisms/puzzles/event-handler/puzzleObject.d.ts +21 -0
  52. package/dist/components/game/organisms/puzzles/negotiator/NegotiatorBoard.d.ts +8 -24
  53. package/dist/components/game/organisms/puzzles/negotiator/index.d.ts +1 -1
  54. package/dist/components/game/organisms/puzzles/sequencer/ActionTile.d.ts +2 -2
  55. package/dist/components/game/organisms/puzzles/sequencer/SequencerBoard.d.ts +7 -36
  56. package/dist/components/game/organisms/puzzles/sequencer/index.d.ts +1 -1
  57. package/dist/components/game/organisms/puzzles/simulator/SimulatorBoard.d.ts +6 -25
  58. package/dist/components/game/organisms/puzzles/simulator/index.d.ts +1 -1
  59. package/dist/components/game/organisms/puzzles/state-architect/StateArchitectBoard.d.ts +7 -40
  60. package/dist/components/game/organisms/puzzles/state-architect/VariablePanel.d.ts +3 -9
  61. package/dist/components/game/organisms/puzzles/state-architect/index.d.ts +2 -2
  62. package/dist/components/game/organisms/three/index.cjs +35 -21
  63. package/dist/components/game/organisms/three/index.js +35 -21
  64. package/dist/components/game/templates/BattleTemplate.d.ts +2 -3
  65. package/dist/components/game/templates/CastleTemplate.d.ts +2 -3
  66. package/dist/components/game/templates/GameCanvas3DBattleTemplate.d.ts +1 -16
  67. package/dist/components/game/templates/GameCanvas3DCastleTemplate.d.ts +1 -18
  68. package/dist/components/game/templates/GameCanvas3DWorldMapTemplate.d.ts +1 -14
  69. package/dist/components/game/templates/GameTemplate.d.ts +1 -6
  70. package/dist/components/game/templates/WorldMapTemplate.d.ts +2 -3
  71. package/dist/components/index.cjs +2036 -1675
  72. package/dist/components/index.js +1148 -787
  73. package/dist/components/marketing/organisms/PricingOrganism.d.ts +4 -3
  74. package/dist/components/marketing/organisms/StatsOrganism.d.ts +4 -3
  75. package/dist/components/marketing/organisms/TeamOrganism.d.ts +4 -3
  76. package/dist/components/marketing/organisms/book/BookChapterView.d.ts +5 -2
  77. package/dist/components/marketing/organisms/book/BookTableOfContents.d.ts +3 -2
  78. package/dist/components/marketing/organisms/book/BookViewer.d.ts +4 -4
  79. package/dist/components/marketing/templates/AboutPageTemplate.d.ts +32 -6
  80. package/dist/components/marketing/templates/FeatureDetailPageTemplate.d.ts +14 -4
  81. package/dist/components/marketing/templates/LandingPageTemplate.d.ts +47 -9
  82. package/dist/components/marketing/templates/PricingPageTemplate.d.ts +23 -5
  83. package/dist/providers/index.cjs +932 -631
  84. package/dist/providers/index.js +932 -631
  85. package/dist/runtime/index.cjs +934 -633
  86. package/dist/runtime/index.js +934 -633
  87. package/package.json +2 -2
@@ -10,9 +10,10 @@
10
10
  * - Never listens to events
11
11
  */
12
12
  import React from 'react';
13
- import type { EntityDisplayProps } from '../../core/organisms/types';
14
- import type { PricingPlanEntity } from '../../core/organisms/marketing-types';
15
- export interface PricingOrganismProps extends EntityDisplayProps<PricingPlanEntity> {
13
+ import type { EntityWith } from '@almadar/core';
14
+ import type { DisplayStateProps } from '../../core/organisms/types';
15
+ export interface PricingOrganismProps extends DisplayStateProps {
16
+ entity?: EntityWith<'name' | 'price'> | readonly EntityWith<'name' | 'price'>[];
16
17
  heading?: string;
17
18
  subtitle?: string;
18
19
  }
@@ -9,9 +9,10 @@
9
9
  * - No events (display-only)
10
10
  */
11
11
  import React from 'react';
12
- import type { EntityDisplayProps } from '../../core/organisms/types';
13
- import type { StatEntity } from '../../core/organisms/marketing-types';
14
- export interface StatsOrganismProps extends EntityDisplayProps<StatEntity> {
12
+ import type { EntityWith } from '@almadar/core';
13
+ import type { DisplayStateProps } from '../../core/organisms/types';
14
+ export interface StatsOrganismProps extends DisplayStateProps {
15
+ entity?: EntityWith<'value' | 'label'> | readonly EntityWith<'value' | 'label'>[];
15
16
  columns?: 2 | 3 | 4 | 6;
16
17
  }
17
18
  export declare const StatsOrganism: React.FC<StatsOrganismProps>;
@@ -9,9 +9,10 @@
9
9
  * - No events (display-only)
10
10
  */
11
11
  import React from 'react';
12
- import type { EntityDisplayProps } from '../../core/organisms/types';
13
- import type { TeamMemberEntity } from '../../core/organisms/marketing-types';
14
- export interface TeamOrganismProps extends EntityDisplayProps<TeamMemberEntity> {
12
+ import type { EntityWith } from '@almadar/core';
13
+ import type { DisplayStateProps } from '../../core/organisms/types';
14
+ export interface TeamOrganismProps extends DisplayStateProps {
15
+ entity?: EntityWith<'name'> | readonly EntityWith<'name'>[];
15
16
  heading?: string;
16
17
  subtitle?: string;
17
18
  }
@@ -8,11 +8,14 @@
8
8
  * - Delegates to ContentRenderer children
9
9
  */
10
10
  import React from 'react';
11
- import type { BookChapter } from '../../../core/organisms/book/types';
11
+ import type { EntityRow, OrbitalSchema } from '@almadar/core';
12
12
  export interface BookChapterViewProps {
13
13
  /** Additional CSS classes */
14
14
  className?: string;
15
- chapter: BookChapter;
15
+ /** Chapter row (`EntityRow` carrying title/content). */
16
+ chapter: EntityRow;
17
+ /** Embedded orbital diagram — passed SEPARATELY (off the entity boundary). */
18
+ orbitalSchema?: OrbitalSchema;
16
19
  direction?: 'rtl' | 'ltr';
17
20
  }
18
21
  export declare const BookChapterView: React.FC<BookChapterViewProps>;
@@ -8,11 +8,12 @@
8
8
  * - Emits: UI:BOOK_NAVIGATE { chapterId }
9
9
  */
10
10
  import React from 'react';
11
- import type { BookPart } from '../../../core/organisms/book/types';
11
+ import type { EntityRow } from '@almadar/core';
12
12
  export interface BookTableOfContentsProps {
13
13
  /** Additional CSS classes */
14
14
  className?: string;
15
- parts: BookPart[];
15
+ /** Part rows (`EntityRow` carrying `title` + a `chapters: EntityRow[]`). */
16
+ parts: readonly EntityRow[];
16
17
  currentChapterId?: string;
17
18
  direction?: 'rtl' | 'ltr';
18
19
  }
@@ -17,12 +17,12 @@
17
17
  * - Listens: UI:BOOK_START, UI:BOOK_NAVIGATE, UI:BOOK_PAGE_PREV/NEXT, UI:BOOK_PRINT, UI:BOOK_SHOW_TOC
18
18
  */
19
19
  import React from 'react';
20
- import type { EntityRecord, EntityRow } from '@almadar/core';
21
- import type { EntityDisplayProps } from '../../../core/organisms/types';
20
+ import type { EntityRow } from '@almadar/core';
21
+ import type { DisplayStateProps } from '../../../core/organisms/types';
22
22
  import type { BookFieldMap } from '../../../core/organisms/book/types';
23
- export interface BookViewerProps extends EntityDisplayProps {
23
+ export interface BookViewerProps extends DisplayStateProps {
24
24
  /** Renders ONE record (the book), not a collection */
25
- entity?: EntityRecord<EntityRow>;
25
+ entity?: EntityRow | readonly EntityRow[];
26
26
  /** Initial page index (default: 0 = cover) */
27
27
  initialPage?: number;
28
28
  /** Field name translation map — a BookFieldMap object or locale key ("ar") */
@@ -6,19 +6,45 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import type { TemplateProps } from '../../core/templates/types';
9
- import type { MarketingAction, HeroEntity, TeamMemberEntity, CaseStudyEntity } from '../../core/organisms/marketing-types';
10
- export type { TeamMemberEntity, CaseStudyEntity };
9
+ import type { LinkAction } from '../../core/atoms/types';
10
+ interface AboutHero {
11
+ id?: string;
12
+ tag?: string;
13
+ title: string;
14
+ titleAccent?: string;
15
+ subtitle: string;
16
+ primaryAction?: LinkAction;
17
+ secondaryAction?: LinkAction;
18
+ background?: 'dark' | 'gradient' | 'subtle';
19
+ }
20
+ interface TeamMemberContent {
21
+ id: string;
22
+ name: string;
23
+ nameAr?: string;
24
+ role: string;
25
+ bio: string;
26
+ avatar?: string;
27
+ }
28
+ interface CaseStudyContent {
29
+ id: string;
30
+ title: string;
31
+ description: string;
32
+ category: string;
33
+ categoryColor?: string;
34
+ href: string;
35
+ linkLabel?: string;
36
+ }
11
37
  export interface AboutPageEntity {
12
38
  id: string;
13
- hero: HeroEntity;
39
+ hero: AboutHero;
14
40
  articles: {
15
41
  title: string;
16
42
  content: string;
17
43
  }[];
18
- team?: TeamMemberEntity[];
19
- caseStudies?: CaseStudyEntity[];
44
+ team?: TeamMemberContent[];
45
+ caseStudies?: CaseStudyContent[];
20
46
  ctaTitle?: string;
21
- ctaAction?: MarketingAction;
47
+ ctaAction?: LinkAction;
22
48
  }
23
49
  export interface AboutPageTemplateProps extends TemplateProps<AboutPageEntity> {
24
50
  }
@@ -6,20 +6,30 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import type { TemplateProps } from '../../core/templates/types';
9
- import type { MarketingAction, MarketingImage, HeroEntity } from '../../core/organisms/marketing-types';
9
+ import type { LinkAction, ImageSource } from '../../core/atoms/types';
10
+ interface FeatureDetailHero {
11
+ id?: string;
12
+ tag?: string;
13
+ title: string;
14
+ titleAccent?: string;
15
+ subtitle: string;
16
+ primaryAction?: LinkAction;
17
+ secondaryAction?: LinkAction;
18
+ background?: 'dark' | 'gradient' | 'subtle';
19
+ }
10
20
  export interface FeatureDetailSection {
11
21
  title: string;
12
22
  description: string;
13
23
  bullets?: string[];
14
- image?: MarketingImage;
24
+ image?: ImageSource;
15
25
  imagePosition?: 'left' | 'right';
16
26
  }
17
27
  export interface FeatureDetailPageEntity {
18
28
  id: string;
19
- hero: HeroEntity;
29
+ hero: FeatureDetailHero;
20
30
  sections: FeatureDetailSection[];
21
31
  ctaTitle?: string;
22
- ctaAction?: MarketingAction;
32
+ ctaAction?: LinkAction;
23
33
  }
24
34
  export interface FeatureDetailPageTemplateProps extends TemplateProps<FeatureDetailPageEntity> {
25
35
  }
@@ -7,19 +7,57 @@
7
7
  */
8
8
  import React from 'react';
9
9
  import type { TemplateProps } from '../../core/templates/types';
10
- import type { MarketingAction, HeroEntity, FeatureEntity, StatEntity, StepEntity, ShowcaseEntity } from '../../core/organisms/marketing-types';
11
- export type { HeroEntity, FeatureEntity, StatEntity, StepEntity, ShowcaseEntity };
10
+ import type { LinkAction, ImageSource } from '../../core/atoms/types';
11
+ interface MarketingHero {
12
+ id?: string;
13
+ tag?: string;
14
+ title: string;
15
+ titleAccent?: string;
16
+ subtitle: string;
17
+ primaryAction?: LinkAction;
18
+ secondaryAction?: LinkAction;
19
+ installCommand?: string;
20
+ image?: ImageSource;
21
+ imagePosition?: 'below' | 'right' | 'background';
22
+ background?: 'dark' | 'gradient' | 'subtle';
23
+ }
24
+ interface FeatureContent {
25
+ id?: string;
26
+ icon?: string;
27
+ title: string;
28
+ description: string;
29
+ href?: string;
30
+ }
31
+ interface StatContent {
32
+ id?: string;
33
+ value: string;
34
+ label: string;
35
+ }
36
+ interface StepContent {
37
+ id?: string;
38
+ title: string;
39
+ description: string;
40
+ icon?: string;
41
+ }
42
+ interface ShowcaseContent {
43
+ id: string;
44
+ title: string;
45
+ description?: string;
46
+ image: ImageSource;
47
+ href?: string;
48
+ badge?: string;
49
+ }
12
50
  export interface LandingPageEntity {
13
51
  id: string;
14
- hero: HeroEntity;
15
- features: FeatureEntity[];
16
- stats?: StatEntity[];
17
- steps?: StepEntity[];
18
- showcase?: ShowcaseEntity[];
52
+ hero: MarketingHero;
53
+ features: FeatureContent[];
54
+ stats?: StatContent[];
55
+ steps?: StepContent[];
56
+ showcase?: ShowcaseContent[];
19
57
  ctaTitle: string;
20
58
  ctaSubtitle?: string;
21
- ctaPrimaryAction?: MarketingAction;
22
- ctaSecondaryAction?: MarketingAction;
59
+ ctaPrimaryAction?: LinkAction;
60
+ ctaSecondaryAction?: LinkAction;
23
61
  communityGithub?: string;
24
62
  communityDiscord?: string;
25
63
  }
@@ -6,19 +6,37 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import type { TemplateProps } from '../../core/templates/types';
9
- import type { MarketingAction, HeroEntity, PricingPlanEntity } from '../../core/organisms/marketing-types';
10
- export type { PricingPlanEntity };
9
+ import type { LinkAction } from '../../core/atoms/types';
10
+ interface PricingHero {
11
+ id?: string;
12
+ tag?: string;
13
+ title: string;
14
+ titleAccent?: string;
15
+ subtitle: string;
16
+ background?: 'dark' | 'gradient' | 'subtle';
17
+ }
18
+ interface PricingPlanContent {
19
+ id?: string;
20
+ name: string;
21
+ price: string;
22
+ description?: string;
23
+ features: string[];
24
+ actionLabel: string;
25
+ actionHref: string;
26
+ highlighted?: boolean;
27
+ badge?: string;
28
+ }
11
29
  export interface PricingPageEntity {
12
30
  id: string;
13
- hero: HeroEntity;
14
- plans: PricingPlanEntity[];
31
+ hero: PricingHero;
32
+ plans: PricingPlanContent[];
15
33
  faq?: {
16
34
  question: string;
17
35
  answer: string;
18
36
  }[];
19
37
  ctaTitle?: string;
20
38
  ctaSubtitle?: string;
21
- ctaAction?: MarketingAction;
39
+ ctaAction?: LinkAction;
22
40
  }
23
41
  export interface PricingPageTemplateProps extends TemplateProps<PricingPageEntity> {
24
42
  }