@dcloudio/uni-app-x 0.7.37 → 0.7.39

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 (126) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +48 -9
  3. package/types/app.d.ts +8 -5
  4. package/types/native/AsyncApiResult.d.ts +1 -0
  5. package/types/native/CanvasRenderingContext2D.d.ts +1 -1
  6. package/types/native/IUniElement.d.ts +130 -35
  7. package/types/native/UniElement.d.ts +2 -1
  8. package/types/native/UniTextElement.d.ts +1 -0
  9. package/types/native/global.d.ts +16 -0
  10. package/types/page.d.ts +47 -5
  11. package/types/uni/env/index.d.ts +87 -73
  12. package/types/uni/global.d.ts +1 -0
  13. package/types/uni/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-global.d.ts +33 -0
  15. package/types/uni/uni-map-tencent-map.d.ts +52 -0
  16. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  17. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -2
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -1
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +212 -219
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -205
  23. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
  24. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +848 -208
  25. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/global.d.ts +5 -6
  26. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/index.d.ts +3 -3
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -0
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +4 -0
  30. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +2 -0
  31. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1226 -1726
  32. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  33. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +102 -18
  34. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
  35. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1199 -1045
  36. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +294 -263
  37. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +33 -28
  38. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +210 -0
  39. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +4828 -1750
  40. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -448
  41. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -829
  42. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
  43. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
  44. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +664 -114
  45. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +891 -9
  46. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
  47. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +254 -114
  48. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +152 -12
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +813 -57
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -2
  51. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -45
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -148
  53. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +38 -3
  54. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +3161 -43
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +316 -22
  57. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +42 -0
  59. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
  60. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
  61. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +8 -0
  62. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -0
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2765 -1193
  64. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +18 -18
  65. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3098 -1153
  66. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +13 -13
  67. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +42 -0
  68. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +10 -10
  69. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -369
  70. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -0
  71. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -0
  72. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  73. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +540 -253
  74. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -1131
  75. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
  76. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -35
  78. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +42 -0
  79. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +2 -0
  81. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +614 -15
  82. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -437
  83. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +58 -16
  84. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
  85. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
  86. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
  87. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1656 -1488
  88. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1752 -786
  89. package/types/uni/uts-plugin-biz/global.d.ts +1 -0
  90. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +85 -1
  92. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
  93. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
  94. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
  95. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +4 -0
  96. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +2 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +98 -15
  98. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +677 -299
  99. package/types/uni/uts-plugin-extend/README.md +3 -0
  100. package/types/uni/uts-plugin-extend/global.d.ts +1 -0
  101. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
  102. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
  103. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
  105. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
  106. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +302 -302
  107. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
  108. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +431 -11
  109. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  110. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
  111. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
  112. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +73 -73
  113. package/types/uni-cloud/interface.d.ts +91 -0
  114. package/uts-plugin.d.ts +3 -1
  115. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
  116. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
  117. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
  118. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
  119. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
  120. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
  121. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
  122. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
  123. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
  124. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
  125. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
  126. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
@@ -2,4 +2,5 @@
2
2
  /// <reference path='./lib/uni-push/utssdk/global.d.ts' />
3
3
  /// <reference path='./lib/uni-map-tencent/utssdk/global.d.ts' />
4
4
  /// <reference path='./lib/uni-facialRecognitionVerify/utssdk/global.d.ts' />
5
+ /// <reference path='./lib/uni-crash/utssdk/global.d.ts' />
5
6
  /// <reference path='./lib/uni-ad/utssdk/global.d.ts' />
@@ -2,4 +2,5 @@ export * from './lib/uni-verify/utssdk'
2
2
  export * from './lib/uni-push/utssdk'
3
3
  export * from './lib/uni-map-tencent/utssdk'
4
4
  export * from './lib/uni-facialRecognitionVerify/utssdk'
5
+ export * from './lib/uni-crash/utssdk'
5
6
  export * from './lib/uni-ad/utssdk'
