@mjhls/mjh-framework 1.0.165 → 1.0.167
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 +18 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -5
- 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, createElement, createContext } 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
|
|
|
@@ -16896,7 +16896,7 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
16896
16896
|
blank = node$$1.blank,
|
|
16897
16897
|
link = node$$1.link,
|
|
16898
16898
|
_node$widthP = node$$1.widthP,
|
|
16899
|
-
widthP = _node$widthP === undefined ? '
|
|
16899
|
+
widthP = _node$widthP === undefined ? '30' : _node$widthP,
|
|
16900
16900
|
_node$alignment = node$$1.alignment,
|
|
16901
16901
|
alignment = _node$alignment === undefined ? 'center' : _node$alignment;
|
|
16902
16902
|
|
|
@@ -28653,6 +28653,18 @@ var Feature = function Feature(props) {
|
|
|
28653
28653
|
return false;
|
|
28654
28654
|
};
|
|
28655
28655
|
|
|
28656
|
+
var urlFor = function urlFor(source) {
|
|
28657
|
+
var client = props.client;
|
|
28658
|
+
|
|
28659
|
+
var builder = imageUrlBuilder(client);
|
|
28660
|
+
return builder.image(source).auto('format');
|
|
28661
|
+
};
|
|
28662
|
+
//image width
|
|
28663
|
+
var imageWidth = 900;
|
|
28664
|
+
if (main_36) {
|
|
28665
|
+
imageWidth = 450;
|
|
28666
|
+
}
|
|
28667
|
+
|
|
28656
28668
|
var renderUrl = function renderUrl(feature_link, feature_title, feature_body) {
|
|
28657
28669
|
if (checkUrlIsExternal(feature_link)) {
|
|
28658
28670
|
return React__default.createElement(
|
|
@@ -28711,7 +28723,7 @@ var Feature = function Feature(props) {
|
|
|
28711
28723
|
return React__default.createElement(
|
|
28712
28724
|
Carousel$1.Item,
|
|
28713
28725
|
{ key: index, style: { background: 'var(--primary)' } },
|
|
28714
|
-
React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: feature_img, alt: feature_alt }),
|
|
28726
|
+
React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: urlFor(feature_img).width(imageWidth).url(), alt: feature_alt }),
|
|
28715
28727
|
React__default.createElement(
|
|
28716
28728
|
Carousel$1.Caption,
|
|
28717
28729
|
{ style: { paddingRight: '50%', left: '3rem', right: '3rem', top: '0', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|