ublo-lib 1.47.71 → 1.47.72

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.
@@ -10,7 +10,8 @@ type Link = {
10
10
  };
11
11
  type Props = {
12
12
  customLinks?: Record<string, Link>;
13
+ showMseMLink?: boolean;
13
14
  };
14
- declare const AdminLinks: ({ customLinks }: Props) => import("react/jsx-runtime").JSX.Element;
15
+ declare const AdminLinks: ({ customLinks, showMseMLink }: Props) => import("react/jsx-runtime").JSX.Element;
15
16
  export default AdminLinks;
16
17
  //# sourceMappingURL=admin-links.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin-links.d.ts","sourceRoot":"","sources":["../../../../src/common/components/admin-links/admin-links.tsx"],"names":[],"mappings":"AAKA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,GAAG,EAAE,GAAG,CAAC;KACV;CACF;AAED,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CACpC,CAAC;AAeF,QAAA,MAAM,UAAU,oBAAqB,KAAK,4CA2GzC,CAAC;AAOF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"admin-links.d.ts","sourceRoot":"","sources":["../../../../src/common/components/admin-links/admin-links.tsx"],"names":[],"mappings":"AAKA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,GAAG,EAAE,GAAG,CAAC;KACV;CACF;AAED,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAeF,QAAA,MAAM,UAAU,kCAA0C,KAAK,4CA6G9D,CAAC;AAOF,eAAe,UAAU,CAAC"}
@@ -5,18 +5,20 @@ import styles from "./admin-links.module.css";
5
5
  const ToggleIcon = () => {
6
6
  return (_jsx("svg", { viewBox: "0 0 24 24", width: "24", height: "24", className: styles.toggleIcon, children: _jsx("path", { d: "M19.44 12.99l-.01.02c.04-.33.08-.67.08-1.01 0-.34-.03-.66-.07-.99l.01.02 2.44-1.92-2.43-4.22-2.87 1.16.01.01c-.52-.4-1.09-.74-1.71-1h.01L14.44 2H9.57l-.44 3.07h.01c-.62.26-1.19.6-1.71 1l.01-.01-2.88-1.17-2.44 4.22 2.44 1.92.01-.02c-.04.33-.07.65-.07.99 0 .34.03.68.08 1.01l-.01-.02-2.1 1.65-.33.26 2.43 4.2 2.88-1.15-.02-.04c.53.41 1.1.75 1.73 1.01h-.03L9.58 22h4.85s.03-.18.06-.42l.38-2.65h-.01c.62-.26 1.2-.6 1.73-1.01l-.02.04 2.88 1.15 2.43-4.2s-.14-.12-.33-.26l-2.11-1.66zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" }) }));
7
7
  };
8
- const AdminLinks = ({ customLinks }) => {
8
+ const AdminLinks = ({ customLinks, showMseMLink = true }) => {
9
9
  const { lang, cmsMode, config } = useUbloContext();
10
10
  const [open, setOpen] = React.useState(false);
11
11
  const [subsOpen, setSubsOpen] = React.useState(false);
12
12
  const hasLangPrefix = config.langPrefix.links;
13
13
  const { plausibleLink } = config;
14
14
  const links = {
15
- msemAdmin: {
16
- name: "Administration MseM",
17
- onClick: "https://admin.mon-sejour-en-montagne.com/",
18
- target: "_blank",
19
- },
15
+ ...(showMseMLink !== false && {
16
+ msemAdmin: {
17
+ name: "Administration MseM",
18
+ onClick: "https://admin.mon-sejour-en-montagne.com/",
19
+ target: "_blank",
20
+ },
21
+ }),
20
22
  tutoriels: {
21
23
  name: "Tutoriels",
22
24
  onClick: "https://www.valraiso.net/toolbox/?auth=my-toolbox&filter=tools",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.71",
3
+ "version": "1.47.72",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",