@widget-js/core 24.1.1-beta.76 → 24.1.1-beta.78

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.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as CSS from 'csstype';
2
2
  import { FileTypeResult } from 'file-type';
3
3
  import { FormatEnum, ColourspaceEnum, Channels, LevelMetadata } from 'sharp';
4
+ import { AuthSession, AuthUser } from '@supabase/supabase-js';
4
5
 
5
6
  interface Language {
6
7
  baseName: string;
@@ -2293,25 +2294,12 @@ declare enum TrayApiEvent {
2293
2294
  CLICK = "channel::cn.widgetjs.core.tray.click"
2294
2295
  }
2295
2296
 
2296
- interface AppUser {
2297
- /**
2298
- * User's auth token, commonly JWT token
2299
- */
2300
- token: string;
2301
- nickName?: string;
2302
- email: string;
2303
- id: number;
2304
- avatar: string;
2305
- createTime: string;
2306
- updateTime: string;
2307
- }
2308
-
2309
2297
  interface IUserApi {
2310
2298
  /**
2311
2299
  * Login with user info.
2312
2300
  * @param token
2313
2301
  */
2314
- login: (user: AppUser) => Promise<void>;
2302
+ login: (session: AuthSession) => Promise<void>;
2315
2303
  /**
2316
2304
  * Clear user auth token and user info.
2317
2305
  */
@@ -2319,8 +2307,24 @@ interface IUserApi {
2319
2307
  /**
2320
2308
  * Get current logged in user info. If no user is logged in, return null.
2321
2309
  */
2322
- getUserInfo: () => Promise<AppUser | null>;
2310
+ getUser: () => Promise<AuthUser | null>;
2311
+ updateSession: (session: AuthSession) => Promise<void>;
2312
+ getSession: () => Promise<AuthSession | null>;
2313
+ updateUser: (user: AuthUser) => Promise<void>;
2323
2314
  }
2315
+ /**
2316
+ * ShortcutApiEvent
2317
+ */
2318
+ declare enum UserApiEvent {
2319
+ /**
2320
+ * 快捷键触发事件
2321
+ */
2322
+ USER_UPDATED = "channel::cn.widgetjs.core.user.updated",
2323
+ SIGNED_OUT = "channel::cn.widgetjs.core.user.signed.out",
2324
+ SIGNED_IN = "channel::cn.widgetjs.core.user.signed.in",
2325
+ TOKEN_REFRESHED = "channel::cn.widgetjs.core.user.token.refreshed"
2326
+ }
2327
+ type UserApiMethods = keyof IUserApi;
2324
2328
 
2325
2329
  type DeviceApiMethods = keyof IDeviceApi;
2326
2330
  declare const DeviceApi: IDeviceApi;
@@ -2774,6 +2778,8 @@ interface IWidgetApi {
2774
2778
  */
2775
2779
  getWidgetPackageUrl: (packageName: string) => Promise<string | null>;
2776
2780
  restartWidgets: (mode?: DeployMode) => Promise<void>;
2781
+ updateSyncInfo: () => Promise<void>;
2782
+ getSyncInfo: (widgetName?: string) => Promise<WidgetSyncInfo | null>;
2777
2783
  }
2778
2784
 
2779
2785
  type WidgetApiMethods = keyof IWidgetApi;
@@ -2784,6 +2790,8 @@ declare enum WidgetApiEvent {
2784
2790
  PACKAGE_INSTALLED = "event::cn.widgetjs.core.widget.package.installed"
2785
2791
  }
2786
2792
  declare class WidgetApiImpl extends BaseApi<WidgetApiMethods> implements IWidgetApi {
2793
+ getSyncInfo(widgetName?: string): Promise<WidgetSyncInfo | null>;
2794
+ updateSyncInfo(): Promise<void>;
2787
2795
  reload(id?: string): Promise<void>;
2788
2796
  getChannel(): string;
2789
2797
  registerWidgets(widgets: Widget[]): Promise<any>;
@@ -3197,6 +3205,10 @@ interface IWidgetOptions extends IWindowSize, IPageOptions {
3197
3205
  */
3198
3206
  disabled?: boolean;
3199
3207
  previewImage: string;
3208
+ /**
3209
+ * whether the widget data can be synchronized
3210
+ */
3211
+ synchronizable?: boolean;
3200
3212
  categories?: Category[];
3201
3213
  /**
3202
3214
  * 组件包所需的App版本
@@ -3244,6 +3256,7 @@ declare class Widget extends Page {
3244
3256
  * 如果为true,组件将不会添加到组件包中
3245
3257
  */
3246
3258
  readonly disabled?: boolean;
3259
+ readonly synchronizable?: boolean;
3247
3260
  /**
3248
3261
  * 配置页面路径,没有则不能修改
3249
3262
  */
@@ -3316,6 +3329,11 @@ interface AppMouseEvent {
3316
3329
  location: string;
3317
3330
  }
3318
3331
 
3332
+ interface WidgetSyncInfo {
3333
+ widgetName: string;
3334
+ latestSyncTime: Date;
3335
+ }
3336
+
3319
3337
  declare class ElectronUtils {
3320
3338
  static hasElectronApi(): boolean;
3321
3339
  /**
@@ -3763,4 +3781,4 @@ declare class GridSystem extends GridRect {
3763
3781
  getHeight(): number;
3764
3782
  }
3765
3783
 
3766
- export { type AddWidgetOption, type AlignPosition, ApiConstants, AppApi, AppApiConstants, AppApiEvent, type AppApiMethods, AppConfig, AppEvent, type AppMouseEvent, AppNotification, AppReminderNotification, type AppRuntimeInfo, BackgroundWidget, BaseApi, type BatteryData, BroadcastApi, type BroadcastApiMethods, BroadcastEvent, type BroadcastEventType, BrowserWindowApi, BrowserWindowApiEvent, type BrowserWindowApiMethods, type BrowserWindowOptions, type CallNotificationOption, type Category, Channel, ClipboardApi, ClipboardApiEvent, type ClipboardApiMethods, type CountdownNotificationOption, type CpuCacheData, type CpuCurrentSpeedData, type CpuData, type CurrentLoadCpuData, type CurrentLoadData, DefaultWidgetTheme, DeployMode, DeployedPage, DeployedWidget, DeployedWidgetApi, type DeployedWidgetApiMethods, type DevOptions, DeviceApi, type DeviceApiMethods, DialogApi, type DialogApiMethods, type DiskLayoutData, type Display, type DownloadUrlOptions, ElectronApi, ElectronUtils, FileApi, type FileApiMethods, type GraphicsControllerData, type GraphicsData, type GraphicsDisplayData, Gravity, GridRect, GridSystem, type Hardware, type HardwareSensor, type HardwareType, HostedMode, HttpApi, type HttpApiMethods, type IAppApi, type IBackgroundWidgetOptions, type IDeviceApi, type IDialogApi, type IFileApi, type IGridRect, type ILogApi, type IMouseApi, type IPage, type IPageOptions, type IProcessApi, type ITrayApi, type IUserApi, type IWidgetDataApi, type IWidgetOptions, type IWidgetPackageApi, type IWidgetTheme, type IWindowSize, type InfoNotificationOption, type Language, type LanguageCode, LanguageMap, type LanguageTextMap, LanguageUtils, type LocalPackageUrlInfo, type LocationQuery, type LocationQueryRaw, type LocationQueryValue, type LocationQueryValueRaw, LogApi, type LogApiMethods, type MemData, type MemLayoutData, MenuApi, MenuApiEvent, type MenuApiMethods, type MetaInfo, type Metadata, MouseApi, MouseApiEvent, type MouseApiMethods, type NativeKeyboardEvent, type Node, type NormalizeOptions, NotificationApi, NotificationApiEvent, type NotificationApiMethods, type NotificationOption, NotificationSize, type NotificationType, type OsData, Page, type Point, type Position, ProcessApi, type ProcessApiMethods, type ProxyConfig, type ReadDirOptions, type Rectangle, type ReminderNotificationOption, type RemotePackageUrlInfo, type SaveWidgetOption, type SensorType, type SetPositionOptions, ShortcutApi, ShortcutApiEvent, type ShortcutApiMethods, type ShortcutDetails, type ShowMenuOption, type Size, type SmartData, SocialInfo, type SocialLink, type SocialType, StorageApi, type StorageApiMethods, StoreApi, type StoreApiMethods, SystemApi, SystemApiEvent, type SystemApiMethods, type SystemFile, ThemeMode, TrayApiEvent, type TrayWidgetOptions, UserApi, type UserData, type VersionData, WebSocketEvent, WebSocketEventType, Widget, WidgetApi, WidgetApiEvent, type WidgetApiMethods, WidgetData, WidgetDataApi, type WidgetDataApiMethods, WidgetKeyword, type WidgetMenuItem, WidgetPackage, WidgetPackageApi, WidgetPackageApiEvent, type WidgetPackageApiMethods, type WidgetPackageOptions, WidgetPackageUtils, WidgetParams, type WidgetPermission, type WidgetRoute, WidgetTheme, type WidgetThemeKey, type WidgetThemeProperty, WidgetUtils, delay, normalizeUrl, parseQuery, stringifyQuery };
3784
+ export { type AddWidgetOption, type AlignPosition, ApiConstants, AppApi, AppApiConstants, AppApiEvent, type AppApiMethods, AppConfig, AppEvent, type AppMouseEvent, AppNotification, AppReminderNotification, type AppRuntimeInfo, BackgroundWidget, BaseApi, type BatteryData, BroadcastApi, type BroadcastApiMethods, BroadcastEvent, type BroadcastEventType, BrowserWindowApi, BrowserWindowApiEvent, type BrowserWindowApiMethods, type BrowserWindowOptions, type CallNotificationOption, type Category, Channel, ClipboardApi, ClipboardApiEvent, type ClipboardApiMethods, type CountdownNotificationOption, type CpuCacheData, type CpuCurrentSpeedData, type CpuData, type CurrentLoadCpuData, type CurrentLoadData, DefaultWidgetTheme, DeployMode, DeployedPage, DeployedWidget, DeployedWidgetApi, type DeployedWidgetApiMethods, type DevOptions, DeviceApi, type DeviceApiMethods, DialogApi, type DialogApiMethods, type DiskLayoutData, type Display, type DownloadUrlOptions, ElectronApi, ElectronUtils, FileApi, type FileApiMethods, type GraphicsControllerData, type GraphicsData, type GraphicsDisplayData, Gravity, GridRect, GridSystem, type Hardware, type HardwareSensor, type HardwareType, HostedMode, HttpApi, type HttpApiMethods, type IAppApi, type IBackgroundWidgetOptions, type IDeviceApi, type IDialogApi, type IFileApi, type IGridRect, type ILogApi, type IMouseApi, type IPage, type IPageOptions, type IProcessApi, type ITrayApi, type IUserApi, type IWidgetDataApi, type IWidgetOptions, type IWidgetPackageApi, type IWidgetTheme, type IWindowSize, type InfoNotificationOption, type Language, type LanguageCode, LanguageMap, type LanguageTextMap, LanguageUtils, type LocalPackageUrlInfo, type LocationQuery, type LocationQueryRaw, type LocationQueryValue, type LocationQueryValueRaw, LogApi, type LogApiMethods, type MemData, type MemLayoutData, MenuApi, MenuApiEvent, type MenuApiMethods, type MetaInfo, type Metadata, MouseApi, MouseApiEvent, type MouseApiMethods, type NativeKeyboardEvent, type Node, type NormalizeOptions, NotificationApi, NotificationApiEvent, type NotificationApiMethods, type NotificationOption, NotificationSize, type NotificationType, type OsData, Page, type Point, type Position, ProcessApi, type ProcessApiMethods, type ProxyConfig, type ReadDirOptions, type Rectangle, type ReminderNotificationOption, type RemotePackageUrlInfo, type SaveWidgetOption, type SensorType, type SetPositionOptions, ShortcutApi, ShortcutApiEvent, type ShortcutApiMethods, type ShortcutDetails, type ShowMenuOption, type Size, type SmartData, SocialInfo, type SocialLink, type SocialType, StorageApi, type StorageApiMethods, StoreApi, type StoreApiMethods, SystemApi, SystemApiEvent, type SystemApiMethods, type SystemFile, ThemeMode, TrayApiEvent, type TrayWidgetOptions, UserApi, UserApiEvent, type UserApiMethods, type UserData, type VersionData, WebSocketEvent, WebSocketEventType, Widget, WidgetApi, WidgetApiEvent, type WidgetApiMethods, WidgetData, WidgetDataApi, type WidgetDataApiMethods, WidgetKeyword, type WidgetMenuItem, WidgetPackage, WidgetPackageApi, WidgetPackageApiEvent, type WidgetPackageApiMethods, type WidgetPackageOptions, WidgetPackageUtils, WidgetParams, type WidgetPermission, type WidgetRoute, type WidgetSyncInfo, WidgetTheme, type WidgetThemeKey, type WidgetThemeProperty, WidgetUtils, delay, normalizeUrl, parseQuery, stringifyQuery };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as CSS from 'csstype';
2
2
  import { FileTypeResult } from 'file-type';
3
3
  import { FormatEnum, ColourspaceEnum, Channels, LevelMetadata } from 'sharp';
4
+ import { AuthSession, AuthUser } from '@supabase/supabase-js';
4
5
 
5
6
  interface Language {
6
7
  baseName: string;
@@ -2293,25 +2294,12 @@ declare enum TrayApiEvent {
2293
2294
  CLICK = "channel::cn.widgetjs.core.tray.click"
2294
2295
  }
2295
2296
 
2296
- interface AppUser {
2297
- /**
2298
- * User's auth token, commonly JWT token
2299
- */
2300
- token: string;
2301
- nickName?: string;
2302
- email: string;
2303
- id: number;
2304
- avatar: string;
2305
- createTime: string;
2306
- updateTime: string;
2307
- }
2308
-
2309
2297
  interface IUserApi {
2310
2298
  /**
2311
2299
  * Login with user info.
2312
2300
  * @param token
2313
2301
  */
2314
- login: (user: AppUser) => Promise<void>;
2302
+ login: (session: AuthSession) => Promise<void>;
2315
2303
  /**
2316
2304
  * Clear user auth token and user info.
2317
2305
  */
@@ -2319,8 +2307,24 @@ interface IUserApi {
2319
2307
  /**
2320
2308
  * Get current logged in user info. If no user is logged in, return null.
2321
2309
  */
2322
- getUserInfo: () => Promise<AppUser | null>;
2310
+ getUser: () => Promise<AuthUser | null>;
2311
+ updateSession: (session: AuthSession) => Promise<void>;
2312
+ getSession: () => Promise<AuthSession | null>;
2313
+ updateUser: (user: AuthUser) => Promise<void>;
2323
2314
  }
2315
+ /**
2316
+ * ShortcutApiEvent
2317
+ */
2318
+ declare enum UserApiEvent {
2319
+ /**
2320
+ * 快捷键触发事件
2321
+ */
2322
+ USER_UPDATED = "channel::cn.widgetjs.core.user.updated",
2323
+ SIGNED_OUT = "channel::cn.widgetjs.core.user.signed.out",
2324
+ SIGNED_IN = "channel::cn.widgetjs.core.user.signed.in",
2325
+ TOKEN_REFRESHED = "channel::cn.widgetjs.core.user.token.refreshed"
2326
+ }
2327
+ type UserApiMethods = keyof IUserApi;
2324
2328
 
2325
2329
  type DeviceApiMethods = keyof IDeviceApi;
2326
2330
  declare const DeviceApi: IDeviceApi;
@@ -2774,6 +2778,8 @@ interface IWidgetApi {
2774
2778
  */
2775
2779
  getWidgetPackageUrl: (packageName: string) => Promise<string | null>;
2776
2780
  restartWidgets: (mode?: DeployMode) => Promise<void>;
2781
+ updateSyncInfo: () => Promise<void>;
2782
+ getSyncInfo: (widgetName?: string) => Promise<WidgetSyncInfo | null>;
2777
2783
  }
2778
2784
 
2779
2785
  type WidgetApiMethods = keyof IWidgetApi;
@@ -2784,6 +2790,8 @@ declare enum WidgetApiEvent {
2784
2790
  PACKAGE_INSTALLED = "event::cn.widgetjs.core.widget.package.installed"
2785
2791
  }
2786
2792
  declare class WidgetApiImpl extends BaseApi<WidgetApiMethods> implements IWidgetApi {
2793
+ getSyncInfo(widgetName?: string): Promise<WidgetSyncInfo | null>;
2794
+ updateSyncInfo(): Promise<void>;
2787
2795
  reload(id?: string): Promise<void>;
2788
2796
  getChannel(): string;
2789
2797
  registerWidgets(widgets: Widget[]): Promise<any>;
@@ -3197,6 +3205,10 @@ interface IWidgetOptions extends IWindowSize, IPageOptions {
3197
3205
  */
3198
3206
  disabled?: boolean;
3199
3207
  previewImage: string;
3208
+ /**
3209
+ * whether the widget data can be synchronized
3210
+ */
3211
+ synchronizable?: boolean;
3200
3212
  categories?: Category[];
3201
3213
  /**
3202
3214
  * 组件包所需的App版本
@@ -3244,6 +3256,7 @@ declare class Widget extends Page {
3244
3256
  * 如果为true,组件将不会添加到组件包中
3245
3257
  */
3246
3258
  readonly disabled?: boolean;
3259
+ readonly synchronizable?: boolean;
3247
3260
  /**
3248
3261
  * 配置页面路径,没有则不能修改
3249
3262
  */
@@ -3316,6 +3329,11 @@ interface AppMouseEvent {
3316
3329
  location: string;
3317
3330
  }
3318
3331
 
3332
+ interface WidgetSyncInfo {
3333
+ widgetName: string;
3334
+ latestSyncTime: Date;
3335
+ }
3336
+
3319
3337
  declare class ElectronUtils {
3320
3338
  static hasElectronApi(): boolean;
3321
3339
  /**
@@ -3763,4 +3781,4 @@ declare class GridSystem extends GridRect {
3763
3781
  getHeight(): number;
3764
3782
  }
3765
3783
 
3766
- export { type AddWidgetOption, type AlignPosition, ApiConstants, AppApi, AppApiConstants, AppApiEvent, type AppApiMethods, AppConfig, AppEvent, type AppMouseEvent, AppNotification, AppReminderNotification, type AppRuntimeInfo, BackgroundWidget, BaseApi, type BatteryData, BroadcastApi, type BroadcastApiMethods, BroadcastEvent, type BroadcastEventType, BrowserWindowApi, BrowserWindowApiEvent, type BrowserWindowApiMethods, type BrowserWindowOptions, type CallNotificationOption, type Category, Channel, ClipboardApi, ClipboardApiEvent, type ClipboardApiMethods, type CountdownNotificationOption, type CpuCacheData, type CpuCurrentSpeedData, type CpuData, type CurrentLoadCpuData, type CurrentLoadData, DefaultWidgetTheme, DeployMode, DeployedPage, DeployedWidget, DeployedWidgetApi, type DeployedWidgetApiMethods, type DevOptions, DeviceApi, type DeviceApiMethods, DialogApi, type DialogApiMethods, type DiskLayoutData, type Display, type DownloadUrlOptions, ElectronApi, ElectronUtils, FileApi, type FileApiMethods, type GraphicsControllerData, type GraphicsData, type GraphicsDisplayData, Gravity, GridRect, GridSystem, type Hardware, type HardwareSensor, type HardwareType, HostedMode, HttpApi, type HttpApiMethods, type IAppApi, type IBackgroundWidgetOptions, type IDeviceApi, type IDialogApi, type IFileApi, type IGridRect, type ILogApi, type IMouseApi, type IPage, type IPageOptions, type IProcessApi, type ITrayApi, type IUserApi, type IWidgetDataApi, type IWidgetOptions, type IWidgetPackageApi, type IWidgetTheme, type IWindowSize, type InfoNotificationOption, type Language, type LanguageCode, LanguageMap, type LanguageTextMap, LanguageUtils, type LocalPackageUrlInfo, type LocationQuery, type LocationQueryRaw, type LocationQueryValue, type LocationQueryValueRaw, LogApi, type LogApiMethods, type MemData, type MemLayoutData, MenuApi, MenuApiEvent, type MenuApiMethods, type MetaInfo, type Metadata, MouseApi, MouseApiEvent, type MouseApiMethods, type NativeKeyboardEvent, type Node, type NormalizeOptions, NotificationApi, NotificationApiEvent, type NotificationApiMethods, type NotificationOption, NotificationSize, type NotificationType, type OsData, Page, type Point, type Position, ProcessApi, type ProcessApiMethods, type ProxyConfig, type ReadDirOptions, type Rectangle, type ReminderNotificationOption, type RemotePackageUrlInfo, type SaveWidgetOption, type SensorType, type SetPositionOptions, ShortcutApi, ShortcutApiEvent, type ShortcutApiMethods, type ShortcutDetails, type ShowMenuOption, type Size, type SmartData, SocialInfo, type SocialLink, type SocialType, StorageApi, type StorageApiMethods, StoreApi, type StoreApiMethods, SystemApi, SystemApiEvent, type SystemApiMethods, type SystemFile, ThemeMode, TrayApiEvent, type TrayWidgetOptions, UserApi, type UserData, type VersionData, WebSocketEvent, WebSocketEventType, Widget, WidgetApi, WidgetApiEvent, type WidgetApiMethods, WidgetData, WidgetDataApi, type WidgetDataApiMethods, WidgetKeyword, type WidgetMenuItem, WidgetPackage, WidgetPackageApi, WidgetPackageApiEvent, type WidgetPackageApiMethods, type WidgetPackageOptions, WidgetPackageUtils, WidgetParams, type WidgetPermission, type WidgetRoute, WidgetTheme, type WidgetThemeKey, type WidgetThemeProperty, WidgetUtils, delay, normalizeUrl, parseQuery, stringifyQuery };
3784
+ export { type AddWidgetOption, type AlignPosition, ApiConstants, AppApi, AppApiConstants, AppApiEvent, type AppApiMethods, AppConfig, AppEvent, type AppMouseEvent, AppNotification, AppReminderNotification, type AppRuntimeInfo, BackgroundWidget, BaseApi, type BatteryData, BroadcastApi, type BroadcastApiMethods, BroadcastEvent, type BroadcastEventType, BrowserWindowApi, BrowserWindowApiEvent, type BrowserWindowApiMethods, type BrowserWindowOptions, type CallNotificationOption, type Category, Channel, ClipboardApi, ClipboardApiEvent, type ClipboardApiMethods, type CountdownNotificationOption, type CpuCacheData, type CpuCurrentSpeedData, type CpuData, type CurrentLoadCpuData, type CurrentLoadData, DefaultWidgetTheme, DeployMode, DeployedPage, DeployedWidget, DeployedWidgetApi, type DeployedWidgetApiMethods, type DevOptions, DeviceApi, type DeviceApiMethods, DialogApi, type DialogApiMethods, type DiskLayoutData, type Display, type DownloadUrlOptions, ElectronApi, ElectronUtils, FileApi, type FileApiMethods, type GraphicsControllerData, type GraphicsData, type GraphicsDisplayData, Gravity, GridRect, GridSystem, type Hardware, type HardwareSensor, type HardwareType, HostedMode, HttpApi, type HttpApiMethods, type IAppApi, type IBackgroundWidgetOptions, type IDeviceApi, type IDialogApi, type IFileApi, type IGridRect, type ILogApi, type IMouseApi, type IPage, type IPageOptions, type IProcessApi, type ITrayApi, type IUserApi, type IWidgetDataApi, type IWidgetOptions, type IWidgetPackageApi, type IWidgetTheme, type IWindowSize, type InfoNotificationOption, type Language, type LanguageCode, LanguageMap, type LanguageTextMap, LanguageUtils, type LocalPackageUrlInfo, type LocationQuery, type LocationQueryRaw, type LocationQueryValue, type LocationQueryValueRaw, LogApi, type LogApiMethods, type MemData, type MemLayoutData, MenuApi, MenuApiEvent, type MenuApiMethods, type MetaInfo, type Metadata, MouseApi, MouseApiEvent, type MouseApiMethods, type NativeKeyboardEvent, type Node, type NormalizeOptions, NotificationApi, NotificationApiEvent, type NotificationApiMethods, type NotificationOption, NotificationSize, type NotificationType, type OsData, Page, type Point, type Position, ProcessApi, type ProcessApiMethods, type ProxyConfig, type ReadDirOptions, type Rectangle, type ReminderNotificationOption, type RemotePackageUrlInfo, type SaveWidgetOption, type SensorType, type SetPositionOptions, ShortcutApi, ShortcutApiEvent, type ShortcutApiMethods, type ShortcutDetails, type ShowMenuOption, type Size, type SmartData, SocialInfo, type SocialLink, type SocialType, StorageApi, type StorageApiMethods, StoreApi, type StoreApiMethods, SystemApi, SystemApiEvent, type SystemApiMethods, type SystemFile, ThemeMode, TrayApiEvent, type TrayWidgetOptions, UserApi, UserApiEvent, type UserApiMethods, type UserData, type VersionData, WebSocketEvent, WebSocketEventType, Widget, WidgetApi, WidgetApiEvent, type WidgetApiMethods, WidgetData, WidgetDataApi, type WidgetDataApiMethods, WidgetKeyword, type WidgetMenuItem, WidgetPackage, WidgetPackageApi, WidgetPackageApiEvent, type WidgetPackageApiMethods, type WidgetPackageOptions, WidgetPackageUtils, WidgetParams, type WidgetPermission, type WidgetRoute, type WidgetSyncInfo, WidgetTheme, type WidgetThemeKey, type WidgetThemeProperty, WidgetUtils, delay, normalizeUrl, parseQuery, stringifyQuery };