@tuya-sat/sdf-main-sdk 6.2.44 → 6.2.45

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main.css": "auto/main.css",
3
3
  "main.js": "auto/main.bundle.js",
4
- "364.7b3d8161.chunk.js": "auto/364.7b3d8161.chunk.js",
4
+ "364.eeaf1617.chunk.js": "auto/364.eeaf1617.chunk.js",
5
5
  "static/img/login3.png": "auto/static/img/dd06d35d98047203e715.png",
6
6
  "static/img/reLogin.png": "auto/static/img/294142da390c5af23324.png",
7
7
  "static/img/login2.png": "auto/static/img/47a523d0027c7b5af83f.png",
@@ -23,5 +23,5 @@
23
23
  "static/img/tuya.png": "auto/static/img/328d8b5c342b13933c5c.png",
24
24
  "main.css.map": "auto/main.css.map",
25
25
  "main.bundle.js.map": "auto/main.bundle.js.map",
26
- "364.7b3d8161.chunk.js.map": "auto/364.7b3d8161.chunk.js.map"
26
+ "364.eeaf1617.chunk.js.map": "auto/364.eeaf1617.chunk.js.map"
27
27
  }
@@ -0,0 +1,32 @@
1
+ export declare const FROM_QUERY_KEY = "from";
2
+ /**
3
+ * 解析当前 URL 上的 from,返回可落地的站内路径(pathname + search + hash)。
4
+ *
5
+ * 登录链路里只有 credential 首登(buildThirdPartyRedirectUrl)和 C 端扫码把 from 拼成了落地
6
+ * 路径;免登 / 静默 / 游客走的是 iot-ticket 直跳,auth 侧只把 from 原样挂在目标站根地址的
7
+ * query 上(appendFromParam),由目标站自己决定落地路由——目标站这一侧的消费点就是这里。
8
+ *
9
+ * 返回 null 表示无需跳转:没有 from、from 非法、或 from 指回登录相关路由(会死循环)。
10
+ */
11
+ export declare const resolveFromTarget: (search?: string) => string | null;
12
+ /**
13
+ * 消费 URL 上的 from:把 from 指定的站内路由写进地址栏(连带摘掉 from、iot-ticket 这些
14
+ * 一次性参数),让 Router 直接以目标路由初始化。
15
+ *
16
+ * 必须在 ReactDOM.render 之前调用:晚于渲染会让首页先挂一遍 qiankun 子应用再被换掉。
17
+ *
18
+ * 白名单路由(/login 等)上不消费:这些页面自身要靠 query 上的 from 决定登录后回跳,
19
+ * 在这里消费等于绕过登录。
20
+ *
21
+ * @param extraWhitePathList 业务侧配置的免登录路由(whitePahtList())
22
+ * @returns 是否改写了地址栏
23
+ */
24
+ export declare const consumeFromParam: (extraWhitePathList?: string[]) => boolean;
25
+ /**
26
+ * 拼跳登录页的 query:原样保留当前 query(lang 等),并补一个兜底的 from。
27
+ *
28
+ * 之前 auth() 只透传 search,深链(如 /apps/xxx/detail)未登录被打回登录页后就丢了路径,
29
+ * 只有业务方显式带 from 才回得去;这里用当前 pathname 兜底。
30
+ * 业务方显式指定的 from 优先,不覆盖。
31
+ */
32
+ export declare const buildLoginSearch: () => string;
@@ -422,8 +422,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
422
422
  blue1: string;
423
423
  blue2: string;
424
424
  blue3: string;
425
- blue4: string;
426
425
  blue5: string;
426
+ blue4: string;
427
427
  blue6: string;
428
428
  blue7: string;
429
429
  blue8: string;
@@ -432,8 +432,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
432
432
  cyan1: string;
433
433
  cyan2: string;
434
434
  cyan3: string;
435
- cyan4: string;
436
435
  cyan5: string;
436
+ cyan4: string;
437
437
  cyan6: string;
438
438
  cyan7: string;
439
439
  cyan8: string;
@@ -442,8 +442,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
442
442
  gold1: string;
443
443
  gold2: string;
444
444
  gold3: string;
445
- gold4: string;
446
445
  gold5: string;
446
+ gold4: string;
447
447
  gold6: string;
