superapp-miniapp-invoke-native 1.9.12 → 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 +19 -2
- package/lib/main.js +240 -198
- 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>;
|
|
@@ -148,6 +148,8 @@ declare class CommunicatePlugins implements CommunicatePluginsHookType {
|
|
|
148
148
|
switchStore(sendSwitchStoreParams: SendSwitchStoreParamsType): void;
|
|
149
149
|
closeMiniApp(): Promise<void>;
|
|
150
150
|
getStatus(): Promise<any>;
|
|
151
|
+
dispatchToShell(params: DispatchToShellParamsType): Promise<DispatchToShellParamsType | undefined>;
|
|
152
|
+
getMiniAppInfo(miniAppParams?: MiniAppParamsType): Promise<any>;
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
declare interface CommunicatePluginsHookType {
|
|
@@ -223,7 +225,18 @@ declare interface DisableFABType {
|
|
|
223
225
|
state: boolean;
|
|
224
226
|
}
|
|
225
227
|
|
|
226
|
-
declare
|
|
228
|
+
declare interface DispatchToShellParamsType {
|
|
229
|
+
showStoreUnderUserIcon?: boolean;
|
|
230
|
+
liveUpdate_UnassignedStore?: number;
|
|
231
|
+
[key: string]: any;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
declare type FabBtnHandleType = (data: SetFabDataType | any, position: FabPositionType) => void;
|
|
235
|
+
|
|
236
|
+
declare type FabPositionType = {
|
|
237
|
+
right: number;
|
|
238
|
+
bottom: number;
|
|
239
|
+
} | null;
|
|
227
240
|
|
|
228
241
|
declare type HomeBtnHandleType = (cb: PluginCallback) => void;
|
|
229
242
|
|
|
@@ -312,6 +325,10 @@ declare interface MiniAppKongType {
|
|
|
312
325
|
[key: string]: any;
|
|
313
326
|
}
|
|
314
327
|
|
|
328
|
+
declare interface MiniAppParamsType {
|
|
329
|
+
miniAppIds?: any[];
|
|
330
|
+
}
|
|
331
|
+
|
|
315
332
|
declare interface MiniAppType {
|
|
316
333
|
miniApp: string;
|
|
317
334
|
params?: string;
|