@mjhls/mjh-framework 1.0.286 → 1.0.288

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.286
2
+ # mjh-framework v. 1.0.288
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -1309,7 +1309,7 @@ var NavMagazine = function NavMagazine(props) {
1309
1309
  if (navRef.current && navRef.current.style) {
1310
1310
  navRef.current.style.position = 'relative';
1311
1311
  navRef.current.style.top = '';
1312
- adSection.style.marginTop = '';
1312
+ if (adSection) adSection.style.marginTop = '';
1313
1313
  }
1314
1314
  }
1315
1315
  });
@@ -2081,7 +2081,7 @@ var HamMagazine = function HamMagazine(props) {
2081
2081
  if (navRef.current && navRef.current.style) {
2082
2082
  navRef.current.style.position = 'relative';
2083
2083
  navRef.current.style.top = '';
2084
- adSection.style.marginTop = '';
2084
+ if (adSection) adSection.style.marginTop = '';
2085
2085
  }
2086
2086
  }
2087
2087
  });
@@ -19,7 +19,7 @@ require('./get-de2660c3.js');
19
19
  require('react-bootstrap');
20
20
  require('./index.esm-340d3792.js');
21
21
  require('react-bootstrap/Button');
22
- var TemplateNormal = require('./Normal-2514655c.js');
22
+ var TemplateNormal = require('./Normal-c1e96654.js');
23
23
  require('react-bootstrap/ListGroup');
24
24
  require('next/head');
25
25
  require('react-bootstrap/Nav');
package/dist/cjs/index.js CHANGED
@@ -52,7 +52,7 @@ var IssueDeck = require('./IssueDeck.js');
52
52
  require('react-bootstrap/Badge');
53
53
  var IssueContentDeck = require('./IssueContentDeck.js');
54
54
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
55
- var TemplateNormal = require('./Normal-2514655c.js');
55
+ var TemplateNormal = require('./Normal-c1e96654.js');
56
56
  require('react-bootstrap/ListGroup');
57
57
  var Head = _interopDefault(require('next/head'));
58
58
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -6442,17 +6442,17 @@ DocumentFragment.prototype.toString =
6442
6442
  }).join("")
6443
6443
  };
6444
6444
 
6445
- var event = Event;
6445
+ var event = Event$1;
6446
6446
 
6447
- function Event(family) {}
6447
+ function Event$1(family) {}
6448
6448
 
6449
- Event.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
6449
+ Event$1.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
6450
6450
  this.type = type;
6451
6451
  this.bubbles = bubbles;
6452
6452
  this.cancelable = cancelable;
6453
6453
  };
6454
6454
 
6455
- Event.prototype.preventDefault = function _Event_preventDefault() {
6455
+ Event$1.prototype.preventDefault = function _Event_preventDefault() {
6456
6456
 
6457
6457
  };
6458
6458
 
@@ -12942,6 +12942,12 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12942
12942
  setData(data);
12943
12943
  }, []);
12944
12944
 
12945
+ React.useEffect(function () {
12946
+ if (vidLoaded == true) {
12947
+ document.title = nodes.videos[series - 1].title;
12948
+ }
12949
+ }, [vidLoaded]);
12950
+
12945
12951
  function toggleSeries() {
12946
12952
  var series = document.querySelector('.vid-series');
12947
12953
  if (series.classList.contains('active')) {
@@ -12962,6 +12968,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12962
12968
  var newPath = '/' + get2 + '/' + get3 + ('?seriesVid=' + vidIndex);
12963
12969
  var vidState = { vid_id: vidIndex };
12964
12970
  window.history.pushState(vidState, '', newPath);
12971
+
12965
12972
  setSeries(vidIndex);
12966
12973
  setVidLoaded(true);
12967
12974
  }, 100);
@@ -13010,7 +13017,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13010
13017
  var vidState = { vid_id: nextVid + 1 };
13011
13018
  var title = '';
13012
13019
  window.history.pushState(vidState, title, newPath);
