@basthon/gui-base 0.50.8 → 0.50.9

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 CHANGED
@@ -7,8 +7,7 @@ declare global {
7
7
  }
8
8
  }
9
9
  export interface GUIOptions {
10
- kernelRootPath: string;
11
- language: string;
10
+ kernelOptions: any;
12
11
  uiName?: string;
13
12
  noCheckpointsInit?: boolean;
14
13
  }
package/lib/main.js CHANGED
@@ -6,6 +6,7 @@ import { KernelLoader } from "@basthon/kernel-loader";
6
6
  */
7
7
  export class GUIBase {
8
8
  constructor(options) {
9
+ var _a;
9
10
  this._loaded = new PromiseDelegate();
10
11
  this._maxCheckpoints = 10;
11
12
  this._contentFilename = "content.txt";
@@ -13,13 +14,13 @@ export class GUIBase {
13
14
  this._extensions = new Map();
14
15
  /* console errors redirected to notification system */
15
16
  this._console_error = console.error;
16
- this._language = options.language;
17
- this._loader = new KernelLoader(options.kernelRootPath, options.language);
17
+ this._language = (_a = options === null || options === void 0 ? void 0 : options.kernelOptions) === null || _a === void 0 ? void 0 : _a.language;
18
+ this._loader = new KernelLoader(options.kernelOptions);
18
19
  // loading Basthon (errors are fatal)
19
20
  this._loader.showLoader("Chargement de Basthon...", false, false);
20
21
  /* per language checkpoints */
21
22
  if (!options.noCheckpointsInit)
22
- this._checkpoints = new CheckpointsManager(`${options.uiName}.${options.language}`, this._maxCheckpoints);
23
+ this._checkpoints = new CheckpointsManager(`${options.uiName}.${this._language}`, this._maxCheckpoints);
23
24
  /* globale states (not language specific) */
24
25
  this._stateStorage = new Storage(`${options.uiName}.states`);
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/gui-base",
3
- "version": "0.50.8",
3
+ "version": "0.50.9",
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.8",
29
- "@basthon/kernel-base": "0.50.8",
30
- "@basthon/kernel-loader": "0.50.8",
28
+ "@basthon/checkpoints": "0.50.9",
29
+ "@basthon/kernel-base": "0.50.9",
30
+ "@basthon/kernel-loader": "0.50.9",
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": "d5eebe048d28a734504ae73b3b7c36a75404dba8"
44
+ "gitHead": "29ccac6dc1ef4b33c62770b0d2c6c3c12de13ccf"
45
45
  }