ode-explorer 1.4.18-develop.202409241510 → 1.4.19-develop.202410071727

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?v=7f6efabf" />
8
+ <link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css?v=0d873e96" />
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?v=7f6efabf";
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=0d873e96";
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;
@@ -67532,6 +67532,18 @@ void main()
67532
67532
  })();
67533
67533
  }, [hasSupportWorkflow]), null;
67534
67534
  }
67535
+ function useCantoo() {
67536
+ const hasWorkflow = useHasWorkflow("org.entcore.portal.controllers.PortalController|optionalFeatureCantoo");
67537
+ return reactExports.useEffect(() => {
67538
+ hasWorkflow && !document.getElementById("cantoo-edifice-script") && (async () => {
67539
+ const cantooResponse = await odeServices.http().get("/optionalFeature/cantoo");
67540
+ if (cantooResponse && cantooResponse.scriptPath) {
67541
+ const script = document.createElement("script");
67542
+ script.id = "cantoo-edifice-script", script.src = cantooResponse.scriptPath, script.async = true, document.body.appendChild(script);
67543
+ }
67544
+ })();
67545
+ }, [hasWorkflow]), null;
67546
+ }
67535
67547
  const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
67536
67548
  src,
67537
67549
  alt,
@@ -73023,7 +73035,7 @@ void main()
73023
73035
  handleConsultCookies,
73024
73036
  handleCloseCookiesConsent
73025
73037
  } = useCookiesConsent();
73026
- useZendeskGuide();
73038
+ useZendeskGuide(), useCantoo();
73027
73039
  const classes2 = clsx("d-flex flex-column bg-white", {
73028
73040
  "container-fluid": !headless,
73029
73041
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 24/09/2024 15:10:56
1
+ ode-explorer=1.0-b2school-SNAPSHOT 07/10/2024 17:27:46
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.18-develop.202409241510",
3
+ "version": "1.4.19-develop.202410071727",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {