superapp-miniapp-invoke-native 1.9.13 → 1.9.14
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/lib/main.d.ts +13 -2
- package/lib/main.js +212 -191
- package/lib/main.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/main.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ declare class CommunicatePlugins implements CommunicatePluginsHookType {
|
|
|
131
131
|
homeBtnSwitch(isClick: homeIsClickType): Promise<void | undefined>;
|
|
132
132
|
setBackBtn(backBtnApiParams: BackBtnParamsType): void;
|
|
133
133
|
setHomeBtn(cb: PluginCallback): void;
|
|
134
|
-
setFabBtn(data: SetFabDataType): void;
|
|
134
|
+
setFabBtn(data: SetFabDataType, position: FabPositionType): void;
|
|
135
135
|
touchListener(touchListenerParams: TouchListenerParamsType): void;
|
|
136
136
|
disableFAB(state: DisableFABType): Promise<DisableFABType | undefined>;
|
|
137
137
|
disableBack(state: DisableBackType): Promise<DisableBackType | undefined>;
|
|
@@ -149,6 +149,7 @@ declare class CommunicatePlugins implements CommunicatePluginsHookType {
|
|
|
149
149
|
closeMiniApp(): Promise<void>;
|
|
150
150
|
getStatus(): Promise<any>;
|
|
151
151
|
dispatchToShell(params: DispatchToShellParamsType): Promise<DispatchToShellParamsType | undefined>;
|
|
152
|
+
getMiniAppInfo(miniAppParams?: MiniAppParamsType): Promise<any>;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
declare interface CommunicatePluginsHookType {
|
|
@@ -226,10 +227,16 @@ declare interface DisableFABType {
|
|
|
226
227
|
|
|
227
228
|
declare interface DispatchToShellParamsType {
|
|
228
229
|
showStoreUnderUserIcon?: boolean;
|
|
230
|
+
liveUpdate_UnassignedStore?: number;
|
|
229
231
|
[key: string]: any;
|
|
230
232
|
}
|
|
231
233
|
|
|
232
|
-
declare type FabBtnHandleType = (data: SetFabDataType | any) => void;
|
|
234
|
+
declare type FabBtnHandleType = (data: SetFabDataType | any, position: FabPositionType) => void;
|
|
235
|
+
|
|
236
|
+
declare type FabPositionType = {
|
|
237
|
+
right: number;
|
|
238
|
+
bottom: number;
|
|
239
|
+
} | null;
|
|
233
240
|
|
|
234
241
|
declare type HomeBtnHandleType = (cb: PluginCallback) => void;
|
|
235
242
|
|
|
@@ -318,6 +325,10 @@ declare interface MiniAppKongType {
|
|
|
318
325
|
[key: string]: any;
|
|
319
326
|
}
|
|
320
327
|
|
|
328
|
+
declare interface MiniAppParamsType {
|
|
329
|
+
miniAppIds?: any[];
|
|
330
|
+
}
|
|
331
|
+
|
|
321
332
|
declare interface MiniAppType {
|
|
322
333
|
miniApp: string;
|
|
323
334
|
params?: string;
|