ode-explorer 1.4.18 → 1.4.19

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=c5b92ed0" />
8
+ <link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css?v=4fe9d0fa" />
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=c5b92ed0";
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=4fe9d0fa";
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;
@@ -65956,7 +65956,7 @@ void main()
65956
65956
  appCode
65957
65957
  });
65958
65958
  reactExports.useEffect(() => {
65959
- var _a22, _b2, _c2, _d2, _e3, _f2, _g2, _h2, _i2;
65959
+ var _a22, _b2, _c2, _d2, _e3, _f2, _g2, _h2, _i2, _j2, _k;
65960
65960
  const favicon = document.getElementById("favicon");
65961
65961
  favicon.href = `${(_b2 = (_a22 = confQuery == null ? void 0 : confQuery.data) == null ? void 0 : _a22.theme) == null ? void 0 : _b2.basePath}/img/illustrations/favicon.ico`;
65962
65962
  const bootstrapVersion = (_e3 = (_d2 = (_c2 = confQuery == null ? void 0 : confQuery.data) == null ? void 0 : _c2.theme) == null ? void 0 : _d2.bootstrapVersion) == null ? void 0 : _e3.split("-"), dataProduct = bootstrapVersion ? bootstrapVersion[bootstrapVersion.length - 1] : void 0;
@@ -65965,7 +65965,8 @@ void main()
65965
65965
  value: (_g2 = (_f2 = confQuery == null ? void 0 : confQuery.data) == null ? void 0 : _f2.theme) == null ? void 0 : _g2.skinName
65966
65966
  }, {
65967
65967
  data: "data-theme",
65968
- value: (_i2 = (_h2 = confQuery == null ? void 0 : confQuery.data) == null ? void 0 : _h2.theme) == null ? void 0 : _i2.themeName
65968
+ // WB2-1885, add npmTheme for dynamic theme on springboard
65969
+ value: ((_i2 = (_h2 = confQuery == null ? void 0 : confQuery.data) == null ? void 0 : _h2.theme) == null ? void 0 : _i2.npmTheme) ?? ((_k = (_j2 = confQuery == null ? void 0 : confQuery.data) == null ? void 0 : _j2.theme) == null ? void 0 : _k.themeName)
65969
65970
  }, {
65970
65971
  data: "data-product",
65971
65972
  value: dataProduct
@@ -67531,6 +67532,18 @@ void main()
67531
67532
  })();
67532
67533
  }, [hasSupportWorkflow]), null;
67533
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
+ }
67534
67547
  const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
67535
67548
  src,
67536
67549
  alt,
@@ -73022,7 +73035,7 @@ void main()
73022
73035
  handleConsultCookies,
73023
73036
  handleCloseCookiesConsent
73024
73037
  } = useCookiesConsent();
73025
- useZendeskGuide();
73038
+ useZendeskGuide(), useCantoo();
73026
73039
  const classes2 = clsx("d-flex flex-column bg-white", {
73027
73040
  "container-fluid": !headless,
73028
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 20/09/2024 12:43:39
1
+ ode-explorer=1.0-b2school-SNAPSHOT 04/10/2024 18:15:35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.18",
3
+ "version": "1.4.19",
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.19",
40
- "@edifice-ui/react": "1.5.19",
39
+ "@edifice-ui/icons": "1.5.21",
40
+ "@edifice-ui/react": "1.5.21",
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.5.19",
69
- "edifice-ts-client": "1.5.19",
68
+ "edifice-bootstrap": "1.5.21",
69
+ "edifice-ts-client": "1.5.21",
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-import": "2.29.1",