@mjhls/mjh-framework 1.0.239 → 1.0.240

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 (65) hide show
  1. package/README.md +174 -174
  2. package/dist/cjs/AdSlot-c472fff6.js +1192 -0
  3. package/dist/cjs/DeckContent.js +15 -14
  4. package/dist/cjs/DeckQueue.js +6 -6
  5. package/dist/cjs/{Dfp-045b016b.js → Dfp-7a5533f9.js} +1 -1
  6. package/dist/cjs/{GridContent-21bc198f.js → GridContent-f9e3fff5.js} +8 -8
  7. package/dist/cjs/GridContent.js +9 -8
  8. package/dist/cjs/IssueContentDeck.js +1 -1
  9. package/dist/cjs/IssueDeck.js +1 -1
  10. package/dist/cjs/MasterDeck.js +332 -14
  11. package/dist/cjs/{Normal-c89b709d.js → Normal-0497eb61.js} +32 -32
  12. package/dist/cjs/PublicationDeck.js +1 -1
  13. package/dist/cjs/QueueDeckExpanded.js +3 -3
  14. package/dist/cjs/{TaxonomyCard-e3566492.js → TaxonomyCard-b5074d6e.js} +1 -1
  15. package/dist/cjs/TaxonomyCard.js +2 -2
  16. package/dist/cjs/TemplateNormal.js +6 -5
  17. package/dist/cjs/ThumbnailCard.js +1 -1
  18. package/dist/cjs/VideoSeriesListing.js +3 -3
  19. package/dist/cjs/{YoutubeGroup-5f480446.js → YoutubeGroup-fd44f8a0.js} +4 -4
  20. package/dist/cjs/YoutubeGroup.js +1 -1
  21. package/dist/cjs/{debounce-bbca43c4.js → debounce-783eb233.js} +3 -0
  22. package/dist/cjs/{get-af2516a4.js → get-1f91592f.js} +1 -1
  23. package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
  24. package/dist/cjs/index.js +643 -1355
  25. package/dist/cjs/{inherits-5b5ca8db.js → inherits-9898af5a.js} +2 -4
  26. package/dist/cjs/{main-d9a1b014.js → main-0ea1b808.js} +51 -0
  27. package/dist/cjs/{MasterDeck-f8fbac3c.js → promise-b96c61f8.js} +7 -340
  28. package/dist/cjs/{toConsumableArray-7e4caf3c.js → toConsumableArray-f05a306f.js} +5 -52
  29. package/dist/esm/AdSlot-bdd7a629.js +1183 -0
  30. package/dist/esm/DeckContent.js +20 -19
  31. package/dist/esm/DeckQueue.js +10 -10
  32. package/dist/esm/{Dfp-01f14ae3.js → Dfp-71879c9d.js} +5 -5
  33. package/dist/esm/{GridContent-73c97039.js → GridContent-d4f5457e.js} +9 -9
  34. package/dist/esm/GridContent.js +14 -13
  35. package/dist/esm/IssueContentDeck.js +1 -1
  36. package/dist/esm/IssueDeck.js +1 -1
  37. package/dist/esm/MasterDeck.js +334 -16
  38. package/dist/esm/{Normal-fdd55386.js → Normal-e1855047.js} +33 -33
  39. package/dist/esm/PublicationDeck.js +1 -1
  40. package/dist/esm/QueueDeckExpanded.js +8 -8
  41. package/dist/esm/{TaxonomyCard-a7b7ded8.js → TaxonomyCard-ee1a22ae.js} +2 -2
  42. package/dist/esm/TaxonomyCard.js +4 -4
  43. package/dist/esm/TemplateNormal.js +10 -9
  44. package/dist/esm/ThumbnailCard.js +1 -1
  45. package/dist/esm/{Ustream-62a07a32.js → Ustream-d51b9b11.js} +1 -1
  46. package/dist/esm/Ustream.js +5 -5
  47. package/dist/esm/VideoSeriesListing.js +6 -6
  48. package/dist/esm/{YoutubeGroup-78d93d44.js → YoutubeGroup-1b3eca73.js} +4 -4
  49. package/dist/esm/YoutubeGroup.js +1 -1
  50. package/dist/esm/{_to-object-86553f76.js → _to-object-b9b796ec.js} +1 -1
  51. package/dist/esm/{core.get-iterator-method-709061dc.js → core.get-iterator-method-31c1fb1a.js} +2 -2
  52. package/dist/esm/{debounce-fa7fbf11.js → debounce-806f886b.js} +3 -1
  53. package/dist/esm/{extends-7f88fa22.js → extends-dbbe308d.js} +1 -1
  54. package/dist/esm/{get-8d382479.js → get-b2201dc8.js} +1 -1
  55. package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
  56. package/dist/esm/index.js +649 -1363
  57. package/dist/esm/{inherits-a82a4471.js → inherits-a75c8a1c.js} +5 -6
  58. package/dist/esm/{main-eecf7b27.js → main-155ec04f.js} +48 -1
  59. package/dist/esm/{MasterDeck-238f31d7.js → promise-683a9c54.js} +6 -335
  60. package/dist/esm/{slicedToArray-eb7eca9e.js → slicedToArray-d0a9593a.js} +3 -3
  61. package/dist/esm/{toConsumableArray-08d50169.js → toConsumableArray-eb308ede.js} +5 -49
  62. package/dist/esm/{web.dom.iterable-f05d2f57.js → web.dom.iterable-3be50d6c.js} +2 -2
  63. package/package.json +102 -101
  64. package/dist/cjs/AdSlot-1fe1c231.js +0 -69
  65. package/dist/esm/AdSlot-017b8051.js +0 -64
