ode-explorer 1.4.15 → 1.4.17

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.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Exploration des ressources</title>
7
7
  <link rel="icon" id="favicon" href="" />
8
- <link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css" />
8
+ <link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css?v=b01d8aa9" />
9
9
  <script type="module" crossorigin src="/index.js"></script>
10
10
  </head>
11
11
 
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ var __privateMethod = (obj, member, method) => {
38
38
  __accessCheck(obj, member, "access private method");
39
39
  return method;
40
40
  };
41
- import { odeServices, LAYER_NAME, SnipletsService, DocumentHelper, StringUtils as StringUtils$1, ERROR_CODE, FOLDER, SORT_ORDER, ACTION } from "/assets/js/edifice-ts-client/index.js";
41
+ import { odeServices, LAYER_NAME, SnipletsService, DocumentHelper, StringUtils as StringUtils$1, ERROR_CODE, FOLDER, SORT_ORDER, ACTION } from "/assets/js/edifice-ts-client/index.js?v=b01d8aa9";
42
42
  var require_index = __commonJS({
43
43
  "index.js"(exports, module) {
44
44
  var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _setOptions, setOptions_fn, _dispatch, dispatch_fn, _d, _queries, _e2, _observers2, _defaultOptions2, _mutationCache, _retryer2, _dispatch2, dispatch_fn2, _f, _mutations, _mutationId, _resuming, _g, _queryCache, _mutationCache2, _defaultOptions3, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _executeFetch, executeFetch_fn, _updateStaleTimeout, updateStaleTimeout_fn, _computeRefetchInterval, computeRefetchInterval_fn, _updateRefetchInterval, updateRefetchInterval_fn, _updateTimers, updateTimers_fn, _clearStaleTimeout, clearStaleTimeout_fn, _clearRefetchInterval, clearRefetchInterval_fn, _updateQuery, updateQuery_fn, _notify, notify_fn, _i, _client2, _currentResult2, _currentMutation, _mutateOptions, _updateResult, updateResult_fn, _notify2, notify_fn2, _j;
@@ -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({
@@ -66141,7 +66145,7 @@ void main()
66141
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(() => {
66142
66146
  setIsCollapsed(!isCollapsed);
66143
66147
  }, [isCollapsed]), handleLogout = async () => {
66144
- await odeServices.session().logout(), console.log("Logout" + (theme == null ? void 0 : theme.logoutCallback)), window.location.href = (theme == null ? void 0 : theme.logoutCallback) ?? "/auth/login";
66148
+ await odeServices.session().logout(), window.location.href = (theme == null ? void 0 : theme.logoutCallback) ?? "/auth/login";
66145
66149
  };
66146
66150
  return reactExports.useMemo(() => ({
66147
66151
  title,
@@ -66946,7 +66950,7 @@ void main()
66946
66950
  /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { id: ariaLabelId, className: "modal-title", tabIndex: -1, children }),
66947
66951
  /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { ref: closeButtonRef, "aria-label": t2("close"), color: "tertiary", icon: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgClose$1, {}), type: "button", variant: "ghost", title: t2("close"), onClick: onModalClose, className: "btn-close" })
66948
66952
  ] });
66949
- }, ModalHeader$1 = ModalHeader, ModalSubtitle = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "modal-subtitle", children: props.children }), ModalSubtitle$1 = ModalSubtitle, Root$3 = /* @__PURE__ */ reactExports.forwardRef((props, ref2) => {
66953
+ }, ModalHeader$1 = ModalHeader, ModalSubtitle = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "modal-subtitle", children: props.children }), ModalSubtitle$1 = ModalSubtitle, Root$4 = /* @__PURE__ */ reactExports.forwardRef((props, ref2) => {
66950
66954
  const {
66951
66955
  id: id2,
66952
66956
  isOpen,
@@ -66997,7 +67001,7 @@ void main()
66997
67001
  opacity: 0.65
66998
67002
  } })
66999
67003
  ] })) });
67000
- }), Modal = /* @__PURE__ */ Object.assign(Root$3, {
67004
+ }), Modal = /* @__PURE__ */ Object.assign(Root$4, {
67001
67005
  Header: ModalHeader$1,
67002
67006
  Subtitle: ModalSubtitle$1,
67003
67007
  Body: ModalBody$1,
@@ -67184,7 +67188,7 @@ void main()
67184
67188
  label,
67185
67189
  badgeContent ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "badge text-bg-secondary rounded-pill", children: badgeContent }) : !hideCarret && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterUp$1, { width: 16, height: 16, className: "dropdown-toggle-caret" })