448
448
  gold7: string;
449
449
  gold8: string;
@@ -452,8 +452,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
452
452
  green1: string;
453
453
  green2: string;
454
454
  green3: string;
455
- green4: string;
456
455
  green5: string;
456
+ green4: string;
457
457
  green6: string;
458
458
  green7: string;
459
459
  green8: string;
@@ -462,8 +462,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
462
462
  lime1: string;
463
463
  lime2: string;
464
464
  lime3: string;
465
- lime4: string;
466
465
  lime5: string;
466
+ lime4: string;
467
467
  lime6: string;
468
468
  lime7: string;
469
469
  lime8: string;
@@ -472,8 +472,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
472
472
  magenta1: string;
473
473
  magenta2: string;
474
474
  magenta3: string;
475
- magenta4: string;
476
475
  magenta5: string;
476
+ magenta4: string;
477
477
  magenta6: string;
478
478
  magenta7: string;
479
479
  magenta8: string;
@@ -482,8 +482,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
482
482
  orange1: string;
483
483
  orange2: string;
484
484
  orange3: string;
485
- orange4: string;
486
485
  orange5: string;
486
+ orange4: string;
487
487
  orange6: string;
488
488
  orange7: string;
489
489
  orange8: string;
@@ -492,8 +492,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
492
492
  pink1: string;
493
493
  pink2: string;
494
494
  pink3: string;
495
- pink4: string;
496
495
  pink5: string;
496
+ pink4: string;
497
497
  pink6: string;
498
498
  pink7: string;
499
499
  pink8: string;
@@ -502,8 +502,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
502
502
  purple1: string;
503
503
  purple2: string;
504
504
  purple3: string;
505
- purple4: string;
506
505
  purple5: string;
506
+ purple4: string;
507
507
  purple6: string;
508
508
  purple7: string;
509
509
  purple8: string;
@@ -512,8 +512,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
512
512
  red1: string;
513
513
  red2: string;
514
514
  red3: string;
515
- red4: string;
516
515
  red5: string;
516
+ red4: string;
517
517
  red6: string;
518
518
  red7: string;
519
519
  red8: string;
@@ -522,8 +522,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
522
522
  yellow1: string;
523
523
  yellow2: string;
524
524
  yellow3: string;
525
- yellow4: string;
526
525
  yellow5: string;
526
+ yellow4: string;
527
527
  yellow6: string;
528
528
  yellow7: string;
529
529
  yellow8: string;
@@ -532,8 +532,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
532
532
  volcano1: string;
533
533
  volcano2: string;
534
534
  volcano3: string;
535
- volcano4: string;
536
535
  volcano5: string;
536
+ volcano4: string;
537
537
  volcano6: string;
538
538
  volcano7: string;
539
539
  volcano8: string;
@@ -542,8 +542,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
542
542
  geekblue1: string;
543
543
  geekblue2: string;
544
544
  geekblue3: string;
545
- geekblue4: string;
546
545
  geekblue5: string;
546
+ geekblue4: string;
547
547
  geekblue6: string;
548
548
  geekblue7: string;
549
549
  geekblue8: string;
@@ -552,8 +552,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
552
552
  "blue-1": string;
553
553
  "blue-2": string;
554
554
  "blue-3": string;
555
- "blue-4": string;
556
555
  "blue-5": string;
556
+ "blue-4": string;
557
557
  "blue-6": string;
558
558
  "blue-7": string;
559
559
  "blue-8": string;
@@ -562,8 +562,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
562
562
  "cyan-1": string;
563
563
  "cyan-2": string;
564
564
  "cyan-3": string;
565
- "cyan-4": string;
566
565
  "cyan-5": string;
566
+ "cyan-4": string;
567
567
  "cyan-6": string;
568
568
  "cyan-7": string;
569
569
  "cyan-8": string;
@@ -572,8 +572,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
572
572
  "gold-1": string;
573
573
  "gold-2": string;
574
574
  "gold-3": string;
575
- "gold-4": string;
576
575
  "gold-5": string;
576
+ "gold-4": string;
577
577
  "gold-6": string;
578
578
  "gold-7": string;
579
579
  "gold-8": string;
@@ -582,8 +582,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
582
582
  "green-1": string;
583
583
  "green-2": string;
