@mjhls/mjh-framework 1.0.543-canari-v3 → 1.0.543

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.543-canari-v3
2
+ # mjh-framework v. 1.0.543
3
3
 
4
4
  > Foundation Framework
5
5
 
package/dist/cjs/View.js CHANGED
@@ -322,38 +322,22 @@ var Article = function Article(props) {
322
322
  visibleFlag = _useState4[0],
323
323
  setVisibleFlag = _useState4[1];
324
324
 
325
- var _useState5 = React.useState(false),
326
- _useState6 = slicedToArray._slicedToArray(_useState5, 2),
327
- adPageLoaded = _useState6[0],
328
- setAdPageLoaded = _useState6[1];
329
-
330
- var scrollCheck = function scrollCheck() {
331
- setAdPageLoaded(true);
332
- };
333
-
334
- React.useEffect(function () {
335
- window.addEventListener('scroll', scrollCheck);
336
- return function () {
337
- return window.removeEventListener('scroll', scrollCheck);
338
- };
339
- }, []);
340
-
341
325
  var summary = getArticleSummary(props.article);
342
326
 
343
- var _useState7 = React.useState(1),
327
+ var _useState5 = React.useState(1),
328
+ _useState6 = slicedToArray._slicedToArray(_useState5, 2),
329
+ auth = _useState6[0],
330
+ setAuth = _useState6[1];
331
+
332
+ var _useState7 = React.useState(''),
344
333
  _useState8 = slicedToArray._slicedToArray(_useState7, 2),
345
- auth = _useState8[0],
346
- setAuth = _useState8[1];
334
+ passwordKey = _useState8[0],
335
+ setPasswordKey = _useState8[1];
347
336
 
348
- var _useState9 = React.useState(''),
337
+ var _useState9 = React.useState(body),
349
338
  _useState10 = slicedToArray._slicedToArray(_useState9, 2),
350
- passwordKey = _useState10[0],
351
- setPasswordKey = _useState10[1];
352
-
353
- var _useState11 = React.useState(body),
354
- _useState12 = slicedToArray._slicedToArray(_useState11, 2),
355
- articleBody = _useState12[0],
356
- setArticleBody = _useState12[1];
339
+ articleBody = _useState10[0],
340
+ setArticleBody = _useState10[1];
357
341
 
358
342
  var isCutomPage = function isCutomPage(article) {
359
343
  var url = article.url.current;
@@ -793,6 +777,28 @@ var Article = function Article(props) {
793
777
  summary
794
778
  )
795
779
  ),
780
+ React__default.createElement(
781
+ 'div',
782
+ { className: 'ad-box', style: { textAlign: 'center' } },
783
+ main.main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
784
+ if (index === 0) {
785
+ return React__default.createElement(
786
+ 'div',
787
+ {
788
+ key: index,
789
+ id: 'addid-' + index,
790
+ style: {
791
+ display: 'flex',
792
+ flex: '1 0 auto',
793
+ justifyContent: 'center',
794
+ alignItems: 'center',
795
+ textAlign: 'center'
796
+ } },
797
+ ad.component
798
+ );
799
+ }
800
+ })
801
+ ),
796
802
  React__default.createElement(
797
803
  'div',
798
804
  { className: 'block-content mt-3' },
@@ -829,29 +835,7 @@ var Article = function Article(props) {
829
835
  renderIsiContent(props.article)
830
836
  )
831
837
  ),
