@mjhls/mjh-framework 1.0.79 → 1.0.81
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 +38 -22
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +37 -21
- package/dist/index.js.map +1 -1
- package/package.json +81 -81
package/dist/index.js
CHANGED
|
@@ -3940,14 +3940,14 @@ var DeckContent = function (_React$Component) {
|
|
|
3940
3940
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
3941
3941
|
|
|
3942
3942
|
// please leave this for later debug purpose : Yong Jun.
|
|
3943
|
-
/* console.log('page change reported', {
|
|
3944
|
-
currentPage: currentPage,
|
|
3945
|
-
pageNumber: pageNumber,
|
|
3946
|
-
pathname: pathname,
|
|
3947
|
-
path: path,
|
|
3948
|
-
newPath: newPath,
|
|
3949
|
-
firstPage: pageNumber === 1,
|
|
3950
|
-
queryString: queryString
|
|
3943
|
+
/* console.log('page change reported', {
|
|
3944
|
+
currentPage: currentPage,
|
|
3945
|
+
pageNumber: pageNumber,
|
|
3946
|
+
pathname: pathname,
|
|
3947
|
+
path: path,
|
|
3948
|
+
newPath: newPath,
|
|
3949
|
+
firstPage: pageNumber === 1,
|
|
3950
|
+
queryString: queryString
|
|
3951
3951
|
}) */
|
|
3952
3952
|
|
|
3953
3953
|
pageview(newPath);
|
|
@@ -5487,14 +5487,14 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
5487
5487
|
);
|
|
5488
5488
|
};
|
|
5489
5489
|
|
|
5490
|
-
/*
|
|
5491
|
-
GROQ query -
|
|
5492
|
-
*[_type == "article" && references(*[_type == 'documentGroup' && name == 'test']._id)][0...10]{
|
|
5493
|
-
title,
|
|
5494
|
-
published,
|
|
5495
|
-
"thumbnail": thumbnail.asset->url,
|
|
5496
|
-
"url": url.current
|
|
5497
|
-
}
|
|
5490
|
+
/*
|
|
5491
|
+
GROQ query -
|
|
5492
|
+
*[_type == "article" && references(*[_type == 'documentGroup' && name == 'test']._id)][0...10]{
|
|
5493
|
+
title,
|
|
5494
|
+
published,
|
|
5495
|
+
"thumbnail": thumbnail.asset->url,
|
|
5496
|
+
"url": url.current
|
|
5497
|
+
}
|
|
5498
5498
|
*/
|
|
5499
5499
|
var GroupDeck = function GroupDeck(props) {
|
|
5500
5500
|
// Props should be an array of objects containing Thumbnail, title, and URL
|
|
@@ -5689,10 +5689,10 @@ var getYoutubeId = createCommonjsModule(function (module, exports) {
|
|
|
5689
5689
|
}));
|
|
5690
5690
|
});
|
|
5691
5691
|
|
|
5692
|
-
/*
|
|
5693
|
-
GROQ query -
|
|
5694
|
-
accepts an array of title, URL
|
|
5695
|
-
`http://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
5692
|
+
/*
|
|
5693
|
+
GROQ query -
|
|
5694
|
+
accepts an array of title, URL
|
|
5695
|
+
`http://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
5696
5696
|
*/
|
|
5697
5697
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
5698
5698
|
// Props should be an array of objects containing Thumbnail, title, and URL
|
|
@@ -6200,11 +6200,27 @@ var SocialShare = function SocialShare(props) {
|
|
|
6200
6200
|
shareSummary = props.shareSummary,
|
|
6201
6201
|
shareSubject = props.shareSubject,
|
|
6202
6202
|
shareImage = props.shareImage,
|
|
6203
|
-
size = props.size
|
|
6203
|
+
size = props.size,
|
|
6204
|
+
siteName = props.siteName,
|
|
6205
|
+
twitterSiteName = props.twitterSiteName;
|
|
6204
6206
|
|
|
6205
6207
|
return React__default.createElement(
|
|
6206
6208
|
React__default.Fragment,
|
|
6207
6209
|
null,
|
|
6210
|
+
React__default.createElement(
|
|
6211
|
+
Head,
|
|
6212
|
+
null,
|
|
6213
|
+
React__default.createElement('meta', { property: 'og:url', content: shareUrl }),
|
|
6214
|
+
React__default.createElement('meta', { property: 'og:title', content: shareTitle }),
|
|
6215
|
+
React__default.createElement('meta', { property: 'og:image', content: shareImage }),
|
|
6216
|
+
React__default.createElement('meta', { property: 'og:site_name', content: siteName }),
|
|
6217
|
+
React__default.createElement('meta', { property: 'og:description', content: shareSummary }),
|
|
6218
|
+
React__default.createElement('meta', { name: 'twitter:card', content: 'summary' }),
|
|
6219
|
+
React__default.createElement('meta', { name: 'twitter:title', content: shareTitle }),
|
|
6220
|
+
React__default.createElement('meta', { name: 'twitter:image', content: shareImage }),
|
|
6221
|
+
React__default.createElement('meta', { name: 'twitter:site', content: twitterSiteName }),
|
|
6222
|
+
React__default.createElement('meta', { name: 'twitter:description', content: shareSummary })
|
|
6223
|
+
),
|
|
6208
6224
|
React__default.createElement(
|
|
6209
6225
|
reactShare.FacebookShareButton,
|
|
6210
6226
|
{ url: shareUrl, quote: shareTitle },
|