@mjhls/mjh-framework 1.0.176 → 1.0.178
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/index.es.js +5 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React__default, { Component, useState, useEffect, useRef,
|
|
1
|
+
import React__default, { Component, useState, useEffect, useRef, createContext, createElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import reactDom from 'react-dom';
|
|
4
4
|
import Container from 'react-bootstrap/Container';
|
|
5
5
|
import Row from 'react-bootstrap/Row';
|
|
6
6
|
import Col from 'react-bootstrap/Col';
|
|
@@ -7177,7 +7177,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
7177
7177
|
|
|
7178
7178
|
var visibilitySensor = createCommonjsModule(function (module, exports) {
|
|
7179
7179
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
7180
|
-
module.exports = factory(React__default,
|
|
7180
|
+
module.exports = factory(React__default, reactDom);
|
|
7181
7181
|
})(commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {
|
|
7182
7182
|
return /******/ (function(modules) { // webpackBootstrap
|
|
7183
7183
|
/******/ // The module cache
|
|
@@ -8477,7 +8477,7 @@ var _react2 = _interopRequireDefault(React__default);
|
|
|
8477
8477
|
|
|
8478
8478
|
|
|
8479
8479
|
|
|
8480
|
-
var _reactDom2 = _interopRequireDefault(
|
|
8480
|
+
var _reactDom2 = _interopRequireDefault(reactDom);
|
|
8481
8481
|
|
|
8482
8482
|
|
|
8483
8483
|
|
|
@@ -13687,7 +13687,6 @@ var MasterDeck = function (_React$Component) {
|
|
|
13687
13687
|
return _this.defaultImage;
|
|
13688
13688
|
}
|
|
13689
13689
|
}, _this.changePageNumber = function (pageNumber) {
|
|
13690
|
-
console.log(pageNumber);
|
|
13691
13690
|
var _this$props2 = _this.props,
|
|
13692
13691
|
seoPaginate = _this$props2.seoPaginate,
|
|
13693
13692
|
pageview = _this$props2.pageview,
|
|
@@ -14824,7 +14823,7 @@ var SideFooter = function SideFooter(props) {
|
|
|
14824
14823
|
/*
|
|
14825
14824
|
useage example: <SideFooter cache={props.cache} logo='/an_mjhls_brand_logo.png' />
|
|
14826
14825
|
*/
|
|
14827
|
-
var _get = get_1(props, '
|
|
14826
|
+
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
14828
14827
|
socialLinks = _get.socialLinks,
|
|
14829
14828
|
footerLinks = _get.footerLinks,
|
|
14830
14829
|
name = _get.name;
|
|
@@ -28510,7 +28509,6 @@ var NativeAd = function NativeAd(props) {
|
|
|
28510
28509
|
sizes = _props$node.sizes,
|
|
28511
28510
|
sizeMapping = _props$node.sizeMapping;
|
|
28512
28511
|
|
|
28513
|
-
console.log('props', props);
|
|
28514
28512
|
return React__default.createElement(
|
|
28515
28513
|
'div',
|
|
28516
28514
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
@@ -29196,8 +29194,6 @@ var AlphabeticList = function AlphabeticList(_ref) {
|
|
|
29196
29194
|
};
|
|
29197
29195
|
|
|
29198
29196
|
var PdfDownload = function PdfDownload(props) {
|
|
29199
|
-
console.log(props.issueInfo.asset.url);
|
|
29200
|
-
|
|
29201
29197
|
return React__default.createElement(
|
|
29202
29198
|
'div',
|
|
29203
29199
|
{ className: 'pdf-download', style: { textAlign: 'center', padding: '1rem 0', borderTop: '1px solid #eee', marginTop: '1rem' } },
|
|
@@ -29590,7 +29586,6 @@ var OncliveHero = function OncliveHero(props) {
|
|
|
29590
29586
|
function urlFor(source) {
|
|
29591
29587
|
return builder.image(source);
|
|
29592
29588
|
}
|
|
29593
|
-
console.log(props);
|
|
29594
29589
|
return React__default.createElement(
|
|
29595
29590
|
'div',
|
|
29596
29591
|
{ className: 'article-group--container' },
|
|
@@ -29946,7 +29941,6 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
29946
29941
|
'div',
|
|
29947
29942
|
{ className: 'related-articles-container' },
|
|
29948
29943
|
dataRecord.map(function (article, index) {
|
|
29949
|
-
console.log(article);
|
|
29950
29944
|
return React__default.createElement(
|
|
29951
29945
|
Link,
|
|
29952
29946
|
{ href: '/view/[url]', as: '/view/' + article.url.current, key: index },
|