@tarojs/taro-h5 3.6.8 → 3.6.9-alpha.10

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.
Files changed (69) hide show
  1. package/dist/api/ai/index.d.ts +1 -0
  2. package/dist/api/ai/index.js +1 -0
  3. package/dist/api/ai/index.js.map +1 -1
  4. package/dist/api/ai/inference.d.ts +3 -0
  5. package/dist/api/ai/inference.js +8 -0
  6. package/dist/api/ai/inference.js.map +1 -0
  7. package/dist/api/alipay/index.d.ts +2 -1
  8. package/dist/api/alipay/index.js +2 -1
  9. package/dist/api/alipay/index.js.map +1 -1
  10. package/dist/api/base/index.js +3 -3
  11. package/dist/api/base/performance.d.ts +4 -1
  12. package/dist/api/base/performance.js +4 -1
  13. package/dist/api/base/performance.js.map +1 -1
  14. package/dist/api/base/system.d.ts +4 -1
  15. package/dist/api/base/system.js +4 -1
  16. package/dist/api/base/system.js.map +1 -1
  17. package/dist/api/base/weapp/app-event.d.ts +3 -1
  18. package/dist/api/base/weapp/app-event.js +3 -1
  19. package/dist/api/base/weapp/app-event.js.map +1 -1
  20. package/dist/api/device/index.d.ts +1 -0
  21. package/dist/api/device/index.js +2 -1
  22. package/dist/api/device/index.js.map +1 -1
  23. package/dist/api/device/screen.d.ts +4 -1
  24. package/dist/api/device/screen.js +4 -1
  25. package/dist/api/device/screen.js.map +1 -1
  26. package/dist/api/device/sms.d.ts +2 -0
  27. package/dist/api/device/sms.js +7 -0
  28. package/dist/api/device/sms.js.map +1 -0
  29. package/dist/api/index.js +13 -9
  30. package/dist/api/index.js.map +1 -1
  31. package/dist/api/media/image/previewImage.js +5 -5
  32. package/dist/api/media/image/previewImage.js.map +1 -1
  33. package/dist/api/media/index.js +1 -1
  34. package/dist/api/media/video/chooseMedia.js +1 -1
  35. package/dist/api/media/video/chooseMedia.js.map +1 -1
  36. package/dist/api/media/voip.d.ts +3 -1
  37. package/dist/api/media/voip.js +3 -1
  38. package/dist/api/media/voip.js.map +1 -1
  39. package/dist/api/open-api/channels-live.d.ts +3 -1
  40. package/dist/api/open-api/channels-live.js +3 -1
  41. package/dist/api/open-api/channels-live.js.map +1 -1
  42. package/dist/api/open-api/device-voip.d.ts +3 -0
  43. package/dist/api/open-api/device-voip.js +8 -0
  44. package/dist/api/open-api/device-voip.js.map +1 -0
  45. package/dist/api/open-api/index.d.ts +1 -0
  46. package/dist/api/open-api/index.js +2 -1
  47. package/dist/api/open-api/index.js.map +1 -1
  48. package/dist/api/payment/index.d.ts +2 -1
  49. package/dist/api/payment/index.js +2 -1
  50. package/dist/api/payment/index.js.map +1 -1
  51. package/dist/api/storage/cache-manager.d.ts +2 -0
  52. package/dist/api/storage/cache-manager.js +7 -0
  53. package/dist/api/storage/cache-manager.js.map +1 -0
  54. package/dist/api/storage/index.d.ts +6 -1
  55. package/dist/api/storage/index.js +6 -1
  56. package/dist/api/storage/index.js.map +1 -1
  57. package/dist/api/wxml/IntersectionObserver.js +8 -5
  58. package/dist/api/wxml/IntersectionObserver.js.map +1 -1
  59. package/dist/api/wxml/selectorQuery.js +9 -6
  60. package/dist/api/wxml/selectorQuery.js.map +1 -1
  61. package/dist/index.cjs.d.ts +32 -1
  62. package/dist/index.cjs.js +83 -17
  63. package/dist/index.cjs.js.map +1 -1
  64. package/dist/index.esm.d.ts +32 -1
  65. package/dist/index.esm.js +57 -18
  66. package/dist/index.esm.js.map +1 -1
  67. package/dist/index.js +13 -9
  68. package/dist/index.js.map +1 -1
  69. package/package.json +6 -6
@@ -25,12 +25,16 @@ declare const createInterstitialAd: (option?: {}, ...args: any[]) => Promise<Par
25
25
  declare const stopFaceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
26
26
  declare const initFaceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
27
27
  declare const faceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
28
+ // AI推理
29
+ declare const getInferenceEnvInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
30
+ declare const createInferenceSession: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
28
31
  // 判断支持版本
29
32
  declare const isVKSupport: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
30
33
  // 视觉算法
31
34
  declare const createVKSession: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
32
35
  // AliPay
33
36
  declare const getOpenUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
