@alepha/devtools 0.13.2 → 0.13.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/index.d.ts +33 -31
- package/package.json +8 -8
- package/src/ui/components/DevLayout.tsx +9 -4
package/dist/index.d.ts
CHANGED
|
@@ -103,6 +103,37 @@ interface LoggerInterface {
|
|
|
103
103
|
error(message: string, data?: unknown): void;
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
|
+
//#region ../alepha/src/core/providers/TypeProvider.d.ts
|
|
107
|
+
declare module "typebox" {
|
|
108
|
+
interface TString {
|
|
109
|
+
format?: string;
|
|
110
|
+
minLength?: number;
|
|
111
|
+
maxLength?: number;
|
|
112
|
+
}
|
|
113
|
+
interface TNumber {
|
|
114
|
+
format?: "int64";
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region ../alepha/src/core/primitives/$atom.d.ts
|
|
119
|
+
type AtomOptions<T extends TAtomObject, N extends string> = {
|
|
120
|
+
name: N;
|
|
121
|
+
schema: T;
|
|
122
|
+
description?: string;
|
|
123
|
+
} & (T extends TOptionalAdd<T> ? {
|
|
124
|
+
default?: Static$1<T>;
|
|
125
|
+
} : {
|
|
126
|
+
default: Static$1<T>;
|
|
127
|
+
});
|
|
128
|
+
declare class Atom<T extends TAtomObject = TObject$1, N extends string = string> {
|
|
129
|
+
readonly options: AtomOptions<T, N>;
|
|
130
|
+
get schema(): T;
|
|
131
|
+
get key(): N;
|
|
132
|
+
constructor(options: AtomOptions<T, N>);
|
|
133
|
+
}
|
|
134
|
+
type TAtomObject = TObject$1<any> | TArray;
|
|
135
|
+
type AtomStatic<T extends TAtomObject> = T extends TOptionalAdd<T> ? Static$1<T> | undefined : Static$1<T>;
|
|
136
|
+
//#endregion
|
|
106
137
|
//#region ../alepha/src/core/primitives/$inject.d.ts
|
|
107
138
|
interface InjectOptions<T extends object = any> {
|
|
108
139
|
/**
|
|
@@ -199,18 +230,6 @@ declare class Json {
|
|
|
199
230
|
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
|
200
231
|
}
|
|
201
232
|
//#endregion
|
|
202
|
-
//#region ../alepha/src/core/providers/TypeProvider.d.ts
|
|
203
|
-
declare module "typebox" {
|
|
204
|
-
interface TString {
|
|
205
|
-
format?: string;
|
|
206
|
-
minLength?: number;
|
|
207
|
-
maxLength?: number;
|
|
208
|
-
}
|
|
209
|
-
interface TNumber {
|
|
210
|
-
format?: "int64";
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
//#endregion
|
|
214
233
|
//#region ../alepha/src/core/providers/SchemaCodec.d.ts
|
|
215
234
|
declare abstract class SchemaCodec {
|
|
216
235
|
/**
|
|
@@ -380,25 +399,6 @@ declare class EventManager {
|
|
|
380
399
|
}): Promise<void>;
|
|
381
400
|
}
|
|
382
401
|
//#endregion
|
|
383
|
-
//#region ../alepha/src/core/primitives/$atom.d.ts
|
|
384
|
-
type AtomOptions<T extends TAtomObject, N extends string> = {
|
|
385
|
-
name: N;
|
|
386
|
-
schema: T;
|
|
387
|
-
description?: string;
|
|
388
|
-
} & (T extends TOptionalAdd<T> ? {
|
|
389
|
-
default?: Static$1<T>;
|
|
390
|
-
} : {
|
|
391
|
-
default: Static$1<T>;
|
|
392
|
-
});
|
|
393
|
-
declare class Atom<T extends TAtomObject = TObject$1, N extends string = string> {
|
|
394
|
-
readonly options: AtomOptions<T, N>;
|
|
395
|
-
get schema(): T;
|
|
396
|
-
get key(): N;
|
|
397
|
-
constructor(options: AtomOptions<T, N>);
|
|
398
|
-
}
|
|
399
|
-
type TAtomObject = TObject$1<any> | TArray;
|
|
400
|
-
type AtomStatic<T extends TAtomObject> = T extends TOptionalAdd<T> ? Static$1<T> | undefined : Static$1<T>;
|
|
401
|
-
//#endregion
|
|
402
402
|
//#region ../alepha/src/core/providers/StateManager.d.ts
|
|
403
403
|
interface AtomWithValue {
|
|
404
404
|
atom: Atom;
|
|
@@ -675,6 +675,8 @@ declare class Alepha {
|
|
|
675
675
|
*/
|
|
676
676
|
get env(): Readonly<Env>;
|
|
677
677
|
constructor(init?: Partial<State>);
|
|
678
|
+
set<T extends TAtomObject>(target: Atom<T>, value: AtomStatic<T>): this;
|
|
679
|
+
set<Key extends keyof State>(target: Key, value: State[Key] | undefined): this;
|
|
678
680
|
/**
|
|
679
681
|
* True when start() is called.
|
|
680
682
|
*
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@alepha/devtools",
|
|
3
3
|
"description": "Developer tools for monitoring and debugging Alepha applications.",
|
|
4
4
|
"author": "Nicolas Foures",
|
|
5
|
-
"version": "0.13.
|
|
5
|
+
"version": "0.13.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=22.0.0"
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"src"
|
|
16
16
|
],
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@alepha/react": "0.13.
|
|
19
|
-
"@alepha/ui": "0.13.
|
|
18
|
+
"@alepha/react": "0.13.4",
|
|
19
|
+
"@alepha/ui": "0.13.4",
|
|
20
20
|
"@tabler/icons-react": "^3.35.0",
|
|
21
|
-
"alepha": "0.13.
|
|
22
|
-
"react": "^19.2.
|
|
23
|
-
"tsdown": "^0.16.
|
|
24
|
-
"vitest": "^4.0.
|
|
21
|
+
"alepha": "0.13.4",
|
|
22
|
+
"react": "^19.2.1",
|
|
23
|
+
"tsdown": "^0.16.8",
|
|
24
|
+
"vitest": "^4.0.15"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"alepha": "0.13.
|
|
27
|
+
"alepha": "0.13.4"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"lint": "alepha lint",
|
|
@@ -14,7 +14,7 @@ export const DevLayout = () => {
|
|
|
14
14
|
<AdminShell
|
|
15
15
|
appShellProps={{
|
|
16
16
|
withBorder: false,
|
|
17
|
-
bg: ui.colors.
|
|
17
|
+
bg: ui.colors.background,
|
|
18
18
|
}}
|
|
19
19
|
appShellNavbarProps={{
|
|
20
20
|
bg: ui.colors.transparent,
|
|
@@ -64,12 +64,17 @@ export const DevLayout = () => {
|
|
|
64
64
|
}}
|
|
65
65
|
>
|
|
66
66
|
<Flex
|
|
67
|
+
w={"100%"}
|
|
68
|
+
flex={1}
|
|
67
69
|
bd={`1px solid ${ui.colors.border}`}
|
|
68
70
|
bg={ui.colors.elevated}
|
|
69
|
-
bdrs={"lg"}
|
|
70
71
|
p={"xl"}
|
|
71
|
-
ml={-
|
|
72
|
-
|
|
72
|
+
ml={-16}
|
|
73
|
+
mr={-16}
|
|
74
|
+
mt={-16}
|
|
75
|
+
style={{
|
|
76
|
+
borderTopLeftRadius: 16,
|
|
77
|
+
}}
|
|
73
78
|
>
|
|
74
79
|
<NestedView />
|
|
75
80
|
</Flex>
|