@mjhls/mjh-framework 1.0.20 → 1.0.22
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 +101 -1
- package/dist/index.es.js +7 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -552,7 +552,7 @@ var DeckContent = function (_React$Component) {
|
|
|
552
552
|
args[_key] = arguments[_key];
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
-
return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || Object.getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.state = {
|
|
555
|
+
return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || Object.getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
556
556
|
data: _this.data,
|
|
557
557
|
per: _this.params ? _this.params.to : 2,
|
|
558
558
|
page: 1,
|
|
@@ -646,7 +646,7 @@ var DeckContent = function (_React$Component) {
|
|
|
646
646
|
React__default.createElement(
|
|
647
647
|
'a',
|
|
648
648
|
null,
|
|
649
|
-
React__default.createElement(Card.Img, { variant: 'top', src: row.thumbnail.asset.url })
|
|
649
|
+
React__default.createElement(Card.Img, { variant: 'top', src: row.thumbnail.asset ? row.thumbnail.asset.url : _this.defaultImage })
|
|
650
650
|
)
|
|
651
651
|
),
|
|
652
652
|
React__default.createElement(
|
|
@@ -1381,7 +1381,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1381
1381
|
return React__default.createElement(
|
|
1382
1382
|
NavDropdown,
|
|
1383
1383
|
{ key: index, title: row.name, id: 'basic-nav-dropdown' },
|
|
1384
|
-
row.subQuery && row.subQuery.map(function (ddRow,
|
|
1384
|
+
row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
|
|
1385
1385
|
if (ddRow.type === 'divider') {
|
|
1386
1386
|
return React__default.createElement(NavDropdown.Divider, { key: subIndex });
|
|
1387
1387
|
} else {
|
|
@@ -3368,8 +3368,7 @@ var AD = function AD(_ref) {
|
|
|
3368
3368
|
adUnit = _ref.adUnit,
|
|
3369
3369
|
sizeMapping = _ref.sizeMapping,
|
|
3370
3370
|
className = _ref.className,
|
|
3371
|
-
|
|
3372
|
-
slotId = _ref$slotId === undefined ? 'test' : _ref$slotId,
|
|
3371
|
+
slotId = _ref.slotId,
|
|
3373
3372
|
sizes = _ref.sizes,
|
|
3374
3373
|
minInViewPercent = _ref.minInViewPercent;
|
|
3375
3374
|
|
|
@@ -3389,18 +3388,16 @@ var AD = function AD(_ref) {
|
|
|
3389
3388
|
lib_3.refresh(slotId);
|
|
3390
3389
|
}
|
|
3391
3390
|
},
|
|
3392
|
-
onSlotIsViewable: function onSlotIsViewable(
|
|
3393
|
-
return console.log(slotId + ' viewable!.', dfpEventData);
|
|
3394
|
-
}
|
|
3391
|
+
onSlotIsViewable: function onSlotIsViewable() {}
|
|
3395
3392
|
})
|
|
3396
3393
|
)
|
|
3397
3394
|
);
|
|
3398
3395
|
};
|
|
3399
3396
|
|
|
3400
3397
|
AD.propTypes = {
|
|
3401
|
-
networkID: PropTypes.
|
|
3398
|
+
networkID: PropTypes.string.isRequired,
|
|
3402
3399
|
adUnit: PropTypes.string.isRequired,
|
|
3403
|
-
slotId: PropTypes.string
|
|
3400
|
+
slotId: PropTypes.string,
|
|
3404
3401
|
className: PropTypes.string,
|
|
3405
3402
|
sizeMapping: PropTypes.array,
|
|
3406
3403
|
sizes: PropTypes.array,
|