@dcloudio/uni-app-x 0.7.78 → 0.7.79

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 (156) hide show
  1. package/package.json +3 -2
  2. package/types/dom2/UniCSSTransform.d.ts +1 -1
  3. package/types/dom2/UniNativeBaseView.d.ts +11 -15
  4. package/types/dom2/UniNativeDefines.d.ts +2 -44
  5. package/types/dom2/UniNativeViewElement.d.ts +60 -0
  6. package/types/dom2/UniTextElement.d.ts +7 -0
  7. package/types/dom2/UniTextLayout.d.ts +7 -0
  8. package/types/dom2/global.d.ts +3 -6
  9. package/types/dom2/sharedData.d.ts +13 -5
  10. package/types/native/UniPage.d.ts +9 -0
  11. package/types/node_modules/.package-lock.json +20 -0
  12. package/types/node_modules/typescript/LICENSE.txt +55 -0
  13. package/types/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  14. package/types/node_modules/typescript/bin/tsc +2 -0
  15. package/types/node_modules/typescript/bin/tsserver +2 -0
  16. package/types/node_modules/typescript/lib/cancellationToken.js +90 -0
  17. package/types/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +1880 -0
  18. package/types/node_modules/typescript/lib/de/diagnosticMessages.generated.json +1880 -0
  19. package/types/node_modules/typescript/lib/es/diagnosticMessages.generated.json +1880 -0
  20. package/types/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +1880 -0
  21. package/types/node_modules/typescript/lib/it/diagnosticMessages.generated.json +1880 -0
  22. package/types/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +1880 -0
  23. package/types/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +1880 -0
  24. package/types/node_modules/typescript/lib/lib.d.ts +22 -0
  25. package/types/node_modules/typescript/lib/lib.decorators.d.ts +386 -0
  26. package/types/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  27. package/types/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +33 -0
  28. package/types/node_modules/typescript/lib/lib.dom.d.ts +28596 -0
  29. package/types/node_modules/typescript/lib/lib.dom.iterable.d.ts +475 -0
  30. package/types/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  31. package/types/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  32. package/types/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  33. package/types/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  34. package/types/node_modules/typescript/lib/lib.es2015.iterable.d.ts +495 -0
  35. package/types/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  36. package/types/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  37. package/types/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  38. package/types/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  39. package/types/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  40. package/types/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  41. package/types/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  42. package/types/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  43. package/types/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  44. package/types/node_modules/typescript/lib/lib.es2017.d.ts +25 -0
  45. package/types/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  46. package/types/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  47. package/types/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  48. package/types/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  49. package/types/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  50. package/types/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  51. package/types/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  52. package/types/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  53. package/types/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +43 -0
  54. package/types/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  55. package/types/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  56. package/types/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  57. package/types/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  58. package/types/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  59. package/types/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  60. package/types/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  61. package/types/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  62. package/types/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  63. package/types/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  64. package/types/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  65. package/types/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  66. package/types/node_modules/typescript/lib/lib.es2020.bigint.d.ts +727 -0
  67. package/types/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  68. package/types/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  69. package/types/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  70. package/types/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  71. package/types/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  72. package/types/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  73. package/types/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +97 -0
  74. package/types/node_modules/typescript/lib/lib.es2020.string.d.ts +42 -0
  75. package/types/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +37 -0
  76. package/types/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  77. package/types/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  78. package/types/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  79. package/types/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  80. package/types/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  81. package/types/node_modules/typescript/lib/lib.es2021.weakref.d.ts +76 -0
  82. package/types/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  83. package/types/node_modules/typescript/lib/lib.es2022.d.ts +26 -0
  84. package/types/node_modules/typescript/lib/lib.es2022.error.d.ts +73 -0
  85. package/types/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  86. package/types/node_modules/typescript/lib/lib.es2022.intl.d.ts +117 -0
  87. package/types/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  88. package/types/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  89. package/types/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +39 -0
  90. package/types/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  91. package/types/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  92. package/types/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  93. package/types/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  94. package/types/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  95. package/types/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  96. package/types/node_modules/typescript/lib/lib.es5.d.ts +4585 -0
  97. package/types/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  98. package/types/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  99. package/types/node_modules/typescript/lib/lib.esnext.collection.d.ts +106 -0
  100. package/types/node_modules/typescript/lib/lib.esnext.d.ts +28 -0
  101. package/types/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  102. package/types/node_modules/typescript/lib/lib.esnext.disposable.d.ts +185 -0
  103. package/types/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  104. package/types/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  105. package/types/node_modules/typescript/lib/lib.esnext.object.d.ts +29 -0
  106. package/types/node_modules/typescript/lib/lib.esnext.promise.d.ts +35 -0
  107. package/types/node_modules/typescript/lib/lib.esnext.regexp.d.ts +25 -0
  108. package/types/node_modules/typescript/lib/lib.esnext.string.d.ts +29 -0
  109. package/types/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  110. package/types/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +33 -0
  111. package/types/node_modules/typescript/lib/lib.webworker.d.ts +9431 -0
  112. package/types/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  113. package/types/node_modules/typescript/lib/lib.webworker.iterable.d.ts +276 -0
  114. package/types/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +1880 -0
  115. package/types/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +1880 -0
  116. package/types/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +1880 -0
  117. package/types/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +1880 -0
  118. package/types/node_modules/typescript/lib/tsc.js +129741 -0
  119. package/types/node_modules/typescript/lib/tsserver.js +621 -0
  120. package/types/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  121. package/types/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  122. package/types/node_modules/typescript/lib/typesMap.json +497 -0
  123. package/types/node_modules/typescript/lib/typescript.d.ts +11240 -0
  124. package/types/node_modules/typescript/lib/typescript.js +194910 -0
  125. package/types/node_modules/typescript/lib/typingsInstaller.js +236 -0
  126. package/types/node_modules/typescript/lib/watchGuard.js +53 -0
  127. package/types/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +1880 -0
  128. package/types/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +1880 -0
  129. package/types/node_modules/typescript/package.json +116 -0
  130. package/types/uni/global.d.ts +0 -2
  131. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +2 -2
  132. package/types/uni/uts-plugin-biz/global.d.ts +1 -0
  133. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  134. package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/global.d.ts +14 -0
  135. package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/index.d.ts +7 -0
  136. package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/interface.d.ts +101 -0
  137. package/types/uni/uts-plugin-component/global.d.ts +5 -0
  138. package/types/uni/uts-plugin-component/index.d.ts +5 -0
  139. package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/global.d.ts +23 -0
  140. package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/index.d.ts +12 -0
  141. package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/interface.d.ts +38 -0
  142. package/types/uni/{uni-map-tencent-global.d.ts → uts-plugin-component/lib/uni-map-tencent-global/utssdk/global.d.ts} +22 -20
  143. package/types/uni/uts-plugin-component/lib/uni-map-tencent-global/utssdk/index.d.ts +20 -0
  144. package/types/uni/uts-plugin-component/lib/uni-map-tencent-global/utssdk/interface.d.ts +56 -0
  145. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +39 -0
  146. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +20 -0
  147. package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +94 -0
  148. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/global.d.ts +19 -0
  149. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/index.d.ts +9 -0
  150. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +243 -0
  151. package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/global.d.ts +31 -0
  152. package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/index.d.ts +16 -0
  153. package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/interface.d.ts +46 -0
  154. package/types/uni/uni-camera-global.d.ts +0 -23
  155. package/types/uni/uni-camera.d.ts +0 -35
  156. package/types/uni/uni-map-tencent-map.d.ts +0 -63
