@mjhls/mjh-framework 1.0.246 → 1.0.248
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/index.js +33 -6
- package/dist/esm/index.js +33 -7
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -2222,7 +2222,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2222
2222
|
form.append('doc', 'per');
|
|
2223
2223
|
form.append('from', params.from);
|
|
2224
2224
|
form.append('limit', params.limit);
|
|
2225
|
-
form.append('keyword',
|
|
2225
|
+
form.append('keyword', keywords);
|
|
2226
2226
|
_context.prev = 5;
|
|
2227
2227
|
_context.next = 8;
|
|
2228
2228
|
return fetch(corsProxy$1 + 'http://vaccine.mjhassoc.com/doc_loader.php', {
|
|
@@ -2295,7 +2295,9 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2295
2295
|
rightItems = _ref.rightItems,
|
|
2296
2296
|
_ref$seoPaginate = _ref.seoPaginate,
|
|
2297
2297
|
seoPaginate = _ref$seoPaginate === undefined ? true : _ref$seoPaginate,
|
|
2298
|
-
pageview = _ref.pageview
|
|
2298
|
+
pageview = _ref.pageview,
|
|
2299
|
+
_ref$keywords = _ref.keywords,
|
|
2300
|
+
keywords = _ref$keywords === undefined ? '' : _ref$keywords;
|
|
2299
2301
|
|
|
2300
2302
|
var router = Router.useRouter();
|
|
2301
2303
|
|
|
@@ -2425,7 +2427,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2425
2427
|
{ xs: 3, sm: 4, md: 4, lg: 4, xl: 4, style: { padding: '0' } },
|
|
2426
2428
|
React__default.createElement(
|
|
2427
2429
|
'a',
|
|
2428
|
-
{ href: row.href },
|
|
2430
|
+
{ href: row.href, target: '_blank' },
|
|
2429
2431
|
React__default.createElement('img', { style: { width: '100%', borderRadius: '0 0 0 10%', marginBottom: '20px', borderTop: '1px solid #EEE' }, src: row.thumbnail })
|
|
2430
2432
|
)
|
|
2431
2433
|
),
|
|
@@ -2434,7 +2436,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2434
2436
|
{ xs: 9, sm: 8, md: 8, lg: 8, xl: 8, style: { paddingTop: '10px', marginBottom: '20px', borderTop: '1px solid #EEE' } },
|
|
2435
2437
|
React__default.createElement(
|
|
2436
2438
|
'a',
|
|
2437
|
-
{ href: row.href },
|
|
2439
|
+
{ href: row.href, target: '_blank' },
|
|
2438
2440
|
React__default.createElement('h4', { className: 'mb-1', style: { fontWeight: '500', fontSize: '22px' }, dangerouslySetInnerHTML: { __html: row.title } }),
|
|
2439
2441
|
React__default.createElement(
|
|
2440
2442
|
'p',
|
|
@@ -2453,7 +2455,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2453
2455
|
{ xs: 9, sm: 8, lg: 8, xl: 8 },
|
|
2454
2456
|
React__default.createElement(
|
|
2455
2457
|
'a',
|
|
2456
|
-
{ href: row.href },
|
|
2458
|
+
{ href: row.href, target: '_blank' },
|
|
2457
2459
|
React__default.createElement('h4', { className: 'mb-1', style: { fontWeight: '500', fontSize: '22px' }, dangerouslySetInnerHTML: { __html: row.title } }),
|
|
2458
2460
|
React__default.createElement(
|
|
2459
2461
|
'p',
|
|
@@ -2468,7 +2470,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2468
2470
|
{ xs: 3, sm: 4, lg: 4, xl: 4 },
|
|
2469
2471
|
React__default.createElement(
|
|
2470
2472
|
'a',
|
|
2471
|
-
{ href: row.href },
|
|
2473
|
+
{ href: row.href, target: '_blank' },
|
|
2472
2474
|
React__default.createElement('img', { style: { width: '100%', borderRadius: '0 0 10% 0' }, src: row.thumbnail && urlFor(row.thumbnail.asset).url() })
|
|
2473
2475
|
)
|
|
2474
2476
|
)
|
|
@@ -15461,6 +15463,30 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
15461
15463
|
};
|
|
15462
15464
|
};
|
|
15463
15465
|
|
|
15466
|
+
var KMTracker = function KMTracker(props) {
|
|
15467
|
+
var id = props.id;
|
|
15468
|
+
|
|
15469
|
+
if (document) {
|
|
15470
|
+
(function () {
|
|
15471
|
+
var ecnJquery = document.createElement('script');
|
|
15472
|
+
|
|
15473
|
+
ecnJquery.type = 'text/javascript';
|
|
15474
|
+
ecnJquery.async = true;
|
|
15475
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
15476
|
+
|
|
15477
|
+
var ecnScript = document.createElement('script');
|
|
15478
|
+
|
|
15479
|
+
ecnScript.type = 'text/javascript';
|
|
15480
|
+
ecnScript.async = true;
|
|
15481
|
+
ecnScript.id = 'km-tracker';
|
|
15482
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
15483
|
+
|
|
15484
|
+
document.head.appendChild(ecnJquery);
|
|
15485
|
+
document.head.appendChild(ecnScript);
|
|
15486
|
+
})();
|
|
15487
|
+
}
|
|
15488
|
+
};
|
|
15489
|
+
|
|
15464
15490
|
exports.AdSlot = AdSlot.DFPAdSlot;
|
|
15465
15491
|
exports.Beam = AdSlot.Beam;
|
|
15466
15492
|
exports.DeckContent = DeckContent;
|
|
@@ -15510,6 +15536,7 @@ exports.ForbesHero = fbsHero;
|
|
|
15510
15536
|
exports.GridHero = GridHero;
|
|
15511
15537
|
exports.Hero = Hero;
|
|
15512
15538
|
exports.HorizontalHero = HorizontalHero;
|
|
15539
|
+
exports.KMTracker = KMTracker;
|
|
15513
15540
|
exports.OncliveHero = OncliveHero;
|
|
15514
15541
|
exports.OncliveLargeHero = OncliveLargeHero;
|
|
15515
15542
|
exports.PdfDownload = PdfDownload;
|
package/dist/esm/index.js
CHANGED
|
@@ -2220,7 +2220,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2220
2220
|
form.append('doc', 'per');
|
|
2221
2221
|
form.append('from', params.from);
|
|
2222
2222
|
form.append('limit', params.limit);
|
|
2223
|
-
form.append('keyword',
|
|
2223
|
+
form.append('keyword', keywords);
|
|
2224
2224
|
_context.prev = 5;
|
|
2225
2225
|
_context.next = 8;
|
|
2226
2226
|
return fetch(corsProxy$1 + 'http://vaccine.mjhassoc.com/doc_loader.php', {
|
|
@@ -2293,7 +2293,9 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2293
2293
|
rightItems = _ref.rightItems,
|
|
2294
2294
|
_ref$seoPaginate = _ref.seoPaginate,
|
|
2295
2295
|
seoPaginate = _ref$seoPaginate === undefined ? true : _ref$seoPaginate,
|
|
2296
|
-
pageview = _ref.pageview
|
|
2296
|
+
pageview = _ref.pageview,
|
|
2297
|
+
_ref$keywords = _ref.keywords,
|
|
2298
|
+
keywords = _ref$keywords === undefined ? '' : _ref$keywords;
|
|
2297
2299
|
|
|
2298
2300
|
var router = useRouter();
|
|
2299
2301
|
|
|
@@ -2423,7 +2425,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2423
2425
|
{ xs: 3, sm: 4, md: 4, lg: 4, xl: 4, style: { padding: '0' } },
|
|
2424
2426
|
React__default.createElement(
|
|
2425
2427
|
'a',
|
|
2426
|
-
{ href: row.href },
|
|
2428
|
+
{ href: row.href, target: '_blank' },
|
|
2427
2429
|
React__default.createElement('img', { style: { width: '100%', borderRadius: '0 0 0 10%', marginBottom: '20px', borderTop: '1px solid #EEE' }, src: row.thumbnail })
|
|
2428
2430
|
)
|
|
2429
2431
|
),
|
|
@@ -2432,7 +2434,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2432
2434
|
{ xs: 9, sm: 8, md: 8, lg: 8, xl: 8, style: { paddingTop: '10px', marginBottom: '20px', borderTop: '1px solid #EEE' } },
|
|
2433
2435
|
React__default.createElement(
|
|
2434
2436
|
'a',
|
|
2435
|
-
{ href: row.href },
|
|
2437
|
+
{ href: row.href, target: '_blank' },
|
|
2436
2438
|
React__default.createElement('h4', { className: 'mb-1', style: { fontWeight: '500', fontSize: '22px' }, dangerouslySetInnerHTML: { __html: row.title } }),
|
|
2437
2439
|
React__default.createElement(
|
|
2438
2440
|
'p',
|
|
@@ -2451,7 +2453,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2451
2453
|
{ xs: 9, sm: 8, lg: 8, xl: 8 },
|
|
2452
2454
|
React__default.createElement(
|
|
2453
2455
|
'a',
|
|
2454
|
-
{ href: row.href },
|
|
2456
|
+
{ href: row.href, target: '_blank' },
|
|
2455
2457
|
React__default.createElement('h4', { className: 'mb-1', style: { fontWeight: '500', fontSize: '22px' }, dangerouslySetInnerHTML: { __html: row.title } }),
|
|
2456
2458
|
React__default.createElement(
|
|
2457
2459
|
'p',
|
|
@@ -2466,7 +2468,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2466
2468
|
{ xs: 3, sm: 4, lg: 4, xl: 4 },
|
|
2467
2469
|
React__default.createElement(
|
|
2468
2470
|
'a',
|
|
2469
|
-
{ href: row.href },
|
|
2471
|
+
{ href: row.href, target: '_blank' },
|
|
2470
2472
|
React__default.createElement('img', { style: { width: '100%', borderRadius: '0 0 10% 0' }, src: row.thumbnail && urlFor(row.thumbnail.asset).url() })
|
|
2471
2473
|
)
|
|
2472
2474
|
)
|
|
@@ -15459,4 +15461,28 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
15459
15461
|
};
|
|
15460
15462
|
};
|
|
15461
15463
|
|
|
15462
|
-
|
|
15464
|
+
var KMTracker = function KMTracker(props) {
|
|
15465
|
+
var id = props.id;
|
|
15466
|
+
|
|
15467
|
+
if (document) {
|
|
15468
|
+
(function () {
|
|
15469
|
+
var ecnJquery = document.createElement('script');
|
|
15470
|
+
|
|
15471
|
+
ecnJquery.type = 'text/javascript';
|
|
15472
|
+
ecnJquery.async = true;
|
|
15473
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
15474
|
+
|
|
15475
|
+
var ecnScript = document.createElement('script');
|
|
15476
|
+
|
|
15477
|
+
ecnScript.type = 'text/javascript';
|
|
15478
|
+
ecnScript.async = true;
|
|
15479
|
+
ecnScript.id = 'km-tracker';
|
|
15480
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
15481
|
+
|
|
15482
|
+
document.head.appendChild(ecnJquery);
|
|
15483
|
+
document.head.appendChild(ecnScript);
|
|
15484
|
+
})();
|
|
15485
|
+
}
|
|
15486
|
+
};
|
|
15487
|
+
|
|
15488
|
+
export { AD300x250, AD300x250x600, ADFooter, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };
|