@widget-js/core 0.11.20 → 0.11.22-beta.1
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 +11 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -3
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -997,13 +997,18 @@ var WidgetPackage = class {
|
|
|
997
997
|
*/
|
|
998
998
|
description;
|
|
999
999
|
/**
|
|
1000
|
-
*
|
|
1000
|
+
* 本地组件入口文件,通常为 index.html
|
|
1001
1001
|
*/
|
|
1002
1002
|
entry;
|
|
1003
1003
|
/**
|
|
1004
|
-
*
|
|
1004
|
+
* 远程组件包入口文件
|
|
1005
|
+
* @deprecated 使用 remote.entry 替代
|
|
1005
1006
|
*/
|
|
1006
1007
|
remoteEntry;
|
|
1008
|
+
/**
|
|
1009
|
+
* 组件包json文件路径
|
|
1010
|
+
* @example https://rtugeek.gitee.io/hotspot/widget.json
|
|
1011
|
+
*/
|
|
1007
1012
|
remotePackage;
|
|
1008
1013
|
local;
|
|
1009
1014
|
remote;
|
|
@@ -1829,7 +1834,7 @@ var NotificationApiImpl = class extends BaseApi {
|
|
|
1829
1834
|
await this.send(new AppNotification({
|
|
1830
1835
|
message,
|
|
1831
1836
|
type: "success",
|
|
1832
|
-
icon: "
|
|
1837
|
+
icon: "check-one",
|
|
1833
1838
|
duration
|
|
1834
1839
|
}));
|
|
1835
1840
|
}
|
|
@@ -1837,7 +1842,7 @@ var NotificationApiImpl = class extends BaseApi {
|
|
|
1837
1842
|
await this.send(new AppNotification({
|
|
1838
1843
|
message,
|
|
1839
1844
|
type: "error",
|
|
1840
|
-
icon: "
|
|
1845
|
+
icon: "close-one",
|
|
1841
1846
|
duration
|
|
1842
1847
|
}));
|
|
1843
1848
|
}
|
|
@@ -1845,7 +1850,7 @@ var NotificationApiImpl = class extends BaseApi {
|
|
|
1845
1850
|
await this.send(new AppNotification({
|
|
1846
1851
|
message,
|
|
1847
1852
|
type: "warning",
|
|
1848
|
-
icon: "
|
|
1853
|
+
icon: "attention",
|
|
1849
1854
|
duration
|
|
1850
1855
|
}));
|
|
1851
1856
|
}
|
|
@@ -1853,7 +1858,7 @@ var NotificationApiImpl = class extends BaseApi {
|
|
|
1853
1858
|
await this.send(new AppNotification({
|
|
1854
1859
|
message,
|
|
1855
1860
|
type: "info",
|
|
1856
|
-
icon: "
|
|
1861
|
+
icon: "info",
|
|
1857
1862
|
duration
|
|
1858
1863
|
}));
|
|
1859
1864
|
}
|