@@ -6,7 +6,7 @@ import Col from 'react-bootstrap/Col';
6
6
  import Card from 'react-bootstrap/Card';
7
7
  import 'next/link';
8
8
  import 'react-dom';
9
- import { i as imageUrlBuilder } from './index-73819142.js';
9
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
10
10
  import { L as LazyLoad } from './index-5f9f807a.js';
11
11
  import Button from 'react-bootstrap/Button';
12
12
 
@@ -1,9 +1,10 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-86553f76.js';
3
- import './web.dom.iterable-f05d2f57.js';
4
- import { _ as _toConsumableArray } from './toConsumableArray-08d50169.js';
5
- import './core.get-iterator-method-709061dc.js';
6
- import { _ as _extends } from './extends-7f88fa22.js';
2
+ import './_to-object-b9b796ec.js';
3
+ import './web.dom.iterable-3be50d6c.js';
4
+ import { m as main_36 } from './main-155ec04f.js';
5
+ import { _ as _toConsumableArray } from './toConsumableArray-eb308ede.js';
6
+ import './core.get-iterator-method-31c1fb1a.js';
7
+ import { _ as _extends } from './extends-dbbe308d.js';
7
8
  import React__default, { useState, useEffect, useRef } from 'react';
8
9
  import { l as lib_3 } from './index-fa84ea96.js';
9
10
  import 'prop-types';
@@ -11,11 +12,10 @@ import { I as InfiniteScroll, V as VisibilitySensor, m as moment } from './visib
11
12
  import 'next/link';
12
13
  import { useRouter } from 'next/router';
13
14
  import 'react-dom';
14
- import { i as imageUrlBuilder } from './index-73819142.js';
15
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
15
16
  import { L as LazyLoad } from './index-5f9f807a.js';
16
- import { m as main_36 } from './main-eecf7b27.js';
17
17
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
18
- import { _ as _slicedToArray } from './slicedToArray-eb7eca9e.js';
18
+ import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
19
19
  import { Container, Media } from 'react-bootstrap';
20
20
 
