@widget-js/core 0.10.8 → 0.10.14
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.cjs +32 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +37 -2
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -66,6 +66,7 @@ __export(src_exports, {
|
|
|
66
66
|
NotificationApiEvent: () => NotificationApiEvent,
|
|
67
67
|
NotificationSize: () => NotificationSize,
|
|
68
68
|
Page: () => Page,
|
|
69
|
+
ProcessApi: () => ProcessApi,
|
|
69
70
|
ShortcutApi: () => ShortcutApi,
|
|
70
71
|
ShortcutApiEvent: () => ShortcutApiEvent,
|
|
71
72
|
StoreApi: () => StoreApi,
|
|
@@ -1241,6 +1242,7 @@ var Channel = /* @__PURE__ */ ((Channel2) => {
|
|
|
1241
1242
|
Channel2["MOUSE"] = "channel::cn.widgetjs.core.mouse";
|
|
1242
1243
|
Channel2["KEYBOARD"] = "channel::cn.widgetjs.core.keyboard";
|
|
1243
1244
|
Channel2["STORE"] = "channel::cn.widgetjs.core.store";
|
|
1245
|
+
Channel2["PROCESS"] = "channel::cn.widgetjs.core.process";
|
|
1244
1246
|
return Channel2;
|
|
1245
1247
|
})(Channel || {});
|
|
1246
1248
|
|
|
@@ -1881,6 +1883,35 @@ var ShortcutApiImpl = class extends BaseApi {
|
|
|
1881
1883
|
};
|
|
1882
1884
|
var ShortcutApi = new ShortcutApiImpl();
|
|
1883
1885
|
|
|
1886
|
+
// src/api/ProcessApi.ts
|
|
1887
|
+
var ProcessApiImpl = class extends BaseApi {
|
|
1888
|
+
getChannel() {
|
|
1889
|
+
return "channel::cn.widgetjs.core.process" /* PROCESS */;
|
|
1890
|
+
}
|
|
1891
|
+
getBlinkMemoryInfo() {
|
|
1892
|
+
return this.invokeMethod("getBlinkMemoryInfo");
|
|
1893
|
+
}
|
|
1894
|
+
getCPUUsage() {
|
|
1895
|
+
return this.invokeMethod("getCPUUsage");
|
|
1896
|
+
}
|
|
1897
|
+
getHeapStatistics() {
|
|
1898
|
+
return this.invokeMethod("getHeapStatistics");
|
|
1899
|
+
}
|
|
1900
|
+
getIOCounters() {
|
|
1901
|
+
return this.invokeMethod("getIOCounters");
|
|
1902
|
+
}
|
|
1903
|
+
getProcessMemoryInfo() {
|
|
1904
|
+
return this.invokeMethod("getProcessMemoryInfo");
|
|
1905
|
+
}
|
|
1906
|
+
getSystemMemoryInfo() {
|
|
1907
|
+
return this.invokeMethod("getSystemMemoryInfo");
|
|
1908
|
+
}
|
|
1909
|
+
getSystemVersion() {
|
|
1910
|
+
return this.invokeMethod("getSystemVersion");
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
var ProcessApi = new ProcessApiImpl();
|
|
1914
|
+
|
|
1884
1915
|
// src/api/AppApi.ts
|
|
1885
1916
|
var AppApiEvent = /* @__PURE__ */ ((AppApiEvent2) => {
|
|
1886
1917
|
AppApiEvent2["CONFIG_CHANGED"] = "event::cn.widgetjs.core.app.config.changed";
|
|
@@ -2065,6 +2096,7 @@ var FileApi = new FileApiImpl();
|
|
|
2065
2096
|
NotificationApiEvent,
|
|
2066
2097
|
NotificationSize,
|
|
2067
2098
|
Page,
|
|
2099
|
+
ProcessApi,
|
|
2068
2100
|
ShortcutApi,
|
|
2069
2101
|
ShortcutApiEvent,
|
|
2070
2102
|
StoreApi,
|