@mjhls/mjh-framework 1.0.659 → 1.0.660

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.659
2
+ # mjh-framework v. 1.0.660
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
+
5
+ require('./_commonjsHelpers-06173234.js');
6
+ require('./_to-object-329a650b.js');
7
+ require('./es6.string.iterator-cc0bbaa4.js');
8
+ require('./_library-dd23b178.js');
9
+ require('./core.get-iterator-method-f62321d4.js');
10
+ require('./_object-pie-68c5bcbc.js');
11
+ var _extends = require('./extends-60837c34.js');
12
+ require('./web.dom.iterable-a0e279c1.js');
13
+ require('./typeof-725500bc.js');
14
+ require('./_is-array-754e012d.js');
15
+ var React = require('react');
16
+ var React__default = _interopDefault(React);
17
+ require('prop-types');
18
+ require('react-dom');
19
+ require('./index-b5eb3ff8.js');
20
+ require('./index-da796b8c.js');
21
+ require('./slicedToArray-8f385299.js');
22
+ require('./smoothscroll-95231a70.js');
23
+ var YoutubeGroup = require('./YoutubeGroup.js');
24
+
25
+ function ArticleCarousel(props) {
26
+ //Passed in array of articles to pass into YoutubeGroup
27
+ var articles = props.articles;
28
+
29
+ //Setup article.link URL
30
+
31
+ var data = articles.map(function (article, index) {
32
+ article.link = '/view/' + article.url.current;
33
+ return article;
34
+ });
35
+
36
+ return React__default.createElement(
37
+ React__default.Fragment,
38
+ null,
39
+ articles ? React__default.createElement(YoutubeGroup, _extends._extends({ key: 'articleCarousel-0', dataset: data }, props)) : React__default.createElement(
40
+ 'p',
41
+ null,
42
+ 'No Article Found.'
43
+ )
44
+ );
45
+ }
46
+
47
+ module.exports = ArticleCarousel;
@@ -0,0 +1,42 @@
1
+ import './_commonjsHelpers-0c4b6f40.js';
2
+ import './_to-object-ded78eb9.js';
3
+ import './es6.string.iterator-9b2af4a5.js';
4
+ import './_library-528f1934.js';
5
+ import './core.get-iterator-method-54d2e411.js';
6
+ import './_object-pie-71ac75a4.js';
7
+ import { _ as _extends } from './extends-cc5da797.js';
8
+ import './web.dom.iterable-8956f9a5.js';
9
+ import './typeof-08f2c380.js';
10
+ import './_is-array-49698029.js';
11
+ import React__default from 'react';
12
+ import 'prop-types';
13
+ import 'react-dom';
14
+ import './index-51a80699.js';
15
+ import './index-5f9f807a.js';
16
+ import './slicedToArray-7021e5df.js';
17
+ import './smoothscroll-4b699764.js';
18
+ import YoutubeGroup from './YoutubeGroup.js';
19
+
20
+ function ArticleCarousel(props) {
21
+ //Passed in array of articles to pass into YoutubeGroup
22
+ var articles = props.articles;
23
+
24
+ //Setup article.link URL
25
+
26
+ var data = articles.map(function (article, index) {
27
+ article.link = '/view/' + article.url.current;
28
+ return article;
29
+ });
30
+
31
+ return React__default.createElement(
32
+ React__default.Fragment,
33
+ null,
34
+ articles ? React__default.createElement(YoutubeGroup, _extends({ key: 'articleCarousel-0', dataset: data }, props)) : React__default.createElement(
35
+ 'p',
36
+ null,
37
+ 'No Article Found.'
38
+ )
39
+ );
40
+ }
41
+
42
+ export default ArticleCarousel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.659",
3
+ "version": "1.0.660",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",