ode-explorer 1.3.2-dev.202401091605 → 1.3.2-dev.202401101530

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.
Files changed (80) hide show
  1. package/dist/index.js +3 -3
  2. package/dist/version.txt +1 -1
  3. package/explorer.d.ts +1 -0
  4. package/lib/ActionBarContainer.js +281 -0
  5. package/lib/AppAction.js +34 -0
  6. package/lib/DeleteModal.js +52 -0
  7. package/lib/DisableModal.js +20 -0
  8. package/lib/EmptyScreenApp.js +37 -0
  9. package/lib/EmptyScreenError.js +12 -0
  10. package/lib/EmptyScreenNoContentInFolder.js +18 -0
  11. package/lib/EmptyScreenSearch.js +18 -0
  12. package/lib/EmptyScreenTrash.js +16 -0
  13. package/lib/FolderModal.js +119 -0
  14. package/lib/FoldersList.js +64 -0
  15. package/lib/Library.js +16 -0
  16. package/lib/MoveModal.js +78 -0
  17. package/lib/ResourcesList.js +249 -0
  18. package/lib/TrashModal.js +20 -0
  19. package/lib/app/root/index.d.ts +2 -0
  20. package/lib/components/AppAction/AppAction.d.ts +1 -0
  21. package/lib/components/EmptyScreens/EmptyScreenApp.d.ts +2 -0
  22. package/lib/components/EmptyScreens/EmptyScreenError.d.ts +2 -0
  23. package/lib/components/EmptyScreens/EmptyScreenNoContentInFolder.d.ts +2 -0
  24. package/lib/components/EmptyScreens/EmptyScreenSearch.d.ts +2 -0
  25. package/lib/components/EmptyScreens/EmptyScreenTrash.d.ts +1 -0
  26. package/lib/components/Explorer.d.ts +5 -0
  27. package/lib/components/ExplorerBreadcrumb.d.ts +1 -0
  28. package/lib/components/LoadMore.d.ts +3 -0
  29. package/lib/config/getExplorerConfig.d.ts +11 -0
  30. package/lib/config/index.d.ts +3 -0
  31. package/lib/features/AccessControl/AccessControl.d.ts +12 -0
  32. package/lib/features/AccessControl/useAccessControl.d.ts +14 -0
  33. package/lib/features/ActionBar/ActionBarContainer.d.ts +1 -0
  34. package/lib/features/ActionBar/Delete/DeleteModal.d.ts +8 -0
  35. package/lib/features/ActionBar/Delete/useDeleteModal.d.ts +8 -0
  36. package/lib/features/ActionBar/Disable/DisableModal.d.ts +5 -0
  37. package/lib/features/ActionBar/Disable/useDisableModal.d.ts +4 -0
  38. package/lib/features/ActionBar/Folder/FolderModal.d.ts +9 -0
  39. package/lib/features/ActionBar/Folder/useFolderModal.d.ts +22 -0
  40. package/lib/features/ActionBar/Move/MoveModal.d.ts +8 -0
  41. package/lib/features/ActionBar/Move/useMoveModal.d.ts +12 -0
  42. package/lib/features/ActionBar/Trash/TrashModal.d.ts +5 -0
  43. package/lib/features/ActionBar/Trash/useTrashModal.d.ts +4 -0
  44. package/lib/features/ActionBar/useActionBar.d.ts +30 -0
  45. package/lib/features/List/FolderCard.d.ts +17 -0
  46. package/lib/features/List/FoldersList.d.ts +7 -0
  47. package/lib/features/List/List.d.ts +1 -0
  48. package/lib/features/List/ResourceCard.d.ts +22 -0
  49. package/lib/features/List/ResourcesList.d.ts +8 -0
  50. package/lib/features/SearchForm/SearchForm.d.ts +1 -0
  51. package/lib/features/SearchForm/useSearchForm.d.ts +8 -0
  52. package/lib/features/SearchForm/useSelectedFilters.d.ts +8 -0
  53. package/lib/features/SideBar/Library/Library.d.ts +2 -0
  54. package/lib/features/SideBar/TrashButton.d.ts +7 -0
  55. package/lib/features/SideBar/TreeViewContainer.d.ts +1 -0
  56. package/lib/i18n.d.ts +2 -0
  57. package/lib/index.d.ts +1 -0
  58. package/lib/index.js +13 -0
  59. package/lib/index2.js +1376 -0
  60. package/lib/main.d.ts +0 -0
  61. package/lib/services/api/index.d.ts +129 -0
  62. package/lib/store/index.d.ts +98 -0
  63. package/lib/style.css +1 -0
  64. package/lib/utils/TreeNodeFolderWrapper.d.ts +12 -0
  65. package/lib/utils/addNode.d.ts +6 -0
  66. package/lib/utils/arrayUnique.d.ts +1 -0
  67. package/lib/utils/capitalizeFirstLetter.d.ts +1 -0
  68. package/lib/utils/deleteNode.d.ts +4 -0
  69. package/lib/utils/findNodeById.d.ts +2 -0
  70. package/lib/utils/fullTextSearch.d.ts +1 -0
  71. package/lib/utils/getAncestors.d.ts +2 -0
  72. package/lib/utils/getAppParams.d.ts +10 -0
  73. package/lib/utils/hasChildren.d.ts +2 -0
  74. package/lib/utils/isResourceShared.d.ts +2 -0
  75. package/lib/utils/modifyNode.d.ts +2 -0
  76. package/lib/utils/moveNode.d.ts +5 -0
  77. package/lib/utils/scrollToTop.d.ts +1 -0
  78. package/lib/utils/updateNode.d.ts +6 -0
  79. package/lib/utils/wrapTreeNode.d.ts +3 -0
  80. package/package.json +33 -4
