@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.js
CHANGED
|
@@ -1139,6 +1139,10 @@ var DeployMode = /* @__PURE__ */ ((DeployMode2) => {
|
|
|
1139
1139
|
var DeployedWidget = class extends DeployedPage {
|
|
1140
1140
|
shortcut;
|
|
1141
1141
|
deployMode;
|
|
1142
|
+
minWidth;
|
|
1143
|
+
minHeight;
|
|
1144
|
+
maxWidth;
|
|
1145
|
+
maxHeight;
|
|
1142
1146
|
isOverlap() {
|
|
1143
1147
|
return (this.deployMode & 16 /* OVERLAP */) > 0;
|
|
1144
1148
|
}
|
|
@@ -3011,6 +3015,9 @@ var DeployedWidgetApiImpl = class extends BaseApi {
|
|
|
3011
3015
|
async setProxy(widgetId, proxy) {
|
|
3012
3016
|
return this.invokeMethod("setProxy", widgetId, proxy);
|
|
3013
3017
|
}
|
|
3018
|
+
async setSize(widgetId, width, height) {
|
|
3019
|
+
return this.invokeMethod("setSize", widgetId, width, height);
|
|
3020
|
+
}
|
|
3014
3021
|
};
|
|
3015
3022
|
var DeployedWidgetApi = new DeployedWidgetApiImpl();
|
|
3016
3023
|
|
|
@@ -3590,6 +3597,7 @@ var WidgetApiEvent = /* @__PURE__ */ ((WidgetApiEvent2) => {
|
|
|
3590
3597
|
WidgetApiEvent2["EDIT_DESKTOP_WIDGETS"] = "event::cn.widgetjs.core.widget.desktop.edit";
|
|
3591
3598
|
WidgetApiEvent2["PACKAGE_UPGRADE"] = "event::cn.widgetjs.core.widget.package.upgraded";
|
|
3592
3599
|
WidgetApiEvent2["PACKAGE_INSTALLED"] = "event::cn.widgetjs.core.widget.package.installed";
|
|
3600
|
+
WidgetApiEvent2["WIDGET_REMOVED"] = "event::cn.widgetjs.core.widget.removed";
|
|
3593
3601
|
return WidgetApiEvent2;
|
|
3594
3602
|
})(WidgetApiEvent || {});
|
|
3595
3603
|
var WidgetApiImpl = class extends BaseApi {
|