@widget-js/core 24.1.1-beta.85 → 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 +5 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +580 -40
- package/dist/index.d.ts +580 -40
- package/dist/index.js +5 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
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
|
-
|
|
3269
|
-
return this.invokeMethod("
|
|
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");
|
|
@@ -3347,11 +3341,11 @@ var WidgetPackageApiImpl = class extends BaseApi {
|
|
|
3347
3341
|
}
|
|
3348
3342
|
return this.invokeMethod("install", JSON.stringify(widgetPackage));
|
|
3349
3343
|
}
|
|
3350
|
-
async uninstall(widgetPackage) {
|
|
3344
|
+
async uninstall(widgetPackage, clearData) {
|
|
3351
3345
|
if (typeof widgetPackage == "string") {
|
|
3352
|
-
return this.invokeMethod("uninstall", widgetPackage);
|
|
3346
|
+
return this.invokeMethod("uninstall", widgetPackage, clearData);
|
|
3353
3347
|
}
|
|
3354
|
-
return this.invokeMethod("uninstall", widgetPackage.name);
|
|
3348
|
+
return this.invokeMethod("uninstall", widgetPackage.name, clearData);
|
|
3355
3349
|
}
|
|
3356
3350
|
upgrade(packageName, remoteUrlInfo) {
|
|
3357
3351
|
return this.invokeMethod("upgrade", packageName, remoteUrlInfo);
|