@mjhls/mjh-framework 1.0.694-beta.1 → 1.0.694-beta.2

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 (75) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AD300x250.js +2 -2
  3. package/dist/cjs/AD300x250x600.js +2 -2
  4. package/dist/cjs/AD728x90.js +2 -2
  5. package/dist/cjs/ADFloatingFooter.js +2 -2
  6. package/dist/cjs/ADGutter.js +2 -2
  7. package/dist/cjs/ADSkyscraper.js +2 -2
  8. package/dist/cjs/ADSponsoredResources.js +2 -2
  9. package/dist/cjs/ADWebcast.js +2 -2
  10. package/dist/cjs/ADWelcome.js +2 -2
  11. package/dist/cjs/AdSlot.js +2 -2
  12. package/dist/cjs/ArticleSeriesListing.js +2 -2
  13. package/dist/cjs/CMEDeck.js +2 -2
  14. package/dist/cjs/Column2.js +2 -2
  15. package/dist/cjs/Column3.js +3 -3
  16. package/dist/cjs/DeckContent.js +3 -3
  17. package/dist/cjs/DeckQueue.js +3 -3
  18. package/dist/cjs/{Dfp-f6a18ed2.js → Dfp-1a9e2305.js} +2 -2
  19. package/dist/cjs/ExternalResources.js +3 -3
  20. package/dist/cjs/GridContent.js +5 -5
  21. package/dist/cjs/IssueLanding.js +4 -4
  22. package/dist/cjs/LeftNav.js +2 -2
  23. package/dist/cjs/MasterDeck.js +4 -4
  24. package/dist/cjs/PartnerDetailListing.js +5 -5
  25. package/dist/cjs/QueueDeckExpanded.js +4 -4
  26. package/dist/cjs/SideFooter.js +2 -2
  27. package/dist/cjs/TemplateNormal.js +3 -3
  28. package/dist/cjs/VideoSeriesListing.js +2 -2
  29. package/dist/cjs/View.js +3 -3
  30. package/dist/cjs/{debounce-eb287781.js → debounce-0106f44a.js} +1 -1
  31. package/dist/cjs/{get-68c52cb1.js → get-445b7179.js} +4 -1
  32. package/dist/cjs/getSerializers.js +3 -3
  33. package/dist/cjs/index.js +272 -13
  34. package/dist/cjs/{isSymbol-04666465.js → isSymbol-488934a7.js} +2 -0
  35. package/dist/esm/AD.js +1 -1
  36. package/dist/esm/AD300x250.js +2 -2
  37. package/dist/esm/AD300x250x600.js +2 -2
  38. package/dist/esm/AD728x90.js +2 -2
  39. package/dist/esm/ADFloatingFooter.js +2 -2
  40. package/dist/esm/ADGutter.js +2 -2
  41. package/dist/esm/ADSkyscraper.js +2 -2
  42. package/dist/esm/ADSponsoredResources.js +2 -2
  43. package/dist/esm/ADWebcast.js +2 -2
  44. package/dist/esm/ADWelcome.js +2 -2
  45. package/dist/esm/AdSlot.js +2 -2
  46. package/dist/esm/ArticleSeriesListing.js +2 -2
  47. package/dist/esm/CMEDeck.js +2 -2
  48. package/dist/esm/Column2.js +2 -2
  49. package/dist/esm/Column3.js +3 -3
  50. package/dist/esm/DeckContent.js +3 -3
  51. package/dist/esm/DeckQueue.js +3 -3
  52. package/dist/esm/{Dfp-96b49def.js → Dfp-0fc96a5d.js} +2 -2
  53. package/dist/esm/ExternalResources.js +3 -3
  54. package/dist/esm/GridContent.js +5 -5
  55. package/dist/esm/IssueLanding.js +4 -4
  56. package/dist/esm/LeftNav.js +2 -2
  57. package/dist/esm/MasterDeck.js +4 -4
  58. package/dist/esm/PartnerDetailListing.js +5 -5
  59. package/dist/esm/QueueDeckExpanded.js +4 -4
  60. package/dist/esm/SideFooter.js +2 -2
  61. package/dist/esm/TemplateNormal.js +3 -3
  62. package/dist/esm/VideoSeriesListing.js +2 -2
  63. package/dist/esm/View.js +3 -3
  64. package/dist/esm/{debounce-1a993acf.js → debounce-3ab4e0ad.js} +1 -1
  65. package/dist/esm/{get-5ee14cda.js → get-a36cf4c6.js} +2 -2
  66. package/dist/esm/getSerializers.js +3 -3
  67. package/dist/esm/index.js +273 -15
  68. package/dist/esm/{isSymbol-807e927e.js → isSymbol-5eb15258.js} +1 -1
  69. package/package.json +1 -1
  70. /package/dist/cjs/{ADInfeed-2fe7211c.js → ADInfeed-4ef14853.js} +0 -0
  71. /package/dist/cjs/{ADlgInfeed-14e17b43.js → ADlgInfeed-d42cc813.js} +0 -0
  72. /package/dist/cjs/{index-a5919bab.js → index-26569dcc.js} +0 -0
  73. /package/dist/esm/{ADInfeed-d46be909.js → ADInfeed-ddbadcd3.js} +0 -0
  74. /package/dist/esm/{ADlgInfeed-5d1bce95.js → ADlgInfeed-4d228100.js} +0 -0
  75. /package/dist/esm/{index-aad92b92.js → index-42fd3adb.js} +0 -0
