@dcloudio/uni-app-x 0.7.40 → 0.7.42

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 (30) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +3 -39
  3. package/types/app.d.ts +151 -147
  4. package/types/native/Animation.d.ts +578 -0
  5. package/types/native/AnimationPlaybackEvent.d.ts +12 -0
  6. package/types/native/CSSStyleDeclaration.d.ts +40 -7
  7. package/types/native/CanvasRenderingContext2D.d.ts +52 -2
  8. package/types/native/UniElement.d.ts +2 -0
  9. package/types/native/UniNativePage.d.ts +1 -19
  10. package/types/native/UniSafeAreaInsets.d.ts +74 -0
  11. package/types/native/global.d.ts +6 -0
  12. package/types/native/index.d.ts +3 -1
  13. package/types/uni/uni-map-tencent-global.d.ts +5 -1
  14. package/types/uni/uni-map-tencent-map.d.ts +7 -0
  15. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  16. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  17. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -0
  18. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -0
  19. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +405 -0
  20. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +105 -104
  21. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +2 -0
  22. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +1 -0
  23. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -5
  24. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +0 -22
  25. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +0 -11
  26. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +0 -729
  27. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
  28. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +1 -1
  29. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +268 -20
  30. package/types/native/UniSafeArea.d.ts +0 -185
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.40",
3
+ "version": "0.7.42",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import { UniSafeArea, UniSafeAreaInsets } from './native/UniSafeArea'
1
+ import { UniSafeAreaInsets } from './native/UniSafeAreaInsets'
2
2
 
