ode-explorer 1.4.14-develop-wl.202407231629 → 1.4.15-develop.202408201506

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/dist/index.js CHANGED
@@ -19638,10 +19638,14 @@ to {
19638
19638
  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
19639
19639
  const win = getWindow$2(scrollableAncestor);
19640
19640
  if (isBody) {
19641
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
19641
+ const frameElement = getFrameElement(win);
19642
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
19642
19643
  }
19643
19644
  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
19644
19645
  }
19646
+ function getFrameElement(win) {
19647
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
19648
+ }
19645
19649
  function getCssDimensions(element) {
19646
19650
  const css = getComputedStyle$3(element);
19647
19651
  let width = parseFloat(css.width) || 0;
@@ -19735,7 +19739,7 @@ to {
19735
19739
  const win = getWindow$2(domElement);
19736
19740
  const offsetWin = offsetParent && isElement$2(offsetParent) ? getWindow$2(offsetParent) : offsetParent;
19737
19741
  let currentWin = win;
19738
- let currentIFrame = currentWin.frameElement;
19742
+ let currentIFrame = getFrameElement(currentWin);
19739
19743
  while (currentIFrame && offsetParent && offsetWin !== currentWin) {
19740
19744
  const iframeScale = getScale(currentIFrame);
19741
19745
  const iframeRect = currentIFrame.getBoundingClientRect();
@@ -19749,7 +19753,7 @@ to {
19749
19753
  x2 += left2;
19750
19754
  y2 += top2;
19751
19755
  currentWin = getWindow$2(currentIFrame);
19752
- currentIFrame = currentWin.frameElement;
19756
+ currentIFrame = getFrameElement(currentWin);
19753
19757
  }
19754
19758
  }
19755
19759
  return rectToClientRect$1({
@@ -25710,6 +25714,7 @@ to {
25710
25714
  parameterLimit: 1e3,
25711
25715
  parseArrays: true,
25712
25716
  plainObjects: false,
25717
+ strictDepth: false,
25713
25718
  strictNullHandling: false
25714
25719
  };
25715
25720
  var interpretNumericEntities = function(str) {
@@ -25836,6 +25841,9 @@ to {
25836
25841
  keys.push(segment[1]);
25837
25842
  }
25838
25843
  if (segment) {
25844
+ if (options.strictDepth === true) {
25845
+ throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
25846
+ }
25839
25847
  keys.push("[" + key.slice(segment.index) + "]");
25840
25848
  }
25841
25849
  return parseObject(keys, val, options, valuesParsed);
@@ -25882,6 +25890,7 @@ to {
25882
25890
  parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults$3.parameterLimit,
25883
25891
  parseArrays: opts.parseArrays !== false,
25884
25892
  plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults$3.plainObjects,
25893
+ strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults$3.strictDepth,
25885
25894
  strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$3.strictNullHandling
25886
25895
  };
25887
25896
  };
@@ -66129,12 +66138,14 @@ void main()
66129
66138
  appCode
66130
66139
  } = useOdeClient(), {
66131
66140
  t: t2
66132
- } = useTranslation(), title = t2(appCode), [isCollapsed, setIsCollapsed] = reactExports.useState(true), [appsRef, isAppsHovered] = useHover(), popoverAppsId = reactExports.useId(), popoverSearchId = reactExports.useId(), userAvatar = avatar, userName = user == null ? void 0 : user.username, welcomeUser = t2("welcome", {
66141
+ } = useTranslation(), {
66142
+ theme
66143
+ } = useOdeTheme(), title = t2(appCode), [isCollapsed, setIsCollapsed] = reactExports.useState(true), [appsRef, isAppsHovered] = useHover(), popoverAppsId = reactExports.useId(), popoverSearchId = reactExports.useId(), userAvatar = avatar, userName = user == null ? void 0 : user.username, welcomeUser = t2("welcome", {
66133
66144
  username: user == null ? void 0 : user.firstName
66134
66145
  }), bookmarkedApps = useBookmark(), communityWorkflow = useHasWorkflow("net.atos.entng.community.controllers.CommunityController|view"), conversationWorflow = useHasWorkflow("org.entcore.conversation.controllers.ConversationController|view"), searchWorkflow = useHasWorkflow("fr.openent.searchengine.controllers.SearchEngineController|view"), toggleCollapsedNav = reactExports.useCallback(() => {
66135
66146
  setIsCollapsed(!isCollapsed);
66136
66147
  }, [isCollapsed]), handleLogout = async () => {
66137
- await odeServices.session().logout();
66148
+ await odeServices.session().logout(), console.log("Logout" + (theme == null ? void 0 : theme.logoutCallback)), window.location.href = (theme == null ? void 0 : theme.logoutCallback) ?? "/auth/login";
66138
66149
  };
66139
66150
  return reactExports.useMemo(() => ({
66140
66151
  title,
@@ -67943,7 +67954,8 @@ void main()
67943
67954
  }, ref2) => {
67944
67955
  const classes2 = clsx("navbar-brand d-none d-md-block");
67945
67956
  return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { ref: ref2, className: classes2, href: "/timeline/timeline", "aria-label": translate2, children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: "logo", src, alt: `logo ${is1d ? "ONE" : "NEO"}`, width: "300", height: "52" }) });
67946
- }), Logo$1 = Logo, PopoverBody = ({
67957
+ }), Logo$1 = Logo;
67958
+ const PopoverBody = ({
67947
67959
  children,
67948
67960
  className
67949
67961
  }) => {
@@ -72795,7 +72807,7 @@ Use "options.replacer" or "options.ignoreUnknown"
72795
72807
  "container-fluid": !headless,
72796
72808
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
72797
72809
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
72798
- }), renderHeader = headless ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "info", className: "m-12", isConfirm: true, position: "bottom-right", button: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t2("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t2("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsxRuntimeExports.jsx(Ie$2, { containerClassName: "toaster-container", toastOptions: {
72810
+ }), renderHeader = headless ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "info", className: "m-12 rgpd", isConfirm: true, position: "bottom-right", button: /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t2("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t2("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsxRuntimeExports.jsx(Ie$2, { containerClassName: "toaster-container", toastOptions: {
72799
72811
  position: "top-right"
72800
72812
  } });
72801
72813
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 23/07/2024 16:29:36
1
+ ode-explorer=1.0-b2school-SNAPSHOT 20/08/2024 15:06:53
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.14-develop-wl.202407231629",
3
+ "version": "1.4.15-develop.202408201506",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {
@@ -36,8 +36,8 @@
36
36
  ]
37
37
  },
38
38
  "dependencies": {
39
- "@edifice-ui/icons": "develop-wl",
40
- "@edifice-ui/react": "develop-wl",
39
+ "@edifice-ui/icons": "develop",
40
+ "@edifice-ui/react": "develop",
41
41
  "@react-spring/web": "9.7.3",
42
42
  "@tanstack/react-query": "5.8.4",
43
43
  "clsx": "2.1.0",
@@ -65,8 +65,8 @@
65
65
  "@vitejs/plugin-react-swc": "3.5.0",
66
66
  "concurrently": "8.2.2",
67
67
  "csstype": "3.1.3",
68
- "edifice-bootstrap": "develop-wl",
69
- "edifice-ts-client": "develop-wl",
68
+ "edifice-bootstrap": "develop",
69
+ "edifice-ts-client": "develop",
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-import": "2.29.1",