@mjhls/mjh-framework 1.0.261 → 1.0.263
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 +1 -1
- package/dist/cjs/{AdSlot-f998168a.js → AdSlot-1c436555.js} +1 -1
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/{GridContent-002e17fb.js → GridContent-68dc29f1.js} +1 -1
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/{Normal-a0a4f0b8.js → Normal-d5d437f2.js} +43 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/index.js +3 -3
- package/dist/esm/{AdSlot-3167a14d.js → AdSlot-5b019415.js} +1 -1
- package/dist/esm/DeckContent.js +1 -1
- package/dist/esm/{GridContent-e0d261eb.js → GridContent-7ec2de47.js} +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/{Normal-efd518ce.js → Normal-e86a38cf.js} +43 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/index.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1115,7 +1115,7 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
|
|
|
1115
1115
|
|
|
1116
1116
|
return React__default.createElement(
|
|
1117
1117
|
'div',
|
|
1118
|
-
{ className: className },
|
|
1118
|
+
{ className: className, style: { textAlign: 'center' } },
|
|
1119
1119
|
React__default.createElement(index.lib_2, {
|
|
1120
1120
|
slotId: slotId,
|
|
1121
1121
|
sizes: sizes,
|
package/dist/cjs/DeckContent.js
CHANGED
|
@@ -28,7 +28,7 @@ var index$1 = require('./index-be0c82be.js');
|
|
|
28
28
|
var index$2 = require('./index-fa0fb52c.js');
|
|
29
29
|
var entities = require('./entities-310b46ee.js');
|
|
30
30
|
require('./slicedToArray-e38fb29d.js');
|
|
31
|
-
var AdSlot = require('./AdSlot-
|
|
31
|
+
var AdSlot = require('./AdSlot-1c436555.js');
|
|
32
32
|
require('./promise-b96c61f8.js');
|
|
33
33
|
|
|
34
34
|
var DeckContent = function (_React$Component) {
|
|
@@ -21,7 +21,7 @@ var Router__default = _interopDefault(Router);
|
|
|
21
21
|
var index$1 = require('./index-be0c82be.js');
|
|
22
22
|
var index$2 = require('./index-fa0fb52c.js');
|
|
23
23
|
var entities = require('./entities-310b46ee.js');
|
|
24
|
-
var AdSlot = require('./AdSlot-
|
|
24
|
+
var AdSlot = require('./AdSlot-1c436555.js');
|
|
25
25
|
var get$1 = require('./get-1f91592f.js');
|
|
26
26
|
|
|
27
27
|
var Dfp = React__default.lazy(function () {
|
package/dist/cjs/GridContent.js
CHANGED
|
@@ -24,10 +24,10 @@ require('./index-be0c82be.js');
|
|
|
24
24
|
require('./index-fa0fb52c.js');
|
|
25
25
|
require('./entities-310b46ee.js');
|
|
26
26
|
require('./slicedToArray-e38fb29d.js');
|
|
27
|
-
require('./AdSlot-
|
|
27
|
+
require('./AdSlot-1c436555.js');
|
|
28
28
|
require('./promise-b96c61f8.js');
|
|
29
29
|
require('./get-1f91592f.js');
|
|
30
|
-
var GridContent = require('./GridContent-
|
|
30
|
+
var GridContent = require('./GridContent-68dc29f1.js');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -12,7 +12,7 @@ var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
|
12
12
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
13
13
|
var Link = _interopDefault(require('next/link'));
|
|
14
14
|
var slicedToArray = require('./slicedToArray-e38fb29d.js');
|
|
15
|
-
var AdSlot = require('./AdSlot-
|
|
15
|
+
var AdSlot = require('./AdSlot-1c436555.js');
|
|
16
16
|
var get$1 = require('./get-1f91592f.js');
|
|
17
17
|
var reactBootstrap = require('react-bootstrap');
|
|
18
18
|
var index_esm = require('./index.esm-340d3792.js');
|
|
@@ -2015,6 +2015,11 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
2015
2015
|
isOpen = _useState8[0],
|
|
2016
2016
|
setIsOpen = _useState8[1];
|
|
2017
2017
|
|
|
2018
|
+
var _useState9 = React.useState(0),
|
|
2019
|
+
_useState10 = slicedToArray._slicedToArray(_useState9, 2),
|
|
2020
|
+
resolution = _useState10[0],
|
|
2021
|
+
setResolution = _useState10[1];
|
|
2022
|
+
|
|
2018
2023
|
React.useEffect(function () {
|
|
2019
2024
|
document.addEventListener('scroll', trackScrolling);
|
|
2020
2025
|
return function () {
|
|
@@ -2028,6 +2033,26 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
2028
2033
|
setUserAgent(navigator.userAgent.toString());
|
|
2029
2034
|
}, []);
|
|
2030
2035
|
|
|
2036
|
+
React.useEffect(function () {
|
|
2037
|
+
if (resolution === 0) {
|
|
2038
|
+
setResolution(window.innerWidth);
|
|
2039
|
+
}
|
|
2040
|
+
var handleResize = function handleResize() {
|
|
2041
|
+
if (resolution === 0) {
|
|
2042
|
+
setResolution(window.innerWidth);
|
|
2043
|
+
} else {
|
|
2044
|
+
if (window.innerWidth < 768 && resolution >= 768) {
|
|
2045
|
+
console.log('Detected Mobile Resolution');
|
|
2046
|
+
window.location.reload();
|
|
2047
|
+
} else if (window.innerWidth >= 768 && resolution < 768) {
|
|
2048
|
+
console.log('Detected Tablet/Desktop Resolution');
|
|
2049
|
+
window.location.reload();
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
};
|
|
2053
|
+
window.addEventListener('resize', handleResize);
|
|
2054
|
+
}, [resolution]);
|
|
2055
|
+
|
|
2031
2056
|
React.useEffect(function () {
|
|
2032
2057
|
setScreenWidth(parseInt(window.innerWidth));
|
|
2033
2058
|
}, []);
|
|
@@ -2332,13 +2357,29 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
2332
2357
|
_ref$targeting = _ref.targeting,
|
|
2333
2358
|
targeting = _ref$targeting === undefined ? {} : _ref$targeting;
|
|
2334
2359
|
|
|
2360
|
+
var _useState = React.useState(),
|
|
2361
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
2362
|
+
mobileView = _useState2[0],
|
|
2363
|
+
setMobileView = _useState2[1];
|
|
2364
|
+
|
|
2365
|
+
React.useEffect(function () {
|
|
2366
|
+
if (window && window.innerWidth && window.innerWidth < 768) {
|
|
2367
|
+
setMobileView(true);
|
|
2368
|
+
} else {
|
|
2369
|
+
setMobileView(false);
|
|
2370
|
+
}
|
|
2371
|
+
}, []);
|
|
2372
|
+
|
|
2373
|
+
var browserSizes = [[728, 90], [970, 90], [320, 50], [300, 50]];
|
|
2374
|
+
var mobileSizes = [[320, 50], [300, 50]];
|
|
2375
|
+
|
|
2335
2376
|
return React__default.createElement(AdSlot.DFPAdSlot, {
|
|
2336
2377
|
slotId: slotId,
|
|
2337
2378
|
networkID: networkID,
|
|
2338
2379
|
adUnit: adUnit,
|
|
2339
2380
|
targeting: targeting,
|
|
2340
2381
|
className: 'AD728x90',
|
|
2341
|
-
sizes:
|
|
2382
|
+
sizes: mobileView ? mobileSizes : browserSizes,
|
|
2342
2383
|
sizeMapping: [{
|
|
2343
2384
|
viewport: [768, 1],
|
|
2344
2385
|
sizes: [[728, 90], [970, 90]]
|
|
@@ -14,13 +14,13 @@ require('react-bootstrap/Row');
|
|
|
14
14
|
require('react-bootstrap/Col');
|
|
15
15
|
require('next/link');
|
|
16
16
|
require('./slicedToArray-e38fb29d.js');
|
|
17
|
-
require('./AdSlot-
|
|
17
|
+
require('./AdSlot-1c436555.js');
|
|
18
18
|
require('./promise-b96c61f8.js');
|
|
19
19
|
require('./get-1f91592f.js');
|
|
20
20
|
require('react-bootstrap');
|
|
21
21
|
require('./index.esm-340d3792.js');
|
|
22
22
|
require('react-bootstrap/Button');
|
|
23
|
-
var TemplateNormal = require('./Normal-
|
|
23
|
+
var TemplateNormal = require('./Normal-d5d437f2.js');
|
|
24
24
|
require('react-bootstrap/ListGroup');
|
|
25
25
|
require('next/head');
|
|
26
26
|
require('react-bootstrap/Nav');
|
package/dist/cjs/index.js
CHANGED
|
@@ -30,11 +30,11 @@ var index$1 = require('./index-be0c82be.js');
|
|
|
30
30
|
require('./index-fa0fb52c.js');
|
|
31
31
|
var entities = require('./entities-310b46ee.js');
|
|
32
32
|
var slicedToArray = require('./slicedToArray-e38fb29d.js');
|
|
33
|
-
var AdSlot = require('./AdSlot-
|
|
33
|
+
var AdSlot = require('./AdSlot-1c436555.js');
|
|
34
34
|
require('./promise-b96c61f8.js');
|
|
35
35
|
var DeckContent = require('./DeckContent.js');
|
|
36
36
|
require('./get-1f91592f.js');
|
|
37
|
-
var GridContent = require('./GridContent-
|
|
37
|
+
var GridContent = require('./GridContent-68dc29f1.js');
|
|
38
38
|
var DeckQueue = require('./DeckQueue.js');
|
|
39
39
|
require('react-bootstrap/Media');
|
|
40
40
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
@@ -52,7 +52,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
52
52
|
require('react-bootstrap/Badge');
|
|
53
53
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
54
54
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
55
|
-
var TemplateNormal = require('./Normal-
|
|
55
|
+
var TemplateNormal = require('./Normal-d5d437f2.js');
|
|
56
56
|
require('react-bootstrap/ListGroup');
|
|
57
57
|
var Head = _interopDefault(require('next/head'));
|
|
58
58
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -1110,7 +1110,7 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
|
|
|
1110
1110
|
|
|
1111
1111
|
return React__default.createElement(
|
|
1112
1112
|
'div',
|
|
1113
|
-
{ className: className },
|
|
1113
|
+
{ className: className, style: { textAlign: 'center' } },
|
|
1114
1114
|
React__default.createElement(lib_2, {
|
|
1115
1115
|
slotId: slotId,
|
|
1116
1116
|
sizes: sizes,
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -22,7 +22,7 @@ import { i as imageUrlBuilder } from './index-73819142.js';
|
|
|
22
22
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
23
23
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
24
24
|
import './slicedToArray-d0a9593a.js';
|
|
25
|
-
import { D as DFPAdSlot } from './AdSlot-
|
|
25
|
+
import { D as DFPAdSlot } from './AdSlot-5b019415.js';
|
|
26
26
|
import './promise-683a9c54.js';
|
|
27
27
|
|
|
28
28
|
var DeckContent = function (_React$Component) {
|
|
@@ -15,7 +15,7 @@ import { withRouter } from 'next/router';
|
|
|
15
15
|
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
16
16
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
17
17
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { D as DFPAdSlot } from './AdSlot-
|
|
18
|
+
import { D as DFPAdSlot } from './AdSlot-5b019415.js';
|
|
19
19
|
import { g as get_1 } from './get-b2201dc8.js';
|
|
20
20
|
|
|
21
21
|
var Dfp = React__default.lazy(function () {
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -22,7 +22,7 @@ import './index-73819142.js';
|
|
|
22
22
|
import './index-5f9f807a.js';
|
|
23
23
|
import './entities-7cc3bf45.js';
|
|
24
24
|
import './slicedToArray-d0a9593a.js';
|
|
25
|
-
import './AdSlot-
|
|
25
|
+
import './AdSlot-5b019415.js';
|
|
26
26
|
import './promise-683a9c54.js';
|
|
27
27
|
import './get-b2201dc8.js';
|
|
28
|
-
export { G as default } from './GridContent-
|
|
28
|
+
export { G as default } from './GridContent-7ec2de47.js';
|
|
@@ -7,7 +7,7 @@ import Row from 'react-bootstrap/Row';
|
|
|
7
7
|
import Col from 'react-bootstrap/Col';
|
|
8
8
|
import Link from 'next/link';
|
|
9
9
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
10
|
-
import { D as DFPAdSlot } from './AdSlot-
|
|
10
|
+
import { D as DFPAdSlot } from './AdSlot-5b019415.js';
|
|
11
11
|
import { g as get_1 } from './get-b2201dc8.js';
|
|
12
12
|
import { Dropdown } from 'react-bootstrap';
|
|
13
13
|
import { G as GenIcon, b as IoMdLogIn, c as IoIosHome } from './index.esm-536609db.js';
|
|
@@ -2010,6 +2010,11 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
2010
2010
|
isOpen = _useState8[0],
|
|
2011
2011
|
setIsOpen = _useState8[1];
|
|
2012
2012
|
|
|
2013
|
+
var _useState9 = useState(0),
|
|
2014
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
2015
|
+
resolution = _useState10[0],
|
|
2016
|
+
setResolution = _useState10[1];
|
|
2017
|
+
|
|
2013
2018
|
useEffect(function () {
|
|
2014
2019
|
document.addEventListener('scroll', trackScrolling);
|
|
2015
2020
|
return function () {
|
|
@@ -2023,6 +2028,26 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
2023
2028
|
setUserAgent(navigator.userAgent.toString());
|
|
2024
2029
|
}, []);
|
|
2025
2030
|
|
|
2031
|
+
useEffect(function () {
|
|
2032
|
+
if (resolution === 0) {
|
|
2033
|
+
setResolution(window.innerWidth);
|
|
2034
|
+
}
|
|
2035
|
+
var handleResize = function handleResize() {
|
|
2036
|
+
if (resolution === 0) {
|
|
2037
|
+
setResolution(window.innerWidth);
|
|
2038
|
+
} else {
|
|
2039
|
+
if (window.innerWidth < 768 && resolution >= 768) {
|
|
2040
|
+
console.log('Detected Mobile Resolution');
|
|
2041
|
+
window.location.reload();
|
|
2042
|
+
} else if (window.innerWidth >= 768 && resolution < 768) {
|
|
2043
|
+
console.log('Detected Tablet/Desktop Resolution');
|
|
2044
|
+
window.location.reload();
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
window.addEventListener('resize', handleResize);
|
|
2049
|
+
}, [resolution]);
|
|
2050
|
+
|
|
2026
2051
|
useEffect(function () {
|
|
2027
2052
|
setScreenWidth(parseInt(window.innerWidth));
|
|
2028
2053
|
}, []);
|
|
@@ -2327,13 +2352,29 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
2327
2352
|
_ref$targeting = _ref.targeting,
|
|
2328
2353
|
targeting = _ref$targeting === undefined ? {} : _ref$targeting;
|
|
2329
2354
|
|
|
2355
|
+
var _useState = useState(),
|
|
2356
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2357
|
+
mobileView = _useState2[0],
|
|
2358
|
+
setMobileView = _useState2[1];
|
|
2359
|
+
|
|
2360
|
+
useEffect(function () {
|
|
2361
|
+
if (window && window.innerWidth && window.innerWidth < 768) {
|
|
2362
|
+
setMobileView(true);
|
|
2363
|
+
} else {
|
|
2364
|
+
setMobileView(false);
|
|
2365
|
+
}
|
|
2366
|
+
}, []);
|
|
2367
|
+
|
|
2368
|
+
var browserSizes = [[728, 90], [970, 90], [320, 50], [300, 50]];
|
|
2369
|
+
var mobileSizes = [[320, 50], [300, 50]];
|
|
2370
|
+
|
|
2330
2371
|
return React__default.createElement(DFPAdSlot, {
|
|
2331
2372
|
slotId: slotId,
|
|
2332
2373
|
networkID: networkID,
|
|
2333
2374
|
adUnit: adUnit,
|
|
2334
2375
|
targeting: targeting,
|
|
2335
2376
|
className: 'AD728x90',
|
|
2336
|
-
sizes:
|
|
2377
|
+
sizes: mobileView ? mobileSizes : browserSizes,
|
|
2337
2378
|
sizeMapping: [{
|
|
2338
2379
|
viewport: [768, 1],
|
|
2339
2380
|
sizes: [[728, 90], [970, 90]]
|
|
@@ -12,13 +12,13 @@ import 'react-bootstrap/Row';
|
|
|
12
12
|
import 'react-bootstrap/Col';
|
|
13
13
|
import 'next/link';
|
|
14
14
|
import './slicedToArray-d0a9593a.js';
|
|
15
|
-
import './AdSlot-
|
|
15
|
+
import './AdSlot-5b019415.js';
|
|
16
16
|
import './promise-683a9c54.js';
|
|
17
17
|
import './get-b2201dc8.js';
|
|
18
18
|
import 'react-bootstrap';
|
|
19
19
|
import './index.esm-536609db.js';
|
|
20
20
|
import 'react-bootstrap/Button';
|
|
21
|
-
export { T as default } from './Normal-
|
|
21
|
+
export { T as default } from './Normal-e86a38cf.js';
|
|
22
22
|
import 'react-bootstrap/ListGroup';
|
|
23
23
|
import 'next/head';
|
|
24
24
|
import 'react-bootstrap/Nav';
|
package/dist/esm/index.js
CHANGED
|
@@ -22,12 +22,12 @@ import { i as imageUrlBuilder } from './index-73819142.js';
|
|
|
22
22
|
import './index-5f9f807a.js';
|
|
23
23
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
24
24
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
25
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
26
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
25
|
+
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-5b019415.js';
|
|
26
|
+
export { D as AdSlot, B as Beam } from './AdSlot-5b019415.js';
|
|
27
27
|
import './promise-683a9c54.js';
|
|
28
28
|
export { default as DeckContent } from './DeckContent.js';
|
|
29
29
|
import './get-b2201dc8.js';
|
|
30
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
30
|
+
export { A as AD, G as GridContent } from './GridContent-7ec2de47.js';
|
|
31
31
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
32
32
|
import 'react-bootstrap/Media';
|
|
33
33
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
48
48
|
import 'react-bootstrap/Badge';
|
|
49
49
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
50
50
|
import Spinner from 'react-bootstrap/Spinner';
|
|
51
|
-
import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-
|
|
52
|
-
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-
|
|
51
|
+
import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-e86a38cf.js';
|
|
52
|
+
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-e86a38cf.js';
|
|
53
53
|
import 'react-bootstrap/ListGroup';
|
|
54
54
|
import Head from 'next/head';
|
|
55
55
|
import Accordion from 'react-bootstrap/Accordion';
|