ode-explorer 1.4.1-develop-b2school.202403141630 → 1.4.1-develop-pedago.202403191442

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
@@ -57163,22 +57163,6 @@ class ResizePlugin {
57163
57163
  }
57164
57164
  ResizePlugin.extension = ExtensionType.Application;
57165
57165
  extensions$1.add(ResizePlugin);
57166
- DisplayObject.prototype.name = null;
57167
- Container.prototype.getChildByName = function(name, deep) {
57168
- for (let i2 = 0, j2 = this.children.length; i2 < j2; i2++)
57169
- if (this.children[i2].name === name)
57170
- return this.children[i2];
57171
- if (deep)
57172
- for (let i2 = 0, j2 = this.children.length; i2 < j2; i2++) {
57173
- const child = this.children[i2];
57174
- if (!child.getChildByName)
57175
- continue;
57176
- const target = child.getChildByName(name, true);
57177
- if (target)
57178
- return target;
57179
- }
57180
- return null;
57181
- };
57182
57166
  const _tempMatrix = new Matrix();
57183
57167
  DisplayObject.prototype._cacheAsBitmap = false;
57184
57168
  DisplayObject.prototype._cacheData = null;
@@ -57309,6 +57293,22 @@ DisplayObject.prototype._destroyCachedDisplayObject = function() {
57309
57293
  DisplayObject.prototype._cacheAsBitmapDestroy = function(options) {
57310
57294
  this.cacheAsBitmap = false, this.destroy(options);
57311
57295
  };
57296
+ DisplayObject.prototype.name = null;
57297
+ Container.prototype.getChildByName = function(name, deep) {
57298
+ for (let i2 = 0, j2 = this.children.length; i2 < j2; i2++)
57299
+ if (this.children[i2].name === name)
57300
+ return this.children[i2];
57301
+ if (deep)
57302
+ for (let i2 = 0, j2 = this.children.length; i2 < j2; i2++) {
57303
+ const child = this.children[i2];
57304
+ if (!child.getChildByName)
57305
+ continue;
57306
+ const target = child.getChildByName(name, true);
57307
+ if (target)
57308
+ return target;
57309
+ }
57310
+ return null;
57311
+ };
57312
57312
  DisplayObject.prototype.getGlobalPosition = function(point = new Point(), skipUpdate = false) {
57313
57313
  return this.parent ? this.parent.toGlobal(this.position, point, skipUpdate) : (point.x = this.position.x, point.y = this.position.y), point;
57314
57314
  };
@@ -62184,7 +62184,7 @@ const ActionBar$1 = /* @__PURE__ */ reactExports.forwardRef(({
62184
62184
  } = props, getLoadingIcon = () => {
62185
62185
  let icon;
62186
62186
  return loadingIcon ? icon = loadingIcon : icon = /* @__PURE__ */ jsxRuntimeExports.jsx(SvgLoader$1, { ...restProps, "aria-label": "Loading" }), icon;
62187
- }, classes2 = clsx("loading d-flex align-items-center gap-8", {
62187
+ }, classes2 = clsx("loading", {
62188
62188
  "is-loading": isLoading
62189
62189
  }, className);
62190
62190
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes2, role: "status", ref: ref2, children: [
@@ -63085,8 +63085,7 @@ const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
63085
63085
  app,
63086
63086
  size: size2 = "24",
63087
63087
  iconFit = "contain",
63088
- variant = "square",
63089
- className = ""
63088
+ variant = "square"
63090
63089
  }, ref2) => {
63091
63090
  const {
63092
63091
  isIconUrl,
@@ -63104,19 +63103,14 @@ const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
63104
63103
  }, iconFits = {
63105
63104
  "icon-contain": isContain,
63106
63105
  "icon-ratio": isRatio
63107
- }, icon = typeof app == "string" ? app : (app == null ? void 0 : app.icon) !== void 0 ? app.icon : "placeholder", displayName = typeof app != "string" && (app == null ? void 0 : app.displayName) !== void 0 ? app.displayName : "", code = app ? getIconCode(app) : "", isIconURL = isIconUrl(icon), appCode = code || "placeholder";
63108
- if (isIconURL) {
63109
- const classes22 = clsx("h-full", className);
63110
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Image$2, { src: icon, alt: displayName, objectFit: "contain", width: size2, height: size2, className: classes22 });
63111
- }
63112
- const classes2 = clsx("app-icon", {
63106
+ }, icon = typeof app == "string" ? app : (app == null ? void 0 : app.icon) !== void 0 ? app.icon : "placeholder", displayName = typeof app != "string" && (app == null ? void 0 : app.displayName) !== void 0 ? app.displayName : "", code = app ? getIconCode(app) : "", isIconURL = isIconUrl(icon), appCode = code || "placeholder", classes2 = clsx("app-icon", {
63113
63107
  ...iconSizes,
63114
63108
  ...iconVariant,
63115
63109
  ...iconFits,
63116
63110
  [`bg-light-${appCode}`]: appCode && !isContain,
63117
63111
  [`color-app-${appCode}`]: appCode
63118
- }, className);
63119
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes2, style: {
63112
+ });
63113
+ return isIconURL ? /* @__PURE__ */ jsxRuntimeExports.jsx(Image$2, { src: icon, alt: displayName, objectFit: "contain", width: size2, height: size2, className: "h-full" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes2, style: {
63120
63114
  width: size2 + "px",
63121
63115
  height: size2 + "px"
63122
63116
  }, children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { ref: ref2, width: size2, height: size2, role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntimeExports.jsx("use", { xlinkHref: `${iconPath}/apps.svg#${appCode}` }) }) });
@@ -65820,7 +65814,7 @@ function ShareResourceModal({
65820
65814
  /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { message: "Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.", placement: "top", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgInfoCircle$1, { className: "c-pointer", height: "18" }) })
65821
65815
  ] }),
