@almadar/ui 1.0.13 → 1.0.15
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-4AIGHVQK.js → chunk-MLS5KU5U.js} +1 -1248
- package/dist/chunk-PKBMQBKP.js +5 -0
- package/dist/{chunk-AQREMI4N.js → chunk-PL7MD6GF.js} +1 -1
- package/dist/components/index.d.ts +1418 -391
- package/dist/components/index.js +4818 -1374
- package/dist/context/index.js +1 -1
- package/dist/hooks/index.d.ts +58 -58
- package/dist/hooks/index.js +2 -2
- package/dist/lib/index.js +1 -1
- package/dist/providers/index.js +2 -2
- package/dist/renderer/index.js +3 -3
- package/dist/stores/index.js +1 -1
- package/package.json +8 -5
- package/dist/chunk-S7EYY36U.js +0 -13
package/dist/context/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { DesignThemeProvider, useDesignTheme } from '../chunk-QFAKJLOK.js';
|
|
2
2
|
export { BUILT_IN_THEMES, ThemeContext_default as ThemeContext, ThemeProvider, UISlotContext, UISlotProvider, useSlotContent, useSlotHasContent, useTheme, useUISlots } from '../chunk-DTKTZ3UR.js';
|
|
3
3
|
import '../chunk-7NEWMNNU.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-PKBMQBKP.js';
|
|
5
5
|
import { createContext, useCallback, useMemo, useContext } from 'react';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -5,62 +5,6 @@ export { D as DEFAULT_SLOTS, R as RenderUIConfig, b as SlotAnimation, c as SlotC
|
|
|
5
5
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
6
6
|
import { Entity, getEntity, getByType, getAllEntities, getSingleton, spawnEntity, updateEntity, updateSingleton, removeEntity, clearEntities } from '../stores/index.js';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* useEntities Hook
|
|
10
|
-
*
|
|
11
|
-
* React hook to access the entity store.
|
|
12
|
-
* Uses useSyncExternalStore for efficient updates.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Hook to access all entities
|
|
17
|
-
*/
|
|
18
|
-
declare function useEntities(): {
|
|
19
|
-
entities: Map<string, Entity>;
|
|
20
|
-
getEntity: typeof getEntity;
|
|
21
|
-
getByType: typeof getByType;
|
|
22
|
-
getAllEntities: typeof getAllEntities;
|
|
23
|
-
getSingleton: typeof getSingleton;
|
|
24
|
-
spawnEntity: typeof spawnEntity;
|
|
25
|
-
updateEntity: typeof updateEntity;
|
|
26
|
-
updateSingleton: typeof updateSingleton;
|
|
27
|
-
removeEntity: typeof removeEntity;
|
|
28
|
-
clearEntities: typeof clearEntities;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Hook to access a specific entity by ID
|
|
32
|
-
*/
|
|
33
|
-
declare function useEntity$1(id: string): Entity | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Hook to access entities of a specific type
|
|
36
|
-
*/
|
|
37
|
-
declare function useEntitiesByType(type: string): Entity[];
|
|
38
|
-
/**
|
|
39
|
-
* Hook to access a singleton entity by type
|
|
40
|
-
*/
|
|
41
|
-
declare function useSingletonEntity<T extends Entity = Entity>(type: string): T | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Hook for Player entity (convenience)
|
|
44
|
-
*/
|
|
45
|
-
declare function usePlayer(): {
|
|
46
|
-
player: Entity | undefined;
|
|
47
|
-
updatePlayer: (updates: Partial<Entity>) => void;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Hook for Physics entity (convenience)
|
|
51
|
-
*/
|
|
52
|
-
declare function usePhysics(): {
|
|
53
|
-
physics: Entity | undefined;
|
|
54
|
-
updatePhysics: (updates: Partial<Entity>) => void;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Hook for Input entity (convenience)
|
|
58
|
-
*/
|
|
59
|
-
declare function useInput(): {
|
|
60
|
-
input: Entity | undefined;
|
|
61
|
-
updateInput: (updates: Partial<Entity>) => void;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
8
|
/**
|
|
65
9
|
* useEventBus Hook
|
|
66
10
|
*
|
|
@@ -708,7 +652,7 @@ declare function useEntityList<T = Record<string, unknown>>(entity: string | und
|
|
|
708
652
|
* @param id - Entity ID
|
|
709
653
|
* @returns Single entity data and loading states
|
|
710
654
|
*/
|
|
711
|
-
declare function useEntity<T = Record<string, unknown>>(entity: string | undefined, id: string | undefined): {
|
|
655
|
+
declare function useEntity$1<T = Record<string, unknown>>(entity: string | undefined, id: string | undefined): {
|
|
712
656
|
data: T | null;
|
|
713
657
|
isLoading: boolean;
|
|
714
658
|
error: Error | null;
|
|
@@ -982,6 +926,62 @@ declare function useEntityMutations(entityName: string, options?: UseEntityMutat
|
|
|
982
926
|
deleteError: Error | null;
|
|
983
927
|
};
|
|
984
928
|
|
|
929
|
+
/**
|
|
930
|
+
* useEntities Hook
|
|
931
|
+
*
|
|
932
|
+
* React hook to access the entity store.
|
|
933
|
+
* Uses useSyncExternalStore for efficient updates.
|
|
934
|
+
*/
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Hook to access all entities
|
|
938
|
+
*/
|
|
939
|
+
declare function useEntities(): {
|
|
940
|
+
entities: Map<string, Entity>;
|
|
941
|
+
getEntity: typeof getEntity;
|
|
942
|
+
getByType: typeof getByType;
|
|
943
|
+
getAllEntities: typeof getAllEntities;
|
|
944
|
+
getSingleton: typeof getSingleton;
|
|
945
|
+
spawnEntity: typeof spawnEntity;
|
|
946
|
+
updateEntity: typeof updateEntity;
|
|
947
|
+
updateSingleton: typeof updateSingleton;
|
|
948
|
+
removeEntity: typeof removeEntity;
|
|
949
|
+
clearEntities: typeof clearEntities;
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* Hook to access a specific entity by ID
|
|
953
|
+
*/
|
|
954
|
+
declare function useEntity(id: string): Entity | undefined;
|
|
955
|
+
/**
|
|
956
|
+
* Hook to access entities of a specific type
|
|
957
|
+
*/
|
|
958
|
+
declare function useEntitiesByType(type: string): Entity[];
|
|
959
|
+
/**
|
|
960
|
+
* Hook to access a singleton entity by type
|
|
961
|
+
*/
|
|
962
|
+
declare function useSingletonEntity<T extends Entity = Entity>(type: string): T | undefined;
|
|
963
|
+
/**
|
|
964
|
+
* Hook for Player entity (convenience)
|
|
965
|
+
*/
|
|
966
|
+
declare function usePlayer(): {
|
|
967
|
+
player: Entity | undefined;
|
|
968
|
+
updatePlayer: (updates: Partial<Entity>) => void;
|
|
969
|
+
};
|
|
970
|
+
/**
|
|
971
|
+
* Hook for Physics entity (convenience)
|
|
972
|
+
*/
|
|
973
|
+
declare function usePhysics(): {
|
|
974
|
+
physics: Entity | undefined;
|
|
975
|
+
updatePhysics: (updates: Partial<Entity>) => void;
|
|
976
|
+
};
|
|
977
|
+
/**
|
|
978
|
+
* Hook for Input entity (convenience)
|
|
979
|
+
*/
|
|
980
|
+
declare function useInput(): {
|
|
981
|
+
input: Entity | undefined;
|
|
982
|
+
updateInput: (updates: Partial<Entity>) => void;
|
|
983
|
+
};
|
|
984
|
+
|
|
985
985
|
/**
|
|
986
986
|
* Auth Context Hook Stub
|
|
987
987
|
*
|
|
@@ -1072,4 +1072,4 @@ declare function useGitHubBranches(owner: string, repo: string, enabled?: boolea
|
|
|
1072
1072
|
branches: string[];
|
|
1073
1073
|
}, Error>;
|
|
1074
1074
|
|
|
1075
|
-
export { type AuthContextValue, type AuthUser, type ChangeSummary, type CompileResult, type CompileStage, ENTITY_EVENTS, Entity, type EntityDataRecord, type EntityMutationResult, EventBusContextType, EventListener, type Extension, type ExtensionManifest, type FileSystemFile, type FileSystemStatus, type GitHubRepo, type GitHubStatus, type HistoryTimelineItem, type OpenFile, type OrbitalEventPayload, type OrbitalEventResponse, type QuerySingletonEntity, type QuerySingletonResult, type QuerySingletonState, type QueryState, type RevertResult, type SelectedFile, type UseCompileResult, type UseEntityDetailResult, type UseEntityListOptions, type UseEntityListResult, type UseEntityMutationsOptions, type UseExtensionsOptions, type UseExtensionsResult, type UseFileEditorOptions, type UseFileEditorResult, type UseFileSystemResult, type UseOrbitalHistoryOptions, type UseOrbitalHistoryResult, clearEntities, entityDataKeys, getAllEntities, getByType, getEntity, getSingleton, parseQueryBinding, removeEntity, spawnEntity, updateEntity, updateSingleton, useAgentChat, useAuthContext, useCompile, useConnectGitHub, useCreateEntity, useDeepAgentGeneration, useDeleteEntity, useDisconnectGitHub, useEmitEvent, useEntities, useEntitiesByType, useEntity, useEntity
|
|
1075
|
+
export { type AuthContextValue, type AuthUser, type ChangeSummary, type CompileResult, type CompileStage, ENTITY_EVENTS, Entity, type EntityDataRecord, type EntityMutationResult, EventBusContextType, EventListener, type Extension, type ExtensionManifest, type FileSystemFile, type FileSystemStatus, type GitHubRepo, type GitHubStatus, type HistoryTimelineItem, type OpenFile, type OrbitalEventPayload, type OrbitalEventResponse, type QuerySingletonEntity, type QuerySingletonResult, type QuerySingletonState, type QueryState, type RevertResult, type SelectedFile, type UseCompileResult, type UseEntityDetailResult, type UseEntityListOptions, type UseEntityListResult, type UseEntityMutationsOptions, type UseExtensionsOptions, type UseExtensionsResult, type UseFileEditorOptions, type UseFileEditorResult, type UseFileSystemResult, type UseOrbitalHistoryOptions, type UseOrbitalHistoryResult, clearEntities, entityDataKeys, getAllEntities, getByType, getEntity, getSingleton, parseQueryBinding, removeEntity, spawnEntity, updateEntity, updateSingleton, useAgentChat, useAuthContext, useCompile, useConnectGitHub, useCreateEntity, useDeepAgentGeneration, useDeleteEntity, useDisconnectGitHub, useEmitEvent, useEntities, useEntitiesByType, useEntity$1 as useEntity, useEntity as useEntityById, useEntityDetail, useEntityList, useEntityMutations, useEventBus, useEventListener, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInput, useOrbitalHistory, useOrbitalMutations, usePhysics, usePlayer, usePreview, useQuerySingleton, useSelectedEntity, useSendOrbitalEvent, useSingletonEntity, useUIEvents, useUpdateEntity, useValidation };
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ENTITY_EVENTS, entityDataKeys, parseQueryBinding, useAgentChat, useAuthContext, useCompile, useConnectGitHub, useCreateEntity, useDeepAgentGeneration, useDeleteEntity, useDisconnectGitHub, useEntities, useEntitiesByType, useEntity, useEntity2 as useEntityById, useEntityDetail, useEntityList, useEntityMutations, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInput, useOrbitalHistory, useOrbitalMutations, usePhysics, usePlayer, usePreview, useQuerySingleton, useSelectedEntity, useSendOrbitalEvent, useSingletonEntity, useUIEvents, useUpdateEntity, useValidation } from '../chunk-
|
|
1
|
+
export { ENTITY_EVENTS, entityDataKeys, parseQueryBinding, useAgentChat, useAuthContext, useCompile, useConnectGitHub, useCreateEntity, useDeepAgentGeneration, useDeleteEntity, useDisconnectGitHub, useEntities, useEntitiesByType, useEntity, useEntity2 as useEntityById, useEntityDetail, useEntityList, useEntityMutations, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInput, useOrbitalHistory, useOrbitalMutations, usePhysics, usePlayer, usePreview, useQuerySingleton, useSelectedEntity, useSendOrbitalEvent, useSingletonEntity, useUIEvents, useUpdateEntity, useValidation } from '../chunk-MLS5KU5U.js';
|
|
2
2
|
import '../chunk-XSEDIUM6.js';
|
|
3
3
|
export { useEmitEvent, useEventBus, useEventListener } from '../chunk-TTXKOHDO.js';
|
|
4
4
|
export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-7NEWMNNU.js';
|
|
5
5
|
export { clearEntities, getAllEntities, getByType, getEntity, getSingleton, removeEntity, spawnEntity, updateEntity, updateSingleton } from '../chunk-N7MVUW4R.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-PKBMQBKP.js';
|
package/dist/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { cn, debug, debugCollision, debugError, debugGameState, debugGroup, debugGroupEnd, debugInput, debugPhysics, debugTable, debugTime, debugTimeEnd, debugWarn, formatNestedFieldLabel, getNestedValue, isDebugEnabled } from '../chunk-KKCVDUK7.js';
|
|
2
2
|
export { ApiError, apiClient } from '../chunk-XSEDIUM6.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-PKBMQBKP.js';
|
|
4
4
|
|
|
5
5
|
// lib/debugUtils.ts
|
|
6
6
|
var DEBUG_STORAGE_KEY = "orbital-debug";
|
package/dist/providers/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { ThemeProvider, UISlotProvider } from '../chunk-DTKTZ3UR.js';
|
|
|
2
2
|
import { EventBusProvider, SelectionProvider } from '../chunk-TTXKOHDO.js';
|
|
3
3
|
export { EventBusContext, EventBusProvider, SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-TTXKOHDO.js';
|
|
4
4
|
import '../chunk-7NEWMNNU.js';
|
|
5
|
-
import { useOfflineExecutor } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import { useOfflineExecutor } from '../chunk-PL7MD6GF.js';
|
|
6
|
+
import '../chunk-PKBMQBKP.js';
|
|
7
7
|
import { createContext, useState, useCallback, useMemo, useContext } from 'react';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
package/dist/renderer/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { executeClientEffects } from '../chunk-
|
|
2
|
-
export { OfflineExecutor, createOfflineExecutor, executeClientEffects, filterEffectsByType, getEmitEffects, getNavigateEffects, getNotifyEffects, getRenderUIEffects, parseClientEffect, parseClientEffects, useOfflineExecutor } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { executeClientEffects } from '../chunk-PL7MD6GF.js';
|
|
2
|
+
export { OfflineExecutor, createOfflineExecutor, executeClientEffects, filterEffectsByType, getEmitEffects, getNavigateEffects, getNotifyEffects, getRenderUIEffects, parseClientEffect, parseClientEffects, useOfflineExecutor } from '../chunk-PL7MD6GF.js';
|
|
3
|
+
import '../chunk-PKBMQBKP.js';
|
|
4
4
|
import { createContext, useRef, useCallback, useEffect, useContext, useMemo, useState } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
import { componentMapping as componentMapping$1, patternsRegistry } from '@almadar/patterns';
|
package/dist/stores/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { applyFilters, clearAllFilters, clearEntities, clearFilter, createFilter, getAllEntities, getByType, getByTypeFiltered, getDateString, getEntities, getEntity, getFilterSnapshot, getFilters, getSingleton, getSnapshot, matchesFilter, removeEntity, setFilter, spawnEntity, subscribe, updateEntity, updateSingleton } from '../chunk-N7MVUW4R.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-PKBMQBKP.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"import": "./dist/lib/index.js",
|
|
40
40
|
"types": "./dist/lib/index.d.ts"
|
|
41
41
|
},
|
|
42
|
-
"./themes/*.css": "./themes/*.css"
|
|
42
|
+
"./themes/*.css": "./themes/*.css",
|
|
43
|
+
"./index.css": "./index.css"
|
|
43
44
|
},
|
|
44
45
|
"files": [
|
|
45
46
|
"dist",
|
|
@@ -60,19 +61,21 @@
|
|
|
60
61
|
"remark-gfm": "^4.0.1",
|
|
61
62
|
"remark-math": "^6.0.0",
|
|
62
63
|
"react-force-graph-2d": "^1.28.0",
|
|
64
|
+
"@almadar/evaluator": "1.0.13",
|
|
63
65
|
"@almadar/core": "1.0.13",
|
|
64
|
-
"@almadar/patterns": "1.0.
|
|
65
|
-
"@almadar/evaluator": "1.0.13"
|
|
66
|
+
"@almadar/patterns": "1.0.14"
|
|
66
67
|
},
|
|
67
68
|
"peerDependencies": {
|
|
68
69
|
"react": "^18.0.0",
|
|
69
70
|
"react-dom": "^18.0.0",
|
|
70
|
-
"react-router-dom": "^7.0.0"
|
|
71
|
+
"react-router-dom": "^7.0.0",
|
|
72
|
+
"@tanstack/react-query": "^5.0.0"
|
|
71
73
|
},
|
|
72
74
|
"devDependencies": {
|
|
73
75
|
"react": "^18.3.1",
|
|
74
76
|
"react-dom": "^18.3.1",
|
|
75
77
|
"react-router-dom": "^7.13.0",
|
|
78
|
+
"@tanstack/react-query": "^5.0.0",
|
|
76
79
|
"@types/react": "^18.3.0",
|
|
77
80
|
"@types/react-dom": "^18.3.0",
|
|
78
81
|
"@types/react-syntax-highlighter": "^15.5.11",
|
package/dist/chunk-S7EYY36U.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __typeError = (msg) => {
|
|
3
|
-
throw TypeError(msg);
|
|
4
|
-
};
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
8
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
9
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
|
-
|
|
13
|
-
export { __privateAdd, __privateGet, __privateMethod, __privateSet, __publicField };
|