@mjhls/mjh-framework 1.0.756 → 1.0.758

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,4 +1,4 @@
1
- # mjh-framework v. 1.0.756
1
+ # mjh-framework v. 1.0.758
2
2
  [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
3
3
 
4
4
  ## Install
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-db24842a.js');
5
5
  var _extends = require('./extends-1e24fc8d.js');
6
6
  var React = require('react');
7
7
  var BlockContent = require('./BlockContent-eca358e4.js');
8
- var getSerializers = require('./index-79b36dbf.js');
8
+ var getSerializers = require('./index-9e0ebc87.js');
9
9
  var ArticleSeriesListing = require('./ArticleSeriesListing.js');
10
10
  require('./_commonjsHelpers-06173234.js');
11
11
  require('./es6.string.iterator-20d42c53.js');
@@ -4,7 +4,7 @@ var _extends = require('./extends-1e24fc8d.js');
4
4
  var slicedToArray = require('./slicedToArray-db24842a.js');
5
5
  var React = require('react');
6
6
  var BlockContent = require('./BlockContent-eca358e4.js');
7
- var getSerializers = require('./index-79b36dbf.js');
7
+ var getSerializers = require('./index-9e0ebc87.js');
8
8
  var index = require('./index-4d74ffd6.js');
9
9
  var Router = require('next/router');
10
10
  var Button = require('react-bootstrap/Button');
@@ -5,7 +5,7 @@ var React = require('react');
5
5
  var ArticleCarousel = require('./ArticleCarousel.js');
6
6
  var index_esm = require('./index.esm-974f47d9.js');
7
7
  var BlockContent = require('./BlockContent-eca358e4.js');
8
- var getSerializers = require('./index-79b36dbf.js');
8
+ var getSerializers = require('./index-9e0ebc87.js');
9
9
  require('./_commonjsHelpers-06173234.js');
10
10
  require('./_to-object-821a2927.js');
11
11
  require('./_object-pie-68c5bcbc.js');
@@ -12,7 +12,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
12
12
  var Breadcrumbs = require('./Breadcrumbs.js');
13
13
  var Feature = require('./Feature.js');
14
14
  var urlFor = require('./urlFor.js');
15
- var getSerializers = require('./index-79b36dbf.js');
15
+ var getSerializers = require('./index-9e0ebc87.js');
16
16
  var BlockContent = require('./BlockContent-eca358e4.js');
17
17
  require('./_commonjsHelpers-06173234.js');
18
18
  require('./es6.string.iterator-20d42c53.js');
@@ -6,7 +6,7 @@ var React = require('react');
6
6
  var Router = require('next/router');
7
7
  var Head = require('next/head');
8
8
  var BlockContent = require('./BlockContent-eca358e4.js');
9
- var getSerializers = require('./index-79b36dbf.js');
9
+ var getSerializers = require('./index-9e0ebc87.js');
10
10
  require('./_commonjsHelpers-06173234.js');
11
11
  require('./es6.string.iterator-20d42c53.js');
12
12
  require('./_to-object-821a2927.js');
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-eca358e4.js');
7
7
  var Col = require('react-bootstrap/Col');
8
8
  var Form = require('react-bootstrap/Form');
9
9
  var Button = require('react-bootstrap/Button');
10
- var getSerializers = require('./index-79b36dbf.js');
10
+ var getSerializers = require('./index-9e0ebc87.js');
11
11
  var VideoSeriesListing = require('./VideoSeriesListing.js');
12
12
  require('./_commonjsHelpers-06173234.js');
13
13
  require('./es6.string.iterator-20d42c53.js');
package/dist/cjs/View.js CHANGED
@@ -15,7 +15,7 @@ require('react-bootstrap/Dropdown');
15
15
  var Form = require('react-bootstrap/Form');
16
16
  var FormControl = require('react-bootstrap/FormControl');
17
17
  var Button = require('react-bootstrap/Button');
18
- var getSerializers = require('./index-79b36dbf.js');
18
+ var getSerializers = require('./index-9e0ebc87.js');
19
19
  var SocialShare = require('./SocialShare.js');
20
20
  var AdSlot = require('./AdSlot.js');
21
21
  var getTargeting = require('./getTargeting-497b581d.js');
@@ -587,7 +587,7 @@ var Article = function Article(props) {
587
587
  if (documentGroupMapping && documentGroupMapping.length > 0) {
588
588
  documentGroupMapping.forEach(function (documentGroup) {
589
589
  if (documentGroup.parent) {
590
- relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path }]);
590
+ relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: cpModificationRequired ? getDocumentGroupUrl(documentGroup) : '/' + documentGroup.path }]);
591
591
  }
