ode-explorer 1.4.9-develop.202406101902 → 1.4.9-develop.202406101930

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
@@ -15,22 +15,18 @@
15
15
  <div id="portal"></div>
16
16
  <!-- SET INITIALISATION CONFIG -->
17
17
  <script>
18
- var WORFLOW_ACCESS =
19
- "net.atos.entng.mindmap.controllers.MindmapController|view";
18
+ var WORFLOW_ACCESS = "org.entcore.blog.controllers.BlogController|blog";
20
19
  var WORKFLOW_CREATE =
21
- "net.atos.entng.mindmap.controllers.MindmapController|create";
22
- var WORKFLOW_PRINT =
23
- "net.atos.entng.mindmap.controllers.MindmapController|printView";
24
- var WORKFLOW_EXPORT_PNG =
25
- "net.atos.entng.mindmap.controllers.MindmapController|exportPngMindmap";
26
- var WORKFLOW_EXPORT_SVG =
27
- "net.atos.entng.mindmap.controllers.MindmapController|exportSvgMindmap";
20
+ "org.entcore.blog.controllers.BlogController|create";
21
+ var WORKFLOW_CREATE_PUBLIC =
22
+ "org.entcore.blog.controllers.BlogController|createPublicBlog";
23
+ var WORKFLOW_PRINT = "org.entcore.blog.controllers.BlogController|print";
28
24
  var WORKFLOW_PUBLISH =
29
- "net.atos.entng.mindmap.controllers.MindmapController|publish";
25
+ "org.entcore.blog.controllers.BlogController|publish";
30
26
  var explorerConfig = {
31
- app: "mindmap",
32
- types: ["mindmap"],
33
- libraryAppFilter: "MindMap",
27
+ app: "blog",
28
+ types: ["blog"],
29
+ enableOnboarding: false,
34
30
  filters: [
35
31
  { id: "owner", defaultValue: true },
36
32
  { id: "public", defaultValue: false },
@@ -65,10 +61,9 @@
65
61
  target: "tree",
66
62
  },
67
63
  {
68
- id: "copy",
69
- workflow: WORFLOW_ACCESS,
70
- target: "actionbar",
71
- right: "read",
64
+ id: "createPublic",
65
+ workflow: WORKFLOW_CREATE_PUBLIC,
66
+ target: "tree",
72
67
  },
73
68
  {
74
69
  id: "move",
@@ -111,7 +106,6 @@
111
106
  right: "manager",
112
107
  },
113
108
  ],
114
- enableOnboarding: true,
115
109
  };
116
110
  ////
117
111
  var rootElement = document.querySelector("[data-explorer-config]");
package/dist/index.js CHANGED
@@ -61930,25 +61930,25 @@ const TreeItem = (props) => {
61930
61930
  }), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
61931
61931
  children
