ublo-lib 1.14.12 → 1.14.14
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/admin-links/admin-links.module.css +2 -2
- package/es/common/components/cart-preview/cart-pill.module.css +1 -1
- package/es/common/components/editable-map/helper.module.css +2 -2
- package/es/common/components/editable-map/marker-list.js +3 -4
- package/es/common/components/editable-map/popup-data.module.css +2 -2
- package/es/common/components/packages-selector/index.module.css +2 -2
- package/es/common/components/scrolling-carousel/scrolling-carousel.module.css +1 -1
- package/es/common/hooks/use-packages.js +1 -1
- package/es/common/utils/msem-widget.d.ts +10 -1
- package/es/common/utils/msem-widget.d.ts.map +1 -1
- package/es/common/utils/msem-widget.js +18 -0
- package/es/esf/components/period-picker/period-picker.module.css +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
linear-gradient(
|
|
18
18
|
175deg,
|
|
19
19
|
var(--ublo-blue-400, #4177f6),
|
|
20
|
-
var(--ublo-blue-500, #
|
|
20
|
+
var(--ublo-blue-500, #073ff8)
|
|
21
21
|
)
|
|
22
22
|
);
|
|
23
23
|
border-radius: var(--ublo-radius-100, 3px);
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
linear-gradient(
|
|
47
47
|
175deg,
|
|
48
48
|
var(--ublo-secondary-color, #4177f6),
|
|
49
|
-
var(--ublo-primary-color, #
|
|
49
|
+
var(--ublo-primary-color, #073ff8)
|
|
50
50
|
)
|
|
51
51
|
);
|
|
52
52
|
border-radius: var(--ublo-radius-300, 15px);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
font-size: 11px;
|
|
10
10
|
font-weight: 700;
|
|
11
11
|
text-align: center;
|
|
12
|
-
background-color: var(--ds-primary, var(--ds-blue-500, #
|
|
12
|
+
background-color: var(--ds-primary, var(--ds-blue-500, #073ff8));
|
|
13
13
|
border-radius: 100%;
|
|
14
14
|
z-index: 10;
|
|
15
15
|
pointer-events: none;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
linear-gradient(
|
|
17
17
|
175deg,
|
|
18
18
|
var(--ublo-blue-400, #4177f6),
|
|
19
|
-
var(--ublo-blue-500, #
|
|
19
|
+
var(--ublo-blue-500, #073ff8)
|
|
20
20
|
)
|
|
21
21
|
);
|
|
22
22
|
border-radius: 50%;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
linear-gradient(
|
|
45
45
|
175deg,
|
|
46
46
|
var(--ublo-blue-400, #4177f6),
|
|
47
|
-
var(--ublo-blue-500, #
|
|
47
|
+
var(--ublo-blue-500, #073ff8)
|
|
48
48
|
)
|
|
49
49
|
);
|
|
50
50
|
border-radius: var(--ds-radius-200, 10px);
|
|
@@ -51,13 +51,12 @@ export default function MarkerList({
|
|
|
51
51
|
const focusMarker = e => {
|
|
52
52
|
e.stopPropagation();
|
|
53
53
|
e.preventDefault();
|
|
54
|
-
mapRef.current.setView(position,
|
|
54
|
+
mapRef.current.setView(position, 17);
|
|
55
55
|
setTimeout(() => {
|
|
56
56
|
mapRef.current.eachLayer(layer => {
|
|
57
57
|
if (layer instanceof L.Marker) {
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
if (markerId) {
|
|
58
|
+
const marker = layer.getElement().querySelector(`[data-id="${id}"]`);
|
|
59
|
+
if (marker) {
|
|
61
60
|
layer.openPopup();
|
|
62
61
|
}
|
|
63
62
|
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
.itemSelected {
|
|
47
47
|
color: #fff;
|
|
48
|
-
background-color: var(--ublo-primary-color, #
|
|
48
|
+
background-color: var(--ublo-primary-color, #073ff8);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.loader {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
width: 42px;
|
|
64
64
|
height: 42px;
|
|
65
65
|
border: 4px solid #f5f5f5;
|
|
66
|
-
border-bottom-color: var(--ublo-primary-color, #
|
|
66
|
+
border-bottom-color: var(--ublo-primary-color, #073ff8);
|
|
67
67
|
box-sizing: border-box;
|
|
68
68
|
border-radius: 50%;
|
|
69
69
|
animation: packages-loader-spining 640ms ease-in-out infinite;
|
|
@@ -15,7 +15,7 @@ const buttonStyles = `
|
|
|
15
15
|
font-family: "Open Sans";
|
|
16
16
|
text-transform: uppercase;
|
|
17
17
|
font-weight: 700;
|
|
18
|
-
background-color: var(--ublo-primary-color, #
|
|
18
|
+
background-color: var(--ublo-primary-color, #073FF8);
|
|
19
19
|
border-radius: 8px;
|
|
20
20
|
cursor: pointer;
|
|
21
21
|
user-select: none;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare global {
|
|
2
3
|
interface Window {
|
|
3
4
|
MseM: any;
|
|
5
|
+
MseMLoaded: boolean;
|
|
4
6
|
}
|
|
5
7
|
}
|
|
8
|
+
declare type Widget = "tunnel" | "lodging" | "esf" | "skiRental" | "skiPass" | "liftJb" | "transfer" | "shuttle" | "excursion" | "otherProducts" | "genericLine" | "esfCustom" | "vakario" | "elloha" | "widgetPackage" | "customerAccount";
|
|
6
9
|
export declare const loadWigetMseM: (id?: string, forceIntegration?: boolean) => Promise<unknown>;
|
|
7
|
-
export declare const openMseM: (widget:
|
|
10
|
+
export declare const openMseM: (widget: Widget, options?: {}, presets?: {}) => Promise<void>;
|
|
11
|
+
export declare function loadWidget(widget: Widget, options?: {}, presets?: {}): void;
|
|
12
|
+
declare type ScriptProps = {
|
|
13
|
+
msemUrl: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function Script({ msemUrl }: ScriptProps): JSX.Element;
|
|
16
|
+
export {};
|
|
8
17
|
//# sourceMappingURL=msem-widget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msem-widget.d.ts","sourceRoot":"","sources":["../../../src/common/utils/msem-widget.
|
|
1
|
+
{"version":3,"file":"msem-widget.d.ts","sourceRoot":"","sources":["../../../src/common/utils/msem-widget.tsx"],"names":[],"mappings":";AAIA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,IAAI,EAAE,GAAG,CAAC;QACV,UAAU,EAAE,OAAO,CAAC;KACrB;CACF;AAED,aAAK,MAAM,GACP,QAAQ,GACR,SAAS,GACT,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,WAAW,GACX,eAAe,GACf,aAAa,GACb,WAAW,GACX,SAAS,GACT,QAAQ,GACR,eAAe,GACf,iBAAiB,CAAC;AAEtB,eAAO,MAAM,aAAa,+DAWzB,CAAC;AAEF,eAAO,MAAM,QAAQ,WAAkB,MAAM,8CAG5C,CAAC;AAEF,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK,QAQpE;AAED,aAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,eAY9C"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import NextScript from "next/script";
|
|
1
3
|
import getConfig from "next/config";
|
|
2
4
|
import { loadJS } from "./load-js";
|
|
3
5
|
export const loadWigetMseM = async (id = "widget-msem", forceIntegration = false) => {
|
|
@@ -12,3 +14,19 @@ export const openMseM = async (widget, options = {}, presets = {}) => {
|
|
|
12
14
|
await loadWigetMseM();
|
|
13
15
|
window.MseM?.onLoad(() => window.MseM[widget](options, presets));
|
|
14
16
|
};
|
|
17
|
+
export function loadWidget(widget, options = {}, presets = {}) {
|
|
18
|
+
if (window.MseMLoaded) {
|
|
19
|
+
window.MseM?.onLoad(() => window.MseM[widget](options, presets));
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
setTimeout(() => {
|
|
23
|
+
loadWidget(widget, options, presets);
|
|
24
|
+
}, 400);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function Script({ msemUrl }) {
|
|
28
|
+
const setLoaded = () => {
|
|
29
|
+
window.MseMLoaded = true;
|
|
30
|
+
};
|
|
31
|
+
return (_jsx(NextScript, { src: `${msemUrl}/static/js/widget-msem.js`, onLoad: setLoaded, defer: true }));
|
|
32
|
+
}
|