ublo-lib 1.36.28 → 1.36.30

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,3 +1,3 @@
1
- declare const useFaq: (selector: string, refresh: string) => void;
1
+ declare const useFaq: (selector: string, refresh: string, path: string) => void;
2
2
  export default useFaq;
3
3
  //# sourceMappingURL=use-faq.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-faq.d.ts","sourceRoot":"","sources":["../../../src/common/hooks/use-faq.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,aAAc,MAAM,WAA0B,MAAM,SA4C/D,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"use-faq.d.ts","sourceRoot":"","sources":["../../../src/common/hooks/use-faq.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,aACA,MAAM,WACP,MAAM,QACT,MAAM,SA6Cb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { useUbloContext } from "ublo/with-ublo";
3
3
  const buildClass = (className) => `${className}--opened`;
4
- const useFaq = (selector = ".faq-block", refresh) => {
4
+ const useFaq = (selector = ".faq-block", refresh, path) => {
5
5
  const [blocks, setBlocks] = React.useState([]);
6
6
  const { cmsMode } = useUbloContext();
7
7
  const clicked = React.useCallback((clickedBlock, blocks) => () => {
@@ -31,7 +31,7 @@ const useFaq = (selector = ".faq-block", refresh) => {
31
31
  setBlocks(blocks);
32
32
  });
33
33
  }
34
- }, [cmsMode, selector, refresh]);
34
+ }, [cmsMode, selector, refresh, path]);
35
35
  React.useEffect(() => {
36
36
  blocks.forEach((block) => init(block, blocks));
37
37
  return () => blocks.forEach(cleanup);
@@ -1 +1 @@
1
- {"version":3,"file":"google-results.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/google-results.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,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,OAAO,CAAC,EAC9B,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,GACd,EAAE,KAAK,2CA2DP"}
1
+ {"version":3,"file":"google-results.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/instant-search/google-results.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,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,OAAO,CAAC,EAC9B,QAAQ,EACR,OAAO,EACP,iBAAiB,EACjB,aAAa,GACd,EAAE,KAAK,2CA6DP"}
@@ -18,7 +18,9 @@ export default function OTLinks({ products, loading, sendPlausibleGoal, faqsMaxi
18
18
  }), !loading &&
19
19
  products.map((product, i) => {
20
20
  const { htmlTitle, link } = product;
21
- const productTitle = htmlTitle.replaceAll("b>", "mark>");
21
+ const productTitle = htmlTitle
22
+ .replaceAll("b>", "mark>")
23
+ .toLowerCase();
22
24
  return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
23
25
  })] })] }));
24
26
  }
@@ -71,6 +71,7 @@
71
71
 
72
72
  .linkTitle {
73
73
  font-size: 15px;
74
+ text-transform: capitalize;
74
75
  }
75
76
 
76
77
  .link mark {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.36.28",
3
+ "version": "1.36.30",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.9.9",
6
6
  "leaflet": "^1.9.1",