584
584
  "green-3": string;
585
- "green-4": string;
586
585
  "green-5": string;
586
+ "green-4": string;
587
587
  "green-6": string;
588
588
  "green-7": string;
589
589
  "green-8": string;
@@ -592,8 +592,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
592
592
  "lime-1": string;
593
593
  "lime-2": string;
594
594
  "lime-3": string;
595
- "lime-4": string;
596
595
  "lime-5": string;
596
+ "lime-4": string;
597
597
  "lime-6": string;
598
598
  "lime-7": string;
599
599
  "lime-8": string;
@@ -602,8 +602,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
602
602
  "magenta-1": string;
603
603
  "magenta-2": string;
604
604
  "magenta-3": string;
605
- "magenta-4": string;
606
605
  "magenta-5": string;
606
+ "magenta-4": string;
607
607
  "magenta-6": string;
608
608
  "magenta-7": string;
609
609
  "magenta-8": string;
@@ -612,8 +612,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
612
612
  "orange-1": string;
613
613
  "orange-2": string;
614
614
  "orange-3": string;
615
- "orange-4": string;
616
615
  "orange-5": string;
616
+ "orange-4": string;
617
617
  "orange-6": string;
618
618
  "orange-7": string;
619
619
  "orange-8": string;
@@ -622,8 +622,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
622
622
  "pink-1": string;
623
623
  "pink-2": string;
624
624
  "pink-3": string;
625
- "pink-4": string;
626
625
  "pink-5": string;
626
+ "pink-4": string;
627
627
  "pink-6": string;
628
628
  "pink-7": string;
629
629
  "pink-8": string;
@@ -632,8 +632,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
632
632
  "purple-1": string;
633
633
  "purple-2": string;
634
634
  "purple-3": string;
635
- "purple-4": string;
636
635
  "purple-5": string;
636
+ "purple-4": string;
637
637
  "purple-6": string;
638
638
  "purple-7": string;
639
639
  "purple-8": string;
@@ -642,8 +642,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
642
642
  "red-1": string;
643
643
  "red-2": string;
644
644
  "red-3": string;
645
- "red-4": string;
646
645
  "red-5": string;
646
+ "red-4": string;
647
647
  "red-6": string;
648
648
  "red-7": string;
649
649
  "red-8": string;
@@ -652,8 +652,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
652
652
  "yellow-1": string;
653
653
  "yellow-2": string;
654
654
  "yellow-3": string;
655
- "yellow-4": string;
656
655
  "yellow-5": string;
656
+ "yellow-4": string;
657
657
  "yellow-6": string;
658
658
  "yellow-7": string;
659
659
  "yellow-8": string;
@@ -662,8 +662,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
662
662
  "volcano-1": string;
663
663
  "volcano-2": string;
664
664
  "volcano-3": string;
665
- "volcano-4": string;
666
665
  "volcano-5": string;
666
+ "volcano-4": string;
667
667
  "volcano-6": string;
668
668
  "volcano-7": string;
669
669
  "volcano-8": string;
@@ -672,8 +672,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
672
672
  "geekblue-1": string;
673
673
  "geekblue-2": string;
674
674
  "geekblue-3": string;
675
- "geekblue-4": string;
676
675
  "geekblue-5": string;
676
+ "geekblue-4": string;
677
677
  "geekblue-6": string;
678
678
  "geekblue-7": string;
679
679
  "geekblue-8": string;
@@ -916,8 +916,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
916
916
  blue1: string;
917
917
  blue2: string;
918
918
  blue3: string;
919
- blue4: string;
920
919
  blue5: string;
920
+ blue4: string;
921
921
  blue6: string;
922
922
  blue7: string;
923
923
  blue8: string;
@@ -926,8 +926,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
926
926
  cyan1: string;
927
927
  cyan2: string;
928
928
  cyan3: string;
929
- cyan4: string;
930
929
  cyan5: string;
930
+ cyan4: string;
931
931
  cyan6: string;
932
932
  cyan7: string;
933
933
  cyan8: string;
@@ -936,8 +936,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
936
936
  gold1: string;
937
937
  gold2: string;
938
938
  gold3: string;
939
- gold4: string;
940
939
  gold5: string;
940
+ gold4: string;
941
941
  gold6: string;