@@ -600,6 +600,48 @@ export interface Uni {
600
600
  * "unixVer": "4.22"
601
601
  * }
602
602
  * },
603
+ * "mp": {
604
+ * "weixin": {
605
+ * "hostVer": "x",
606
+ * "uniVer": "x",
607
+ * "unixVer": "4.35"
608
+ * },
609
+ * "alipay": {
610
+ * "hostVer": "x",
611
+ * "uniVer": "x",
612
+ * "unixVer": "x"
613
+ * },
614
+ * "baidu": {
615
+ * "hostVer": "x",
616
+ * "uniVer": "x",
617
+ * "unixVer": "x"
618
+ * },
619
+ * "toutiao": {
620
+ * "hostVer": "x",
621
+ * "uniVer": "x",
622
+ * "unixVer": "x"
623
+ * },
624
+ * "lark": {
625
+ * "hostVer": "x",
626
+ * "uniVer": "x",
627
+ * "unixVer": "x"
628
+ * },
629
+ * "qq": {
630
+ * "hostVer": "x",
631
+ * "uniVer": "x",
632
+ * "unixVer": "x"
633
+ * },
634
+ * "kuaishou": {
635
+ * "hostVer": "x",
636
+ * "uniVer": "x",
637
+ * "unixVer": "x"
638
+ * },
639
+ * "jd": {
640
+ * "hostVer": "x",
641
+ * "uniVer": "x",
642
+ * "unixVer": "x"
643
+ * }
644
+ * },
603
645
  * "web": {
604
646
  * "uniVer": "x",
605
647
  * "unixVer": "x"
@@ -628,6 +670,48 @@ export interface Uni {
628
670
  * "unixVer": "4.31"
629
671
  * }
630
672
  * },
673
+ * "mp": {
674
+ * "weixin": {
675
+ * "hostVer": "x",
676
+ * "uniVer": "x",
677
+ * "unixVer": "4.35"
678
+ * },
679
+ * "alipay": {
680
+ * "hostVer": "x",
681
+ * "uniVer": "x",
682
+ * "unixVer": "x"
683
+ * },
684
+ * "baidu": {
685
+ * "hostVer": "x",
686
+ * "uniVer": "x",
687
+ * "unixVer": "x"
688
+ * },
689
+ * "toutiao": {
690
+ * "hostVer": "x",
691
+ * "uniVer": "x",
692
+ * "unixVer": "x"
693
+ * },
694
+ * "lark": {
695
+ * "hostVer": "x",
696
+ * "uniVer": "x",
697
+ * "unixVer": "x"
698
+ * },
699
+ * "qq": {
700
+ * "hostVer": "x",
701
+ * "uniVer": "x",
702
+ * "unixVer": "x"
703
+ * },
704
+ * "kuaishou": {
705
+ * "hostVer": "x",
706
+ * "uniVer": "x",
707
+ * "unixVer": "x"
708
+ * },
709
+ * "jd": {
710
+ * "hostVer": "x",
711
+ * "uniVer": "x",
712
+ * "unixVer": "x"
713
+ * }
714
+ * },
631
715
  * "web": {
632
716
  * "uniVer": "x",
633
717
  * "unixVer": "x"
@@ -638,5 +722,5 @@ export interface Uni {
638
722
  generated:false
639
723
  }
640
724
  */
641
- createInterstitialAd(option : CreateInterstitialAd) : InterstitialAd;
725
+ createInterstitialAd(option : CreateInterstitialAdOptions) : InterstitialAd;
642
726
  }
