ublo-lib 1.25.18 → 1.25.19

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.
@@ -14,7 +14,8 @@ const Booking = ({
14
14
  channel,
15
15
  values,
16
16
  maxCPDuration,
17
- setCurrentStep
17
+ setCurrentStep,
18
+ msemWidgetHost
18
19
  }) => {
19
20
  const {
20
21
  lang,
@@ -59,7 +60,7 @@ const Booking = ({
59
60
  }, [cartPage, categoryCode]);
60
61
  React.useEffect(() => {
61
62
  const init = async () => {
62
- await loadWigetMseM();
63
+ await loadWigetMseM(msemWidgetHost);
63
64
  window.MseM?.onLoad(() => {
64
65
  const options = {
65
66
  resort,
@@ -85,7 +86,7 @@ const Booking = ({
85
86
  });
86
87
  };
87
88
  init();
88
- }, [cartUrl, categoryCode, channel, cmsMode, engagement, engagementPresets, goToCart, lang, resort, stay.from, stay.to]);
89
+ }, [cartUrl, categoryCode, channel, cmsMode, engagement, engagementPresets, goToCart, lang, msemWidgetHost, resort, stay.from, stay.to]);
89
90
  return _jsxs("div", {
90
91
  className: css.root,
91
92
  children: [_jsxs(Button, {
@@ -23,6 +23,7 @@ function MagicBox({
23
23
  maxDays = Infinity,
24
24
  allowedActivities,
25
25
  categories,
26
+ msemWidgetHost = "https://widget.msem.tech",
26
27
  msemApiHost = "https://services.msem.tech/api/esf",
27
28
  msemAdminHost = "https://admin.mon-sejour-en-montagne.com/api/gesco",
28
29
  children
@@ -163,7 +164,8 @@ function MagicBox({
163
164
  channel: channel,
164
165
  values: values,
165
166
  maxCPDuration: maxCPDuration,
166
- setCurrentStep: setCurrentStep
167
+ setCurrentStep: setCurrentStep,
168
+ msemWidgetHost: msemWidgetHost
167
169
  })]
168
170
  })
169
171
  });
@@ -1,4 +1,4 @@
1
1
  import { loadJS } from "../../../../common/utils/load-js";
2
- export async function loadWigetMseM() {
3
- await loadJS("https://widget.msem.tech/static/js/widget-msem.js", "widget-msem");
2
+ export async function loadWigetMseM(msemWidgetHost) {
3
+ await loadJS(`${msemWidgetHost}/static/js/widget-msem.js`, "widget-msem");
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.25.18",
3
+ "version": "1.25.19",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.3",
6
6
  "leaflet": "^1.9.1",