@mjhls/mjh-framework 1.0.399 → 1.0.401

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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.399
2
+ # mjh-framework v. 1.0.401
3
3
 
4
4
 
5
5
  > Foundation Framework
@@ -5,7 +5,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
5
5
  var React = require('react');
6
6
  var React__default = _interopDefault(React);
7
7
  var Card = _interopDefault(require('react-bootstrap/Card'));
8
- var AdSlot = require('./AdSlot-1e40a214.js');
8
+ var AdSlot = require('./AdSlot-20aa927e.js');
9
9
 
10
10
  var ADInfeed = function ADInfeed(_ref) {
11
11
  var index = _ref.index,
@@ -1212,9 +1212,9 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
1212
1212
  onSlotRender: function onSlotRender(eventData) {
1213
1213
  if (eventData && eventData.slotId && eventData.slotId === slotId && checkIsAdFound) {
1214
1214
  if (eventData.event && eventData.event.creativeId == null) {
1215
- checkIsAdFound(false);
1215
+ checkIsAdFound(false, eventData);
1216
1216
  } else {
1217
- checkIsAdFound(true);
1217
+ checkIsAdFound(true, eventData);
1218
1218
  }
1219
1219
  }
1220
1220
 
@@ -29,9 +29,9 @@ var index = require('./index-b5eb3ff8.js');
29
29
  var index$1 = require('./index-fa0fb52c.js');
30
30
  var entities = require('./entities-310b46ee.js');
31
31
  require('./slicedToArray-419d467a.js');
32
- require('./AdSlot-1e40a214.js');
32
+ require('./AdSlot-20aa927e.js');
33
33
  require('./promise-d5136080.js');
34
- var ADInfeed = require('./ADInfeed-f544f2a5.js');
34
+ var ADInfeed = require('./ADInfeed-d1783f42.js');
35
35
 
36
36
  var DeckContent = function (_React$Component) {
37
37
  inherits$2._inherits(DeckContent, _React$Component);
@@ -94,7 +94,7 @@ var FigureComponent = function FigureComponent(props) {
94
94
  imageWidth = '100%';
95
95
  }
96
96
 
97
- var figureStyle = disableTextWrap ? { maxWidth: '100%' } : {
97
+ var figureStyle = disableTextWrap ? { maxWidth: '100%', width: imageWidth, margin: imageFloat !== 'none' ? imageFloat === 'left' ? '' : '0 0 0 auto' : '' } : {
98
98
  width: imageWidth,
99
99
  maxWidth: '100%',
100
100
  clear: 'both',
@@ -20,7 +20,7 @@ var visibilitySensor = require('./visibility-sensor-43e0b37c.js');
20
20
  var index = require('./index-b5eb3ff8.js');
21
21
  var index$1 = require('./index-fa0fb52c.js');
22
22
  var entities = require('./entities-310b46ee.js');
23
- var ADInfeed = require('./ADInfeed-f544f2a5.js');
23
+ var ADInfeed = require('./ADInfeed-d1783f42.js');
24
24
  var get$1 = require('./get-5aa7468c.js');
25
25
  var AuthorComponent = require('./AuthorComponent-4706f297.js');
26
26
 
@@ -25,11 +25,11 @@ require('./index-b5eb3ff8.js');
25
25
  require('./index-fa0fb52c.js');
26
26
  require('./entities-310b46ee.js');
27
27
  require('./slicedToArray-419d467a.js');
28
- require('./AdSlot-1e40a214.js');
28
+ require('./AdSlot-20aa927e.js');
29
29
  require('./promise-d5136080.js');
30
- require('./ADInfeed-f544f2a5.js');
30
+ require('./ADInfeed-d1783f42.js');
31
31
  require('./get-5aa7468c.js');
32
- var GridContent = require('./GridContent-19ce4f03.js');
32
+ var GridContent = require('./GridContent-c0c0d3e5.js');
33
33
  require('./AuthorComponent-4706f297.js');
34
34
 
35
35
 
@@ -9,7 +9,7 @@ var Container = _interopDefault(require('react-bootstrap/Container'));
9
9
  var Row = _interopDefault(require('react-bootstrap/Row'));
10
10
  var Col = _interopDefault(require('react-bootstrap/Col'));
11
11
  var slicedToArray = require('./slicedToArray-419d467a.js');
12
- var AdSlot = require('./AdSlot-1e40a214.js');
12
+ var AdSlot = require('./AdSlot-20aa927e.js');
13
13
  var get$1 = require('./get-5aa7468c.js');
14
14
  var reactSocialIcons = require('./react-social-icons-cd0d9d3b.js');
15
15
  var reactBootstrap = require('react-bootstrap');
@@ -24,9 +24,9 @@ var index = require('./index-b5eb3ff8.js');
24
24
  var index$1 = require('./index-fa0fb52c.js');
25
25
  var entities = require('./entities-310b46ee.js');
26
26
  var slicedToArray = require('./slicedToArray-419d467a.js');
27
- require('./AdSlot-1e40a214.js');
27
+ require('./AdSlot-20aa927e.js');
28
28
  require('./promise-d5136080.js');
29
- var ADInfeed = require('./ADInfeed-f544f2a5.js');
29
+ var ADInfeed = require('./ADInfeed-d1783f42.js');
30
30
  var AuthorComponent = require('./AuthorComponent-4706f297.js');
31
31
  var reactBootstrap = require('react-bootstrap');
32
32
 
@@ -12,14 +12,14 @@ require('react-bootstrap/Container');
12
12
  require('react-bootstrap/Row');
13
13
  require('react-bootstrap/Col');
14
14
  require('./slicedToArray-419d467a.js');
15
- require('./AdSlot-1e40a214.js');
15
+ require('./AdSlot-20aa927e.js');
16
16
  require('./promise-d5136080.js');
17
17
  require('./get-5aa7468c.js');
18
18
  require('./react-social-icons-cd0d9d3b.js');
19
19
  require('react-bootstrap');
20
20
  require('./index.esm-340d3792.js');
21
21
  require('react-bootstrap/Button');
22
- var TemplateNormal = require('./Normal-adc8ed7f.js');
22
+ var TemplateNormal = require('./Normal-53437675.js');
23
23
  require('react-bootstrap/ListGroup');
24
24
  require('next/head');
25
25
  require('react-bootstrap/Nav');
package/dist/cjs/index.js CHANGED
@@ -31,12 +31,12 @@ var index = require('./index-b5eb3ff8.js');
31
31
  var index$1 = require('./index-fa0fb52c.js');
32
32
  var entities = require('./entities-310b46ee.js');
33
33
  var slicedToArray = require('./slicedToArray-419d467a.js');
34
- var AdSlot = require('./AdSlot-1e40a214.js');
34
+ var AdSlot = require('./AdSlot-20aa927e.js');
35
35
  var promise = require('./promise-d5136080.js');
36
- var ADInfeed = require('./ADInfeed-f544f2a5.js');
36
+ var ADInfeed = require('./ADInfeed-d1783f42.js');
37
37
  var DeckContent = require('./DeckContent.js');
38
38
  var get$1 = require('./get-5aa7468c.js');
39
- var GridContent = require('./GridContent-19ce4f03.js');
39
+ var GridContent = require('./GridContent-c0c0d3e5.js');
40
40
  var AuthorComponent = require('./AuthorComponent-4706f297.js');
41
41
  var DeckQueue = require('./DeckQueue.js');
42
42
  require('react-bootstrap/Media');
@@ -57,7 +57,7 @@ var IssueDeck = require('./IssueDeck.js');
57
57
  require('react-bootstrap/Badge');
58
58
  var IssueContentDeck = require('./IssueContentDeck.js');
59
59
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
60
- var TemplateNormal = require('./Normal-adc8ed7f.js');
60
+ var TemplateNormal = require('./Normal-53437675.js');
61
61
  require('react-bootstrap/ListGroup');
62
62
  var Head = _interopDefault(require('next/head'));
63
63
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -3512,7 +3512,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
3512
3512
  position = _floatingAd$position === undefined ? 'float' : _floatingAd$position,
3513
3513
  networkID = floatingAd.networkID,
3514
3514
  _floatingAd$sizes = floatingAd.sizes,
3515
- sizes = _floatingAd$sizes === undefined ? [[1025, 100]] : _floatingAd$sizes;
3515
+ sizes = _floatingAd$sizes === undefined ? [[1025, 100], [728, 90]] : _floatingAd$sizes;
3516
3516
 
3517
3517
  var adTargeting = {
3518
3518
  content_placement: targeting.content_placement,
@@ -3543,10 +3543,14 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
3543
3543
  parent.style.display = 'none';
3544
3544
  };
3545
3545
 
3546
- var checkIsAdFound = function checkIsAdFound(isFound) {
3546
+ var checkIsAdFound = function checkIsAdFound(isFound, adData) {
3547
3547
  if (isFound) {
3548
3548
  var parent = document.getElementById('floating-ad-wrapper');
3549
3549
  parent.style.display = 'block';
3550
+ if (adData && adData.event && adData.event.size) {
3551
+ parent.style.width = adData.event.size[0] + 'px';
3552
+ parent.style.height = adData.event.size[1] + 'px';
3553
+ }
3550
3554
  } else {
3551
3555
  collapseAd();
3552
3556
  }
@@ -3579,7 +3583,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
3579
3583
  React__default.createElement(
3580
3584
  'style',
3581
3585
  { jsx: 'true' },
3582
- '\n .floating-ad-wrapper {\n width: 728px;\n height: 90px;\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n display: none;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
3586
+ '\n .floating-ad-wrapper {\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n display: none;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
3583
3587
  )
3584
3588
  );
3585
3589
  };
@@ -6486,7 +6490,7 @@ var Media = function Media(_ref) {
6486
6490
  imageWidth = '100%';
6487
6491
  }
6488
6492
 
6489
- var figureStyle = disableTextWrap ? { maxWidth: '100%' } : {
6493
+ var figureStyle = disableTextWrap ? { maxWidth: '100%', width: imageWidth, margin: imageFloat !== 'none' ? imageFloat === 'left' ? '' : '0 0 0 auto' : '' } : {
6490
6494
  width: imageWidth,
6491
6495
  maxWidth: '100%',
6492
6496
  clear: 'both',
@@ -14294,7 +14298,7 @@ var MultiFigure = function MultiFigure(props) {
14294
14298
  };
14295
14299
 
14296
14300
  var Figure = dynamic(function () {
14297
- return Promise.resolve().then(function () { return require('./Figure-17002404.js'); });
14301
+ return Promise.resolve().then(function () { return require('./Figure-8dd7df44.js'); });
14298
14302
  }, { ssr: false });
14299
14303
 
14300
14304
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -14340,6 +14344,11 @@ var getSerializers = function getSerializers() {
14340
14344
  return {
14341
14345
  types: {
14342
14346
  block: function block(props) {
14347
+ var _props$node$style = props.node.style,
14348
+ style = _props$node$style === undefined ? 'normal' : _props$node$style;
14349
+
14350
+ if (style === 'hr') return React__default.createElement('hr', { className: 'horizontal-rule' });
14351
+ if (style === 'br') return React__default.createElement('br', { className: 'line-break' });
14343
14352
  props = convertEntities(props);
14344
14353
  return TaxonomyCard.BlockContent.defaultSerializers.types.block(props);
14345
14354
  },
@@ -14903,12 +14912,12 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14903
14912
  /*
14904
14913
  Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14905
14914
  example:
14906
- <RelatedTopicDropdown
14907
- page='/clinical'
14908
- exclude="clinical"
14909
- className='mb-3'
14910
- parentTaxonomy={props.parentTaxonomy}
14911
- subTaxonomies={props.subTaxonomies}
14915
+ <RelatedTopicDropdown
14916
+ page='/clinical'
14917
+ exclude="clinical"
14918
+ className='mb-3'
14919
+ parentTaxonomy={props.parentTaxonomy}
14920
+ subTaxonomies={props.subTaxonomies}
14912
14921
  />
14913
14922
  */
14914
14923
  if (subTaxonomies.length === 0 && parentTaxonomy) {
@@ -14917,31 +14926,49 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14917
14926
  }
14918
14927
  return React__default.createElement(
14919
14928
  'div',
14920
- { id: 'related_dropdown', className: className },
14929
+ null,
14930
+ React__default.createElement(
14931
+ 'style',
14932
+ { jsx: true },
14933
+ '\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 50vh !important;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n transform: none !important;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n font-size: 0.85em;\n }\n }\n '
14934
+ ),
14921
14935
  React__default.createElement(
14922
- DropdownButton,
14923
- { id: 'related_button', variant: variant, title: 'Related Topics' },
14936
+ 'div',
14937
+ { id: 'related_dropdown', className: className },
14924
14938
  React__default.createElement(
14925
- Dropdown.Item,
14926
- { href: parentTaxonomy.identifier },
14927
- parentTaxonomy.name
14939
+ DropdownButton,
14940
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
14941
+ React__default.createElement(
14942
+ Dropdown.Item,
14943
+ { href: parentTaxonomy.identifier },
14944
+ parentTaxonomy.name
14945
+ )
14928
14946
  )
14929
14947
  )
14930
14948
  );
14931
14949
  } else {
14932
14950
  return React__default.createElement(
14933
14951
  'div',
14934
- { id: 'related_dropdown', className: className },
14952
+ null,
14935
14953
  React__default.createElement(
14936
- DropdownButton,
14937
- { id: 'related_button', variant: variant, title: 'Related Topics' },
14938
- subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
14939
- return React__default.createElement(
14940
- Dropdown.Item,
14941
- { key: index, href: page + '/' + taxonomy.identifier },
14942
- taxonomy.name
14943
- );
14944
- })
14954
+ 'style',
14955
+ { jsx: true },
14956
+ '\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 40vh !important;\n z-index: 9999;\n transform: none !important;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n z-index: 9999;\n font-size: 0.85em;\n }\n }\n '
14957
+ ),
14958
+ React__default.createElement(
14959
+ 'div',
14960
+ { id: 'related_dropdown', className: className },
14961
+ React__default.createElement(
14962
+ DropdownButton,
14963
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
14964
+ subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
14965
+ return React__default.createElement(
14966
+ Dropdown.Item,
14967
+ { key: index, href: page + '/' + taxonomy.identifier },
14968
+ taxonomy.name
14969
+ );
14970
+ })
14971
+ )
14945
14972
  )
14946
14973
  );
14947
14974
  }
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import Card from 'react-bootstrap/Card';
3
- import { D as DFPAdSlot } from './AdSlot-971ce41c.js';
3
+ import { D as DFPAdSlot } from './AdSlot-c3ed3214.js';
4
4
 
5
5
  var ADInfeed = function ADInfeed(_ref) {
6
6
  var index = _ref.index,
@@ -1207,9 +1207,9 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
1207
1207
  onSlotRender: function onSlotRender(eventData) {
1208
1208
  if (eventData && eventData.slotId && eventData.slotId === slotId && checkIsAdFound) {
1209
1209
  if (eventData.event && eventData.event.creativeId == null) {
1210
- checkIsAdFound(false);
1210
+ checkIsAdFound(false, eventData);
1211
1211
  } else {
1212
- checkIsAdFound(true);
1212
+ checkIsAdFound(true, eventData);
1213
1213
  }
1214
1214
  }
1215
1215
 
@@ -23,9 +23,9 @@ import { i as imageUrlBuilder } from './index-51a80699.js';
23
23
  import { L as LazyLoad } from './index-5f9f807a.js';
24
24
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
25
25
  import './slicedToArray-04e02710.js';
26
- import './AdSlot-971ce41c.js';
26
+ import './AdSlot-c3ed3214.js';
27
27
  import './promise-5d7cd78a.js';
28
- import { A as ADInfeed } from './ADInfeed-88c335d9.js';
28
+ import { A as ADInfeed } from './ADInfeed-40adc8e0.js';
29
29
 
30
30
  var DeckContent = function (_React$Component) {
31
31
  _inherits(DeckContent, _React$Component);
@@ -89,7 +89,7 @@ var FigureComponent = function FigureComponent(props) {
89
89
  imageWidth = '100%';
90
90
  }
91
91
 
92
- var figureStyle = disableTextWrap ? { maxWidth: '100%' } : {
92
+ var figureStyle = disableTextWrap ? { maxWidth: '100%', width: imageWidth, margin: imageFloat !== 'none' ? imageFloat === 'left' ? '' : '0 0 0 auto' : '' } : {
93
93
  width: imageWidth,
94
94
  maxWidth: '100%',
95
95
  clear: 'both',
@@ -14,7 +14,7 @@ import { V as VisibilitySensor, I as InfiniteScroll } from './visibility-sensor-
14
14
  import { i as imageUrlBuilder } from './index-51a80699.js';
15
15
  import { L as LazyLoad } from './index-5f9f807a.js';
16
16
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
17
- import { A as ADInfeed } from './ADInfeed-88c335d9.js';
17
+ import { A as ADInfeed } from './ADInfeed-40adc8e0.js';
18
18
  import { g as get_1 } from './get-53653403.js';
19
19
  import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
20
20
 
@@ -23,9 +23,9 @@ import './index-51a80699.js';
23
23
  import './index-5f9f807a.js';
24
24
  import './entities-7cc3bf45.js';
25
25
  import './slicedToArray-04e02710.js';
26
- import './AdSlot-971ce41c.js';
26
+ import './AdSlot-c3ed3214.js';
27
27
  import './promise-5d7cd78a.js';
28
- import './ADInfeed-88c335d9.js';
28
+ import './ADInfeed-40adc8e0.js';
29
29
  import './get-53653403.js';
30
- export { G as default } from './GridContent-5fe7c99b.js';
30
+ export { G as default } from './GridContent-b042eb2d.js';
31
31
  import './AuthorComponent-c9e46673.js';
@@ -4,7 +4,7 @@ import Container from 'react-bootstrap/Container';
4
4
  import Row from 'react-bootstrap/Row';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
7
- import { D as DFPAdSlot } from './AdSlot-971ce41c.js';
7
+ import { D as DFPAdSlot } from './AdSlot-c3ed3214.js';
8
8
  import { g as get_1 } from './get-53653403.js';
9
9
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
10
10
  import { Dropdown } from 'react-bootstrap';
@@ -18,9 +18,9 @@ import { i as imageUrlBuilder } from './index-51a80699.js';
18
18
  import { L as LazyLoad } from './index-5f9f807a.js';
19
19
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
20
20
  import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
21
- import './AdSlot-971ce41c.js';
21
+ import './AdSlot-c3ed3214.js';
22
22
  import './promise-5d7cd78a.js';
23
- import { A as ADInfeed } from './ADInfeed-88c335d9.js';
23
+ import { A as ADInfeed } from './ADInfeed-40adc8e0.js';
24
24
  import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
25
25
  import { Container, Media } from 'react-bootstrap';
26
26
 
@@ -10,14 +10,14 @@ import 'react-bootstrap/Container';
10
10
  import 'react-bootstrap/Row';
11
11
  import 'react-bootstrap/Col';
12
12
  import './slicedToArray-04e02710.js';
13
- import './AdSlot-971ce41c.js';
13
+ import './AdSlot-c3ed3214.js';
14
14
  import './promise-5d7cd78a.js';
15
15
  import './get-53653403.js';
16
16
  import './react-social-icons-a7d5c5c7.js';
17
17
  import 'react-bootstrap';
18
18
  import './index.esm-536609db.js';
19
19
  import 'react-bootstrap/Button';
20
- export { T as default } from './Normal-da6eaaec.js';
20
+ export { T as default } from './Normal-fe65159c.js';
21
21
  import 'react-bootstrap/ListGroup';
22
22
  import 'next/head';
23
23
  import 'react-bootstrap/Nav';
package/dist/esm/index.js CHANGED
@@ -23,13 +23,13 @@ import { i as imageUrlBuilder } from './index-51a80699.js';
23
23
  import { L as LazyLoad } from './index-5f9f807a.js';
24
24
  import { c as clean_html_1, h as html_decode_1 } from './entities-7cc3bf45.js';
25
25
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-04e02710.js';
26
- import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-971ce41c.js';
27
- export { D as AdSlot, B as Beam } from './AdSlot-971ce41c.js';
26
+ import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-c3ed3214.js';
27
+ export { D as AdSlot, B as Beam } from './AdSlot-c3ed3214.js';
28
28
  import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './promise-5d7cd78a.js';
29
- import { A as ADInfeed } from './ADInfeed-88c335d9.js';
29
+ import { A as ADInfeed } from './ADInfeed-40adc8e0.js';
30
30
  export { default as DeckContent } from './DeckContent.js';
31
31
  import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-53653403.js';
32
- export { A as AD, G as GridContent } from './GridContent-5fe7c99b.js';
32
+ export { A as AD, G as GridContent } from './GridContent-b042eb2d.js';
33
33
  import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
34
34
  export { default as DeckQueue } from './DeckQueue.js';
35
35
  import 'react-bootstrap/Media';
@@ -52,8 +52,8 @@ export { default as IssueDeck } from './IssueDeck.js';
52
52
  import 'react-bootstrap/Badge';
53
53
  export { default as IssueContentDeck } from './IssueContentDeck.js';
54
54
  import Spinner from 'react-bootstrap/Spinner';
55
- import { M as MdPictureAsPdf } from './Normal-da6eaaec.js';
56
- 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-da6eaaec.js';
55
+ import { M as MdPictureAsPdf } from './Normal-fe65159c.js';
56
+ 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-fe65159c.js';
57
57
  import 'react-bootstrap/ListGroup';
58
58
  import Head from 'next/head';
59
59
  import Accordion from 'react-bootstrap/Accordion';
@@ -3509,7 +3509,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
3509
3509
  position = _floatingAd$position === undefined ? 'float' : _floatingAd$position,
3510
3510
  networkID = floatingAd.networkID,
3511
3511
  _floatingAd$sizes = floatingAd.sizes,
3512
- sizes = _floatingAd$sizes === undefined ? [[1025, 100]] : _floatingAd$sizes;
3512
+ sizes = _floatingAd$sizes === undefined ? [[1025, 100], [728, 90]] : _floatingAd$sizes;
3513
3513
 
3514
3514
  var adTargeting = {
3515
3515
  content_placement: targeting.content_placement,
@@ -3540,10 +3540,14 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
3540
3540
  parent.style.display = 'none';
3541
3541
  };
3542
3542
 
3543
- var checkIsAdFound = function checkIsAdFound(isFound) {
3543
+ var checkIsAdFound = function checkIsAdFound(isFound, adData) {
3544
3544
  if (isFound) {
3545
3545
  var parent = document.getElementById('floating-ad-wrapper');
3546
3546
  parent.style.display = 'block';
3547
+ if (adData && adData.event && adData.event.size) {
3548
+ parent.style.width = adData.event.size[0] + 'px';
3549
+ parent.style.height = adData.event.size[1] + 'px';
3550
+ }
3547
3551
  } else {
3548
3552
  collapseAd();
3549
3553
  }
@@ -3576,7 +3580,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
3576
3580
  React__default.createElement(
3577
3581
  'style',
3578
3582
  { jsx: 'true' },
3579
- '\n .floating-ad-wrapper {\n width: 728px;\n height: 90px;\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n display: none;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
3583
+ '\n .floating-ad-wrapper {\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n display: none;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
3580
3584
  )
3581
3585
  );
3582
3586
  };
@@ -6483,7 +6487,7 @@ var Media = function Media(_ref) {
6483
6487
  imageWidth = '100%';
6484
6488
  }
6485
6489
 
6486
- var figureStyle = disableTextWrap ? { maxWidth: '100%' } : {
6490
+ var figureStyle = disableTextWrap ? { maxWidth: '100%', width: imageWidth, margin: imageFloat !== 'none' ? imageFloat === 'left' ? '' : '0 0 0 auto' : '' } : {
6487
6491
  width: imageWidth,
6488
6492
  maxWidth: '100%',
6489
6493
  clear: 'both',
@@ -14291,7 +14295,7 @@ var MultiFigure = function MultiFigure(props) {
14291
14295
  };
14292
14296
 
14293
14297
  var Figure = dynamic(function () {
14294
- return import('./Figure-bce2ae9c.js');
14298
+ return import('./Figure-f269f495.js');
14295
14299
  }, { ssr: false });
14296
14300
 
14297
14301
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -14337,6 +14341,11 @@ var getSerializers = function getSerializers() {
14337
14341
  return {
14338
14342
  types: {
14339
14343
  block: function block(props) {
14344
+ var _props$node$style = props.node.style,
14345
+ style = _props$node$style === undefined ? 'normal' : _props$node$style;
14346
+
14347
+ if (style === 'hr') return React__default.createElement('hr', { className: 'horizontal-rule' });
14348
+ if (style === 'br') return React__default.createElement('br', { className: 'line-break' });
14340
14349
  props = convertEntities(props);
14341
14350
  return BlockContent.defaultSerializers.types.block(props);
14342
14351
  },
@@ -14900,12 +14909,12 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14900
14909
  /*
14901
14910
  Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14902
14911
  example:
14903
- <RelatedTopicDropdown
14904
- page='/clinical'
14905
- exclude="clinical"
14906
- className='mb-3'
14907
- parentTaxonomy={props.parentTaxonomy}
14908
- subTaxonomies={props.subTaxonomies}
14912
+ <RelatedTopicDropdown
14913
+ page='/clinical'
14914
+ exclude="clinical"
14915
+ className='mb-3'
14916
+ parentTaxonomy={props.parentTaxonomy}
14917
+ subTaxonomies={props.subTaxonomies}
14909
14918
  />
14910
14919
  */
14911
14920
  if (subTaxonomies.length === 0 && parentTaxonomy) {
@@ -14914,31 +14923,49 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14914
14923
  }
14915
14924
  return React__default.createElement(
14916
14925
  'div',
14917
- { id: 'related_dropdown', className: className },
14926
+ null,
14927
+ React__default.createElement(
14928
+ 'style',
14929
+ { jsx: true },
14930
+ '\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 50vh !important;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n transform: none !important;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n font-size: 0.85em;\n }\n }\n '
14931
+ ),
14918
14932
  React__default.createElement(
14919
- DropdownButton,
14920
- { id: 'related_button', variant: variant, title: 'Related Topics' },
14933
+ 'div',
14934
+ { id: 'related_dropdown', className: className },
14921
14935
  React__default.createElement(
14922
- Dropdown.Item,
14923
- { href: parentTaxonomy.identifier },
14924
- parentTaxonomy.name
14936
+ DropdownButton,
14937
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
14938
+ React__default.createElement(
14939
+ Dropdown.Item,
14940
+ { href: parentTaxonomy.identifier },
14941
+ parentTaxonomy.name
14942
+ )
14925
14943
  )
14926
14944
  )
14927
14945
  );
14928
14946
  } else {
14929
14947
  return React__default.createElement(
14930
14948
  'div',
14931
- { id: 'related_dropdown', className: className },
14949
+ null,
14932
14950
  React__default.createElement(
14933
- DropdownButton,
14934
- { id: 'related_button', variant: variant, title: 'Related Topics' },
14935
- subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
14936
- return React__default.createElement(
14937
- Dropdown.Item,
14938
- { key: index, href: page + '/' + taxonomy.identifier },
14939
- taxonomy.name
14940
- );
14941
- })
14951
+ 'style',
14952
+ { jsx: true },
14953
+ '\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 40vh !important;\n z-index: 9999;\n transform: none !important;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n z-index: 9999;\n font-size: 0.85em;\n }\n }\n '
14954
+ ),
14955
+ React__default.createElement(
14956
+ 'div',
14957
+ { id: 'related_dropdown', className: className },
14958
+ React__default.createElement(
14959
+ DropdownButton,
14960
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
14961
+ subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
14962
+ return React__default.createElement(
14963
+ Dropdown.Item,
14964
+ { key: index, href: page + '/' + taxonomy.identifier },
14965
+ taxonomy.name
14966
+ );
14967
+ })
14968
+ )
14942
14969
  )
14943
14970
  );
14944
14971
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.399",
3
+ "version": "1.0.401",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",