diff --git a/package.json b/package.json index 68314a370..e1fac2879 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@headlessui/react": "1.7.3", "@heroicons/react": "1.0.6", "@lezer/highlight": "1.1.2", - "@preact/signals-react": "1.1.1", + "@preact/signals-react": "1.2.1", "@tailwindcss/forms": "0.5.3", "@tailwindcss/line-clamp": "0.4.2", "axios": "0.27.2", @@ -56,7 +56,7 @@ "date-fns": "2.29.3", "debounce": "1.2.1", "deepmerge-ts": "4.2.2", - "easy-peasy": "5.1.0", + "easy-peasy": "5.2.0", "events": "3.3.0", "formik": "2.2.9", "framer-motion": "7.6.2", diff --git a/resources/scripts/components/FlashMessageRender.tsx b/resources/scripts/components/FlashMessageRender.tsx index e7cf7726d..93470d06b 100644 --- a/resources/scripts/components/FlashMessageRender.tsx +++ b/resources/scripts/components/FlashMessageRender.tsx @@ -1,21 +1,21 @@ -import { Fragment } from 'react'; -import MessageBox from '@/components/MessageBox'; import { useStoreState } from 'easy-peasy'; -import tw from 'twin.macro'; +import { Fragment } from 'react'; + +import MessageBox from '@/components/MessageBox'; type Props = Readonly<{ byKey?: string; className?: string; }>; -const FlashMessageRender = ({ byKey, className }: Props) => { +function FlashMessageRender({ byKey, className }: Props) { const flashes = useStoreState(state => state.flashes.items.filter(flash => (byKey ? flash.key === byKey : true))); return flashes.length ? (
{flashes.map((flash, index) => ( - {index > 0 &&
} + {index > 0 &&
} {flash.message} @@ -23,6 +23,6 @@ const FlashMessageRender = ({ byKey, className }: Props) => { ))}
) : null; -}; +} export default FlashMessageRender; diff --git a/resources/scripts/components/server/files/FileManagerContainer.tsx b/resources/scripts/components/server/files/FileManagerContainer.tsx index d699cd783..272068cec 100644 --- a/resources/scripts/components/server/files/FileManagerContainer.tsx +++ b/resources/scripts/components/server/files/FileManagerContainer.tsx @@ -14,9 +14,9 @@ import { ServerError } from '@/components/elements/ScreenBlock'; import { Button } from '@/components/elements/button/index'; import { ServerContext } from '@/state/server'; import useFileManagerSwr from '@/plugins/useFileManagerSwr'; -import FileManagerStatus from '@/components/server/files/FileManagerStatus'; +// import FileManagerStatus from '@/components/server/files/FileManagerStatus'; import MassActionsBar from '@/components/server/files/MassActionsBar'; -import UploadButton from '@/components/server/files/UploadButton'; +// import UploadButton from '@/components/server/files/UploadButton'; import ServerContentBlock from '@/components/elements/ServerContentBlock'; import { useStoreActions } from '@/state/hooks'; import ErrorBoundary from '@/components/elements/ErrorBoundary'; @@ -77,9 +77,9 @@ export default () => { />
- + {/**/} - + {/**/} diff --git a/yarn.lock b/yarn.lock index 07ed69f60..ac110abc8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1085,17 +1085,18 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" -"@preact/signals-core@^1.2.1": +"@preact/signals-core@^1.2.2": version "1.2.2" resolved "https://registry.yarnpkg.com/@preact/signals-core/-/signals-core-1.2.2.tgz#279dcc5ab249de2f2e8f6e6779b1958256ba843e" integrity sha512-z3/bCj7rRA21RJb4FeJ4guCrD1CQbaURHkCTunUWQpxUMAFOPXCD8tSFqERyGrrcSb4T3Hrmdc1OAl0LXBHwiw== -"@preact/signals-react@1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@preact/signals-react/-/signals-react-1.1.1.tgz#8c77e86bc94dcd7f58143e06b6d7564ee79e9585" - integrity sha512-U5HNWBt4q5pmsZjDOuVcz3OXLQtaBMMSErnTHFohOFQClBqHlVD/hmhayEEO38I9iU71kofhw2ngeWso/GsVMw== +"@preact/signals-react@1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@preact/signals-react/-/signals-react-1.2.1.tgz#6d5d305ebdb38c879043acebc65c0d9351e663c1" + integrity sha512-73J8sL1Eru7Ot4yBYOCPj1izEZjzCEXlembRgk6C7PkwsqoAVbCxMlDOFfCLoPFuJ6qeGatrJzRkcycXppMqVQ== dependencies: - "@preact/signals-core" "^1.2.1" + "@preact/signals-core" "^1.2.2" + use-sync-external-store "^1.2.0" "@remix-run/router@1.0.2": version "1.0.2" @@ -2086,10 +2087,10 @@ dset@^2.0.1: resolved "https://registry.yarnpkg.com/dset/-/dset-2.0.1.tgz#a15fff3d1e4d60ac0c95634625cbd5441a76deb1" integrity sha512-nI29OZMRYq36hOcifB6HTjajNAAiBKSXsyWZrq+VniusseuP2OpNlTiYgsaNRSGvpyq5Wjbc2gQLyBdTyWqhnQ== -easy-peasy@5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/easy-peasy/-/easy-peasy-5.1.0.tgz#5fbd3a2d4803ef982b42083be47badf553227341" - integrity sha512-Gd5jzTRrWrE6r59014GXTzpcq5abJ5AMGxc4fzd9sM8PCy18evzxVF9MYlkkzdTnUI/Rbvf0sQW50ev8DXyNjw== +easy-peasy@5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/easy-peasy/-/easy-peasy-5.2.0.tgz#aee9a06d4bf72aa1e20442d5019306a552f350a0" + integrity sha512-QHRRJTsF15ZLK5vLcCLDF3A7sMrE4+7S/8ggZempfMbXX3xNsH2R3HVA+Xo5rZA65Rg8Zf5X6fflEMGuzfgwTw== dependencies: "@babel/runtime" "^7.17.2" fast-deep-equal "^3.1.3"