61932
61932
  }, ref2) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "visually-hidden", ref: ref2, children })), VisuallyHidden$1 = VisuallyHidden, getOnboardingTrash = async (key) => await odeServices.conf().getPreference(key), saveOnboardingTrash = async (key) => await odeServices.conf().savePreference(key, JSON.stringify({
61933
- showOnboardingTrash: false
61933
+ key: false
61934
61934
  })), useOnboardingModal = (id2) => {
61935
- const [isOpen, setIsOpen] = reactExports.useState(true), [isOnboardingTrash, setIsOnboardingTrash] = reactExports.useState(false);
61935
+ const [isOpen, setIsOpen] = reactExports.useState(true), [isOnboarding, setIsOnboarding] = reactExports.useState(false);
61936
61936
  return reactExports.useEffect(() => {
61937
61937
  (async () => {
61938
61938
  const response = await getOnboardingTrash(id2);
61939
61939
  if (response) {
61940
61940
  const {
61941
- showOnboardingTrash
61941
+ key
61942
61942
  } = response;
61943
- setIsOnboardingTrash(showOnboardingTrash);
61943
+ setIsOnboarding(key);
61944
61944
  return;
61945
61945
  }
61946
- setIsOnboardingTrash(true);
61946
+ setIsOnboarding(true);
61947
61947
  })();
61948
61948
  }, [id2]), {
61949
61949
  isOpen,
61950
61950
  setIsOpen,
61951
- isOnboardingTrash,
61951
+ isOnboarding,
61952
61952
  handleSavePreference: async () => {
61953
61953
  await saveOnboardingTrash(id2), setIsOpen(false);
61954
61954
  }
@@ -61960,7 +61960,7 @@ const TreeItem = (props) => {
61960
61960
  }) => {
61961
61961
  const [imagePath] = usePaths(), [swiperInstance, setSwiperInstance] = reactExports.useState(), [swiperProgress, setSwiperprogress] = reactExports.useState(0), {
61962
61962
  isOpen,
61963
- isOnboardingTrash,
61963
+ isOnboarding,
61964
61964
  setIsOpen,
61965
61965
  handleSavePreference
61966
61966
  } = useOnboardingModal(id2);
@@ -61978,7 +61978,7 @@ const TreeItem = (props) => {
61978
61978
  closeText,
61979
61979
  nextText
61980
61980
  } = modalOptions;
61981
- return isOnboardingTrash ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(false), children: [
61981
+ return isOnboarding ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(false), children: [
61982
61982
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: () => setIsOpen(false), children: t2(title || "explorer.modal.onboarding.trash.title") }),
61983
61983
  /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Swiper2, { modules: [Pagination], onSwiper: (swiper) => {
61984
61984
  setSwiperInstance(swiper);
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 10/06/2024 19:02:58
1
+ ode-explorer=1.0-b2school-SNAPSHOT 10/06/2024 19:31:29
@@ -4,9 +4,9 @@ import { Card as c, Image as B, AppIcon as $, Avatar as D, Tooltip as y, useOdeC
4
4
  import { useSpring as q, animated as T } from "@react-spring/web";
5
5
  import E from "clsx";
6
6
  import { useTranslation as F } from "react-i18next";
7
- import { Users as H, Globe as J } from "@edifice-ui/icons";
8
- import { OneProfile as K } from "@edifice-ui/icons/nav";
9
- import { d as Q, h as V, i as W, u as X, e as Y } from "./index2.js";
7
+ import { d as H, h as J, i as K, u as Q, e as V } from "./index2.js";
8
+ import { Users as W, Globe as X } from "@edifice-ui/icons";
9
+ import { OneProfile as Y } from "@edifice-ui/icons/nav";
10
10
  import "edifice-ts-client";
11
11
  import "i18next";
12
12
  import "zustand";
@@ -41,16 +41,16 @@ const C = ({
41
41
  ] }),
42
42
  /* @__PURE__ */ n(c.Footer, { children: [
43
43
  /* @__PURE__ */ n("div", { className: "d-inline-flex align-items-center gap-8 text-truncate", children: [
44
- o ? /* @__PURE__ */ i(D, { alt: (t == null ? void 0 : t.creatorName) || "", size: "xs", src: o, variant: "circle", width: "24", height: "24" }) : /* @__PURE__ */ i(K, {}),
44
+ o ? /* @__PURE__ */ i(D, { alt: (t == null ? void 0 : t.creatorName) || "", size: "xs", src: o, variant: "circle", width: "24", height: "24" }) : /* @__PURE__ */ i(Y, {}),
45
45
  /* @__PURE__ */ i(c.Text, { children: t == null ? void 0 : t.creatorName })
46
46
  ] }),
47
47
  /* @__PURE__ */ n("div", { className: "d-inline-flex align-items-center gap-8", children: [
48
48
  r && /* @__PURE__ */ i(y, { message: g("tooltip.shared", {
49
49
  ns: l
50
- }), placement: "top", children: /* @__PURE__ */ i(H, { width: 16, height: 16 }) }),
50
+ }), placement: "top", children: /* @__PURE__ */ i(W, { width: 16, height: 16 }) }),
51
51
  R && /* @__PURE__ */ i(y, { message: g("tooltip.public", {
52
52
  ns: l
53
- }), placement: "top", children: /* @__PURE__ */ i(J, { width: 16, height: 16 }) })
53
+ }), placement: "top", children: /* @__PURE__ */ i(X, { width: 16, height: 16 }) })
54
54
  ] })
55
55
  ] })
56
56
  ] }) });
@@ -66,12 +66,12 @@ const rt = ({
66
66
  t: x
67
67
  } = F(), {
68
68
  fromNow: u
69
- } = L(), d = Q(), s = V(), o = W(), {
69
+ } = L(), d = H(), s = J(), o = K(), {
70
70
  setSelectedResources: m,
71
71
  setResourceIds: r,
72
72
  openResource: R,
73
73
  setResourceIsTrash: g
74
- } = X(), l = Y(), v = q({
74
+ } = Q(), l = V(), v = q({
75
75
  from: {
76
76
  opacity: 0
77
77
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.9-develop.202406101902",
3
+ "version": "1.4.9-develop.202406101930",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {
@@ -1,3 +0,0 @@
1
- import clsx from "clsx";
2
- import dayjs from "dayjs";
3
- export { clsx, dayjs };