@mjhls/mjh-framework 1.0.293 → 1.0.294

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.
Files changed (42) hide show
  1. package/README.md +171 -171
  2. package/dist/cjs/DeckContent.js +9 -9
  3. package/dist/cjs/DeckQueue.js +1 -1
  4. package/dist/cjs/{Figure-0681dd7d.js → Figure-167c0214.js} +1 -1
  5. package/dist/cjs/{GridContent-02acbd72.js → GridContent-fa2e1b56.js} +2 -2
  6. package/dist/cjs/GridContent.js +2 -2
  7. package/dist/cjs/IssueContentDeck.js +1 -1
  8. package/dist/cjs/IssueDeck.js +1 -1
  9. package/dist/cjs/MasterDeck.js +9 -9
  10. package/dist/cjs/{Normal-c6ad2f0a.js → Normal-61221bc6.js} +29 -29
  11. package/dist/cjs/PublicationDeck.js +1 -1
  12. package/dist/cjs/QueueDeckExpanded.js +1 -1
  13. package/dist/cjs/{TaxonomyCard-03364755.js → TaxonomyCard-4210753c.js} +1 -1
  14. package/dist/cjs/TaxonomyCard.js +2 -2
  15. package/dist/cjs/TemplateNormal.js +1 -1
  16. package/dist/cjs/ThumbnailCard.js +1 -1
  17. package/dist/cjs/VideoSeriesListing.js +14 -12
  18. package/dist/cjs/{YoutubeGroup-98ffbc57.js → YoutubeGroup-39eba427.js} +4 -4
  19. package/dist/cjs/YoutubeGroup.js +1 -1
  20. package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
  21. package/dist/cjs/index.js +536 -548
  22. package/dist/esm/DeckContent.js +9 -9
  23. package/dist/esm/DeckQueue.js +1 -1
  24. package/dist/esm/{Figure-cff72982.js → Figure-9f21ef27.js} +1 -1
  25. package/dist/esm/{GridContent-96716e42.js → GridContent-88ed988c.js} +1 -1
  26. package/dist/esm/GridContent.js +2 -2
  27. package/dist/esm/IssueContentDeck.js +1 -1
  28. package/dist/esm/IssueDeck.js +1 -1
  29. package/dist/esm/MasterDeck.js +9 -9
  30. package/dist/esm/{Normal-73a8596f.js → Normal-3a537c0a.js} +29 -29
  31. package/dist/esm/PublicationDeck.js +1 -1
  32. package/dist/esm/QueueDeckExpanded.js +1 -1
  33. package/dist/esm/{TaxonomyCard-8d8c0d6f.js → TaxonomyCard-1d039949.js} +1 -1
  34. package/dist/esm/TaxonomyCard.js +2 -2
  35. package/dist/esm/TemplateNormal.js +1 -1
  36. package/dist/esm/ThumbnailCard.js +1 -1
  37. package/dist/esm/VideoSeriesListing.js +14 -12
  38. package/dist/esm/{YoutubeGroup-562ed456.js → YoutubeGroup-f59297bb.js} +4 -4
  39. package/dist/esm/YoutubeGroup.js +1 -1
  40. package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
  41. package/dist/esm/index.js +539 -551
  42. package/package.json +103 -103
@@ -18,7 +18,7 @@ var Router = require('next/router');
18
18
  var Router__default = _interopDefault(Router);
19
19
  require('react-dom');
20
20
  require('./index-fa0fb52c.js');
21
- var YoutubeGroup = require('./YoutubeGroup-98ffbc57.js');
21
+ var YoutubeGroup = require('./YoutubeGroup-39eba427.js');
22
22
  var index_esm = require('./index.esm-340d3792.js');
23
23
 
24
24
  var VideoSeriesListing = function (_React$Component) {
@@ -66,8 +66,8 @@ var VideoSeriesListing = function (_React$Component) {
66
66
  query = _this$state.query,
67
67
  page = _this$state.page;
68
68
  var client = _this.props.client;
69
+ //this.changePageNumber(page)
69
70
 
70
- _this.changePageNumber(page);
71
71
  var params = _extends$2._extends({}, _this.params, { from: from, to: to
72
72
  // const queryUpdated = query.replace('$from', params.from).replace('$to', params.to)
73
73
  // const query = '*[_type == "article" && defined(title) && defined(thumbnail)][$from...$to] { title, summary, thumbnail { asset-> }, url }'
@@ -221,22 +221,24 @@ var VideoSeriesListing = function (_React$Component) {
221
221
 
222
222
  return React__default.createElement(
223
223
  visibilitySensor.InfiniteScroll,
224
- { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
224
+ { dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.8 },
225
225
  React__default.createElement(
226
226
  Container,
227
227
  null,
228
228
  this.state.data && this.state.data.map(function (series, index) {
229
- var page = series[0].pageNumber !== 1 ? series[0].pageNumber : index + 1;
229
+ var page = series[0].pageNumber !== 1 ? series[0].pageNumber : 1;
230
230
 
231
231
  return React__default.createElement(
232
- visibilitySensor.VisibilitySensor,
233
- {
234
- partialVisibility: true,
235
- offset: { bottom: 400, top: 200 },
236
- key: index,
237
- onChange: function onChange(isVisible) {
238
- isVisible && _this2.changePageNumber(page);
239
- } },
232
+ React__default.Fragment,
233
+ { key: index },
234
+ React__default.createElement(
235
+ visibilitySensor.VisibilitySensor,
236
+ {
237
+ onChange: function onChange(isVisible) {
238
+ isVisible && _this2.changePageNumber(page);
239
+ } },
240
+ React__default.createElement('div', { className: 'visibility-sensor', style: { minHeight: '.25rem' } })
241
+ ),
240
242
  React__default.createElement(
241
243
  'div',
242
244
  null,
@@ -492,10 +492,10 @@ var smoothscroll_1 = smoothscroll.polyfill;
492
492
 
493
493
  // kick off the polyfill!
494
494
 
495
- /*
496
- GROQ query -
497
- accepts an array of title, URL
498
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
495
+ /*
496
+ GROQ query -
497
+ accepts an array of title, URL
498
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
499
499
  */
500
500
  var YoutubeGroup = function YoutubeGroup(props) {
501
501
  // Props should be an array of objects containing Thumbnail, title, and URL
@@ -6,7 +6,7 @@ require('prop-types');
6
6
  require('next/link');
7
7
  require('react-dom');
8
8
  require('./index-fa0fb52c.js');
9
- var YoutubeGroup = require('./YoutubeGroup-98ffbc57.js');
9
+ var YoutubeGroup = require('./YoutubeGroup-39eba427.js');
10
10
 
11
11
 
12
12
 
@@ -377,8 +377,7 @@ function urlBuilder(options) {
377
377
  var client = options;
378
378
  if (isSanityClient(client)) {
379
379
  // Inherit config from client
380
- var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
381
- var apiHost = apiUrl || 'https://api.sanity.io';
380
+ var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
382
381
  return new ImageUrlBuilder(null, {
383
382
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
384
383
  projectId: projectId,