@almadar/ui 5.18.1 → 5.19.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 (38) hide show
  1. package/dist/avl/index.cjs +7427 -7671
  2. package/dist/avl/index.d.cts +8 -0
  3. package/dist/avl/index.js +6292 -6536
  4. package/dist/components/index.cjs +7635 -7873
  5. package/dist/components/index.js +6686 -6921
  6. package/dist/components/{organisms → molecules}/ContentRenderer.d.ts +1 -1
  7. package/dist/components/{organisms → molecules}/FormSection.d.ts +1 -1
  8. package/dist/components/molecules/avl/ModuleCard.d.ts +8 -0
  9. package/dist/components/molecules/index.d.ts +17 -1
  10. package/dist/components/organisms/game/GameAudioProvider.d.ts +6 -0
  11. package/dist/components/organisms/game/GameAudioToggle.d.ts +4 -2
  12. package/dist/components/organisms/game/three/index.cjs +180 -172
  13. package/dist/components/organisms/game/three/index.js +18 -10
  14. package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +7 -13
  15. package/dist/components/organisms/index.d.ts +0 -18
  16. package/dist/providers/index.cjs +7019 -7271
  17. package/dist/providers/index.js +6254 -6506
  18. package/dist/runtime/index.cjs +7058 -7310
  19. package/dist/runtime/index.js +6257 -6509
  20. package/package.json +1 -1
  21. package/dist/components/molecules/CodeExample.d.ts +0 -23
  22. package/dist/components/organisms/Meter.d.ts +0 -59
  23. package/dist/components/organisms/Table.d.ts +0 -100
  24. /package/dist/components/{organisms → molecules}/Chart.d.ts +0 -0
  25. /package/dist/components/{organisms → molecules}/CodeViewer.d.ts +0 -0
  26. /package/dist/components/{organisms → molecules}/ConfirmDialog.d.ts +0 -0
  27. /package/dist/components/{organisms → molecules}/DocumentViewer.d.ts +0 -0
  28. /package/dist/components/{organisms → molecules}/GraphCanvas.d.ts +0 -0
  29. /package/dist/components/{organisms → molecules}/Header.d.ts +0 -0
  30. /package/dist/components/{organisms → molecules}/JazariStateMachine.d.ts +0 -0
  31. /package/dist/components/{organisms → molecules}/Navigation.d.ts +0 -0
  32. /package/dist/components/{organisms → molecules}/OrbitalVisualization.d.ts +0 -0
  33. /package/dist/components/{organisms → molecules}/PageHeader.d.ts +0 -0
  34. /package/dist/components/{organisms → molecules}/Section.d.ts +0 -0
  35. /package/dist/components/{organisms → molecules}/Sidebar.d.ts +0 -0
  36. /package/dist/components/{organisms → molecules}/SignaturePad.d.ts +0 -0
  37. /package/dist/components/{organisms → molecules}/Split.d.ts +0 -0
  38. /package/dist/components/{organisms → molecules}/WizardContainer.d.ts +0 -0
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import React from 'react';
13
13
  import { type ContentSegment } from '../../lib/parseContentSegments';
