@widget-js/core 24.1.1-beta.50 → 24.1.1-beta.55
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 +38 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -15
- package/dist/index.d.ts +61 -15
- package/dist/index.js +38 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1686,6 +1686,7 @@ var DeployedPage = class {
|
|
|
1686
1686
|
width = 800;
|
|
1687
1687
|
proxy;
|
|
1688
1688
|
id;
|
|
1689
|
+
isIgnoreMouseEvents;
|
|
1689
1690
|
};
|
|
1690
1691
|
|
|
1691
1692
|
// src/model/SocialInfo.ts
|
|
@@ -2388,9 +2389,22 @@ var WidgetApiImpl = class extends BaseApi {
|
|
|
2388
2389
|
async upgradePackage(packageName) {
|
|
2389
2390
|
return await this.invokeMethod("upgradePackage", packageName);
|
|
2390
2391
|
}
|
|
2392
|
+
/**
|
|
2393
|
+
* 阻止拖动窗口,只能用于悬浮窗口 DeployMode.OVERLAP
|
|
2394
|
+
* @param draggable
|
|
2395
|
+
*/
|
|
2391
2396
|
setMouseDraggable(draggable) {
|
|
2392
2397
|
return this.invokeMethod("setMouseDraggable", draggable);
|
|
2393
2398
|
}
|
|
2399
|
+
isIgnoreMouseEvents(widgetId) {
|
|
2400
|
+
return this.invokeMethod("isIgnoreMouseEvents", widgetId);
|
|
2401
|
+
}
|
|
2402
|
+
setIgnoreMouseEvents(widgetId, ignore) {
|
|
2403
|
+
return this.invokeMethod("setIgnoreMouseEvents", widgetId, ignore);
|
|
2404
|
+
}
|
|
2405
|
+
restartWidgets(mode) {
|
|
2406
|
+
return this.invokeMethod("restartWidgets", mode);
|
|
2407
|
+
}
|
|
2394
2408
|
};
|
|
2395
2409
|
var WidgetApi = new WidgetApiImpl();
|
|
2396
2410
|
|
|
@@ -3079,6 +3093,18 @@ var AppApiImpl = class extends BaseApi {
|
|
|
3079
3093
|
setGridCellSize(size) {
|
|
3080
3094
|
return this.invokeMethod("setGridCellSize", size);
|
|
3081
3095
|
}
|
|
3096
|
+
exit() {
|
|
3097
|
+
return this.invokeMethod("exit");
|
|
3098
|
+
}
|
|
3099
|
+
openCheckUpdateWindow() {
|
|
3100
|
+
return this.invokeMethod(`openCheckUpdateWindow`);
|
|
3101
|
+
}
|
|
3102
|
+
openWidgetManagerWindow() {
|
|
3103
|
+
return this.invokeMethod(`openWidgetManagerWindow`);
|
|
3104
|
+
}
|
|
3105
|
+
openRuntimeInfoWindow() {
|
|
3106
|
+
return this.invokeMethod(`openRuntimeInfoWindow`);
|
|
3107
|
+
}
|
|
3082
3108
|
};
|
|
3083
3109
|
var AppApi = new AppApiImpl();
|
|
3084
3110
|
|
|
@@ -3194,9 +3220,6 @@ var FileApiImpl = class extends BaseApi {
|
|
|
3194
3220
|
async readDirectory(path, options) {
|
|
3195
3221
|
return this.invokeMethod("readDirectory", path, options);
|
|
3196
3222
|
}
|
|
3197
|
-
asyncdelete(filePath) {
|
|
3198
|
-
return this.invokeMethod("delete", filePath);
|
|
3199
|
-
}
|
|
3200
3223
|
async downloadUrl(options) {
|
|
3201
3224
|
return this.invokeMethod("downloadUrl", options);
|
|
3202
3225
|
}
|
|
@@ -3215,8 +3238,14 @@ var FileApiImpl = class extends BaseApi {
|
|
|
3215
3238
|
async getInfo(absoluteFilePath) {
|
|
3216
3239
|
return this.invokeMethod("getInfo", absoluteFilePath);
|
|
3217
3240
|
}
|
|
3218
|
-
async
|
|
3219
|
-
return this.invokeMethod("
|
|
3241
|
+
async showItemInFolder(fullPath) {
|
|
3242
|
+
return this.invokeMethod("showItemInFolder", fullPath);
|
|
3243
|
+
}
|
|
3244
|
+
async openPath(path) {
|
|
3245
|
+
return this.invokeMethod("openPath", path);
|
|
3246
|
+
}
|
|
3247
|
+
async trashItem(path) {
|
|
3248
|
+
return this.invokeMethod("trashItem", path);
|
|
3220
3249
|
}
|
|
3221
3250
|
};
|
|
3222
3251
|
var FileApi = new FileApiImpl();
|
|
@@ -3341,11 +3370,11 @@ var MouseApiImpl = class extends BaseApi {
|
|
|
3341
3370
|
getChannel() {
|
|
3342
3371
|
return "channel::cn.widgetjs.core.mouse" /* MOUSE */;
|
|
3343
3372
|
}
|
|
3344
|
-
|
|
3345
|
-
return this.invokeMethod("
|
|
3373
|
+
removeHotspot() {
|
|
3374
|
+
return this.invokeMethod("removeHotspot");
|
|
3346
3375
|
}
|
|
3347
|
-
|
|
3348
|
-
return this.invokeMethod("
|
|
3376
|
+
createHotspot(rect) {
|
|
3377
|
+
return this.invokeMethod("createHotspot", rect);
|
|
3349
3378
|
}
|
|
3350
3379
|
};
|
|
3351
3380
|
var MouseApi = new MouseApiImpl();
|