@basthon/gui-base 0.50.7 → 0.50.8
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/lib/main.d.ts +2 -2
- package/lib/main.js +2 -2
- package/package.json +5 -5
package/lib/main.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export declare class GUIBase {
|
|
|
104
104
|
/**
|
|
105
105
|
* Get state from strorage.
|
|
106
106
|
*/
|
|
107
|
-
protected getState(state: string, def?:
|
|
107
|
+
protected getState(state: string, def?: any): Promise<any>;
|
|
108
108
|
/**
|
|
109
109
|
* Set state in storage.
|
|
110
110
|
*/
|
|
@@ -147,7 +147,7 @@ export declare class GUIBase {
|
|
|
147
147
|
/**
|
|
148
148
|
* Get mode as a string (dark/light).
|
|
149
149
|
*/
|
|
150
|
-
theme(): "dark" | "light" | undefined
|
|
150
|
+
theme(): Promise<"dark" | "light" | undefined>;
|
|
151
151
|
/**
|
|
152
152
|
* Restart the kernel.
|
|
153
153
|
*/
|
package/lib/main.js
CHANGED
|
@@ -190,7 +190,7 @@ export class GUIBase {
|
|
|
190
190
|
/**
|
|
191
191
|
* Get state from strorage.
|
|
192
192
|
*/
|
|
193
|
-
async getState(state, def
|
|
193
|
+
async getState(state, def) {
|
|
194
194
|
var _a;
|
|
195
195
|
return (_a = await this._stateStorage.get(state)) !== null && _a !== void 0 ? _a : def;
|
|
196
196
|
}
|
|
@@ -320,7 +320,7 @@ export class GUIBase {
|
|
|
320
320
|
/**
|
|
321
321
|
* Get mode as a string (dark/light).
|
|
322
322
|
*/
|
|
323
|
-
theme() { return; }
|
|
323
|
+
async theme() { return; }
|
|
324
324
|
/**
|
|
325
325
|
* Restart the kernel.
|
|
326
326
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/gui-base",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.8",
|
|
4
4
|
"description": "Basthon - Base GUI",
|
|
5
5
|
"homepage": "https://basthon.fr",
|
|
6
6
|
"bugs": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"clean": "rm -rf lib/"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@basthon/checkpoints": "0.50.
|
|
29
|
-
"@basthon/kernel-base": "0.50.
|
|
30
|
-
"@basthon/kernel-loader": "0.50.
|
|
28
|
+
"@basthon/checkpoints": "0.50.8",
|
|
29
|
+
"@basthon/kernel-base": "0.50.8",
|
|
30
|
+
"@basthon/kernel-loader": "0.50.8",
|
|
31
31
|
"js-base64": "^3.7.2",
|
|
32
32
|
"pako": "^2.0.4",
|
|
33
33
|
"promise-delegate": "^1.0.1"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d5eebe048d28a734504ae73b3b7c36a75404dba8"
|
|
45
45
|
}
|