@mjhls/mjh-framework 1.0.1054 → 1.0.1056

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 (48) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AlgoliaSearch.js +73 -105
  3. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  4. package/dist/cjs/AuthWrapper.js +19 -89
  5. package/dist/cjs/ExternalResources.js +1 -1
  6. package/dist/cjs/HorizontalArticleListing.js +1 -1
  7. package/dist/cjs/{ImageSlider-d65bc9c8.js → ImageSlider-984a697b.js} +116 -156
  8. package/dist/cjs/IssueLanding.js +1 -1
  9. package/dist/cjs/{MediaSeriesCard-e54b0b0c.js → MediaSeriesCard-6c1bfd9c.js} +1 -1
  10. package/dist/cjs/MediaSeriesLanding.js +4 -4
  11. package/dist/cjs/MediaSeriesLandingPaginated.js +4 -4
  12. package/dist/cjs/PartnerDetailListing.js +3 -2
  13. package/dist/cjs/PartnerDetailListingPaginated.js +3 -2
  14. package/dist/cjs/PodcastsLanding.js +2 -2
  15. package/dist/cjs/TaxonomyDescription.js +1 -1
  16. package/dist/cjs/{Tooltip-02a841b5.js → Tooltip-96fe6ef6.js} +34 -86
  17. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  18. package/dist/cjs/View.js +1 -1
  19. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  20. package/dist/cjs/getSerializers.js +1 -1
  21. package/dist/cjs/{index-40a8d091.js → index-46b24f52.js} +7 -4
  22. package/dist/cjs/{index-9ec837cc.js → index-50be6759.js} +25 -9
  23. package/dist/cjs/index.js +5 -3
  24. package/dist/cjs/typeof-1358762e.js +33 -0
  25. package/dist/esm/AlgoliaSearch.js +72 -104
  26. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  27. package/dist/esm/AuthWrapper.js +16 -86
  28. package/dist/esm/ExternalResources.js +1 -1
  29. package/dist/esm/HorizontalArticleListing.js +1 -1
  30. package/dist/esm/{ImageSlider-da225417.js → ImageSlider-497e9c88.js} +117 -157
  31. package/dist/esm/IssueLanding.js +1 -1
  32. package/dist/esm/{MediaSeriesCard-3906e9ad.js → MediaSeriesCard-ed860bcf.js} +1 -1
  33. package/dist/esm/MediaSeriesLanding.js +4 -4
  34. package/dist/esm/MediaSeriesLandingPaginated.js +4 -4
  35. package/dist/esm/PartnerDetailListing.js +3 -2
  36. package/dist/esm/PartnerDetailListingPaginated.js +3 -2
  37. package/dist/esm/PodcastsLanding.js +2 -2
  38. package/dist/esm/TaxonomyDescription.js +1 -1
  39. package/dist/esm/{Tooltip-7a093cd4.js → Tooltip-bc98d17e.js} +192 -244
  40. package/dist/esm/VideoProgramLandingPage.js +1 -1
  41. package/dist/esm/View.js +1 -1
  42. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  43. package/dist/esm/getSerializers.js +1 -1
  44. package/dist/esm/{index-0ce54f8a.js → index-98ca9cec.js} +25 -10
  45. package/dist/esm/{index-718f95b2.js → index-d3b5043e.js} +7 -4
  46. package/dist/esm/index.js +5 -3
  47. package/dist/esm/typeof-2f07d0e8.js +30 -0
  48. package/package.json +4 -4
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-718f95b2.js';
8
+ import { g as getSerializers } from './index-d3b5043e.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
package/dist/esm/View.js CHANGED
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
17
17
  import SocialShare from './SocialShare.js';
18
- import { r as renderAuthor, g as getSerializers } from './index-718f95b2.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-d3b5043e.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
20
  import { S as SeriesSlider } from './SeriesSlider-a6b1d617.js';
21
21
  import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-5a281334.js';
