@mjhls/mjh-framework 1.0.203 → 1.0.204
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/dist/index.es.js +53 -5
- package/dist/index.js +52 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React__default, { Component, Suspense, useState, useEffect, useRef,
|
|
1
|
+
import React__default, { Component, Suspense, 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';
|
|
@@ -7186,7 +7186,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
7186
7186
|
|
|
7187
7187
|
var visibilitySensor = createCommonjsModule(function (module, exports) {
|
|
7188
7188
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
7189
|
-
module.exports = factory(React__default,
|
|
7189
|
+
module.exports = factory(React__default, reactDom);
|
|
7190
7190
|
})(commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {
|
|
7191
7191
|
return /******/ (function(modules) { // webpackBootstrap
|
|
7192
7192
|
/******/ // The module cache
|
|
@@ -8494,7 +8494,7 @@ var _react2 = _interopRequireDefault(React__default);
|
|
|
8494
8494
|
|
|
8495
8495
|
|
|
8496
8496
|
|
|
8497
|
-
var _reactDom2 = _interopRequireDefault(
|
|
8497
|
+
var _reactDom2 = _interopRequireDefault(reactDom);
|
|
8498
8498
|
|
|
8499
8499
|
|
|
8500
8500
|
|
|
@@ -29413,6 +29413,54 @@ var Ustream = function Ustream(_ref) {
|
|
|
29413
29413
|
|
|
29414
29414
|
var Ustream$1 = React__default.memo(Ustream);
|
|
29415
29415
|
|
|
29416
|
+
/*
|
|
29417
|
+
This dropdown is used inside Article body to display related content placement pages
|
|
29418
|
+
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
29419
|
+
|
|
29420
|
+
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
29421
|
+
|
|
29422
|
+
'content_placement': taxonomyMapping[]-> {
|
|
29423
|
+
...,
|
|
29424
|
+
'ancestor': parent->parent->identifier,
|
|
29425
|
+
'parent': parent->identifier,
|
|
29426
|
+
'path': identifier
|
|
29427
|
+
}
|
|
29428
|
+
|
|
29429
|
+
*/
|
|
29430
|
+
|
|
29431
|
+
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
29432
|
+
var _props$contentPlaceme = props.contentPlacement,
|
|
29433
|
+
contentPlacement = _props$contentPlaceme === undefined ? false : _props$contentPlaceme,
|
|
29434
|
+
_props$exclude = props.exclude,
|
|
29435
|
+
exclude = _props$exclude === undefined ? [''] : _props$exclude;
|
|
29436
|
+
|
|
29437
|
+
if (contentPlacement.length == 1 && exclude.includes(contentPlacement[0].name) || contentPlacement == false) {
|
|
29438
|
+
return null;
|
|
29439
|
+
}
|
|
29440
|
+
|
|
29441
|
+
return React__default.createElement(
|
|
29442
|
+
Dropdown$1,
|
|
29443
|
+
{ style: { marginBottom: '1rem' } },
|
|
29444
|
+
React__default.createElement(
|
|
29445
|
+
Dropdown$1.Toggle,
|
|
29446
|
+
{ variant: 'primary', id: 'partner-dropdown' },
|
|
29447
|
+
'Related Topics'
|
|
29448
|
+
),
|
|
29449
|
+
React__default.createElement(
|
|
29450
|
+
Dropdown$1.Menu,
|
|
29451
|
+
null,
|
|
29452
|
+
contentPlacement.map(function (cp, index) {
|
|
29453
|
+
var href = cp.parent ? '/' + cp.parent + '/' + cp.path : '/' + cp.path;
|
|
29454
|
+
return !exclude.includes(cp.name) && React__default.createElement(
|
|
29455
|
+
Dropdown$1.Item,
|
|
29456
|
+
{ key: index, href: href },
|
|
29457
|
+
cp.name
|
|
29458
|
+
);
|
|
29459
|
+
})
|
|
29460
|
+
)
|
|
29461
|
+
);
|
|
29462
|
+
};
|
|
29463
|
+
|
|
29416
29464
|
var fbsHero = function fbsHero(props) {
|
|
29417
29465
|
var topArticle = props.dataRecord[0];
|
|
29418
29466
|
var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
|
|
@@ -30210,4 +30258,4 @@ var Dfp$1 = /*#__PURE__*/Object.freeze({
|
|
|
30210
30258
|
default: AD$1
|
|
30211
30259
|
});
|
|
30212
30260
|
|
|
30213
|
-
export { ContentCard as DeckContent, GridContent$1 as GridContent, Queue as DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, VideoSeriesListing$1 as VideoSeriesListing, MasterDeck$1 as MasterDeck, PublicationDeck, IssueDeck, IssueContentDeck, Column1, Column2, Column3, Header$1 as Header, LeftNav$1 as LeftNav, AccordionPanel, SocialShare$1 as SocialShare, PageFilter, MagazineNav as NavMagazine, NavNative, NavNormal, NavDvm, HamMagazine, TemplateNormal, AD, AD300x250, AD300x250x600, AD728x90, ADFooter, getSerializers$1 as getSerializers, Search, Feature, Breadcrumbs$1 as Breadcrumbs, SetCookie, Hero, AlphabeticList, PdfDownload, RelatedTopicsDropdown, Ustream$1 as Ustream, SideFooter, fbsHero as ForbesHero, HorizontalHero, OncliveHero, OncliveLargeHero, VerticalHero, YahooHero, RelatedContent, ConferenceArticleCard };
|
|
30261
|
+
export { ContentCard as DeckContent, GridContent$1 as GridContent, Queue as DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, VideoSeriesListing$1 as VideoSeriesListing, MasterDeck$1 as MasterDeck, PublicationDeck, IssueDeck, IssueContentDeck, Column1, Column2, Column3, Header$1 as Header, LeftNav$1 as LeftNav, AccordionPanel, SocialShare$1 as SocialShare, PageFilter, MagazineNav as NavMagazine, NavNative, NavNormal, NavDvm, HamMagazine, TemplateNormal, AD, AD300x250, AD300x250x600, AD728x90, ADFooter, getSerializers$1 as getSerializers, Search, Feature, Breadcrumbs$1 as Breadcrumbs, SetCookie, Hero, AlphabeticList, PdfDownload, RelatedTopicsDropdown, Ustream$1 as Ustream, SideFooter, ArticleDetailDropdown, fbsHero as ForbesHero, HorizontalHero, OncliveHero, OncliveLargeHero, VerticalHero, YahooHero, RelatedContent, ConferenceArticleCard };
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
9
|
var PropTypes = _interopDefault(require('prop-types'));
|
|
10
|
-
var
|
|
10
|
+
var reactDom = _interopDefault(require('react-dom'));
|
|
11
11
|
var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
12
12
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
13
13
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
@@ -7194,7 +7194,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
7194
7194
|
|
|
7195
7195
|
var visibilitySensor = createCommonjsModule(function (module, exports) {
|
|
7196
7196
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
7197
|
-
module.exports = factory(React__default,
|
|
7197
|
+
module.exports = factory(React__default, reactDom);
|
|
7198
7198
|
})(commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {
|
|
7199
7199
|
return /******/ (function(modules) { // webpackBootstrap
|
|
7200
7200
|
/******/ // The module cache
|
|
@@ -8502,7 +8502,7 @@ var _react2 = _interopRequireDefault(React__default);
|
|
|
8502
8502
|
|
|
8503
8503
|
|
|
8504
8504
|
|
|
8505
|
-
var _reactDom2 = _interopRequireDefault(
|
|
8505
|
+
var _reactDom2 = _interopRequireDefault(reactDom);
|
|
8506
8506
|
|
|
8507
8507
|
|
|
8508
8508
|
|
|
@@ -29421,6 +29421,54 @@ var Ustream = function Ustream(_ref) {
|
|
|
29421
29421
|
|
|
29422
29422
|
var Ustream$1 = React__default.memo(Ustream);
|
|
29423
29423
|
|
|
29424
|
+
/*
|
|
29425
|
+
This dropdown is used inside Article body to display related content placement pages
|
|
29426
|
+
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
29427
|
+
|
|
29428
|
+
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
29429
|
+
|
|
29430
|
+
'content_placement': taxonomyMapping[]-> {
|
|
29431
|
+
...,
|
|
29432
|
+
'ancestor': parent->parent->identifier,
|
|
29433
|
+
'parent': parent->identifier,
|
|
29434
|
+
'path': identifier
|
|
29435
|
+
}
|
|
29436
|
+
|
|
29437
|
+
*/
|
|
29438
|
+
|
|
29439
|
+
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
29440
|
+
var _props$contentPlaceme = props.contentPlacement,
|
|
29441
|
+
contentPlacement = _props$contentPlaceme === undefined ? false : _props$contentPlaceme,
|
|
29442
|
+
_props$exclude = props.exclude,
|
|
29443
|
+
exclude = _props$exclude === undefined ? [''] : _props$exclude;
|
|
29444
|
+
|
|
29445
|
+
if (contentPlacement.length == 1 && exclude.includes(contentPlacement[0].name) || contentPlacement == false) {
|
|
29446
|
+
return null;
|
|
29447
|
+
}
|
|
29448
|
+
|
|
29449
|
+
return React__default.createElement(
|
|
29450
|
+
Dropdown,
|
|
29451
|
+
{ style: { marginBottom: '1rem' } },
|
|
29452
|
+
React__default.createElement(
|
|
29453
|
+
Dropdown.Toggle,
|
|
29454
|
+
{ variant: 'primary', id: 'partner-dropdown' },
|
|
29455
|
+
'Related Topics'
|
|
29456
|
+
),
|
|
29457
|
+
React__default.createElement(
|
|
29458
|
+
Dropdown.Menu,
|
|
29459
|
+
null,
|
|
29460
|
+
contentPlacement.map(function (cp, index) {
|
|
29461
|
+
var href = cp.parent ? '/' + cp.parent + '/' + cp.path : '/' + cp.path;
|
|
29462
|
+
return !exclude.includes(cp.name) && React__default.createElement(
|
|
29463
|
+
Dropdown.Item,
|
|
29464
|
+
{ key: index, href: href },
|
|
29465
|
+
cp.name
|
|
29466
|
+
);
|
|
29467
|
+
})
|
|
29468
|
+
)
|
|
29469
|
+
);
|
|
29470
|
+
};
|
|
29471
|
+
|
|
29424
29472
|
var fbsHero = function fbsHero(props) {
|
|
29425
29473
|
var topArticle = props.dataRecord[0];
|
|
29426
29474
|
var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
|
|
@@ -30261,6 +30309,7 @@ exports.PdfDownload = PdfDownload;
|
|
|
30261
30309
|
exports.RelatedTopicsDropdown = RelatedTopicsDropdown;
|
|
30262
30310
|
exports.Ustream = Ustream$1;
|
|
30263
30311
|
exports.SideFooter = SideFooter;
|
|
30312
|
+
exports.ArticleDetailDropdown = ArticleDetailDropdown;
|
|
30264
30313
|
exports.ForbesHero = fbsHero;
|
|
30265
30314
|
exports.HorizontalHero = HorizontalHero;
|
|
30266
30315
|
exports.OncliveHero = OncliveHero;
|