zmp-sdk 2.51.3 → 2.51.4
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/apis/apis/showFunctionButtonWidget.js +1 -1
- package/apis/index.d.ts +12 -1
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +12 -1
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AsyncVoidCallback as AsyncVoidCallback$1, StreamType as StreamType$1, MediaConstraints as MediaConstraints$1, PhotoConstraint as PhotoConstraint$1, PhotoFrame as PhotoFrame$1, MediaDevice as MediaDevice$1, CameraEvents as CameraEvents$1 } from '@mp-types';
|
|
2
|
+
import { AppError as AppError$1 } from '@utils/errorHandler';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @typedef {"none" | "wifi" | "cellular" | "unknown"} NetworkType
|
|
@@ -5774,7 +5775,17 @@ declare const showFunctionButtonWidgetArgs: ZodObject<{
|
|
|
5774
5775
|
type: string;
|
|
5775
5776
|
id: string;
|
|
5776
5777
|
}>[];
|
|
5777
|
-
|
|
5778
|
+
type FunctionButtonWidgetContext = {
|
|
5779
|
+
callAction: (actionName: string, actionData: any) => void;
|
|
5780
|
+
};
|
|
5781
|
+
type FunctionButtonWidgetOnDataReceived = (interactToken: string, type: string, context: FunctionButtonWidgetContext) => void;
|
|
5782
|
+
type FunctionButtonWidgetOnError = (error: AppError$1) => void;
|
|
5783
|
+
type ShowFunctionButtonWidgetValidatedArgs = TypeOf<(typeof showFunctionButtonWidgetArgs)[0]>;
|
|
5784
|
+
type ShowFunctionButtonWidgetArgs = Omit<ShowFunctionButtonWidgetValidatedArgs, "onDataReceived" | "onError"> & {
|
|
5785
|
+
onDataReceived?: FunctionButtonWidgetOnDataReceived;
|
|
5786
|
+
onError?: FunctionButtonWidgetOnError;
|
|
5787
|
+
};
|
|
5788
|
+
declare function showFunctionButtonWidget(args: AsyncVoidCallback & ShowFunctionButtonWidgetArgs): Promise<void>;
|
|
5778
5789
|
|
|
5779
5790
|
declare const scanNFCArgs: ZodObject<{
|
|
5780
5791
|
type: ZodEnum<["cccd"]>;
|