65822
65816
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "col-10", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Combobox$1, { value: searchInputValue, placeholder: searchPlaceholder, isLoading: showSearchLoading(), noResult: showSearchNoResults(), options: searchResults, searchMinLength: getSearchMinLength(), onSearchInputChange: handleSearchInputChange, onSearchResultsChange: handleSearchResultsChange }) }) }),
65823
- typeof children == "function" ? children(resource) : children
65817
+ children
65824
65818
  ] }),
65825
65819
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Footer, { children: [
65826
65820
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { type: "button", color: "tertiary", variant: "ghost", onClick: onCancel, children: t2("explorer.cancel") }),
@@ -67486,7 +67480,7 @@ const useCopyResource = () => {
67486
67480
  }
67487
67481
  );
67488
67482
  }
67489
- if (currentFolder.id && currentFolder.id !== "default") {
67483
+ if (currentFolder.id && currentFolder.id !== FOLDER.DEFAULT) {
67490
67484
  moveToFolder({
67491
67485
  searchParams,
67492
67486
  resourceIds: [data.duplicateId],
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 14/03/2024 16:31:02
1
+ ode-explorer=1.0-b2school-SNAPSHOT 19/03/2024 14:43:08
package/lib/index2.js CHANGED
@@ -2,21 +2,21 @@ var pe = Object.defineProperty;
2
2
  var me = (e, t, s) => t in e ? pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
3
  var _ = (e, t, s) => (me(e, typeof t != "symbol" ? t + "" : t, s), s);
4
4
  import { jsx as c, jsxs as N, Fragment as oe } from "react/jsx-runtime";
5
- import { useState as ae, useRef as ge, useEffect as L, lazy as b, Suspense as O, Fragment as ye } from "react";
6
- import { useScrollToTop as Ie, useOdeClient as M, IconButton as we, useToast as k, useUser as ce, useShareMutation as Se, useUpdateMutation as xe, LoadingScreen as A, FormControl as De, Input as Te, SearchButton as be, Dropdown as $, useToggle as Fe, TreeView as Ce, Button as Ne, useXitiTrackPageLoad as Re, isActionAvailable as ne, AppHeader as Pe, Breadcrumb as Ae, Grid as ee } from "@edifice-ui/react";
5
+ import { useState as ae, useRef as ge, useEffect as v, lazy as F, Suspense as O, Fragment as ye } from "react";
6
+ import { useScrollToTop as Ie, useOdeClient as M, IconButton as we, useToast as U, useUser as ce, useShareMutation as Se, useUpdateMutation as xe, LoadingScreen as A, FormControl as De, Input as Te, SearchButton as be, Dropdown as $, useToggle as Fe, TreeView as Ce, Button as Ne, useXitiTrackPageLoad as Re, isActionAvailable as ne, AppHeader as Pe, Breadcrumb as Ae, Grid as ee } from "@edifice-ui/react";
7
7
  import { ArrowLeft as Ee, Filter as Qe, Delete as qe, Plus as Oe } from "@edifice-ui/icons";
8
8
  import { useTranslation as j } from "react-i18next";
9
- import { odeServices as x, FOLDER as C } from "edifice-ts-client";
9
+ import { odeServices as x, FOLDER as b } from "edifice-ts-client";
10
10
  import { t as S } from "i18next";
11
- import { create as ke } from "zustand";
12
- import { useQuery as Ue, useInfiniteQuery as ve, useQueryClient as E, useMutation as v } from "@tanstack/react-query";
11
+ import { create as Ue } from "zustand";
12
+ import { useQuery as ke, useInfiniteQuery as Le, useQueryClient as E, useMutation as L } from "@tanstack/react-query";
13
13
  const ie = async (e) => {
14
14
  const t = await x.resource(e.application).searchContext(e);
15
15
  return {
16
16
  ...t,
17
17
  folders: t.folders.filter((s) => !s.trashed)
18
18
  };
19
- }, Le = async ({
19
+ }, ve = async ({
20
20
  searchParams: e,
21
21
  name: t,
22
22
  parentId: s
@@ -144,7 +144,7 @@ function H(e, t) {
144
144
  function We(e, t) {
145
145
  var r;
146
146
  const s = H(e, t);
147
- return (r = s == null ? void 0 : s.folder) != null && r.ancestors ? [...(s == null ? void 0 : s.folder.ancestors) || [], e] : e === C.BIN ? [C.BIN] : [C.DEFAULT];
147
+ return (r = s == null ? void 0 : s.folder) != null && r.ancestors ? [...(s == null ? void 0 : s.folder.ancestors) || [], e] : e === b.BIN ? [b.BIN] : [b.DEFAULT];
148
148
  }
149
149
  function de(e, t) {
150
150
  return t.id === e && t.children ? t.children.length > 0 : t.children ? t.children.some((s) => de(t.id, s)) : !1;
@@ -178,7 +178,7 @@ class G {
178
178
  this.folder = t, this.id = t.id, this.name = t.name, this.childNumber = t.childNumber;
179
179
  }
180
180
  }
181
- const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? void 0 : t.map((n) => new G(n))), r)), w = ke()((e, t) => ({
181
+ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? void 0 : t.map((n) => new G(n))), r)), w = Ue()((e, t) => ({
182
182
  config: null,
183
183
  searchConfig: {
184
184
  minLength: 1
@@ -203,7 +203,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
203
203
  trashed: !1
204
204
  },
205
205
  treeData: {
206
- id: C.DEFAULT,
206
+ id: b.DEFAULT,
207
207
  name: S("explorer.filters.mine"),
208
208
  section: !0,
209
209
  children: []
@@ -360,7 +360,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
360
360
  ...n.filters,
361
361
  folder: s
362
362
  },
363
- trashed: s === C.BIN
363
+ trashed: s === b.BIN
364
364
  }
365
365
  }));
366
366
  },
@@ -399,7 +399,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
399
399
  var h;
400
400
  return {
401
401
  ...l,
402
- treeData: he(n, (h = o == null ? void 0 : o.pages[0]) == null ? void 0 : h.folders, s || C.DEFAULT)
402
+ treeData: he(n, (h = o == null ? void 0 : o.pages[0]) == null ? void 0 : h.folders, s || b.DEFAULT)
403
403
  };
404
404
  });
405
405
  }