3
3
  export interface UniPage {
4
4
  /**
@@ -110,7 +110,7 @@ export interface UniPage {
110
110
  * }
111
111
  * }
112
112
  */
113
- vm: ComponentPublicInstance | null
113
+ vm?: ComponentPublicInstance | null
114
114
  /**
115
115
  * UniPage vue 实例对象
116
116
  * @deprecated 已废弃,仅为了向下兼容保留
@@ -147,7 +147,7 @@ export interface UniPage {
147
147
  * }
148
148
  * }
149
149
  */
150
- $vm: ComponentPublicInstance | null
150
+ $vm?: ComponentPublicInstance | null
151
151
  /**
152
152
  * UniPage 窗口宽度,单位为px
153
153
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
@@ -220,42 +220,6 @@ export interface UniPage {
220
220
  * }
221
221
  */
222
222
  innerHeight: number
223
- /**
224
- * UniPage 安全区域在屏幕中的位置信息
225
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
226
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
227
- * @uniPlatform {
228
- * "app": {
229
- * "android": {
230
- * "osVer": "5.0",
231
- * "uniVer": "x",
232
- * "unixVer": "4.51"
233
- * },
234
- * "ios": {
235
- * "osVer": "x",
236
- * "uniVer": "x",
237
- * "unixVer": "4.51"
238
- * },
239
- * "harmony": {
240
- * "osVer": "x",
241
- * "uniVer": "x",
242
- * "unixVer": "x"
243
- * }
244
- * },
245
- * "mp": {
246
- * "weixin": {
247
- * "hostVer": "√",
248
- * "uniVer": "x",
249
- * "unixVer": "x"
250
- * },
251
- * },
252
- * "web": {
253
- * "uniVer": "x",
254
- * "unixVer": "4.51"
255
- * }
256
- * }
257
- */
258
- safeArea: UniSafeArea
259
223
  /**
260
224
  * UniPage 安全区域插入位置(与屏幕边界的距离)信息
261
225
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
package/types/app.d.ts CHANGED
@@ -720,6 +720,156 @@ type EditorCreateVueAppComponentX<D extends OptionsData = OptionsData, C extends
720
720
 
721
721
  type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create']>['$']
722
722
 
723
+ export interface UniApp {
724
+ /**
725
+ * App vue 实例对象
726
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
727
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
728
+ * @uniPlatform {
729
+ * "app": {
730
+ * "android": {
731
+ * "osVer": "5.0",
732
+ * "uniVer": "x",
733
+ * "unixVer": "4.31"
734
+ * },
735
+ * "ios": {
736
+ * "osVer": "x",
737
+ * "uniVer": "x",
738
+ * "unixVer": "4.31"
739
+ * },
740
+ * "harmony": {
741
+ * "osVer": "x",
742
+ * "uniVer": "x",
743
+ * "unixVer": "x"
744
+ * }
745
+ * },
746
+ * "mp": {
747
+ * "weixin": {
748
+ * "hostVer": "√",
749
+ * "uniVer": "x",
750
+ * "unixVer": "x"
751
+ * },
752
+ * },
753
+ * "web": {
754
+ * "uniVer": "x",
755
+ * "unixVer": "4.31"
756
+ * }
757
+ * }
758
+ */
759
+ vm?: ComponentPublicInstance | null,
760
+ /**
761
+ * App vue 实例对象
762
+ * @deprecated 已废弃,仅为了向下兼容保留
763
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
764
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
765
+ * @uniPlatform {
766
+ * "app": {
767
+ * "android": {
768
+ * "osVer": "5.0",
769
+ * "uniVer": "x",
770
+ * "unixVer": "4.31"
771
+ * },
772
+ * "ios": {
773
+ * "osVer": "x",
774
+ * "uniVer": "x",
775
+ * "unixVer": "4.31"
776
+ * },
777
+ * "harmony": {
778
+ * "osVer": "x",
779
+ * "uniVer": "x",
780
+ * "unixVer": "x"
781
+ * }
782
+ * },
783
+ * "mp": {
784
+ * "weixin": {
785
+ * "hostVer": "√",
786
+ * "uniVer": "x",
787
+ * "unixVer": "x"
788
+ * },
789
+ * },
790
+ * "web": {
791
+ * "uniVer": "x",
792
+ * "unixVer": "4.31"
793
+ * }
794
+ * }
795
+ */
796
+ $vm?: ComponentPublicInstance | null,
797
+ /**
798
+ * 全局对象
799
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
800
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
801
+ * @uniPlatform {
802
+ * "app": {
803
+ * "android": {
804
+ * "osVer": "5.0",
805
+ * "uniVer": "x",
806
+ * "unixVer": "4.31"
807
+ * },
808
+ * "ios": {
809
+ * "osVer": "x",
810
+ * "uniVer": "x",
811
+ * "unixVer": "4.31"
812
+ * },
813
+ * "harmony": {
814
+ * "osVer": "x",
815
+ * "uniVer": "x",
816
+ * "unixVer": "x"
817
+ * }
818
+ * },
819
+ * "mp": {
820
+ * "weixin": {
821
+ * "hostVer": "√",
822
+ * "uniVer": "x",
823
+ * "unixVer": "x"
824
+ * },
825
+ * },
826
+ * "web": {
827
+ * "uniVer": "x",
828
+ * "unixVer": "4.31"
829
+ * }
830
+ * }
831
+ */
832
+ globalData: GlobalData,
833
+ /**
834
+ * 获取 Android 应用 Application 上下文
835
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
836
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
837
+ * @uniPlatform {
838
+ * "app": {
839
+ * "android": {
840
+ * "osVer": "5.0",
841
+ * "uniVer": "x",
842
+ * "unixVer": "4.31"
843
+ * },
844
+ * "ios": {
845
+ * "osVer": "x",
846
+ * "uniVer": "x",
847
+ * "unixVer": "x"
848
+ * },
849
+ * "harmony": {
850
+ * "osVer": "x",
851
+ * "uniVer": "x",
852
+ * "unixVer": "x"
853
+ * }
854
+ * },
855
+ * "mp": {
856
+ * "weixin": {
857
+ * "hostVer": "√",
858
+ * "uniVer": "x",
859
+ * "unixVer": "x"
860
+ * },
861
+ * },
862
+ * "web": {
863
+ * "uniVer": "x",
864
+ * "unixVer": "x"
865
+ * }
866
+ * }
867
+ */
868
+ getAndroidApplication(): Application
869
+ }
870
+
871
+ type UniAppOrigin = UniApp
872
+
723
873
  declare global {
724
874
  export interface AppCreateVueAppComponentDefault {}
725
875
  /**
@@ -1027,153 +1177,7 @@ declare global {
1027
1177
  isEntryPage: boolean;
1028
1178
  }
1029
1179
 
1030
- export interface UniApp {
1031
- /**
1032
- * App vue 实例对象
1033
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1034
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1035
- * @uniPlatform {
1036
- * "app": {
1037
- * "android": {
1038
- * "osVer": "5.0",
1039
- * "uniVer": "x",
1040
- * "unixVer": "4.31"
1041
- * },
1042
- * "ios": {
1043
- * "osVer": "x",
1044
- * "uniVer": "x",
1045
- * "unixVer": "4.31"
1046
- * },
1047
- * "harmony": {
1048
- * "osVer": "x",
1049
- * "uniVer": "x",
1050
- * "unixVer": "x"
1051
- * }
1052
- * },
1053
- * "mp": {
1054
- * "weixin": {
1055
- * "hostVer": "√",
1056
- * "uniVer": "x",
1057
- * "unixVer": "x"
1058
- * },
1059
- * },
1060
- * "web": {
1061
- * "uniVer": "x",
1062
- * "unixVer": "4.31"
1063
- * }
1064
- * }
1065
- */
1066
- vm: ComponentPublicInstance,
1067
- /**
1068
- * App vue 实例对象
1069
- * @deprecated 已废弃,仅为了向下兼容保留
1070
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1071
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
1072
- * @uniPlatform {
1073
- * "app": {
1074
- * "android": {
1075
- * "osVer": "5.0",
1076
- * "uniVer": "x",
1077
- * "unixVer": "4.31"
1078
- * },
1079
- * "ios": {
1080
- * "osVer": "x",
1081
- * "uniVer": "x",
1082
- * "unixVer": "4.31"
1083
- * },
1084
- * "harmony": {
1085
- * "osVer": "x",
1086
- * "uniVer": "x",
1087
- * "unixVer": "x"
1088
- * }
1089
- * },
1090
- * "mp": {
1091
- * "weixin": {
1092
- * "hostVer": "√",
1093
- * "uniVer": "x",
1094
- * "unixVer": "x"
1095
- * },
1096
- * },
1097
- * "web": {
1098
- * "uniVer": "x",
1099
- * "unixVer": "4.31"
1100
- * }
1101
- * }
1102
- */
1103
- $vm: ComponentPublicInstance,
1104
- /**
1105
- * 全局对象
1106
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
1107
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
1108
- * @uniPlatform {
1109
- * "app": {
1110
- * "android": {
1111
- * "osVer": "5.0",
1112
- * "uniVer": "x",
1113
- * "unixVer": "4.31"
1114
- * },
1115
- * "ios": {
1116
- * "osVer": "x",
1117
- * "uniVer": "x",
1118
- * "unixVer": "4.31"
1119
- * },
1120
- * "harmony": {
1121
- * "osVer": "x",
1122
- * "uniVer": "x",
1123
- * "unixVer": "x"
1124
- * }
1125
- * },
1126
- * "mp": {
1127
- * "weixin": {
1128
- * "hostVer": "√",
1129
- * "uniVer": "x",
1130
- * "unixVer": "x"
1131
- * },
1132
- * },
1133
- * "web": {
1134
- * "uniVer": "x",
1135
- * "unixVer": "4.31"
1136
- * }
1137
- * }
1138
- */
1139
- globalData: GlobalData,
1140
- /**
1141
- * 获取 Android 应用 Application 上下文
1142
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
1143
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
1144
- * @uniPlatform {
1145
- * "app": {
1146
- * "android": {
1147
- * "osVer": "5.0",
1148
- * "uniVer": "x",
1149
- * "unixVer": "4.31"
1150
- * },
1151
- * "ios": {
1152
- * "osVer": "x",
1153
- * "uniVer": "x",
1154
- * "unixVer": "x"
1155
- * },
1156
- * "harmony": {
1157
- * "osVer": "x",
1158
- * "uniVer": "x",
1159
- * "unixVer": "x"
1160
- * }
1161
- * },
1162
- * "mp": {
1163
- * "weixin": {
1164
- * "hostVer": "√",
1165
- * "uniVer": "x",
1166
- * "unixVer": "x"
1167
- * },
1168
- * },
1169
- * "web": {
1170
- * "uniVer": "x",
1171
- * "unixVer": "x"
1172
- * }
1173
- * }
1174
- */
1175
- getAndroidApplication(): Application
1176
- }
1180
+ type UniApp = UniAppOrigin
1177
1181
  }
1178
1182
 
1179
1183
  type DefineAppX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = DefineApp<D, C, M, I, II> & UniAppOptions<G>