@almadar/ui 2.0.0 → 2.0.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.
@@ -1,4 +1,4 @@
1
- /* node_modules/.pnpm/katex@0.16.33/node_modules/katex/dist/katex.min.css */
1
+ /* ../../node_modules/.pnpm/katex@0.16.28/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.33";
216
+ content: "0.16.28";
217
217
  }
218
218
  .katex .katex-mathml {
219
219
  clip: rect(1px, 1px, 1px, 1px);
@@ -988,15 +988,6 @@
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 {
1000
991
  fill-rule: nonzero;
1001
992
  fill-opacity: 1;
1002
993
  stroke-width: 1;
@@ -1006,6 +997,13 @@
1006
997
  stroke-dasharray: none;
1007
998
  stroke-dashoffset: 0;
1008
999
  stroke-opacity: 1;
1000
+ display: block;
1001
+ height: inherit;
1002
+ position: absolute;
1003
+ width: 100%;
1004
+ }
1005
+ .katex svg path {
1006
+ stroke: none;
1009
1007
  }
1010
1008
  .katex img {
1011
1009
  border-style: none;
@@ -1,17 +1,17 @@
1
+ import { DEFAULT_CONFIG, renderStateMachineToDomData, parseContentSegments } from '../chunk-N6DJVKZ6.js';
1
2
  import { useAuthContext } from '../chunk-BKC4XU44.js';
2
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-BKC4XU44.js';
3
- import { DEFAULT_CONFIG, renderStateMachineToDomData, parseContentSegments } from '../chunk-N6DJVKZ6.js';
4
4
  import '../chunk-XSEDIUM6.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, Drawer, Toast, Tabs, Input, ThemeToggle, HealthBar, ScoreDisplay, StateIndicator, Container, EntityDisplayEvents } from '../chunk-YNP2OBK4.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-YNP2OBK4.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, Drawer, Toast, Tabs, Input, ThemeToggle, HealthBar, ScoreDisplay, StateIndicator, Container, EntityDisplayEvents } from '../chunk-X3IKFHFT.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-X3IKFHFT.js';
7
7
  import '../chunk-BTXQJGFB.js';
8
+ import { cn, getNestedValue } from '../chunk-KKCVDUK7.js';
9
+ export { cn } from '../chunk-KKCVDUK7.js';
8
10
  import { useTranslate } from '../chunk-PE2H3NAW.js';
9
11
  export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useQuerySingleton, useTranslate } from '../chunk-PE2H3NAW.js';
10
12
  import { useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
11
13
  export { useEmitEvent, useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
12
14
  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 React25 from 'react';
@@ -1,4 +1,4 @@
1
- /* node_modules/.pnpm/katex@0.16.33/node_modules/katex/dist/katex.min.css */
1
+ /* ../../node_modules/.pnpm/katex@0.16.28/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.33";
216
+ content: "0.16.28";
217
217
  }
218
218
  .katex .katex-mathml {
219
219
  clip: rect(1px, 1px, 1px, 1px);
@@ -988,15 +988,6 @@
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 {
1000
991
  fill-rule: nonzero;
1001
992
  fill-opacity: 1;
1002
993
  stroke-width: 1;
@@ -1006,6 +997,13 @@
1006
997
  stroke-dasharray: none;
1007
998
  stroke-dashoffset: 0;
1008
999
  stroke-opacity: 1;
1000
+ display: block;
1001
+ height: inherit;
1002
+ position: absolute;
1003
+ width: 100%;
1004
+ }
1005
+ .katex svg path {
1006
+ stroke: none;
1009
1007
  }
1010
1008
  .katex img {
1011
1009
  border-style: none;
@@ -1,12 +1,12 @@
1
- import { SuspenseConfigProvider } from '../chunk-YNP2OBK4.js';
1
+ import { SuspenseConfigProvider } from '../chunk-X3IKFHFT.js';
2
2
  import { ThemeProvider } from '../chunk-BTXQJGFB.js';
3
+ import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from '../chunk-45CTDYBT.js';
4
+ import '../chunk-KKCVDUK7.js';
3
5
  import { SelectionProvider, EntityDataProvider } from '../chunk-PE2H3NAW.js';
4
6
  export { SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-PE2H3NAW.js';
5
7
  import { useEventBus, EventBusProvider } from '../chunk-YXZM3WCF.js';
6
8
  export { EventBusContext, EventBusProvider } from '../chunk-YXZM3WCF.js';
7
9
  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';
@@ -126,7 +126,7 @@ function useClientEffects(effects, options) {
126
126
  }
127
127
  execute(effects);
128
128
  }, [effects, enabled, execute]);
129
- const prevEffectsRef = useRef();
129
+ const prevEffectsRef = useRef(void 0);
130
130
  useEffect(() => {
131
131
  if (effects !== prevEffectsRef.current) {
132
132
  prevEffectsRef.current = effects;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",
@@ -70,7 +70,7 @@
70
70
  "access": "public"
71
71
  },
72
72
  "dependencies": {
73
- "@almadar/core": ">=2.0.0",
73
+ "@almadar/core": ">=2.1.0",
74
74
  "@almadar/evaluator": ">=2.0.0",
75
75
  "@almadar/patterns": ">=2.0.0",
76
76
  "clsx": "^2.1.0",
@@ -121,7 +121,8 @@
121
121
  "jsdom": "^24.0.0",
122
122
  "@storybook/addon-docs": "^10.2.6",
123
123
  "@types/react-syntax-highlighter": "^15.5.0",
124
- "katex": "^0.16.0"
124
+ "katex": "^0.16.0",
125
+ "@types/node": "^22.0.0"
125
126
  },
126
127
  "repository": {
127
128
  "type": "git",
@@ -138,7 +139,7 @@
138
139
  ],
139
140
  "homepage": "https://github.com/almadar-io/almadar#readme",
140
141
  "scripts": {
141
- "build": "tsup",
142
+ "build": "tsup && tsc --declaration --emitDeclarationOnly --outDir dist --skipLibCheck || true",
142
143
  "build:watch": "tsup --watch",
143
144
  "storybook": "storybook dev -p 6006",
144
145
  "build-storybook": "storybook build -o storybook-static",
@@ -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';
2
3
  import { useTranslate, useQuerySingleton, useEntityList } from './chunk-PE2H3NAW.js';
3
4
  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';