@@ -1,48 +1,48 @@
1
- /**
2
- *
3
- */
4
- export type OnAppCrashCallback = () => void
5
-
6
- /**
7
- * 监听应用崩溃
8
- */
9
- export type OnAppCrash = (callback : OnAppCrashCallback) => void
10
-
11
- /**
12
- * 取消监听应用崩溃
13
- */
14
- export type OffAppCrash = () => void
15
-
16
- export type AppCrashInfo = {
17
- /**
18
- * 唯一标识符
19
- */
20
- id : string,
21
- /**
22
- * 崩溃的堆栈信息
23
- */
24
- file : string,
25
- /**
26
- * 崩溃发生的时间
27
- */
28
- time : string
29
- }
30
-
31
- /**
32
- * 获取所有的崩溃信息
33
- */
34
- export type GetAppCrashInfo = () => Array<AppCrashInfo>
35
-
36
- /**
37
- * 删除指定的崩溃信息,id为空则删除所有的崩溃信息
38
- */
39
- export type DeleteAppCrashInfo = (id : string | null) => void
40
-
41
-
42
- export interface Uni {
43
- __onAppCrash(callback : OnAppCrashCallback | null) : void,
44
- __offAppCrash() : void,
45
- __getAppCrashInfo() : Array<AppCrashInfo> | null,
1
+ /**
2
+ *
3
+ */
4
+ export type OnAppCrashCallback = () => void
5
+
6
+ /**
7
+ * 监听应用崩溃
8
+ */
9
+ export type OnAppCrash = (callback : OnAppCrashCallback) => void
10
+
11
+ /**
12
+ * 取消监听应用崩溃
13
+ */
14
+ export type OffAppCrash = () => void
15
+
16
+ export type AppCrashInfo = {
17
+ /**
18
+ * 唯一标识符
19
+ */
20
+ id : string,
21
+ /**
22
+ * 崩溃的堆栈信息
23
+ */
24
+ file : string,
25
+ /**
26
+ * 崩溃发生的时间
27
+ */
28
+ time : string
29
+ }
30
+
31
+ /**
32
+ * 获取所有的崩溃信息
33
+ */
34
+ export type GetAppCrashInfo = () => Array<AppCrashInfo>
35
+
36
+ /**
37
+ * 删除指定的崩溃信息,id为空则删除所有的崩溃信息
38
+ */
39
+ export type DeleteAppCrashInfo = (id : string | null) => void
40
+
41
+
42
+ export interface Uni {
43
+ __onAppCrash(callback : OnAppCrashCallback | null) : void,
44
+ __offAppCrash() : void,
45
+ __getAppCrashInfo() : Array<AppCrashInfo> | null,
46
46
  __deleteAppCrashInfo(id : string | null) : void,
47
- __creatAppCrash() : void
47
+ __creatAppCrash() : void
48
48
  }
@@ -424,7 +424,7 @@ export type Polyline = {
424
424
  */
425
425
  arrowIconPath ?: string | null;
426
426
  /**
427
- * 线的边框颜色
427
+ * 线的边框颜色
428
428
  * @defaultValue null
429
429
  * @uniPlatform {
430
430
  * "app": {
@@ -444,7 +444,7 @@ export type Polyline = {
444
444
  */
445
445
  borderColor ?: string | null;
446
446
  /**
447
- * 线的厚度
447
+ * 线的厚度
448
448
  * @defaultValue null
449
449
  * @uniPlatform {
450
450
  * "app": {
@@ -1761,14 +1761,14 @@ export type MapErrorCode =
1761
1761
  /**
1762
1762
  * 创建自定义图片图层失败
1763
1763
  */
1764
- 500004 |
1765
- /**
1766
- * 未找到自定义图层id
1767
- */
1768
- 500005 |
1769
- /**
1770
- * 网络图片加载失败
1771
- */
1764
+ 500004 |
1765
+ /**
1766
+ * 未找到自定义图层id
1767
+ */
1768
+ 500005 |
1769
+ /**
1770
+ * 网络图片加载失败
1771
+ */
1772
1772
  500006 |
1773
1773
  /**
1774
1774
  * 地图内部错误
@@ -2037,15 +2037,67 @@ export interface Uni {
2037
2037
  * "app": {
2038
2038
  * "android": {
2039
2039
  * "osVer": "4.4",
2040
- * "uniVer": "x",
2041
- * "unixVer": "4.31"
2042
- * },
2043
- * "ios": {
2044
- * "osVer": "12.0",
2045
- * "uniVer": "x",
2046
- * "unixVer": "4.31"
2047
- * },
2048
- * },
2040
+ * "uniVer": {
2041
+ * "vue": "",
2042
+ * "nvue": "2.2.5"
2043
+ * },
2044
+ * "unixVer": "4.31"
2045
+ * },
2046
+ * "ios": {
2047
+ * "osVer": "12.0",
2048
+ * "uniVer": {
2049
+ * "vue": "√",
2050
+ * "nvue": "2.2.5"
2051
+ * },
2052
+ * "unixVer": "4.31"
2053
+ * },
2054
+ * },
2055
+ * "mp": {
2056
+ * "weixin": {
2057
+ * "hostVer": "√",
2058
+ * "uniVer": "√",
2059
+ * "unixVer": "4.35"
2060
+ * },
2061
+ * "alipay": {
2062
+ * "hostVer": "√",
2063
+ * "uniVer": "√",
2064
+ * "unixVer": "x"
2065
+ * },
2066
+ * "baidu": {
2067
+ * "hostVer": "√",
2068
+ * "uniVer": "√",
2069
+ * "unixVer": "x"
2070
+ * },
2071
+ * "toutiao": {
2072
+ * "hostVer": "√",
2073
+ * "uniVer": "√",
2074
+ * "unixVer": "x"
2075
+ * },
2076
+ * "lark": {
2077
+ * "hostVer": "√",
2078
+ * "uniVer": "√",
2079
+ * "unixVer": "x"
2080
+ * },
2081
+ * "qq": {
2082
+ * "hostVer": "1.9.0",
2083
+ * "uniVer": "√",
2084
+ * "unixVer": "x"
2085
+ * },
2086
+ * "kuaishou": {
2087
+ * "hostVer": "√",
2088
+ * "uniVer": "√",
2089
+ * "unixVer": "x"
2090
+ * },
2091
+ * "jd": {
2092
+ * "hostVer": "√",
2093
+ * "uniVer": "√",
2094
+ * "unixVer": "x"
2095
+ * }
2096
+ * },
2097
+ * "web": {
2098
+ * "uniVer": "√",
2099
+ * "unixVer": "4.0"
2100
+ * }
2049
2101
  * }
2050
2102
  * @uniVueVersion 2,3
2051
2103
  * @return {MapContext} map组件上下文对象
@@ -2056,4 +2108,4 @@ export interface Uni {
2056
2108
  *
2057
2109
  */
2058
2110
  createMapContext : CreateMapContext;
2059
- }
2111
+ }
@@ -24,6 +24,48 @@ export interface Uni {
24
24
  * "unixVer": "x"
25
25
  * }
