@mjhls/mjh-framework 1.0.570 → 1.0.572

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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.570
2
+ # mjh-framework v. 1.0.572
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -251,7 +251,7 @@ var IssueContentDeck = function IssueContentDeck(props) {
251
251
  React__default['default'].createElement(
252
252
  'style',
253
253
  { jsx: 'true' },
254
- '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n width: fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
254
+ '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n width: 100%;\n display: inline;\n max-width: 240px;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
255
255
  )
256
256
  );
257
257
  };
@@ -559,7 +559,7 @@ var PublicationLanding = function PublicationLanding(props) {
559
559
  React__default['default'].createElement(
560
560
  'style',
561
561
  { jsx: 'true' },
562
- '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n width: fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
562
+ '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
563
563
  )
564
564
  );
565
565
  };
package/dist/cjs/View.js CHANGED
@@ -96,7 +96,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
96
96
  ),
97
97
  React__default['default'].createElement(
98
98
  reactBootstrap.Col,
99
- { className: 'author-details-col', sm: 12, md: 8 },
99
+ { className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
100
100
  React__default['default'].createElement(
101
101
  'h5',
102
102
  null,
@@ -2205,18 +2205,6 @@ var Video = function Video(_ref) {
2205
2205
  playlistID = node.playlistID,
2206
2206
  experienceID = node.experienceID;
2207
2207
 
2208
- var router = Router.useRouter();
2209
-
2210
- var _useState = React.useState(null),
2211
- _useState2 = slicedToArray._slicedToArray(_useState, 2),
2212
- qsVideoID = _useState2[0],
2213
- setQsVideoID = _useState2[1];
2214
-
2215
- React.useEffect(function () {
2216
- if (router.query && router.query.videoID && !qsVideoID) {
2217
- setQsVideoID(router.query.videoID);
2218
- }
2219
- }, [router && router.query]);
2220
2208
  var onVideoSuccess = function onVideoSuccess(success) {
2221
2209
  //console.log('success:', success.ref)
2222
2210
  var player = success.ref;
@@ -2350,22 +2338,10 @@ var Video = function Video(_ref) {
2350
2338
  return React__default['default'].createElement(
2351
2339
  'div',
2352
2340
  { className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
2353
- React__default['default'].createElement(
2354
- 'div',
2355
- { style: { paddingTop: '56.25%' } },
2356
- React__default['default'].createElement('iframe', {
2357
- src: 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/index.html' + (qsVideoID ? '?videoID=' + qsVideoID : ''),
2358
- allowFullScreen: 'true',
2359
- webkitallowfullscreen: 'true',
2360
- mozallowfullscreen: 'true',
2361
- style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
2362
- }),
2363
- React__default['default'].createElement(
2364
- 'style',
2365
- { jsx: 'true' },
2366
- '\n .brightcove-playlist iframe {\n height: 100% !important;\n }\n '
2367
- )
2368
- )
2341
+ React__default['default'].createElement('div', {
2342
+ dangerouslySetInnerHTML: {
2343
+ __html: '<div data-experience=' + experienceID + '></div>\n <script src="https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/live.js" async></script>'
2344
+ } })
2369
2345
  );
2370
2346
  }
2371
2347
  return null;
@@ -241,7 +241,7 @@ var IssueContentDeck = function IssueContentDeck(props) {
241
241
  React.createElement(
242
242
  'style',
243
243
  { jsx: 'true' },
244
- '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n width: fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
244
+ '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n width: 100%;\n display: inline;\n max-width: 240px;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
245
245
  )
246
246
  );
247
247
  };
@@ -549,7 +549,7 @@ var PublicationLanding = function PublicationLanding(props) {
549
549
  React.createElement(
550
550
  'style',
551
551
  { jsx: 'true' },
552
- '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n width: fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
552
+ '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
553
553
  )
554
554
  );
555
555
  };
package/dist/esm/View.js CHANGED
@@ -85,7 +85,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
85
85
  ),
86
86
  React.createElement(
87
87
  Col,
88
- { className: 'author-details-col', sm: 12, md: 8 },
88
+ { className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
89
89
  React.createElement(
90
90
  'h5',
91
91
  null,
@@ -2193,18 +2193,6 @@ var Video = function Video(_ref) {
2193
2193
  playlistID = node.playlistID,
2194
2194
  experienceID = node.experienceID;
2195
2195
 
2196
- var router = useRouter();
2197
-
2198
- var _useState = useState(null),
2199
- _useState2 = _slicedToArray(_useState, 2),
2200
- qsVideoID = _useState2[0],
2201
- setQsVideoID = _useState2[1];
2202
-
2203
- useEffect(function () {
2204
- if (router.query && router.query.videoID && !qsVideoID) {
2205
- setQsVideoID(router.query.videoID);
2206
- }
2207
- }, [router && router.query]);
2208
2196
  var onVideoSuccess = function onVideoSuccess(success) {
2209
2197
  //console.log('success:', success.ref)
2210
2198
  var player = success.ref;
@@ -2338,22 +2326,10 @@ var Video = function Video(_ref) {
2338
2326
  return React.createElement(
2339
2327
  'div',
2340
2328
  { className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
2341
- React.createElement(
2342
- 'div',
2343
- { style: { paddingTop: '56.25%' } },
2344
- React.createElement('iframe', {
2345
- src: 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/index.html' + (qsVideoID ? '?videoID=' + qsVideoID : ''),
2346
- allowFullScreen: 'true',
2347
- webkitallowfullscreen: 'true',
2348
- mozallowfullscreen: 'true',
2349
- style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
2350
- }),
2351
- React.createElement(
2352
- 'style',
2353
- { jsx: 'true' },
2354
- '\n .brightcove-playlist iframe {\n height: 100% !important;\n }\n '
2355
- )
2356
- )
2329
+ React.createElement('div', {
2330
+ dangerouslySetInnerHTML: {
2331
+ __html: '<div data-experience=' + experienceID + '></div>\n <script src="https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/live.js" async></script>'
2332
+ } })
2357
2333
  );
2358
2334
  }
2359
2335
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.570",
3
+ "version": "1.0.572",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",