@widget-js/core 0.11.20 → 0.11.21
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 +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -3
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -313,6 +313,10 @@ interface WidgetPackageOptions extends LocalPackageUrlInfo {
|
|
|
313
313
|
title: LanguageTextMap;
|
|
314
314
|
permissions?: WidgetPermission[];
|
|
315
315
|
description: LanguageTextMap;
|
|
316
|
+
/**
|
|
317
|
+
* 远程组件包入口文件
|
|
318
|
+
* @deprecated 使用 remote.entry 替代
|
|
319
|
+
*/
|
|
316
320
|
remoteEntry?: string;
|
|
317
321
|
remotePackage?: string;
|
|
318
322
|
remote?: RemotePackageUrlInfo;
|
|
@@ -352,13 +356,18 @@ declare class WidgetPackage implements RemotePackageUrlInfo {
|
|
|
352
356
|
[key: LanguageCode | string]: string;
|
|
353
357
|
};
|
|
354
358
|
/**
|
|
355
|
-
*
|
|
359
|
+
* 本地组件入口文件,通常为 index.html
|
|
356
360
|
*/
|
|
357
361
|
entry: string | 'index.html';
|
|
358
362
|
/**
|
|
359
|
-
*
|
|
363
|
+
* 远程组件包入口文件
|
|
364
|
+
* @deprecated 使用 remote.entry 替代
|
|
360
365
|
*/
|
|
361
366
|
remoteEntry?: string;
|
|
367
|
+
/**
|
|
368
|
+
* 组件包json文件路径
|
|
369
|
+
* @example https://rtugeek.gitee.io/hotspot/widget.json
|
|
370
|
+
*/
|
|
362
371
|
readonly remotePackage?: string;
|
|
363
372
|
readonly local?: LocalPackageUrlInfo;
|
|
364
373
|
readonly remote?: RemotePackageUrlInfo;
|
|
@@ -1667,7 +1676,7 @@ interface DownloadUrlOptions {
|
|
|
1667
1676
|
overwrite?: boolean;
|
|
1668
1677
|
}
|
|
1669
1678
|
interface IFileApi {
|
|
1670
|
-
readDirectory(path: string, options?: ReadDirOptions): Promise<SystemFile
|
|
1679
|
+
readDirectory(path: string, options?: ReadDirOptions): Promise<SystemFile>;
|
|
1671
1680
|
isDirectory(filePath: string): Promise<boolean>;
|
|
1672
1681
|
getMimeType(absoluteFilePath: string): Promise<FileTypeResult>;
|
|
1673
1682
|
downloadUrl(option: DownloadUrlOptions): Promise<string>;
|
package/dist/index.js
CHANGED
|
@@ -912,13 +912,18 @@ var WidgetPackage = class {
|
|
|
912
912
|
*/
|
|
913
913
|
description;
|
|
914
914
|
/**
|
|
915
|
-
*
|
|
915
|
+
* 本地组件入口文件,通常为 index.html
|
|
916
916
|
*/
|
|
917
917
|
entry;
|
|
918
918
|
/**
|
|
919
|
-
*
|
|
919
|
+
* 远程组件包入口文件
|
|
920
|
+
* @deprecated 使用 remote.entry 替代
|
|
920
921
|
*/
|
|
921
922
|
remoteEntry;
|
|
923
|
+
/**
|
|
924
|
+
* 组件包json文件路径
|
|
925
|
+
* @example https://rtugeek.gitee.io/hotspot/widget.json
|
|
926
|
+
*/
|
|
922
927
|
remotePackage;
|
|
923
928
|
local;
|
|
924
929
|
remote;
|