@@ -0,0 +1,94 @@
1
+ export type UniVideoEventDetail = {};
2
+ export class UniVideoEvent<T = UniVideoEventDetail> extends UniCustomEvent<T> {
3
+ constructor(target: UniElement, type: string, detail?: T);
4
+ }
5
+ export type UniVideoControlsToggleEventDetail = {
6
+ /**
7
+ * 是否显示
8
+ */
9
+ show: boolean;
10
+ };
11
+ export class UniVideoControlsToggleEvent extends UniVideoEvent<UniVideoControlsToggleEventDetail> {
12
+ constructor(target: UniElement, show: boolean);
13
+ }
14
+ /**
15
+ * 统一错误码
16
+ */
17
+ export type VideoErrorCode =
18
+ /**
19
+ * 网络错误
20
+ */
21
+ 100001 |
22
+ /**
23
+ * 内部错误
24
+ */
25
+ 200001 |
26
+ /**
27
+ * SDK错误
28
+ */
29
+ 300001;
30
+ export type UniWebViewErrorEventDetail = {
31
+ errSubject: string;
32
+ errCode: VideoErrorCode;
33
+ errMsg: string;
34
+ };
35
+ export class UniVideoErrorEvent extends UniVideoEvent<UniWebViewErrorEventDetail> {
36
+ constructor(target: UniElement, detail: UniWebViewErrorEventDetail);
37
+ }
38
+ export type UniVideoFullScreenDirection = 'vertical' | 'horizontal';
39
+ export type UniVideoFullScreenChangeEventDetail = {
40
+ /**
41
+ * 是否全屏
42
+ */
43
+ fullScreen: boolean;
44
+ /**
45
+ * 横竖屏
46
+ */
47
+ direction: UniVideoFullScreenDirection;
48
+ };
49
+ export class UniVideoFullScreenChangeEvent extends UniVideoEvent<UniVideoFullScreenChangeEventDetail> {
50
+ constructor(target: UniElement, fullScreen: boolean, direction?: UniVideoFullScreenDirection);
51
+ }
52
+ export type UniVideoFullScreenClickEventDetail = {
53
+ /**
54
+ * 点击点相对于屏幕左侧边缘的 X 轴坐标
55
+ */
56
+ screenX: number;
57
+ /**
58
+ * 点击点相对于屏幕顶部边缘的 Y 轴坐标
59
+ */
60
+ screenY: number;
61
+ /**
62
+ * 屏幕总宽度
63
+ */
64
+ screenWidth: number;
65
+ /**
66
+ * 屏幕总高度
67
+ */
68
+ screenHeight: number;
69
+ };
70
+ export class UniVideoFullScreenClickEvent extends UniVideoEvent<UniVideoFullScreenClickEventDetail> {
71
+ constructor(target: UniElement, screenX: number, screenY: number, screenWidth: number, screenHeight: number);
72
+ }
73
+ export type UniVideoProgressEventDetail = {
74
+ /**
75
+ * 加载进度百分比
76
+ */
77
+ buffered: number;
78
+ };
79
+ export class UniVideoProgressEvent extends UniVideoEvent<UniVideoProgressEventDetail> {
80
+ constructor(target: UniElement, buffered: number);
81
+ }
82
+ export type UniVideoTimeUpdateEventDetail = {
83
+ /**
84
+ * 当前进度
85
+ */
86
+ currentTime: number;
87
+ /**
88
+ * 总进度
89
+ */
90
+ duration: number;
91
+ };
92
+ export class UniVideoTimeUpdateEvent extends UniVideoEvent<UniVideoTimeUpdateEventDetail> {
93
+ constructor(target: UniElement, currentTime: number, duration: number);
94
+ }
@@ -0,0 +1,19 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ WebViewProgressStyles as WebViewProgressStylesOrigin,
4
+ WebViewStyles as WebViewStylesOrigin,
5
+ UniWebviewContextLoadDataOptions as UniWebviewContextLoadDataOptionsOrigin,
6
+ WebviewContext as WebviewContextOrigin,
7
+ CreateWebviewContext as CreateWebviewContextOrigin,
8
+ Uni as UniOrigin
9
+ } from './interface'
10
+
11
+ declare global {
12
+ type WebViewProgressStyles = WebViewProgressStylesOrigin
13
+ type WebViewStyles = WebViewStylesOrigin
14
+ type UniWebviewContextLoadDataOptions = UniWebviewContextLoadDataOptionsOrigin
15
+ type WebviewContext = WebviewContextOrigin
16
+ type CreateWebviewContext = CreateWebviewContextOrigin
17
+ interface Uni extends UniOrigin { }
18
+ }
19
+
@@ -0,0 +1,9 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ WebViewProgressStyles,
4
+ WebViewStyles,
5
+ UniWebviewContextLoadDataOptions,
6
+ WebviewContext,
7
+ CreateWebviewContext,
8
+ } from './interface'
9
+
@@ -0,0 +1,243 @@
1
+ export type WebViewProgressStyles = {
2
+ color ?: string.ColorString | null,
3
+ show ?: boolean | null
4
+ }
5
+
6
+ export type WebViewStyles = {
7
+ progress ?: WebViewProgressStyles | boolean | null
8
+ }
9
+
10
+ export type UniWebviewContextLoadDataOptions = {
11
+ /**
12
+ * 要加载的内容,编码后的字符串
13
+ * @uniPlatform {
14
+ * "app": {
15
+ * "android": {
16
+ * "osVer": "5.0",
17
+ * "uniVer": "x",
18
+ * "unixVer": "4.85"
19
+ * },
20
+ * "ios": {
21
+ * "osVer": "12.0",
22
+ * "uniVer": "x",
23
+ * "unixVer": "4.85"
24
+ * }
25
+ * }
26
+ * }
27
+ */
28
+ data : string,
29
+ /**
30
+ * 页面的基础 URL
31
+ * @uniPlatform {
32
+ * "app": {
33
+ * "android": {
34
+ * "osVer": "5.0",
35
+ * "uniVer": "x",
36
+ * "unixVer": "4.85"
37
+ * },
38
+ * "ios": {
39
+ * "osVer": "12.0",
40
+ * "uniVer": "x",
41
+ * "unixVer": "4.85"
42
+ * }
43
+ * }
44
+ * }
45
+ */
46
+ baseURL ?: string | null,
47
+ /**
48
+ * 加载的页面内容类型,默认值为 "text/html"
49
+ * @defaultValue 'text/html'
50
+ * @uniPlatform {
51
+ * "app": {
52
+ * "android": {
53
+ * "osVer": "5.0",
54
+ * "uniVer": "x",
55
+ * "unixVer": "4.85"
56
+ * },
57
+ * "ios": {
58
+ * "osVer": "12.0",
59
+ * "uniVer": "x",
60
+ * "unixVer": "4.85"
61
+ * }
62
+ * }
63
+ * }
64
+ */
65
+ mimeType ?: string | null,
66
+ /**
67
+ * 页面内容的编码类型,默认值为 "utf-8"
68
+ * @defaultValue 'utf-8'
69
+ * @uniPlatform {
70
+ * "app": {
71
+ * "android": {
72
+ * "osVer": "5.0",
73
+ * "uniVer": "x",
74
+ * "unixVer": "4.85"
75
+ * },
76
+ * "ios": {
77
+ * "osVer": "12.0",
78
+ * "uniVer": "x",
79
+ * "unixVer": "4.85"
80
+ * }
81
+ * }
82
+ * }
83
+ */
84
+ encoding ?: string | null
85
+ }
86
+
87
+ export interface WebviewContext {
88
+ /**
89
+ * 前进到 web-view 组件网页加载历史的下一页,如果不存在下一页则没有任何效果
90
+ * @uniPlatform {
91
+ * "app": {
92
+ * "android": {
93
+ * "osVer": "5.0",
94
+ * "uniVer": "x",
95
+ * "unixVer": "4.85"
96
+ * },
97
+ * "ios": {
98
+ * "osVer": "12.0",
99
+ * "uniVer": "x",
100
+ * "unixVer": "4.85"
101
+ * }
102
+ * }
103
+ * }
104
+ */
105
+ forward() : void
106
+ /**
107
+ * 后退到 web-view 组件网页加载历史的上一页,如果不存在上一页则没有任何效果
108
+ * @uniPlatform {
109
+ * "app": {
110
+ * "android": {
111
+ * "osVer": "5.0",
112
+ * "uniVer": "x",
113
+ * "unixVer": "4.85"
114
+ * },
115
+ * "ios": {
116
+ * "osVer": "12.0",
117
+ * "uniVer": "x",
118
+ * "unixVer": "4.85"
119
+ * }
120
+ * }
121
+ * }
122
+ */
123
+ back() : void
124
+ /**
125
+ * 重新加载 web-view 组件当前页面
126
+ * @uniPlatform {
127
+ * "app": {
128
+ * "android": {
129
+ * "osVer": "5.0",
130
+ * "uniVer": "x",
131
+ * "unixVer": "4.85"
132
+ * },
133
+ * "ios": {
134
+ * "osVer": "12.0",
135
+ * "uniVer": "x",
136
+ * "unixVer": "4.85"
137
+ * }
138
+ * }
139
+ * }
140
+ */
141
+ reload() : void
142
+ /**
143
+ * 停止加载 web-view 组件当前网页,该方法不能阻止已经加载的 html 文档,但是能够阻止未完成的图片及延迟加载的资源
144
+ * @uniPlatform {
145
+ * "app": {
146
+ * "android": {
147
+ * "osVer": "5.0",
148
+ * "uniVer": "x",
149
+ * "unixVer": "4.85"
150
+ * },
151
+ * "ios": {
152
+ * "osVer": "12.0",
153
+ * "uniVer": "x",
154
+ * "unixVer": "4.85"
155
+ * }
156
+ * }
157
+ * }
158
+ */
159
+ stop() : void
160
+ /**
161
+ * 在网页中执行指定的js脚本,在 uvue 页面中可通过此方法向 web-view 组件加载的页面发送数据
162
+ * @uniPlatform {
163
+ * "app": {
164
+ * "android": {
165
+ * "osVer": "5.0",
166
+ * "uniVer": "x",
167
+ * "unixVer": "4.85"
168
+ * },
169
+ * "ios": {
170
+ * "osVer": "12.0",
171
+ * "uniVer": "x",
172
+ * "unixVer": "4.85"
173
+ * }
174
+ * }
175
+ * }
176
+ */
177
+ evalJS(js : string) : void
178
+ /**
179
+ * 获取webview内容高度
180
+ * @uniPlatform {
181
+ * "app": {
182
+ * "android": {
183
+ * "osVer": "5.0",
184
+ * "uniVer": "x",
185
+ * "unixVer": "4.85"
186
+ * },
187
+ * "ios": {
188
+ * "osVer": "12.0",
189
+ * "uniVer": "x",
190
+ * "unixVer": "4.85"
191
+ * }
192
+ * }
193
+ * }
194
+ */
195
+ getContentHeight() : number
196
+ /**
197
+ * 在 web-view 组件中加载页面内容
198
+ * @uniPlatform {
199
+ * "app": {
200
+ * "android": {
201
+ * "osVer": "5.0",
202
+ * "uniVer": "x",
203
+ * "unixVer": "4.85"
204
+ * },
205
+ * "ios": {
206
+ * "osVer": "12.0",
207
+ * "uniVer": "x",
208
+ * "unixVer": "4.85"
209
+ * }
210
+ * }
211
+ * }
212
+ */
213
+ loadData(options : UniWebviewContextLoadDataOptions) : void
214
+ }
215
+
216
+ export type CreateWebviewContext = (webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null) => WebviewContext | null;
217
+
218
+ export interface Uni {
219
+ /**
220
+ * 创建 web-view 上下文 WebViewContext 对象。
221
+ *
222
+ * @uniPlatform {
223
+ * "app": {
224
+ * "android": {
225
+ * "osVer": "4.4",
226
+ * "uniVer": "x",
227
+ * "unixVer": "4.61"
228
+ * },
229
+ * "ios": {
230
+ * "osVer": "12.0",
231
+ * "uniVer": "x",
232
+ * "unixVer": "4.61"
233
+ * },
234
+ * "harmony": {
235
+ * "osVer": "x",
236
+ * "uniVer": "x",
237
+ * "unixVer": "x"
238
+ * }
239
+ * }
240
+ * }
241
+ */
242
+ createWebviewContext : CreateWebviewContext
243
+ }
@@ -0,0 +1,31 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ UniWebViewMessageEventDetail as UniWebViewMessageEventDetailOrigin,
4
+ UniWebViewMessageEvent as UniWebViewMessageEventOrigin,
5
+ UniWebViewLoadEventDetail as UniWebViewLoadEventDetailOrigin,
6
+ UniWebViewLoadEvent as UniWebViewLoadEventOrigin,
7
+ UniWebViewLoadingEventDetail as UniWebViewLoadingEventDetailOrigin,
8
+ UniWebViewLoadingEvent as UniWebViewLoadingEventOrigin,
9
+ UniWebViewDownloadEventDetail as UniWebViewDownloadEventDetailOrigin,
10
+ UniWebViewDownloadEvent as UniWebViewDownloadEventOrigin,
11
+ UniWebViewContentHeightChangeEventDetail as UniWebViewContentHeightChangeEventDetailOrigin,
12
+ UniWebViewContentHeightChangeEvent as UniWebViewContentHeightChangeEventOrigin,
13
+ UniWebViewErrorEventDetail as UniWebViewErrorEventDetailOrigin,
14
+ UniWebViewErrorEvent as UniWebViewErrorEventOrigin,
15
+ } from './interface'
16
+
17
+ declare global {
18
+ type UniWebViewMessageEventDetail = UniWebViewMessageEventDetailOrigin
19
+ type UniWebViewMessageEvent = UniWebViewMessageEventOrigin
20
+ type UniWebViewLoadEventDetail = UniWebViewLoadEventDetailOrigin
21
+ type UniWebViewLoadEvent = UniWebViewLoadEventOrigin
22
+ type UniWebViewLoadingEventDetail = UniWebViewLoadingEventDetailOrigin
23
+ type UniWebViewLoadingEvent = UniWebViewLoadingEventOrigin
24
+ type UniWebViewDownloadEventDetail = UniWebViewDownloadEventDetailOrigin
25
+ type UniWebViewDownloadEvent = UniWebViewDownloadEventOrigin
26
+ type UniWebViewContentHeightChangeEventDetail = UniWebViewContentHeightChangeEventDetailOrigin
27
+ type UniWebViewContentHeightChangeEvent = UniWebViewContentHeightChangeEventOrigin
28
+ type UniWebViewErrorEventDetail = UniWebViewErrorEventDetailOrigin
29
+ type UniWebViewErrorEvent = UniWebViewErrorEventOrigin
30
+ }
31
+
@@ -0,0 +1,16 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ UniWebViewMessageEventDetail,
4
+ UniWebViewMessageEvent,
5
+ UniWebViewLoadEventDetail,
6
+ UniWebViewLoadEvent,
7
+ UniWebViewLoadingEventDetail,
8
+ UniWebViewLoadingEvent,
9
+ UniWebViewDownloadEventDetail,
10
+ UniWebViewDownloadEvent,
11
+ UniWebViewContentHeightChangeEventDetail,
12
+ UniWebViewContentHeightChangeEvent,
13
+ UniWebViewErrorEventDetail,
14
+ UniWebViewErrorEvent,
15
+ } from './interface'
16
+
@@ -0,0 +1,46 @@
1
+ declare class UniWebViewBaseEvent<T> extends UniCustomEvent<T> {
2
+ constructor(target: UniElement, type: string, detail?: T);
3
+ }
4
+ export type UniWebViewMessageEventDetail = {
5
+ data: UTSJSONObject[];
6
+ };
7
+ export class UniWebViewMessageEvent extends UniWebViewBaseEvent<UniWebViewMessageEventDetail> {
8
+ }
9
+ export type UniWebViewLoadEventDetail = {
10
+ url: string;
11
+ src: string;
12
+ };
13
+ export class UniWebViewLoadEvent extends UniWebViewBaseEvent<UniWebViewLoadEventDetail> {
14
+ }
15
+ export type UniWebViewLoadingEventDetail = {
16
+ url: string;
17
+ src: string;
18
+ };
19
+ export class UniWebViewLoadingEvent extends UniWebViewBaseEvent<UniWebViewLoadingEventDetail> {
20
+ }
21
+ export type UniWebViewDownloadEventDetail = {
22
+ url: string;
23
+ userAgent: string;
24
+ contentDisposition: string;
25
+ mimetype: string;
26
+ contentLength: number;
27
+ };
28
+ export class UniWebViewDownloadEvent extends UniWebViewBaseEvent<UniWebViewDownloadEventDetail> {
29
+ }
30
+ export type UniWebViewContentHeightChangeEventDetail = {
31
+ height: number;
32
+ };
33
+ export class UniWebViewContentHeightChangeEvent extends UniWebViewBaseEvent<UniWebViewContentHeightChangeEventDetail> {
34
+ }
35
+ export type UniWebViewErrorEventDetail = {
36
+ errSubject: string;
37
+ errCode: number;
38
+ errMsg: string;
39
+ url: string;
40
+ fullUrl: string;
41
+ src: string;
42
+ };
43
+ export class UniWebViewErrorEvent extends UniWebViewBaseEvent<UniWebViewErrorEventDetail> {
44
+ constructor(target: UniElement, type: string, detail: UniWebViewErrorEventDetail);
45
+ }
46
+ export {};
@@ -1,23 +0,0 @@
1
- import {
2
- UniCameraStopEventDetail as UniCameraStopEventDetailOrigin,
3
- UniCameraStopEvent as uniCameraStopEventOrigin,
4
- UniCameraErrorEventDetail as UniCameraErrorEventDetailOrigin,
5
- UniCameraErrorEvent as UniCameraErrorEventOrigin,
6
- UniCameraInitDoneEventDetail as UniCameraInitDoneEventDetailOrigin,
7
- UniCameraInitDoneEvent as UniCameraInitDoneEventOrigin,
8
- UniCameraScanCodeEventDetail as UniCameraScanCodeEventDetailOrigin,
9
- UniCameraScanCodeEvent as UniCameraScanCodeEventOrigin
10
- } from './uni-camera'
11
-
12
-
13
-
14
- declare global {
15
- type UniCameraStopEventDetail = UniCameraStopEventDetailOrigin
16
- type UniCameraStopEvent = uniCameraStopEventOrigin
17
- type UniCameraErrorEventDetail = UniCameraErrorEventDetailOrigin
18
- type UniCameraErrorEvent = UniCameraErrorEventOrigin
19
- type UniCameraInitDoneEventDetail = UniCameraInitDoneEventDetailOrigin
20
- type UniCameraInitDoneEvent = UniCameraInitDoneEventOrigin
21
- type UniCameraScanCodeEventDetail = UniCameraScanCodeEventDetailOrigin
22
- type UniCameraScanCodeEvent = UniCameraScanCodeEventOrigin
23
- }
@@ -1,35 +0,0 @@
1
-
2
- export declare type UniCameraStopEventDetail = {
3
- errorCause?: string | null
4
- }
5
- export declare class UniCameraStopEvent extends UniCustomEvent<UniCameraStopEventDetail> {
6
- constructor(type: string, detail: UniCameraStopEventDetail)
7
- }
8
-
9
-
10
- export declare type UniCameraErrorEventDetail = {
11
- msg?: string | null
12
- }
13
- export declare class UniCameraErrorEvent extends UniCustomEvent<UniCameraErrorEventDetail> {
14
- constructor(type: string, detail: UniCameraErrorEventDetail)
15
- }
16
-
17
-
18
- export declare type UniCameraInitDoneEventDetail = {
19
- maxZoom?: number | null
20
- }
21
- export declare class UniCameraInitDoneEvent extends UniCustomEvent<UniCameraInitDoneEventDetail> {
22
- constructor(type: string, detail: UniCameraInitDoneEventDetail)
23
- }
24
-
25
- export declare type UniCameraScanCodeEventDetail = {
26
- type?: string | null;
27
- result?: string | null;
28
- rawData?: string | null;
29
- charSet?: string | null;
30
- scanArea?: Array<number> | null;
31
- }
32
-
33
- export declare class UniCameraScanCodeEvent extends UniCustomEvent<UniCameraScanCodeEventDetail> {
34
- constructor(type : string, detail : UniCameraScanCodeEventDetail)
35
- }
@@ -1,63 +0,0 @@
1
- export declare type UniMapUpdatedEventDetail = { }
2
- export declare class UniMapUpdatedEvent extends UniCustomEvent<UniMapUpdatedEventDetail> {
3
- constructor(type: string, detail: UniMapUpdatedEventDetail)
4
- }
5
-
6
- export declare type UniMapTapEventDetail = {
7
- latitude: number | null
8
- longitude: number | null
9
- }
10
- export declare class UniMapTapEvent extends UniPointerEvent {
11
- detail ?: UniMapTapEventDetail | null
12
- constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
13
- }
14
-
15
- export declare type UniMapRegionChangeEventDetail = {
16
- skew: number | null
17
- rotate: number | null
18
- }
19
- export declare class UniMapRegionChangeEvent extends UniCustomEvent<UniMapRegionChangeEventDetail | null> {
20
- causedBy?: string | null
21
- constructor(type: string, detail: UniMapRegionChangeEventDetail | null)
22
- }
23
-
24
- export declare type UniMapMarkerTapEventDetail = {
25
- markerId: number | null
26
- }
27
- export declare class UniMapMarkerTapEvent extends UniPointerEvent {
28
- detail ?: UniMapMarkerTapEventDetail | null
29
- constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
30
- }
31
-
32
- export declare type UniMapControlTapEventDetail = {
33
- controlId: number | null
34
- }
35
- export declare class UniMapControlTapEvent extends UniCustomEvent<UniMapControlTapEventDetail> {
36
- constructor(type: string, detail: UniMapControlTapEventDetail)
37
- }
38
-
39
- export declare type UniMapAnchorPointTapEventDetail = {
40
- latitude: number | null
41
- longitude: number | null
42
- }
43
- export declare class UniMapAnchorPointTapEvent extends UniPointerEvent {
44
- detail ?: UniMapAnchorPointTapEventDetail | null
45
- constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
46
- }
47
-
48
- export declare type UniMapPoiTapEventDetail = {
49
- latitude: number | null
50
- longitude: number | null
51
- name: string | null
52
- }
53
- export declare class UniMapPoiTapEvent extends UniPointerEvent {
54
- detail ?: UniMapPoiTapEventDetail | null
55
- constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
56
- }
57
-
58
- export declare type UniMapCalloutTapEventDetail = {
59
- markerId : number | null;
60
- }
61
- export declare class UniMapCalloutTapEvent extends UniCustomEvent<UniMapCalloutTapEventDetail> {
62
- constructor(type : string, detail : UniMapCalloutTapEventDetail)
63
- }