21
21
  var urlFor = function urlFor(source, builder) {
@@ -1,11 +1,11 @@
1
- import { _ as _extends } from './extends-7f88fa22.js';
1
+ import { _ as _extends } from './extends-dbbe308d.js';
2
2
  import React__default from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import Container from 'react-bootstrap/Container';
5
5
  import Row from 'react-bootstrap/Row';
6
6
  import Col from 'react-bootstrap/Col';
7
7
  import Card from 'react-bootstrap/Card';
8
- import { n as node, i as imageUrlBuilder } from './index-73819142.js';
8
+ import { n as node, i as imageUrlBuilder } from './index-3849e3fe.js';
9
9
  import { L as LazyLoad } from './index-5f9f807a.js';
10
10
 
11
11
  /*
@@ -1,6 +1,6 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-86553f76.js';
3
- import './extends-7f88fa22.js';
2
+ import './_to-object-b9b796ec.js';
3
+ import './extends-dbbe308d.js';
4
4
  import 'react';
5
5
  import 'prop-types';
6
6
  import 'react-bootstrap/Container';
@@ -8,6 +8,6 @@ import 'react-bootstrap/Row';
8
8
  import 'react-bootstrap/Col';
9
9
  import 'react-bootstrap/Card';
10
10
  import 'react-dom';
11
- import './index-73819142.js';
11
+ import './index-3849e3fe.js';
12
12
  import './index-5f9f807a.js';
13
- export { T as default } from './TaxonomyCard-a7b7ded8.js';
13
+ export { T as default } from './TaxonomyCard-ee1a22ae.js';
@@ -1,7 +1,9 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-86553f76.js';
3
- import './web.dom.iterable-f05d2f57.js';
4
- import './core.get-iterator-method-709061dc.js';
2
+ import './_to-object-b9b796ec.js';
3
+ import './web.dom.iterable-3be50d6c.js';
4
+ import './debounce-806f886b.js';
5
+ import './main-155ec04f.js';
6
+ import './core.get-iterator-method-31c1fb1a.js';
5
7
  import 'react';
6
8
  import './index-fa84ea96.js';
7
9
  import 'prop-types';
@@ -9,15 +11,14 @@ import 'react-bootstrap/Container';
9
11
  import 'react-bootstrap/Row';
10
12
  import 'react-bootstrap/Col';
11
13
  import 'next/link';
12
- import './debounce-fa7fbf11.js';
13
- import './main-eecf7b27.js';
14
- import './slicedToArray-eb7eca9e.js';
15
- import './AdSlot-017b8051.js';
16
- import './get-8d382479.js';
14
+ import './slicedToArray-d0a9593a.js';
15
+ import './AdSlot-bdd7a629.js';
16
+ import './promise-683a9c54.js';
17
+ import './get-b2201dc8.js';
17
18
  import 'react-bootstrap';
18
19
  import './index.esm-536609db.js';
19
20
  import 'react-bootstrap/Button';
20
- export { T as default } from './Normal-fdd55386.js';
21
+ export { T as default } from './Normal-e1855047.js';
21
22
  import 'react-bootstrap/ListGroup';
22
23
  import 'next/head';
23
24
  import 'react-bootstrap/Nav';
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
2
2
  import React__default from 'react';
3
3
  import 'prop-types';
4
4
  import 'react-dom';
5
- import { i as imageUrlBuilder } from './index-73819142.js';
5
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
6
6
  import { L as LazyLoad } from './index-5f9f807a.js';
7
7
  import { c as clean_html_1 } from './entities-7cc3bf45.js';
8
8
  import Media$1 from 'react-bootstrap/Media';
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useEffect } from 'react';
2
- import { _ as _slicedToArray } from './slicedToArray-eb7eca9e.js';
2
+ import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
3
3
  import { G as GenIcon, d as IoIosOpen } from './index.esm-536609db.js';
4
4
 
5
5
  // THIS FILE IS AUTO GENERATED
@@ -1,8 +1,8 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-86553f76.js';
3
- import './web.dom.iterable-f05d2f57.js';
4
- import './core.get-iterator-method-709061dc.js';
2
+ import './_to-object-b9b796ec.js';
3
+ import './web.dom.iterable-3be50d6c.js';
4
+ import './core.get-iterator-method-31c1fb1a.js';
5
5
  import 'react';
6
- import './slicedToArray-eb7eca9e.js';
6
+ import './slicedToArray-d0a9593a.js';
7
7
  import './index.esm-536609db.js';
8
- export { U as default } from './Ustream-62a07a32.js';
8
+ export { U as default } from './Ustream-d51b9b11.js';
@@ -1,8 +1,9 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import './_to-object-86553f76.js';
3
- import './web.dom.iterable-f05d2f57.js';
4
- import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-a82a4471.js';
5
- import { _ as _extends } from './extends-7f88fa22.js';
2
+ import './_to-object-b9b796ec.js';
3
+ import './web.dom.iterable-3be50d6c.js';
4
+ import { d as debounce_1 } from './debounce-806f886b.js';
5
+ import { _ as _extends } from './extends-dbbe308d.js';
6
+ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-a75c8a1c.js';
6
7
  import React__default from 'react';
7
8
  import { l as lib_3 } from './index-fa84ea96.js';
8
9
  import 'prop-types';
@@ -10,10 +11,9 @@ import Container from 'react-bootstrap/Container';
10
11
  import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-336093e1.js';
11
12
  import 'next/link';
12
13
  import { withRouter } from 'next/router';
13
- import { d as debounce_1 } from './debounce-fa7fbf11.js';
14
14
  import 'react-dom';
15
15
  import './index-5f9f807a.js';
16
- import { Y as YoutubeGroup } from './YoutubeGroup-78d93d44.js';
16
+ import { Y as YoutubeGroup } from './YoutubeGroup-1b3eca73.js';
17
17
  import { a as IoIosArrowForward } from './index.esm-536609db.js';
18
18
 
19
19
  var VideoSeriesListing = function (_React$Component) {
@@ -52,10 +52,10 @@ var getYoutubeId = createCommonjsModule(function (module, exports) {
52
52
  }));
53
53
  });
54
54
 
55
- /*
56
- GROQ query -
57
- accepts an array of title, URL
58
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
55
+ /*
56
+ GROQ query -
57
+ accepts an array of title, URL
58
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
59
59
  */
60
60
  var YoutubeGroup = function YoutubeGroup(props) {
61
61
  // Props should be an array of objects containing Thumbnail, title, and URL
@@ -4,4 +4,4 @@ import 'prop-types';
4
4
  import 'next/link';
5
5
  import 'react-dom';
6
6
  import './index-5f9f807a.js';
7
- export { Y as default } from './YoutubeGroup-78d93d44.js';
7
+ export { Y as default } from './YoutubeGroup-1b3eca73.js';
@@ -315,4 +315,4 @@ var _toObject = function (it) {
315
315
  return Object(_defined(it));
316
316
  };
317
317
 
318
- export { _toInteger as A, _sharedKey as B, _core as _, _objectKeys as a, _toObject as b, _ctx as c, _toLength as d, _anObject as e, _aFunction as f, _global as g, _cof as h, _domCreate as i, _isObject as j, _hide as k, _descriptors as l, _objectDp as m, _export as n, _fails as o, _uid as p, _has as q, _objectKeysInternal as r, _enumBugKeys as s, _toIobject as t, _toPrimitive as u, _ie8DomDefine as v, _propertyDesc as w, _shared as x, _iobject as y, _defined as z };
318
+ export { _toInteger as A, _sharedKey as B, _objectKeys as _, _toObject as a, _core as b, _export as c, _fails as d, _objectDp as e, _descriptors as f, _uid as g, _isObject as h, _has as i, _cof as j, _objectKeysInternal as k, _enumBugKeys as l, _toIobject as m, _toPrimitive as n, _ie8DomDefine as o, _propertyDesc as p, _global as q, _shared as r, _hide as s, _anObject as t, _ctx as u, _iobject as v, _toLength as w, _aFunction as x, _domCreate as y, _defined as z };
@@ -1,5 +1,5 @@
1
- import { h as _cof, _ as _core } from './_to-object-86553f76.js';
2
- import { _ as _wks, f as _iterators } from './web.dom.iterable-f05d2f57.js';
1
+ import { j as _cof, b as _core } from './_to-object-b9b796ec.js';
2
+ import { a as _wks, e as _iterators } from './web.dom.iterable-3be50d6c.js';
3
3
 
4
4
  // getting tag from 19.1.3.6 Object.prototype.toString()
5
5
 
@@ -1,5 +1,7 @@
1
1
  import { a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
2
 
3
+ var _library = true;
4
+
3
5
  /**
4
6
  * Checks if `value` is the
5
7
  * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
@@ -474,4 +476,4 @@ function debounce(func, wait, options) {
474
476
 
475
477
  var debounce_1 = debounce;
476
478
 
477
- export { _baseGetTag as _, isObject_1 as a, _root as b, _Symbol as c, debounce_1 as d, isSymbol_1 as i };
479
+ export { _library as _, isObject_1 as a, _baseGetTag as b, _root as c, debounce_1 as d, _Symbol as e, isSymbol_1 as i };
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
- import { o as _fails, b as _toObject, y as _iobject, a as _objectKeys, l as _descriptors, n as _export, _ as _core } from './_to-object-86553f76.js';
2
+ import { d as _fails, a as _toObject, v as _iobject, _ as _objectKeys, f as _descriptors, c as _export, b as _core } from './_to-object-b9b796ec.js';
3
3
 
4
4
  var f = Object.getOwnPropertySymbols;
5
5
 
@@ -1,4 +1,4 @@
1
- import { i as isSymbol_1, a as isObject_1, _ as _baseGetTag, b as _root, c as _Symbol } from './debounce-fa7fbf11.js';
1
+ import { i as isSymbol_1, a as isObject_1, b as _baseGetTag, c as _root, e as _Symbol } from './debounce-806f886b.js';
2
2
 
3
3
  /**
4
4
  * Checks if `value` is classified as an `Array` object.
@@ -375,7 +375,8 @@ function urlBuilder(options) {
375
375
  var client = options;
376
376
  if (isSanityClient(client)) {
377
377
  // Inherit config from client
378
- var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
378
+ var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
379
+ var apiHost = apiUrl || 'https://api.sanity.io';
379
380
  return new ImageUrlBuilder(null, {
380
381
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
381
382
  projectId: projectId,