zmp-sdk 2.29.0 → 2.30.0

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/index.d.ts CHANGED
@@ -164,6 +164,7 @@ declare enum Events {
164
164
  AppResumed = "h5.event.resumed",
165
165
  NetworkChanged = "h5.event.connection.changed",
166
166
  OnDataCallback = "h5.event.webview.result",
167
+ WebviewClosed = "h5.event.webview.close",
167
168
  OpenApp = "h5.event.open.mp",
168
169
  AppClose = "h5.event.action.close",
169
170
  PaymentCallback = "payment.callback",
@@ -2072,9 +2073,27 @@ declare function vibrate(args?: AsyncVoidCallback & TypeOf<typeof vibrateArgs[0]
2072
2073
 
2073
2074
  declare const openWebviewArgs: ZodObject<{
2074
2075
  url: ZodString;
2076
+ config: ZodOptional<ZodObject<{
2077
+ style: ZodOptional<ZodDefault<ZodEnum<["bottomSheet", "normal"]>>>;
2078
+ leftButton: ZodOptional<ZodDefault<ZodEnum<["back", "none"]>>>;
2079
+ }, "strip", ZodTypeAny, {
2080
+ style?: "normal" | "bottomSheet" | undefined;
2081
+ leftButton?: "none" | "back" | undefined;
2082
+ }, {
2083
+ style?: "normal" | "bottomSheet" | undefined;
2084
+ leftButton?: "none" | "back" | undefined;
2085
+ }>>;
2075
2086
  }, "strip", ZodTypeAny, {
2087
+ config?: {
2088
+ style?: "normal" | "bottomSheet" | undefined;
2089
+ leftButton?: "none" | "back" | undefined;
2090
+ } | undefined;
2076
2091
  url: string;
2077
2092
  }, {
2093
+ config?: {
2094
+ style?: "normal" | "bottomSheet" | undefined;
2095
+ leftButton?: "none" | "back" | undefined;
2096
+ } | undefined;
2078
2097
  url: string;
2079
2098
  }>[];
2080
2099
  declare function openWebview(args: AsyncCallback<OpenWebviewReturns> & TypeOf<typeof openWebviewArgs[0]>): Promise<void>;
@@ -2306,13 +2325,13 @@ declare const configAppViewArgs: ZodObject<{
2306
2325
  textAlign: ZodOptional<ZodDefault<ZodEnum<["left", "center"]>>>;
2307
2326
  }, "strip", ZodTypeAny, {
2308
2327
  title?: string | undefined;
2309
- hide?: boolean | undefined;
2310
2328
  leftButton?: "none" | "back" | undefined;
2329
+ hide?: boolean | undefined;
2311
2330
  textAlign?: "left" | "center" | undefined;
2312
2331
  }, {
2313
2332
  title?: string | undefined;
2314
- hide?: boolean | undefined;
2315
2333
  leftButton?: "none" | "back" | undefined;
2334
+ hide?: boolean | undefined;
2316
2335
  textAlign?: "left" | "center" | undefined;
2317
2336
  }>>;
2318
2337
  statusBarType: ZodOptional<ZodEnum<["normal", "hidden", "transparent"]>>;
@@ -2323,8 +2342,8 @@ declare const configAppViewArgs: ZodObject<{
2323
2342
  headerColor?: string | undefined;
2324
2343
  actionBar?: {
2325
2344
  title?: string | undefined;
2326
- hide?: boolean | undefined;
2327
2345
  leftButton?: "none" | "back" | undefined;
2346
+ hide?: boolean | undefined;
2328
2347
  textAlign?: "left" | "center" | undefined;
2329
2348
  } | undefined;
2330
2349
  statusBarType?: "hidden" | "transparent" | "normal" | undefined;
@@ -2335,8 +2354,8 @@ declare const configAppViewArgs: ZodObject<{
2335
2354
  headerColor?: string | undefined;
2336
2355
  actionBar?: {
2337
2356
  title?: string | undefined;
2338
- hide?: boolean | undefined;
2339
2357
  leftButton?: "none" | "back" | undefined;
2358
+ hide?: boolean | undefined;
2340
2359
  textAlign?: "left" | "center" | undefined;
2341
2360
  } | undefined;
2342
2361
  statusBarType?: "hidden" | "transparent" | "normal" | undefined;