@@ -0,0 +1,8 @@
1
+ import { InfiniteData } from "@tanstack/react-query";
2
+ import { ISearchResults } from "edifice-ts-client";
3
+ declare const ResourcesList: ({ data, fetchNextPage, }: {
4
+ data: InfiniteData<ISearchResults> | undefined;
5
+ isFetching: boolean;
6
+ fetchNextPage: () => void;
7
+ }) => JSX.Element | null;
8
+ export default ResourcesList;
@@ -0,0 +1 @@
1
+ export declare const SearchForm: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const useSearchForm: () => {
3
+ formRef: import("react").MutableRefObject<null>;
4
+ inputSearch: string;
5
+ handleInputSearchChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
6
+ handleKeyPress: (event: React.KeyboardEvent) => void;
7
+ handleSearchSubmit: (e: React.MouseEvent) => void;
8
+ };
@@ -0,0 +1,8 @@
1
+ export declare const useSelectedFilters: () => {
2
+ selectedFilters: string;
3
+ options: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ handleOnSelectFilter: (value: string) => void;
8
+ };
@@ -0,0 +1,2 @@
1
+ declare const Library: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Library;
@@ -0,0 +1,7 @@
1
+ export interface TrashButtonProps {
2
+ id: string;
3
+ selected: boolean;
4
+ onSelect: () => void;
5
+ }
6
+ export declare const TrashButton: ({ id, selected, onSelect, }: TrashButtonProps) => JSX.Element | null;
7
+ export default TrashButton;
@@ -0,0 +1 @@
1
+ export declare const TreeViewContainer: () => import("react/jsx-runtime").JSX.Element;
package/lib/i18n.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import i18n from "i18next";
2
+ export default i18n;
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { default as Explorer } from "./components/Explorer";
package/lib/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import { E as l } from "./index2.js";
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import "@edifice-ui/react";
5
+ import "@edifice-ui/icons";
6
+ import "react-i18next";
7
+ import "edifice-ts-client";
8
+ import "i18next";
9
+ import "zustand";
10
+ import "@tanstack/react-query";
11
+ export {
12
+ l as Explorer
13
+ };