ublo-lib 1.38.33 → 1.38.34
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,2 +1,2 @@
|
|
|
1
|
-
export default function useBookingLinks(cart: any, multipleVillages: any, setupCallback: any, channel: string, cartChanged: any): void;
|
|
1
|
+
export default function useBookingLinks(cart: any, multipleVillages: any, setupCallback: any, channel: string, cartChanged: any, skipRecap: any): void;
|
|
2
2
|
//# sourceMappingURL=use-booking-links.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-booking-links.d.ts","sourceRoot":"","sources":["../../../src/esf/hooks/use-booking-links.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"use-booking-links.d.ts","sourceRoot":"","sources":["../../../src/esf/hooks/use-booking-links.js"],"names":[],"mappings":"AAKA,uJA4CC"}
|
|
@@ -2,14 +2,14 @@ import * as React from "react";
|
|
|
2
2
|
import { useUbloContext } from "ublo/with-ublo";
|
|
3
3
|
import { loadJS } from "../../common/utils/load-js";
|
|
4
4
|
import * as Plausible from "../../common/components/plausible";
|
|
5
|
-
export default function useBookingLinks(cart, multipleVillages, setupCallback, channel = "ESF", cartChanged) {
|
|
5
|
+
export default function useBookingLinks(cart, multipleVillages, setupCallback, channel = "ESF", cartChanged, skipRecap) {
|
|
6
6
|
const { breadcrumb, config, lang, path } = useUbloContext();
|
|
7
7
|
const hasLangPrefix = config.langPrefix.links;
|
|
8
8
|
const bookingLang = lang === "fr" ? "fr" : "en";
|
|
9
9
|
React.useEffect(() => {
|
|
10
10
|
const run = async () => {
|
|
11
11
|
await loadJS("https://widget.vente-en-ligne-esf.com/boutique/boutique.js", "boutique-js");
|
|
12
|
-
setupConfig(bookingLang, breadcrumb, cart, multipleVillages, hasLangPrefix, channel, cartChanged);
|
|
12
|
+
setupConfig(bookingLang, breadcrumb, cart, multipleVillages, hasLangPrefix, channel, cartChanged, skipRecap);
|
|
13
13
|
setupDialogCleanup();
|
|
14
14
|
setupCallback?.();
|
|
15
15
|
};
|
|
@@ -24,6 +24,7 @@ export default function useBookingLinks(cart, multipleVillages, setupCallback, c
|
|
|
24
24
|
multipleVillages,
|
|
25
25
|
path,
|
|
26
26
|
setupCallback,
|
|
27
|
+
skipRecap,
|
|
27
28
|
]);
|
|
28
29
|
}
|
|
29
30
|
function setupConfig(lang, breadcrumb, cart = [], multipleVillages, hasLangPrefix, channel, cartChanged, skipRecap) {
|