13013
-
13020
+ window.dispatchEvent(new Event('urlChange'));
13014
13021
  //Small pause before starting next video
13015
13022
  setTimeout(function () {
13016
13023
  //Youtube API to start video playing automatically
@@ -1304,7 +1304,7 @@ var NavMagazine = function NavMagazine(props) {
1304
1304
  if (navRef.current && navRef.current.style) {
1305
1305
  navRef.current.style.position = 'relative';
1306
1306
  navRef.current.style.top = '';
1307
- adSection.style.marginTop = '';
1307
+ if (adSection) adSection.style.marginTop = '';
1308
1308
  }
1309
1309
  }
1310
1310
  });
@@ -2076,7 +2076,7 @@ var HamMagazine = function HamMagazine(props) {
2076
2076
  if (navRef.current && navRef.current.style) {
2077
2077
  navRef.current.style.position = 'relative';
2078
2078
  navRef.current.style.top = '';
2079
- adSection.style.marginTop = '';
2079
+ if (adSection) adSection.style.marginTop = '';
2080
2080
  }
2081
2081
  }
2082
2082
  });
@@ -17,7 +17,7 @@ import './get-9c285a85.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-d27184f4.js';
20
+ export { T as default } from './Normal-1dd0edc6.js';
21
21
  import 'react-bootstrap/ListGroup';
22
22
  import 'next/head';
23
23
  import 'react-bootstrap/Nav';
package/dist/esm/index.js CHANGED
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
48
48
  import 'react-bootstrap/Badge';
49
49
  export { default as IssueContentDeck } from './IssueContentDeck.js';
50
50
  import Spinner from 'react-bootstrap/Spinner';
51
- import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-d27184f4.js';
52
- 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-d27184f4.js';
51
+ import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-1dd0edc6.js';
52
+ 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-1dd0edc6.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -6440,17 +6440,17 @@ DocumentFragment.prototype.toString =
6440
6440
  }).join("")
6441
6441
  };
6442
6442
 
6443
- var event = Event;
6443
+ var event = Event$1;
6444
6444
 
6445
- function Event(family) {}
6445
+ function Event$1(family) {}
6446
6446
 
6447
- Event.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
6447
+ Event$1.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
6448
6448
  this.type = type;
6449
6449
  this.bubbles = bubbles;
6450
6450
  this.cancelable = cancelable;
6451
6451
  };
6452
6452
 
6453
- Event.prototype.preventDefault = function _Event_preventDefault() {
6453
+ Event$1.prototype.preventDefault = function _Event_preventDefault() {
6454
6454
 
6455
6455
  };
6456
6456
 
@@ -12940,6 +12940,12 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12940
12940
  setData(data);
12941
12941
  }, []);
12942
12942
 
12943
+ useEffect(function () {
12944
+ if (vidLoaded == true) {
12945
+ document.title = nodes.videos[series - 1].title;
12946
+ }
12947
+ }, [vidLoaded]);
12948
+
12943
12949
  function toggleSeries() {
12944
12950
  var series = document.querySelector('.vid-series');
12945
12951
  if (series.classList.contains('active')) {
@@ -12960,6 +12966,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12960
12966
  var newPath = '/' + get2 + '/' + get3 + ('?seriesVid=' + vidIndex);
12961
12967
  var vidState = { vid_id: vidIndex };
12962
12968
  window.history.pushState(vidState, '', newPath);
12969
+
12963
12970
  setSeries(vidIndex);
12964
12971
  setVidLoaded(true);
12965
12972
  }, 100);
@@ -13008,7 +13015,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13008
13015
  var vidState = { vid_id: nextVid + 1 };
13009
13016
  var title = '';
13010
13017
  window.history.pushState(vidState, title, newPath);
13011
-
13018
+ window.dispatchEvent(new Event('urlChange'));
13012
13019
  //Small pause before starting next video
13013
13020
  setTimeout(function () {
13014
13021
  //Youtube API to start video playing automatically
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.286",
3
+ "version": "1.0.288",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",