@almadar/ui 5.21.12 → 5.22.3
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 +2432 -3173
- package/dist/avl/index.js +1373 -2114
- package/dist/components/core/molecules/CalendarGrid.d.ts +3 -10
- package/dist/components/core/molecules/ContentRenderer.d.ts +2 -2
- package/dist/components/core/molecules/DataGrid.d.ts +11 -20
- package/dist/components/core/molecules/DataList.d.ts +9 -15
- package/dist/components/core/molecules/FormSection.d.ts +4 -4
- package/dist/components/core/molecules/PositionedCanvas.d.ts +4 -17
- package/dist/components/core/molecules/ReplyTree.d.ts +2 -13
- package/dist/components/core/molecules/RichBlockEditor.d.ts +3 -6
- package/dist/components/core/molecules/SortableList.d.ts +7 -5
- package/dist/components/core/molecules/TableView.d.ts +7 -7
- package/dist/components/core/molecules/index.d.ts +3 -3
- package/dist/components/core/molecules/useDataDnd.d.ts +5 -5
- package/dist/components/core/organisms/CardGrid.d.ts +5 -2
- package/dist/components/core/organisms/CaseStudyOrganism.d.ts +4 -3
- package/dist/components/core/organisms/DataTable.d.ts +4 -2
- package/dist/components/core/organisms/DetailPanel.d.ts +6 -6
- package/dist/components/core/organisms/FeatureGridOrganism.d.ts +4 -3
- package/dist/components/core/organisms/HeroOrganism.d.ts +4 -5
- package/dist/components/core/organisms/List.d.ts +5 -2
- package/dist/components/core/organisms/MasterDetail.d.ts +4 -2
- package/dist/components/core/organisms/MediaGallery.d.ts +4 -2
- package/dist/components/core/organisms/ShowcaseOrganism.d.ts +4 -3
- package/dist/components/core/organisms/StatCard.d.ts +5 -2
- package/dist/components/core/organisms/StepFlowOrganism.d.ts +4 -3
- package/dist/components/core/organisms/Timeline.d.ts +2 -2
- package/dist/components/core/organisms/book/index.d.ts +1 -1
- package/dist/components/core/organisms/book/types.d.ts +28 -48
- package/dist/components/core/organisms/index.d.ts +1 -2
- package/dist/components/core/organisms/layout/DashboardGrid.d.ts +2 -2
- package/dist/components/core/organisms/marketing-types.d.ts +5 -94
- package/dist/components/core/organisms/types.d.ts +9 -27
- package/dist/components/core/templates/index.d.ts +6 -6
- package/dist/components/game/organisms/BattleBoard.d.ts +14 -90
- package/dist/components/game/organisms/CastleBoard.d.ts +7 -21
- package/dist/components/game/organisms/UncontrolledBattleBoard.d.ts +2 -7
- package/dist/components/game/organisms/WorldMapBoard.d.ts +13 -59
- package/dist/components/game/organisms/boardEntity.d.ts +44 -0
- package/dist/components/game/organisms/hooks/useBattleState.d.ts +7 -7
- package/dist/components/game/organisms/index.d.ts +3 -3
- package/dist/components/game/organisms/puzzles/builder/BuilderBoard.d.ts +7 -20
- package/dist/components/game/organisms/puzzles/builder/index.d.ts +1 -1
- package/dist/components/game/organisms/puzzles/classifier/ClassifierBoard.d.ts +7 -20
- package/dist/components/game/organisms/puzzles/classifier/index.d.ts +1 -1
- package/dist/components/game/organisms/puzzles/debugger/DebuggerBoard.d.ts +6 -22
- package/dist/components/game/organisms/puzzles/debugger/index.d.ts +1 -1
- package/dist/components/game/organisms/puzzles/event-handler/EventHandlerBoard.d.ts +6 -33
- package/dist/components/game/organisms/puzzles/event-handler/ObjectRulePanel.d.ts +3 -21
- package/dist/components/game/organisms/puzzles/event-handler/index.d.ts +2 -2
- package/dist/components/game/organisms/puzzles/event-handler/puzzleObject.d.ts +21 -0
- package/dist/components/game/organisms/puzzles/negotiator/NegotiatorBoard.d.ts +8 -24
- package/dist/components/game/organisms/puzzles/negotiator/index.d.ts +1 -1
- package/dist/components/game/organisms/puzzles/sequencer/ActionTile.d.ts +2 -2
- package/dist/components/game/organisms/puzzles/sequencer/SequencerBoard.d.ts +7 -36
- package/dist/components/game/organisms/puzzles/sequencer/index.d.ts +1 -1
- package/dist/components/game/organisms/puzzles/simulator/SimulatorBoard.d.ts +6 -25
- package/dist/components/game/organisms/puzzles/simulator/index.d.ts +1 -1
- package/dist/components/game/organisms/puzzles/state-architect/StateArchitectBoard.d.ts +7 -40
- package/dist/components/game/organisms/puzzles/state-architect/VariablePanel.d.ts +3 -9
- package/dist/components/game/organisms/puzzles/state-architect/index.d.ts +2 -2
- package/dist/components/game/organisms/three/index.cjs +35 -21
- package/dist/components/game/organisms/three/index.js +35 -21
- package/dist/components/game/templates/BattleTemplate.d.ts +2 -3
- package/dist/components/game/templates/CastleTemplate.d.ts +2 -3
- package/dist/components/game/templates/GameCanvas3DBattleTemplate.d.ts +1 -16
- package/dist/components/game/templates/GameCanvas3DCastleTemplate.d.ts +1 -18
- package/dist/components/game/templates/GameCanvas3DWorldMapTemplate.d.ts +1 -14
- package/dist/components/game/templates/GameTemplate.d.ts +1 -6
- package/dist/components/game/templates/WorldMapTemplate.d.ts +2 -3
- package/dist/components/index.cjs +2016 -1668
- package/dist/components/index.js +1128 -780
- package/dist/components/marketing/organisms/PricingOrganism.d.ts +4 -3
- package/dist/components/marketing/organisms/StatsOrganism.d.ts +4 -3
- package/dist/components/marketing/organisms/TeamOrganism.d.ts +4 -3
- package/dist/components/marketing/organisms/book/BookChapterView.d.ts +5 -2
- package/dist/components/marketing/organisms/book/BookTableOfContents.d.ts +3 -2
- package/dist/components/marketing/organisms/book/BookViewer.d.ts +4 -4
- package/dist/components/marketing/templates/AboutPageTemplate.d.ts +32 -6
- package/dist/components/marketing/templates/FeatureDetailPageTemplate.d.ts +14 -4
- package/dist/components/marketing/templates/LandingPageTemplate.d.ts +47 -9
- package/dist/components/marketing/templates/PricingPageTemplate.d.ts +23 -5
- package/dist/providers/index.cjs +912 -624
- package/dist/providers/index.js +912 -624
- package/dist/runtime/index.cjs +914 -626
- package/dist/runtime/index.js +914 -626
- 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 {
|
|
14
|
-
import type {
|
|
15
|
-
export interface PricingOrganismProps extends
|
|
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 {
|
|
13
|
-
import type {
|
|
14
|
-
export interface StatsOrganismProps extends
|
|
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 {
|
|
13
|
-
import type {
|
|
14
|
-
export interface TeamOrganismProps extends
|
|
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 {
|
|
11
|
+
import type { EntityRow, OrbitalSchema } from '@almadar/core';
|
|
12
12
|
export interface BookChapterViewProps {
|
|
13
13
|
/** Additional CSS classes */
|
|
14
14
|
className?: string;
|
|
15
|
-
|
|
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 {
|
|
11
|
+
import type { EntityRow } from '@almadar/core';
|
|
12
12
|
export interface BookTableOfContentsProps {
|
|
13
13
|
/** Additional CSS classes */
|
|
14
14
|
className?: string;
|
|
15
|
-
|
|
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 {
|
|
21
|
-
import type {
|
|
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
|
|
23
|
+
export interface BookViewerProps extends DisplayStateProps {
|
|
24
24
|
/** Renders ONE record (the book), not a collection */
|
|
25
|
-
entity?:
|
|
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 {
|
|
10
|
-
|
|
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:
|
|
39
|
+
hero: AboutHero;
|
|
14
40
|
articles: {
|
|
15
41
|
title: string;
|
|
16
42
|
content: string;
|
|
17
43
|
}[];
|
|
18
|
-
team?:
|
|
19
|
-
caseStudies?:
|
|
44
|
+
team?: TeamMemberContent[];
|
|
45
|
+
caseStudies?: CaseStudyContent[];
|
|
20
46
|
ctaTitle?: string;
|
|
21
|
-
ctaAction?:
|
|
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 {
|
|
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?:
|
|
24
|
+
image?: ImageSource;
|
|
15
25
|
imagePosition?: 'left' | 'right';
|
|
16
26
|
}
|
|
17
27
|
export interface FeatureDetailPageEntity {
|
|
18
28
|
id: string;
|
|
19
|
-
hero:
|
|
29
|
+
hero: FeatureDetailHero;
|
|
20
30
|
sections: FeatureDetailSection[];
|
|
21
31
|
ctaTitle?: string;
|
|
22
|
-
ctaAction?:
|
|
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 {
|
|
11
|
-
|
|
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:
|
|
15
|
-
features:
|
|
16
|
-
stats?:
|
|
17
|
-
steps?:
|
|
18
|
-
showcase?:
|
|
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?:
|
|
22
|
-
ctaSecondaryAction?:
|
|
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 {
|
|
10
|
-
|
|
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:
|
|
14
|
-
plans:
|
|
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?:
|
|
39
|
+
ctaAction?: LinkAction;
|
|
22
40
|
}
|
|
23
41
|
export interface PricingPageTemplateProps extends TemplateProps<PricingPageEntity> {
|
|
24
42
|
}
|