@dcloudio/uni-app-x 0.7.117 → 0.7.119
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 +1 -1
- package/types/dom2-internal/sharedData.d.ts +20 -18
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +56 -56
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +198 -1087
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +15 -15
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +56 -56
- package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +1087 -198
- package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +15 -15
package/package.json
CHANGED
|
@@ -365,7 +365,7 @@ declare global {
|
|
|
365
365
|
* - 初始化 flag group
|
|
366
366
|
* - 调试 / 诊断 / 宿主校验
|
|
367
367
|
*/
|
|
368
|
-
interface
|
|
368
|
+
interface UniDynamicSharedDataClassDefinition {
|
|
369
369
|
/**
|
|
370
370
|
* 对齐静态 sharedData class 的名称。
|
|
371
371
|
*
|
|
@@ -418,20 +418,22 @@ declare global {
|
|
|
418
418
|
readonly sharedDataClassId: number
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
+
interface UniDynamicSharedDataComponentOptions extends UniSharedDataComponentOptions, UniDynamicSharedDataInitOptions {}
|
|
422
|
+
|
|
421
423
|
/**
|
|
422
|
-
*
|
|
424
|
+
* UniDynamicSharedDataState 的初始化参数。
|
|
423
425
|
*
|
|
424
426
|
* 这是宿主真实实现类在内部创建 state 时使用的参数。
|
|
425
427
|
* renderSharedData 不直接传这个对象。
|
|
426
428
|
*/
|
|
427
|
-
interface
|
|
429
|
+
interface UniDynamicSharedDataStateOptions extends UniDynamicSharedDataInitOptions {
|
|
428
430
|
/**
|
|
429
431
|
* 按 bundleKey 读取原始二进制 bytes。
|
|
430
432
|
*
|
|
431
433
|
* 只负责读取 bytes。
|
|
432
|
-
* 缓存、decode、classDefinition
|
|
434
|
+
* 缓存、decode、classDefinition 查询真实实现由 C++ / Kotlin 原生侧完成。
|
|
433
435
|
*/
|
|
434
|
-
readonly
|
|
436
|
+
readonly loadBundleBytes: (bundleKey: string) => Uint8Array
|
|
435
437
|
}
|
|
436
438
|
|
|
437
439
|
/**
|
|
@@ -453,7 +455,7 @@ declare global {
|
|
|
453
455
|
/**
|
|
454
456
|
* 当前实例绑定的 class 定义。
|
|
455
457
|
*/
|
|
456
|
-
readonly _sharedDataClass:
|
|
458
|
+
readonly _sharedDataClass: UniDynamicSharedDataClassDefinition
|
|
457
459
|
|
|
458
460
|
/**
|
|
459
461
|
* 按字段编号读取值。
|
|
@@ -496,13 +498,13 @@ declare global {
|
|
|
496
498
|
* - flags 存储
|
|
497
499
|
* - render callback 执行
|
|
498
500
|
*/
|
|
499
|
-
class
|
|
500
|
-
constructor(owner: IUniDynamicSharedData | IUniDynamicSharedDataComponent | IUniDynamicSharedDataPage, options:
|
|
501
|
+
class UniDynamicSharedDataState {
|
|
502
|
+
constructor(owner: IUniDynamicSharedData | IUniDynamicSharedDataComponent | IUniDynamicSharedDataPage, options: UniDynamicSharedDataStateOptions)
|
|
501
503
|
|
|
502
504
|
/**
|
|
503
505
|
* 当前实例绑定的 classDefinition。
|
|
504
506
|
*/
|
|
505
|
-
getClassDefinition():
|
|
507
|
+
getClassDefinition(): UniDynamicSharedDataClassDefinition
|
|
506
508
|
|
|
507
509
|
/**
|
|
508
510
|
* 读取字段值。
|
|
@@ -557,10 +559,10 @@ declare global {
|
|
|
557
559
|
class UniDynamicSharedData extends UniSharedData implements IUniDynamicSharedData {
|
|
558
560
|
readonly _bundleKey: string
|
|
559
561
|
readonly _sharedDataClassId: number
|
|
560
|
-
readonly _sharedDataClass:
|
|
561
|
-
readonly _dynamicState:
|
|
562
|
+
readonly _sharedDataClass: UniDynamicSharedDataClassDefinition
|
|
563
|
+
readonly _dynamicState: UniDynamicSharedDataState
|
|
562
564
|
|
|
563
|
-
constructor(dynamicOptions: UniDynamicSharedDataInitOptions)
|
|
565
|
+
constructor(scope: UniSharedDataPage, dynamicOptions: UniDynamicSharedDataInitOptions)
|
|
564
566
|
|
|
565
567
|
getField(fieldId: number): UniSharedDataAny
|
|
566
568
|
getFlag(flagGroupId: number): number
|
|
@@ -596,10 +598,10 @@ declare global {
|
|
|
596
598
|
class UniDynamicSharedDataComponent extends UniSharedDataComponent implements IUniDynamicSharedDataComponent {
|
|
597
599
|
readonly _bundleKey: string
|
|
598
600
|
readonly _sharedDataClassId: number
|
|
599
|
-
readonly _sharedDataClass:
|
|
600
|
-
readonly _dynamicState:
|
|
601
|
+
readonly _sharedDataClass: UniDynamicSharedDataClassDefinition
|
|
602
|
+
readonly _dynamicState: UniDynamicSharedDataState
|
|
601
603
|
|
|
602
|
-
constructor(
|
|
604
|
+
constructor(scope: UniSharedDataPage, options: UniDynamicSharedDataComponentOptions)
|
|
603
605
|
|
|
604
606
|
getField(fieldId: number): UniSharedDataAny
|
|
605
607
|
getFlag(flagGroupId: number): number
|
|
@@ -631,10 +633,10 @@ declare global {
|
|
|
631
633
|
class UniDynamicSharedDataPage extends UniSharedDataPage implements IUniDynamicSharedDataPage {
|
|
632
634
|
readonly _bundleKey: string
|
|
633
635
|
readonly _sharedDataClassId: number
|
|
634
|
-
readonly _sharedDataClass:
|
|
635
|
-
readonly _dynamicState:
|
|
636
|
+
readonly _sharedDataClass: UniDynamicSharedDataClassDefinition
|
|
637
|
+
readonly _dynamicState: UniDynamicSharedDataState
|
|
636
638
|
|
|
637
|
-
constructor(
|
|
639
|
+
constructor(pageIdOrScope: number | UniSharedDataPage, options: UniDynamicSharedDataComponentOptions)
|
|
638
640
|
|
|
639
641
|
getField(fieldId: number): UniSharedDataAny
|
|
640
642
|
getFlag(flagGroupId: number): number
|
|
@@ -495,18 +495,18 @@ export interface EditorContext {
|
|
|
495
495
|
* "android": {
|
|
496
496
|
* "osVer": "4.4",
|
|
497
497
|
* "uniVer": "x",
|
|
498
|
-
* "unixVer": "5.
|
|
498
|
+
* "unixVer": "5.05"
|
|
499
499
|
* },
|
|
500
500
|
* "ios": {
|
|
501
501
|
* "osVer": "12.0",
|
|
502
502
|
* "uniVer": "x",
|
|
503
|
-
* "unixVer": "5.
|
|
503
|
+
* "unixVer": "5.05"
|
|
504
504
|
* },
|
|
505
505
|
* "harmony": {
|
|
506
506
|
* "osVer": "√",
|
|
507
507
|
* "uniVer": "x",
|
|
508
|
-
* "unixVer": "5.
|
|
509
|
-
* "unixVaporVer": "5.
|
|
508
|
+
* "unixVer": "5.05",
|
|
509
|
+
* "unixVaporVer": "5.05"
|
|
510
510
|
* }
|
|
511
511
|
* },
|
|
512
512
|
* }
|
|
@@ -519,18 +519,18 @@ export interface EditorContext {
|
|
|
519
519
|
* "android": {
|
|
520
520
|
* "osVer": "4.4",
|
|
521
521
|
* "uniVer": "x",
|
|
522
|
-
* "unixVer": "5.
|
|
522
|
+
* "unixVer": "5.05"
|
|
523
523
|
* },
|
|
524
524
|
* "ios": {
|
|
525
525
|
* "osVer": "12.0",
|
|
526
526
|
* "uniVer": "x",
|
|
527
|
-
* "unixVer": "5.
|
|
527
|
+
* "unixVer": "5.05"
|
|
528
528
|
* },
|
|
529
529
|
* "harmony": {
|
|
530
530
|
* "osVer": "√",
|
|
531
531
|
* "uniVer": "x",
|
|
532
|
-
* "unixVer": "5.
|
|
533
|
-
* "unixVaporVer": "5.
|
|
532
|
+
* "unixVer": "5.05",
|
|
533
|
+
* "unixVaporVer": "5.05"
|
|
534
534
|
* }
|
|
535
535
|
* },
|
|
536
536
|
* }
|
|
@@ -543,18 +543,18 @@ export interface EditorContext {
|
|
|
543
543
|
* "android": {
|
|
544
544
|
* "osVer": "4.4",
|
|
545
545
|
* "uniVer": "x",
|
|
546
|
-
* "unixVer": "5.
|
|
546
|
+
* "unixVer": "5.05"
|
|
547
547
|
* },
|
|
548
548
|
* "ios": {
|
|
549
549
|
* "osVer": "12.0",
|
|
550
550
|
* "uniVer": "x",
|
|
551
|
-
* "unixVer": "5.
|
|
551
|
+
* "unixVer": "5.05"
|
|
552
552
|
* },
|
|
553
553
|
* "harmony": {
|
|
554
554
|
* "osVer": "√",
|
|
555
555
|
* "uniVer": "x",
|
|
556
|
-
* "unixVer": "5.
|
|
557
|
-
* "unixVaporVer": "5.
|
|
556
|
+
* "unixVer": "5.05",
|
|
557
|
+
* "unixVaporVer": "5.05"
|
|
558
558
|
* }
|
|
559
559
|
* },
|
|
560
560
|
* }
|
|
@@ -567,18 +567,18 @@ export interface EditorContext {
|
|
|
567
567
|
* "android": {
|
|
568
568
|
* "osVer": "4.4",
|
|
569
569
|
* "uniVer": "x",
|
|
570
|
-
* "unixVer": "5.
|
|
570
|
+
* "unixVer": "5.05"
|
|
571
571
|
* },
|
|
572
572
|
* "ios": {
|
|
573
573
|
* "osVer": "12.0",
|
|
574
574
|
* "uniVer": "x",
|
|
575
|
-
* "unixVer": "5.
|
|
575
|
+
* "unixVer": "5.05"
|
|
576
576
|
* },
|
|
577
577
|
* "harmony": {
|
|
578
578
|
* "osVer": "√",
|
|
579
579
|
* "uniVer": "x",
|
|
580
|
-
* "unixVer": "5.
|
|
581
|
-
* "unixVaporVer": "5.
|
|
580
|
+
* "unixVer": "5.05",
|
|
581
|
+
* "unixVaporVer": "5.05"
|
|
582
582
|
* }
|
|
583
583
|
* },
|
|
584
584
|
* }
|
|
@@ -591,18 +591,18 @@ export interface EditorContext {
|
|
|
591
591
|
* "android": {
|
|
592
592
|
* "osVer": "4.4",
|
|
593
593
|
* "uniVer": "x",
|
|
594
|
-
* "unixVer": "5.
|
|
594
|
+
* "unixVer": "5.05"
|
|
595
595
|
* },
|
|
596
596
|
* "ios": {
|
|
597
597
|
* "osVer": "12.0",
|
|
598
598
|
* "uniVer": "x",
|
|
599
|
-
* "unixVer": "5.
|
|
599
|
+
* "unixVer": "5.05"
|
|
600
600
|
* },
|
|
601
601
|
* "harmony": {
|
|
602
602
|
* "osVer": "√",
|
|
603
603
|
* "uniVer": "x",
|
|
604
|
-
* "unixVer": "5.
|
|
605
|
-
* "unixVaporVer": "5.
|
|
604
|
+
* "unixVer": "5.05",
|
|
605
|
+
* "unixVaporVer": "5.05"
|
|
606
606
|
* }
|
|
607
607
|
* },
|
|
608
608
|
* }
|
|
@@ -615,18 +615,18 @@ export interface EditorContext {
|
|
|
615
615
|
* "android": {
|
|
616
616
|
* "osVer": "4.4",
|
|
617
617
|
* "uniVer": "x",
|
|
618
|
-
* "unixVer": "5.
|
|
618
|
+
* "unixVer": "5.05"
|
|
619
619
|
* },
|
|
620
620
|
* "ios": {
|
|
621
621
|
* "osVer": "12.0",
|
|
622
622
|
* "uniVer": "x",
|
|
623
|
-
* "unixVer": "5.
|
|
623
|
+
* "unixVer": "5.05"
|
|
624
624
|
* },
|
|
625
625
|
* "harmony": {
|
|
626
626
|
* "osVer": "√",
|
|
627
627
|
* "uniVer": "x",
|
|
628
|
-
* "unixVer": "5.
|
|
629
|
-
* "unixVaporVer": "5.
|
|
628
|
+
* "unixVer": "5.05",
|
|
629
|
+
* "unixVaporVer": "5.05"
|
|
630
630
|
* }
|
|
631
631
|
* },
|
|
632
632
|
* }
|
|
@@ -639,18 +639,18 @@ export interface EditorContext {
|
|
|
639
639
|
* "android": {
|
|
640
640
|
* "osVer": "4.4",
|
|
641
641
|
* "uniVer": "x",
|
|
642
|
-
* "unixVer": "5.
|
|
642
|
+
* "unixVer": "5.05"
|
|
643
643
|
* },
|
|
644
644
|
* "ios": {
|
|
645
645
|
* "osVer": "12.0",
|
|
646
646
|
* "uniVer": "x",
|
|
647
|
-
* "unixVer": "5.
|
|
647
|
+
* "unixVer": "5.05"
|
|
648
648
|
* },
|
|
649
649
|
* "harmony": {
|
|
650
650
|
* "osVer": "√",
|
|
651
651
|
* "uniVer": "x",
|
|
652
|
-
* "unixVer": "5.
|
|
653
|
-
* "unixVaporVer": "5.
|
|
652
|
+
* "unixVer": "5.05",
|
|
653
|
+
* "unixVaporVer": "5.05"
|
|
654
654
|
* }
|
|
655
655
|
* },
|
|
656
656
|
* }
|
|
@@ -663,18 +663,18 @@ export interface EditorContext {
|
|
|
663
663
|
* "android": {
|
|
664
664
|
* "osVer": "4.4",
|
|
665
665
|
* "uniVer": "x",
|
|
666
|
-
* "unixVer": "5.
|
|
666
|
+
* "unixVer": "5.05"
|
|
667
667
|
* },
|
|
668
668
|
* "ios": {
|
|
669
669
|
* "osVer": "12.0",
|
|
670
670
|
* "uniVer": "x",
|
|
671
|
-
* "unixVer": "5.
|
|
671
|
+
* "unixVer": "5.05"
|
|
672
672
|
* },
|
|
673
673
|
* "harmony": {
|
|
674
674
|
* "osVer": "√",
|
|
675
675
|
* "uniVer": "x",
|
|
676
|
-
* "unixVer": "5.
|
|
677
|
-
* "unixVaporVer": "5.
|
|
676
|
+
* "unixVer": "5.05",
|
|
677
|
+
* "unixVaporVer": "5.05"
|
|
678
678
|
* }
|
|
679
679
|
* },
|
|
680
680
|
* }
|
|
@@ -687,18 +687,18 @@ export interface EditorContext {
|
|
|
687
687
|
* "android": {
|
|
688
688
|
* "osVer": "4.4",
|
|
689
689
|
* "uniVer": "x",
|
|
690
|
-
* "unixVer": "5.
|
|
690
|
+
* "unixVer": "5.05"
|
|
691
691
|
* },
|
|
692
692
|
* "ios": {
|
|
693
693
|
* "osVer": "12.0",
|
|
694
694
|
* "uniVer": "x",
|
|
695
|
-
* "unixVer": "5.
|
|
695
|
+
* "unixVer": "5.05"
|
|
696
696
|
* },
|
|
697
697
|
* "harmony": {
|
|
698
698
|
* "osVer": "√",
|
|
699
699
|
* "uniVer": "x",
|
|
700
|
-
* "unixVer": "5.
|
|
701
|
-
* "unixVaporVer": "5.
|
|
700
|
+
* "unixVer": "5.05",
|
|
701
|
+
* "unixVaporVer": "5.05"
|
|
702
702
|
* }
|
|
703
703
|
* },
|
|
704
704
|
* }
|
|
@@ -711,18 +711,18 @@ export interface EditorContext {
|
|
|
711
711
|
* "android": {
|
|
712
712
|
* "osVer": "4.4",
|
|
713
713
|
* "uniVer": "x",
|
|
714
|
-
* "unixVer": "5.
|
|
714
|
+
* "unixVer": "5.05"
|
|
715
715
|
* },
|
|
716
716
|
* "ios": {
|
|
717
717
|
* "osVer": "12.0",
|
|
718
718
|
* "uniVer": "x",
|
|
719
|
-
* "unixVer": "5.
|
|
719
|
+
* "unixVer": "5.05"
|
|
720
720
|
* },
|
|
721
721
|
* "harmony": {
|
|
722
722
|
* "osVer": "√",
|
|
723
723
|
* "uniVer": "x",
|
|
724
|
-
* "unixVer": "5.
|
|
725
|
-
* "unixVaporVer": "5.
|
|
724
|
+
* "unixVer": "5.05",
|
|
725
|
+
* "unixVaporVer": "5.05"
|
|
726
726
|
* }
|
|
727
727
|
* },
|
|
728
728
|
* }
|
|
@@ -735,18 +735,18 @@ export interface EditorContext {
|
|
|
735
735
|
* "android": {
|
|
736
736
|
* "osVer": "4.4",
|
|
737
737
|
* "uniVer": "x",
|
|
738
|
-
* "unixVer": "5.
|
|
738
|
+
* "unixVer": "5.05"
|
|
739
739
|
* },
|
|
740
740
|
* "ios": {
|
|
741
741
|
* "osVer": "12.0",
|
|
742
742
|
* "uniVer": "x",
|
|
743
|
-
* "unixVer": "5.
|
|
743
|
+
* "unixVer": "5.05"
|
|
744
744
|
* },
|
|
745
745
|
* "harmony": {
|
|
746
746
|
* "osVer": "√",
|
|
747
747
|
* "uniVer": "x",
|
|
748
|
-
* "unixVer": "5.
|
|
749
|
-
* "unixVaporVer": "5.
|
|
748
|
+
* "unixVer": "5.05",
|
|
749
|
+
* "unixVaporVer": "5.05"
|
|
750
750
|
* }
|
|
751
751
|
* },
|
|
752
752
|
* }
|
|
@@ -759,18 +759,18 @@ export interface EditorContext {
|
|
|
759
759
|
* "android": {
|
|
760
760
|
* "osVer": "4.4",
|
|
761
761
|
* "uniVer": "x",
|
|
762
|
-
* "unixVer": "5.
|
|
762
|
+
* "unixVer": "5.05"
|
|
763
763
|
* },
|
|
764
764
|
* "ios": {
|
|
765
765
|
* "osVer": "12.0",
|
|
766
766
|
* "uniVer": "x",
|
|
767
|
-
* "unixVer": "5.
|
|
767
|
+
* "unixVer": "5.05"
|
|
768
768
|
* },
|
|
769
769
|
* "harmony": {
|
|
770
770
|
* "osVer": "√",
|
|
771
771
|
* "uniVer": "x",
|
|
772
|
-
* "unixVer": "5.
|
|
773
|
-
* "unixVaporVer": "5.
|
|
772
|
+
* "unixVer": "5.05",
|
|
773
|
+
* "unixVaporVer": "5.05"
|
|
774
774
|
* }
|
|
775
775
|
* },
|
|
776
776
|
* }
|
|
@@ -783,18 +783,18 @@ export interface EditorContext {
|
|
|
783
783
|
* "android": {
|
|
784
784
|
* "osVer": "4.4",
|
|
785
785
|
* "uniVer": "x",
|
|
786
|
-
* "unixVer": "5.
|
|
786
|
+
* "unixVer": "5.05"
|
|
787
787
|
* },
|
|
788
788
|
* "ios": {
|
|
789
789
|
* "osVer": "12.0",
|
|
790
790
|
* "uniVer": "x",
|
|
791
|
-
* "unixVer": "5.
|
|
791
|
+
* "unixVer": "5.05"
|
|
792
792
|
* },
|
|
793
793
|
* "harmony": {
|
|
794
794
|
* "osVer": "√",
|
|
795
795
|
* "uniVer": "x",
|
|
796
|
-
* "unixVer": "5.
|
|
797
|
-
* "unixVaporVer": "5.
|
|
796
|
+
* "unixVer": "5.05",
|
|
797
|
+
* "unixVaporVer": "5.05"
|
|
798
798
|
* }
|
|
799
799
|
* },
|
|
800
800
|
* }
|
|
@@ -807,18 +807,18 @@ export interface EditorContext {
|
|
|
807
807
|
* "android": {
|
|
808
808
|
* "osVer": "4.4",
|
|
809
809
|
* "uniVer": "x",
|
|
810
|
-
* "unixVer": "5.
|
|
810
|
+
* "unixVer": "5.05"
|
|
811
811
|
* },
|
|
812
812
|
* "ios": {
|
|
813
813
|
* "osVer": "12.0",
|
|
814
814
|
* "uniVer": "x",
|
|
815
|
-
* "unixVer": "5.
|
|
815
|
+
* "unixVer": "5.05"
|
|
816
816
|
* },
|
|
817
817
|
* "harmony": {
|
|
818
818
|
* "osVer": "√",
|
|
819
819
|
* "uniVer": "x",
|
|
820
|
-
* "unixVer": "5.
|
|
821
|
-
* "unixVaporVer": "5.
|
|
820
|
+
* "unixVer": "5.05",
|
|
821
|
+
* "unixVaporVer": "5.05"
|
|
822
822
|
* }
|
|
823
823
|
* },
|
|
824
824
|
* }
|