942
942
  gold7: string;
943
943
  gold8: string;
@@ -946,8 +946,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
946
946
  green1: string;
947
947
  green2: string;
948
948
  green3: string;
949
- green4: string;
950
949
  green5: string;
950
+ green4: string;
951
951
  green6: string;
952
952
  green7: string;
953
953
  green8: string;
@@ -956,8 +956,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
956
956
  lime1: string;
957
957
  lime2: string;
958
958
  lime3: string;
959
- lime4: string;
960
959
  lime5: string;
960
+ lime4: string;
961
961
  lime6: string;
962
962
  lime7: string;
963
963
  lime8: string;
@@ -966,8 +966,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
966
966
  magenta1: string;
967
967
  magenta2: string;
968
968
  magenta3: string;
969
- magenta4: string;
970
969
  magenta5: string;
970
+ magenta4: string;
971
971
  magenta6: string;
972
972
  magenta7: string;
973
973
  magenta8: string;
@@ -976,8 +976,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
976
976
  orange1: string;
977
977
  orange2: string;
978
978
  orange3: string;
979
- orange4: string;
980
979
  orange5: string;
980
+ orange4: string;
981
981
  orange6: string;
982
982
  orange7: string;
983
983
  orange8: string;
@@ -986,8 +986,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
986
986
  pink1: string;
987
987
  pink2: string;
988
988
  pink3: string;
989
- pink4: string;
990
989
  pink5: string;
990
+ pink4: string;
991
991
  pink6: string;
992
992
  pink7: string;
993
993
  pink8: string;
@@ -996,8 +996,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
996
996
  purple1: string;
997
997
  purple2: string;
998
998
  purple3: string;
999
- purple4: string;
1000
999
  purple5: string;
1000
+ purple4: string;
1001
1001
  purple6: string;
1002
1002
  purple7: string;
1003
1003
  purple8: string;
@@ -1006,8 +1006,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1006
1006
  red1: string;
1007
1007
  red2: string;
1008
1008
  red3: string;
1009
- red4: string;
1010
1009
  red5: string;
1010
+ red4: string;
1011
1011
  red6: string;
1012
1012
  red7: string;
1013
1013
  red8: string;
@@ -1016,8 +1016,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1016
1016
  yellow1: string;
1017
1017
  yellow2: string;
1018
1018
  yellow3: string;
1019
- yellow4: string;
1020
1019
  yellow5: string;
1020
+ yellow4: string;
1021
1021
  yellow6: string;
1022
1022
  yellow7: string;
1023
1023
  yellow8: string;
@@ -1026,8 +1026,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1026
1026
  volcano1: string;
1027
1027
  volcano2: string;
1028
1028
  volcano3: string;
1029
- volcano4: string;
1030
1029
  volcano5: string;
1030
+ volcano4: string;
1031
1031
  volcano6: string;
1032
1032
  volcano7: string;
1033
1033
  volcano8: string;
@@ -1036,8 +1036,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1036
1036
  geekblue1: string;
1037
1037
  geekblue2: string;
1038
1038
  geekblue3: string;
1039
- geekblue4: string;
1040
1039
  geekblue5: string;
1040
+ geekblue4: string;
1041
1041
  geekblue6: string;
1042
1042
  geekblue7: string;
1043
1043
  geekblue8: string;
@@ -1046,8 +1046,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1046
1046
  "blue-1": string;
1047
1047
  "blue-2": string;
1048
1048
  "blue-3": string;
1049
- "blue-4": string;
1050
1049
  "blue-5": string;
1050
+ "blue-4": string;
1051
1051
  "blue-6": string;
1052
1052
  "blue-7": string;
1053
1053
  "blue-8": string;
@@ -1056,8 +1056,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1056
1056
  "cyan-1": string;
1057
1057
  "cyan-2": string;
1058
1058
  "cyan-3": string;
1059
- "cyan-4": string;
1060
1059
  "cyan-5": string;
1060
+ "cyan-4": string;
1061
1061
  "cyan-6": string;
1062
1062
  "cyan-7": string;
1063
1063
  "cyan-8": string;
@@ -1066,8 +1066,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1066
1066
  "gold-1": string;
1067
1067
  "gold-2": string;
1068
1068
  "gold-3": string;
