@mjhls/mjh-framework 1.0.485 → 1.0.487
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/AD300x250.js +2 -2
- package/dist/cjs/AD300x250x600.js +21 -7
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AdSlot.js +3 -3
- package/dist/cjs/ArticleQueue.js +6 -6
- package/dist/cjs/Beam.js +1 -1
- package/dist/cjs/Column2.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/DeckContent.js +2 -2
- package/dist/cjs/EventsDeck.js +12 -1577
- package/dist/cjs/ExternalResources.js +183 -0
- package/dist/cjs/GridContent.js +3 -3
- package/dist/cjs/HamMagazine.js +7 -7
- package/dist/cjs/IssueLanding.js +3 -3
- package/dist/cjs/LeftNav.js +3 -3
- package/dist/cjs/MasterDeck.js +3 -3
- package/dist/cjs/NavDvm.js +5 -5
- package/dist/cjs/NavMagazine.js +7 -7
- package/dist/cjs/NavNative.js +7 -7
- package/dist/cjs/NavNormal.js +3 -3
- package/dist/cjs/PartnerDetailListing.js +8 -8
- package/dist/cjs/QueueDeckExpanded.js +3 -3
- package/dist/cjs/Segment.js +2 -2
- package/dist/cjs/SideFooter.js +3 -3
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/View.js +6 -6
- package/dist/cjs/{beam-9ffe0364.js → beam-2745329b.js} +3 -3
- package/dist/cjs/getQuery.js +2 -0
- package/dist/cjs/getSerializers.js +24 -24
- package/dist/cjs/index-5be2866f.js +1572 -0
- package/dist/cjs/index.js +14 -11
- package/dist/esm/AD300x250.js +2 -2
- package/dist/esm/AD300x250x600.js +21 -7
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +3 -3
- package/dist/esm/ArticleQueue.js +6 -6
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/Column2.js +1 -1
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/DeckContent.js +2 -2
- package/dist/esm/EventsDeck.js +12 -1577
- package/dist/esm/ExternalResources.js +177 -0
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/HamMagazine.js +7 -7
- package/dist/esm/IssueLanding.js +3 -3
- package/dist/esm/LeftNav.js +3 -3
- package/dist/esm/MasterDeck.js +3 -3
- package/dist/esm/NavDvm.js +5 -5
- package/dist/esm/NavMagazine.js +7 -7
- package/dist/esm/NavNative.js +7 -7
- package/dist/esm/NavNormal.js +3 -3
- package/dist/esm/PartnerDetailListing.js +8 -8
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SideFooter.js +3 -3
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/View.js +6 -6
- package/dist/esm/{beam-e248fb74.js → beam-dd2b10c0.js} +3 -3
- package/dist/esm/getQuery.js +2 -0
- package/dist/esm/getSerializers.js +24 -24
- package/dist/esm/index-d2f90501.js +1570 -0
- package/dist/esm/index.js +11 -9
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-9df26f11.js → ADInfeed-0ce661fa.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-732fb987.js → ADlgInfeed-3e685576.js} +0 -0
- /package/dist/esm/{ADInfeed-383c2123.js → ADInfeed-c651007e.js} +0 -0
- /package/dist/esm/{ADlgInfeed-e1a02b33.js → ADlgInfeed-9ff12f94.js} +0 -0
|
@@ -3,7 +3,7 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-037
|
|
|
3
3
|
|
|
4
4
|
require("babel-polyfill");
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var Segment = {
|
|
7
7
|
// onclive default
|
|
8
8
|
init: function init() {
|
|
9
9
|
var apiKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BBbKMoOjmhsxPnbd2nO6osz3zq67DzuN';
|
|
@@ -576,7 +576,7 @@ var Beam = {
|
|
|
576
576
|
|
|
577
577
|
// report segment when eKey is present
|
|
578
578
|
if (beam.eKey) {
|
|
579
|
-
|
|
579
|
+
Segment.identify(beam.eKey);
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
case 12:
|
|
@@ -726,4 +726,4 @@ var Beam = {
|
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
728
|
|
|
729
|
-
export { Beam as B,
|
|
729
|
+
export { Beam as B, Segment as S };
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -17,6 +17,8 @@ var getQuery = function getQuery(type) {
|
|
|
17
17
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
18
18
|
case 'issue':
|
|
19
19
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && dateTime(published) <= dateTime($currentDate)\n && references(^._id)] {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n }\n }\n }\n }';
|
|
20
|
+
case 'externalResources':
|
|
21
|
+
return '{\n \'archived\': *[_type == "external" && archived && isVisible],\n \'recent\': *[_type == "external" && !archived && isVisible]\n }';
|
|
20
22
|
}
|
|
21
23
|
};
|
|
22
24
|
|
|
@@ -24,15 +24,15 @@ import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
|
24
24
|
import './stringify-e30bc114.js';
|
|
25
25
|
import './asyncToGenerator-0379e924.js';
|
|
26
26
|
import './_set-species-6f64f1c1.js';
|
|
27
|
-
import { B as Beam, S as
|
|
27
|
+
import { B as Beam, S as Segment } from './beam-dd2b10c0.js';
|
|
28
28
|
import DFPAdSlot from './AdSlot.js';
|
|
29
29
|
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
30
30
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
31
31
|
import GroupDeck from './GroupDeck.js';
|
|
32
32
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Row, Col } from 'react-bootstrap';
|
|
33
33
|
import Button$1 from 'react-bootstrap/Button';
|
|
34
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
35
34
|
import { u as util } from './util-7700fc59.js';
|
|
35
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
36
36
|
import Pagination from 'react-bootstrap/Pagination';
|
|
37
37
|
import dynamic from 'next/dynamic';
|
|
38
38
|
|
|
@@ -1920,7 +1920,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1920
1920
|
var queue = Math.floor(duration / 10);
|
|
1921
1921
|
var segment = Math.floor(current / queue);
|
|
1922
1922
|
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
1923
|
-
|
|
1923
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
1924
1924
|
};
|
|
1925
1925
|
|
|
1926
1926
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -1931,7 +1931,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1931
1931
|
|
|
1932
1932
|
if (!queueProgress.includes(segment)) {
|
|
1933
1933
|
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
1934
|
-
|
|
1934
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
1935
1935
|
queueProgress.push(segment);
|
|
1936
1936
|
}
|
|
1937
1937
|
};
|
|
@@ -1945,7 +1945,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1945
1945
|
var segment = Math.floor(current / queue);
|
|
1946
1946
|
|
|
1947
1947
|
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
1948
|
-
|
|
1948
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
1949
1949
|
|
|
1950
1950
|
if (!playReported) {
|
|
1951
1951
|
setPlayReported(true);
|
|
@@ -1965,7 +1965,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1965
1965
|
var segment = Math.floor(current / queue);
|
|
1966
1966
|
|
|
1967
1967
|
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
1968
|
-
|
|
1968
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
1969
1969
|
setEndReported(true);
|
|
1970
1970
|
clearInterval(intervalID);
|
|
1971
1971
|
}
|
|
@@ -1979,7 +1979,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1979
1979
|
var segment = Math.floor(current / queue);
|
|
1980
1980
|
|
|
1981
1981
|
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
1982
|
-
|
|
1982
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1983
1983
|
};
|
|
1984
1984
|
|
|
1985
1985
|
return React__default.createElement(
|
|
@@ -2216,7 +2216,7 @@ var Video = function Video(_ref) {
|
|
|
2216
2216
|
}
|
|
2217
2217
|
|
|
2218
2218
|
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2219
|
-
|
|
2219
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2220
2220
|
});
|
|
2221
2221
|
|
|
2222
2222
|
// play
|
|
@@ -2226,7 +2226,7 @@ var Video = function Video(_ref) {
|
|
|
2226
2226
|
var queue = Math.floor(duration / 10);
|
|
2227
2227
|
var segment = Math.floor(current / queue);
|
|
2228
2228
|
Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2229
|
-
|
|
2229
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2230
2230
|
});
|
|
2231
2231
|
|
|
2232
2232
|
// pause
|
|
@@ -2236,7 +2236,7 @@ var Video = function Video(_ref) {
|
|
|
2236
2236
|
var queue = Math.floor(duration / 10);
|
|
2237
2237
|
var segment = Math.floor(current / queue);
|
|
2238
2238
|
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2239
|
-
|
|
2239
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2240
2240
|
});
|
|
2241
2241
|
|
|
2242
2242
|
// end
|
|
@@ -2246,7 +2246,7 @@ var Video = function Video(_ref) {
|
|
|
2246
2246
|
var queue = Math.floor(duration / 10);
|
|
2247
2247
|
var segment = Math.floor(current / queue);
|
|
2248
2248
|
Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2249
|
-
|
|
2249
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2250
2250
|
autoplayNextVideo(evt);
|
|
2251
2251
|
});
|
|
2252
2252
|
|
|
@@ -2258,7 +2258,7 @@ var Video = function Video(_ref) {
|
|
|
2258
2258
|
var segment = Math.floor(current / queue);
|
|
2259
2259
|
if (!queueProgress.includes(segment)) {
|
|
2260
2260
|
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2261
|
-
|
|
2261
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
|
|
2262
2262
|
queueProgress.push(segment);
|
|
2263
2263
|
}
|
|
2264
2264
|
});
|
|
@@ -2270,7 +2270,7 @@ var Video = function Video(_ref) {
|
|
|
2270
2270
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2271
2271
|
|
|
2272
2272
|
Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
|
|
2273
|
-
|
|
2273
|
+
Segment.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2274
2274
|
});
|
|
2275
2275
|
|
|
2276
2276
|
// ad ended
|
|
@@ -2279,7 +2279,7 @@ var Video = function Video(_ref) {
|
|
|
2279
2279
|
var id = player.ads.ad.id;
|
|
2280
2280
|
var adType = 'Bright Cove: ' + player.ads.ad.type;
|
|
2281
2281
|
Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
|
|
2282
|
-
|
|
2282
|
+
Segment.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
|
|
2283
2283
|
});
|
|
2284
2284
|
};
|
|
2285
2285
|
|
|
@@ -6927,7 +6927,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
6927
6927
|
var queue = Math.floor(duration / 10);
|
|
6928
6928
|
var segment = Math.floor(current / queue);
|
|
6929
6929
|
Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
|
|
6930
|
-
|
|
6930
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
|
|
6931
6931
|
};
|
|
6932
6932
|
|
|
6933
6933
|
var handlePlayPercent = function handlePlayPercent(player) {
|
|
@@ -6937,7 +6937,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
6937
6937
|
var segment = Math.floor(current / queue);
|
|
6938
6938
|
if (!queueProgress.includes(segment)) {
|
|
6939
6939
|
Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
|
|
6940
|
-
|
|
6940
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
|
|
6941
6941
|
queueProgress.push(segment);
|
|
6942
6942
|
}
|
|
6943
6943
|
};
|
|
@@ -6950,7 +6950,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
6950
6950
|
var queue = Math.floor(duration / 10);
|
|
6951
6951
|
var segment = Math.floor(current / queue);
|
|
6952
6952
|
Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
|
|
6953
|
-
|
|
6953
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
|
|
6954
6954
|
|
|
6955
6955
|
if (!playReported) {
|
|
6956
6956
|
event.persist();
|
|
@@ -6971,7 +6971,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
6971
6971
|
var segment = Math.floor(current / queue);
|
|
6972
6972
|
|
|
6973
6973
|
Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
|
|
6974
|
-
|
|
6974
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
|
|
6975
6975
|
setEndReported(true);
|
|
6976
6976
|
clearInterval(intervalID);
|
|
6977
6977
|
}
|
|
@@ -6984,7 +6984,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
6984
6984
|
var queue = Math.floor(duration / 10);
|
|
6985
6985
|
var segment = Math.floor(current / queue);
|
|
6986
6986
|
Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
|
|
6987
|
-
|
|
6987
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
6988
6988
|
};
|
|
6989
6989
|
|
|
6990
6990
|
return React__default.createElement(
|
|
@@ -7149,7 +7149,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7149
7149
|
var queue = Math.floor(duration / 10);
|
|
7150
7150
|
var segment = Math.floor(current / queue);
|
|
7151
7151
|
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
7152
|
-
|
|
7152
|
+
Segment.report_video_event('Video Ready', main_16, duration, current, segment);
|
|
7153
7153
|
//autoplay
|
|
7154
7154
|
|
|
7155
7155
|
//Small pause before starting next video
|
|
@@ -7170,7 +7170,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7170
7170
|
var segment = Math.floor(current / queue);
|
|
7171
7171
|
|
|
7172
7172
|
Beam.report_beam_video('End', main_16, duration, current, segment);
|
|
7173
|
-
|
|
7173
|
+
Segment.report_video_event('Video End', main_16, duration, current, segment);
|
|
7174
7174
|
setEndReported(true);
|
|
7175
7175
|
clearInterval(intervalID);
|
|
7176
7176
|
}
|
|
@@ -7221,7 +7221,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7221
7221
|
var segment = Math.floor(current / queue);
|
|
7222
7222
|
if (!queueProgress.includes(segment)) {
|
|
7223
7223
|
Beam.report_beam_video('Segment', main_16, duration, current, segment);
|
|
7224
|
-
|
|
7224
|
+
Segment.report_video_event('Video Segment', main_16, duration, current, segment);
|
|
7225
7225
|
queueProgress.push(segment);
|
|
7226
7226
|
}
|
|
7227
7227
|
};
|
|
@@ -7235,7 +7235,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7235
7235
|
var segment = Math.floor(current / queue);
|
|
7236
7236
|
|
|
7237
7237
|
Beam.report_beam_video('Play', main_16, duration, current, segment);
|
|
7238
|
-
|
|
7238
|
+
Segment.report_video_event('Video Play', main_16, duration, current, segment);
|
|
7239
7239
|
|
|
7240
7240
|
if (!playReported) {
|
|
7241
7241
|
setPlayReported(true);
|
|
@@ -7254,7 +7254,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7254
7254
|
var segment = Math.floor(current / queue);
|
|
7255
7255
|
|
|
7256
7256
|
Beam.report_beam_video('Pause', main_16, duration, current, segment);
|
|
7257
|
-
|
|
7257
|
+
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
7258
7258
|
};
|
|
7259
7259
|
|
|
7260
7260
|
// Youtube Options
|