14
- import type { EntityDisplayProps } from './types';
14
+ import type { EntityDisplayProps } from '../organisms/types';
15
15
  export interface ContentRendererProps extends EntityDisplayProps {
16
16
  /** Raw content string — auto-parsed into segments */
17
17
  content?: string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { EntityDisplayProps } from "./types";
2
+ import type { EntityDisplayProps } from "../organisms/types";
3
3
  export interface FormSectionProps extends EntityDisplayProps {
4
4
  /** Section title */
5
5
  title?: string;
@@ -11,4 +11,12 @@ import type { AvlNodeData } from './avl-canvas-types';
11
11
  export interface ModuleCardProps {
12
12
  data: AvlNodeData;
13
13
  }
14
+ /**
15
+ * Self-contained ModuleCard. The connection `<Handle>`s need the ReactFlow store,
16
+ * so standalone they'd throw ("no zustand provider as an ancestor"). When this
17
+ * card isn't already a flow node (`useNodeId() === null`) it bundles its own
18
+ * `<ReactFlowProvider>` so it renders anywhere; inside `<FlowCanvas>` it's a real
19
+ * node and renders raw (no nested provider). The provider is an implementation
20
+ * detail, never a precondition for using the component.
21
+ */
14
22
  export declare const ModuleCard: React.FC<ModuleCardProps>;
@@ -73,7 +73,6 @@ export { StatsGrid, type StatsGridProps } from './StatsGrid';
73
73
  export { ServiceCatalog, type ServiceCatalogProps, type ServiceCatalogItem } from './ServiceCatalog';
74
74
  export { CaseStudyCard, type CaseStudyCardProps } from './CaseStudyCard';
75
75
  export { ArticleSection, type ArticleSectionProps } from './ArticleSection';
76
- export { CodeExample, type CodeExampleProps } from './CodeExample';
77
76
  export { SocialProof, type SocialProofProps, type SocialProofItem } from './SocialProof';
78
77
  export { StepFlow, type StepFlowProps, type StepItemProps } from './StepFlow';
79
78
  export { SplitSection, type SplitSectionProps } from './SplitSection';
@@ -105,3 +104,20 @@ export { MarketingFooter, type MarketingFooterProps, type FooterLinkColumn, type
105
104
  export { PullQuote, type PullQuoteProps } from './PullQuote';
106
105
  export { BehaviorView, type BehaviorViewProps } from './avl/BehaviorView';
107
106
  export { ModuleCard, type ModuleCardProps } from './avl/ModuleCard';
107
+ export { PageHeader, type PageHeaderProps, type PageBreadcrumb, } from "./PageHeader";
108
+ export { FormSection, FormLayout, FormActions, type FormSectionProps, type FormLayoutProps, type FormActionsProps, } from "./FormSection";
109
+ export { Header, type HeaderProps } from "./Header";
110
+ export { Navigation, type NavigationProps, type NavigationItem, } from "./Navigation";
111
+ export { Section, type SectionProps } from "./Section";
112
+ export { Sidebar, type SidebarProps, type SidebarItem } from "./Sidebar";
113
+ export { Split, type SplitProps } from "./Split";
114
+ export { ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, } from "./ConfirmDialog";
115
+ export { WizardContainer, type WizardContainerProps, type WizardStep, } from "./WizardContainer";
116
+ export { OrbitalVisualization, type OrbitalVisualizationProps, } from "./OrbitalVisualization";
117
+ export { JazariStateMachine, type JazariStateMachineProps, } from "./JazariStateMachine";
118
+ export { ContentRenderer, type ContentRendererProps, } from "./ContentRenderer";
119
+ export { Chart, type ChartProps, type ChartType, type ChartSeries, } from "./Chart";
120
+ export { SignaturePad, type SignaturePadProps, } from "./SignaturePad";
121
+ export { DocumentViewer, type DocumentViewerProps, type DocumentType, } from "./DocumentViewer";
122
+ export { GraphCanvas, type GraphCanvasProps, type GraphNode, type GraphEdge, } from "./GraphCanvas";
123
+ export { CodeViewer, type CodeViewerProps, type CodeViewerMode, type DiffLine, } from "./CodeViewer";
@@ -26,6 +26,12 @@ export declare const GameAudioContext: React.Context<GameAudioContextValue | nul
26
26
  * Must be called from within a `<GameAudioProvider>` tree.
27
27
  */
28
28
  export declare function useGameAudioContext(): GameAudioContextValue;
29
+ /**
30
+ * Access the game audio context, or `null` when there is no `<GameAudioProvider>`
31
+ * ancestor. Lets a component stay self-contained (render standalone with a local
32
+ * fallback) — the provider is an implementation detail, never a hard precondition.
33
+ */
34
+ export declare function useGameAudioContextOptional(): GameAudioContextValue | null;
29
35
  export interface GameAudioProviderProps {
30
36
  /** Sound manifest — keys mapped to SoundEntry definitions */
31
37
  manifest: AudioManifest;
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * GameAudioToggle
3
3
  *
4
- * A small mute/unmute button for game HUDs.
5
- * Must be rendered inside a <GameAudioProvider> tree.
4
+ * A small mute/unmute button for game HUDs. Self-contained: inside a
5
+ * <GameAudioProvider> it drives the shared audio state; standalone it falls back
6
+ * to a local muted state so it renders without a provider (the provider is an
7
+ * implementation detail, not a precondition).
6
8
  *
7
9
  * Shows 🔊 when sound is on and 🔇 when muted.
8
10
  *