67186
67190
  ] });
67187
- }), DropdownTrigger$1 = DropdownTrigger, Root$2 = ({
67191
+ }), DropdownTrigger$1 = DropdownTrigger, Root$3 = ({
67188
67192
  children,
67189
67193
  block,
67190
67194
  overflow = true,
@@ -67219,7 +67223,7 @@ void main()
67219
67223
  return reactExports.useEffect(() => {
67220
67224
  onToggle == null || onToggle(visible);
67221
67225
  }, [visible]), /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownContext.Provider, { value, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ref2, className: dropdown, children: typeof children == "function" ? children(triggerProps, itemRefs) : children }) });
67222
- }, Dropdown = /* @__PURE__ */ Object.assign(Root$2, {
67226
+ }, Dropdown = /* @__PURE__ */ Object.assign(Root$3, {
67223
67227
  Trigger: DropdownTrigger$1,
67224
67228
  Menu: DropdownMenu$1,
67225
67229
  Item: DropdownItem$1,
@@ -67505,7 +67509,7 @@ void main()
67505
67509
  }, CardTitle$1 = CardTitle, CardUser = ({
67506
67510
  userSrc,
67507
67511
  creatorName
67508
- }) => userSrc ? /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar$1, { alt: creatorName || "", size: "xs", src: userSrc, variant: "circle", width: "24", height: "24" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneProfile$1, {}), CardUser$1 = CardUser, Root$1 = /* @__PURE__ */ reactExports.forwardRef(({
67512
+ }) => userSrc ? /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar$1, { alt: creatorName || "", size: "xs", src: userSrc, variant: "circle", width: "24", height: "24" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneProfile$1, {}), CardUser$1 = CardUser, Root$2 = /* @__PURE__ */ reactExports.forwardRef(({
67509
67513
  app,
67510
67514
  isSelectable = true,
67511
67515
  isClickable = true,
@@ -67532,7 +67536,7 @@ void main()
67532
67536
  /* @__PURE__ */ jsxRuntimeExports.jsx(Card.Header, {}),
67533
67537
  typeof children == "function" ? children(appCode) : children
67534
67538
  ] }) });
67535
- }), Card = /* @__PURE__ */ Object.assign(Root$1, {
67539
+ }), Card = /* @__PURE__ */ Object.assign(Root$2, {
67536
67540
  Title: CardTitle$1,
67537
67541
  Text: CardText$1,
67538
67542
  Image: CardImage$1,
@@ -67606,7 +67610,7 @@ void main()
67606
67610
  ] }),
67607
67611
  requiredState && /* @__PURE__ */ jsxRuntimeExports.jsx("em", { className: "required", children: requiredText })
67608
67612
  ] });
67609
- }), Label$1 = Label, Root$4 = /* @__PURE__ */ reactExports.forwardRef(({
67613
+ }), Label$1 = Label, Root$1 = /* @__PURE__ */ reactExports.forwardRef(({
67610
67614
  children,
67611
67615
  className,
67612
67616
  id: id2,
@@ -67624,7 +67628,7 @@ void main()
67624
67628
  status
67625
67629
  }), [id2, isOptional, isReadOnly, isRequired, status]);
67626
67630
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Context.Provider, { value: values, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ref2, className, ...restProps, children }) });
67627
- }), FormControl = /* @__PURE__ */ Object.assign(Root$4, {
67631
+ }), FormControl = /* @__PURE__ */ Object.assign(Root$1, {
67628
67632
  Label: Label$1,
67629
67633
  Input: Input$1,
67630
67634
  Text: FormText$1
@@ -72803,7 +72807,7 @@ Use "options.replacer" or "options.ignoreUnknown"
72803
72807
  "container-fluid": !headless,
72804
72808
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
72805
72809
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
72806
- }), 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: {
72807
72811
  position: "top-right"
72808
72812
  } });
72809
72813
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 02/08/2024 17:01:27
1
+ ode-explorer=1.0-b2school-SNAPSHOT 09/09/2024 16:12:36
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.15",
3
+ "version": "1.4.17",
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": "1.5.16",
40
- "@edifice-ui/react": "1.5.16",
39
+ "@edifice-ui/icons": "1.5.17",
40
+ "@edifice-ui/react": "1.5.18",
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": "1.4.0",
69
- "edifice-ts-client": "1.5.16",
68
+ "edifice-bootstrap": "1.5.17",
69
+ "edifice-ts-client": "1.5.17",
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-import": "2.29.1",