@mjhls/mjh-framework 1.0.711-beta.0 → 1.0.711-beta.2
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/dist/cjs/AdSlotsProvider.js +7 -109
- package/dist/cjs/ArticleCarousel.js +2 -1
- package/dist/cjs/ArticleSeriesListing.js +2 -1
- package/dist/cjs/Auth.js +6 -6
- package/dist/cjs/BrowseVideosListing.js +2 -1
- package/dist/cjs/EventsDeck.js +10 -10
- package/dist/cjs/ExternalResources.js +5 -4
- package/dist/cjs/GroupDeck.js +4 -3
- package/dist/cjs/PartnerDetailListing.js +3 -2
- package/dist/cjs/TaxonomyDescription.js +3 -2
- package/dist/cjs/VideoProgramLandingPage.js +247 -0
- package/dist/cjs/VideoSeriesLandingPage.js +177 -0
- package/dist/cjs/VideoSeriesListing.js +2 -1
- package/dist/cjs/View.js +3 -2
- package/dist/cjs/YoutubeGroup.js +4 -3
- package/dist/cjs/getRelatedArticle.js +8 -8
- package/dist/cjs/getSerializers.js +3 -2
- package/dist/cjs/index-187c967e.js +54 -0
- package/dist/cjs/{index-b0cfd1de.js → index-9b8a57e5.js} +5 -5
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-5054361f.js} +0 -50
- package/dist/esm/AdSlotsProvider.js +9 -111
- package/dist/esm/ArticleCarousel.js +2 -1
- package/dist/esm/ArticleSeriesListing.js +2 -1
- package/dist/esm/BrowseVideosListing.js +2 -1
- package/dist/esm/ExternalResources.js +3 -2
- package/dist/esm/GroupDeck.js +2 -1
- package/dist/esm/PartnerDetailListing.js +3 -2
- package/dist/esm/TaxonomyDescription.js +3 -2
- package/dist/esm/VideoProgramLandingPage.js +242 -0
- package/dist/esm/VideoSeriesLandingPage.js +172 -0
- package/dist/esm/VideoSeriesListing.js +2 -1
- package/dist/esm/View.js +3 -2
- package/dist/esm/YoutubeGroup.js +2 -1
- package/dist/esm/getSerializers.js +3 -2
- package/dist/esm/{index-c6440f6f.js → index-4d1ed4ba.js} +1 -1
- package/dist/esm/index-c7e2ac95.js +52 -0
- package/dist/esm/index.js +6 -2
- package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-0cd4c7a6.js} +2 -51
- package/package.json +1 -1
|
@@ -1,53 +1,4 @@
|
|
|
1
|
-
import { c as createCommonjsModule
|
|
2
|
-
|
|
3
|
-
var getYoutubeId = createCommonjsModule(function (module, exports) {
|
|
4
|
-
(function (root, factory) {
|
|
5
|
-
{
|
|
6
|
-
module.exports = factory();
|
|
7
|
-
}
|
|
8
|
-
}(commonjsGlobal, function (exports) {
|
|
9
|
-
|
|
10
|
-
return function (url, opts) {
|
|
11
|
-
if (opts == undefined) {
|
|
12
|
-
opts = {fuzzy: true};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if (/youtu\.?be/.test(url)) {
|
|
16
|
-
|
|
17
|
-
// Look first for known patterns
|
|
18
|
-
var i;
|
|
19
|
-
var patterns = [
|
|
20
|
-
/youtu\.be\/([^#\&\?]{11})/, // youtu.be/<id>
|
|
21
|
-
/\?v=([^#\&\?]{11})/, // ?v=<id>
|
|
22
|
-
/\&v=([^#\&\?]{11})/, // &v=<id>
|
|
23
|
-
/embed\/([^#\&\?]{11})/, // embed/<id>
|
|
24
|
-
/\/v\/([^#\&\?]{11})/ // /v/<id>
|
|
25
|
-
];
|
|
26
|
-
|
|
27
|
-
// If any pattern matches, return the ID
|
|
28
|
-
for (i = 0; i < patterns.length; ++i) {
|
|
29
|
-
if (patterns[i].test(url)) {
|
|
30
|
-
return patterns[i].exec(url)[1];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
if (opts.fuzzy) {
|
|
35
|
-
// If that fails, break it apart by certain characters and look
|
|
36
|
-
// for the 11 character key
|
|
37
|
-
var tokens = url.split(/[\/\&\?=#\.\s]/g);
|
|
38
|
-
for (i = 0; i < tokens.length; ++i) {
|
|
39
|
-
if (/^[^#\&\?]{11}$/.test(tokens[i])) {
|
|
40
|
-
return tokens[i];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return null;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
}));
|
|
50
|
-
});
|
|
1
|
+
import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
51
2
|
|
|
52
3
|
var smoothscroll = createCommonjsModule(function (module, exports) {
|
|
53
4
|
/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
|
|
@@ -482,4 +433,4 @@ var smoothscroll = createCommonjsModule(function (module, exports) {
|
|
|
482
433
|
});
|
|
483
434
|
var smoothscroll_1 = smoothscroll.polyfill;
|
|
484
435
|
|
|
485
|
-
export {
|
|
436
|
+
export { smoothscroll as s };
|