@almadar/ui 2.1.8 → 2.1.9

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.
@@ -1,5 +1,5 @@
1
- import { useTheme, useUISlots } from './chunk-BTXQJGFB.js';
2
1
  import { cn, debugGroup, debug, debugGroupEnd, getNestedValue, isDebugEnabled } from './chunk-KKCVDUK7.js';
2
+ import { useTheme, useUISlots } from './chunk-BTXQJGFB.js';
3
3
  import { useTranslate, useQuerySingleton } from './chunk-JLEMVREZ.js';
4
4
  import { useEventBus } from './chunk-YXZM3WCF.js';
5
5
  import { __publicField } from './chunk-PKBMQBKP.js';
@@ -14,8 +14,8 @@ import ReactMarkdown from 'react-markdown';
14
14
  import remarkGfm from 'remark-gfm';
15
15
  import remarkMath from 'remark-math';
16
16
  import rehypeKatex from 'rehype-katex';
17
- import SyntaxHighlighter from 'react-syntax-highlighter/dist/cjs/prism';
18
- import dark from 'react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus';
17
+ import SyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism';
18
+ import dark from 'react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus';
19
19
 
20
20
  var variantStyles = {
21
21
  primary: [
@@ -9243,6 +9243,9 @@ function UISlotComponent({
9243
9243
  const suspenseConfig = useContext(SuspenseConfigContext);
9244
9244
  const content = slots[slot];
9245
9245
  if (children !== void 0) {
9246
+ if (pattern === "clear") {
9247
+ return null;
9248
+ }
9246
9249
  return /* @__PURE__ */ jsx(
9247
9250
  Box,
9248
9251
  {
@@ -4221,24 +4221,24 @@ declare const SplitPane: React__default.FC<SplitPaneProps>;
4221
4221
  */
4222
4222
 
4223
4223
  interface DashboardGridCell {
4224
- /** Unique cell ID */
4225
- id: string;
4224
+ /** Optional unique cell ID */
4225
+ id?: string;
4226
4226
  /** Content to render in the cell */
4227
- content: React__default.ReactNode;
4227
+ content?: React__default.ReactNode;
4228
4228
  /** Number of columns this cell spans (1-4) */
4229
4229
  colSpan?: 1 | 2 | 3 | 4;
4230
4230
  /** Number of rows this cell spans (1-2) */
4231
4231
  rowSpan?: 1 | 2;
4232
+ /** Allow additional schema-driven properties */
4233
+ [key: string]: unknown;
4232
4234
  }
4233
- interface DashboardGridProps {
4235
+ interface DashboardGridProps extends EntityDisplayProps {
4234
4236
  /** Number of columns */
4235
4237
  columns?: 2 | 3 | 4;
4236
4238
  /** Gap between cells */
4237
4239
  gap?: "sm" | "md" | "lg";
4238
4240
  /** Cell definitions */
4239
4241
  cells: DashboardGridCell[];
4240
- /** Additional CSS classes */
4241
- className?: string;
4242
4242
  }
4243
4243
  /**
4244
4244
  * DashboardGrid - Multi-column widget grid
@@ -2,11 +2,11 @@ import { DEFAULT_CONFIG, renderStateMachineToDomData, parseContentSegments } fro
2
2
  import { useAuthContext } from '../chunk-6OACETQB.js';
3
3
  export { ENTITY_EVENTS, useAgentChat, useAuthContext, useCompile, useConnectGitHub, useCreateEntity, useDeepAgentGeneration, useDeleteEntity, useDisconnectGitHub, useEntities, useEntitiesByType, useEntity as useEntityById, useEntityMutations, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInput, useOrbitalHistory, useOrbitalMutations, usePhysics, usePlayer, usePreview, useResolvedEntity, useSelectedEntity, useSendOrbitalEvent, useSingletonEntity, useUIEvents, useUpdateEntity, useValidation } from '../chunk-6OACETQB.js';
4
4
  import '../chunk-3HJHHULT.js';
5
- import { VStack, HStack, Typography, Button, Icon, Box, Card, Avatar, Badge, SearchInput, Checkbox, Menu as Menu$1, Pagination, LoadingState, EmptyState, Modal, ErrorState, QuizBlock, CodeBlock, ScaledDiagram, MarkdownContent, Divider, ProgressBar, Stack, Select, Drawer, Toast, Tabs, Input, ThemeToggle, EntityDisplayEvents, HealthBar, ScoreDisplay, StateIndicator, Container } from '../chunk-BS6DAANP.js';
6
- export { Accordion, Card2 as ActionCard, Alert, Avatar, Badge, Box, Breadcrumb, Button, ButtonGroup, Card, CardBody, CardContent, CardFooter, CardGrid, CardHeader, CardTitle, Center, Checkbox, CodeBlock, ConditionalWrapper, Container, ControlButton, DataTable, DetailPanel, Divider, Drawer, EmptyState, EntityDisplayEvents, ErrorBoundary, ErrorState, FilterGroup, Flex, FloatingActionButton, Form, FormField, FormSectionHeader, Grid, HStack, Heading, HealthBar, Icon, Input, InputGroup, Label, LawReferenceTooltip, LoadingState, MarkdownContent, MasterDetail, Menu, Modal, Overlay, PageHeader, Pagination, Popover, ProgressBar, QuizBlock, Radio, RelationSelect, RepeatableFormSection, ScaledDiagram, ScoreDisplay, SearchInput, Select, SidePanel, SimpleGrid, Skeleton, SlotContentRenderer, Spacer, Spinner, Sprite, Stack, StatCard, StateIndicator, Switch, Tabs, Text, TextHighlight, Textarea, ThemeSelector, ThemeToggle, Toast, Tooltip, Typography, UISlotComponent, UISlotRenderer, VStack, ViolationAlert, WizardNavigation, WizardProgress, drawSprite } from '../chunk-BS6DAANP.js';
7
- import '../chunk-BTXQJGFB.js';
5
+ import { VStack, HStack, Typography, Button, Icon, Box, Card, Avatar, Badge, SearchInput, Checkbox, Menu as Menu$1, Pagination, LoadingState, EmptyState, Modal, ErrorState, QuizBlock, CodeBlock, ScaledDiagram, MarkdownContent, Divider, ProgressBar, Stack, Select, Drawer, Toast, Tabs, Input, ThemeToggle, EntityDisplayEvents, HealthBar, ScoreDisplay, StateIndicator, Container } from '../chunk-XTLMM6V5.js';
6
+ export { Accordion, Card2 as ActionCard, Alert, Avatar, Badge, Box, Breadcrumb, Button, ButtonGroup, Card, CardBody, CardContent, CardFooter, CardGrid, CardHeader, CardTitle, Center, Checkbox, CodeBlock, ConditionalWrapper, Container, ControlButton, DataTable, DetailPanel, Divider, Drawer, EmptyState, EntityDisplayEvents, ErrorBoundary, ErrorState, FilterGroup, Flex, FloatingActionButton, Form, FormField, FormSectionHeader, Grid, HStack, Heading, HealthBar, Icon, Input, InputGroup, Label, LawReferenceTooltip, LoadingState, MarkdownContent, MasterDetail, Menu, Modal, Overlay, PageHeader, Pagination, Popover, ProgressBar, QuizBlock, Radio, RelationSelect, RepeatableFormSection, ScaledDiagram, ScoreDisplay, SearchInput, Select, SidePanel, SimpleGrid, Skeleton, SlotContentRenderer, Spacer, Spinner, Sprite, Stack, StatCard, StateIndicator, Switch, Tabs, Text, TextHighlight, Textarea, ThemeSelector, ThemeToggle, Toast, Tooltip, Typography, UISlotComponent, UISlotRenderer, VStack, ViolationAlert, WizardNavigation, WizardProgress, drawSprite } from '../chunk-XTLMM6V5.js';
8
7
  import { cn, getNestedValue } from '../chunk-KKCVDUK7.js';
9
8
  export { cn } from '../chunk-KKCVDUK7.js';
9
+ import '../chunk-BTXQJGFB.js';
10
10
  import { useTranslate } from '../chunk-JLEMVREZ.js';
11
11
  export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useQuerySingleton, useTranslate } from '../chunk-JLEMVREZ.js';
12
12
  import { useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
@@ -3637,8 +3637,9 @@ var DashboardGrid = ({
3637
3637
  cells,
3638
3638
  className
3639
3639
  }) => {
3640
+ const { t: _t } = useTranslate();
3640
3641
  return /* @__PURE__ */ jsx(
3641
- "div",
3642
+ Box,
3642
3643
  {
3643
3644
  className: cn(
3644
3645
  "grid w-full",
@@ -3646,17 +3647,17 @@ var DashboardGrid = ({
3646
3647
  gapStyles2[gap],
3647
3648
  className
3648
3649
  ),
3649
- children: cells.map((cell) => /* @__PURE__ */ jsx(
3650
- "div",
3650
+ children: cells.map((cell, idx) => /* @__PURE__ */ jsx(
3651
+ Box,
3651
3652
  {
3652
3653
  className: cn(
3653
3654
  "border-2 border-[var(--color-border)] bg-[var(--color-card)]",
3654
- colSpanStyles[cell.colSpan || 1],
3655
- rowSpanStyles[cell.rowSpan || 1]
3655
+ colSpanStyles[cell.colSpan ?? 1],
3656
+ rowSpanStyles[cell.rowSpan ?? 1]
3656
3657
  ),
3657
3658
  children: cell.content
3658
3659
  },
3659
- cell.id
3660
+ cell.id != null ? String(cell.id) : idx
3660
3661
  ))
3661
3662
  }
3662
3663
  );
@@ -1,7 +1,7 @@
1
- import { SuspenseConfigProvider } from '../chunk-BS6DAANP.js';
2
- import { ThemeProvider } from '../chunk-BTXQJGFB.js';
1
+ import { SuspenseConfigProvider } from '../chunk-XTLMM6V5.js';
3
2
  import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from '../chunk-45CTDYBT.js';
4
3
  import '../chunk-KKCVDUK7.js';
4
+ import { ThemeProvider } from '../chunk-BTXQJGFB.js';
5
5
  import { SelectionProvider, EntityDataProvider } from '../chunk-JLEMVREZ.js';
6
6
  export { SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-JLEMVREZ.js';
7
7
  import { useEventBus, EventBusProvider } from '../chunk-YXZM3WCF.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",
@@ -89,7 +89,7 @@
89
89
  "@tanstack/react-query": "^5.0.0",
90
90
  "three": "^0.160.0",
91
91
  "@react-three/fiber": "^8.15.0",
92
- "@react-three/drei": "^9.92.0"
92
+ "@react-three/drei": "^9.92.0 || ^10.0.0"
93
93
  },
94
94
  "devDependencies": {
95
95
  "react": "^19.0.0",