@mjhls/mjh-framework 1.0.684-beta.0 → 1.0.684-beta.1
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/dist/cjs/View.js +81 -53
- package/dist/esm/View.js +81 -53
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -689,11 +689,15 @@ var Article = function Article(props) {
|
|
|
689
689
|
return React__default.createElement(
|
|
690
690
|
React__default.Fragment,
|
|
691
691
|
null,
|
|
692
|
-
React__default.createElement(
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
692
|
+
React__default.createElement(
|
|
693
|
+
'div',
|
|
694
|
+
{ 'class': 'clearfix' },
|
|
695
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
696
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
697
|
+
blocks: blockContentSection1,
|
|
698
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
699
|
+
}, client.config()))
|
|
700
|
+
),
|
|
697
701
|
React__default.createElement('span', { className: 'clearfix' }),
|
|
698
702
|
React__default.createElement(
|
|
699
703
|
'div',
|
|
@@ -707,21 +711,24 @@ var Article = function Article(props) {
|
|
|
707
711
|
React__default.createElement(AdSlot, _extends$1._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
708
712
|
),
|
|
709
713
|
blockContentIntermediateSection.length > 0 && React__default.createElement(
|
|
710
|
-
|
|
711
|
-
|
|
714
|
+
'div',
|
|
715
|
+
{ 'class': 'clearfix' },
|
|
712
716
|
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
713
717
|
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
714
718
|
blocks: blockContentIntermediateSection,
|
|
715
719
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
716
|
-
}, client.config()))
|
|
717
|
-
React__default.createElement('span', { className: 'clearfix' })
|
|
720
|
+
}, client.config()))
|
|
718
721
|
),
|
|
719
722
|
React__default.createElement(RelatedContent, null),
|
|
720
|
-
React__default.createElement(
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
723
|
+
React__default.createElement(
|
|
724
|
+
'div',
|
|
725
|
+
{ 'class': 'clearfix' },
|
|
726
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
727
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
728
|
+
blocks: blockContentSection2,
|
|
729
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
730
|
+
}, client.config()))
|
|
731
|
+
)
|
|
725
732
|
);
|
|
726
733
|
} else if (indexes.length >= 2 && body.length >= 3 && payload.contextualAD && !payload.contextualVideoAD) {
|
|
727
734
|
payload = _extends$1._extends({}, payload, {
|
|
@@ -795,11 +802,15 @@ var Article = function Article(props) {
|
|
|
795
802
|
return React__default.createElement(
|
|
796
803
|
React__default.Fragment,
|
|
797
804
|
null,
|
|
798
|
-
React__default.createElement(
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
805
|
+
React__default.createElement(
|
|
806
|
+
'div',
|
|
807
|
+
{ 'class': 'clearfix' },
|
|
808
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
809
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
810
|
+
blocks: _blockContentSection,
|
|
811
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
812
|
+
}, client.config()))
|
|
813
|
+
),
|
|
803
814
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
804
815
|
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
805
816
|
'div',
|
|
@@ -808,21 +819,24 @@ var Article = function Article(props) {
|
|
|
808
819
|
),
|
|
809
820
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
810
821
|
_blockContentIntermediateSection.length > 0 && React__default.createElement(
|
|
811
|
-
|
|
812
|
-
|
|
822
|
+
'div',
|
|
823
|
+
{ 'class': 'clearfix' },
|
|
813
824
|
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
814
825
|
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
815
826
|
blocks: _blockContentIntermediateSection,
|
|
816
827
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
817
|
-
}, client.config()))
|
|
818
|
-
React__default.createElement('span', { className: 'clearfix' })
|
|
828
|
+
}, client.config()))
|
|
819
829
|
),
|
|
820
830
|
React__default.createElement(RelatedContent, null),
|
|
821
|
-
React__default.createElement(
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
831
|
+
React__default.createElement(
|
|
832
|
+
'div',
|
|
833
|
+
{ 'class': 'clearfix' },
|
|
834
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
835
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
836
|
+
blocks: _blockContentSection2,
|
|
837
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
838
|
+
}, client.config()))
|
|
839
|
+
)
|
|
826
840
|
);
|
|
827
841
|
} else if (indexes.length >= 2 && body.length > 3 && payload.contextualVideoAD && !payload.contextualAD) {
|
|
828
842
|
payload = _extends$1._extends({}, payload, {
|
|
@@ -872,11 +886,15 @@ var Article = function Article(props) {
|
|
|
872
886
|
return React__default.createElement(
|
|
873
887
|
React__default.Fragment,
|
|
874
888
|
null,
|
|
875
|
-
React__default.createElement(
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
889
|
+
React__default.createElement(
|
|
890
|
+
'div',
|
|
891
|
+
{ 'class': 'clearfix' },
|
|
892
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
893
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
894
|
+
blocks: _blockContentSection3,
|
|
895
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
896
|
+
}, client.config()))
|
|
897
|
+
),
|
|
880
898
|
React__default.createElement('span', { className: 'clearfix' }),
|
|
881
899
|
React__default.createElement(
|
|
882
900
|
'div',
|
|
@@ -884,21 +902,24 @@ var Article = function Article(props) {
|
|
|
884
902
|
React__default.createElement(AdSlot, _extends$1._extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
885
903
|
),
|
|
886
904
|
_blockContentIntermediateSection2.length > 0 && React__default.createElement(
|
|
887
|
-
|
|
888
|
-
|
|
905
|
+
'div',
|
|
906
|
+
{ 'class': 'clearfix' },
|
|
889
907
|
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
890
908
|
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
891
909
|
blocks: _blockContentIntermediateSection2,
|
|
892
910
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
893
|
-
}, client.config()))
|
|
894
|
-
React__default.createElement('span', { className: 'clearfix' })
|
|
911
|
+
}, client.config()))
|
|
895
912
|
),
|
|
896
913
|
React__default.createElement(RelatedContent, null),
|
|
897
|
-
React__default.createElement(
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
914
|
+
React__default.createElement(
|
|
915
|
+
'div',
|
|
916
|
+
{ 'class': 'clearfix' },
|
|
917
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
918
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
919
|
+
blocks: _blockContentSection4,
|
|
920
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
921
|
+
}, client.config()))
|
|
922
|
+
)
|
|
902
923
|
);
|
|
903
924
|
} else if (indexes.length >= 2 && body.length > 3 && showRelatedArticles) {
|
|
904
925
|
var _selectedIndex6 = indexes[1] + 1;
|
|
@@ -928,18 +949,25 @@ var Article = function Article(props) {
|
|
|
928
949
|
return React__default.createElement(
|
|
929
950
|
React__default.Fragment,
|
|
930
951
|
null,
|
|
931
|
-
React__default.createElement(
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
952
|
+
React__default.createElement(
|
|
953
|
+
'div',
|
|
954
|
+
{ 'class': 'clearfix' },
|
|
955
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
956
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
957
|
+
blocks: _blockContentSection5,
|
|
958
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
959
|
+
}, client.config()))
|
|
960
|
+
),
|
|
937
961
|
React__default.createElement(RelatedContent, null),
|
|
938
|
-
React__default.createElement(
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
962
|
+
React__default.createElement(
|
|
963
|
+
'div',
|
|
964
|
+
{ 'class': 'clearfix' },
|
|
965
|
+
React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
|
966
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
967
|
+
blocks: _blockContentSection6,
|
|
968
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
969
|
+
}, client.config()))
|
|
970
|
+
)
|
|
943
971
|
);
|
|
944
972
|
} else {
|
|
945
973
|
return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
|
package/dist/esm/View.js
CHANGED
|
@@ -683,11 +683,15 @@ var Article = function Article(props) {
|
|
|
683
683
|
return React__default.createElement(
|
|
684
684
|
React__default.Fragment,
|
|
685
685
|
null,
|
|
686
|
-
React__default.createElement(
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
686
|
+
React__default.createElement(
|
|
687
|
+
'div',
|
|
688
|
+
{ 'class': 'clearfix' },
|
|
689
|
+
React__default.createElement(BlockContent, _extends({
|
|
690
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
691
|
+
blocks: blockContentSection1,
|
|
692
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
693
|
+
}, client.config()))
|
|
694
|
+
),
|
|
691
695
|
React__default.createElement('span', { className: 'clearfix' }),
|
|
692
696
|
React__default.createElement(
|
|
693
697
|
'div',
|
|
@@ -701,21 +705,24 @@ var Article = function Article(props) {
|
|
|
701
705
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: checkIsVideoAdFound }))
|
|
702
706
|
),
|
|
703
707
|
blockContentIntermediateSection.length > 0 && React__default.createElement(
|
|
704
|
-
|
|
705
|
-
|
|
708
|
+
'div',
|
|
709
|
+
{ 'class': 'clearfix' },
|
|
706
710
|
React__default.createElement(BlockContent, _extends({
|
|
707
711
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
708
712
|
blocks: blockContentIntermediateSection,
|
|
709
713
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
710
|
-
}, client.config()))
|
|
711
|
-
React__default.createElement('span', { className: 'clearfix' })
|
|
714
|
+
}, client.config()))
|
|
712
715
|
),
|
|
713
716
|
React__default.createElement(RelatedContent, null),
|
|
714
|
-
React__default.createElement(
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
717
|
+
React__default.createElement(
|
|
718
|
+
'div',
|
|
719
|
+
{ 'class': 'clearfix' },
|
|
720
|
+
React__default.createElement(BlockContent, _extends({
|
|
721
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
722
|
+
blocks: blockContentSection2,
|
|
723
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
724
|
+
}, client.config()))
|
|
725
|
+
)
|
|
719
726
|
);
|
|
720
727
|
} else if (indexes.length >= 2 && body.length >= 3 && payload.contextualAD && !payload.contextualVideoAD) {
|
|
721
728
|
payload = _extends({}, payload, {
|
|
@@ -789,11 +796,15 @@ var Article = function Article(props) {
|
|
|
789
796
|
return React__default.createElement(
|
|
790
797
|
React__default.Fragment,
|
|
791
798
|
null,
|
|
792
|
-
React__default.createElement(
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
799
|
+
React__default.createElement(
|
|
800
|
+
'div',
|
|
801
|
+
{ 'class': 'clearfix' },
|
|
802
|
+
React__default.createElement(BlockContent, _extends({
|
|
803
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
804
|
+
blocks: _blockContentSection,
|
|
805
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
806
|
+
}, client.config()))
|
|
807
|
+
),
|
|
797
808
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
798
809
|
(visibleFlag || queueData && queueData.length === 1 || !props.infiniteScroll) && React__default.createElement(
|
|
799
810
|
'div',
|
|
@@ -802,21 +813,24 @@ var Article = function Article(props) {
|
|
|
802
813
|
),
|
|
803
814
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
804
815
|
_blockContentIntermediateSection.length > 0 && React__default.createElement(
|
|
805
|
-
|
|
806
|
-
|
|
816
|
+
'div',
|
|
817
|
+
{ 'class': 'clearfix' },
|
|
807
818
|
React__default.createElement(BlockContent, _extends({
|
|
808
819
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
809
820
|
blocks: _blockContentIntermediateSection,
|
|
810
821
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
811
|
-
}, client.config()))
|
|
812
|
-
React__default.createElement('span', { className: 'clearfix' })
|
|
822
|
+
}, client.config()))
|
|
813
823
|
),
|
|
814
824
|
React__default.createElement(RelatedContent, null),
|
|
815
|
-
React__default.createElement(
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
825
|
+
React__default.createElement(
|
|
826
|
+
'div',
|
|
827
|
+
{ 'class': 'clearfix' },
|
|
828
|
+
React__default.createElement(BlockContent, _extends({
|
|
829
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
830
|
+
blocks: _blockContentSection2,
|
|
831
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
832
|
+
}, client.config()))
|
|
833
|
+
)
|
|
820
834
|
);
|
|
821
835
|
} else if (indexes.length >= 2 && body.length > 3 && payload.contextualVideoAD && !payload.contextualAD) {
|
|
822
836
|
payload = _extends({}, payload, {
|
|
@@ -866,11 +880,15 @@ var Article = function Article(props) {
|
|
|
866
880
|
return React__default.createElement(
|
|
867
881
|
React__default.Fragment,
|
|
868
882
|
null,
|
|
869
|
-
React__default.createElement(
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
883
|
+
React__default.createElement(
|
|
884
|
+
'div',
|
|
885
|
+
{ 'class': 'clearfix' },
|
|
886
|
+
React__default.createElement(BlockContent, _extends({
|
|
887
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
888
|
+
blocks: _blockContentSection3,
|
|
889
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
890
|
+
}, client.config()))
|
|
891
|
+
),
|
|
874
892
|
React__default.createElement('span', { className: 'clearfix' }),
|
|
875
893
|
React__default.createElement(
|
|
876
894
|
'div',
|
|
@@ -878,21 +896,24 @@ var Article = function Article(props) {
|
|
|
878
896
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: false, checkIsAdFound: _checkIsAdFound2 }))
|
|
879
897
|
),
|
|
880
898
|
_blockContentIntermediateSection2.length > 0 && React__default.createElement(
|
|
881
|
-
|
|
882
|
-
|
|
899
|
+
'div',
|
|
900
|
+
{ 'class': 'clearfix' },
|
|
883
901
|
React__default.createElement(BlockContent, _extends({
|
|
884
902
|
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
885
903
|
blocks: _blockContentIntermediateSection2,
|
|
886
904
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
887
|
-
}, client.config()))
|
|
888
|
-
React__default.createElement('span', { className: 'clearfix' })
|
|
905
|
+
}, client.config()))
|
|
889
906
|
),
|
|
890
907
|
React__default.createElement(RelatedContent, null),
|
|
891
|
-
React__default.createElement(
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
908
|
+
React__default.createElement(
|
|
909
|
+
'div',
|
|
910
|
+
{ 'class': 'clearfix' },
|
|
911
|
+
React__default.createElement(BlockContent, _extends({
|
|
912
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
913
|
+
blocks: _blockContentSection4,
|
|
914
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
915
|
+
}, client.config()))
|
|
916
|
+
)
|
|
896
917
|
);
|
|
897
918
|
} else if (indexes.length >= 2 && body.length > 3 && showRelatedArticles) {
|
|
898
919
|
var _selectedIndex6 = indexes[1] + 1;
|
|
@@ -922,18 +943,25 @@ var Article = function Article(props) {
|
|
|
922
943
|
return React__default.createElement(
|
|
923
944
|
React__default.Fragment,
|
|
924
945
|
null,
|
|
925
|
-
React__default.createElement(
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
946
|
+
React__default.createElement(
|
|
947
|
+
'div',
|
|
948
|
+
{ 'class': 'clearfix' },
|
|
949
|
+
React__default.createElement(BlockContent, _extends({
|
|
950
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, null, null, targeting),
|
|
951
|
+
blocks: _blockContentSection5,
|
|
952
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
953
|
+
}, client.config()))
|
|
954
|
+
),
|
|
931
955
|
React__default.createElement(RelatedContent, null),
|
|
932
|
-
React__default.createElement(
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
956
|
+
React__default.createElement(
|
|
957
|
+
'div',
|
|
958
|
+
{ 'class': 'clearfix' },
|
|
959
|
+
React__default.createElement(BlockContent, _extends({
|
|
960
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, null, null, null, targeting),
|
|
961
|
+
blocks: _blockContentSection6,
|
|
962
|
+
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
963
|
+
}, client.config()))
|
|
964
|
+
)
|
|
937
965
|
);
|
|
938
966
|
} else {
|
|
939
967
|
return React__default.createElement(BlockContent, _extends({
|