@mjhls/mjh-framework 1.0.99 → 1.0.101
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 +172 -172
- package/dist/index.es.js +26 -25
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +25 -24
- package/dist/index.js.map +1 -1
- package/package.json +84 -84
package/dist/index.js
CHANGED
|
@@ -3944,14 +3944,14 @@ var DeckContent = function (_React$Component) {
|
|
|
3944
3944
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
3945
3945
|
|
|
3946
3946
|
// please leave this for later debug purpose : Yong Jun.
|
|
3947
|
-
/* console.log('page change reported', {
|
|
3948
|
-
currentPage: currentPage,
|
|
3949
|
-
pageNumber: pageNumber,
|
|
3950
|
-
pathname: pathname,
|
|
3951
|
-
path: path,
|
|
3952
|
-
newPath: newPath,
|
|
3953
|
-
firstPage: pageNumber === 1,
|
|
3954
|
-
queryString: queryString
|
|
3947
|
+
/* console.log('page change reported', {
|
|
3948
|
+
currentPage: currentPage,
|
|
3949
|
+
pageNumber: pageNumber,
|
|
3950
|
+
pathname: pathname,
|
|
3951
|
+
path: path,
|
|
3952
|
+
newPath: newPath,
|
|
3953
|
+
firstPage: pageNumber === 1,
|
|
3954
|
+
queryString: queryString
|
|
3955
3955
|
}) */
|
|
3956
3956
|
|
|
3957
3957
|
pageview(newPath);
|
|
@@ -5955,14 +5955,14 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
5955
5955
|
);
|
|
5956
5956
|
};
|
|
5957
5957
|
|
|
5958
|
-
/*
|
|
5959
|
-
GROQ query -
|
|
5960
|
-
*[_type == "article" && references(*[_type == 'documentGroup' && name == 'test']._id)][0...10]{
|
|
5961
|
-
title,
|
|
5962
|
-
published,
|
|
5963
|
-
"thumbnail": thumbnail.asset->url,
|
|
5964
|
-
"url": url.current
|
|
5965
|
-
}
|
|
5958
|
+
/*
|
|
5959
|
+
GROQ query -
|
|
5960
|
+
*[_type == "article" && references(*[_type == 'documentGroup' && name == 'test']._id)][0...10]{
|
|
5961
|
+
title,
|
|
5962
|
+
published,
|
|
5963
|
+
"thumbnail": thumbnail.asset->url,
|
|
5964
|
+
"url": url.current
|
|
5965
|
+
}
|
|
5966
5966
|
*/
|
|
5967
5967
|
var GroupDeck = function GroupDeck(props) {
|
|
5968
5968
|
// Props should be an array of objects containing Thumbnail, title, and URL
|
|
@@ -6157,10 +6157,10 @@ var getYoutubeId = createCommonjsModule(function (module, exports) {
|
|
|
6157
6157
|
}));
|
|
6158
6158
|
});
|
|
6159
6159
|
|
|
6160
|
-
/*
|
|
6161
|
-
GROQ query -
|
|
6162
|
-
accepts an array of title, URL
|
|
6163
|
-
`http://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
6160
|
+
/*
|
|
6161
|
+
GROQ query -
|
|
6162
|
+
accepts an array of title, URL
|
|
6163
|
+
`http://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
6164
6164
|
*/
|
|
6165
6165
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
6166
6166
|
// Props should be an array of objects containing Thumbnail, title, and URL
|
|
@@ -12373,11 +12373,12 @@ var IFrame = function IFrame(_ref) {
|
|
|
12373
12373
|
|
|
12374
12374
|
var Video = function Video(_ref) {
|
|
12375
12375
|
var node = _ref.node,
|
|
12376
|
-
|
|
12376
|
+
accountIDs = _ref.accountIDs;
|
|
12377
12377
|
var source = node.source,
|
|
12378
12378
|
videoID = node.videoID;
|
|
12379
12379
|
|
|
12380
|
-
if (source === 'brightcove') return React__default.createElement(ReactPlayerLoader, { accountId:
|
|
12380
|
+
if (source === 'brightcove' && accountIDs.brightcove) return React__default.createElement(ReactPlayerLoader, { accountId: accountIDs.brightcove, videoId: videoID, attrs: { className: 'brightcove' } });
|
|
12381
|
+
// TODO - add players for other video types
|
|
12381
12382
|
return null;
|
|
12382
12383
|
};
|
|
12383
12384
|
|
|
@@ -12574,7 +12575,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12574
12575
|
);
|
|
12575
12576
|
};
|
|
12576
12577
|
|
|
12577
|
-
var getSerializers$1 = function getSerializers(client, pageview,
|
|
12578
|
+
var getSerializers$1 = function getSerializers(client, pageview, videoAccountIDs) {
|
|
12578
12579
|
return {
|
|
12579
12580
|
types: {
|
|
12580
12581
|
youtube: function youtube(_ref) {
|
|
@@ -12629,7 +12630,7 @@ var getSerializers$1 = function getSerializers(client, pageview, brightcoveAccou
|
|
|
12629
12630
|
video: function video(_ref9) {
|
|
12630
12631
|
var node = _ref9.node;
|
|
12631
12632
|
|
|
12632
|
-
return React__default.createElement(Video, { node: node,
|
|
12633
|
+
return React__default.createElement(Video, { node: node, accountIDs: videoAccountIDs || {} });
|
|
12633
12634
|
},
|
|
12634
12635
|
audio: function audio(_ref10) {
|
|
12635
12636
|
var node = _ref10.node;
|