592
592
  });
593
593
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('react');
4
- var getSerializers = require('./index-79b36dbf.js');
4
+ var getSerializers = require('./index-9e0ebc87.js');
5
5
  require('./BlockContent-eca358e4.js');
6
6
  require('./entities-3f9d0f2f.js');
7
7
  require('./slicedToArray-db24842a.js');
@@ -8219,36 +8219,22 @@ var NativeAd = function NativeAd(props) {
8219
8219
  );
8220
8220
  };
8221
8221
 
8222
- var createMarkup = function createMarkup(htmlContent) {
8223
- return { __html: htmlContent };
8224
- };
8225
-
8226
8222
  var Formstack = function Formstack(_ref) {
8227
8223
  var FormID = _ref.FormID,
8228
8224
  Caption = _ref.Caption,
8229
8225
  _ref$needSegmentSuppo = _ref.needSegmentSupport,
8230
8226
  needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
8231
8227
 
8232
- var formstackRef = React.useRef(null);
8233
- React.useEffect(function () {
8234
- if (needSegmentSupport) {
8235
- var newSrc = Segment.getURL('https://mjhlifesciences.formstack.com/forms/js.php/' + FormID, { needSegmentSupport: true });
8236
- var scriptTag = formstackRef.current.querySelector('script');
8237
- scriptTag && newSrc && scriptTag.setAttribute('src', newSrc);
8238
- }
8239
- }, []);
8240
-
8241
- var htmlContent = '\n <script type="text/javascript" src="https://mjhlifesciences.formstack.com/forms/js.php/' + FormID + '"></script>\n <noscript><a href="https://mjhlifesciences.formstack.com/forms/' + FormID + '" title="Online Form">' + Caption + '</a></noscript>\n ';
8242
-
8228
+ var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
8243
8229
  return React__default['default'].createElement(
8244
- 'div',
8245
- { ref: formstackRef },
8246
- React__default['default'].createElement(
8230
+ 'section',
8231
+ { id: 'formstack-section', className: 'formstack-section' },
8232
+ Caption && React__default['default'].createElement(
8247
8233
  'h4',
8248
8234
  { className: 'formstack-caption' },
8249
8235
  Caption
8250
8236
  ),
8251
- React__default['default'].createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
8237
+ React__default['default'].createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
8252
8238
  );
8253
8239
  };
8254
8240
 
package/dist/cjs/index.js CHANGED
@@ -82,7 +82,7 @@ var VerticalHero = require('./VerticalHero.js');
82
82
  var YahooHero = require('./YahooHero.js');
83
83
  var GridHero = require('./GridHero.js');
84
84
  var ConferenceArticleCard = require('./ConferenceArticleCard.js');
85
- var getSerializers = require('./index-79b36dbf.js');
85
+ var getSerializers = require('./index-9e0ebc87.js');
86
86
  var Beam = require('./Beam.js');
87
87
  var Segment = require('./Segment.js');
88
88
  var KMTracker = require('./KMTracker.js');
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
3
  import { _ as _extends } from './extends-31d65aba.js';
4
4
  import React from 'react';
5
5
  import { B as BlockContent } from './BlockContent-d8cd739c.js';
6
- import { g as getSerializers } from './index-df579a0c.js';
6
+ import { g as getSerializers } from './index-98643e12.js';
7
7
  import ArticleSeriesListing from './ArticleSeriesListing.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './es6.string.iterator-aa6068a3.js';
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-31d65aba.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { B as BlockContent } from './BlockContent-d8cd739c.js';
5
- import { g as getSerializers } from './index-df579a0c.js';
5
+ import { g as getSerializers } from './index-98643e12.js';
6
6
  import { m as momentTimezone } from './index-ccb770c7.js';
7
7
  import { useRouter } from 'next/router';
8
8
  import Button from 'react-bootstrap/Button';
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import ArticleCarousel from './ArticleCarousel.js';
4
4
  import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
5
5
  import { B as BlockContent } from './BlockContent-d8cd739c.js';
6
- import { g as getSerializers } from './index-df579a0c.js';
6
+ import { g as getSerializers } from './index-98643e12.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './_to-object-97770c52.js';
9
9
  import './_object-pie-33c40e79.js';
@@ -10,7 +10,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
10
10
  import Breadcrumbs from './Breadcrumbs.js';
11
11
  import Feature from './Feature.js';
12
12
  import urlFor from './urlFor.js';
13
- import { g as getSerializers } from './index-df579a0c.js';
13
+ import { g as getSerializers } from './index-98643e12.js';
14
14
  import { B as BlockContent } from './BlockContent-d8cd739c.js';
15
15
  import './_commonjsHelpers-0c4b6f40.js';
16
16
  import './es6.string.iterator-aa6068a3.js';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { useRouter } from 'next/router';
5
5
  import Head from 'next/head';
6
6
  import { B as BlockContent } from './BlockContent-d8cd739c.js';
7
- import { g as getSerializers } from './index-df579a0c.js';
7
+ import { g as getSerializers } from './index-98643e12.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './es6.string.iterator-aa6068a3.js';
10
10
  import './_to-object-97770c52.js';
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-d8cd739c.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-df579a0c.js';
8
+ import { g as getSerializers } from './index-98643e12.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './es6.string.iterator-aa6068a3.js';
package/dist/esm/View.js CHANGED
@@ -13,7 +13,7 @@ import 'react-bootstrap/Dropdown';
13
13
  import Form from 'react-bootstrap/Form';
14
14
  import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-df579a0c.js';
16
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-98643e12.js';
17
17
  import SocialShare from './SocialShare.js';
18
18
  import DFPAdSlot from './AdSlot.js';
19
19
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
@@ -577,7 +577,7 @@ var Article = function Article(props) {
577
577
  if (documentGroupMapping && documentGroupMapping.length > 0) {
578
578
  documentGroupMapping.forEach(function (documentGroup) {
579
579
  if (documentGroup.parent) {
580
- relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path }]);
580
+ relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: cpModificationRequired ? getDocumentGroupUrl(documentGroup) : '/' + documentGroup.path }]);
581
581
  }
