@appdirect/sfb-toolkit 5.0.0 → 5.0.2
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/coverage/clover.xml +52 -52
- package/coverage/coverage-final.json +20 -20
- package/coverage/lcov-report/constants/customUserAttributesMock.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/pageUrls.js.html +1 -1
- package/coverage/lcov-report/constants/userMock.js.html +1 -1
- package/coverage/lcov-report/controllers/controllers-utils/assetsUtils.js.html +1 -1
- package/coverage/lcov-report/controllers/controllers-utils/index.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/bootstrap-data-filter.js.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/call-to-actions-filter.js.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/index.html +1 -1
- package/coverage/lcov-report/controllers/index.html +1 -1
- package/coverage/lcov-report/controllers/index.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/base/ResultItem.js.html +7 -7
- package/coverage/lcov-report/front-end-utils/src/components/base/SearchBar.js.html +3 -3
- package/coverage/lcov-report/front-end-utils/src/components/base/index.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/base/item.js.html +11 -11
- package/coverage/lcov-report/front-end-utils/src/components/container.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/data-view.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/header-view.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/index.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/search.js.html +13 -13
- package/coverage/lcov-report/front-end-utils/src/constants/index.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/constants/pageUrl.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/constants/roleType.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/constants/searchType.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/utils/debounce.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/utils/index.html +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/middlewares/config.js.html +1 -1
- package/coverage/lcov-report/middlewares/index.html +1 -1
- package/coverage/lcov-report/tools/index.html +1 -1
- package/coverage/lcov-report/tools/proxy-fetch.js.html +1 -1
- package/coverage/lcov.info +81 -81
- package/npm-shrinkwrap.json +26 -15
- package/package.json +4 -3
- package/readme.md +6 -13
- package/src/tools/toolkit-components-copy.js +189 -1
- package/src/tools/toolkit-status.js +3 -3
- package/src/tools/zip-theme.js +1 -0
- package/themes-config.json +7 -0
package/coverage/lcov.info
CHANGED
|
@@ -735,15 +735,15 @@ FN:257,(anonymous_29)
|
|
|
735
735
|
FN:290,(anonymous_30)
|
|
736
736
|
FNF:31
|
|
737
737
|
FNH:29
|
|
738
|
-
FNDA:
|
|
739
|
-
FNDA:
|
|
740
|
-
FNDA:
|
|
738
|
+
FNDA:58,(anonymous_0)
|
|
739
|
+
FNDA:58,(anonymous_1)
|
|
740
|
+
FNDA:58,(anonymous_2)
|
|
741
741
|
FNDA:13,(anonymous_3)
|
|
742
742
|
FNDA:13,(anonymous_4)
|
|
743
743
|
FNDA:5,(anonymous_5)
|
|
744
744
|
FNDA:5,(anonymous_6)
|
|
745
745
|
FNDA:11,(anonymous_7)
|
|
746
|
-
FNDA:
|
|
746
|
+
FNDA:17,(anonymous_8)
|
|
747
747
|
FNDA:0,(anonymous_9)
|
|
748
748
|
FNDA:7,(anonymous_10)
|
|
749
749
|
FNDA:11,(anonymous_11)
|
|
@@ -752,7 +752,7 @@ FNDA:0,(anonymous_13)
|
|
|
752
752
|
FNDA:6,(anonymous_14)
|
|
753
753
|
FNDA:5,(anonymous_15)
|
|
754
754
|
FNDA:8,(anonymous_16)
|
|
755
|
-
FNDA:
|
|
755
|
+
FNDA:5,(anonymous_17)
|
|
756
756
|
FNDA:10,(anonymous_18)
|
|
757
757
|
FNDA:3,(anonymous_19)
|
|
758
758
|
FNDA:3,(anonymous_20)
|
|
@@ -764,12 +764,12 @@ FNDA:6,(anonymous_25)
|
|
|
764
764
|
FNDA:5,(anonymous_26)
|
|
765
765
|
FNDA:12,(anonymous_27)
|
|
766
766
|
FNDA:5,(anonymous_28)
|
|
767
|
-
FNDA:
|
|
768
|
-
FNDA:
|
|
767
|
+
FNDA:58,(anonymous_29)
|
|
768
|
+
FNDA:17,(anonymous_30)
|
|
769
769
|
DA:13,2
|
|
770
|
-
DA:15,
|
|
771
|
-
DA:17,
|
|
772
|
-
DA:25,
|
|
770
|
+
DA:15,58
|
|
771
|
+
DA:17,58
|
|
772
|
+
DA:25,58
|
|
773
773
|
DA:29,2
|
|
774
774
|
DA:40,2
|
|
775
775
|
DA:48,2
|
|
@@ -786,13 +786,13 @@ DA:87,5
|
|
|
786
786
|
DA:90,5
|
|
787
787
|
DA:91,5
|
|
788
788
|
DA:98,11
|
|
789
|
-
DA:103,
|
|
790
|
-
DA:104,
|
|
789
|
+
DA:103,17
|
|
790
|
+
DA:104,17
|
|
791
791
|
DA:105,4
|
|
792
|
-
DA:114,
|
|
793
|
-
DA:115,
|
|
792
|
+
DA:114,13
|
|
793
|
+
DA:115,13
|
|
794
794
|
DA:131,0
|
|
795
|
-
DA:136,
|
|
795
|
+
DA:136,17
|
|
796
796
|
DA:140,7
|
|
797
797
|
DA:141,7
|
|
798
798
|
DA:143,7
|
|
@@ -813,7 +813,7 @@ DA:184,13
|
|
|
813
813
|
DA:185,8
|
|
814
814
|
DA:186,8
|
|
815
815
|
DA:189,8
|
|
816
|
-
DA:190,
|
|
816
|
+
DA:190,5
|
|
817
817
|
DA:196,13
|
|
818
818
|
DA:197,10
|
|
819
819
|
DA:198,10
|
|
@@ -839,32 +839,32 @@ DA:243,5
|
|
|
839
839
|
DA:244,5
|
|
840
840
|
DA:250,5
|
|
841
841
|
DA:251,5
|
|
842
|
-
DA:266,
|
|
843
|
-
DA:267,
|
|
844
|
-
DA:290,
|
|
842
|
+
DA:266,58
|
|
843
|
+
DA:267,58
|
|
844
|
+
DA:290,17
|
|
845
845
|
LF:76
|
|
846
846
|
LH:73
|
|
847
|
-
BRDA:15,0,0,
|
|
847
|
+
BRDA:15,0,0,39
|
|
848
848
|
BRDA:15,0,1,19
|
|
849
|
-
BRDA:17,1,0,
|
|
849
|
+
BRDA:17,1,0,5
|
|
850
850
|
BRDA:17,1,1,53
|
|
851
|
-
BRDA:25,2,0,
|
|
851
|
+
BRDA:25,2,0,5
|
|
852
852
|
BRDA:25,2,1,53
|
|
853
853
|
BRDA:90,3,0,5
|
|
854
854
|
BRDA:90,3,1,0
|
|
855
855
|
BRDA:98,4,0,6
|
|
856
856
|
BRDA:98,4,1,5
|
|
857
|
-
BRDA:101,5,0,
|
|
857
|
+
BRDA:101,5,0,17
|
|
858
858
|
BRDA:104,6,0,4
|
|
859
|
-
BRDA:104,6,1,
|
|
860
|
-
BRDA:114,7,0,
|
|
859
|
+
BRDA:104,6,1,13
|
|
860
|
+
BRDA:114,7,0,13
|
|
861
861
|
BRDA:114,7,1,0
|
|
862
862
|
BRDA:123,8,0,0
|
|
863
|
-
BRDA:123,8,1,
|
|
864
|
-
BRDA:125,9,0,
|
|
865
|
-
BRDA:125,9,1,
|
|
866
|
-
BRDA:128,10,0,
|
|
867
|
-
BRDA:128,10,1,
|
|
863
|
+
BRDA:123,8,1,13
|
|
864
|
+
BRDA:125,9,0,13
|
|
865
|
+
BRDA:125,9,1,13
|
|
866
|
+
BRDA:128,10,0,13
|
|
867
|
+
BRDA:128,10,1,11
|
|
868
868
|
BRDA:128,10,2,0
|
|
869
869
|
BRDA:143,11,0,4
|
|
870
870
|
BRDA:143,11,1,3
|
|
@@ -891,15 +891,15 @@ BRDA:221,21,0,6
|
|
|
891
891
|
BRDA:221,21,1,1
|
|
892
892
|
BRDA:250,22,0,5
|
|
893
893
|
BRDA:250,22,1,0
|
|
894
|
-
BRDA:289,23,0,
|
|
895
|
-
BRDA:289,23,1,
|
|
896
|
-
BRDA:289,23,2,
|
|
897
|
-
BRDA:290,24,0,
|
|
898
|
-
BRDA:290,24,1,
|
|
899
|
-
BRDA:291,25,0,
|
|
894
|
+
BRDA:289,23,0,58
|
|
895
|
+
BRDA:289,23,1,17
|
|
896
|
+
BRDA:289,23,2,16
|
|
897
|
+
BRDA:290,24,0,58
|
|
898
|
+
BRDA:290,24,1,53
|
|
899
|
+
BRDA:291,25,0,58
|
|
900
900
|
BRDA:291,25,1,0
|
|
901
901
|
BRDA:291,25,2,0
|
|
902
|
-
BRDA:293,26,0,
|
|
902
|
+
BRDA:293,26,0,58
|
|
903
903
|
BRDA:293,26,1,5
|
|
904
904
|
BRF:57
|
|
905
905
|
BRH:47
|
|
@@ -920,9 +920,9 @@ FN:101,(anonymous_10)
|
|
|
920
920
|
FN:109,(anonymous_11)
|
|
921
921
|
FNF:12
|
|
922
922
|
FNH:7
|
|
923
|
-
FNDA:
|
|
924
|
-
FNDA:
|
|
925
|
-
FNDA:
|
|
923
|
+
FNDA:18,(anonymous_0)
|
|
924
|
+
FNDA:18,(anonymous_1)
|
|
925
|
+
FNDA:18,(anonymous_2)
|
|
926
926
|
FNDA:10,(anonymous_3)
|
|
927
927
|
FNDA:1,(anonymous_4)
|
|
928
928
|
FNDA:0,(anonymous_5)
|
|
@@ -931,14 +931,14 @@ FNDA:0,(anonymous_7)
|
|
|
931
931
|
FNDA:0,(anonymous_8)
|
|
932
932
|
FNDA:0,(anonymous_9)
|
|
933
933
|
FNDA:0,(anonymous_10)
|
|
934
|
-
FNDA:
|
|
934
|
+
FNDA:18,(anonymous_11)
|
|
935
935
|
DA:10,2
|
|
936
|
-
DA:12,
|
|
936
|
+
DA:12,18
|
|
937
937
|
DA:14,2
|
|
938
938
|
DA:19,2
|
|
939
|
-
DA:21,
|
|
939
|
+
DA:21,18
|
|
940
940
|
DA:24,2
|
|
941
|
-
DA:26,
|
|
941
|
+
DA:26,18
|
|
942
942
|
DA:30,2
|
|
943
943
|
DA:34,2
|
|
944
944
|
DA:41,2
|
|
@@ -962,16 +962,16 @@ DA:94,0
|
|
|
962
962
|
DA:95,0
|
|
963
963
|
DA:97,0
|
|
964
964
|
DA:102,0
|
|
965
|
-
DA:110,
|
|
966
|
-
DA:111,
|
|
967
|
-
DA:112,
|
|
965
|
+
DA:110,18
|
|
966
|
+
DA:111,18
|
|
967
|
+
DA:112,18
|
|
968
968
|
LF:33
|
|
969
969
|
LH:24
|
|
970
|
-
BRDA:12,0,0,
|
|
970
|
+
BRDA:12,0,0,18
|
|
971
971
|
BRDA:12,0,1,5
|
|
972
|
-
BRDA:21,1,0,
|
|
972
|
+
BRDA:21,1,0,18
|
|
973
973
|
BRDA:21,1,1,0
|
|
974
|
-
BRDA:26,2,0,
|
|
974
|
+
BRDA:26,2,0,18
|
|
975
975
|
BRDA:26,2,1,5
|
|
976
976
|
BRDA:66,3,0,2
|
|
977
977
|
BRDA:66,3,1,8
|
|
@@ -992,9 +992,9 @@ BRDA:87,10,1,0
|
|
|
992
992
|
BRDA:87,11,0,0
|
|
993
993
|
BRDA:87,11,1,0
|
|
994
994
|
BRDA:93,12,0,0
|
|
995
|
-
BRDA:126,13,0,
|
|
995
|
+
BRDA:126,13,0,18
|
|
996
996
|
BRDA:126,13,1,2
|
|
997
|
-
BRDA:140,14,0,
|
|
997
|
+
BRDA:140,14,0,18
|
|
998
998
|
BRDA:140,14,1,0
|
|
999
999
|
BRF:29
|
|
1000
1000
|
BRH:15
|
|
@@ -1008,7 +1008,7 @@ FNF:3
|
|
|
1008
1008
|
FNH:1
|
|
1009
1009
|
FNDA:0,(anonymous_0)
|
|
1010
1010
|
FNDA:0,(anonymous_1)
|
|
1011
|
-
FNDA:
|
|
1011
|
+
FNDA:58,(anonymous_2)
|
|
1012
1012
|
DA:7,2
|
|
1013
1013
|
DA:16,2
|
|
1014
1014
|
DA:24,2
|
|
@@ -1018,8 +1018,8 @@ DA:46,2
|
|
|
1018
1018
|
DA:53,2
|
|
1019
1019
|
DA:71,2
|
|
1020
1020
|
DA:79,2
|
|
1021
|
-
DA:94,
|
|
1022
|
-
DA:95,
|
|
1021
|
+
DA:94,58
|
|
1022
|
+
DA:95,58
|
|
1023
1023
|
LF:11
|
|
1024
1024
|
LH:11
|
|
1025
1025
|
BRF:0
|
|
@@ -1040,49 +1040,49 @@ FN:76,(anonymous_9)
|
|
|
1040
1040
|
FN:93,(anonymous_10)
|
|
1041
1041
|
FNF:11
|
|
1042
1042
|
FNH:9
|
|
1043
|
-
FNDA:
|
|
1044
|
-
FNDA:
|
|
1045
|
-
FNDA:
|
|
1046
|
-
FNDA:
|
|
1047
|
-
FNDA:
|
|
1048
|
-
FNDA:
|
|
1049
|
-
FNDA:
|
|
1050
|
-
FNDA:
|
|
1043
|
+
FNDA:257,(anonymous_0)
|
|
1044
|
+
FNDA:257,(anonymous_1)
|
|
1045
|
+
FNDA:257,(anonymous_2)
|
|
1046
|
+
FNDA:257,(anonymous_3)
|
|
1047
|
+
FNDA:257,(anonymous_4)
|
|
1048
|
+
FNDA:257,(anonymous_5)
|
|
1049
|
+
FNDA:257,(anonymous_6)
|
|
1050
|
+
FNDA:257,(anonymous_7)
|
|
1051
1051
|
FNDA:0,(anonymous_8)
|
|
1052
1052
|
FNDA:0,(anonymous_9)
|
|
1053
|
-
FNDA:
|
|
1053
|
+
FNDA:257,(anonymous_10)
|
|
1054
1054
|
DA:5,2
|
|
1055
|
-
DA:9,
|
|
1056
|
-
DA:23,
|
|
1057
|
-
DA:26,
|
|
1058
|
-
DA:27,
|
|
1059
|
-
DA:29,
|
|
1055
|
+
DA:9,257
|
|
1056
|
+
DA:23,257
|
|
1057
|
+
DA:26,257
|
|
1058
|
+
DA:27,257
|
|
1059
|
+
DA:29,257
|
|
1060
1060
|
DA:33,2
|
|
1061
|
-
DA:36,
|
|
1062
|
-
DA:40,
|
|
1061
|
+
DA:36,257
|
|
1062
|
+
DA:40,257
|
|
1063
1063
|
DA:42,2
|
|
1064
1064
|
DA:46,2
|
|
1065
1065
|
DA:50,2
|
|
1066
|
-
DA:54,
|
|
1066
|
+
DA:54,257
|
|
1067
1067
|
DA:57,2
|
|
1068
1068
|
DA:67,2
|
|
1069
1069
|
DA:80,2
|
|
1070
|
-
DA:105,
|
|
1071
|
-
DA:106,
|
|
1070
|
+
DA:105,257
|
|
1071
|
+
DA:106,257
|
|
1072
1072
|
LF:18
|
|
1073
1073
|
LH:18
|
|
1074
1074
|
BRDA:9,0,0,24
|
|
1075
|
-
BRDA:9,0,1,
|
|
1075
|
+
BRDA:9,0,1,233
|
|
1076
1076
|
BRDA:26,1,0,120
|
|
1077
|
-
BRDA:26,1,1,
|
|
1077
|
+
BRDA:26,1,1,137
|
|
1078
1078
|
BRDA:27,2,0,120
|
|
1079
|
-
BRDA:27,2,1,
|
|
1080
|
-
BRDA:29,3,0,
|
|
1079
|
+
BRDA:27,2,1,137
|
|
1080
|
+
BRDA:29,3,0,197
|
|
1081
1081
|
BRDA:29,3,1,60
|
|
1082
1082
|
BRDA:40,4,0,22
|
|
1083
|
-
BRDA:40,4,1,
|
|
1084
|
-
BRDA:54,5,0,
|
|
1085
|
-
BRDA:54,5,1,
|
|
1083
|
+
BRDA:40,4,1,235
|
|
1084
|
+
BRDA:54,5,0,257
|
|
1085
|
+
BRDA:54,5,1,222
|
|
1086
1086
|
BRF:12
|
|
1087
1087
|
BRH:12
|
|
1088
1088
|
end_of_record
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appdirect/sfb-toolkit",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@appdirect/sfb-toolkit",
|
|
9
|
-
"version": "5.0.
|
|
9
|
+
"version": "5.0.2",
|
|
10
10
|
"license": "SEE LICENSE IN https://help.appdirect.com/sfb-eula.pdf",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@appdirect/public-custom-app-ui": "^0.0.23",
|
|
13
|
-
"@appdirect/sfb-theme-
|
|
13
|
+
"@appdirect/sfb-theme-classic": "0.0.27",
|
|
14
|
+
"@appdirect/sfb-theme-plaza": "0.0.84",
|
|
14
15
|
"@appdirect/storefront-utils": "latest",
|
|
15
16
|
"@babel/core": "^7.19.1",
|
|
16
17
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -19448,10 +19449,15 @@
|
|
|
19448
19449
|
"node": ">= 10"
|
|
19449
19450
|
}
|
|
19450
19451
|
},
|
|
19452
|
+
"node_modules/@appdirect/sfb-theme-classic": {
|
|
19453
|
+
"version": "0.0.27",
|
|
19454
|
+
"resolved": "https://registry.npmjs.org/@appdirect/sfb-theme-classic/-/sfb-theme-classic-0.0.27.tgz",
|
|
19455
|
+
"integrity": "sha512-pmpAJwxaqMSUVTudBq/BXlD4MEEFsGkulR/v+baJYZ44lzvH0ZxlFakAXcZyxAwuM+S3YUNkdHqbC3fGyxYvDw=="
|
|
19456
|
+
},
|
|
19451
19457
|
"node_modules/@appdirect/sfb-theme-plaza": {
|
|
19452
|
-
"version": "0.0.
|
|
19453
|
-
"resolved": "https://registry.npmjs.org/@appdirect/sfb-theme-plaza/-/sfb-theme-plaza-0.0.
|
|
19454
|
-
"integrity": "sha512-
|
|
19458
|
+
"version": "0.0.84",
|
|
19459
|
+
"resolved": "https://registry.npmjs.org/@appdirect/sfb-theme-plaza/-/sfb-theme-plaza-0.0.84.tgz",
|
|
19460
|
+
"integrity": "sha512-5W5BKnG7P0dm9MEeF37Er1tOfyudfj8PNcjAvGbuDgqTffqBgXYJHfnwCcuHoWrbQDEZDjq9dWCGuiD8wH+AtA=="
|
|
19455
19461
|
},
|
|
19456
19462
|
"node_modules/@appdirect/storefront-utils": {
|
|
19457
19463
|
"version": "0.0.125",
|
|
@@ -27411,9 +27417,9 @@
|
|
|
27411
27417
|
}
|
|
27412
27418
|
},
|
|
27413
27419
|
"node_modules/eslint-plugin-react-hooks": {
|
|
27414
|
-
"version": "4.6.
|
|
27415
|
-
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.
|
|
27416
|
-
"integrity": "sha512-
|
|
27420
|
+
"version": "4.6.2",
|
|
27421
|
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz",
|
|
27422
|
+
"integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==",
|
|
27417
27423
|
"dev": true,
|
|
27418
27424
|
"peer": true,
|
|
27419
27425
|
"engines": {
|
|
@@ -54386,10 +54392,15 @@
|
|
|
54386
54392
|
}
|
|
54387
54393
|
}
|
|
54388
54394
|
},
|
|
54395
|
+
"@appdirect/sfb-theme-classic": {
|
|
54396
|
+
"version": "0.0.27",
|
|
54397
|
+
"resolved": "https://registry.npmjs.org/@appdirect/sfb-theme-classic/-/sfb-theme-classic-0.0.27.tgz",
|
|
54398
|
+
"integrity": "sha512-pmpAJwxaqMSUVTudBq/BXlD4MEEFsGkulR/v+baJYZ44lzvH0ZxlFakAXcZyxAwuM+S3YUNkdHqbC3fGyxYvDw=="
|
|
54399
|
+
},
|
|
54389
54400
|
"@appdirect/sfb-theme-plaza": {
|
|
54390
|
-
"version": "0.0.
|
|
54391
|
-
"resolved": "https://registry.npmjs.org/@appdirect/sfb-theme-plaza/-/sfb-theme-plaza-0.0.
|
|
54392
|
-
"integrity": "sha512-
|
|
54401
|
+
"version": "0.0.84",
|
|
54402
|
+
"resolved": "https://registry.npmjs.org/@appdirect/sfb-theme-plaza/-/sfb-theme-plaza-0.0.84.tgz",
|
|
54403
|
+
"integrity": "sha512-5W5BKnG7P0dm9MEeF37Er1tOfyudfj8PNcjAvGbuDgqTffqBgXYJHfnwCcuHoWrbQDEZDjq9dWCGuiD8wH+AtA=="
|
|
54393
54404
|
},
|
|
54394
54405
|
"@appdirect/storefront-utils": {
|
|
54395
54406
|
"version": "0.0.125",
|
|
@@ -60595,9 +60606,9 @@
|
|
|
60595
60606
|
}
|
|
60596
60607
|
},
|
|
60597
60608
|
"eslint-plugin-react-hooks": {
|
|
60598
|
-
"version": "4.6.
|
|
60599
|
-
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.
|
|
60600
|
-
"integrity": "sha512-
|
|
60609
|
+
"version": "4.6.2",
|
|
60610
|
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz",
|
|
60611
|
+
"integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==",
|
|
60601
60612
|
"dev": true,
|
|
60602
60613
|
"peer": true,
|
|
60603
60614
|
"requires": {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appdirect/sfb-toolkit",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@appdirect/public-custom-app-ui": "^0.0.23",
|
|
59
|
-
"@appdirect/sfb-theme-plaza": "0.0.
|
|
59
|
+
"@appdirect/sfb-theme-plaza": "0.0.84",
|
|
60
60
|
"@appdirect/storefront-utils": "latest",
|
|
61
61
|
"@babel/core": "^7.19.1",
|
|
62
62
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -125,7 +125,8 @@
|
|
|
125
125
|
"webpack": "^5.74.0",
|
|
126
126
|
"webpack-cli": "^4.10.0",
|
|
127
127
|
"webpack-dev-middleware": "^5.3.3",
|
|
128
|
-
"webpack-hot-middleware": "^2.25.2"
|
|
128
|
+
"webpack-hot-middleware": "^2.25.2",
|
|
129
|
+
"@appdirect/sfb-theme-classic": "0.0.27"
|
|
129
130
|
},
|
|
130
131
|
"devDependencies": {
|
|
131
132
|
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
|
package/readme.md
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
# @appdirect/sfb-toolkit
|
|
2
2
|
Storefront Toolkit CLI to power up building your custom theme for AppDirect's Marketplace.
|
|
3
3
|
|
|
4
|
-
Theming a template leverages [Nunjucks Template System](https://mozilla.github.io/nunjucks/) to keep Server Side Rendering.
|
|
5
|
-
It can be easily mixed with eg. HTML, CSS, JavaScript, jQuery, SASS.
|
|
6
|
-
|
|
7
4
|
### Requirements
|
|
8
5
|
* Node 10.x or 12.x for versions 1.x.x to 3.0.6
|
|
9
6
|
* Node 16.x or 18.x for versions 4.x.x or newer
|
|
10
7
|
|
|
11
8
|
### Release Notes:
|
|
12
9
|
|
|
13
|
-
**5.0.
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
- Updated `@appdirect/sfb-theme-plaza` to version 0.0.82 ([sfb-theme-plaza@0.0.82](https://www.npmjs.com/package/@appdirect/sfb-theme-plaza/v/0.0.82))
|
|
10
|
+
**5.0.2**
|
|
11
|
+
- Fixed issues with custom components CSS incorrectly applying in certain situations. (will only work with
|
|
12
|
+
`sfb-theme-components@0.0.361` or newer)
|
|
13
|
+
- Fixed issue with custom components `ProductListing`, `ProductListingControls` and `CategorySidebar` where
|
|
14
|
+
when copying one would not copy the others.
|
|
19
15
|
|
|
20
16
|
### How to use
|
|
21
17
|
The idea behind Toolkit CLI is similar to how `git` CLI has been made.
|
|
@@ -43,11 +39,8 @@ Developers can have multiple themes in a single environment.
|
|
|
43
39
|
|
|
44
40
|
|
|
45
41
|
### Other Resources
|
|
46
|
-
- [Official Documentation](https://
|
|
42
|
+
- [Official Documentation](https://developer.appdirect.com/storefront/)
|
|
47
43
|
- [Checkout Integration](https://help.appdirect.com/platform/Default.htm#StorefrontBuilder/sfb-checkout-intro.htm)
|
|
48
|
-
- [Video Tutorials](https://help.appdirect.com/platform/Default.htm#StorefrontBuilder/sfb-toolkit-intro.htm)
|
|
49
|
-
- [Nunjucks Template System Documentation](https://mozilla.github.io/nunjucks/)
|
|
50
|
-
- [Contact Support](mailto:storefrontbuilder@appdirect.com)
|
|
51
44
|
|
|
52
45
|
|
|
53
46
|
This Repository is owned and maintained by UI Platform team @ AppDirect Inc.
|
|
@@ -22,6 +22,33 @@ const PAGE_ORDERABLE_CONTAINER_DIR = 'page-orderable-container'
|
|
|
22
22
|
const PAGE_ORDERABLE_CONTAINER_BASE_PATH = `@appdirect/sfb-theme-components/src/components/${PAGE_ORDERABLE_CONTAINER_DIR}`
|
|
23
23
|
const getPathToCopyTo = (path) => (path.replace('node_modules/@appdirect/sfb-theme-components',
|
|
24
24
|
`customComponents/sfb_theme_components_${sfbThemeComponentsVersionCustom}`));
|
|
25
|
+
const listingPageComponentsGroup = ['ProductListing', 'ProductListingControls', 'CategorySidebar'];
|
|
26
|
+
const CUSTOM_CSS_AVAILABLE_SINCE_SFB_THEME_VERSION = '0_0_361';
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
const exceptionPaths = [
|
|
30
|
+
'/src/styles/definitions/_mixins',
|
|
31
|
+
'/src/styles/shared/editions',
|
|
32
|
+
'/src/components/header/atoms/header-home-bar/styles/HeaderHomeBar.scss',
|
|
33
|
+
'/src/components/product-listing-controls/styles/ProductListingControls.scss',
|
|
34
|
+
'/src/components/product-question-form/styles/ProductQuestionForm.scss',
|
|
35
|
+
'/src/components/product-banner/styles/ProductBanner.scss',
|
|
36
|
+
'/src/components/product-review-form/styles/ProductReviewForm.scss',
|
|
37
|
+
'/src/components/product-tabs-menu/styles/TabsMenu.scss',
|
|
38
|
+
'/src/components/product-variants/atoms/variant-cta/styles/VariantCta.scss',
|
|
39
|
+
'/src/components/product-variants/atoms/variant-selection-preview/styles/VariantSelectionPreview.scss',
|
|
40
|
+
'/src/components/product-configurator/styles/ProductConfigurator.scss',
|
|
41
|
+
'/src/components/featured-product/styles/FeaturedProduct.scss',
|
|
42
|
+
'/src/components/comparable-products/atoms/compare-product-reviews/styles/CompareProductReviews.scss',
|
|
43
|
+
'/src/components/comparable-products/styles/ComparableProducts.scss',
|
|
44
|
+
'/src/components/header/atoms/common/header-categories-menu/styles/HeaderCategoriesMenu.scss',
|
|
45
|
+
'/src/components/header/atoms/common/header-navigation/styles/HeaderNavigation.scss',
|
|
46
|
+
'/src/components/header/atoms/header-auxiliary-bar/styles/HeaderAuxiliaryBar.scss',
|
|
47
|
+
'/src/components/product-additional-info/styles/AdditionalInfo.scss',
|
|
48
|
+
'/src/components/product-configurator-v2/styles/ProductConfigurator.scss',
|
|
49
|
+
'/src/components/product-variants/atoms/variant-option-list/styles/VariantOptionList.scss'
|
|
50
|
+
|
|
51
|
+
];
|
|
25
52
|
|
|
26
53
|
const formattedComponentStatus = ({ data, statusMessage, statusType, path = '', maxStringLength = 30 }) => {
|
|
27
54
|
const formattingOffset = (maxStringLength + 20) <= 50 ? 50 : maxStringLength + 20;
|
|
@@ -127,6 +154,153 @@ const addDefaultExport = (data, indexFileData, indexExportStrategy) => {
|
|
|
127
154
|
return indexFileData;
|
|
128
155
|
}
|
|
129
156
|
|
|
157
|
+
const isAtomPath = (atomPath) => {
|
|
158
|
+
return !!atomPath.match(/sfb-theme-components\/src\/atoms/)?.index;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const isExceptionPath = (path) => {
|
|
162
|
+
return exceptionPaths.some((exception) => path.includes(exception));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const lowerCaseFirstCharacter = (str) => {
|
|
166
|
+
return str ? str.charAt(0).toLowerCase() + str.slice(1): '';
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const addUniqueCssClass = (fileData, isScssFile, isException) => {
|
|
170
|
+
let updatedFileData = fileData;
|
|
171
|
+
if(isException) {
|
|
172
|
+
updatedFileData = updatedFileData.replaceAll(/\.buttonIcon_(icon|text)/g, `.buttonIcon_${sfbThemeComponentsVersionCustom}_${"$1"}`);
|
|
173
|
+
updatedFileData = updatedFileData.replaceAll(/\.buttonIcon(?!\w+)/g, `.buttonIcon_${sfbThemeComponentsVersionCustom}`);
|
|
174
|
+
updatedFileData = updatedFileData.replaceAll(/\.button_(item|icon|text)/g, `.button_${sfbThemeComponentsVersionCustom}_${"$1"}`);
|
|
175
|
+
updatedFileData = updatedFileData.replaceAll(/\.button(?!\w+)/g, `.button_${sfbThemeComponentsVersionCustom}`);
|
|
176
|
+
updatedFileData = updatedFileData.replaceAll(/(?<=-namespace.+)(\.[a-zA-Z]+)/g, `${"$1"}_${sfbThemeComponentsVersionCustom}`);
|
|
177
|
+
updatedFileData = updatedFileData.replaceAll(/(?<!-namespace.+)\.(menuDropdown|link|select|sideBar|rating|pricing|productCard|contentDropdown)/g, `.${"$1"}_${sfbThemeComponentsVersionCustom}`);
|
|
178
|
+
|
|
179
|
+
return updatedFileData;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
if(isScssFile) {
|
|
183
|
+
const cssClassList = updatedFileData.matchAll(/(\.[a-zA-Z0-9]+)\s*\{|\$?namespace.*"(\.[a-zA-Z]+)"/g);
|
|
184
|
+
if(!cssClassList) {
|
|
185
|
+
return updatedFileData;
|
|
186
|
+
} else {
|
|
187
|
+
const matchedCssClassList = [...cssClassList];
|
|
188
|
+
matchedCssClassList.forEach(cssClass => {
|
|
189
|
+
let namespaceClass;
|
|
190
|
+
if(cssClass?.[1]) {
|
|
191
|
+
namespaceClass = cssClass?.[1];
|
|
192
|
+
const cssClassPattern = new RegExp(`(?<!&)\\${namespaceClass}\\s*{`, 'g');
|
|
193
|
+
updatedFileData = updatedFileData.replace(cssClassPattern, `${namespaceClass}_${sfbThemeComponentsVersionCustom} {`);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if(cssClass?.[2]) {
|
|
197
|
+
namespaceClass = cssClass?.[2];
|
|
198
|
+
const cssNamespacePattern = new RegExp(`["|']\\${namespaceClass}['|"]`, 'g');
|
|
199
|
+
updatedFileData = updatedFileData.replace(cssNamespacePattern, `"${namespaceClass}_${sfbThemeComponentsVersionCustom}"`);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
switch(namespaceClass) {
|
|
203
|
+
case '.languageSwitcher':
|
|
204
|
+
updatedFileData = updatedFileData.replace('.select', `.select_${sfbThemeComponentsVersionCustom}`);
|
|
205
|
+
break;
|
|
206
|
+
case '.buttonsList':
|
|
207
|
+
updatedFileData = updatedFileData.replace(/\.button(?![a-zA-Z]+)/g, `.button_${sfbThemeComponentsVersionCustom}`);
|
|
208
|
+
break;
|
|
209
|
+
case '.selectionPreview':
|
|
210
|
+
updatedFileData = updatedFileData.replace(/(?<=\s+)\.([a-zA-Z]+)/g, `.${"$1"}_${sfbThemeComponentsVersionCustom}`);
|
|
211
|
+
break;
|
|
212
|
+
case '.productListingCard':
|
|
213
|
+
updatedFileData = updatedFileData.replace('.rating', `.rating_${sfbThemeComponentsVersionCustom}`);
|
|
214
|
+
updatedFileData = updatedFileData.replace(/\.checkbox_(group)/g, `.checkbox_${sfbThemeComponentsVersionCustom}_${"$1"}`);
|
|
215
|
+
break;
|
|
216
|
+
case '.button':
|
|
217
|
+
updatedFileData = updatedFileData.replaceAll(/\.button_(item|text)/g, `.button_${sfbThemeComponentsVersionCustom}_${"$1"}`);
|
|
218
|
+
break;
|
|
219
|
+
case '.checkbox':
|
|
220
|
+
updatedFileData = updatedFileData.replace(/\.checkbox_(text)/g, `.checkbox_${sfbThemeComponentsVersionCustom}_${"$1"}`);
|
|
221
|
+
break;
|
|
222
|
+
case '.checkboxUncontrolled':
|
|
223
|
+
updatedFileData = updatedFileData.replace(/\.checkboxUncontrolled_(text)/g, `.checkboxUncontrolled_${sfbThemeComponentsVersionCustom}_${"$1"}`);
|
|
224
|
+
break;
|
|
225
|
+
case '.radioGroup':
|
|
226
|
+
updatedFileData = updatedFileData.replace(/\.radioGroup_(text)/g, `.radioGroup_${sfbThemeComponentsVersionCustom}_${"$1"}`);
|
|
227
|
+
break;
|
|
228
|
+
case '.slider':
|
|
229
|
+
updatedFileData = updatedFileData.replaceAll('.button', `.button_${sfbThemeComponentsVersionCustom}`);
|
|
230
|
+
default:
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
})
|
|
234
|
+
|
|
235
|
+
return updatedFileData;
|
|
236
|
+
}
|
|
237
|
+
} else {
|
|
238
|
+
const namespace = updatedFileData.match(/createNamespace\((.*)\)/);
|
|
239
|
+
if(!namespace) {
|
|
240
|
+
return updatedFileData;
|
|
241
|
+
}
|
|
242
|
+
const namespaceString = namespace?.[1]?.match(/['|"](\w+)['|"]/);
|
|
243
|
+
if(namespaceString) {
|
|
244
|
+
const lowerCaseNamespace = namespaceString?.[1]?.toLowerCase();
|
|
245
|
+
updatedFileData = updatedFileData.replace(
|
|
246
|
+
/createNamespace\('.*'\)/,
|
|
247
|
+
`createNamespace('${namespaceString?.[1]}_${sfbThemeComponentsVersionCustom}')`
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
switch(lowerCaseNamespace) {
|
|
251
|
+
case 'select':
|
|
252
|
+
updatedFileData = updatedFileData.replace(
|
|
253
|
+
/'select'/g,
|
|
254
|
+
`'${lowerCaseFirstCharacter(namespaceString?.[1])}_${sfbThemeComponentsVersionCustom}'`
|
|
255
|
+
)
|
|
256
|
+
break;
|
|
257
|
+
case 'slider':
|
|
258
|
+
updatedFileData = updatedFileData.replace(
|
|
259
|
+
/'button_text'/g,
|
|
260
|
+
`'button_${sfbThemeComponentsVersionCustom}_text'`
|
|
261
|
+
)
|
|
262
|
+
break;
|
|
263
|
+
case 'volumepricingmodal':
|
|
264
|
+
updatedFileData = updatedFileData.replace(
|
|
265
|
+
/'volumePricingModalBodyScrollDisable'/g,
|
|
266
|
+
`'volumePricingModalBodyScrollDisable_${sfbThemeComponentsVersionCustom}'`
|
|
267
|
+
)
|
|
268
|
+
break;
|
|
269
|
+
case 'volumepricing':
|
|
270
|
+
updatedFileData = updatedFileData.replace(
|
|
271
|
+
/"(volumePricing[a-zA-Z]+)"/g,
|
|
272
|
+
`"${"$1"}_${sfbThemeComponentsVersionCustom}"`
|
|
273
|
+
)
|
|
274
|
+
break;
|
|
275
|
+
case 'volumepricingcard':
|
|
276
|
+
updatedFileData = updatedFileData.replace(
|
|
277
|
+
"volumePricingCardIcon",
|
|
278
|
+
`volumePricingCardIcon_${sfbThemeComponentsVersionCustom}`
|
|
279
|
+
)
|
|
280
|
+
break;
|
|
281
|
+
default:
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return updatedFileData;
|
|
286
|
+
} else {
|
|
287
|
+
// namespace is defined as a variable
|
|
288
|
+
const namespaceVariablePattern = new RegExp(`${namespace?.[1]}\\s*=\\s*['|"](\\w+)['|"]`);
|
|
289
|
+
const namespaceVariable = updatedFileData.match(namespaceVariablePattern);
|
|
290
|
+
const namespaceStringPattern = new RegExp(`${namespace?.[1]}\\s*=\\s*['|"]${namespaceVariable?.[1]}['|"]`);
|
|
291
|
+
|
|
292
|
+
if(namespaceVariable) {
|
|
293
|
+
updatedFileData = updatedFileData.replace(
|
|
294
|
+
namespaceStringPattern,
|
|
295
|
+
`${namespace?.[1]} = '${namespaceVariable?.[1]}_${sfbThemeComponentsVersionCustom}'`
|
|
296
|
+
)
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return updatedFileData;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
130
304
|
const sfbThemeComponentsDeepCopy = (
|
|
131
305
|
pathsToFileList,
|
|
132
306
|
maxComponentStringLength,
|
|
@@ -176,7 +350,13 @@ const sfbThemeComponentsDeepCopy = (
|
|
|
176
350
|
const folderPath = pathToCopyTo.slice(0, pathToCopyTo.lastIndexOf('/'));
|
|
177
351
|
fs.mkdirSync(folderPath, { recursive: true });
|
|
178
352
|
|
|
179
|
-
fileData = replacePageOrderableContainerImports(fileData)
|
|
353
|
+
fileData = replacePageOrderableContainerImports(fileData);
|
|
354
|
+
|
|
355
|
+
const isException = isExceptionPath(path);
|
|
356
|
+
if(sfbThemeComponentsVersionCustom >= CUSTOM_CSS_AVAILABLE_SINCE_SFB_THEME_VERSION
|
|
357
|
+
&& isAtomPath(path) || isExceptionPath(path)){
|
|
358
|
+
fileData = addUniqueCssClass(fileData, isScssFile, isException);
|
|
359
|
+
}
|
|
180
360
|
|
|
181
361
|
fs.writeFileSync(pathToCopyTo, fileData);
|
|
182
362
|
if(componentsToCopy[path]) {
|
|
@@ -331,6 +511,14 @@ const sfbThemeComponentsDeepCopy = (
|
|
|
331
511
|
return;
|
|
332
512
|
}
|
|
333
513
|
|
|
514
|
+
if (sfbThemeComponentsVersionCustom >= CUSTOM_CSS_AVAILABLE_SINCE_SFB_THEME_VERSION) {
|
|
515
|
+
const listingPageComponentsSelected = listingPageComponentsGroup.some(comp =>
|
|
516
|
+
selectedComponentsList.includes(comp));
|
|
517
|
+
if(listingPageComponentsSelected) {
|
|
518
|
+
selectedComponentsList = [ ...selectedComponentsList, ...listingPageComponentsGroup];
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
334
522
|
selectedComponentsList.forEach(component => {
|
|
335
523
|
const hasComponent = componentMap[component.toLowerCase()];
|
|
336
524
|
if(hasComponent) {
|