@mjhls/mjh-framework 1.0.1033-taxonomy-native → 1.0.1034
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/README.md +1 -1
- package/dist/cjs/AlgoliaSearch.js +49 -113
- package/dist/cjs/AuthWrapper.js +19 -89
- package/dist/cjs/HamMagazine.js +85 -25
- package/dist/cjs/{ImageSlider-d65bc9c8.js → ImageSlider-984a697b.js} +116 -156
- package/dist/cjs/MediaSeriesLanding.js +2 -2
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +2 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -1
- package/dist/cjs/{Tooltip-71754b2a.js → Tooltip-96fe6ef6.js} +206 -248
- package/dist/cjs/View.js +2 -5
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/esm/AlgoliaSearch.js +36 -100
- package/dist/esm/AuthWrapper.js +16 -86
- package/dist/esm/HamMagazine.js +85 -25
- package/dist/esm/{ImageSlider-da225417.js → ImageSlider-497e9c88.js} +117 -157
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -2
- package/dist/esm/PartnerDetailListing.js +2 -1
- package/dist/esm/PartnerDetailListingPaginated.js +2 -1
- package/dist/esm/{Tooltip-8307d9d1.js → Tooltip-bc98d17e.js} +1 -43
- package/dist/esm/View.js +2 -5
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/package.json +1 -1
- package/dist/cjs/index-b95410f0.js +0 -54
- package/dist/esm/index-174b5baf.js +0 -52
package/dist/cjs/View.js
CHANGED
|
@@ -2665,9 +2665,6 @@ View.returnGetInitialProps = function () {
|
|
|
2665
2665
|
if (x.applyNoFollowTag) {
|
|
2666
2666
|
article.applyNoFollowTag = true;
|
|
2667
2667
|
}
|
|
2668
|
-
if (x.disableNativeAds) {
|
|
2669
|
-
article.disableNativeAds = true;
|
|
2670
|
-
}
|
|
2671
2668
|
});
|
|
2672
2669
|
}
|
|
2673
2670
|
// check for disableAds flag on content category
|
|
@@ -2698,8 +2695,8 @@ View.returnGetInitialProps = function () {
|
|
|
2698
2695
|
|
|
2699
2696
|
case 35:
|
|
2700
2697
|
|
|
2701
|
-
//check documentGroup and documentGroupMapping for disableNativeAds:true
|
|
2702
|
-
if (article.documentGroup && article.documentGroup.length
|
|
2698
|
+
//check documentGroup and documentGroupMapping for disableNativeAds:true
|
|
2699
|
+
if (article.documentGroup && article.documentGroup.length) {
|
|
2703
2700
|
article.documentGroup.forEach(function (docGroup) {
|
|
2704
2701
|
var node = docGroup.parent ? docGroup.parent : null;
|
|
2705
2702
|
if (docGroup.disableNativeAds) {
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
+
|
|
5
|
+
var asyncToGenerator = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
6
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7
|
+
try {
|
|
8
|
+
var info = gen[key](arg);
|
|
9
|
+
var value = info.value;
|
|
10
|
+
} catch (error) {
|
|
11
|
+
reject(error);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (info.done) {
|
|
16
|
+
resolve(value);
|
|
17
|
+
} else {
|
|
18
|
+
Promise.resolve(value).then(_next, _throw);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function _asyncToGenerator(fn) {
|
|
23
|
+
return function () {
|
|
24
|
+
var self = this,
|
|
25
|
+
args = arguments;
|
|
26
|
+
return new Promise(function (resolve, reject) {
|
|
27
|
+
var gen = fn.apply(self, args);
|
|
28
|
+
|
|
29
|
+
function _next(value) {
|
|
30
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _throw(err) {
|
|
34
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
_next(undefined);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
module.exports = _asyncToGenerator;
|
|
43
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var _asyncToGenerator = _commonjsHelpers.unwrapExports(asyncToGenerator);
|
|
47
|
+
|
|
48
|
+
var defineProperty = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
49
|
+
function _defineProperty(obj, key, value) {
|
|
50
|
+
if (key in obj) {
|
|
51
|
+
Object.defineProperty(obj, key, {
|
|
52
|
+
value: value,
|
|
53
|
+
enumerable: true,
|
|
54
|
+
configurable: true,
|
|
55
|
+
writable: true
|
|
56
|
+
});
|
|
57
|
+
} else {
|
|
58
|
+
obj[key] = value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return obj;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
module.exports = _defineProperty;
|
|
65
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty);
|
|
69
|
+
|
|
70
|
+
exports._asyncToGenerator = _asyncToGenerator;
|
|
71
|
+
exports._defineProperty = _defineProperty;
|
|
72
|
+
exports.asyncToGenerator = asyncToGenerator;
|
|
73
|
+
exports.defineProperty = defineProperty;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
+
|
|
5
|
+
function _extends() {
|
|
6
|
+
_extends = Object.assign || function (target) {
|
|
7
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
8
|
+
var source = arguments[i];
|
|
9
|
+
|
|
10
|
+
for (var key in source) {
|
|
11
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
+
target[key] = source[key];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
return _extends.apply(this, arguments);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
24
|
+
if (source == null) return {};
|
|
25
|
+
var target = {};
|
|
26
|
+
var sourceKeys = Object.keys(source);
|
|
27
|
+
var key, i;
|
|
28
|
+
|
|
29
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
30
|
+
key = sourceKeys[i];
|
|
31
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
32
|
+
target[key] = source[key];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return target;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _setPrototypeOf(o, p) {
|
|
39
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
40
|
+
o.__proto__ = p;
|
|
41
|
+
return o;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return _setPrototypeOf(o, p);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
48
|
+
/*!
|
|
49
|
+
Copyright (c) 2018 Jed Watson.
|
|
50
|
+
Licensed under the MIT License (MIT), see
|
|
51
|
+
http://jedwatson.github.io/classnames
|
|
52
|
+
*/
|
|
53
|
+
/* global define */
|
|
54
|
+
|
|
55
|
+
(function () {
|
|
56
|
+
|
|
57
|
+
var hasOwn = {}.hasOwnProperty;
|
|
58
|
+
|
|
59
|
+
function classNames() {
|
|
60
|
+
var classes = [];
|
|
61
|
+
|
|
62
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
63
|
+
var arg = arguments[i];
|
|
64
|
+
if (!arg) continue;
|
|
65
|
+
|
|
66
|
+
var argType = typeof arg;
|
|
67
|
+
|
|
68
|
+
if (argType === 'string' || argType === 'number') {
|
|
69
|
+
classes.push(arg);
|
|
70
|
+
} else if (Array.isArray(arg)) {
|
|
71
|
+
if (arg.length) {
|
|
72
|
+
var inner = classNames.apply(null, arg);
|
|
73
|
+
if (inner) {
|
|
74
|
+
classes.push(inner);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
} else if (argType === 'object') {
|
|
78
|
+
if (arg.toString === Object.prototype.toString) {
|
|
79
|
+
for (var key in arg) {
|
|
80
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
81
|
+
classes.push(key);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
classes.push(arg.toString());
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return classes.join(' ');
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (module.exports) {
|
|
94
|
+
classNames.default = classNames;
|
|
95
|
+
module.exports = classNames;
|
|
96
|
+
} else {
|
|
97
|
+
window.classNames = classNames;
|
|
98
|
+
}
|
|
99
|
+
}());
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
exports._extends = _extends;
|
|
103
|
+
exports._objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
104
|
+
exports._setPrototypeOf = _setPrototypeOf;
|
|
105
|
+
exports.classnames = classnames;
|
package/dist/cjs/index.js
CHANGED
|
@@ -157,7 +157,8 @@ require('./_object-to-array-9337ba83.js');
|
|
|
157
157
|
require('react-bootstrap/Spinner');
|
|
158
158
|
require('react-bootstrap/Form');
|
|
159
159
|
require('./js.cookie-a511c430.js');
|
|
160
|
-
require('./
|
|
160
|
+
require('./typeof-1358762e.js');
|
|
161
|
+
require('./index-50be6759.js');
|
|
161
162
|
require('./ConferenceBanner-213003ce.js');
|
|
162
163
|
require('next/head');
|
|
163
164
|
require('@mjhls/mjh-framework/dist/cjs/urlFor');
|
|
@@ -199,7 +200,8 @@ require('./SeriesSlider-086a8319.js');
|
|
|
199
200
|
require('./style-inject.es-dcee06b6.js');
|
|
200
201
|
require('disqus-react');
|
|
201
202
|
require('react-twitter-embed');
|
|
202
|
-
require('./ImageSlider-
|
|
203
|
+
require('./ImageSlider-984a697b.js');
|
|
204
|
+
require('./defineProperty-e0fb52c5.js');
|
|
203
205
|
require('./VideoSeriesCard.js');
|
|
204
206
|
|
|
205
207
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
+
|
|
5
|
+
var _typeof_1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
6
|
+
function _typeof(obj) {
|
|
7
|
+
"@babel/helpers - typeof";
|
|
8
|
+
|
|
9
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
10
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
11
|
+
return typeof obj;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
15
|
+
} else {
|
|
16
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
17
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return _typeof(obj);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = _typeof;
|
|
27
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
var _typeof = _commonjsHelpers.unwrapExports(_typeof_1);
|
|
31
|
+
|
|
32
|
+
exports._typeof = _typeof;
|
|
33
|
+
exports._typeof_1 = _typeof_1;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { _ as _extends$1 } from './extends-1559c147.js';
|
|
2
2
|
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-d21b4ef9.js';
|
|
3
|
-
import { _ as _typeof$
|
|
3
|
+
import { _ as _typeof$2 } from './typeof-657f25da.js';
|
|
4
4
|
import React__default, { createContext, Component, Fragment, Children, version as version$2 } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import {
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-2f07d0e8.js';
|
|
7
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _setPrototypeOf, b as _extends, c as classnames } from './index-98ca9cec.js';
|
|
7
8
|
import { DropdownButton } from 'react-bootstrap';
|
|
8
9
|
import urlFor from './urlFor.js';
|
|
9
10
|
import { m as moment } from './moment-bc12cb97.js';
|
|
@@ -19,39 +20,6 @@ import './slicedToArray-6ebcbfea.js';
|
|
|
19
20
|
import './index-3f5c03b2.js';
|
|
20
21
|
import 'react-dom';
|
|
21
22
|
|
|
22
|
-
function _extends() {
|
|
23
|
-
_extends = Object.assign || function (target) {
|
|
24
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
25
|
-
var source = arguments[i];
|
|
26
|
-
|
|
27
|
-
for (var key in source) {
|
|
28
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
29
|
-
target[key] = source[key];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return target;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return _extends.apply(this, arguments);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
41
|
-
if (source == null) return {};
|
|
42
|
-
var target = {};
|
|
43
|
-
var sourceKeys = Object.keys(source);
|
|
44
|
-
var key, i;
|
|
45
|
-
|
|
46
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
47
|
-
key = sourceKeys[i];
|
|
48
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
49
|
-
target[key] = source[key];
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return target;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
23
|
function _objectWithoutProperties(source, excluded) {
|
|
56
24
|
if (source == null) return {};
|
|
57
25
|
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
@@ -101,15 +69,6 @@ function _assertThisInitialized(self) {
|
|
|
101
69
|
return self;
|
|
102
70
|
}
|
|
103
71
|
|
|
104
|
-
function _setPrototypeOf(o, p) {
|
|
105
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
106
|
-
o.__proto__ = p;
|
|
107
|
-
return o;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
return _setPrototypeOf(o, p);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
72
|
function _inherits(subClass, superClass) {
|
|
114
73
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
115
74
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -125,25 +84,11 @@ function _inherits(subClass, superClass) {
|
|
|
125
84
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
126
85
|
}
|
|
127
86
|
|
|
128
|
-
function _typeof(obj) {
|
|
129
|
-
"@babel/helpers - typeof";
|
|
130
|
-
|
|
131
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
132
|
-
_typeof = function _typeof(obj) {
|
|
133
|
-
return typeof obj;
|
|
134
|
-
};
|
|
135
|
-
} else {
|
|
136
|
-
_typeof = function _typeof(obj) {
|
|
137
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return _typeof(obj);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
87
|
function _possibleConstructorReturn(self, call) {
|
|
145
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
88
|
+
if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
|
|
146
89
|
return call;
|
|
90
|
+
} else if (call !== void 0) {
|
|
91
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
147
92
|
}
|
|
148
93
|
|
|
149
94
|
return _assertThisInitialized(self);
|
|
@@ -306,6 +251,22 @@ var reactFastCompare = function isEqual(a, b) {
|
|
|
306
251
|
}
|
|
307
252
|
};
|
|
308
253
|
|
|
254
|
+
function _typeof(obj) {
|
|
255
|
+
"@babel/helpers - typeof";
|
|
256
|
+
|
|
257
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
258
|
+
_typeof = function _typeof(obj) {
|
|
259
|
+
return typeof obj;
|
|
260
|
+
};
|
|
261
|
+
} else {
|
|
262
|
+
_typeof = function _typeof(obj) {
|
|
263
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return _typeof(obj);
|
|
268
|
+
}
|
|
269
|
+
|
|
309
270
|
function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
310
271
|
|
|
311
272
|
function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$f(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -858,7 +819,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
858
819
|
});
|
|
859
820
|
}
|
|
860
821
|
|
|
861
|
-
var version$1 = '6.
|
|
822
|
+
var version$1 = '6.17.0';
|
|
862
823
|
|
|
863
824
|
function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
864
825
|
|
|
@@ -869,7 +830,6 @@ var withKeysPropType = function withKeysPropType(keys) {
|
|
|
869
830
|
var prop = props[propName];
|
|
870
831
|
|
|
871
832
|
if (prop) {
|
|
872
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
873
833
|
for (var _i = 0, _Object$keys = Object.keys(prop); _i < _Object$keys.length; _i++) {
|
|
874
834
|
var key = _Object$keys[_i];
|
|
875
835
|
|
|
@@ -1302,7 +1262,7 @@ function _arrayWithoutHoles(arr) {
|
|
|
1302
1262
|
}
|
|
1303
1263
|
|
|
1304
1264
|
function _iterableToArray(iter) {
|
|
1305
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
1265
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1306
1266
|
}
|
|
1307
1267
|
|
|
1308
1268
|
function _unsupportedIterableToArray(o, minLen) {
|
|
@@ -6792,19 +6752,15 @@ ConfigureRelatedItems.propTypes = {
|
|
|
6792
6752
|
};
|
|
6793
6753
|
connectConfigureRelatedItems(ConfigureRelatedItems);
|
|
6794
6754
|
|
|
6795
|
-
var MAX_WILDCARD_FACETS = 20;
|
|
6796
6755
|
var connectDynamicWidgets = createConnectorWithContext({
|
|
6797
6756
|
displayName: 'AlgoliaDynamicWidgets',
|
|
6798
6757
|
defaultProps: {
|
|
6799
6758
|
transformItems: function transformItems(items) {
|
|
6800
6759
|
return items;
|
|
6801
|
-
}
|
|
6802
|
-
maxValuesPerFacet: 20
|
|
6760
|
+
}
|
|
6803
6761
|
},
|
|
6804
6762
|
propTypes: {
|
|
6805
|
-
transformItems: PropTypes.func
|
|
6806
|
-
facets: PropTypes.arrayOf(PropTypes.string),
|
|
6807
|
-
maxValuesPerFacet: PropTypes.number
|
|
6763
|
+
transformItems: PropTypes.func
|
|
6808
6764
|
},
|
|
6809
6765
|
getProvidedProps: function getProvidedProps(props, _searchState, searchResults) {
|
|
6810
6766
|
var results = getResults(searchResults, {
|
|
@@ -6812,10 +6768,6 @@ var connectDynamicWidgets = createConnectorWithContext({
|
|
|
6812
6768
|
multiIndexContext: props.indexContextValue
|
|
6813
6769
|
});
|
|
6814
6770
|
|
|
6815
|
-
if (props.facets && !(Array.isArray(props.facets) && props.facets.length <= 1 && (props.facets[0] === '*' || props.facets[0] === undefined))) {
|
|
6816
|
-
throw new Error("The `facets` prop only accepts [] or [\"*\"], you passed ".concat(JSON.stringify(props.facets)));
|
|
6817
|
-
}
|
|
6818
|
-
|
|
6819
6771
|
if (!results) {
|
|
6820
6772
|
return {
|
|
6821
6773
|
attributesToRender: []
|
|
@@ -6823,30 +6775,11 @@ var connectDynamicWidgets = createConnectorWithContext({
|
|
|
6823
6775
|
}
|
|
6824
6776
|
|
|
6825
6777
|
var facetOrder = results.renderingContent && results.renderingContent.facetOrdering && results.renderingContent.facetOrdering.facets && results.renderingContent.facetOrdering.facets.order || [];
|
|
6826
|
-
var attributesToRender = props.transformItems(facetOrder, {
|
|
6827
|
-
results: results
|
|
6828
|
-
});
|
|
6829
|
-
|
|
6830
|
-
if (attributesToRender.length > MAX_WILDCARD_FACETS && !props.facets) {
|
|
6831
|
-
// eslint-disable-next-line no-console
|
|
6832
|
-
console.warn("More than ".concat(MAX_WILDCARD_FACETS, " facets are requested to be displayed without explicitly setting which facets to retrieve. This could have a performance impact. Set \"facets\" to [] to do two smaller network requests, or explicitly to ['*'] to avoid this warning."));
|
|
6833
|
-
}
|
|
6834
|
-
|
|
6835
|
-
if (props.maxValuesPerFacet < results._state.maxValuesPerFacet) {
|
|
6836
|
-
// eslint-disable-next-line no-console
|
|
6837
|
-
console.warn("The maxValuesPerFacet set by dynamic widgets (".concat(props.maxValuesPerFacet, ") is smaller than one of the limits set by a widget (").concat(results._state.maxValuesPerFacet, "). This causes a mismatch in query parameters and thus an extra network request when that widget is mounted."));
|
|
6838
|
-
}
|
|
6839
|
-
|
|
6840
6778
|
return {
|
|
6841
|
-
attributesToRender:
|
|
6779
|
+
attributesToRender: props.transformItems(facetOrder, {
|
|
6780
|
+
results: results
|
|
6781
|
+
})
|
|
6842
6782
|
};
|
|
6843
|
-
},
|
|
6844
|
-
getSearchParameters: function getSearchParameters(searchParameters, props) {
|
|
6845
|
-
return (props.facets || ['*']).reduce(function (acc, curr) {
|
|
6846
|
-
return acc.addFacet(curr);
|
|
6847
|
-
}, searchParameters.setQueryParameters({
|
|
6848
|
-
maxValuesPerFacet: Math.max(props.maxValuesPerFacet || 0, searchParameters.maxValuesPerFacet || 0)
|
|
6849
|
-
}));
|
|
6850
6783
|
}
|
|
6851
6784
|
});
|
|
6852
6785
|
|
|
@@ -9134,14 +9067,17 @@ function _arrayWithHoles(arr) {
|
|
|
9134
9067
|
}
|
|
9135
9068
|
|
|
9136
9069
|
function _iterableToArrayLimit(arr, i) {
|
|
9137
|
-
|
|
9070
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9071
|
+
|
|
9072
|
+
if (_i == null) return;
|
|
9138
9073
|
var _arr = [];
|
|
9139
9074
|
var _n = true;
|
|
9140
9075
|
var _d = false;
|
|
9141
|
-
|
|
9076
|
+
|
|
9077
|
+
var _s, _e;
|
|
9142
9078
|
|
|
9143
9079
|
try {
|
|
9144
|
-
for (
|
|
9080
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
9145
9081
|
_arr.push(_s.value);
|
|
9146
9082
|
|
|
9147
9083
|
if (i && _arr.length === i) break;
|
|
@@ -14907,7 +14843,7 @@ var imageDiv = function imageDiv(hit, styles, client, siteType, defaultImage, va
|
|
|
14907
14843
|
LazyLoad,
|
|
14908
14844
|
{ once: true },
|
|
14909
14845
|
React__default.createElement('img', {
|
|
14910
|
-
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$
|
|
14846
|
+
src: hit.thumbnail && hit.thumbnail.asset ? urlFor({ client: client, source: hit.thumbnail }) : hit.thumbnail && _typeof$2(hit.thumbnail === 'string') ? hit.thumbnail : defaultImage
|
|
14911
14847
|
})
|
|
14912
14848
|
)
|
|
14913
14849
|
)
|
package/dist/esm/AuthWrapper.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
2
2
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
3
|
+
import { a as _typeof_1 } from './typeof-2f07d0e8.js';
|
|
4
|
+
import { d as defineProperty, b as asyncToGenerator } from './defineProperty-23a8f8cd.js';
|
|
3
5
|
import React__default, { useState, useEffect } from 'react';
|
|
4
6
|
import { Form } from 'react-bootstrap';
|
|
5
7
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
@@ -13,27 +15,12 @@ function _interopRequireDefault(obj) {
|
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
module.exports = _interopRequireDefault
|
|
18
|
+
module.exports = _interopRequireDefault;
|
|
19
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
17
20
|
});
|
|
18
21
|
|
|
19
22
|
unwrapExports(interopRequireDefault);
|
|
20
23
|
|
|
21
|
-
var _typeof_1 = createCommonjsModule(function (module) {
|
|
22
|
-
function _typeof(obj) {
|
|
23
|
-
"@babel/helpers - typeof";
|
|
24
|
-
|
|
25
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
26
|
-
return typeof obj;
|
|
27
|
-
} : function (obj) {
|
|
28
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
29
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
unwrapExports(_typeof_1);
|
|
36
|
-
|
|
37
24
|
var runtime_1 = createCommonjsModule(function (module) {
|
|
38
25
|
/**
|
|
39
26
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
@@ -792,75 +779,13 @@ try {
|
|
|
792
779
|
|
|
793
780
|
var regenerator = runtime_1;
|
|
794
781
|
|
|
795
|
-
var defineProperty = createCommonjsModule(function (module) {
|
|
796
|
-
function _defineProperty(obj, key, value) {
|
|
797
|
-
if (key in obj) {
|
|
798
|
-
Object.defineProperty(obj, key, {
|
|
799
|
-
value: value,
|
|
800
|
-
enumerable: true,
|
|
801
|
-
configurable: true,
|
|
802
|
-
writable: true
|
|
803
|
-
});
|
|
804
|
-
} else {
|
|
805
|
-
obj[key] = value;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
return obj;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
812
|
-
});
|
|
813
|
-
|
|
814
|
-
unwrapExports(defineProperty);
|
|
815
|
-
|
|
816
|
-
var asyncToGenerator = createCommonjsModule(function (module) {
|
|
817
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
818
|
-
try {
|
|
819
|
-
var info = gen[key](arg);
|
|
820
|
-
var value = info.value;
|
|
821
|
-
} catch (error) {
|
|
822
|
-
reject(error);
|
|
823
|
-
return;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
if (info.done) {
|
|
827
|
-
resolve(value);
|
|
828
|
-
} else {
|
|
829
|
-
Promise.resolve(value).then(_next, _throw);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
function _asyncToGenerator(fn) {
|
|
834
|
-
return function () {
|
|
835
|
-
var self = this,
|
|
836
|
-
args = arguments;
|
|
837
|
-
return new Promise(function (resolve, reject) {
|
|
838
|
-
var gen = fn.apply(self, args);
|
|
839
|
-
|
|
840
|
-
function _next(value) {
|
|
841
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
function _throw(err) {
|
|
845
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
_next(undefined);
|
|
849
|
-
});
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
854
|
-
});
|
|
855
|
-
|
|
856
|
-
unwrapExports(asyncToGenerator);
|
|
857
|
-
|
|
858
782
|
var arrayWithHoles = createCommonjsModule(function (module) {
|
|
859
783
|
function _arrayWithHoles(arr) {
|
|
860
784
|
if (Array.isArray(arr)) return arr;
|
|
861
785
|
}
|
|
862
786
|
|
|
863
|
-
module.exports = _arrayWithHoles
|
|
787
|
+
module.exports = _arrayWithHoles;
|
|
788
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
864
789
|
});
|
|
865
790
|
|
|
866
791
|
unwrapExports(arrayWithHoles);
|
|
@@ -896,7 +821,8 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
896
821
|
return _arr;
|
|
897
822
|
}
|
|
898
823
|
|
|
899
|
-
module.exports = _iterableToArrayLimit
|
|
824
|
+
module.exports = _iterableToArrayLimit;
|
|
825
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
900
826
|
});
|
|
901
827
|
|
|
902
828
|
unwrapExports(iterableToArrayLimit);
|
|
@@ -912,7 +838,8 @@ function _arrayLikeToArray(arr, len) {
|
|
|
912
838
|
return arr2;
|
|
913
839
|
}
|
|
914
840
|
|
|
915
|
-
module.exports = _arrayLikeToArray
|
|
841
|
+
module.exports = _arrayLikeToArray;
|
|
842
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
916
843
|
});
|
|
917
844
|
|
|
918
845
|
unwrapExports(arrayLikeToArray);
|
|
@@ -927,7 +854,8 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
927
854
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
928
855
|
}
|
|
929
856
|
|
|
930
|
-
module.exports = _unsupportedIterableToArray
|
|
857
|
+
module.exports = _unsupportedIterableToArray;
|
|
858
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
931
859
|
});
|
|
932
860
|
|
|
933
861
|
unwrapExports(unsupportedIterableToArray);
|
|
@@ -937,7 +865,8 @@ function _nonIterableRest() {
|
|
|
937
865
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
938
866
|
}
|
|
939
867
|
|
|
940
|
-
module.exports = _nonIterableRest
|
|
868
|
+
module.exports = _nonIterableRest;
|
|
869
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
941
870
|
});
|
|
942
871
|
|
|
943
872
|
unwrapExports(nonIterableRest);
|
|
@@ -947,7 +876,8 @@ function _slicedToArray(arr, i) {
|
|
|
947
876
|
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
|
948
877
|
}
|
|
949
878
|
|
|
950
|
-
module.exports = _slicedToArray
|
|
879
|
+
module.exports = _slicedToArray;
|
|
880
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
951
881
|
});
|
|
952
882
|
|
|
953
883
|
unwrapExports(slicedToArray);
|