@dcloudio/uni-app-x 0.7.14 → 0.7.15

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/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/native/CSSStyleDeclaration.d.ts +0 -72
  4. package/types/native/CanvasRenderingContext2D.d.ts +378 -0
  5. package/types/native/DOMRect.d.ts +0 -180
  6. package/types/native/DrawableContext.d.ts +161 -628
  7. package/types/native/IUniElement.d.ts +335 -1919
  8. package/types/native/Path2D.d.ts +74 -0
  9. package/types/native/SnapshotOptions.d.ts +1 -0
  10. package/types/native/UniCanvasElement.d.ts +9 -0
  11. package/types/native/UniNativePage.d.ts +27 -1
  12. package/types/native/UniPageManager.d.ts +4 -1
  13. package/types/native/UniResizeObserver.d.ts +9 -99
  14. package/types/native/UniScrollEvent.d.ts +1 -1
  15. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
  16. package/types/native/UniSwiperChangeEvent.d.ts +1 -1
  17. package/types/native/global.d.ts +21 -0
  18. package/types/native/index.d.ts +3 -0
  19. package/types/shim-uts-basic.d.ts +4495 -0
  20. package/types/uni/env/index.d.ts +21 -0
  21. package/types/uni/uts-plugin-api/global.d.ts +12 -1
  22. package/types/uni/uts-plugin-api/index.d.ts +12 -1
  23. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  24. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  25. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  26. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  27. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  28. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  29. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  30. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  31. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  32. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  33. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  34. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  35. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  36. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +19 -8
  37. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  38. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
  39. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
  40. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
  41. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  42. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +26 -18
  43. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
  44. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
  45. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +7 -1
  46. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  47. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  48. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +173 -0
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  51. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  52. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  53. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  54. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  55. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  56. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +10 -3
  57. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
  58. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  59. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  60. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +113 -23
  61. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
  62. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
  63. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  64. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  65. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  66. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  67. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  68. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  69. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
  70. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
  71. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
  72. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  73. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  74. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +312 -58
  75. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +34 -5
  76. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
  77. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  78. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  79. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  80. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  81. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  82. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  83. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  84. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +17 -10
  85. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  86. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  87. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  88. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  89. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  91. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  92. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  93. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  94. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  95. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +241 -32
  96. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  97. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  98. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  99. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  100. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
  101. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  102. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  103. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
  104. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
  105. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
  106. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
  107. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  108. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  109. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  110. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
  111. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
  112. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  113. package/types/uni/uts-plugin-extend/global.d.ts +0 -1
  114. package/types/uni/uts-plugin-extend/index.d.ts +0 -3
  115. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
  116. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  117. package/types/uni-cloud/interface.d.ts +57 -3
  118. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  119. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  120. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
  121. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
  122. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
  123. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
  124. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
  125. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
  126. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
