ublo-lib 1.48.0 → 1.48.2
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/components/custom-contact-form/utils.d.ts.map +1 -1
- package/es/common/components/custom-contact-form/utils.js +2 -0
- package/es/esf/components/commitment-banner/commitment-banner.module.css +4 -0
- package/es/future/components/msem-package/components/widget.d.ts.map +1 -1
- package/es/future/components/msem-package/components/widget.js +4 -1
- package/es/future/components/msem-package/i18n/en.json +25 -1
- package/es/future/components/msem-package/i18n/es.json +25 -0
- package/es/future/components/msem-package/i18n/translations.d.ts.map +1 -1
- package/es/future/components/msem-package/i18n/translations.js +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/components/custom-contact-form/utils.js"],"names":[],"mappings":"AAyBA,yFAiCC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/components/custom-contact-form/utils.js"],"names":[],"mappings":"AAyBA,yFAiCC;AA0DD,qDAQC;;;;;;;;;AAhHD;;;;;;;;;EASE;AAuCK,oEASN;AAEM,uDAIN;AAEM;;;;;;;iBAqCN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-package/components/widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,KAAK,KAAK,MAAM,UAAU,CAAC;AAIvC,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACtD,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnE,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAsBF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,cAAc,EACd,iBAAiB,EACjB,SAAS,GACV,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-package/components/widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,KAAK,KAAK,MAAM,UAAU,CAAC;AAIvC,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACtD,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnE,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAsBF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,cAAc,EACd,iBAAiB,EACjB,SAAS,GACV,EAAE,KAAK,2CAmLP"}
|
|
@@ -27,6 +27,7 @@ const defaultHide = [
|
|
|
27
27
|
];
|
|
28
28
|
export default function Widget({ index, config, widget, step, setStep, stay, completedSteps, setCompletedSteps, packageId, }) {
|
|
29
29
|
const ref = React.useRef(null);
|
|
30
|
+
const widgetContainerRef = React.useRef(null);
|
|
30
31
|
const { lang } = useUbloContext();
|
|
31
32
|
const [addedToCart, setAddedToCart] = React.useState(false);
|
|
32
33
|
const { id, widget: kind, image, title, tagline, options, presets, repeatable, optional, maxParticipants, } = widget;
|
|
@@ -58,6 +59,8 @@ export default function Widget({ index, config, widget, step, setStep, stay, com
|
|
|
58
59
|
e.stopPropagation();
|
|
59
60
|
};
|
|
60
61
|
const handleCartChange = () => {
|
|
62
|
+
if (widgetContainerRef.current)
|
|
63
|
+
widgetContainerRef.current.scrollIntoView();
|
|
61
64
|
if (areAllInnerStepsFinished) {
|
|
62
65
|
setAddedToCart(true);
|
|
63
66
|
setCompletedSteps([...completedSteps, index]);
|
|
@@ -122,5 +125,5 @@ export default function Widget({ index, config, widget, step, setStep, stay, com
|
|
|
122
125
|
if (innerStep > optionalRepeat) {
|
|
123
126
|
startWidget(true);
|
|
124
127
|
}
|
|
125
|
-
}, children: [_jsx(Icons.Plus, { className: styles.innerStepIcon }), "Ajouter"] }))] }))] })] }), isStarted && (_jsx("div", { className: styles.widgetContainer, onClick: preventBubbling, children: _jsx(Widget, { options: allOptions, presets: allPresets, children: _jsx("div", { id: widgetId }) }) }))] }));
|
|
128
|
+
}, children: [_jsx(Icons.Plus, { className: styles.innerStepIcon }), "Ajouter"] }))] }))] })] }), isStarted && (_jsx("div", { ref: widgetContainerRef, className: styles.widgetContainer, onClick: preventBubbling, children: _jsx(Widget, { options: allOptions, presets: allPresets, children: _jsx("div", { id: widgetId }) }) }))] }));
|
|
126
129
|
}
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"filters": {
|
|
3
|
+
"title": "Choisissez vos dates",
|
|
4
|
+
"fixed-title": "Paramètres du séjour",
|
|
5
|
+
"subtitle": "Séjour fixe de",
|
|
6
|
+
"day": "jour",
|
|
7
|
+
"stay-from-label": "Date de début",
|
|
8
|
+
"stay-from-placeholder": "Arrivée le...",
|
|
9
|
+
"stay-to-label": "Date de fin",
|
|
10
|
+
"stay-to-placeholder": "Départ le...",
|
|
11
|
+
"pax": "Nombre de personnes",
|
|
12
|
+
"pax-message": "Offre réservée à un groupe de"
|
|
13
|
+
},
|
|
14
|
+
"widgets": {
|
|
15
|
+
"missing-stay": "Veuillez renseigner vos dates de séjour pour accéder aux offres.",
|
|
16
|
+
"how-to-start": "Cliquez sur l'offre ci-dessous pour démarrer le processus de réservation.",
|
|
17
|
+
"reset": "Réinitialiser",
|
|
18
|
+
"add-option": "Ajouter des options",
|
|
19
|
+
"options": "Options",
|
|
20
|
+
"submit": "Aller au panier"
|
|
21
|
+
},
|
|
22
|
+
"widget": {
|
|
23
|
+
"person": "Personne"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"filters": {
|
|
3
|
+
"title": "Choisissez vos dates",
|
|
4
|
+
"fixed-title": "Paramètres du séjour",
|
|
5
|
+
"subtitle": "Séjour fixe de",
|
|
6
|
+
"day": "jour",
|
|
7
|
+
"stay-from-label": "Date de début",
|
|
8
|
+
"stay-from-placeholder": "Arrivée le...",
|
|
9
|
+
"stay-to-label": "Date de fin",
|
|
10
|
+
"stay-to-placeholder": "Départ le...",
|
|
11
|
+
"pax": "Nombre de personnes",
|
|
12
|
+
"pax-message": "Offre réservée à un groupe de"
|
|
13
|
+
},
|
|
14
|
+
"widgets": {
|
|
15
|
+
"missing-stay": "Veuillez renseigner vos dates de séjour pour accéder aux offres.",
|
|
16
|
+
"how-to-start": "Cliquez sur l'offre ci-dessous pour démarrer le processus de réservation.",
|
|
17
|
+
"reset": "Réinitialiser",
|
|
18
|
+
"add-option": "Ajouter des options",
|
|
19
|
+
"options": "Options",
|
|
20
|
+
"submit": "Aller au panier"
|
|
21
|
+
},
|
|
22
|
+
"widget": {
|
|
23
|
+
"person": "Personne"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-package/i18n/translations.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-package/i18n/translations.tsx"],"names":[],"mappings":"AAOA,wBAAgB,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,OAQ5C;AAED,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,2CAGtC"}
|
|
@@ -2,7 +2,8 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useUbloContext } from "ublo/with-ublo";
|
|
3
3
|
import fr from "./fr.json";
|
|
4
4
|
import en from "./en.json";
|
|
5
|
-
|
|
5
|
+
import es from "./es.json";
|
|
6
|
+
const dictionaries = { fr, en, es };
|
|
6
7
|
export function t(lang, key) {
|
|
7
8
|
if (!lang || !key)
|
|
8
9
|
return "";
|