@widget-js/core 24.1.1-beta.88 → 24.1.1-beta.89
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 +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +182 -165
- package/dist/index.d.ts +182 -165
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1146,6 +1146,10 @@ var DeployMode = /* @__PURE__ */ ((DeployMode2) => {
|
|
|
1146
1146
|
var DeployedWidget = class extends DeployedPage {
|
|
1147
1147
|
shortcut;
|
|
1148
1148
|
deployMode;
|
|
1149
|
+
minWidth;
|
|
1150
|
+
minHeight;
|
|
1151
|
+
maxWidth;
|
|
1152
|
+
maxHeight;
|
|
1149
1153
|
isOverlap() {
|
|
1150
1154
|
return (this.deployMode & 16 /* OVERLAP */) > 0;
|
|
1151
1155
|
}
|
|
@@ -3018,6 +3022,9 @@ var DeployedWidgetApiImpl = class extends BaseApi {
|
|
|
3018
3022
|
async setProxy(widgetId, proxy) {
|
|
3019
3023
|
return this.invokeMethod("setProxy", widgetId, proxy);
|
|
3020
3024
|
}
|
|
3025
|
+
async setSize(widgetId, width, height) {
|
|
3026
|
+
return this.invokeMethod("setSize", widgetId, width, height);
|
|
3027
|
+
}
|
|
3021
3028
|
};
|
|
3022
3029
|
var DeployedWidgetApi = new DeployedWidgetApiImpl();
|
|
3023
3030
|
|
|
@@ -3597,6 +3604,7 @@ var WidgetApiEvent = /* @__PURE__ */ ((WidgetApiEvent2) => {
|
|
|
3597
3604
|
WidgetApiEvent2["EDIT_DESKTOP_WIDGETS"] = "event::cn.widgetjs.core.widget.desktop.edit";
|
|
3598
3605
|
WidgetApiEvent2["PACKAGE_UPGRADE"] = "event::cn.widgetjs.core.widget.package.upgraded";
|
|
3599
3606
|
WidgetApiEvent2["PACKAGE_INSTALLED"] = "event::cn.widgetjs.core.widget.package.installed";
|
|
3607
|
+
WidgetApiEvent2["WIDGET_REMOVED"] = "event::cn.widgetjs.core.widget.removed";
|
|
3600
3608
|
return WidgetApiEvent2;
|
|
3601
3609
|
})(WidgetApiEvent || {});
|
|
3602
3610
|
var WidgetApiImpl = class extends BaseApi {
|