@mjhls/mjh-framework 1.0.1066 → 1.0.1067-featureUpdate

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/dist/esm/View.js CHANGED
@@ -30,7 +30,6 @@ import { DiscussionEmbed } from 'disqus-react';
30
30
  import Schema from './Schema.js';
31
31
  import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
32
32
  import { PixelTrackingArticle } from './PixelTracking.js';
33
- import './Segment.js';
34
33
  import { _ as _Object$keys } from './keys-31dcdb31.js';
35
34
  import { I as InfiniteScroll } from './index.es-a6137319.js';
36
35
  import { l as lib_3 } from './index-5cc7b406.js';
@@ -49,6 +48,7 @@ import 'react-share';
49
48
  import 'react-bootstrap';
50
49
  import './index-c7e2ac95.js';
51
50
  import './Beam.js';
51
+ import './Segment.js';
52
52
  import './brightcove-react-player-loader.es-57a70a56.js';
53
53
  import './_object-to-array-b61d5965.js';
54
54
  import 'react-bootstrap/Modal';
@@ -576,9 +576,8 @@ var Recommended = function Recommended(props) {
576
576
 
577
577
  case 11:
578
578
  _context.next = 13;
579
- return fetch('/api/getSegmentProfile', {
580
- method: 'POST',
581
- body: _JSON$stringify({ anonymousId: anonymousId })
579
+ return fetch('/api/getSegmentProfile?anonymousId=' + anonymousId, {
580
+ method: 'GET'
582
581
  });
583
582
 
584
583
  case 13:
@@ -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 };
@@ -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 };
package/dist/esm/index.js CHANGED
@@ -153,7 +153,8 @@ import './_object-to-array-b61d5965.js';
153
153
  import 'react-bootstrap/Spinner';
154
154
  import 'react-bootstrap/Form';
155
155
  import './js.cookie-6874175c.js';
156
- import './index-0ce54f8a.js';
156
+ import './typeof-2f07d0e8.js';
157
+ import './index-98ca9cec.js';
157
158
  import './ConferenceBanner-8792ebd2.js';
158
159
  import 'next/head';
159
160
  import '@mjhls/mjh-framework/dist/cjs/urlFor';
@@ -189,7 +190,8 @@ import './SeriesSlider-a6b1d617.js';
189
190
  import './style-inject.es-1f59c1d0.js';
190
191
  import 'disqus-react';
191
192
  import 'react-twitter-embed';
192
- import './ImageSlider-da225417.js';
193
+ import './ImageSlider-497e9c88.js';
194
+ import './defineProperty-23a8f8cd.js';
193
195
  import './VideoSeriesCard.js';
194
196
 
195
197
  //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.1066",
3
+ "version": "1.0.1067-featureUpdate",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",
@@ -92,6 +92,7 @@
92
92
  "dist"
93
93
  ],
94
94
  "dependencies": {
95
+ "@sanity/asset-utils": "^1.2.3",
95
96
  "@supabase/supabase-js": "^1.29.4",
96
97
  "babel-polyfill": "^6.26.0",
97
98
  "cookie": "^0.4.1",