ublo-lib 1.37.5 → 1.37.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/components/admin-links/admin-links.module.css +1 -1
- package/es/common/components/editable-map/helper.module.css +1 -1
- package/es/common/components/editable-map/icon-picker.module.css +1 -1
- package/es/common/components/image-with-loader/image-with-loader.d.ts +22 -2
- package/es/common/components/image-with-loader/image-with-loader.d.ts.map +1 -1
- package/es/common/components/image-with-loader/image-with-loader.js +3 -2
- package/es/common/components/scrolling-carousel/scrolling-carousel.d.ts.map +1 -1
- package/es/common/components/scrolling-carousel/scrolling-carousel.js +6 -7
- package/es/common/hooks/use-packages.js +1 -1
- package/es/esf/components/instructors-book/sheet.d.ts.map +1 -1
- package/es/esf/components/instructors-book/sheet.js +1 -1
- package/es/esf/components/period-picker/period-picker.module.css +1 -1
- package/es/future/components/plausible/services/callback.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ svg.selectedIcon {
|
|
|
37
37
|
padding-top: 6px;
|
|
38
38
|
text-align: center;
|
|
39
39
|
font-weight: 700;
|
|
40
|
-
font-family: var(--ds-sans-serif-font, "
|
|
40
|
+
font-family: var(--ds-sans-serif-font, "Montserrat", sans-serif);
|
|
41
41
|
font-size: 12px;
|
|
42
42
|
background-color: white;
|
|
43
43
|
z-index: 1;
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "alt" | "src" | "height" | "width" | "loading" | "srcSet"> & {
|
|
3
|
+
src: string | import("next/dist/shared/lib/get-img-props").StaticImport;
|
|
4
|
+
alt: string;
|
|
5
|
+
width?: number | `${number}`;
|
|
6
|
+
height?: number | `${number}`;
|
|
7
|
+
fill?: boolean;
|
|
8
|
+
loader?: import("next/image").ImageLoader;
|
|
9
|
+
quality?: number | `${number}`;
|
|
10
|
+
priority?: boolean;
|
|
11
|
+
loading?: "eager" | "lazy";
|
|
12
|
+
placeholder?: import("next/dist/shared/lib/get-img-props").PlaceholderValue;
|
|
13
|
+
blurDataURL?: string;
|
|
14
|
+
unoptimized?: boolean;
|
|
15
|
+
onLoadingComplete?: import("next/dist/shared/lib/get-img-props").OnLoadingComplete;
|
|
16
|
+
layout?: string;
|
|
17
|
+
objectFit?: string;
|
|
18
|
+
objectPosition?: string;
|
|
19
|
+
lazyBoundary?: string;
|
|
20
|
+
lazyRoot?: string;
|
|
21
|
+
} & React.RefAttributes<HTMLImageElement>>;
|
|
22
|
+
export default _default;
|
|
3
23
|
//# sourceMappingURL=image-with-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-with-loader.d.ts","sourceRoot":"","sources":["../../../../src/common/components/image-with-loader/image-with-loader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-with-loader.d.ts","sourceRoot":"","sources":["../../../../src/common/components/image-with-loader/image-with-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;AAK/B,wBAAiD"}
|
|
@@ -3,12 +3,13 @@ import * as React from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Image from "next/image";
|
|
5
5
|
import styles from "./image-with-loader.module.css";
|
|
6
|
-
export default
|
|
6
|
+
export default React.forwardRef(ImageWithLoader);
|
|
7
|
+
function ImageWithLoader(props, ref) {
|
|
7
8
|
const [loading, setLoading] = React.useState(true);
|
|
8
9
|
const classes = classNames(styles.image, props.className);
|
|
9
10
|
const onImageLoad = (e) => {
|
|
10
11
|
setLoading(false);
|
|
11
12
|
props?.onLoad?.(e);
|
|
12
13
|
};
|
|
13
|
-
return (_jsx(Image, { alt: "", ...props, className: classes, "data-loaded": !loading, onLoad: onImageLoad }));
|
|
14
|
+
return (_jsx(Image, { alt: "", ref: ref, ...props, className: classes, "data-loaded": !loading, onLoad: onImageLoad }));
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrolling-carousel.d.ts","sourceRoot":"","sources":["../../../../src/common/components/scrolling-carousel/scrolling-carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAKF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"scrolling-carousel.d.ts","sourceRoot":"","sources":["../../../../src/common/components/scrolling-carousel/scrolling-carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAKF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA0HvE"}
|
|
@@ -60,20 +60,19 @@ export default function ScrollingCarousel({ className, children }) {
|
|
|
60
60
|
}, []);
|
|
61
61
|
React.useEffect(() => {
|
|
62
62
|
const zone = zoneRef.current;
|
|
63
|
-
let observer = null;
|
|
64
63
|
if (!cmsMode && zone) {
|
|
65
|
-
observer = new MutationObserver(resetScroll);
|
|
64
|
+
const observer = new MutationObserver(resetScroll);
|
|
66
65
|
observer.observe(zone, {
|
|
67
66
|
attributes: true,
|
|
68
67
|
childList: true,
|
|
69
68
|
subtree: true,
|
|
70
69
|
});
|
|
70
|
+
return () => {
|
|
71
|
+
if (observer) {
|
|
72
|
+
observer.disconnect();
|
|
73
|
+
}
|
|
74
|
+
};
|
|
71
75
|
}
|
|
72
|
-
return () => {
|
|
73
|
-
if (observer) {
|
|
74
|
-
observer.disconnect();
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
76
|
}, [cmsMode]);
|
|
78
77
|
React.useEffect(() => {
|
|
79
78
|
refreshControls();
|
|
@@ -14,7 +14,7 @@ const buttonStyles = `
|
|
|
14
14
|
margin: 0px auto;
|
|
15
15
|
padding: 15px;
|
|
16
16
|
color: rgb(255, 255, 255);
|
|
17
|
-
font-family:
|
|
17
|
+
font-family: var(--ublo-content-font);
|
|
18
18
|
text-transform: uppercase;
|
|
19
19
|
font-weight: 700;
|
|
20
20
|
background-color: var(--ublo-primary-color, #073FF8);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAaA;;;;;;
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAaA;;;;;;4CAwKC"}
|
|
@@ -29,7 +29,7 @@ export default function Sheet({ instructor, popup, formFields, formSendFunction,
|
|
|
29
29
|
[css.containerPopup]: popup,
|
|
30
30
|
});
|
|
31
31
|
const key = `${lang}-${path}${prenom}-${nom}`;
|
|
32
|
-
return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.content, children: [!popup && bookUrl && (_jsxs(Link, { href: bookUrl, className: classNames(buttonCss.button, buttonCss.link), children: [_jsx(Icons.ChevronLeft, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(Icons.Loader2, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width:
|
|
32
|
+
return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.content, children: [!popup && bookUrl && (_jsxs(Link, { href: bookUrl, className: classNames(buttonCss.button, buttonCss.link), children: [_jsx(Icons.ChevronLeft, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(Icons.Loader2, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: 200, height: 280, quality: 100 }, uri)] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(Icons.User, { className: css.imagePlaceholderIcon }) })) }), _jsxs("div", { className: css.information, children: [_jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [Utils.formatNames(prenom), " "] }), _jsx("span", { className: css.lastName, children: Utils.formatNames(nom) })] }), disciplines && (_jsxs("div", { className: css.activities, children: [_jsx("div", { className: css.activitiesTitle, children: message(lang, "activities") }), _jsx("div", { className: css.activitiesList, children: disciplines.map((discipline, i) => {
|
|
33
33
|
const { code, label } = discipline;
|
|
34
34
|
const length = disciplines.length;
|
|
35
35
|
return (_jsxs("span", { className: css.activity, children: [_jsx("span", { children: label }), i < length - 2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/plausible/services/callback.ts"],"names":[],"mappings":"AAEA,KAAK,IAAI,GAAG;IACV,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/plausible/services/callback.ts"],"names":[],"mappings":"AAEA,KAAK,IAAI,GAAG;IACV,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAYF,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,YAAY,EAAE,WAAW,EACzB,QAAQ,EACR,KAAU,EACV,OAAO,EACP,MAAM,EACN,QAAgB,GACjB,EAAE,KAAK,QA6HP"}
|