26
26
  * },
27
+ * "mp": {
28
+ * "weixin": {
29
+ * "hostVer": "x",
30
+ * "uniVer": "x",
31
+ * "unixVer": "4.35"
32
+ * },
33
+ * "alipay": {
34
+ * "hostVer": "x",
35
+ * "uniVer": "x",
36
+ * "unixVer": "x"
37
+ * },
38
+ * "baidu": {
39
+ * "hostVer": "x",
40
+ * "uniVer": "x",
41
+ * "unixVer": "x"
42
+ * },
43
+ * "toutiao": {
44
+ * "hostVer": "x",
45
+ * "uniVer": "x",
46
+ * "unixVer": "x"
47
+ * },
48
+ * "lark": {
49
+ * "hostVer": "x",
50
+ * "uniVer": "x",
51
+ * "unixVer": "x"
52
+ * },
53
+ * "qq": {
54
+ * "hostVer": "x",
55
+ * "uniVer": "x",
56
+ * "unixVer": "x"
57
+ * },
58
+ * "kuaishou": {
59
+ * "hostVer": "x",
60
+ * "uniVer": "x",
61
+ * "unixVer": "x"
62
+ * },
63
+ * "jd": {
64
+ * "hostVer": "x",
65
+ * "uniVer": "x",
66
+ * "unixVer": "x"
67
+ * }
68
+ * },
27
69
  * "web": {
28
70
  * "uniVer": "x",
29
71
  * "unixVer": "4.27"
@@ -64,6 +106,48 @@ export interface Uni {
64
106
  * "unixVer": "x"
65
107
  * }
66
108
  * },