1069
- "gold-4": string;
1070
1069
  "gold-5": string;
1070
+ "gold-4": string;
1071
1071
  "gold-6": string;
1072
1072
  "gold-7": string;
1073
1073
  "gold-8": string;
@@ -1076,8 +1076,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1076
1076
  "green-1": string;
1077
1077
  "green-2": string;
1078
1078
  "green-3": string;
1079
- "green-4": string;
1080
1079
  "green-5": string;
1080
+ "green-4": string;
1081
1081
  "green-6": string;
1082
1082
  "green-7": string;
1083
1083
  "green-8": string;
@@ -1086,8 +1086,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1086
1086
  "lime-1": string;
1087
1087
  "lime-2": string;
1088
1088
  "lime-3": string;
1089
- "lime-4": string;
1090
1089
  "lime-5": string;
1090
+ "lime-4": string;
1091
1091
  "lime-6": string;
1092
1092
  "lime-7": string;
1093
1093
  "lime-8": string;
@@ -1096,8 +1096,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1096
1096
  "magenta-1": string;
1097
1097
  "magenta-2": string;
1098
1098
  "magenta-3": string;
1099
- "magenta-4": string;
1100
1099
  "magenta-5": string;
1100
+ "magenta-4": string;
1101
1101
  "magenta-6": string;
1102
1102
  "magenta-7": string;
1103
1103
  "magenta-8": string;
@@ -1106,8 +1106,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1106
1106
  "orange-1": string;
1107
1107
  "orange-2": string;
1108
1108
  "orange-3": string;
1109
- "orange-4": string;
1110
1109
  "orange-5": string;
1110
+ "orange-4": string;
1111
1111
  "orange-6": string;
1112
1112
  "orange-7": string;
1113
1113
  "orange-8": string;
@@ -1116,8 +1116,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1116
1116
  "pink-1": string;
1117
1117
  "pink-2": string;
1118
1118
  "pink-3": string;
1119
- "pink-4": string;
1120
1119
  "pink-5": string;
1120
+ "pink-4": string;
1121
1121
  "pink-6": string;
1122
1122
  "pink-7": string;
1123
1123
  "pink-8": string;
@@ -1126,8 +1126,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1126
1126
  "purple-1": string;
1127
1127
  "purple-2": string;
1128
1128
  "purple-3": string;
1129
- "purple-4": string;
1130
1129
  "purple-5": string;
1130
+ "purple-4": string;
1131
1131
  "purple-6": string;
1132
1132
  "purple-7": string;
1133
1133
  "purple-8": string;
@@ -1136,8 +1136,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1136
1136
  "red-1": string;
1137
1137
  "red-2": string;
1138
1138
  "red-3": string;
1139
- "red-4": string;
1140
1139
  "red-5": string;
1140
+ "red-4": string;
1141
1141
  "red-6": string;
1142
1142
  "red-7": string;
1143
1143
  "red-8": string;
@@ -1146,8 +1146,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1146
1146
  "yellow-1": string;
1147
1147
  "yellow-2": string;
1148
1148
  "yellow-3": string;
1149
- "yellow-4": string;
1150
1149
  "yellow-5": string;
1150
+ "yellow-4": string;
1151
1151
  "yellow-6": string;
1152
1152
  "yellow-7": string;
1153
1153
  "yellow-8": string;
@@ -1156,8 +1156,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1156
1156
  "volcano-1": string;
1157
1157
  "volcano-2": string;
1158
1158
  "volcano-3": string;
1159
- "volcano-4": string;
1160
1159
  "volcano-5": string;
1160
+ "volcano-4": string;
1161
1161
  "volcano-6": string;
1162
1162
  "volcano-7": string;
1163
1163
  "volcano-8": string;
@@ -1166,8 +1166,8 @@ export declare const getAntd5ThemeConfig: (themeMode: Theme) => {
1166
1166
  "geekblue-1": string;
1167
1167
  "geekblue-2": string;
1168
1168
  "geekblue-3": string;
1169
- "geekblue-4": string;
1170
1169
  "geekblue-5": string;
1170
+ "geekblue-4": string;
1171
1171
  "geekblue-6": string;
1172
1172
  "geekblue-7": string;
1173
1173
  "geekblue-8": string;