ublo-lib 1.35.13 → 1.35.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.
|
@@ -6,7 +6,8 @@ type Props = {
|
|
|
6
6
|
enableCustomOffers?: boolean;
|
|
7
7
|
customOffers?: string | null;
|
|
8
8
|
facet?: 0 | 1;
|
|
9
|
+
theme?: string;
|
|
9
10
|
};
|
|
10
|
-
export default function useTunnel({ channel, multipleVillages, integration, groundedTo, enableCustomOffers, customOffers, facet, }?: Props): void;
|
|
11
|
+
export default function useTunnel({ channel, multipleVillages, integration, groundedTo, enableCustomOffers, customOffers, facet, theme, }?: Props): void;
|
|
11
12
|
export {};
|
|
12
13
|
//# sourceMappingURL=use-tunnel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-tunnel.d.ts","sourceRoot":"","sources":["../../../src/common/hooks/use-tunnel.ts"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-tunnel.d.ts","sourceRoot":"","sources":["../../../src/common/hooks/use-tunnel.ts"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAMF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,OAAe,EACf,gBAAgB,EAChB,WAAW,EACX,UAAiC,EACjC,kBAAkB,EAClB,YAAY,EACZ,KAAK,EACL,KAAK,GACN,GAAE,KAAU,QAgDZ"}
|
|
@@ -6,7 +6,7 @@ import { loadJS } from "../utils/load-js";
|
|
|
6
6
|
const { publicRuntimeConfig } = getConfig();
|
|
7
7
|
const { langPrefix, resort } = publicRuntimeConfig;
|
|
8
8
|
const hasLangPrefix = langPrefix.links;
|
|
9
|
-
export default function useTunnel({ channel = "ESF", multipleVillages, integration, groundedTo = "#esfplus_container", enableCustomOffers, customOffers, facet, } = {}) {
|
|
9
|
+
export default function useTunnel({ channel = "ESF", multipleVillages, integration, groundedTo = "#esfplus_container", enableCustomOffers, customOffers, facet, theme, } = {}) {
|
|
10
10
|
const { cmsMode, lang, breadcrumb } = useUbloContext();
|
|
11
11
|
const { path: esfPath } = multipleVillages ? breadcrumb?.next : breadcrumb;
|
|
12
12
|
const widgetLang = React.useMemo(() => (lang === "fr" ? "fr" : "en"), [lang]);
|
|
@@ -28,6 +28,7 @@ export default function useTunnel({ channel = "ESF", multipleVillages, integrati
|
|
|
28
28
|
customOffers,
|
|
29
29
|
analytics: Plausible.callback,
|
|
30
30
|
categoryCode,
|
|
31
|
+
theme,
|
|
31
32
|
});
|
|
32
33
|
});
|
|
33
34
|
});
|
|
@@ -43,6 +44,7 @@ export default function useTunnel({ channel = "ESF", multipleVillages, integrati
|
|
|
43
44
|
facet,
|
|
44
45
|
groundedTo,
|
|
45
46
|
integration,
|
|
47
|
+
theme,
|
|
46
48
|
widgetLang,
|
|
47
49
|
]);
|
|
48
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/list.js"],"names":[],"mappings":"AAQA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/list.js"],"names":[],"mappings":"AAQA;;;;;;;;4CA+CC"}
|
|
@@ -11,11 +11,14 @@ export default function List({ search = "", instructors, fromSuggestions, formSe
|
|
|
11
11
|
const displayedInstructors = fromSuggestions
|
|
12
12
|
? instructors
|
|
13
13
|
: Utils.filter(instructors, search);
|
|
14
|
-
const listCountMessageCode = displayedInstructors
|
|
14
|
+
const listCountMessageCode = displayedInstructors && displayedInstructors.length > 1
|
|
15
|
+
? "instructors"
|
|
16
|
+
: "instructor";
|
|
15
17
|
const classes = classNames(css.container, {
|
|
16
18
|
[css.containerSuggestions]: fromSuggestions,
|
|
17
19
|
});
|
|
18
|
-
return (_jsxs("div", { className: classes, children: [!fromSuggestions && (_jsxs("div", { className: css.listCount, children: [_jsx("b", { children: displayedInstructors.length }), " ", message(lang, listCountMessageCode)] })), _jsx("div", { className: css.inner, children: displayedInstructors
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
return (_jsxs("div", { className: classes, children: [!fromSuggestions && (_jsxs("div", { className: css.listCount, children: [_jsx("b", { children: displayedInstructors.length }), " ", message(lang, listCountMessageCode)] })), _jsx("div", { className: css.inner, children: displayedInstructors &&
|
|
21
|
+
displayedInstructors.map((instructor) => {
|
|
22
|
+
return (_jsx(Instructor, { instructor: instructor, trombi: trombi, formFields: formFields, formSendFunction: formSendFunction, popup: popup }, instructor.uri));
|
|
23
|
+
}) })] }));
|
|
21
24
|
}
|