@mjhls/mjh-framework 1.0.398 → 1.0.400

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.398
2
+ # mjh-framework v. 1.0.400
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) {
@@ -14903,12 +14907,12 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14903
14907
  /*
14904
14908
  Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14905
14909
  example:
14906
- <RelatedTopicDropdown
14907
- page='/clinical'
14908
- exclude="clinical"
14909
- className='mb-3'
14910
- parentTaxonomy={props.parentTaxonomy}
14911
- subTaxonomies={props.subTaxonomies}
14910
+ <RelatedTopicDropdown
14911
+ page='/clinical'
14912
+ exclude="clinical"
14913
+ className='mb-3'
14914
+ parentTaxonomy={props.parentTaxonomy}
14915
+ subTaxonomies={props.subTaxonomies}
14912
14916
  />
14913
14917
  */
14914
14918
  if (subTaxonomies.length === 0 && parentTaxonomy) {
@@ -14917,31 +14921,49 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14917
14921
  }
14918
14922
  return React__default.createElement(
14919
14923
  'div',
14920
- { id: 'related_dropdown', className: className },
14924
+ null,
14921
14925
  React__default.createElement(
14922
- DropdownButton,
14923
- { id: 'related_button', variant: variant, title: 'Related Topics' },
14926
+ 'style',
14927
+ { jsx: true },
14928
+ '\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 '
14929
+ ),
14930
+ React__default.createElement(
14931
+ 'div',
14932
+ { id: 'related_dropdown', className: className },
14924
14933
  React__default.createElement(
14925
- Dropdown.Item,
14926
- { href: parentTaxonomy.identifier },
14927
- parentTaxonomy.name
14934
+ DropdownButton,
14935
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
14936
+ React__default.createElement(
14937
+ Dropdown.Item,
14938
+ { href: parentTaxonomy.identifier },
14939
+ parentTaxonomy.name
14940
+ )
14928
14941
  )
14929
14942
  )
14930
14943
  );
14931
14944
  } else {
14932
14945
  return React__default.createElement(
14933
14946
  'div',
14934
- { id: 'related_dropdown', className: className },
14947
+ null,
14935
14948
  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
- })
14949
+ 'style',
14950
+ { jsx: true },
14951
+ '\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 '
14952
+ ),
14953
+ React__default.createElement(
14954
+ 'div',
14955
+ { id: 'related_dropdown', className: className },
14956
+ React__default.createElement(
14957
+ DropdownButton,
14958
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
14959
+ subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
14960
+ return React__default.createElement(
14961
+ Dropdown.Item,
14962
+ { key: index, href: page + '/' + taxonomy.identifier },
14963
+ taxonomy.name
14964
+ );
14965
+ })
14966
+ )
14945
14967
  )
14946
14968
  );
14947
14969
  }
@@ -22299,7 +22321,9 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
22299
22321
  }
22300
22322
  var url = void 0;
22301
22323
  if (docGroup.path.includes('/')) {
22302
- return docGroup.path;
22324
+ console.log(docGroup);
22325
+ console.log(docGroup.path);
22326
+ return "/" + docGroup.path;
22303
22327
  }
22304
22328
 
22305
22329
  if (docGroup.parent) {
@@ -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) {
@@ -14900,12 +14904,12 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14900
14904
  /*
14901
14905
  Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14902
14906
  example:
14903
- <RelatedTopicDropdown
14904
- page='/clinical'
14905
- exclude="clinical"
14906
- className='mb-3'
14907
- parentTaxonomy={props.parentTaxonomy}
14908
- subTaxonomies={props.subTaxonomies}
14907
+ <RelatedTopicDropdown
14908
+ page='/clinical'
14909
+ exclude="clinical"
14910
+ className='mb-3'
14911
+ parentTaxonomy={props.parentTaxonomy}
14912
+ subTaxonomies={props.subTaxonomies}
14909
14913
  />
14910
14914
  */
14911
14915
  if (subTaxonomies.length === 0 && parentTaxonomy) {
@@ -14914,31 +14918,49 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14914
14918
  }
14915
14919
  return React__default.createElement(
14916
14920
  'div',
14917
- { id: 'related_dropdown', className: className },
14921
+ null,
14918
14922
  React__default.createElement(
14919
- DropdownButton,
14920
- { id: 'related_button', variant: variant, title: 'Related Topics' },
14923
+ 'style',
14924
+ { jsx: true },
14925
+ '\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 '
14926
+ ),
14927
+ React__default.createElement(
14928
+ 'div',
14929
+ { id: 'related_dropdown', className: className },
14921
14930
  React__default.createElement(
14922
- Dropdown.Item,
14923
- { href: parentTaxonomy.identifier },
14924
- parentTaxonomy.name
14931
+ DropdownButton,
14932
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
14933
+ React__default.createElement(
14934
+ Dropdown.Item,
14935
+ { href: parentTaxonomy.identifier },
14936
+ parentTaxonomy.name
14937
+ )
14925
14938
  )
14926
14939
  )
14927
14940
  );
14928
14941
  } else {
14929
14942
  return React__default.createElement(
14930
14943
  'div',
14931
- { id: 'related_dropdown', className: className },
14944
+ null,
14932
14945
  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
- })
14946
+ 'style',
14947
+ { jsx: true },
14948
+ '\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 '
14949
+ ),
14950
+ React__default.createElement(
14951
+ 'div',
14952
+ { id: 'related_dropdown', className: className },
14953
+ React__default.createElement(
14954
+ DropdownButton,
14955
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
14956
+ subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
14957
+ return React__default.createElement(
14958
+ Dropdown.Item,
14959
+ { key: index, href: page + '/' + taxonomy.identifier },
14960
+ taxonomy.name
14961
+ );
14962
+ })
14963
+ )
14942
14964
  )
14943
14965
  );
14944
14966
  }
@@ -22296,7 +22318,9 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
22296
22318
  }
22297
22319
  var url = void 0;
22298
22320
  if (docGroup.path.includes('/')) {
22299
- return docGroup.path;
22321
+ console.log(docGroup);
22322
+ console.log(docGroup.path);
22323
+ return "/" + docGroup.path;
22300
22324
  }
22301
22325
 
22302
22326
  if (docGroup.parent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.398",
3
+ "version": "1.0.400",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",