37
+ declare const tradePay: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
34
38
  declare const env: {
35
39
  FRAMEWORK: string | undefined;
36
40
  TARO_ENV: string | undefined;
@@ -49,6 +53,9 @@ declare const getLogManager: (option?: {}, ...args: any[]) => Promise<Partial<Ta
49
53
  // 性能
50
54
  declare const reportPerformance: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
51
55
  declare const getPerformance: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
56
+ declare const preloadWebview: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
57
+ declare const preloadSkylineView: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
58
+ declare const preloadAssets: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
52
59
  /** 跳转系统蓝牙设置页 */
53
60
  declare const openSystemBluetoothSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
54
61
  /** 跳转系统微信授权管理页 */
@@ -69,6 +76,9 @@ declare const getSystemInfoSync: typeof Taro.getSystemInfoSync;
69
76
  declare const getSystemInfoAsync: typeof Taro.getSystemInfoAsync;
70
77
  /** 获取系统信息 */
71
78
  declare const getSystemInfo: typeof Taro.getSystemInfo;
79
+ declare const getSkylineInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
80
+ declare const getSkylineInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
81
+ declare const getRendererUserAgent: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
72
82
  // 更新
73
83
  declare const updateWeChatApp: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
74
84
  declare const getUpdateManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -76,6 +86,7 @@ declare const getUpdateManager: (option?: {}, ...args: any[]) => Promise<Partial
76
86
  declare const onUnhandledRejection: typeof Taro.onUnhandledRejection;
77
87
  declare const onThemeChange: typeof Taro.onThemeChange;
78
88
  declare const onPageNotFound: typeof Taro.onPageNotFound;
89
+ declare const onLazyLoadError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
79
90
  declare const onError: typeof Taro.onError;
80
91
  declare const onAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
81
92
  declare const onAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -84,6 +95,7 @@ declare const onAppHide: typeof Taro.onAppHide;
84
95
  declare const offUnhandledRejection: typeof Taro.offUnhandledRejection;
85
96
  declare const offThemeChange: typeof Taro.offThemeChange;
86
97
  declare const offPageNotFound: typeof Taro.offPageNotFound;
98
+ declare const offLazyLoadError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
87
99
  declare const offError: typeof Taro.offError;
88
100
  declare const offAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
89
101
  declare const offAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -295,6 +307,11 @@ declare const setKeepScreenOn: (option?: {}, ...args: any[]) => Promise<Partial<
295
307
  declare const onUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
296
308
  declare const offUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
297
309
  declare const getScreenBrightness: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
310
+ declare const onScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
311
+ declare const offScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
312
+ declare const getScreenRecordingState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
313
+ // 短信
314
+ declare const sendSms: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
298
315
  /**
299
316
  * 使手机发生较短时间的振动(15 ms)。仅在 iPhone 7 / 7 Plus 以上及 Android 机型生效
300
317
  */
@@ -519,11 +536,13 @@ declare const onVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<P
519
536
  declare const onVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
520
537
  declare const onVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
521
538
  declare const onVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
539
+ declare const offVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
522
540
  declare const offVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
523
541
  declare const offVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
524
542
  declare const offVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
525
543
  declare const offVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
526
544
  declare const joinVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
545
+ declare const join1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
527
546
  declare const exitVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
528
547
  // 跳转
529
548
  declare const openEmbeddedMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -577,13 +596,18 @@ declare const openCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGen
577
596
  declare const addCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
578
597
  // 视频号
579
598
  declare const reserveChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
599
+ declare const openChannelsUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
580
600
  declare const openChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
581
601
  declare const openChannelsEvent: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
582
602
  declare const openChannelsActivity: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
603
+ declare const getChannelsShareKey: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
583
604
  declare const getChannelsLiveNoticeInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
584
605
  declare const getChannelsLiveInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
585
606
  // 微信客服
586
607
  declare const openCustomerServiceChat: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
608
+ // 设备(组)音视频通话
609
+ declare const requestDeviceVoIP: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
610
+ declare const getDeviceVoIPList: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
587
611
  // 过往接口
588
612
  declare const checkIsSupportFacialRecognition: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
589
613
  declare const startFacialRecognitionVerify: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -625,6 +649,7 @@ declare const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<Tar
625
649
  declare const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
626
650
  // 支付
627
651
  declare const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
652
+ declare const requestPluginPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
628
653
  declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
629
654
  // 打开手Q说说发表界面
630
655
  declare const openQzonePublish: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -662,11 +687,17 @@ declare const getStorage: typeof Taro.getStorage;
662
687
  declare const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
663
688
  declare const clearStorageSync: typeof Taro.clearStorageSync;
664
689
  declare const clearStorage: typeof Taro.clearStorage;
690
+ declare const batchSetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
691
+ declare const batchSetStorage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
692
+ declare const batchGetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
693
+ declare const batchGetStorage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
665
694
  // 周期性更新
666
695
  declare const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
667
696
  declare const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
668
697
  declare const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
669
698
  declare const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
699
+ // 周期性更新
700
+ declare const createCacheManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
670
701
  declare const setPageInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
671
702
  // 百度小程序 AI 相关
672
703
  declare const ocrIdCard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -785,5 +816,5 @@ declare const createWorker: (option?: {}, ...args: any[]) => Promise<Partial<Tar
785
816
  declare const createSelectorQuery: typeof Taro.createSelectorQuery;
786
817
  declare const createIntersectionObserver: typeof Taro.createIntersectionObserver;
787
818
  declare const createMediaQueryObserver: typeof Taro.createMediaQueryObserver;
788
- export { taro as default, taro, createRewardedVideoAd, createInterstitialAd, stopFaceDetect, initFaceDetect, faceDetect, isVKSupport, createVKSession, getOpenUserInfo, env, arrayBufferToBase64, base64ToArrayBuffer, getUserCryptoManager, setEnableDebug, getRealtimeLogManager, getLogManager, reportPerformance, getPerformance, openSystemBluetoothSetting, openAppAuthorizeSetting, getWindowInfo, getSystemSetting, getDeviceInfo, getAppBaseInfo, getAppAuthorizeSetting, getSystemInfoSync, getSystemInfoAsync, getSystemInfo, updateWeChatApp, getUpdateManager, onUnhandledRejection, onThemeChange, onPageNotFound, onError, onAudioInterruptionEnd, onAudioInterruptionBegin, onAppShow, onAppHide, offUnhandledRejection, offThemeChange, offPageNotFound, offError, offAudioInterruptionEnd, offAudioInterruptionBegin, offAppShow, offAppHide, getLaunchOptionsSync, getEnterOptionsSync, createOffscreenCanvas, createCanvasContext, canvasToTempFilePath, canvasPutImageData, canvasGetImageData, cloud, reportMonitor, reportAnalytics, reportEvent, getExptInfoSync, stopAccelerometer, startAccelerometer, onAccelerometerChange, offAccelerometerChange, checkIsOpenAccessibility, getBatteryInfoSync, getBatteryInfo, stopBluetoothDevicesDiscovery, startBluetoothDevicesDiscovery, openBluetoothAdapter, onBluetoothDeviceFound, onBluetoothAdapterStateChange, offBluetoothDeviceFound, offBluetoothAdapterStateChange, makeBluetoothPair, isBluetoothDevicePaired, getConnectedBluetoothDevices, getBluetoothDevices, getBluetoothAdapterState, closeBluetoothAdapter, writeBLECharacteristicValue, setBLEMTU, readBLECharacteristicValue, onBLEMTUChange, onBLEConnectionStateChange, onBLECharacteristicValueChange, offBLEMTUChange, offBLEConnectionStateChange, offBLECharacteristicValueChange, notifyBLECharacteristicValueChange, getBLEMTU, getBLEDeviceServices, getBLEDeviceRSSI, getBLEDeviceCharacteristics, createBLEConnection, closeBLEConnection, onBLEPeripheralConnectionStateChanged, offBLEPeripheralConnectionStateChanged, createBLEPeripheralServer, addPhoneRepeatCalendar, addPhoneCalendar, setClipboardData, getClipboardData, stopCompass, startCompass, onCompassChange, offCompassChange, chooseContact, addPhoneContact, getRandomValues, stopGyroscope, startGyroscope, onGyroscopeChange, offGyroscopeChange, stopBeaconDiscovery, startBeaconDiscovery, onBeaconUpdate, onBeaconServiceChange, offBeaconUpdate, offBeaconServiceChange, getBeacons, onKeyboardHeightChange, offKeyboardHeightChange, hideKeyboard, getSelectedTextRange, onMemoryWarning, offMemoryWarning, stopDeviceMotionListening, startDeviceMotionListening, onDeviceMotionChange, offDeviceMotionChange, getNetworkType, onNetworkWeakChange, onNetworkStatusChange, offNetworkWeakChange, offNetworkStatusChange, getLocalIPAddress, stopHCE, startHCE, sendHCEMessage, onHCEMessage, offHCEMessage, getNFCAdapter, getHCEState, makePhoneCall, scanCode, setVisualEffectOnCapture, setScreenBrightness, setKeepScreenOn, onUserCaptureScreen, offUserCaptureScreen, getScreenBrightness, vibrateShort, vibrateLong, stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnectedWithPartialInfo, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi, getExtConfigSync, getExtConfig, saveFileToDisk, saveFile, removeSavedFile, openDocument, getSavedFileList, getSavedFileInfo, getFileSystemManager, getFileInfo, getApp, getCurrentInstance, stopLocationUpdate, startLocationUpdateBackground, startLocationUpdate, openLocation, onLocationChangeError, onLocationChange, offLocationChangeError, offLocationChange, getLocation, choosePoi, getFuzzyLocation, chooseLocation, stopVoice, setInnerAudioOption, playVoice, pauseVoice, getAvailableAudioSources, createWebAudioContext, createMediaAudioPlayer, createInnerAudioContext, createAudioContext, stopBackgroundAudio, seekBackgroundAudio, playBackgroundAudio, pauseBackgroundAudio, onBackgroundAudioStop, onBackgroundAudioPlay, onBackgroundAudioPause, getBackgroundAudioPlayerState, getBackgroundAudioManager, createCameraContext, saveImageToPhotosAlbum, previewMedia, getImageInfo, previewImage, compressImage, chooseMessageFile, chooseImage, editImage, cropImage, createLivePusherContext, createLivePlayerContext, createMapContext, createMediaRecorder, stopRecord, startRecord, getRecorderManager, saveVideoToPhotosAlbum, openVideoEditor, getVideoInfo, createVideoContext, compressVideo, chooseMedia, chooseVideo, createVideoDecoder, createMediaContainer, updateVoIPChatMuteConfig, subscribeVoIPVideoMembers, setEnable1v1Chat, onVoIPVideoMembersChanged, onVoIPChatStateChanged, onVoIPChatSpeakersChanged, onVoIPChatMembersChanged, onVoIPChatInterrupted, offVoIPVideoMembersChanged, offVoIPChatStateChanged, offVoIPChatMembersChanged, offVoIPChatInterrupted, joinVoIPChat, exitVoIPChat, openEmbeddedMiniProgram, navigateToMiniProgram, navigateBackMiniProgram, exitMiniProgram, openBusinessView, downloadFile, stopLocalServiceDiscovery, startLocalServiceDiscovery, onLocalServiceResolveFail, onLocalServiceLost, onLocalServiceFound, onLocalServiceDiscoveryStop, offLocalServiceResolveFail, offLocalServiceLost, offLocalServiceFound, offLocalServiceDiscoveryStop, request, addInterceptor, cleanInterceptors, createTCPSocket, createUDPSocket, uploadFile, sendSocketMessage, onSocketOpen, onSocketMessage, onSocketError, onSocketClose, connectSocket, closeSocket, getAccountInfoSync, chooseAddress, authorizeForMiniProgram, authorize, openCard, addCard, reserveChannelsLive, openChannelsLive, openChannelsEvent, openChannelsActivity, getChannelsLiveNoticeInfo, getChannelsLiveInfo, openCustomerServiceChat, checkIsSupportFacialRecognition, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, faceVerifyForPay, addVideoToFavorites, addFileToFavorites, checkIsAddedToMyMiniProgram, getGroupEnterInfo, chooseInvoiceTitle, chooseInvoice, chooseLicensePlate, pluginLogin, login, checkSession, showRedPackage, openSetting, getSetting, startSoterAuthentication, checkIsSupportSoterAuthentication, checkIsSoterEnrolledInDevice, requestSubscribeMessage, requestSubscribeDeviceMessage, getUserProfile, getUserInfo, shareToWeRun, getWeRunData, requestPayment, requestOrderPayment, openQzonePublish, updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage, setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage, setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData, setPageInfo, ocrIdCard, ocrBankCard, ocrDrivingLicense, ocrVehicleLicense, textReview, textToAudio, imageAudit, advancedGeneralIdentify, objectDetectIdentify, carClassify, dishClassify, logoClassify, animalClassify, plantClassify, getSwanId, requestPolymerPayment, navigateToSmartGameProgram, navigateToSmartProgram, navigateBackSmartProgram, preloadSubPackage, createAnimation, setBackgroundTextStyle, setBackgroundColor, nextTick, loadFontFace, disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast, getMenuButtonBoundingClientRect, showNavigationBarLoading, setNavigationBarTitle, setNavigationBarColor, hideNavigationBarLoading, hideHomeButton, startPullDownRefresh, stopPullDownRefresh, pageScrollTo, setTopBarText, initTabBarApis, showTabBarRedDot, showTabBar, setTabBarStyle, setTabBarItem, setTabBarBadge, removeTabBarBadge, hideTabBarRedDot, hideTabBar, setWindowSize, onWindowResize, offWindowResize, checkIsPictureInPictureActive, createWorker, createSelectorQuery, createIntersectionObserver, createMediaQueryObserver, Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getAppInfo, getEnv, history, initPxTransform, interceptorify, interceptors, Link, options, preload, pxTransform, requirePlugin };
819
+ export { taro as default, taro, createRewardedVideoAd, createInterstitialAd, stopFaceDetect, initFaceDetect, faceDetect, getInferenceEnvInfo, createInferenceSession, isVKSupport, createVKSession, getOpenUserInfo, tradePay, env, arrayBufferToBase64, base64ToArrayBuffer, getUserCryptoManager, setEnableDebug, getRealtimeLogManager, getLogManager, reportPerformance, getPerformance, preloadWebview, preloadSkylineView, preloadAssets, openSystemBluetoothSetting, openAppAuthorizeSetting, getWindowInfo, getSystemSetting, getDeviceInfo, getAppBaseInfo, getAppAuthorizeSetting, getSystemInfoSync, getSystemInfoAsync, getSystemInfo, getSkylineInfoSync, getSkylineInfo, getRendererUserAgent, updateWeChatApp, getUpdateManager, onUnhandledRejection, onThemeChange, onPageNotFound, onLazyLoadError, onError, onAudioInterruptionEnd, onAudioInterruptionBegin, onAppShow, onAppHide, offUnhandledRejection, offThemeChange, offPageNotFound, offLazyLoadError, offError, offAudioInterruptionEnd, offAudioInterruptionBegin, offAppShow, offAppHide, getLaunchOptionsSync, getEnterOptionsSync, createOffscreenCanvas, createCanvasContext, canvasToTempFilePath, canvasPutImageData, canvasGetImageData, cloud, reportMonitor, reportAnalytics, reportEvent, getExptInfoSync, stopAccelerometer, startAccelerometer, onAccelerometerChange, offAccelerometerChange, checkIsOpenAccessibility, getBatteryInfoSync, getBatteryInfo, stopBluetoothDevicesDiscovery, startBluetoothDevicesDiscovery, openBluetoothAdapter, onBluetoothDeviceFound, onBluetoothAdapterStateChange, offBluetoothDeviceFound, offBluetoothAdapterStateChange, makeBluetoothPair, isBluetoothDevicePaired, getConnectedBluetoothDevices, getBluetoothDevices, getBluetoothAdapterState, closeBluetoothAdapter, writeBLECharacteristicValue, setBLEMTU, readBLECharacteristicValue, onBLEMTUChange, onBLEConnectionStateChange, onBLECharacteristicValueChange, offBLEMTUChange, offBLEConnectionStateChange, offBLECharacteristicValueChange, notifyBLECharacteristicValueChange, getBLEMTU, getBLEDeviceServices, getBLEDeviceRSSI, getBLEDeviceCharacteristics, createBLEConnection, closeBLEConnection, onBLEPeripheralConnectionStateChanged, offBLEPeripheralConnectionStateChanged, createBLEPeripheralServer, addPhoneRepeatCalendar, addPhoneCalendar, setClipboardData, getClipboardData, stopCompass, startCompass, onCompassChange, offCompassChange, chooseContact, addPhoneContact, getRandomValues, stopGyroscope, startGyroscope, onGyroscopeChange, offGyroscopeChange, stopBeaconDiscovery, startBeaconDiscovery, onBeaconUpdate, onBeaconServiceChange, offBeaconUpdate, offBeaconServiceChange, getBeacons, onKeyboardHeightChange, offKeyboardHeightChange, hideKeyboard, getSelectedTextRange, onMemoryWarning, offMemoryWarning, stopDeviceMotionListening, startDeviceMotionListening, onDeviceMotionChange, offDeviceMotionChange, getNetworkType, onNetworkWeakChange, onNetworkStatusChange, offNetworkWeakChange, offNetworkStatusChange, getLocalIPAddress, stopHCE, startHCE, sendHCEMessage, onHCEMessage, offHCEMessage, getNFCAdapter, getHCEState, makePhoneCall, scanCode, setVisualEffectOnCapture, setScreenBrightness, setKeepScreenOn, onUserCaptureScreen, offUserCaptureScreen, getScreenBrightness, onScreenRecordingStateChanged, offScreenRecordingStateChanged, getScreenRecordingState, sendSms, vibrateShort, vibrateLong, stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnectedWithPartialInfo, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi, getExtConfigSync, getExtConfig, saveFileToDisk, saveFile, removeSavedFile, openDocument, getSavedFileList, getSavedFileInfo, getFileSystemManager, getFileInfo, getApp, getCurrentInstance, stopLocationUpdate, startLocationUpdateBackground, startLocationUpdate, openLocation, onLocationChangeError, onLocationChange, offLocationChangeError, offLocationChange, getLocation, choosePoi, getFuzzyLocation, chooseLocation, stopVoice, setInnerAudioOption, playVoice, pauseVoice, getAvailableAudioSources, createWebAudioContext, createMediaAudioPlayer, createInnerAudioContext, createAudioContext, stopBackgroundAudio, seekBackgroundAudio, playBackgroundAudio, pauseBackgroundAudio, onBackgroundAudioStop, onBackgroundAudioPlay, onBackgroundAudioPause, getBackgroundAudioPlayerState, getBackgroundAudioManager, createCameraContext, saveImageToPhotosAlbum, previewMedia, getImageInfo, previewImage, compressImage, chooseMessageFile, chooseImage, editImage, cropImage, createLivePusherContext, createLivePlayerContext, createMapContext, createMediaRecorder, stopRecord, startRecord, getRecorderManager, saveVideoToPhotosAlbum, openVideoEditor, getVideoInfo, createVideoContext, compressVideo, chooseMedia, chooseVideo, createVideoDecoder, createMediaContainer, updateVoIPChatMuteConfig, subscribeVoIPVideoMembers, setEnable1v1Chat, onVoIPVideoMembersChanged, onVoIPChatStateChanged, onVoIPChatSpeakersChanged, onVoIPChatMembersChanged, onVoIPChatInterrupted, offVoIPChatSpeakersChanged, offVoIPVideoMembersChanged, offVoIPChatStateChanged, offVoIPChatMembersChanged, offVoIPChatInterrupted, joinVoIPChat, join1v1Chat, exitVoIPChat, openEmbeddedMiniProgram, navigateToMiniProgram, navigateBackMiniProgram, exitMiniProgram, openBusinessView, downloadFile, stopLocalServiceDiscovery, startLocalServiceDiscovery, onLocalServiceResolveFail, onLocalServiceLost, onLocalServiceFound, onLocalServiceDiscoveryStop, offLocalServiceResolveFail, offLocalServiceLost, offLocalServiceFound, offLocalServiceDiscoveryStop, request, addInterceptor, cleanInterceptors, createTCPSocket, createUDPSocket, uploadFile, sendSocketMessage, onSocketOpen, onSocketMessage, onSocketError, onSocketClose, connectSocket, closeSocket, getAccountInfoSync, chooseAddress, authorizeForMiniProgram, authorize, openCard, addCard, reserveChannelsLive, openChannelsUserProfile, openChannelsLive, openChannelsEvent, openChannelsActivity, getChannelsShareKey, getChannelsLiveNoticeInfo, getChannelsLiveInfo, openCustomerServiceChat, requestDeviceVoIP, getDeviceVoIPList, checkIsSupportFacialRecognition, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, faceVerifyForPay, addVideoToFavorites, addFileToFavorites, checkIsAddedToMyMiniProgram, getGroupEnterInfo, chooseInvoiceTitle, chooseInvoice, chooseLicensePlate, pluginLogin, login, checkSession, showRedPackage, openSetting, getSetting, startSoterAuthentication, checkIsSupportSoterAuthentication, checkIsSoterEnrolledInDevice, requestSubscribeMessage, requestSubscribeDeviceMessage, getUserProfile, getUserInfo, shareToWeRun, getWeRunData, requestPayment, requestPluginPayment, requestOrderPayment, openQzonePublish, updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage, setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage, batchSetStorageSync, batchSetStorage, batchGetStorageSync, batchGetStorage, setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData, createCacheManager, setPageInfo, ocrIdCard, ocrBankCard, ocrDrivingLicense, ocrVehicleLicense, textReview, textToAudio, imageAudit, advancedGeneralIdentify, objectDetectIdentify, carClassify, dishClassify, logoClassify, animalClassify, plantClassify, getSwanId, requestPolymerPayment, navigateToSmartGameProgram, navigateToSmartProgram, navigateBackSmartProgram, preloadSubPackage, createAnimation, setBackgroundTextStyle, setBackgroundColor, nextTick, loadFontFace, disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast, getMenuButtonBoundingClientRect, showNavigationBarLoading, setNavigationBarTitle, setNavigationBarColor, hideNavigationBarLoading, hideHomeButton, startPullDownRefresh, stopPullDownRefresh, pageScrollTo, setTopBarText, initTabBarApis, showTabBarRedDot, showTabBar, setTabBarStyle, setTabBarItem, setTabBarBadge, removeTabBarBadge, hideTabBarRedDot, hideTabBar, setWindowSize, onWindowResize, offWindowResize, checkIsPictureInPictureActive, createWorker, createSelectorQuery, createIntersectionObserver, createMediaQueryObserver, Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getAppInfo, getEnv, history, initPxTransform, interceptorify, interceptors, Link, options, preload, pxTransform, requirePlugin };
789
820
  export { getCurrentPages, navigateBack, navigateTo, redirectTo, reLaunch, switchTab } from "@tarojs/router";
package/dist/index.cjs.js CHANGED
@@ -320,6 +320,10 @@ const stopFaceDetect = /* @__PURE__ */ temporarilyNotSupport('stopFaceDetect');
320
320
  const initFaceDetect = /* @__PURE__ */ temporarilyNotSupport('initFaceDetect');
321
321
  const faceDetect = /* @__PURE__ */ temporarilyNotSupport('faceDetect');
322
322
 
323
+ // AI推理
324
+ const getInferenceEnvInfo = /* @__PURE__ */ temporarilyNotSupport('getInferenceEnvInfo');
325
+ const createInferenceSession = /* @__PURE__ */ temporarilyNotSupport('createInferenceSession');
326
+
323
327
  // 判断支持版本
324
328
  const isVKSupport = /* @__PURE__ */ temporarilyNotSupport('isVKSupport');
325
329
  // 视觉算法
@@ -327,6 +331,7 @@ const createVKSession = /* @__PURE__ */ temporarilyNotSupport('createVKSession')
327
331
 
328
332
  // AliPay
329
333
  const getOpenUserInfo = /* @__PURE__ */ temporarilyNotSupport('getOpenUserInfo');
334
+ const tradePay = /* @__PURE__ */ temporarilyNotSupport('tradePay');
330
335
 
331
336
  // 加密
332
337
  const getUserCryptoManager = /* @__PURE__ */ temporarilyNotSupport('getUserCryptoManager');
@@ -338,6 +343,9 @@ const getLogManager = /* @__PURE__ */ temporarilyNotSupport('getLogManager');
338
343
  // 性能
339
344
  const reportPerformance = /* @__PURE__ */ temporarilyNotSupport('reportPerformance');
340
345
  const getPerformance = /* @__PURE__ */ temporarilyNotSupport('getPerformance');
346
+ const preloadWebview = /* @__PURE__ */ temporarilyNotSupport('preloadWebview');
347
+ const preloadSkylineView = /* @__PURE__ */ temporarilyNotSupport('preloadSkylineView');
348
+ const preloadAssets = /* @__PURE__ */ temporarilyNotSupport('preloadAssets');
341
349
 
342
350
  /******************************************************************************
343
351
  Copyright (c) Microsoft Corporation.
@@ -816,6 +824,9 @@ const getSystemInfo = (options = {}) => __awaiter(void 0, void 0, void 0, functi
816
824
  });
817
825
  }
818
826
  });
827
+ const getSkylineInfoSync = /* @__PURE__ */ temporarilyNotSupport('getSkylineInfoSync');
828
+ const getSkylineInfo = /* @__PURE__ */ temporarilyNotSupport('getSkylineInfo');
829
+ const getRendererUserAgent = /* @__PURE__ */ temporarilyNotSupport('getRendererUserAgent');
819
830
 
820
831
  // 更新
821
832
  const updateWeChatApp = /* @__PURE__ */ temporarilyNotSupport('updateWeChatApp');
@@ -891,6 +902,7 @@ const onPageNotFound = callback => {
891
902
  Taro.eventCenter.on('__taroRouterNotFound', pageNotFoundListener);
892
903
  }
893
904
  };