@@ -8,8 +8,8 @@ import './web.dom.iterable-8956f9a5.js';
8
8
  import React__default, { useRef, useEffect } from 'react';
9
9
  import './index-0e45a0b2.js';
10
10
  import 'prop-types';
11
- import './isSymbol-807e927e.js';
12
- import './debounce-1a993acf.js';
11
+ import './isSymbol-5eb15258.js';
12
+ import './debounce-3ab4e0ad.js';
13
13
  import './main-5d1e4bd3.js';
14
14
  import './stringify-008c8802.js';
15
15
  import './slicedToArray-7021e5df.js';
@@ -22,8 +22,8 @@ import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
23
  import './moment-e2f9b20c.js';
24
24
  import { withRouter } from 'next/router';
25
- import './isSymbol-807e927e.js';
26
- import { d as debounce_1 } from './debounce-1a993acf.js';
25
+ import './isSymbol-5eb15258.js';
26
+ import { d as debounce_1 } from './debounce-3ab4e0ad.js';
27
27
  import { I as InfiniteScroll } from './index.es-29c1cef5.js';
28
28
  import 'react-dom';
29
29
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -36,9 +36,9 @@ import './_set-species-cede29f8.js';
36
36
  import './Segment.js';
37
37
  import './Beam.js';
38
38
  import './AdSlot.js';
39
- import { A as ADInfeed } from './ADInfeed-d46be909.js';
39
+ import { A as ADInfeed } from './ADInfeed-ddbadcd3.js';
40
40
  import { l as lodash } from './lodash-17fdfebb.js';
41
- import { A as ADlgInfeed } from './ADlgInfeed-5d1bce95.js';
41
+ import { A as ADlgInfeed } from './ADlgInfeed-4d228100.js';
42
42
 