582
582
  });
583
583
  }
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { g as default } from './index-df579a0c.js';
2
+ export { g as default } from './index-98643e12.js';
3
3
  import './BlockContent-d8cd739c.js';
4
4
  import './entities-932b50cf.js';
5
5
  import './slicedToArray-cdeaee08.js';
@@ -8205,36 +8205,22 @@ var NativeAd = function NativeAd(props) {
8205
8205
  );
8206
8206
  };
8207
8207
 
8208
- var createMarkup = function createMarkup(htmlContent) {
8209
- return { __html: htmlContent };
8210
- };
8211
-
8212
8208
  var Formstack = function Formstack(_ref) {
8213
8209
  var FormID = _ref.FormID,
8214
8210
  Caption = _ref.Caption,
8215
8211
  _ref$needSegmentSuppo = _ref.needSegmentSupport,
8216
8212
  needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
8217
8213
 
8218
- var formstackRef = useRef(null);
8219
- useEffect(function () {
8220
- if (needSegmentSupport) {
8221
- var newSrc = Segment.getURL('https://mjhlifesciences.formstack.com/forms/js.php/' + FormID, { needSegmentSupport: true });
8222
- var scriptTag = formstackRef.current.querySelector('script');
8223
- scriptTag && newSrc && scriptTag.setAttribute('src', newSrc);
8224
- }
8225
- }, []);
8226
-
8227
- var htmlContent = '\n <script type="text/javascript" src="https://mjhlifesciences.formstack.com/forms/js.php/' + FormID + '"></script>\n <noscript><a href="https://mjhlifesciences.formstack.com/forms/' + FormID + '" title="Online Form">' + Caption + '</a></noscript>\n ';
8228
-
8214
+ var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
8229
8215
  return React.createElement(
8230
- 'div',
8231
- { ref: formstackRef },
8232
- React.createElement(
8216
+ 'section',
8217
+ { id: 'formstack-section', className: 'formstack-section' },
8218
+ Caption && React.createElement(
8233
8219
  'h4',
8234
8220
  { className: 'formstack-caption' },
8235
8221
  Caption
8236
8222
  ),
8237
- React.createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
8223
+ React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
8238
8224
  );
8239
8225
  };
8240
8226
 
package/dist/esm/index.js CHANGED
@@ -78,7 +78,7 @@ export { default as VerticalHero } from './VerticalHero.js';
78
78
  export { default as YahooHero } from './YahooHero.js';
79
79
  export { default as GridHero } from './GridHero.js';
80
80
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
81
- export { g as getSerializers } from './index-df579a0c.js';
81
+ export { g as getSerializers } from './index-98643e12.js';
82
82
  export { default as Beam } from './Beam.js';
83
83
  export { default as Segment } from './Segment.js';
84
84
  export { default as KMTracker } from './KMTracker.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.756",
3
+ "version": "1.0.758",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",