qsh-webview-sdk 2.0.8 → 2.1.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/README.md +766 -748
- package/dist/index.d.ts +17 -0
- package/dist/qsh-webview-sdk.es.js +1112 -959
- package/dist/qsh-webview-sdk.es.js.map +1 -1
- package/dist/qsh-webview-sdk.umd.js +1 -1
- package/dist/qsh-webview-sdk.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -284,6 +284,20 @@ declare namespace UniWebView {
|
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
+
interface QshConfigOptions {
|
|
288
|
+
clientId: string;
|
|
289
|
+
isProd?: boolean;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
interface WeixinNamespace {
|
|
293
|
+
config(options: QshConfigOptions): QshConfigOptions;
|
|
294
|
+
waitForConfig(): Promise<void>;
|
|
295
|
+
isConfigReady(): boolean;
|
|
296
|
+
getConfigState(): string;
|
|
297
|
+
retryConfig(): Promise<void>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
|
|
287
301
|
/**
|
|
288
302
|
* WebView 对象接口
|
|
289
303
|
*/
|
|
@@ -307,9 +321,12 @@ declare namespace UniWebView {
|
|
|
307
321
|
environment: Environment;
|
|
308
322
|
/** 等待桥接准备就绪 */
|
|
309
323
|
ready(): Promise<void>;
|
|
324
|
+
config(options: QshConfigOptions): QshConfigOptions;
|
|
310
325
|
/** WebView 对象(兼容旧版本) */
|
|
311
326
|
webView: WebView | null;
|
|
312
327
|
|
|
328
|
+
weixin: WeixinNamespace;
|
|
329
|
+
|
|
313
330
|
/** 图片选择(Promise版本) */
|
|
314
331
|
chooseImageAsync(
|
|
315
332
|
options?: Omit<ChooseImageOptions, "success" | "fail" | "complete">,
|