@almadar/ui 2.11.0 → 2.11.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.
- package/dist/{chunk-7M2KEJTF.js → chunk-D54SBLJJ.js} +27 -15
- package/dist/{chunk-KPOLHTPA.js → chunk-SSJZTICC.js} +2 -2
- package/dist/{chunk-6D5QMEUS.js → chunk-WCTZ7WZX.js} +2 -1
- package/dist/components/index.js +4 -4
- package/dist/lib/index.js +1 -1
- package/dist/providers/index.js +3 -3
- package/dist/runtime/index.js +3 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useTheme, useUISlots } from './chunk-DKQN5FVU.js';
|
|
2
2
|
import { useTranslate, useInfiniteScroll, useQuerySingleton, useLongPress, useSwipeGesture, useDragReorder, usePullToRefresh } from './chunk-WGJIL4YR.js';
|
|
3
3
|
import { useEventBus } from './chunk-YXZM3WCF.js';
|
|
4
|
-
import { cn, debugGroup, debug, debugGroupEnd, updateAssetStatus, bindCanvasCapture, getNestedValue, isDebugEnabled } from './chunk-
|
|
4
|
+
import { cn, debugGroup, debug, debugGroupEnd, updateAssetStatus, bindCanvasCapture, getNestedValue, isDebugEnabled } from './chunk-WCTZ7WZX.js';
|
|
5
5
|
import { isPortalSlot } from './chunk-K2D5D3WK.js';
|
|
6
6
|
import { __publicField } from './chunk-PKBMQBKP.js';
|
|
7
7
|
import * as LucideIcons from 'lucide-react';
|
|
@@ -18534,18 +18534,33 @@ function UISlotComponent({
|
|
|
18534
18534
|
}
|
|
18535
18535
|
);
|
|
18536
18536
|
}
|
|
18537
|
+
function getOrCreatePortalRoot() {
|
|
18538
|
+
let root = document.getElementById("ui-slot-portal-root");
|
|
18539
|
+
if (!root) {
|
|
18540
|
+
root = document.createElement("div");
|
|
18541
|
+
root.id = "ui-slot-portal-root";
|
|
18542
|
+
root.style.position = "relative";
|
|
18543
|
+
root.style.zIndex = "9999";
|
|
18544
|
+
document.body.appendChild(root);
|
|
18545
|
+
}
|
|
18546
|
+
const themed = document.querySelector('[data-theme*="-"]') ?? document.querySelector("[data-theme]");
|
|
18547
|
+
if (themed) {
|
|
18548
|
+
const theme = themed.getAttribute("data-theme");
|
|
18549
|
+
if (theme && root.getAttribute("data-theme") !== theme) {
|
|
18550
|
+
root.setAttribute("data-theme", theme);
|
|
18551
|
+
}
|
|
18552
|
+
}
|
|
18553
|
+
return root;
|
|
18554
|
+
}
|
|
18537
18555
|
function CompiledPortal({ slot, className, pattern, sourceTrait, children }) {
|
|
18538
18556
|
const [portalRoot, setPortalRoot] = useState(null);
|
|
18539
18557
|
const eventBus = useUISlots();
|
|
18540
18558
|
useEffect(() => {
|
|
18541
|
-
|
|
18542
|
-
if (!root) {
|
|
18543
|
-
root = document.createElement("div");
|
|
18544
|
-
root.id = "ui-slot-portal-root";
|
|
18545
|
-
document.body.appendChild(root);
|
|
18546
|
-
}
|
|
18547
|
-
setPortalRoot(root);
|
|
18559
|
+
setPortalRoot(getOrCreatePortalRoot());
|
|
18548
18560
|
}, []);
|
|
18561
|
+
useEffect(() => {
|
|
18562
|
+
if (portalRoot) getOrCreatePortalRoot();
|
|
18563
|
+
});
|
|
18549
18564
|
const handleDismiss = () => {
|
|
18550
18565
|
eventBus.clear(slot);
|
|
18551
18566
|
};
|
|
@@ -18606,14 +18621,11 @@ function SlotPortal({
|
|
|
18606
18621
|
}) {
|
|
18607
18622
|
const [portalRoot, setPortalRoot] = useState(null);
|
|
18608
18623
|
useEffect(() => {
|
|
18609
|
-
|
|
18610
|
-
if (!root) {
|
|
18611
|
-
root = document.createElement("div");
|
|
18612
|
-
root.id = "ui-slot-portal-root";
|
|
18613
|
-
document.body.appendChild(root);
|
|
18614
|
-
}
|
|
18615
|
-
setPortalRoot(root);
|
|
18624
|
+
setPortalRoot(getOrCreatePortalRoot());
|
|
18616
18625
|
}, []);
|
|
18626
|
+
useEffect(() => {
|
|
18627
|
+
if (portalRoot) getOrCreatePortalRoot();
|
|
18628
|
+
});
|
|
18617
18629
|
if (!portalRoot) return null;
|
|
18618
18630
|
let wrapper;
|
|
18619
18631
|
switch (slot) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SuspenseConfigProvider } from './chunk-
|
|
1
|
+
import { SuspenseConfigProvider } from './chunk-D54SBLJJ.js';
|
|
2
2
|
import { ThemeProvider } from './chunk-DKQN5FVU.js';
|
|
3
3
|
import { SelectionProvider, EntityDataProvider } from './chunk-WGJIL4YR.js';
|
|
4
4
|
import { useEventBus, EventBusProvider } from './chunk-YXZM3WCF.js';
|
|
5
|
-
import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from './chunk-
|
|
5
|
+
import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from './chunk-WCTZ7WZX.js';
|
|
6
6
|
import { useOfflineExecutor } from './chunk-K2D5D3WK.js';
|
|
7
7
|
import { createContext, useState, useCallback, useMemo, useContext, useRef, useEffect } from 'react';
|
|
8
8
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -229,7 +229,8 @@ function bindEventBus(eventBus) {
|
|
|
229
229
|
exposeOnWindow();
|
|
230
230
|
if (window.__orbitalVerification) {
|
|
231
231
|
window.__orbitalVerification.sendEvent = (event, payload) => {
|
|
232
|
-
|
|
232
|
+
const prefixed = event.startsWith("UI:") ? event : `UI:${event}`;
|
|
233
|
+
eventBus.emit(prefixed, payload);
|
|
233
234
|
};
|
|
234
235
|
const eventLog = [];
|
|
235
236
|
window.__orbitalVerification.eventLog = eventLog;
|
package/dist/components/index.js
CHANGED
|
@@ -3,17 +3,17 @@ import { useAuthContext } from '../chunk-GTIAVPI5.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, usePinchZoom, usePlayer, usePreview, useResolvedEntity, useSelectedEntity, useSendOrbitalEvent, useSingletonEntity, useUIEvents, useUpdateEntity, useValidation } from '../chunk-GTIAVPI5.js';
|
|
4
4
|
export { clearEntities, getAllEntities, getByType, getEntity, getSingleton, removeEntity, spawnEntity, updateEntity, updateSingleton } from '../chunk-N7MVUW4R.js';
|
|
5
5
|
import '../chunk-3HJHHULT.js';
|
|
6
|
-
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, isoToScreen, IsometricCanvas_default, Stack, Select, Drawer, Toast, Tabs, Input, ThemeToggle, TILE_WIDTH, EntityDisplayEvents, StateIndicator, Accordion, ButtonGroup, Container } from '../chunk-
|
|
7
|
-
export { ALL_PRESETS, Accordion, ActionButton, ActionButtons, Card2 as ActionCard, Alert, AnimatedCounter, Avatar, Badge, Box, Breadcrumb, Button, ButtonGroup, CalendarGrid, CanvasEffect, Card, CardBody, CardContent, CardFooter, CardGrid, CardHeader, CardTitle, Carousel, Center, Chart, ChartLegend, Checkbox, ChoiceButton, CodeBlock, CombatLog, ComboCounter, ConditionalWrapper, ConfettiEffect, Container, ControlButton, CraftingRecipe, DIAMOND_TOP_Y, DPad, DamageNumber, DataGrid, DataList, DataTable, DateRangeSelector, DayCell, DetailPanel, DialogueBox, DialogueBubble, Divider, Drawer, EmptyState, EnemyPlate, EntityDisplayEvents, ErrorBoundary, ErrorState, FEATURE_COLORS, FLOOR_HEIGHT, FilterGroup, Flex, FlipCard, FlipContainer, FloatingActionButton, Form, FormField, FormSectionHeader, GameCanvas2D, GameHud, GameMenu, GameOverScreen, GraphView, Grid, HStack, Heading, HealthBar, HealthPanel, Icon, InfiniteScrollSentinel, Input, InputGroup, InventoryGrid, InventoryPanel, IsometricCanvas, ItemSlot, Label, LawReferenceTooltip, Lightbox, LineChart, LoadingState, MapView, MarkdownContent, MasterDetail, Menu, Meter, MiniMap, Modal, NumberStepper, Overlay, PageHeader, Pagination, PlatformerCanvas, Popover, PowerupSlots, ProgressBar, ProgressDots, PullToRefresh, QuestTracker, QuizBlock, Radio, RangeSlider, RelationSelect, RepeatableFormSection, ResourceBar, ResourceCounter, ScaledDiagram, ScoreBoard, ScoreDisplay, SearchInput, Select, SidePanel, SimpleGrid, SimulationCanvas, SimulationControls, SimulationGraph, Skeleton, SlotContentRenderer, SortableList, Spacer, Spinner, Sprite, Stack, StarRating, StatBadge, StatCard, StatDisplay, StateIndicator, StatusDot, StatusEffect, SwipeableRow, Switch, TILE_HEIGHT, TILE_WIDTH, Tabs, Text, TextHighlight, Textarea, ThemeSelector, ThemeToggle, TimeSlotCell, TimerDisplay, Toast, Tooltip, TrendIndicator, TurnIndicator, TurnPanel, TypewriterText, Typography, UISlotComponent, UISlotRenderer, UnitCommandBar, UploadDropZone, VStack, ViolationAlert, WaypointMarker, WizardNavigation, WizardProgress, XPBar, drawSprite, isoToScreen, pendulum, projectileMotion, screenToIso, springOscillator, useCamera, useImageCache } from '../chunk-
|
|
6
|
+
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, isoToScreen, IsometricCanvas_default, Stack, Select, Drawer, Toast, Tabs, Input, ThemeToggle, TILE_WIDTH, EntityDisplayEvents, StateIndicator, Accordion, ButtonGroup, Container } from '../chunk-D54SBLJJ.js';
|
|
7
|
+
export { ALL_PRESETS, Accordion, ActionButton, ActionButtons, Card2 as ActionCard, Alert, AnimatedCounter, Avatar, Badge, Box, Breadcrumb, Button, ButtonGroup, CalendarGrid, CanvasEffect, Card, CardBody, CardContent, CardFooter, CardGrid, CardHeader, CardTitle, Carousel, Center, Chart, ChartLegend, Checkbox, ChoiceButton, CodeBlock, CombatLog, ComboCounter, ConditionalWrapper, ConfettiEffect, Container, ControlButton, CraftingRecipe, DIAMOND_TOP_Y, DPad, DamageNumber, DataGrid, DataList, DataTable, DateRangeSelector, DayCell, DetailPanel, DialogueBox, DialogueBubble, Divider, Drawer, EmptyState, EnemyPlate, EntityDisplayEvents, ErrorBoundary, ErrorState, FEATURE_COLORS, FLOOR_HEIGHT, FilterGroup, Flex, FlipCard, FlipContainer, FloatingActionButton, Form, FormField, FormSectionHeader, GameCanvas2D, GameHud, GameMenu, GameOverScreen, GraphView, Grid, HStack, Heading, HealthBar, HealthPanel, Icon, InfiniteScrollSentinel, Input, InputGroup, InventoryGrid, InventoryPanel, IsometricCanvas, ItemSlot, Label, LawReferenceTooltip, Lightbox, LineChart, LoadingState, MapView, MarkdownContent, MasterDetail, Menu, Meter, MiniMap, Modal, NumberStepper, Overlay, PageHeader, Pagination, PlatformerCanvas, Popover, PowerupSlots, ProgressBar, ProgressDots, PullToRefresh, QuestTracker, QuizBlock, Radio, RangeSlider, RelationSelect, RepeatableFormSection, ResourceBar, ResourceCounter, ScaledDiagram, ScoreBoard, ScoreDisplay, SearchInput, Select, SidePanel, SimpleGrid, SimulationCanvas, SimulationControls, SimulationGraph, Skeleton, SlotContentRenderer, SortableList, Spacer, Spinner, Sprite, Stack, StarRating, StatBadge, StatCard, StatDisplay, StateIndicator, StatusDot, StatusEffect, SwipeableRow, Switch, TILE_HEIGHT, TILE_WIDTH, Tabs, Text, TextHighlight, Textarea, ThemeSelector, ThemeToggle, TimeSlotCell, TimerDisplay, Toast, Tooltip, TrendIndicator, TurnIndicator, TurnPanel, TypewriterText, Typography, UISlotComponent, UISlotRenderer, UnitCommandBar, UploadDropZone, VStack, ViolationAlert, WaypointMarker, WizardNavigation, WizardProgress, XPBar, drawSprite, isoToScreen, pendulum, projectileMotion, screenToIso, springOscillator, useCamera, useImageCache } from '../chunk-D54SBLJJ.js';
|
|
8
8
|
import '../chunk-DKQN5FVU.js';
|
|
9
9
|
import { useTranslate } from '../chunk-WGJIL4YR.js';
|
|
10
10
|
export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useDragReorder, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useInfiniteScroll, useLongPress, usePullToRefresh, useQuerySingleton, useSwipeGesture, useTranslate } from '../chunk-WGJIL4YR.js';
|
|
11
11
|
import { useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
|
|
12
12
|
export { useEmitEvent, useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
|
|
13
13
|
export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-3JGAROCW.js';
|
|
14
|
+
import { cn, getNestedValue, subscribeToVerification, getSummary, getBridgeHealth, getTransitions, getAllChecks } from '../chunk-WCTZ7WZX.js';
|
|
15
|
+
export { cn } from '../chunk-WCTZ7WZX.js';
|
|
14
16
|
import '../chunk-TSETXL2E.js';
|
|
15
|
-
import { cn, getNestedValue, subscribeToVerification, getSummary, getBridgeHealth, getTransitions, getAllChecks } from '../chunk-6D5QMEUS.js';
|
|
16
|
-
export { cn } from '../chunk-6D5QMEUS.js';
|
|
17
17
|
import '../chunk-K2D5D3WK.js';
|
|
18
18
|
import { __publicField } from '../chunk-PKBMQBKP.js';
|
|
19
19
|
import * as React44 from 'react';
|
package/dist/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DEFAULT_CONFIG, clearDebugEvents, clearEntityProvider, clearGuardHistory, clearTicks, clearTraits, extractOutputsFromTransitions, extractStateMachine, formatGuard, getAllTicks, getAllTraits, getDebugEvents, getEffectSummary, getEntitiesByType, getEntityById, getEntitySnapshot, getEventsBySource, getEventsByType, getGuardEvaluationsForTrait, getGuardHistory, getRecentEvents, getRecentGuardEvaluations, getTick, getTrait, initDebugShortcut, logDebugEvent, logEffectExecuted, logError, logEventFired, logInfo, logStateChange, logWarning, onDebugToggle, parseContentSegments, parseMarkdownWithCodeBlocks, recordGuardEvaluation, registerTick, registerTrait, renderStateMachineToDomData, renderStateMachineToSvg, setDebugEnabled, setEntityProvider, setTickActive, subscribeToDebugEvents, subscribeToGuardChanges, subscribeToTickChanges, subscribeToTraitChanges, toggleDebug, unregisterTick, unregisterTrait, updateGuardResult, updateTickExecution, updateTraitState } from '../chunk-3E73CE7J.js';
|
|
2
2
|
export { ApiError, apiClient } from '../chunk-3HJHHULT.js';
|
|
3
|
-
export { bindCanvasCapture, bindEventBus, bindTraitStateGetter, clearVerification, cn, debug, debugCollision, debugError, debugGameState, debugGroup, debugGroupEnd, debugInput, debugPhysics, debugTable, debugTime, debugTimeEnd, debugWarn, formatNestedFieldLabel, getAllChecks, getBridgeHealth, getNestedValue, getSnapshot, getSummary, getTransitions, getTransitionsForTrait, isDebugEnabled, recordTransition, registerCheck, subscribeToVerification, updateAssetStatus, updateBridgeHealth, updateCheck, waitForTransition } from '../chunk-
|
|
3
|
+
export { bindCanvasCapture, bindEventBus, bindTraitStateGetter, clearVerification, cn, debug, debugCollision, debugError, debugGameState, debugGroup, debugGroupEnd, debugInput, debugPhysics, debugTable, debugTime, debugTimeEnd, debugWarn, formatNestedFieldLabel, getAllChecks, getBridgeHealth, getNestedValue, getSnapshot, getSummary, getTransitions, getTransitionsForTrait, isDebugEnabled, recordTransition, registerCheck, subscribeToVerification, updateAssetStatus, updateBridgeHealth, updateCheck, waitForTransition } from '../chunk-WCTZ7WZX.js';
|
|
4
4
|
import '../chunk-PKBMQBKP.js';
|
package/dist/providers/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-SSJZTICC.js';
|
|
2
|
+
import '../chunk-D54SBLJJ.js';
|
|
3
3
|
import '../chunk-DKQN5FVU.js';
|
|
4
4
|
export { SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-WGJIL4YR.js';
|
|
5
5
|
export { EventBusContext, EventBusProvider } from '../chunk-YXZM3WCF.js';
|
|
6
6
|
import '../chunk-3JGAROCW.js';
|
|
7
|
+
import '../chunk-WCTZ7WZX.js';
|
|
7
8
|
import '../chunk-TSETXL2E.js';
|
|
8
|
-
import '../chunk-6D5QMEUS.js';
|
|
9
9
|
import '../chunk-K2D5D3WK.js';
|
|
10
10
|
import '../chunk-PKBMQBKP.js';
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import '../chunk-GTIAVPI5.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-SSJZTICC.js';
|
|
5
|
+
import '../chunk-D54SBLJJ.js';
|
|
6
6
|
import '../chunk-DKQN5FVU.js';
|
|
7
7
|
import '../chunk-WGJIL4YR.js';
|
|
8
8
|
import { useEventBus } from '../chunk-YXZM3WCF.js';
|
|
9
9
|
import '../chunk-3JGAROCW.js';
|
|
10
|
+
import '../chunk-WCTZ7WZX.js';
|
|
10
11
|
import '../chunk-TSETXL2E.js';
|
|
11
|
-
import '../chunk-6D5QMEUS.js';
|
|
12
12
|
import '../chunk-K2D5D3WK.js';
|
|
13
13
|
import '../chunk-PKBMQBKP.js';
|
|
14
14
|
import { createContext, useMemo, useContext, useState, useRef, useEffect, useCallback } from 'react';
|