@widget-js/core 0.10.13 → 0.10.19

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 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,
@@ -157,6 +158,7 @@ var Page = class {
157
158
  packageName;
158
159
  height;
159
160
  maxWidth;
161
+ webviewTag;
160
162
  maxHeight;
161
163
  minWidth;
162
164
  minHeight;
@@ -191,6 +193,7 @@ var Page = class {
191
193
  this.path = options.path;
192
194
  this.meta = options.meta ?? {};
193
195
  this.security = options.security ?? false;
196
+ this.webviewTag = options.webviewTag ?? false;
194
197
  this.permissions = options.permissions ?? [];
195
198
  }
196
199
  /**
@@ -1882,6 +1885,35 @@ var ShortcutApiImpl = class extends BaseApi {
1882
1885
  };
1883
1886
  var ShortcutApi = new ShortcutApiImpl();
1884
1887
 
1888
+ // src/api/ProcessApi.ts
1889
+ var ProcessApiImpl = class extends BaseApi {
1890
+ getChannel() {
1891
+ return "channel::cn.widgetjs.core.process" /* PROCESS */;
1892
+ }
1893
+ getBlinkMemoryInfo() {
1894
+ return this.invokeMethod("getBlinkMemoryInfo");
1895
+ }
1896
+ getCPUUsage() {
1897
+ return this.invokeMethod("getCPUUsage");
1898
+ }
1899
+ getHeapStatistics() {
1900
+ return this.invokeMethod("getHeapStatistics");
1901
+ }
1902
+ getIOCounters() {
1903
+ return this.invokeMethod("getIOCounters");
1904
+ }
1905
+ getProcessMemoryInfo() {
1906
+ return this.invokeMethod("getProcessMemoryInfo");
1907
+ }
1908
+ getSystemMemoryInfo() {
1909
+ return this.invokeMethod("getSystemMemoryInfo");
1910
+ }
1911
+ getSystemVersion() {
1912
+ return this.invokeMethod("getSystemVersion");
1913
+ }
1914
+ };
1915
+ var ProcessApi = new ProcessApiImpl();
1916
+
1885
1917
  // src/api/AppApi.ts
1886
1918
  var AppApiEvent = /* @__PURE__ */ ((AppApiEvent2) => {
1887
1919
  AppApiEvent2["CONFIG_CHANGED"] = "event::cn.widgetjs.core.app.config.changed";
@@ -2066,6 +2098,7 @@ var FileApi = new FileApiImpl();
2066
2098
  NotificationApiEvent,
2067
2099
  NotificationSize,
2068
2100
  Page,
2101
+ ProcessApi,
2069
2102
  ShortcutApi,
2070
2103
  ShortcutApiEvent,
2071
2104
  StoreApi,