@searchstax-inc/searchstudio-ux-react 0.2.14 → 0.2.15
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.
|
@@ -67,7 +67,7 @@ function Mt() {
|
|
|
67
67
|
}
|
|
68
68
|
var W = !1, A = !1, Q = !1, f = !1, b = !1, F;
|
|
69
69
|
F = Symbol.for("react.module.reference");
|
|
70
|
-
function
|
|
70
|
+
function q(n) {
|
|
71
71
|
return !!(typeof n == "string" || typeof n == "function" || n === s || n === r || b || n === a || n === d || n === g || f || n === k || W || A || Q || typeof n == "object" && n !== null && (n.$$typeof === y || n.$$typeof === m || n.$$typeof === c || n.$$typeof === l || n.$$typeof === u || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
@@ -260,18 +260,18 @@ function Mt() {
|
|
|
260
260
|
if (X && S && typeof X.stack == "string") {
|
|
261
261
|
for (var w = X.stack.split(`
|
|
262
262
|
`), V = S.stack.split(`
|
|
263
|
-
`),
|
|
263
|
+
`), $ = w.length - 1, _ = V.length - 1; $ >= 1 && _ >= 0 && w[$] !== V[_]; )
|
|
264
264
|
_--;
|
|
265
|
-
for (;
|
|
266
|
-
if (w[
|
|
267
|
-
if (
|
|
265
|
+
for (; $ >= 1 && _ >= 0; $--, _--)
|
|
266
|
+
if (w[$] !== V[_]) {
|
|
267
|
+
if ($ !== 1 || _ !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if ($--, _--, _ < 0 || w[$] !== V[_]) {
|
|
270
270
|
var z = `
|
|
271
|
-
` + w[
|
|
271
|
+
` + w[$].replace(" at new ", " at ");
|
|
272
272
|
return n.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", n.displayName)), typeof n == "function" && fe.set(n, z), z;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while ($ >= 1 && _ >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -337,8 +337,8 @@ function Mt() {
|
|
|
337
337
|
throw V.name = "Invariant Violation", V;
|
|
338
338
|
}
|
|
339
339
|
w = n[E](p, E, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
-
} catch (
|
|
341
|
-
w =
|
|
340
|
+
} catch ($) {
|
|
341
|
+
w = $;
|
|
342
342
|
}
|
|
343
343
|
w && !(w instanceof Error) && (xe(j), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", v, E, typeof w), xe(null)), w instanceof Error && !(w.message in He) && (He[w.message] = !0, xe(j), L("Failed %s type: %s", v, w.message), xe(null));
|
|
344
344
|
}
|
|
@@ -455,9 +455,9 @@ function Mt() {
|
|
|
455
455
|
for (M in p)
|
|
456
456
|
ye.call(p, M) && !ft.hasOwnProperty(M) && (E[M] = p[M]);
|
|
457
457
|
if (n && n.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (M in
|
|
460
|
-
E[M] === void 0 && (E[M] =
|
|
458
|
+
var $ = n.defaultProps;
|
|
459
|
+
for (M in $)
|
|
460
|
+
E[M] === void 0 && (E[M] = $[M]);
|
|
461
461
|
}
|
|
462
462
|
if (w || V) {
|
|
463
463
|
var _ = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
@@ -586,14 +586,14 @@ Check the top-level render call using <` + v + ">.");
|
|
|
586
586
|
}
|
|
587
587
|
function Xe(n, p, v, S, j, M) {
|
|
588
588
|
{
|
|
589
|
-
var E =
|
|
589
|
+
var E = q(n);
|
|
590
590
|
if (!E) {
|
|
591
591
|
var w = "";
|
|
592
592
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
593
|
var V = Tt(j);
|
|
594
594
|
V ? w += V : w += ze();
|
|
595
|
-
var
|
|
596
|
-
n === null ?
|
|
595
|
+
var $;
|
|
596
|
+
n === null ? $ = "null" : Le(n) ? $ = "array" : n !== void 0 && n.$$typeof === e ? ($ = "<" + (K(n.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof n, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, w);
|
|
597
597
|
}
|
|
598
598
|
var _ = Lt(n, p, v, j, M);
|
|
599
599
|
if (_ == null)
|
|
@@ -2365,13 +2365,13 @@ class ga {
|
|
|
2365
2365
|
...e,
|
|
2366
2366
|
overlayOpened: this.overlayOpened
|
|
2367
2367
|
}), (c = this.searchFacetsMainContainer) == null || c.appendChild(A), (u = (l = this.config) == null ? void 0 : l.templates) != null && u.mainTemplateMobile)
|
|
2368
|
-
for (const
|
|
2369
|
-
const G = A.querySelector("." +
|
|
2368
|
+
for (const q of ((m = (g = (d = this.config) == null ? void 0 : d.templates) == null ? void 0 : g.mainTemplateMobile) == null ? void 0 : m.closeOverlayTriggerClasses) || []) {
|
|
2369
|
+
const G = A.querySelector("." + q);
|
|
2370
2370
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2371
2371
|
}
|
|
2372
2372
|
else
|
|
2373
|
-
for (const
|
|
2374
|
-
const G = A.querySelector("." +
|
|
2373
|
+
for (const q of x.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
|
|
2374
|
+
const G = A.querySelector("." + q);
|
|
2375
2375
|
G && G.addEventListener("click", this.closeOverlay.bind(this));
|
|
2376
2376
|
}
|
|
2377
2377
|
const f = A.querySelector(
|
|
@@ -2387,8 +2387,8 @@ class ga {
|
|
|
2387
2387
|
);
|
|
2388
2388
|
if (F) {
|
|
2389
2389
|
F.innerHTML = "";
|
|
2390
|
-
for (const
|
|
2391
|
-
this.createFacetItem(
|
|
2390
|
+
for (const q of e.facets)
|
|
2391
|
+
this.createFacetItem(q, F, !0);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
@@ -3545,15 +3545,17 @@ function Ia(i) {
|
|
|
3545
3545
|
var b;
|
|
3546
3546
|
return (b = C.searchstax.searchFacetsWidget) == null ? void 0 : b.isChecked(f);
|
|
3547
3547
|
}
|
|
3548
|
-
function L(f, b, F,
|
|
3549
|
-
var Y;
|
|
3548
|
+
function L(f, b, F, q, G) {
|
|
3550
3549
|
const pe = G ? "mobile-" : "desktop-", K = document.getElementsByClassName(pe + f);
|
|
3551
|
-
K[0] && ((
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3550
|
+
K[0] && setTimeout(() => {
|
|
3551
|
+
var Y;
|
|
3552
|
+
(Y = C.searchstax.searchFacetsWidget) == null || Y.onFacetSelect(
|
|
3553
|
+
b,
|
|
3554
|
+
F,
|
|
3555
|
+
K[0],
|
|
3556
|
+
!1
|
|
3557
|
+
);
|
|
3558
|
+
}, 100);
|
|
3557
3559
|
}
|
|
3558
3560
|
function N(f, b) {
|
|
3559
3561
|
var F;
|
|
@@ -3623,12 +3625,11 @@ function Ia(i) {
|
|
|
3623
3625
|
checked: I(b),
|
|
3624
3626
|
readOnly: !0,
|
|
3625
3627
|
disabled: b.disabled,
|
|
3626
|
-
onClick: (
|
|
3628
|
+
onClick: (q) => {
|
|
3627
3629
|
L(
|
|
3628
3630
|
F + f.name,
|
|
3629
|
-
|
|
3630
|
-
b
|
|
3631
|
-
!0
|
|
3631
|
+
q,
|
|
3632
|
+
b
|
|
3632
3633
|
);
|
|
3633
3634
|
}
|
|
3634
3635
|
}
|
|
@@ -3639,12 +3640,11 @@ function Ia(i) {
|
|
|
3639
3640
|
"div",
|
|
3640
3641
|
{
|
|
3641
3642
|
className: "searchstax-facet-value-label",
|
|
3642
|
-
onClick: (
|
|
3643
|
+
onClick: (q) => {
|
|
3643
3644
|
L(
|
|
3644
3645
|
F + f.name,
|
|
3645
|
-
|
|
3646
|
-
b
|
|
3647
|
-
!1
|
|
3646
|
+
q,
|
|
3647
|
+
b
|
|
3648
3648
|
);
|
|
3649
3649
|
},
|
|
3650
3650
|
children: b.value
|
|
@@ -3654,12 +3654,11 @@ function Ia(i) {
|
|
|
3654
3654
|
"div",
|
|
3655
3655
|
{
|
|
3656
3656
|
className: "searchstax-facet-value-count",
|
|
3657
|
-
onClick: (
|
|
3657
|
+
onClick: (q) => {
|
|
3658
3658
|
L(
|
|
3659
3659
|
F + f.name,
|
|
3660
|
-
|
|
3661
|
-
b
|
|
3662
|
-
!1
|
|
3660
|
+
q,
|
|
3661
|
+
b
|
|
3663
3662
|
);
|
|
3664
3663
|
},
|
|
3665
3664
|
children: [
|
|
@@ -3804,10 +3803,10 @@ function Ia(i) {
|
|
|
3804
3803
|
checked: I(b),
|
|
3805
3804
|
readOnly: !0,
|
|
3806
3805
|
disabled: b.disabled,
|
|
3807
|
-
onClick: (
|
|
3806
|
+
onClick: (q) => {
|
|
3808
3807
|
L(
|
|
3809
3808
|
F + f.name,
|
|
3810
|
-
|
|
3809
|
+
q,
|
|
3811
3810
|
b,
|
|
3812
3811
|
!0,
|
|
3813
3812
|
!0
|
|
@@ -3821,12 +3820,11 @@ function Ia(i) {
|
|
|
3821
3820
|
"div",
|
|
3822
3821
|
{
|
|
3823
3822
|
className: "searchstax-facet-value-label",
|
|
3824
|
-
onClick: (
|
|
3823
|
+
onClick: (q) => {
|
|
3825
3824
|
L(
|
|
3826
3825
|
F + f.name,
|
|
3827
|
-
|
|
3828
|
-
b
|
|
3829
|
-
!1
|
|
3826
|
+
q,
|
|
3827
|
+
b
|
|
3830
3828
|
);
|
|
3831
3829
|
},
|
|
3832
3830
|
children: b.value
|
|
@@ -3836,12 +3834,11 @@ function Ia(i) {
|
|
|
3836
3834
|
"div",
|
|
3837
3835
|
{
|
|
3838
3836
|
className: "searchstax-facet-value-count",
|
|
3839
|
-
onClick: (
|
|
3837
|
+
onClick: (q) => {
|
|
3840
3838
|
L(
|
|
3841
3839
|
F + f.name,
|
|
3842
|
-
|
|
3843
|
-
b
|
|
3844
|
-
!1
|
|
3840
|
+
q,
|
|
3841
|
+
b
|
|
3845
3842
|
);
|
|
3846
3843
|
},
|
|
3847
3844
|
children: [
|
package/package.json
CHANGED