@widget-js/core 24.1.1-beta.84 → 24.1.1-beta.86

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
@@ -3265,14 +3265,8 @@ var SystemApiImpl = class extends BaseApi {
3265
3265
  getWallpaper() {
3266
3266
  return this.invokeMethod("getWallpaper");
3267
3267
  }
3268
- getHardware(hardwareType) {
3269
- return this.invokeMethod("getHardware", hardwareType);
3270
- }
3271
- getHardwareSensor(hardwareType, sensorType) {
3272
- return this.invokeMethod("getHardwareSensor", hardwareType, sensorType);
3273
- }
3274
- isMonitorStarted() {
3275
- return this.invokeMethod("isMonitorStarted");
3268
+ getInfo(valuesObject) {
3269
+ return this.invokeMethod("getInfo", valuesObject);
3276
3270
  }
3277
3271
  getUptime() {
3278
3272
  return this.invokeMethod("getUptime");
@@ -3330,6 +3324,12 @@ var UserApiEvent = /* @__PURE__ */ ((UserApiEvent2) => {
3330
3324
  return UserApiEvent2;
3331
3325
  })(UserApiEvent || {});
3332
3326
 
3327
+ // src/api/interface/IAiApi.ts
3328
+ var AiApiEvent = /* @__PURE__ */ ((AiApiEvent2) => {
3329
+ AiApiEvent2["CONFIG_UPDATED"] = `channel::cn.widgetjs.core.ai.config.updated`;
3330
+ return AiApiEvent2;
3331
+ })(AiApiEvent || {});
3332
+
3333
3333
  // src/api/WidgetPackageApi.ts
3334
3334
  var WidgetPackageApiImpl = class extends BaseApi {
3335
3335
  getChannel() {
@@ -3341,11 +3341,11 @@ var WidgetPackageApiImpl = class extends BaseApi {
3341
3341
  }
3342
3342
  return this.invokeMethod("install", JSON.stringify(widgetPackage));
3343
3343
  }
3344
- async uninstall(widgetPackage) {
3344
+ async uninstall(widgetPackage, clearData) {
3345
3345
  if (typeof widgetPackage == "string") {
3346
- return this.invokeMethod("uninstall", widgetPackage);
3346
+ return this.invokeMethod("uninstall", widgetPackage, clearData);
3347
3347
  }
3348
- return this.invokeMethod("uninstall", widgetPackage.name);
3348
+ return this.invokeMethod("uninstall", widgetPackage.name, clearData);
3349
3349
  }
3350
3350
  upgrade(packageName, remoteUrlInfo) {
3351
3351
  return this.invokeMethod("upgrade", packageName, remoteUrlInfo);
@@ -3555,6 +3555,7 @@ var AiApiImpl = class extends BaseApi {
3555
3555
  var AiApi = new AiApiImpl();
3556
3556
 
3557
3557
  exports.AiApi = AiApi;
3558
+ exports.AiApiEvent = AiApiEvent;
3558
3559
  exports.ApiConstants = ApiConstants;
3559
3560
  exports.AppApi = AppApi;
3560
3561
  exports.AppApiConstants = AppApiConstants;