@@ -435,7 +435,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
435
435
  const o = H(s[a - 2], r);
436
436
  n({
437
437
  folder: o,
438
- folderId: (o == null ? void 0 : o.id) || C.DEFAULT
438
+ folderId: (o == null ? void 0 : o.id) || b.DEFAULT
439
439
  });
440
440
  },
441
441
  goToTrash: () => e((s) => ({
@@ -449,18 +449,18 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
449
449
  ...s.searchParams,
450
450
  search: void 0,
451
451
  filters: {
452
- folder: C.BIN
452
+ folder: b.BIN
453
453
  },
454
454
  trashed: !0
455
455
  },
456
456
  currentFolder: {
457
- id: C.BIN
457
+ id: b.BIN
458
458
  }
459
459
  }))
460
460
  }
461
461
  })), D = () => w((e) => e.searchParams), se = () => w((e) => e.selectedNodesIds), z = () => w((e) => e.treeData), _t = () => w((e) => e.selectedFolders), $t = () => w((e) => e.selectedResources), Ge = () => w((e) => e.searchConfig), J = () => w((e) => e.folderIds), X = () => w((e) => e.resourceIds), Y = () => w((e) => e.selectedResources.map((t) => t.assetId)), Z = () => w((e) => e.selectedResources.filter((t) => t.assetId === t.id)), V = () => w((e) => e.currentFolder), T = () => w((e) => e.updaters), re = () => {
462
462
  const e = V();
463
- return (e == null ? void 0 : e.id) === C.BIN;
463
+ return (e == null ? void 0 : e.id) === b.BIN;
464
464
  }, Je = () => w((e) => e.resourceIsTrash), Xe = () => w((e) => e.resourceActionDisable), Ye = () => {
465
465
  const e = V();
466
466
  return (e == null ? void 0 : e.id) === "default";
@@ -479,7 +479,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
479
479
  search: t || void 0
480
480
  });
