ode-explorer 1.3.2-dev.202312211056 → 1.3.2-dev.202401091605
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/package.json +5 -5
- package/dist/EditFolderModal.js +0 -1
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-SNAPSHOT
|
|
1
|
+
ode-explorer=1.0-SNAPSHOT 09/01/2024 16:06:03
|
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.202401091605",
|
|
4
4
|
"description": "Open Digital Education Explorer",
|
|
5
5
|
"homepage": "https://github.com/opendigitaleducation/explorer#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@edifice-ui/icons": "develop",
|
|
32
32
|
"@edifice-ui/react": "develop",
|
|
33
33
|
"@react-spring/web": "9.7.3",
|
|
34
|
-
"@tanstack/react-query": "
|
|
34
|
+
"@tanstack/react-query": "5.8.4",
|
|
35
35
|
"dayjs": "1.11.10",
|
|
36
36
|
"i18next": "23.7.6",
|
|
37
37
|
"i18next-http-backend": "2.4.2",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@axe-core/react": "4.8.1",
|
|
49
|
-
"@tanstack/react-query-devtools": "
|
|
49
|
+
"@tanstack/react-query-devtools": "5.8.4",
|
|
50
50
|
"@types/node": "20.9.3",
|
|
51
51
|
"@types/react": "18.2.38",
|
|
52
52
|
"@types/react-dom": "18.2.16",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"vite": "4.5.1",
|
|
73
73
|
"vite-tsconfig-paths": "4.2.1"
|
|
74
74
|
},
|
|
75
|
-
"packageManager": "pnpm@8.
|
|
75
|
+
"packageManager": "pnpm@8.6.6",
|
|
76
76
|
"engines": {
|
|
77
|
-
"node": "
|
|
77
|
+
"node": "18"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "vite build",
|
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};
|