43
43
  var MasterDeck = function (_React$Component) {
44
44
  _inherits(MasterDeck, _React$Component);
@@ -21,8 +21,8 @@ import 'react-bootstrap/Col';
21
21
  import 'react-bootstrap/Card';
22
22
  import { m as moment } from './moment-e2f9b20c.js';
23
23
  import 'next/router';
24
- import './isSymbol-807e927e.js';
25
- import './debounce-1a993acf.js';
24
+ import './isSymbol-5eb15258.js';
25
+ import './debounce-3ab4e0ad.js';
26
26
  import './index.es-29c1cef5.js';
27
27
  import 'react-dom';
28
28
  import './visibility-sensor-0baa4eea.js';
@@ -37,9 +37,9 @@ import './_set-species-cede29f8.js';
37
37
  import './Segment.js';
38
38
  import './Beam.js';
39
39
  import './AdSlot.js';
40
- import './ADInfeed-d46be909.js';
40
+ import './ADInfeed-ddbadcd3.js';
41
41
  import './lodash-17fdfebb.js';
42
- import './ADlgInfeed-5d1bce95.js';
42
+ import './ADlgInfeed-4d228100.js';
43
43
  import './getContentCategory-15dcc413.js';
44
44
  import './AuthorComponent-00f13201.js';
45
45
  import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
@@ -51,7 +51,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
51
51
  import './iconBase-602d52fe.js';
52
52
  import './index.esm-29e48d38.js';
53
53
  import 'react-bootstrap/Button';
54
- import { g as getSerializers } from './index-aad92b92.js';
54
+ import { g as getSerializers } from './index-42fd3adb.js';
55
55
  import './util-7700fc59.js';
56
56
  import './brightcove-react-player-loader.es-83f53e4e.js';
57
57
  import 'react-bootstrap/Pagination';
@@ -14,8 +14,8 @@ import 'prop-types';
14
14
  import 'react-bootstrap/Card';
15
15
  import { m as moment } from './moment-e2f9b20c.js';
16
16
  import { useRouter } from 'next/router';
17
- import './isSymbol-807e927e.js';
18
- import './debounce-1a993acf.js';
17
+ import './isSymbol-5eb15258.js';
18
+ import './debounce-3ab4e0ad.js';
19
19
  import { I as InfiniteScroll } from './index.es-29c1cef5.js';
20
20
  import 'react-dom';
21
21
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
@@ -30,9 +30,9 @@ import './_set-species-cede29f8.js';
30
30
  import './Segment.js';
31
31
  import './Beam.js';
32
32
  import './AdSlot.js';
33
- import { A as ADInfeed } from './ADInfeed-d46be909.js';
33
+ import { A as ADInfeed } from './ADInfeed-ddbadcd3.js';
34
34
  import { l as lodash } from './lodash-17fdfebb.js';
35
- import { A as ADlgInfeed } from './ADlgInfeed-5d1bce95.js';
35
+ import { A as ADlgInfeed } from './ADlgInfeed-4d228100.js';
36
36
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
37
37
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
38
38
  import { Container, Media } from 'react-bootstrap';
@@ -8,11 +8,11 @@ import './define-property-de3fc946.js';
8
8
  import './web.dom.iterable-8956f9a5.js';
9
9
  import React__default, { useRef, useEffect } from 'react';
10
10
  import 'prop-types';
11
- import './isSymbol-807e927e.js';
11
+ import './isSymbol-5eb15258.js';
12
12
  import './asyncToGenerator-d0f08f8d.js';
13
13
  import './_set-species-cede29f8.js';
14
14
  import Segment from './Segment.js';
15
- import { g as get_1 } from './get-5ee14cda.js';
15
+ import { g as get_1 } from './get-a36cf4c6.js';
16
16
  import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
17
17
  import { _ as _defineProperty } from './defineProperty-b798470d.js';
18
18
 
@@ -13,8 +13,8 @@ import Container from 'react-bootstrap/Container';
13
13
  import 'react-bootstrap/Row';
14
14
  import 'react-bootstrap/Col';
15
15
  import { useRouter } from 'next/router';
16
- import './isSymbol-807e927e.js';
17
- import './debounce-1a993acf.js';
16
+ import './isSymbol-5eb15258.js';
17
+ import './debounce-3ab4e0ad.js';
18
18
  import './main-5d1e4bd3.js';
19
19
  import './stringify-008c8802.js';
20
20
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
@@ -23,7 +23,7 @@ import './_set-species-cede29f8.js';
23
23
  import './Segment.js';
24
24
  import './Beam.js';
25
25
  import './AdSlot.js';
26
- import './get-5ee14cda.js';
26
+ import './get-a36cf4c6.js';
27
27
  import './react-social-icons-a7d5c5c7.js';
28
28
  import 'react-bootstrap';
29
29
  import './iconBase-602d52fe.js';
@@ -17,8 +17,8 @@ import 'prop-types';
17
17
  import Container from 'react-bootstrap/Container';
18
18
  import { m as moment } from './moment-e2f9b20c.js';
19
19
  import { withRouter } from 'next/router';
20
- import './isSymbol-807e927e.js';
21
- import { d as debounce_1 } from './debounce-1a993acf.js';
20
+ import './isSymbol-5eb15258.js';
21
+ import { d as debounce_1 } from './debounce-3ab4e0ad.js';
22
22
  import { I as InfiniteScroll } from './index.es-29c1cef5.js';
23
23
  import 'react-dom';
24
24
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
package/dist/esm/View.js CHANGED
@@ -20,8 +20,8 @@ import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
21
  import { m as moment } from './moment-e2f9b20c.js';
22
22
  import { useRouter } from 'next/router';
23
- import './isSymbol-807e927e.js';
24
- import './debounce-1a993acf.js';
23
+ import './isSymbol-5eb15258.js';
24
+ import './debounce-3ab4e0ad.js';
25
25
  import { I as InfiniteScroll } from './index.es-29c1cef5.js';
26
26
  import 'react-dom';
27
27
  import './index-73819142.js';
@@ -44,7 +44,7 @@ import './index.esm-29e48d38.js';
44
44
  import Button from 'react-bootstrap/Button';
45
45
  import { _ as _defineProperty } from './defineProperty-b798470d.js';
46
46
  import Form from 'react-bootstrap/Form';
47
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-aad92b92.js';
47
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-42fd3adb.js';
48
48
  import './util-7700fc59.js';
49
49
  import './brightcove-react-player-loader.es-83f53e4e.js';
50
50
  import 'react-bootstrap/Pagination';
@@ -1,4 +1,4 @@
1
- import { _ as _root, i as isSymbol_1, a as isObject_1 } from './isSymbol-807e927e.js';
1
+ import { _ as _root, d as isSymbol_1, e as isObject_1 } from './isSymbol-5eb15258.js';
2
2
 
3
3
  /**
4
4
  * Gets the timestamp of the number of milliseconds that have elapsed since
@@ -1,4 +1,4 @@
1
- import { i as isSymbol_1, a as isObject_1, b as _baseGetTag, _ as _root, c as _Symbol } from './isSymbol-807e927e.js';
1
+ import { d as isSymbol_1, e as isObject_1, b as _baseGetTag, _ as _root, a as _Symbol } from './isSymbol-5eb15258.js';
2
2
 
3
3
  /**
4
4
  * Checks if `value` is classified as an `Array` object.
@@ -987,4 +987,4 @@ function get(object, path, defaultValue) {
987
987
 
988
988
  var get_1 = get;
989
989
 
990
- export { get_1 as g };
990
+ export { _getNative as _, _toSource as a, _Map as b, get_1 as g };
@@ -20,8 +20,8 @@ import 'react-bootstrap/Row';
20
20
  import 'react-bootstrap/Col';
21
21
  import './moment-e2f9b20c.js';
22
22
  import 'next/router';
23
- import './isSymbol-807e927e.js';
24
- import './debounce-1a993acf.js';
23
+ import './isSymbol-5eb15258.js';
24
+ import './debounce-3ab4e0ad.js';
25
25
  import 'react-dom';
26
26
  import './index-73819142.js';
27
27
  import './index-5f9f807a.js';
@@ -41,7 +41,7 @@ import 'react-bootstrap';
41
41
  import './iconBase-602d52fe.js';
42
42
  import './index.esm-29e48d38.js';
43
43
  import 'react-bootstrap/Button';
44
- export { g as default } from './index-aad92b92.js';
44
+ export { g as default } from './index-42fd3adb.js';
45
45
  import './util-7700fc59.js';
46
46
  import './brightcove-react-player-loader.es-83f53e4e.js';
47
47
  import 'react-bootstrap/Pagination';
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './_commonjsHelpers-0c4b6f40.js';
1
+ import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
2
  import './_to-object-ded78eb9.js';
3
3
  import './es6.string.iterator-9b2af4a5.js';
4
4
  import './_library-528f1934.js';
@@ -13,7 +13,7 @@ import './define-property-de3fc946.js';
13
13
  import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
- import React__default from 'react';
16
+ import React__default, { useEffect } from 'react';
17
17
  import './index-0e45a0b2.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Container';
@@ -21,9 +21,9 @@ import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
23
  import './moment-e2f9b20c.js';
24
- import 'next/router';
25
- import './isSymbol-807e927e.js';
26
- import './debounce-1a993acf.js';
24
+ import { useRouter } from 'next/router';
25
+ import { _ as _root, a as _Symbol, i as isObjectLike_1, b as _baseGetTag, c as _freeGlobal } from './isSymbol-5eb15258.js';
26
+ import './debounce-3ab4e0ad.js';
27
27
  import './index.es-29c1cef5.js';
28
28
  import 'react-dom';
29
29
  import './visibility-sensor-0baa4eea.js';
@@ -38,12 +38,12 @@ import './_set-species-cede29f8.js';
38
38
  export { default as Segment } from './Segment.js';
39
39
  export { default as Beam } from './Beam.js';
40
40
  export { default as AdSlot } from './AdSlot.js';
41
- import './ADInfeed-d46be909.js';
41
+ import './ADInfeed-ddbadcd3.js';
42
42
  export { default as DeckContent } from './DeckContent.js';
43
43
  import './lodash-17fdfebb.js';
44
- import './ADlgInfeed-5d1bce95.js';
44
+ import './ADlgInfeed-4d228100.js';
45
45
  import './getContentCategory-15dcc413.js';
46
- import './get-5ee14cda.js';
46
+ import { _ as _getNative, a as _toSource, b as _Map } from './get-a36cf4c6.js';
47
47
  export { default as AD } from './AD.js';
48
48
  import './AuthorComponent-00f13201.js';
49
49
  export { default as GridContent } from './GridContent.js';
@@ -79,8 +79,8 @@ import 'react-bootstrap/Form';
79
79
  import './index-ef6d5dcf.js';
80
80
  import './js.cookie-6874175c.js';
81
81
  export { default as CMEDeck } from './CMEDeck.js';
82
- import { g as getSerializers } from './index-aad92b92.js';
83
- export { g as getSerializers } from './index-aad92b92.js';
82
+ import { g as getSerializers } from './index-42fd3adb.js';
83
+ export { g as getSerializers } from './index-42fd3adb.js';
84
84
  import './util-7700fc59.js';
85
85
  import './brightcove-react-player-loader.es-83f53e4e.js';
86
86
  import 'react-bootstrap/Pagination';
@@ -172,6 +172,221 @@ export { default as urlFor } from './urlFor.js';
172
172
  import './style-inject.es-1f59c1d0.js';
173
173
  export { default as PartnerDetailListing } from './PartnerDetailListing.js';
174
174
 
175
+ /** Built-in value references. */
176
+ var Uint8Array = _root.Uint8Array;
177
+
178
+ /** Used to convert symbols to primitives and strings. */
179
+ var symbolProto = _Symbol ? _Symbol.prototype : undefined,
180
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
181
+
182
+ /** `Object#toString` result references. */
183
+ var argsTag = '[object Arguments]';
184
+
185
+ /**
186
+ * The base implementation of `_.isArguments`.
187
+ *
188
+ * @private
189
+ * @param {*} value The value to check.
190
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
191
+ */
192
+ function baseIsArguments(value) {
193
+ return isObjectLike_1(value) && _baseGetTag(value) == argsTag;
194
+ }
195
+
196
+ var _baseIsArguments = baseIsArguments;
197
+
198
+ /** Used for built-in method references. */
199
+ var objectProto = Object.prototype;
200
+
201
+ /** Used to check objects for own properties. */
202
+ var hasOwnProperty = objectProto.hasOwnProperty;
203
+
204
+ /** Built-in value references. */
205
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
206
+
207
+ /**
208
+ * Checks if `value` is likely an `arguments` object.
209
+ *
210
+ * @static
211
+ * @memberOf _
212
+ * @since 0.1.0
213
+ * @category Lang
214
+ * @param {*} value The value to check.
215
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
216
+ * else `false`.
217
+ * @example
218
+ *
219
+ * _.isArguments(function() { return arguments; }());
220
+ * // => true
221
+ *
222
+ * _.isArguments([1, 2, 3]);
223
+ * // => false
224
+ */
225
+ var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
226
+ return isObjectLike_1(value) && hasOwnProperty.call(value, 'callee') &&
227
+ !propertyIsEnumerable.call(value, 'callee');
228
+ };
229
+
230
+ /**
231
+ * This method returns `false`.
232
+ *
233
+ * @static
234
+ * @memberOf _
235
+ * @since 4.13.0
236
+ * @category Util
237
+ * @returns {boolean} Returns `false`.
238
+ * @example
239
+ *
240
+ * _.times(2, _.stubFalse);
241
+ * // => [false, false]
242
+ */
243
+ function stubFalse() {
244
+ return false;
245
+ }
246
+
247
+ var stubFalse_1 = stubFalse;
248
+
249
+ var isBuffer_1 = createCommonjsModule(function (module, exports) {
250
+ /** Detect free variable `exports`. */
251
+ var freeExports = exports && !exports.nodeType && exports;
252
+
253
+ /** Detect free variable `module`. */
254
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
255
+
256
+ /** Detect the popular CommonJS extension `module.exports`. */
257
+ var moduleExports = freeModule && freeModule.exports === freeExports;
258
+
259
+ /** Built-in value references. */
260
+ var Buffer = moduleExports ? _root.Buffer : undefined;
261
+
262
+ /* Built-in method references for those with the same name as other `lodash` methods. */
263
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
264
+
265
+ /**
266
+ * Checks if `value` is a buffer.
267
+ *
268
+ * @static
269
+ * @memberOf _
270
+ * @since 4.3.0
271
+ * @category Lang
272
+ * @param {*} value The value to check.
273
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
274
+ * @example
275
+ *
276
+ * _.isBuffer(new Buffer(2));
277
+ * // => true
278
+ *
279
+ * _.isBuffer(new Uint8Array(2));
280
+ * // => false
281
+ */
282
+ var isBuffer = nativeIsBuffer || stubFalse_1;
283
+
284
+ module.exports = isBuffer;
285
+ });
286
+
287
+ var _nodeUtil = createCommonjsModule(function (module, exports) {
288
+ /** Detect free variable `exports`. */
289
+ var freeExports = exports && !exports.nodeType && exports;
290
+
291
+ /** Detect free variable `module`. */
292
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
293
+
294
+ /** Detect the popular CommonJS extension `module.exports`. */
295
+ var moduleExports = freeModule && freeModule.exports === freeExports;
296
+
297
+ /** Detect free variable `process` from Node.js. */
298
+ var freeProcess = moduleExports && _freeGlobal.process;
299
+
300
+ /** Used to access faster Node.js helpers. */
301
+ var nodeUtil = (function() {
302
+ try {
303
+ // Use `util.types` for Node.js 10+.
304
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
305
+
306
+ if (types) {
307
+ return types;
308
+ }
309
+
310
+ // Legacy `process.binding('util')` for Node.js < 10.
311
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
312
+ } catch (e) {}
313
+ }());
314
+
315
+ module.exports = nodeUtil;
316
+ });
317
+
318
+ /* Node.js helper references. */
319
+ var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
320
+
321
+ /* Built-in method references that are verified to be native. */
322
+ var DataView = _getNative(_root, 'DataView');
323
+
324
+ var _DataView = DataView;
325
+
326
+ /* Built-in method references that are verified to be native. */
327
+ var Promise = _getNative(_root, 'Promise');
328
+
329
+ var _Promise = Promise;
330
+
331
+ /* Built-in method references that are verified to be native. */
332
+ var Set = _getNative(_root, 'Set');
333
+
334
+ var _Set = Set;
335
+
336
+ /* Built-in method references that are verified to be native. */
337
+ var WeakMap = _getNative(_root, 'WeakMap');
338
+
339
+ var _WeakMap = WeakMap;
340
+
341
+ /** `Object#toString` result references. */
342
+ var mapTag = '[object Map]',
343
+ objectTag = '[object Object]',
344
+ promiseTag = '[object Promise]',
345
+ setTag = '[object Set]',
346
+ weakMapTag = '[object WeakMap]';
347
+
348
+ var dataViewTag = '[object DataView]';
349
+
350
+ /** Used to detect maps, sets, and weakmaps. */
351
+ var dataViewCtorString = _toSource(_DataView),
352
+ mapCtorString = _toSource(_Map),
353
+ promiseCtorString = _toSource(_Promise),
354
+ setCtorString = _toSource(_Set),
355
+ weakMapCtorString = _toSource(_WeakMap);
356
+
357
+ /**
358
+ * Gets the `toStringTag` of `value`.
359
+ *
360
+ * @private
361
+ * @param {*} value The value to query.
362
+ * @returns {string} Returns the `toStringTag`.
363
+ */
364
+ var getTag = _baseGetTag;
365
+
366
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
367
+ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
368
+ (_Map && getTag(new _Map) != mapTag) ||
369
+ (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
370
+ (_Set && getTag(new _Set) != setTag) ||
371
+ (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
372
+ getTag = function(value) {
373
+ var result = _baseGetTag(value),
374
+ Ctor = result == objectTag ? value.constructor : undefined,
375
+ ctorString = Ctor ? _toSource(Ctor) : '';
376
+
377
+ if (ctorString) {
378
+ switch (ctorString) {
379
+ case dataViewCtorString: return dataViewTag;
380
+ case mapCtorString: return mapTag;
381
+ case promiseCtorString: return promiseTag;
382
+ case setCtorString: return setTag;
383
+ case weakMapCtorString: return weakMapTag;
384
+ }
385
+ }
386
+ return result;
387
+ };
388
+ }
389
+
175
390
  var _this = undefined;
176
391
 
177
392
  var blocksToText = function blocksToText(blocks) {
@@ -189,18 +404,61 @@ var blocksToText = function blocksToText(blocks) {
189
404
  }).join('\n\n');
190
405
  };