109
+ * "mp": {
110
+ * "weixin": {
111
+ * "hostVer": "x",
112
+ * "uniVer": "x",
113
+ * "unixVer": "4.35"
114
+ * },
115
+ * "alipay": {
116
+ * "hostVer": "x",
117
+ * "uniVer": "x",
118
+ * "unixVer": "x"
119
+ * },
120
+ * "baidu": {
121
+ * "hostVer": "x",
122
+ * "uniVer": "x",
123
+ * "unixVer": "x"
124
+ * },
125
+ * "toutiao": {
126
+ * "hostVer": "x",
127
+ * "uniVer": "x",
128
+ * "unixVer": "x"
129
+ * },
130
+ * "lark": {
131
+ * "hostVer": "x",
132
+ * "uniVer": "x",
133
+ * "unixVer": "x"
134
+ * },
135
+ * "qq": {
136
+ * "hostVer": "x",
137
+ * "uniVer": "x",
138
+ * "unixVer": "x"
139
+ * },
140
+ * "kuaishou": {
141
+ * "hostVer": "x",
142
+ * "uniVer": "x",
143
+ * "unixVer": "x"
144
+ * },
145
+ * "jd": {
146
+ * "hostVer": "x",
147
+ * "uniVer": "x",
148
+ * "unixVer": "x"
149
+ * }
150
+ * },
67
151
  * "web": {
68
152
  * "uniVer": "x",
69
153
  * "unixVer": "4.27"
@@ -102,6 +186,48 @@ export interface Uni {
102
186
  * "unixVer": "x"
103
187
  * }
104
188
  * },
