ode-explorer 1.3.2-dev.202312211056 → 1.3.2-dev.202401091744
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/ActionBarContainer.js +1 -0
- package/dist/AppAction.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/DisableModal.js +1 -0
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/EmptyScreenError.js +1 -1
- package/dist/EmptyScreenNoContentInFolder.js +1 -1
- package/dist/EmptyScreenSearch.js +1 -1
- package/dist/EmptyScreenTrash.js +1 -1
- package/dist/FolderModal.js +1 -0
- package/dist/FoldersList.js +1 -1
- package/dist/Library.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/ResourcesList.js +1 -1
- package/dist/{TrashedResourceModal.js → TrashModal.js} +1 -1
- package/dist/index.html +7 -4
- package/dist/index.js +47 -51
- package/dist/version.txt +1 -1
- package/explorer.d.ts +1 -0
- package/lib/ActionBarContainer.js +375 -0
- package/lib/AppAction.js +47 -0
- package/lib/DeleteModal.js +60 -0
- package/lib/DisableModal.js +20 -0
- package/lib/EmptyScreenApp.js +53 -0
- package/lib/EmptyScreenError.js +13 -0
- package/lib/EmptyScreenNoContentInFolder.js +20 -0
- package/lib/EmptyScreenSearch.js +20 -0
- package/lib/EmptyScreenTrash.js +18 -0
- package/lib/FolderModal.js +138 -0
- package/lib/FoldersList.js +77 -0
- package/lib/Library.js +19 -0
- package/lib/MoveModal.js +94 -0
- package/lib/ResourcesList.js +261 -0
- package/lib/TrashModal.js +20 -0
- package/lib/app/root/index.d.ts +2 -0
- package/lib/components/AppAction/AppAction.d.ts +1 -0
- package/lib/components/EmptyScreens/EmptyScreenApp.d.ts +2 -0
- package/lib/components/EmptyScreens/EmptyScreenError.d.ts +2 -0
- package/lib/components/EmptyScreens/EmptyScreenNoContentInFolder.d.ts +2 -0
- package/lib/components/EmptyScreens/EmptyScreenSearch.d.ts +2 -0
- package/lib/components/EmptyScreens/EmptyScreenTrash.d.ts +1 -0
- package/lib/components/Explorer.d.ts +5 -0
- package/lib/components/ExplorerBreadcrumb.d.ts +1 -0
- package/lib/components/LoadMore.d.ts +3 -0
- package/lib/config/getExplorerConfig.d.ts +11 -0
- package/lib/config/index.d.ts +3 -0
- package/lib/features/AccessControl/AccessControl.d.ts +12 -0
- package/lib/features/AccessControl/useAccessControl.d.ts +14 -0
- package/lib/features/ActionBar/ActionBarContainer.d.ts +1 -0
- package/lib/features/ActionBar/Delete/DeleteModal.d.ts +8 -0
- package/lib/features/ActionBar/Delete/useDeleteModal.d.ts +8 -0
- package/lib/features/ActionBar/Disable/DisableModal.d.ts +5 -0
- package/lib/features/ActionBar/Disable/useDisableModal.d.ts +4 -0
- package/lib/features/ActionBar/Folder/FolderModal.d.ts +9 -0
- package/lib/features/ActionBar/Folder/useFolderModal.d.ts +22 -0
- package/lib/features/ActionBar/Move/MoveModal.d.ts +8 -0
- package/lib/features/ActionBar/Move/useMoveModal.d.ts +12 -0
- package/lib/features/ActionBar/Trash/TrashModal.d.ts +5 -0
- package/lib/features/ActionBar/Trash/useTrashModal.d.ts +4 -0
- package/lib/features/ActionBar/useActionBar.d.ts +30 -0
- package/lib/features/List/FolderCard.d.ts +17 -0
- package/lib/features/List/FoldersList.d.ts +7 -0
- package/lib/features/List/List.d.ts +1 -0
- package/lib/features/List/ResourceCard.d.ts +22 -0
- package/lib/features/List/ResourcesList.d.ts +8 -0
- package/lib/features/SearchForm/SearchForm.d.ts +1 -0
- package/lib/features/SearchForm/useSearchForm.d.ts +8 -0
- package/lib/features/SearchForm/useSelectedFilters.d.ts +8 -0
- package/lib/features/SideBar/Library/Library.d.ts +2 -0
- package/lib/features/SideBar/TrashButton.d.ts +7 -0
- package/lib/features/SideBar/TreeViewContainer.d.ts +1 -0
- package/lib/i18n.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +13 -0
- package/lib/index2.js +1867 -0
- package/lib/main.d.ts +0 -0
- package/lib/services/api/index.d.ts +129 -0
- package/lib/store/index.d.ts +98 -0
- package/lib/style.css +410 -0
- package/lib/utils/TreeNodeFolderWrapper.d.ts +12 -0
- package/lib/utils/addNode.d.ts +6 -0
- package/lib/utils/arrayUnique.d.ts +1 -0
- package/lib/utils/capitalizeFirstLetter.d.ts +1 -0
- package/lib/utils/deleteNode.d.ts +4 -0
- package/lib/utils/findNodeById.d.ts +2 -0
- package/lib/utils/fullTextSearch.d.ts +1 -0
- package/lib/utils/getAncestors.d.ts +2 -0
- package/lib/utils/getAppParams.d.ts +10 -0
- package/lib/utils/hasChildren.d.ts +2 -0
- package/lib/utils/isResourceShared.d.ts +2 -0
- package/lib/utils/modifyNode.d.ts +2 -0
- package/lib/utils/moveNode.d.ts +5 -0
- package/lib/utils/scrollToTop.d.ts +1 -0
- package/lib/utils/updateNode.d.ts +6 -0
- package/lib/utils/wrapTreeNode.d.ts +3 -0
- package/package.json +37 -7
- package/dist/EditFolderModal.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const refScrollTo: () => () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ode-explorer",
|
|
3
|
-
"version": "1.3.2-dev.
|
|
3
|
+
"version": "1.3.2-dev.202401091744",
|
|
4
4
|
"description": "Open Digital Education Explorer",
|
|
5
5
|
"homepage": "https://github.com/opendigitaleducation/explorer#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -14,8 +14,16 @@
|
|
|
14
14
|
"author": "Open Digital Education",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"files": [
|
|
17
|
-
"dist"
|
|
17
|
+
"dist",
|
|
18
|
+
"lib",
|
|
19
|
+
"*.d.ts"
|
|
18
20
|
],
|
|
21
|
+
"exports": {
|
|
22
|
+
"./lib": {
|
|
23
|
+
"import": "./lib/index.js",
|
|
24
|
+
"types": "./lib/index.d.ts"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
19
27
|
"husky": {
|
|
20
28
|
"hooks": {
|
|
21
29
|
"pre-commit": "lint-staged"
|
|
@@ -31,22 +39,27 @@
|
|
|
31
39
|
"@edifice-ui/icons": "develop",
|
|
32
40
|
"@edifice-ui/react": "develop",
|
|
33
41
|
"@react-spring/web": "9.7.3",
|
|
34
|
-
"@tanstack/react-query": "
|
|
42
|
+
"@tanstack/react-query": "5.8.4",
|
|
43
|
+
"clsx": "2.0.0",
|
|
35
44
|
"dayjs": "1.11.10",
|
|
45
|
+
"edifice-ts-client": "develop",
|
|
36
46
|
"i18next": "23.7.6",
|
|
37
47
|
"i18next-http-backend": "2.4.2",
|
|
48
|
+
"ohash": "1.1.3",
|
|
38
49
|
"react": "18.2.0",
|
|
39
50
|
"react-dom": "18.2.0",
|
|
40
51
|
"react-error-boundary": "4.0.11",
|
|
41
52
|
"react-hook-form": "7.49.2",
|
|
42
53
|
"react-i18next": "13.5.0",
|
|
43
54
|
"react-intersection-observer": "9.5.3",
|
|
55
|
+
"react-slugify": "3.0.3",
|
|
44
56
|
"swiper": "11.0.4",
|
|
45
57
|
"zustand": "4.4.6"
|
|
46
58
|
},
|
|
47
59
|
"devDependencies": {
|
|
48
60
|
"@axe-core/react": "4.8.1",
|
|
49
|
-
"@
|
|
61
|
+
"@babel/plugin-transform-react-pure-annotations": "7.23.3",
|
|
62
|
+
"@tanstack/react-query-devtools": "5.8.4",
|
|
50
63
|
"@types/node": "20.9.3",
|
|
51
64
|
"@types/react": "18.2.38",
|
|
52
65
|
"@types/react-dom": "18.2.16",
|
|
@@ -65,19 +78,36 @@
|
|
|
65
78
|
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
66
79
|
"eslint-plugin-react": "7.33.2",
|
|
67
80
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
81
|
+
"eslint-plugin-react-refresh": "0.4.5",
|
|
68
82
|
"husky": "8.0.3",
|
|
69
83
|
"lint-staged": "15.1.0",
|
|
70
84
|
"prettier": "3.1.0",
|
|
71
85
|
"typescript": "5.3.2",
|
|
72
86
|
"vite": "4.5.1",
|
|
87
|
+
"vite-plugin-dts": "3.7.0",
|
|
73
88
|
"vite-tsconfig-paths": "4.2.1"
|
|
74
89
|
},
|
|
75
|
-
"
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"@edifice-ui/icons": "*",
|
|
92
|
+
"@edifice-ui/react": "*",
|
|
93
|
+
"@react-spring/web": "9.7.3",
|
|
94
|
+
"@tanstack/react-query": "5.8.4",
|
|
95
|
+
"clsx": "2.0.0",
|
|
96
|
+
"i18next": "23.7.6",
|
|
97
|
+
"i18next-http-backend": "2.4.2",
|
|
98
|
+
"react": "18.2.0",
|
|
99
|
+
"react-dom": "18.2.0",
|
|
100
|
+
"react-hook-form": "7.49.2",
|
|
101
|
+
"react-i18next": "13.5.0",
|
|
102
|
+
"zustand": "4.4.6"
|
|
103
|
+
},
|
|
104
|
+
"packageManager": "pnpm@8.6.6",
|
|
76
105
|
"engines": {
|
|
77
|
-
"node": "
|
|
106
|
+
"node": "18"
|
|
78
107
|
},
|
|
79
108
|
"scripts": {
|
|
80
|
-
"build": "vite build",
|
|
109
|
+
"build": "vite build && pnpm run build-lib",
|
|
110
|
+
"build-lib": "vite build -c vite.config.lib.ts",
|
|
81
111
|
"clean": "concurrently \"pnpm:clean:*\"",
|
|
82
112
|
"clean:dist": "rm -rf dist",
|
|
83
113
|
"clean:lighthouse": "rm -rf .lighthouseci",
|
package/dist/EditFolderModal.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as D,e as B,v as q,w,x as L,r as I,b as R,k,j as r,M as i,F as T,y as U,I as V,B as y}from"./index.js";import{FOLDER as _}from"/assets/js/edifice-ts-client/index.js";function z({edit:a,onSuccess:e,onClose:m}){var F;const l=D(),t=B(),c=q(),u=w(),f=a?(F=l[0])==null?void 0:F.name:void 0,{reset:o,register:p,handleSubmit:n,setFocus:x,formState:{errors:h,isSubmitting:s,isDirty:C,isValid:E}}=L({mode:"onChange",values:{name:f||""}}),g=I.useId(),v=async function({name:b}){var j;try{if(a){const d=(j=l[0])==null?void 0:j.parentId,$=l[0].id;await u.mutate({folderId:$,parentId:d,name:b}),o(),e==null||e()}else{const d=(t==null?void 0:t.id)||_.DEFAULT;await c.mutate({name:b,parentId:d}),o(),e==null||e()}}catch(d){console.error(d)}};function M(){o(),m()}return{formId:`createModal_${g}`,errors:h,isSubmitting:s,isDirty:C,isValid:E,register:p,setFocus:x,handleSubmit:n,onCancel:M,onSubmit:v}}function J({isOpen:a,edit:e,onSuccess:m,onCancel:l}){const{t}=R(),{isDirty:c,isValid:u,isSubmitting:f,formId:o,onSubmit:p,onCancel:n,handleSubmit:x,register:h,setFocus:s}=z({edit:e,onSuccess:m,onClose:l});return I.useEffect(()=>{a&&s("name")},[a,s]),k.createPortal(r.jsxs(i,{isOpen:a,onModalClose:n,id:"modal_"+o,children:[r.jsx(i.Header,{onModalClose:n,children:t(e?"explorer.rename.folder":"explorer.create.folder")}),r.jsx(i.Body,{children:r.jsx("form",{id:o,onSubmit:x(p),children:r.jsxs(T,{id:"nameFolder",isRequired:!0,children:[r.jsx(U,{children:t("explorer.create.folder.name")}),r.jsx(V,{type:"text",...h("name",{required:!0,pattern:{value:/[^ ]/,message:"invalid title"}}),placeholder:t("explorer.create.folder.name"),size:"md","aria-required":!0})]})})}),r.jsxs(i.Footer,{children:[r.jsx(y,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:t("explorer.cancel")}),r.jsx(y,{form:o,type:"submit",color:"primary",variant:"filled",disabled:!c||!u||f,children:t(e?"explorer.rename":"explorer.create")})]})]}),document.getElementById("portal"))}export{J as default};
|