905
+ const onLazyLoadError = /* @__PURE__ */ temporarilyNotSupport('onLazyLoadError');
894
906
  const onError = callback => {
895
907
  errorCallbackManager.add(callback);
896
908
  if (errorCallbackManager.count() === 1) {
@@ -933,6 +945,7 @@ const offPageNotFound = callback => {
933
945
  Taro.eventCenter.off('__taroRouterNotFound', pageNotFoundListener);
934
946
  }
935
947
  };
948
+ const offLazyLoadError = /* @__PURE__ */ temporarilyNotSupport('offLazyLoadError');
936
949
  const offError = callback => {
937
950
  errorCallbackManager.remove(callback);
938
951
  if (errorCallbackManager.count() === 0) {
@@ -1571,6 +1584,9 @@ const onBackgroundFetchData = /* @__PURE__ */ temporarilyNotSupport('onBackgroun
1571
1584
  const getBackgroundFetchToken = /* @__PURE__ */ temporarilyNotSupport('getBackgroundFetchToken');
1572
1585
  const getBackgroundFetchData = /* @__PURE__ */ temporarilyNotSupport('getBackgroundFetchData');
1573
1586
 
1587
+ // 周期性更新
1588
+ const createCacheManager = /* @__PURE__ */ temporarilyNotSupport('createCacheManager');
1589
+
1574
1590
  function getItem(key) {
1575
1591
  let item;
1576
1592
  try {
@@ -1725,6 +1741,10 @@ const clearStorage = ({ success, fail, complete } = {}) => {
1725
1741
  clearStorageSync();
1726
1742
  return handle.success();
1727
1743
  };
1744
+ const batchSetStorageSync = /* @__PURE__ */ temporarilyNotSupport('batchSetStorageSync');
1745
+ const batchSetStorage = /* @__PURE__ */ temporarilyNotSupport('batchSetStorage');
1746
+ const batchGetStorageSync = /* @__PURE__ */ temporarilyNotSupport('batchGetStorageSync');
1747
+ const batchGetStorage = /* @__PURE__ */ temporarilyNotSupport('batchGetStorage');
1728
1748
 
1729
1749
  /**
1730
1750
  * 剪贴板部分的api参考了Chameleon项目的实现:
@@ -2095,6 +2115,12 @@ const setKeepScreenOn = /* @__PURE__ */ temporarilyNotSupport('setKeepScreenOn')
2095
2115
  const onUserCaptureScreen = /* @__PURE__ */ temporarilyNotSupport('onUserCaptureScreen');
2096
2116
  const offUserCaptureScreen = /* @__PURE__ */ temporarilyNotSupport('offUserCaptureScreen');
2097
2117
  const getScreenBrightness = /* @__PURE__ */ temporarilyNotSupport('getScreenBrightness');
2118
+ const onScreenRecordingStateChanged = /* @__PURE__ */ temporarilyNotSupport('onScreenRecordingStateChanged');
2119
+ const offScreenRecordingStateChanged = /* @__PURE__ */ temporarilyNotSupport('offScreenRecordingStateChanged');
2120
+ const getScreenRecordingState = /* @__PURE__ */ temporarilyNotSupport('getScreenRecordingState');
2121
+
2122
+ // 短信
2123
+ const sendSms = /* @__PURE__ */ temporarilyNotSupport('sendSms');
2098
2124
 
2099
2125
  const vibrator = function vibrator(mm) {
2100
2126
  try {
@@ -2682,7 +2708,8 @@ const previewImage = (options) => __awaiter(void 0, void 0, void 0, function* ()
2682
2708
  const handle = new MethodHandler({ name: 'previewImage', success, fail, complete });
2683
2709
  const container = document.createElement('div');
2684
2710
  container.classList.add('preview-image');
2685
- container.style.cssText = 'position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;overflow:hidden;outline:0;background-color:#111;';
2711
+ container.style.cssText =
2712
+ 'position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;overflow:hidden;outline:0;background-color:#111;';
2686
2713
  container.addEventListener('click', () => {
2687
2714
  container.remove();
2688
2715
  });
@@ -2693,19 +2720,18 @@ const previewImage = (options) => __awaiter(void 0, void 0, void 0, function* ()
2693
2720
  swiper.zoom = true;
2694
2721
  let children = [];
2695
2722
  try {
2696
- children = yield Promise.all(urls.map(e => loadImage(e, fail)));
2723
+ children = yield Promise.all(urls.map((e) => loadImage(e, fail)));
2697
2724
  }
2698
2725
  catch (error) {
2699
2726
  return handle.fail({
2700
- errMsg: error
2727
+ errMsg: error,
2701
2728
  });
2702
2729
  }
2703
2730
  for (let i = 0; i < children.length; i++) {
2704
2731
  const child = children[i];
2705
2732
  swiper.appendChild(child);
2706
2733
  }
2707
- const currentIndex = urls.indexOf(current);
2708
- // @ts-ignore
2734
+ const currentIndex = typeof current === 'number' ? current : urls.indexOf(current);
2709
2735
  swiper.current = currentIndex;
2710
2736
  container.appendChild(swiper);
2711
2737
  document.body.appendChild(container);
@@ -4408,7 +4434,7 @@ const chooseMedia = function (options, methodName = 'chooseMedia') {
4408
4434
  const { tapIndex } = yield showActionSheet({
4409
4435
  itemList: ['拍摄', '从相册选择'],
4410
4436
  }, methodName);
4411
- sourceType.splice(0, 1, tapIndex === 0 ? 'camera' : 'album');
4437
+ sourceType.splice(0, sourceType.length, tapIndex === 0 ? 'camera' : 'album');
4412
4438
  }
4413
4439
  catch (e) {
4414
4440
  return handle.fail({
@@ -4760,11 +4786,13 @@ const onVoIPChatStateChanged = /* @__PURE__ */ temporarilyNotSupport('onVoIPChat
4760
4786
  const onVoIPChatSpeakersChanged = /* @__PURE__ */ temporarilyNotSupport('onVoIPChatSpeakersChanged');
4761
4787
  const onVoIPChatMembersChanged = /* @__PURE__ */ temporarilyNotSupport('onVoIPChatMembersChanged');
4762
4788
  const onVoIPChatInterrupted = /* @__PURE__ */ temporarilyNotSupport('onVoIPChatInterrupted');
4789
+ const offVoIPChatSpeakersChanged = /* @__PURE__ */ temporarilyNotSupport('offVoIPChatSpeakersChanged');
4763
4790
  const offVoIPVideoMembersChanged = /* @__PURE__ */ temporarilyNotSupport('offVoIPVideoMembersChanged');
4764
4791
  const offVoIPChatStateChanged = /* @__PURE__ */ temporarilyNotSupport('offVoIPChatStateChanged');
4765
4792
  const offVoIPChatMembersChanged = /* @__PURE__ */ temporarilyNotSupport('offVoIPChatMembersChanged');
4766
4793
  const offVoIPChatInterrupted = /* @__PURE__ */ temporarilyNotSupport('offVoIPChatInterrupted');
4767
4794
  const joinVoIPChat = /* @__PURE__ */ temporarilyNotSupport('joinVoIPChat');
4795
+ const join1v1Chat = /* @__PURE__ */ temporarilyNotSupport('join1v1Chat');
4768
4796
  const exitVoIPChat = /* @__PURE__ */ temporarilyNotSupport('exitVoIPChat');
4769
4797
 
4770
4798
  // 跳转
@@ -5438,15 +5466,21 @@ const addCard = /* @__PURE__ */ temporarilyNotSupport('addCard');
5438
5466
 
5439
5467
  // 视频号
5440
5468
  const reserveChannelsLive = /* @__PURE__ */ temporarilyNotSupport('reserveChannelsLive');
5469
+ const openChannelsUserProfile = /* @__PURE__ */ temporarilyNotSupport('openChannelsUserProfile');
5441
5470
  const openChannelsLive = /* @__PURE__ */ temporarilyNotSupport('openChannelsLive');
5442
5471
  const openChannelsEvent = /* @__PURE__ */ temporarilyNotSupport('openChannelsEvent');
5443
5472
  const openChannelsActivity = /* @__PURE__ */ temporarilyNotSupport('openChannelsActivity');
5473
+ const getChannelsShareKey = /* @__PURE__ */ temporarilyNotSupport('getChannelsShareKey');
5444
5474
  const getChannelsLiveNoticeInfo = /* @__PURE__ */ temporarilyNotSupport('getChannelsLiveNoticeInfo');
5445
5475
  const getChannelsLiveInfo = /* @__PURE__ */ temporarilyNotSupport('getChannelsLiveInfo');
5446
5476
 
5447
5477
  // 微信客服
5448
5478
  const openCustomerServiceChat = /* @__PURE__ */ temporarilyNotSupport('openCustomerServiceChat');
5449
5479
 
5480
+ // 设备(组)音视频通话
5481
+ const requestDeviceVoIP = /* @__PURE__ */ temporarilyNotSupport('requestDeviceVoIP');
5482
+ const getDeviceVoIPList = /* @__PURE__ */ temporarilyNotSupport('getDeviceVoIPList');
5483
+
5450
5484
  // 过往接口
5451
5485
  const checkIsSupportFacialRecognition = /* @__PURE__ */ temporarilyNotSupport('checkIsSupportFacialRecognition');
5452
5486
  const startFacialRecognitionVerify = /* @__PURE__ */ temporarilyNotSupport('startFacialRecognitionVerify');
@@ -5500,6 +5534,7 @@ const getWeRunData = /* @__PURE__ */ temporarilyNotSupport('getWeRunData');
5500
5534
 
5501
5535
  // 支付
5502
5536
  const requestPayment = /* @__PURE__ */ temporarilyNotSupport('requestPayment');
5537
+ const requestPluginPayment = /* @__PURE__ */ temporarilyNotSupport('requestPluginPayment');
5503
5538
  const requestOrderPayment = /* @__PURE__ */ temporarilyNotSupport('requestOrderPayment');
5504
5539
 
5505
5540
  // 打开手Q说说发表界面
@@ -5633,11 +5668,13 @@ class TaroH5IntersectionObserver {
5633
5668
  const nodeList = this._options.observeAll
5634
5669
  ? this.container.querySelectorAll(targetSelector)
5635
5670
  : [this.container.querySelector(targetSelector)];
5636
- nodeList.forEach(element => {
5637
- if (!element)
5638
- return;
5639
- this._observerInst.observe(element);
5640
- this._listeners.push({ element, callback });
5671
+ Taro.nextTick(() => {
5672
+ nodeList.forEach(element => {
5673
+ if (!element)
5674
+ return;
5675
+ this._observerInst.observe(element);
5676
+ this._listeners.push({ element, callback });
5677
+ });
5641
5678
  });
5642
5679
  }
5643
5680
  relativeTo(selector, margins) {
@@ -5939,13 +5976,15 @@ class SelectorQuery {
5939
5976
  return new NodesRef('.taro_page', this, true);
5940
5977
  }
5941
5978
  exec(cb) {
5942
- queryBat(this._queue, res => {
5943
- const _queueCb = this._queueCb;
5944
- res.forEach((item, index) => {
5945
- const cb = _queueCb[index];
5946
- shared.isFunction(cb) && cb.call(this, item);
5979
+ Taro.nextTick(() => {
5980
+ queryBat(this._queue, res => {
5981
+ const _queueCb = this._queueCb;
5982
+ res.forEach((item, index) => {
5983
+ const cb = _queueCb[index];
5984
+ shared.isFunction(cb) && cb.call(this, item);
5985
+ });
5986
+ shared.isFunction(cb) && cb.call(this, res);
5947
5987
  });
5948
- shared.isFunction(cb) && cb.call(this, res);
5949
5988
  });
5950
5989
  return this;
5951
5990
  }
@@ -6107,6 +6146,10 @@ exports.authPrivateMessage = authPrivateMessage;
6107
6146
  exports.authorize = authorize;
6108
6147
  exports.authorizeForMiniProgram = authorizeForMiniProgram;
6109
6148
  exports.base64ToArrayBuffer = base64ToArrayBuffer;
6149
+ exports.batchGetStorage = batchGetStorage;
6150
+ exports.batchGetStorageSync = batchGetStorageSync;
6151
+ exports.batchSetStorage = batchSetStorage;
6152
+ exports.batchSetStorageSync = batchSetStorageSync;
6110
6153
  exports.canIUseWebp = canIUseWebp;
6111
6154
  exports.canvasGetImageData = canvasGetImageData;
6112
6155
  exports.canvasPutImageData = canvasPutImageData;
@@ -6146,8 +6189,10 @@ exports.createAudioContext = createAudioContext;
6146
6189
  exports.createBLEConnection = createBLEConnection;
6147
6190
  exports.createBLEPeripheralServer = createBLEPeripheralServer;
6148
6191
  exports.createBufferURL = createBufferURL;
6192
+ exports.createCacheManager = createCacheManager;
6149
6193
  exports.createCameraContext = createCameraContext;
6150
6194
  exports.createCanvasContext = createCanvasContext;
6195
+ exports.createInferenceSession = createInferenceSession;
6151
6196
  exports.createInnerAudioContext = createInnerAudioContext;
6152
6197
  exports.createIntersectionObserver = createIntersectionObserver;
6153
6198
  exports.createInterstitialAd = createInterstitialAd;
@@ -6202,11 +6247,13 @@ exports.getBluetoothAdapterState = getBluetoothAdapterState;
6202
6247
  exports.getBluetoothDevices = getBluetoothDevices;
6203
6248
  exports.getChannelsLiveInfo = getChannelsLiveInfo;
6204
6249
  exports.getChannelsLiveNoticeInfo = getChannelsLiveNoticeInfo;
6250
+ exports.getChannelsShareKey = getChannelsShareKey;
6205
6251
  exports.getClipboardData = getClipboardData;
6206
6252
  exports.getConnectedBluetoothDevices = getConnectedBluetoothDevices;
6207
6253
  exports.getConnectedWifi = getConnectedWifi;
6208
6254
  exports.getCurrentInstance = getCurrentInstance;
6209
6255
  exports.getDeviceInfo = getDeviceInfo;
6256
+ exports.getDeviceVoIPList = getDeviceVoIPList;
6210
6257
  exports.getEnterOptionsSync = getEnterOptionsSync;
6211
6258
  exports.getEnv = getEnv;
6212
6259
  exports.getExptInfoSync = getExptInfoSync;
@@ -6218,6 +6265,7 @@ exports.getFuzzyLocation = getFuzzyLocation;
6218
6265
  exports.getGroupEnterInfo = getGroupEnterInfo;
6219
6266
  exports.getHCEState = getHCEState;
6220
6267
  exports.getImageInfo = getImageInfo;
6268
+ exports.getInferenceEnvInfo = getInferenceEnvInfo;
6221
6269
  exports.getLaunchOptionsSync = getLaunchOptionsSync;
6222
6270
  exports.getLocalIPAddress = getLocalIPAddress;
6223
6271
  exports.getLocation = getLocation;
@@ -6230,12 +6278,16 @@ exports.getPerformance = getPerformance;
6230
6278
  exports.getRandomValues = getRandomValues;
6231
6279
  exports.getRealtimeLogManager = getRealtimeLogManager;
6232
6280
  exports.getRecorderManager = getRecorderManager;
6281
+ exports.getRendererUserAgent = getRendererUserAgent;
6233
6282
  exports.getSavedFileInfo = getSavedFileInfo;
6234
6283
  exports.getSavedFileList = getSavedFileList;
6235
6284
  exports.getScreenBrightness = getScreenBrightness;
6285
+ exports.getScreenRecordingState = getScreenRecordingState;
6236
6286
  exports.getSelectedTextRange = getSelectedTextRange;
6237
6287
  exports.getSetting = getSetting;
6238
6288
  exports.getShareInfo = getShareInfo;
6289
+ exports.getSkylineInfo = getSkylineInfo;
6290
+ exports.getSkylineInfoSync = getSkylineInfoSync;
6239
6291
  exports.getStorage = getStorage;
6240
6292
  exports.getStorageInfo = getStorageInfo;
6241
6293
  exports.getStorageInfoSync = getStorageInfoSync;
@@ -6269,6 +6321,7 @@ exports.interceptorify = interceptorify;
6269
6321
  exports.interceptors = interceptors;
6270
6322
  exports.isBluetoothDevicePaired = isBluetoothDevicePaired;
6271
6323
  exports.isVKSupport = isVKSupport;
6324
+ exports.join1v1Chat = join1v1Chat;
6272
6325
  exports.joinVoIPChat = joinVoIPChat;
6273
6326
  exports.loadFontFace = loadFontFace;
6274
6327
  exports.login = login;
@@ -6308,6 +6361,7 @@ exports.offGetWifiList = offGetWifiList;
6308
6361
  exports.offGyroscopeChange = offGyroscopeChange;
6309
6362
  exports.offHCEMessage = offHCEMessage;
6310
6363
  exports.offKeyboardHeightChange = offKeyboardHeightChange;
6364
+ exports.offLazyLoadError = offLazyLoadError;
6311
6365
  exports.offLocalServiceDiscoveryStop = offLocalServiceDiscoveryStop;
6312
6366
  exports.offLocalServiceFound = offLocalServiceFound;
6313
6367
  exports.offLocalServiceLost = offLocalServiceLost;
@@ -6318,11 +6372,13 @@ exports.offMemoryWarning = offMemoryWarning;
6318
6372
  exports.offNetworkStatusChange = offNetworkStatusChange;
6319
6373
  exports.offNetworkWeakChange = offNetworkWeakChange;
6320
6374
  exports.offPageNotFound = offPageNotFound;
6375
+ exports.offScreenRecordingStateChanged = offScreenRecordingStateChanged;
6321
6376
  exports.offThemeChange = offThemeChange;
6322
6377
  exports.offUnhandledRejection = offUnhandledRejection;
6323
6378
  exports.offUserCaptureScreen = offUserCaptureScreen;
6324
6379
  exports.offVoIPChatInterrupted = offVoIPChatInterrupted;
6325
6380
  exports.offVoIPChatMembersChanged = offVoIPChatMembersChanged;
6381
+ exports.offVoIPChatSpeakersChanged = offVoIPChatSpeakersChanged;
6326
6382
  exports.offVoIPChatStateChanged = offVoIPChatStateChanged;
6327
6383
  exports.offVoIPVideoMembersChanged = offVoIPVideoMembersChanged;
6328
6384
  exports.offWifiConnected = offWifiConnected;
@@ -6353,6 +6409,7 @@ exports.onGetWifiList = onGetWifiList;
6353
6409
  exports.onGyroscopeChange = onGyroscopeChange;
6354
6410
  exports.onHCEMessage = onHCEMessage;
6355
6411
  exports.onKeyboardHeightChange = onKeyboardHeightChange;
6412
+ exports.onLazyLoadError = onLazyLoadError;
6356
6413
  exports.onLocalServiceDiscoveryStop = onLocalServiceDiscoveryStop;
6357
6414
  exports.onLocalServiceFound = onLocalServiceFound;
6358
6415
  exports.onLocalServiceLost = onLocalServiceLost;
@@ -6363,6 +6420,7 @@ exports.onMemoryWarning = onMemoryWarning;
6363
6420
  exports.onNetworkStatusChange = onNetworkStatusChange;
6364
6421
  exports.onNetworkWeakChange = onNetworkWeakChange;
6365
6422
  exports.onPageNotFound = onPageNotFound;
6423
+ exports.onScreenRecordingStateChanged = onScreenRecordingStateChanged;
6366
6424
  exports.onSocketClose = onSocketClose;
6367
6425
  exports.onSocketError = onSocketError;
6368
6426
  exports.onSocketMessage = onSocketMessage;
@@ -6385,6 +6443,7 @@ exports.openCard = openCard;
6385
6443
  exports.openChannelsActivity = openChannelsActivity;
6386
6444
  exports.openChannelsEvent = openChannelsEvent;
6387
6445
  exports.openChannelsLive = openChannelsLive;
6446
+ exports.openChannelsUserProfile = openChannelsUserProfile;
6388
6447
  exports.openCustomerServiceChat = openCustomerServiceChat;
6389
6448
  exports.openDocument = openDocument;
6390
6449
  exports.openEmbeddedMiniProgram = openEmbeddedMiniProgram;
@@ -6402,7 +6461,10 @@ exports.playBackgroundAudio = playBackgroundAudio;
6402
6461
  exports.playVoice = playVoice;
6403
6462
  exports.pluginLogin = pluginLogin;
6404
6463
  exports.preload = preload;
6464
+ exports.preloadAssets = preloadAssets;
6465
+ exports.preloadSkylineView = preloadSkylineView;
6405
6466
  exports.preloadSubPackage = preloadSubPackage;
6467
+ exports.preloadWebview = preloadWebview;
6406
6468
  exports.previewImage = previewImage;
6407
6469
  exports.previewMedia = previewMedia;
6408
6470
  exports.pxTransform = pxTransform;
@@ -6416,8 +6478,10 @@ exports.reportEvent = reportEvent;
6416
6478
  exports.reportMonitor = reportMonitor;
6417
6479
  exports.reportPerformance = reportPerformance;
6418
6480
  exports.request = request;
6481
+ exports.requestDeviceVoIP = requestDeviceVoIP;
6419
6482
  exports.requestOrderPayment = requestOrderPayment;
6420
6483
  exports.requestPayment = requestPayment;
6484
+ exports.requestPluginPayment = requestPluginPayment;
6421
6485
  exports.requestPolymerPayment = requestPolymerPayment;
6422
6486
  exports.requestSubscribeDeviceMessage = requestSubscribeDeviceMessage;
6423
6487
  exports.requestSubscribeMessage = requestSubscribeMessage;
@@ -6431,6 +6495,7 @@ exports.saveVideoToPhotosAlbum = saveVideoToPhotosAlbum;
6431
6495
  exports.scanCode = scanCode;
6432
6496
  exports.seekBackgroundAudio = seekBackgroundAudio;
6433
6497
  exports.sendHCEMessage = sendHCEMessage;
6498
+ exports.sendSms = sendSms;
6434
6499
  exports.sendSocketMessage = sendSocketMessage;
6435
6500
  exports.setBLEMTU = setBLEMTU;
6436
6501
  exports.setBackgroundColor = setBackgroundColor;
@@ -6501,6 +6566,7 @@ exports.stopWifi = stopWifi;
6501
6566
  exports.subscribeVoIPVideoMembers = subscribeVoIPVideoMembers;
6502
6567
  exports.textReview = textReview;
6503
6568
  exports.textToAudio = textToAudio;
6569
+ exports.tradePay = tradePay;
6504
6570
  exports.updateShareMenu = updateShareMenu;
6505
6571
  exports.updateVoIPChatMuteConfig = updateVoIPChatMuteConfig;
6506
6572
  exports.updateWeChatApp = updateWeChatApp;