@basthon/gui-base 0.36.0 → 0.36.1

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
@@ -106,4 +106,8 @@ export declare class GUIBase {
106
106
  * Copy a text to clipboard.
107
107
  */
108
108
  static copyToClipboard: (text: string) => void;
109
+ /**
110
+ * Binding to kernel's XHR.
111
+ */
112
+ static xhr(params: any): Promise<unknown>;
109
113
  }
package/lib/main.js CHANGED
@@ -217,6 +217,12 @@ export class GUIBase {
217
217
  async _share(url, message) {
218
218
  this.confirm("Partager ce notebook", message, "Copier dans le presse-papier", () => GUIBase.copyToClipboard(url), "Tester le lien", () => GUIBase.openURL(url));
219
219
  }
220
+ /**
221
+ * Binding to kernel's XHR.
222
+ */
223
+ static async xhr(params) {
224
+ return await KernelBase.xhr(params);
225
+ }
220
226
  }
221
227
  /**
222
228
  * Copy a text to clipboard.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/gui-base",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "Basthon - Base GUI",
5
5
  "homepage": "https://basthon.fr",
6
6
  "bugs": {
@@ -25,8 +25,8 @@
25
25
  "clean": "rm -rf lib/"
26
26
  },
27
27
  "dependencies": {
28
- "@basthon/kernel-base": "^0.36.0",
29
- "@basthon/kernel-loader": "^0.36.0",
28
+ "@basthon/kernel-base": "^0.36.1",
29
+ "@basthon/kernel-loader": "^0.36.1",
30
30
  "promise-delegate": "^1.0.1"
31
31
  },
32
32
  "devDependencies": {
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "1b7d7fe5eccb791eb4b78c650facd39c84061d4b"
40
+ "gitHead": "c51d4df9b7f5e8684c80db7b8bce4bdc91960214"
41
41
  }