@@ -1,119 +0,0 @@
1
- export interface IGetClipboardDataError extends IUniError {
2
- errCode: number
3
- }
4
- /**
5
- * uni.getClipboardData成功回调参数
6
- */
7
- export type GetClipboardDataSuccess = {
8
- /**
9
- * 剪贴板的内容
10
- */
11
- data: string;
12
- }
13
- /**
14
- * uni.getClipboardData失败回调参数
15
- */
16
- export type GetClipboardDataFail = IGetClipboardDataError;
17
- /**
18
- * uni.getClipboardData成功回调函数定义
19
- */
20
- export type GetClipboardDataSuccessCallback = (res: GetClipboardDataSuccess) => void
21
- /**
22
- * uni.getClipboardData失败回调函数定义
23
- */
24
- export type GetClipboardDataFailCallback = (res: GetClipboardDataFail) => void
25
- /**
26
- * uni.getClipboardData完成回调函数定义
27
- */
28
- export type GetClipboardDataCompleteCallback = (res: any) => void
29
-
30
- /**
31
- * uni.getClipboardData
32
- */
33
- interface GetClipboardDataOptions {
34
- /**
35
- * 成功返回的回调函数
36
- */
37
- success?: GetClipboardDataSuccessCallback;
38
- /**
39
- * 失败的回调函数
40
- */
41
- fail?:GetClipboardDataFailCallback;
42
- /**
43
- * 结束的回调函数(调用成功、失败都会执行)
44
- */
45
- complete?:GetClipboardDataCompleteCallback;
46
- }
47
-
48
-
49
- export type GetClipboardData = (options: GetClipboardDataOptions) => void
50
-
51
-
52
- export interface Uni {
53
- /**
54
- * 获得系统剪贴板的内容
55
- *
56
- * @tutorial http://uniapp.dcloud.io/api/system/clipboard?id=getclipboarddata
57
- * @uniPlatform {
58
- * "app": {
59
- * "android": {
60
- * "osVer": "5.0",
61
- * "uniVer": "√",
62
- * "unixVer": "x"
63
- * },
64
- * "ios": {
65
- * "osVer": "12.0",
66
- * "uniVer": "√",
67
- * "unixVer": "x"
68
- * }
69
- * },
70
- * "mp": {
71
- * "weixin": {
72
- * "hostVer": "√",
73
- * "uniVer": "√",
74
- * "unixVer": "x"
75
- * },
76
- * "alipay": {
77
- * "hostVer": "√",
78
- * "uniVer": "√",
79
- * "unixVer": "x"
80
- * },
81
- * "baidu": {
82
- * "hostVer": "√",
83
- * "uniVer": "√",
84
- * "unixVer": "x"
85
- * },
86
- * "toutiao": {
87
- * "hostVer": "√",
88
- * "uniVer": "√",
89
- * "unixVer": "x"
90
- * },
91
- * "lark": {
92
- * "hostVer": "√",
93
- * "uniVer": "√",
94
- * "unixVer": "√"
95
- * },
96
- * "qq": {
97
- * "hostVer": "√",
98
- * "uniVer": "√",
99
- * "unixVer": "x"
100
- * },
101
- * "kuaishou": {
102
- * "hostVer": "√",
103
- * "uniVer": "√",
104
- * "unixVer": "x"
105
- * },
106
- * "jd": {
107
- * "hostVer": "√",
108
- * "uniVer": "√",
109
- * "unixVer": "x"
110
- * }
111
- * },
112
- * "web": {
113
- * "uniVer": "√",
114
- * "unixVer": "4.0"
115
- * }
116
- * }
117
- */
118
- getClipboardData(options: GetClipboardDataOptions): void;
119
- }
@@ -1,21 +0,0 @@
1
- import {
2
- SetClipboardDataSuccess as SetClipboardDataSuccessOrigin,
3
- SetClipboardDataFail as SetClipboardDataFailOrigin,
4
- SetClipboardDataSuccessCallback as SetClipboardDataSuccessCallbackOrigin,
5
- SetClipboardDataFailCallback as SetClipboardDataFailCallbackOrigin,
6
- SetClipboardDataCompleteCallback as SetClipboardDataCompleteCallbackOrigin,
7
- SetClipboardDataOptions as SetClipboardDataOptionsOrigin,
8
- setClipboardData as setClipboardDataOrigin,
9
- Uni as UniOrigin
10
- } from './interface'
11
-
12
- declare global {
13
- type SetClipboardDataSuccess = SetClipboardDataSuccessOrigin
14
- type SetClipboardDataFail = SetClipboardDataFailOrigin
15
- type SetClipboardDataSuccessCallback = SetClipboardDataSuccessCallbackOrigin
16
- type SetClipboardDataFailCallback = SetClipboardDataFailCallbackOrigin
17
- type SetClipboardDataCompleteCallback = SetClipboardDataCompleteCallbackOrigin
18
- type SetClipboardDataOptions = SetClipboardDataOptionsOrigin
19
- type setClipboardData = setClipboardDataOrigin
20
- interface Uni extends UniOrigin { }
21
- }
@@ -1,9 +0,0 @@
1
- export {
2
- SetClipboardDataSuccess,
3
- SetClipboardDataFail,
4
- SetClipboardDataSuccessCallback,
5
- SetClipboardDataFailCallback,
6
- SetClipboardDataCompleteCallback,
7
- SetClipboardDataOptions,
8
- setClipboardData,
9
- } from './interface'
@@ -1,122 +0,0 @@
1
- export interface ISetClipboardDataError extends IUniError {
2
- errCode: number
3
- }
4
- /**
5
- * uni.setClipboardData成功回调参数
6
- */
7
- export type SetClipboardDataSuccess = {
8
- }
9
- /**
10
- * uni.setClipboardData失败回调参数
11
- */
12
- export type SetClipboardDataFail = ISetClipboardDataError;
13
- /**
14
- * uni.setClipboardData成功回调函数定义
15
- */
16
- export type SetClipboardDataSuccessCallback = (res: SetClipboardDataSuccess) => void
17
- /**
18
- * uni.setClipboardData失败回调函数定义
19
- */
20
- export type SetClipboardDataFailCallback = (res: SetClipboardDataFail) => void
21
- /**
22
- * uni.setClipboardData完成回调函数定义
23
- */
24
- export type SetClipboardDataCompleteCallback = (res: any) => void
25
-
26
- /**
27
- * uni.setClipboardData
28
- */
29
- interface SetClipboardDataOptions {
30
- /**
31
- * 需要设置的内容
32
- */
33
- data: string;
34
- /**
35
- * 是否弹出提示,默认弹出提示
36
- */
37
- showToast?: boolean;
38
- /**
39
- * 成功返回的回调函数
40
- */
41
- success?:SetClipboardDataSuccessCallback;
42
- /**
43
- * 失败的回调函数
44
- */
45
- fail?:SetClipboardDataFailCallback;
46
- /**
47
- * 结束的回调函数(调用成功、失败都会执行)
48
- */
49
- complete?:SetClipboardDataCompleteCallback;
50
- }
51
-
52
- export type SetClipboardData = (options: SetClipboardDataOptions) => void
53
-
54
-
55
- export interface Uni {
56
- /**
57
- * 设置系统剪贴板的内容
58
- *
59
- * @tutorial https://uniapp.dcloud.net.cn/api/system/clipboard.html
60
- * @uniPlatform {
61
- * "app": {
62
- * "android": {
63
- * "osVer": "5.0",
64
- * "uniVer": "√",
65
- * "unixVer": "x"
66
- * },
67
- * "ios": {
68
- * "osVer": "12.0",
69
- * "uniVer": "√",
70
- * "unixVer": "x"
71
- * }
72
- * },
73
- * "mp": {
74
- * "weixin": {
75
- * "hostVer": "√",
76
- * "uniVer": "√",
77
- * "unixVer": "x"
78
- * },
79
- * "alipay": {
80
- * "hostVer": "√",
81
- * "uniVer": "√",
82
- * "unixVer": "x"
83
- * },
84
- * "baidu": {
85
- * "hostVer": "√",
86
- * "uniVer": "√",
87
- * "unixVer": "x"
88
- * },
89
- * "toutiao": {
90
- * "hostVer": "√",
91
- * "uniVer": "√",
92
- * "unixVer": "x"
93
- * },
94
- * "lark": {
95
- * "hostVer": "√",
96
- * "uniVer": "√",
97
- * "unixVer": "x"
98
- * },
99
- * "qq": {
100
- * "hostVer": "√",
101
- * "uniVer": "√",
102
- * "unixVer": "x"
103
- * },
104
- * "kuaishou": {
105
- * "hostVer": "√",
106
- * "uniVer": "√",
107
- * "unixVer": "x"
108
- * },
109
- * "jd": {
110
- * "hostVer": "√",
111
- * "uniVer": "√",
112
- * "unixVer": "x"
113
- * }
114
- * },
115
- * "web": {
116
- * "uniVer": "√",
117
- * "unixVer": "4.0"
118
- * }
119
- * }
120
- */
121
- setClipboardData(options: SetClipboardDataOptions): void;
122
- }