@almadar/ui 2.1.11 → 2.4.0

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.
@@ -716,6 +716,12 @@ interface GameCanvas3DEventConfig {
716
716
  /** Event name for camera changes */
717
717
  cameraChangeEvent?: string;
718
718
  }
719
+ /** Minimal mouse event interface — satisfied by both React.MouseEvent and ThreeEvent<MouseEvent> */
720
+ interface MinimalMouseEvent {
721
+ clientX: number;
722
+ clientY: number;
723
+ button: number;
724
+ }
719
725
  interface UseGameCanvas3DEventsOptions extends GameCanvas3DEventConfig {
720
726
  /** Callback for tile clicks (direct) */
721
727
  onTileClick?: (tile: IsometricTile, event: React.MouseEvent) => void;
@@ -738,7 +744,7 @@ interface UseGameCanvas3DEventsReturn {
738
744
  /** Handle feature click - emits event and calls callback */
739
745
  handleFeatureClick: (feature: IsometricFeature, event: React.MouseEvent) => void;
740
746
  /** Handle canvas click - emits event and calls callback */
741
- handleCanvasClick: (event: React.MouseEvent) => void;
747
+ handleCanvasClick: (event: MinimalMouseEvent) => void;
742
748
  /** Handle tile hover - emits event and calls callback */
743
749
  handleTileHover: (tile: IsometricTile | null, event: React.MouseEvent) => void;
744
750
  /** Handle unit animation - emits event and calls callback */
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default from 'react';
3
- import { U as UISlotManager, a as UISlot, S as SlotContent } from '../useUISlots-D0mttBSP.js';
4
- export { R as RenderUIConfig, b as SlotAnimation, c as SlotChangeCallback } from '../useUISlots-D0mttBSP.js';
3
+ import { U as UISlotManager, a as UISlot, S as SlotContent } from '../useUISlots-BBjNvQtb.js';
4
+ export { R as RenderUIConfig, b as SlotAnimation, c as SlotChangeCallback } from '../useUISlots-BBjNvQtb.js';
5
5
  import { T as ThemeProviderProps } from '../ThemeContext-D9xUORq5.js';
6
6
  export { B as BUILT_IN_THEMES, C as ColorMode, D as DesignTheme, R as ResolvedMode, a as ThemeContext, b as ThemeDefinition, c as ThemeProvider, u as useTheme } from '../ThemeContext-D9xUORq5.js';
7
7
 
@@ -1,6 +1,6 @@
1
- import { ThemeProvider, useTheme } from '../chunk-BTXQJGFB.js';
2
- export { BUILT_IN_THEMES, ThemeContext_default as ThemeContext, ThemeProvider, UISlotContext, UISlotProvider, useSlotContent, useSlotHasContent, useTheme, useUISlots } from '../chunk-BTXQJGFB.js';
3
- import '../chunk-7NEWMNNU.js';
1
+ import { ThemeProvider, useTheme } from '../chunk-DKQN5FVU.js';
2
+ export { BUILT_IN_THEMES, ThemeContext_default as ThemeContext, ThemeProvider, UISlotContext, UISlotProvider, useSlotContent, useSlotHasContent, useTheme, useUISlots } from '../chunk-DKQN5FVU.js';
3
+ import '../chunk-3JGAROCW.js';
4
4
  import '../chunk-PKBMQBKP.js';
5
5
  import { createContext, useCallback, useMemo, useContext } from 'react';
6
6
  import { jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  import { OrbitalSchema } from '@almadar/core';
2
2
  import { E as EventBusContextType, a as EventListener } from '../event-bus-types-CjJduURa.js';
3
3
  export { K as KFlowEvent, U as Unsubscribe } from '../event-bus-types-CjJduURa.js';
4
- export { D as DEFAULT_SLOTS, R as RenderUIConfig, b as SlotAnimation, c as SlotChangeCallback, S as SlotContent, a as UISlot, U as UISlotManager, u as useUISlotManager } from '../useUISlots-D0mttBSP.js';
4
+ export { D as DEFAULT_SLOTS, R as RenderUIConfig, b as SlotAnimation, c as SlotChangeCallback, S as SlotContent, a as UISlot, U as UISlotManager, u as useUISlotManager } from '../useUISlots-BBjNvQtb.js';
5
5
  import * as React from 'react';
6
6
  import React__default, { ReactNode } from 'react';
7
7
  import * as _tanstack_react_query from '@tanstack/react-query';
@@ -1,7 +1,8 @@
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';
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-42WRQA7T.js';
2
2
  import '../chunk-3HJHHULT.js';
3
- export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useQuerySingleton, useTranslate } from '../chunk-JLEMVREZ.js';
3
+ export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useQuerySingleton, useTranslate } from '../chunk-GOZKH7QW.js';
4
4
  export { useEmitEvent, useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
5
- export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-7NEWMNNU.js';
5
+ export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-3JGAROCW.js';
6
+ import '../chunk-TSETXL2E.js';
6
7
  export { clearEntities, getAllEntities, getByType, getEntity, getSingleton, removeEntity, spawnEntity, updateEntity, updateSingleton } from '../chunk-N7MVUW4R.js';
7
8
  import '../chunk-PKBMQBKP.js';
@@ -1,107 +1,6 @@
1
+ import { en_default } from '../chunk-TSETXL2E.js';
1
2
  import '../chunk-PKBMQBKP.js';
2
3
 
3
- // locales/en.json
4
- var en_default = {
5
- $meta: { locale: "en", direction: "ltr" },
6
- "common.save": "Save",
7
- "common.cancel": "Cancel",
8
- "common.delete": "Delete",
9
- "common.close": "Close",
10
- "common.confirm": "Are you sure?",
11
- "common.create": "Create",
12
- "common.edit": "Edit",
13
- "common.view": "View",
14
- "common.add": "Add",
15
- "common.remove": "Remove",
16
- "common.search": "Search...",
17
- "common.filter": "Filter",
18
- "common.actions": "Actions",
19
- "common.yes": "Yes",
20
- "common.no": "No",
21
- "common.ok": "OK",
22
- "common.done": "Done",
23
- "common.apply": "Apply",
24
- "common.reset": "Reset",
25
- "common.refresh": "Refresh",
26
- "common.export": "Export",
27
- "common.import": "Import",
28
- "common.copy": "Copy",
29
- "common.settings": "Settings",
30
- "nav.previous": "Previous",
31
- "nav.next": "Next",
32
- "nav.back": "Back",
33
- "nav.home": "Home",
34
- "form.submit": "Submit",
35
- "form.saving": "Saving...",
36
- "form.required": "This field is required",
37
- "form.invalidEmail": "Enter a valid email address",
38
- "form.selectPlaceholder": "Select {{label}}...",
39
- "form.searchPlaceholder": "Search {{entity}}...",
40
- "table.empty.title": "No items found",
41
- "table.empty.description": "No items to display.",
42
- "table.search.placeholder": "Search...",
43
- "table.pagination.showing": "Showing {{start}} to {{end}} of {{total}} results",
44
- "table.pagination.page": "Page {{page}} of {{totalPages}}",
45
- "table.bulk.selected": "{{count}} selected",
46
- "table.loading": "Loading...",
47
- "status.loading": "Loading...",
48
- "status.scheduled": "Scheduled",
49
- "status.inProgress": "In Progress",
50
- "status.completed": "Completed",
51
- "status.cancelled": "Cancelled",
52
- "status.pending": "Pending",
53
- "status.active": "Active",
54
- "status.inactive": "Inactive",
55
- "status.draft": "Draft",
56
- "status.archived": "Archived",
57
- "error.generic": "Something went wrong",
58
- "error.retry": "Try again",
59
- "error.notFound": "Not found",
60
- "error.loadFailed": "Failed to load: {{message}}",
61
- "error.configMissing": "Configuration not found for: {{id}}",
62
- "common.loading": "Loading...",
63
- "common.saveChanges": "Save Changes",
64
- "common.retry": "Retry",
65
- "common.open": "Open",
66
- "common.back": "Back",
67
- "empty.noItems": "No items",
68
- "empty.noData": "No data available",
69
- "empty.noItemsYet": "No items yet",
70
- "empty.noItemsAdded": "No items added yet",
71
- "empty.noOptionsFound": "No options found",
72
- "list.addItemPlaceholder": "Add new item...",
73
- "error.occurred": "An error occurred",
74
- "error.failedToLoad": "Failed to load data",
75
- "wizard.back": "Back",
76
- "wizard.next": "Next",
77
- "wizard.complete": "Complete",
78
- "wizard.stepOf": "Step {{current}} of {{total}}",
79
- "pagination.previous": "Previous",
80
- "pagination.next": "Next",
81
- "pagination.total": "Total:",
82
- "pagination.show": "Show:",
83
- "pagination.goTo": "Go to:",
84
- "pagination.go": "Go",
85
- "auth.signIn": "Sign in",
86
- "auth.signOut": "Sign out",
87
- "dialog.confirm": "Confirm",
88
- "dialog.cancel": "Cancel",
89
- "dialog.loading": "Loading...",
90
- "dialog.delete.title": "Delete {{item}}?",
91
- "dialog.delete.message": "This action cannot be undone.",
92
- "trait.availableActions": "Available Actions",
93
- "trait.transitions": "Transitions",
94
- "trait.availableNow": "Available now",
95
- "book.startReading": "Start Reading",
96
- "book.tableOfContents": "Table of Contents",
97
- "book.partNumber": "Part {{number}}",
98
- "book.print": "Print",
99
- "book.previousPage": "Previous page",
100
- "book.nextPage": "Next page",
101
- "quiz.showAnswer": "Show answer",
102
- "quiz.hideAnswer": "Hide answer"
103
- };
104
-
105
4
  // locales/ar.json
106
5
  var ar_default = {
107
6
  $meta: { locale: "ar", direction: "rtl" },
@@ -1,13 +1,14 @@
1
- import { SuspenseConfigProvider } from '../chunk-CTNDYHXY.js';
2
- import { ThemeProvider } from '../chunk-BTXQJGFB.js';
3
- import { SelectionProvider, EntityDataProvider } from '../chunk-JLEMVREZ.js';
4
- export { SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-JLEMVREZ.js';
1
+ import { SuspenseConfigProvider } from '../chunk-HWZL7IZG.js';
2
+ import { ThemeProvider } from '../chunk-DKQN5FVU.js';
3
+ import { SelectionProvider, EntityDataProvider } from '../chunk-GOZKH7QW.js';
4
+ export { SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-GOZKH7QW.js';
5
5
  import { useEventBus, EventBusProvider } from '../chunk-YXZM3WCF.js';
6
6
  export { EventBusContext, EventBusProvider } from '../chunk-YXZM3WCF.js';
7
- import '../chunk-7NEWMNNU.js';
7
+ import '../chunk-3JGAROCW.js';
8
8
  import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from '../chunk-45CTDYBT.js';
9
9
  import '../chunk-KKCVDUK7.js';
10
- import { useOfflineExecutor } from '../chunk-PL7MD6GF.js';
10
+ import '../chunk-TSETXL2E.js';
11
+ import { useOfflineExecutor } from '../chunk-K2D5D3WK.js';
11
12
  import '../chunk-PKBMQBKP.js';
12
13
  import { createContext, useState, useCallback, useMemo, useContext, useRef, useEffect } from 'react';
13
14
  import { jsx, Fragment } from 'react/jsx-runtime';
@@ -344,7 +344,7 @@ declare function getSlotDefinition(slot: UISlot): SlotDefinition;
344
344
  /**
345
345
  * Check if a slot is a portal slot.
346
346
  */
347
- declare function isPortalSlot(slot: UISlot): boolean;
347
+ declare function isPortalSlot(slot: string): boolean;
348
348
  /**
349
349
  * Check if a slot is an inline slot.
350
350
  */