@mjhls/mjh-framework 1.0.384 → 1.0.385
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 +1 -1
- package/dist/cjs/{ADInfeed-5949653c.js → ADInfeed-f544f2a5.js} +1 -1
- package/dist/cjs/{AdSlot-91bc9d77.js → AdSlot-1e40a214.js} +2 -2
- package/dist/cjs/DeckContent.js +9 -6
- package/dist/cjs/DeckQueue.js +7 -4
- package/dist/cjs/{Dfp-25e669fe.js → Dfp-27b922b0.js} +1 -1
- package/dist/cjs/{GridContent-1f1041b1.js → GridContent-1871749e.js} +6 -6
- package/dist/cjs/GridContent.js +11 -8
- package/dist/cjs/GroupDeck.js +26 -2
- package/dist/cjs/MasterDeck.js +7 -4
- package/dist/cjs/{Normal-c96bc60c.js → Normal-a747507b.js} +2 -2
- package/dist/cjs/QueueDeckExpanded.js +7 -5
- package/dist/cjs/{TaxonomyCard-b51062ec.js → TaxonomyCard-cf264332.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +3 -2
- package/dist/cjs/TemplateNormal.js +6 -5
- package/dist/cjs/VideoSeriesListing.js +7 -3
- package/dist/cjs/YoutubeGroup.js +23 -2
- package/dist/cjs/_library-dd23b178.js +5 -0
- package/dist/cjs/_object-pie-68c5bcbc.js +16 -0
- package/dist/cjs/{debounce-528ad412.js → debounce-b088070c.js} +0 -3
- package/dist/cjs/{extends-4c2285ff.js → extends-60837c34.js} +3 -16
- package/dist/cjs/{get-3b23d857.js → get-5aa7468c.js} +1 -1
- package/dist/cjs/index.js +18 -15
- package/dist/cjs/inherits-2a0fa98c.js +210 -0
- package/dist/cjs/{promise-f3635def.js → promise-d5136080.js} +2 -2
- package/dist/cjs/{inherits-cfb3a105.js → typeof-2747c582.js} +17 -217
- package/dist/esm/{ADInfeed-cb72a50c.js → ADInfeed-88c335d9.js} +1 -1
- package/dist/esm/{AdSlot-691d4ea0.js → AdSlot-971ce41c.js} +5 -5
- package/dist/esm/{AuthorComponent-2d328934.js → AuthorComponent-beb2ad16.js} +1 -1
- package/dist/esm/DeckContent.js +14 -11
- package/dist/esm/DeckQueue.js +11 -8
- package/dist/esm/{Dfp-9f16c743.js → Dfp-3b3273ee.js} +4 -4
- package/dist/esm/{Figure-c3dd2204.js → Figure-7ba30e53.js} +3 -3
- package/dist/esm/{GridContent-2c9483e5.js → GridContent-3229be76.js} +9 -9
- package/dist/esm/GridContent.js +17 -14
- package/dist/esm/GroupDeck.js +29 -5
- package/dist/esm/MasterDeck.js +11 -8
- package/dist/esm/{Normal-1dbb3ddd.js → Normal-508d09f1.js} +4 -4
- package/dist/esm/QueueDeckExpanded.js +13 -11
- package/dist/esm/{TaxonomyCard-dace0e7a.js → TaxonomyCard-12f0a90a.js} +1 -1
- package/dist/esm/TaxonomyCard.js +4 -3
- package/dist/esm/TemplateNormal.js +10 -9
- package/dist/esm/{Ustream-5af5d020.js → Ustream-ee7aeeef.js} +1 -1
- package/dist/esm/Ustream.js +4 -4
- package/dist/esm/VideoSeriesListing.js +10 -6
- package/dist/esm/YoutubeGroup.js +26 -5
- package/dist/esm/_library-528f1934.js +3 -0
- package/dist/esm/_object-pie-33c40e79.js +13 -0
- package/dist/esm/{_to-object-18b775df.js → _to-object-1b1f7766.js} +1 -1
- package/dist/esm/{debounce-702eb224.js → debounce-df468b0e.js} +1 -3
- package/dist/esm/{extends-886d1c3d.js → extends-92072fff.js} +3 -14
- package/dist/esm/{get-36d03764.js → get-53653403.js} +1 -1
- package/dist/esm/index.js +26 -23
- package/dist/esm/inherits-cacd91d8.js +203 -0
- package/dist/esm/{main-b2628307.js → main-25bb2c75.js} +2 -2
- package/dist/esm/{promise-e74ec3c8.js → promise-5d7cd78a.js} +4 -4
- package/dist/esm/{slicedToArray-e6f2ff4b.js → slicedToArray-04e02710.js} +2 -2
- package/dist/esm/{toConsumableArray-6e77ffeb.js → toConsumableArray-d7054876.js} +3 -3
- package/dist/esm/{inherits-08eb6462.js → typeof-e4b50250.js} +8 -205
- package/dist/esm/{web.dom.iterable-21cbfc63.js → web.dom.iterable-e6bf2bf6.js} +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
4
|
-
import {
|
|
5
|
-
import { c as _inherits, d as _classCallCheck, e as _possibleConstructorReturn, f as _Object$getPrototypeOf, g as _createClass } from './inherits-08eb6462.js';
|
|
1
|
+
import { m as main_39 } from './main-25bb2c75.js';
|
|
2
|
+
import { _ as _toConsumableArray } from './toConsumableArray-d7054876.js';
|
|
3
|
+
import { _ as _extends } from './extends-92072fff.js';
|
|
4
|
+
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cacd91d8.js';
|
|
6
5
|
import React__default, { Suspense } from 'react';
|
|
6
|
+
import { d as debounce_1, l as lib_3 } from './debounce-df468b0e.js';
|
|
7
7
|
import Container from 'react-bootstrap/Container';
|
|
8
8
|
import Row from 'react-bootstrap/Row';
|
|
9
9
|
import Col from 'react-bootstrap/Col';
|
|
@@ -14,12 +14,12 @@ 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-
|
|
18
|
-
import { g as get_1 } from './get-
|
|
19
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
17
|
+
import { A as ADInfeed } from './ADInfeed-88c335d9.js';
|
|
18
|
+
import { g as get_1 } from './get-53653403.js';
|
|
19
|
+
import { A as AuthorComponent } from './AuthorComponent-beb2ad16.js';
|
|
20
20
|
|
|
21
21
|
var Dfp = React__default.lazy(function () {
|
|
22
|
-
return import('./Dfp-
|
|
22
|
+
return import('./Dfp-3b3273ee.js');
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
var AD = function AD(props) {
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
4
|
-
import './
|
|
5
|
-
import './main-
|
|
6
|
-
import './toConsumableArray-
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './main-25bb2c75.js';
|
|
6
|
+
import './toConsumableArray-d7054876.js';
|
|
7
|
+
import './_object-pie-33c40e79.js';
|
|
8
|
+
import './extends-92072fff.js';
|
|
9
|
+
import './inherits-cacd91d8.js';
|
|
10
|
+
import './typeof-e4b50250.js';
|
|
9
11
|
import 'react';
|
|
12
|
+
import './debounce-df468b0e.js';
|
|
10
13
|
import 'prop-types';
|
|
11
14
|
import 'react-bootstrap/Container';
|
|
12
15
|
import 'react-bootstrap/Row';
|
|
@@ -19,10 +22,10 @@ import 'react-dom';
|
|
|
19
22
|
import './index-51a80699.js';
|
|
20
23
|
import './index-5f9f807a.js';
|
|
21
24
|
import './entities-7cc3bf45.js';
|
|
22
|
-
import './slicedToArray-
|
|
23
|
-
import './AdSlot-
|
|
24
|
-
import './promise-
|
|
25
|
-
import './ADInfeed-
|
|
26
|
-
import './get-
|
|
27
|
-
export { G as default } from './GridContent-
|
|
28
|
-
import './AuthorComponent-
|
|
25
|
+
import './slicedToArray-04e02710.js';
|
|
26
|
+
import './AdSlot-971ce41c.js';
|
|
27
|
+
import './promise-5d7cd78a.js';
|
|
28
|
+
import './ADInfeed-88c335d9.js';
|
|
29
|
+
import './get-53653403.js';
|
|
30
|
+
export { G as default } from './GridContent-3229be76.js';
|
|
31
|
+
import './AuthorComponent-beb2ad16.js';
|
package/dist/esm/GroupDeck.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_object-pie-33c40e79.js';
|
|
6
|
+
import { b as _typeof } from './typeof-e4b50250.js';
|
|
4
7
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
5
|
-
import {
|
|
8
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
9
|
+
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
6
10
|
import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
7
11
|
|
|
8
12
|
/*
|
|
@@ -22,6 +26,11 @@ var GroupDeck = function GroupDeck(props) {
|
|
|
22
26
|
tileSize = _useState2[0],
|
|
23
27
|
setTileSize = _useState2[1];
|
|
24
28
|
|
|
29
|
+
var urlFor = function urlFor(source, client) {
|
|
30
|
+
var builder = imageUrlBuilder(client);
|
|
31
|
+
return builder.image(source).auto('format');
|
|
32
|
+
};
|
|
33
|
+
|
|
25
34
|
useEffect(function () {
|
|
26
35
|
//IE11 Polyfill
|
|
27
36
|
smoothscroll.polyfill();
|
|
@@ -134,7 +143,15 @@ var GroupDeck = function GroupDeck(props) {
|
|
|
134
143
|
// If there is a current prop, means this will overlay a currently playing video
|
|
135
144
|
if (current !== '') {
|
|
136
145
|
var url = video.url;
|
|
137
|
-
var thumbnail =
|
|
146
|
+
var thumbnail = void 0;
|
|
147
|
+
|
|
148
|
+
if (video.thumbnail && video.thumbnail.asset) {
|
|
149
|
+
thumbnail = urlFor(video.thumbnail, props.client);
|
|
150
|
+
} else if (_typeof(video.thumbnail == 'string')) {
|
|
151
|
+
thumbnail = video.thumbnail;
|
|
152
|
+
} else {
|
|
153
|
+
thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
|
|
154
|
+
}
|
|
138
155
|
|
|
139
156
|
return React__default.createElement(
|
|
140
157
|
'div',
|
|
@@ -177,7 +194,14 @@ var GroupDeck = function GroupDeck(props) {
|
|
|
177
194
|
} else {
|
|
178
195
|
// slider by itself
|
|
179
196
|
var _url = '' + video.link;
|
|
180
|
-
var _thumbnail =
|
|
197
|
+
var _thumbnail = void 0;
|
|
198
|
+
if (video.thumbnail && video.thumbnail.asset) {
|
|
199
|
+
_thumbnail = urlFor(video.thumbnail, props.client);
|
|
200
|
+
} else if (_typeof(video.thumbnail == 'string')) {
|
|
201
|
+
_thumbnail = video.thumbnail;
|
|
202
|
+
} else {
|
|
203
|
+
_thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
|
|
204
|
+
}
|
|
181
205
|
return React__default.createElement(
|
|
182
206
|
'div',
|
|
183
207
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
4
|
-
import
|
|
5
|
-
import { m as main_39 } from './main-
|
|
6
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import { m as main_39 } from './main-25bb2c75.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-d7054876.js';
|
|
7
|
+
import './_object-pie-33c40e79.js';
|
|
8
|
+
import { _ as _extends } from './extends-92072fff.js';
|
|
9
|
+
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cacd91d8.js';
|
|
10
|
+
import './typeof-e4b50250.js';
|
|
9
11
|
import React__default from 'react';
|
|
12
|
+
import { d as debounce_1, l as lib_3 } from './debounce-df468b0e.js';
|
|
10
13
|
import 'prop-types';
|
|
11
14
|
import Container from 'react-bootstrap/Container';
|
|
12
15
|
import 'react-bootstrap/Row';
|
|
@@ -17,7 +20,7 @@ import { withRouter } from 'next/router';
|
|
|
17
20
|
import { V as VisibilitySensor, I as InfiniteScroll } from './visibility-sensor-49d5805d.js';
|
|
18
21
|
import 'react-dom';
|
|
19
22
|
import './index-51a80699.js';
|
|
20
|
-
import { d as _Promise } from './promise-
|
|
23
|
+
import { d as _Promise } from './promise-5d7cd78a.js';
|
|
21
24
|
|
|
22
25
|
var MasterDeck = function (_React$Component) {
|
|
23
26
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as main_39, c as main_40 } from './main-
|
|
1
|
+
import { m as main_39, c as main_40 } from './main-25bb2c75.js';
|
|
2
2
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
3
3
|
import Container from 'react-bootstrap/Container';
|
|
4
4
|
import Row from 'react-bootstrap/Row';
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
7
|
-
import { D as DFPAdSlot } from './AdSlot-
|
|
8
|
-
import { g as get_1 } from './get-
|
|
6
|
+
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
7
|
+
import { D as DFPAdSlot } from './AdSlot-971ce41c.js';
|
|
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';
|
|
11
11
|
import { G as GenIcon, b as IoMdLogIn, c as IoIosHome } from './index.esm-536609db.js';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
4
|
-
import
|
|
5
|
-
import { m as main_39 } from './main-
|
|
6
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
7
|
-
import
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import { m as main_39 } from './main-25bb2c75.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-d7054876.js';
|
|
7
|
+
import './_object-pie-33c40e79.js';
|
|
8
|
+
import { _ as _extends } from './extends-92072fff.js';
|
|
8
9
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
10
|
+
import { l as lib_3 } from './debounce-df468b0e.js';
|
|
9
11
|
import 'prop-types';
|
|
10
12
|
import 'react-bootstrap/Card';
|
|
11
13
|
import { m as moment } from './moment-12415288.js';
|
|
@@ -15,11 +17,11 @@ import 'react-dom';
|
|
|
15
17
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
16
18
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
17
19
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
19
|
-
import './AdSlot-
|
|
20
|
-
import './promise-
|
|
21
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
22
|
-
import { A as AuthorComponent } from './AuthorComponent-
|
|
20
|
+
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
21
|
+
import './AdSlot-971ce41c.js';
|
|
22
|
+
import './promise-5d7cd78a.js';
|
|
23
|
+
import { A as ADInfeed } from './ADInfeed-88c335d9.js';
|
|
24
|
+
import { A as AuthorComponent } from './AuthorComponent-beb2ad16.js';
|
|
23
25
|
import { Container, Media } from 'react-bootstrap';
|
|
24
26
|
|
|
25
27
|
var urlFor = function urlFor(source, builder) {
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './_object-pie-33c40e79.js';
|
|
4
|
+
import './extends-92072fff.js';
|
|
4
5
|
import 'react';
|
|
5
6
|
import 'prop-types';
|
|
6
7
|
import 'react-bootstrap/Container';
|
|
@@ -10,5 +11,5 @@ import 'react-bootstrap/Card';
|
|
|
10
11
|
import 'react-dom';
|
|
11
12
|
import './index-51a80699.js';
|
|
12
13
|
import './index-5f9f807a.js';
|
|
13
|
-
export { T as default } from './TaxonomyCard-
|
|
14
|
+
export { T as default } from './TaxonomyCard-12f0a90a.js';
|
|
14
15
|
import './react-social-icons-a7d5c5c7.js';
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
4
|
-
import './
|
|
5
|
-
import './main-
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './main-25bb2c75.js';
|
|
6
6
|
import 'react';
|
|
7
|
+
import './debounce-df468b0e.js';
|
|
7
8
|
import 'prop-types';
|
|
8
9
|
import 'react-bootstrap/Container';
|
|
9
10
|
import 'react-bootstrap/Row';
|
|
10
11
|
import 'react-bootstrap/Col';
|
|
11
|
-
import './slicedToArray-
|
|
12
|
-
import './AdSlot-
|
|
13
|
-
import './promise-
|
|
14
|
-
import './get-
|
|
12
|
+
import './slicedToArray-04e02710.js';
|
|
13
|
+
import './AdSlot-971ce41c.js';
|
|
14
|
+
import './promise-5d7cd78a.js';
|
|
15
|
+
import './get-53653403.js';
|
|
15
16
|
import './react-social-icons-a7d5c5c7.js';
|
|
16
17
|
import 'react-bootstrap';
|
|
17
18
|
import './index.esm-536609db.js';
|
|
18
19
|
import 'react-bootstrap/Button';
|
|
19
|
-
export { T as default } from './Normal-
|
|
20
|
+
export { T as default } from './Normal-508d09f1.js';
|
|
20
21
|
import 'react-bootstrap/ListGroup';
|
|
21
22
|
import 'next/head';
|
|
22
23
|
import 'react-bootstrap/Nav';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
2
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
3
3
|
import { G as GenIcon, d as IoIosOpen } from './index.esm-536609db.js';
|
|
4
4
|
|
|
5
5
|
// THIS FILE IS AUTO GENERATED
|
package/dist/esm/Ustream.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './web.dom.iterable-e6bf2bf6.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import './slicedToArray-
|
|
5
|
+
import './slicedToArray-04e02710.js';
|
|
6
6
|
import './index.esm-536609db.js';
|
|
7
|
-
export { U as default } from './Ustream-
|
|
7
|
+
export { U as default } from './Ustream-ee7aeeef.js';
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_object-pie-33c40e79.js';
|
|
6
|
+
import { _ as _extends } from './extends-92072fff.js';
|
|
7
|
+
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-cacd91d8.js';
|
|
8
|
+
import './typeof-e4b50250.js';
|
|
7
9
|
import React__default from 'react';
|
|
10
|
+
import { d as debounce_1, l as lib_3 } from './debounce-df468b0e.js';
|
|
8
11
|
import 'prop-types';
|
|
9
12
|
import Container from 'react-bootstrap/Container';
|
|
10
13
|
import './moment-12415288.js';
|
|
11
14
|
import { withRouter } from 'next/router';
|
|
12
15
|
import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-49d5805d.js';
|
|
13
16
|
import 'react-dom';
|
|
17
|
+
import './index-51a80699.js';
|
|
14
18
|
import './index-5f9f807a.js';
|
|
15
|
-
import './slicedToArray-
|
|
19
|
+
import './slicedToArray-04e02710.js';
|
|
16
20
|
import './smoothscroll-4b699764.js';
|
|
17
21
|
import YoutubeGroup from './YoutubeGroup.js';
|
|
18
22
|
import { a as IoIosArrowForward } from './index.esm-536609db.js';
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './web.dom.iterable-
|
|
2
|
+
import './_to-object-1b1f7766.js';
|
|
3
|
+
import './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './_object-pie-33c40e79.js';
|
|
6
|
+
import { b as _typeof } from './typeof-e4b50250.js';
|
|
4
7
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
5
8
|
import 'prop-types';
|
|
6
9
|
import 'react-dom';
|
|
10
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
7
11
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
8
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
12
|
+
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
9
13
|
import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
10
14
|
|
|
11
15
|
/*
|
|
@@ -35,6 +39,11 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
35
39
|
scrollPosition = _useState6[0],
|
|
36
40
|
setScrollPosition = _useState6[1];
|
|
37
41
|
|
|
42
|
+
var urlFor = function urlFor(source, client) {
|
|
43
|
+
var builder = imageUrlBuilder(client);
|
|
44
|
+
return builder.image(source).auto('format');
|
|
45
|
+
};
|
|
46
|
+
|
|
38
47
|
useEffect(function () {
|
|
39
48
|
//IE11 Polyfill
|
|
40
49
|
smoothscroll.polyfill();
|
|
@@ -160,7 +169,14 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
160
169
|
// If there is a current prop, means this will overlay a currently playing video
|
|
161
170
|
if (current !== '') {
|
|
162
171
|
var url = video.url;
|
|
163
|
-
var thumbnail =
|
|
172
|
+
var thumbnail = void 0;
|
|
173
|
+
if (video.thumbnail && video.thumbnail.asset) {
|
|
174
|
+
thumbnail = urlFor(video.thumbnail, props.client);
|
|
175
|
+
} else if (_typeof(video.thumbnail == 'string')) {
|
|
176
|
+
thumbnail = video.thumbnail;
|
|
177
|
+
} else {
|
|
178
|
+
thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
|
|
179
|
+
}
|
|
164
180
|
|
|
165
181
|
return React__default.createElement(
|
|
166
182
|
'div',
|
|
@@ -207,7 +223,12 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
207
223
|
} else {
|
|
208
224
|
// slider by itself
|
|
209
225
|
var _url = '' + video.link;
|
|
210
|
-
var _thumbnail =
|
|
226
|
+
var _thumbnail = void 0;
|
|
227
|
+
if (video.thumbnail && video.thumbnail.asset) {
|
|
228
|
+
_thumbnail = urlFor(video.thumbnail, props.client);
|
|
229
|
+
} else {
|
|
230
|
+
_thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
|
|
231
|
+
}
|
|
211
232
|
return React__default.createElement(
|
|
212
233
|
'div',
|
|
213
234
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
@@ -315,4 +315,4 @@ var _toObject = function (it) {
|
|
|
315
315
|
return Object(_defined(it));
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
export { _toInteger as A, _sharedKey as B, _objectKeys as _, _toObject as a, _core as b, _isObject as c, _ctx as d, _descriptors as e, _objectDp as f, _iobject as g, _toLength as h, _global as i, _fails as j, _hide as k, _export as l, _aFunction as m,
|
|
318
|
+
export { _toInteger as A, _sharedKey as B, _objectKeys as _, _toObject as a, _core as b, _isObject as c, _ctx as d, _descriptors as e, _objectDp as f, _iobject as g, _toLength as h, _global as i, _fails as j, _hide as k, _export as l, _aFunction as m, _anObject as n, _propertyDesc as o, _uid as p, _has as q, _cof as r, _objectKeysInternal as s, _enumBugKeys as t, _toIobject as u, _toPrimitive as v, _ie8DomDefine as w, _shared as x, _domCreate as y, _defined as z };
|
|
@@ -2,8 +2,6 @@ import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } fr
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
|
-
var _library = true;
|
|
6
|
-
|
|
7
5
|
var domain;
|
|
8
6
|
|
|
9
7
|
// This constructor is used to store event handlers. Instantiating this is
|
|
@@ -2128,4 +2126,4 @@ function debounce(func, wait, options) {
|
|
|
2128
2126
|
|
|
2129
2127
|
var debounce_1 = debounce;
|
|
2130
2128
|
|
|
2131
|
-
export { _baseGetTag as _, lib_1 as a, _root as b, _freeGlobal as c, debounce_1 as d, lib_2 as e,
|
|
2129
|
+
export { _baseGetTag as _, lib_1 as a, _root as b, _freeGlobal as c, debounce_1 as d, lib_2 as e, isSymbol_1 as f, isObject_1 as g, _Symbol as h, isObjectLike_1 as i, lib_3 as l, toNumber_1 as t };
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { j as _fails, a as _toObject, g as _iobject, _ as _objectKeys, e as _descriptors, l as _export, b as _core } from './_to-object-
|
|
3
|
-
|
|
4
|
-
var f = Object.getOwnPropertySymbols;
|
|
5
|
-
|
|
6
|
-
var _objectGops = {
|
|
7
|
-
f: f
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
var f$1 = {}.propertyIsEnumerable;
|
|
11
|
-
|
|
12
|
-
var _objectPie = {
|
|
13
|
-
f: f$1
|
|
14
|
-
};
|
|
2
|
+
import { j as _fails, a as _toObject, g as _iobject, _ as _objectKeys, e as _descriptors, l as _export, b as _core } from './_to-object-1b1f7766.js';
|
|
3
|
+
import { _ as _objectGops, a as _objectPie } from './_object-pie-33c40e79.js';
|
|
15
4
|
|
|
16
5
|
// 19.1.2.1 Object.assign(target, source, ...)
|
|
17
6
|
|
|
@@ -91,4 +80,4 @@ exports.default = _assign2.default || function (target) {
|
|
|
91
80
|
|
|
92
81
|
var _extends$1 = unwrapExports(_extends);
|
|
93
82
|
|
|
94
|
-
export { _extends$1 as _, _Object$assign as a
|
|
83
|
+
export { _extends$1 as _, _Object$assign as a };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as isSymbol_1, g as isObject_1, _ as _baseGetTag, b as _root, h as _Symbol } from './debounce-df468b0e.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Checks if `value` is classified as an `Array` object.
|
package/dist/esm/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { _ as _objectKeys, a as _toObject, b as _core, c as _isObject, d as _ctx, e as _descriptors, f as _objectDp, g as _iobject, h as _toLength, i as _global, j as _fails, k as _hide, l as _export, m as _aFunction } from './_to-object-
|
|
3
|
-
import { _ as _objectCreate, a as _iterDefine, b as _iterStep, c as _wks, d as _setToStringTag, e as _classof } from './web.dom.iterable-
|
|
4
|
-
import
|
|
5
|
-
import { m as main_39, a as main_16, b as main_38 } from './main-
|
|
6
|
-
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
2
|
+
import { _ as _objectKeys, a as _toObject, b as _core, c as _isObject, d as _ctx, e as _descriptors, f as _objectDp, g as _iobject, h as _toLength, i as _global, j as _fails, k as _hide, l as _export, m as _aFunction } from './_to-object-1b1f7766.js';
|
|
3
|
+
import { _ as _objectCreate, a as _iterDefine, b as _iterStep, c as _wks, d as _setToStringTag, e as _classof } from './web.dom.iterable-e6bf2bf6.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import { m as main_39, a as main_16, b as main_38 } from './main-25bb2c75.js';
|
|
6
|
+
import { _ as _toConsumableArray, a as _Array$from } from './toConsumableArray-d7054876.js';
|
|
7
|
+
import './_object-pie-33c40e79.js';
|
|
8
|
+
import { _ as _extends$2, a as _Object$assign } from './extends-92072fff.js';
|
|
9
|
+
import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1 } from './inherits-cacd91d8.js';
|
|
10
|
+
import { _ as _meta, a as _isArray } from './typeof-e4b50250.js';
|
|
9
11
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
12
|
+
import { l as lib_3, d as debounce_1, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-df468b0e.js';
|
|
10
13
|
import PropTypes from 'prop-types';
|
|
11
14
|
import Container$1 from 'react-bootstrap/Container';
|
|
12
15
|
import Row from 'react-bootstrap/Row';
|
|
@@ -19,20 +22,20 @@ import 'react-dom';
|
|
|
19
22
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
20
23
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
21
24
|
import { c as clean_html_1, h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
22
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-
|
|
23
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
24
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
25
|
-
import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './promise-
|
|
26
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
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';
|
|
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';
|
|
27
30
|
export { default as DeckContent } from './DeckContent.js';
|
|
28
|
-
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-
|
|
29
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
30
|
-
import './AuthorComponent-
|
|
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-3229be76.js';
|
|
33
|
+
import './AuthorComponent-beb2ad16.js';
|
|
31
34
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
32
35
|
import 'react-bootstrap/Media';
|
|
33
36
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
34
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
35
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
37
|
+
import { B as BlockContent } from './TaxonomyCard-12f0a90a.js';
|
|
38
|
+
export { T as TaxonomyCard } from './TaxonomyCard-12f0a90a.js';
|
|
36
39
|
import './react-social-icons-a7d5c5c7.js';
|
|
37
40
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
38
41
|
import GroupDeck from './GroupDeck.js';
|
|
@@ -49,8 +52,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
49
52
|
import 'react-bootstrap/Badge';
|
|
50
53
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
51
54
|
import Spinner from 'react-bootstrap/Spinner';
|
|
52
|
-
import { M as MdPictureAsPdf } from './Normal-
|
|
53
|
-
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-
|
|
55
|
+
import { M as MdPictureAsPdf } from './Normal-508d09f1.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-508d09f1.js';
|
|
54
57
|
import 'react-bootstrap/ListGroup';
|
|
55
58
|
import Head from 'next/head';
|
|
56
59
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -67,8 +70,8 @@ import Carousel$1 from 'react-bootstrap/Carousel';
|
|
|
67
70
|
import Breadcrumb from 'react-bootstrap/Breadcrumb';
|
|
68
71
|
import DropdownButton from 'react-bootstrap/DropdownButton';
|
|
69
72
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
70
|
-
import { F as FaLongArrowAltRight } from './Ustream-
|
|
71
|
-
export { U as Ustream } from './Ustream-
|
|
73
|
+
import { F as FaLongArrowAltRight } from './Ustream-ee7aeeef.js';
|
|
74
|
+
export { U as Ustream } from './Ustream-ee7aeeef.js';
|
|
72
75
|
import useSWR from 'swr';
|
|
73
76
|
import Local from 'passport-local';
|
|
74
77
|
import mysql from 'mysql';
|
|
@@ -13960,7 +13963,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13960
13963
|
padding: '0 1rem',
|
|
13961
13964
|
left: '0'
|
|
13962
13965
|
} },
|
|
13963
|
-
vidUrl && React__default.createElement(GroupDeck, { dark: true, dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl })
|
|
13966
|
+
vidUrl && React__default.createElement(GroupDeck, { dark: true, dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client })
|
|
13964
13967
|
)
|
|
13965
13968
|
),
|
|
13966
13969
|
React__default.createElement(
|
|
@@ -14399,7 +14402,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
14399
14402
|
};
|
|
14400
14403
|
|
|
14401
14404
|
var Figure = dynamic(function () {
|
|
14402
|
-
return import('./Figure-
|
|
14405
|
+
return import('./Figure-7ba30e53.js');
|
|
14403
14406
|
}, { ssr: false });
|
|
14404
14407
|
|
|
14405
14408
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|