@almadar/ui 2.1.8 → 2.1.10

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,7 +1,7 @@
1
1
  import { useTheme, useUISlots } from './chunk-BTXQJGFB.js';
2
- import { cn, debugGroup, debug, debugGroupEnd, getNestedValue, isDebugEnabled } from './chunk-KKCVDUK7.js';
3
2
  import { useTranslate, useQuerySingleton } from './chunk-JLEMVREZ.js';
4
3
  import { useEventBus } from './chunk-YXZM3WCF.js';
4
+ import { cn, debugGroup, debug, debugGroupEnd, getNestedValue, isDebugEnabled } from './chunk-KKCVDUK7.js';
5
5
  import { __publicField } from './chunk-PKBMQBKP.js';
6
6
  import * as React41 from 'react';
7
7
  import React41__default, { useCallback, useRef, useState, useLayoutEffect, useEffect, createContext, useMemo, useContext, Suspense } from 'react';
@@ -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
  {
@@ -1,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/katex@0.16.28/node_modules/katex/dist/katex.min.css */
1
+ /* node_modules/.pnpm/katex@0.16.33/node_modules/katex/dist/katex.min.css */
2
2
  @font-face {
3
3
  font-display: block;
4
4
  font-family: KaTeX_AMS;
@@ -213,7 +213,7 @@
213
213
  border-color: currentColor;
214
214
  }
215
215
  .katex .katex-version:after {
216
- content: "0.16.28";
216
+ content: "0.16.33";
217
217
  }
218
218
  .katex .katex-mathml {
219
219
  clip: rect(1px, 1px, 1px, 1px);
@@ -988,6 +988,15 @@
988
988
  .katex svg {
989
989
  fill: currentColor;
990
990
  stroke: currentColor;
991
+ display: block;
992
+ height: inherit;
993
+ position: absolute;
994
+ width: 100%;
995
+ }
996
+ .katex svg path {
997
+ stroke: none;
998
+ }
999
+ .katex svg {
991
1000
  fill-rule: nonzero;
992
1001
  fill-opacity: 1;
993
1002
  stroke-width: 1;
@@ -997,13 +1006,6 @@
997
1006
  stroke-dasharray: none;
998
1007
  stroke-dashoffset: 0;
999
1008
  stroke-opacity: 1;
1000
- display: block;
1001
- height: inherit;
1002
- position: absolute;
1003
- width: 100%;
1004
- }
1005
- .katex svg path {
1006
- stroke: none;
1007
1009
  }
1008
1010
  .katex img {
1009
1011
  border-style: none;
@@ -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
@@ -1,17 +1,17 @@
1
- import { DEFAULT_CONFIG, renderStateMachineToDomData, parseContentSegments } from '../chunk-N6DJVKZ6.js';
2
1
  import { useAuthContext } from '../chunk-6OACETQB.js';
3
2
  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';
3
+ import { DEFAULT_CONFIG, renderStateMachineToDomData, parseContentSegments } from '../chunk-N6DJVKZ6.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';
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-XDCOHA5C.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-XDCOHA5C.js';
7
7
  import '../chunk-BTXQJGFB.js';
8
- import { cn, getNestedValue } from '../chunk-KKCVDUK7.js';
9
- export { cn } from '../chunk-KKCVDUK7.js';
10
8
  import { useTranslate } from '../chunk-JLEMVREZ.js';
11
9
  export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useQuerySingleton, useTranslate } from '../chunk-JLEMVREZ.js';
12
10
  import { useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
13
11
  export { useEmitEvent, useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
14
12
  export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-7NEWMNNU.js';
13
+ import { cn, getNestedValue } from '../chunk-KKCVDUK7.js';
14
+ export { cn } from '../chunk-KKCVDUK7.js';
15
15
  export { clearEntities, getAllEntities, getByType, getEntity, getSingleton, removeEntity, spawnEntity, updateEntity, updateSingleton } from '../chunk-N7MVUW4R.js';
16
16
  import { __publicField } from '../chunk-PKBMQBKP.js';
17
17
  import * as React from 'react';
@@ -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,4 +1,4 @@
1
- /* ../../node_modules/.pnpm/katex@0.16.28/node_modules/katex/dist/katex.min.css */
1
+ /* node_modules/.pnpm/katex@0.16.33/node_modules/katex/dist/katex.min.css */
2
2
  @font-face {
3
3
  font-display: block;
4
4
  font-family: KaTeX_AMS;
@@ -213,7 +213,7 @@
213
213
  border-color: currentColor;
214
214
  }
215
215
  .katex .katex-version:after {
216
- content: "0.16.28";
216
+ content: "0.16.33";
217
217
  }
218
218
  .katex .katex-mathml {
219
219
  clip: rect(1px, 1px, 1px, 1px);
@@ -988,6 +988,15 @@
988
988
  .katex svg {
989
989
  fill: currentColor;
990
990
  stroke: currentColor;
991
+ display: block;
992
+ height: inherit;
993
+ position: absolute;
994
+ width: 100%;
995
+ }
996
+ .katex svg path {
997
+ stroke: none;
998
+ }
999
+ .katex svg {
991
1000
  fill-rule: nonzero;
992
1001
  fill-opacity: 1;
993
1002
  stroke-width: 1;
@@ -997,13 +1006,6 @@
997
1006
  stroke-dasharray: none;
998
1007
  stroke-dashoffset: 0;
999
1008
  stroke-opacity: 1;
1000
- display: block;
1001
- height: inherit;
1002
- position: absolute;
1003
- width: 100%;
1004
- }
1005
- .katex svg path {
1006
- stroke: none;
1007
1009
  }
1008
1010
  .katex img {
1009
1011
  border-style: none;
@@ -1,12 +1,12 @@
1
- import { SuspenseConfigProvider } from '../chunk-BS6DAANP.js';
1
+ import { SuspenseConfigProvider } from '../chunk-XDCOHA5C.js';
2
2
  import { ThemeProvider } from '../chunk-BTXQJGFB.js';
3
- import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from '../chunk-45CTDYBT.js';
4
- import '../chunk-KKCVDUK7.js';
5
3
  import { SelectionProvider, EntityDataProvider } from '../chunk-JLEMVREZ.js';
6
4
  export { SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-JLEMVREZ.js';
7
5
  import { useEventBus, EventBusProvider } from '../chunk-YXZM3WCF.js';
8
6
  export { EventBusContext, EventBusProvider } from '../chunk-YXZM3WCF.js';
9
7
  import '../chunk-7NEWMNNU.js';
8
+ import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from '../chunk-45CTDYBT.js';
9
+ import '../chunk-KKCVDUK7.js';
10
10
  import { useOfflineExecutor } from '../chunk-PL7MD6GF.js';
11
11
  import '../chunk-PKBMQBKP.js';
12
12
  import { createContext, useState, useCallback, useMemo, useContext, useRef, useEffect } from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.1.8",
3
+ "version": "2.1.10",
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",