481
481
  };
482
- return L(() => {
482
+ return v(() => {
483
483
  const f = t.length == 0 || t.length >= r.minLength ? {
484
484
  search: t || void 0
485
485
  } : {};
@@ -487,9 +487,9 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
487
487
  ...e,
488
488
  ...f
489
489
  });
490
- }, [t, r.minLength]), L(() => {
490
+ }, [t, r.minLength]), v(() => {
491
491
  n === "select" && s("");
492
- }, [n]), L(() => {
492
+ }, [n]), v(() => {
493
493
  s(() => {
494
494
  var u;
495
495
  return ((u = e.search) == null ? void 0 : u.toString()) ?? "";
@@ -606,7 +606,7 @@ function ct(e, {
606
606
  }
607
607
  const it = () => {
608
608
  const e = w((t) => t.config);
609
- return Ue({
609
+ return ke({
610
610
  queryKey: ["actions"],
611
611
  queryFn: async () => {
612
612
  const t = e == null ? void 0 : e.actions.map((r) => r.workflow);
@@ -630,7 +630,7 @@ const it = () => {
630
630
  trashed: r,
631
631
  search: n
632
632
  }];
633
- return ve({
633
+ return Le({
634
634
  queryKey: a,
635
635
  queryFn: async ({
636
636
  pageParam: o
@@ -650,7 +650,7 @@ const it = () => {
650
650
  getNextPageParam: (o) => o.pagination.startIdx + o.pagination.pageSize
651
651
  });
652
652
  }, jt = () => {
653
- const e = k(), t = E(), s = D(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
653
+ const e = U(), t = E(), s = D(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
654
654
  clearSelectedItems: d,
655
655
  clearSelectedIds: u,
656
656
  setTreeData: f,
@@ -663,7 +663,7 @@ const it = () => {
663
663
  filters: p,
664
664
  trashed: m
665
665
  }];
666
- return v({
666
+ return L({
667
667
  mutationFn: async () => await Ke({
668
668
  searchParams: s,
669
669
  folderIds: n,
@@ -677,12 +677,12 @@ const it = () => {
677
677
  if (await t.cancelQueries({
678
678
  queryKey: y
679
679
  }), t.getQueryData(y))
680
- return e.success(S("explorer.trash.title")), t.setQueryData(y, (F) => {
680
+ return e.success(S("explorer.trash.title")), t.setQueryData(y, (C) => {
681
681
  var Q;
682
- if (F) {
683
- const U = {
684
- ...F,
685
- pages: F == null ? void 0 : F.pages.map((R) => {
682
+ if (C) {
683
+ const k = {
684
+ ...C,
685
+ pages: C == null ? void 0 : C.pages.map((R) => {
686
686
  var P;
687
687
  return {
688
688
  ...R,
@@ -705,7 +705,7 @@ const it = () => {
705
705
  // @ts-ignore
706
706
  maxIdx: ((Q = s.pagination) == null ? void 0 : Q.maxIdx) - g.resources.length
707
707
  }
708
- }), U;
708
+ }), k;
709
709
  }
710
710
  });
711
711
  },
@@ -714,7 +714,7 @@ const it = () => {
714
714
  }
715
715
  });
716
716
  }, zt = () => {
717
- const e = k(), t = E(), s = D(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
717
+ const e = U(), t = E(), s = D(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
718
718
  setFolderIds: h,
719
719
  setResourceIds: d,
720
720
  setSelectedResources: u,
@@ -727,7 +727,7 @@ const it = () => {
727
727
  filters: i,
728
728
  trashed: p
729
729
  }];
730
- return v({
730
+ return L({
731
731
  mutationFn: async () => await _e({
732
732
  searchParams: s,
733
733
  folderIds: r,
@@ -747,8 +747,8 @@ const it = () => {
747
747
  ...g,
748
748
  pages: g == null ? void 0 : g.pages.map((I) => ({
749
749
  ...I,
750
- folders: I.folders.filter((F) => !r.includes(F.id)),
751
- resources: I.resources.filter((F) => o ? !n.includes(F.assetId) : !l.includes(F.id))
750
+ folders: I.folders.filter((C) => !r.includes(C.id)),
751
+ resources: I.resources.filter((C) => o ? !n.includes(C.assetId) : !l.includes(C.id))
752
752
  }))
753
753
  };
754
754
  });
@@ -758,7 +758,7 @@ const it = () => {
758
758
  }
759
759
  });
760
760
  }, Vt = () => {
761
- const e = k(), t = E(), s = D(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
761
+ const e = U(), t = E(), s = D(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
762
762
  clearSelectedItems: h,
763
763
  clearSelectedIds: d
764
764
  } = T(), {
@@ -769,7 +769,7 @@ const it = () => {
769
769
  filters: u,
770
770
  trashed: f
771
771
  }];
772
- return v({
772
+ return L({
773
773
  mutationFn: async () => await Be({
774
774
  searchParams: s,
775
775
  folderIds: r,
@@ -800,7 +800,7 @@ const it = () => {
800
800
  }
801
801
  });
802
802
  }, Ht = () => {
803
- const e = k(), t = D(), s = E(), {
803
+ const e = U(), t = D(), s = E(), {
804
804
  user: r
805
805
  } = ce(), n = V(), {
806
806
  filters: a,
@@ -810,7 +810,7 @@ const it = () => {
810
810
  filters: a,
811
811
  trashed: o
812
812
  }];
813
- return v({
813
+ return L({
814
814
  mutationFn: async (d) => (e.info(S("duplicate.start"), {
815
815
  id: l
816
816
  }), await $e(t, d.assetId)),
@@ -843,7 +843,7 @@ const it = () => {
843
843
  resources: [i, ...m.resources]
844
844
  }))
845
845
  };
846
- }), n.id && n.id !== "default" && le({
846
+ }), n.id && n.id !== b.DEFAULT && le({
847
847
  searchParams: t,
848
848
  resourceIds: [d.duplicateId],
849
849
  folderId: n.id,
@@ -856,7 +856,7 @@ const it = () => {
856
856
  }
857
857
  });
858
858
  }, Wt = () => {
859
- const e = k(), t = E(), s = D(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
859
+ const e = U(), t = E(), s = D(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
860
860
  clearSelectedIds: d,
861
861
  clearSelectedItems: u,
862
862
  setTreeData: f,
@@ -869,7 +869,7 @@ const it = () => {
869
869
  filters: p,
870
870
  trashed: m
871
871
  }];
872
- return v({
872
+ return L({
873
873
  mutationFn: async (g) => await le({
874
874
  searchParams: s,
875
875
  folderId: g,
@@ -883,7 +883,7 @@ const it = () => {
883
883
  onSuccess: async (g, I) => {
884
884
  if (t.getQueryData(y))
885
885
  return t.setQueryData(y, (Q) => {
886
- var U;
886
+ var k;
887
887
  if (Q) {
888
888
  const K = at(r, {
889
889
  destinationId: I,
@@ -909,7 +909,7 @@ const it = () => {
909
909
  pagination: {
910
910
  ...s.pagination,
911
911
  // @ts-ignore
912
- maxIdx: ((U = s.pagination) == null ? void 0 : U.maxIdx) - g.resources.length
912
+ maxIdx: ((k = s.pagination) == null ? void 0 : k.maxIdx) - g.resources.length
913
913
  }
914
914
  }), R;
915
915
  }
@@ -920,7 +920,7 @@ const it = () => {
920
920
  }
921
921
  });
922
922
  }, Gt = () => {
923
- const e = k(), t = E(), s = D(), r = z(), {
923
+ const e = U(), t = E(), s = D(), r = z(), {
924
924
  setTreeData: n
925
925
  } = T(), {
926
926
  filters: a,
@@ -930,11 +930,11 @@ const it = () => {
930
930
  filters: a,
931
931
  trashed: o
932
932
  }];
933
- return v({
933
+ return L({
934
934
  mutationFn: async ({
935
935
  name: h,
936
936
  parentId: d
937
- }) => await Le({
937
+ }) => await ve({
938
938
  searchParams: s,
939
939
  name: h,
940
940
  parentId: d
@@ -971,7 +971,7 @@ const it = () => {
971
971
  }
972
972
  });
973
973
  }, Jt = () => {
974
- const e = k(), t = E(), s = D(), r = z(), {
974
+ const e = U(), t = E(), s = D(), r = z(), {
975
975
  setFolderIds: n,
976
976
  setSelectedFolders: a,
977
977
  setTreeData: o
@@ -983,7 +983,7 @@ const it = () => {
983
983
  filters: l,
984
984
  trashed: h
985
985
  }];
986
- return v({
986
+ return L({
987
987
  mutationFn: async ({
988
988
  folderId: u,
989
989
  name: f,
@@ -1122,7 +1122,7 @@ const it = () => {
1122
1122
  });
1123
1123
  };
1124
1124
  const Zt = () => {
1125
- const e = k(), t = E(), s = D(), {
1125
+ const e = U(), t = E(), s = D(), {
1126
1126
  user: r
1127
1127
  } = ce(), {
1128
1128
  appCode: n
@@ -1131,7 +1131,7 @@ const Zt = () => {
1131
1131
  filters: s.filters,
1132
1132
  trashed: s.trashed
1133
1133
  }];
1134
- return v({
1134
+ return L({
1135
1135
  mutationFn: async (o) => await Ve({
1136
1136
  searchParams: s,
1137
1137
  params: o
@@ -1176,8 +1176,8 @@ const Zt = () => {
1176
1176
  });
1177
1177
  }
1178
1178
  });
1179
- }, dt = /* @__PURE__ */ b(async () => await import("./EmptyScreenApp.js")), ut = /* @__PURE__ */ b(async () => await import("./EmptyScreenSearch.js")), ht = /* @__PURE__ */ b(async () => await import("./EmptyScreenError.js")), ft = /* @__PURE__ */ b(async () => await import("./EmptyScreenNoContentInFolder.js")), pt = /* @__PURE__ */ b(async () => await import("./EmptyScreenTrash.js")), mt = /* @__PURE__ */ b(async () => await import("./FoldersList.js")), gt = /* @__PURE__ */ b(async () => await import("./ResourcesList.js")), yt = () => {
1180
- const e = Ye(), t = re(), s = Ze(), r = D(), n = V(), a = z(), o = k(), {
1179
+ }, dt = /* @__PURE__ */ F(async () => await import("./EmptyScreenApp.js")), ut = /* @__PURE__ */ F(async () => await import("./EmptyScreenSearch.js")), ht = /* @__PURE__ */ F(async () => await import("./EmptyScreenError.js")), ft = /* @__PURE__ */ F(async () => await import("./EmptyScreenNoContentInFolder.js")), pt = /* @__PURE__ */ F(async () => await import("./EmptyScreenTrash.js")), mt = /* @__PURE__ */ F(async () => await import("./FoldersList.js")), gt = /* @__PURE__ */ F(async () => await import("./ResourcesList.js")), yt = () => {
1180
+ const e = Ye(), t = re(), s = Ze(), r = D(), n = V(), a = z(), o = U(), {
1181
1181
  appCode: l
1182
1182
  } = M(), {
1183
1183
  t: h
@@ -1192,26 +1192,26 @@ const Zt = () => {
1192
1192
  isLoading: y,
1193
1193
  isFetching: g,
1194
1194
  fetchNextPage: I
1195
- } = lt(), F = (i == null ? void 0 : i.pages[0].folders.length) === 0, Q = (i == null ? void 0 : i.pages[0].resources.length) === 0, U = F && Q;
1196
- return L(() => {
1195
+ } = lt(), C = (i == null ? void 0 : i.pages[0].folders.length) === 0, Q = (i == null ? void 0 : i.pages[0].resources.length) === 0, k = C && Q;
1196
+ return v(() => {
1197
1197
  var K, R, P;
1198
1198
  if (i) {
1199
1199
  const q = [...((K = i == null ? void 0 : i.pages[0]) == null ? void 0 : K.folders) ?? []];
1200
1200
  (R = i == null ? void 0 : i.pages[0]) != null && R.searchConfig && u(i.pages[0].searchConfig), r.search || ((n == null ? void 0 : n.id) === "default" ? f({
1201
- id: C.DEFAULT,
1201
+ id: b.DEFAULT,
1202
1202
  section: !0,
1203
1203
  children: q.map((B) => new G(B)),
1204
1204
  name: h("explorer.filters.mine", {
1205
1205
  ns: l
1206
1206
  })
1207
- }) : f(he(a, q, r.filters.folder || C.DEFAULT))), d({
1207
+ }) : f(he(a, q, r.filters.folder || b.DEFAULT))), d({
1208
1208
  ...r,
1209
1209
  pagination: (P = i == null ? void 0 : i.pages[(i == null ? void 0 : i.pages.length) - 1]) == null ? void 0 : P.pagination
1210
1210
  });
1211
1211
  }
1212
- }, [i]), L(() => {
1212
+ }, [i]), v(() => {
1213
1213
  m && typeof m == "string" && o.error(h(m));
1214
- }, [m]), y ? /* @__PURE__ */ c(A, {}) : p ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ht, {}) }) : r.search && U ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ut, {}) }) : e && U ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(dt, {}) }) : s && U && !t ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ft, {}) }) : t && (i == null ? void 0 : i.pages[0].resources.length) === 0 ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(pt, {}) }) : /* @__PURE__ */ N(O, { fallback: /* @__PURE__ */ c(A, {}), children: [
1214
+ }, [m]), y ? /* @__PURE__ */ c(A, {}) : p ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ht, {}) }) : r.search && k ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ut, {}) }) : e && k ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(dt, {}) }) : s && k && !t ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ft, {}) }) : t && (i == null ? void 0 : i.pages[0].resources.length) === 0 ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(pt, {}) }) : /* @__PURE__ */ N(O, { fallback: /* @__PURE__ */ c(A, {}), children: [
1215
1215
  /* @__PURE__ */ c(mt, { data: i, isFetching: g }),
1216
1216
  /* @__PURE__ */ c(gt, { data: i, isFetching: g, fetchNextPage: I })
1217
1217
  ] });
@@ -1230,7 +1230,7 @@ const Zt = () => {
1230
1230
  }, o = V(), l = D(), {
1231
1231
  setSearchParams: h
1232
1232
  } = T();
1233
- L(() => {
1233
+ v(() => {
1234
1234
  const u = () => r.includes("1") ? !0 : void 0, f = () => r.includes("2") ? !0 : void 0, i = () => r.includes("7") ? !0 : void 0;
1235
1235
  h({
1236
1236
  ...l,
@@ -1325,7 +1325,7 @@ const Zt = () => {
1325
1325
  /* @__PURE__ */ c(qe, { width: "20", height: "20" }),
1326
1326
  /* @__PURE__ */ c("span", { children: r("explorer.tree.trash") })
1327
1327
  ] }) }) }) }) }) }) });
1328
- }, xt = /* @__PURE__ */ b(async () => await import("./FolderModal.js")), Dt = () => {
1328
+ }, xt = /* @__PURE__ */ F(async () => await import("./FolderModal.js")), Dt = () => {
1329
1329
  const e = E(), [t, s] = Fe(), r = z(), n = re(), a = se(), {
1330
1330
  appCode: o
1331
1331
  } = M(), {
@@ -1344,18 +1344,18 @@ const Zt = () => {
1344
1344
  };
1345
1345
  return /* @__PURE__ */ N(oe, { children: [
1346
1346
  /* @__PURE__ */ c(Ce, { data: r, selectedNodesIds: a, onTreeItemSelect: d, onTreeItemFold: f, onTreeItemUnfold: m }),
1347
- /* @__PURE__ */ c(St, { id: C.BIN, selected: n, onSelect: h }),
1347
+ /* @__PURE__ */ c(St, { id: b.BIN, selected: n, onSelect: h }),
1348
1348
  /* @__PURE__ */ c("div", { className: "d-grid my-16", children: /* @__PURE__ */ c(Ne, { disabled: n, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ c(Oe, {}), onClick: y, children: l("explorer.folder.new") }) }),
1349
1349
  /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: t && /* @__PURE__ */ c(xt, { edit: !1, isOpen: t, onSuccess: s, onCancel: s }) })
1350
1350
  ] });
1351
- }, Tt = /* @__PURE__ */ b(async () => await import("./AppAction.js")), bt = /* @__PURE__ */ b(async () => await import("./Library.js")), Ft = /* @__PURE__ */ b(async () => await import("./ActionBarContainer.js")), Ct = /* @__PURE__ */ b(async () => await import("./DisableModal.js")), Nt = /* @__PURE__ */ b(async () => await import("./TrashModal.js")), Rt = /* @__PURE__ */ b(async () => await import("./OnboardingModal.js")), es = ({
1351
+ }, Tt = /* @__PURE__ */ F(async () => await import("./AppAction.js")), bt = /* @__PURE__ */ F(async () => await import("./Library.js")), Ft = /* @__PURE__ */ F(async () => await import("./ActionBarContainer.js")), Ct = /* @__PURE__ */ F(async () => await import("./DisableModal.js")), Nt = /* @__PURE__ */ F(async () => await import("./TrashModal.js")), Rt = /* @__PURE__ */ F(async () => await import("./OnboardingModal.js")), es = ({
1352
1352
  config: e
1353
1353
  }) => {
1354
1354
  const t = D(), {
1355
1355
  setConfig: s,
1356
1356
  setSearchParams: r
1357
1357
  } = T();
1358
- L(() => {
1358
+ v(() => {
1359
1359
  s(e || {}), r({
1360
1360
  ...t,
1361
1361
  application: e.app,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.1-develop-b2school.202403141630",
3
+ "version": "1.4.1-develop-pedago.202403191442",
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-b2school",
40
- "@edifice-ui/react": "develop-b2school",
39
+ "@edifice-ui/icons": "develop-pedago",
40
+ "@edifice-ui/react": "develop-pedago",
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-b2school",
69
- "edifice-ts-client": "develop-b2school",
68
+ "edifice-bootstrap": "develop-pedago",
69
+ "edifice-ts-client": "develop-pedago",
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-import": "2.29.1",