189
+ * "mp": {
190
+ * "weixin": {
191
+ * "hostVer": "x",
192
+ * "uniVer": "x",
193
+ * "unixVer": "4.35"
194
+ * },
195
+ * "alipay": {
196
+ * "hostVer": "x",
197
+ * "uniVer": "x",
198
+ * "unixVer": "x"
199
+ * },
200
+ * "baidu": {
201
+ * "hostVer": "x",
202
+ * "uniVer": "x",
203
+ * "unixVer": "x"
204
+ * },
205
+ * "toutiao": {
206
+ * "hostVer": "x",
207
+ * "uniVer": "x",
208
+ * "unixVer": "x"
209
+ * },
210
+ * "lark": {
211
+ * "hostVer": "x",
212
+ * "uniVer": "x",
213
+ * "unixVer": "x"
214
+ * },
215
+ * "qq": {
216
+ * "hostVer": "x",
217
+ * "uniVer": "x",
218
+ * "unixVer": "x"
219
+ * },
220
+ * "kuaishou": {
221
+ * "hostVer": "x",
222
+ * "uniVer": "x",
223
+ * "unixVer": "x"
224
+ * },
225
+ * "jd": {
226
+ * "hostVer": "x",
227
+ * "uniVer": "x",
228
+ * "unixVer": "x"
229
+ * }
230
+ * },
105
231
  * "web": {
106
232
  * "uniVer": "x",
107
233
  * "unixVer": "4.27"
@@ -4,7 +4,9 @@ import {
4
4
  UniverifyManager as UniverifyManagerOrigin,
5
5
  PreLoginOptions as PreLoginOptionsOrigin,
6
6
  LoginOptions as LoginOptionsOrigin,
7
+ CustomLoginOptions as CustomLoginOptionsOrigin,
7
8
  UniverifyStyle as UniverifyStyleOrigin,
9
+ PreLoginSuccess as PreLoginSuccessOrigin,
8
10
  PreLoginSuccessCallback as PreLoginSuccessCallbackOrigin,
9
11
  PreLoginFail as PreLoginFailOrigin,
10
12
  PreLoginFailCallback as PreLoginFailCallbackOrigin,
@@ -27,7 +29,9 @@ declare global {
27
29
  type UniverifyManager = UniverifyManagerOrigin
28
30
  type PreLoginOptions = PreLoginOptionsOrigin
29
31
  type LoginOptions = LoginOptionsOrigin
32
+ type CustomLoginOptions = CustomLoginOptionsOrigin
30
33
  type UniverifyStyle = UniverifyStyleOrigin
34
+ type PreLoginSuccess = PreLoginSuccessOrigin
31
35
  type PreLoginSuccessCallback = PreLoginSuccessCallbackOrigin
32
36
  type PreLoginFail = PreLoginFailOrigin
33
37
  type PreLoginFailCallback = PreLoginFailCallbackOrigin
@@ -4,7 +4,9 @@ export {
4
4
  UniverifyManager,
5
5
  PreLoginOptions,
6
6
  LoginOptions,
7
+ CustomLoginOptions,
7
8
  UniverifyStyle,
9
+ PreLoginSuccess,
8
10
  PreLoginSuccessCallback,
9
11
  PreLoginFail,
10
12
  PreLoginFailCallback,
@@ -5,7 +5,7 @@ export interface Uni {
5
5
  * @uniPlatform {
6
6
  * "app": {
7
7
  * "android": {
8
- * "osVer": "4.4",
8
+ * "osVer": "5.0",
9
9
  * "uniVer": "√",
10
10
  * "unixVer": "3.99"
11
11
  * },
@@ -32,7 +32,7 @@ export interface UniverifyManager {
32
32
  * @uniPlatform {
33
33
  * "app": {
34
34
  * "android": {
35
- * "osVer": "4.4",
35
+ * "osVer": "5.0",
36
36
  * "uniVer": "√",
37
37
  * "unixVer": "3.99"
38
38
  * },
@@ -50,7 +50,7 @@ export interface UniverifyManager {
50
50
  * @uniPlatform {
51
51
  * "app": {
52
52
  * "android": {
53
- * "osVer": "4.4",
53
+ * "osVer": "5.0",
54
54
  * "uniVer": "√",
55
55
  * "unixVer": "3.99"
56
56
  * },
@@ -63,12 +63,30 @@ export interface UniverifyManager {
63
63
  * }
64
64
  */
65
65
  login(options : LoginOptions) : void
66
+ /**
67
+ * @description 自定义登录页登录
68
+ * @uniPlatform {
69
+ * "app": {
70
+ * "android": {
71
+ * "osVer": "5.0",
72
+ * "uniVer": "x",
73
+ * "unixVer": "4.41"
74
+ * },
75
+ * "ios": {
76
+ * "osVer": "12.0",
77
+ * "uniVer": "x",
78
+ * "unixVer": "4.41"
79
+ * }
80
+ * }
81
+ * }
82
+ */
83
+ customLogin(options : CustomLoginOptions) : void
66
84
  /**
67
85
  * @description 关闭登录页
68
86
  * @uniPlatform {
69
87
  * "app": {
70
88
  * "android": {
71
- * "osVer": "4.4",
89
+ * "osVer": "5.0",
72
90
  * "uniVer": "√",
73
91
  * "unixVer": "3.99"
74
92
  * },
@@ -86,7 +104,7 @@ export interface UniverifyManager {
86
104
  * @uniPlatform {
87
105
  * "app": {
88
106
  * "android": {
89
- * "osVer": "4.4",
107
+ * "osVer": "5.0",
90
108
  * "uniVer": "√",
91
109
  * "unixVer": "3.99"
92
110
  * },
@@ -120,6 +138,20 @@ export type LoginOptions = {
120
138
  complete ?: LoginCompleteCallback
121
139
  }
122
140
 
141
+ /**
142
+ * 自定义登录页登录参数
143
+ */
144
+ export type CustomLoginOptions = {
145
+ numberTextElement : UniElement,
146
+ sloganTextElement : UniElement,
147
+ loginButtonElement : UniElement,
148
+ privacyCheckBoxElement : UniElement,
149
+ privacyTextElement : UniElement,
150
+ success : LoginSuccessCallback | null,
151
+ fail : LoginFailCallback | null,
152
+ complete : LoginCompleteCallback | null
153
+ }
154
+
123
155
  /**
124
156
  * 登录页样式
125
157
  */
@@ -142,7 +174,25 @@ export type UniverifyStyle = {
142
174
  loginBtnText ?: string
143
175
  }
144
176
 
145
- export type PreLoginSuccessCallback = () => void
177
+ export type PreLoginSuccess = {
178
+ /**
179
+ * 手机号(脱敏)
180
+ */
181
+ number : string,
182
+ /**
183
+ * 运营商slogan,如移动:中国移动提供认证服务,联通:认证服务由联通统一认证提供,电信:天翼账号提供认证服务
184
+ */
185
+ slogan : string,
186
+ /**
187
+ * 运营商隐私协议名称,如移动:中国移动认证服务条款,联通:联通统一认证服务条款,电信:天翼账号服务与隐私协议
188
+ */
189
+ privacyName : string,
190
+ /**
191
+ * 运营商隐私协议url地址
192
+ */
193
+ privacyUrl : string
194
+ }
195
+ export type PreLoginSuccessCallback = (res : PreLoginSuccess) => void
146
196
  export interface PreLoginFail extends IUniError {
147
197
  errCode : UniverifyErrorCode
148
198
  }
@@ -169,17 +219,50 @@ export type LoginComplete = any;
169
219
  export type LoginCompleteCallback = (res : LoginComplete) => void
170
220
 
171
221
  /**
172
- * 1000 当前应用appid尚未开通uni一键登录
173
- * 1001 应用所有者账号信息异常,请检查账号一键登录服务是否正常
174
- * 1002 应用所有者账号信息异常,请检查账号余额是否充足
175
- * 1004 uni一键登录应用不存在
176
- * 4001 参数异常
177
- * 30004 其他错误
178
- * 30005 预登录失败
179
- * 30006 一键登录失败
222
+ * 错误码
180
223
  */
181
224
  // export type UniverifyErrorCode = 1000 | 1001 | 1002 | 1004 | 4001 | 30002 | 30003 | 30004 | 30005 | 30006;
182
- export type UniverifyErrorCode = 1000 | 1001 | 1002 | 1004 | 4001 | 30004 | 30005 | 30006;
225
+ export type UniverifyErrorCode =
226
+ /**
227
+ * 当前应用appid尚未开通uni一键登录
228
+ */
229
+ 1000 |
230
+ /**
231
+ * 应用所有者账号信息异常,请检查账号一键登录服务是否正常
232
+ */
233
+ 1001 |
234
+ /**
235
+ * 应用所有者账号信息异常,请检查账号余额是否充足
236
+ */
237
+ 1002 |
238
+ /**
239
+ * uni一键登录应用不存在
240
+ */
241
+ 1004 |
242
+ /**
243
+ * 参数异常
244
+ */
245
+ 4001 |
246
+ /**
247
+ * 其他错误
248
+ */
249
+ 30004 |
250
+ /**
251
+ * 预登录失败
252
+ */
253
+ 30005 |
254
+ /**
255
+ * 一键登录失败
256
+ */
257
+ 30006 |
258
+ /**
259
+ * 未同意隐私条款
260
+ */
261
+ 40001 |
262
+ /**
263
+ * 授权页不合规,请参考文档修改
264
+ */
265
+ 40002;
183
266
 
184
267
  /**
185
268
  * SDK响应数据结构