ublo-lib 1.32.5 → 1.32.7
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.
- package/es/common/hooks/use-tunnel.d.ts +2 -1
- package/es/common/hooks/use-tunnel.d.ts.map +1 -1
- package/es/common/hooks/use-tunnel.js +3 -1
- package/es/esf/components/period-picker/weeks.module.css +6 -6
- package/es/future/components/msem/tunnel.js +1 -1
- package/es/future/components/msem/types.d.ts +1 -0
- package/es/future/components/msem/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,8 @@ type Props = {
|
|
|
5
5
|
groundedTo?: string;
|
|
6
6
|
enableCustomOffers?: boolean;
|
|
7
7
|
customOffers?: string | null;
|
|
8
|
+
facet?: 0 | 1;
|
|
8
9
|
};
|
|
9
|
-
export default function useTunnel({ channel, multipleVillages, integration, groundedTo, enableCustomOffers, customOffers, }?: Props): void;
|
|
10
|
+
export default function useTunnel({ channel, multipleVillages, integration, groundedTo, enableCustomOffers, customOffers, facet, }?: Props): void;
|
|
10
11
|
export {};
|
|
11
12
|
//# 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;
|
|
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;CACf,CAAC;AAMF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,OAAe,EACf,gBAAgB,EAChB,WAAW,EACX,UAAiC,EACjC,kBAAkB,EAClB,YAAY,EACZ,KAAK,GACN,GAAE,KAAU,QA8CZ"}
|
|
@@ -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, } = {}) {
|
|
9
|
+
export default function useTunnel({ channel = "ESF", multipleVillages, integration, groundedTo = "#esfplus_container", enableCustomOffers, customOffers, facet, } = {}) {
|
|
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]);
|
|
@@ -21,6 +21,7 @@ export default function useTunnel({ channel = "ESF", multipleVillages, integrati
|
|
|
21
21
|
window.MseM.tunnel({
|
|
22
22
|
channel,
|
|
23
23
|
resort,
|
|
24
|
+
facet,
|
|
24
25
|
groundedTo,
|
|
25
26
|
lang: widgetLang,
|
|
26
27
|
esfUrl,
|
|
@@ -39,6 +40,7 @@ export default function useTunnel({ channel = "ESF", multipleVillages, integrati
|
|
|
39
40
|
customOffers,
|
|
40
41
|
enableCustomOffers,
|
|
41
42
|
esfUrl,
|
|
43
|
+
facet,
|
|
42
44
|
groundedTo,
|
|
43
45
|
integration,
|
|
44
46
|
widgetLang,
|
|
@@ -107,12 +107,6 @@
|
|
|
107
107
|
z-index: 1;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.weeks.withPeriods .selected {
|
|
111
|
-
outline: 2px solid var(--ds-primary, var(--ds-blue-500, #002dcc));
|
|
112
|
-
outline-offset: -1px;
|
|
113
|
-
border-radius: var(--ds-radius-100, 4px);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
110
|
button.button {
|
|
117
111
|
position: relative;
|
|
118
112
|
width: 100%;
|
|
@@ -134,6 +128,12 @@ button.button {
|
|
|
134
128
|
background-color: var(--ds-grey-500, #484848);
|
|
135
129
|
}
|
|
136
130
|
|
|
131
|
+
.weeks.withPeriods .selected button.button {
|
|
132
|
+
outline: 2px solid var(--ds-primary, var(--ds-blue-500, #002dcc));
|
|
133
|
+
outline-offset: -1px;
|
|
134
|
+
border-radius: var(--ds-radius-100, 4px);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
137
|
.buttonFiller {
|
|
138
138
|
position: relative;
|
|
139
139
|
width: calc(100% + var(--gap) * 2);
|
|
@@ -7,9 +7,9 @@ function Tunnel({ options, presets, children }) {
|
|
|
7
7
|
const lang = options?.lang === "fr" ? "fr" : "en";
|
|
8
8
|
const categoryCode = window.sessionStorage.getItem("categoryCode") || undefined;
|
|
9
9
|
const patchedOptions = {
|
|
10
|
+
categoryCode,
|
|
10
11
|
...options,
|
|
11
12
|
lang,
|
|
12
|
-
categoryCode,
|
|
13
13
|
analytics: (...args) => {
|
|
14
14
|
options?.analytics?.apply(null, args);
|
|
15
15
|
Plausible.callback.apply(null, args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC"}
|