@@ -0,0 +1,68 @@
1
+ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
+
3
+ var asyncToGenerator = createCommonjsModule(function (module) {
4
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
5
+ try {
6
+ var info = gen[key](arg);
7
+ var value = info.value;
8
+ } catch (error) {
9
+ reject(error);
10
+ return;
11
+ }
12
+
13
+ if (info.done) {
14
+ resolve(value);
15
+ } else {
16
+ Promise.resolve(value).then(_next, _throw);
17
+ }
18
+ }
19
+
20
+ function _asyncToGenerator(fn) {
21
+ return function () {
22
+ var self = this,
23
+ args = arguments;
24
+ return new Promise(function (resolve, reject) {
25
+ var gen = fn.apply(self, args);
26
+
27
+ function _next(value) {
28
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
29
+ }
30
+
31
+ function _throw(err) {
32
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
33
+ }
34
+
35
+ _next(undefined);
36
+ });
37
+ };
38
+ }
39
+
40
+ module.exports = _asyncToGenerator;
41
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
42
+ });
43
+
44
+ var _asyncToGenerator = unwrapExports(asyncToGenerator);
45
+
46
+ var defineProperty = createCommonjsModule(function (module) {
47
+ function _defineProperty(obj, key, value) {
48
+ if (key in obj) {
49
+ Object.defineProperty(obj, key, {
50
+ value: value,
51
+ enumerable: true,
52
+ configurable: true,
53
+ writable: true
54
+ });
55
+ } else {
56
+ obj[key] = value;
57
+ }
58
+
59
+ return obj;
60
+ }
61
+
62
+ module.exports = _defineProperty;
63
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
64
+ });
65
+
66
+ var _defineProperty = unwrapExports(defineProperty);
67
+
68
+ export { _asyncToGenerator as _, _defineProperty as a, asyncToGenerator as b, defineProperty as d };
@@ -1,5 +1,5 @@
1
1
  import 'react';
2
- export { g as default } from './index-718f95b2.js';
2
+ export { g as default } from './index-d3b5043e.js';
3
3
  import './BlockContent-1e73bd2c.js';
4
4
  import './entities-6d9154b4.js';
5
5
  import './slicedToArray-6ebcbfea.js';
@@ -33,9 +33,18 @@ function _objectWithoutPropertiesLoose(source, excluded) {
33
33
  return target;
34
34
  }
35
35
 