832
- React__default.createElement(
833
- 'div',
834
- { className: 'ad-box', style: { textAlign: 'center' } },
835
- main.main_39 && adPageLoaded && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
836
- if (index === 0) {
837
- return React__default.createElement(
838
- 'div',
839
- {
840
- key: index,
841
- id: 'addid-' + index,
842
- style: {
843
- display: 'flex',
844
- flex: '1 0 auto',
845
- justifyContent: 'center',
846
- alignItems: 'center',
847
- textAlign: 'center'
848
- } },
849
- ad.component
850
- );
851
- }
852
- })
853
- ),
854
- main.main_39 && adPageLoaded && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
838
+ main.main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
855
839
  if (index > 0) {
856
840
  return React__default.createElement(
857
841
  'div',
package/dist/esm/View.js CHANGED
@@ -316,38 +316,22 @@ var Article = function Article(props) {
316
316
  visibleFlag = _useState4[0],
317
317
  setVisibleFlag = _useState4[1];
318
318
 
319
- var _useState5 = useState(false),
320
- _useState6 = _slicedToArray(_useState5, 2),
321
- adPageLoaded = _useState6[0],
322
- setAdPageLoaded = _useState6[1];
323
-
324
- var scrollCheck = function scrollCheck() {
325
- setAdPageLoaded(true);
326
- };
327
-
328
- useEffect(function () {
329
- window.addEventListener('scroll', scrollCheck);
330
- return function () {
331
- return window.removeEventListener('scroll', scrollCheck);
332
- };
333
- }, []);
334
-
335
319
  var summary = getArticleSummary(props.article);
336
320
 
337
- var _useState7 = useState(1),
321
+ var _useState5 = useState(1),
322
+ _useState6 = _slicedToArray(_useState5, 2),
323
+ auth = _useState6[0],
324
+ setAuth = _useState6[1];
325
+
326
+ var _useState7 = useState(''),
338
327
  _useState8 = _slicedToArray(_useState7, 2),
339
- auth = _useState8[0],
340
- setAuth = _useState8[1];
328
+ passwordKey = _useState8[0],
329
+ setPasswordKey = _useState8[1];
341
330
 
342
- var _useState9 = useState(''),
331
+ var _useState9 = useState(body),
343
332
  _useState10 = _slicedToArray(_useState9, 2),
344
- passwordKey = _useState10[0],
345
- setPasswordKey = _useState10[1];
346
-
347
- var _useState11 = useState(body),
348
- _useState12 = _slicedToArray(_useState11, 2),
349
- articleBody = _useState12[0],
350
- setArticleBody = _useState12[1];
333
+ articleBody = _useState10[0],
334
+ setArticleBody = _useState10[1];
351
335
 
352
336
  var isCutomPage = function isCutomPage(article) {
353
337
  var url = article.url.current;
@@ -787,6 +771,28 @@ var Article = function Article(props) {
787
771
  summary
788
772
  )
789
773
  ),
774
+ React__default.createElement(
775
+ 'div',
776
+ { className: 'ad-box', style: { textAlign: 'center' } },
777
+ main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
778
+ if (index === 0) {
779
+ return React__default.createElement(
780
+ 'div',
781
+ {
782
+ key: index,
783
+ id: 'addid-' + index,
784
+ style: {
785
+ display: 'flex',
786
+ flex: '1 0 auto',
787
+ justifyContent: 'center',
788
+ alignItems: 'center',
789
+ textAlign: 'center'
790
+ } },
791
+ ad.component
792
+ );
793
+ }
794
+ })
795
+ ),
790
796
  React__default.createElement(
791
797
  'div',
792
798
  { className: 'block-content mt-3' },
@@ -823,29 +829,7 @@ var Article = function Article(props) {
823
829
  renderIsiContent(props.article)
824
830
  )
825
831
  ),
826
- React__default.createElement(
827
- 'div',
828
- { className: 'ad-box', style: { textAlign: 'center' } },
829
- main_39 && adPageLoaded && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
830
- if (index === 0) {
831
- return React__default.createElement(
832
- 'div',
833
- {
834
- key: index,
835
- id: 'addid-' + index,
836
- style: {
837
- display: 'flex',
838
- flex: '1 0 auto',
839
- justifyContent: 'center',
840
- alignItems: 'center',
841
- textAlign: 'center'
842
- } },
843
- ad.component
844
- );
845
- }
846
- })
847
- ),
848
- main_39 && adPageLoaded && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
832
+ main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
849
833
  if (index > 0) {
850
834
  return React__default.createElement(
851
835
  'div',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.543-canari-v3",
3
+ "version": "1.0.543",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",