ublo-lib 1.36.16 → 1.36.17
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-results.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/google-results.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"google-results.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/google-results.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IAEjB,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,GACd,EAAE,KAAK,2CAmEP"}
|
|
@@ -3,13 +3,10 @@ import Image from "next/image";
|
|
|
3
3
|
import Link from "ublo/link";
|
|
4
4
|
import Loader from "dt-design-system/es/loader";
|
|
5
5
|
import * as Ripple from "dt-design-system/es/ripple";
|
|
6
|
-
import getConfig from "next/config";
|
|
7
6
|
import css from "./products.module.css";
|
|
8
|
-
const { publicRuntimeConfig } = getConfig();
|
|
9
|
-
const { site, portalUrl } = publicRuntimeConfig;
|
|
10
7
|
const PLACEHOLDERS = [...new Array(2)];
|
|
11
8
|
export default function GoogleProducts({ products, loading, sendPlausibleGoal, faqsMaximized, }) {
|
|
12
|
-
if (faqsMaximized)
|
|
9
|
+
if (faqsMaximized || !products || products.length === 0)
|
|
13
10
|
return null;
|
|
14
11
|
const createRipple = (e) => {
|
|
15
12
|
Ripple.create(e);
|