36
+ function _setPrototypeOf(o, p) {
37
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
38
+ o.__proto__ = p;
39
+ return o;
40
+ };
41
+
42
+ return _setPrototypeOf(o, p);
43
+ }
44
+
36
45
  var classnames = createCommonjsModule(function (module) {
37
46
  /*!
38
- Copyright (c) 2017 Jed Watson.
47
+ Copyright (c) 2018 Jed Watson.
39
48
  Licensed under the MIT License (MIT), see
40
49
  http://jedwatson.github.io/classnames
41
50
  */
@@ -45,7 +54,7 @@ var classnames = createCommonjsModule(function (module) {
45
54
 
46
55
  var hasOwn = {}.hasOwnProperty;
47
56
 
48
- function classNames () {
57
+ function classNames() {
49
58
  var classes = [];
50
59
 
51
60
  for (var i = 0; i < arguments.length; i++) {
@@ -56,16 +65,22 @@ var classnames = createCommonjsModule(function (module) {
56
65
 
57
66
  if (argType === 'string' || argType === 'number') {
58
67
  classes.push(arg);
59
- } else if (Array.isArray(arg) && arg.length) {
60
- var inner = classNames.apply(null, arg);
61
- if (inner) {
62
- classes.push(inner);
68
+ } else if (Array.isArray(arg)) {
69
+ if (arg.length) {
70
+ var inner = classNames.apply(null, arg);
71
+ if (inner) {
72
+ classes.push(inner);
73
+ }
63
74
  }
64
75
  } else if (argType === 'object') {
65
- for (var key in arg) {
66
- if (hasOwn.call(arg, key) && arg[key]) {
67
- classes.push(key);
76
+ if (arg.toString === Object.prototype.toString) {
77
+ for (var key in arg) {
78
+ if (hasOwn.call(arg, key) && arg[key]) {
79
+ classes.push(key);
80
+ }
68
81
  }
82
+ } else {
83
+ classes.push(arg.toString());
69
84
  }
70
85
  }
71
86
  }
@@ -82,4 +97,4 @@ var classnames = createCommonjsModule(function (module) {
82
97
  }());
83
98
  });
84
99
 
85
- export { _objectWithoutPropertiesLoose as _, _extends as a, classnames as c };
100
+ export { _objectWithoutPropertiesLoose as _, _setPrototypeOf as a, _extends as b, classnames as c };
@@ -9462,11 +9462,11 @@ var ArticleSeries = function ArticleSeries(_ref) {
9462
9462
  var LightBox = function LightBox(_ref) {
9463
9463
  var showLightbox = _ref.showLightbox,
9464
9464
  lightboxImgSrc = _ref.lightboxImgSrc,
9465
- closeLightbox = _ref.closeLightbox;
9465
+ closeLightbox = _ref.closeLightbox,
9466
+ disableLightBox = _ref.disableLightBox;
9466
9467
 
9467
9468
  var lightboxImage = useRef(null);
9468
9469
  var lightboxContainer = useRef(null);
9469
-
9470
9470
  var handleClickOutside = useCallback(function (event) {
9471
9471
  if (lightboxImage.current && !lightboxImage.current.contains(event.target) && lightboxContainer.current && lightboxContainer.current.className.includes('open')) {
9472
9472
  closeLightbox();
@@ -9482,7 +9482,7 @@ var LightBox = function LightBox(_ref) {
9482
9482
 
9483
9483
  return React__default.createElement(
9484
9484
  'div',
9485
- { ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
9485
+ { ref: lightboxContainer, className: 'lightbox-target ' + (!disableLightBox && showLightbox ? 'open' : 'close') },
9486
9486
  React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
9487
9487
  React__default.createElement(
9488
9488
  'style',
@@ -9555,7 +9555,8 @@ var FigureComponent = function FigureComponent(props) {
9555
9555
  _node$class_name = node.class_name,
9556
9556
  class_name = _node$class_name === undefined ? 'd-block' : _node$class_name,
9557
9557
  _node$disableTextWrap = node.disableTextWrap,
9558
- disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
9558
+ disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap,
9559
+ disableLightBox = node.disableLightBox;
9559
9560
  var _node$widthP = node.widthP,
9560
9561
  widthP = _node$widthP === undefined ? 'auto' : _node$widthP;
9561
9562
 
@@ -9711,6 +9712,7 @@ var FigureComponent = function FigureComponent(props) {
9711
9712
  React__default.createElement(LightBox, {
9712
9713
  showLightbox: showLightbox,
9713
9714
  lightboxImgSrc: lightboxImgSrc,
9715
+ disableLightBox: disableLightBox,
9714
9716
  closeLightbox: function closeLightbox() {
9715
9717
  setLightboxImgSrc('');
9716
9718
  setShowLightbox(false);
@@ -9733,6 +9735,7 @@ var FigureComponent = function FigureComponent(props) {
9733
9735
  React__default.createElement(LightBox, {
9734
9736
  showLightbox: showLightbox,
9735
9737
  lightboxImgSrc: lightboxImgSrc,
9738
+ disableLightBox: disableLightBox,
9736
9739
  closeLightbox: function closeLightbox() {
9737
9740
  setLightboxImgSrc('');
9738
9741
  setShowLightbox(false);
package/dist/esm/index.js CHANGED
@@ -87,7 +87,7 @@ export { default as VerticalHero } from './VerticalHero.js';
87
87
  export { default as YahooHero } from './YahooHero.js';
88
88
  export { default as GridHero } from './GridHero.js';
89
89
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
90
- export { g as getSerializers } from './index-718f95b2.js';
90
+ export { g as getSerializers } from './index-d3b5043e.js';
91
91
  export { default as Beam } from './Beam.js';
92
92
  export { default as Segment } from './Segment.js';
93
93
  export { default as KMTracker } from './KMTracker.js';
@@ -154,7 +154,8 @@ import './_object-to-array-b61d5965.js';
154
154
  import 'react-bootstrap/Spinner';
155
155
  import 'react-bootstrap/Form';
156
156
  import './js.cookie-6874175c.js';
157
- import './index-0ce54f8a.js';
157
+ import './typeof-2f07d0e8.js';
158
+ import './index-98ca9cec.js';
158
159
  import './ConferenceBanner-8792ebd2.js';
159
160
  import 'next/head';
160
161
  import '@mjhls/mjh-framework/dist/cjs/urlFor';
@@ -196,7 +197,8 @@ import './SeriesSlider-a6b1d617.js';
196
197
  import './style-inject.es-1f59c1d0.js';
197
198
  import 'disqus-react';
198
199
  import 'react-twitter-embed';
199
- import './ImageSlider-da225417.js';
200
+ import './ImageSlider-497e9c88.js';
201
+ import './defineProperty-23a8f8cd.js';
200
202
  import './VideoSeriesCard.js';
201
203
 
202
204
  //Feature query to be used
@@ -0,0 +1,30 @@
1
+ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
+
3
+ var _typeof_1 = createCommonjsModule(function (module) {
4
+ function _typeof(obj) {
5
+ "@babel/helpers - typeof";
6
+
7
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
8
+ module.exports = _typeof = function _typeof(obj) {
9
+ return typeof obj;
10
+ };
11
+
12
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
13
+ } else {
14
+ module.exports = _typeof = function _typeof(obj) {
15
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16
+ };
17
+
18
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
19
+ }
20
+
21
+ return _typeof(obj);
22
+ }
23
+
24
+ module.exports = _typeof;
25
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
26
+ });
27
+
28
+ var _typeof = unwrapExports(_typeof_1);
29
+
30
+ export { _typeof as _, _typeof_1 as a };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.1054",
3
+ "version": "1.0.1056",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "disqus-react": "^1.0.11",
29
- "next": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^12.1.0",
29
+ "next": "^9 || ^10 || ^11 || ^12",
30
30
  "prop-types": "^15.5.4",
31
- "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
31
+ "react": "^15 || ^16 || ^17 || ^18",
32
32
  "react-bootstrap": "^1.0.0-beta.14",
33
- "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
33
+ "react-dom": "^15 || ^16 || ^17 || ^18",
34
34
  "react-share": "^4.0.1"
35
35
  },
36
36
  "devDependencies": {