@almadar/ui 2.15.2 → 2.15.4
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.
- package/dist/{chunk-QBJ6CWDR.js → chunk-R3OXC4BR.js} +2 -2
- package/dist/{chunk-SL6WFPKX.js → chunk-TUZENSM7.js} +18 -7
- package/dist/components/index.js +4 -4
- package/dist/components/molecules/Carousel.d.ts +4 -2
- package/dist/providers/index.js +4 -4
- package/dist/runtime/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SuspenseConfigProvider } from './chunk-
|
|
2
|
-
import { ThemeProvider } from './chunk-DKQN5FVU.js';
|
|
1
|
+
import { SuspenseConfigProvider } from './chunk-TUZENSM7.js';
|
|
3
2
|
import { SelectionProvider, EntityDataProvider } from './chunk-QU2X55WH.js';
|
|
4
3
|
import { useEventBus, EventBusProvider } from './chunk-YXZM3WCF.js';
|
|
4
|
+
import { ThemeProvider } from './chunk-DKQN5FVU.js';
|
|
5
5
|
import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from './chunk-XL7WB2O5.js';
|
|
6
6
|
import { useOfflineExecutor } from './chunk-K2D5D3WK.js';
|
|
7
7
|
import { createContext, useState, useCallback, useMemo, useContext, useRef, useEffect } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAssetLoader, useGameCanvas3DEvents, ModelLoader, Canvas3DLoadingState, Canvas3DErrorBoundary, UnitRenderer, TileRenderer, Scene3D, PhysicsObject3D, Lighting3D, FeatureRenderer3D, FeatureRenderer, Camera3D } from './chunk-4N3BAPDB.js';
|
|
2
|
-
import { useTheme, useUISlots } from './chunk-DKQN5FVU.js';
|
|
3
2
|
import { useTranslate, useInfiniteScroll, useQuerySingleton, useLongPress, useSwipeGesture, useDragReorder, usePullToRefresh, useAuthContext } from './chunk-QU2X55WH.js';
|
|
4
3
|
import { useEventBus, useEventListener } from './chunk-YXZM3WCF.js';
|
|
4
|
+
import { useTheme, useUISlots } from './chunk-DKQN5FVU.js';
|
|
5
5
|
import { cn, DEFAULT_CONFIG, debugGroup, debug, debugGroupEnd, updateAssetStatus, bindCanvasCapture, getNestedValue, isDebugEnabled, renderStateMachineToDomData, parseContentSegments, isDebugEnabled2, onDebugToggle, subscribeToTraitChanges, subscribeToTickChanges, subscribeToGuardChanges, subscribeToDebugEvents, subscribeToVerification, getEntitySnapshot, getSummary, getBridgeHealth, getTransitions, getAllChecks, getDebugEvents, getGuardHistory, getAllTicks, getAllTraits } from './chunk-XL7WB2O5.js';
|
|
6
6
|
import { isPortalSlot } from './chunk-K2D5D3WK.js';
|
|
7
7
|
import { __publicField } from './chunk-PKBMQBKP.js';
|
|
@@ -6479,7 +6479,11 @@ var Tabs = ({
|
|
|
6479
6479
|
orientation = "horizontal",
|
|
6480
6480
|
className
|
|
6481
6481
|
}) => {
|
|
6482
|
-
const
|
|
6482
|
+
const rawItems = items ?? tabs ?? [];
|
|
6483
|
+
const safeItems = rawItems.map((item) => ({
|
|
6484
|
+
...item,
|
|
6485
|
+
id: item.id || item.value || ""
|
|
6486
|
+
}));
|
|
6483
6487
|
const eventBus = useEventBus();
|
|
6484
6488
|
const { t } = useTranslate();
|
|
6485
6489
|
const initialActive = safeItems.find((item) => item.active)?.id;
|
|
@@ -13350,6 +13354,7 @@ function useSafeEventBus10() {
|
|
|
13350
13354
|
var Carousel = ({
|
|
13351
13355
|
items,
|
|
13352
13356
|
renderItem,
|
|
13357
|
+
children,
|
|
13353
13358
|
autoPlay = false,
|
|
13354
13359
|
autoPlayInterval = 5e3,
|
|
13355
13360
|
showDots = true,
|
|
@@ -13484,7 +13489,7 @@ var Carousel = ({
|
|
|
13484
13489
|
style: {
|
|
13485
13490
|
scrollSnapAlign: "start"
|
|
13486
13491
|
},
|
|
13487
|
-
children: renderItem(item, index)
|
|
13492
|
+
children: (renderItem ?? children)?.(item, index)
|
|
13488
13493
|
},
|
|
13489
13494
|
index
|
|
13490
13495
|
))
|
|
@@ -27722,12 +27727,18 @@ var Timeline = ({
|
|
|
27722
27727
|
if (propItems) return propItems;
|
|
27723
27728
|
if (entityData.length === 0) return [];
|
|
27724
27729
|
return entityData.map((record, idx) => {
|
|
27725
|
-
const
|
|
27726
|
-
|
|
27727
|
-
|
|
27730
|
+
const resolveField = (f) => {
|
|
27731
|
+
if (typeof f === "string") return f;
|
|
27732
|
+
if (f && typeof f === "object" && "name" in f) return String(f.name);
|
|
27733
|
+
return "";
|
|
27734
|
+
};
|
|
27735
|
+
const resolvedFields = fields?.map(resolveField) ?? [];
|
|
27736
|
+
const titleField = resolvedFields[0] || "title";
|
|
27737
|
+
const descField = resolvedFields[1] || "description";
|
|
27738
|
+
const dateField = resolvedFields.find(
|
|
27728
27739
|
(f) => f.toLowerCase().includes("date")
|
|
27729
27740
|
) || "date";
|
|
27730
|
-
const statusField =
|
|
27741
|
+
const statusField = resolvedFields.find(
|
|
27731
27742
|
(f) => f.toLowerCase().includes("status")
|
|
27732
27743
|
) || "status";
|
|
27733
27744
|
return {
|
package/dist/components/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export { ENTITY_EVENTS, useAgentChat, useCompile, useConnectGitHub, useCreateEntity, useDeepAgentGeneration, useDeleteEntity, useDisconnectGitHub, useEntities, useEntitiesByType, useEntity as useEntityById, useEntityMutations, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInput, useOrbitalHistory, useOrbitalMutations, usePhysics, usePinchZoom, usePlayer, usePreview, useResolvedEntity, useSelectedEntity, useSendOrbitalEvent, useSingletonEntity, useUIEvents, useUpdateEntity, useValidation } from '../chunk-IRIGCHP4.js';
|
|
2
2
|
export { clearEntities, getAllEntities, getByType, getEntity, getSingleton, removeEntity, spawnEntity, updateEntity, updateSingleton } from '../chunk-N7MVUW4R.js';
|
|
3
3
|
import '../chunk-3HJHHULT.js';
|
|
4
|
-
import { VStack, HStack, Typography, Button, Icon, Box, Card, DataTable, Badge, Toast } from '../chunk-
|
|
5
|
-
export { ALL_PRESETS, AR_BOOK_FIELDS, Accordion, ActionButton, ActionButtons, Card2 as ActionCard, ActionPalette, ActionTile, Alert, AnimatedCounter, AuthLayout, Avatar, Badge, BattleBoard, BattleTemplate, BookChapterView, BookCoverPage, BookNavBar, BookTableOfContents, BookViewer, Box, Breadcrumb, BuilderBoard, Button, ButtonGroup, CalendarGrid, CanvasEffect, Card, CardBody, CardContent, CardFooter, CardGrid, CardHeader, CardTitle, Carousel, CastleBoard, CastleTemplate, Center, Chart, ChartLegend, Checkbox, ChoiceButton, ClassifierBoard, CodeBlock, CodeView, CodeViewer, CombatLog, ComboCounter, ConditionalWrapper, ConfettiEffect, ConfirmDialog, Container, ContentRenderer, ControlButton, CounterTemplate, CraftingRecipe, DIAMOND_TOP_Y, DPad, DamageNumber, DashboardGrid, DashboardLayout, DataGrid, DataList, DataTable, DateRangeSelector, DayCell, DebuggerBoard, DetailPanel, DialogueBox, DialogueBubble, Divider, DocumentViewer, StateMachineView as DomStateMachineVisualizer, Drawer, DrawerSlot, EmptyState, EnemyPlate, EntityDisplayEvents, ErrorBoundary, ErrorState, EventHandlerBoard, EventLog, FEATURE_COLORS, FLOOR_HEIGHT, FilterGroup, Flex, FlipCard, FlipContainer, FloatingActionButton, Form, FormField, FormSectionHeader, GameAudioContext, GameAudioProvider, GameAudioToggle, GameCanvas2D, GameHud, GameMenu, GameOverScreen, GameShell, GameTemplate, GenericAppTemplate, GraphCanvas, GraphView, Grid, HStack, Header, Heading, HealthBar, HealthPanel, IDENTITY_BOOK_FIELDS, Icon, InfiniteScrollSentinel, Input, InputGroup, InventoryGrid, InventoryPanel, IsometricCanvas, ItemSlot, JazariStateMachine, Label, LawReferenceTooltip, Lightbox, LineChart, List, LoadingState, MapView, MarkdownContent, MediaGallery, Menu, Meter, MiniMap, Modal, ModalSlot, Navigation, NegotiatorBoard, NumberStepper, ObjectRulePanel, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, Overlay, PageHeader, Pagination, PlatformerCanvas, Popover, PowerupSlots, ProgressBar, ProgressDots, PullToRefresh, QuestTracker, QuizBlock, Radio, RangeSlider, RelationSelect, RepeatableFormSection, ResourceBar, ResourceCounter, RuleEditor, RuntimeDebugger, ScaledDiagram, ScoreBoard, ScoreDisplay, SearchInput, Section, Select, SequenceBar, SequencerBoard, SidePanel, Sidebar, SignaturePad, SimpleGrid, SimulationCanvas, SimulationControls, SimulationGraph, SimulatorBoard, Skeleton, SlotContentRenderer, SortableList, Spacer, Spinner, Split, SplitPane, Sprite, Stack, StarRating, StatBadge, StatCard, StatDisplay, StateArchitectBoard, StateIndicator, StateMachineView, StateNode, StatusDot, StatusEffect, SwipeableRow, Switch, TILE_HEIGHT, TILE_WIDTH, TabbedContainer, Table, Tabs, Text, TextHighlight, Textarea, ThemeSelector, ThemeToggle, TimeSlotCell, Timeline, TimerDisplay, Toast, ToastSlot, Tooltip, TraitSlot, TraitStateViewer, TransitionArrow, TrendIndicator, TurnIndicator, TurnPanel, TypewriterText, Typography, UISlotComponent, UISlotRenderer, UncontrolledBattleBoard, UnitCommandBar, UploadDropZone, VStack, VariablePanel, ViolationAlert, WaypointMarker, WizardContainer, WizardNavigation, WizardProgress, WorldMapBoard, WorldMapTemplate, XPBar, drawSprite, isoToScreen, mapBookData, pendulum, projectileMotion, resolveFieldMap, screenToIso, springOscillator, useBattleState, useCamera, useGameAudio, useGameAudioContext, useImageCache } from '../chunk-
|
|
4
|
+
import { VStack, HStack, Typography, Button, Icon, Box, Card, DataTable, Badge, Toast } from '../chunk-TUZENSM7.js';
|
|
5
|
+
export { ALL_PRESETS, AR_BOOK_FIELDS, Accordion, ActionButton, ActionButtons, Card2 as ActionCard, ActionPalette, ActionTile, Alert, AnimatedCounter, AuthLayout, Avatar, Badge, BattleBoard, BattleTemplate, BookChapterView, BookCoverPage, BookNavBar, BookTableOfContents, BookViewer, Box, Breadcrumb, BuilderBoard, Button, ButtonGroup, CalendarGrid, CanvasEffect, Card, CardBody, CardContent, CardFooter, CardGrid, CardHeader, CardTitle, Carousel, CastleBoard, CastleTemplate, Center, Chart, ChartLegend, Checkbox, ChoiceButton, ClassifierBoard, CodeBlock, CodeView, CodeViewer, CombatLog, ComboCounter, ConditionalWrapper, ConfettiEffect, ConfirmDialog, Container, ContentRenderer, ControlButton, CounterTemplate, CraftingRecipe, DIAMOND_TOP_Y, DPad, DamageNumber, DashboardGrid, DashboardLayout, DataGrid, DataList, DataTable, DateRangeSelector, DayCell, DebuggerBoard, DetailPanel, DialogueBox, DialogueBubble, Divider, DocumentViewer, StateMachineView as DomStateMachineVisualizer, Drawer, DrawerSlot, EmptyState, EnemyPlate, EntityDisplayEvents, ErrorBoundary, ErrorState, EventHandlerBoard, EventLog, FEATURE_COLORS, FLOOR_HEIGHT, FilterGroup, Flex, FlipCard, FlipContainer, FloatingActionButton, Form, FormField, FormSectionHeader, GameAudioContext, GameAudioProvider, GameAudioToggle, GameCanvas2D, GameHud, GameMenu, GameOverScreen, GameShell, GameTemplate, GenericAppTemplate, GraphCanvas, GraphView, Grid, HStack, Header, Heading, HealthBar, HealthPanel, IDENTITY_BOOK_FIELDS, Icon, InfiniteScrollSentinel, Input, InputGroup, InventoryGrid, InventoryPanel, IsometricCanvas, ItemSlot, JazariStateMachine, Label, LawReferenceTooltip, Lightbox, LineChart, List, LoadingState, MapView, MarkdownContent, MediaGallery, Menu, Meter, MiniMap, Modal, ModalSlot, Navigation, NegotiatorBoard, NumberStepper, ObjectRulePanel, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, Overlay, PageHeader, Pagination, PlatformerCanvas, Popover, PowerupSlots, ProgressBar, ProgressDots, PullToRefresh, QuestTracker, QuizBlock, Radio, RangeSlider, RelationSelect, RepeatableFormSection, ResourceBar, ResourceCounter, RuleEditor, RuntimeDebugger, ScaledDiagram, ScoreBoard, ScoreDisplay, SearchInput, Section, Select, SequenceBar, SequencerBoard, SidePanel, Sidebar, SignaturePad, SimpleGrid, SimulationCanvas, SimulationControls, SimulationGraph, SimulatorBoard, Skeleton, SlotContentRenderer, SortableList, Spacer, Spinner, Split, SplitPane, Sprite, Stack, StarRating, StatBadge, StatCard, StatDisplay, StateArchitectBoard, StateIndicator, StateMachineView, StateNode, StatusDot, StatusEffect, SwipeableRow, Switch, TILE_HEIGHT, TILE_WIDTH, TabbedContainer, Table, Tabs, Text, TextHighlight, Textarea, ThemeSelector, ThemeToggle, TimeSlotCell, Timeline, TimerDisplay, Toast, ToastSlot, Tooltip, TraitSlot, TraitStateViewer, TransitionArrow, TrendIndicator, TurnIndicator, TurnPanel, TypewriterText, Typography, UISlotComponent, UISlotRenderer, UncontrolledBattleBoard, UnitCommandBar, UploadDropZone, VStack, VariablePanel, ViolationAlert, WaypointMarker, WizardContainer, WizardNavigation, WizardProgress, WorldMapBoard, WorldMapTemplate, XPBar, drawSprite, isoToScreen, mapBookData, pendulum, projectileMotion, resolveFieldMap, screenToIso, springOscillator, useBattleState, useCamera, useGameAudio, useGameAudioContext, useImageCache } from '../chunk-TUZENSM7.js';
|
|
6
6
|
import '../chunk-4N3BAPDB.js';
|
|
7
|
-
import '../chunk-DKQN5FVU.js';
|
|
8
7
|
import { useTranslate } from '../chunk-QU2X55WH.js';
|
|
9
8
|
export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useAuthContext, useDragReorder, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useInfiniteScroll, useLongPress, usePullToRefresh, useQuerySingleton, useSwipeGesture, useTranslate } from '../chunk-QU2X55WH.js';
|
|
10
9
|
import { useEventBus } from '../chunk-YXZM3WCF.js';
|
|
11
10
|
export { useEmitEvent, useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
|
|
11
|
+
import '../chunk-DKQN5FVU.js';
|
|
12
12
|
export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-3JGAROCW.js';
|
|
13
13
|
import { cn } from '../chunk-XL7WB2O5.js';
|
|
14
14
|
export { cn } from '../chunk-XL7WB2O5.js';
|
|
15
|
-
import '../chunk-K2D5D3WK.js';
|
|
16
15
|
import '../chunk-2XXSUIOK.js';
|
|
16
|
+
import '../chunk-K2D5D3WK.js';
|
|
17
17
|
import { __publicField } from '../chunk-PKBMQBKP.js';
|
|
18
18
|
import React, { useRef, useCallback, useEffect, useState } from 'react';
|
|
19
19
|
import { ChevronDown, ChevronRight } from 'lucide-react';
|
|
@@ -10,7 +10,9 @@ export interface CarouselProps<T = Record<string, unknown>> {
|
|
|
10
10
|
/** Array of items to display as slides */
|
|
11
11
|
items: T[];
|
|
12
12
|
/** Render function for each slide */
|
|
13
|
-
renderItem
|
|
13
|
+
renderItem?: (item: T, index: number) => React.ReactNode;
|
|
14
|
+
/** Children-as-function fallback for renderItem (compiler compatibility) */
|
|
15
|
+
children?: (item: T, index: number) => React.ReactNode;
|
|
14
16
|
/** Enable auto-play rotation */
|
|
15
17
|
autoPlay?: boolean;
|
|
16
18
|
/** Auto-play interval in milliseconds (default: 5000) */
|
|
@@ -28,4 +30,4 @@ export interface CarouselProps<T = Record<string, unknown>> {
|
|
|
28
30
|
/** Additional CSS classes */
|
|
29
31
|
className?: string;
|
|
30
32
|
}
|
|
31
|
-
export declare const Carousel: <T = Record<string, unknown>>({ items, renderItem, autoPlay, autoPlayInterval, showDots, showArrows, loop, slideChangeEvent, slideChangePayload, className, }: CarouselProps<T>) => React.ReactElement | null;
|
|
33
|
+
export declare const Carousel: <T = Record<string, unknown>>({ items, renderItem, children, autoPlay, autoPlayInterval, showDots, showArrows, loop, slideChangeEvent, slideChangePayload, className, }: CarouselProps<T>) => React.ReactElement | null;
|
package/dist/providers/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { FetchedDataContext, FetchedDataProvider, OfflineModeProvider, OrbitalProvider, VerificationProvider, useFetchedData, useFetchedDataContext, useFetchedEntity, useOfflineMode, useOptionalOfflineMode } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { FetchedDataContext, FetchedDataProvider, OfflineModeProvider, OrbitalProvider, VerificationProvider, useFetchedData, useFetchedDataContext, useFetchedEntity, useOfflineMode, useOptionalOfflineMode } from '../chunk-R3OXC4BR.js';
|
|
2
|
+
import '../chunk-TUZENSM7.js';
|
|
3
3
|
import '../chunk-4N3BAPDB.js';
|
|
4
|
-
import '../chunk-DKQN5FVU.js';
|
|
5
4
|
export { SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-QU2X55WH.js';
|
|
6
5
|
export { EventBusContext, EventBusProvider } from '../chunk-YXZM3WCF.js';
|
|
6
|
+
import '../chunk-DKQN5FVU.js';
|
|
7
7
|
import '../chunk-3JGAROCW.js';
|
|
8
8
|
import '../chunk-XL7WB2O5.js';
|
|
9
|
-
import '../chunk-K2D5D3WK.js';
|
|
10
9
|
import '../chunk-2XXSUIOK.js';
|
|
10
|
+
import '../chunk-K2D5D3WK.js';
|
|
11
11
|
import '../chunk-PKBMQBKP.js';
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import '../chunk-IRIGCHP4.js';
|
|
2
2
|
import '../chunk-N7MVUW4R.js';
|
|
3
3
|
import '../chunk-3HJHHULT.js';
|
|
4
|
-
import { useFetchedDataContext } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import { useFetchedDataContext } from '../chunk-R3OXC4BR.js';
|
|
5
|
+
import '../chunk-TUZENSM7.js';
|
|
6
6
|
import '../chunk-4N3BAPDB.js';
|
|
7
|
-
import '../chunk-DKQN5FVU.js';
|
|
8
7
|
import '../chunk-QU2X55WH.js';
|
|
9
8
|
import { useEventBus } from '../chunk-YXZM3WCF.js';
|
|
9
|
+
import '../chunk-DKQN5FVU.js';
|
|
10
10
|
import '../chunk-3JGAROCW.js';
|
|
11
11
|
import { registerTrait, unregisterTrait, updateTraitState, recordTransition } from '../chunk-XL7WB2O5.js';
|
|
12
|
-
import '../chunk-K2D5D3WK.js';
|
|
13
12
|
import '../chunk-2XXSUIOK.js';
|
|
13
|
+
import '../chunk-K2D5D3WK.js';
|
|
14
14
|
import '../chunk-PKBMQBKP.js';
|
|
15
15
|
import { createContext, useMemo, useContext, useState, useRef, useEffect, useCallback } from 'react';
|
|
16
16
|
import { isCircuitEvent, schemaToIR, getPage, clearSchemaCache as clearSchemaCache$1 } from '@almadar/core';
|