ode-explorer 1.3.3 → 1.4.0-develop-pedago.202403041810
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 +16 -23
- package/dist/index.js +69636 -5
- package/dist/version.txt +1 -1
- package/lib/ActionBarContainer.js +191 -179
- package/lib/DeleteModal.js +3 -3
- package/lib/FolderModal.js +16 -16
- package/lib/Library.js +4 -6
- package/lib/MoveModal.js +6 -6
- package/lib/features/ActionBar/useActionBar.d.ts +1 -1
- package/lib/features/SideBar/Library/Library.d.ts +1 -1
- package/lib/index2.js +643 -588
- package/lib/services/api/index.d.ts +7 -0
- package/package.json +12 -12
- package/dist/ActionBarContainer.js +0 -7
- package/dist/AppAction.js +0 -7
- package/dist/DeleteModal.js +0 -1
- package/dist/DisableModal.js +0 -1
- package/dist/EmptyScreenApp.js +0 -1
- package/dist/EmptyScreenError.js +0 -1
- package/dist/EmptyScreenNoContentInFolder.js +0 -1
- package/dist/EmptyScreenSearch.js +0 -1
- package/dist/EmptyScreenTrash.js +0 -1
- package/dist/FolderModal.js +0 -1
- package/dist/FoldersList.js +0 -1
- package/dist/Library.js +0 -1
- package/dist/MoveModal.js +0 -1
- package/dist/OnboardingModal.js +0 -1
- package/dist/PublishModal.js +0 -1
- package/dist/ResourceModal.js +0 -1
- package/dist/ResourcesList.js +0 -1
- package/dist/TrashModal.js +0 -1
- package/dist/edifice-icons.js +0 -1
- package/dist/edifice-react.js +0 -1347
- package/dist/react.js +0 -32
package/lib/MoveModal.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as h, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { Modal as a, TreeView as T, Button as I } from "@edifice-ui/react";
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { useTranslation as
|
|
3
|
+
import { createPortal as y } from "react-dom";
|
|
4
|
+
import { useTranslation as M } from "react-i18next";
|
|
5
5
|
import { useState as b } from "react";
|
|
6
6
|
import { useQueryClient as x } from "@tanstack/react-query";
|
|
7
|
-
import {
|
|
7
|
+
import { x as F, j as S, i as w, u as g, y as j } from "./index2.js";
|
|
8
8
|
import "@edifice-ui/icons";
|
|
9
9
|
import "edifice-ts-client";
|
|
10
10
|
import "i18next";
|
|
@@ -12,7 +12,7 @@ import "zustand";
|
|
|
12
12
|
function B({
|
|
13
13
|
onSuccess: n
|
|
14
14
|
}) {
|
|
15
|
-
const [d, t] = b(), r = F(), i =
|
|
15
|
+
const [d, t] = b(), r = F(), i = S(), m = w(), {
|
|
16
16
|
foldTreeItem: s,
|
|
17
17
|
unfoldTreeItem: c
|
|
18
18
|
} = g(), f = x();
|
|
@@ -54,7 +54,7 @@ function z({
|
|
|
54
54
|
}) {
|
|
55
55
|
const {
|
|
56
56
|
t: r
|
|
57
|
-
} =
|
|
57
|
+
} = M(), {
|
|
58
58
|
handleTreeItemFold: i,
|
|
59
59
|
handleTreeItemSelect: m,
|
|
60
60
|
handleTreeItemUnfold: s,
|
|
@@ -63,7 +63,7 @@ function z({
|
|
|
63
63
|
} = B({
|
|
64
64
|
onSuccess: d
|
|
65
65
|
}), u = j();
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ y(/* @__PURE__ */ h(a, { isOpen: n, onModalClose: t, id: "moveModal", children: [
|
|
67
67
|
/* @__PURE__ */ l(a.Header, { onModalClose: t, children: r("explorer.move.title") }),
|
|
68
68
|
/* @__PURE__ */ l(a.Subtitle, { children: r("explorer.move.subtitle") }),
|
|
69
69
|
/* @__PURE__ */ l(a.Body, { children: /* @__PURE__ */ l(T, { data: u, onTreeItemSelect: m, onTreeItemFold: i, onTreeItemUnfold: s }) }),
|
|
@@ -5,7 +5,7 @@ export default function useActionBar(): {
|
|
|
5
5
|
selectedElement: (import("edifice-ts-client").IFolder | import("edifice-ts-client").IResource)[];
|
|
6
6
|
currentFolderId: string | undefined;
|
|
7
7
|
overrideLabel: (action: IAction) => string;
|
|
8
|
-
handleClick: (action: IAction) => Promise<void>;
|
|
8
|
+
handleClick: (action: IAction) => Promise<void | null>;
|
|
9
9
|
isActivable: (action: IAction) => boolean;
|
|
10
10
|
isActionBarOpen: boolean;
|
|
11
11
|
isMoveModalOpen: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const Library: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare const Library: () => "" | import("react/jsx-runtime").JSX.Element | null;
|
|
2
2
|
export default Library;
|