@dcloudio/uni-app-x 0.7.39 → 0.7.40
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.
- package/package.json +9 -7
- package/types/UniPage.d.ts +168 -22
- package/types/app.d.ts +31 -31
- package/types/native/CSSStyleDeclaration.d.ts +16 -2
- package/types/native/DOMRect.d.ts +430 -10
- package/types/native/DrawableContext.d.ts +1137 -45
- package/types/native/IUniElement.d.ts +1875 -93
- package/types/native/UniNativePage.d.ts +94 -0
- package/types/native/UniResizeObserver.d.ts +215 -5
- package/types/native/UniSafeArea.d.ts +185 -0
- package/types/native/UniVideoElement.d.ts +432 -0
- package/types/native/global.d.ts +7 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/uni-map-tencent-map.d.ts +12 -8
- package/types/uni/uts-plugin-api/global.d.ts +62 -61
- package/types/uni/uts-plugin-api/index.d.ts +62 -61
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
- package/types/uni/uts-plugin-biz/global.d.ts +6 -5
- package/types/uni/uts-plugin-biz/index.d.ts +6 -5
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
- package/types/uni/uts-plugin-extend/global.d.ts +0 -4
- package/types/uni/uts-plugin-extend/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
|
@@ -512,71 +512,72 @@ export interface Uni {
|
|
|
512
512
|
* @tutorial https://uniapp.dcloud.io/api/system/theme.html#onthemechange
|
|
513
513
|
* @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#onthemechange
|
|
514
514
|
* @uniPlatform {
|
|
515
|
-
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
*
|
|
521
|
-
*
|
|
522
|
-
*
|
|
523
|
-
*
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
*
|
|
527
|
-
*
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
*
|
|
536
|
-
*
|
|
537
|
-
*
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
*
|
|
545
|
-
*
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
*
|
|
553
|
-
*
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
*
|
|
557
|
-
*
|
|
558
|
-
*
|
|
559
|
-
*
|
|
560
|
-
*
|
|
561
|
-
*
|
|
562
|
-
*
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
*
|
|
569
|
-
*
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
*
|
|
577
|
-
*
|
|
515
|
+
* "app": {
|
|
516
|
+
* "android": {
|
|
517
|
+
* "osVer": "5.0",
|
|
518
|
+
* "uniVer": "3.6.9",
|
|
519
|
+
* "unixVer": "x"
|
|
520
|
+
* },
|
|
521
|
+
* "ios": {
|
|
522
|
+
* "osVer": "9.0",
|
|
523
|
+
* "uniVer": "2.6.5",
|
|
524
|
+
* "unixVer": "x"
|
|
525
|
+
* },
|
|
526
|
+
* "harmony": {
|
|
527
|
+
* "osVer": "x",
|
|
528
|
+
* "uniVer": "x",
|
|
529
|
+
* "unixVer": "x"
|
|
530
|
+
* }
|
|
531
|
+
* },
|
|
532
|
+
* "mp": {
|
|
533
|
+
* "weixin": {
|
|
534
|
+
* "hostVer": "2.11.0",
|
|
535
|
+
* "uniVer": "2.11.0",
|
|
536
|
+
* "unixVer": "4.41"
|
|
537
|
+
* },
|
|
538
|
+
* "alipay": {
|
|
539
|
+
* "hostVer": "x",
|
|
540
|
+
* "uniVer": "x",
|
|
541
|
+
* "unixVer": "x"
|
|
542
|
+
* },
|
|
543
|
+
* "baidu": {
|
|
544
|
+
* "hostVer": "x",
|
|
545
|
+
* "uniVer": "x",
|
|
546
|
+
* "unixVer": "x"
|
|
547
|
+
* },
|
|
548
|
+
* "toutiao": {
|
|
549
|
+
* "hostVer": "x",
|
|
550
|
+
* "uniVer": "x",
|
|
551
|
+
* "unixVer": "x"
|
|
552
|
+
* },
|
|
553
|
+
* "lark": {
|
|
554
|
+
* "hostVer": "√",
|
|
555
|
+
* "uniVer": "5.3.0",
|
|
556
|
+
* "unixVer": "x"
|
|
557
|
+
* },
|
|
558
|
+
* "qq": {
|
|
559
|
+
* "hostVer": "x",
|
|
560
|
+
* "uniVer": "x",
|
|
561
|
+
* "unixVer": "x"
|
|
562
|
+
* },
|
|
563
|
+
* "kuaishou": {
|
|
564
|
+
* "hostVer": "x",
|
|
565
|
+
* "uniVer": "x",
|
|
566
|
+
* "unixVer": "x"
|
|
567
|
+
* },
|
|
568
|
+
* "jd": {
|
|
569
|
+
* "hostVer": "x",
|
|
570
|
+
* "uniVer": "x",
|
|
571
|
+
* "unixVer": "x"
|
|
572
|
+
* }
|
|
573
|
+
* },
|
|
574
|
+
* "web": {
|
|
575
|
+
* "uniVer": "3.6.9",
|
|
576
|
+
* "unixVer": "4.0"
|
|
577
|
+
* }
|
|
578
578
|
* }
|
|
579
|
-
|
|
579
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onThemeChange.html
|
|
580
|
+
*/
|
|
580
581
|
onThemeChange(callback: OnThemeChangeCallback): void;
|
|
581
582
|
/**
|
|
582
583
|
* 取消监听系统主题状态变化。
|
|
@@ -584,71 +585,72 @@ export interface Uni {
|
|
|
584
585
|
* @tutorial https://uniapp.dcloud.io/api/system/theme.html#offthemechange
|
|
585
586
|
* @tutorial-uni-app https://uniapp.dcloud.io/api/system/theme.html#offthemechange
|
|
586
587
|
* @uniPlatform {
|
|
587
|
-
*
|
|
588
|
-
*
|
|
589
|
-
*
|
|
590
|
-
*
|
|
591
|
-
*
|
|
592
|
-
*
|
|
593
|
-
*
|
|
594
|
-
*
|
|
595
|
-
*
|
|
596
|
-
*
|
|
597
|
-
*
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
*
|
|
609
|
-
*
|
|
610
|
-
*
|
|
611
|
-
*
|
|
612
|
-
*
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
*
|
|
616
|
-
*
|
|
617
|
-
*
|
|
618
|
-
*
|
|
619
|
-
*
|
|
620
|
-
*
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
*
|
|
625
|
-
*
|
|
626
|
-
*
|
|
627
|
-
*
|
|
628
|
-
*
|
|
629
|
-
*
|
|
630
|
-
*
|
|
631
|
-
*
|
|
632
|
-
*
|
|
633
|
-
*
|
|
634
|
-
*
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
*
|
|
638
|
-
*
|
|
639
|
-
*
|
|
640
|
-
*
|
|
641
|
-
*
|
|
642
|
-
*
|
|
643
|
-
*
|
|
644
|
-
*
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
*
|
|
588
|
+
* "app": {
|
|
589
|
+
* "android": {
|
|
590
|
+
* "osVer": "5.0",
|
|
591
|
+
* "uniVer": "3.6.9",
|
|
592
|
+
* "unixVer": "x"
|
|
593
|
+
* },
|
|
594
|
+
* "ios": {
|
|
595
|
+
* "osVer": "9.0",
|
|
596
|
+
* "uniVer": "2.6.5",
|
|
597
|
+
* "unixVer": "x"
|
|
598
|
+
* },
|
|
599
|
+
* "harmony": {
|
|
600
|
+
* "osVer": "x",
|
|
601
|
+
* "uniVer": "x",
|
|
602
|
+
* "unixVer": "x"
|
|
603
|
+
* }
|
|
604
|
+
* },
|
|
605
|
+
* "mp": {
|
|
606
|
+
* "weixin": {
|
|
607
|
+
* "hostVer": "2.11.0",
|
|
608
|
+
* "uniVer": "2.11.0",
|
|
609
|
+
* "unixVer": "4.41"
|
|
610
|
+
* },
|
|
611
|
+
* "alipay": {
|
|
612
|
+
* "hostVer": "x",
|
|
613
|
+
* "uniVer": "x",
|
|
614
|
+
* "unixVer": "x"
|
|
615
|
+
* },
|
|
616
|
+
* "baidu": {
|
|
617
|
+
* "hostVer": "x",
|
|
618
|
+
* "uniVer": "x",
|
|
619
|
+
* "unixVer": "x"
|
|
620
|
+
* },
|
|
621
|
+
* "toutiao": {
|
|
622
|
+
* "hostVer": "x",
|
|
623
|
+
* "uniVer": "x",
|
|
624
|
+
* "unixVer": "x"
|
|
625
|
+
* },
|
|
626
|
+
* "lark": {
|
|
627
|
+
* "hostVer": "√",
|
|
628
|
+
* "uniVer": "5.3.0",
|
|
629
|
+
* "unixVer": "x"
|
|
630
|
+
* },
|
|
631
|
+
* "qq": {
|
|
632
|
+
* "hostVer": "x",
|
|
633
|
+
* "uniVer": "x",
|
|
634
|
+
* "unixVer": "x"
|
|
635
|
+
* },
|
|
636
|
+
* "kuaishou": {
|
|
637
|
+
* "hostVer": "x",
|
|
638
|
+
* "uniVer": "x",
|
|
639
|
+
* "unixVer": "x"
|
|
640
|
+
* },
|
|
641
|
+
* "jd": {
|
|
642
|
+
* "hostVer": "x",
|
|
643
|
+
* "uniVer": "x",
|
|
644
|
+
* "unixVer": "x"
|
|
645
|
+
* }
|
|
646
|
+
* },
|
|
647
|
+
* "web": {
|
|
648
|
+
* "uniVer": "3.6.9",
|
|
649
|
+
* "unixVer": "4.0"
|
|
650
|
+
* }
|
|
650
651
|
* }
|
|
651
|
-
|
|
652
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offThemeChange.html
|
|
653
|
+
*/
|
|
652
654
|
offThemeChange(callback: OnThemeChangeCallback): void;
|
|
653
655
|
}
|
|
654
656
|
|
|
@@ -1051,7 +1053,51 @@ export type OnHostThemeChangeCallback = (result: OnHostThemeChangeCallbackResult
|
|
|
1051
1053
|
export type OnThemeChangeCallbackResult = {
|
|
1052
1054
|
/**
|
|
1053
1055
|
* 主题名称
|
|
1054
|
-
|
|
1056
|
+
* @uniPlatform {
|
|
1057
|
+
* "mp": {
|
|
1058
|
+
* "weixin": {
|
|
1059
|
+
* "hostVer": "√",
|
|
1060
|
+
* "uniVer": "√",
|
|
1061
|
+
* "unixVer": "4.41"
|
|
1062
|
+
* },
|
|
1063
|
+
* "alipay": {
|
|
1064
|
+
* "hostVer": "-",
|
|
1065
|
+
* "uniVer": "-",
|
|
1066
|
+
* "unixVer": "-"
|
|
1067
|
+
* },
|
|
1068
|
+
* "baidu": {
|
|
1069
|
+
* "hostVer": "-",
|
|
1070
|
+
* "uniVer": "-",
|
|
1071
|
+
* "unixVer": "-"
|
|
1072
|
+
* },
|
|
1073
|
+
* "toutiao": {
|
|
1074
|
+
* "hostVer": "-",
|
|
1075
|
+
* "uniVer": "-",
|
|
1076
|
+
* "unixVer": "-"
|
|
1077
|
+
* },
|
|
1078
|
+
* "lark": {
|
|
1079
|
+
* "hostVer": "-",
|
|
1080
|
+
* "uniVer": "-",
|
|
1081
|
+
* "unixVer": "-"
|
|
1082
|
+
* },
|
|
1083
|
+
* "qq": {
|
|
1084
|
+
* "hostVer": "-",
|
|
1085
|
+
* "uniVer": "-",
|
|
1086
|
+
* "unixVer": "-"
|
|
1087
|
+
* },
|
|
1088
|
+
* "kuaishou": {
|
|
1089
|
+
* "hostVer": "-",
|
|
1090
|
+
* "uniVer": "-",
|
|
1091
|
+
* "unixVer": "-"
|
|
1092
|
+
* },
|
|
1093
|
+
* "jd": {
|
|
1094
|
+
* "hostVer": "-",
|
|
1095
|
+
* "uniVer": "-",
|
|
1096
|
+
* "unixVer": "-"
|
|
1097
|
+
* }
|
|
1098
|
+
* }
|
|
1099
|
+
* }
|
|
1100
|
+
*/
|
|
1055
1101
|
theme: 'dark' | 'light'
|
|
1056
1102
|
};
|
|
1057
|
-
export type OnThemeChangeCallback = (result:
|
|
1103
|
+
export type OnThemeChangeCallback = (result: OnThemeChangeCallbackResult) => void;
|