@almadar/ui 2.1.4 → 2.1.5
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
1
|
// lib/api-client.ts
|
|
2
|
-
var API_BASE_URL = typeof
|
|
2
|
+
var API_BASE_URL = typeof process !== "undefined" && process.env?.VITE_API_URL ? process.env.VITE_API_URL : "/api";
|
|
3
3
|
var ApiError = class extends Error {
|
|
4
4
|
constructor(status, statusText, message) {
|
|
5
5
|
super(message || `API Error: ${status} ${statusText}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { apiClient } from './chunk-
|
|
1
|
+
import { apiClient } from './chunk-3HJHHULT.js';
|
|
2
2
|
import { SelectionContext, entityDataKeys, useEntityList } from './chunk-JLEMVREZ.js';
|
|
3
3
|
import { useEventBus } from './chunk-YXZM3WCF.js';
|
|
4
4
|
import { subscribe, getSnapshot, clearEntities, removeEntity, updateSingleton, updateEntity, spawnEntity, getSingleton, getAllEntities, getByType, getEntity } from './chunk-N7MVUW4R.js';
|
|
@@ -1353,7 +1353,7 @@ function useAuthContext() {
|
|
|
1353
1353
|
signOut: void 0
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
1356
|
-
var API_BASE = typeof
|
|
1356
|
+
var API_BASE = typeof process !== "undefined" && process.env?.VITE_API_URL ? process.env.VITE_API_URL : "http://localhost:3000";
|
|
1357
1357
|
function getUserId() {
|
|
1358
1358
|
return localStorage.getItem("userId") || "anonymous";
|
|
1359
1359
|
}
|
|
@@ -2543,8 +2543,8 @@ interface SelectPayload {
|
|
|
2543
2543
|
ids: (string | number)[];
|
|
2544
2544
|
}
|
|
2545
2545
|
interface EntityDisplayProps<T = unknown> {
|
|
2546
|
-
/** Entity data injected by the runtime (array for lists, single object for detail) */
|
|
2547
|
-
entity?: T | readonly T[];
|
|
2546
|
+
/** Entity name (string) or data injected by the runtime (array for lists, single object for detail) */
|
|
2547
|
+
entity?: string | T | readonly T[];
|
|
2548
2548
|
/** Additional CSS classes */
|
|
2549
2549
|
className?: string;
|
|
2550
2550
|
/** Loading state indicator */
|
|
@@ -2646,7 +2646,7 @@ interface MetricDefinition {
|
|
|
2646
2646
|
/** Value format (e.g., 'currency', 'percent', 'number') */
|
|
2647
2647
|
format?: "currency" | "percent" | "number" | string;
|
|
2648
2648
|
}
|
|
2649
|
-
interface StatCardProps extends EntityDisplayProps
|
|
2649
|
+
interface StatCardProps extends EntityDisplayProps {
|
|
2650
2650
|
/** Main label */
|
|
2651
2651
|
label?: string;
|
|
2652
2652
|
/** Title (alias for label) */
|
|
@@ -2784,7 +2784,7 @@ type FieldDef$2 = string | {
|
|
|
2784
2784
|
key: string;
|
|
2785
2785
|
header?: string;
|
|
2786
2786
|
};
|
|
2787
|
-
interface DetailPanelProps extends EntityDisplayProps
|
|
2787
|
+
interface DetailPanelProps extends EntityDisplayProps {
|
|
2788
2788
|
title?: string;
|
|
2789
2789
|
subtitle?: string;
|
|
2790
2790
|
status?: {
|
|
@@ -3523,7 +3523,7 @@ type FieldDef$1 = string | {
|
|
|
3523
3523
|
key: string;
|
|
3524
3524
|
header?: string;
|
|
3525
3525
|
};
|
|
3526
|
-
interface ListProps extends EntityDisplayProps
|
|
3526
|
+
interface ListProps extends EntityDisplayProps {
|
|
3527
3527
|
/** Entity type name for display */
|
|
3528
3528
|
entityType?: string;
|
|
3529
3529
|
selectable?: boolean;
|
|
@@ -3579,7 +3579,7 @@ type FieldDef = string | {
|
|
|
3579
3579
|
key: string;
|
|
3580
3580
|
header?: string;
|
|
3581
3581
|
};
|
|
3582
|
-
interface CardGridProps extends EntityDisplayProps
|
|
3582
|
+
interface CardGridProps extends EntityDisplayProps {
|
|
3583
3583
|
/** Minimum width of each card (default: 280px) */
|
|
3584
3584
|
minCardWidth?: number;
|
|
3585
3585
|
/** Maximum number of columns */
|
|
@@ -4005,7 +4005,7 @@ declare const JazariStateMachine: React__default.FC<JazariStateMachineProps>;
|
|
|
4005
4005
|
* - entityAware: false
|
|
4006
4006
|
*/
|
|
4007
4007
|
|
|
4008
|
-
interface ContentRendererProps extends EntityDisplayProps
|
|
4008
|
+
interface ContentRendererProps extends EntityDisplayProps {
|
|
4009
4009
|
/** Raw content string — auto-parsed into segments */
|
|
4010
4010
|
content?: string;
|
|
4011
4011
|
/** Pre-parsed segments (overrides content) */
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_CONFIG, renderStateMachineToDomData, parseContentSegments } from '../chunk-N6DJVKZ6.js';
|
|
2
|
-
import { useAuthContext } from '../chunk-
|
|
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-
|
|
4
|
-
import '../chunk-
|
|
2
|
+
import { useAuthContext } from '../chunk-6OACETQB.js';
|
|
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
|
+
import '../chunk-3HJHHULT.js';
|
|
5
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, HealthBar, ScoreDisplay, StateIndicator, Container, EntityDisplayEvents } from '../chunk-Y7AFNUT2.js';
|
|
6
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-Y7AFNUT2.js';
|
|
7
7
|
import '../chunk-BTXQJGFB.js';
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
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-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
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';
|
|
2
|
+
import '../chunk-3HJHHULT.js';
|
|
3
3
|
export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useQuerySingleton, useTranslate } from '../chunk-JLEMVREZ.js';
|
|
4
4
|
export { useEmitEvent, useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
|
|
5
5
|
export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-7NEWMNNU.js';
|
package/dist/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DEFAULT_CONFIG, extractOutputsFromTransitions, extractStateMachine, formatGuard, getEffectSummary, parseContentSegments, parseMarkdownWithCodeBlocks, renderStateMachineToDomData, renderStateMachineToSvg } from '../chunk-N6DJVKZ6.js';
|
|
2
|
-
export { ApiError, apiClient } from '../chunk-
|
|
2
|
+
export { ApiError, apiClient } from '../chunk-3HJHHULT.js';
|
|
3
3
|
export { bindEventBus, bindTraitStateGetter, clearVerification, getAllChecks, getBridgeHealth, getSnapshot, getSummary, getTransitions, getTransitionsForTrait, recordTransition, registerCheck, subscribeToVerification, updateBridgeHealth, updateCheck, waitForTransition } from '../chunk-45CTDYBT.js';
|
|
4
4
|
export { cn, debug, debugCollision, debugError, debugGameState, debugGroup, debugGroupEnd, debugInput, debugPhysics, debugTable, debugTime, debugTimeEnd, debugWarn, formatNestedFieldLabel, getNestedValue, isDebugEnabled } from '../chunk-KKCVDUK7.js';
|
|
5
5
|
import '../chunk-PKBMQBKP.js';
|