ublo-lib 1.44.31 → 1.44.32
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-sticky.js +2 -2
- package/es/lbm/components/lumiplan/domain.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/domain.js +1 -1
- package/es/lbm/components/lumiplan/lumiplan.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/lumiplan.js +1 -1
- package/es/lbm/components/lumiplan/opening.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/opening.js +1 -1
- package/es/lbm/components/lumiplan/pois.js +1 -1
- package/es/lbm/components/lumiplan/road-condition.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/road-condition.js +1 -1
- package/es/lbm/components/lumiplan/todays-tips.js +1 -1
- package/es/lbm/components/lumiplan/weather/weather.d.ts.map +1 -1
- package/es/lbm/components/lumiplan/weather/weather.js +1 -1
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ const useSticky = () => {
|
|
|
17
17
|
}
|
|
18
18
|
}, [sticky]);
|
|
19
19
|
const init = React.useCallback(() => {
|
|
20
|
+
observe();
|
|
20
21
|
Object.keys(eventsToBind).forEach((key) => {
|
|
21
22
|
const events = eventsToBind[key];
|
|
22
23
|
const target = window[key];
|
|
@@ -31,10 +32,9 @@ const useSticky = () => {
|
|
|
31
32
|
});
|
|
32
33
|
}, [observe]);
|
|
33
34
|
React.useEffect(() => {
|
|
34
|
-
observe();
|
|
35
35
|
init();
|
|
36
36
|
return () => cleanup();
|
|
37
|
-
}, [cleanup, init
|
|
37
|
+
}, [cleanup, init]);
|
|
38
38
|
return [ref, sticky];
|
|
39
39
|
};
|
|
40
40
|
export default useSticky;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/domain.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/domain.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,MAAM,8EAoFV,CAAC;AAIH,eAAe,MAAM,CAAC"}
|
|
@@ -20,7 +20,7 @@ const Domain = React.forwardRef(({ domain }, ref) => {
|
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
const { lifts, slopes } = domain;
|
|
23
|
-
return (_jsx("div", { ref: ref, className: css.domain, "data-tags": t(lang, "domain.navigation-title"), children: _jsxs("div", { className: css.inner, children: [_jsx("div", { className: css.title, dangerouslySetInnerHTML: {
|
|
23
|
+
return (_jsx("div", { ref: ref, className: css.domain, "data-domain": "", "data-tags": t(lang, "domain.navigation-title"), children: _jsxs("div", { className: css.inner, children: [_jsx("div", { className: css.title, dangerouslySetInnerHTML: {
|
|
24
24
|
__html: t(lang, "domain.title"),
|
|
25
25
|
} }), _jsxs("div", { className: css.info, children: [_jsxs("div", { className: css.card, children: [_jsx(TelesiegeIcon, {}), _jsx("span", { className: css.cardTitle, children: _jsx(T, { id: "domain.lifts.title" }) }), _jsxs("div", { className: css.cardCount, children: [_jsx("b", { children: lifts.count.open }), " / ", lifts.count.total] })] }), _jsxs("div", { className: css.card, children: [_jsx(SlopesIcon, {}), _jsx("span", { className: css.cardTitle, children: _jsx(T, { id: "domain.slopes.title" }) }), _jsxs("div", { className: css.cardCount, children: [_jsx("b", { children: slopes.count.open }), " / ", slopes.count.total] })] })] }), _jsx("div", { className: css.slopes, children: Object.keys(slopes.slopes).map((key) => {
|
|
26
26
|
const { open, total } = slopes.slopes[key];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lumiplan.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/lumiplan.tsx"],"names":[],"mappings":"AA2BA,MAAM,CAAC,OAAO,UAAU,QAAQ,
|
|
1
|
+
{"version":3,"file":"lumiplan.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/lumiplan.tsx"],"names":[],"mappings":"AA2BA,MAAM,CAAC,OAAO,UAAU,QAAQ,4CAkL/B"}
|
|
@@ -156,5 +156,5 @@ export default function Lumiplan() {
|
|
|
156
156
|
fetchData();
|
|
157
157
|
}
|
|
158
158
|
}, [currentResortId, isPoisInView]);
|
|
159
|
-
return (_jsxs("div", { "data-mode": mode, className: css.lumiplan, children: [_jsx(Header, { date: timestamp, mode: mode }), !disablePrint && (_jsx(Toolbar, { setMode: setMode, fetchAllData: fetchAllData })), _jsx(ResortSelector, { resorts: lumiplanResorts, currentResortId: currentResortId, setCurrentResortId: setCurrentResortId }), _jsx(TodaysTips, { ref: todaysTipsRef, resortOpening: resortOpening }), _jsx(Weather, { ref: weatherRef, weather: weather }), _jsx(RoadCondition, { ref: roadConditionRef, resortAccess: resortAccess }), _jsx(Domain, { ref: domainRef, domain: domain }), _jsx(Pois, { ref: poisRef, pois: pois }), showOpening && (_jsx(Opening, { ref: openingsRef, resortOpening: resortOpening, showOpening: currentResort.showOpening })), _jsx(Signature, { signature: signature })] }));
|
|
159
|
+
return (_jsxs("div", { "data-mode": mode, "data-resort": currentResortId, className: css.lumiplan, children: [_jsx(Header, { date: timestamp, mode: mode }), !disablePrint && (_jsx(Toolbar, { setMode: setMode, fetchAllData: fetchAllData })), _jsx(ResortSelector, { resorts: lumiplanResorts, currentResortId: currentResortId, setCurrentResortId: setCurrentResortId }), _jsx(TodaysTips, { ref: todaysTipsRef, resortOpening: resortOpening }), _jsx(Weather, { ref: weatherRef, weather: weather }), _jsx(RoadCondition, { ref: roadConditionRef, resortAccess: resortAccess }), _jsx(Domain, { ref: domainRef, domain: domain }), _jsx(Pois, { ref: poisRef, pois: pois }), showOpening && (_jsx(Opening, { ref: openingsRef, resortOpening: resortOpening, showOpening: currentResort.showOpening })), _jsx(Signature, { signature: signature })] }));
|
|
160
160
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opening.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/opening.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,aAAa,EAAO,MAAM,SAAS,CAAC;AAGlD,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"opening.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/opening.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,aAAa,EAAO,MAAM,SAAS,CAAC;AAGlD,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,OAAO,8EAoFZ,CAAC;AA0CF,eAAe,OAAO,CAAC"}
|
|
@@ -27,7 +27,7 @@ const Opening = React.forwardRef(({ resortOpening, showOpening }, ref) => {
|
|
|
27
27
|
const dayIndex = new Date().getDay() - 1;
|
|
28
28
|
const orderedDays = reorganizeDays(dawnSkiingDays, dayIndex);
|
|
29
29
|
const orderedNights = reorganizeDays(nightSkiingDays, dayIndex);
|
|
30
|
-
return (_jsx("div", { ref: ref, className: css.opening, "data-tags": t(lang, tagCode), children: _jsx("div", { className: css.tableOuter, children: _jsx("div", { className: css.tableInner, children: _jsxs("table", { className: css.table, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", {}), orderedDays.map((day, i) => {
|
|
30
|
+
return (_jsx("div", { ref: ref, className: css.opening, "data-opening": "", "data-tags": t(lang, tagCode), children: _jsx("div", { className: css.tableOuter, children: _jsx("div", { className: css.tableInner, children: _jsxs("table", { className: css.table, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", {}), orderedDays.map((day, i) => {
|
|
31
31
|
const dayNumber = new Date();
|
|
32
32
|
dayNumber.setDate(dayNumber.getDate() + i);
|
|
33
33
|
const weekDay = t(lang, `opening.days.${day.dayType}`);
|
|
@@ -117,7 +117,7 @@ const Pois = React.forwardRef(({ pois }, ref) => {
|
|
|
117
117
|
if (!flattenedPois.length) {
|
|
118
118
|
return null;
|
|
119
119
|
}
|
|
120
|
-
return (_jsx("div", { className: css.pois, children: _jsx("div", { className: css.inner, children: pois.map((zone) => {
|
|
120
|
+
return (_jsx("div", { className: css.pois, "data-pois": "", children: _jsx("div", { className: css.inner, children: pois.map((zone) => {
|
|
121
121
|
const { name, lifts = [], trails = [], activities = [], interconnections = [], } = zone;
|
|
122
122
|
const zonePois = [
|
|
123
123
|
...interconnections,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"road-condition.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/road-condition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"road-condition.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/road-condition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,aAAa,8EA8FlB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -14,7 +14,7 @@ const RoadCondition = React.forwardRef(({ resortAccess }, ref) => {
|
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
const { roadConditions } = resortAccess;
|
|
17
|
-
return (_jsxs("div", { ref: ref, className: css.conditions, "data-tags": t(lang, "road-conditions.navigation-title"), children: [_jsx("div", { className: css.title, dangerouslySetInnerHTML: { __html: t(lang, "road-conditions.title") } }), roadConditions.map(({ id, name, status, roadInfo, equipment, surface, number }) => {
|
|
17
|
+
return (_jsxs("div", { ref: ref, className: css.conditions, "data-road-conditions": "", "data-tags": t(lang, "road-conditions.navigation-title"), children: [_jsx("div", { className: css.title, dangerouslySetInnerHTML: { __html: t(lang, "road-conditions.title") } }), roadConditions.map(({ id, name, status, roadInfo, equipment, surface, number }) => {
|
|
18
18
|
const roadInfoData = roadInfo?.data?.find(({ language }) => {
|
|
19
19
|
const _lang = lang === "fr" ? "fr_FR" : "en_US";
|
|
20
20
|
return language === _lang;
|
|
@@ -30,7 +30,7 @@ const TodaysTips = React.forwardRef(({ resortOpening }, ref) => {
|
|
|
30
30
|
const classes = classNames(css.tips, {
|
|
31
31
|
[css.empty]: isEmpty,
|
|
32
32
|
});
|
|
33
|
-
return (_jsxs("div", { ref: ref, className: classes, children: [_jsx("div", { className: css.title, dangerouslySetInnerHTML: { __html: t(lang, "todays-tips.title") } }), _jsx("div", { ref: textRef, className: css.text, dangerouslySetInnerHTML: { __html: text.data } })] }));
|
|
33
|
+
return (_jsxs("div", { ref: ref, "data-todays-tips": "", className: classes, children: [_jsx("div", { className: css.title, dangerouslySetInnerHTML: { __html: t(lang, "todays-tips.title") } }), _jsx("div", { ref: textRef, className: css.text, dangerouslySetInnerHTML: { __html: text.data } })] }));
|
|
34
34
|
});
|
|
35
35
|
TodaysTips.displayName = "TodaysTips";
|
|
36
36
|
export default TodaysTips;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weather.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/weather.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,eAAe,EAAY,MAAM,UAAU,CAAC;AAK1D,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"weather.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/lumiplan/weather/weather.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,eAAe,EAAY,MAAM,UAAU,CAAC;AAK1D,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,OAAO,8EA+GZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
|
|
@@ -35,7 +35,7 @@ const Weather = React.forwardRef(({ weather }, ref) => {
|
|
|
35
35
|
const forecast = forecastData?.data;
|
|
36
36
|
const { weatherInfos } = weatherZones[currentZoneIndex];
|
|
37
37
|
const days = weatherInfos.slice(0, 4);
|
|
38
|
-
return (_jsxs("div", { ref: ref, className: css.weather, "data-tags": t(lang, "weather.title"), children: [_jsx("div", { className: css.forecast, dangerouslySetInnerHTML: { __html: forecast } }), _jsx(Zones, { weatherZones: weatherZones, currentZoneIndex: currentZoneIndex, setCurrentZoneIndex: setCurrentZoneIndex }), _jsx(Days, { days: days, currentDayIndex: currentDayIndex, setCurrentDayIndex: setCurrentDayIndex, lang: lang }), weatherZones.map((zone, i) => {
|
|
38
|
+
return (_jsxs("div", { ref: ref, className: css.weather, "data-weather": "", "data-tags": t(lang, "weather.title"), children: [_jsx("div", { className: css.forecast, dangerouslySetInnerHTML: { __html: forecast } }), _jsx(Zones, { weatherZones: weatherZones, currentZoneIndex: currentZoneIndex, setCurrentZoneIndex: setCurrentZoneIndex }), _jsx(Days, { days: days, currentDayIndex: currentDayIndex, setCurrentDayIndex: setCurrentDayIndex, lang: lang }), weatherZones.map((zone, i) => {
|
|
39
39
|
const { weatherInfos, name, altitude } = zone;
|
|
40
40
|
const { value, unit } = altitude;
|
|
41
41
|
const days = weatherInfos.slice(0, 4);
|