191
406
 
407
+ var MetaHead = React__default.memo(function (props) {
408
+ var data = props.data;
409
+
410
+ console.log('inside memo*&********************************************************');
411
+ return React__default.createElement(
412
+ Head,
413
+ null,
414
+ React__default.createElement('meta', { name: 'description', content: blocksToText(data) })
415
+ );
416
+ }, function (prevProps, nextProps) {
417
+ return true;
418
+ // return isEqual(prevProps.data, nextProps.data)
419
+ });
420
+
192
421
  var TaxonomyDescription = function TaxonomyDescription(_ref) {
193
422
  var data = _ref.data,
194
423
  client = _ref.client;
195
424
 
425
+ var router = useRouter();
426
+
427
+ useEffect(function () {
428
+ if (router && router.asPath && document.querySelector('meta[name="description"]')) {
429
+ console.log('updating');
430
+ document.querySelector('meta[name="description"]').setAttribute('content', router.asPath);
431
+ }
432
+ }, [router]);
433
+
434
+ // const prevPath = usePrevious(router && router.asPath ? router.asPath : null)
435
+ // const currentPath = router && router.asPath ? router.asPath : null
436
+ // useEffect(() => {
437
+ // if (router && router.asPath) {
438
+ // const queryParms = router.asPath.split('?')[1]
439
+ // if (queryParms) {
440
+ // const pageNumber = queryParms.split('&').reduce((acc, item) => {
441
+ // if (item.startsWith('page=')) {
442
+ // if (item.split('=')[1]) {
443
+ // acc = item.split('=')[1]
444
+ // return acc
445
+ // }
446
+ // }
447
+ // }, '')
448
+ // if (pageNumber !== '') {
449
+ // let metaDescription = blocksToText(data)
450
+ // metaDescription = `${metaDescription}| Page ${pageNumber}`
451
+ // console.log({ metaDescription, pageNumber })
452
+ // document.querySelector('meta[name="description"]').setAttribute('content', metaDescription)
453
+ // }
454
+ // }
455
+ // }
456
+ // }, [router])
457
+
196
458
  return data && data.length > 0 && React__default.createElement(
197
459
  'section',
198
460
  { className: 'taxonomy-description' },
199
- React__default.createElement(
200
- Head,
201
- null,
202
- React__default.createElement('meta', { name: 'description', content: blocksToText(data), key: 'description' })
203
- ),
461
+ React__default.createElement(MetaHead, { data: data }),
204
462
  React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: data, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
205
463
  );
206
464
  };
@@ -200,4 +200,4 @@ function isSymbol(value) {
200
200
 
201
201
  var isSymbol_1 = isSymbol;
202
202
 
203
- export { _root as _, isObject_1 as a, _baseGetTag as b, _Symbol as c, isSymbol_1 as i };
203
+ export { _root as _, _Symbol as a, _baseGetTag as b, _freeGlobal as c, isSymbol_1 as d, isObject_1 as e, isObjectLike_1 as i };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.694-beta.1",
3
+ "version": "1.0.694-beta.2",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",